mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 11:48:30 +00:00
Improve dead code elimination
This commit is contained in:
parent
760db8c5ad
commit
0e36cb3ac4
6606 changed files with 9685 additions and 9854 deletions
|
@ -22,7 +22,6 @@
|
|||
#include "libc/sysv/consts/nr.h"
|
||||
#include "libc/macros.h"
|
||||
.privileged
|
||||
.source __FILE__
|
||||
|
||||
/ Terminates program abnormally.
|
||||
/
|
||||
|
@ -38,8 +37,10 @@ abort: push %rbp
|
|||
mov %rsp,%rbp
|
||||
and $-16,%rsp
|
||||
sub $16,%rsp
|
||||
#if SupportsWindows()
|
||||
testb IsWindows()
|
||||
jnz 2f
|
||||
jnz sys_abort_nt
|
||||
#endif
|
||||
mov SIG_SETMASK,%edi
|
||||
mov %rsp,%rsi
|
||||
push $0xffffffffffffffdf # all bits blocked but SIGABRT
|
||||
|
@ -56,5 +57,5 @@ abort: push %rbp
|
|||
mov SIGABRT,%esi
|
||||
mov __NR_kill,%eax
|
||||
syscall # avoid hook and less bt noise
|
||||
2: call sys_abort_nt
|
||||
call _Exit
|
||||
.endfn abort,globl,protected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue