00db10
commit eb72478a286e0104f5636d21d86407b4c0e89fa1
00db10
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
00db10
Date:   Thu Aug 21 10:26:46 2014 +0530
00db10
00db10
    Remove unnecessary uses of NOT_IN_libc
00db10
    
00db10
    If a IS_IN_* macro is defined, then NOT_IN_libc is always defined,
00db10
    except obviously for IS_IN_libc.  There's no need to check for both.
00db10
    Verified on x86_64 and i686 that the source is unchanged.
00db10
    
00db10
           * include/libc-symbols.h: Remove unnecessary check for
00db10
           NOT_IN_libc.
00db10
           * nptl/pthreadP.h: Likewise.
00db10
           * sysdeps/aarch64/setjmp.S: Likewise.
00db10
           * sysdeps/alpha/setjmp.S: Likewise.
00db10
           * sysdeps/arm/sysdep.h: Likewise.
00db10
           * sysdeps/i386/setjmp.S: Likewise.
00db10
           * sysdeps/m68k/setjmp.c: Likewise.
00db10
           * sysdeps/posix/getcwd.c: Likewise.
00db10
           * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
00db10
           * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
00db10
           * sysdeps/s390/s390-32/setjmp.S: Likewise.
00db10
           * sysdeps/s390/s390-64/setjmp.S: Likewise.
00db10
           * sysdeps/sh/sh3/setjmp.S: Likewise.
00db10
           * sysdeps/sh/sh4/setjmp.S: Likewise.
00db10
           * sysdeps/unix/alpha/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
00db10
           * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
00db10
           * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
00db10
           * sysdeps/x86_64/setjmp.S: Likewise.
00db10
Index: glibc-2.17-c758a686/include/libc-symbols.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/include/libc-symbols.h
00db10
+++ glibc-2.17-c758a686/include/libc-symbols.h
00db10
@@ -561,7 +561,7 @@ for linking")
00db10
 # define libc_hidden_data_ver(local, name)
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 # define rtld_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
00db10
 # define rtld_hidden_def(name) hidden_def (name)
00db10
 # define rtld_hidden_weak(name) hidden_weak (name)
00db10
@@ -579,7 +579,7 @@ for linking")
00db10
 # define rtld_hidden_data_ver(local, name)
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_libm
00db10
+#ifdef IS_IN_libm
00db10
 # define libm_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
00db10
 # define libm_hidden_def(name) hidden_def (name)
00db10
 # define libm_hidden_weak(name) hidden_weak (name)
00db10
@@ -597,7 +597,7 @@ for linking")
00db10
 # define libm_hidden_data_ver(local, name)
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_libresolv
00db10
+#ifdef IS_IN_libresolv
00db10
 # define libresolv_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
00db10
 # define libresolv_hidden_def(name) hidden_def (name)
00db10
 # define libresolv_hidden_weak(name) hidden_weak (name)
00db10
@@ -615,7 +615,7 @@ for linking")
00db10
 # define libresolv_hidden_data_ver(local, name)
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_librt
00db10
+#ifdef IS_IN_librt
00db10
 # define librt_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
00db10
 # define librt_hidden_def(name) hidden_def (name)
00db10
 # define librt_hidden_weak(name) hidden_weak (name)
00db10
@@ -633,7 +633,7 @@ for linking")
00db10
 # define librt_hidden_data_ver(local, name)
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_libdl
00db10
+#ifdef IS_IN_libdl
00db10
 # define libdl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
00db10
 # define libdl_hidden_def(name) hidden_def (name)
00db10
 # define libdl_hidden_weak(name) hidden_weak (name)
00db10
@@ -651,7 +651,7 @@ for linking")
00db10
 # define libdl_hidden_data_ver(local, name)
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_libnss_files
00db10
+#ifdef IS_IN_libnss_files
00db10
 # define libnss_files_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
00db10
 # define libnss_files_hidden_def(name) hidden_def (name)
