diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b812c18a53f..0a4c2dcc4cef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-12-09 Richard Henderson + + * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define + __tune_pentium2__ and __tune_pentium3__ as necessary. + 2002-12-09 Richard Henderson * target.h (gcc_target): Add cannot_force_const_mem. diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 287cec3e5039..493a2b5bf9cb 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) \ { \