PR middle-end/68339
* omp-low.c (expand_simd_clones): Call node->get_body () before
allocating stuff in GC.
* gcc.dg/vect/pr68339.c: New test.
From-SVN: r230671
+2015-11-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/68339
+ * omp-low.c (expand_simd_clones): Call node->get_body () before
+ allocating stuff in GC.
+
2015-11-20 Jim Wilson <jim.wilson@linaro.org>
* tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
&& TYPE_ARG_TYPES (TREE_TYPE (node->decl)) == NULL_TREE)
return;
+ /* Call this before creating clone_info, as it might ggc_collect. */
+ if (node->definition && node->has_gimple_body_p ())
+ node->get_body ();
+
do
{
/* Start with parsing the "omp declare simd" attribute(s). */
+2015-11-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/68339
+ * gcc.dg/vect/pr68339.c: New test.
+
2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/arm/armv6-unaligned-load-ice.c: New test.
--- /dev/null
+/* PR middle-end/68339 */
+/* { dg-do compile } */
+/* { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0 -fopenmp-simd" } */
+
+#pragma omp declare simd notinbranch
+int
+f1 (int x)
+{
+ return x;
+}
+
+#pragma omp declare simd notinbranch
+int
+f2 (int x)
+{
+ return x;
+}