This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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]

xscale/memcmp.c patch


I committed the following patch as obvious.  Also found by running
with `make -s' ;-)

Cheers, Ben


2003-09-05  Ben Elliston  <bje@wasabisystems.com>

	* libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
	after continuation characters that induces a warning from modern
	versions of GCC.

Index: libc/machine/xscale/memcmp.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/xscale/memcmp.c,v
retrieving revision 1.4
diff -u -r1.4 memcmp.c
--- libc/machine/xscale/memcmp.c	20 Apr 2002 00:29:51 -0000	1.4
+++ libc/machine/xscale/memcmp.c	5 Sep 2003 00:45:26 -0000
@@ -27,7 +27,7 @@
 	b	1f		@ jump to LOOP TEST\n\
 0:			       @ LOOP START\n\
 	ldrb	r2, [lr], #1	@ load byte from LR, post inc.\n\
-"	PRELOADSTR("lr") "	@ preload\n\ 
+"	PRELOADSTR("lr") "	@ preload\n\
 	ldrb	r3, [r4], #1	@ load byte from R4, post inc.\n\
 "	PRELOADSTR("r4") "	@ preload\n\
 	cmp	r2, r3		@ are the two bytes the same ?\n\
@@ -49,7 +49,7 @@
 	ldmia	r4,{r5, r6}	@ get two words from second pointer, post inc\n\
 	sub	%2, %2, #0x4	@ decrement count by 4\n\
 	cmp	r2, r5		@ has the count reached ????\n\
-	bne	1f		@ no = goto\n\ 
+	bne	1f		@ no = goto\n\
 	sub	%2, %2, #0x4	@ decrement the count by 4\n\
 	add	lr, lr, #0x4	@ add 4 to first pointer\n\
 	add	r4, r4, #0x4	@ add 4 to second pointer\n\


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