From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BDE503858C36; Sun, 23 Apr 2023 04:11:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDE503858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682223092; bh=a8ocXoAj7hcTGKyDzSA94JvjZx/z6hSx3wzykXMaiBo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ykSICBc9E1qXSOU0z1eQfrk0pdJiBDsmXiDMk8aSdgDSawZPnKY7dPUZ4igiXiPYf +tpQsJ0QL4CbwQsjqWO7ap3twSIEdHBqs4rK48pCWjZZNVeJ3KxDPDQCOxHEt11xK8 dbIH1SeRgRf9VCBnwWdkpA9vwHhjnbcXGY8cErFg= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109410] [13 Regression] ICE: verify_flow_info failed Date: Sun, 23 Apr 2023 04:11:32 +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: compare-debug-failure, ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D109410 --- Comment #14 from Andrew Pinski --- (In reply to Andrew Pinski from comment #13) > So the testcase gcc.dg/pr109410.c passes but if you add -g, the ICE will > show up still. >=20 > This also means there will be some compare-debug failure too as the IR/CFG > will be different with/without -g. >=20 > I suspect gsi_after_labels here should really be > gsi_start_nondebug_after_labels_bb . That is: diff --git a/gcc/tree-ssa-reassoc.cc b/gcc/tree-ssa-reassoc.cc index 067a3f07f7e..c71780e6d54 100644 --- a/gcc/tree-ssa-reassoc.cc +++ b/gcc/tree-ssa-reassoc.cc @@ -1563,7 +1563,7 @@ build_and_add_sum (tree type, tree op1, tree op2, enum tree_code opcode) if ((!op1def || gimple_nop_p (op1def)) && (!op2def || gimple_nop_p (op2def))) { - gsi =3D gsi_after_labels (single_succ (ENTRY_BLOCK_PTR_FOR_FN (cfun)= )); + gsi =3D gsi_start_nondebug_after_labels_bb (single_succ (ENTRY_BLOCK_PTR_FOR_FN (cfun))); if (!gsi_end_p (gsi) && is_gimple_call (gsi_stmt (gsi)) && (gimple_call_flags (gsi_stmt (gsi)) & ECF_RETURNS_TWICE))=