[Bug tree-optimization/34940] contained subroutines called only once are not inlined

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Fri Mar 29 08:58:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34940

Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2012-06-29 11:27:01         |2013-03-29
                 CC|                            |Joost.VandeVondele at mat
                   |                            |dot ethz.ch
      Known to fail|                            |4.9.0

--- Comment #16 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2013-03-29 08:58:42 UTC ---
(In reply to comment #6)
> Function is static, that seems OK.
> We inline it with ./xgcc -B ./ -O2 t.f90 -S  --param large-stack-frame=2000
> 
> We are somewhat stupid here, since the call happens all the time and thus stack
> frame growth limits don't need to apply.  I can implement this if this is
> common case for fortran.  How commonly we run into these io structs?
> We can also bump large stack limits to make fortran I/O to fit in.
> 
> Honza

I think it would make sense to implement this, if easy enough. It could be a
common pattern for contained subroutines and private module procedures



More information about the Gcc-bugs mailing list