summaryrefslogtreecommitdiff
path: root/sysdeps/i386/i686/memmove.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/i686/memmove.S')
-rw-r--r--sysdeps/i386/i686/memmove.S22
1 files changed, 5 insertions, 17 deletions
diff --git a/sysdeps/i386/i686/memmove.S b/sysdeps/i386/i686/memmove.S
index 0301560bb8..bdc69d315a 100644
--- a/sysdeps/i386/i686/memmove.S
+++ b/sysdeps/i386/i686/memmove.S
@@ -25,22 +25,16 @@
.text
-#ifdef USE_AS_BCOPY
-# define SRC RTN
-# define DEST SRC+4
-# define LEN DEST+4
-#else
-# define DEST RTN
-# define SRC DEST+4
-# define LEN SRC+4
-
-# if defined PIC && IS_IN (libc)
+#define DEST RTN
+#define SRC DEST+4
+#define LEN SRC+4
+
+#if defined PIC && IS_IN (libc)
ENTRY_CHK (__memmove_chk)
movl 12(%esp), %eax
cmpl %eax, 16(%esp)
jb HIDDEN_JUMPTARGET (__chk_fail)
END_CHK (__memmove_chk)
-# endif
#endif
ENTRY (memmove)
@@ -71,9 +65,7 @@ ENTRY (memmove)
movsl
movl %edx, %esi
cfi_restore (esi)
-#ifndef USE_AS_BCOPY
movl DEST(%esp), %eax
-#endif
popl %edi
cfi_adjust_cfa_offset (-4)
@@ -103,9 +95,7 @@ ENTRY (memmove)
movsl
movl %edx, %esi
cfi_restore (esi)
-#ifndef USE_AS_BCOPY
movl DEST(%esp), %eax
-#endif
cld
popl %edi
@@ -114,6 +104,4 @@ ENTRY (memmove)
ret
END (memmove)
-#ifndef USE_AS_BCOPY
libc_hidden_builtin_def (memmove)
-#endif