On Thu, Jul 28, 2011 at 12:45 PM, Jakub Jelinek <ja...@redhat.com> wrote: > On Thu, Jul 28, 2011 at 12:32:26PM -0700, H.J. Lu wrote: >> This patch fixes 2 issues in libgomp for x32: >> >> 1. x32 should use the same futex functions as x86-64. > > What kind of syscalls is -mx32 using on Linux? I thought it was using the > -m32 compat layer, isn't that the case? If it works properly this way using > a 64-bit syscall, including any needed sign/zero extensions of the arguments, > fine.
x32 uses syscall instruction for system call with long == 32bit. For futex. it calls the compat_sys_futex kernel function. As far as kernel is concerned, x32 is the same as ia32 with x86-64 kernel calling convention. >> 2. IA32 tests should check ia32 instead of ilp32. > > This is certainly fine. > > Jakub > Thanks. -- H.J.