]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix warning in powerpc bcopy
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 12 May 2012 15:40:53 +0000 (17:40 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 12 May 2012 15:41:37 +0000 (17:41 +0200)
ChangeLog
sysdeps/powerpc/memmove.c

index 8a10d6ab09aef4ccbd0d6bd8bddd3cc8c1ad06d3..6f0b685d909727824f44fda6a9301932aba4f708 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 89182838e94b8146e924fc9b2e66e675b5d3ee57..1617ecea95620133fea2bd7bc2f50f991a59cc29 100644 (file)
@@ -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.  */