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: hjl at lucon dot org (H.J. Lu)
- Subject: Re: multiple definitions of 'xxx keyed to...' in egcs-1.1.1
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Sat, 30 Jan 1999 19:34:44 -0700
- cc: oliva at dcc dot unicamp dot br (Alexandre Oliva), jason at cygnus dot com, egcs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <m106iAc-000390C@ocean.lucon.org>you write:
> >
> > On Jan 29, 1999, hjl@varesearch.com (H.J. Lu) wrote:
> >
> > > I have no idea if this patch is correct. But it works for me. gcc
> > > seems to pick a poor choice of function name for global constructors
> > > and destructors. It may not be unique across files.
> >
> > AFAIR, Jason Merrill had fixed this in the trunk, maybe it's just a
> > matter of porting his fix to the branch.
> >
>
> I saw the fix. It should be back ported to 1.1.2. However, Jason' fix
> is not 100% safe since it bets on luck. My second patch is 100% safe.
> But it only covers ctors/dtors in C++ and only works on ELF.
In what way does it "bets on luck"?
Such statements carry far more weight when you take the time to explain them.
jeff