]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix division by zero in ipa-cp.cc:update_profiling_info
authorJan Hubicka <hubicka@ucw.cz>
Thu, 3 Jul 2025 09:56:28 +0000 (11:56 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Thu, 3 Jul 2025 09:57:20 +0000 (11:57 +0200)
commita52484f1ac34dbb604dc862407d9abb32df444dd
treea35bd50ccdc7a7c2417fe9fec5064b49b71df35b
parent15413e05eb9cde976b8890cd9b597d0a41a8eb27
Fix division by zero in ipa-cp.cc:update_profiling_info

This ICE has triggered for me during autoprofiledbootstrap.  The
code already takes into care possible range, so I think in this case
we can just push to one side of it.

Bootstrapped/regtesed x86_64-linux, OK?

gcc/ChangeLog:

* ipa-cp.cc (update_profiling_info): Watch for division by zero.
gcc/ipa-cp.cc