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

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Oct 28 23:13:00 GMT 2009


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.

-- 
Steve



More information about the Gcc-patches mailing list