From: Jim Wilson Date: Tue, 8 Mar 1994 01:39:43 +0000 (-0800) Subject: (ASM_SPEC): Make definition depend on whether or not the default assembler is gas. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68869126d35f5209c4c937f3e76e1ccdaccb10d6;p=gcc.git (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 --- 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