diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2003-08-03 22:14:47 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2003-08-03 22:14:47 +0000 |
commit | 21ecc5a77daed79e3860ca1e0a7d5a42c6b7660d (patch) | |
tree | 29df02f871698c716e4d5eefae48e0e4cf22f599 /gcc/langhooks-def.h | |
parent | 8f7ace48dd79e309d9067717828a44544c8aa4e4 (diff) | |
download | gcc-21ecc5a77daed79e3860ca1e0a7d5a42c6b7660d.tar.gz |
opts.c (decode_options): Do language-specific initialization for the global diagnostic context.
* opts.c (decode_options): Do language-specific initialization for
the global diagnostic context.
* langhooks-def.h (lhd_initialize_diagnostics): Declare.
(LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
(LANG_HOOKS_INITIALIZER): Adjust.
* langhooks.h (struct lang_hooks): Add new field
initialize_diagnostics.
* langhooks.c (lhd_initialize_diagnostics): Define.
From-SVN: r70129
Diffstat (limited to 'gcc/langhooks-def.h')
-rw-r--r-- | gcc/langhooks-def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/langhooks-def.h b/gcc/langhooks-def.h index abdf2df3af8..47e8b7209af 100644 --- a/gcc/langhooks-def.h +++ b/gcc/langhooks-def.h @@ -79,6 +79,7 @@ extern int lhd_tree_inlining_anon_aggr_type_p (tree); extern int lhd_tree_inlining_start_inlining (tree); extern void lhd_tree_inlining_end_inlining (tree); extern tree lhd_tree_inlining_convert_parm_for_inlining (tree, tree, tree); +extern void lhd_initialize_diagnostics (struct diagnostic_context *); #define LANG_HOOKS_NAME "GNU unknown" #define LANG_HOOKS_IDENTIFIER_SIZE sizeof (struct lang_identifier) @@ -87,6 +88,7 @@ extern tree lhd_tree_inlining_convert_parm_for_inlining (tree, tree, tree); #define LANG_HOOKS_PARSE_FILE lhd_do_nothing_i #define LANG_HOOKS_CLEAR_BINDING_STACK lhd_clear_binding_stack #define LANG_HOOKS_INIT_OPTIONS hook_uint_uint_constcharptrptr_0 +#define LANG_HOOKS_INITIALIZE_DIAGNOSTITCS lhd_initialize_diagnostics #define LANG_HOOKS_HANDLE_OPTION hook_int_size_t_constcharptr_int_0 #define LANG_HOOKS_MISSING_ARGUMENT hook_bool_constcharptr_size_t_false #define LANG_HOOKS_POST_OPTIONS lhd_post_options @@ -245,6 +247,7 @@ extern int lhd_tree_dump_type_quals (tree); LANG_HOOKS_IDENTIFIER_SIZE, \ LANG_HOOKS_TREE_SIZE, \ LANG_HOOKS_INIT_OPTIONS, \ + LANG_HOOKS_INITIALIZE_DIAGNOSTITCS, \ LANG_HOOKS_HANDLE_OPTION, \ LANG_HOOKS_MISSING_ARGUMENT, \ LANG_HOOKS_POST_OPTIONS, \ |