diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2022-03-11 08:48:58 +0100 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2022-03-11 08:48:58 +0100 |
commit | 41bda0036ce81e7ac513f325e7b0f41ccf11cbab (patch) | |
tree | 9add88c8a39abefc167dddc6117aa9d376d2d90b /gcc/builtins.h | |
parent | 5e28be89665f340368e399a1f2140c96a7a79ee8 (diff) | |
download | gcc-41bda0036ce81e7ac513f325e7b0f41ccf11cbab.zip gcc-41bda0036ce81e7ac513f325e7b0f41ccf11cbab.tar.gz gcc-41bda0036ce81e7ac513f325e7b0f41ccf11cbab.tar.bz2 |
Fortran: OpenMP/OpenACC avoid uninit access in size calc for mapping
gcc/fortran/ChangeLog:
* trans-openmp.cc (gfc_trans_omp_clauses, gfc_omp_finish_clause):
Obtain size for mapping only if allocatable array is allocated.
gcc/testsuite/ChangeLog:
* gfortran.dg/goacc/array-with-dt-1.f90: Update/add comments;
remove dg-warning for 'is used uninitialized'.
* gfortran.dg/goacc/pr93464.f90: Likewise.
* gfortran.dg/goacc/array-with-dt-1a.f90: New; copied from
gfortran.dg/goacc/array-with-dt-1.f90 but run with -O0. Update
dg-warning for 'may be used uninitialized'.
* gfortran.dg/goacc/pr93464-2.f90: Likewise; copied from
gfortran.dg/goacc/pr93464.f90.
Diffstat (limited to 'gcc/builtins.h')
0 files changed, 0 insertions, 0 deletions