00db10
 # define libnss_files_hidden_weak(name) hidden_weak (name)
00db10
@@ -669,7 +669,7 @@ for linking")
00db10
 # define libnss_files_hidden_data_ver(local, name)
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_libnsl
00db10
+#ifdef IS_IN_libnsl
00db10
 # define libnsl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
00db10
 # define libnsl_hidden_def(name) hidden_def (name)
00db10
 # define libnsl_hidden_weak(name) hidden_weak (name)
00db10
@@ -687,7 +687,7 @@ for linking")
00db10
 # define libnsl_hidden_data_ver(local, name)
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_libnss_nisplus
00db10
+#ifdef IS_IN_libnss_nisplus
00db10
 # define libnss_nisplus_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
00db10
 # define libnss_nisplus_hidden_def(name) hidden_def (name)
00db10
 # define libnss_nisplus_hidden_weak(name) hidden_weak (name)
00db10
@@ -713,7 +713,7 @@ for linking")
00db10
 # define HIDDEN_BUILTIN_JUMPTARGET(name) HIDDEN_JUMPTARGET(name)
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_libutil
00db10
+#ifdef IS_IN_libutil
00db10
 # define libutil_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
00db10
 # define libutil_hidden_def(name) hidden_def (name)
00db10
 # define libutil_hidden_weak(name) hidden_weak (name)
