about summary refs log tree commit diff
path: root/pm_config.in.h
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-05-27 15:16:26 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-05-27 15:16:26 +0000
commit28f39a65360c20f04fc16873a8adb599d6cfae57 (patch)
tree7823c7e411b20e5c43a2b00da6be963681776c89 /pm_config.in.h
parent09203646ad7a6e2903894031433dab8699240f04 (diff)
downloadnetpbm-mirror-28f39a65360c20f04fc16873a8adb599d6cfae57.tar.gz
netpbm-mirror-28f39a65360c20f04fc16873a8adb599d6cfae57.tar.xz
netpbm-mirror-28f39a65360c20f04fc16873a8adb599d6cfae57.zip
Assert Gcc 4.1 doesn't have SSE2 direct access, because it has bugs
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1226 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'pm_config.in.h')
-rw-r--r--pm_config.in.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pm_config.in.h b/pm_config.in.h
index f6847731..69f4b4a0 100644
--- a/pm_config.in.h
+++ b/pm_config.in.h
@@ -212,7 +212,12 @@
 */
 
 #ifndef HAVE_GCC_SSE2
-#if GCCVERSION >=401 && defined(__SSE__) && defined(__SSE2__)
+/* GCC 4.1 ostensibly has the feature, but experiments with 4.1.2 and
+   4.1.2 in May 2010 exposed an obscure compiler bug and the compiler got
+   stock with pamflip_sse.c.  So we say the feature exists only on 4.2
+   and up.
+*/
+#if GCCVERSION >=402 && defined(__SSE__) && defined(__SSE2__)
   #define HAVE_GCC_SSE2 1
 #else
   #define HAVE_GCC_SSE2 0