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: Implementing Universal Character Names in identifiers


Tom Tromey <tromey@redhat.com> writes:

> However, the ability to use these is part of the Java language
> specification.  So we have a strong preference for supporting them on
> all platforms.  We already do that by mangling the identifiers when we
> see a non-ascii character.

There are many things in the Java language specification that gcj does
not do, or does not do equally well on all systems. Since you can get
GNU binutils for all systems, you can fulfill this specific
requirement everywhere if needed.

> We're only concerned with compatibility with g++ here.  It doesn't
> matter to us whether C does or does not mangle symbols on a given
> platform.

OTOH, I would not like to see two different approaches for g++
depending on the platform, and compatibility with C *is* important for
g++ - so I'd let g++ be guided rather by the C requirements than by
the Java requirements.

Actually, the requirement is the same for C, C++ and Java: UCNs are
part of the language specification. I can't derive a preference to
have that somehow work on all systems - if you must simultaneously
impose additional restrictions (such as reserving more identifiers),
or risk forward compatibility (if the system vendor decides to solve
this issue differently).

Regards,
Martin


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