OSDN Git Service

2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2007 10:18:58 +0000 (10:18 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2007 10:18:58 +0000 (10:18 +0000)
commitf9a354ab874523e074a821eb7ba9e7ddead4aaf0
treefa32faad84393dfa336f79b8f5cfeab5bd3aad7b
parentef1ec07380c84289965dee395c74c184309f5a01
2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
            DJ Delorie <dj@redhat.com>

PR other/30824
* diagnostic.c (diagnostic_count_diagnostic): Move -Werror
logic to...
(diagnostic_report_diagnostic): ... here, and turn them into
real errors. If warnings are inhibited, no need to do
anything.

testsuite/
* gcc.dg/Wfatal.c: New.
* gcc.dg/Wfatal-2.c: New.
* gcc.dg/Werror-1.c: Adjust expectations.
* gcc.dg/Werror-5.c: Likewise.
* gcc.dg/Werror-7.c: Likewise.
* gcc.dg/Werror-10.c: Likewise.
* gcc.dg/Werror-11.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122159 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/diagnostic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Werror-1.c
gcc/testsuite/gcc.dg/Werror-10.c
gcc/testsuite/gcc.dg/Werror-11.c
gcc/testsuite/gcc.dg/Werror-5.c
gcc/testsuite/gcc.dg/Werror-7.c
gcc/testsuite/gcc.dg/Wfatal-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wfatal.c [new file with mode: 0644]