re PR middle-end/78884 ([7/8] ICE when gimplifying VLA in OpenMP SIMD region)
authorJakub Jelinek <jakub@redhat.com>
Thu, 4 Jul 2019 21:41:49 +0000 (23:41 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 4 Jul 2019 21:41:49 +0000 (23:41 +0200)
commitec03bc90e5bdb772e2f19ec352fc4b2e985e4c91
treec7a12300601b050ad3e64d33de63243d7f4b7f90
parent2f03073ff24bbb005d52db7e2b7a5ea32bb01140
re PR middle-end/78884 ([7/8] ICE when gimplifying VLA in OpenMP SIMD region)

PR middle-end/78884
* gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
(gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
(gimplify_adjust_omp_clauses): Add safelen (1) clause if
ctx->add_safelen1 is set.

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

From-SVN: r273096
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr78884.c [new file with mode: 0644]