This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/59304] #pragma diagnostic pop after warning fails for options unspecified in the command-line and disabled by default


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]