From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A90D1385771D; Thu, 27 Apr 2023 07:57:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A90D1385771D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682582260; bh=5CL1VSOubKrTH1h3OIXXulDUrWUd3W+R6ESkKk7jEhE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qfiK9fbWek2wU0VNESub8Wx7kJkzoYVESn5eadnDv9yPpVb5A1PbszEI8WGc6v78p jV1mMg8avAklW9CWzp6Tkeq8n0JZLbRiPWk53323UNrWd4vmneZPcb/n0wVTBuoGpw On4/qGNNOLcADAahQoilHGiicVJwUlAbeY4FK0dc= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/109643] [14 Regression] IPA inline ICE on pkg-config-0.29.2 since r14-249-g3c9372dfee0bb8 Date: Thu, 27 Apr 2023 07:57:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox 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: 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=3D109643 --- Comment #3 from Sergei Trofimovich --- Got a slightly nicer backtrace with debugging symbols: (gdb) bt #0 0x0000000000f70d7b in canonize (val=3D0x7fffffff9120, len=3Dlen@entry= =3D0, precision=3Dprecision@entry=3D576) at ../../source/gcc/wide-int.cc:96 #1 0x0000000000f71699 in wi::force_to_size (val=3Dval@entry=3D0x7fffffff91= 20, xval=3Dxval@entry=3D0x7fffffffa320, xlen=3D, xprecision=3D, precision=3Dprecision@entry=3D576, sgn=3D= ) at ../../source/gcc/wide-int.cc:400 #2 0x0000000000bd6c3d in fixed_wide_int_storage<576>::from (sgn=3D, x=3D...) at ../../source/gcc/wide-int.h:1292 Looks like canonize() below has `val` of zero length: (gdb) print len $1 =3D 0 (gdb) print val $2 =3D (long *) 0x7fffffff9120 static unsigned int canonize (HOST_WIDE_INT *val, unsigned int len, unsigned int precision) { unsigned int blocks_needed =3D BLOCKS_NEEDED (precision); HOST_WIDE_INT top; int i; if (len > blocks_needed) len =3D blocks_needed; if (len =3D=3D 1) return len; top =3D val[len - 1]; ...=