diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-11-19 09:51:31 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-11-19 09:51:31 +0100 |
commit | b51d4ebc38cf4852b9c7746647526097f5bd00e9 (patch) | |
tree | f14057267b4c9ba30d91f5b371ec18c814ee1be5 /gcc/omp-low.c | |
parent | 04c4599d30b1eb7c21d39b15a685aa1d9b8bf968 (diff) | |
download | gcc-b51d4ebc38cf4852b9c7746647526097f5bd00e9.zip gcc-b51d4ebc38cf4852b9c7746647526097f5bd00e9.tar.gz gcc-b51d4ebc38cf4852b9c7746647526097f5bd00e9.tar.bz2 |
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
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 3e470af..19132f7 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -4086,8 +4086,8 @@ omp_clause_aligned_alignment (tree clause) 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); } |