all: support [noreturn] fn abc() { for{} }, mark panic/1 and exit/1with it too. (#10654)

This commit is contained in:
Delyan Angelov 2021-07-04 20:24:19 +03:00 committed by GitHub
parent b0b4b8e65b
commit 6aecda3be8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 318 additions and 22 deletions

View file

@ -303,8 +303,10 @@ fn sys_execve(filename &byte, argv []&byte, envp []&byte) int {
}
// 60 sys_exit
[noreturn]
fn sys_exit(ec int) {
sys_call1(60, u64(ec))
for {}
}
// 102 sys_getuid