summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-09-26 01:49:48 +0000
committerpeter <peter@FreeBSD.org>2003-09-26 01:49:48 +0000
commit46beb6a5623f5a12f951d49d8642535ba6efdd0d (patch)
tree30285e771530a7d3dcbbd97e4ad0ba65aefe6012 /lib/libc/amd64
parentfb15d26ca01df69ce5165056c5c3d6b8a3fe9b02 (diff)
downloadFreeBSD-src-46beb6a5623f5a12f951d49d8642535ba6efdd0d.zip
FreeBSD-src-46beb6a5623f5a12f951d49d8642535ba6efdd0d.tar.gz
Fix fabs(). This commit brought to you by the letter 'l'.
(fstp stores a mem32 value, fstpl stores a mem64 value) This fixes ghostscript for 'make release' on amd64. Ghostscript for some reason thinks it is a good idea to use -fno-builtin, which means it is vulnerable to bugs in libc that are normally hidden by the builtin gcc functions. Oops.
Diffstat (limited to 'lib/libc/amd64')
-rw-r--r--lib/libc/amd64/gen/fabs.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/amd64/gen/fabs.S b/lib/libc/amd64/gen/fabs.S
index 695c20c..f344001 100644
--- a/lib/libc/amd64/gen/fabs.S
+++ b/lib/libc/amd64/gen/fabs.S
@@ -13,6 +13,6 @@ ENTRY(fabs)
movsd %xmm0, -8(%rsp)
fldl -8(%rsp)
fabs
- fstp -8(%rsp)
+ fstpl -8(%rsp)
movsd -8(%rsp),%xmm0
ret
OpenPOWER on IntegriCloud