This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: %{<flag} spec syntax
- To: tromey at cygnus dot com
- Subject: Re: Patch: %{<flag} spec syntax
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Mon, 27 Mar 2000 10:39:09 -0800
- CC: gcc-patches at gcc dot gnu dot org
Hi Tom,
: 2000-03-26 Tom Tromey <tromey@cygnus.com>
:
: * gcc.c (handle_braces): Recognize `%{<S}' construct.
: (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
: defines.
: (process_command): Use them.
: (check_live_switch): Likewise.
: (give_switch): Skip ignored switches.
One thing this patch failed to do was to add documenation about the
new spec operator to invoke.texi. I have checked in the following
patch to address this.
Cheers
Nick
2000-03-27 Nick Clifton <nickc@cygnus.com>
* invoke.texi (Spec Files): Document new spec % command created by
Tom Tromey's recent patch.
Index: invoke.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/invoke.texi,v
retrieving revision 1.178
diff -p -r1.178 invoke.texi
*** invoke.texi 2000/03/10 19:50:09 1.178
--- invoke.texi 2000/03/27 18:38:43
*************** text, including the space. Thus two arg
*** 3586,3591 ****
--- 3586,3597 ----
Like %@{@code{S}*@}, but don't put a blank between a switch and its
argument. Thus %@{^o*@} would only generate one argument, not two.
+ @item %@{<@code{S}@}
+ Remove all occurences of @code{S} from the command line. Note - this
+ command is position dependent. @samp{%} commands in the spec string
+ before this option will see @code{S}, @samp{%} commands in the spec
+ string after this option will not.
+
@item %@{@code{S}*:@code{X}@}
Substitutes @code{X} if one or more switches whose names start with
@code{-S} are specified to GCC. Note that the tail part of the