This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Add x32 support to sysdeps/x86_64/dl-tlsdesc.h
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 21 Mar 2012 14:58:56 -0700 (PDT)
- Subject: Re: PATCH: Add x32 support to sysdeps/x86_64/dl-tlsdesc.h
- References: <20120320003915.GA21818@intel.com>
> ptrdiff_t (*entry)(struct tlsdesc *on_rax);
> +#ifndef __LP64__
> + int pad1;
> +#endif
> void *arg;
> +#ifndef __LP64__
> + int pad2;
> +#endif
I wonder if it might not be cleaner to use:
union
{
ptrdiff_t (*entry) (struct tlsdesc *on_rax);
uint64_t entry_slot;
};
union
{
void *arg;
uint64_t arg_slot;
};
Thanks,
Roland