diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-04-01 20:11:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-04-01 20:11:20 +0000 |
commit | fbb7fc7523d8db2f5299ea15890d126e62439d04 (patch) | |
tree | ed199114634167cde0b71cd3a03e87d5b81c7e83 | |
parent | 4b1a1328b188b5430e381545d098afa77064e708 (diff) | |
download | glibc-fbb7fc7523d8db2f5299ea15890d126e62439d04.zip glibc-fbb7fc7523d8db2f5299ea15890d126e62439d04.tar.gz glibc-fbb7fc7523d8db2f5299ea15890d126e62439d04.tar.bz2 |
Update.
* elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
register as input to asm.
2003-04-01 Jakub Jelinek <jakub@redhat.com>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | elf/tls-macros.h | 11 |
2 files changed, 12 insertions, 5 deletions
@@ -1,5 +1,10 @@ 2003-04-01 Jakub Jelinek <jakub@redhat.com> + * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp + register as input to asm. + +2003-04-01 Jakub Jelinek <jakub@redhat.com> + * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo. 2003-04-01 Andreas Jaeger <aj@suse.de> @@ -10,7 +15,6 @@ * configure.in: Don't require an installed C library in the test for ".set" assembler support. - * configure: Regenerated. 2003-03-31 Roland McGrath <roland@redhat.com> diff --git a/elf/tls-macros.h b/elf/tls-macros.h index 4d29369..bb243d8 100644 --- a/elf/tls-macros.h +++ b/elf/tls-macros.h @@ -316,13 +316,14 @@ register void *__gp __asm__("$29"); # define TLS_IE(x) \ ({ void *__l; \ + register long __gp asm ("gp"); \ asm (";;\n\t" \ "addl r16=@ltoff(@tprel(" #x ")),gp\n\t" \ ";;\n\t" \ "ld8 r17=[r16]\n\t" \ ";;\n\t" \ "add %0=r13,r17\n\t" \ - : "=r" (__l) : : "r16", "r17" ); __l; }) + : "=r" (__l) : "r" (__gp) : "r16", "r17" ); __l; }) # define __TLS_CALL_CLOBBERS \ "r2", "r3", "r8", "r9", "r10", "r11", "r14", "r15", "r16", "r17", \ @@ -335,6 +336,7 @@ register void *__gp __asm__("$29"); # define TLS_LD(x) \ ({ void *__l; \ + register long __gp asm ("gp"); \ asm (";;\n\t" \ "mov loc0=gp\n\t" \ "addl r16=@ltoff(@dtpmod(" #x ")),gp\n\t" \ @@ -345,11 +347,12 @@ register void *__gp __asm__("$29"); ";;\n\t" \ "mov gp=loc0\n\t" \ "mov %0=r8\n\t" \ - : "=r" (__l) : : "loc0", __TLS_CALL_CLOBBERS); \ + : "=r" (__l) : "r" (__gp) : "loc0", __TLS_CALL_CLOBBERS); \ __l; }) # define TLS_GD(x) \ ({ void *__l; \ + register long __gp asm ("gp"); \ asm (";;\n\t" \ "mov loc0=gp\n\t" \ "addl r16=@ltoff(@dtpmod(" #x ")),gp\n\t" \ @@ -361,7 +364,7 @@ register void *__gp __asm__("$29"); ";;\n\t" \ "mov gp=loc0\n\t" \ "mov %0=r8\n\t" \ - : "=r" (__l) : : "loc0", __TLS_CALL_CLOBBERS); \ + : "=r" (__l) : "r" (__gp) : "loc0", __TLS_CALL_CLOBBERS); \ __l; }) #elif defined __sparc__ && !defined __arch64__ @@ -373,7 +376,7 @@ register void *__gp __asm__("$29"); asm ("add %%g7, %1, %0" : "=r" (__l) : "r" (__l)); \ __l; }) -# ifdef __PIC__ +# ifdef __PIC__ # define TLS_LOAD_PIC \ ({ register long pc __asm__ ("%o7"); \ long got; \ |