https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63422
Bug ID: 63422 Summary: [5.0 Regression] ICE in freqs_to_counts_path, at tree-ssa-threadupdate.c:981 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: Joost.VandeVondele at mat dot ethz.ch In the one day between r215702 and 215747 trunk started failing to compile CP2K with '-c -flto=jobserver -fprofile-use '. Several lto instances fail with: /data/vjoost/gnu/cp2k/cp2k/makefiles/../src/core_ae.F:58:0: internal compiler error: in freqs_to_counts_path, at tree-ssa-threadupdate.c:988 SUBROUTINE build_core_ae(matrix_h, matrix_p, force, virial, calculate_forces, use_virial, nder,& ^ 0xb4e8c0 freqs_to_counts_path ../../gcc/gcc/tree-ssa-threadupdate.c:988 0xb4e8c0 ssa_fix_duplicate_block_edges(redirection_data*, ssa_local_info_t*) ../../gcc/gcc/tree-ssa-threadupdate.c:1061 0xb4f018 ssa_fixup_template_block ../../gcc/gcc/tree-ssa-threadupdate.c:1301 0xb4f018 traverse_noresize<ssa_local_info_t*, ssa_fixup_template_block> ../../gcc/gcc/hash-table.h:942 0xb4f018 traverse<ssa_local_info_t*, ssa_fixup_template_block> ../../gcc/gcc/hash-table.h:964 0xb4f018 thread_block_1 ../../gcc/gcc/tree-ssa-threadupdate.c:1523 0xb4f4e0 thread_block ../../gcc/gcc/tree-ssa-threadupdate.c:1560 0xb4fd6e thread_through_all_blocks(bool) ../../gcc/gcc/tree-ssa-threadupdate.c:2279 0xbd86ed finalize_jump_threads ../../gcc/gcc/tree-vrp.c:9856 0xbd86ed execute_vrp ../../gcc/gcc/tree-vrp.c:10010 given the combination of lto and profile-use it will be difficult to generate a testcase (other than building full cp2k with profile feedback, which is somewhat involved).