diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-09-03 22:00:05 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2010-09-03 22:00:05 +0100 |
commit | d158303227fdca143db5decf983978f635be2ba9 (patch) | |
tree | 4c595a910219a400780aabf660892ec4ce06400f /gcc/doc/options.texi | |
parent | e6bc4de90d944db687e20de1ac5fbebe32c9642d (diff) | |
download | gcc-d158303227fdca143db5decf983978f635be2ba9.zip gcc-d158303227fdca143db5decf983978f635be2ba9.tar.gz gcc-d158303227fdca143db5decf983978f635be2ba9.tar.bz2 |
options.texi (SeparateAlias): Document.
* doc/options.texi (SeparateAlias): Document.
* opt-functions.awk (switch_flags): Handle SeparateAlias.
* opth-gen.awk: Generate enumeration names for options marked
SeparateAlias, but not for those marked Ignore.
* opts-common.c (generate_canonical_option): Don't output separate
argument for options marked CL_SEPARATE_ALIAS.
(decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
* opts.h (CL_SEPARATE_ALIAS): New.
(CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
CL_COMMON): Adjust definitions.
* config/i386/darwin.opt, config/mips/sde.opt: New.
* common.opt (fdump-final-insns): New.
* config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
i386/darwin.opt.
(mips*-sde-elf*): Add mips/sde.opt.
* config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
-mno-data-in-code and -mcode-xonly here.
* defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
* gcc.c (option_map): Add "j" to --dump entry.
(translate_options): Don't translate -d to -foutput-class-dir=
here.
java:
* lang.opt (d): New.
testsuite:
* gcc.dg/opts-4.c: New test.
From-SVN: r163844
Diffstat (limited to 'gcc/doc/options.texi')
-rw-r--r-- | gcc/doc/options.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index d7a18af..c224bbd 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -278,6 +278,13 @@ This option is ignored apart from printing any warning specified using @code{Warn}. The option will not be seen by specs and no @samp{OPT_} enumeration value is defined for it. +@item SeparateAlias +For an option marked with @code{Joined}, @code{Separate} and +@code{Alias}, the option only acts as an alias when passed a separate +argument; with a joined argument it acts as a normal option, with an +@samp{OPT_} enumeration value. This is for compatibility with the +Java @option{-d} option and should not be used for new options. + @item Warn(@var{message}) If this option is used, output the warning @var{message}. @var{message} is a format string, either taking a single operand with |