Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2015-12-21 19:53:14 +0300
committerJeff Johnston <jjohnstn@redhat.com>2015-12-21 19:53:14 +0300
commitc2bbc54a62da248a1b828bb6c0518185be3324eb (patch)
treee6f4e9966c58c3315115a0a837e22cc1f51049ea /newlib/ChangeLog
parentd2bb300b9bb7917d33e3bc37fca3bf6ee6e5fcc4 (diff)
Fix atexit logic to honor _ATEXIT_DYNAMIC_ALLOC setting.
If small reent is enabled (_REENT_SMALL is defined) then malloc() was used in __register_exitproc() even if user requested it to be disabled (_ATEXIT_DYNAMIC_ALLOC is defined). With this fix, function fails when _ATEXIT_DYNAMIC_ALLOC is defined and whole static storage is already used. 2015-12-21 Freddie Chopin <freddie.chopin@gmail.com> * libc/stdlib/__atexit.c (__register_exitproc): Fix for _ATEXIT_DYNAMIC_ALLOC.
Diffstat (limited to 'newlib/ChangeLog')
-rw-r--r--newlib/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 480eb863f..736def6b8 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2015-12-21 Freddie Chopin <freddie.chopin@gmail.com>
+ * libc/stdlib/__atexit.c (__register_exitproc): Fix for
+ _ATEXIT_DYNAMIC_ALLOC.
+
+2015-12-21 Freddie Chopin <freddie.chopin@gmail.com>
+
* libc/stdlib/on_exit_args.{c,h}: New files.
* libc/stdlib/Makefile.am: Add new source file.
* libc/stdlib/Makefile.in: Regenerate.