[Bug middle-end/18231] [4.0 regression] Nested inline function not inlined
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 30 20:03:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-30 20:03 -------
Hmm the problem is that ADDR_EXPR of the function is not declared as invariant so we creating a
temprary variable for it. This also caused us to produce much worse code for the following than 3.3
and 3.4.0:
int f (int i)
{
int h (int j) { return i; }
int g (void) { return h (i); }
return g ();
}
Mine, I am posting a patch for it right now.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18231
More information about the Gcc-bugs
mailing list