1 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3 * configure: Regenerated.
5 2006-11-10 Frank Ch. Eigler <fche@redhat.com>
8 * mf-hooks1.c (__mf_0fn_malloc): Make the bootstrap buffers
9 static but not function scope static.
10 (free): Skip deallocation attempts for objects placed into
12 * testsuite/libmudflap.cth/pass59-frag.c: New test.
14 2006-11-06 Frank Ch. Eigler <fche@redhat.com>
16 From Herman ten Brugge <hermantenbrugge@home.nl>:
17 * mf-runtime.c (__mf_uncache_object): Optimize the code so that
18 small and large objects are handled a lot faster.
20 2006-11-06 Frank Ch. Eigler <fche@redhat.com>
22 * configure.ac (__libc_freeres): Look for it.
23 * mf-impl.h (call_libc_freeres): New configuration flag.
24 * mf-runtime.c (__mf_set_default_options): Set it by default.
25 (__mfu_report): Call it if needed.
26 (__mfu_unregister): Remove "unaccessed registered object" warning.
27 * configure, config.h.in: Regenerated.
29 2006-09-18 Tom Tromey <tromey@redhat.com>
33 2006-06-21 Frank Ch. Eigler <fche@redhat.com>
36 mf-runtime.h installation based on ssp patch for PR 26473 from
37 Mark Mitchell <mark@codesourcery.com>.
38 * configure.ac (ACX_NONCANONICAL_TARGET): Use it.
39 * Makefile.am (target_noncanonical): Define.
40 (libsubincludedir): New variable.
41 (nobase_libsubinclude_HEADERS): Add mf-runtime.h.
42 (include_HEADERS): Remove.
43 * configure, aclocal.m4, config.h.in: Regenerated.
44 * Makefile.in, testsuite/Makefile.in: Likewise.
45 * mf-runtime.h: Add #ifndef protection for conflicting _REENTRANT
46 and _THREAD_SAFE redefinition values.
48 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
50 * Makefile.am: Add install-html target. Add install-html to .PHONY
51 * Makefile.in: Regenerate.
53 2006-04-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
56 * testsuite/libmudflap.c++/error1-frag.cxx: New test.
59 * testsuite/libmudflap.c++/error2-frag.cxx: New test.
61 2006-04-10 Matthias Klose <doko@debian.org>
63 * testsuite/lib/libmudflap.exp (libmudflap-init): Recognize multilib
64 directory names containing underscores.
66 2005-11-22 Janis Johnson <janis187@us.ibm.com>
68 * testsuite/lib/libmudflap.exp (libmudflap-init): Remove -static from
69 MUDFLAP_FLAGS if static library not supported.
70 * testsuite/libmudflap.c/cfrags.exp (MUDFLAP_FLAGS): new.
71 * testsuite/libmudflap.c/externs.exp: Ditto.
72 * testsuite/libmudflap.c++/ctors.exp: Ditto.
73 * testsuite/libmudflap.c++/c++frags.exp: Ditto.
74 * testsuite/libmudflap.cth/cthfrags.exp: Ditto.
76 2005-10-04 James E Wilson <wilson@specifix.com>
78 * configure.ac (mudflap_cv_entry_point): Use quadrigraphs to declare
79 $name as array of characters with unknown bound. Also store into the
81 * configure: Regenerate.
83 2005-09-30 James E. Wilson <wilson@specifix.com>
85 * configure.ac (pthread.h): Use AC_CHECK_HEADERS instead of
87 (target_thread_file): New. Set from sed'ed gcc output.
88 (posix_threads): New. Set from target_thread_file. Use instead of
90 (pthread_create_version): Move initialization before code using it.
91 * configure: Regenerate.
93 * mf-heuristics.c (_end, ENTRY_POINT): Make them arrays with unknown
96 2005-09-29 James E. Wilson <wilson@specifix.com>
98 * mf-hooks1.c (__mf_0fn_mmap, mmap, __mf_0fn_munmap, munmap): Protect
101 2005-09-23 Frank Ch. Eigler <fche@elastic.org>
104 * mf-hooks2.c (accept): Tolerate NULL sockaddr* parameter.
106 2005-09-23 Frank Ch. Eigler <fche@elastic.org>
108 * testsuite/libmudflap.c++/pass58-frag.cxx: New test for heisenbug 19319.
110 2005-09-23 Tom Tromey <tromey@redhat.com>
112 * aclocal.m4, configure: Rebuilt.
113 * configure.ac: Use GCC_CHECK_TLS.
114 * acinclude.m4 (LIBMUDFLAP_CHECK_TLS, LIBMUDFLAP_ENABLE): Moved
117 2005-08-22 Jim Wilson <wilson@specifix.com>
119 * mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
120 __FreeBSD__ is defined.
122 2005-08-17 Jim Wilson <wilson@specifix.com>
124 * mf-hooks1.c (malloc, calloc, realloc, free,
125 __mf_wrap_alloca_indirect): Call BEGIN_MALLOC_PROTECT before calling
126 the real routines, and END_MALLOC_PROTECT afterwards.
127 * mf-impl.h (enum __mf_state_enum): Expand comment. Add in_malloc.
128 (BEGIN_PROTECT): Handle in_malloc state.
129 (BEGIN_MALLOC_PROTECT, END_MALLOC_PROTECT): New.
130 * testsuite/libmudflap.c/hook2-allocstuff.c: New.
132 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
134 * All files: Update FSF address.
136 2005-08-15 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
138 * mf-hooks3.c (main_seen_p): Remove.
139 (__mf_get_state): Remove attempt to recognize the main thread.
141 2005-08-15 Maciej W. Rozycki <macro@linux-mips.org>
143 * configure.ac: Test for the name of the symbol used for the entry
144 point; define ENTRY_POINT to the result.
145 * configure: Regenerate.
146 * config.h.in: Regenerate.
147 * mf-heuristics.c: Replace _start with ENTRY_POINT throughout.
149 2005-08-14 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
151 * mf-runtime.c (__mf_state_1): Initialize to reentrant.
152 (__mf_init): Set thread state active.
153 * mf-hooks3.c (__mf_pthread_spawner): Always set thread
155 (pthread_create wrapper): Always use thread spawner.
157 * testsuite/libmudflap.cth/pass37-frag.c: Increase timeout.
158 * testsuite/libmudflap.cth/pass39-frag.c: Likewise.
160 2005-07-16 Richard Henderson <rth@redhat.com>
162 * acinclude.m4: New file.
163 * configure.ac: Invoke LIBMUDFLAP_CHECK_TLS.
164 * configure, config.h.in, Makefile.in, testsuite/Makefile.in: Rebuild.
165 * mf-hooks1.c (__mf_0fn_malloc): Move body from ...
166 (__mf_0fn_calloc): ... here.
167 * mf-hooks3.c (struct pthread_info): Remove.
168 (__mf_pthread_info, __mf_pthread_info_idx): Remove.
169 (LIBMUDFLAPTH_THREADS_MAX): Set to 1021.
170 (struct mf_thread_data): New.
171 (mf_thread_data, mf_thread_data_lock): New.
172 (__mf_allocate_blank_threadinfo): Remove.
173 (__mf_find_threadinfo): Rewrite and simplify. Only use if TLS is
175 (__mf_state_perthread): Remove.
176 (__mf_get_state, __mf_set_state): New.
177 (__mf_pthread_cleanup): Use &errno, rather than saved pointer.
178 Update mf_thread_data killing procedure.
179 (__mf_pthread_spawner): Similarly.
180 (__mf_0fn_pthread_create): Only use wrapper if necessary. Remove
181 code to allocate thread stack space.
182 (__mf_0fn_pthread_join, pthread_join): Remove.
183 (__mf_0fn_pthread_exit, pthread_exit): Remove.
184 * mf-impl.h (dyn_pthread_join, dyn_pthread_exit): Remove.
185 (__mf_state_1): Rename from __mf_state; use TLS when available.
186 (__mf_get_state, __mf_set_state): New. Update all users.
187 * mf-runtime.c (begin_recursion_protect1): New.
188 (BEGIN_RECURSION_PROTECT): Use it.
189 (__mf_state_1): Rename from __mf_state; use TLS when available.
190 (threads_active_p): Remove.
191 (__mf_usage): Compute it directly.
193 2005-06-19 Ulrich Weigand <uweigand@de.ibm.com>
195 * testsuite/libmudflap.c/externs-1.c (main): Add return statement.
197 2005-06-15 Frank Ch. Eigler <fche@redhat.com>
199 Fix for uncaching bug reported by Herman ten Brugge.
200 * mf-runtime.c (__mf_uncache_object): Search whole cache.
201 * testsuite/libmudflap.c/fail40-frag.c: New test.
203 2005-05-23 Alfred M. Szmidt <ams@gnu.org>
206 * Makefile.am (AM_MAKEFLAGS): Pass includedir.
207 * Makefile.in: Amend.
209 2005-06-14 Frank Ch. Eigler <fche@redhat.com>
212 * testsuite/libmudflap.c/externs.exp, externs-{1,2}.c: New test files.
213 * testsuite/libmudflap.c/cfrags.exp: Bypass new sources.
215 2005-06-14 Frank Ch. Eigler <fche@redhat.com>
218 * testsuite/libmudflap.c++/*.exp: Assert build tree g++.
220 2005-06-14 Frank Ch. Eigler <fche@redhat.com>
223 * mf-impl.h (mudflap_mode, violation_mode): Make these ordinary
224 unsigned vars with #defines instead of enums.
226 2005-05-09 Mike Stump <mrs@apple.com>
228 * configure: Regenerate.
230 2005-04-12 Mike Stump <mrs@apple.com>
232 * configure: Regenerate.
234 2005-04-12 Frank Ch. Eigler <fche@redhat.com>
237 * testsuite/libmudflap.c++/c++frags.exp: Also test -O permutation.
238 * testsuite/libmudflap.c++/pass57-frag.cxx: New test.
240 2005-04-04 Alan Modra <amodra@bigpond.net.au>
242 * mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.
244 2005-03-31 Mike Stump <mrs@apple.com>
246 * mf-runtime.h: Add libmudflap copyright clause.
248 2005-03-21 Mike Stump <mrs@apple.com>
250 * mf-heuristics.c: Fix whitespace at end of line.
251 * mf-hooks1.c: Likewise.
252 * mf-hooks2.c: Likewise.
253 * mf-hooks3.c: Likewise.
254 * mf-impl.h: Likewise.
255 * mf-runtime.c: Likewise.
256 * mf-runtime.h: Likewise.
258 2005-03-21 Zack Weinberg <zack@codesourcery.com>
260 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
261 In all substitutions, expand gcc_version in Makefile.
262 * aclocal.m4, configure: Regenerate.
263 * Makefile.am: Set gcc_version.
264 * Makefile.in, testsuite/Makefile.in: Regenerate.
266 2005-03-17 Frank Ch. Eigler <fche@redhat.com>
268 * mf-runtime.c (__mfu_check): Respect ignore_reads configuration.
269 * testsuite/libmudflap.c/{pass56,fail39}-frag.c: New tests.
271 2005-02-13 Frank Ch. Eigler <fche@redhat.com>
274 * testsuite/libmudflap.c++/pass55-frag.c: New test.
276 2005-01-05 Richard Henderson <rth@redhat.com>
278 * testsuite/libmudflap.c/pass32-frag.c: Fix typo.
280 2005-01-02 Greg McGary <greg@mcgary.org>
282 * mf-impl.h (uintptr_t): Get typedef via stdint.h or define explicitly.
283 * mf-runtime.h: New file, replaces mf-runtime.h.in.
284 * configure.ac (AC_CONFIG_FILES): mf-runtime.h is no longer generated.
285 * Makefile.in: Ditto.
286 * testsuite/lib/libmudflap.exp: Add -I${srcdir}/.. to get mf-runtime.h
287 * testsuite/libmudflap.c/pass32-frag.c: s/uintptr_t/__mf_uintptr_t/
288 * testsuite/libmudflap.c/fail36-frag.c: New test.
289 * testsuite/libmudflap.c/fail37-frag.c: New test.
290 * testsuite/libmudflap.c/fail38-frag.c: New test.
292 2004-12-08 Kelley Cook <kcook@gcc.gnu.org>
294 * Makefile.am: Add ../config to ACLOCAL_AMFLAGS.
295 * aclocal.m4, Makefile.in, testsuite/Makefile.in: Regenerate.
297 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
299 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
300 * aclocal.m4: Include ../config/gcc-version.m4.
301 * configure, Makefile.in, testsuite/Makefile.in: Regenerate.
303 2004-11-29 Kelley Cook <kcook@gcc.gnu.org>
305 * Makefile.am: Define ACLOCAL_AMFLAGS.
306 * acinclude.m4: Remove.
307 * stamp-h.in: Remove superfluous stamp file.
308 * aclocal.m4, configure, Makefile.in: Regenerate.
309 * testsuite/Makefile.in: Likewise.
311 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
313 * Makefile.am: Revert previous.
314 * acinclude.m4: Restore.
315 * aclocal.m4, configure, Makefile.in: Regenerate.
316 * testsuite/Makefile.in: Likewise.
318 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
320 * Makefile.am: Define ACLOCAL_AMFLAGS.
321 * acinclude.m4: Remove.
322 * aclocal.m4, configure, Makefile.in: Regenerate.
323 * testsuite/Makefile.in: Likewise.
325 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
327 * testsuite/lib/libmudflap.exp: Use new procs in target-libpath.exp.
329 2004-11-23 Kelley Cook <kcook@gcc.gnu.org>
331 * Makefile.in, configure, aclocal.m4: Regenerate with automake 1.9.3.
332 * testsuite/Makefile.in: Likewise.
334 2004-11-01 Andreas Schwab <schwab@suse.de>
336 * configure.ac: (target_alias): Default to $host_alias, not
338 * configure: Regenerated.
340 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
342 * testsuite/libmudflap.c/fail35-,pass53-,pass54-frag.c: New tests.
343 * testsuite/libmudflap.c/pass35-frag.c: Correct embedded warning
346 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
349 * testsuite/lib/libmudflap.exp: Accept more than one multilib libgcc.
351 2004-10-12 Frank Ch. Eigler <fche@redhat.com>
353 * configure.ac: Check for more headers, functions.
354 * mf-hooks2.c (mkbuffer, unmkbuffer): New helper functions for
355 tracking overridden FILE buffers.
356 (fopen, setvbuf): New/revised hook functions for buffer overriding.
357 (setbuf,setlinebuf,fdopen,freopen,fopen64,freopen64,fclose): Ditto.
358 (fflush): Accept given NULL stream (means "all streams").
360 * mf-runtime.c (__mfu_check): Accept accesses that span adjacent
362 (LOOKUP_CACHE_SIZE_MAX): Raise to 64K entries tentatively.
363 (__mf_adapt_cache): Use them all.
364 * testsuite/libmudflap.c/pass35-frag.c: Update warning message.
365 * testsuite/libmudflap.c++/ctors.exp: Ditto.
366 * testsuite/libmudflap.c/{pass51,pass52}-frag.c: New tests.
367 * configure, config.h.in: Regenerated.
369 2004-10-05 Frank Ch. Eigler <fche@redhat.com>
371 * configure.ac: Checking for sys/socket.h once is enough.
372 * configure: Regenerated.
374 2004-10-04 Frank Ch. Eigler <fche@redhat.com>
376 * configure.ac: Look for more headers & functions.
377 * mf-hooks2.c (getmntent, inet_ntoa, getproto*): New wrapper functions.
378 * mf-runtime.h.in: Add new "#pragma redefine_extname"s for them.
379 * mf-runtime.c (options): Clean up integer signedness warnings.
380 (main): Add a declaration to fix a warning.
381 * mf-hooks3.c (pthread_exit): Add not-reached exit() to wrapper.
382 * configure, config.h.in: Regenerated.
384 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
386 * testsuite/libmudflap.c/pass50-frag.c, fail33-frag.c, fail34-frag.c:
387 New tests for proper base/limit checking for aggregates.
389 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
391 * testsuite/libmudflap.c/pass35-frag.c: Update expected message.
393 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
395 * configure.ac: Look for pwd.h, grp.h, netdb.h headers and functions.
396 * mf-hooks2.c (strerror): Unregister previous string returned by
398 (getlogin,cuserid,getpwnam,getpwuid,getgrnam,getgrgid): New wrappers.
399 (getservent,getservbyname,getservbyport,gai_strerror): Ditto.
400 * mf-runtime.h.in: Add redefine_extname pragmas for them all.
401 * mf-runtime.c (__mf_describe_object): Clarify object life status.
402 * testsuite/libmudflap.c/pass48-frag.c, pass49-frag.c, fail32-frag.c:
404 * configure, config.h.in: Regenerated.
406 2004-08-03 Dale Johannesen <dalej@apple.com>
408 * mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.
410 2004-08-03 Frank Ch. Eigler <fche@redhat.com>
412 * mf-runtime.c (compare_uintptr_t): Remove function. Inline
413 simplified contents in all former callers.
415 2004-07-27 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
417 * mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in
418 the statically linked case.
420 2004-07-27 Frank Ch. Eigler <fche@redhat.com>
422 * splay-tree.[ch]: Remove. Merge contents into ...
423 * mf-runtime.c: ... here, renaming symbols and making all functions
424 static. Remove unused min/max functions.
425 * Makefile.am: Forget about splay-tree.[ch].
426 * Makefile.in, testsuite/Makefile.in: Regenerated.
428 2004-07-21 Frank Ch. Eigler <fche@redhat.com>
430 * mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling.
431 (__mfu_usage): Include (C) 2004.
432 * mf-hooks3.c (__mf_find_threadinfo): Don't call tracing functions
433 here. Include a comment explaining why.
435 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
437 * mf-impl.h (__mf_options): Add ignore_reads and timestamps fields.
438 * mf-runtime.c (options): Give them a name.
439 (__mf_set_default_options): Set them.
440 (__mf_insert_new_object, __mfu_unregister): Optionalize timestamps.
441 (__mf_violation): Warning cleanup.
442 * mf-impl.h (MF_VALIDATE_EXTENT): Support ignore_reads option.
443 * splay-tree.c (splay_tree_delete_helper): Remove obsolete decl.
445 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
448 * mf-runtime.c (__mf_init): Make it non-static. Tolerate
451 2004-07-09 Frank Ch. Eigler <fche@redhat.com>
453 Test case for g++/15861
454 * testsuite/libmudflap.c++/ctors-[12].cxx: New test case halves.
455 * testsuite/libmudflap.c++/ctors.exp: Driver.
456 * testsuite/libmudflap.c++/c++frags.exp: Elide redundant default.
457 Look only for *frag* test cases.
459 2004-07-08 Frank Ch. Eigler <fche@redhat.com>
461 ANSI C conversion, libmudflap specialization, recursion limiting.
462 * splay-tree.h (splay_tree_{de,}allocate_fn): Remove allocation_data
463 argument and indirection function pointers, update callers.
464 (splay_tree_s): Add statistics and recursion control fields
465 num_keys, max_depth, depth, rebalance_p.
466 * splay-tree.c (splay_tree_splay_helper): Track recursion depth.
467 Back out of search if it exceeds limit.
468 (splay_tree_splay): Manage recursion limiting with rebalancing as
470 (splay_tree_new): More initialization.
471 (splay_tree_rebalance): New function.
472 (splay_tree_foreach): Rewrite using nonrecursive logic.
473 (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate):
474 Remove. Point indirect calls to mf-runtime.c's routines.
475 (splay_tree_compare_ints, splay_tree_compare_pointers): Remove unused
477 (splay_tree_delete, splay_tree_delete_helper): Ditto.
478 * testsuite/heap-scalestress.c: New test based on one from
479 Eyal Lebedinsky <eyal@eyal.emu.id.au>:
481 2004-07-05 Matthias Klose <doko@debian.org>
483 * libtool-version: New.
484 * Makefile.am (libmudflap_la_LDFLAGS, libmudflapth_la_LDFLAGS):
485 Use -version-info for soname.
486 * Makefile.in: Regenerate.
487 * configure.ac: Remove libtool_VERSION macro
488 * configure: Regenerate
490 2004-07-05 Zack Weinberg <zack@codesourcery.com>
492 * mf-runtime.h.in: Wrap declarations of struct __mf_cache,
493 __mf_lookup_cache, __mf_lc_mask, or __mf_lc_shift in
496 2004-06-29 Frank Ch. Eigler <fche@redhat.com>
498 Splay tree implementation fork.
499 * splay-tree.c, splay-tree.h: Copied & modified from libiberty.
500 Use hard-coded comparison function for uintptr_t. Remove key/value
501 deallocation logic. Cache last splayed key for consecutive lookups.
502 * Makefile.am, Makefile.in: Use them, don't link to them.
503 * mf-runtime.c (__mf_object_tree): Adapt to simpler splay_tree_new.
504 (__mf_find_objects2): Flip successor/predecessor search sequence.
505 * ansidecl.h, libiberty.h: Removed dummy files.
507 2004-06-29 Nick Clifton <nickc@redhat.com>
509 * configure.ac (AC_CHECK_HEADERS): Add dirent.h
510 * configure: Regenerate.
511 * mf-hooks2.c: Surround uses of dirent.h with #ifdef
513 Remove spurious inclusion of <strings.h>.
515 2004-06-29 Nick Clifton <nickc@redhat.com>
517 * mf-runtime.c (pthread_join): Only apply the weak pragma if the
518 function actually exists.
520 2004-06-25 Frank Ch. Eigler <fche@redhat.com>
522 * ansidecl.h, libiberty.h: New dummy files for building splay-tree.
523 * config.h.in: Regenerated.
525 2004-06-24 Frank Ch. Eigler <fche@redhat.com>
527 Adopt splay trees for object database.
528 * Makefile.am: Copy splay-tree.* from libiberty.
529 * Makefile.in, testsuite/Makefile.in: Regenerated.
530 * mf-runtime.h.in (__mf_unregister): Add third parameter (type).
531 * mf-hooks[123].c (*): Add new third parameter to mf_unregister.
532 * mf-impl.h (BEGIN_PROTECT): Remove some trace text.
533 * mf-runtime.c: Rewrite code dealing with object database to use
534 libiberty splay trees. Remove tree liveness aging option.
535 * testsuite/libmudflap.c/fail18-frag.c: Add volatile flag.
537 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
539 * configure.ac: New name of configure.in. Update
540 AC_INIT, AC_CONFIG_SRCDIR, AC_CONFIG_HEADERS, AC_CONFIG_FILES,
541 AC_OUTPUT, AM_INIT_AUTOMAKE to the preferred style for
542 Autoconf 2.5x and Automake 1.7 or later.
543 * configure.in: Remove.
544 * configure: Regenerate.
546 * Makefile.am: Remove useless multilib rules.
547 * Makefile.in: Regenerate.
549 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
551 * .cvsignore: New file.
553 2004-06-10 Stephen Crowley <stephen.crowley@sbcglobal.net>
556 * mf-hooks2.c (semctl): Add cygwin porting hack.
558 2004-06-09 Frank Ch. Eigler <fche@redhat.com>
561 * configure.in: Look for ctype header and glibc implementation.
562 * mf-hooks2.c (__ctype_{b,toupper,tolower}_loc): Sample ctype
563 array hooks for glibc 2.3.
564 * mf-runtime.h.in: Wrap them.
565 * mf-runtime.c (__mf_init): Leave marker regarding other ctype
567 * testsuite/libmudflap.c/pass47-frag.c: New test.
568 * configure, config.h.in: Regenerated.
570 2004-06-04 Frank Ch. Eigler <fche@redhat.com>
572 Portability improvements, e.g., libmudflap/15293.
573 * configure.in: Look for glibc extension functions. Look for
574 support of -f{function,data}-sections. Look for more headers.
575 Create testsuite/mfconfig.exp. Correct more "test x.." thinkos.
576 * Makefile.am: Use $(SECTION_FLAGS). Collapse piecemeal-compiled
577 mf-hooks* into usual single object per source.
578 * mf-hooks*.c: Remove all #if WRAP_foo conditionals.
579 * mf-hooks2.c: #include a bunch more system headers. Define strnlen
580 if system doesn't provide one.
581 * mf-hooks3.c (struct pthread_info): Add stack_*_alloc fields.
582 (pthread_create): Use it to properly GC dead thread stacks.
583 * mf-runtime.c (__mf_violation): Correct snprintf type warning.
584 * testsuite/Makefile.am: Stop generating site.exp.
585 * testsuite/mfconfig.exp.in: New file.
586 * testsuite/config/default.exp: Load new mfconfig.exp.
587 * testsuite/lib/libmudflap.exp (libmudflap-init): Add extra libraries.
588 (prune_gcc_output): Add glibc static linking warnings.
589 * testsuite/libmudflap.*/*frags.exp: Enumerate needed -lmudflap* libs.
590 * testsuite/libmudflap.c/pass46-frag.c: Ditto.
591 * configure, Makefile, aclocal.m4, config.h.in, testsuite/Makefile.in:
592 Regenerated with autoconf 2.57 and automake 1.7.
594 2004-06-04 Per Bothner <per@bothner.com>
596 * configure.in (LIBMUDFLAPTH): Fix thinko.
598 * configure.in: Check for more headers.
599 * mf-hooks2.c: Conditionalize on HAVE_SYS_SOCKET_H etc.
601 * mf-runtime.c: In two places conditionalize on SIUSR1 rather than
602 HAVE_SIGNAL as mingw has signal.h but not SIUSR1.
604 2004-06-01 Andreas Jaeger <aj@suse.de>
606 * configure.in: Handle multilibs, support
607 --enable-version-specific-runtime-libs.
608 * Makefile.am (lib_LTLIBRARIES): Rename to ...
609 (toolexeclib_LTLIBRARIES): this for multilib support.
610 * Makefile.in: Regenerated.
611 * configure: Regenerated.
612 * aclocal.m4: Regenerated.
613 * config.h.in: Regenerated.
614 * testsuite/Makefile.in: Regenerated.
616 2004-06-01 Andreas Jaeger <aj@suse.de>
618 * testsuite/lib/libmudflap.exp (libmudflap-init): Handle
619 multilibs, using multilib directory instead of hardcoded path.
622 2004-05-21 Frank Ch. Eigler <fche@redhat.com>
624 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
625 * Makefile.in: Ditto.
627 2004-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
629 * acinclude.m4 (lt_cv_deplibs_check_method): Use pass_all on sh*.
630 * aclocal.m4, configure: Rebuilt.
632 2004-05-17 Frank Ch. Eigler <fche@redhat.com>
634 * lib/libmudflap.exp (libmudflap-init): For C++ test cases only,
635 import some build settings from libstdc++-v3 testsuite_flags.
636 * .../cfrags.exp, .../c++frags.exp, .../cthfrags.exp: Corresponding
637 changes to pass test language.
639 * mf-runtime.c (__mfu_check): Poison the cache with antidote for
640 quicker mode-nop handling.
642 2004-03-25 Frank Ch. Eigler <fche@redhat.com>
644 * mf-impl.h: Added libgcc license header.
646 2004-03-20 Frank Ch. Eigler <fche@redhat.com>
648 * mf-hooks[123].c, mf-runtime.c, mf-heuristics.c:
649 Added libgcc license header.
650 * mf-hooks3.c (__mf_0fn_pthread_create): Correct arg constness.
651 (pthread_create): Simplify stack allocation syntax.
653 2004-03-08 Loren J. Rittle <ljrittle@acm.org>
655 * mf-hooks2.c: Support FreeBSD.
656 (WRAP_gets): Avoid gets().
657 * testsuite/libmudflap.c/pass-stratcliff.c: Do not
658 test unimplemented mem/str calls on FreeBSD.
659 * testsuite/libmudflap.c/pass21-frag.c: Do not include
660 <alloca.h> on FreeBSD.
662 2004-01-30 Frank Ch. Eigler <fche@redhat.com>
664 * testsuite/libmudflap.c/pass36-frag.c: Add missing free() call.
665 * testsuite/libmudflap.c/pass46-frag.c: New test for -fmudflapir.
666 * testsuite/libmudflap.cth/cthfrags.exp: Add -DSTATIC to compiler
667 flags for static linking permutation.
668 * testsuite/libmudflap.cth/pass40-frag.c: When -DSTATIC, avoid
669 some pthreads code that croaks on linux glibc tls.
671 2004-01-27 Frank Ch. Eigler <fche@redhat.com>
673 * testsuite/libmudflap.c/fail31-frag.c, pass45-frag.c: New tests.
675 2004-01-15 Frank Ch. Eigler <fche@redhat.com>
677 * testsuite/libmudflap.c/pass44-frag.c: New test.
679 2004-01-12 Frank Ch. Eigler <fche@redhat.com>
681 * testsuite/libmudflap.c/fail{28,29,30}-frag.c: New tests.
683 2004-01-08 Frank Ch. Eigler <fche@redhat.com>
685 * testsuite/libmudflap.c/pass43-frag.c: Added missing program rc.
687 2003-12-11 Frank Ch. Eigler <fche@redhat.com>
689 * testsuite/libmudflap.c/pass42-frag.c, pass43-frag.c: New tests.
691 2003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
694 * configure.in: Add check for see if
695 socklen_t typedef is in sys/socket.h.
696 * mf-hooks1.c: Add define if socklen_t
698 * mf-hooks2.c: Likewise.
699 * mf-hooks3.c: Likewise.
700 * config.h.in: Regen.
703 2003-12-08 Frank Ch. Eigler <fche@redhat.com>
705 * mf-runtime.c (__mf_watch_or_not): Tweak tracing message.
706 * testsuite/libmudflap.c/fail21-frag.c: Defeat aliasing
708 * testsuite/libmudflap.c/pass25-frag.c: Ditto.
709 * testsuite/libmudflap.c/pass26-frag.c: Tolerate non-overlapping
710 (unoptimized) allocation of stack space.
712 2003-12-07 Richard Henderson <rth@redhat.com>
714 * testsuite/libmudflap.c/fail23-frag.c (main): Adjust addend to 11.
715 * testsuite/libmudflap.c/fail27-frag.c (foo): Mark noinline.
717 2003-12-06 Andrew Pinski <apinski@apple.com>
719 partial PR libmudflap/12670
720 * mf-hooks1.c: Respect Darwin checks. Conditionalize POSIX_SOURCE.
721 * mf-hooks2.c: Likewise.
722 * mf-hooks3.c: Likewise.
724 2003-11-19 Frank Ch. Eigler <fche@redhat.com>
727 * mf-runtime.h.in: Switch to #pragma redefine_extname for
728 symbols interposed at compile time.
729 * testsuite/libmudflap.c++/pass41-frag.cxx: New test.
732 * mf-hooks2.c (semctl): Tolerate FreeBSD.
734 * configure.in: Reorganize check for <pthread.h>.
735 * configure: Regenerated.
737 2003-11-04 David Edelsohn <edelsohn@gnu.org>
739 * mf-runtime.c (_ALL_SOURCE): Define for AIX.
740 (_LARGE_FILE_API): Define for AIX.
741 * mf-hooks[123]: Same.
742 (_XOPEN_SOURCE_EXTENDED): Define to 1 for AIX.
744 2003-10-21 David Edelsohn <edelsohn@gnu.org>
746 * mf-runtime.c (_XOPEN_SOURCE_EXTENDED): Define to 1 for AIX.
748 2003-07-29 Frank Ch. Eigler <fche@redhat.com>
750 2003-07-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
752 * configure.in: Update check for union semun.
754 2003-07-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
757 * mf-hooks2.c [WRAP_semctl]: Fix check for HAVE_UNION_SEMUN.
759 2003-07-29 Frank Ch. Eigler <fche@redhat.com>
762 * configure.in: Add checks for 64-bit LFS functions, struct semun
763 definition, for BSD compatibility.
764 * mf-hooks1.c: Respect BSD checks. Conditionalize POSIX_SOURCE.
765 * mf-hooks2.c: Ditto. Include <strings.h> for bcmp* decls.
766 * mf-hooks3.c: Ditto.
767 (pthread_create): Try MAP_ANON on platforms without the MAP_ANONYMOUS
769 * configure, config.h.in: Regenerated.
771 2003-07-23 Frank Ch. Eigler <fche@redhat.com>
773 Multithreading fixes:
774 * mf-runtime.c (__mf_object): Store allocating/deallocating
776 (options): Support new "-thread-stack" option.
777 Rename "-heur-argv-environ" option to "-heur-stdlib".
778 Disable "-lc-mask" and "-lc-shift" options.
779 (__mf_dynamic): Add function pointers for pthread_join/_exit.
780 (__assert_fail): New self-contained function for glibc.
781 * mf-hooks3.c: Essentially rewritten, particularly related to
782 use of __mf_pthread_info array.
783 (pthread_join, _exit): New hook functions.
784 * mf-impl.h (BEGIN_PROTECT): Handle starting_p case.
785 * testsuite/libmudflap.cth/pass40-frag.c: New test.
788 * mf-heuristics.c: Add type casts for tracing, sub calls.
789 * mf-impl.h (BEGIN_PROTECT): Redefine to omit result type.
790 Update all callers to declare explicit result holder.
791 (END_PROTECT): Removed.
792 * testsuite/*/*frags.exp: Clean up default MUDFLAP_OPTIONS.
794 2003-07-15 Diego Novillo <dnovillo@redhat.com>
796 * testsuite/libmudflap.c/fail21-frag.c: Add volatile modifiers.
797 * testsuite/libmudflap.c/fail15-frag.c: Likewise.
798 * testsuite/libmudflap.c/fail13-frag.c: Likewise.
800 2003-07-04 Frank Ch. Eigler <fche@redhat.com>
802 * mf-hooks1.c, 2.c, 3.c: New file, splits up content from old ...
804 * mf-impl.h (MF_VALIDATE_EXTENT, BEGIN_PROTECT, END_PROTECT):
805 Move these macros from old mf-hooks.c here.
806 * Makefile.am: Adapt to split-up hook sources for faster builds.
807 * Makefile.in: Regenerated.
809 * mf-heuristics.c: Remove #if-0 block.
811 * mf-impl.h (__mf_state): Reorganize declaration and implementation.
812 (__mf_starting_p): New state only for use while dlsym bootstrapping.
813 (CALL_REAL, __mf_init): Corresponding changes.
814 (TRACE, VERBOSE_TRACE): Include thread id and "mf:" prefix. Update
815 all callers to remove redundant "mf:" prefix.
816 * mf-runtime.h.in: #define a few reentrancy macros for libmudflapth.
817 * mf-hooks3.c: Rewrite chunks to support per-thread __mf_state value.
818 (__mf_pthread_info): Become a hash table.
820 * testsuite/lib/mfdg.exp: Support new "dg-timeout" and
821 "dg-repetitions" directives to control test case execution.
822 * testsuite/libmudflap.cth/pass37-frag.c: Add timeout and repeat
824 * testsuite/libmudflap.cth/pass39-frag.c: Ditto for this new test.
826 2003-06-25 Frank Ch. Eigler <fche@redhat.com>
828 * mf-hooks.c (alloca): Separate into stub.
829 (__mf_wrap_alloca_indirect): New function. Use CALL_REAL
830 malloc/free for alloca blocks.
831 (pthread_create): Tolerate failing pthread_attr_get* calls.
832 * mf-runtime.c (__mf_fini): Call __mf_wrap_alloca_indirect.
833 * mf-impl.h (CALL_WRAP): Remove macro.
834 * testsuite/libmudflap.c/pass21-frag.c: Include <alloca.h>.
835 * testsuite/libmudflap.c/pass23-frag.c: Include more struct
836 padding for ia64 BIT_FIELD_REF constructs.
838 2003-06-19 Frank Ch. Eigler <fche@redhat.com>
840 * mf-hooks.c (struct pthread_info): Add "thread_errno" field.
841 (__mf_pthread_spawner, __mf_pthread_cleanup): Use it with GUESS
842 libmudflap object type.
843 * mf-runtime.c (__mfu_unregister): Correct cemetary logic to avoid
844 crashes on unregistering STATIC objects.
846 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
848 Based on patch from Eyal Lebedinsky <eyal@eyal.emu.id.au>:
849 * mf-hooks.c (__mf_pthread_spawner): Register thread errno.
850 (time, strerror, fopen, fopen64, fclose, fread): New hooks.
851 (fwrite, fgetc, fgets, getc, gets, ungetc, fputc): New hooks.
852 (fputs, putc, puts, clearerr, feof, ferror, fileno): New hooks.
853 (printf, fprintf, sprintf, snprintf, vprintf, vfprintf): New hooks.
854 (vsprintf, vsnprintf, access, remove, fflush, fseek): New hooks.
855 (fseeko64, ftell, ftello64, rewind, fgetpos, fsetpos): New hooks.
856 (stat, stat64, fstat, lstat, mkfifo, setvbuf, setbuf): New hooks.
857 (setvbuf, opendir, closedir, readdir, recv, recvfrom): New hooks.
858 (recvmsg, send, sendto, sendmsg, setsockopt, getsockopt): New hooks.
859 (accept, bind, connect, gethostname, sethostname): New hooks.
860 (gethostbyname, wait, waitpid, popen, pclose, execve): New hooks.
861 (execv, execvp, system, dlopen, dlclose, dlerror, dlsym): New hooks.
862 (semop, semctl, shmctl, shmat, shmdt): New hooks.
863 * mf-runtime.h.in: Corresponding changes.
864 * mf-runtime.c (__mf_ini): Register stdio objects. Use STATIC type.
865 (opts) Rename heur_argv_environ to heur_std_data.
866 (__mf_wrap_main): Use STATIC type for argv/environ strings.
867 * Makefile.am: Corresponding changes.
868 * Makefile.in: Regenerated.
870 2003-06-11 Frank Ch. Eigler <fche@redhat.com>
872 * mf-heuristics.c (__mf_heuristic_check): Disable stack_bounds
873 heuristic for threaded case, and for non-x86-linux targets.
874 * mf-hooks.c (__mf_0fn_calloc): Provide a working dummy implementation
875 for use during pre-main() program startup.
876 (__mf_0fn_*): Make these functions non-static.
877 * mf-impl.h (DECLARE, CALL_REAL): Support calls to 0fn backup hook
879 * mf-runtime.c (__mf_state): Set initial state to "starting".
880 (__mf_resolve_single_dynamic): Tolerate repeated calls for same symbol.
881 (__wrap_main): New function to register argv[] and environ[] strings.
883 (*): In all trace functions, use "%p" as formatter for uintptr_t.
885 * testsuite/libmudflap.c/pass38-frag.c: New test case.
886 * testsuite/libmudflap.cth/pass37-frag.c: Improved test.
888 * acinclude.m4: Add comments with aoliva's concerns about x86_64
890 * aclocal.m4, configure: Regenerated.
892 2003-06-04 Frank Ch. Eigler <fche@redhat.com>
894 * acinclude.m4: Correct typo in AC_MSG_CHECKING.
895 * aclocal.m4, configure: Regenerated.
897 2003-06-03 Frank Ch. Eigler <fche@redhat.com>
899 * acinclude.m4: Force "pass_all" deplibs_check_method for libtool
900 for x86_64 target. Disable caching for this value.
901 * aclocal.m4, configure: Regenerated.
903 2003-06-02 Frank Ch. Eigler <fche@redhat.com>
905 * testsuite/libmudflap.c/pass38-frag.c: Deleted. -fwritable-strings
906 is about to become deprecated, and its present handling bugs are
909 2003-05-30 Frank Ch. Eigler <fche@redhat.com>
911 * testsuite/libmudflap.c/pass38-frag.c: New test for
914 2003-05-23 Frank Ch. Eigler <fche@redhat.com>
916 * mf-runtime.c (__mf_sigusr1_handle): Call unlocked variant of
917 __mf_report, asserting reentrant calling context.
919 2003-05-23 Frank Ch. Eigler <fche@redhat.com>
921 * mf-hooks.c (realloc): Correct reentrancy logic.
922 * testsuite/libmudflap.c/hook-allocstuff.c: New test case.
924 2003-05-20 Frank Ch. Eigler <fche@redhat.com>
926 * mf-hooks.c (LIBMUDFLAPTH_THREADS_MAX): New macro, replaces
927 PTHREAD_THREADS_MAX. Update users.
928 * mf-runtime.c (__mf_usage): Print [active] instead of [default]
930 * testsuite/Makefile.am (all-local): Prime dejagnu site.exp file
931 with libmudflapth presence indicator.
932 * testsuite/Makefile.in: Regenerated.
934 2003-05-16 Frank Ch. Eigler <fche@redhat.com>
936 * Makefile.am (AM_CFLAGS): Remove "-ansi".
937 * configure.in: Remove silly no-pthreads => no-shared logic.
938 * Makefile.in, configure: Regenerated.
939 * mf-heuristics.c (__mf_heuristic_check): Remove reentrancy hacks.
940 * mf-hooks.c (BEGIN_PROTECT, END_PROTECT): Reorganize reentrancy
941 code. Count reentrancy events.
942 (all hook functions): Don't directly manipulate __mf_state variable.
943 Add TRACE calls to hook functions without them.
944 * mf-impl.h (LOCKTH): Try to count lock contention events.
945 (VERBOSE_TRACE, TRACE): Remove reentrancy hacks.
946 * mf-runtime.c (BEGIN_RECURSION_PROTECT, END_RECURSION_PROTECT):
947 Reorganize reentrancy code.
948 (external __mf_ entry points): Use RECURSION_PROTECT mechanism to
949 identify reentrancy with mutex holding times.
950 (internal __mfu_ entry points): Remove internal reentrancy code.
951 (__mf_init): Use ordinary locked calls.
952 (__mfu_report): Print the two new counts.
953 * testsuite/lib/libmudflap.exp: Filter out junk ld/pthreads messages.
954 * testsuite/libmudfap.cth/cthfrags.exp: New test driver.
955 * testsuite/libmudflap.cth/pass37-frag.c: New pthreads test.
956 * testsuite/libmudfap.cth/cfrags.exp: Adapt to new libmudflap
959 2003-05-09 Frank Ch. Eigler <fche@redhat.com>
961 * configure.in: Add pthread support, plus glibc and porting hacks.
962 * Makefile.am (LIBMUDFLAPTH): New conditional, to build -lmudflapth
963 from objects built into ./pth/.
964 * mf-runtime.c (__mfu_watch,register,...): Fork new unlocked
965 functions for internal entry points. Update callers to pick
966 locked vs. unlocked variants.
967 (__mf_resolve_single_dynamic): Extend to support symbol versioning
968 info coming in from a static data structure.
969 (*): Reorder miscellaneous declarations to group data vs functions.
970 (__mf_set_default_options): Simplify.
971 (__mf_usage): Mention threading status of host executable.
972 * mf-impl.h: Move max/min decls here. Reorganize __mf_dynamic
973 decls to match above.
974 (LOCKTH, UNLOCKTH): New macros for Big Libmudflap Lock management.
975 * mf-heuristics.c: Choose between locked/unlocked calls. Add
976 some lock/unlock markers. Remove some unused code.
978 (pthread_create): New hook function.
979 (__mf_pthread_cleanup, _spawner): New helper functions.
980 * configure. aclocal.m4, config.h.in, Makefile.in: Regenerated.
982 2003-05-02 Frank Ch. Eigler <fche@redhat.com>
984 * testsuite/libmudflap.c/fail27-frag.c: Add more volatile flags.
986 2002-04-28 Frank Ch. Eigler <fche@redhat.com>
988 * Makefile.am (HOOKOBJS): Add *time related hooks.
989 * configure.in: Look for pthreads.h header.
990 * mf-hooks.c (asctime, ctime, gmtime, localtime): New wrappers.
991 * mf-runtime.c: Begin sketching some pthreads support.
992 (__mf_usage): Check for -lpthread presence.
993 (__mf_unregister): Confirm matching unregistration base.
994 (__mf_find_objects_rec): Reduce unnecessary recursion.
995 * mf-runtime.h.in: Add "nothrow" attribute to functions. Add
996 #defines for new hook functions.
997 * mf-impl.h: Corresponding changes.
998 * config.h.in, configure, Makefile.in: Regenerated.
1000 2002-04-27 Diego Novillo <dnovillo@redhat.com>
1002 * testsuite/libmudflap.c/fail1-frag.c: Add volatile
1003 modifiers to prevent being optimized away.
1004 * testsuite/libmudflap.c/fail10-frag.c: Likewise.
1005 * testsuite/libmudflap.c/fail13-frag.c: Likewise.
1006 * testsuite/libmudflap.c/fail14-frag.c: Likewise.
1007 * testsuite/libmudflap.c/fail15-frag.c: Likewise.
1008 * testsuite/libmudflap.c/fail2-frag.c: Likewise.
1009 * testsuite/libmudflap.c/fail20-frag.c: Likewise.
1010 * testsuite/libmudflap.c/fail3-frag.c: Likewise.
1012 2003-04-15 Frank Ch. Eigler <fche@redhat.com>
1014 * Makefile.am (libmudflap_la_LIBADD): Remove -ldl.
1015 * configure.in: Look for uintptr_t and -ldl on target.
1016 * mf-runtime.h.in: Adjust uintptr_t declaration logic.
1017 * Makefile.in, aclocal.m4, configure, config.h.in: Regenerated.
1018 * testsuite/Makefile.in: Regenerated.
1019 * mf-runtime.c (__mf_sigusr1_respond): Tweak declaration and calls
1020 for better C compliance.
1022 2003-04-15 Frank Ch. Eigler <fche@redhat.com>
1024 * mf-hooks.c (MF_VALIDATE_EXTENT): Remove unnecessary reentrancy
1026 * mf-runtime.c (__mf_set_default_options): Turn off
1027 check-initialization.
1028 (__mf_describe_object): Shorten description.
1029 * testsuite/libmudflap.c/fail25-frag.c: Turn on check-initialization.
1031 2003-04-07 Frank Ch. Eigler <fche@redhat.com>
1033 * mf-hooks.c (__mf_0fn_mmap): Correct return value, as per <rth>.
1035 2003-04-02 Frank Ch. Eigler <fche@redhat.com>
1037 * mf-hooks.c (BEGIN_PROTECT): Handle startup-time reentrant
1039 (__mf_0fn_malloc ... _munmap): New dummy backup calls.
1040 * mf-impl.h (CALL_BACKUP): New macros.
1041 * mf-runtime.c (__mf_init): Tweak __mf_state during startup.
1043 2003-03-31 Frank Ch. Eigler <fche@redhat.com>
1045 * Makefile.am (AM_CFLAGS): Remove optimization flags.
1046 (HOOKOBJS): Remove dlopen hook.
1047 (libmudflap_la_LIBADD): Add -ldl.
1048 * mf-hooks.c (dlopen): Remove hook.
1049 * mf-impl.h (__mf_dynamic): Ditto.
1050 * mf-runtime.c (__mf_resolve_dynamics): Ditto.
1051 * Makefile.in: Regenerated.
1053 2003-03-28 Frank Ch. Eigler <fche@redhat.com>
1055 * configure.in: Check for target gettimeofday, signal, some headers.
1056 * mf-impl.h (__mf_opts): Add new "sigusr1_report" field. Comment
1057 out inop multi_threaded field.
1058 * mf-runtime.c (options): Handle new "-sigusr1-report" option.
1059 (__mf_set_options): Correct handling of "-help".
1060 (__mf_sigusr1_respond): New function to manage SIGUSR1 response.
1061 (__mf_check, __mf_register, __mf_unregister): Call it.
1062 (__mf_insert_new_object, __mf_unregister): Respect HAVE_GETTIMEOFDAY.
1063 (__mf_report_leaks): Make callable
1064 (__mf_tree_analyze): Traverse in-order. Accumulate address bit
1065 distribution statistics.
1066 (__mf_adapt_cache): Rewrite shift guessing logic based on address
1068 * config.h.in, configure: Regenerated.
1069 * testsuite/libmudflap.c/fail27-frag.c: New test.
1070 * testsuite/libmudflap.c/pass36-frag.c: New test.
1072 2003-03-11 Frank Ch. Eigler <fche@redhat.com>
1074 * mf-runtime.h.in: Tweak.
1075 * Makefile.am, configure.in: Tweak mf-runtime.h generation some more.
1076 Don't use intermediate files nor AC_OUTPUT-time postprocessing.
1077 * Makefile.in, testsuite/Makefile.in, configure: Regenerated.
1079 2003-03-10 Frank Ch. Eigler <fche@redhat.com>
1081 * configure.in: Tweak generation of mf-runtime.h some more. It
1082 needs to work from both config.status and configure.
1083 * configure: Regenerated.
1085 2003-03-10 Frank Ch. Eigler <fche@redhat.com>
1087 * Makefile.am: Reorganize hook file building. Add auto dependencies.
1088 * configure.in: Tweak generation of mf-runtime.h.
1089 * mf-runtime.h.in: Add new __MF_TYPE_HEAP_I.
1090 * mf-hooks.c (*): Adapt to initialized-heap object type.
1091 * mf-impl.h: Tweak cemetary boundaries.
1092 * mf-runtime.c (__mf_check): Adapt to new initialized-heap object
1094 (__mf_insert_new_object, __mf_register, __mf_unregister): Ditto.
1095 (__mf_describe_object, __mf_report_leaks, __mf_violation): Ditto.
1096 * testsuite/lib/libmudflap.exp (includes): Include build tree.
1097 * testsuite/libmudflap.c/pass{26,5}: Further adapt to initialization
1099 * testsuite/.../fail{25,26}-frag.c: New tests.
1100 * testsuite/.../pass{32,33,34,35}-frag.c: New tests.
1101 * Makefile.in, configure: Regenerated.
1103 2003-03-05 Frank Ch. Eigler <fche@redhat.com>
1105 * mf-runtime.c (__mf_set_default_options): Turn on initialization
1106 checking by default.
1107 (__mf_insert_new_object): As a temporary hack, assume that new
1108 objects registered on the stack start out initialized.
1109 * testsuite/libmudflap.c/fail9,pass23,pass[6789]-*: Initialize
1110 heap objects by hand.
1112 2003-03-05 Frank Ch. Eigler <fche@redhat.com>
1114 Switch to macro-style hooks for str*/mem*/b* functions.
1115 * mf-runtime.h.in (__MF_TYPE_*): Moved some internal values out.
1116 (mem*, str*, b*): Added macro-style hooks for _MUDFLAP case.
1117 * mf-runtime.c: #include config.h to enable glibc backtraces again.
1118 (__mf_set_default_options): Turn off heur_proc_map.
1119 (*): Adapt to to macro-style hook functions.
1120 (__mf_object_dead_head, __mf_object_cemetary): Correct bounds.
1121 (__mf_check, __mf_register, __mf_unregister): Tweak tracing message.
1122 (__mf_violation): Handle __MF_VIOL_WATCH.
1123 * mf-impl.h (__MF_TYPE_*): Moved these internal values here.
1124 (__mf_dynamic): Removed mem*/str*/b* functions.
1125 (TRACE, VERBOSE_TRACE): Add reentrancy locking.
1126 (WRAPPER2): New macro for macro-style hooks.
1127 * mf-hooks.c: Convert mem*/str*/b* functions to simpler
1129 (BEGIN_PROTECT): Tweak tracing vs reentrancy-lock ordering.
1130 * mf-heuristics.c: Adapt to macro-style hook functions.
1131 Correct some comments.
1132 * testsuite/lib/mfdg.exp (dg-test): Simplify result string for
1133 output pattern tests.
1134 * testsuite/libmudflap.c/fail[89]-frag.c: Elaborate output test.
1135 * testsuite/libmudflap.c++/c++frags.exp: Enable non-static tests.
1137 2003-02-28 Frank Ch. Eigler <fche@redhat.com>
1139 * testsuite/libmudflap.c/fail23-frag.c, pass30-frag.c: New tests
1140 for global array registration.
1141 * testsuite/libmudflap.c++/fail24-frag.cxx, pass31-frag.cxx: Ditto.
1142 * testsuite/libmudflap.c++/c++frags.exp: Tweak -static multilib hack.
1144 2003-02-27 Frank Ch. Eigler <fche@redhat.com>
1146 * Makefile.am: Add gross make bug workarounds. Tweaked
1147 SUBDIRS and AM_CFLAGS.
1148 * Makefile.in: Regenerated.
1150 2003-02-26 Frank Ch. Eigler <fche@redhat.com>
1153 * configure.in (AC_PROG_CXX): Don't look for C++ any more.
1154 * Makefile.am (TESTS): Remove simple automake testing.
1155 * configure, Makefile.in: Regenerated.
1156 (SUBDIRS): Include new testsuite/ directory.
1157 * tests/*: Removed all files; moved bulk under:
1158 * testsuite/*: New subdirectory tree.
1159 * testsuite/libmudflap.c/cfrags.exp: New file, C test driver.
1160 * testsuite/libmudflap.c++/c++frags.exp: New file, C++ test driver.
1161 * testsuite/lib/libmudflap.exp: New file, derived from libstdc++.
1162 * testsuite/lib/mfdg.exp: New file, derived from dejagnu.
1163 * testsuite/config/default.exp: New file.
1164 * testsuite/Makefile.am, Makefile.in: New files.
1166 2003-01-29 Frank Ch. Eigler <fche@redhat.com>
1168 * Makefile.am (TESTS_ENVIRONMENT): Remove redundant "-mode-check".
1169 (TESTS): Add fail22 and pass29 tests.
1170 * mf-runtime.h.in: Change API to take void*/size_t region parameters.
1171 Add new access-type parameter for __mf_check. Move __MF_VIOL* out.
1172 * mf-impl.h: Corresponding changes. Update CLAMP* macros for void*
1173 values. Move __MF_VIOL* here.
1174 * mf-runtime.c (*): Adapt to void*/size_t API in mf-runtime.h.
1175 (check_initialization): New field in __mf_opts. Default off.
1176 (read_count,write_count): New fields in __mf_object.
1177 (__mf_check): Implement basic initialization checking.
1178 (__mf_insert_new_object): Assume STATIC|GUESS regions are initialized.
1179 (__mf_describe_object): Print new fields.
1180 (__mf_violation): Identify check/read vs. check/write in messages.
1181 * test/pass29-frag.c, test/fail22-frag.c: Basic tests for new
1182 "-check-initialized" mudflap option.
1183 * test/pass25-frag.c, test/fail21-frag.c: Adapt to API changes.
1184 * mf-hooks.c (MF_VALIDATE_EXTENT): Add new access-type parameter.
1185 Drop __FILE__/__LINE__ hack. Update callers.
1186 (*): Adapt to new mf-runtime.h API.
1187 * Makefile.in: regenerated.
1189 2003-01-24 Frank Ch. Eigler <fche@redhat.com>
1191 * configure.in: Build mf-runtime.h a more proper way.
1192 * mf-hooks.c (strdup, strndup): Correct reentrancy logic.
1193 * mf-runtime.c (verbose_violations): Turn on by default.
1194 * mf-runtime.h.in: Remove some miscellaneous stuff ...
1195 * mf-impl.h: ... and move it here.
1196 * configure: Regenerated.
1198 2003-01-22 Frank Ch. Eigler <fche@redhat.com>
1200 * configure.in: Look for C++ compiler.
1201 * test/*-frag.c, mf-driver.c: Reformatted with GNU indent and
1202 fixed type warnings when built with C++.
1203 * test/pass27-frag.cxx, pass28-frag.cxx: New C++ tests.
1204 * Makefile.am (TESTS): Run them.
1205 (*) Add new rules for building and running C++ tests.
1206 (TESTFLAGS): Set new default to avoid libstdc++-v3 shlib issues.
1207 * mf-runtime.h.in: Protect with extern "C".
1208 * Makefile, configure: Regenerated.
1210 2003-01-06 Frank Ch. Eigler <fche@redhat.com>
1212 Portability improvements.
1213 * configure.in: Look for glibc backtrace headers/functions.
1214 * mf-hooks.c: Don't include <execinfo.h> any more.
1215 * mf-runtime.c (__mf_set_options): Call more stdlib functions
1217 (__mf_backtrace): Provide alternate baby implementation in
1219 * test/mf-driver.c: Portability tweaks.
1220 * acinclude.m4: New file, containing top level libtool.m4.
1221 * aclocal.m4, configure, Makefile.in, config.h.in: Regenerated.
1223 2002-12-19 Frank Ch. Eigler <fche@redhat.com>
1225 * mf-runtime.h.in (HAVE_UINTPTR_T): Define unconditionally.
1227 2002-11-08 Frank Ch. Eigler <fche@redhat.com>
1229 * mf-runtime.c (options): Add new "wipe-heap", "wipe-stack"
1231 (__mf_unregister): Implement stack/heap object wiping.
1232 (__mf_set_options): Renamed from __mf_process_opts.
1233 (__mf_uncache_object): Change arg type, correct callers.
1234 * mf-impl.h: Corresponding changes.
1235 * mf-hooks.c (realloc): Save/restore heap-wiping flag.
1236 * mf-runtime.h.in (__mf_set_options): Extend public API.
1237 * test/pass26-frag.c: New test for stack wiping.
1238 * Makefile.am (TESTS): Run it.
1239 * Makefile.in: Regenerated.
1241 2002-11-07 Frank Ch. Eigler <fche@redhat.com>
1243 * mf-runtime.h.in (__mf_watch, __mf_unwatch): Extend public API.
1244 * mf-runtime.c (__mf_object_t): Add watching_p field.
1245 (__mf_watch_or_not): New function to implement
1246 object watch flagging.
1247 (__mf_watch, __mf_unwatch): New wrappers for above.
1248 (__mf_check, __mf_describe_object): Handle objects with watching_p.
1249 (__mf_count_violation): Enlarge array.
1250 (__mf_uncache_object): Renamed from __mf_remove_old_object. Don't
1251 unlink object. Clear cache properly.
1252 (__mf_unregister): Unlink object explicitly before uncaching.
1253 * test/fail21-frag.c, pass25-frag.c: New tests.
1254 * Makefile.in, aclocal.m4: Regenerated.
1256 2002-11-05 Frank Ch. Eigler <fche@redhat.com>
1258 * test/fail20-frag.c: New test for NULL pointer dereferencing.
1259 * Makefile.am (TESTS): Add it.
1260 * test/pass-stratcliff.c: Add decls of stpcpy.
1261 * configure.in: Test for <stdint.h>. Generate mf-runtime.h in
1262 build tree from config.h and new file mf-runtime.h.in.
1263 * mf-runtime.h.in: Renamed from mf-runtime.h. Tweak uintptr_t decl.
1264 * Makefile.in, configure, config.h.in: Regenerated.
1265 * mf-hooks.c: Add #undef for wrapped glibc str*/mem* macros.
1266 * mf-runtime.c (options, __mf_set_default_options): Support new
1267 default "abbreviate" option.
1268 (__mf_object.description_epoch): New field.
1269 (__mf_describe_object): Conditionally abbreviate objects already
1270 displayed in current epoch. Accept NULL input to increment epoch.
1271 (__mf_fini, __mf_ini): Reset description epoch.
1272 (__mf_register, __mf_unregister, __mf_adapt_cache, __mf_init): Ensure
1273 that NULL pointer slot in lookup cache is invalidated. Register a
1274 NOACCESS region around NULL.
1275 * mf-impl.h: Corresponding changes.
1277 2002-10-16 Frank Ch. Eigler <fche@redhat.com>
1279 * test/fail19-frag.c, pass24-frag.c, pass-stratcliff.c: New tests.
1280 * Makefile.am: Run them. Install mf-runtime.h.
1281 * Makefile.in: Regenerated.
1282 * mf-hooks.c: Add some markers for more missing functions.
1283 * mf-runtime.c (__mf_adapt_cache): Experiment with a utilization-based
1284 statistic to tune tune cache size (mask).
1286 2002-10-01 Frank Ch. Eigler <fche@redhat.com>
1288 * test/pass23-frag.c: New test for bit_field_ref expressions.
1289 * Makefile.am, Makefile.in: Add new test.
1290 * mf-hooks.c (mmap, munmap): Rewrite to track individual pages.
1291 (MF_VALIDATE_EXTENT): Accept zero-size mem/str operations.
1292 * mf-runtime.c (__mf_init): Register errno global.
1293 (__mf_find_object): Removed function.
1294 (__mf_check): Rewrite logic to support accesses across some
1295 contiguous but distinctly registered objects.
1296 (__mf_remove_old_object): Tolerate cache entries that span
1299 2002-09-30 Frank Ch. Eigler <fche@redhat.com>
1301 * test/pass21-frag.c, pass22-frag.c: New tests: alloca, bitfields.
1302 * Makefile.am, Makefile.in: Run new tests.
1303 * mf-hooks.c (alloca): Correct stack direction logic.
1305 2002-09-26 Frank Ch. Eigler <fche@redhat.com>
1307 * mf-impl.h (adapt_cache): New option.
1308 * mf-runtime.c (__mf_set_default_options): Set its default value.
1309 Tweak the tree_aging parameter down.
1310 (__mf_check): Maintain separate counter for cache-adaptation.
1311 (__mf_tree_analyze): New function to collect object tree stats.
1312 (__mf_adapt_cache): New function to automate cache parameters.
1314 2002-09-24 Frank Ch. Eigler <fche@redhat.com>
1316 * mf-heuristics.c (__init_misc, __mf_heuristic_check): Add
1317 hypothetical #if-0'd argv/envp region registration.
1318 * mf-runtime.c (__mf_init): Add kludged form of above.
1319 (*) Add "heur_argv_environ" flag, default on, to govern this.
1320 * mf-impl.h: Corresponding changes.
1322 2002-09-20 Frank Ch. Eigler <fche@redhat.com>
1324 * test/fail18-frag.c: New test file for NOACCESS regions.
1325 * Makefile.am (TESTS): Add new test.
1326 * Makefile.in: Regenerated.
1328 * mf-heuristics.c (__mf_heuristics_check): Correct deja_vu logic.
1329 * mf-impl.h (tree_aging): Add new mudflap_option, default 1000000.
1330 (optimize_object_tree): Remove unused mudflap_option.
1331 * mf-runtime.h (__MF_TYPE_NOACCESS): New region type. Add printing
1332 support throughout. Use .._MAX_CEM for cemetary upper bound.
1333 * mf-runtime.c (__mf_init): Register __mf_* globals as NOACCESS
1335 (__mf_object): Add new liveness field for use by tree aging.
1336 (__mf_check): Trigger tree aging when needed.
1337 (__mf_age_tree): New function to decay liveness field.
1338 (__mf_find_objects_rec): Use liveness field to rotate tree.
1339 (__mf_insert_new_object): Only provide backtrace for HEAP objects.
1340 (__mf_unregister): Ditto.
1341 (__mf_register): Tweak duplicate-static message.
1342 (__mf_violation: Tweak nearby-object counter printing.
1344 2002-09-16 Frank Ch. Eigler <fche@redhat.com>
1346 * test/pass20-frag.c: New test file.
1347 * Makefile.am (TESTS): Reorganize. Add pass20 test.
1348 * Makefile.in: Regenerated.
1350 * mf-impl.h (TRACE_IN, TRACE_OUT): Remove macros. Update callers.
1351 * mf-hooks.c (BEGIN_PROTECT): Add hook tracing here.
1352 * mf-heuristic.c (__mf_heuristic_check): Track seen /proc/self/map
1353 entries to avoid repeat registration.
1354 * mf-runtime.c (__mf_object_cemetary): Don't bother bury GUESS regions.
1355 (__mf_register, __mf_unregister): Rewrite GUESS handling logic.
1357 2002-09-09 Frank Ch. Eigler <fche@redhat.com>
1359 * Makefile.am: Create test sources with #include, not cat>>.
1360 * Makefile.in: Regenerated.
1361 * test/buildtest.sh: Removed.
1362 * test/driver.c (abort_handler, main): Be quiet.
1364 2002-09-06 Frank Ch. Eigler <fche@redhat.com>
1366 * test/pass18-frag.c, pass19-frag.c: New tests.
1367 * Makefile.am (check): Run them. Rebuild test programs each time.
1368 * Makefile.in: Regenerated.
1370 2002-09-06 Frank Ch. Eigler <fche@redhat.com>
1372 * mf-runtime.c (__mf_register): Correct SEGV-inducing error in
1373 overlapping object search.
1374 (__mf_violation): Likewise for nearby objects.
1375 Improve nearby-object listing.
1378 * mf-runtime.c, mf-hooks.c: Remove "{{{"/"}}}" folding marks.
1379 * mf-heuristics.c (__mf_heuristic_check): Tweak message.
1381 2002-09-03 Frank Ch. Eigler <fche@redhat.com>
1384 * Makefile.am (AM_CFLAGS): New definition of needed settings.
1385 (HOOKOBJS): Add alloca-hook.o.
1386 * mf-hooks.c (alloca): New function to implement alloca in libiberty
1388 * mf-runtime.c (__mf_report): Call alloca(0) to flush remaining blocks.
1389 (__mf_backtrace): Reimplement without using alloca.
1390 * Makefile.in: Regenerated.
1393 * mf-hooks.c: Use VERBOSE_TRACE throughout instead of fprintf(stderr).
1394 Correct signedness bugs in length-tracking variables.
1395 * mf-impl.h: Make options unsigned.
1396 (CALL_WRAP): New macro to parallel CALL_REAL().
1397 (DECLARE): Remove erroneous ";" at end.
1398 * mf-runtime.c, mf-hooks.c, mf-heuristics.c: Replace remaining %p
1399 formatting specs with %08lx. Correct several compiler warnings.
1401 2002-08-28 Frank Ch. Eigler <fche@redhat.com>
1403 * mf-runtime.c (__mf_violation): Try harder to locate nearby objects.
1405 2002-08-27 Frank Ch. Eigler <fche@redhat.com>
1407 libmudflap hook breakup:
1408 * Makefile.am (TESTS_ENVIRONMENT): Add ../../gcc to LD_LIBRARY_PATH
1410 (TESTS): Make dependent on libmudflap.
1411 (HOOKOBJS): Break up mf-hooks.o into many little hook objects,
1412 compiled from segments of mf-hooks.c.
1413 * mf-hooks.c: Corresponding changes: wrap each function in
1415 * Makefile.in: Regenerated.
1417 Heuristics reorganization:
1418 * mf-heuristics.c (__mf_register_ro_sections, __mf_init_heuristics):
1419 Remove these functions. Update callers.
1420 (__mf_heuristic_check): Incorporate all the various heuristics.
1421 Encode cacheability/retry judgement into trinary return value.
1422 Separate start-end logic into a separate fallback heuristic. Only
1423 register relevant /proc/self/map segments.
1424 * mf-impl.h: Corresponding changes.
1425 * mf-runtime.c (__mf_check): Reorganize heuristics fallback logic.
1426 (__mf_init): Don't call __mf_init_heuristics.
1429 * mf-heuristics.c, mf-runtime.c: Use new MUDFLAP_OPTION
1430 "-verbose-trace" to emit all tracing messages other than those of
1431 basic public api. Eliminate some duplicate/excessive messages.
1432 * mf-runtime.h: Corresponding changes.
1434 2002-08-27 Graydon Hoare <graydon@redhat.com>
1436 * mf-impl.h (WRAPPER): Change to create linker aliases for __wrap
1437 and __real when compiled with -DPIC.
1438 * mf-hooks.c (WRAPPER): Change all uses of WRAPPER macro slightly.
1439 * Makefile.am (AUTOMAKE_OPTIONS): Fix LD_LIBRARY_PATH for tests.
1440 * Makefile.in: Regenerate.
1442 2002-08-26 Graydon Hoare <graydon@redhat.com>
1444 * mf-impl.h: New file, private implementation header.
1445 * mf-runtime.h: Reorganize a bit.
1446 (CLAMPSZ): Fix arithmetic.
1447 (__MF_CACHE_MISS_P): Fix arithmetic.
1448 * mf-runtime.c: Reorganize a bit.
1449 (__mf_dynamic): New structure.
1450 (resolve_single_dynamic): New function.
1451 (__mf_resolve_dynamics): New function.
1452 (__mf_init): Initialize dynamic wrappers.
1453 * mf-hooks.c: Macro-ize __real calls.
1454 Clamp various bits of arithmetic.
1455 Add explicit __mf_check call contexts.
1456 * Makefile.am: Add dependencies on mf-impl.h
1457 * Makefile.in: Regenerate.
1458 * configure.in: Comment out shared override.
1459 * configure: Regenerate.
1461 2002-08-22 Graydon Hoare <graydon@redhat.com>
1463 * mf-runtime.c (__mf_process_opts): Sanity-check free_queue_length.
1464 (__mf_check): Re-inialize and check heuristics before violation.
1465 (__mf_register): Permit updating pure-guess regions.
1466 * mf-hooks.c (__wrap_free): Correct some free queue logic.
1467 (__wrap_dlopen): New wrapper function.
1468 (__wrap_mmap): New wrapper function.
1469 (__wrap_munmap): New wrapper function.
1470 * mf-heuristics.c (__mf_register_ro_sections): Register *all* regions
1471 which are not stack addresses.
1472 (is_stack_address): New function.
1473 (__mf_init_heuristics): Save and restore state, always initialize with
1476 2002-08-21 Frank Ch. Eigler <fche@redhat.com>
1478 * mf-hooks.c (MF_VALIDATE_EXTENT): Rewrite to correct off-by-one
1479 error. Pass location string.
1480 (wrap_strcpy, wrap_strncpy): Remove extra %s in trace strings.
1481 * mf-runtime.c (options): Add lc-mask, lc-shift options.
1482 (__mf_process_opts): Apply some sanity checking for lc-mask.
1483 (__mf_check, __mf_violation): Take new location-string argument.
1484 Update callers to pass NULL if necessary.
1485 (__mf_backtrace): New smart backtracer function. Calls replace
1486 several ad-hoc blocks elsewhere.
1487 (__mf_describe_object): Remove bad reentrancy test. Improve
1489 * mf-runtime.h: Corresponding changes. Public/private markup.
1490 (__MF_CACHE_MISS_P): New macro.
1492 2002-08-20 Graydon Hoare <graydon@redhat.com>
1494 * mf-runtime.h: New option: stack_bound (heuristic).
1495 Move some macros out of implementation files.
1496 * mf-runtime.c: New option string: -stack-bound.
1497 Unify recursion protection with hooks.
1499 (__mf_check): Call __mf_heuristic_check.
1500 (__mf_process_opts): Fix "no-" processing.
1501 * mf-heuristics.c (__mf_heuristic_check): New function.
1502 * mf-hooks.c: Much off-by-one fixing, recursion protection.
1504 2002-08-20 Frank Ch. Eigler <fche@redhat.com>
1506 Option parsing improvements, region splitting bug fixes:
1507 * mf-heuristics.c (__mf_register_ro_sections): Add warned casts.
1508 * mf-runtime.h (heur_proc_map): New libmudflap option.
1509 * mf-runtime.c (__mf_set_default_options): Set it.
1510 (__mf_usage): Print default values/status.
1511 (__mf_process_opts): Support general "no-" option string prefix.
1512 (__mf_init): Print __mf_usage on unknown-option error.
1513 (__mf_register): Print trace message up front.
1514 Correct region splitting logic for case where a subregion disappears.
1515 Correct memory leak.
1516 (__mf_violation): Make even basic message conditional on option.
1519 * Makefile.am (TESTS_ENVIRONMENT): Add -no-heur-proc-map.
1520 (clean-local): New target.
1521 (test/*x rules): Add -g CFLAGS.
1522 (CFLAGS): Add -freorder-blocks.
1523 (MFCONFIG_CFLAGS, INCLUDE): Remove unneeded settings.
1524 * Makefile.in: Regenerated.
1525 * Makefile, mf-config.h: Removed files.
1527 2002-08-16 Graydon Hoare <graydon@redhat.com>
1529 * mf-runtime.c (__mf_insert_new_object): Factor out of
1531 (__mf_remove_old_object): Factor out of __mf_unregister.
1532 (__mf_register): Handle guessed regions, splitting
1533 guesses when new registrations arrive.
1534 (__mf_unregister): Do not unregister guesses.
1535 * mf-runtime.h: Move convenience macros around,
1536 declare new option fields. Add __MF_TYPE_GUESS.
1537 * mf-hooks.c (__wrap_*alloc): Use crumple zones.
1538 (__wrap_free): Call __real_free for deferred frees.
1539 * Makefile.am: Add more tests, fix dependency.
1540 * Makefile.in: Regenerate.
1541 * test/pass[13..17]-frag.c: New testcases.
1542 * test/fail[13..17]-frag.c: New testcases.
1544 2002-08-15 Graydon Hoare <graydon@redhat.com>
1546 * mf-heuristics.c: New file.
1547 * mf-runtime.c (options): Add -trace-calls option.
1548 (__mf_init): Call __mf_init_heuristics.
1550 2002-08-14 Graydon Hoare <graydon@redhat.com>
1552 * Makefile.am (TESTS): Add testsuite support.
1553 * Makefile.in: Regenerate.
1554 * test/mf-driver.c: New file.
1555 * test/buildtest.sh: New file.
1556 * test/passNN-frag.c: New testcases.
1557 * test/failNN-frag.c: New testcases.
1559 2002-08-14 Graydon Hoare <graydon@redhat.com>
1561 * mf-hooks.c: Change __real_strlen() to __real_strlen()+1 when
1562 verifying non-size-limited string extents.
1564 2002-08-14 Frank Ch. Eigler <fche@redhat.com>
1566 * mf-hooks.c: Make __wrap string* functions use __real_str[n]len
1567 instead of plain str[n]len for internal checks.
1568 * mf-runtime.c (__mf_violation): Print optional stack traceback.
1570 2002-08-14 Frank Ch. Eigler <fche@redhat.com>
1572 * mf-hooks.c: Remove #if-0 around hooks that are now ld-wrapped.
1574 2002-08-13 Graydon Hoare <graydon@redhat.com>
1576 * mf-runtime.c: Rework configuration to operate on
1577 environment variable options rather than #defines
1578 (__mf_violation): Add simple fork-a-gdb violaiton mode.
1579 (__mf_init): Set static __mf_active_p flag on startup,
1580 to inhibit mudflap wrap-based checking during crt0.s.
1581 * mf-runtime.h: Declare options structure.
1582 * mf-hooks.c: New wrappings for mem*, b*, str*
1583 libc functions (temporarily #if 0-ed out).
1585 2002-08-12 Frank Ch. Eigler <fche@redhat.com>
1587 * Makefile.am, configure.in: New files.
1588 * Makefile.in, Makefile, configure, config.h.in: New generated files.
1589 * stamp-h.in, aclocal.m4: Ditto.
1591 2002-08-08 Frank Ch. Eigler <fche@redhat.com>
1593 * Makefile: New file.
1594 * mf-config.h: New file: runtime configuration.
1595 * mf-hooks.c: New file: interposed libc functions.
1596 * mf-runtime.c: New file: bulk of runtime.
1597 * mf-runtime.h: New file: public functions.