From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5A18E3858D35; Mon, 9 Oct 2023 19:26:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A18E3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696879584; bh=Q1dRY4MU2U9LRIYrLEIfonYUGo+pcWjb22LfVKiIQas=; h=From:To:Subject:Date:From; b=cO3zGzx8vqLDX8Wb3Q+47ZpNhoSH0vD+SVvuE7GOJtVh5CTKQlP+OEQuP8CJhJwg8 arux55c6+IKEe8fEXkDa4N2L7hC7DipBx/SiF17EyhCVgJX59voKP8+qQVYsoWqzc7 jC3d5JNX88Pr4TIsS9DTvwtk2GUrrClXPX40Masw= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111746] New: [14 Regression] ICE: infinite recursion in try_split (emit-rtl.cc:3972) at -O2 Date: Mon, 09 Oct 2023 19:26:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: build, 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: 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=3D111746 Bug ID: 111746 Summary: [14 Regression] ICE: infinite recursion in try_split (emit-rtl.cc:3972) at -O2 Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: build, ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: powerpc64le-unknown-linux-gnu Created attachment 56084 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56084&action=3Dedit reduced testcase This currently breaks build for me. Compiler output: $ $ gdb -q --args /repo/build-gcc-trunk-powerpc64le/gcc/cc1 -O2 testcase.c -quiet Reading symbols from /repo/build-gcc-trunk-powerpc64le/gcc/cc1... r (gdb) r Starting program: /repo/build-gcc-trunk-powerpc64le/gcc/cc1 -O2 testcase.c -quiet [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x0000000000a8a6cf in base_pool_allocator::allocate (this=3D0x29547a0) at /repo/gcc-trunk/gcc/alloc-pool.h:405 405 VALGRIND_DISCARD (VALGRIND_MAKE_MEM_NOACCESS (header,size)); (gdb) bt #0 0x0000000000a8a6cf in base_pool_allocator::allocate (this=3D0x29547a0) at /repo/gcc-trunk/gcc/alloc-pool.h:405 #1 0x0000000000b9d336 in object_allocator::allocate (this=3D) at /repo/gcc-trunk/gcc/alloc-pool.h:505 #2 df_ref_create_structure (cl=3DDF_REF_REGULAR, collection_rec=3D0x7ffffb= fff330, reg=3D0x7ffff1a40000, loc=3D0x7ffff1a40040, bb=3D, info=3D0x= 7355df0, ref_type=3DDF_REF_REG_USE,=20 ref_flags=3D0) at /repo/gcc-trunk/gcc/df-scan.cc:2498 #3 0x0000000000b9e8a7 in df_uses_record (collection_rec=3Dcollection_rec@entry=3D0x7ffffbfff330, loc=3D, loc@entry=3D0x7ffff1a40040, ref_type=3Dref_type@entry=3DDF_REF_REG_USE,=20 bb=3Dbb@entry=3D0x7ffff7433960, insn_info=3Dinsn_info@entry=3D0x7355df0, flags=3Dflags@entry=3D0) at /repo/gcc-trunk/gcc/df-scan.cc:2874 #4 0x0000000000b9e949 in df_uses_record (collection_rec=3Dcollection_rec@entry=3D0x7ffffbfff330, loc=3D, ref_type=3Dref_type@entry=3DDF_REF_REG_USE, bb=3Dbb@entry=3D0x7ffff7433960,= =20 insn_info=3Dinsn_info@entry=3D0x7355df0, flags=3D, flags= @entry=3D0) at /repo/gcc-trunk/gcc/df-scan.cc:2906 #5 0x0000000000b9f3a2 in df_insn_refs_collect (collection_rec=3D0x7ffffbff= f330, bb=3D0x7ffff7433960, insn_info=3D0x7355df0) at /repo/gcc-trunk/gcc/df-scan.= cc:3229 #6 0x0000000000b9fe01 in df_insn_rescan (insn=3Dinsn@entry=3D0x7ffff1a3f60= 0) at /repo/gcc-trunk/gcc/df-scan.cc:1087 #7 0x0000000000c1fa80 in emit_insn_after_1 (bb=3D, after=3D0x7ffff1a3f540, first=3D0x7ffff1a3f5c0) at /repo/gcc-trunk/gcc/emit-rtl.cc:4614 #8 emit_pattern_after_noloc (x=3Dx@entry=3D0x7ffff1a3f5c0, after=3Dafter@entry=3D0x7ffff1a3f540, bb=3Dbb@entry=3D0x0, make_raw=3Dmake_raw@entry=3D0xc1a4d0 ) at /repo/gcc-trunk/gcc/emit-rtl.cc:4657 #9 0x0000000000c1fb9a in emit_pattern_after_setloc (pattern=3Dpattern@entry=3D0x7ffff1a3f5c0, after=3Dafter@entry=3D0x7ffff1a3= f540, loc=3D2147483668,=20 make_raw=3Dmake_raw@entry=3D0xc1a4d0 ) at /repo/gcc-trunk/gcc/emit-rtl.cc:4808 #10 0x0000000000c20556 in emit_insn_after_setloc (loc=3D, after=3D0x7ffff1a3f540, pattern=3D0x7ffff1a3f5c0) at /repo/gcc-trunk/gcc/emit-rtl.cc:4852 #11 try_split (pat=3D, trial=3D0x7ffff1a3f540, last=3Dlast@e= ntry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3961 #12 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f4c0, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 #13 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f440, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 #14 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f3c0, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 #15 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f340, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 #16 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f2c0, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 #17 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f240, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 #18 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f1c0, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 #19 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f140, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 #20 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f0c0, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 #21 0x0000000000c206a5 in try_split (pat=3D, trial=3D0x7ffff= 1a3f040, last=3Dlast@entry=3D1) at /repo/gcc-trunk/gcc/emit-rtl.cc:3972 ... $ /repo/build-gcc-trunk-powerpc64le/./gcc/xgcc -v Using built-in specs. COLLECT_GCC=3D/repo/build-gcc-trunk-powerpc64le/./gcc/xgcc Target: powerpc64le-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --with-cloog --with-ppl --with-isl --with-sysroot=3D/usr/powerpc64le-unknown-linux-gnu --build=3Dx86_64-pc-lin= ux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dpowerpc64le-unknown-linux-gnu --with-ld=3D/usr/bin/powerpc64le-unknown-linux-gnu-ld --with-as=3D/usr/bin/powerpc64le-unknown-linux-gnu-as --disable-libstdcxx-p= ch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-4520-20231009121517-gb0892b1fc= 63-checking-yes-rtl-df-extra-powerpc64le Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231009 (experimental) (GCC)=20 The build breaks at: $ make /bin/sh ../libtool --tag CC --tag disable-shared --mode=3Dcompile /repo/build-gcc-trunk-powerpc64le/./gcc/xgcc -B/repo/build-gcc-trunk-powerpc64le/./gcc/ -B/repo/gcc-trunk//binary-trunk-r14-4520-20231009121517-gb0892b1fc63-checki= ng-yes-rtl-df-extra-powerpc64le/powerpc64le-unknown-linux-gnu/bin/ -B/repo/gcc-trunk//binary-trunk-r14-4520-20231009121517-gb0892b1fc63-checki= ng-yes-rtl-df-extra-powerpc64le/powerpc64le-unknown-linux-gnu/lib/ -isystem /repo/gcc-trunk//binary-trunk-r14-4520-20231009121517-gb0892b1fc63-checking= -yes-rtl-df-extra-powerpc64le/powerpc64le-unknown-linux-gnu/include -isystem /repo/gcc-trunk//binary-trunk-r14-4520-20231009121517-gb0892b1fc63-checking= -yes-rtl-df-extra-powerpc64le/powerpc64le-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I.. -I/repo/gcc-trunk/libstdc++-v3/../libiberty -I/repo/gcc-trunk/libstdc++-v3/../include -prefer-pic -D_GLIBCXX_SHARED -I/repo/build-gcc-trunk-powerpc64le/powerpc64le-unknown-linux-gnu/libstdc++= -v3/include/powerpc64le-unknown-linux-gnu -I/repo/build-gcc-trunk-powerpc64le/powerpc64le-unknown-linux-gnu/libstdc++= -v3/include -I/repo/gcc-trunk/libstdc++-v3/libsupc++ -g -O2 -DIN_GLIBCPP_V3 -Wno-er= ror -c cp-demangle.c libtool: compile: /repo/build-gcc-trunk-powerpc64le/./gcc/xgcc -B/repo/build-gcc-trunk-powerpc64le/./gcc/ -B/repo/gcc-trunk//binary-trunk-r14-4520-20231009121517-gb0892b1fc63-checki= ng-yes-rtl-df-extra-powerpc64le/powerpc64le-unknown-linux-gnu/bin/ -B/repo/gcc-trunk//binary-trunk-r14-4520-20231009121517-gb0892b1fc63-checki= ng-yes-rtl-df-extra-powerpc64le/powerpc64le-unknown-linux-gnu/lib/ -isystem /repo/gcc-trunk//binary-trunk-r14-4520-20231009121517-gb0892b1fc63-checking= -yes-rtl-df-extra-powerpc64le/powerpc64le-unknown-linux-gnu/include -isystem /repo/gcc-trunk//binary-trunk-r14-4520-20231009121517-gb0892b1fc63-checking= -yes-rtl-df-extra-powerpc64le/powerpc64le-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I.. -I/repo/gcc-trunk/libstdc++-v3/../libiberty -I/repo/gcc-trunk/libstdc++-v3/../include -D_GLIBCXX_SHARED -I/repo/build-gcc-trunk-powerpc64le/powerpc64le-unknown-linux-gnu/libstdc++= -v3/include/powerpc64le-unknown-linux-gnu -I/repo/build-gcc-trunk-powerpc64le/powerpc64le-unknown-linux-gnu/libstdc++= -v3/include -I/repo/gcc-trunk/libstdc++-v3/libsupc++ -g -O2 -DIN_GLIBCPP_V3 -Wno-error = -c cp-demangle.c -fPIC -DPIC -o cp-demangle.o xgcc: internal compiler error: Segmentation fault signal terminated program= cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug). See for instructions. make: *** [Makefile:970: cp-demangle.lo] Error 1=