This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] x32 and syscall consolidation
On 20/07/2016 14:06, Joseph Myers wrote:
> On Tue, 12 Jul 2016, Adhemerval Zanella wrote:
>
>> However I would also like to enable {INTERNAL,INLINE}_SYSCALL
>> to work correctly with 64-bits arguments on x32 and potentially
>> on any ILP32 ports. The C binding macros currently throw warnings
>> if one try to cast a ILP32 pointer to 64 bit register argument,
>> so I am not really sure how to cleanup this kind of code.
>
> Well, we have sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h first
> casting to (__typeof__ ((X) - (X))). There may be other approaches as
> well (depending on whether you want sign or zero extension of pointers).
>
Thanks for the points, it seems a good alternative. I will resume the
work on this for 2.25.