diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-09-05 18:22:00 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-09-05 18:22:00 +0000 |
commit | f1b1505827a0cb3ec1512e309d43bffc85680418 (patch) | |
tree | a6c3993b26d7df4653ee522f828375cfab00dcac | |
parent | b73263e40127b8ad0e416a239517918cbcf39d90 (diff) | |
download | newlib-f1b1505827a0cb3ec1512e309d43bffc85680418.zip newlib-f1b1505827a0cb3ec1512e309d43bffc85680418.tar.gz newlib-f1b1505827a0cb3ec1512e309d43bffc85680418.tar.bz2 |
2003-09-05 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p
is different for _REENT_SMALL than when using regular reent
struct.
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/stdlib/exit.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 513c34d..14369fa 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2003-09-05 Jeff Johnston <jjohnstn@redhat.com> + + * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p + is different for _REENT_SMALL than when using regular reent + struct. + 2003-09-05 Ben Elliston <bje@wasabisystems.com> * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as diff --git a/newlib/libc/stdlib/exit.c b/newlib/libc/stdlib/exit.c index 286c20d..dad2861 100644 --- a/newlib/libc/stdlib/exit.c +++ b/newlib/libc/stdlib/exit.c @@ -64,9 +64,8 @@ _DEFUN (exit, (code), register int n; int i; - p = &_GLOBAL_REENT->_atexit; - #ifdef _REENT_SMALL + p = &_GLOBAL_REENT->_atexit; args = p->_on_exit_args_ptr; if (args == NULL) @@ -83,6 +82,7 @@ _DEFUN (exit, (code), p->_fns[n] (); } #else + p = _GLOBAL_REENT->_atexit; do { args = & p->_on_exit_args; |