Commit b51d4ebc by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/92557 (ICE in omp_clause_aligned_alignment, at omp-low.c:4090)

	PR tree-optimization/92557
	* omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
	vmode rather than asserting it always is.

	* gcc.dg/gomp/pr92557.c: New test.

From-SVN: r278432
parent 04c4599d
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> 2019-11-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/92554 PR tree-optimization/92554
...@@ -4086,8 +4086,8 @@ omp_clause_aligned_alignment (tree clause) ...@@ -4086,8 +4086,8 @@ omp_clause_aligned_alignment (tree clause)
if (type == NULL_TREE || TYPE_MODE (type) != mode) if (type == NULL_TREE || TYPE_MODE (type) != mode)
continue; continue;
type = build_vector_type_for_mode (type, vmode); type = build_vector_type_for_mode (type, vmode);
/* The functions above are not allowed to return invalid modes. */ if (TYPE_MODE (type) != vmode)
gcc_assert (TYPE_MODE (type) == vmode); continue;
if (TYPE_ALIGN_UNIT (type) > al) if (TYPE_ALIGN_UNIT (type) > al)
al = TYPE_ALIGN_UNIT (type); 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> 2019-11-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/92554 PR tree-optimization/92554
......
/* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment