diff options
| author | Graydon Hoare <[email protected]> | 2010-11-15 12:45:26 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-11-15 12:45:26 -0800 |
| commit | 44b051f34af7512e8b13a1dfaac03967989a0ca4 (patch) | |
| tree | a2185eaa914c5236fb0048959fecedb3824438e9 /src | |
| parent | Switch upcall glues to fastcall as well. (diff) | |
| download | rust-44b051f34af7512e8b13a1dfaac03967989a0ca4.tar.xz rust-44b051f34af7512e8b13a1dfaac03967989a0ca4.zip | |
Fix typo in x86 backend glue that was, by luck, only crashing on OSX.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/back/x86.rs | 2 |
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"); |