Commit 84b77fba by Jim Wilson Committed by Jim Wilson

Patch from Ulrich to fix problems with default CPU defines.

	* i386.h (CPP_CPU_DEFAULT): Renamed to CPP_CPU_DEFAULT_SPEC.
	Add missing -Dpentium* options.
	(CPP_CPU_SPEC): Delete redundant definition.  Include cpp_cpu_default
	instead of CPP_CPU_DEFAULT.
	(EXTRA_SPECS): Add entry for cpp_cpu_default.

From-SVN: r19284
parent db72d7a1
Sat Apr 18 18:30:22 1998 Jim Wilson <wilson@cygnus.com>
* i386.h (CPP_CPU_DEFAULT): Renamed to CPP_CPU_DEFAULT_SPEC.
Add missing -Dpentium* options.
(CPP_CPU_SPEC): Delete redundant definition. Include cpp_cpu_default
instead of CPP_CPU_DEFAULT.
(EXTRA_SPECS): Add entry for cpp_cpu_default.
Sat Apr 18 19:06:59 1998 David Edelsohn <edelsohn@mhpcc.edu> Sat Apr 18 19:06:59 1998 David Edelsohn <edelsohn@mhpcc.edu>
* rs6000.md (floatsidf2_loadaddr): rs6000_fpmem_offset will be * rs6000.md (floatsidf2_loadaddr): rs6000_fpmem_offset will be
......
...@@ -304,36 +304,30 @@ extern int ix86_arch; ...@@ -304,36 +304,30 @@ extern int ix86_arch;
%{mpentiumpro:-mcpu=pentiumpro}}" %{mpentiumpro:-mcpu=pentiumpro}}"
#endif #endif
#ifndef CPP_CPU_SPEC #ifndef CPP_CPU_DEFAULT_SPEC
#ifdef __STDC__
#if TARGET_CPU_DEFAULT == 1 #if TARGET_CPU_DEFAULT == 1
#define CPP_CPU_DEFAULT "-Di486" #define CPP_CPU_DEFAULT_SPEC "-Di486"
#else #else
#if TARGET_CPU_DEFAULT == 2 #if TARGET_CPU_DEFAULT == 2
#define CPP_CPU_DEFAULT "-Di586" #define CPP_CPU_DEFAULT_SPEC "-Dpentium -Di586"
#else #else
#if TARGET_CPU_DEFAULT == 3 #if TARGET_CPU_DEFAULT == 3
#define CPP_CPU_DEFAULT "-Di686" #define CPP_CPU_DEFAULT_SPEC "-Dpentiumpro -Di686"
#else #else
#define CPP_CPU_DEFAULT "" #define CPP_CPU_DEFAULT_SPEC ""
#endif #endif
#endif #endif
#endif /* TARGET_CPU_DEFAULT */ #endif
#endif /* CPP_CPU_DEFAULT_SPEC */
#define CPP_CPU_SPEC "\
-Di386 " CPP_CPU_DEFAULT " -Asystem(unix) -Acpu(i386) -Amachine(i386) \
%{mcpu=i486:-Di486} %{m486:-Di486} \
%{mpentium:-Dpentium -Di586} %{mcpu=pentium:-Dpentium -Di586} \
%{mpentiumpro:-Dpentiumpro -Di686} %{mcpu=pentiumpro:-Dpentiumpro -Di686}"
#else #ifndef CPP_CPU_SPEC
#define CPP_CPU_SPEC "\ #define CPP_CPU_SPEC "\
-Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386) \ -Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386) \
%{mcpu=i486:-Di486} %{m486:-Di486} \ %{mcpu=i486:-Di486} %{m486:-Di486} \
%{mpentium:-Dpentium -Di586} %{mcpu=pentium:-Dpentium -Di586} \ %{mpentium:-Dpentium -Di586} %{mcpu=pentium:-Dpentium -Di586} \
%{mpentiumpro:-Dpentiumpro -Di686} %{mcpu=pentiumpro:-Dpentiumpro -Di686}" %{mpentiumpro:-Dpentiumpro -Di686} %{mcpu=pentiumpro:-Dpentiumpro -Di686} \
#endif /* __STDC__ */ %{!mcpu*:%{!m486:%{!mpentium*: %[cpp_cpu_default]}}}"
#endif /* CPP_CPU_SPEC */ #endif
#ifndef CC1_SPEC #ifndef CC1_SPEC
#define CC1_SPEC "%(cc1_spec) " #define CC1_SPEC "%(cc1_spec) "
...@@ -354,6 +348,7 @@ extern int ix86_arch; ...@@ -354,6 +348,7 @@ extern int ix86_arch;
#endif #endif
#define EXTRA_SPECS \ #define EXTRA_SPECS \
{ "cpp_cpu_default", CPP_CPU_DEFAULT_SPEC }, \
{ "cpp_cpu", CPP_CPU_SPEC }, \ { "cpp_cpu", CPP_CPU_SPEC }, \
{ "cc1_cpu", CC1_CPU_SPEC }, \ { "cc1_cpu", CC1_CPU_SPEC }, \
SUBTARGET_EXTRA_SPECS SUBTARGET_EXTRA_SPECS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment