From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3FD703858C74; Thu, 18 Jan 2024 05:38:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FD703858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705556303; bh=vqHd20p9fi230VovtpIz53NwD/KHuVIN16yTDZ3fB8o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YGRf6GAPIVBjSxJJZt+ibUgyla7L2REl2ZytgzBUErGP4m69xbscHksPXz94P4uQH 1YnE3oaEjbmVNdwMoJxQ9Zg2qNhbj6+Zl+z+r7kcNr65ratL9JknXGzHy2AbUUzkFq Z8YluspyDeMDGNO0OZ1DEr0JdrE5EAWKS7hy6d3Y= From: "lh_mouse at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/53929] [meta-bug] -masm=intel with global symbol Date: Thu, 18 Jan 2024 05:38:13 +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.6.3 X-Bugzilla-Keywords: assemble-failure, wrong-code X-Bugzilla-Severity: minor X-Bugzilla-Who: lh_mouse at 126 dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53929 --- Comment #24 from LIU Hao --- I've composed a proposal to address this issue: =20 https://github.com/lhmouse/mcfgthread/wiki/Formalized-Intel-Syntax-for-x86#= the-proposal The proposal is to treat names between `ptr` and `[` as symbols, and to tre= at to treat names between `[` and `]` as registers. This lea rax, bx[rip] should be rejected due to invalidity, while lea rax, BYTE PTR bx[rip] can be parsed as referencing the symbol `bx` with no ambiguity.=