aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/comp/back/x86.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/back/x86.rs b/src/comp/back/x86.rs
index a40592d5..f439d23e 100644
--- a/src/comp/back/x86.rs
+++ b/src/comp/back/x86.rs
@@ -31,7 +31,7 @@ fn save_callee_saves_with_cfi() -> vec[str] {
auto t;
t = vec("pushl %ebp");
t += vec(".cfi_def_cfa_offset " + istr(offset));
- t += vec(".cfi_offset 5, -" + istr(offset));
+ t += vec(".cfi_offset %ebp, -" + istr(offset));
t += vec("pushl %edi");
offset += 4;
@@ -251,7 +251,7 @@ fn native_glue(int n_args, abi.native_glue_type ngt) -> vec[str] {
+ save_callee_saves_with_cfi()
+ vec("movl %esp, %ebp # ebp = rust_sp")
- + vec(".cfi_def_cfa_register 5")
+ + vec(".cfi_def_cfa_register %ebp")
+ store_esp_to_rust_sp_second_arg()
+ load_esp_from_runtime_sp_second_arg()