This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] x32 and syscall consolidation
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 20 Jul 2016 17:06:10 +0000
- Subject: Re: [RFC] x32 and syscall consolidation
- Authentication-results: sourceware.org; auth=none
- References: <5784BAB3.5020406@linaro.org>
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).
--
Joseph S. Myers
joseph@codesourcery.com