This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RFC: Make dllimport/dllexport imply default visibility
- From: Mark Mitchell <mark at codesourcery dot com>
- To: GCC <gcc at gcc dot gnu dot org>
- Date: Fri, 15 Jun 2007 00:48:33 -0700
- Subject: RFC: Make dllimport/dllexport imply default visibility
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.
I'm planning to make any dllimport or dllexport attribute imply default
visibility. Is that a bad idea?
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713