[Bug tree-optimization/15579] [3.5 Regression] always_inline ignored at -O0

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat May 22 22:36:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-21 23:44 -------
Confirmed, the problem is the attribute always_inline is ignored at -O0 causing these regressions.
Another problem is that the constants are not prograted even with -finline.
Here is a small example:
int ghgf(int);

static inline int __attribute__((always_inline)) a(int l)
{
  return ghgf(l);
}
int b()
{
  return a(1);
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|c++                         |tree-optimization
     Ever Confirmed|                            |1
           Keywords|                            |missed-optimization, wrong-
                   |                            |code
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-21 23:44:43
               date|                            |
            Summary|tree-ssa regression for C++ |[3.5 Regression]
                   |altivec tests               |always_inline ignored at -O0
   Target Milestone|---                         |3.5.0


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



More information about the Gcc-bugs mailing list