http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53787
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization CC| |jamborm at gcc dot gnu.org Component|lto |tree-optimization Summary|Possible lto improvement |Possible IPA-SRA / IPA-CP | |improvement --- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-28 10:08:13 UTC --- This has nothing to do with LTO - with a single compilation unit you can use -fwhole-program. The issue is that Fortran passes parameters by reference and our interprocedural constant-propagation pass does not know how to deal with that. The IPA SRA pass which is supposed to "fix" that decides that init cannot have its signature changed. Martin, can you check why? I think we ought to optimize this with -O3 -fwhole-program -fno-inline.