diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-14 12:26:36 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-14 12:26:36 +0000 |
commit | 3272db82faf87eb82c5b56586dffb5b4b675501d (patch) | |
tree | c305de4bdbbe6e6f7807a99ebcbbb965f0549ad6 /gcc/opts.h | |
parent | d493b8a1d36cc7a1dd0a3541c0b2b5779efd4404 (diff) | |
download | gcc-3272db82faf87eb82c5b56586dffb5b4b675501d.tar.gz |
* Makefile.in: Update to use common.opt and lang_opt_files.
(c-options.c, c-options.h): Remove.
(options.c, options.h): Add.
* c-opts.c: Include options.h not c-options.h.
* common.opt: New file.
* configure, configure.in: Add lang_opt_files.
* opts.c: Include flags.h and diagnostic.h.
(common_handle_option): New.
(handle_option): Update to recognize common options and all
language-dependent options.
* opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
(struct cl_option): Make flags of type int.
* opts.h: Flag option with front ends to which it applies.
Handle duplicate options.
* toplev.c (filename): Remove.
(independent_decode_option): Don't handle filenames and -quiet.
(process_options, do_compile): Update.
ada:
* Make-lang.in: Update to use options.c and options.h.
* misc.c: Include options.h not aoptions.h.
(gnat_handle_option): Abort on unrecognized switch.
(gnat_init_options): Request Ada switches.
cp:
* Make-lang.in: Remove c-options.o.
f:
* Make-lang.in: Update to use options.c and options.h.
* top.c: Include options.h not f-options.h.
(gnat_handle_option): Abort on unrecognized switch.
(ffe_init_options): From com.c. Request F77 options.
(ffe_handle_options): Abort on unrecognized switch.
* com.c (ffe_init_options): Move to top.c.
* top.h (fee_init_options): New.
java:
* Make-lang.in: Update to use options.c and options.h.
* lang.c: Include options.h not j-options.h.
(java_handle_option): Abort on unrecognized option.
(java_init_options): Request Java switches.
treelang:
* Make-lang.in: Update to use options.c and options.h.
* tree1.c: Include options.h not t-options.h.
(treelang_init_options): New.
(treelang_handle_option): Abort on unrecognized switch.
* treetree.c (LANG_HOOKS_INIT_OPTIONS): Override.
* treetree.h (treelang_init_options): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67941 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/opts.h b/gcc/opts.h index 0bba52d3499..340092e87d3 100644 --- a/gcc/opts.h +++ b/gcc/opts.h @@ -27,7 +27,7 @@ struct cl_option { const char *opt_text; unsigned char opt_len; - unsigned char flags; + unsigned int flags; }; extern const struct cl_option cl_options[]; @@ -37,8 +37,14 @@ extern const unsigned int cl_options_count; #define CL_OBJC (1 << 1) /* Only ObjC. */ #define CL_CXX (1 << 2) /* Only C++. */ #define CL_OBJCXX (1 << 3) /* Only ObjC++. */ -#define CL_JOINED (1 << 4) /* If takes joined argument. */ -#define CL_SEPARATE (1 << 5) /* If takes a separate argument. */ -#define CL_REJECT_NEGATIVE (1 << 6) /* Reject no- form. */ +#define CL_F77 (1 << 4) /* Only Fortran. */ +#define CL_JAVA (1 << 5) /* Only Java. */ +#define CL_ADA (1 << 6) /* Only Ada. */ +#define CL_TREELANG (1 << 7) /* Only Treelang. */ +#define CL_COMMON (1 << 8) /* Language-independent. */ + +#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. */ #endif |