From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E3653865C29; Wed, 26 Oct 2022 08:03:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E3653865C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666771418; bh=rouIfUu7H8N5dpTRt4qWR+K8/4wMIz/SnrpuSZtjaMI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Qea9gYDnW5Q2Hb+cxSlS8JH2lP58i2Z9CJyN6twZ2pJAfA8ETdJ3g4bUtScDyp0li Ic3hGFLEmpth1I6LHwGg8CIss8CSUlOLZ88QPeSVgv1V7ERfWrr+2hPINI7rZphUld p64nhT9VX4m/Vxf1t6zs/Lt6rwS4V32gSz2Cdyso= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107407] [12/13 Regression] Wrong code at -Os on x86_64-linux-gnu since r12-383-g32955416d8040b1f Date: Wed, 26 Oct 2022 08:03:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status component cf_reconfirmed_on target_milestone everconfirmed cc 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=3D107407 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|c |tree-optimization Last reconfirmed| |2022-10-26 Target Milestone|--- |13.0 Ever confirmed|0 |1 CC| |marxin at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Summary|Wrong code at -Os on |[12/13 Regression] Wrong |x86_64-linux-gnu |code at -Os on | |x86_64-linux-gnu since | |r12-383-g32955416d8040b1f --- Comment #1 from Martin Li=C5=A1ka --- A bit reduced, started with r12-383-g32955416d8040b1f int *a; static int **b =3D &a; int c[4]; int d; int e(int); static int f(char, int); void g() { e((f(0, 0), 0)); } int e(int h) { *a =3D 0; } int f(char k, int j) { for (;;) { for (; k <=3D 3; k++) { *b =3D &c[k]; for (; d <=3D 1; d++) *a =3D 3; } break; } } int main() { int i; g(); if (c[0] !=3D 3) __builtin_abort (); }=