aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2002-04-03 17:15:40 -0800
committerDavid S. Miller <davem@gcc.gnu.org>2002-04-03 17:15:40 -0800
commitbbd7687d3e3694bdb83ff7d6ca97564c04c46eea (patch)
treedadbe364c517553bccee685542958c5b2aa45f23 /gcc/doc
parenteb81f6ff2831e13915357daf193fd59f9bee5a01 (diff)
downloadgcc-bbd7687d3e3694bdb83ff7d6ca97564c04c46eea.zip
gcc-bbd7687d3e3694bdb83ff7d6ca97564c04c46eea.tar.gz
gcc-bbd7687d3e3694bdb83ff7d6ca97564c04c46eea.tar.bz2
gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library sequence passed to the linker.
2002-04-03 David S. Miller <davem@redhat.com> * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library sequence passed to the linker. (LINK_COMMAND_SPEC): Use it. * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as a macro a target can use to avoid overriding LINK_COMMAND_SPEC. * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define. From-SVN: r51834
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/tm.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 021d023..c566c29 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -377,6 +377,11 @@ the argument @option{-lgcc} to tell the linker to do the search.
This macro is similar to @code{LINK_LIBGCC_SPECIAL}, except that it does
not affect @option{-L} options.
+@findex LINK_GCC_C_SEQUENCE_SPEC
+@item LINK_GCC_C_SEQUENCE_SPEC
+The sequence in which libgcc and libc are specified to the linker.
+By default this is @code{%G %L %G}.
+
@findex LINK_COMMAND_SPEC
@item LINK_COMMAND_SPEC
A C string constant giving the complete command line need to execute the
@@ -384,7 +389,8 @@ linker. When you do this, you will need to update your port each time a
change is made to the link command line within @file{gcc.c}. Therefore,
define this macro only if you need to completely redefine the command
line for invoking the linker and there is no other way to accomplish
-the effect you need.
+the effect you need. Overriding this macro may be avoidable by overriding
+@code{LINK_GCC_C_SEQUENCE_SPEC} instead.
@findex LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
@item LINK_ELIMINATE_DUPLICATE_LDIRECTORIES