https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78884

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Aug 30 12:48:57 2019
New Revision: 275163

URL: https://gcc.gnu.org/viewcvs?rev=275163&root=gcc&view=rev
Log:
        Backported from mainline
        2019-07-04  Jakub Jelinek  <ja...@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.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/gomp/pr78884.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/gimplify.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to