00db10
Index: glibc-2.17-c758a686/nptl/pthreadP.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/nptl/pthreadP.h
00db10
+++ glibc-2.17-c758a686/nptl/pthreadP.h
00db10
@@ -239,7 +239,7 @@ extern void __pthread_register_cancel (_
00db10
      __cleanup_fct_attribute;
00db10
 extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
00db10
      __cleanup_fct_attribute;
00db10
-#if defined NOT_IN_libc && defined IS_IN_libpthread
00db10
+#ifdef IS_IN_libpthread
00db10
 hidden_proto (__pthread_unwind)
00db10
 hidden_proto (__pthread_unwind_next)
00db10
 hidden_proto (__pthread_register_cancel)
00db10
@@ -283,13 +283,13 @@ __do_cancel (void)
00db10
 # define LIBC_CANCEL_HANDLED() \
00db10
   __asm (".globl " __SYMBOL_PREFIX "__libc_enable_asynccancel"); \
00db10
   __asm (".globl " __SYMBOL_PREFIX "__libc_disable_asynccancel")
00db10
-#elif defined NOT_IN_libc && defined IS_IN_libpthread
00db10
+#elif defined IS_IN_libpthread
00db10
 # define LIBC_CANCEL_ASYNC() CANCEL_ASYNC ()
00db10
 # define LIBC_CANCEL_RESET(val) CANCEL_RESET (val)
00db10
 # define LIBC_CANCEL_HANDLED() \
00db10
   __asm (".globl " __SYMBOL_PREFIX "__pthread_enable_asynccancel"); \
00db10
   __asm (".globl " __SYMBOL_PREFIX "__pthread_disable_asynccancel")
00db10
-#elif defined NOT_IN_libc && defined IS_IN_librt
00db10
+#elif defined IS_IN_librt
00db10
 # define LIBC_CANCEL_ASYNC() \
00db10
   __librt_enable_asynccancel ()
00db10
 # define LIBC_CANCEL_RESET(val) \
00db10
@@ -344,7 +344,7 @@ extern int __make_stacks_executable (voi
00db10
 
00db10
 /* longjmp handling.  */
00db10
 extern void __pthread_cleanup_upto (__jmp_buf target, char *targetframe);
00db10
-#if defined NOT_IN_libc && defined IS_IN_libpthread
00db10
+#ifdef IS_IN_libpthread
00db10
 hidden_proto (__pthread_cleanup_upto)
00db10
 #endif
00db10
 
00db10
@@ -489,7 +489,7 @@ extern int __pthread_enable_asynccancel
00db10
 extern void __pthread_disable_asynccancel (int oldtype)
00db10
      internal_function attribute_hidden;
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_libpthread
00db10
+#ifdef IS_IN_libpthread
00db10
 hidden_proto (__pthread_mutex_init)
00db10
 hidden_proto (__pthread_mutex_destroy)
00db10
 hidden_proto (__pthread_mutex_lock)
00db10
Index: glibc-2.17-c758a686/sysdeps/posix/getcwd.c
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/posix/getcwd.c
00db10
+++ glibc-2.17-c758a686/sysdeps/posix/getcwd.c
00db10
@@ -206,7 +206,7 @@ extern char *alloca ();
00db10
 
00db10
 #ifdef __ASSUME_ATFCTS
00db10
 # define __have_atfcts 1
00db10
-#elif defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#elif defined IS_IN_rtld
00db10
 static int __rtld_have_atfcts;
00db10
 # define __have_atfcts __rtld_have_atfcts
00db10
 #endif
00db10
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/setjmp-common.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc64/setjmp-common.S
00db10
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/setjmp-common.S
00db10
@@ -212,7 +212,7 @@ L(no_vmx):
00db10
 #else
00db10
 	li	r6,0
00db10
 #endif
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	li	r3,0
00db10
 	blr
00db10
 #elif defined SHARED
00db10
Index: glibc-2.17-c758a686/sysdeps/s390/s390-32/setjmp.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/s390/s390-32/setjmp.S
00db10
+++ glibc-2.17-c758a686/sysdeps/s390/s390-32/setjmp.S
00db10
@@ -57,7 +57,7 @@ ENTRY(__sigsetjmp)
00db10
 #endif
00db10
 	std    %f4,40(%r2)
00db10
 	std    %f6,48(%r2)
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	/* In ld.so we never save the signal mask.  */
00db10
 	lhi    %r2,0
00db10
 	br     %r14
00db10
Index: glibc-2.17-c758a686/sysdeps/s390/s390-64/setjmp.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/s390/s390-64/setjmp.S
00db10
+++ glibc-2.17-c758a686/sysdeps/s390/s390-64/setjmp.S
00db10
@@ -63,7 +63,7 @@ ENTRY(__sigsetjmp)
00db10
 	std    %f13,120(%r2)
00db10
 	std    %f14,128(%r2)
00db10
 	std    %f15,136(%r2)
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	/* In ld.so we never save the signal mask.  */
00db10
 	lghi   %r2,0
00db10
 	br     %r14
00db10
Index: glibc-2.17-c758a686/sysdeps/sh/sh3/setjmp.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/sh/sh3/setjmp.S
00db10
+++ glibc-2.17-c758a686/sysdeps/sh/sh3/setjmp.S
00db10
@@ -46,7 +46,7 @@ ENTRY (__sigsetjmp)
00db10
 	mov.l	r9, @-r4
00db10
 	mov.l	r8, @-r4
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	/* In ld.so we never save the signal mask.  */
00db10
 	rts
00db10
 	 mov	#0, r0
00db10
Index: glibc-2.17-c758a686/sysdeps/sh/sh4/setjmp.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/sh/sh4/setjmp.S
00db10
+++ glibc-2.17-c758a686/sysdeps/sh/sh4/setjmp.S
00db10
@@ -55,7 +55,7 @@ ENTRY (__sigsetjmp)
00db10
 	mov.l	r9, @-r4
00db10
 	mov.l	r8, @-r4
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	/* In ld.so we never save the signal mask.  */
00db10
 	rts
00db10
 	 mov	#0, r0
00db10
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/i386/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/i386/sysdep.h
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/i386/sysdep.h
00db10
@@ -521,7 +521,7 @@ asm (".L__X'%ebx = 1\n\t"
00db10
 
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  Using a global variable
00db10
    is too complicated here since we have no PC-relative addressing mode.  */
00db10
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
00db10
@@ -272,7 +272,7 @@
00db10
 
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  */
00db10
 #else
00db10
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
00db10
@@ -282,7 +282,7 @@
00db10
 
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  */
00db10
 #else
00db10
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
00db10
@@ -367,7 +367,7 @@
00db10
     _ret; })
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  */
00db10
 #else
00db10
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
00db10
@@ -373,7 +373,7 @@
00db10
     _ret; })
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  */
00db10
 #else
