OSDN Git Service

2008-07-08 Kenji Tanaka <tanaka.ken2@jp.panasonic.com>
authorjjohnstn <jjohnstn>
Tue, 8 Jul 2008 20:36:26 +0000 (20:36 +0000)
committerjjohnstn <jjohnstn>
Tue, 8 Jul 2008 20:36:26 +0000 (20:36 +0000)
        * libc/machine/mn10300/memset.S: Fix bug where return value is
        incorrectly set if number of bytes set is a multiple of 4.

newlib/ChangeLog
newlib/libc/machine/mn10300/memset.S

index 5f62030..2d4f76e 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-08  Kenji Tanaka  <tanaka.ken2@jp.panasonic.com>
+
+       * libc/machine/mn10300/memset.S: Fix bug where return value is
+       incorrectly set if number of bytes set is a multiple of 4.
+
 2008-07-07  Hans-Peter Nilsson  <hp@axis.com>
 
        * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t.
index ac97e09..a927a5e 100644 (file)
@@ -54,8 +54,8 @@ _memset:
        inc   a0
        sub   1, a1
        lne
-       mov d3,a0
 .Lepilogue:
+       mov d3,a0
        ret [d2,d3,a2,a3], 16
 .Lend_of_memset:
        .size    _memset, .Lend_of_memset - _memset