This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]