This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Exceptions workaround for older systems that don't USE_COLLECT2
- To: law at cygnus dot com, egcs at cygnus dot com
- Subject: Re: Exceptions workaround for older systems that don't USE_COLLECT2
- From: Jason Merrill <jason at cygnus dot com>
- Date: 08 Sep 1998 14:35:00 -0700
- References: <199809050209.TAA27108@daisy.css.sfu.ca> <24907.905069305.cygnus.egcs@hurl.cygnus.com>
>>>>> 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