gcc/libmudflap
James E Wilson 2483ad581a 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
2005-08-18 13:01:54 -07:00
..
testsuite Fix FreeBSD failure with recursive malloc call. 2005-08-18 13:01:54 -07:00
.cvsignore
acinclude.m4 gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit. 2005-07-16 19:29:00 -07:00
aclocal.m4 gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit. 2005-07-16 19:29:00 -07:00
ChangeLog Fix FreeBSD failure with recursive malloc call. 2005-08-18 13:01:54 -07:00
config.h.in configure.ac: Test for the name of the symbol used for the entry point... 2005-08-15 16:15:16 +00:00
configure configure.ac: Test for the name of the symbol used for the entry point... 2005-08-15 16:15:16 +00:00
configure.ac configure.ac: Test for the name of the symbol used for the entry point... 2005-08-15 16:15:16 +00:00
libtool-version
Makefile.am re PR libmudflap/21724 (libmudflap/Makefile.am, refusing to install mf-runtime.h in includedir) 2005-06-14 19:18:16 +00:00
Makefile.in gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit. 2005-07-16 19:29:00 -07:00
mf-heuristics.c All files: Update FSF address. 2005-08-17 03:21:42 +00:00
mf-hooks1.c Fix FreeBSD failure with recursive malloc call. 2005-08-18 13:01:54 -07:00
mf-hooks2.c All files: Update FSF address. 2005-08-17 03:21:42 +00:00
mf-hooks3.c All files: Update FSF address. 2005-08-17 03:21:42 +00:00
mf-impl.h Fix FreeBSD failure with recursive malloc call. 2005-08-18 13:01:54 -07:00
mf-runtime.c All files: Update FSF address. 2005-08-17 03:21:42 +00:00
mf-runtime.h All files: Update FSF address. 2005-08-17 03:21:42 +00:00