From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 899EF3857C5B; Sat, 5 Sep 2020 07:49:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 899EF3857C5B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599292166; bh=EfabrBMSes1wb8gLvhQkEZwKTmn4shi5hwAoKFJlZ8c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tduHK6Qt7p/g17elpORptsam2TJkcU/xjVIUgZj/FdfLAruuTwKImOBKpx3vY0gp9 XRrl5qmLb7dTZWsxqq5aePBk5Kk6ztaYefDeTltRxRlFsdL0HacvpSlvQJ08bz75m9 XL7qZ6LiSgsDGtBkzabhYFf1BScUYRcFZZbR34Q4= From: "u1049321969 at caramail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/53929] Bug in the use of Intel asm syntax when a global is named "and" Date: Sat, 05 Sep 2020 07:49:26 +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: X-Bugzilla-Severity: minor X-Bugzilla-Who: u1049321969 at caramail dot com X-Bugzilla-Status: UNCONFIRMED 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: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Sep 2020 07:49:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53929 tk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |u1049321969 at caramail do= t com --- Comment #1 from tk --- Hello all, I would like to report that I hit upon a related issue in GCC 10.0.1. Besi= des complaining on "and", the assembly pass also complains if I use a symbol wh= ich happens to be the same as register name, e.g. "bx". $ gcc-10 --version gcc-10 (Ubuntu 10-20200411-0ubuntu1) 10.0.1 20200411 (experimental) [master revision bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566] Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cat test.c int bx[16]; int f(unsigned x) { return bx[x]; } $ gcc-10 -c test.c -O3 -masm=3Dintel /tmp/ccGtGi2X.s: Assembler messages: /tmp/ccGtGi2X.s:12: Error: invalid use of register The offending line in the assembly code says lea rax, bx[rip] The problem does _not_ go away even if I quote the symbol name by hand in t= he assembly output, e.g. lea rax, "bx"[rip] Thank you!=