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

login
register
mail settings
Submitter Richard Guenther
Date July 13, 2012, 1:10 p.m.
Message ID <alpine.LNX.2.00.1207131509300.17088@jbgna.fhfr.qr>
Download mbox | patch
Permalink /patch/170884/
State New
Headers show

Comments

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

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