]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix s_copysign stack temp for PowerPC64 ELFv2
authorAlan Modra <amodra@gmail.com>
Tue, 1 Apr 2014 03:37:42 +0000 (14:07 +1030)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 2 Apr 2014 11:23:52 +0000 (06:23 -0500)
[BZ #16786]
* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.

Backport of c859b32e9d76afe8a3f20bb9528961a573c06937.

ChangeLog
sysdeps/powerpc/powerpc64/fpu/s_copysign.S

index 5c508a9185a47f1e0b8d15a14e8130917c56cdaf..a54240d46ca58d61ce2983fd8fe54cdd1c8fc9ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-01  Alan Modra  <amodra@gmail.com>
+
+       [BZ #16786]
+       * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
+
 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
 
        * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
index 51681aa2a845aaca7af497d7540f71b041918b02..49c793d386986c714dcdc684a45eb78511bf7621 100644 (file)
@@ -27,11 +27,11 @@ ENTRY(__copysign)
 /* double [f1] copysign (double [f1] x, double [f2] y);
    copysign(x,y) returns a value with the magnitude of x and
    with the sign bit of y.  */
-       stfd    fp2,56(r1)
+       stfd    fp2,-8(r1)
        nop
        nop
        nop
-       ld      r3,56(r1)
+       ld      r3,-8(r1)
        cmpdi   r3,0
        blt     L(0)
        fabs    fp1,fp1