re PR target/23847 (Darwin -mpowerpc64 complex ABI breakage)
[official-gcc.git] / libmudflap / ChangeLog
blob12735cb90f468a91b09de0836fb317fbef10ad14
1 2005-09-23  Frank Ch. Eigler  <fche@elastic.org>
3         PR 23084.
4         * mf-hooks2.c (accept): Tolerate NULL sockaddr* parameter.
6 2005-09-23  Frank Ch. Eigler  <fche@elastic.org>
8         * testsuite/libmudflap.c++/pass58-frag.cxx: New test for heisenbug 19319.
10 2005-09-23  Tom Tromey  <tromey@redhat.com>
12         * aclocal.m4, configure: Rebuilt.
13         * configure.ac: Use GCC_CHECK_TLS.
14         * acinclude.m4 (LIBMUDFLAP_CHECK_TLS, LIBMUDFLAP_ENABLE): Moved
15         to ../config.
17 2005-08-22  Jim Wilson  <wilson@specifix.com>
19         * mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
20         __FreeBSD__ is defined.
22 2005-08-17  Jim Wilson  <wilson@specifix.com>
24         * mf-hooks1.c (malloc, calloc, realloc, free,
25         __mf_wrap_alloca_indirect): Call BEGIN_MALLOC_PROTECT before calling
26         the real routines, and END_MALLOC_PROTECT afterwards.
27         * mf-impl.h (enum __mf_state_enum): Expand comment.  Add in_malloc.
28         (BEGIN_PROTECT): Handle in_malloc state.
29         (BEGIN_MALLOC_PROTECT, END_MALLOC_PROTECT): New.
30         * testsuite/libmudflap.c/hook2-allocstuff.c: New.
32 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
34         * All files: Update FSF address.
36 2005-08-15  Ulrich Weigand  <weigand@informatik.uni-erlangen.de>
38         * mf-hooks3.c (main_seen_p): Remove.
39         (__mf_get_state): Remove attempt to recognize the main thread.
41 2005-08-15  Maciej W. Rozycki  <macro@linux-mips.org>
43         * configure.ac: Test for the name of the symbol used for the entry
44         point; define ENTRY_POINT to the result.
45         * configure: Regenerate.
46         * config.h.in: Regenerate.
47         * mf-heuristics.c: Replace _start with ENTRY_POINT throughout.
49 2005-08-14  Ulrich Weigand  <weigand@informatik.uni-erlangen.de>
51         * mf-runtime.c (__mf_state_1): Initialize to reentrant.
52         (__mf_init): Set thread state active.
53         * mf-hooks3.c (__mf_pthread_spawner): Always set thread
54         state active.
55         (pthread_create wrapper): Always use thread spawner.
57         * testsuite/libmudflap.cth/pass37-frag.c: Increase timeout.
58         * testsuite/libmudflap.cth/pass39-frag.c: Likewise.
60 2005-07-16  Richard Henderson  <rth@redhat.com>
62         * acinclude.m4: New file.
63         * configure.ac: Invoke LIBMUDFLAP_CHECK_TLS.
64         * configure, config.h.in, Makefile.in, testsuite/Makefile.in: Rebuild.
65         * mf-hooks1.c (__mf_0fn_malloc): Move body from ...
66         (__mf_0fn_calloc): ... here.
67         * mf-hooks3.c (struct pthread_info): Remove.
68         (__mf_pthread_info, __mf_pthread_info_idx): Remove.
69         (LIBMUDFLAPTH_THREADS_MAX): Set to 1021.
70         (struct mf_thread_data): New.
71         (mf_thread_data, mf_thread_data_lock): New.
72         (__mf_allocate_blank_threadinfo): Remove.
73         (__mf_find_threadinfo): Rewrite and simplify.  Only use if TLS is
74         not available.
75         (__mf_state_perthread): Remove.
76         (__mf_get_state, __mf_set_state): New.
77         (__mf_pthread_cleanup): Use &errno, rather than saved pointer.
78         Update mf_thread_data killing procedure.
79         (__mf_pthread_spawner): Similarly.
80         (__mf_0fn_pthread_create): Only use wrapper if necessary.  Remove
81         code to allocate thread stack space.
82         (__mf_0fn_pthread_join, pthread_join): Remove.
83         (__mf_0fn_pthread_exit, pthread_exit): Remove.
84         * mf-impl.h (dyn_pthread_join, dyn_pthread_exit): Remove.
85         (__mf_state_1): Rename from __mf_state; use TLS when available.
86         (__mf_get_state, __mf_set_state): New.  Update all users.
87         * mf-runtime.c (begin_recursion_protect1): New.
88         (BEGIN_RECURSION_PROTECT): Use it.
89         (__mf_state_1): Rename from __mf_state; use TLS when available.
90         (threads_active_p): Remove.
91         (__mf_usage): Compute it directly.
93 2005-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
95         * testsuite/libmudflap.c/externs-1.c (main): Add return statement.
97 2005-06-15  Frank Ch. Eigler  <fche@redhat.com>
99         Fix for uncaching bug reported by Herman ten Brugge.
100         * mf-runtime.c (__mf_uncache_object): Search whole cache.
101         * testsuite/libmudflap.c/fail40-frag.c: New test.
103 2005-05-23  Alfred M. Szmidt  <ams@gnu.org>
105         PR libmudflap/21724
106         * Makefile.am (AM_MAKEFLAGS): Pass includedir.
107         * Makefile.in: Amend.
109 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
111         PR mudflap/21023
112         * testsuite/libmudflap.c/externs.exp, externs-{1,2}.c: New test files.
113         * testsuite/libmudflap.c/cfrags.exp: Bypass new sources.
115 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
117         PR libmudflap/21094
118         * testsuite/libmudflap.c++/*.exp: Assert build tree g++.
120 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
122         PR mudflap/22064
123         * mf-impl.h (mudflap_mode, violation_mode): Make these ordinary
124         unsigned vars with #defines instead of enums.
126 2005-05-09  Mike Stump  <mrs@apple.com>
128         * configure: Regenerate.
130 2005-04-12  Mike Stump  <mrs@apple.com>
132         * configure: Regenerate.
134 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
136         PR mudflap/19266
137         * testsuite/libmudflap.c++/c++frags.exp: Also test -O permutation.
138         * testsuite/libmudflap.c++/pass57-frag.cxx: New test.
140 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
142         * mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.
144 2005-03-31  Mike Stump  <mrs@apple.com>
146         * mf-runtime.h: Add libmudflap copyright clause.
148 2005-03-21  Mike Stump  <mrs@apple.com>
150         * mf-heuristics.c: Fix whitespace at end of line.
151         * mf-hooks1.c: Likewise.
152         * mf-hooks2.c: Likewise.
153         * mf-hooks3.c: Likewise.
154         * mf-impl.h: Likewise.
155         * mf-runtime.c: Likewise.
156         * mf-runtime.h: Likewise.
158 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
160         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
161         In all substitutions, expand gcc_version in Makefile.
162         * aclocal.m4, configure: Regenerate.
163         * Makefile.am: Set gcc_version.
164         * Makefile.in, testsuite/Makefile.in: Regenerate.
166 2005-03-17  Frank Ch. Eigler  <fche@redhat.com>
168         * mf-runtime.c (__mfu_check): Respect ignore_reads configuration.
169         * testsuite/libmudflap.c/{pass56,fail39}-frag.c: New tests.
171 2005-02-13  Frank Ch. Eigler  <fche@redhat.com>
173         PR mudflap/19319
174         * testsuite/libmudflap.c++/pass55-frag.c: New test.
176 2005-01-05  Richard Henderson  <rth@redhat.com>
178         * testsuite/libmudflap.c/pass32-frag.c: Fix typo.
180 2005-01-02  Greg McGary  <greg@mcgary.org>
182         * mf-impl.h (uintptr_t): Get typedef via stdint.h or define explicitly.
183         * mf-runtime.h: New file, replaces mf-runtime.h.in.
184         * configure.ac (AC_CONFIG_FILES): mf-runtime.h is no longer generated.
185         * Makefile.in: Ditto.
186         * testsuite/lib/libmudflap.exp: Add -I${srcdir}/.. to get mf-runtime.h
187         * testsuite/libmudflap.c/pass32-frag.c: s/uintptr_t/__mf_uintptr_t/
188         * testsuite/libmudflap.c/fail36-frag.c: New test.
189         * testsuite/libmudflap.c/fail37-frag.c: New test.
190         * testsuite/libmudflap.c/fail38-frag.c: New test.
192 2004-12-08  Kelley Cook  <kcook@gcc.gnu.org>
194         * Makefile.am: Add ../config to ACLOCAL_AMFLAGS.
195         * aclocal.m4, Makefile.in, testsuite/Makefile.in: Regenerate.
197 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
199         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
200         * aclocal.m4: Include ../config/gcc-version.m4.
201         * configure, Makefile.in, testsuite/Makefile.in: Regenerate.
203 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
205         * Makefile.am: Define ACLOCAL_AMFLAGS.
206         * acinclude.m4: Remove.
207         * stamp-h.in: Remove superfluous stamp file.
208         * aclocal.m4, configure, Makefile.in: Regenerate.
209         * testsuite/Makefile.in: Likewise.
211 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
213         * Makefile.am: Revert previous.
214         * acinclude.m4: Restore.
215         * aclocal.m4, configure, Makefile.in: Regenerate.
216         * testsuite/Makefile.in: Likewise.
218 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
220         * Makefile.am: Define ACLOCAL_AMFLAGS.
221         * acinclude.m4: Remove.
222         * aclocal.m4, configure, Makefile.in: Regenerate.
223         * testsuite/Makefile.in: Likewise.
225 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
227         * testsuite/lib/libmudflap.exp: Use new procs in target-libpath.exp.
229 2004-11-23  Kelley Cook  <kcook@gcc.gnu.org>
231         * Makefile.in, configure, aclocal.m4: Regenerate with automake 1.9.3.
232         * testsuite/Makefile.in: Likewise.
234 2004-11-01  Andreas Schwab  <schwab@suse.de>
236         * configure.ac: (target_alias): Default to $host_alias, not
237         $target.
238         * configure: Regenerated.
240 2004-10-28  Frank Ch. Eigler  <fche@redhat.com>
242         * testsuite/libmudflap.c/fail35-,pass53-,pass54-frag.c: New tests.
243         * testsuite/libmudflap.c/pass35-frag.c: Correct embedded warning
244         message.
246 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
248         PR other/18138
249         * testsuite/lib/libmudflap.exp: Accept more than one multilib libgcc.
251 2004-10-12  Frank Ch. Eigler  <fche@redhat.com>
253         * configure.ac: Check for more headers, functions.
254         * mf-hooks2.c (mkbuffer, unmkbuffer): New helper functions for
255         tracking overridden FILE buffers.
256         (fopen, setvbuf): New/revised hook functions for buffer overriding.
257         (setbuf,setlinebuf,fdopen,freopen,fopen64,freopen64,fclose): Ditto.
258         (fflush): Accept given NULL stream (means "all streams").
259         * mf-runtime.h.in:
260         * mf-runtime.c (__mfu_check): Accept accesses that span adjacent
261         HEAP/GUESS objects.
262         (LOOKUP_CACHE_SIZE_MAX): Raise to 64K entries tentatively.
263         (__mf_adapt_cache): Use them all.
264         * testsuite/libmudflap.c/pass35-frag.c: Update warning message.
265         * testsuite/libmudflap.c++/ctors.exp: Ditto.
266         * testsuite/libmudflap.c/{pass51,pass52}-frag.c: New tests.
267         * configure, config.h.in: Regenerated.
269 2004-10-05  Frank Ch. Eigler  <fche@redhat.com>
271         * configure.ac: Checking for sys/socket.h once is enough.
272         * configure: Regenerated.
274 2004-10-04  Frank Ch. Eigler  <fche@redhat.com>
276         * configure.ac: Look for more headers & functions.
277         * mf-hooks2.c (getmntent, inet_ntoa, getproto*): New wrapper functions.
278         * mf-runtime.h.in: Add new "#pragma redefine_extname"s for them.
279         * mf-runtime.c (options): Clean up integer signedness warnings.
280         (main): Add a declaration to fix a warning.
281         * mf-hooks3.c (pthread_exit): Add not-reached exit() to wrapper.
282         * configure, config.h.in: Regenerated.
284 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
286         * testsuite/libmudflap.c/pass50-frag.c, fail33-frag.c, fail34-frag.c:
287         New tests for proper base/limit checking for aggregates.
289 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
291         * testsuite/libmudflap.c/pass35-frag.c: Update expected message.
293 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
295         * configure.ac: Look for pwd.h, grp.h, netdb.h headers and functions.
296         * mf-hooks2.c (strerror): Unregister previous string returned by
297         previous strerror.
298         (getlogin,cuserid,getpwnam,getpwuid,getgrnam,getgrgid): New wrappers.
299         (getservent,getservbyname,getservbyport,gai_strerror): Ditto.
300         * mf-runtime.h.in: Add redefine_extname pragmas for them all.
301         * mf-runtime.c (__mf_describe_object): Clarify object life status.
302         * testsuite/libmudflap.c/pass48-frag.c, pass49-frag.c, fail32-frag.c:
303         New tests.
304         * configure, config.h.in: Regenerated.
306 2004-08-03  Dale Johannesen  <dalej@apple.com>
308          * mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.
310 2004-08-03  Frank Ch. Eigler  <fche@redhat.com>
312         * mf-runtime.c (compare_uintptr_t): Remove function.  Inline
313         simplified contents in all former callers.
315 2004-07-27  Ulrich Weigand  <weigand@informatik.uni-erlangen.de>
317         * mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in
318         the statically linked case.
320 2004-07-27  Frank Ch. Eigler  <fche@redhat.com>
322         * splay-tree.[ch]: Remove.  Merge contents into ...
323         * mf-runtime.c: ... here, renaming symbols and making all functions
324         static.  Remove unused min/max functions.
325         * Makefile.am: Forget about splay-tree.[ch].
326         * Makefile.in, testsuite/Makefile.in: Regenerated.
328 2004-07-21  Frank Ch. Eigler  <fche@redhat.com>
330         * mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling.
331         (__mfu_usage): Include (C) 2004.
332         * mf-hooks3.c (__mf_find_threadinfo): Don't call tracing functions
333         here.  Include a comment explaining why.
335 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
337         * mf-impl.h (__mf_options): Add ignore_reads and timestamps fields.
338         * mf-runtime.c (options): Give them a name.
339         (__mf_set_default_options): Set them.
340         (__mf_insert_new_object, __mfu_unregister): Optionalize timestamps.
341         (__mf_violation): Warning cleanup.
342         * mf-impl.h (MF_VALIDATE_EXTENT): Support ignore_reads option.
343         * splay-tree.c (splay_tree_delete_helper): Remove obsolete decl.
345 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
347         g++/15861
348         * mf-runtime.c (__mf_init): Make it non-static.  Tolerate
349         repeated invocation.
351 2004-07-09  Frank Ch. Eigler  <fche@redhat.com>
353         Test case for g++/15861
354         * testsuite/libmudflap.c++/ctors-[12].cxx: New test case halves.
355         * testsuite/libmudflap.c++/ctors.exp: Driver.
356         * testsuite/libmudflap.c++/c++frags.exp: Elide redundant default.
357         Look only for *frag* test cases.
359 2004-07-08  Frank Ch. Eigler  <fche@redhat.com>
361         ANSI C conversion, libmudflap specialization, recursion limiting.
362         * splay-tree.h (splay_tree_{de,}allocate_fn): Remove allocation_data
363         argument and indirection function pointers, update callers.
364         (splay_tree_s): Add statistics and recursion control fields
365         num_keys, max_depth, depth, rebalance_p.
366         * splay-tree.c (splay_tree_splay_helper): Track recursion depth.
367         Back out of search if it exceeds limit.
368         (splay_tree_splay): Manage recursion limiting with rebalancing as
369         needed.
370         (splay_tree_new): More initialization.
371         (splay_tree_rebalance): New function.
372         (splay_tree_foreach): Rewrite using nonrecursive logic.
373         (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate):
374         Remove.  Point indirect calls to mf-runtime.c's routines.
375         (splay_tree_compare_ints, splay_tree_compare_pointers): Remove unused
376         functions.
377         (splay_tree_delete, splay_tree_delete_helper): Ditto.
378         * testsuite/heap-scalestress.c: New test based on one from
379         Eyal Lebedinsky <eyal@eyal.emu.id.au>:
381 2004-07-05  Matthias Klose  <doko@debian.org>
383         * libtool-version: New.
384         * Makefile.am (libmudflap_la_LDFLAGS, libmudflapth_la_LDFLAGS):
385         Use -version-info for soname.
386         * Makefile.in: Regenerate.
387         * configure.ac: Remove libtool_VERSION macro
388         * configure: Regenerate
390 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
392         * mf-runtime.h.in: Wrap declarations of struct __mf_cache,
393         __mf_lookup_cache, __mf_lc_mask, or __mf_lc_shift in
394         #ifndef _MUDFLAP.
396 2004-06-29  Frank Ch. Eigler  <fche@redhat.com>
398         Splay tree implementation fork.
399         * splay-tree.c, splay-tree.h: Copied & modified from libiberty.
400         Use hard-coded comparison function for uintptr_t.  Remove key/value
401         deallocation logic.  Cache last splayed key for consecutive lookups.
402         * Makefile.am, Makefile.in: Use them, don't link to them.
403         * mf-runtime.c (__mf_object_tree): Adapt to simpler splay_tree_new.
404         (__mf_find_objects2): Flip successor/predecessor search sequence.
405         * ansidecl.h, libiberty.h: Removed dummy files.
407 2004-06-29  Nick Clifton  <nickc@redhat.com>
409         * configure.ac (AC_CHECK_HEADERS): Add dirent.h
410         * configure: Regenerate.
411         * mf-hooks2.c: Surround uses of dirent.h with #ifdef
412         HAVE_DIRENT_H.
413         Remove spurious inclusion of <strings.h>.
415 2004-06-29  Nick Clifton  <nickc@redhat.com>
417         * mf-runtime.c (pthread_join): Only apply the weak pragma if the
418         function actually exists.
420 2004-06-25  Frank Ch. Eigler  <fche@redhat.com>
422         * ansidecl.h, libiberty.h: New dummy files for building splay-tree.
423         * config.h.in: Regenerated.
425 2004-06-24  Frank Ch. Eigler  <fche@redhat.com>
427         Adopt splay trees for object database.
428         * Makefile.am: Copy splay-tree.* from libiberty.
429         * Makefile.in, testsuite/Makefile.in: Regenerated.
430         * mf-runtime.h.in (__mf_unregister): Add third parameter (type).
431         * mf-hooks[123].c (*): Add new third parameter to mf_unregister.
432         * mf-impl.h (BEGIN_PROTECT): Remove some trace text.
433         * mf-runtime.c: Rewrite code dealing with object database to use
434         libiberty splay trees.  Remove tree liveness aging option.
435         * testsuite/libmudflap.c/fail18-frag.c: Add volatile flag.
437 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
439         * configure.ac: New name of configure.in.  Update
440         AC_INIT, AC_CONFIG_SRCDIR, AC_CONFIG_HEADERS, AC_CONFIG_FILES,
441         AC_OUTPUT, AM_INIT_AUTOMAKE to the preferred style for
442         Autoconf 2.5x and Automake 1.7 or later.
443         * configure.in: Remove.
444         * configure: Regenerate.
446         * Makefile.am: Remove useless multilib rules.
447         * Makefile.in: Regenerate.
449 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
451         * .cvsignore: New file.
453 2004-06-10  Stephen Crowley  <stephen.crowley@sbcglobal.net>
455         PR libmudflap/13505
456         * mf-hooks2.c (semctl): Add cygwin porting hack.
458 2004-06-09  Frank Ch. Eigler  <fche@redhat.com>
460         ctype support.
461         * configure.in: Look for ctype header and glibc implementation.
462         * mf-hooks2.c (__ctype_{b,toupper,tolower}_loc): Sample ctype
463         array hooks for glibc 2.3.
464         * mf-runtime.h.in: Wrap them.
465         * mf-runtime.c (__mf_init): Leave marker regarding other ctype
466         implementations.
467         * testsuite/libmudflap.c/pass47-frag.c: New test.
468         * configure, config.h.in: Regenerated.
470 2004-06-04  Frank Ch. Eigler  <fche@redhat.com>
472         Portability improvements, e.g., libmudflap/15293.
473         * configure.in: Look for glibc extension functions.  Look for
474         support of -f{function,data}-sections.  Look for more headers.
475         Create testsuite/mfconfig.exp.  Correct more "test x.." thinkos.
476         * Makefile.am: Use $(SECTION_FLAGS).  Collapse piecemeal-compiled
477         mf-hooks* into usual single object per source.
478         * mf-hooks*.c: Remove all #if WRAP_foo conditionals.
479         * mf-hooks2.c: #include a bunch more system headers.  Define strnlen
480         if system doesn't provide one.
481         * mf-hooks3.c (struct pthread_info): Add stack_*_alloc fields.
482         (pthread_create): Use it to properly GC dead thread stacks.
483         * mf-runtime.c (__mf_violation): Correct snprintf type warning.
484         * testsuite/Makefile.am: Stop generating site.exp.
485         * testsuite/mfconfig.exp.in: New file.
486         * testsuite/config/default.exp: Load new mfconfig.exp.
487         * testsuite/lib/libmudflap.exp (libmudflap-init): Add extra libraries.
488         (prune_gcc_output): Add glibc static linking warnings.
489         * testsuite/libmudflap.*/*frags.exp: Enumerate needed -lmudflap* libs.
490         * testsuite/libmudflap.c/pass46-frag.c: Ditto.
491         * configure, Makefile, aclocal.m4, config.h.in, testsuite/Makefile.in:
492         Regenerated with autoconf 2.57 and automake 1.7.
494 2004-06-04  Per Bothner  <per@bothner.com>
496         * configure.in (LIBMUDFLAPTH):  Fix thinko.
498         * configure.in:  Check for more headers.
499         * mf-hooks2.c:  Conditionalize on HAVE_SYS_SOCKET_H etc.
501         * mf-runtime.c:  In two places conditionalize on SIUSR1 rather than
502         HAVE_SIGNAL as mingw has signal.h but not SIUSR1.
504 2004-06-01  Andreas Jaeger  <aj@suse.de>
506         * configure.in: Handle multilibs, support
507         --enable-version-specific-runtime-libs.
508         * Makefile.am (lib_LTLIBRARIES): Rename to ...
509         (toolexeclib_LTLIBRARIES): this for multilib support.
510         * Makefile.in: Regenerated.
511         * configure: Regenerated.
512         * aclocal.m4: Regenerated.
513         * config.h.in: Regenerated.
514         * testsuite/Makefile.in: Regenerated.
516 2004-06-01  Andreas Jaeger  <aj@suse.de>
518         * testsuite/lib/libmudflap.exp (libmudflap-init): Handle
519         multilibs, using multilib directory instead of hardcoded path.
520         Set LD_RUN_PATH.
522 2004-05-21  Frank Ch. Eigler  <fche@redhat.com>
524         * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
525         * Makefile.in: Ditto.
527 2004-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
529         * acinclude.m4 (lt_cv_deplibs_check_method): Use pass_all on sh*.
530         * aclocal.m4, configure: Rebuilt.
532 2004-05-17  Frank Ch. Eigler  <fche@redhat.com>
534         * lib/libmudflap.exp (libmudflap-init): For C++ test cases only,
535         import some build settings from libstdc++-v3 testsuite_flags.
536         * .../cfrags.exp, .../c++frags.exp, .../cthfrags.exp: Corresponding
537         changes to pass test language.
539         * mf-runtime.c (__mfu_check): Poison the cache with antidote for
540         quicker mode-nop handling.
542 2004-03-25  Frank Ch. Eigler  <fche@redhat.com>
544         * mf-impl.h: Added libgcc license header.
546 2004-03-20  Frank Ch. Eigler  <fche@redhat.com>
548         * mf-hooks[123].c, mf-runtime.c, mf-heuristics.c:
549         Added libgcc license header.
550         * mf-hooks3.c (__mf_0fn_pthread_create): Correct arg constness.
551         (pthread_create): Simplify stack allocation syntax.
553 2004-03-08  Loren J. Rittle  <ljrittle@acm.org>
555         * mf-hooks2.c: Support FreeBSD.
556         (WRAP_gets): Avoid gets().
557         * testsuite/libmudflap.c/pass-stratcliff.c: Do not
558         test unimplemented mem/str calls on FreeBSD.
559         * testsuite/libmudflap.c/pass21-frag.c: Do not include
560         <alloca.h> on FreeBSD.
562 2004-01-30  Frank Ch. Eigler  <fche@redhat.com>
564         * testsuite/libmudflap.c/pass36-frag.c: Add missing free() call.
565         * testsuite/libmudflap.c/pass46-frag.c: New test for -fmudflapir.
566         * testsuite/libmudflap.cth/cthfrags.exp: Add -DSTATIC to compiler
567         flags for static linking permutation.
568         * testsuite/libmudflap.cth/pass40-frag.c: When -DSTATIC, avoid
569         some pthreads code that croaks on linux glibc tls.
571 2004-01-27  Frank Ch. Eigler  <fche@redhat.com>
573         * testsuite/libmudflap.c/fail31-frag.c, pass45-frag.c: New tests.
575 2004-01-15  Frank Ch. Eigler  <fche@redhat.com>
577         * testsuite/libmudflap.c/pass44-frag.c: New test.
579 2004-01-12  Frank Ch. Eigler  <fche@redhat.com>
581         * testsuite/libmudflap.c/fail{28,29,30}-frag.c: New tests.
583 2004-01-08  Frank Ch. Eigler  <fche@redhat.com>
585         * testsuite/libmudflap.c/pass43-frag.c: Added missing program rc.
587 2003-12-11  Frank Ch. Eigler  <fche@redhat.com>
589         * testsuite/libmudflap.c/pass42-frag.c, pass43-frag.c: New tests.
591 2003-12-08  Andrew Pinski  <pinskia@physics.uc.edu>
593         PR libmudflap/12670
594         * configure.in: Add check for see if
595         socklen_t typedef is in sys/socket.h.
596         * mf-hooks1.c: Add define if socklen_t
597         is not typedef.
598         * mf-hooks2.c: Likewise.
599         * mf-hooks3.c: Likewise.
600         * config.h.in: Regen.
601         * configure: Regen.
603 2003-12-08  Frank Ch. Eigler  <fche@redhat.com>
605         * mf-runtime.c (__mf_watch_or_not): Tweak tracing message.
606         * testsuite/libmudflap.c/fail21-frag.c: Defeat aliasing
607         optimizations.
608         * testsuite/libmudflap.c/pass25-frag.c: Ditto.
609         * testsuite/libmudflap.c/pass26-frag.c: Tolerate non-overlapping
610         (unoptimized) allocation of stack space.
612 2003-12-07  Richard Henderson  <rth@redhat.com>
614         * testsuite/libmudflap.c/fail23-frag.c (main): Adjust addend to 11.
615         * testsuite/libmudflap.c/fail27-frag.c (foo): Mark noinline.
617 2003-12-06  Andrew Pinski <apinski@apple.com>
619         partial PR libmudflap/12670
620         * mf-hooks1.c: Respect Darwin checks.  Conditionalize POSIX_SOURCE.
621         * mf-hooks2.c: Likewise.
622         * mf-hooks3.c: Likewise.
624 2003-11-19  Frank Ch. Eigler  <fche@redhat.com>
626         libstdc++/11696
627         * mf-runtime.h.in: Switch to #pragma redefine_extname for
628         symbols interposed at compile time.
629         * testsuite/libmudflap.c++/pass41-frag.cxx: New test.
631         libmudflap/12939
632         * mf-hooks2.c (semctl): Tolerate FreeBSD.
634         * configure.in: Reorganize check for <pthread.h>.
635         * configure: Regenerated.
637 2003-11-04  David Edelsohn  <edelsohn@gnu.org>
639         * mf-runtime.c (_ALL_SOURCE): Define for AIX.
640         (_LARGE_FILE_API): Define for AIX.
641         * mf-hooks[123]: Same.
642         (_XOPEN_SOURCE_EXTENDED): Define to 1 for AIX.
644 2003-10-21  David Edelsohn  <edelsohn@gnu.org>
646         * mf-runtime.c (_XOPEN_SOURCE_EXTENDED): Define to 1 for AIX.
648 2003-07-29  Frank Ch. Eigler  <fche@redhat.com>
650         2003-07-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
652         * configure.in: Update check for union semun.
654 2003-07-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
656         PR other/11673
657         * mf-hooks2.c [WRAP_semctl]: Fix check for HAVE_UNION_SEMUN.
659 2003-07-29  Frank Ch. Eigler  <fche@redhat.com>
661         PR other/11673
662         * configure.in: Add checks for 64-bit LFS functions, struct semun
663         definition, for BSD compatibility.
664         * mf-hooks1.c: Respect BSD checks.  Conditionalize POSIX_SOURCE.
665         * mf-hooks2.c: Ditto.  Include <strings.h> for bcmp* decls.
666         * mf-hooks3.c: Ditto.
667         (pthread_create): Try MAP_ANON on platforms without the MAP_ANONYMOUS
668         mmap flag.
669         * configure, config.h.in: Regenerated.
671 2003-07-23  Frank Ch. Eigler  <fche@redhat.com>
673         Multithreading fixes:
674         * mf-runtime.c (__mf_object): Store allocating/deallocating
675         thread id.
676         (options): Support new "-thread-stack" option.
677         Rename "-heur-argv-environ" option to "-heur-stdlib".
678         Disable "-lc-mask" and "-lc-shift" options.
679         (__mf_dynamic): Add function pointers for pthread_join/_exit.
680         (__assert_fail): New self-contained function for glibc.
681         * mf-hooks3.c: Essentially rewritten, particularly related to
682         use of __mf_pthread_info array.
683         (pthread_join, _exit): New hook functions.
684         * mf-impl.h (BEGIN_PROTECT): Handle starting_p case.
685         * testsuite/libmudflap.cth/pass40-frag.c: New test.
687         Warning cleanups:
688         * mf-heuristics.c: Add type casts for tracing, sub calls.
689         * mf-impl.h (BEGIN_PROTECT): Redefine to omit result type.
690         Update all callers to declare explicit result holder.
691         (END_PROTECT): Removed.
692         * testsuite/*/*frags.exp: Clean up default MUDFLAP_OPTIONS.
694 2003-07-15  Diego Novillo  <dnovillo@redhat.com>
696         * testsuite/libmudflap.c/fail21-frag.c: Add volatile modifiers.
697         * testsuite/libmudflap.c/fail15-frag.c: Likewise.
698         * testsuite/libmudflap.c/fail13-frag.c: Likewise.
700 2003-07-04  Frank Ch. Eigler  <fche@redhat.com>
702         * mf-hooks1.c, 2.c, 3.c: New file, splits up content from old ...
703         * mf-hooks: Removed.
704         * mf-impl.h (MF_VALIDATE_EXTENT, BEGIN_PROTECT, END_PROTECT):
705         Move these macros from old mf-hooks.c here.
706         * Makefile.am: Adapt to split-up hook sources for faster builds.
707         * Makefile.in: Regenerated.
709         * mf-heuristics.c: Remove #if-0 block.
711         * mf-impl.h (__mf_state): Reorganize declaration and implementation.
712         (__mf_starting_p): New state only for use while dlsym bootstrapping.
713         (CALL_REAL, __mf_init): Corresponding changes.
714         (TRACE, VERBOSE_TRACE): Include thread id and "mf:" prefix.  Update
715         all callers to remove redundant "mf:" prefix.
716         * mf-runtime.h.in: #define a few reentrancy macros for libmudflapth.
717         * mf-hooks3.c: Rewrite chunks to support per-thread __mf_state value.
718         (__mf_pthread_info): Become a hash table.
720         * testsuite/lib/mfdg.exp: Support new "dg-timeout" and
721         "dg-repetitions" directives to control test case execution.
722         * testsuite/libmudflap.cth/pass37-frag.c: Add timeout and repeat
723         options.
724         * testsuite/libmudflap.cth/pass39-frag.c: Ditto for this new test.
726 2003-06-25  Frank Ch. Eigler  <fche@redhat.com>
728         * mf-hooks.c (alloca): Separate into stub.
729         (__mf_wrap_alloca_indirect): New function.  Use CALL_REAL
730         malloc/free for alloca blocks.
731         (pthread_create): Tolerate failing pthread_attr_get* calls.
732         * mf-runtime.c (__mf_fini): Call __mf_wrap_alloca_indirect.
733         * mf-impl.h (CALL_WRAP): Remove macro.
734         * testsuite/libmudflap.c/pass21-frag.c: Include <alloca.h>.
735         * testsuite/libmudflap.c/pass23-frag.c: Include more struct
736         padding for ia64 BIT_FIELD_REF constructs.
738 2003-06-19  Frank Ch. Eigler  <fche@redhat.com>
740         * mf-hooks.c (struct pthread_info): Add "thread_errno" field.
741         (__mf_pthread_spawner, __mf_pthread_cleanup): Use it with GUESS
742         libmudflap object type.
743         * mf-runtime.c (__mfu_unregister): Correct cemetary logic to avoid
744         crashes on unregistering STATIC objects.
746 2003-06-17  Frank Ch. Eigler  <fche@redhat.com>
748         Based on patch from Eyal Lebedinsky <eyal@eyal.emu.id.au>:
749         * mf-hooks.c (__mf_pthread_spawner): Register thread errno.
750         (time, strerror, fopen, fopen64, fclose, fread): New hooks.
751         (fwrite, fgetc, fgets, getc, gets, ungetc, fputc): New hooks.
752         (fputs, putc, puts, clearerr, feof, ferror, fileno): New hooks.
753         (printf, fprintf, sprintf, snprintf, vprintf, vfprintf): New hooks.
754         (vsprintf, vsnprintf, access, remove, fflush, fseek): New hooks.
755         (fseeko64, ftell, ftello64, rewind, fgetpos, fsetpos): New hooks.
756         (stat, stat64, fstat, lstat, mkfifo, setvbuf, setbuf): New hooks.
757         (setvbuf, opendir, closedir, readdir, recv, recvfrom): New hooks.
758         (recvmsg, send, sendto, sendmsg, setsockopt, getsockopt): New hooks.
759         (accept, bind, connect, gethostname, sethostname): New hooks.
760         (gethostbyname, wait, waitpid, popen, pclose, execve): New hooks.
761         (execv, execvp, system, dlopen, dlclose, dlerror, dlsym): New hooks.
762         (semop, semctl, shmctl, shmat, shmdt): New hooks.
763         * mf-runtime.h.in: Corresponding changes.
764         * mf-runtime.c (__mf_ini): Register stdio objects.  Use STATIC type.
765         (opts) Rename heur_argv_environ to heur_std_data.
766         (__mf_wrap_main): Use STATIC type for argv/environ strings.
767         * Makefile.am: Corresponding changes.
768         * Makefile.in: Regenerated.
770 2003-06-11  Frank Ch. Eigler  <fche@redhat.com>
772         * mf-heuristics.c (__mf_heuristic_check): Disable stack_bounds
773         heuristic for threaded case, and for non-x86-linux targets.
774         * mf-hooks.c (__mf_0fn_calloc): Provide a working dummy implementation
775         for use during pre-main() program startup.
776         (__mf_0fn_*): Make these functions non-static.
777         * mf-impl.h (DECLARE, CALL_REAL): Support calls to 0fn backup hook
778         functions.
779         * mf-runtime.c (__mf_state): Set initial state to "starting".
780         (__mf_resolve_single_dynamic): Tolerate repeated calls for same symbol.
781         (__wrap_main): New function to register argv[] and environ[] strings.
782         (__mf_ini): Call it.
783         (*): In all trace functions, use "%p" as formatter for uintptr_t.
785         * testsuite/libmudflap.c/pass38-frag.c: New test case.
786         * testsuite/libmudflap.cth/pass37-frag.c: Improved test.
788         * acinclude.m4: Add comments with aoliva's concerns about x86_64
789         pass_all.
790         * aclocal.m4, configure: Regenerated.
792 2003-06-04  Frank Ch. Eigler  <fche@redhat.com>
794         * acinclude.m4: Correct typo in AC_MSG_CHECKING.
795         * aclocal.m4, configure: Regenerated.
797 2003-06-03  Frank Ch. Eigler  <fche@redhat.com>
799         * acinclude.m4: Force "pass_all" deplibs_check_method for libtool
800         for x86_64 target.  Disable caching for this value.
801         * aclocal.m4, configure: Regenerated.
803 2003-06-02  Frank Ch. Eigler  <fche@redhat.com>
805         * testsuite/libmudflap.c/pass38-frag.c: Deleted.  -fwritable-strings
806         is about to become deprecated, and its present handling bugs are
807         unworthy of fixing.
809 2003-05-30  Frank Ch. Eigler  <fche@redhat.com>
811         * testsuite/libmudflap.c/pass38-frag.c: New test for
812         -fwritable-strings.
814 2003-05-23  Frank Ch. Eigler  <fche@redhat.com>
816         * mf-runtime.c (__mf_sigusr1_handle): Call unlocked variant of
817         __mf_report, asserting reentrant calling context.
819 2003-05-23  Frank Ch. Eigler  <fche@redhat.com>
821         * mf-hooks.c (realloc): Correct reentrancy logic.
822         * testsuite/libmudflap.c/hook-allocstuff.c: New test case.
824 2003-05-20  Frank Ch. Eigler  <fche@redhat.com>
826         * mf-hooks.c (LIBMUDFLAPTH_THREADS_MAX): New macro, replaces
827         PTHREAD_THREADS_MAX.  Update users.
828         * mf-runtime.c (__mf_usage): Print [active] instead of [default]
829         for active options.
830         * testsuite/Makefile.am (all-local): Prime dejagnu site.exp file
831         with libmudflapth presence indicator.
832         * testsuite/Makefile.in: Regenerated.
834 2003-05-16  Frank Ch. Eigler  <fche@redhat.com>
836         * Makefile.am (AM_CFLAGS): Remove "-ansi".
837         * configure.in: Remove silly no-pthreads => no-shared logic.
838         * Makefile.in, configure: Regenerated.
839         * mf-heuristics.c (__mf_heuristic_check): Remove reentrancy hacks.
840         * mf-hooks.c (BEGIN_PROTECT, END_PROTECT): Reorganize reentrancy
841         code.  Count reentrancy events.
842         (all hook functions): Don't directly manipulate __mf_state variable.
843         Add TRACE calls to hook functions without them.
844         * mf-impl.h (LOCKTH): Try to count lock contention events.
845         (VERBOSE_TRACE, TRACE): Remove reentrancy hacks.
846         * mf-runtime.c (BEGIN_RECURSION_PROTECT, END_RECURSION_PROTECT):
847         Reorganize reentrancy code.
848         (external __mf_ entry points): Use RECURSION_PROTECT mechanism to
849         identify reentrancy with mutex holding times.
850         (internal __mfu_ entry points): Remove internal reentrancy code.
851         (__mf_init): Use ordinary locked calls.
852         (__mfu_report): Print the two new counts.
853         * testsuite/lib/libmudflap.exp: Filter out junk ld/pthreads messages.
854         * testsuite/libmudfap.cth/cthfrags.exp: New test driver.
855         * testsuite/libmudflap.cth/pass37-frag.c: New pthreads test.
856         * testsuite/libmudfap.cth/cfrags.exp: Adapt to new libmudflap
857         option defaults.
859 2003-05-09  Frank Ch. Eigler  <fche@redhat.com>
861         * configure.in: Add pthread support, plus glibc and porting hacks.
862         * Makefile.am (LIBMUDFLAPTH): New conditional, to build -lmudflapth
863         from objects built into ./pth/.
864         * mf-runtime.c (__mfu_watch,register,...): Fork new unlocked
865         functions for internal entry points.  Update callers to pick
866         locked vs. unlocked variants.
867         (__mf_resolve_single_dynamic): Extend to support symbol versioning
868         info coming in from a static data structure.
869         (*): Reorder miscellaneous declarations to group data vs functions.
870         (__mf_set_default_options): Simplify.
871         (__mf_usage): Mention threading status of host executable.
872         * mf-impl.h: Move max/min decls here.  Reorganize __mf_dynamic
873         decls to match above.
874         (LOCKTH, UNLOCKTH): New macros for Big Libmudflap Lock management.
875         * mf-heuristics.c: Choose between locked/unlocked calls.  Add
876         some lock/unlock markers.  Remove some unused code.
877         * mf-hooks: Ditto.
878         (pthread_create): New hook function.
879         (__mf_pthread_cleanup, _spawner): New helper functions.
880         * configure. aclocal.m4, config.h.in, Makefile.in: Regenerated.
882 2003-05-02  Frank Ch. Eigler  <fche@redhat.com>
884         * testsuite/libmudflap.c/fail27-frag.c: Add more volatile flags.
886 2002-04-28  Frank Ch. Eigler  <fche@redhat.com>
888         * Makefile.am (HOOKOBJS): Add *time related hooks.
889         * configure.in: Look for pthreads.h header.
890         * mf-hooks.c (asctime, ctime, gmtime, localtime): New wrappers.
891         * mf-runtime.c: Begin sketching some pthreads support.
892         (__mf_usage): Check for -lpthread presence.
893         (__mf_unregister): Confirm matching unregistration base.
894         (__mf_find_objects_rec): Reduce unnecessary recursion.
895         * mf-runtime.h.in: Add "nothrow" attribute to functions.  Add
896         #defines for new hook functions.
897         * mf-impl.h: Corresponding changes.
898         * config.h.in, configure, Makefile.in: Regenerated.
900 2002-04-27  Diego Novillo  <dnovillo@redhat.com>
902         * testsuite/libmudflap.c/fail1-frag.c: Add volatile
903         modifiers to prevent being optimized away.
904         * testsuite/libmudflap.c/fail10-frag.c: Likewise.
905         * testsuite/libmudflap.c/fail13-frag.c: Likewise.
906         * testsuite/libmudflap.c/fail14-frag.c: Likewise.
907         * testsuite/libmudflap.c/fail15-frag.c: Likewise.
908         * testsuite/libmudflap.c/fail2-frag.c: Likewise.
909         * testsuite/libmudflap.c/fail20-frag.c: Likewise.
910         * testsuite/libmudflap.c/fail3-frag.c: Likewise.
912 2003-04-15  Frank Ch. Eigler  <fche@redhat.com>
914         * Makefile.am (libmudflap_la_LIBADD): Remove -ldl.
915         * configure.in: Look for uintptr_t and -ldl on target.
916         * mf-runtime.h.in: Adjust uintptr_t declaration logic.
917         * Makefile.in, aclocal.m4, configure, config.h.in: Regenerated.
918         * testsuite/Makefile.in: Regenerated.
919         * mf-runtime.c (__mf_sigusr1_respond): Tweak declaration and calls
920         for better C compliance.
922 2003-04-15  Frank Ch. Eigler  <fche@redhat.com>
924         * mf-hooks.c (MF_VALIDATE_EXTENT): Remove unnecessary reentrancy
925         prevention code.
926         * mf-runtime.c (__mf_set_default_options): Turn off
927         check-initialization.
928         (__mf_describe_object): Shorten description.
929         * testsuite/libmudflap.c/fail25-frag.c: Turn on check-initialization.
931 2003-04-07  Frank Ch. Eigler  <fche@redhat.com>
933         * mf-hooks.c (__mf_0fn_mmap): Correct return value, as per <rth>.
935 2003-04-02  Frank Ch. Eigler  <fche@redhat.com>
937         * mf-hooks.c (BEGIN_PROTECT): Handle startup-time reentrant
938         calls specially.
939         (__mf_0fn_malloc ... _munmap): New dummy backup calls.
940         * mf-impl.h (CALL_BACKUP): New macros.
941         * mf-runtime.c (__mf_init): Tweak __mf_state during startup.
943 2003-03-31  Frank Ch. Eigler  <fche@redhat.com>
945         * Makefile.am (AM_CFLAGS): Remove optimization flags.
946         (HOOKOBJS): Remove dlopen hook.
947         (libmudflap_la_LIBADD): Add -ldl.
948         * mf-hooks.c (dlopen): Remove hook.
949         * mf-impl.h (__mf_dynamic): Ditto.
950         * mf-runtime.c (__mf_resolve_dynamics): Ditto.
951         * Makefile.in: Regenerated.
953 2003-03-28  Frank Ch. Eigler  <fche@redhat.com>
955         * configure.in: Check for target gettimeofday, signal, some headers.
956         * mf-impl.h (__mf_opts): Add new "sigusr1_report" field.  Comment
957         out inop multi_threaded field.
958         * mf-runtime.c (options): Handle new "-sigusr1-report" option.
959         (__mf_set_options): Correct handling of "-help".
960         (__mf_sigusr1_respond): New function to manage SIGUSR1 response.
961         (__mf_check, __mf_register, __mf_unregister): Call it.
962         (__mf_insert_new_object, __mf_unregister): Respect HAVE_GETTIMEOFDAY.
963         (__mf_report_leaks): Make callable
964         (__mf_tree_analyze): Traverse in-order.  Accumulate address bit
965         distribution statistics.
966         (__mf_adapt_cache): Rewrite shift guessing logic based on address
967         bit distributions.
968         * config.h.in, configure: Regenerated.
969         * testsuite/libmudflap.c/fail27-frag.c: New test.
970         * testsuite/libmudflap.c/pass36-frag.c: New test.
972 2003-03-11  Frank Ch. Eigler  <fche@redhat.com>
974         * mf-runtime.h.in: Tweak.
975         * Makefile.am, configure.in: Tweak mf-runtime.h generation some more.
976         Don't use intermediate files nor AC_OUTPUT-time postprocessing.
977         * Makefile.in, testsuite/Makefile.in, configure: Regenerated.
979 2003-03-10  Frank Ch. Eigler  <fche@redhat.com>
981         * configure.in: Tweak generation of mf-runtime.h some more.  It
982         needs to work from both config.status and configure.
983         * configure: Regenerated.
985 2003-03-10  Frank Ch. Eigler  <fche@redhat.com>
987         * Makefile.am: Reorganize hook file building.  Add auto dependencies.
988         * configure.in: Tweak generation of mf-runtime.h.
989         * mf-runtime.h.in: Add new __MF_TYPE_HEAP_I.
990         * mf-hooks.c (*): Adapt to initialized-heap object type.
991         * mf-impl.h: Tweak cemetary boundaries.
992         * mf-runtime.c (__mf_check): Adapt to new initialized-heap object
993         type.
994         (__mf_insert_new_object, __mf_register, __mf_unregister): Ditto.
995         (__mf_describe_object, __mf_report_leaks, __mf_violation): Ditto.
996         * testsuite/lib/libmudflap.exp (includes): Include build tree.
997         * testsuite/libmudflap.c/pass{26,5}: Further adapt to initialization
998         checking.
999         * testsuite/.../fail{25,26}-frag.c: New tests.
1000         * testsuite/.../pass{32,33,34,35}-frag.c: New tests.
1001         * Makefile.in, configure: Regenerated.
1003 2003-03-05  Frank Ch. Eigler  <fche@redhat.com>
1005         * mf-runtime.c (__mf_set_default_options): Turn on initialization
1006         checking by default.
1007         (__mf_insert_new_object): As a temporary hack, assume that new
1008         objects registered on the stack start out initialized.
1009         * testsuite/libmudflap.c/fail9,pass23,pass[6789]-*: Initialize
1010         heap objects by hand.
1012 2003-03-05  Frank Ch. Eigler  <fche@redhat.com>
1014         Switch to macro-style hooks for str*/mem*/b* functions.
1015         * mf-runtime.h.in (__MF_TYPE_*): Moved some internal values out.
1016         (mem*, str*, b*): Added macro-style hooks for _MUDFLAP case.
1017         * mf-runtime.c: #include config.h to enable glibc backtraces again.
1018         (__mf_set_default_options): Turn off heur_proc_map.
1019         (*): Adapt to to macro-style hook functions.
1020         (__mf_object_dead_head, __mf_object_cemetary): Correct bounds.
1021         (__mf_check, __mf_register, __mf_unregister): Tweak tracing message.
1022         (__mf_violation): Handle __MF_VIOL_WATCH.
1023         * mf-impl.h (__MF_TYPE_*): Moved these internal values here.
1024         (__mf_dynamic): Removed mem*/str*/b* functions.
1025         (TRACE, VERBOSE_TRACE): Add reentrancy locking.
1026         (WRAPPER2): New macro for macro-style hooks.
1027         * mf-hooks.c: Convert mem*/str*/b* functions to simpler
1028         macro-style hooks.
1029         (BEGIN_PROTECT): Tweak tracing vs reentrancy-lock ordering.
1030         * mf-heuristics.c: Adapt to macro-style hook functions.
1031         Correct some comments.
1032         * testsuite/lib/mfdg.exp (dg-test): Simplify result string for
1033         output pattern tests.
1034         * testsuite/libmudflap.c/fail[89]-frag.c: Elaborate output test.
1035         * testsuite/libmudflap.c++/c++frags.exp: Enable non-static tests.
1037 2003-02-28  Frank Ch. Eigler  <fche@redhat.com>
1039         * testsuite/libmudflap.c/fail23-frag.c, pass30-frag.c: New tests
1040         for global array registration.
1041         * testsuite/libmudflap.c++/fail24-frag.cxx, pass31-frag.cxx: Ditto.
1042         * testsuite/libmudflap.c++/c++frags.exp: Tweak -static multilib hack.
1044 2003-02-27  Frank Ch. Eigler  <fche@redhat.com>
1046         * Makefile.am: Add gross make bug workarounds.  Tweaked
1047         SUBDIRS and AM_CFLAGS.
1048         * Makefile.in: Regenerated.
1050 2003-02-26  Frank Ch. Eigler  <fche@redhat.com>
1052         Switch to dejagnu.
1053         * configure.in (AC_PROG_CXX): Don't look for C++ any more.
1054         * Makefile.am (TESTS): Remove simple automake testing.
1055         * configure, Makefile.in: Regenerated.
1056         (SUBDIRS): Include new testsuite/ directory.
1057         * tests/*: Removed all files; moved bulk under:
1058         * testsuite/*: New subdirectory tree.
1059         * testsuite/libmudflap.c/cfrags.exp: New file, C test driver.
1060         * testsuite/libmudflap.c++/c++frags.exp: New file, C++ test driver.
1061         * testsuite/lib/libmudflap.exp: New file, derived from libstdc++.
1062         * testsuite/lib/mfdg.exp: New file, derived from dejagnu.
1063         * testsuite/config/default.exp: New file.
1064         * testsuite/Makefile.am, Makefile.in: New files.
1066 2003-01-29  Frank Ch. Eigler  <fche@redhat.com>
1068         * Makefile.am (TESTS_ENVIRONMENT): Remove redundant "-mode-check".
1069         (TESTS): Add fail22 and pass29 tests.
1070         * mf-runtime.h.in: Change API to take void*/size_t region parameters.
1071         Add new access-type parameter for __mf_check.  Move __MF_VIOL* out.
1072         * mf-impl.h: Corresponding changes.  Update CLAMP* macros for void*
1073         values.  Move __MF_VIOL* here.
1074         * mf-runtime.c (*): Adapt to void*/size_t API in mf-runtime.h.
1075         (check_initialization): New field in __mf_opts.  Default off.
1076         (read_count,write_count): New fields in __mf_object.
1077         (__mf_check): Implement basic initialization checking.
1078         (__mf_insert_new_object): Assume STATIC|GUESS regions are initialized.
1079         (__mf_describe_object): Print new fields.
1080         (__mf_violation): Identify check/read vs. check/write in messages.
1081         * test/pass29-frag.c, test/fail22-frag.c: Basic tests for new
1082         "-check-initialized" mudflap option.
1083         * test/pass25-frag.c, test/fail21-frag.c: Adapt to API changes.
1084         * mf-hooks.c (MF_VALIDATE_EXTENT): Add new access-type parameter.
1085         Drop __FILE__/__LINE__ hack.  Update callers.
1086         (*): Adapt to new mf-runtime.h API.
1087         * Makefile.in: regenerated.
1089 2003-01-24  Frank Ch. Eigler  <fche@redhat.com>
1091         * configure.in: Build mf-runtime.h a more proper way.
1092         * mf-hooks.c (strdup, strndup): Correct reentrancy logic.
1093         * mf-runtime.c (verbose_violations): Turn on by default.
1094         * mf-runtime.h.in: Remove some miscellaneous stuff ...
1095         * mf-impl.h: ... and move it here.
1096         * configure: Regenerated.
1098 2003-01-22  Frank Ch. Eigler  <fche@redhat.com>
1100         * configure.in: Look for C++ compiler.
1101         * test/*-frag.c, mf-driver.c: Reformatted with GNU indent and
1102         fixed type warnings when built with C++.
1103         * test/pass27-frag.cxx, pass28-frag.cxx: New C++ tests.
1104         * Makefile.am (TESTS): Run them.
1105         (*) Add new rules for building and running C++ tests.
1106         (TESTFLAGS): Set new default to avoid libstdc++-v3 shlib issues.
1107         * mf-runtime.h.in: Protect with extern "C".
1108         * Makefile, configure: Regenerated.
1110 2003-01-06  Frank Ch. Eigler  <fche@redhat.com>
1112         Portability improvements.
1113         * configure.in: Look for glibc backtrace headers/functions.
1114         * mf-hooks.c: Don't include <execinfo.h> any more.
1115         * mf-runtime.c (__mf_set_options): Call more stdlib functions
1116         via CALL_REAL.
1117         (__mf_backtrace): Provide alternate baby implementation in
1118         absence of glibc.
1119         * test/mf-driver.c: Portability tweaks.
1120         * acinclude.m4: New file, containing top level libtool.m4.
1121         * aclocal.m4, configure, Makefile.in, config.h.in: Regenerated.
1123 2002-12-19  Frank Ch. Eigler  <fche@redhat.com>
1125         * mf-runtime.h.in (HAVE_UINTPTR_T): Define unconditionally.
1127 2002-11-08  Frank Ch. Eigler  <fche@redhat.com>
1129         * mf-runtime.c (options): Add new "wipe-heap", "wipe-stack"
1130         options.
1131         (__mf_unregister): Implement stack/heap object wiping.
1132         (__mf_set_options): Renamed from __mf_process_opts.
1133         (__mf_uncache_object): Change arg type, correct callers.
1134         * mf-impl.h: Corresponding changes.
1135         * mf-hooks.c (realloc): Save/restore heap-wiping flag.
1136         * mf-runtime.h.in (__mf_set_options): Extend public API.
1137         * test/pass26-frag.c: New test for stack wiping.
1138         * Makefile.am (TESTS): Run it.
1139         * Makefile.in: Regenerated.
1141 2002-11-07  Frank Ch. Eigler  <fche@redhat.com>
1143         * mf-runtime.h.in (__mf_watch, __mf_unwatch): Extend public API.
1144         * mf-runtime.c (__mf_object_t): Add watching_p field.
1145         (__mf_watch_or_not): New function to implement
1146         object watch flagging.
1147         (__mf_watch, __mf_unwatch): New wrappers for above.
1148         (__mf_check, __mf_describe_object): Handle objects with watching_p.
1149         (__mf_count_violation): Enlarge array.
1150         (__mf_uncache_object): Renamed from __mf_remove_old_object.  Don't
1151         unlink object.  Clear cache properly.
1152         (__mf_unregister): Unlink object explicitly before uncaching.
1153         * test/fail21-frag.c, pass25-frag.c: New tests.
1154         * Makefile.in, aclocal.m4: Regenerated.
1156 2002-11-05  Frank Ch. Eigler  <fche@redhat.com>
1158         * test/fail20-frag.c: New test for NULL pointer dereferencing.
1159         * Makefile.am (TESTS): Add it.
1160         * test/pass-stratcliff.c: Add decls of stpcpy.
1161         * configure.in: Test for <stdint.h>.  Generate mf-runtime.h in
1162         build tree from config.h and new file mf-runtime.h.in.
1163         * mf-runtime.h.in: Renamed from mf-runtime.h.  Tweak uintptr_t decl.
1164         * Makefile.in, configure, config.h.in: Regenerated.
1165         * mf-hooks.c: Add #undef for wrapped glibc str*/mem* macros.
1166         * mf-runtime.c (options, __mf_set_default_options): Support new
1167         default "abbreviate" option.
1168         (__mf_object.description_epoch): New field.
1169         (__mf_describe_object): Conditionally abbreviate objects already
1170         displayed in current epoch.  Accept NULL input to increment epoch.
1171         (__mf_fini, __mf_ini): Reset description epoch.
1172         (__mf_register, __mf_unregister, __mf_adapt_cache, __mf_init): Ensure
1173         that NULL pointer slot in lookup cache is invalidated.  Register a
1174         NOACCESS region around NULL.
1175         * mf-impl.h: Corresponding changes.
1177 2002-10-16  Frank Ch. Eigler  <fche@redhat.com>
1179         * test/fail19-frag.c, pass24-frag.c, pass-stratcliff.c: New tests.
1180         * Makefile.am: Run them.  Install mf-runtime.h.
1181         * Makefile.in: Regenerated.
1182         * mf-hooks.c: Add some markers for more missing functions.
1183         * mf-runtime.c (__mf_adapt_cache): Experiment with a utilization-based
1184         statistic to tune tune cache size (mask).
1186 2002-10-01  Frank Ch. Eigler  <fche@redhat.com>
1188         * test/pass23-frag.c: New test for bit_field_ref expressions.
1189         * Makefile.am, Makefile.in: Add new test.
1190         * mf-hooks.c (mmap, munmap): Rewrite to track individual pages.
1191         (MF_VALIDATE_EXTENT): Accept zero-size mem/str operations.
1192         * mf-runtime.c (__mf_init): Register errno global.
1193         (__mf_find_object): Removed function.
1194         (__mf_check): Rewrite logic to support accesses across some
1195         contiguous but distinctly registered objects.
1196         (__mf_remove_old_object): Tolerate cache entries that span
1197         contiguous objects.
1199 2002-09-30  Frank Ch. Eigler  <fche@redhat.com>
1201         * test/pass21-frag.c, pass22-frag.c: New tests: alloca, bitfields.
1202         * Makefile.am, Makefile.in: Run new tests.
1203         * mf-hooks.c (alloca): Correct stack direction logic.
1205 2002-09-26  Frank Ch. Eigler  <fche@redhat.com>
1207         * mf-impl.h (adapt_cache): New option.
1208         * mf-runtime.c (__mf_set_default_options): Set its default value.
1209         Tweak the tree_aging parameter down.
1210         (__mf_check): Maintain separate counter for cache-adaptation.
1211         (__mf_tree_analyze): New function to collect object tree stats.
1212         (__mf_adapt_cache): New function to automate cache parameters.
1214 2002-09-24  Frank Ch. Eigler  <fche@redhat.com>
1216         * mf-heuristics.c (__init_misc, __mf_heuristic_check): Add
1217         hypothetical #if-0'd argv/envp region registration.
1218         * mf-runtime.c (__mf_init): Add kludged form of above.
1219         (*) Add "heur_argv_environ" flag, default on, to govern this.
1220         * mf-impl.h: Corresponding changes.
1222 2002-09-20  Frank Ch. Eigler  <fche@redhat.com>
1224         * test/fail18-frag.c: New test file for NOACCESS regions.
1225         * Makefile.am (TESTS): Add new test.
1226         * Makefile.in: Regenerated.
1228         * mf-heuristics.c (__mf_heuristics_check): Correct deja_vu logic.
1229         * mf-impl.h (tree_aging): Add new mudflap_option, default 1000000.
1230         (optimize_object_tree): Remove unused mudflap_option.
1231         * mf-runtime.h (__MF_TYPE_NOACCESS): New region type.  Add printing
1232         support throughout.  Use .._MAX_CEM for cemetary upper bound.
1233         * mf-runtime.c (__mf_init): Register __mf_* globals as NOACCESS
1234         regions.
1235         (__mf_object): Add new liveness field for use by tree aging.
1236         (__mf_check): Trigger tree aging when needed.
1237         (__mf_age_tree): New function to decay liveness field.
1238         (__mf_find_objects_rec): Use liveness field to rotate tree.
1239         (__mf_insert_new_object): Only provide backtrace for HEAP objects.
1240         (__mf_unregister): Ditto.
1241         (__mf_register): Tweak duplicate-static message.
1242         (__mf_violation: Tweak nearby-object counter printing.
1244 2002-09-16  Frank Ch. Eigler  <fche@redhat.com>
1246         * test/pass20-frag.c: New test file.
1247         * Makefile.am (TESTS): Reorganize.  Add pass20 test.
1248         * Makefile.in: Regenerated.
1250         * mf-impl.h (TRACE_IN, TRACE_OUT): Remove macros.  Update callers.
1251         * mf-hooks.c (BEGIN_PROTECT): Add hook tracing here.
1252         * mf-heuristic.c (__mf_heuristic_check): Track seen /proc/self/map
1253         entries to avoid repeat registration.
1254         * mf-runtime.c (__mf_object_cemetary): Don't bother bury GUESS regions.
1255         (__mf_register, __mf_unregister): Rewrite GUESS handling logic.
1257 2002-09-09  Frank Ch. Eigler  <fche@redhat.com>
1259         * Makefile.am: Create test sources with #include, not cat>>.
1260         * Makefile.in: Regenerated.
1261         * test/buildtest.sh: Removed.
1262         * test/driver.c (abort_handler, main): Be quiet.
1264 2002-09-06  Frank Ch. Eigler  <fche@redhat.com>
1266         * test/pass18-frag.c, pass19-frag.c: New tests.
1267         * Makefile.am (check): Run them.  Rebuild test programs each time.
1268         * Makefile.in: Regenerated.
1270 2002-09-06  Frank Ch. Eigler  <fche@redhat.com>
1272         * mf-runtime.c (__mf_register): Correct SEGV-inducing error in
1273         overlapping object search.
1274         (__mf_violation): Likewise for nearby objects.
1275         Improve nearby-object listing.
1277         cleanup:
1278         * mf-runtime.c, mf-hooks.c: Remove "{{{"/"}}}" folding marks.
1279         * mf-heuristics.c (__mf_heuristic_check): Tweak message.
1281 2002-09-03  Frank Ch. Eigler  <fche@redhat.com>
1283         alloca support:
1284         * Makefile.am (AM_CFLAGS): New definition of needed settings.
1285         (HOOKOBJS): Add alloca-hook.o.
1286         * mf-hooks.c (alloca): New function to implement alloca in libiberty
1287         style.
1288         * mf-runtime.c (__mf_report): Call alloca(0) to flush remaining blocks.
1289         (__mf_backtrace): Reimplement without using alloca.
1290         * Makefile.in: Regenerated.
1292         cleanup:
1293         * mf-hooks.c: Use VERBOSE_TRACE throughout instead of fprintf(stderr).
1294         Correct signedness bugs in length-tracking variables.
1295         * mf-impl.h: Make options unsigned.
1296         (CALL_WRAP): New macro to parallel CALL_REAL().
1297         (DECLARE): Remove erroneous ";" at end.
1298         * mf-runtime.c, mf-hooks.c, mf-heuristics.c: Replace remaining %p
1299         formatting specs with %08lx.  Correct several compiler warnings.
1301 2002-08-28  Frank Ch. Eigler  <fche@redhat.com>
1303         * mf-runtime.c (__mf_violation): Try harder to locate nearby objects.
1305 2002-08-27  Frank Ch. Eigler  <fche@redhat.com>
1307         libmudflap hook breakup:
1308         * Makefile.am (TESTS_ENVIRONMENT): Add ../../gcc to LD_LIBRARY_PATH
1309         for libgcc_s.
1310         (TESTS): Make dependent on libmudflap.
1311         (HOOKOBJS): Break up mf-hooks.o into many little hook objects,
1312         compiled from segments of mf-hooks.c.
1313         * mf-hooks.c: Corresponding changes: wrap each function in
1314         #ifdef/#endif.
1315         * Makefile.in: Regenerated.
1317         Heuristics reorganization:
1318         * mf-heuristics.c (__mf_register_ro_sections, __mf_init_heuristics):
1319         Remove these functions.  Update callers.
1320         (__mf_heuristic_check): Incorporate all the various heuristics.
1321         Encode cacheability/retry judgement into trinary return value.
1322         Separate start-end logic into a separate fallback heuristic.  Only
1323         register relevant /proc/self/map segments.
1324         * mf-impl.h: Corresponding changes.
1325         * mf-runtime.c (__mf_check): Reorganize heuristics fallback logic.
1326         (__mf_init): Don't call __mf_init_heuristics.
1328         Tracing cleanup:
1329         * mf-heuristics.c, mf-runtime.c: Use new MUDFLAP_OPTION
1330         "-verbose-trace" to emit all tracing messages other than those of
1331         basic public api.  Eliminate some duplicate/excessive messages.
1332         * mf-runtime.h: Corresponding changes.
1334 2002-08-27  Graydon Hoare  <graydon@redhat.com>
1336         * mf-impl.h (WRAPPER): Change to create linker aliases for __wrap
1337         and __real when compiled with -DPIC.
1338         * mf-hooks.c (WRAPPER): Change all uses of WRAPPER macro slightly.
1339         * Makefile.am (AUTOMAKE_OPTIONS): Fix LD_LIBRARY_PATH for tests.
1340         * Makefile.in: Regenerate.
1342 2002-08-26  Graydon Hoare  <graydon@redhat.com>
1344         * mf-impl.h: New file, private implementation header.
1345         * mf-runtime.h: Reorganize a bit.
1346         (CLAMPSZ): Fix arithmetic.
1347         (__MF_CACHE_MISS_P): Fix arithmetic.
1348         * mf-runtime.c: Reorganize a bit.
1349         (__mf_dynamic): New structure.
1350         (resolve_single_dynamic): New function.
1351         (__mf_resolve_dynamics): New function.
1352         (__mf_init): Initialize dynamic wrappers.
1353         * mf-hooks.c: Macro-ize __real calls.
1354         Clamp various bits of arithmetic.
1355         Add explicit __mf_check call contexts.
1356         * Makefile.am: Add dependencies on mf-impl.h
1357         * Makefile.in: Regenerate.
1358         * configure.in: Comment out shared override.
1359         * configure: Regenerate.
1361 2002-08-22  Graydon Hoare  <graydon@redhat.com>
1363         * mf-runtime.c (__mf_process_opts): Sanity-check free_queue_length.
1364         (__mf_check): Re-inialize and check heuristics before violation.
1365         (__mf_register): Permit updating pure-guess regions.
1366         * mf-hooks.c (__wrap_free): Correct some free queue logic.
1367         (__wrap_dlopen): New wrapper function.
1368         (__wrap_mmap): New wrapper function.
1369         (__wrap_munmap): New wrapper function.
1370         * mf-heuristics.c (__mf_register_ro_sections): Register *all* regions
1371         which are not stack addresses.
1372         (is_stack_address): New function.
1373         (__mf_init_heuristics): Save and restore state, always initialize with
1374         "starting" state.
1376 2002-08-21  Frank Ch. Eigler  <fche@redhat.com>
1378         * mf-hooks.c (MF_VALIDATE_EXTENT): Rewrite to correct off-by-one
1379         error.  Pass location string.
1380         (wrap_strcpy, wrap_strncpy): Remove extra %s in trace strings.
1381         * mf-runtime.c (options): Add lc-mask, lc-shift options.
1382         (__mf_process_opts): Apply some sanity checking for lc-mask.
1383         (__mf_check, __mf_violation): Take new location-string argument.
1384         Update callers to pass NULL if necessary.
1385         (__mf_backtrace): New smart backtracer function.  Calls replace
1386         several ad-hoc blocks elsewhere.
1387         (__mf_describe_object): Remove bad reentrancy test.  Improve
1388         tracing message.
1389         * mf-runtime.h: Corresponding changes.  Public/private markup.
1390         (__MF_CACHE_MISS_P): New macro.
1392 2002-08-20  Graydon Hoare  <graydon@redhat.com>
1394         * mf-runtime.h: New option: stack_bound (heuristic).
1395         Move some macros out of implementation files.
1396         * mf-runtime.c: New option string: -stack-bound.
1397         Unify recursion protection with hooks.
1398         Add more logging.
1399         (__mf_check): Call __mf_heuristic_check.
1400         (__mf_process_opts): Fix "no-" processing.
1401         * mf-heuristics.c (__mf_heuristic_check): New function.
1402         * mf-hooks.c: Much off-by-one fixing, recursion protection.
1404 2002-08-20  Frank Ch. Eigler  <fche@redhat.com>
1406         Option parsing improvements, region splitting bug fixes:
1407         * mf-heuristics.c (__mf_register_ro_sections): Add warned casts.
1408         * mf-runtime.h (heur_proc_map): New libmudflap option.
1409         * mf-runtime.c (__mf_set_default_options): Set it.
1410         (__mf_usage): Print default values/status.
1411         (__mf_process_opts): Support general "no-" option string prefix.
1412         (__mf_init): Print __mf_usage on unknown-option error.
1413         (__mf_register): Print trace message up front.
1414         Correct region splitting logic for case where a subregion disappears.
1415         Correct memory leak.
1416         (__mf_violation): Make even basic message conditional on option.
1418         Build cleanup:
1419         * Makefile.am (TESTS_ENVIRONMENT): Add -no-heur-proc-map.
1420         (clean-local): New target.
1421         (test/*x rules): Add -g CFLAGS.
1422         (CFLAGS): Add -freorder-blocks.
1423         (MFCONFIG_CFLAGS, INCLUDE): Remove unneeded settings.
1424         * Makefile.in: Regenerated.
1425         * Makefile, mf-config.h: Removed files.
1427 2002-08-16  Graydon Hoare  <graydon@redhat.com>
1429         * mf-runtime.c (__mf_insert_new_object): Factor out of
1430         __mf_register.
1431         (__mf_remove_old_object): Factor out of __mf_unregister.
1432         (__mf_register): Handle guessed regions, splitting
1433         guesses when new registrations arrive.
1434         (__mf_unregister): Do not unregister guesses.
1435         * mf-runtime.h: Move convenience macros around,
1436         declare new option fields. Add __MF_TYPE_GUESS.
1437         * mf-hooks.c (__wrap_*alloc): Use crumple zones.
1438         (__wrap_free): Call __real_free for deferred frees.
1439         * Makefile.am: Add more tests, fix dependency.
1440         * Makefile.in: Regenerate.
1441         * test/pass[13..17]-frag.c: New testcases.
1442         * test/fail[13..17]-frag.c: New testcases.
1444 2002-08-15  Graydon Hoare  <graydon@redhat.com>
1446         * mf-heuristics.c: New file.
1447         * mf-runtime.c (options): Add -trace-calls option.
1448         (__mf_init): Call __mf_init_heuristics.
1450 2002-08-14  Graydon Hoare  <graydon@redhat.com>
1452         * Makefile.am (TESTS): Add testsuite support.
1453         * Makefile.in: Regenerate.
1454         * test/mf-driver.c: New file.
1455         * test/buildtest.sh: New file.
1456         * test/passNN-frag.c: New testcases.
1457         * test/failNN-frag.c: New testcases.
1459 2002-08-14  Graydon Hoare  <graydon@redhat.com>
1461         * mf-hooks.c: Change __real_strlen() to __real_strlen()+1 when
1462         verifying non-size-limited string extents.
1464 2002-08-14  Frank Ch. Eigler  <fche@redhat.com>
1466         * mf-hooks.c: Make __wrap string* functions use __real_str[n]len
1467         instead of plain str[n]len for internal checks.
1468         * mf-runtime.c (__mf_violation): Print optional stack traceback.
1470 2002-08-14  Frank Ch. Eigler  <fche@redhat.com>
1472         * mf-hooks.c: Remove #if-0 around hooks that are now ld-wrapped.
1474 2002-08-13  Graydon Hoare  <graydon@redhat.com>
1476         * mf-runtime.c: Rework configuration to operate on
1477         environment variable options rather than #defines
1478         (__mf_violation): Add simple fork-a-gdb violaiton mode.
1479         (__mf_init): Set static __mf_active_p flag on startup,
1480         to inhibit mudflap wrap-based checking during crt0.s.
1481         * mf-runtime.h: Declare options structure.
1482         * mf-hooks.c: New wrappings for mem*, b*, str*
1483         libc functions (temporarily #if 0-ed out).
1485 2002-08-12  Frank Ch. Eigler  <fche@redhat.com>
1487         * Makefile.am, configure.in: New files.
1488         * Makefile.in, Makefile, configure, config.h.in: New generated files.
1489         * stamp-h.in, aclocal.m4: Ditto.
1491 2002-08-08  Frank Ch. Eigler  <fche@redhat.com>
1493         * Makefile: New file.
1494         * mf-config.h: New file: runtime configuration.
1495         * mf-hooks.c: New file: interposed libc functions.
1496         * mf-runtime.c: New file: bulk of runtime.
1497         * mf-runtime.h: New file: public functions.