From: Andreas Jaeger Date: Sun, 11 Apr 2004 06:13:09 +0000 (+0000) Subject: * sysdeps/x86_64/pt-machine.h: Add used attribute to stack_pointer X-Git-Tag: upstream/2.30~18015 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21496a85f9785431c8dac055a1102e6c339146a2;p=external%2Fglibc.git * sysdeps/x86_64/pt-machine.h: Add used attribute to stack_pointer to avoid warnings with GCC 3.5. 2004-04-10 Andreas Jaeger * sysdeps/x86_64/pt-machine.h: Add used attribute to stack_pointer to avoid warnings with GCC 3.5. --- diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index c6060a5..cbdfc73 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +2004-04-10 Andreas Jaeger + + * sysdeps/x86_64/pt-machine.h: Add used attribute to stack_pointer + to avoid warnings with GCC 3.5. + 2004-04-09 Steven Munroe * sysdeps/powerpc/tls.h (TLS_INIT_TP): Eliminate lvalue cast from diff --git a/linuxthreads/sysdeps/x86_64/pt-machine.h b/linuxthreads/sysdeps/x86_64/pt-machine.h index 68baac7..df187a7 100644 --- a/linuxthreads/sysdeps/x86_64/pt-machine.h +++ b/linuxthreads/sysdeps/x86_64/pt-machine.h @@ -37,7 +37,7 @@ 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 stack_pointer -register char * stack_pointer __asm__ ("%rsp"); +register char * stack_pointer __asm__ ("%rsp") __attribute_used__; /* Spinlock implementation; required. */