From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EBA4C385800D; Tue, 6 Sep 2022 05:06:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBA4C385800D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662440776; bh=Ec1fisY/0MKpVKQmnoBxeq4QB57aiUGgxzxKtTHF978=; h=From:To:Subject:Date:In-Reply-To:References:From; b=H3rVYtUeAviv9OhTcPHjBsvRu4UbP49QkkCWFABwPudLmm7mQvuuDbPDnw1hCHCUe +kSubwXKl5XShq6T4PhUKggjtCXOtpmRmU2XbWryY0BigD8BEjaCOO5d8kCa8R8BTl +pacyRWy+NMr/AGow0dIWmw1JtkRbumeQzCqxIfg= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/106830] [13 Regression] ICE: in tree_to_uhwi, at tree.cc:6392 (from check_for_xor_used_as_pow) since r13-2386-gbedfca647a9e9c1a Date: Tue, 06 Sep 2022 05:06:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 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=3D106830 --- Comment #3 from Zdenek Sojka --- (In reply to Jakub Jelinek from comment #1) > I certainly see a valgrind diagnostics on it: > valgrind ./cc1 -quiet pr106830.c > =3D=3D2461995=3D=3D Memcheck, a memory error detector > =3D=3D2461995=3D=3D Copyright (C) 2002-2022, and GNU GPL'd, by Julian Sew= ard et al. > =3D=3D2461995=3D=3D Using Valgrind-3.19.0 and LibVEX; rerun with -h for c= opyright > info > =3D=3D2461995=3D=3D Command: ./cc1 -quiet pr106830.c > =3D=3D2461995=3D=3D=20 > pr106830.c:1:1: warning: return type defaults to =E2=80=98int=E2=80=99 [-= Wimplicit-int] > 1 | foo0_u16_0() { > | ^~~~~~~~~~ > pr106830.c: In function =E2=80=98foo0_u16_0=E2=80=99: > pr106830.c:2:14: warning: integer constant is so large that it is unsigned > 2 | (__int128)(18302628885633695743 << 4) ^ 0; > | ^~~~~~~~~~~~~~~~~~~~ > =3D=3D2461995=3D=3D Conditional jump or move depends on uninitialised val= ue(s) > =3D=3D2461995=3D=3D at 0xAFCE3D: parser_build_binary_op(unsigned int, = tree_code, > c_expr, c_expr) (c-typeck.cc:3992) > =3D=3D2461995=3D=3D by 0xB4ABA2: c_parser_binary_expression(c_parser*,= c_expr*, > tree_node*) (c-parser.cc:8083) > =3D=3D2461995=3D=3D by 0xB486A3: c_parser_conditional_expression(c_par= ser*, > c_expr*, tree_node*) (c-parser.cc:7651) > =3D=3D2461995=3D=3D by 0xB48308: c_parser_expr_no_commas(c_parser*, c_= expr*, > tree_node*) (c-parser.cc:7565) >=20 > so pressumably arg1.m_decimal is uninitialized. >=20 Ah right, my fault, I forgot to add --trace-children=3Dyes, and run valgrin= d on the gcc binary instead... thanks.=