]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Update documentation of %X spec
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 28 Oct 2021 13:51:14 +0000 (15:51 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 28 Oct 2021 13:58:11 +0000 (15:58 +0200)
%X
Output the accumulated linker options specified by -Wl or a ‘%x’ spec string

The part about -Wl has been obsolete for 27 years, since this change:

Author: Torbjorn Granlund <tege@gnu.org>
Date:   Thu Oct 27 18:04:25 1994 +0000

    (process_command): Handle -Wl, and -Xlinker similar to -l,

    i.e., preserve their order with respect to linker input files.

Technically speaking, the arguments of -l, -Wl and -Xlinker are input files.

gcc/
* doc/invoke.texi (%X): Remove obsolete reference to -Wl.

gcc/doc/invoke.texi

index 6d3cfcc664e214dfe1977c1f19bf2c9c56ebdecb..c196f1179af08e9eea42b92d0a50467128eccf7b 100644 (file)
@@ -30844,8 +30844,7 @@ Substitute the contents of spec string @var{name} at this point.
 Accumulate an option for @samp{%X}.
 
 @item %X
-Output the accumulated linker options specified by @option{-Wl} or a @samp{%x}
-spec string.
+Output the accumulated linker options specified by a @samp{%x} spec string.
 
 @item %Y
 Output the accumulated assembler options specified by @option{-Wa}.