aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-03-07 17:39:43 -0800
committerJim Wilson <wilson@gcc.gnu.org>1994-03-07 17:39:43 -0800
commit68869126d35f5209c4c937f3e76e1ccdaccb10d6 (patch)
tree76d7c289d1cfaae5ed8da9303683a18e35cb515b /gcc
parent22cb6fe8ccbad6f4a5dc77c31fffcaa5b9c82786 (diff)
downloadgcc-68869126d35f5209c4c937f3e76e1ccdaccb10d6.zip
gcc-68869126d35f5209c4c937f3e76e1ccdaccb10d6.tar.gz
gcc-68869126d35f5209c4c937f3e76e1ccdaccb10d6.tar.bz2
(ASM_SPEC): Make definition depend on whether or not the default assembler is gas.
(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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/mips/iris4loser.h43
1 files changed, 33 insertions, 10 deletions
diff --git a/gcc/config/mips/iris4loser.h b/gcc/config/mips/iris4loser.h
index 2482071..9503d7a 100644
--- a/gcc/config/mips/iris4loser.h
+++ b/gcc/config/mips/iris4loser.h
@@ -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