i386.h (TARGET_CPU_CPP_BUILTINS): Define __tune_pentium2__ and __tune_pentium3__...
authorRichard Henderson <rth@redhat.com>
Tue, 10 Dec 2002 00:56:36 +0000 (16:56 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 10 Dec 2002 00:56:36 +0000 (16:56 -0800)
        * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
        __tune_pentium2__ and __tune_pentium3__ as necessary.

From-SVN: r59974

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

index 0b812c18a53fddec258f0dca997173dbd797482a..0a4c2dcc4cef0db7a3e9bd47dcaaeb2207c0a577 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 287cec3e5039f082b0d3a0b79fe9aea37c770777..493a2b5bf9cbf5bd826b176bfac2e8bccec4655d 100644 (file)
@@ -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)                                      \
        {                                                       \