+2017-02-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/79512
+ * c-parser.c (c_parser_omp_target): For -fopenmp-simd
+ ignore #pragma omp target even when not followed by identifier.
+
2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
return c_parser_omp_target_update (loc, parser, context);
}
}
+ if (!flag_openmp) /* flag_openmp_simd */
+ {
+ c_parser_skip_to_pragma_eol (parser, false);
+ return false;
+ }
stmt = make_node (OMP_TARGET);
TREE_TYPE (stmt) = void_type_node;
+2017-02-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/79512
+ * parser.c (cp_parser_omp_target): For -fopenmp-simd
+ ignore #pragma omp target even when not followed by identifier.
+
2017-02-15 Jason Merrill <jason@redhat.com>
Jakub Jelinek <jakub@redhat.com>
return cp_parser_omp_target_update (parser, pragma_tok, context);
}
}
+ if (!flag_openmp) /* flag_openmp_simd */
+ {
+ cp_parser_skip_to_pragma_eol (parser, pragma_tok);
+ return false;
+ }
stmt = make_node (OMP_TARGET);
TREE_TYPE (stmt) = void_type_node;
+2017-02-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/79512
+ * c-c++-common/gomp/pr79512.c: New test.
+
2017-02-15 Martin Sebor <msebor@redhat.com>
PR c++/79363
--- /dev/null
+/* PR c++/79512 */
+/* { dg-options "-fopenmp-simd" } */
+
+void
+foo (void)
+{
+ #pragma omp target
+ #pragma omp teams
+ {
+ int i;
+ for (i = 0; i < 10; i++)
+ ;
+ }
+}