diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2002-10-14 07:15:39 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2002-10-14 07:15:39 +0000 |
commit | db36994b97e9bf3677575904a5fabb62b2bc81e8 (patch) | |
tree | 0cc93a95de2023f1fadaefdc7bf5081a6ac353b1 /gcc/doc | |
parent | 11e5489b1ecfb256cc64970a87b32f0cd856ec15 (diff) | |
download | gcc-db36994b97e9bf3677575904a5fabb62b2bc81e8.zip gcc-db36994b97e9bf3677575904a5fabb62b2bc81e8.tar.gz gcc-db36994b97e9bf3677575904a5fabb62b2bc81e8.tar.bz2 |
tm.texi (DRIVER_SELF_SPECS): Document.
* doc/tm.texi (DRIVER_SELF_SPECS): Document.
* gcc.c (driver_self_specs): New variable.
(do_self_spec): New function.
(main): Use it to process driver_self_specs.
From-SVN: r58109
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index a0396bc..bf94d58 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -163,6 +163,23 @@ multilibs. Example nonsensical definition, where @code{-malt-abi}, @{ "-compat", "-EB -malign=4 -mspoo" @} @end smallexample +@findex DRIVER_SELF_SPECS +@item DRIVER_SELF_SPECS +A list of specs for the driver itself. It should be a suitable +initializer for an array of strings, with no surrounding braces. + +The driver applies these specs to its own command line before choosing +the multilib directory or running any subcommands. It applies them in +the order given, so each spec can depend on the options added by +earlier ones. It is also possible to remove options using +@samp{%<@var{option}} in the usual way. + +This macro can be useful when a port has several interdependent target +options. It provides a way of standardizing the command line so +that the other specs are easier to write. + +Do not define this macro if it does not need to do anything. + @findex CPP_SPEC @item CPP_SPEC A C string constant that tells the GCC driver program options to |