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/opts.h | |
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/opts.h')
-rw-r--r-- | gcc/opts.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -71,12 +71,12 @@ extern const unsigned int cl_options_count; extern const char *const lang_names[]; extern const unsigned int cl_lang_count; -#define CL_PARAMS (1 << 14) /* Fake entry. Used to display --param info with --help. */ -#define CL_WARNING (1 << 15) /* Enables an (optional) warning message. */ -#define CL_OPTIMIZATION (1 << 16) /* Enables an (optional) optimization. */ -#define CL_DRIVER (1 << 17) /* Driver option. */ -#define CL_TARGET (1 << 18) /* Target-specific option. */ -#define CL_COMMON (1 << 19) /* Language-independent. */ +#define CL_PARAMS (1 << 13) /* Fake entry. Used to display --param info with --help. */ +#define CL_WARNING (1 << 14) /* Enables an (optional) warning message. */ +#define CL_OPTIMIZATION (1 << 15) /* Enables an (optional) optimization. */ +#define CL_DRIVER (1 << 16) /* Driver option. */ +#define CL_TARGET (1 << 17) /* Target-specific option. */ +#define CL_COMMON (1 << 18) /* Language-independent. */ #define CL_MIN_OPTION_CLASS CL_PARAMS #define CL_MAX_OPTION_CLASS CL_COMMON @@ -86,6 +86,7 @@ extern const unsigned int cl_lang_count; This distinction is important because --help will not list options which only have these higher bits set. */ +#define CL_SEPARATE_ALIAS (1 << 19) /* Option is an alias when used with separate argument. */ #define CL_NO_DRIVER_ARG (1 << 20) /* Option takes no argument in the driver. */ #define CL_REJECT_DRIVER (1 << 21) /* Reject this option in the driver. */ #define CL_SAVE (1 << 22) /* Target-specific option for attribute. */ |