Re: PATCH: Add x32 support to libgomp

2011-07-28 Thread H.J. Lu
On Thu, Jul 28, 2011 at 12:45 PM, Jakub Jelinek 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

Re: PATCH: Add x32 support to libgomp

2011-07-28 Thread Jakub Jelinek
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 proper

PATCH: Add x32 support to libgomp

2011-07-28 Thread H.J. Lu
Hi, This patch fixes 2 issues in libgomp for x32: 1. x32 should use the same futex functions as x86-64. 2. IA32 tests should check ia32 instead of ilp32. OK for trunk? Thanks. H.J. --- 2011-07-28 H.J. Lu * config/linux/x86/futex.h: Check __x86_64__ instead of __LP64__.