Try removing code marked with "I don't think this is necessary"
This commit is contained in:
parent
290206b178
commit
be8b09160b
2 changed files with 1 additions and 15 deletions
|
@ -213,15 +213,6 @@ MORESTACK:
|
||||||
|
|
||||||
popl %ebp
|
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
|
retl $8
|
||||||
|
|
||||||
.L$bail:
|
.L$bail:
|
||||||
|
|
|
@ -51,7 +51,7 @@ MORESTACK:
|
||||||
|
|
||||||
subq $184, %rsp
|
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
|
// Save argument registers of the original function
|
||||||
movq %rdi, (%rsp)
|
movq %rdi, (%rsp)
|
||||||
|
@ -133,11 +133,6 @@ MORESTACK:
|
||||||
|
|
||||||
popq %rax // Restore the return value
|
popq %rax // Restore the return value
|
||||||
popq %rbp
|
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
|
ret
|
||||||
|
|
||||||
.cfi_endproc
|
.cfi_endproc
|
||||||
|
|
Loading…
Reference in a new issue