delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/19/16:24:04

Message-ID: <35105291.D1A8850@gmx.net>
Date: Thu, 19 Mar 1998 00:02:41 +0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Organization: none provided
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: DJ Delorie <dj AT delorie DOT com>, djgpp-workers AT delorie DOT com
Subject: Re: Bugs in 2.8.0?
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980318160710 DOT 21675G AT is>

Eli Zaretskii wrote :
> 
> 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))".

If we place it in crt1.c and call it from there we don't need the
__attribute__((constructor))

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

That's an argument which I understand and therefore I wanted to
have a separate startup object file.

Robert

- Raw text -


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