From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CEB683858C20; Thu, 8 Jun 2023 21:52:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CEB683858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686261131; bh=vaic5zdEOp7E0f+8rKuAO1zV3tkXJSwWKkaWLc7CF5A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cSqx/abwhUgnPFglH2Umb7f0aNkiTqIUwbyL0/OopaTQA2ifkJI91C7ptkVamtg/a dlhHlIMfliMWFL6dz4MLiZOwJCt5fpsuxdTKLt82SsBSR9Q7NX6VywzmPgGA3vvJXW 0KZuI6P5nDI7VcfnSM0QOXiteB5Dg9tzOjjQW7GQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110176] [10/11/12/13/14 Regression] wrong code at -Os and above on x86_64-linux-gnu Date: Thu, 08 Jun 2023 21:52:11 +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: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc cf_known_to_fail target_milestone cf_known_to_work 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=3D110176 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|wrong code at -Os and above |[10/11/12/13/14 Regression] |on x86_64-linux-gnu |wrong code at -Os and above | |on x86_64-linux-gnu Known to fail| |10.4.0, 11.1.0 Target Milestone|--- |10.5 Known to work| |10.3.0 --- Comment #3 from Andrew Pinski --- The C++ testcase that is: ``` int a, b; void c() {} [[gnu::noipa]] void h() {__builtin_abort();} int d() { unsigned f[1]; int i; if (a) goto h; f[0] =3D -1; while (1) { c(); for (; a < 1; a++) { if (0) { j: continue; } i =3D f[0]; if (a) break; b =3D i >=3D (b =3D=3D 0); } if (!b) { if (0) { h: goto j; } return 0; } h(); } } int main() { d(); return 0; } ```=