i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols in addition to pentium and pentiu...
authorRichard Henderson <rth@cygnus.com>
Tue, 19 Sep 2000 14:41:56 +0000 (07:41 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 19 Sep 2000 14:41:56 +0000 (07:41 -0700)
        * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
        in addition to pentium and pentiumpro symbols.
        (CPP_CPU_DEFAULT_SPEC): Likewise.

From-SVN: r36534

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

index f6de40a5122b5918eac59ccdac294d3147331653..f9ac0d7e5be757db17cb590ae2be826ff63cc5d2 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-19  Richard Henderson  <rth@cygnus.com>
 
+       * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
+       in addition to pentium and pentiumpro symbols.
+       (CPP_CPU_DEFAULT_SPEC): Likewise.
+
        * c-typeck.c (c_expand_asm_operands): Restore the output tree
        after expanding.
 
index 442b205fb4c5a00a585bbc51cd5e5a56d82d5ca9..4391fb01fcaec4697794ab00381734a91e0a1bca 100644 (file)
@@ -382,10 +382,10 @@ extern int ix86_arch;
 #define CPP_CPU_DEFAULT_SPEC "-D__tune_i486__"
 #endif
 #if TARGET_CPU_DEFAULT == 2
-#define CPP_CPU_DEFAULT_SPEC "-D__tune_pentium__"
+#define CPP_CPU_DEFAULT_SPEC "-D__tune_i586__ -D__tune_pentium__"
 #endif
 #if TARGET_CPU_DEFAULT == 3
-#define CPP_CPU_DEFAULT_SPEC "-D__tune_pentiumpro__"
+#define CPP_CPU_DEFAULT_SPEC "-D__tune_i686__ -D__tune_pentiumpro__"
 #endif
 #if TARGET_CPU_DEFAULT == 4
 #define CPP_CPU_DEFAULT_SPEC "-D__tune_k6__"
@@ -404,16 +404,17 @@ extern int ix86_arch;
 %{!ansi:-Di386} -D__i386 -D__i386__ \
 %{march=i386:%{!mcpu*:-D__tune_i386__ }}\
 %{march=i486:-D__i486 -D__i486__ %{!mcpu*:-D__tune_i486__ }}\
-%{march=pentium|march=i586:-D__pentium -D__pentium__ \
-  %{!mcpu*:-D__tune_pentium__ }}\
-%{march=pentiumpro|march=i686:-D__pentiumpro -D__pentiumpro__ \
-  %{!mcpu*:-D__tune_pentiumpro__ }}\
+%{march=pentium|march=i586:-D__i586 -D__i586__ -D__pentium -D__pentium__ \
+  %{!mcpu*:-D__tune_i586__ -D__tune_pentium__ }}\
+%{march=pentiumpro|march=i686:-D__i686 -D__i686__ \
+  -D__pentiumpro -D__pentiumpro__ \
+  %{!mcpu*:-D__tune_i686__ -D__tune_pentiumpro__ }}\
 %{march=k6:-D__k6 -D__k6__ %{!mcpu*:-D__tune_k6__ }}\
 %{march=athlon:-D__athlon -D__athlon__ %{!mcpu*:-D__tune_athlon__ }}\
 %{m386|mcpu=i386:-D__tune_i386__ }\
 %{m486|mcpu=i486:-D__tune_i486__ }\
-%{mpentium|mcpu=pentium|mcpu=i586:-D__tune_pentium__ }\
-%{mpentiumpro|mcpu=pentiumpro|mcpu=i686:-D__tune_pentiumpro__ }\
+%{mpentium|mcpu=pentium|mcpu=i586:-D__tune_i586__ -D__tune_pentium__ }\
+%{mpentiumpro|mcpu=pentiumpro|mcpu=i686:-D__tune_i686__ -D__tune_pentiumpro__ }\
 %{mcpu=k6:-D__tune_k6__ }\
 %{mcpu=athlon:-D__tune_athlon__ }\
 %{!march*:%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}}}"