This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/59304] #pragma diagnostic pop after warning fails for options unspecified in the command-line and disabled by default
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Aug 2014 12:48:49 +0000
- Subject: [Bug c/59304] #pragma diagnostic pop after warning fails for options unspecified in the command-line and disabled by default
- Auto-submitted: auto-generated
- References: <bug-59304-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59304
--- Comment #7 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
Author: manu
Date: Wed Aug 20 12:48:16 2014
New Revision: 214221
URL: https://gcc.gnu.org/viewcvs?rev=214221&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr59304.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/diagnostic.c
trunk/gcc/opts-common.c
trunk/gcc/testsuite/ChangeLog