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
This commit is contained in:
Doug Evans 1996-02-20 00:10:42 +00:00
parent 4d790f67ee
commit cbe16f8a7d

View File

@ -31,16 +31,31 @@ Boston, MA 02111-1307, USA. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "\ #define CPP_SPEC "\
%{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude}\ %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude} \
%{msparclite:-D__sparclite__} %{mv8:-D__sparc_v8__}\ %(cpp_cpu) \
%{msupersparc:-D__supersparc__ -D__sparc_v8__}" "
/* The sun bundled assembler doesn't accept -Yd, (and neither does gas). /* 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. */ It's safe to pass -s always, even if -g is not used. */
#undef ASM_SPEC #undef ASM_SPEC
#define ASM_SPEC \ #define ASM_SPEC "\
"%{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s \ %{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s \
%{fpic:-K PIC} %{fPIC:-K PIC}" %{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 /* However it appears that Solaris 2.0 uses the same reg numbering as
the old BSD-style system did. */ the old BSD-style system did. */