From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 052E63858CDA; Tue, 2 Apr 2024 14:18:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 052E63858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712067485; bh=eYmm0kXXV7pg3y/3EuYzDk8PN5qHbqhHJ8c5sS/QGCk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qksH5gzWhxzslCgWTg7F8bA1ueM9lqhNeXK1OpAiRLUiYq6JOtBm9k+40oBLSLU+g peMSxIrcv82g/MRbod7jF4nLyVQM/QA55Uw3wXOkWt0r4MTHOJ3txCpa6JoYt7SBc1 NbgxWegLuTCQlAOoijILdUbyx9Uv7o73d1hLuf8s= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/114552] [13/14 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r13-990 Date: Tue, 02 Apr 2024 14:18:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114552 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gn= u.org --- Comment #5 from Jakub Jelinek --- Created attachment 57850 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57850&action=3Dedit gcc14-pr114552.patch Untested fix. Note, perhaps for GCC 15 we could support even non-matching sizes, as long = as we'd create a CONSTRUCTOR for just the needed bytes. But, in that case we wouldn't have to require that it is loaded from the beginning of a .rodata = MEM.=