re PR fortran/89651 (OpenMP private array uninitialized warning with -O flag)
authorJakub Jelinek <jakub@redhat.com>
Mon, 11 Mar 2019 22:27:39 +0000 (23:27 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 11 Mar 2019 22:27:39 +0000 (23:27 +0100)
commita7b9de8b70a53cc6beb7d4cfee449a4cfc2dee20
treee7a9460b3293f68fc9c29fb51fb1b7fbc69ba5be
parent4f150726cf236755158c3d895a31b4216336fae7
re PR fortran/89651 (OpenMP private array uninitialized warning with -O flag)

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.

From-SVN: r269598
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr89651.f90 [new file with mode: 0644]