summaryrefslogtreecommitdiff
path: root/gcc/opts.h
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-03 21:00:05 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-03 21:00:05 +0000
commit0b1d266f5718e6be191363e3dd6a130342cf7195 (patch)
tree4c595a910219a400780aabf660892ec4ce06400f /gcc/opts.h
parent977911b3f87be65a649a179c26325322ee6fbef6 (diff)
downloadgcc-0b1d266f5718e6be191363e3dd6a130342cf7195.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163844 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.h')
-rw-r--r--gcc/opts.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/opts.h b/gcc/opts.h
index 09e305b225b..ed175e5de4a 100644
--- a/gcc/opts.h
+++ b/gcc/opts.h
@@ -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. */