This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Darwin] Patch, take 2: enable linkonce support for Darwin
- From: Jason Merrill <jason at redhat dot com>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>
- Date: Mon, 02 Feb 2004 14:11:48 -0500
- Subject: Re: [Darwin] Patch, take 2: enable linkonce support for Darwin
- References: <24F20E06-5275-11D8-AAA9-000A95BCF344@apple.com><3D92B8AD-5342-11D8-87CA-000A95BCF344@apple.com><20040131000123.GA18142@redhat.com><AC42CB55-5389-11D8-87CA-000A95BCF344@apple.com><xypsmht2ua0.fsf@miranda.boston.redhat.com><0F924D38-55B2-11D8-8FF8-000A95AA5E5E@apple.com>
On Mon, 2 Feb 2004 11:00:26 -0800, Matt Austern <austern@apple.com> wrote:
> On Feb 2, 2004, at 10:47 AM, Jason Merrill wrote:
>
>> On Fri, 30 Jan 2004 17:06:17 -0800, Matt Austern <austern@apple.com>
>> wrote:
>>
>>>>> Finally, one new user-visible feature: -fhidden-weak. This flag makes
>>>>> the compiler automatically give hidden visibility to symbols that have
>>>>> vague linkage.
>>
>> Sounds like this would block sharing of template instantiations and RTTI
>> information between an executable and a shared library, which would
>> break a lot of code.
>
> Not necessarily as much code as you might think! Most Unix linkers have
> the property that implicit instantiations are shared between different
> shared libraries, but that's not the way it works on MS-Windows. Anyone
> who's writing code that's portable between Unix and Windows isn't relying
> on that sort of sharing.
The code may not be, but the compiler is for internal data structures like
RTTI info. Does throwing an exception between shared objects work with
-fhidden-weak?
Jason