Commit 1ba7b414 by Neil Booth Committed by Neil Booth

beos-elf.h, [...] (CPP_SPEC): Remove cpp_cpu.

config/i386:
	* beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
	i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
	mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
	sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
	win32.h	(CPP_SPEC): Remove cpp_cpu.
	* i386.h (TARGET_CPU_CPP_BUILTINS): Use.
	(CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!

From-SVN: r54254
parent 135ca7b2
2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
config/i386:
* beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
win32.h (CPP_SPEC): Remove cpp_cpu.
* i386.h (TARGET_CPU_CPP_BUILTINS): Use.
(CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2002-06-04 Janis Johnson <janis187@us.ibm.com> 2002-06-04 Janis Johnson <janis187@us.ibm.com>
* config/ia64/ia64.c (gen_thread_pointer): Fix variable name. * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
......
...@@ -76,7 +76,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -76,7 +76,7 @@ Boston, MA 02111-1307, USA. */
-Asystem=beos" -Asystem=beos"
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %{!no-fPIC:%{!no-fpic:-D__PIC__ -D__pic__}}" #define CPP_SPEC "%{!no-fPIC:%{!no-fpic:-D__PIC__ -D__pic__}}"
/* BeOS uses lots of multichars, so don't warn about them unless the /* BeOS uses lots of multichars, so don't warn about them unless the
user explicitly asks for the warnings with -Wmultichar. Note that user explicitly asks for the warnings with -Wmultichar. Note that
......
...@@ -96,7 +96,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -96,7 +96,7 @@ Boston, MA 02111-1307, USA. */
existing args. */ existing args. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} \ #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} \
-D__stdcall=__attribute__((__stdcall__)) \ -D__stdcall=__attribute__((__stdcall__)) \
-D__cdecl=__attribute__((__cdecl__)) \ -D__cdecl=__attribute__((__cdecl__)) \
%{!ansi:-D_stdcall=__attribute__((__stdcall__)) \ %{!ansi:-D_stdcall=__attribute__((__stdcall__)) \
......
...@@ -87,7 +87,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -87,7 +87,7 @@ Boston, MA 02111-1307, USA. */
/* Include <sys/version.h> so __DJGPP__ and __DJGPP_MINOR__ are defined. */ /* Include <sys/version.h> so __DJGPP__ and __DJGPP_MINOR__ are defined. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} \ #define CPP_SPEC "-remap %{posix:-D_POSIX_SOURCE} \
%{!ansi:%{!std=c*:%{!std=i*:-DMSDOS}}} %{!ansi:%{!std=c*:%{!std=i*:-DGO32}}} \ %{!ansi:%{!std=c*:%{!std=i*:-DMSDOS}}} %{!ansi:%{!std=c*:%{!std=i*:-DGO32}}} \
-imacros %s../include/sys/version.h" -imacros %s../include/sys/version.h"
......
...@@ -48,7 +48,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -48,7 +48,7 @@ Boston, MA 02111-1307, USA. */
/* Specify predefined symbols in preprocessor. */ /* Specify predefined symbols in preprocessor. */
#define CPP_PREDEFINES "-Dunix" #define CPP_PREDEFINES "-Dunix"
#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE}" #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
/* Allow #sccs in preprocessor. */ /* Allow #sccs in preprocessor. */
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
-Dunix -Asystem=unix -Asystem=posix -D__gnu_hurd__ -D__GNU__ -Asystem=gnu" -Dunix -Asystem=unix -Asystem=posix -D__gnu_hurd__ -D__GNU__ -Asystem=gnu"
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) \ #define CPP_SPEC "\
%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \ %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}" %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
......
...@@ -66,7 +66,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -66,7 +66,6 @@ Boston, MA 02111-1307, USA. */
#undef CPP_SPEC #undef CPP_SPEC
/* Write out the correct language type definition for the header files. /* Write out the correct language type definition for the header files.
Unless we have assembler language, write out the symbols for C. Unless we have assembler language, write out the symbols for C.
cpp_cpu is an Intel specific variant. See i386.h
mieee is an Alpha specific variant. Cross polination a bad idea. mieee is an Alpha specific variant. Cross polination a bad idea.
*/ */
#define CPP_SPEC "\ #define CPP_SPEC "\
...@@ -77,7 +76,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -77,7 +76,6 @@ Boston, MA 02111-1307, USA. */
%{.C: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} \ %{.C: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} \
%{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \ %{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \
-remap \ -remap \
%(cpp_cpu) \
%{posix:-D_POSIX_SOURCE} \ %{posix:-D_POSIX_SOURCE} \
-isystem %$INTERIX_ROOT/usr/include" -isystem %$INTERIX_ROOT/usr/include"
......
...@@ -27,6 +27,5 @@ Boston, MA 02111-1307, USA. */ ...@@ -27,6 +27,5 @@ Boston, MA 02111-1307, USA. */
%{.cxx: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} \ %{.cxx: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} \
%{.C: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} \ %{.C: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus} \
%{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \ %{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \
%(cpp_cpu) \
%{posix:-D_POSIX_SOURCE}" %{posix:-D_POSIX_SOURCE}"
...@@ -474,23 +474,121 @@ extern int x86_prefetch_sse; ...@@ -474,23 +474,121 @@ extern int x86_prefetch_sse;
#endif #endif
/* Target CPU builtins. */ /* Target CPU builtins. */
#define TARGET_CPU_CPP_BUILTINS() \ #define TARGET_CPU_CPP_BUILTINS() \
do \ do \
{ \ { \
if (TARGET_64BIT) \ size_t arch_len = strlen (ix86_arch_string); \
{ \ size_t cpu_len = strlen (ix86_cpu_string); \
builtin_assert ("cpu=x86_64"); \ int last_arch_char = ix86_arch_string[arch_len - 1]; \
builtin_assert ("machine=x86_64"); \ int last_cpu_char = ix86_cpu_string[cpu_len - 1]; \
builtin_define ("__x86_64"); \ \
builtin_define ("__x86_64__"); \ if (TARGET_64BIT) \
} \ { \
else \ builtin_assert ("cpu=x86_64"); \
{ \ builtin_assert ("machine=x86_64"); \
builtin_assert ("cpu=i386"); \ builtin_define ("__x86_64"); \
builtin_assert ("machine=i386"); \ builtin_define ("__x86_64__"); \
builtin_define_std ("i386"); \ } \
} \ else \
} \ { \
builtin_assert ("cpu=i386"); \
builtin_assert ("machine=i386"); \
builtin_define_std ("i386"); \
} \
\
/* Built-ins based on -mcpu= (or -march= if no \
CPU given). */ \
if (TARGET_386) \
builtin_define ("__tune_i386__"); \
else if (TARGET_486) \
builtin_define ("__tune_i486__"); \
else if (TARGET_PENTIUM) \
{ \
builtin_define ("__tune_i586__"); \
builtin_define ("__tune_pentium__"); \
if (last_cpu_char == 'x') \
builtin_define ("__tune_pentium_mmx__"); \
} \
else if (TARGET_PENTIUMPRO) \
{ \
builtin_define ("__tune_i686__"); \
builtin_define ("__tune_pentiumpro__"); \
} \
else if (TARGET_K6) \
{ \
builtin_define ("__tune_k6__"); \
if (last_cpu_char == '2') \
builtin_define ("__tune_k6_2__"); \
else if (last_cpu_char == '3') \
builtin_define ("__tune_k6_3__"); \
} \
else if (TARGET_ATHLON) \
{ \
builtin_define ("__tune_athlon__"); \
/* Only plain "athlon" lacks SSE. */ \
if (last_cpu_char != 'n') \
builtin_define ("__tune_athlon_sse__"); \
} \
else if (TARGET_PENTIUM4) \
builtin_define ("__tune_pentium4__"); \
\
if (TARGET_MMX) \
builtin_define ("__MMX__"); \
if (TARGET_3DNOW) \
builtin_define ("__3dNOW__"); \
if (TARGET_3DNOW_A) \
builtin_define ("__3dNOW_A__"); \
if (TARGET_SSE) \
builtin_define ("__SSE__"); \
if (TARGET_SSE2) \
builtin_define ("__SSE2__"); \
\
/* Built-ins based on -march=. */ \
if (ix86_arch == PROCESSOR_I486) \
{ \
builtin_define ("__i486"); \
builtin_define ("__i486__"); \
} \
else if (ix86_arch == PROCESSOR_PENTIUM) \
{ \
builtin_define ("__i586"); \
builtin_define ("__i586__"); \
builtin_define ("__pentium"); \
builtin_define ("__pentium__"); \
if (last_arch_char == 'x') \
builtin_define ("__pentium_mmx__"); \
} \
else if (ix86_arch == PROCESSOR_PENTIUMPRO) \
{ \
builtin_define ("__i686"); \
builtin_define ("__i686__"); \
builtin_define ("__pentiumpro"); \
builtin_define ("__pentiumpro__"); \
} \
else if (ix86_arch == PROCESSOR_K6) \
{ \
\
builtin_define ("__k6"); \
builtin_define ("__k6__"); \
if (last_arch_char == '2') \
builtin_define ("__k6_2__"); \
else if (last_arch_char == '3') \
builtin_define ("__k6_3__"); \
} \
else if (ix86_arch == PROCESSOR_ATHLON) \
{ \
builtin_define ("__athlon"); \
builtin_define ("__athlon__"); \
/* Only plain "athlon" lacks SSE. */ \
if (last_arch_char != 'n') \
builtin_define ("__athlon_sse__"); \
} \
else if (ix86_arch == PROCESSOR_PENTIUM4) \
{ \
builtin_define ("__pentium4"); \
builtin_define ("__pentium4__"); \
} \
} \
while (0) while (0)
#define TARGET_CPU_DEFAULT_i386 0 #define TARGET_CPU_DEFAULT_i386 0
...@@ -511,96 +609,6 @@ extern int x86_prefetch_sse; ...@@ -511,96 +609,6 @@ extern int x86_prefetch_sse;
"pentiumpro", "pentium2", "pentium3", \ "pentiumpro", "pentium2", "pentium3", \
"pentium4", "k6", "k6-2", "k6-3",\ "pentium4", "k6", "k6-2", "k6-3",\
"athlon", "athlon-4"} "athlon", "athlon-4"}
#ifndef CPP_CPU_DEFAULT_SPEC
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_i486
#define CPP_CPU_DEFAULT_SPEC "-D__tune_i486__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_pentium
#define CPP_CPU_DEFAULT_SPEC "-D__tune_i586__ -D__tune_pentium__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_pentium_mmx
#define CPP_CPU_DEFAULT_SPEC "-D__tune_i586__ -D__tune_pentium__ -D__tune_pentium_mmx__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_pentiumpro
#define CPP_CPU_DEFAULT_SPEC "-D__tune_i686__ -D__tune_pentiumpro__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_pentium2
#define CPP_CPU_DEFAULT_SPEC "-D__tune_i686__ -D__tune_pentiumpro__\
-D__tune_pentium2__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_pentium3
#define CPP_CPU_DEFAULT_SPEC "-D__tune_i686__ -D__tune_pentiumpro__\
-D__tune_pentium2__ -D__tune_pentium3__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_pentium4
#define CPP_CPU_DEFAULT_SPEC "-D__tune_pentium4__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_k6
#define CPP_CPU_DEFAULT_SPEC "-D__tune_k6__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_k6_2
#define CPP_CPU_DEFAULT_SPEC "-D__tune_k6__ -D__tune_k6_2__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_k6_3
#define CPP_CPU_DEFAULT_SPEC "-D__tune_k6__ -D__tune_k6_3__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_athlon
#define CPP_CPU_DEFAULT_SPEC "-D__tune_athlon__"
#endif
#if TARGET_CPU_DEFAULT == TARGET_CPU_DEFAULT_athlon_sse
#define CPP_CPU_DEFAULT_SPEC "-D__tune_athlon__ -D__tune_athlon_sse__"
#endif
#ifndef CPP_CPU_DEFAULT_SPEC
#define CPP_CPU_DEFAULT_SPEC "-D__tune_i386__"
#endif
#endif /* CPP_CPU_DEFAULT_SPEC */
#define CPP_CPU_SPEC "\
%{march=i386:%{!mcpu*:-D__tune_i386__ }}\
%{march=i486:-D__i486 -D__i486__ %{!mcpu*:-D__tune_i486__ }}\
%{march=pentium|march=i586:-D__i586 -D__i586__ -D__pentium -D__pentium__ \
%{!mcpu*:-D__tune_i586__ -D__tune_pentium__ }}\
%{march=pentium-mmx:-D__i586 -D__i586__ -D__pentium -D__pentium__ \
-D__pentium__mmx__ \
%{!mcpu*:-D__tune_i586__ -D__tune_pentium__ -D__tune_pentium_mmx__}}\
%{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=k6-2:-D__k6 -D__k6__ -D__k6_2__ \
%{!mcpu*:-D__tune_k6__ -D__tune_k6_2__ }}\
%{march=k6-3:-D__k6 -D__k6__ -D__k6_3__ \
%{!mcpu*:-D__tune_k6__ -D__tune_k6_3__ }}\
%{march=athlon|march=athlon-tbird:-D__athlon -D__athlon__ \
%{!mcpu*:-D__tune_athlon__ }}\
%{march=athlon-4|march=athlon-xp|march=athlon-mp:-D__athlon -D__athlon__ \
-D__athlon_sse__ \
%{!mcpu*:-D__tune_athlon__ -D__tune_athlon_sse__ }}\
%{march=pentium4:-D__pentium4 -D__pentium4__ %{!mcpu*:-D__tune_pentium4__ }}\
%{m386|mcpu=i386:-D__tune_i386__ }\
%{m486|mcpu=i486:-D__tune_i486__ }\
%{mpentium|mcpu=pentium|mcpu=i586|mcpu=pentium-mmx:-D__tune_i586__ -D__tune_pentium__ }\
%{mpentiumpro|mcpu=pentiumpro|mcpu=i686|cpu=pentium2|cpu=pentium3:-D__tune_i686__ \
-D__tune_pentiumpro__ }\
%{mcpu=k6|mcpu=k6-2|mcpu=k6-3:-D__tune_k6__ }\
%{mcpu=athlon|mcpu=athlon-tbird|mcpu=athlon-4|mcpu=athlon-xp|mcpu=athlon-mp:\
-D__tune_athlon__ }\
%{mcpu=athlon-4|mcpu=athlon-xp|mcpu=athlon-mp:\
-D__tune_athlon_sse__ }\
%{mcpu=pentium4:-D__tune_pentium4__ }\
%{march=athlon-tbird|march=athlon-xp|march=athlon-mp|march=pentium3|march=pentium4:\
-D__SSE__ }\
%{march=pentium-mmx|march=k6|march=k6-2|march=k6-3\
|march=athlon|march=athlon-tbird|march=athlon-4|march=athlon-xp\
|march=athlon-mp|march=pentium2|march=pentium3|march=pentium4: -D__MMX__ }\
%{march=k6-2|march=k6-3\
|march=athlon|march=athlon-tbird|march=athlon-4|march=athlon-xp\
|march=athlon-mp: -D__3dNOW__ }\
%{march=athlon|march=athlon-tbird|march=athlon-4|march=athlon-xp\
|march=athlon-mp: -D__3dNOW_A__ }\
%{msse2: -D__SSE2__ }\
%{march=pentium4: -D__SSE2__ }\
%{!march*:%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}}}"
#ifndef CC1_SPEC #ifndef CC1_SPEC
#define CC1_SPEC "%(cc1_cpu) " #define CC1_SPEC "%(cc1_cpu) "
...@@ -621,8 +629,6 @@ extern int x86_prefetch_sse; ...@@ -621,8 +629,6 @@ extern int x86_prefetch_sse;
#endif #endif
#define EXTRA_SPECS \ #define EXTRA_SPECS \
{ "cpp_cpu_default", CPP_CPU_DEFAULT_SPEC }, \
{ "cpp_cpu", CPP_CPU_SPEC }, \
{ "cc1_cpu", CC1_CPU_SPEC }, \ { "cc1_cpu", CC1_CPU_SPEC }, \
SUBTARGET_EXTRA_SPECS SUBTARGET_EXTRA_SPECS
......
...@@ -45,7 +45,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -45,7 +45,7 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES "" #define CPP_PREDEFINES ""
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu)" #define CPP_SPEC ""
#define ENDFILE_SPEC "crtend.o%s" #define ENDFILE_SPEC "crtend.o%s"
......
...@@ -29,7 +29,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -29,7 +29,7 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES "-Dunix -D__gnu_linux__ -Dlinux -Asystem=posix" #define CPP_PREDEFINES "-Dunix -D__gnu_linux__ -Dlinux -Asystem=posix"
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}" #define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
#undef SIZE_TYPE #undef SIZE_TYPE
#define SIZE_TYPE "unsigned int" #define SIZE_TYPE "unsigned int"
......
...@@ -85,9 +85,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -85,9 +85,9 @@ Boston, MA 02111-1307, USA. */
#undef CPP_SPEC #undef CPP_SPEC
#ifdef USE_GNULIBC_1 #ifdef USE_GNULIBC_1
#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}" #define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
#else #else
#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" #define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
#endif #endif
#undef CC1_SPEC #undef CC1_SPEC
......
...@@ -27,7 +27,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -27,7 +27,7 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -Asystem(posix)" #define CPP_PREDEFINES "-D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -Asystem(posix)"
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} %{!m32:-D__LONG_MAX__=9223372036854775807L}" #define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} %{!m32:-D__LONG_MAX__=9223372036854775807L}"
/* Provide a LINK_SPEC. Here we provide support for the special GCC /* Provide a LINK_SPEC. Here we provide support for the special GCC
options -static and -shared, which allow us to link things in one options -static and -shared, which allow us to link things in one
......
...@@ -48,7 +48,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -48,7 +48,7 @@ Boston, MA 02111-1307, USA. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC \ #define CPP_SPEC \
"%(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \ "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \
-D__stdcall=__attribute__((__stdcall__)) \ -D__stdcall=__attribute__((__stdcall__)) \
-D__cdecl=__attribute__((__cdecl__)) \ -D__cdecl=__attribute__((__cdecl__)) \
%{!ansi:-D_stdcall=__attribute__((__stdcall__)) \ %{!ansi:-D_stdcall=__attribute__((__stdcall__)) \
......
...@@ -52,7 +52,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -52,7 +52,7 @@ Boston, MA 02111-1307, USA. */
/* Provide a CPP_SPEC appropriate for NetBSD. */ /* Provide a CPP_SPEC appropriate for NetBSD. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %(netbsd_cpp_spec)" #define CPP_SPEC "%(netbsd_cpp_spec)"
/* Make gcc agree with <machine/ansi.h> */ /* Make gcc agree with <machine/ansi.h> */
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
{ "netbsd_cpp_spec", NETBSD_CPP_SPEC }, { "netbsd_cpp_spec", NETBSD_CPP_SPEC },
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %(netbsd_cpp_spec)" #define CPP_SPEC "%(netbsd_cpp_spec)"
#undef SIZE_TYPE #undef SIZE_TYPE
......
...@@ -56,7 +56,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -56,7 +56,7 @@ Boston, MA 02111-1307, USA. */
/* Provide a CPP_SPEC appropriate for NetBSD. */ /* Provide a CPP_SPEC appropriate for NetBSD. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %(netbsd_cpp_spec)" #define CPP_SPEC "%(netbsd_cpp_spec)"
/* Output assembler code to FILE to call the profiler. */ /* Output assembler code to FILE to call the profiler. */
......
...@@ -28,4 +28,4 @@ Boston, MA 02111-1307, USA. */ ...@@ -28,4 +28,4 @@ Boston, MA 02111-1307, USA. */
-D__ELF__ -D__i386__ -D__USE_INIT_FINI__" -D__ELF__ -D__i386__ -D__USE_INIT_FINI__"
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %{msoft-float:-D_SOFT_FLOAT}" #define CPP_SPEC "%{msoft-float:-D_SOFT_FLOAT}"
...@@ -641,7 +641,7 @@ init_section () \ ...@@ -641,7 +641,7 @@ init_section () \
/* You are in a maze of GCC specs ... all alike */ /* You are in a maze of GCC specs ... all alike */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) \ #define CPP_SPEC "\
%{fpic:%{mcoff:%e-fpic is not valid with -mcoff}} \ %{fpic:%{mcoff:%e-fpic is not valid with -mcoff}} \
%{fPIC:%{mcoff:%e-fPIC is not valid with -mcoff}} \ %{fPIC:%{mcoff:%e-fPIC is not valid with -mcoff}} \
-D__i386 -D__unix -D_SCO_DS=1 -D_M_I386 -D_M_XENIX -D_M_UNIX \ -D__i386 -D__unix -D_SCO_DS=1 -D_M_I386 -D_M_XENIX -D_M_UNIX \
......
...@@ -85,7 +85,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -85,7 +85,6 @@ Boston, MA 02111-1307, USA. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC \ #define CPP_SPEC \
"%{.S:-P} \ "%{.S:-P} \
%(cpp_cpu) \
%{pthreads:-D_REENTRANT -D_PTHREADS} \ %{pthreads:-D_REENTRANT -D_PTHREADS} \
%{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \ %{!pthreads:%{threads:-D_REENTRANT -D_SOLARIS_THREADS}} \
%{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude}" %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude}"
......
...@@ -34,7 +34,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -34,7 +34,7 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES "-Dunix -Asystem=svr3" #define CPP_PREDEFINES "-Dunix -Asystem=svr3"
#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE}" #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
/* Writing `int' for a bitfield forces int alignment for the structure. */ /* Writing `int' for a bitfield forces int alignment for the structure. */
......
...@@ -142,4 +142,4 @@ Boston, MA 02111-1307, USA. */ ...@@ -142,4 +142,4 @@ Boston, MA 02111-1307, USA. */
#endif #endif
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu)" #define CPP_SPEC ""
...@@ -31,4 +31,4 @@ Boston, MA 02111-1307, USA. */ ...@@ -31,4 +31,4 @@ Boston, MA 02111-1307, USA. */
%{!shared:%{!symbolic:-lc -lcrt}}" %{!shared:%{!symbolic:-lc -lcrt}}"
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %{pthread:-D_REENTRANT} %{pthreadT:-D_REENTRANT}" #define CPP_SPEC "%{pthread:-D_REENTRANT} %{pthreadT:-D_REENTRANT}"
...@@ -42,7 +42,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -42,7 +42,7 @@ Boston, MA 02111-1307, USA. */
-Asystem=winnt" -Asystem=winnt"
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} \ #define CPP_SPEC "-remap %{posix:-D_POSIX_SOURCE} \
-include /usr/include/astwin32.h \ -include /usr/include/astwin32.h \
-idirafter /usr/gnu/include/mingw32" -idirafter /usr/gnu/include/mingw32"
......
...@@ -36,7 +36,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -36,7 +36,7 @@ Boston, MA 02111-1307, USA. */
%{mcpu=pentium:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUM %(cpp_586)} \ %{mcpu=pentium:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUM %(cpp_586)} \
%{mpentiumpro:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUMPRO %(cpp_686)} \ %{mpentiumpro:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUMPRO %(cpp_686)} \
%{mcpu=pentiumpro:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUMPRO %(cpp_686)} \ %{mcpu=pentiumpro:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUMPRO %(cpp_686)} \
%{!mcpu*:%{!m486:%{!mpentium*:-DCPU=I80386 %(cpp_cpu_default)}}}}" %{!mcpu*:%{!m486:%{!mpentium*:-DCPU=I80386}}}}"
#define HANDLE_SYSV_PRAGMA #define HANDLE_SYSV_PRAGMA
......
...@@ -74,7 +74,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -74,7 +74,7 @@ Boston, MA 02111-1307, USA. */
%{mcygwin:crt0%O%s} %{pg:gcrt0%O%s}}" %{mcygwin:crt0%O%s} %{pg:gcrt0%O%s}}"
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} \ #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} \
%{!mcygwin:-iwithprefixbefore include/mingw32 -D__MINGW32__} \ %{!mcygwin:-iwithprefixbefore include/mingw32 -D__MINGW32__} \
%{mcygwin:-D__CYGWIN32__ -D__CYGWIN__}" %{mcygwin:-D__CYGWIN32__ -D__CYGWIN__}"
......
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