aboutsummaryrefslogtreecommitdiff
path: root/src/comp/back
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-11-15 12:45:26 -0800
committerGraydon Hoare <[email protected]>2010-11-15 12:45:26 -0800
commit44b051f34af7512e8b13a1dfaac03967989a0ca4 (patch)
treea2185eaa914c5236fb0048959fecedb3824438e9 /src/comp/back
parentSwitch upcall glues to fastcall as well. (diff)
downloadrust-44b051f34af7512e8b13a1dfaac03967989a0ca4.tar.xz
rust-44b051f34af7512e8b13a1dfaac03967989a0ca4.zip
Fix typo in x86 backend glue that was, by luck, only crashing on OSX.
Diffstat (limited to 'src/comp/back')
-rw-r--r--src/comp/back/x86.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/back/x86.rs b/src/comp/back/x86.rs
index a2a8d5cc..94243c36 100644
--- a/src/comp/back/x86.rs
+++ b/src/comp/back/x86.rs
@@ -49,7 +49,7 @@ fn rust_activate_glue() -> vec[str] {
// This 'add' instruction is a bit surprising.
// See lengthy comment in boot/be/x86.ml activate_glue.
- + vec("addl $20, " + wstr(abi.task_field_rust_sp) + "(%edx)")
+ + vec("addl $20, " + wstr(abi.task_field_rust_sp) + "(%ecx)")
+ restore_callee_saves()
+ vec("ret");