diff options
author | DJ Delorie <dj@redhat.com> | 2005-05-03 21:36:13 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2005-05-03 21:36:13 -0400 |
commit | 2098fe9ed59d4342ee62ae9f796242a0683d8643 (patch) | |
tree | 02e58ad626b4c528bb00fa48493c8680b37ca246 /gcc/opts.c | |
parent | 9791c75c41eb16f99b6a3e9456e823777a36d061 (diff) | |
download | gcc-2098fe9ed59d4342ee62ae9f796242a0683d8643.zip gcc-2098fe9ed59d4342ee62ae9f796242a0683d8643.tar.gz gcc-2098fe9ed59d4342ee62ae9f796242a0683d8643.tar.bz2 |
common.opt (fdiagnostics-show-option): No variable is needed.
* common.opt (fdiagnostics-show-option): No variable is needed.
* diagnostic.h (diagnostic_context): Add show_option_requested flag.
* diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
(diagnostic_report_diagnostic): Test for enabled diagnostics here.
Save and restore original message format. Use flag in context
instead of global.
(warning): Don't test for enabled warnings here.
* opts.c (common_handle_option): Handle -fdiagnostics-show-option
here.
From-SVN: r99204
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -818,6 +818,10 @@ common_handle_option (size_t scode, const char *arg, int value) return 0; break; + case OPT_fdiagnostics_show_option: + global_dc->show_option_requested = true; + break; + case OPT_fdump_: if (!dump_switch_p (arg)) return 0; |