00db10
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sh/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/sh/sysdep.h
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sh/sysdep.h
00db10
@@ -338,7 +338,7 @@
00db10
 #endif	/* __ASSEMBLER__ */
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  Using a global variable
00db10
    is too complicated here since we have no PC-relative addressing mode.  */
00db10
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
00db10
@@ -126,7 +126,7 @@ ENTRY(name);					\
00db10
 #endif	/* __ASSEMBLER__ */
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  */
00db10
 #else
00db10
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
00db10
@@ -141,7 +141,7 @@ ENTRY(name);					\
00db10
 #define STACK_BIAS	2047
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  */
00db10
 #else
00db10
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/x86_64/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/x86_64/sysdep.h
00db10
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/x86_64/sysdep.h
00db10
@@ -395,7 +395,7 @@
00db10
 
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  */
00db10
 # ifdef __ASSEMBLER__
00db10
Index: glibc-2.17-c758a686/sysdeps/x86_64/setjmp.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/x86_64/setjmp.S
00db10
+++ glibc-2.17-c758a686/sysdeps/x86_64/setjmp.S
00db10
@@ -54,7 +54,7 @@ ENTRY (__sigsetjmp)
00db10
 #endif
00db10
 	movq %rax, (JB_PC*8)(%rdi)
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	/* In ld.so we never save the signal mask.  */
00db10
 	xorl %eax, %eax
00db10
 	retq
00db10
Index: glibc-2.17-c758a686/ports/sysdeps/aarch64/setjmp.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/ports/sysdeps/aarch64/setjmp.S
00db10
+++ glibc-2.17-c758a686/ports/sysdeps/aarch64/setjmp.S
00db10
@@ -58,7 +58,7 @@ ENTRY (__sigsetjmp)
00db10
 	mov	x2,  sp
00db10
 	str	x2,  [x0, #JB_SP<<3]
00db10
 #endif
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	/* In ld.so we never save the signal mask */
00db10
 	mov	w0, #0
00db10
 	RET
00db10
Index: glibc-2.17-c758a686/ports/sysdeps/alpha/setjmp.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/ports/sysdeps/alpha/setjmp.S
00db10
+++ glibc-2.17-c758a686/ports/sysdeps/alpha/setjmp.S
00db10
@@ -86,7 +86,7 @@ $sigsetjmp_local:
00db10
 	ldq	ra, 0(sp)
00db10
 	addq	sp, 16, sp
00db10
 	ret
00db10
-#elif defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#elif defined IS_IN_rtld
00db10
 	/* In ld.so we never save the signal mask.  */
00db10
 	mov	0, v0
00db10
 	ret
00db10
Index: glibc-2.17-c758a686/ports/sysdeps/m68k/setjmp.c
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/ports/sysdeps/m68k/setjmp.c
00db10
+++ glibc-2.17-c758a686/ports/sysdeps/m68k/setjmp.c
00db10
@@ -57,7 +57,7 @@ __sigsetjmp (jmp_buf env, int savemask)
00db10
 		: : "m" (env[0].__jmpbuf[0].__fpregs[0]));
00db10
 #endif
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
   /* In ld.so we never save the signal mask.  */
00db10
   return 0;
00db10
 #else
00db10
Index: glibc-2.17-c758a686/ports/sysdeps/unix/alpha/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/alpha/sysdep.h
00db10
+++ glibc-2.17-c758a686/ports/sysdeps/unix/alpha/sysdep.h
00db10
@@ -346,7 +346,7 @@ __LABEL(name)						\
00db10
 
