------- 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