summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2010-12-31 03:02:46 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2010-12-31 03:02:46 +0000
commit734f8c1a4b585da83eb32b663d39b94119b47178 (patch)
tree746df0217fcd79e11268124a4079833322147e02 /lib
parentb7ffca5478a2590875ba441e0c2916964b581b5f (diff)
Make this compile with llvm-clang; problem pointed out by Amit Kulkarni
Diffstat (limited to 'lib')
-rw-r--r--lib/libpthread/arch/amd64/uthread_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/arch/amd64/uthread_machdep.c b/lib/libpthread/arch/amd64/uthread_machdep.c
index c827a35a10c..aa38151311a 100644
--- a/lib/libpthread/arch/amd64/uthread_machdep.c
+++ b/lib/libpthread/arch/amd64/uthread_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_machdep.c,v 1.3 2004/02/25 04:10:53 deraadt Exp $ */
+/* $OpenBSD: uthread_machdep.c,v 1.4 2010/12/31 03:02:45 guenther Exp $ */
/*
* Copyright (c) 2004 Theo de Raadt
@@ -53,7 +53,7 @@ struct frame {
};
#define copyreg(reg, lval) \
- __asm__("mov %%" #reg ", %0" : "=g"(lval))
+ __asm__("movl %%" #reg ", %0" : "=g"(lval))
/*
* Given a stack and an entry function, initialise a state