Backported from mainline
2016-11-21 Jakub Jelinek <jakub@redhat.com>
PR middle-end/67335
* omp-low.c (simd_clone_adjust_argument_types): Use NULL prefix
for tmp simd array if DECL_NAME (parm) is NULL.
* g++.dg/vect/simd-clone-7.cc: New test.
From-SVN: r248625
2017-05-30 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2016-11-21 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/67335
+ * omp-low.c (simd_clone_adjust_argument_types): Use NULL prefix
+ for tmp simd array if DECL_NAME (parm) is NULL.
+
2016-11-16 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/78378
if (node->definition)
node->simdclone->args[i].simd_array
- = create_tmp_simd_array (IDENTIFIER_POINTER (DECL_NAME (parm)),
+ = create_tmp_simd_array (DECL_NAME (parm)
+ ? IDENTIFIER_POINTER (DECL_NAME (parm))
+ : NULL,
parm_type, node->simdclone->simdlen);
}
adjustments.safe_push (adj);
2017-05-30 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2016-11-21 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/67335
+ * g++.dg/vect/simd-clone-7.cc: New test.
+
2016-11-18 Jakub Jelinek <jakub@redhat.com>
PR c++/77285
--- /dev/null
+// PR middle-end/67335
+// { dg-do compile }
+// { dg-additional-options "-fopenmp-simd" }
+
+#pragma omp declare simd notinbranch uniform(y)
+float
+bar (float x, float *y, int)
+{
+ return y[0] + y[1] * x;
+}