From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 125CF38930D6; Tue, 6 Apr 2021 11:34:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 125CF38930D6 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99872] [11 Regression] optimizations sometimes lead to missing asm prefixes Date: Tue, 06 Apr 2021 11:34:27 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: Tue, 06 Apr 2021 11:34:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99872 --- Comment #4 from Jakub Jelinek --- Created attachment 50511 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D50511&action=3Dedit gcc11-pr99872.patch So perhaps this patch? I went through all ASM_OUTPUT_DEF definitions and all of them use assemble_= name for each of the last 2 arguments separately, and assemble_name should handle the * etc. at the start of the symbols. Verified with the cross to mingw -m32 that it now emits .set LC5,LC6, and verified that on x86_64-linux it didn't change anything e.g. on the testcase mentioned in the commit message. I have no way to test this on mingw32, neither 32-bit nor 64-bit, but will = test it on x86_64-linux and i686-linux tonight.=