aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-11-19 19:56:58 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-11-19 18:56:58 +0000
commit77459763f49af6171d5512f71576f4d4d7640b28 (patch)
tree00142537ddaab31b5bfe543514509c8e9e2644e8
parent0fa23756e37ab00d3dde632e3530851253b2e5ca (diff)
downloadgcc-77459763f49af6171d5512f71576f4d4d7640b28.zip
gcc-77459763f49af6171d5512f71576f4d4d7640b28.tar.gz
gcc-77459763f49af6171d5512f71576f4d4d7640b28.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/profile-count.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 85dc9c5..e955bec 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2017-11-19 Jan Hubicka <hubicka@ucw.cz>
+ PR ipa/83001
+ * profile-count.c (profile_count::to_sreal_scale): Fix return value
+ for uninitialied counts.
+
+2017-11-19 Jan Hubicka <hubicka@ucw.cz>
+
PR ipa/60243
* tree-inline.c (estimate_num_insns): Set to 1 at least.
diff --git a/gcc/profile-count.c b/gcc/profile-count.c
index e5d9fae..5d8e9c5 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;