summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2012-08-30 16:10:32 +0000
committerkettenis <kettenis@openbsd.org>2012-08-30 16:10:32 +0000
commitfd55105b5e8e6d33fc812901c70466c01005fc77 (patch)
tree7cc73f7cf6a55be6a13a7f363601e3f5a16079df
parentsync (diff)
downloadwireguard-openbsd-fd55105b5e8e6d33fc812901c70466c01005fc77.tar.xz
wireguard-openbsd-fd55105b5e8e6d33fc812901c70466c01005fc77.zip
Use an explicit suffix for the "fld" instruction to shut up clang. The correct
instruction is fldl sinze we try to load a double-precision value. GCC actually gets it wrong and emits "flds" (which is harmless). Pointed out by Brad. ok guenther@
-rw-r--r--sys/arch/amd64/amd64/fpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/fpu.c b/sys/arch/amd64/amd64/fpu.c
index 779a713a398..6322bfe0579 100644
--- a/sys/arch/amd64/amd64/fpu.c
+++ b/sys/arch/amd64/amd64/fpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu.c,v 1.26 2011/07/11 15:40:47 guenther Exp $ */
+/* $OpenBSD: fpu.c,v 1.27 2012/08/30 16:10:32 kettenis Exp $ */
/* $NetBSD: fpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */
/*-
@@ -262,7 +262,7 @@ fpudna(struct cpu_info *ci)
* thus leaking other process's execution history.
*/
fnclex();
- __asm __volatile("ffree %%st(7)\n\tfld %0" : : "m" (zero));
+ __asm __volatile("ffree %%st(7)\n\tfldl %0" : : "m" (zero));
fxrstor(sfp);
}
}