aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.h
diff options
context:
space:
mode:
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>2004-06-14 16:18:01 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2004-06-14 14:18:01 +0000
commit50431bc4280a683141da4c51375ef07636083b7b (patch)
tree8e99c7d2af7c48b5b41eea44cd56ece27f2296b4 /gcc/opts.h
parent966389eeaaf6b674bbfbdc34b06314c2dd7f8591 (diff)
downloadgcc-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/opts.h b/gcc/opts.h
index eb7c868..17b2bca 100644
--- a/gcc/opts.h
+++ b/gcc/opts.h
@@ -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. */