re PR c/35058 (-Werror= works only with some warnings)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 23 Jul 2008 15:57:49 +0000 (15:57 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 23 Jul 2008 15:57:49 +0000 (15:57 +0000)
commitfcf73884fb9b2a6ae5518beb715b3e6fd3161699
treef00173dd9740a4ee5b51d4737ab407c93e441bcc
parent554cd17b8d4df5ad1f58a68fdce3e9d8c5d56566
re PR c/35058 (-Werror= works only with some warnings)

2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR 35058
* diagnostic.c (pedwarn): Add opt parameter.
(pedwarn0): New.
* c-tree.h (pedwarn_init): Add opt parameter.
(pedwarn_c90): Likewise.
(pedwarn_c99): Likewise.
* c-errors.c (pedwarn_c99): Likewise.
(pedwarn_c90): Likewise.
* toplev.h (pedwarn): Update declaration.
(pedwarn0): Declare.
* c-lex.c: All calls to pedwarn changed.
* builtins.c: All calls to pedwarn changed.
* toplev.c: All calls to pedwarn changed.
* c-decl.c: All calls to pedwarn changed.
* c-typeck.c: All calls to pedwarn changed.
* c-common.c: All calls to pedwarn changed.
* c-parser.c: All calls to pedwarn changed.
cp/
* typeck.c: All calls to pedwarn changed.
* decl.c: All calls to pedwarn changed.
* call.c: All calls to pedwarn changed.
* error.c: All calls to pedwarn changed.
* typeck2.c: All calls to pedwarn changed.
* pt.c: All calls to pedwarn changed.
* name-lookup.c: All calls to pedwarn changed.
* parser.c: All calls to pedwarn changed.
fortran/
* f95-lang.c (gfc_mark_addressable): All calls to pedwarn changed.
testsuite/
* gcc.dg/Wdeclaration-after-statement-3.c: New.
* gcc/testsuite/gcc.dg/Wpointer-arith.c: New.

From-SVN: r138089
26 files changed:
gcc/ChangeLog
gcc/builtins.c
gcc/c-common.c
gcc/c-decl.c
gcc/c-errors.c
gcc/c-lex.c
gcc/c-parser.c
gcc/c-tree.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/error.c
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/cp/typeck2.c
gcc/diagnostic.c
gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wdeclaration-after-statement-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wpointer-arith.c [new file with mode: 0644]
gcc/toplev.c
gcc/toplev.h