This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15579] [3.5 Regression] always_inline ignored at -O0
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2004 23:44:44 -0000
- Subject: [Bug tree-optimization/15579] [3.5 Regression] always_inline ignored at -O0
- References: <20040521233457.15579.janis187@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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