mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 05:20:06 +00:00
* sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
(__ubp_memchr): Add correct decl. (_CHECK_STRING): Use __ubp_memchr. * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr): New alias for unbounded-pointer __memchr. * sysdeps/i386/memchr.S: Likewise. * sysdeps/ia64/memchr.S: Likewise. * sysdeps/m68k/memchr.S: Likewise. * sysdeps/sparc/sparc32/memchr.S: Likewise. * sysdeps/sparc/sparc64/memchr.S: Likewise. * sysdeps/vax/memchr.s: Likewise.
This commit is contained in:
parent
c52761c183
commit
ca67152c2a
@ -67,7 +67,7 @@ ENTRY(__memchr)
|
|||||||
unop # :
|
unop # :
|
||||||
sll a1, 32, t1 #-e0 : t1 = chchchch00000000
|
sll a1, 32, t1 #-e0 : t1 = chchchch00000000
|
||||||
or t1, a1, a1 # e1 : a1 = chchchchchchchch
|
or t1, a1, a1 # e1 : a1 = chchchchchchchch
|
||||||
extql t0, a0, t6 # e0 :
|
extql t0, a0, t6 # e0 :
|
||||||
beq t3, $first_quad # .. e1 :
|
beq t3, $first_quad # .. e1 :
|
||||||
|
|
||||||
ldq_u t5, -1(t4) #-e1 : eight or less bytes to search
|
ldq_u t5, -1(t4) #-e1 : eight or less bytes to search
|
||||||
@ -170,3 +170,6 @@ $not_found:
|
|||||||
END(__memchr)
|
END(__memchr)
|
||||||
|
|
||||||
weak_alias (__memchr, memchr)
|
weak_alias (__memchr, memchr)
|
||||||
|
#if !__BOUNDED_POINTERS__
|
||||||
|
weak_alias (__memchr, __ubp_memchr)
|
||||||
|
#endif
|
||||||
|
@ -226,3 +226,6 @@ L(L9:)
|
|||||||
END(__memchr)
|
END(__memchr)
|
||||||
|
|
||||||
weak_alias (__memchr, memchr)
|
weak_alias (__memchr, memchr)
|
||||||
|
#if !__BOUNDED_POINTERS__
|
||||||
|
weak_alias (__memchr, __ubp_memchr)
|
||||||
|
#endif
|
||||||
|
@ -69,4 +69,6 @@ ENTRY(__memchr, 0)
|
|||||||
brb 0b # and loop
|
brb 0b # and loop
|
||||||
|
|
||||||
weak_alias (__memchr, memchr)
|
weak_alias (__memchr, memchr)
|
||||||
|
#if !__BOUNDED_POINTERS__
|
||||||
|
weak_alias (__memchr, __ubp_memchr)
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user