This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: fix PR 31775, name mangling conflict between static and extern
- From: Ian Lance Taylor <iant at google dot com>
- To: gkeating at apple dot com (Geoffrey Keating)
- Cc: gcc-patches at gcc dot gnu dot org, binutils at sourceware dot org, mark at codesourcery dot com, ian at airs dot com
- Date: 03 May 2007 09:49:22 -0700
- Subject: Re: fix PR 31775, name mangling conflict between static and extern
- References: <20070503010656.34D295FCBF86@geoffk5.apple.com>
gkeating@apple.com (Geoffrey Keating) writes:
> There's discussion of the problem in <http://gcc.gnu.org/PR31775>.
> Basically, mangled names of objects and functions with internal
> linkage need to be different to mangled names of those with external
> linkage, because it's possible to refer to both within the same
> translation unit.
>
> I'm using the same mangling I'm developing for IMA, although slightly
> simplified. There are many other possible manglings; but I've already
> had that bikeshed discussion and I think this one will work as well as
> any.
>
> Mark, Ian, you had comments about a previous version of the libiberty
> part of this patch. Mark, do you still object?
This mangling works for me.
Ian