[Bug middle-end/27881] [4.1 Regression] Memory exhausted with -finline-functions on testsuite file alias3.C

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 14 17:25:00 GMT 2006



------- Comment #9 from mmitchel at gcc dot gnu dot org  2006-11-14 17:25 -------
The following simpler test case is sufficient to show the same behavior:

struct X{};
void f(X& x)
{
  f(x);
  f(x);
}

Also, it is indeed true that --param max-inline-recursive-depth-auto=3 makes
this compile instantaneously, but a value of 4 makes it go for a long time.  I
understand expoentials, but 2^4 isn't that big a number, so I wonder if we're
hitting something else super-linear in here -- perhaps something that still in
later releases as well?

I am going to downgrade this to P2, as normally -finline-functions is only used
with -O3, and as the --param option provides a work-around.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2


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



More information about the Gcc-bugs mailing list