Exceptions workaround for older systems that don't USE_COLLECT2
Jason Merrill
jason@cygnus.com
Tue Sep 8 19:58:00 GMT 1998
>>>>> Jeffrey A Law <law@cygnus.com> writes:
> In message < 199809050209.TAA27108@daisy.css.sfu.ca >you write:
>> Received wisdom states that you're on a system that doesn't need
>> to ``USE_COLLECT2'', you should make sure you're running a recent
>> version of GNU ld if you want exception support to work (at least
>> if it's using __throw for exceptions).
>>
>> However, under NEXTSTEP 3.3 one can't install a recent GNU ld,
>> because GNU ld doesn't support NEXTSTEP's object format. But,
>> because NEXTSTEP's ld is smart enough to grok constructors and
>> destructors, EGCS 1.1 (and every earlier release) isn't set to
>> ``USE_COLLECT2''. Net result: while static constructors and
>> destructors work fine, exceptions don't.
> Seems to me we ought to enable collect2 on these systems.
Yes, we should.
Jason
More information about the Gcc
mailing list