This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: *PING* / Re: [Patch, Fortran] Finalize nonallocatables with INTENT(out)
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: fortran at gcc dot gnu dot org, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 08 Jun 2013 13:10:14 +0200
- Subject: Re: *PING* / Re: [Patch, Fortran] Finalize nonallocatables with INTENT(out)
- References: <51A8D22F dot 6040801 at net-b dot de> <51B049CA dot 80202 at net-b dot de>
Hello,
Le 06/06/2013 10:35, Tobias Burnus a écrit :
> * PING *
>
> Attached is a rediff - including the later posted additional test case
> (http://gcc.gnu.org/ml/fortran/2013-05/msg00141.html)
>
>
> On May 31, 2013 18:39, Tobias Burnus wrote:
>> This patch adds finalization support for INTENT(out) for
>> nonallocatable dummy arguments.
>>
>> Additionally, it addresses a missed optimization: The previous code
>> tried to deallocate allocatable components even if the dummy argument
>> was already an allocatable. That's a missed optimization as gfortran
>> deallocates allocatables in the caller.
>>
Is there any reason to handle them in the caller?
The patch is OK.
Mikael