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: "harald at gigawatt dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 Jun 2014 21:36:06 +0000
- Subject: [Bug target/31782] Invalid assembly code on initial dollar signs
- Auto-submitted: auto-generated
- References: <bug-31782-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31782
--- Comment #9 from Harald van Dijk <harald at gigawatt dot nl> ---
Oh, very sorry about that, I hadn't realised clang stopped using gas. clang
uses its own assembler now, which supports quoted names this as a syntax
extension. Now that there is a possible syntax already, perhaps that will be
easier to bring to gas.
gas does indeed seem to properly handle your suggestion of parenthesised
identifiers on x86-64 already, even if they have names such as $0 (unlike
clang's assembler, oddly). However, I do worry that this may be too brittle,
because of other systems (even using gas) where $ is used more extensively in
standard syntax, such as register names, where parentheses cannot be used to
force interpretation as a symbol name because register names may also be
parenthesised.