diff options
author | Roland McGrath <roland@gnu.org> | 2003-02-25 23:45:16 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-02-25 23:45:16 +0000 |
commit | 1d02f71fe4046c1cd17ff6b6687a89932797cb3b (patch) | |
tree | d73f941e908994fa60b5932d98510aaf5cb15c2f /linuxthreads/sysdeps/i386 | |
parent | fec417190420a427bec2340853f42051da251b65 (diff) | |
download | glibc-1d02f71fe4046c1cd17ff6b6687a89932797cb3b.tar.gz glibc-1d02f71fe4046c1cd17ff6b6687a89932797cb3b.tar.xz glibc-1d02f71fe4046c1cd17ff6b6687a89932797cb3b.zip |
linuxthreads/ChangeLog
2003-02-25 Roland McGrath <roland@redhat.com> * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs. * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
Diffstat (limited to 'linuxthreads/sysdeps/i386')
-rw-r--r-- | linuxthreads/sysdeps/i386/i686/pt-machine.h | 3 | ||||
-rw-r--r-- | linuxthreads/sysdeps/i386/pt-machine.h | 3 | ||||
-rw-r--r-- | linuxthreads/sysdeps/i386/tls.h | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/linuxthreads/sysdeps/i386/i686/pt-machine.h b/linuxthreads/sysdeps/i386/i686/pt-machine.h index 3c28118f2e..2368c29098 100644 --- a/linuxthreads/sysdeps/i386/i686/pt-machine.h +++ b/linuxthreads/sysdeps/i386/i686/pt-machine.h @@ -33,7 +33,8 @@ extern int __compare_and_swap (long int *p, long int oldval, long int newval); /* Get some notion of the current stack. Need not be exactly the top of the stack, just something somewhere in the current frame. */ -#define CURRENT_STACK_FRAME __builtin_frame_address (0) +#define CURRENT_STACK_FRAME __stack_pointer_register__ +register char *__stack_pointer_register__ __asm__ ("%esp"); /* Spinlock implementation; required. */ diff --git a/linuxthreads/sysdeps/i386/pt-machine.h b/linuxthreads/sysdeps/i386/pt-machine.h index 79c69b549a..465ab9f919 100644 --- a/linuxthreads/sysdeps/i386/pt-machine.h +++ b/linuxthreads/sysdeps/i386/pt-machine.h @@ -32,7 +32,8 @@ extern int __compare_and_swap (long int *p, long int oldval, long int newval); /* Get some notion of the current stack. Need not be exactly the top of the stack, just something somewhere in the current frame. */ -#define CURRENT_STACK_FRAME __builtin_frame_address (0) +#define CURRENT_STACK_FRAME __stack_pointer_register__ +register char *__stack_pointer_register__ __asm__ ("%esp"); /* Spinlock implementation; required. */ diff --git a/linuxthreads/sysdeps/i386/tls.h b/linuxthreads/sysdeps/i386/tls.h index 118c9c02d1..db68e1c21c 100644 --- a/linuxthreads/sysdeps/i386/tls.h +++ b/linuxthreads/sysdeps/i386/tls.h @@ -58,7 +58,7 @@ typedef struct We need USE_TLS to be consistently defined, for ldsodefs.h conditionals. But some of the code below can cause problems in building libpthread - (e.g. useldt.h will defined FLOATING_STACKS when it shouldn't). */ + (e.g. useldt.h will define FLOATING_STACKS when it shouldn't). */ #if defined HAVE_TLS_SUPPORT \ && (defined FLOATING_STACKS || !defined IS_IN_libpthread) |