]> gcc.gnu.org Git - gcc.git/commit - gcc/common.opt
c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery decide if the warning...
authorDJ Delorie <dj@redhat.com>
Tue, 3 May 2005 17:55:46 +0000 (13:55 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 3 May 2005 17:55:46 +0000 (13:55 -0400)
commitccf08a6ed7ade866dab79e1c0dc853bae887f9e2
treecff3402fafefe694afbb81cbc70f93161517f19e
parent6ceec5933a1159c7b5595047ee435343f58ed038
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
gcc/ChangeLog
gcc/c-decl.c
gcc/calls.c
gcc/common.opt
gcc/diagnostic.c
gcc/diagnostic.h
gcc/doc/invoke.texi
gcc/function.c
gcc/opts.c
gcc/opts.h
gcc/toplev.c
This page took 0.05925 seconds and 5 git commands to generate.