[Patch, fortran] PR 41860 -finit-local-XXX should not clobber -fno-automatic

Janne Blomqvist blomqvist.janne@gmail.com
Wed Oct 28 23:26:00 GMT 2009


On Thu, Oct 29, 2009 at 01:09, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> On Thu, Oct 29, 2009 at 01:05:38AM +0200, Janne Blomqvist wrote:
>>
>> The problem is that -fno-automatic in the compiler means
>> -fmax-var-stack-size=0, implying that all local variables become
>> static rather than being stack allocated. However, this option does
>> not set the save attribute for the variable, so we miss it when doing
>> a default initialization. Attached patch fixes this. Regtested on
>> x86_64-unknown-linux-gnu, Ok for trunk?
>>
>
> Yes.

Committed as r153689.

Thanks for the quick review.

-- 
Janne Blomqvist



More information about the Fortran mailing list