From 77459763f49af6171d5512f71576f4d4d7640b28 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 19 Nov 2017 19:56:58 +0100 Subject: [PATCH] re PR ipa/83001 (ICE in edge_badness, at ipa-inline.c:1025) PR ipa/83001 * profile-count.c (profile_count::to_sreal_scale): Fix return value for uninitialied counts. From-SVN: r254935 --- gcc/ChangeLog | 6 ++++++ gcc/profile-count.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85dc9c52463..e955bece4b9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-11-19 Jan Hubicka + + PR ipa/83001 + * profile-count.c (profile_count::to_sreal_scale): Fix return value + for uninitialied counts. + 2017-11-19 Jan Hubicka PR ipa/60243 diff --git a/gcc/profile-count.c b/gcc/profile-count.c index e5d9faefc33..5d8e9c55913 100644 --- a/gcc/profile-count.c +++ b/gcc/profile-count.c @@ -268,7 +268,7 @@ profile_count::to_sreal_scale (profile_count in, bool *known) const { if (known) *known = false; - return CGRAPH_FREQ_BASE; + return 1; } if (known) *known = true; -- 2.30.2