This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix s_copysign stack temp for PowerPC64 ELFv2
- From: Alan Modra <amodra at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 1 Apr 2014 14:16:12 +1030
- Subject: Fix s_copysign stack temp for PowerPC64 ELFv2
- Authentication-results: sourceware.org; auth=none
Committed as obvious. ELFv2 doesn't require a parameter save area
on most calls, so use the stack redzone area for stack temps.
[BZ #16786]
* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
diff --git a/sysdeps/powerpc/powerpc64/fpu/s_copysign.S b/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
index 51681aa..49c793d 100644
--- a/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
+++ b/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
@@ -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
--
Alan Modra
Australia Development Lab, IBM