This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: NO_DOLLAR_IN_LABEL
- To: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Subject: Re: NO_DOLLAR_IN_LABEL
- From: Per Bothner <bothner at cygnus dot com>
- Date: Sat, 02 Jan 1999 11:06:59 -0800
- cc: egcs at cygnus dot com, gcc2 at gnu dot org
> Now, it is proposed that the dollar sign is used to encode universal
> character names and 'national' characters if g++ uses '.', and vice
> versa, with a fall-back when either dollars or dots are not available.
>
> This is a good proposal, but for it to work, we have to really
> indicate what the assembler supports.
Why? If NO_DOLLAR_IN_LABEL is not set, we use '$' as the magic
characters; if it is set, we use '.', unless NO_DOT_IN_LABEL
is also set.
No need for a new macro.
C++ has managed with one "magic" character: Either '$' or '.'
or (in a pinch) '_'. For encoding other character sets, we
either:
(a) assume the assembler supports UTF-8 and/or arbitrarty features, or
(b) we stick with the existing assumption of a single magic character.
There is no purpose in designing an encoding that uses *two* magic
characters. It will not work on many existing assemblers, and if
we are going to assume more than a minimal assembler, we might as
well assume gas, and do whatever is cleanest (which I think is UTF-8).
--Per Bothner
Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner