ce426f
# commit c859b32e9d76afe8a3f20bb9528961a573c06937
ce426f
# Author: Alan Modra <amodra@gmail.com>
ce426f
# Date:   Tue Apr 1 14:07:42 2014 +1030
ce426f
# 
ce426f
#     Fix s_copysign stack temp for PowerPC64 ELFv2
ce426f
# 
ce426f
#         [BZ #16786]
ce426f
#         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
ce426f
# 
ce426f
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/fpu/s_copysign.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
ce426f
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/fpu/s_copysign.S	2014-05-29 14:13:47.000000000 -0500
ce426f
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/fpu/s_copysign.S	2014-05-29 14:13:50.000000000 -0500
ce426f
@@ -27,11 +27,11 @@
ce426f
 /* double [f1] copysign (double [f1] x, double [f2] y);
ce426f
    copysign(x,y) returns a value with the magnitude of x and
ce426f
    with the sign bit of y.  */
ce426f
-	stfd	fp2,56(r1)
ce426f
+	stfd	fp2,-8(r1)
ce426f
 	nop
ce426f
 	nop
ce426f
 	nop
ce426f
-	ld	r3,56(r1)
ce426f
+	ld	r3,-8(r1)
ce426f
 	cmpdi   r3,0
ce426f
 	blt     L(0)
ce426f
 	fabs    fp1,fp1