This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add Tru64 options from specs to new alpha/osf5.opt
On Mon, 31 Jan 2011, Rainer Orth wrote:
> "Joseph S. Myers" <joseph@codesourcery.com> writes:
>
> > Index: gcc/config/alpha/osf5.opt
> > ===================================================================
> > --- gcc/config/alpha/osf5.opt (revision 0)
> > +++ gcc/config/alpha/osf5.opt (revision 0)
> > @@ -0,0 +1,39 @@
> > +; Tru64 options.
>
> Tru64 UNIX, please.
>
> > +K
> > +Driver
> > +
> > +pthread
> > +Driver
> > +
> > +taso
> > +Driver
> > +
> > +threads
> > +Driver
>
> What about malpha-as, mgas from ASM_SPEC, mno-mips-tfile
> (resp. mmips-tfile) from ASM_FINAL_SPEC?
-malpha-as and -mgas are already in alpha.opt. I have added
-mno-mips-tfile to this patch version, which I have committed; the specs
don't accept the -mmips-tfile version. (In general I have not paid
attention to specs handling -m or -f options when preparing this patch
series, on the basis that all such options are passed down automatically
to cc1 so any such option not already listed in .opt files is already
broken for any call to the driver that results in compilation rather than
just calling the assembler or linker. So such options are only added to
.opt files in this series if I was suspicious for some reason on seeing
the specs handling them. I do plan another pass over all specs to look
for missed options before preparing the patch - for 4.7 - that actually
stops the driver from accepting unknown options matched by specs.)
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc (revision 169317)
+++ gcc/config.gcc (working copy)
@@ -736,7 +736,7 @@ alpha*-dec-osf5.1*)
tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-crtfm alpha/t-osf5"
tm_file="${tm_file} alpha/osf5.h"
tm_defines="${tm_defines} TARGET_SUPPORT_ARCH=1"
- extra_options="${extra_options} rpath.opt"
+ extra_options="${extra_options} rpath.opt alpha/osf5.opt"
extra_headers=va_list.h
use_gcc_stdint=provide
case ${enable_threads} in
Index: gcc/config/alpha/osf5.opt
===================================================================
--- gcc/config/alpha/osf5.opt (revision 0)
+++ gcc/config/alpha/osf5.opt (revision 0)
@@ -0,0 +1,42 @@
+; Tru64 UNIX options.
+
+; Copyright (C) 2011
+; Free Software Foundation, Inc.
+;
+; This file is part of GCC.
+;
+; GCC is free software; you can redistribute it and/or modify it under
+; the terms of the GNU General Public License as published by the Free
+; Software Foundation; either version 3, or (at your option) any later
+; version.
+;
+; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+; WARRANTY; without even the implied warranty of MERCHANTABILITY or
+; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+; for more details.
+;
+; You should have received a copy of the GNU General Public License
+; along with GCC; see the file COPYING3. If not see
+; <http://www.gnu.org/licenses/>.
+
+; See the GCC internals manual (options.texi) for a description of
+; this file's format.
+
+; Please try to keep this file in ASCII collating order.
+
+K
+Driver
+
+mno-mips-tfile
+Driver RejectNegative
+
+pthread
+Driver
+
+taso
+Driver
+
+threads
+Driver
+
+; This comment is to ensure we retain the blank line above.
--
Joseph S. Myers
joseph@codesourcery.com