diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-03-08 01:39:43 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-03-08 01:39:43 +0000 |
commit | aee9fd99a65763bd3c898303968682394658e35f (patch) | |
tree | 76d7c289d1cfaae5ed8da9303683a18e35cb515b /gcc/config/mips/iris4loser.h | |
parent | df951c2d6b58908e7053d262c8302fe1cb440e6c (diff) | |
download | gcc-aee9fd99a65763bd3c898303968682394658e35f.tar.gz |
(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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6715 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/iris4loser.h')
-rw-r--r-- | gcc/config/mips/iris4loser.h | 43 |
1 files changed, 33 insertions, 10 deletions
diff --git a/gcc/config/mips/iris4loser.h b/gcc/config/mips/iris4loser.h index 2482071a55f..9503d7a2c6a 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 |