This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

PATCH: PR testsuite/40481: gcc.dg/plugin/one_time-test-1.c doesn't work on ia64


Hi,

one_pass_exec returns garbage.  As the result, all kinds of random post
pass cleanups may run. I am checking in this patch as an obvious fix.


H.J.
---
2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/40481
	* gcc.dg/plugin/one_time_plugin.c (one_pass_exec): Return 0;

Index: gcc.dg/plugin/one_time_plugin.c
===================================================================
--- gcc.dg/plugin/one_time_plugin.c	(revision 148764)
+++ gcc.dg/plugin/one_time_plugin.c	(working copy)
@@ -24,6 +24,7 @@ static unsigned int one_pass_exec (void)
     printf ("Executed more than once \n");
  }
  counter++;
+ return 0;
 }
 
 struct gimple_opt_pass one_pass = 


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