summaryrefslogtreecommitdiff
path: root/gcc/opts.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-25 20:43:11 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-25 20:43:11 +0000
commit9cf6679e085217d7889ecb74decc28b6c05dcc61 (patch)
tree25f8abe318d6c95cb74e8c8f0c6880e9b296e4bf /gcc/opts.h
parent2bb16ec5e3ee9fa83b52b54860a8f3930c707b75 (diff)
downloadlinaro-gcc-9cf6679e085217d7889ecb74decc28b6c05dcc61.tar.gz
linaro-gcc-9cf6679e085217d7889ecb74decc28b6c05dcc61.tar.bz2
linaro-gcc-9cf6679e085217d7889ecb74decc28b6c05dcc61.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68495 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.h')
-rw-r--r--gcc/opts.h4
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. */