PATCH: Add x32 to x86_64/bits/sigcontext.h

H.J. Lu hjl.tools@gmail.com
Wed May 16 19:46:00 GMT 2012


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.



More information about the Libc-alpha mailing list