diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-06-25 20:43:11 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-06-25 20:43:11 +0000 |
commit | f18754d6403e23cb34e62bb6e09a15a357fa2782 (patch) | |
tree | 25f8abe318d6c95cb74e8c8f0c6880e9b296e4bf /gcc/opts.h | |
parent | 37f2200463a45c51ccb631f74439475b135907cf (diff) | |
download | gcc-f18754d6403e23cb34e62bb6e09a15a357fa2782.tar.gz |
c-opts.c (complain_wrong_lang, [...]): Remove.
* c-opts.c (complain_wrong_lang, write_langs): Remove.
(c_common_handle_option): Complaints about wrong language are
handled in opts.c now.
* opts.c (complain_wrong_lang, write_langs, handle_options): New.
(find_opt): Fix thinko.
(handle_option): Update prototype. Complain about switches for
a different front end.
* opts.h (lang_names, handle_options): New.
(handle_option): Remove.
* opts.sh: Write out language names array.
* toplev.c (parse_options_and_default_flags): Use handle_options.
From-SVN: r68495
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/opts.h b/gcc/opts.h index f5e7cfda34d..4ee3ffe37e8 100644 --- a/gcc/opts.h +++ b/gcc/opts.h @@ -21,7 +21,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef GCC_OPTS_H #define GCC_OPTS_H -extern int handle_option (int argc, char **argv, int lang_mask); +extern void handle_options (unsigned int argc, char **argv, + unsigned int lang_mask); struct cl_option { @@ -33,6 +34,7 @@ struct cl_option extern const struct cl_option cl_options[]; extern const unsigned int cl_options_count; +extern const char *const lang_names[]; #define CL_JOINED (1 << 24) /* If takes joined argument. */ #define CL_SEPARATE (1 << 25) /* If takes a separate argument. */ |