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.

Reply via email to