aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-12-10 00:56:36 +0000
committerRichard Henderson <rth@redhat.com>2002-12-10 00:56:36 +0000
commit3b12c2561f49086e80c1d4776266a9003f677644 (patch)
tree3270080c28cf29b2d0a5a0f82f78a1a173c18bd5
parentd72db3bfb6d80eba4438ce364400cc064c33f82e (diff)
* config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
__tune_pentium2__ and __tune_pentium3__ as necessary. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@59974 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.h9
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0b812c18a53..0a4c2dcc4ce 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2002-12-09 Richard Henderson <rth@redhat.com>
+ * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
+ __tune_pentium2__ and __tune_pentium3__ as necessary.
+
+2002-12-09 Richard Henderson <rth@redhat.com>
+
* target.h (gcc_target): Add cannot_force_const_mem.
* target-def.h (TARGET_CANNOT_FORCE_CONST_MEM): New.
(TARGET_INITIALIZER): Add it.
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 287cec3e503..493a2b5bf9c 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -515,6 +515,15 @@ extern int x86_prefetch_sse;
{ \
builtin_define ("__tune_i686__"); \
builtin_define ("__tune_pentiumpro__"); \
+ switch (last_cpu_char) \
+ { \
+ case '3': \
+ builtin_define ("__tune_pentium3__"); \
+ /* FALLTHRU */ \
+ case '2': \
+ builtin_define ("__tune_pentium2__"); \
+ break; \
+ } \
} \
else if (TARGET_K6) \
{ \