This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Add x32 to x86_64/bits/sigcontext.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, 16 May 2012 12:44:01 -0700 (PDT)
- Subject: Re: PATCH: Add x32 to x86_64/bits/sigcontext.h
- References: <20120516190325.GA30739@intel.com>
> (sigcontext): Use "__uint64_t" instead of "unsigned long int"
(struct sigcontext):
> struct _fpstate * fpstate;
> - unsigned long __reserved1 [8];
> +# ifdef __ILP32__
> + unsigned int pad0;
> +# endif
> + __uint64_t __reserved1 [8];
How about this instead:
union
{
struct _fpstate *fpstate;
__uint64_t __fpstate_word;
};