00db10
 #include <stdint.h>
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 # ifdef __ASSEMBLER__
00db10
 #  define PTR_MANGLE(dst, src, tmp)				\
00db10
 	ldah	tmp, __pointer_chk_guard_local($29) !gprelhigh;	\
00db10
Index: glibc-2.17-c758a686/sysdeps/i386/setjmp.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/i386/setjmp.S
00db10
+++ glibc-2.17-c758a686/sysdeps/i386/setjmp.S
00db10
@@ -51,7 +51,7 @@ ENTRY (BP_SYM (__sigsetjmp))
00db10
 	LEAVE /* pop frame pointer to prepare for tail-call.  */
00db10
 	movl %ebp, (JB_BP*4)(%eax) /* Save caller's frame pointer.  */
00db10
 
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	/* In ld.so we never save the signal mask.  */
00db10
 	xorl %eax, %eax
00db10
 	ret
00db10
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/setjmp-common.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc32/setjmp-common.S
00db10
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/setjmp-common.S
00db10
@@ -64,7 +64,7 @@ ENTRY (BP_SYM (__sigsetjmp))
00db10
 	stw  r29,((JB_GPRS+15)*4)(3)
00db10
 	stw  r30,((JB_GPRS+16)*4)(3)
00db10
 	stw  r31,((JB_GPRS+17)*4)(3)
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	li   r3,0
00db10
 	blr
00db10
 #else
00db10
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
00db10
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
00db10
@@ -324,8 +324,9 @@
00db10
 #endif	/* __ASSEMBLER__ */
00db10
 
00db10
 /* Pointer mangling is supported for AArch64.  */
00db10
-#if (defined NOT_IN_libc && defined IS_IN_rtld) || \
00db10
-  (!defined SHARED && (!defined NOT_IN_libc || defined IS_IN_libpthread))
00db10
+#if (defined IS_IN_rtld) || \
00db10
+     (!defined SHARED && (!defined NOT_IN_libc \
00db10
+			  || defined IS_IN_libpthread))
00db10
 # ifdef __ASSEMBLER__
00db10
 #  define PTR_MANGLE(dst, src, guard, tmp)                                \
00db10
   LDST_PCREL (ldr, guard, tmp, C_SYMBOL_NAME(__pointer_chk_guard_local)); \
00db10
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/setjmp.S
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/setjmp.S
00db10
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/setjmp.S
00db10
@@ -179,7 +179,7 @@ ENTRY(__sigsetjmp)
00db10
 	;;
00db10
 	st8.nta [r2]=r25		// ar.unat
00db10
 	st8.nta [r3]=in0		// &__jmp_buf
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 	/* In ld.so we never save the signal mask.  */
00db10
 	;;
00db10
 #else
00db10
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
00db10
===================================================================
00db10
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
00db10
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
00db10
@@ -62,7 +62,7 @@
00db10
 
00db10
 #if defined USE_DL_SYSINFO \
00db10
 	&& (!defined NOT_IN_libc \
00db10
-	    || defined IS_IN_libpthread || defined IS_IN_librt)
00db10
+	    || IS_IN (libpthread) || defined IS_IN_librt)
00db10
 # define IA64_USE_NEW_STUB
00db10
 #else
00db10
 # undef IA64_USE_NEW_STUB
00db10
@@ -361,7 +361,7 @@
00db10
 #endif /* not __ASSEMBLER__ */
00db10
 
00db10
 /* Pointer mangling support.  */
00db10
-#if defined NOT_IN_libc && defined IS_IN_rtld
00db10
+#ifdef IS_IN_rtld
00db10
 /* We cannot use the thread descriptor because in ld.so we use setjmp
00db10
    earlier than the descriptor is initialized.  */
00db10
 #else