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: PATCH: dllexport and visibility


Aaron W. LaFramboise wrote:

Mark Mitchell wrote:



At least one system (ARM Symbian OS) wants to use "dllexport" and
"dllimport", but is an ELF system, and will translate these into ELF
visibilities. This patch provides support for that: "dllexport"
implies "STV_DEFAULT" visibility unless explicitly overridden.



Would it be worthwhile or wise to reciprocate this functionality to
non-ELF targets that were previously using dllimport/dllexport?


ELF has a wider notion of visibilty that dllimport/dllexport; the latter is pretty well mapped on to a subset of the ELF notion. I don't really see an advantage to trying to do anything with DECL_VISIBILITY on, say, PE/COFF, but there may have been enhancements to that format since I looked last.

In short, I think not, but I could be wrong.

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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