This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: overactive deallocation


Janne,

Ah, yes - on re-reading Steve's message I see that is what he meant.

Cheers

Paul

On Fri, Nov 21, 2008 at 9:33 AM, Janne Blomqvist
<blomqvist.janne@gmail.com> wrote:
> Paul Richard Thomas wrote:
>>
>> Steve,
>>
>> Take a look at trans-decl.c(gfc_trans_deferred_vars) and its callees
>> for the code that generates the deallocation on going out of scope.  I
>> am not sure how either deallocation could be eliminated.
>
> I think the point was that the dead code elimination pass in the middle-end
> should be able to remove the second call. And indeed this is what happens if
> you look at the asm output when compiling with optimization.
>
>
> --
> Janne Blomqvist
>



-- 
The knack of flying is learning how to throw yourself at the ground and miss.
       --Hitchhikers Guide to the Galaxy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]