This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix -march=athlon-tbird bug WRT SSE
- From: "David O'Brien" <obrien at FreeBSD dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Jul 2005 09:30:59 -0700
- Subject: [PATCH] Fix -march=athlon-tbird bug WRT SSE
- Reply-to: obrien at FreeBSD dot org
2005-07-28 David O'Brien <obrien@FreeBSD.org>
* config/i386/i386.h: Athlon-tbird does not have SSE support.
Index: config/i386/i386.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.h,v
retrieving revision 1.442
diff -u -r1.442 i386.h
--- config/i386/i386.h 18 Jul 2005 06:39:19 -0000 1.442
+++ config/i386/i386.h 19 Jul 2005 21:59:48 -0000
@@ -357,8 +357,8 @@
else if (TARGET_ATHLON) \
{ \
builtin_define ("__tune_athlon__"); \
- /* Only plain "athlon" lacks SSE. */ \
- if (last_tune_char != 'n') \
+ /* Plain "athlon" & "athlon-tbird" lacks SSE. */ \
+ if (last_tune_char != 'n' && last_tune_char != 'd') \
builtin_define ("__tune_athlon_sse__"); \
} \
else if (TARGET_K8) \
@@ -421,8 +421,8 @@
{ \
builtin_define ("__athlon"); \
builtin_define ("__athlon__"); \
- /* Only plain "athlon" lacks SSE. */ \
- if (last_arch_char != 'n') \
+ /* Plain "athlon" & "athlon-tbird" lacks SSE. */ \
+ if (last_tune_char != 'n' && last_tune_char != 'd') \
builtin_define ("__athlon_sse__"); \
} \
else if (ix86_arch == PROCESSOR_K8) \
--
-- David (obrien@FreeBSD.org)