]> 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:56:44 +0000 (15:56 +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 2eb874a7176d9ea316d9b1207cdfc871ee2541d0..b8d080524d8dd03ba252031779bd68b6f630908d 100644 (file)
@@ -32340,8 +32340,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}.