aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-common.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-11-12 23:30:42 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-11-12 23:30:42 +0000
commitc5fa0890a2a879bc6c240e83ff67036ca46e1a8d (patch)
treeae26a7e8a2fcd55cebd323ad5e45623c076f18d3 /gcc/c-family/c-common.h
parenta4d8c676006f3b672af5088f52160e762aa7a197 (diff)
downloadgcc-c5fa0890a2a879bc6c240e83ff67036ca46e1a8d.zip
gcc-c5fa0890a2a879bc6c240e83ff67036ca46e1a8d.tar.gz
gcc-c5fa0890a2a879bc6c240e83ff67036ca46e1a8d.tar.bz2
opts-common.c (control_warning_option): New.
* 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. From-SVN: r166689
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r--gcc/c-family/c-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h
index eb6cf26..a28183a9 100644
--- a/gcc/c-family/c-common.h
+++ b/gcc/c-family/c-common.h
@@ -762,6 +762,7 @@ extern void set_compound_literal_name (tree decl);
extern tree build_va_arg (location_t, tree, tree);
+extern const unsigned int c_family_lang_mask;
extern unsigned int c_common_option_lang_mask (void);
extern void c_common_initialize_diagnostics (diagnostic_context *);
extern bool c_common_complain_wrong_lang_p (const struct cl_option *);