From 92945b5261c412eb590b2b34c7ec9a035f0693a1 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 19 Feb 2013 21:58:08 +0000 Subject: Remove some bounded-pointers support from i386 .S files. --- sysdeps/i386/strrchr.S | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sysdeps/i386/strrchr.S') diff --git a/sysdeps/i386/strrchr.S b/sysdeps/i386/strrchr.S index 623cf4e348..fc46b306fb 100644 --- a/sysdeps/i386/strrchr.S +++ b/sysdeps/i386/strrchr.S @@ -31,7 +31,6 @@ .text ENTRY (BP_SYM (strrchr)) - ENTER pushl %edi /* Save callee-safe registers used here. */ cfi_adjust_cfa_offset (4) @@ -43,7 +42,6 @@ ENTRY (BP_SYM (strrchr)) movl STR(%esp), %esi cfi_rel_offset (esi, 0) movl CHR(%esp), %ecx - CHECK_BOUNDS_LOW (%esi, STR(%esp)) /* At the moment %ecx contains C. What we need for the algorithm is C in all bytes of the dword. Avoid @@ -324,16 +322,13 @@ L(26): testb %dl, %dl /* is third byte == NUL */ jne L(2) /* no => skip */ leal 3(%esi), %eax /* store address as result */ -L(2): CHECK_BOUNDS_HIGH (%eax, STR(%esp), jb) - RETURN_BOUNDED_POINTER (STR(%esp)) - popl %esi /* restore saved register content */ +L(2): popl %esi /* restore saved register content */ cfi_adjust_cfa_offset (-4) cfi_restore (esi) popl %edi cfi_adjust_cfa_offset (-4) cfi_restore (edi) - LEAVE RET_PTR END (BP_SYM (strrchr)) -- cgit 1.4.1