From: H.J. Lu Date: Tue, 15 May 2012 17:25:51 +0000 (-0700) Subject: Use LP_OP(cmp) on NWAITERS X-Git-Tag: glibc-2.16-tps~320 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f658cf1473dc9d2daffdc28fa8480258967d0c4;p=thirdparty%2Fglibc.git Use LP_OP(cmp) on NWAITERS --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 1b2f7f71140..a17ebc7cb00 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2012-05-15 H.J. Lu + + * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Use LP_OP(cmp) on + NWAITERS, which is unsigned long int. + 2012-05-15 H.J. Lu * sysdeps/unix/sysv/linux/x86_64/pthread_once.S diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S index 0e0898cbb8b..65e715d2da8 100644 --- a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S +++ b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S @@ -45,7 +45,7 @@ sem_post: #endif jnz 0b - cmpq $0, NWAITERS(%rdi) + LP_OP(cmp) $0, NWAITERS(%rdi) je 2f movl $SYS_futex, %eax