Patch: %{<flag} spec syntax

Nick Clifton nickc@cygnus.com
Mon Mar 27 10:40:00 GMT 2000


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


More information about the Gcc-patches mailing list