This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix pasto in to_sreal_scale


Hi,
this patch fixes ICE with -fno-guess-branch-probability.

Bootstrapped/regtested x86_64-linux, comitted.

Honza

	PR ipa/83001
	* profile-count.c (profile_count::to_sreal_scale): Fix return value
	for uninitialied counts.

Index: profile-count.c
===================================================================
--- profile-count.c	(revision 254929)
+++ profile-count.c	(working copy)
@@ -268,7 +268,7 @@ profile_count::to_sreal_scale (profile_c
     {
       if (known)
 	*known = false;
-      return CGRAPH_FREQ_BASE;
+      return 1;
     }
   if (known)
     *known = true;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]