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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Oct 19 07:38:59 2017
New Revision: 253878

URL: https://gcc.gnu.org/viewcvs?rev=253878&root=gcc&view=rev
Log:
        PR fortran/82568
        * gfortran.h (gfc_resolve_do_iterator): Add a bool arg.
        (gfc_resolve_omp_local_vars): New declaration.
        * openmp.c (omp_current_ctx): Make static.
        (gfc_resolve_omp_parallel_blocks): Handle EXEC_OMP_TASKLOOP
        and EXEC_OMP_TASKLOOP_SIMD.
        (gfc_resolve_do_iterator): Add ADD_CLAUSE argument, if false,
        don't actually add any clause.  Move omp_current_ctx test
        earlier.
        (handle_local_var, gfc_resolve_omp_local_vars): New functions.
        * resolve.c (gfc_resolve_code): Call gfc_resolve_omp_parallel_blocks
        instead of just gfc_resolve_omp_do_blocks for EXEC_OMP_TASKLOOP
        and EXEC_OMP_TASKLOOP_SIMD.
        (gfc_resolve_code): Adjust gfc_resolve_do_iterator caller.
        (resolve_codes): Call gfc_resolve_omp_local_vars.

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

Added:
    trunk/gcc/testsuite/gfortran.dg/gomp/pr82568.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/openmp.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to