From 5418c5ea2ab6a8e82421ebbf8060e52b5b1710a7 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Wed, 16 Dec 2009 08:48:08 +0100 Subject: build: Get rids of PIC macro using compiler flag __PIC__ instead Based on Peter Mazinger's comments on a recent commit, I decided to get rids of all occurrences of PIC changing them to __PIC__ Signed-off-by: Carmelo Amoroso --- libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S | 4 ++-- libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S | 2 +- libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S | 4 ++-- libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S | 2 +- libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h | 2 +- libpthread/nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S | 6 +++--- libpthread/nptl/sysdeps/unix/sysv/linux/i386/sysdep.h | 6 +++--- 7 files changed, 13 insertions(+), 13 deletions(-) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/i386') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S index de057c8b0..a0dc39c8f 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S @@ -56,7 +56,7 @@ __new_sem_post: ret 1: -#ifdef PIC +#ifdef __PIC__ call __x86.get_pc_thunk.bx #else movl $4f, %ebx @@ -84,7 +84,7 @@ __new_sem_post: weak_alias(__new_sem_post, sem_post) -#ifdef PIC +#ifdef __PIC__ .section .gnu.linkonce.t.__x86.get_pc_thunk.bx,"ax",@progbits .globl __x86.get_pc_thunk.bx .hidden __x86.get_pc_thunk.bx diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S index 278b42ab3..972b49fac 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S @@ -148,7 +148,7 @@ sem_timedwait: cfi_offset(3, -16) /* %ebx */ 3: negl %esi 6: -#ifdef PIC +#ifdef __PIC__ call __x86.get_pc_thunk.bx #else movl $4f, %ebx diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S index 16c41b748..7db64820f 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S @@ -47,7 +47,7 @@ __new_sem_trywait: ret 1: -#ifdef PIC +#ifdef __PIC__ call __x86.get_pc_thunk.cx #else movl $3f, %ecx @@ -73,7 +73,7 @@ __new_sem_trywait: weak_alias(__new_sem_trywait, sem_trywait) -#ifdef PIC +#ifdef __PIC__ .section .gnu.linkonce.t.__x86.get_pc_thunk.cx,"ax",@progbits .globl __x86.get_pc_thunk.cx .hidden __x86.get_pc_thunk.cx diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S index 053630617..c3e6cbce6 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S @@ -94,7 +94,7 @@ __new_sem_wait: cmpl $-EWOULDBLOCK, %esi je 3b negl %esi -#ifdef PIC +#ifdef __PIC__ call __x86.get_pc_thunk.bx #else movl $4f, %ebx diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h index 1033ebc2d..97f3b09e2 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h @@ -52,7 +52,7 @@ typedef int lll_lock_t; #define LLL_MUTEX_LOCK_INITIALIZER_WAITERS (2) -#ifdef PIC +#ifdef __PIC__ # define LLL_EBX_LOAD "xchgl %2, %%ebx\n" # define LLL_EBX_REG "D" #else diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S index afdb1c5f9..5ab2c5856 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S @@ -56,7 +56,7 @@ __pthread_once: /* Not yet initialized or initialization in progress. Get the fork generation counter now. */ 6: movl (%ebx), %eax -#ifdef PIC +#ifdef __PIC__ call __x86.get_pc_thunk.cx addl $_GLOBAL_OFFSET_TABLE_, %ecx #endif @@ -67,7 +67,7 @@ __pthread_once: jnz 4f andl $3, %edx -#ifdef PIC +#ifdef __PIC__ orl __fork_generation@GOTOFF(%ecx), %edx #else orl __fork_generation, %edx @@ -169,7 +169,7 @@ __pthread_once_internal = __pthread_once pthread_once = __pthread_once -#ifdef PIC +#ifdef __PIC__ .section .gnu.linkonce.t.__x86.get_pc_thunk.cx,"ax",@progbits .globl __x86.get_pc_thunk.cx .hidden __x86.get_pc_thunk.cx diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/sysdep.h b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/sysdep.h index f9343cc93..674d5c699 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/sysdep.h +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/sysdep.h @@ -57,7 +57,7 @@ /* We don't want the label for the error handle to be global when we define it here. */ -#ifdef PIC +#ifdef __PIC__ # define SYSCALL_ERROR_LABEL 0f #else # define SYSCALL_ERROR_LABEL syscall_error @@ -103,7 +103,7 @@ #define ret_ERRVAL ret -#ifndef PIC +#ifndef __PIC__ # define SYSCALL_ERROR_HANDLER /* Nothing here; code in sysdep.S is used. */ #else @@ -177,7 +177,7 @@ orl $-1, %eax; \ jmp L(pseudo_end); # endif /* _LIBC_REENTRANT */ -#endif /* PIC */ +#endif /* __PIC__ */ /* The original calling convention for system calls on Linux/i386 is -- cgit v1.2.3