From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9BD913858426; Tue, 10 Oct 2023 17:36:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BD913858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696959420; bh=bpHCm815R8JNERR1EvL8V1t2hE7n+4k4T6MsSUu7iRI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VIPBR+KdpEF07ibPfVtavw6wgsU7IYTY5Ey2z9glIt/LbJyzuITp8iTfWsoGq8o6A FpsU8fgutz9pH3koGJQX/30HYgwTJB1GpXjpYOYPfI3G9mVnLuZ5LQz/9TNDTVIDAT s8NX3IpkaJxE6TvMlZomCCNyUBKcPNAzN09q1lCg= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106101] [12 Regression] ICE in reg_bitfield_target_p since r12-4428-g147ed0184f403b Date: Tue, 10 Oct 2023 17:36:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.1.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: krebbel at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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=3D106101 --- Comment #29 from Andrew Pinski --- (In reply to Florian Weimer from comment #28) > (In reply to Richard Biener from comment #1) > > Created attachment 53207 [details] > > reduced testcase >=20 > Do you happen to have the unreduced test case still? >=20 > int *yyvsp =3D 0; >=20 > followed by: >=20 > if (strncmp( yyvsp[0], "~", 1) =3D=3D 0) { >=20 > and >=20 > free(yyvsp[0]); >=20 > looks rather bogus. You can make `yyvsp` and argument if you are worried about the null pointer= and you still get the crash back in 12.1.0. That is: ``` int yyparse (int *yyvsp) { int yystate =3D 0; ``` See https://godbolt.org/z/9YMsar1Ej .=