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 gcc.dg/tree-prof/inliner-1.c failure


Hi,
this testcase is broken because it requires to inline into function called once.

Honza

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


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