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

Roland McGrath roland@hack.frob.com
Wed May 16 19:44:00 GMT 2012


> 	(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;
    };



More information about the Libc-alpha mailing list