diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-06-21 14:12:18 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-06-21 16:03:28 -0700 |
| commit | be8b09160bb6cefc239a8ede5e4ac01e1d61adf9 (patch) | |
| tree | ac04ef7a8720a5117ab9c550836941338a187de6 | |
| parent | 290206b17890a76f96979ad629203d965ff35d1c (diff) | |
| download | rust-be8b09160bb6cefc239a8ede5e4ac01e1d61adf9.tar.gz rust-be8b09160bb6cefc239a8ede5e4ac01e1d61adf9.zip | |
Try removing code marked with "I don't think this is necessary"
| -rw-r--r-- | src/rt/arch/i386/morestack.S | 9 | ||||
| -rw-r--r-- | src/rt/arch/x86_64/morestack.S | 7 |
2 files changed, 1 insertions, 15 deletions
diff --git a/src/rt/arch/i386/morestack.S b/src/rt/arch/i386/morestack.S index d1433213b2d..7f2205b573a 100644 --- a/src/rt/arch/i386/morestack.S +++ b/src/rt/arch/i386/morestack.S @@ -213,15 +213,6 @@ MORESTACK: popl %ebp - // FIXME: I don't think these rules are necessary - // since the unwinder should never encounter an instruction - // pointer pointing here. -#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) - // Restore the rule for how to find %ebp - .cfi_restore %ebp - // Tell the unwinder how to find the CFA in terms of %esp - .cfi_def_cfa %esp, 16 -#endif retl $8 .L$bail: diff --git a/src/rt/arch/x86_64/morestack.S b/src/rt/arch/x86_64/morestack.S index 84340d26791..4ae21a3c4f6 100644 --- a/src/rt/arch/x86_64/morestack.S +++ b/src/rt/arch/x86_64/morestack.S @@ -51,7 +51,7 @@ MORESTACK: subq $184, %rsp - // FIXME: libgcc also saves rax. not sure if we need to + // FIXME: libgcc also saves rax. not sure if we need to (#2685) // Save argument registers of the original function movq %rdi, (%rsp) @@ -133,11 +133,6 @@ MORESTACK: popq %rax // Restore the return value popq %rbp - // FIXME: I don't think these rules are necessary - // since the unwinder should never encounter an instruction - // pointer pointing here. - .cfi_restore %rbp - .cfi_def_cfa %rsp, 16 ret .cfi_endproc |
