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 support to sysdeps/x86_64/dl-tlsdesc.h


>    ptrdiff_t (*entry)(struct tlsdesc *on_rax);
> +#ifndef __LP64__
> +  int pad1;
> +#endif
>    void *arg;
> +#ifndef __LP64__
> +  int pad2;
> +#endif

I wonder if it might not be cleaner to use:

    union
    {
      ptrdiff_t (*entry) (struct tlsdesc *on_rax);
      uint64_t entry_slot;
    };
    union
    {
      void *arg;
      uint64_t arg_slot;
    };


Thanks,
Roland


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