Fix libmudflap.c/fail1[12]-frag.c FAILs

Submitted by Richard Guenther on July 13, 2012, 1:10 p.m.

Details

Message ID alpine.LNX.2.00.1207131509300.17088@jbgna.fhfr.qr
State New
Headers show

Commit Message

Richard Guenther July 13, 2012, 1:10 p.m.
Recognized as memset, fixed.

Tested on x86_64-unknown-linux-gnu, applied.

Richard.

2012-07-13  Richard Guenther  <rguenther@suse.de>

	* libmudflap.c/fail11-frag.c: Adjust to not look like memset.
	* libmudflap.c/fail12-frag.c: Likewise.

Patch hide | download patch | download mbox

Index: libmudflap/testsuite/libmudflap.c/fail11-frag.c
===================================================================
--- libmudflap/testsuite/libmudflap.c/fail11-frag.c	(revision 189461)
+++ libmudflap/testsuite/libmudflap.c/fail11-frag.c	(working copy)
@@ -10,7 +10,7 @@  y = x;
 while (i--)
 {
   ++x;
-  *x = 0;
+  *x = i;
 }
 return 0;
 }
Index: libmudflap/testsuite/libmudflap.c/fail12-frag.c
===================================================================
--- libmudflap/testsuite/libmudflap.c/fail12-frag.c	(revision 189461)
+++ libmudflap/testsuite/libmudflap.c/fail12-frag.c	(working copy)
@@ -10,7 +10,7 @@  y = x;
 while (i--)
 {
   ++x;
-  *x = 0;
+  *x = i;
 }
 return 0;
 }