diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-06 18:17:08 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-06 18:17:08 +0000 |
commit | 0affa48fad1bb41e4e5af95acdcc701b83b62778 (patch) | |
tree | 6ed490b8e647f7b96fc40d6c0c2567afe3ec50f4 | |
parent | f9a532b06c1892a216b23bd6234c28b209f131b1 (diff) | |
download | gcc-0affa48fad1bb41e4e5af95acdcc701b83b62778.tar.gz |
Fix problems compiling xmmintrin.h with only -msse.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53230 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.h | 1 | ||||
-rw-r--r-- | gcc/config/i386/xmmintrin.h | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 89afcc7b3cd..3dd3a44c3e3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-05-06 Bernd Schmidt <bernds@redhat.com> + + * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if + -msse2. + * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support. + 2002-05-06 Roger Sayle <roger@eyesopen.com> * fold-const.c (lshift-double): Cast the high word to an unsigned diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 0454cad6084..72753712595 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -619,6 +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__ }\ %{march=pentium4: -D__SSE2__ }\ %{!march*:%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}}}" diff --git a/gcc/config/i386/xmmintrin.h b/gcc/config/i386/xmmintrin.h index 294df600cb9..bf7a7ad5716 100644 --- a/gcc/config/i386/xmmintrin.h +++ b/gcc/config/i386/xmmintrin.h @@ -1058,6 +1058,7 @@ do { \ (row3) = __builtin_ia32_shufps (__t2, __t3, 0xDD); \ } while (0) +#ifdef __SSE2_BUILTINS__ /* SSE2 */ typedef int __v2df __attribute__ ((mode (V2DF))); typedef int __v2di __attribute__ ((mode (V2DI))); @@ -1978,7 +1979,6 @@ _mm_mfence (void) __builtin_ia32_mfence (); } -/* End of SSE2. */ - +#endif /* __SSE2_BUILTINS__ */ #endif /* _XMMINTRIN_H_INCLUDED */ |