[PATCH] Fix mudflap test pass54-frag.c

David Miller davem@davemloft.net
Tue Mar 16 04:02:00 GMT 2010


It lacks an explicit return from main, so essentially the
exit status is random and this has caused this test to
fail on sparc ever since it got added.

Ok to commit?

libmudflap/

2010-03-15  David S. Miller  <davem@davemloft.net>

	* testsuite/libmudflap.c/pass54-frag.c: Add explicit return from
	main.

diff --git a/libmudflap/testsuite/libmudflap.c/pass54-frag.c b/libmudflap/testsuite/libmudflap.c/pass54-frag.c
index 59cf2fa..5eebb45 100644
--- a/libmudflap/testsuite/libmudflap.c/pass54-frag.c
+++ b/libmudflap/testsuite/libmudflap.c/pass54-frag.c
@@ -30,4 +30,5 @@ int main ()
   foo ();
   bar ();
   __mf_set_options ("-mode-check");
+  return 0;
 }



More information about the Gcc-patches mailing list