From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13526 invoked by alias); 23 Jun 2014 21:36:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13490 invoked by uid 48); 23 Jun 2014 21:36:11 -0000 From: "harald at gigawatt dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/31782] Invalid assembly code on initial dollar signs Date: Mon, 23 Jun 2014 21:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.1.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: harald at gigawatt dot nl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01826.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31782 --- Comment #9 from Harald van Dijk --- 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.