aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/openmp.cc
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2025-01-19 21:06:56 +0100
committerHarald Anlauf <anlauf@gmx.de>2025-01-20 18:43:18 +0100
commit0d1e62b83561baa185bf080515750a89dd3ac410 (patch)
treea4dd9f658eba51b9d148b180a5b9522869dbffc3 /gcc/fortran/openmp.cc
parent0b58219fe112c01ff335edf699c4fc69e718c75b (diff)
downloadgcc-0d1e62b83561baa185bf080515750a89dd3ac410.zip
gcc-0d1e62b83561baa185bf080515750a89dd3ac410.tar.gz
gcc-0d1e62b83561baa185bf080515750a89dd3ac410.tar.bz2
Fortran: do not copy back for parameter actual arguments [PR81978]
When an array is packed for passing as an actual argument, and the array has the PARAMETER attribute (i.e., it is a named constant that can reside in read-only memory), do not copy back (unpack) from the temporary. PR fortran/81978 gcc/fortran/ChangeLog: * trans-array.cc (gfc_conv_array_parameter): Do not copy back data if actual array parameter has the PARAMETER attribute. * trans-expr.cc (gfc_conv_subref_array_arg): Likewise. gcc/testsuite/ChangeLog: * gfortran.dg/pr81978.f90: New test.
Diffstat (limited to 'gcc/fortran/openmp.cc')
0 files changed, 0 insertions, 0 deletions