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 preprocessor/27746] ICE on openmp code when using _Pragma from macro



------- Comment #13 from jakub at gcc dot gnu dot org  2006-06-09 21:13 -------
Subject: Bug 27746

Author: jakub
Date: Fri Jun  9 21:13:25 2006
New Revision: 114519

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114519
Log:
        PR preprocessor/27746
        * directives.c (do_pragma): Handle pragma with valid namespace
        and invalid name coming from macro expansion.
        * directives.c (destringize_and_run): Initialize next field in
        context.

        PR c/27747
        PR c++/27748
        * directives.c (destringize_and_run): Set NO_EXPAND on the
        tokens.

        * macro.c (_cpp_backup_tokens): Fix comment typo.
testsuite/
        PR c/27747
        * gcc.dg/cpp/_Pragma6.c: New test.

        PR c++/27748
        * g++.dg/cpp/_Pragma1.C: New test.

        PR preprocessor/27746
        * gcc.dg/gomp/macro-3.c: New test.
        * gcc.dg/gomp/macro-4.c: New test.
        * g++.dg/gomp/macro-3.C: New test.
        * g++.dg/gomp/macro-4.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp/_Pragma1.C
    trunk/gcc/testsuite/g++.dg/gomp/macro-3.C
    trunk/gcc/testsuite/g++.dg/gomp/macro-4.C
    trunk/gcc/testsuite/gcc.dg/cpp/_Pragma6.c
    trunk/gcc/testsuite/gcc.dg/gomp/macro-3.c
    trunk/gcc/testsuite/gcc.dg/gomp/macro-4.c
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libcpp/ChangeLog
    trunk/libcpp/directives.c
    trunk/libcpp/macro.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27746


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