aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-09-19 07:41:56 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-09-19 07:41:56 -0700
commit0d97fd9ebe4aa55afbec7e3b7899b54c00354ba6 (patch)
treecede07b1dfa1c3122bfa3b1254ddad6efcd47dc2 /gcc
parent39b726dd63141158c64b4a8cde58305040cded0e (diff)
downloadgcc-0d97fd9ebe4aa55afbec7e3b7899b54c00354ba6.zip
gcc-0d97fd9ebe4aa55afbec7e3b7899b54c00354ba6.tar.gz
gcc-0d97fd9ebe4aa55afbec7e3b7899b54c00354ba6.tar.bz2
i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols in addition to pentium and pentiumpro symbols.
* 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/i386/i386.h17
2 files changed, 13 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f6de40a..f9ac0d7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 442b205f..4391fb0 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -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)}}}}}"