This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: multiple definitions of 'xxx keyed to...' in egcs-1.1.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]