https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81318
Daniel Black <daniel.black at au dot ibm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.black at au dot ibm.com --- Comment #25 from Daniel Black <daniel.black at au dot ibm.com> --- Also getting this on linux kernel 4.13 release on gcc master branch but not gcc-7: There are at least two locations that generate this backtrace. gcc -O1 -c -o drivers/scsi/mpt3sas/.tmp_mpt3sas_scsih.o ./mpt3sas_scsih.i during GIMPLE pass: profile_estimate drivers/scsi/mpt3sas/mpt3sas_scsih.c: In function ‘mpt3sas_scsih_issue_tm’: drivers/scsi/mpt3sas/mpt3sas_scsih.c:9455:1: internal compiler error: in to_reg_br_prob_base, at profile-count.h:189 module_exit(_mpt3sas_exit); ^~~~~~ 0x1085d55f profile_probability::to_reg_br_prob_base() const ../../gcc/profile-count.h:189 0x1085d55f estimate_bb_frequencies(bool) ../../gcc/predict.c:3570 0x10861123 tree_estimate_probability(bool) ../../gcc/predict.c:2827 0x1086165f execute ../../gcc/predict.c:3712 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. Simplest ICE generation is -O1. -O0 gets to code errors.