From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1A3753858D28; Tue, 10 Oct 2023 08:21:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A3753858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696926082; bh=Cud2UljeMQx9iUmRBI1/S310ECEr+NcBIocV+/BDSZ4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LrwWAgfl6LSuTZ1C+22JPkI/JWQV0TI0taWrpZfMz48qqQDrSqxUEuj1fo+SMbvLf /dVMje0OUHXMAvk2v5/faasguEvPBfjLXBJipaZCwl5ytDzLDFF+xrvU8wFYrn6pcs AtFuhoK/s9pSE0gRkugpdYyjo9oVG95akLQhR3yU= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111519] [13/14 Regression] Wrong code at -O3 on x86_64-linux-gnu since r13-455-g1fe04c497d Date: Tue, 10 Oct 2023 08:21:21 +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: 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: 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=3D111519 --- Comment #4 from Jakub Jelinek --- Slightly cleaned up testcase: int a, o; char b, f, i; long c; static signed char d; static char g; unsigned *h; signed char *e =3D &f; static signed char **j =3D &e; static long k[2]; unsigned **l =3D &h; short m; volatile int z; __attribute__((noipa)) void foo (char *p) { (void) p; } int main () { int p =3D z; signed char *n =3D &d; *n =3D 0; while (c) for (; i; i--) ; for (g =3D 0; g <=3D 1; g++) { *n =3D **j; k[g] =3D 0 !=3D &m; *e =3D l && k[0]; } if (p) foo (&b); for (; o < 4; o++) { a =3D d; if (p) foo (&b); } if (a !=3D 1) __builtin_abort (); }=