From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5BF103858D3C; Mon, 10 Jul 2023 06:36:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BF103858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688970962; bh=3YGP9/wCvFfygSZtWeQAbGEMVJ8ljMTHjxTNlU+gxa4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=w1DIjDeK0oI74u7/3VCLI+76Cb6Of1fiHgwd/Mx5tFCRzSDkWCsqRAViA54MTvG/1 56YIdcU2uJ1J8uU97ppzaz+9MRfiRM7UuKEmYpzRa53Q1NB3AESEjLyfNKlZ7LzMoX DDo/6jt4Kg8qX1QZ8DSX9tGoPaYPuInyGB5CDO/0= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110603] [14 Regression] GCC, ICE: internal compiler error: in verify_range, at value-range.cc:1104 Date: Mon, 10 Jul 2023 06:36:01 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status everconfirmed cf_reconfirmed_on 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=3D110603 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2023-07-10 --- Comment #1 from Richard Biener --- Confirmed. (gdb) p lb $1 =3D { =3D {val =3D {2, 45595810, 140737488342608,=20 140737488342672, 140737488341240, 2147483664, 8, 140737339338752, 0},= =20 len =3D 1, precision =3D 32}, static is_sign_extended =3D true} (gdb) p ub $2 =3D { =3D {val =3D {1, 1, 1, 1, 140737488341320, 21474= 83664,=20 140737471578113, 0, 140735340871686}, len =3D 1, precision =3D 32},=20 static is_sign_extended =3D true} from #4 0x0000000002b7c5d7 in (anonymous namespace)::try_substitute_return_valu= e ( gsi=3D0x7fffffffda18, info=3D..., res=3D...) at /space/rguenther/src/gcc/gcc/gimple-ssa-sprintf.cc:4254 else if (lhs && types_compatible_p (TREE_TYPE (lhs), integer_type_node)) { bool setrange =3D false; if (safe && (info.bounded || retval[1] < info.objsize) && (retval[0] < target_int_max () && retval[1] < target_int_max ())) {=20 /* If the result is in a valid range bounded by the size of the destination set it so that it can be used for subsequent optimizations. */ int prec =3D TYPE_PRECISION (integer_type_node); wide_int min =3D wi::shwi (retval[0], prec); wide_int max =3D wi::shwi (retval[1], prec); value_range r (TREE_TYPE (lhs), min, max); set_range_info (lhs, r);=20 The issue is likely older but only triggered with recent ranger changes (on the verifier side?).=