OSDN Git Service

Define __SSE2__ if -msse2 instead of __SSE2_BUILTINS__
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 May 2002 23:05:41 +0000 (23:05 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 May 2002 23:05:41 +0000 (23:05 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53308 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.h
gcc/config/i386/xmmintrin.h

index e177fd3..4672fd1 100644 (file)
@@ -1,3 +1,9 @@
+2002-05-08  Bernd Schmidt  <bernds@redhat.com>
+
+       * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
+       use __SSE2__ macro instead.
+       * config/i386/xmmintrin.h: Likewise.
+
 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
 
        * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
index 7275371..5bfa582 100644 (file)
@@ -619,7 +619,7 @@ extern int ix86_arch;
 |march=athlon-mp: -D__3dNOW__ }\
 %{march=athlon|march=athlon-tbird|march=athlon-4|march=athlon-xp\
 |march=athlon-mp: -D__3dNOW_A__ }\
-%{msse2: -D__SSE2_BUILTINS__ }\
+%{msse2: -D__SSE2__ }\
 %{march=pentium4: -D__SSE2__ }\
 %{!march*:%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}}}"
 
index bf7a7ad..09eea22 100644 (file)
@@ -1058,7 +1058,7 @@ do {                                                                      \
   (row3) = __builtin_ia32_shufps (__t2, __t3, 0xDD);                   \
 } while (0)
 
-#ifdef __SSE2_BUILTINS__
+#ifdef __SSE2__
 /* SSE2 */
 typedef int __v2df __attribute__ ((mode (V2DF)));
 typedef int __v2di __attribute__ ((mode (V2DI)));