This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]