r158168 - in /trunk/gcc: ChangeLog diagnostic.c...
manu@gcc.gnu.org
manu@gcc.gnu.org
Fri Apr 9 15:45:00 GMT 2010
Author: manu
Date: Fri Apr 9 15:45:52 2010
New Revision: 158168
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158168
Log:
2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR 42965
* diagnostic.c (diagnostic_initialize): Initialize
some_warnings_are_errors.
(diagnostic_finish): New.
(diagnostic_action_after_output): Call it before exiting.
(diagnostic_report_diagnostic): Do not print message here. Set
some_warnings_are_errors.
* diagnostic.h (diagnostic_context): Delete
issue_warnings_are_errors_message. Add some_warnings_are_errors.
(diagnostic_finish): Declare.
* toplev.c (toplev_main): Call it before exit.
testsuite/
* gcc.dg/Werror-6.c: Adjust.
* gcc.dg/Werror-implicit-function-declaration.c: Likewise.
* gcc.dg/Werror-4.c: Likewise.
* gcc.dg/Wdeclaration-after-statement-3.c: Likewise.
* gcc.dg/Wswitch-enum-error.c: Likewise.
* gcc.dg/Wpointer-arith.c: Likewise.
* gcc.dg/Wfatal.c: Likewise.
* gcc.dg/Wswitch-error.c: Likewise.
* g++.dg/warn/unused-result1-Werror.c: Likewise.
* gcc.dg/Werror-9.c: Delete. Duplicate of Werror-4.c.
* gcc.dg/cpp/warn-undef-2.c: Likewise.
* gcc.dg/cpp/warn-traditional-2.c: Likewise.
* gcc.dg/cpp/warn-comments-2.c: Likewise.
* gcc.dg/cpp/warn-variadic-2.c: Likewise.
* gcc.dg/cpp/warning-directive-2.c: Likewise.
* gcc.dg/cpp/warn-long-long-2.c: Likewise.
* gcc.dg/cpp/warn-deprecated-2.c: Likewise.
* gcc.dg/cpp/warn-multichar-2.c: Likewise.
* gcc.dg/cpp/warn-normalized-3.c: Likewise.
* gcc.dg/cpp/warn-cxx-compat-2.c: Likewise.
* gcc.dg/cpp/warn-trigraphs-3.c: Likewise.
* gcc.dg/cpp/warn-unused-macros-2.c: Likewise.
* gcc.dg/cpp/warn-trigraphs-4.c: Likewise.
* gcc.dg/cpp/warn-redefined-2.c: Likewise.
* g++.dg/cpp/warning-directive-2.C: Likewise.
* gfortran.dg/warning-directive-2.F90: Likewise.
Removed:
trunk/gcc/testsuite/gcc.dg/Werror-9.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/diagnostic.c
trunk/gcc/diagnostic.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp/warning-directive-2.C
trunk/gcc/testsuite/g++.dg/warn/unused-result1-Werror.c
trunk/gcc/testsuite/gcc.dg/Wdeclaration-after-statement-3.c
trunk/gcc/testsuite/gcc.dg/Werror-4.c
trunk/gcc/testsuite/gcc.dg/Werror-6.c
trunk/gcc/testsuite/gcc.dg/Werror-implicit-function-declaration.c
trunk/gcc/testsuite/gcc.dg/Wfatal.c
trunk/gcc/testsuite/gcc.dg/Wpointer-arith.c
trunk/gcc/testsuite/gcc.dg/Wswitch-enum-error.c
trunk/gcc/testsuite/gcc.dg/Wswitch-error.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-cxx-compat-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-deprecated-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-multichar-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-normalized-3.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-traditional-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-trigraphs-3.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-trigraphs-4.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-undef-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-unused-macros-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warn-variadic-2.c
trunk/gcc/testsuite/gcc.dg/cpp/warning-directive-2.c
trunk/gcc/testsuite/gfortran.dg/warning-directive-2.F90
trunk/gcc/toplev.c
More information about the Gcc-cvs
mailing list