]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 12 Jul 2004 13:16:44 +0000 (15:16 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 12 Jul 2004 13:16:44 +0000 (13:16 +0000)
* config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
(CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
(ASM_CPU_SPEC): Likewise
* config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
(ASM_CPU_SPEC): Handle -mcpu=ultrasparc3.

From-SVN: r84555

gcc/ChangeLog
gcc/config/sparc/sol2-bi.h
gcc/config/sparc/sol2.h

index 2cde39f75100a24a636e781c32f115a72c1e8fdf..2e39497425f482116f2353297de548835d517c89 100644 (file)
@@ -1,3 +1,11 @@
+2004-07-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
+       (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
+       (ASM_CPU_SPEC): Likewise
+       * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
+       (ASM_CPU_SPEC): Handle -mcpu=ultrasparc3.
+
 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * pa.c (output_indirect_call): Only use %r2 as the link register in
index f3bf160f6a5b051387d21093e33dd7b56b05b287..680ca7c208423428a110bc7098787e3b228ec55d 100644 (file)
@@ -18,6 +18,7 @@
 #undef ASM_CPU32_DEFAULT_SPEC
 #define ASM_CPU32_DEFAULT_SPEC "-xarch=v8plus"
 #endif
+
 #if TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc
 #undef CPP_CPU64_DEFAULT_SPEC
 #define CPP_CPU64_DEFAULT_SPEC ""
 #define ASM_CPU64_DEFAULT_SPEC AS_SPARC64_FLAG "a"
 #endif
 
+#if TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3
+#undef CPP_CPU64_DEFAULT_SPEC
+#define CPP_CPU64_DEFAULT_SPEC ""
+#undef ASM_CPU32_DEFAULT_SPEC
+#define ASM_CPU32_DEFAULT_SPEC "-xarch=v8plusb"
+#undef ASM_CPU64_DEFAULT_SPEC
+#define ASM_CPU64_DEFAULT_SPEC AS_SPARC64_FLAG "b"
+#endif
+
 #if DEFAULT_ARCH32_P
 #define DEF_ARCH32_SPEC(__str) "%{!m64:" __str "}"
 #define DEF_ARCH64_SPEC(__str) "%{m64:" __str "}"
 %{mcpu=sparclite|mcpu-f930|mcpu=f934:-D__sparclite__} \
 %{mcpu=v8:" DEF_ARCH32_SPEC("-D__sparcv8") "} \
 %{mcpu=supersparc:-D__supersparc__ " DEF_ARCH32_SPEC("-D__sparcv8") "} \
-%{mcpu=v9|mcpu=ultrasparc:" DEF_ARCH32_SPEC("-D__sparcv8") "} \
+%{mcpu=v9|mcpu=ultrasparc|mcpu=ultrasparc3:" DEF_ARCH32_SPEC("-D__sparcv8") "} \
 %{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:%(cpp_cpu_default)}}}}}}} \
 "
 
 #undef ASM_CPU_SPEC
 #define ASM_CPU_SPEC "\
-%{mcpu=ultrasparc:" DEF_ARCH32_SPEC("-xarch=v8plusa") DEF_ARCH64_SPEC(AS_SPARC64_FLAG "a") "} \
 %{mcpu=v9:" DEF_ARCH32_SPEC("-xarch=v8plus") DEF_ARCH64_SPEC(AS_SPARC64_FLAG) "} \
-%{!mcpu=ultrasparc:%{!mcpu=v9:%{mcpu*:" DEF_ARCH32_SPEC("-xarch=v8") DEF_ARCH64_SPEC(AS_SPARC64_FLAG) "}}} \
+%{mcpu=ultrasparc:" DEF_ARCH32_SPEC("-xarch=v8plusa") DEF_ARCH64_SPEC(AS_SPARC64_FLAG "a") "} \
+%{mcpu=ultrasparc3:" DEF_ARCH32_SPEC("-xarch=v8plusb") DEF_ARCH64_SPEC(AS_SPARC64_FLAG "b") "} \
+%{!mcpu=ultrasparc3:%{!mcpu=ultrasparc:%{!mcpu=v9:%{mcpu*:" DEF_ARCH32_SPEC("-xarch=v8") DEF_ARCH64_SPEC(AS_SPARC64_FLAG) "}}}} \
 %{!mcpu*:%(asm_cpu_default)} \
 "
 
index 3026e405f61cacb0feeca8fca4c06db694ab72b5..00654038d0701f2f791dc2e1a3960f1bf958a427 100644 (file)
@@ -39,11 +39,17 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_CPU_DEFAULT_SPEC "-xarch=v8plusa"
 #endif
 
+#if TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3
+#undef ASM_CPU_DEFAULT_SPEC
+#define ASM_CPU_DEFAULT_SPEC "-xarch=v8plusb"
+#endif
+
 #undef ASM_CPU_SPEC
 #define ASM_CPU_SPEC "\
 %{mcpu=v8plus:-xarch=v8plus} \
 %{mcpu=v9:-xarch=v8plus} \
 %{mcpu=ultrasparc:-xarch=v8plusa} \
+%{mcpu=ultrasparc3:-xarch=v8plusb} \
 %{!mcpu*:%(asm_cpu_default)} \
 "