patches/glibc/2.7/240-sh-lowlevellock-asm.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     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	; \