summaryrefslogtreecommitdiff
path: root/test/tls
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2009-12-16 08:48:08 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2009-12-16 08:48:08 +0100
commit5418c5ea2ab6a8e82421ebbf8060e52b5b1710a7 (patch)
treeffe44dcf7fb721cfa23ed6cdc799a9bd2b649941 /test/tls
parentfae10d41d1262170f272bb5e183becd44ff94f66 (diff)
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 <carmelo.amoroso@st.com>
Diffstat (limited to 'test/tls')
-rw-r--r--test/tls/tls-macros.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/tls/tls-macros.h b/test/tls/tls-macros.h
index cd31100cf..0eaca6574 100644
--- a/test/tls/tls-macros.h
+++ b/test/tls/tls-macros.h
@@ -37,7 +37,7 @@
: "=r" (__l)); \
__l; })
-# ifdef PIC
+# ifdef __PIC__
# define TLS_IE(x) \
({ int *__l; \
__asm__ ("movl %%gs:0,%0\n\t" \
@@ -59,7 +59,7 @@
__l; })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_LD(x) \
({ int *__l, __c, __d; \
__asm__ ("leal " #x "@tlsldm(%%ebx),%%eax\n\t" \
@@ -83,7 +83,7 @@
__l; })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_GD(x) \
({ int *__l, __c, __d; \
__asm__ ("leal " #x "@tlsgd(%%ebx),%%eax\n\t" \
@@ -157,7 +157,7 @@
: "=r" (__l), "=r" (__tp)); \
__l; })
-# ifdef PIC
+# ifdef __PIC__
# define TLS_IE(x) \
({ int *__l; void *__tp; \
register void *__gp __asm__("r12"); \
@@ -191,7 +191,7 @@
__l; })
#endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_LD(x) \
({ int *__l; \
register void *__gp __asm__("r12"); \
@@ -245,7 +245,7 @@
__l; })
#endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_GD(x) \
({ int *__l; \
register void *__gp __asm__("r12"); \
@@ -529,7 +529,7 @@ register void *__gp __asm__("$29");
: "=a" (__offset) : : "cc" ); \
(int *) (__builtin_thread_pointer() + __offset); })
-# ifdef PIC
+# ifdef __PIC__
# define TLS_IE(x) \
({ unsigned long __offset; \
__asm__ ("bras %0,1f\n" \
@@ -549,7 +549,7 @@ register void *__gp __asm__("$29");
(int *) (__builtin_thread_pointer() + __offset); })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_LD(x) \
({ unsigned long __offset, __save12; \
__asm__ ("bras %0,1f\n" \
@@ -581,7 +581,7 @@ register void *__gp __asm__("$29");
(int *) (__builtin_thread_pointer() + __offset); })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_GD(x) \
({ unsigned long __offset, __save12; \
__asm__ ("bras %0,1f\n" \
@@ -619,7 +619,7 @@ register void *__gp __asm__("$29");
: "=a" (__offset) : : "cc" ); \
(int *) (__builtin_thread_pointer() + __offset); })
-# ifdef PIC
+# ifdef __PIC__
# define TLS_IE(x) \
({ unsigned long __offset; \
__asm__ ("bras %0,1f\n" \
@@ -639,7 +639,7 @@ register void *__gp __asm__("$29");
(int *) (__builtin_thread_pointer() + __offset); })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_LD(x) \
({ unsigned long __offset, __save12; \
__asm__ ("bras %0,1f\n" \
@@ -677,7 +677,7 @@ register void *__gp __asm__("$29");
(int *) (__builtin_thread_pointer() + __offset); })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_GD(x) \
({ unsigned long __offset, __save12; \
__asm__ ("bras %0,1f\n" \