]> gcc.gnu.org Git - gcc.git/commit
common.opt (fdiagnostics-show-option): No variable is needed.
authorDJ Delorie <dj@redhat.com>
Wed, 4 May 2005 01:36:13 +0000 (21:36 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Wed, 4 May 2005 01:36:13 +0000 (21:36 -0400)
commit2098fe9ed59d4342ee62ae9f796242a0683d8643
tree02e58ad626b4c528bb00fa48493c8680b37ca246
parent9791c75c41eb16f99b6a3e9456e823777a36d061
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
gcc/ChangeLog
gcc/common.opt
gcc/diagnostic.c
gcc/diagnostic.h
gcc/opts.c
This page took 0.065212 seconds and 5 git commands to generate.