]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/78884 ([7/8] ICE when gimplifying VLA in OpenMP SIMD region)
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Aug 2019 12:48:57 +0000 (14:48 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Aug 2019 12:48:57 +0000 (14:48 +0200)
commit9c273107defa3c2952a26230620f5f114c368793
tree00d02ca8a619581d9e00b1280a3a4f2b12def46f
parent881212bb8f89703c4a636c692a731e04eb4c83d3
backport: re PR middle-end/78884 ([7/8] ICE when gimplifying VLA in OpenMP SIMD region)

Backported from mainline
2019-07-04  Jakub Jelinek  <jakub@redhat.com>

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: r275163
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr78884.c [new file with mode: 0644]