From patchwork Fri Feb 4 23:47:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Add SPARC Solaris options from specs to new sparc/sol2.opt Date: Fri, 04 Feb 2011 13:47:36 -0000 From: "Joseph S. Myers" X-Patchwork-Id: 81983 Message-Id: To: Rainer Orth Cc: Eric Botcazou , gcc-patches@gcc.gnu.org, rth@redhat.com, davem@redhat.com, jakub@redhat.com On Fri, 4 Feb 2011, Rainer Orth wrote: > Eric Botcazou writes: > > >> Tested building cc1 and xgcc for cross to sparc-solaris2.8. OK to > >> commit? (Or, in the alternative, OK to commit the obvious patch to > >> remove %{sun4:} %{target:} from specs in sol2-bi.h?) > > > > I'd personally be in favor of the latter solution. What do you think, Rainer? > > Me too. I couldn't find any hint of -sun4 or -target (with or without > sun4) in not-too-ancient Studio compilers. This stuff seems like > ancient (as in SunOS 4) history to me, so good riddance. Is this alternative patch OK, then? 2011-02-04 Joseph Myers * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}. Index: gcc/config/sparc/sol2-bi.h =================================================================== --- gcc/config/sparc/sol2-bi.h (revision 169841) +++ gcc/config/sparc/sol2-bi.h (working copy) @@ -229,14 +229,12 @@ see the files COPYING3 and COPYING.RUNTI #undef CC1_SPEC #if DEFAULT_ARCH32_P #define CC1_SPEC "\ -%{sun4:} %{target:} \ %{m64:%{m32:%emay not use both -m32 and -m64}} \ %{m64:-mptr64 -mstack-bias -mno-v8plus \ %{!mcpu*:-%{!mv8plus:mcpu=v9}}} \ " #else #define CC1_SPEC "\ -%{sun4:} %{target:} \ %{m32:%{m64:%emay not use both -m32 and -m64}} \ %{m32:-mptr32 -mno-stack-bias \ %{!mcpu*:%{!mv8plus:-mcpu=v9}}} \