re PR c/59304 (#pragma diagnostic pop after warning fails for options unspecified...
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 20 Aug 2014 12:48:16 +0000 (12:48 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 20 Aug 2014 12:48:16 +0000 (12:48 +0000)
commit3ba421e8becbd17526a88ec76226d7213b96af14
tree3164cedfb7fb422a18eb3305ee3af6daa65943fa
parentc84d88e45c50cadf07edfaac07b174490d48bbde
re PR c/59304 (#pragma diagnostic pop after warning fails for options unspecified in the command-line and disabled by default)

gcc/ChangeLog:

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

PR c/59304
* opts-common.c (set_option): Call diagnostic_classify_diagnostic
before setting the option.
* diagnostic.c (diagnostic_classify_diagnostic): Record
command-line status.

gcc/testsuite/ChangeLog:

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

PR c/59304
* gcc.dg/pr59304.c: New test.

From-SVN: r214221
gcc/ChangeLog
gcc/diagnostic.c
gcc/opts-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr59304.c [new file with mode: 0644]