]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR preprocessor/27746 (ICE on openmp code when using _Pragma from macro)
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Jun 2006 21:13:25 +0000 (23:13 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Jun 2006 21:13:25 +0000 (23:13 +0200)
commit1c90c6f9c03360da9f6b01ef0ec28e309a0bb892
tree1069b42cba4da5d5d5b7ba05363311e967728b4e
parent549fb079d3e338f2d00fbbd7b72f11fd69eb1d0b
re PR preprocessor/27746 (ICE on openmp code when using _Pragma from macro)

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.

From-SVN: r114519
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp/_Pragma1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/macro-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/macro-4.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/_Pragma6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/macro-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/macro-4.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/directives.c
libcpp/macro.c