re PR c/66098 (#pragma diagnostic 'ignored' not fully undone by pop for strict-overflow)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 11 Aug 2015 13:34:00 +0000 (13:34 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 11 Aug 2015 13:34:00 +0000 (13:34 +0000)
commitb32bc1ac16670eef2a0e61ae7bad47f8cfd278ed
treea12c2f52d788ca60fdf10a283f4349676f1fe125
parent8299dd5cbb6fbb756f0ad2f4dbff31c549e00837
re PR c/66098 (#pragma diagnostic 'ignored' not fully undone by pop for strict-overflow)

gcc/ChangeLog:

2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c/66098
PR c/66711
* diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
account when deciding what was the command-line status.

gcc/testsuite/ChangeLog:

2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c/66098
PR c/66711
* gcc.dg/pragma-diag-3.c: New test.
* gcc.dg/pragma-diag-4.c: New test.

From-SVN: r226780
gcc/ChangeLog
gcc/diagnostic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pragma-diag-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pragma-diag-4.c [new file with mode: 0644]