|
|
147e83 |
commit 2bdd4ca6b6c38367e301042c2247395568c63ebd
|
|
|
147e83 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
147e83 |
Date: Fri Feb 15 00:51:53 2013 +0000
|
|
|
147e83 |
|
|
|
147e83 |
Remove miscellaneous bounded-pointers relics in C code.
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/config.h.in b/config.h.in
|
|
|
147e83 |
index 07bc713e23f89e46..ef33c23c75ad2220 100644
|
|
|
147e83 |
--- a/config.h.in
|
|
|
147e83 |
+++ b/config.h.in
|
|
|
147e83 |
@@ -137,7 +137,7 @@
|
|
|
147e83 |
|
|
|
147e83 |
/* Defined to some form of __attribute__ ((...)) if the compiler supports
|
|
|
147e83 |
a different, more efficient calling convention. */
|
|
|
147e83 |
-#if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
|
|
|
147e83 |
+#if defined USE_REGPARMS && !defined PROF
|
|
|
147e83 |
# define internal_function __attribute__ ((regparm (3), stdcall))
|
|
|
147e83 |
#endif
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c
|
|
|
147e83 |
index de55b2676fc80645..1ad2e4da7a654633 100644
|
|
|
147e83 |
--- a/elf/dl-runtime.c
|
|
|
147e83 |
+++ b/elf/dl-runtime.c
|
|
|
147e83 |
@@ -148,7 +148,7 @@ _dl_fixup (
|
|
|
147e83 |
return elf_machine_fixup_plt (l, result, reloc, rel_addr, value);
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
-#if !defined PROF && !__BOUNDED_POINTERS__
|
|
|
147e83 |
+#ifndef PROF
|
|
|
147e83 |
DL_FIXUP_VALUE_TYPE
|
|
|
147e83 |
__attribute ((noinline)) ARCH_FIXUP_ATTRIBUTE
|
|
|
147e83 |
_dl_profile_fixup (
|
|
|
147e83 |
diff --git a/ports/sysdeps/am33/dl-machine.h b/ports/sysdeps/am33/dl-machine.h
|
|
|
147e83 |
index 90083c7dc45fc602..d4b321aca094863e 100644
|
|
|
147e83 |
--- a/ports/sysdeps/am33/dl-machine.h
|
|
|
147e83 |
+++ b/ports/sysdeps/am33/dl-machine.h
|
|
|
147e83 |
@@ -56,7 +56,7 @@ elf_machine_load_address (void)
|
|
|
147e83 |
return off + gotaddr - gotval;
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
-#if !defined PROF && !__BOUNDED_POINTERS__
|
|
|
147e83 |
+#ifndef PROF
|
|
|
147e83 |
/* We add a declaration of this function here so that in dl-runtime.c
|
|
|
147e83 |
the ELF_MACHINE_RUNTIME_TRAMPOLINE macro really can pass the parameters
|
|
|
147e83 |
in registers.
|
|
|
147e83 |
@@ -115,7 +115,7 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
|
|
|
147e83 |
|
|
|
147e83 |
/* This code is used in dl-runtime.c to call the `fixup' function
|
|
|
147e83 |
and then redirect to the address it returns. */
|
|
|
147e83 |
-#if !defined PROF && !__BOUNDED_POINTERS__
|
|
|
147e83 |
+#ifndef PROF
|
|
|
147e83 |
# define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\
|
|
|
147e83 |
.text\n\
|
|
|
147e83 |
.globl _dl_runtime_resolve\n\
|
|
|
147e83 |
diff --git a/string/bits/string2.h b/string/bits/string2.h
|
|
|
147e83 |
index bbf05a3df620d655..acd0679e72b10fbf 100644
|
|
|
147e83 |
--- a/string/bits/string2.h
|
|
|
147e83 |
+++ b/string/bits/string2.h
|
|
|
147e83 |
@@ -21,7 +21,7 @@
|
|
|
147e83 |
# error "Never use <bits/string2.h> directly; include <string.h> instead."
|
|
|
147e83 |
#endif
|
|
|
147e83 |
|
|
|
147e83 |
-#if !defined __NO_STRING_INLINES && !defined __BOUNDED_POINTERS__
|
|
|
147e83 |
+#ifndef __NO_STRING_INLINES
|
|
|
147e83 |
|
|
|
147e83 |
/* Unlike the definitions in the header <bits/string.h> the
|
|
|
147e83 |
definitions contained here are not optimized down to assembler
|
|
|
147e83 |
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h
|
|
|
147e83 |
index fc2b976651e20ca7..67d23228782d39c9 100644
|
|
|
147e83 |
--- a/sysdeps/i386/dl-machine.h
|
|
|
147e83 |
+++ b/sysdeps/i386/dl-machine.h
|
|
|
147e83 |
@@ -145,7 +145,7 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
|
|
|
147e83 |
|
|
|
147e83 |
#ifdef IN_DL_RUNTIME
|
|
|
147e83 |
|
|
|
147e83 |
-# if !defined PROF && !__BOUNDED_POINTERS__
|
|
|
147e83 |
+# ifndef PROF
|
|
|
147e83 |
/* We add a declaration of this function here so that in dl-runtime.c
|
|
|
147e83 |
the ELF_MACHINE_RUNTIME_TRAMPOLINE macro really can pass the parameters
|
|
|
147e83 |
in registers.
|
|
|
147e83 |
diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c
|
|
|
147e83 |
index 5ac515bc023e6783..401f00b7c01a6a14 100644
|
|
|
147e83 |
--- a/sysdeps/unix/sysv/linux/shmat.c
|
|
|
147e83 |
+++ b/sysdeps/unix/sysv/linux/shmat.c
|
|
|
147e83 |
@@ -38,15 +38,6 @@ shmat (shmid, shmaddr, shmflg)
|
|
|
147e83 |
unsigned long resultvar;
|
|
|
147e83 |
void *raddr;
|
|
|
147e83 |
|
|
|
147e83 |
-#if __BOUNDED_POINTERS__
|
|
|
147e83 |
- size_t length = ~0;
|
|
|
147e83 |
- struct shmid_ds shmds;
|
|
|
147e83 |
- /* It's unfortunate that we need to make another system call to get
|
|
|
147e83 |
- the shared memory segment length... */
|
|
|
147e83 |
- if (shmctl (shmid, IPC_STAT, &shmds) == 0)
|
|
|
147e83 |
- length = shmds.shm_segsz;
|
|
|
147e83 |
-#endif
|
|
|
147e83 |
-
|
|
|
147e83 |
resultvar = INTERNAL_SYSCALL (ipc, err, 5, IPCOP_shmat,
|
|
|
147e83 |
shmid, shmflg,
|
|
|
147e83 |
(long int) &raddr,
|
|
|
147e83 |
diff --git a/sysdeps/x86/bits/string.h b/sysdeps/x86/bits/string.h
|
|
|
147e83 |
index 14793029638ac613..bfa43cca72a92229 100644
|
|
|
147e83 |
--- a/sysdeps/x86/bits/string.h
|
|
|
147e83 |
+++ b/sysdeps/x86/bits/string.h
|
|
|
147e83 |
@@ -36,7 +36,7 @@
|
|
|
147e83 |
/* We only provide optimizations if the user selects them and if
|
|
|
147e83 |
GNU CC is used. */
|
|
|
147e83 |
# if !defined __NO_STRING_INLINES && defined __USE_STRING_INLINES \
|
|
|
147e83 |
- && defined __GNUC__ && __GNUC__ >= 2 && !__BOUNDED_POINTERS__
|
|
|
147e83 |
+ && defined __GNUC__ && __GNUC__ >= 2
|
|
|
147e83 |
|
|
|
147e83 |
# ifndef __STRING_INLINE
|
|
|
147e83 |
# ifndef __extern_inline
|