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

login
register
mail settings
Submitter Jan Hubicka
Date Nov. 11, 2010, 12:18 a.m.
Message ID <20101111001835.GB32454@kam.mff.cuni.cz>
Download mbox | patch
Permalink /patch/70736/
State New
Headers show

Comments

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

Honza

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;
 }