Avoid warnings about unused self variable.

This commit is contained in:
Ulrich Drepper 2003-01-30 21:03:40 +00:00
parent d6f5e7216f
commit ec67a380c2
7 changed files with 42 additions and 28 deletions

View File

@ -114,12 +114,14 @@ typedef struct
the compiler does its job and unifies the multiple
__builtin_thread_pointer instances. */
#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_SETMEM(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
#define THREAD_SETMEM_NC(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
# endif /* HAVE_TLS_SUPPORT */
#endif /* __ASSEMBLER__ */

View File

@ -64,12 +64,14 @@ register struct _pthread_descr_struct *__thread_self __asm__("r13");
/* Access to data in the thread descriptor is easy. */
#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_SETMEM(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
#define THREAD_SETMEM_NC(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
/* Memory barrier */

View File

@ -80,12 +80,14 @@ register char * stack_pointer __asm__ ("15");
#endif
/* Access to data in the thread descriptor is easy. */
#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_SETMEM(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
#define THREAD_SETMEM_NC(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
/* We want the OS to assign stack addresses. */
#define FLOATING_STACKS 1

View File

@ -86,12 +86,14 @@ register char * stack_pointer __asm__ ("15");
#endif
/* Access to data in the thread descriptor is easy. */
#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_SETMEM(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
#define THREAD_SETMEM_NC(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
/* We want the OS to assign stack addresses. */
#define FLOATING_STACKS 1

View File

@ -68,12 +68,14 @@ struct _pthread_descr_struct;
({ __asm__ __volatile__("ldc %0,gbr" : : "r" (descr));})
/* Access to data in the thread descriptor is easy. */
#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_SETMEM(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
#define THREAD_SETMEM_NC(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
#endif /* __ASSEMBLER__ */
#endif /* pt-machine.h */

View File

@ -65,12 +65,14 @@ register struct _pthread_descr_struct *__thread_self __asm__("%g7");
#define INIT_THREAD_SELF(descr, nr) (__thread_self = (descr))
/* Access to data in the thread descriptor is easy. */
#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_SETMEM(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
#define THREAD_SETMEM_NC(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
/* We want the OS to assign stack addresses. */
#define FLOATING_STACKS 1

View File

@ -87,12 +87,14 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
}
/* Access to data in the thread descriptor is easy. */
#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_GETMEM_NC(descr, member) \
((void) sizeof (descr), THREAD_SELF->member)
#define THREAD_SETMEM(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
#define THREAD_SETMEM_NC(descr, member, value) \
(sizeof (descr), THREAD_SELF->member = (value))
((void) sizeof (descr), THREAD_SELF->member = (value))
/* We want the OS to assign stack addresses. */
#define FLOATING_STACKS 1