summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-08-30 00:39:07 +0000
committermarcel <marcel@FreeBSD.org>2006-08-30 00:39:07 +0000
commit007866fe9c5db6dfe7001acab1424b1f8d7c039a (patch)
tree93d4a447a9df386c4d2a48c59c301156878b363f /lib
parent8397e9dcdc544c081038b4bfec738c90b1961a39 (diff)
downloadFreeBSD-src-007866fe9c5db6dfe7001acab1424b1f8d7c039a.zip
FreeBSD-src-007866fe9c5db6dfe7001acab1424b1f8d7c039a.tar.gz
Prevent dead code elimination for the TP assignmient by using inline
assembly.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/ia64/gen/_set_tp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/ia64/gen/_set_tp.c b/lib/libc/ia64/gen/_set_tp.c
index 2419e10..901e901 100644
--- a/lib/libc/ia64/gen/_set_tp.c
+++ b/lib/libc/ia64/gen/_set_tp.c
@@ -29,7 +29,6 @@
void
_set_tp(void *tpval)
{
- register void* tp __asm__("r13");
- tp = tpval;
+ __asm __volatile("mov r13 = %0" :: "r"(tpval));
}
OpenPOWER on IntegriCloud