]> git.ipfire.org Git - thirdparty/gcc.git/commit
c-pragma.c (handle_pragma_diagnostic): New.
authorDJ Delorie <dj@gcc.gnu.org>
Wed, 18 Jan 2006 20:02:42 +0000 (15:02 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Wed, 18 Jan 2006 20:02:42 +0000 (15:02 -0500)
commit79cf599406a6a51e2fdd47810fdba89e04cbf1cc
treefc2b70d94a779eb0814d5f4a6c95145347b94e16
parentf9fe7aed71e486669af301c0beb0c58bc303ee39
c-pragma.c (handle_pragma_diagnostic): New.

* c-pragma.c (handle_pragma_diagnostic): New.
(init_pragma): Register it.
* doc/extend.texi: Document it.

* diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
* diagnostic.h (diagnostic_classify_diagnostic): Declare.
(diagnostic_context): Add classify_diagnostic[].
* diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
as errors if they're overridden to DK_WARNING.
(diagnostic_initialize): Initialize classify_diagnostic[].
(diagnostic_set_kind_override): New.
(diagnostic_report_diagnostic): Check for kind changes.
* opts.c (common_handle_option): Take lang_mask.  Update callers.
Handle OPT_Werror_.
* common.opt (Werror=): New.
* doc/invoke.texi: Document -Werror=*

From-SVN: r109907
gcc/ChangeLog
gcc/c-pragma.c
gcc/common.opt
gcc/diagnostic.c
gcc/diagnostic.def
gcc/diagnostic.h
gcc/doc/extend.texi
gcc/doc/invoke.texi
gcc/opts.c