[patch, fortran] Fix the rest of PR 59345

Thomas Koenig tkoenig@netcologne.de
Sat Jan 12 21:09:00 GMT 2019


Hello world,

this patch fixes the rest of the PR by making sure we do not
pack/unpack for function results which are either allocatable
or explicit shape arrays.

Regression-tested. OK for trunk?

Regards

	Thomas

2019-01-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/59345
         * trans-array.c (gfc_conv_array_parameter): Remove TODO.  Do not
         pack/unpack results of functions which return an explicit-shaped
         or allocatable array.

2019-01-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/59345
         * gfortran.dg/internal_pack_17.f90: New test.
         * gfortran.dg/alloc_comp_auto_array_3.f90: Adjust number of calls
         to builtin_free.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p4.diff
Type: text/x-patch
Size: 1517 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190112/0f65cc6f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: internal_pack_17.f90
Type: text/x-fortran
Size: 679 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190112/0f65cc6f/attachment-0001.bin>


More information about the Gcc-patches mailing list