From 98312a9bed2a80aa30c3cc2abc70f50def92d595 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 13 Mar 2007 07:15:51 +0000 Subject: [PATCH] * doc/invoke.texi (Spec Files): Update for '%{,' spec. From-SVN: r122878 --- gcc/ChangeLog | 4 +++- gcc/doc/invoke.texi | 19 +++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6b82882b3fa..e11f80a2aa1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,6 @@ -2007-03-11 Geoffrey Keating +2007-03-13 Geoffrey Keating + + * doc/invoke.texi (Spec Files): Update for '%{,' spec. * config/rs6000/darwin-fallback.c: Compile file only on powerpc. (handle_syscall): Handle direct system calls. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 0a7ebbccd04..61e82c30cff 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -7587,12 +7587,19 @@ Substitutes @code{X}, if processing a file with suffix @code{S}. @item %@{!.@code{S}:@code{X}@} Substitutes @code{X}, if @emph{not} processing a file with suffix @code{S}. +@item %@{,@code{S}:@code{X}@} +Substitutes @code{X}, if processing a file for language @code{S}. + +@item %@{!,@code{S}:@code{X}@} +Substitutes @code{X}, if not processing a file for language @code{S}. + @item %@{@code{S}|@code{P}:@code{X}@} -Substitutes @code{X} if either @code{-S} or @code{-P} was given to GCC@. -This may be combined with @samp{!}, @samp{.}, and @code{*} sequences as well, -although they have a stronger binding than the @samp{|}. If @code{%*} -appears in @code{X}, all of the alternatives must be starred, and only -the first matching alternative is substituted. +Substitutes @code{X} if either @code{-S} or @code{-P} was given to +GCC@. This may be combined with @samp{!}, @samp{.}, @samp{,}, and +@code{*} sequences as well, although they have a stronger binding than +the @samp{|}. If @code{%*} appears in @code{X}, all of the +alternatives must be starred, and only the first matching alternative +is substituted. For example, a spec string like this: @@ -7615,7 +7622,7 @@ jim.d -bar -boggle If @code{S} was given to GCC, substitutes @code{X}; else if @code{T} was given to GCC, substitutes @code{Y}; else substitutes @code{D}. There can be as many clauses as you need. This may be combined with @code{.}, -@code{!}, @code{|}, and @code{*} as needed. +@code{,}, @code{!}, @code{|}, and @code{*} as needed. @end table -- 2.30.2