mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
Fix warning in powerpc bcopy
This commit is contained in:
parent
dc70356cbf
commit
c7df011202
@ -1,3 +1,8 @@
|
||||
2012-05-12 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
|
||||
used as bcopy.
|
||||
|
||||
2012-05-12 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
|
||||
|
@ -50,12 +50,12 @@ MEMMOVE (a1, a2, len)
|
||||
unsigned long int srcp = (long int) src;
|
||||
|
||||
/* If there is no overlap between ranges, call the builtin memcpy. */
|
||||
if ( (dstp >= (srcp + len)) || (srcp > (dstp + len)) )
|
||||
return __builtin_memcpy (dest, src, len);
|
||||
if (dstp >= srcp + len || srcp > dstp + len)
|
||||
__builtin_memcpy (dest, src, len);
|
||||
|
||||
/* This test makes the forward copying code be used whenever possible.
|
||||
Reduces the working set. */
|
||||
if (dstp - srcp >= len) /* *Unsigned* compare! */
|
||||
else if (dstp - srcp >= len) /* *Unsigned* compare! */
|
||||
{
|
||||
/* Copy from the beginning to the end. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user