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

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


Hi,

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?



-- 
Janne Blomqvist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog
Type: application/octet-stream
Size: 149 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20091028/f51d7dd3/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: legacycrap.diff
Type: text/x-patch
Size: 581 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20091028/f51d7dd3/attachment.bin>


More information about the Fortran mailing list