]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove miscellaneous bounded-pointers relics in C code.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 15 Feb 2013 00:51:53 +0000 (00:51 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 15 Feb 2013 00:51:53 +0000 (00:51 +0000)
ChangeLog
config.h.in
elf/dl-runtime.c
ports/ChangeLog.am33
ports/sysdeps/am33/dl-machine.h
string/bits/string2.h
sysdeps/i386/dl-machine.h
sysdeps/unix/sysv/linux/shmat.c
sysdeps/x86/bits/string.h

index d28d4179d71ef9f726d33ce6966c77e4f39bacd4..7013c09f649fe24dda31ea12d772317928aa6911 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #13550]
+       * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
+       Remove __BOUNDED_POINTERS__ from condition.
+       * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
+       * string/bits/string2.h [!__NO_STRING_INLINES &&
+       !__BOUNDED_POINTERS__]: Likewise.
+       * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
+       Likewise.
+       * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
+       Remove conditional code.
+       * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
+       __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
+       !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
+       condition.
+
        [BZ #13550]
        * csu/libc-start.c: Do not include <bp-sym.h>.
        [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
index f3fe6b88bef9aae06576c5cff17d7bb61e9531d7..8c2479ef483c24ae0f7df14478f2c414ad0bbd5d 100644 (file)
 
 /* Defined to some form of __attribute__ ((...)) if the compiler supports
    a different, more efficient calling convention.  */
-#if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
+#if defined USE_REGPARMS && !defined PROF
 # define internal_function __attribute__ ((regparm (3), stdcall))
 #endif
 
index 3ca02f51b9b0b14b6b249c810f28c8f1364921de..828474838c0d699e356fe5c7de006d68d1e5b576 100644 (file)
@@ -148,7 +148,7 @@ _dl_fixup (
   return elf_machine_fixup_plt (l, result, reloc, rel_addr, value);
 }
 
-#if !defined PROF && !__BOUNDED_POINTERS__
+#ifndef PROF
 DL_FIXUP_VALUE_TYPE
 __attribute ((noinline)) ARCH_FIXUP_ATTRIBUTE
 _dl_profile_fixup (
index 15138e336a3f0f6607e75be6267aff729a115584..2e5c0caac0ef6199dcf3ae259079a1705b69f2a7 100644 (file)
@@ -1,3 +1,9 @@
+2013-02-14  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #13550]
+       * sysdeps/am33/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
+       Remove __BOUNDED_POINTERS__ from condition.
+
 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #13550]
index f22fee875ef6f8c8f846c17c354238db659a0692..924319d0395e2a11ee0f21260e9ea43b80078691 100644 (file)
@@ -55,7 +55,7 @@ elf_machine_load_address (void)
   return off + gotaddr - gotval;
 }
 
-#if !defined PROF && !__BOUNDED_POINTERS__
+#ifndef PROF
 /* We add a declaration of this function here so that in dl-runtime.c
    the ELF_MACHINE_RUNTIME_TRAMPOLINE macro really can pass the parameters
    in registers.
@@ -114,7 +114,7 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
 
 /* This code is used in dl-runtime.c to call the `fixup' function
    and then redirect to the address it returns.  */
-#if !defined PROF && !__BOUNDED_POINTERS__
+#ifndef PROF
 # define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\
        .text\n\
        .globl _dl_runtime_resolve\n\
index 8b6a36fab52e9cefc0e860a134a566390f760ed8..94f5ee917f28051516fd61b869c45e3162756351 100644 (file)
@@ -21,7 +21,7 @@
 # error "Never use <bits/string2.h> directly; include <string.h> instead."
 #endif
 
-#if !defined __NO_STRING_INLINES && !defined __BOUNDED_POINTERS__
+#ifndef __NO_STRING_INLINES
 
 /* Unlike the definitions in the header <bits/string.h> the
    definitions contained here are not optimized down to assembler
index 1f2cb60163eb3a07e6b95de5773e744a8462606c..0b4c46736dd78eaf7e5122f5d6c5fc0484ed3068 100644 (file)
@@ -144,7 +144,7 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
 
 #ifdef IN_DL_RUNTIME
 
-# if !defined PROF && !__BOUNDED_POINTERS__
+# ifndef PROF
 /* We add a declaration of this function here so that in dl-runtime.c
    the ELF_MACHINE_RUNTIME_TRAMPOLINE macro really can pass the parameters
    in registers.
index 45f0dea65abb5c6423c65f3ad4cb010218cdf511..bac1b290acf1c6974c16e44ceb1b280ebd79516d 100644 (file)
@@ -38,15 +38,6 @@ shmat (shmid, shmaddr, shmflg)
   unsigned long resultvar;
   void *raddr;
 
-#if __BOUNDED_POINTERS__
-  size_t length = ~0;
-  struct shmid_ds shmds;
-  /* It's unfortunate that we need to make another system call to get
-     the shared memory segment length...  */
-  if (shmctl (shmid, IPC_STAT, &shmds) == 0)
-    length = shmds.shm_segsz;
-#endif
-
   resultvar = INTERNAL_SYSCALL (ipc, err, 5, IPCOP_shmat,
                                shmid, shmflg,
                                (long int) &raddr,
index 41d204199cf07ee24a29426f890af4269c9b57f9..24b64ec94d4b4e6e5627d536dc2f23d588bb22ab 100644 (file)
@@ -36,7 +36,7 @@
 /* We only provide optimizations if the user selects them and if
    GNU CC is used.  */
 # if !defined __NO_STRING_INLINES && defined __USE_STRING_INLINES \
-    && defined __GNUC__ && __GNUC__ >= 2 && !__BOUNDED_POINTERS__
+    && defined __GNUC__ && __GNUC__ >= 2
 
 # ifndef __STRING_INLINE
 #  ifndef __extern_inline