diff options
author | DJ Delorie <dj@redhat.com> | 2005-05-03 13:55:46 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2005-05-03 13:55:46 -0400 |
commit | ccf08a6ed7ade866dab79e1c0dc853bae887f9e2 (patch) | |
tree | cff3402fafefe694afbb81cbc70f93161517f19e /gcc/common.opt | |
parent | 6ceec5933a1159c7b5595047ee435343f58ed038 (diff) | |
download | gcc-ccf08a6ed7ade866dab79e1c0dc853bae887f9e2.tar.gz |
c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery decide if the warning will be printed.
* c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
decide if the warning will be printed.
* calls.c (expand_call): Likewise.
* function.c (init-function_start): Likewise.
* common.opt (-fdiagnostics-show-option): New.
* opts.c (option_enabled): Accept the option index instead of a
pointer to the option descriptor.
* opts.h (option_enabled): Likewise.
* toplev.c (print_switch_values): Pass option index, not option
descriptor.
* diagnostic.h (diagnostic_info): Add option_index.
* diagnostic.c: Include opts.h.
(diagnostic_set_info): Initialize option_index.
(diagnostic_report_diagnostic): Amend option name if appropriate.
(warning): Check to see if the specified warning is enabled.
Store option index.
* doc/invoke.texi (-fdiagnostics-show-options): Document.
From-SVN: r99169
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index b75785c5087..466077cb6ff 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -336,6 +336,10 @@ fdiagnostics-show-location= 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) +Amend appropriate diagnostic messages with the command line option that controls them. + fdump- Common Joined RejectNegative -fdump-<type> Dump various compiler internals to a file |