aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2010-11-25 18:14:18 +0000
committerDimitry Andric <dim@FreeBSD.org>2010-11-25 18:14:18 +0000
commit079d7e43caaef61f2394ad46e2abe63ea1d3845c (patch)
tree78c9adc51c5002e4e5985a24260666a71cfb8eca
parente194afc43438b154fbdbed269cbb83d78e7d69b3 (diff)
downloadsrc-079d7e43caaef61f2394ad46e2abe63ea1d3845c.tar.gz
src-079d7e43caaef61f2394ad46e2abe63ea1d3845c.zip
Use unambiguous inline assembly to load a float variable. GNU as
silently converts 'fld' to 'flds', without taking the actual variable type into account (!), but clang's integrated assembler rightfully complains about it. Discussed with: cperciva
Notes
Notes: svn path=/head/; revision=215823
-rw-r--r--sys/i386/isa/npx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c
index f8dc11c6cb9b..8d37562244dd 100644
--- a/sys/i386/isa/npx.c
+++ b/sys/i386/isa/npx.c
@@ -938,7 +938,7 @@ fpu_clean_state(void)
* the x87 stack, but we don't care since we're about to call
* fxrstor() anyway.
*/
- __asm __volatile("ffree %%st(7); fld %0" : : "m" (dummy_variable));
+ __asm __volatile("ffree %%st(7); flds %0" : : "m" (dummy_variable));
}
#endif /* CPU_ENABLE_SSE */