diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-05 20:09:34 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-05 20:09:34 +0000 |
commit | 522355d9204ede710385f13df11e89a486a5731d (patch) | |
tree | 9448fd5a37ea4742eed3de53532273939ceb2e89 /gcc/doc | |
parent | d2074053cde29d112db9c8770241b6732c0106f7 (diff) | |
download | gcc-522355d9204ede710385f13df11e89a486a5731d.tar.gz |
* gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
(translate_options): If the above is defined, use it to map
given options to new options.
* doc/tm.texi: Document it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43787 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 7a1d8bce34b..ad9e29cf71c 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -140,6 +140,26 @@ the linker needs a space between the option and its argument. If this macro is not defined, the default value is @code{""}. +@findex TARGET_OPTION_TRANSLATE_TABLE +@item TARGET_OPTION_TRANSLATE_TABLE +If defined, a list of pairs of strings, the first of which is a +potential command line target to the @file{gcc} driver program, and the +second of which is a space-separated (tabs and other whitespace are not +supported) list of options with which to replace the first option. The +target defining this list is responsible for assuring that the results +are valid. Replacement options may not be the @code{--opt} style, they +must be the @code{-opt} style. It is the intention of this macro to +provide a mechanism for substitution that affects the multilibs chosen, +such as one option that enables many options, some of which select +multilibs. Example nonsensical definition, where @code{-malt-abi}, +@code{-EB}, and @code{-mspoo} cause different multilibs to be chosen: + +@example +#define TARGET_OPTION_TRANSLATE_TABLE \ +@{ "-fast", "-march=fast-foo -malt-abi -I/usr/fast-foo" @}, \ +@{ "-compat", "-EB -malign=4 -mspoo" @} +@end example + @findex CPP_SPEC @item CPP_SPEC A C string constant that tells the GCC driver program options to |