This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/81261] New: [8 Regression] ICE with -fno-guess-branch-probability
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Jun 2017 08:36:12 +0000
- Subject: [Bug ipa/81261] New: [8 Regression] ICE with -fno-guess-branch-probability
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81261
Bug ID: 81261
Summary: [8 Regression] ICE with -fno-guess-branch-probability
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: marxin at gcc dot gnu.org
Target Milestone: ---
Probably staring from Honza's commit, I see:
$ ./xg++ -B. /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ipa/pr61160-1.C
-O1 -fno-guess-branch-probability
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ipa/pr61160-1.C: In member
function ‘virtual void* CExample::_ZThn8_N8CExample9MixinFuncEiPv(int, void*)’:
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ipa/pr61160-1.C:14:9:
internal compiler error: in to_reg_br_prob_base, at profile-count.h:189
void *MixinFunc (int arg, void *arg2)
^~~~~~~~~
0xe1d414 profile_probability::to_reg_br_prob_base() const
../../gcc/profile-count.h:189
0xf9349d estimate_bb_frequencies(bool)
../../gcc/predict.c:3558
0xf94152 rebuild_frequencies()
../../gcc/predict.c:3854
0xf77694 execute_function_todo
../../gcc/passes.c:1970
0xf76750 do_per_function
../../gcc/passes.c:1655
0xf7795e execute_todo
../../gcc/passes.c:2043
0xf77edd execute_one_ipa_transform_pass
../../gcc/passes.c:2240
0xf78018 execute_all_ipa_transforms()
../../gcc/passes.c:2276
0xba0b1f cgraph_node::expand()
../../gcc/cgraphunit.c:2042
0xba22ca expand_all_functions
../../gcc/cgraphunit.c:2185
0xba22ca symbol_table::compile()
../../gcc/cgraphunit.c:2542
0xba4a16 symbol_table::compile()
../../gcc/cgraphunit.c:2635
0xba4a16 symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2632