This is the mail archive of the gcc-patches@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]

Re: Example program takes 2000 times as long to compile under C++ as C


On Tue, Sep 05, 2000 at 10:46:16PM -0700, Zack Weinberg wrote:
> Hypothesis: maybe it thinks the recursive call uses the address of an
> object in the current function's stack frame?)

We don't check to see whether a recursive call uses the address of an
object, but rather whether an object has its address taken.  I.e. we
do not do the data flow analysis to see where that address wound up.

Previous versions of gcc made a half-hearted attempt at this, but got
it wrong.  I ripped it all out.  Perhaps one day someone will write the
code to solve the problem correctly.


r~

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