Commit 28e41874 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/60267 (ICE in c_pp_lookup_pragma, at c-family/c-pragma.c:1232; ICE in…

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
parent 6aa5b4b8
2014-02-19 Jakub Jelinek <jakub@redhat.com>
PR c++/60267
* c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
for PRAGMA_IVDEP if flag_preprocess_only.
2014-02-12 Jakub Jelinek <jakub@redhat.com> 2014-02-12 Jakub Jelinek <jakub@redhat.com>
PR c/60101 PR c/60101
......
...@@ -1392,8 +1392,9 @@ init_pragma (void) ...@@ -1392,8 +1392,9 @@ init_pragma (void)
cpp_register_deferred_pragma (parse_in, "GCC", "pch_preprocess", cpp_register_deferred_pragma (parse_in, "GCC", "pch_preprocess",
PRAGMA_GCC_PCH_PREPROCESS, false, false); PRAGMA_GCC_PCH_PREPROCESS, false, false);
cpp_register_deferred_pragma (parse_in, "GCC", "ivdep", PRAGMA_IVDEP, false, if (!flag_preprocess_only)
false); cpp_register_deferred_pragma (parse_in, "GCC", "ivdep", PRAGMA_IVDEP, false,
false);
#ifdef HANDLE_PRAGMA_PACK_WITH_EXPANSION #ifdef HANDLE_PRAGMA_PACK_WITH_EXPANSION
c_register_pragma_with_expansion (0, "pack", handle_pragma_pack); c_register_pragma_with_expansion (0, "pack", handle_pragma_pack);
#else #else
......
2014-02-19 Jakub Jelinek <jakub@redhat.com>
PR c++/60267
* gcc.dg/pr60267.c: New test.
2014-02-19 Uros Bizjak <ubizjak@gmail.com> 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
PR target/59794 PR target/59794
......
/* PR c++/60267 */
/* { dg-do compile } */
/* { dg-options "-O2 -save-temps" } */
void
foo (int *a, int *b, int *c)
{
int i;
#pragma GCC ivdep
for (i = 0; i < 64; i++)
a[i] = b[i] * c[i];
}
/* { dg-final { cleanup-saved-temps } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment