mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Avoid warnings about unused self variable.
This commit is contained in:
parent
d6f5e7216f
commit
ec67a380c2
@ -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__ */
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user