This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31782] Invalid assembly code on initial dollar signs
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2007 11:58:11 -0000
- Subject: [Bug target/31782] Invalid assembly code on initial dollar signs
- References: <bug-31782-9631@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from joseph at codesourcery dot com 2007-05-02 12:58 -------
Subject: Re: Invalid assembly code on initial dollar signs
On Wed, 2 May 2007, truedfx at gentoo dot org wrote:
> Thanks for the link. I don't see how GAS could be fixed, though. How would the
> assembler tell the difference between $0 the constant and $0 the identifier?
ELF supports arbitrary (possibly empty) sequences of non-NUL bytes as
symbol names. GAS should, in principle, provide an escaping mechanism for
assembly files to represent all such names. GCC should use that escaping
mechanism as required. (It's arguable whether such escaping should be
applied to asm names given to variables or whether it's the user's
responsibility to include the escaping in the string passed to asm in that
case.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31782