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
On Wed, May 16, 2012 at 12:44 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> ? ? ? (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;
> ? ?};
This is a public header file. Do all compilers support this?
--
H.J.