diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2004-06-14 16:18:01 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2004-06-14 14:18:01 +0000 |
commit | 50431bc4280a683141da4c51375ef07636083b7b (patch) | |
tree | 8e99c7d2af7c48b5b41eea44cd56ece27f2296b4 /gcc/opts.h | |
parent | 966389eeaaf6b674bbfbdc34b06314c2dd7f8591 (diff) | |
download | gcc-50431bc4280a683141da4c51375ef07636083b7b.zip gcc-50431bc4280a683141da4c51375ef07636083b7b.tar.gz gcc-50431bc4280a683141da4c51375ef07636083b7b.tar.bz2 |
Makefile.in (FLAGS_H): New.
* Makefile.in (FLAGS_H): New.
(flags.h): Replace by FLAGS_H.
* c.opt: Document Var, VarExists, Init and Report attributes.
* common.opt: Fill the values of the attributes.
* diagnostic.c (flag_fatal_errors): Do not define.
* except.c (flag_non_call_exceptions): Do not define.
* flags.h: Include options.h. Remove declarations conflicting with
the automatically defined ones.
* opts.c: Remove automatically defined variables.
(handle_option): Perform default initialization.
(common_handle_option): Do not handle options covered by the
default initialization.
* opts.h (struct cl_option): Add flag_var, has_set_value and set_value
fields.
(CL_REPORT): New.
* opts.sh: Generate variable declarations, handle CL_REPORT.
* toplev.c: Remove automatically defined variables.
(f_options): Removed.
(print_switch_values): Use cl_options instead of f_options.
* toplev.h (version_flag): Declaration removed.
From-SVN: r83105
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -31,12 +31,16 @@ struct cl_option unsigned short back_chain; unsigned char opt_len; unsigned int flags; + int *flag_var; + int has_set_value; + int set_value; }; extern const struct cl_option cl_options[]; extern const unsigned int cl_options_count; extern const char *const lang_names[]; +#define CL_REPORT (1 << 23) /* Report argument with -fverbose-asm */ #define CL_JOINED (1 << 24) /* If takes joined argument. */ #define CL_SEPARATE (1 << 25) /* If takes a separate argument. */ #define CL_REJECT_NEGATIVE (1 << 26) /* Reject no- form. */ |