PATCH: dllexport and visibility

Mark Mitchell mark@codesourcery.com
Sat Aug 7 01:59:00 GMT 2004


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



More information about the Gcc-patches mailing list