aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-11-05 13:06:27 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-11-05 13:06:27 +0000
commitc243beb03c0fc64c2400835b9cbd770cbbd48222 (patch)
tree6b1a8cba615f48d1963fa98f1d69555be29e0ee1 /gcc/doc
parentd73ee4e74eb82f29e5949c13c6544b50d0f96d4c (diff)
downloadgcc-c243beb03c0fc64c2400835b9cbd770cbbd48222.zip
gcc-c243beb03c0fc64c2400835b9cbd770cbbd48222.tar.gz
gcc-c243beb03c0fc64c2400835b9cbd770cbbd48222.tar.bz2
defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG, [...]): Remove.
* defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove. * doc/options.texi (Args): Document. * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove. * doc/tm.texi: Regenerate. * opt-functions.awk (switch_flags): Handle Args. * opts-common.c: Update comment on tm.h include. (decode_cmdline_option): Handle options with multiple arguments. Don't check WORD_SWITCH_TAKES_ARG for unknown options. * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define. (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET, CL_COMMON): Update values. * system.h (WORD_SWITCH_TAKES_ARG): Poison. * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove. * config/darwin.opt (Zsegaddr, sectalign, sectcreate, sectobjectsymbols, sectorder, segcreate, segprot): New. From-SVN: r166359
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/options.texi4
-rw-r--r--gcc/doc/tm.texi15
-rw-r--r--gcc/doc/tm.texi.in15
3 files changed, 4 insertions, 30 deletions
diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi
index d774b36..3b844bb 100644
--- a/gcc/doc/options.texi
+++ b/gcc/doc/options.texi
@@ -162,6 +162,10 @@ generic error message is used. @var{message} should contain a single
@samp{%qs} format, which will be used to format the name of the option
passed.
+@item Args(@var{n})
+For an option marked @code{Separate}, indicate that it takes @var{n}
+arguments. The default is 1.
+
@item UInteger
The option's argument is a non-negative integer. The option parser
will check and convert the argument before passing it to the relevant
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 7ce1c50..0bb146e 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -99,21 +99,6 @@ from being defined in the @file{.h} file to being part of the
@c prevent bad page break with this line
You can control the compilation driver.
-@defmac WORD_SWITCH_TAKES_ARG (@var{name})
-A C expression which determines whether the option @option{-@var{name}}
-takes arguments. The value should be the number of arguments that
-option takes--zero, for many options.
-This macro does not need to handle options defined in @file{.opt}
-files, only those that are handled purely through specs.
-
-By default, this macro is defined as
-@code{DEFAULT_WORD_SWITCH_TAKES_ARG}, which handles the standard options
-properly. You need not define @code{WORD_SWITCH_TAKES_ARG} unless you
-wish to add additional options which take arguments. Any redefinition
-should call @code{DEFAULT_WORD_SWITCH_TAKES_ARG} and then check for
-additional options.
-@end defmac
-
@defmac 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
diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
index 23b38d3..6bf51d6 100644
--- a/gcc/doc/tm.texi.in
+++ b/gcc/doc/tm.texi.in
@@ -99,21 +99,6 @@ from being defined in the @file{.h} file to being part of the
@c prevent bad page break with this line
You can control the compilation driver.
-@defmac WORD_SWITCH_TAKES_ARG (@var{name})
-A C expression which determines whether the option @option{-@var{name}}
-takes arguments. The value should be the number of arguments that
-option takes--zero, for many options.
-This macro does not need to handle options defined in @file{.opt}
-files, only those that are handled purely through specs.
-
-By default, this macro is defined as
-@code{DEFAULT_WORD_SWITCH_TAKES_ARG}, which handles the standard options
-properly. You need not define @code{WORD_SWITCH_TAKES_ARG} unless you
-wish to add additional options which take arguments. Any redefinition
-should call @code{DEFAULT_WORD_SWITCH_TAKES_ARG} and then check for
-additional options.
-@end defmac
-
@defmac 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