patches/glibc/2.7/240-sh-lowlevellock-asm.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jun 25 23:33:01 2014 +0200 (2014-06-25)
changeset 3325 069f43a215cc
permissions -rw-r--r--
all: fix wildcard to work with make-4.x

In make-3.8x, the $(wildacrd) function would sort the entries,
while in make-4.x, it would just return the entries in any
unpredictable order [*]

Use the $(sort) function to get reproducible behaviour.

[*] Well, most probably the roder the entries appear when read
from readdir()

Reported-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
     1 --- glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S.orig	2007-08-03 16:44:15.000000000 +0100
     2 +++ glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S	2008-08-19 21:08:19.000000000 +0100
     3 @@ -76,7 +76,7 @@
     4  	add	tmp2, tmp 	; \
     5  	mov.l	@tmp, tmp2	; \
     6  	bra	98f		; \
     7 -	 mov	#FUTEX_PRIVATE_FLAG, tmp
     8 +	 mov	#FUTEX_PRIVATE_FLAG, tmp ; \
     9  99:	.word	PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
    10  98:	extu.b	tmp, tmp	; \
    11  	xor	tmp, reg	; \
    12 @@ -88,7 +88,7 @@
    13  	add	tmp2, tmp 	; \
    14  	mov.l	@tmp, tmp2	; \
    15  	bra	98f		; \
    16 -	 mov	#FUTEX_PRIVATE_FLAG, tmp
    17 +	 mov	#FUTEX_PRIVATE_FLAG, tmp ; \
    18  99:	.word	PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
    19  98:	extu.b	tmp, tmp	; \
    20  	xor	tmp, reg	; \
    21 @@ -96,13 +96,13 @@
    22  	mov	#FUTEX_WAIT, tmp ; \
    23  	or	tmp, reg
    24  # endif
    25 -# define LOAD_FUTEX_WAKE(reg,tmp) \
    26 +# define LOAD_FUTEX_WAKE(reg,tmp,tmp2) \
    27  	stc	gbr, tmp	; \
    28  	mov.w	99f, tmp2	; \
    29  	add	tmp2, tmp 	; \
    30  	mov.l	@tmp, tmp2	; \
    31  	bra	98f		; \
    32 -	 mov	#FUTEX_PRIVATE_FLAG, tmp
    33 +	 mov	#FUTEX_PRIVATE_FLAG, tmp ; \
    34  99:	.word	PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
    35  98:	extu.b	tmp, tmp	; \
    36  	xor	tmp, reg	; \
    37 --- glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S.orig	2007-08-03 16:44:57.000000000 +0100
    38 +++ glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S	2008-08-19 21:08:22.000000000 +0100
    39 @@ -42,7 +42,7 @@
    40  	add	tmp2, tmp 	; \
    41  	mov.l	@tmp, tmp2	; \
    42  	bra	98f		; \
    43 -	 mov	#FUTEX_PRIVATE_FLAG, tmp
    44 +	 mov	#FUTEX_PRIVATE_FLAG, tmp ; \
    45  99:	.word	PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
    46  98:	extu.b	tmp, tmp	; \
    47  	xor	tmp, reg	; \
    48 @@ -54,7 +54,7 @@
    49  	add	tmp2, tmp 	; \
    50  	mov.l	@tmp, tmp2	; \
    51  	bra	98f		; \
    52 -	 mov	#FUTEX_PRIVATE_FLAG, tmp
    53 +	 mov	#FUTEX_PRIVATE_FLAG, tmp ; \
    54  99:	.word	PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
    55  98:	extu.b	tmp, tmp	; \
    56  	xor	tmp, reg	; \