From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D46E23858D35; Tue, 21 May 2024 08:28:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D46E23858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716280086; bh=JdCOVX1gVpk7rI8vKeG9hfvCFXsTDfzmta1MZhImpVE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fhpMHCd2wyrjiqJALQ32H7O92tF0hKXVrNtam+2n+VJGIxkJ3O6lTaLw8RDFyH7rJ KFyX3IGfK7RXMjzyzwDM0nFfsBfmpCe4/R3IQ8nTKBkcfFMXAJwIWcyNIJpe8Zhwvp 4s7iQz/7Wt3DBKfu2YYdKz9h98qoYIok0g2bcjl8= From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115148] [12/13/14/15 Regression][SH]: libcanberra fails with 'unaligned opcodes detected in executable segment' Date: Tue, 21 May 2024 08:28: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: 14.1.0 X-Bugzilla-Keywords: ice-on-valid-code, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: olegendo at gcc dot gnu.org 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: 12.4 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=3D115148 --- Comment #16 from Oleg Endo --- (In reply to John Paul Adrian Glaubitz from comment #15) > Created attachment 58258 [details] > Diff of generated assembly without and with changes from PR99531 >=20 > I have generated a diff that shows the difference in the generated assemb= ly > without and with the patch a7acb6dca941db2b1c135107dac3a34a20650d5c. That's great, thanks a lot! This is the problematic hunks, which causes the wrong code alignment: .LVL108: bt/s .L178 ! mov #-1,r0 !, @@ -1832,36 +1830,39 @@ .byte .L215-.L190 .byte .L181-.L190 .LVL109: - .align 1 -.L192: .LBE111: .LBE110: .loc 1 234 9 .loc 1 234 14 + .align 1 +.L287: + .align 1 +.L288:=