This is the mail archive of the gcc@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]

Re: NO_DOLLAR_IN_LABEL


> 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


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