public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jan Hubicka <hubicka@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-2774] Fix profile_count::to_sreal_scale Date: Wed, 26 Jul 2023 06:59:39 +0000 (GMT) [thread overview] Message-ID: <20230726065939.E14803858CD1@sourceware.org> (raw) https://gcc.gnu.org/g:645c67f80c6258c1f54ec567f604008adbdb8a04 commit r14-2774-g645c67f80c6258c1f54ec567f604008adbdb8a04 Author: Jan Hubicka <jh@suse.cz> Date: Wed Jul 26 08:59:23 2023 +0200 Fix profile_count::to_sreal_scale gcc/ChangeLog: * profile-count.cc (profile_count::to_sreal_scale): Value is not know if we divide by zero. Diff: --- gcc/profile-count.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/profile-count.cc b/gcc/profile-count.cc index 2c07ebc5942..eaf0f0d787e 100644 --- a/gcc/profile-count.cc +++ b/gcc/profile-count.cc @@ -345,7 +345,7 @@ profile_count::to_sreal_scale (profile_count in, bool *known) const return 1; } if (known) - *known = true; + *known = in.m_val != 0; if (*this == in) return 1; gcc_checking_assert (compatible_p (in));
reply other threads:[~2023-07-26 6:59 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230726065939.E14803858CD1@sourceware.org \ --to=hubicka@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).