mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-26 03:50:07 +08:00
Fix win64 noreturn problem
On win64 the code would hang in longjump with previous change
This commit is contained in:
parent
f9cb198aa8
commit
2656f8edcc
@ -59,7 +59,7 @@ typedef struct rt_frame {
|
||||
void *ip, *fp, *sp;
|
||||
} rt_frame;
|
||||
|
||||
void __rt_exit(rt_frame *, int);
|
||||
__attribute__((noreturn)) void __rt_exit(rt_frame *, int);
|
||||
|
||||
void exit(int code)
|
||||
{
|
||||
@ -69,7 +69,6 @@ void exit(int code)
|
||||
f.fp = 0;
|
||||
f.ip = exit;
|
||||
__rt_exit(&f, code);
|
||||
for (;;); // avoid noreturn warning
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user