diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-13 17:20:29 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-13 17:20:29 +0000 |
commit | 8ace789a9566a4b55f8e13bb48f6a4771febbcbf (patch) | |
tree | b32468e6a5db793248f3d983d703512784c26fc1 /gcc/tm.texi | |
parent | 58dc6b1f419bc67d6f2fadf97b2a4ef9b4c5f845 (diff) | |
download | ppe42-gcc-8ace789a9566a4b55f8e13bb48f6a4771febbcbf.tar.gz ppe42-gcc-8ace789a9566a4b55f8e13bb48f6a4771febbcbf.zip |
Add --help option.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21109 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tm.texi')
-rw-r--r-- | gcc/tm.texi | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/gcc/tm.texi b/gcc/tm.texi index 32c5a75d053..1c5d3b665a2 100644 --- a/gcc/tm.texi +++ b/gcc/tm.texi @@ -546,10 +546,13 @@ bits in @code{target_flags}. Its definition is an initializer with a subgrouping for each command option. Each subgrouping contains a string constant, that defines the option -name, and a number, which contains the bits to set in -@code{target_flags}. A negative number says to clear bits instead; -the negative of the number is which bits to clear. The actual option -name is made by appending @samp{-m} to the specified name. +name, a number, which contains the bits to set in +@code{target_flags}, and a second string which is the description +displayed by --help. If the number is negative then the bits specified +by the number are cleared instead of being set. If the description +string is present but empty, then no help information will be displayed +for that option, but it will not count as an undocumented option. The +actual option name is made by appending @samp{-m} to the specified name. One of the subgroupings should have a null string. The number in this grouping is the default value for @code{target_flags}. Any @@ -560,9 +563,9 @@ with opposite meanings, and picks the latter as the default: @smallexample #define TARGET_SWITCHES \ - @{ @{ "68020", 1@}, \ - @{ "68000", -1@}, \ - @{ "", 1@}@} + @{ @{ "68020", 1, "" @}, \ + @{ "68000", -1, "Compile for the 68000" @}, \ + @{ "", 1, "" @}@} @end smallexample @findex TARGET_OPTIONS @@ -572,10 +575,10 @@ options that have values. Its definition is an initializer with a subgrouping for each command option. Each subgrouping contains a string constant, that defines the fixed part -of the option name, and the address of a variable. The variable, type -@code{char *}, is set to the variable part of the given option if the fixed -part matches. The actual option name is made by appending @samp{-m} to the -specified name. +of the option name, the address of a variable, and a description string. +The variable, type @code{char *}, is set to the variable part of the +given option if the fixed part matches. The actual option name is made +by appending @samp{-m} to the specified name. Here is an example which defines @samp{-mshort-data-@var{number}}. If the given option is @samp{-mshort-data-512}, the variable @code{m88k_short_data} @@ -584,7 +587,7 @@ will be set to the string @code{"512"}. @smallexample extern char *m88k_short_data; #define TARGET_OPTIONS \ - @{ @{ "short-data-", &m88k_short_data @} @} + @{ @{ "short-data-", &m88k_short_data, "Specify the size of the short data section" @} @} @end smallexample @findex TARGET_VERSION |