diff options
-rw-r--r-- | doc/HISTORY | 3 | ||||
-rw-r--r-- | pm_config.in.h | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index 3bc0aead..8cd96115 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -21,6 +21,9 @@ not yet BJH Release 10.60.00 Build: rename getline() in xpmtoppm.c to avoid collision with some libc. Always broken. + Build: Don't expect GCC facilities to exist when compiler is + Clang. (Note that Clang identifies itself as GCC). + 12.06.28 BJH Release 10.59.00 pamtogif: Make data blocks 255 bytes instead of 254. 255 is diff --git a/pm_config.in.h b/pm_config.in.h index f0d83e1e..3e2f781c 100644 --- a/pm_config.in.h +++ b/pm_config.in.h @@ -226,7 +226,7 @@ /* If the compiler is Clang, ignore reported __GNUC__ , __GNUC_MINOR__ - values. Treat it as a generic c compiler. Clang normally reports itself + values. Treat it as a generic C compiler. Clang normally reports itself as GCC, but does not necessarily offer all the features of GCC. For example, we know that Apple Mac OSX 10.8 ships with @@ -236,6 +236,11 @@ which masquerades as GCC 4.2.1, but it does not have SSE2 function __builtin_ia32_pcmpeqb128 . + On the other hand, research by Prophet of the Way in September 2012 + indicated that Clang 2.6-3.0 have the above function (and all Netpbm + compiled successfully with SSE exploitation), but 3.1 does not. He did + not find any mention in documentation of that change. + See below on compilers other than GCC that set __GNUC__: http://sourceforge.net/apps/mediawiki/predef/index.php?title=Compilers */ |