]> 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>
Sun, 14 Jul 2019 08:28:06 +0000 (10:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 14 Jul 2019 08:28:06 +0000 (10:28 +0200)
commit803fcf21f4499235d7c61a019e967d3563f669e1
tree3746fc63d0191b866cac3edf2d510541da2d8930
parent223d142ccbd44eb8b731222e6bcad26104dbfd3a
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: r273477
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr78884.c [new file with mode: 0644]