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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 30 20:55:14 2019
New Revision: 270742

URL: https://gcc.gnu.org/viewcvs?rev=270742&root=gcc&view=rev
Log:
        Backported from mainline
        2019-03-28  Jakub Jelinek  <ja...@redhat.com>

        PR middle-end/89621
        * tree-inline.h (struct copy_body_data): Add
        dont_remap_vla_if_no_change flag.
        * tree-inline.c (remap_type_3, remap_type_2): New functions.
        (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
        and remap_type_2 returns false.
        * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.

        * gfortran.dg/gomp/pr89621.f90: New test.

Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/gomp/pr89621.f90
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/omp-low.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/tree-inline.c
    branches/gcc-8-branch/gcc/tree-inline.h

Reply via email to