This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Make dllimport/dllexport imply default visibility
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "gcc-patches >> GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: Danny Smith <dannysmith at clear dot net dot nz>, Eric Christopher <echristo at apple dot com>
- Date: Sat, 23 Jun 2007 13:18:48 -0600
- Subject: Re: RFC: Make dllimport/dllexport imply default visibility
- References: <46724451.9080209@codesourcery.com> <46796DDA.608@codesourcery.com>
Mark Mitchell wrote:
> Mark Mitchell wrote:
>> Consider:
>>
>> struct __attribute__((vsibility ("hidden"))) S {
>> void __declspec(dllimport) f();
>> };
>>
>> At present, we give "f" hidden visibility. That seems odd since the
>> user has explicitly told us that the symbol is coming from another
>> shared library.
> Danny, would you mind testing this patch on Windows?
> I'd also appreciate a Darwin tester, if available. Eric, is that
> something you could try?
Thanks to Danny and Eric for testing and Chris for his comments.
I've now committed the patch to mainline, as it is a regression from
previous releases. However, I'm not planning on applying it to the 4.2
branch, at least at this time, as the combination of DLL attributes and
visibility attributes appears (AFAIK) only on ARM SymbianOS, and
I'm-slightly concerned that this patch will cause some problem.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713