This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Tail recursion vs exceptions vs C++


ZW> You must either use g++ for the link operation, or add -lstdc++ to the
ZW> command line.  (Patches to augment collect2 and/or GNU ld so that this
ZW> is not necessary are welcome.)

Thank you, understood.  I'm unfortunately not in a position to work on
that.

ZW> I very much doubt this has anything to do with recursion, tail or
ZW> otherwise, except perhaps insofar as GNU C++ is clever enough to
ZW> realize that no exception handling information is necessary for...

I tried to compile a reasonably large program, which GNU C++ was also
apparently clever enough to realize needed to exception handling, until
I added some code with a tail call, got this error, and started
stripping the code to find the problem.  I was surprised to see how
much code came out!

-Iain McClatchie                       iain@truecircuits.com
                                       650-691-7604 voice
True Circuits, Inc.                    650-691-7606 FAX
                                       650-703-2095 cell


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