delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/18/09:09:22

Date: Wed, 18 Mar 1998 16:07:20 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: DJ Delorie <dj AT delorie DOT com>
cc: robert DOT hoehne AT gmx DOT net, djgpp-workers AT delorie DOT com
Subject: Re: Bugs in 2.8.0?
In-Reply-To: <199803180115.UAA18154@delorie.com>
Message-ID: <Pine.SUN.3.91.980318160710.21675G@is>
MIME-Version: 1.0

On Tue, 17 Mar 1998, DJ Delorie wrote:

> I'd rather avoid the extra object file in the long run.

I'm afraid putting that code into the library might be worse, for
these reasons:

  1) Library modules are linked after all the object files.  Since
     functions with the `constructor' attribute are processed in the
     order they are seen by the linker, this means that users cannot
     use exception in their own functions which they declare
     "__attribute__((constructor))".

  2) We are introducing subtle but significant coupling between djdev
     and GCC, which as I understand DJ doesn't want.

  3) If somebody wants to link a C++ program with their own libc, they
     will need to remember to roll their own equivalent of crtf, or
     else have subtle bugs in exception handling.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019