aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-02-20 00:10:42 +0000
committerDoug Evans <dje@gnu.org>1996-02-20 00:10:42 +0000
commitcbe16f8a7df8eabfb00de694ef3fc7bc2479888f (patch)
tree8b73ec9727944b6e9906299a83af4e46f3b6eb31 /gcc
parent4d790f67ee1aa4e5b1bc8e0b1a001284180c1030 (diff)
downloadgcc-cbe16f8a7df8eabfb00de694ef3fc7bc2479888f.zip
gcc-cbe16f8a7df8eabfb00de694ef3fc7bc2479888f.tar.gz
gcc-cbe16f8a7df8eabfb00de694ef3fc7bc2479888f.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/sparc/sol2.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h
index 70c871a..9d17688 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. */