diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-18 20:01:54 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-18 20:01:54 +0000 |
commit | a3fb7997a5beae9ce90f682c7788faedc7b8bbac (patch) | |
tree | e892f1756c7f014246b880abc4d6a071e49ab659 /libmudflap/ChangeLog | |
parent | 6be9086512533e232a11658b5b430f56474a3933 (diff) | |
download | gcc-a3fb7997a5beae9ce90f682c7788faedc7b8bbac.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103256 138bc75d-0d04-0410-961f-82ee72b054a4
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 8be90f02487..717be4f7be6 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. |