https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81318
--- Comment #10 from David Binderman <dcb314 at hotmail dot com> --- I am not so sure this one is fixed. I have this code: __attribute__((__cold__)) a(); b() { a(); } c() { b(); if (d()) e(); } derived from Linux kernel and it does this with revision 250361: during GIMPLE pass: profile_estimate bug368.c: In function ācā: bug368.c:7:1: internal compiler error: in to_reg_br_prob_base, at profile-count.h:189 } ^ 0xb58ed1 profile_probability::to_reg_br_prob_base() const ../../trunk/gcc/profile-count.h:189 0xb58ed1 estimate_bb_frequencies(bool) ../../trunk/gcc/predict.c:3568 0xb5cce4 tree_estimate_probability(bool) ../../trunk/gcc/predict.c:2825 0xb5d193 execute ../../trunk/gcc/predict.c:3710 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.