+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>
PR c/60101
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
--- /dev/null
+/* 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 } } */