+2019-11-19 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/92557
+ * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
+ vmode rather than asserting it always is.
+
2019-11-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/92554
if (type == NULL_TREE || TYPE_MODE (type) != mode)
continue;
type = build_vector_type_for_mode (type, vmode);
- /* The functions above are not allowed to return invalid modes. */
- gcc_assert (TYPE_MODE (type) == vmode);
+ if (TYPE_MODE (type) != vmode)
+ continue;
if (TYPE_ALIGN_UNIT (type) > al)
al = TYPE_ALIGN_UNIT (type);
}
+2019-11-19 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/92557
+ * gcc.dg/gomp/pr92557.c: New test.
+
2019-11-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/92554
--- /dev/null
+/* PR tree-optimization/92557 */
+/* { dg-do compile } */
+/* { dg-additional-options "-maltivec" { target powerpc*-*-* } } */
+
+void
+foo (double *p)
+{
+ int i;
+
+#pragma omp simd aligned (p)
+ for (i = 0; i < 1; ++i)
+ p[i] = 7.0;
+}