aboutsummaryrefslogtreecommitdiff
path: root/libcpp/macro.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-06-09 23:13:25 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2006-06-09 23:13:25 +0200
commit1c90c6f9c03360da9f6b01ef0ec28e309a0bb892 (patch)
tree1069b42cba4da5d5d5b7ba05363311e967728b4e /libcpp/macro.c
parent549fb079d3e338f2d00fbbd7b72f11fd69eb1d0b (diff)
downloadgcc-1c90c6f9c03360da9f6b01ef0ec28e309a0bb892.zip
gcc-1c90c6f9c03360da9f6b01ef0ec28e309a0bb892.tar.gz
gcc-1c90c6f9c03360da9f6b01ef0ec28e309a0bb892.tar.bz2
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
Diffstat (limited to 'libcpp/macro.c')
-rw-r--r--libcpp/macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/macro.c b/libcpp/macro.c
index 67e936e..b29f3a0 100644
--- a/libcpp/macro.c
+++ b/libcpp/macro.c
@@ -1180,7 +1180,7 @@ cpp_scan_nooutput (cpp_reader *pfile)
pfile->state.prevent_expansion--;
}
-/* Step back one (or more) tokens. Can only step mack more than 1 if
+/* Step back one (or more) tokens. Can only step back more than 1 if
they are from the lexer, and not from macro expansion. */
void
_cpp_backup_tokens (cpp_reader *pfile, unsigned int count)