https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87271
Bug ID: 87271 Summary: [9 Regression] ICE in rpo_elim::~rpo_elim (this=0xbfbfe15c, __in_chrg=<optimized out>) at ../../gcc/tree-ssa-sccvn.c:5709 on FreeBSD 10.4 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: rguenth at gcc dot gnu.org Target Milestone: --- Host: i586-freebsd That's follow-up of: https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00501.html I see following back-trace: $ Starting program: /tmp/gcc3/objdir/gcc/cc1 -quiet -I . -I ../../../libbacktrace -I ../../../libbacktrace/../include -I ../../../libbacktrace/../libgcc -I ../libgcc -iprefix /tmp/gcc3/objdir/gcc/../lib/gcc/i586-unknown-freebsd10.4/9.0.0/ -isystem /tmp/gcc3/objdir/./gcc/include -isystem /tmp/gcc3/objdir/./gcc/include-fixed -D HAVE_CONFIG_H -D PIC -isystem /usr/local/i586-unknown-freebsd10.4/include -isystem /usr/local/i586-unknown-freebsd10.4/sys-include ../../../libbacktrace/elf.c -quiet -dumpbase elf.c -mtune=pentium -march=pentium -auxbase-strip .libs/elf.o -g -O2 -Wextra -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wsuggest-attribute=format -Wcast-qual -Werror -funwind-tables -frandom-seed=elf.lo -fPIC -o /tmp//ccR4tmV8.s Program received signal SIGSEGV, Segmentation fault. 0x2a59ebe8 in ?? () from /lib/libc.so.7 (gdb) bt #0 0x2a59ebe8 in ?? () from /lib/libc.so.7 #1 0x2a59efb7 in ?? () from /lib/libc.so.7 #2 0x2a5aa90c in free () from /lib/libc.so.7 #3 0x085ced17 in va_heap::release<std::pair<int, int> > (v=@0x2b42801c: 0x2aefbf80) at ../../gcc/vec.h:307 #4 0x085ce59f in vec<std::pair<int, int>, va_heap, vl_ptr>::release (this=0x2b42801c) at ../../gcc/vec.h:1675 #5 0x08ea9523 in rpo_elim::~rpo_elim (this=0xbfbfe15c, __in_chrg=<optimized out>) at ../../gcc/tree-ssa-sccvn.c:5709 #6 0x08eac4a9 in do_rpo_vn (fn=0x2b1df340, entry=0x2b273b20, exit_bbs=0x0, iterate=true, eliminate=false) at ../../gcc/tree-ssa-sccvn.c:6303 #7 0x08ea8dab in run_rpo_vn (kind=VN_WALK) at ../../gcc/tree-ssa-sccvn.c:5560 #8 0x08e722e1 in (anonymous namespace)::pass_pre::execute (this=0x2ac5d0c0, fun=0x2b1df340) at ../../gcc/tree-ssa-pre.c:4199 #9 0x08ad607b in execute_one_pass (pass=0x2ac5d0c0) at ../../gcc/passes.c:2446 #10 0x08ad63b4 in execute_pass_list_1 (pass=0x2ac5d0c0) at ../../gcc/passes.c:2535 #11 0x08ad63e4 in execute_pass_list_1 (pass=0x2ac5b5c0) at ../../gcc/passes.c:2536 #12 0x08ad6430 in execute_pass_list (fn=0x2b1df340, pass=0x2ac5b480) at ../../gcc/passes.c:2546 #13 0x08637115 in cgraph_node::expand (this=0x2b20c320) at ../../gcc/cgraphunit.c:2121 #14 0x086376f0 in expand_all_functions () at ../../gcc/cgraphunit.c:2259 #15 0x08638189 in symbol_table::compile (this=0x2b0070c8) at ../../gcc/cgraphunit.c:2610 #16 0x0863858e in symbol_table::finalize_compilation_unit (this=0x2b0070c8) at ../../gcc/cgraphunit.c:2788 #17 0x08c33ea9 in compile_file () at ../../gcc/toplev.c:480 #18 0x08c36679 in do_compile () at ../../gcc/toplev.c:2170 #19 0x08c3694c in toplev::main (this=0xbfbfe4fe, argc=50, argv=0xbfbfe558) at ../../gcc/toplev.c:2305 #20 0x099dabda in main (argc=50, argv=0xbfbfe558) at ../../gcc/main.c:39