From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0D3163858030; Thu, 21 Dec 2023 07:08:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D3163858030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703142487; bh=f/vZ0xMECyhmbNHiN8Fzoa7qQTYLQ1KpZT8DYJ72La4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZIuZRFiWnNgS0ameVBCbvE8Ab/kEF2q92iofAyg7PbtDpxozTlJV8ecqg2mzn9uM+ uea4sQTyZINhCfq6nzB8zTzFiN4IxYhYiOKzNExkcoK4ez8L5G9sktuJ5a3KoTye0e YXKuj46l7I76l6tsVtDHCT6Dn35tHWpqLK8ILEFg= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113102] during GIMPLE pass: bitintlower ICE: SIGSEGV with _BitInt() at -O1 or -O2 Date: Thu, 21 Dec 2023 07:08:06 +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: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D113102 --- Comment #1 from Zdenek Sojka --- Created attachment 56914 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56914&action=3Dedit testcase failing at -O2 $ x86_64-pc-linux-gnu-gcc -O2 testcase-O2.c -wrapper valgrind,-q =3D=3D16387=3D=3D Invalid read of size 4 =3D=3D16387=3D=3D at 0x114FEA7: phi_nodes_ptr (gimple.h:4700) =3D=3D16387=3D=3D by 0x114FEA7: gsi_start_phis (gimple-iterator.cc:935) =3D=3D16387=3D=3D by 0x114FEA7: gsi_for_stmt(gimple*) (gimple-iterator.c= c:620) =3D=3D16387=3D=3D by 0x263223A: gimple_lower_bitint() (gimple-lower-biti= nt.cc:6695) =3D=3D16387=3D=3D by 0x13C4DCA: execute_one_pass(opt_pass*) (passes.cc:2= 646) =3D=3D16387=3D=3D by 0x13C56BF: execute_pass_list_1(opt_pass*) (passes.c= c:2755) =3D=3D16387=3D=3D by 0x13C56D1: execute_pass_list_1(opt_pass*) (passes.c= c:2756) =3D=3D16387=3D=3D by 0x13C56F8: execute_pass_list(function*, opt_pass*) (passes.cc:2766) =3D=3D16387=3D=3D by 0xFC60E5: expand (cgraphunit.cc:1842) =3D=3D16387=3D=3D by 0xFC60E5: cgraph_node::expand() (cgraphunit.cc:1795) =3D=3D16387=3D=3D by 0xFC742A: expand_all_functions (cgraphunit.cc:2025) =3D=3D16387=3D=3D by 0xFC742A: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2399) =3D=3D16387=3D=3D by 0xFC9FA7: compile (cgraphunit.cc:2312) =3D=3D16387=3D=3D by 0xFC9FA7: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2584) =3D=3D16387=3D=3D by 0x1506CF1: compile_file() (toplev.cc:473) =3D=3D16387=3D=3D by 0xDE3BFB: do_compile (toplev.cc:2150) =3D=3D16387=3D=3D by 0xDE3BFB: toplev::main(int, char**) (toplev.cc:2306) =3D=3D16387=3D=3D by 0xDE53DA: main (main.cc:39) =3D=3D16387=3D=3D Address 0x50 is not stack'd, malloc'd or (recently) free= 'd =3D=3D16387=3D=3D=20 during GIMPLE pass: bitintlower testcase-O2.c: In function 'foo': testcase-O2.c:4:1: internal compiler error: Segmentation fault 4 | foo(void) | ^~~ 0x150680f crash_signal /repo/gcc-trunk/gcc/toplev.cc:316 0x114fea7 phi_nodes_ptr(basic_block_def*) /repo/gcc-trunk/gcc/gimple.h:4700 0x114fea7 gsi_start_phis(basic_block_def*) /repo/gcc-trunk/gcc/gimple-iterator.cc:935 0x114fea7 gsi_for_stmt(gimple*) /repo/gcc-trunk/gcc/gimple-iterator.cc:620 0x263223a gimple_lower_bitint /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:6695 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=