summaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-08-03 10:34:16 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2017-08-03 10:34:16 +0200
commit0a734553cc49e4767dfefa1328d1fb5cf464650b (patch)
tree4c114bfb96122974366f51decae80f781f05a48c /gcc/omp-low.c
parent96715b4baf054c82b50bfd08f1d4711f493773c3 (diff)
downloadgcc-0a734553cc49e4767dfefa1328d1fb5cf464650b.tar.gz
re PR middle-end/81052 (ICE in verify_dominators, at dominance.c:1184)
PR middle-end/81052 * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp. (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd. * c-c++-common/pr81052.c: New test. From-SVN: r250847
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index bf3fc53b07a..2e0973e06d1 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -9083,7 +9083,7 @@ diagnose_sb_0 (gimple_stmt_iterator *gsi_p,
}
if (kind == NULL)
{
- gcc_checking_assert (flag_openmp);
+ gcc_checking_assert (flag_openmp || flag_openmp_simd);
kind = "OpenMP";
}
@@ -9343,7 +9343,7 @@ public:
/* opt_pass methods: */
virtual bool gate (function *)
{
- return flag_cilkplus || flag_openacc || flag_openmp;
+ return flag_cilkplus || flag_openacc || flag_openmp || flag_openmp_simd;
}
virtual unsigned int execute (function *)
{