https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97295
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:be8b62c99cf8baea6ee8163af8e85aa0e8634222 commit r10-8891-gbe8b62c99cf8baea6ee8163af8e85aa0e8634222 Author: Martin Liska <mli...@suse.cz> Date: Tue Oct 13 16:44:47 2020 +0200 IPA: fix profile handling in IRA gcc/ChangeLog: PR ipa/97295 * profile-count.c (profile_count::to_frequency): Move part of gcc_assert to STATIC_ASSERT. * regs.h (REG_FREQ_FROM_BB): Do not use count.to_frequency for a function that does not have count_max initialized. (cherry picked from commit 508e2d88a4c512e8b8685cf5ba201ad48e6bb58d)