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 + + * 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 * 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