[Bug fortran/89651] OpenMP private array uninitialized warning with -O flag

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 30 20:40:00 GMT 2019


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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 30 20:40:17 2019
New Revision: 270724

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

        PR fortran/89651
        * trans-openmp.c (gfc_omp_clause_default_ctor): Set TREE_NO_WARNING
        on decl if adding COND_EXPR for allocatable.
        (gfc_omp_clause_copy_ctor): Set TREE_NO_WARNING on dest.

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

Added:
    branches/gcc-8-branch/gcc/testsuite/gfortran.dg/gomp/pr89651.f90
Modified:
    branches/gcc-8-branch/gcc/fortran/ChangeLog
    branches/gcc-8-branch/gcc/fortran/trans-openmp.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list