From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 121E03857351; Thu, 2 Nov 2023 11:41:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 121E03857351 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698925307; bh=pR57FUVAl5OEeF5M+48zRgiOoLseLt2g3p1NC8BjjOQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QhlH1XgiKFUYMz2mNsC8PX4wxYhTcTD8Q0kYu9aDHUunQUi8iZPmtcPZXoB++gNNE xgFxZCyUCxPDqR8MSvk6wv+zcNDgga6TRPj6q2vRLyoZqtrG02YjiO5cxr0DQUJ2Cw 0of5oUfUndB5S1EdM0A9vRPdrym0Hr1BM8fFYpgA= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112330] [14 Regression] LoongArch: Outputted .align directive may trigger assembler error with GAS 2.41 Date: Thu, 02 Nov 2023 11:41:46 +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: 14.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org 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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords short_desc 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=3D112330 Xi Ruoyao changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|build | Summary|[14 Regression] LoongArch: |[14 Regression] LoongArch: |Bootstrap failure with GAS |Outputted .align directive |2.41 |may trigger assembler error | |with GAS 2.41 --- Comment #15 from Xi Ruoyao --- (In reply to chenglulu from comment #14) > First of all, if you add -mrelax during the assembly process,".align > 16,54525952,4" will be based on the situation at the time of assembly, and > the choice is to insert a nop function without insertion.But this ".align > 16" will insert 3 nops unconditionally. When calculating the jump range of > the conditional branch, gcc calculates the space required for .align > according to the actual alignment. > So after r14-4674 there will be an error=EF=BC=8E Well, this indicates that the issue can be only triggered with some "bad lu= ck". In fact with latest GCC trunk (r14-5075) this issue does not show up. But this is an real issue and we need a fix anyway...=