This is the mail archive of the
mailing list for the GCC project.
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/
firstname.lastname@example.org (personal mail)
email@example.com (CodeSourcery mail)
firstname.lastname@example.org (Bugzilla assignments and CCs)