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: [4.1] UCNs in identifiers


On Thu, 6 Jan 2005, Zack Weinberg wrote:

> Apple may of course do whatever it likes with its own branch, but you
> should be aware that you are setting yourself up for major problems
> with shared library ABIs.

That only applies with identifiers with external linkage.  Identifiers 
with internal linkage or no linkage (e.g. macro names) only cause problems 
insofar as multiple representations of canonically equivalent Unicode 
strings as identifiers appear within the same translation unit.

One of many forms of mitigation regarding shared library interface 
problems would be only permitting extended identifiers to be exported if a 
linker script names them explicitly in UCNs to be exported.  (I say names 
them as UCNs, not names them in UTF-8 in the script, to reduce the risk of 
editors accidentally changing it.)

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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