(ASM_SPEC): Make definition depend on whether or not the default assembler is gas.
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 8 Mar 1994 01:39:43 +0000 (17:39 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 8 Mar 1994 01:39:43 +0000 (17:39 -0800)
(ASM_SPEC):  Make definition depend on whether or
not the default assembler is gas.  Pass all normal assembler
options to gas.  Pass -O0 if the assembler is not gas.

From-SVN: r6715

gcc/config/mips/iris4loser.h

index 2482071a55fbebcde2e2dcc17ea04e8d35864cea..9503d7a2c6abd6f561bce72fed79f059e07c6c36 100644 (file)
@@ -1,18 +1,41 @@
-/* Like iris4.h, but always inhibits assembler optimization.
+/* Like iris4.h, but always inhibits assembler optimization for MIPS as.
    Use this via mips-sgi-iris4loser if you need it.  */
 
 #include "mips/iris4.h"
 
 #undef ASM_SPEC
+#if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GAS) != 0
+/* GAS */
 #define ASM_SPEC "\
-%{!mgas: \
-       %{!mrnames: %{!.s:-nocpp} %{.s: %{cpp} %{nocpp}}} \
+%{noasmopt:-O0} \
+%{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}} \
+%{mmips-as: \
+       %{!.s:-nocpp} %{.s: %{cpp} %{nocpp}} \
+       -O0 \
        %{pipe: %e-pipe is not supported.} \
-       %{mips1} %{mips2} %{mips3} \
+       %{K}} \
+%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{v} \
+%{g} %{g0} %{g1} %{g2} %{g3} \
+%{ggdb:-g} %{ggdb0:-g0} %{ggdb1:-g1} %{ggdb2:-g2} %{ggdb3:-g3} \
+%{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} \
+%{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} \
+%{gcoff:-g} %{gcoff0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3}"
+
+#else
+/* not GAS */
+#define ASM_SPEC "\
+%{noasmopt:-O0} \
+%{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}} \
+%{!mgas: \
+       %{!.s:-nocpp} %{.s: %{cpp} %{nocpp}} \
        -O0 \
-       %{g} %{g0} %{g1} %{g2} %{g3} %{v} %{K} \
-       %{ggdb:-g} %{ggdb0:-g0} %{ggdb1:-g1} %{ggdb2:-g2} %{ggdb3:-g3} \
-       %{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} \
-       %{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} \
-       %{gcoff:-g} %{gstabs0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3}} \
-%{G*}"
+       %{pipe: %e-pipe is not supported.} \
+       %{K}} \
+%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{v} \
+%{g} %{g0} %{g1} %{g2} %{g3} \
+%{ggdb:-g} %{ggdb0:-g0} %{ggdb1:-g1} %{ggdb2:-g2} %{ggdb3:-g3} \
+%{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} \
+%{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} \
+%{gcoff:-g} %{gcoff0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3}"
+
+#endif