Re: [clisp:clisp] New commit [729b7f] by Vladimir Tzankov

<[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <eb0cb80b627e4c8fa123ea5522d9a191@HE104834.emea1.cds.t-internal.com>
Hi,

That change is incorrect (the old test was incorrect too).

-    #if defined(UNIX_LINUX) || defined(UNIX_FREEBSD) || (defined(UNIX_MACOSX) && (__GNUC__ == 4) && ((__GNUC_MINOR__ >= 5)))
+    #if defined(UNIX_LINUX) || defined(UNIX_FREEBSD) || (defined(UNIX_MACOSX) && (defined(__clang__) || ((__GNUC__ >= 4) && (__GNUC_MINOR__ >= 5))))

The old one did not test correctly for GCC >= 4.5 (supposing that was intended).
 For example, think about gcc v 5.2.
The new one will produce different results for gcc 5.2 and 5.7. This is certainly unwanted.

The GCC manual shows examples about how to test for >= a specific version
 (whether x*100+y is a good trick is debatable).
https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

Regards,
	Jörg

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.