This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trans-mem] fix futex syscall for x86_64
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 22 Mar 2010 18:14:50 -0400
- Subject: Re: [trans-mem] fix futex syscall for x86_64
- References: <20100322160125.GA11335@redhat.com> <4BA7A454.9020504@redhat.com>
On Mon, Mar 22, 2010 at 10:09:40AM -0700, Richard Henderson wrote:
> On 03/22/2010 09:01 AM, Aldy Hernandez wrote:
> > +/* Define sys_futex0_wait if backend's wait syscall is different than
> > + the wake. See x86_64 for an example. */
> > +#ifndef sys_futex0_wait
> > +#define sys_futex0_wait sys_futex0
> > +#endif
>
> Not ok. All targets have the same arguments.
I don't get it. How am I changing the number of arguments passed to
sys_futex0?
Do you want me to set r10 to 0 both for the x86-64 futex_wait and for
the futex_wake? On libgomp/config/linux/x86/futex.h we set r10 only for
the futex_wait variant.
Confused.
Aldy