summaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-05-03 21:36:13 -0400
committerDJ Delorie <dj@gcc.gnu.org>2005-05-03 21:36:13 -0400
commit2098fe9ed59d4342ee62ae9f796242a0683d8643 (patch)
tree02e58ad626b4c528bb00fa48493c8680b37ca246 /gcc/common.opt
parent9791c75c41eb16f99b6a3e9456e823777a36d061 (diff)
downloadgcc-2098fe9ed59d4342ee62ae9f796242a0683d8643.tar.gz
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/common.opt')
-rw-r--r--gcc/common.opt2
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-