This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR 41860 -finit-local-XXX should not clobber -fno-automatic
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