diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-07-09 00:36:27 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-07-09 00:36:27 +0400 |
commit | 17bfd1e08381387af74ddbae1676b83445dbaa0e (patch) | |
tree | 4e4ae63ce4dd978d37715d6e5a7e256c4fcee58d | |
parent | 23672785ee63ee712b8ef05d0caa92e798683e53 (diff) |
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.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/machine/mn10300/memset.S | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 5f6203037..2d4f76eef 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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. diff --git a/newlib/libc/machine/mn10300/memset.S b/newlib/libc/machine/mn10300/memset.S index ac97e090d..a927a5ef6 100644 --- a/newlib/libc/machine/mn10300/memset.S +++ b/newlib/libc/machine/mn10300/memset.S @@ -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 |