PATCH: Add x32 support to sysdeps/x86_64/dl-tlsdesc.h

Roland McGrath roland@hack.frob.com
Wed Mar 21 21:59:00 GMT 2012


>    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



More information about the Libc-alpha mailing list