https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97933
Bug ID: 97933 Summary: [11 Regression] Bootstrap failure on s390x-linux Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- ../configure --target s390x-linux-gnu --enable-languages=c,c++ --enable-checking=release --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-gnu-indirect-function --with-long-double-128 --with-arch=zEC12 --with-tune=z13 --enable-decimal-float fails both profiledbootstrap and bootstrap (no LTO in either case), while building stage2 libgcc. The ICE is e.g. on decDouble.c: Program received signal SIGSEGV, Segmentation fault. 0x00000000014b4012 in ipa_sra_function_summaries::duplicate(cgraph_node*, cgraph_node*, isra_func_summary*, isra_func_summary*) () Missing separate debuginfos, use: dnf debuginfo-install gmp-6.2.0-5.fc34.s390x isl-0.16.1-12.fc33.s390x libmpc-1.2.1-1.fc34.s390x libzstd-1.4.5-6.fc34.s390x mpfr-4.1.0-2.fc33.s390x zlib-1.2.11-23.fc34.s390x (gdb) up #1 0x00000000014bec9c in function_summary<isra_func_summary*>::symtab_duplication(cgraph_node*, cgraph_node*, void*) () (gdb) #2 0x00000000012e7a34 in symbol_table::call_cgraph_duplication_hooks(cgraph_node*, cgraph_node*) () (gdb) down #1 0x00000000014bec9c in function_summary<isra_func_summary*>::symtab_duplication(cgraph_node*, cgraph_node*, void*) () (gdb) #0 0x00000000014b4012 in ipa_sra_function_summaries::duplicate(cgraph_node*, cgraph_node*, isra_func_summary*, isra_func_summary*) () (gdb) Bottom (innermost) frame selected; you cannot go down. (gdb) bt #0 0x00000000014b4012 in ipa_sra_function_summaries::duplicate(cgraph_node*, cgraph_node*, isra_func_summary*, isra_func_summary*) () #1 0x00000000014bec9c in function_summary<isra_func_summary*>::symtab_duplication(cgraph_node*, cgraph_node*, void*) () #2 0x00000000012e7a34 in symbol_table::call_cgraph_duplication_hooks(cgraph_node*, cgraph_node*) () #3 0x00000000012fd466 in cgraph_node::create_virtual_clone(vec<cgraph_edge*, va_heap, vl_ptr>, vec<ipa_replace_map*, va_gc, vl_embed>*, ipa_param_adjustments*, char const*, unsigned int) () #4 0x00000000014b7b90 in (anonymous namespace)::pass_ipa_sra::execute(function*) () #5 0x0000000001631dac in execute_one_pass(opt_pass*) () #6 0x0000000001632dce in execute_ipa_pass_list(opt_pass*) () #7 0x00000000012f7140 in symbol_table::compile() [clone .part.0] () #8 0x00000000012f9610 in symbol_table::finalize_compilation_unit() () #9 0x0000000001706ad6 in compile_file() () #10 0x00000000011731bc in toplev::main(int, char**) () #11 0x00000000011750d8 in main () stage1 cc1 doesn't ICE though, nor can reproduce it in a cross-compiler from x86_64-linux (not even with valgrind annotations under valgrind), so maybe stage2 is miscompiled.