diff options
Diffstat (limited to 'newlib/libc/machine/amdgcn')
-rw-r--r-- | newlib/libc/machine/amdgcn/Makefile.inc | 2 | ||||
-rw-r--r-- | newlib/libc/machine/amdgcn/_exit.c (renamed from newlib/libc/machine/amdgcn/exit.c) | 4 | ||||
-rw-r--r-- | newlib/libc/machine/amdgcn/atexit.c | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/newlib/libc/machine/amdgcn/Makefile.inc b/newlib/libc/machine/amdgcn/Makefile.inc index d26603aa8..e1fc5ae4d 100644 --- a/newlib/libc/machine/amdgcn/Makefile.inc +++ b/newlib/libc/machine/amdgcn/Makefile.inc @@ -1,6 +1,6 @@ libc_a_SOURCES += \ + %D%/_exit.c \ %D%/abort.c \ - %D%/exit.c \ %D%/atexit.c \ %D%/mlock.c \ %D%/getreent.c \ diff --git a/newlib/libc/machine/amdgcn/exit.c b/newlib/libc/machine/amdgcn/_exit.c index bdd532edd..82171aff9 100644 --- a/newlib/libc/machine/amdgcn/exit.c +++ b/newlib/libc/machine/amdgcn/_exit.c @@ -13,11 +13,11 @@ * they apply. */ -#include <stdlib.h> +#include <unistd.h> #include "exit-value.h" void __attribute__((noreturn)) -exit (int val) +_exit (int val) { exit_with_status_and_signal (val, 0); } diff --git a/newlib/libc/machine/amdgcn/atexit.c b/newlib/libc/machine/amdgcn/atexit.c index 674571435..8ddd92cfa 100644 --- a/newlib/libc/machine/amdgcn/atexit.c +++ b/newlib/libc/machine/amdgcn/atexit.c @@ -18,8 +18,7 @@ int atexit (void (*function)(void)) { - /* Our current implementation of exit does not run functions registered with - atexit, so fail here. */ + /* Fail here. */ abort (); return 1; } |