diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-01-30 18:04:01 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-01-30 18:04:01 +0000 |
commit | 567678b68514f1673f5f856ca1f280addf38cb88 (patch) | |
tree | db0cd87c0c8fdd8117e707b0a58bc9005527fec2 /linuxthreads/sysdeps/s390 | |
parent | 5df8349b84a85dee067380ad4a5c3b90148a6504 (diff) | |
download | glibc-567678b68514f1673f5f856ca1f280addf38cb88.tar.gz glibc-567678b68514f1673f5f856ca1f280addf38cb88.tar.xz glibc-567678b68514f1673f5f856ca1f280addf38cb88.zip |
Update.
2003-01-30 Jakub Jelinek <jakub@redhat.com> * sysdeps/alpha/tls.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC): Avoid warnings about unused self variable. * sysdeps/ia64/pt-machine.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC): Likewise. * sysdeps/s390/s390-32/pt-machine.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC): Likewise. * sysdeps/s390/s390-64/pt-machine.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC): Likewise. * sysdeps/sh/pt-machine.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC): Likewise. * sysdeps/sparc/sparc32/pt-machine.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC): Likewise. * sysdeps/sparc/sparc64/pt-machine.h (THREAD_GETMEM, THREAD_GETMEM_NC, THREAD_SETMEM, THREAD_SETMEM_NC): Likewise.
Diffstat (limited to 'linuxthreads/sysdeps/s390')
-rw-r--r-- | linuxthreads/sysdeps/s390/s390-32/pt-machine.h | 10 | ||||
-rw-r--r-- | linuxthreads/sysdeps/s390/s390-64/pt-machine.h | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/linuxthreads/sysdeps/s390/s390-32/pt-machine.h b/linuxthreads/sysdeps/s390/s390-32/pt-machine.h index ee35320059..c3a8110084 100644 --- a/linuxthreads/sysdeps/s390/s390-32/pt-machine.h +++ b/linuxthreads/sysdeps/s390/s390-32/pt-machine.h @@ -80,10 +80,12 @@ register char * stack_pointer __asm__ ("15"); #endif /* Access to data in the thread descriptor is easy. */ -#define THREAD_GETMEM(descr, member) THREAD_SELF->member -#define THREAD_GETMEM_NC(descr, member) THREAD_SELF->member -#define THREAD_SETMEM(descr, member, value) THREAD_SELF->member = (value) -#define THREAD_SETMEM_NC(descr, member, value) THREAD_SELF->member = (value) +#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member) +#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member) +#define THREAD_SETMEM(descr, member, value) \ + (sizeof (descr), THREAD_SELF->member = (value)) +#define THREAD_SETMEM_NC(descr, member, value) \ + (sizeof (descr), THREAD_SELF->member = (value)) /* We want the OS to assign stack addresses. */ #define FLOATING_STACKS 1 diff --git a/linuxthreads/sysdeps/s390/s390-64/pt-machine.h b/linuxthreads/sysdeps/s390/s390-64/pt-machine.h index c0f30789c2..5cab958cfa 100644 --- a/linuxthreads/sysdeps/s390/s390-64/pt-machine.h +++ b/linuxthreads/sysdeps/s390/s390-64/pt-machine.h @@ -86,10 +86,12 @@ register char * stack_pointer __asm__ ("15"); #endif /* Access to data in the thread descriptor is easy. */ -#define THREAD_GETMEM(descr, member) THREAD_SELF->member -#define THREAD_GETMEM_NC(descr, member) THREAD_SELF->member -#define THREAD_SETMEM(descr, member, value) THREAD_SELF->member = (value) -#define THREAD_SETMEM_NC(descr, member, value) THREAD_SELF->member = (value) +#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member) +#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member) +#define THREAD_SETMEM(descr, member, value) \ + (sizeof (descr), THREAD_SELF->member = (value)) +#define THREAD_SETMEM_NC(descr, member, value) \ + (sizeof (descr), THREAD_SELF->member = (value)) /* We want the OS to assign stack addresses. */ #define FLOATING_STACKS 1 |