* common.opt (fdiagnostics-show-option): No variable is needed.
commitb0932b2f71e5a3b0a2780f66e8f0e5d881a74742
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 May 2005 01:36:13 +0000 (4 01:36 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 May 2005 01:36:13 +0000 (4 01:36 +0000)
tree02e58ad626b4c528bb00fa48493c8680b37ca246
parentfd15895973887c7d54aaeef472c2eb28c319d5c0
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99204 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/common.opt
gcc/diagnostic.c
gcc/diagnostic.h
gcc/opts.c