about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-02-08 01:10:40 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-02-08 01:10:40 +0000
commitb2c9eff43c49d528c7ad3d0d91d03ccf0ae5ae0f (patch)
tree62894ea6e95d9a558d788eb9493110342c10bf73 /sysdeps
parentf1d70dad5381352b3cad04b5ee0dd0efe2627683 (diff)
downloadglibc-b2c9eff43c49d528c7ad3d0d91d03ccf0ae5ae0f.tar.gz
glibc-b2c9eff43c49d528c7ad3d0d91d03ccf0ae5ae0f.tar.xz
glibc-b2c9eff43c49d528c7ad3d0d91d03ccf0ae5ae0f.zip
Remove CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH for C code.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/bp-checks.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/sysdeps/generic/bp-checks.h b/sysdeps/generic/bp-checks.h
index 13d00caf48..618497cba1 100644
--- a/sysdeps/generic/bp-checks.h
+++ b/sysdeps/generic/bp-checks.h
@@ -24,16 +24,6 @@
 
 # define BOUNDS_VIOLATED (__builtin_trap (), 0)
 
-/* Verify that pointer's value >= low.  Return pointer value.  */
-# define CHECK_BOUNDS_LOW(ARG)					\
-  (((__ptrvalue (ARG) < __ptrlow (ARG)) && BOUNDS_VIOLATED),	\
-   __ptrvalue (ARG))
-
-/* Verify that pointer's value < high.  Return pointer value.  */
-# define CHECK_BOUNDS_HIGH(ARG)				\
-  (((__ptrvalue (ARG) > __ptrhigh (ARG)) && BOUNDS_VIOLATED),	\
-   __ptrvalue (ARG))
-
 # define _CHECK_N(ARG, N, COND)				\
   (((COND)						\
     && (__ptrvalue (ARG) < __ptrlow (ARG)		\
@@ -56,8 +46,6 @@
 /* Do nothing if not compiling with -fbounded-pointers.  */
 
 # define BOUNDS_VIOLATED
-# define CHECK_BOUNDS_LOW(ARG) (ARG)
-# define CHECK_BOUNDS_HIGH(ARG) (ARG)
 # define CHECK_1(ARG) (ARG)
 # define CHECK_1_NULL_OK(ARG) (ARG)
 # define CHECK_N(ARG, N) (ARG)