diff mbox

Fix gcc.dg/tree-prof/inliner-1.c failure

Message ID 20101111001835.GB32454@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka Nov. 11, 2010, 12:18 a.m. UTC
Hi,
this testcase is broken because it requires to inline into function called once.

Honza
diff mbox

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 166576)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@ 
+2010-11-10  Jan Hubicka  <jh@suse.cz>
+
+	* gcc.dg/tree-prof-inliner-1.c: Fix testcase.
+
 2010-11-10  Jason Merrill  <jason@redhat.com>
 
 	* g++.dg/cpp0x/constexpr-bitfield.C: New.
Index: gcc.dg/tree-prof/inliner-1.c
===================================================================
--- gcc.dg/tree-prof/inliner-1.c	(revision 166553)
+++ gcc.dg/tree-prof/inliner-1.c	(working copy)
@@ -23,10 +23,14 @@  hot_function ()
 
 main ()
 {
-  if (a)
-    cold_function ();
-  else
-    hot_function ();
+  int i;
+  for (i = 0; i < 100; i++)
+    {
+      if (a)
+        cold_function ();
+      else
+        hot_function ();
+    }
   return 0;
 }