[Bug middle-end/54123] inline functions not optimized as well as static inline

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 30 09:05:00 GMT 2012


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-07-30
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-30 09:05:25 UTC ---
Confirmed.  inline and static inline should be the same with C99.

Honza - I suppose inlining static functions called once may be the
reason this doesn't work with plain 'inline'.  I guess we need a better
predicate here?  inline functions called once whose bodies can be
removed?



More information about the Gcc-bugs mailing list