summaryrefslogtreecommitdiff
path: root/gcc/c-family/c-pragma.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-02-19 17:45:21 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2014-02-19 17:45:21 +0100
commit28e4187469fc47df5fc93133e7bcd730eccd25cd (patch)
tree89ad6391fa5043f1097f13da17a3c86f04c4e8cf /gcc/c-family/c-pragma.c
parent6aa5b4b87e30d82f34088b9c47a3542ca6c2e438 (diff)
downloadgcc-28e4187469fc47df5fc93133e7bcd730eccd25cd.tar.gz
re PR c++/60267 (ICE in c_pp_lookup_pragma, at c-family/c-pragma.c:1232; ICE in tsubst_copy, at cp/pt.c:12887)
PR c++/60267 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma for PRAGMA_IVDEP if flag_preprocess_only. * gcc.dg/pr60267.c: New test. From-SVN: r207911
Diffstat (limited to 'gcc/c-family/c-pragma.c')
-rw-r--r--gcc/c-family/c-pragma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c
index 07d23ace945..91fffdbd5ba 100644
--- a/gcc/c-family/c-pragma.c
+++ b/gcc/c-family/c-pragma.c
@@ -1392,8 +1392,9 @@ init_pragma (void)
cpp_register_deferred_pragma (parse_in, "GCC", "pch_preprocess",
PRAGMA_GCC_PCH_PREPROCESS, false, false);
- cpp_register_deferred_pragma (parse_in, "GCC", "ivdep", PRAGMA_IVDEP, false,
- false);
+ if (!flag_preprocess_only)
+ cpp_register_deferred_pragma (parse_in, "GCC", "ivdep", PRAGMA_IVDEP, false,
+ false);
#ifdef HANDLE_PRAGMA_PACK_WITH_EXPANSION
c_register_pragma_with_expansion (0, "pack", handle_pragma_pack);
#else