This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: PR testsuite/40481: gcc.dg/plugin/one_time-test-1.c doesn't work on ia64
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sources dot redhat dot com
- Date: Mon, 22 Jun 2009 06:33:56 -0700
- Subject: PATCH: PR testsuite/40481: gcc.dg/plugin/one_time-test-1.c doesn't work on ia64
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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 =