From 77459763f49af6171d5512f71576f4d4d7640b28 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 19 Nov 2017 19:56:58 +0100 Subject: 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/profile-count.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/profile-count.c') 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; -- cgit v1.1