diff options
author | Ben Elliston <bje@gnu.org> | 2003-09-05 00:45:54 +0000 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2003-09-05 00:45:54 +0000 |
commit | 0a8fd4dc312a6df5595c62fd0bbb00878d2e1257 (patch) | |
tree | fa70c1ddbf3a8d8c4be8ab21f4219ef6f5f37f6e | |
parent | 10a32423f87001643918b15d3b6118a29d8615d4 (diff) | |
download | newlib-0a8fd4dc312a6df5595c62fd0bbb00878d2e1257.zip newlib-0a8fd4dc312a6df5595c62fd0bbb00878d2e1257.tar.gz newlib-0a8fd4dc312a6df5595c62fd0bbb00878d2e1257.tar.bz2 |
* libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace
after continuation characters that induces a warning from modern
versions of GCC.
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/machine/xscale/memcmp.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index addfa03..a81ab7c 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2003-09-05 Ben Elliston <bje@namadgi> + + * libc/machine/xscale/memcmp.c (memcmp): Strip trailing whitespace + after continuation characters that induces a warning from modern + versions of GCC. + 2003-09-04 Ben Elliston <bje@wasabisystems.com> * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards. #ifndef FOO || diff --git a/newlib/libc/machine/xscale/memcmp.c b/newlib/libc/machine/xscale/memcmp.c index c26bcd0..1eba4b8 100644 --- a/newlib/libc/machine/xscale/memcmp.c +++ b/newlib/libc/machine/xscale/memcmp.c @@ -27,7 +27,7 @@ memcmp (const void * s1, const void * s2, size_t len) 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 @@ memcmp (const void * s1, const void * s2, size_t len) 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\ |