Backported from mainline
2019-01-29 Jakub Jelinek <jakub@redhat.com>
PR c++/66676
PR ipa/89104
* omp-simd-clone.c (simd_clone_clauses_extract)
<case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
OMP_CLAUSE_ALIGNED_ALIGNMENT.
* gcc.dg/gomp/pr89104.c: New test.
From-SVN: r268636
2019-02-07 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2019-01-29 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/66676
+ PR ipa/89104
+ * omp-simd-clone.c (simd_clone_clauses_extract)
+ <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
+ OMP_CLAUSE_ALIGNED_ALIGNMENT.
+
2019-01-28 Jakub Jelinek <jakub@redhat.com>
PR middle-end/89002
}
case OMP_CLAUSE_ALIGNED:
{
+ /* Ignore aligned (x) for declare simd, for the ABI we really
+ need an alignment specified. */
+ if (OMP_CLAUSE_ALIGNED_ALIGNMENT (t) == NULL_TREE)
+ break;
tree decl = OMP_CLAUSE_DECL (t);
int argno = tree_to_uhwi (decl);
clone_info->args[argno].alignment
2019-02-07 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2019-01-29 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/66676
+ PR ipa/89104
+ * gcc.dg/gomp/pr89104.c: New test.
+
2019-01-27 Jakub Jelinek <jakub@redhat.com>
PR target/87214
--- /dev/null
+/* PR c++/66676 */
+/* PR ipa/89104 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fopenmp-simd" } */
+
+#pragma omp declare simd uniform (x) aligned (x)
+int
+foo (int *x, int y)
+{
+ return x[y];
+}