diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-12 23:30:42 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-12 23:30:42 +0000 |
commit | c123f04d23179030bf2209e4068a640e0243c866 (patch) | |
tree | ae26a7e8a2fcd55cebd323ad5e45623c076f18d3 /gcc/opts.h | |
parent | 3c6c0e40fd80e2cd4909ef171f9a92efb5c6f348 (diff) | |
download | gcc-c123f04d23179030bf2209e4068a640e0243c866.tar.gz |
* opts-common.c (control_warning_option): New.
* opts.c (set_default_handlers): New.
(decode_options): Use set_default_handlers and
control_warning_option.
(common_handle_option): Update call to enable_warning_as_error.
(enable_warning_as_error): Take gcc_options parameters. Use
control_warning_option.
* opts.h (set_default_handlers, control_warning_option): Declare.
c-family:
* c-common.h (c_family_lang_mask): Declare.
* c-opts.c (c_family_lang_mask): Make extern.
* c-pragma.c (handle_pragma_diagnostic): Use
control_warning_option.
testsuite:
* gcc.dg/pragma-diag-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166689 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/opts.h b/gcc/opts.h index 9d5ecb36c84..00422b6ea38 100644 --- a/gcc/opts.h +++ b/gcc/opts.h @@ -223,6 +223,7 @@ extern void decode_cmdline_options_to_array_default_mask (unsigned int argc, const char **argv, struct cl_decoded_option **decoded_options, unsigned int *decoded_options_count); +extern void set_default_handlers (struct cl_option_handlers *handlers); extern void decode_options (struct gcc_options *opts, struct gcc_options *opts_set, struct cl_decoded_option *decoded_options, @@ -255,5 +256,12 @@ extern void read_cmdline_option (struct gcc_options *opts, unsigned int lang_mask, const struct cl_option_handlers *handlers, diagnostic_context *dc); +extern void control_warning_option (unsigned int opt_index, int kind, + bool imply, location_t loc, + unsigned int lang_mask, + const struct cl_option_handlers *handlers, + struct gcc_options *opts, + struct gcc_options *opts_set, + diagnostic_context *dc); extern void print_ignored_options (void); #endif |