From cbe16f8a7df8eabfb00de694ef3fc7bc2479888f Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 20 Feb 1996 00:10:42 +0000 Subject: [PATCH] sol2.h (CPP_SPEC): Use %(cpp_cpu). * sparc/sol2.h (CPP_SPEC): Use %(cpp_cpu). (ASM_SPEC): Likewise. (ASM_{DEFAULT,CPU}_SPEC): Use Solaris syntax for sparc64. From-SVN: r11315 --- gcc/config/sparc/sol2.h | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index 70c871a19a1..9d176889a10 100644 --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -31,16 +31,31 @@ Boston, MA 02111-1307, USA. */ #undef CPP_SPEC #define CPP_SPEC "\ - %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude}\ - %{msparclite:-D__sparclite__} %{mv8:-D__sparc_v8__}\ - %{msupersparc:-D__supersparc__ -D__sparc_v8__}" +%{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude} \ +%(cpp_cpu) \ +" /* The sun bundled assembler doesn't accept -Yd, (and neither does gas). It's safe to pass -s always, even if -g is not used. */ #undef ASM_SPEC -#define ASM_SPEC \ - "%{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s \ - %{fpic:-K PIC} %{fPIC:-K PIC}" +#define ASM_SPEC "\ +%{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s \ +%{fpic:-K PIC} %{fPIC:-K PIC} \ +%(asm_cpu) \ +" + +/* This is here rather than in sparc.h because it's not known what + other assemblers will accept. */ +#if TARGET_CPU_DEFAULT == TARGET_CPU_sparc64 +#undef ASM_DEFAULT_SPEC +#define ASM_DEFAULT_SPEC "-xarch=v8plus" +#endif +#undef ASM_CPU_SPEC +#define ASM_CPU_SPEC "\ +%{-mcpu=v9:-xarch=v8plus} \ +%{-mcpu=ultrasparc:-xarch=v8plus} \ +%{!mcpu*:%(asm_default)} \ +" /* However it appears that Solaris 2.0 uses the same reg numbering as the old BSD-style system did. */ -- 2.30.2