This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: RFC: Make dllimport/dllexport imply default visibility


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


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