Fix double_ptr_storage definition for GCC pre-v4 (x86_64)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 26 Mar 2012 04:34:27 +0000 (08:34 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 26 Mar 2012 12:23:52 +0000 (16:23 +0400)
* src/atomic_ops/sysdeps/standard_ao_double_t.h: Do not use __m128
if GCC pre-v4 (at least, xmmintrin.h is missing in gcc-3.4.3-x86_64
included in Solaris 10 distribution).

src/atomic_ops/sysdeps/standard_ao_double_t.h

index 9f5c9a4..cbf7fba 100644 (file)
@@ -28,7 +28,7 @@
  * Similar things could be done for PowerPC 64-bit using a VMX data type...
  */
 
-#if (defined(__x86_64__) && defined(__GNUC__)) || defined(_WIN64)
+#if (defined(__x86_64__) && __GNUC__ >= 4) || defined(_WIN64)
 # include <xmmintrin.h>
   typedef __m128 double_ptr_storage;
 #elif defined(_WIN32) && !defined(__GNUC__)