about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-02-01 06:35:29 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-02-01 06:35:29 +0000
commite782a927c24430100bf2008c96cd421a70285a7e (patch)
treeca91c08070e38fa5c2c9ed085f4835eb5ab3704b /sysdeps/generic
parent3a7ac8a0f596bb73093212cd1109c1413777e1f8 (diff)
downloadglibc-e782a927c24430100bf2008c96cd421a70285a7e.tar.gz
glibc-e782a927c24430100bf2008c96cd421a70285a7e.tar.xz
glibc-e782a927c24430100bf2008c96cd421a70285a7e.zip
Remove BOUNDED_N and BOUNDED_1.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/bp-checks.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/sysdeps/generic/bp-checks.h b/sysdeps/generic/bp-checks.h
index 9bfa433b0a..cfff9155ec 100644
--- a/sysdeps/generic/bp-checks.h
+++ b/sysdeps/generic/bp-checks.h
@@ -66,13 +66,6 @@ extern void *__unbounded __ubp_memchr (const void *__unbounded, int, unsigned);
 /* Same as CHECK_STRING, but tolerate ARG == NULL.  */
 # define CHECK_STRING_NULL_OK(ARG) _CHECK_STRING ((ARG), __ptrvalue (ARG))
 
-/* Return a bounded pointer with value PTR that satisfies CHECK_N (PTR, N).  */
-# define BOUNDED_N(PTR, N) 				\
-  ({ __typeof (PTR) __bounded _p_;			\
-     __ptrvalue _p_ = __ptrlow _p_ = __ptrvalue (PTR);	\
-     __ptrhigh _p_ = __ptrvalue _p_ + (N);		\
-     _p_; })
-
 #else /* !__BOUNDED_POINTERS__ */
 
 /* Do nothing if not compiling with -fbounded-pointers.  */
@@ -85,10 +78,7 @@ extern void *__unbounded __ubp_memchr (const void *__unbounded, int, unsigned);
 # define CHECK_N(ARG, N) (ARG)
 # define CHECK_N_NULL_OK(ARG, N) (ARG)
 # define CHECK_STRING(ARG) (ARG)
-# define BOUNDED_N(PTR, N) (PTR)
 
 #endif /* !__BOUNDED_POINTERS__ */
 
-#define BOUNDED_1(PTR) BOUNDED_N (PTR, 1)
-
 #endif /* _bp_checks_h_ */