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/opts.c | |
parent | 8f7ace48dd79e309d9067717828a44544c8aa4e4 (diff) | |
download | gcc-21ecc5a77daed79e3860ca1e0a7d5a42c6b7660d.zip gcc-21ecc5a77daed79e3860ca1e0a7d5a42c6b7660d.tar.gz gcc-21ecc5a77daed79e3860ca1e0a7d5a42c6b7660d.tar.bz2 |
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/opts.c')
-rw-r--r-- | gcc/opts.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -460,6 +460,8 @@ decode_options (unsigned int argc, const char **argv) /* Perform language-specific options initialization. */ lang_mask = (*lang_hooks.init_options) (argc, argv); + lang_hooks.initialize_diagnostics (global_dc); + /* Scan to see what optimization level has been specified. That will determine the default value of many flags. */ for (i = 1; i < argc; i++) |