From: Jan Hubicka Date: Sun, 19 Nov 2017 18:56:58 +0000 (+0100) Subject: re PR ipa/83001 (ICE in edge_badness, at ipa-inline.c:1025) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77459763f49af6171d5512f71576f4d4d7640b28;p=gcc.git 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 --- 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;