From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 651F13858C32; Tue, 2 Apr 2024 13:29:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 651F13858C32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712064543; bh=RRsv3M72W+bly+c+1z60lnhbm5N9NmBjqM9/yoH9rVI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wH2MQUBY8b/Eow2IIg3UNtYcIQ7IJG1BvHsoK5+jMEDmYc3kJKDjB9MeILgVxJCJ6 8x+Brg8eAqgphKFm8ba5oEmTdLWa+7GGQZwJMnZ4CFd6u5GcTWx7YKKfJ3qC036UjS VLR7umb94aaxgSFaG5tj491CP1EWemQqBTl8zTOQ= 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 13:29:02 +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: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc cc keywords 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 ---------------------------------------------------------------------------- Summary|[13/14 Regression] wrong |[13/14 Regression] wrong |code at -O1 and above on |code at -O1 and above on |x86_64-linux-gnu |x86_64-linux-gnu since | |r13-990 CC| |jakub at gcc dot gnu.org, | |sayle at gcc dot gnu.org Keywords|needs-bisection | --- Comment #3 from Jakub Jelinek --- Further cleaned up testcase: struct __attribute__((packed)) S { short b; int c; }; struct T { struct S b; int e; }; static const struct T k =3D { { 1, 0 }, 0 }; __attribute__((noinline)) void foo (void) { asm ("" : : : "memory"); } __attribute__((noinline)) void bar (struct S n) { foo (); } int main () { bar (k.b); return 0; } Started with r13-990-ged6fd2aed58f2cca99f15331bf68999c0e6df370=