diff options
author | James E Wilson <wilson@specifixinc.com> | 2005-08-18 13:01:54 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2005-08-18 13:01:54 -0700 |
commit | 2483ad581a25b4e7aad16c11fce6757b6af36d8c (patch) | |
tree | e892f1756c7f014246b880abc4d6a071e49ab659 /libmudflap/ChangeLog | |
parent | 9ed8fb9bbc80c980055f9520237c7ab99ac2e660 (diff) | |
download | gcc-2483ad581a25b4e7aad16c11fce6757b6af36d8c.zip gcc-2483ad581a25b4e7aad16c11fce6757b6af36d8c.tar.gz gcc-2483ad581a25b4e7aad16c11fce6757b6af36d8c.tar.bz2 |
Fix FreeBSD failure with recursive malloc call.
* mf-hooks1.c (malloc, calloc, realloc, free,
__mf_wrap_alloca_indirect): Call BEGIN_MALLOC_PROTECT before calling
the real routines, and END_MALLOC_PROTECT afterwards.
* mf-impl.h (enum __mf_state_enum): Expand comment. Add in_malloc.
(BEGIN_PROTECT): Handle in_malloc state.
(BEGIN_MALLOC_PROTECT, END_MALLOC_PROTECT): New.
* testsuite/libmudflap.c/hook2-allocstuff.c: New.
From-SVN: r103256
Diffstat (limited to 'libmudflap/ChangeLog')
-rw-r--r-- | libmudflap/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index 8be90f0..717be4f 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,13 @@ +2005-08-17 Jim Wilson <wilson@specifix.com> + + * mf-hooks1.c (malloc, calloc, realloc, free, + __mf_wrap_alloca_indirect): Call BEGIN_MALLOC_PROTECT before calling + the real routines, and END_MALLOC_PROTECT afterwards. + * mf-impl.h (enum __mf_state_enum): Expand comment. Add in_malloc. + (BEGIN_PROTECT): Handle in_malloc state. + (BEGIN_MALLOC_PROTECT, END_MALLOC_PROTECT): New. + * testsuite/libmudflap.c/hook2-allocstuff.c: New. + 2005-08-17 Kelley Cook <kcook@gcc.gnu.org> * All files: Update FSF address. |