https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110857
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jan Hubicka <hubi...@gcc.gnu.org>: https://gcc.gnu.org/g:93236ad9e8fa9208e754e8806dc369e1a79dbdf7 commit r14-2966-g93236ad9e8fa9208e754e8806dc369e1a79dbdf7 Author: Jan Hubicka <j...@suse.cz> Date: Thu Aug 3 22:42:27 2023 +0200 Fix profiledbootstrap Profiledbootstrap fails with ICE in update_loop_exit_probability_scale_dom_bbs called from loop unroling. The reason is that under relatively rare situations, we may run into case where loop has multiple exits and all are considered as likely but then we scale down the profile and one of the exits becomes unlikely. We pass around unadjusted_exit_count to scale exit probability correctly. In this case we may end up using uninitialized value and profile-count type intentionally bombs on that. gcc/ChangeLog: PR bootstrap/110857 * cfgloopmanip.cc (scale_loop_profile): (Un)initialize unadjusted_exit_count.