diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-04 01:36:13 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-04 01:36:13 +0000 |
commit | b0932b2f71e5a3b0a2780f66e8f0e5d881a74742 (patch) | |
tree | 02e58ad626b4c528bb00fa48493c8680b37ca246 /gcc/common.opt | |
parent | fd15895973887c7d54aaeef472c2eb28c319d5c0 (diff) | |
download | gcc-b0932b2f71e5a3b0a2780f66e8f0e5d881a74742.tar.gz |
* 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
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 466077cb6ff..ab0129fb328 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -337,7 +337,7 @@ Common Joined RejectNegative -fdiagnostics-show-location=[once|every-line] How often to emit source location at the beginning of line-wrapped diagnostics fdiagnostics-show-option -Common Var(diagnostics_show_options) +Common Amend appropriate diagnostic messages with the command line option that controls them. fdump- |