https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66682

Avi Bloch <avibl at cadence dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |avibl at cadence dot com

--- Comment #10 from Avi Bloch <avibl at cadence dot com> ---
(In reply to Mikhail Maltsev from comment #8)
> (In reply to Brendan G Bohannon from comment #7)
> > The code in question creates about 7k internal functions, which could be a
> > factor?
> Well, yes probably the number of functions does matter here. But again, this
> is a bug in GCC, which has been fixed in later versions (4.9.x and later).
> I can even point out the relevant commit. I prepared a slightly reduced
> testcase (all 6-argument thunks, ~2000 functions). Bisection shows that
> r208113 compiles the testcase in 7.5s (at -O0), while the previous revision
> requires 71 second (and over 6 minutes for full testcase).
> BTW, r208113 is a fix for PR60291 - a similar issue with C code which is
> generated by glasgow haskell compiler.

If I can't upgrade to a newer compiler, do you know if it's possible to get
around this problem by using specific gcc options?

Thanks

Reply via email to