This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: multiple definitions of 'xxx keyed to...' in egcs-1.1.1
- To: law at cygnus dot com, Jeffrey A Law <law at hurl dot cygnus dot com>, hjl at lucon dot org (H.J. Lu)
- Subject: Re: multiple definitions of 'xxx keyed to...' in egcs-1.1.1
- From: Andris Pavenis <andris at stargate dot astr dot lu dot lv>
- Date: Mon, 22 Feb 1999 10:40:24 +0200
- Cc: egcs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
- References: <4941.919544939@hurl.cygnus.com>
On Sat, 20 Feb 1999, Jeffrey A Law wrote:
>In message <m10EJXX-000392C@ocean.lucon.org>you write:
> > Here it is.
> >
> > --
> > H.J. Lu (hjl@gnu.org)
> > ----
> > Fri Jan 29 19:02:50 1999 H.J. Lu (hjl@gnu.org)
> >
> > * decl2.c (start_objects): Make file scope constructors and
> > destructors local to the file if ASM_OUTPUT_CONSTRUCTOR and
> > ASM_OUTPUT_DESTRUCTOR are defined.
>I don't think this patch is correct.
>
>Consider COFF systems which define ASM_OUTPUT_*. Are you absolutely sure
>that this patch wil work on COFF systems?
>
I tried it for DJGPP (which uses COFF) and initially didn't saw problems.
But anyway some more testing is required.
Maybe it worth to add one additional macro to enable making file scope
constructors local
#if defined(ASM_OUTPUT_CONSTRUCTOR) && \
defined(ASM_OUTPUT_DESTRUCTOR) && \
defined(MAKE_SCOPE_CONSTRUCTORS_LOCAL)
Then we would be able to enable this feature only on systems we want it to
be enabled.
Andris