OSDN Git Service

2004-05-21 Frank Ch. Eigler <fche@redhat.com>
[pf3gnuchains/gcc-fork.git] / libmudflap / ChangeLog
1 2004-05-21  Frank Ch. Eigler  <fche@redhat.com>
2
3         * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
4         * Makefile.in: Ditto.
5
6 2004-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7
8         * acinclude.m4 (lt_cv_deplibs_check_method): Use pass_all on sh*.
9         * aclocal.m4, configure: Rebuilt.
10
11 2004-05-17  Frank Ch. Eigler  <fche@redhat.com>
12
13         * lib/libmudflap.exp (libmudflap-init): For C++ test cases only,
14         import some build settings from libstdc++-v3 testsuite_flags.
15         * .../cfrags.exp, .../c++frags.exp, .../cthfrags.exp: Corresponding
16         changes to pass test language.
17
18         * mf-runtime.c (__mfu_check): Poison the cache with antidote for
19         quicker mode-nop handling.
20
21 2004-03-25  Frank Ch. Eigler  <fche@redhat.com>
22
23         * mf-impl.h: Added libgcc license header.
24
25 2004-03-20  Frank Ch. Eigler  <fche@redhat.com>
26
27         * mf-hooks[123].c, mf-runtime.c, mf-heuristics.c:
28         Added libgcc license header.
29         * mf-hooks3.c (__mf_0fn_pthread_create): Correct arg constness.
30         (pthread_create): Simplify stack allocation syntax.
31
32 2004-03-08  Loren J. Rittle  <ljrittle@acm.org>
33
34         * mf-hooks2.c: Support FreeBSD.
35         (WRAP_gets): Avoid gets().
36         * testsuite/libmudflap.c/pass-stratcliff.c: Do not
37         test unimplemented mem/str calls on FreeBSD.
38         * testsuite/libmudflap.c/pass21-frag.c: Do not include
39         <alloca.h> on FreeBSD.
40
41 2004-01-30  Frank Ch. Eigler  <fche@redhat.com>
42
43         * testsuite/libmudflap.c/pass36-frag.c: Add missing free() call.
44         * testsuite/libmudflap.c/pass46-frag.c: New test for -fmudflapir.
45         * testsuite/libmudflap.cth/cthfrags.exp: Add -DSTATIC to compiler
46         flags for static linking permutation.
47         * testsuite/libmudflap.cth/pass40-frag.c: When -DSTATIC, avoid
48         some pthreads code that croaks on linux glibc tls.
49
50 2004-01-27  Frank Ch. Eigler  <fche@redhat.com>
51
52         * testsuite/libmudflap.c/fail31-frag.c, pass45-frag.c: New tests.
53
54 2004-01-15  Frank Ch. Eigler  <fche@redhat.com>
55
56         * testsuite/libmudflap.c/pass44-frag.c: New test.
57
58 2004-01-12  Frank Ch. Eigler  <fche@redhat.com>
59
60         * testsuite/libmudflap.c/fail{28,29,30}-frag.c: New tests.
61
62 2004-01-08  Frank Ch. Eigler  <fche@redhat.com>
63
64         * testsuite/libmudflap.c/pass43-frag.c: Added missing program rc.
65
66 2003-12-11  Frank Ch. Eigler  <fche@redhat.com>
67
68         * testsuite/libmudflap.c/pass42-frag.c, pass43-frag.c: New tests.
69
70 2003-12-08  Andrew Pinski  <pinskia@physics.uc.edu>
71
72         PR libmudflap/12670
73         * configure.in: Add check for see if
74         socklen_t typedef is in sys/socket.h.
75         * mf-hooks1.c: Add define if socklen_t
76         is not typedef.
77         * mf-hooks2.c: Likewise.
78         * mf-hooks3.c: Likewise.
79         * config.h.in: Regen.
80         * configure: Regen.
81
82 2003-12-08  Frank Ch. Eigler  <fche@redhat.com>
83
84         * mf-runtime.c (__mf_watch_or_not): Tweak tracing message.
85         * testsuite/libmudflap.c/fail21-frag.c: Defeat aliasing
86         optimizations.
87         * testsuite/libmudflap.c/pass25-frag.c: Ditto.
88         * testsuite/libmudflap.c/pass26-frag.c: Tolerate non-overlapping
89         (unoptimized) allocation of stack space.
90
91 2003-12-07  Richard Henderson  <rth@redhat.com>
92
93         * testsuite/libmudflap.c/fail23-frag.c (main): Adjust addend to 11.
94         * testsuite/libmudflap.c/fail27-frag.c (foo): Mark noinline.
95
96 2003-12-06  Andrew Pinski <apinski@apple.com>
97
98         partial PR libmudflap/12670
99         * mf-hooks1.c: Respect Darwin checks.  Conditionalize POSIX_SOURCE.
100         * mf-hooks2.c: Likewise.
101         * mf-hooks3.c: Likewise.
102
103 2003-11-19  Frank Ch. Eigler  <fche@redhat.com>
104
105         libstdc++/11696
106         * mf-runtime.h.in: Switch to #pragma redefine_extname for
107         symbols interposed at compile time.
108         * testsuite/libmudflap.c++/pass41-frag.cxx: New test.
109
110         libmudflap/12939
111         * mf-hooks2.c (semctl): Tolerate FreeBSD.
112
113         * configure.in: Reorganize check for <pthread.h>.
114         * configure: Regenerated.
115         
116 2003-11-04  David Edelsohn  <edelsohn@gnu.org>
117
118         * mf-runtime.c (_ALL_SOURCE): Define for AIX.
119         (_LARGE_FILE_API): Define for AIX.
120         * mf-hooks[123]: Same.
121         (_XOPEN_SOURCE_EXTENDED): Define to 1 for AIX.
122
123 2003-10-21  David Edelsohn  <edelsohn@gnu.org>
124
125         * mf-runtime.c (_XOPEN_SOURCE_EXTENDED): Define to 1 for AIX.
126
127 2003-07-29  Frank Ch. Eigler  <fche@redhat.com>
128
129         2003-07-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
130
131         * configure.in: Update check for union semun.
132
133 2003-07-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
134
135         PR other/11673
136         * mf-hooks2.c [WRAP_semctl]: Fix check for HAVE_UNION_SEMUN.
137
138 2003-07-29  Frank Ch. Eigler  <fche@redhat.com>
139
140         PR other/11673
141         * configure.in: Add checks for 64-bit LFS functions, struct semun
142         definition, for BSD compatibility.
143         * mf-hooks1.c: Respect BSD checks.  Conditionalize POSIX_SOURCE.
144         * mf-hooks2.c: Ditto.  Include <strings.h> for bcmp* decls.
145         * mf-hooks3.c: Ditto.
146         (pthread_create): Try MAP_ANON on platforms without the MAP_ANONYMOUS
147         mmap flag.
148         * configure, config.h.in: Regenerated.
149
150 2003-07-23  Frank Ch. Eigler  <fche@redhat.com>
151
152         Multithreading fixes:
153         * mf-runtime.c (__mf_object): Store allocating/deallocating
154         thread id.
155         (options): Support new "-thread-stack" option.
156         Rename "-heur-argv-environ" option to "-heur-stdlib".
157         Disable "-lc-mask" and "-lc-shift" options.
158         (__mf_dynamic): Add function pointers for pthread_join/_exit.
159         (__assert_fail): New self-contained function for glibc.
160         * mf-hooks3.c: Essentially rewritten, particularly related to
161         use of __mf_pthread_info array.
162         (pthread_join, _exit): New hook functions.
163         * mf-impl.h (BEGIN_PROTECT): Handle starting_p case.
164         * testsuite/libmudflap.cth/pass40-frag.c: New test.
165
166         Warning cleanups:
167         * mf-heuristics.c: Add type casts for tracing, sub calls.
168         * mf-impl.h (BEGIN_PROTECT): Redefine to omit result type.
169         Update all callers to declare explicit result holder.
170         (END_PROTECT): Removed.
171         * testsuite/*/*frags.exp: Clean up default MUDFLAP_OPTIONS.
172
173 2003-07-15  Diego Novillo  <dnovillo@redhat.com>
174
175         * testsuite/libmudflap.c/fail21-frag.c: Add volatile modifiers.
176         * testsuite/libmudflap.c/fail15-frag.c: Likewise.
177         * testsuite/libmudflap.c/fail13-frag.c: Likewise.
178
179 2003-07-04  Frank Ch. Eigler  <fche@redhat.com>
180
181         * mf-hooks1.c, 2.c, 3.c: New file, splits up content from old ...
182         * mf-hooks: Removed.
183         * mf-impl.h (MF_VALIDATE_EXTENT, BEGIN_PROTECT, END_PROTECT):
184         Move these macros from old mf-hooks.c here.
185         * Makefile.am: Adapt to split-up hook sources for faster builds.
186         * Makefile.in: Regenerated.
187
188         * mf-heuristics.c: Remove #if-0 block.
189
190         * mf-impl.h (__mf_state): Reorganize declaration and implementation.
191         (__mf_starting_p): New state only for use while dlsym bootstrapping.
192         (CALL_REAL, __mf_init): Corresponding changes.
193         (TRACE, VERBOSE_TRACE): Include thread id and "mf:" prefix.  Update
194         all callers to remove redundant "mf:" prefix.
195         * mf-runtime.h.in: #define a few reentrancy macros for libmudflapth.
196         * mf-hooks3.c: Rewrite chunks to support per-thread __mf_state value.
197         (__mf_pthread_info): Become a hash table.
198
199         * testsuite/lib/mfdg.exp: Support new "dg-timeout" and
200         "dg-repetitions" directives to control test case execution.
201         * testsuite/libmudflap.cth/pass37-frag.c: Add timeout and repeat
202         options.
203         * testsuite/libmudflap.cth/pass39-frag.c: Ditto for this new test.
204
205 2003-06-25  Frank Ch. Eigler  <fche@redhat.com>
206
207         * mf-hooks.c (alloca): Separate into stub.
208         (__mf_wrap_alloca_indirect): New function.  Use CALL_REAL
209         malloc/free for alloca blocks.
210         (pthread_create): Tolerate failing pthread_attr_get* calls.
211         * mf-runtime.c (__mf_fini): Call __mf_wrap_alloca_indirect.
212         * mf-impl.h (CALL_WRAP): Remove macro.
213         * testsuite/libmudflap.c/pass21-frag.c: Include <alloca.h>.
214         * testsuite/libmudflap.c/pass23-frag.c: Include more struct
215         padding for ia64 BIT_FIELD_REF constructs.
216
217 2003-06-19  Frank Ch. Eigler  <fche@redhat.com>
218
219         * mf-hooks.c (struct pthread_info): Add "thread_errno" field.
220         (__mf_pthread_spawner, __mf_pthread_cleanup): Use it with GUESS 
221         libmudflap object type.
222         * mf-runtime.c (__mfu_unregister): Correct cemetary logic to avoid
223         crashes on unregistering STATIC objects.
224
225 2003-06-17  Frank Ch. Eigler  <fche@redhat.com>
226
227         Based on patch from Eyal Lebedinsky <eyal@eyal.emu.id.au>:
228         * mf-hooks.c (__mf_pthread_spawner): Register thread errno.
229         (time, strerror, fopen, fopen64, fclose, fread): New hooks.
230         (fwrite, fgetc, fgets, getc, gets, ungetc, fputc): New hooks.
231         (fputs, putc, puts, clearerr, feof, ferror, fileno): New hooks.
232         (printf, fprintf, sprintf, snprintf, vprintf, vfprintf): New hooks.
233         (vsprintf, vsnprintf, access, remove, fflush, fseek): New hooks.
234         (fseeko64, ftell, ftello64, rewind, fgetpos, fsetpos): New hooks.
235         (stat, stat64, fstat, lstat, mkfifo, setvbuf, setbuf): New hooks.
236         (setvbuf, opendir, closedir, readdir, recv, recvfrom): New hooks.
237         (recvmsg, send, sendto, sendmsg, setsockopt, getsockopt): New hooks.
238         (accept, bind, connect, gethostname, sethostname): New hooks.
239         (gethostbyname, wait, waitpid, popen, pclose, execve): New hooks.
240         (execv, execvp, system, dlopen, dlclose, dlerror, dlsym): New hooks.
241         (semop, semctl, shmctl, shmat, shmdt): New hooks.
242         * mf-runtime.h.in: Corresponding changes.
243         * mf-runtime.c (__mf_ini): Register stdio objects.  Use STATIC type.
244         (opts) Rename heur_argv_environ to heur_std_data.
245         (__mf_wrap_main): Use STATIC type for argv/environ strings.
246         * Makefile.am: Corresponding changes.
247         * Makefile.in: Regenerated.
248
249 2003-06-11  Frank Ch. Eigler  <fche@redhat.com>
250
251         * mf-heuristics.c (__mf_heuristic_check): Disable stack_bounds 
252         heuristic for threaded case, and for non-x86-linux targets.
253         * mf-hooks.c (__mf_0fn_calloc): Provide a working dummy implementation
254         for use during pre-main() program startup.
255         (__mf_0fn_*): Make these functions non-static.
256         * mf-impl.h (DECLARE, CALL_REAL): Support calls to 0fn backup hook 
257         functions.
258         * mf-runtime.c (__mf_state): Set initial state to "starting".
259         (__mf_resolve_single_dynamic): Tolerate repeated calls for same symbol.
260         (__wrap_main): New function to register argv[] and environ[] strings.
261         (__mf_ini): Call it.
262         (*): In all trace functions, use "%p" as formatter for uintptr_t.
263
264         * testsuite/libmudflap.c/pass38-frag.c: New test case.
265         * testsuite/libmudflap.cth/pass37-frag.c: Improved test.
266         
267         * acinclude.m4: Add comments with aoliva's concerns about x86_64 
268         pass_all.
269         * aclocal.m4, configure: Regenerated.
270
271 2003-06-04  Frank Ch. Eigler  <fche@redhat.com>
272
273         * acinclude.m4: Correct typo in AC_MSG_CHECKING.
274         * aclocal.m4, configure: Regenerated.
275
276 2003-06-03  Frank Ch. Eigler  <fche@redhat.com>
277
278         * acinclude.m4: Force "pass_all" deplibs_check_method for libtool
279         for x86_64 target.  Disable caching for this value.
280         * aclocal.m4, configure: Regenerated.
281
282 2003-06-02  Frank Ch. Eigler  <fche@redhat.com>
283
284         * testsuite/libmudflap.c/pass38-frag.c: Deleted.  -fwritable-strings
285         is about to become deprecated, and its present handling bugs are
286         unworthy of fixing.
287
288 2003-05-30  Frank Ch. Eigler  <fche@redhat.com>
289
290         * testsuite/libmudflap.c/pass38-frag.c: New test for
291         -fwritable-strings.
292
293 2003-05-23  Frank Ch. Eigler  <fche@redhat.com>
294
295         * mf-runtime.c (__mf_sigusr1_handle): Call unlocked variant of
296         __mf_report, asserting reentrant calling context.
297
298 2003-05-23  Frank Ch. Eigler  <fche@redhat.com>
299
300         * mf-hooks.c (realloc): Correct reentrancy logic.
301         * testsuite/libmudflap.c/hook-allocstuff.c: New test case.
302
303 2003-05-20  Frank Ch. Eigler  <fche@redhat.com>
304
305         * mf-hooks.c (LIBMUDFLAPTH_THREADS_MAX): New macro, replaces
306         PTHREAD_THREADS_MAX.  Update users.
307         * mf-runtime.c (__mf_usage): Print [active] instead of [default]
308         for active options.
309         * testsuite/Makefile.am (all-local): Prime dejagnu site.exp file
310         with libmudflapth presence indicator.
311         * testsuite/Makefile.in: Regenerated.
312
313 2003-05-16  Frank Ch. Eigler  <fche@redhat.com>
314
315         * Makefile.am (AM_CFLAGS): Remove "-ansi".
316         * configure.in: Remove silly no-pthreads => no-shared logic.
317         * Makefile.in, configure: Regenerated.
318         * mf-heuristics.c (__mf_heuristic_check): Remove reentrancy hacks.
319         * mf-hooks.c (BEGIN_PROTECT, END_PROTECT): Reorganize reentrancy
320         code.  Count reentrancy events.
321         (all hook functions): Don't directly manipulate __mf_state variable.
322         Add TRACE calls to hook functions without them.
323         * mf-impl.h (LOCKTH): Try to count lock contention events.
324         (VERBOSE_TRACE, TRACE): Remove reentrancy hacks.
325         * mf-runtime.c (BEGIN_RECURSION_PROTECT, END_RECURSION_PROTECT):
326         Reorganize reentrancy code.
327         (external __mf_ entry points): Use RECURSION_PROTECT mechanism to
328         identify reentrancy with mutex holding times.
329         (internal __mfu_ entry points): Remove internal reentrancy code.
330         (__mf_init): Use ordinary locked calls.
331         (__mfu_report): Print the two new counts.
332         * testsuite/lib/libmudflap.exp: Filter out junk ld/pthreads messages.
333         * testsuite/libmudfap.cth/cthfrags.exp: New test driver.
334         * testsuite/libmudflap.cth/pass37-frag.c: New pthreads test. 
335         * testsuite/libmudfap.cth/cfrags.exp: Adapt to new libmudflap
336         option defaults.
337
338 2003-05-09  Frank Ch. Eigler  <fche@redhat.com>
339
340         * configure.in: Add pthread support, plus glibc and porting hacks.
341         * Makefile.am (LIBMUDFLAPTH): New conditional, to build -lmudflapth
342         from objects built into ./pth/.
343         * mf-runtime.c (__mfu_watch,register,...): Fork new unlocked
344         functions for internal entry points.  Update callers to pick
345         locked vs. unlocked variants.
346         (__mf_resolve_single_dynamic): Extend to support symbol versioning
347         info coming in from a static data structure.
348         (*): Reorder miscellaneous declarations to group data vs functions.
349         (__mf_set_default_options): Simplify.
350         (__mf_usage): Mention threading status of host executable.
351         * mf-impl.h: Move max/min decls here.  Reorganize __mf_dynamic
352         decls to match above.
353         (LOCKTH, UNLOCKTH): New macros for Big Libmudflap Lock management.
354         * mf-heuristics.c: Choose between locked/unlocked calls.  Add
355         some lock/unlock markers.  Remove some unused code.
356         * mf-hooks: Ditto.
357         (pthread_create): New hook function.
358         (__mf_pthread_cleanup, _spawner): New helper functions.
359         * configure. aclocal.m4, config.h.in, Makefile.in: Regenerated.
360
361 2003-05-02  Frank Ch. Eigler  <fche@redhat.com>
362
363         * testsuite/libmudflap.c/fail27-frag.c: Add more volatile flags.
364
365 2002-04-28  Frank Ch. Eigler  <fche@redhat.com>
366
367         * Makefile.am (HOOKOBJS): Add *time related hooks.
368         * configure.in: Look for pthreads.h header.
369         * mf-hooks.c (asctime, ctime, gmtime, localtime): New wrappers.
370         * mf-runtime.c: Begin sketching some pthreads support.
371         (__mf_usage): Check for -lpthread presence.
372         (__mf_unregister): Confirm matching unregistration base.
373         (__mf_find_objects_rec): Reduce unnecessary recursion.
374         * mf-runtime.h.in: Add "nothrow" attribute to functions.  Add 
375         #defines for new hook functions.
376         * mf-impl.h: Corresponding changes.
377         * config.h.in, configure, Makefile.in: Regenerated.
378
379 2002-04-27  Diego Novillo  <dnovillo@redhat.com>
380
381         * testsuite/libmudflap.c/fail1-frag.c: Add volatile
382         modifiers to prevent being optimized away.
383         * testsuite/libmudflap.c/fail10-frag.c: Likewise.
384         * testsuite/libmudflap.c/fail13-frag.c: Likewise.
385         * testsuite/libmudflap.c/fail14-frag.c: Likewise.
386         * testsuite/libmudflap.c/fail15-frag.c: Likewise.
387         * testsuite/libmudflap.c/fail2-frag.c: Likewise.
388         * testsuite/libmudflap.c/fail20-frag.c: Likewise.
389         * testsuite/libmudflap.c/fail3-frag.c: Likewise.
390
391 2003-04-15  Frank Ch. Eigler  <fche@redhat.com>
392
393         * Makefile.am (libmudflap_la_LIBADD): Remove -ldl.
394         * configure.in: Look for uintptr_t and -ldl on target.
395         * mf-runtime.h.in: Adjust uintptr_t declaration logic.
396         * Makefile.in, aclocal.m4, configure, config.h.in: Regenerated.
397         * testsuite/Makefile.in: Regenerated.
398         * mf-runtime.c (__mf_sigusr1_respond): Tweak declaration and calls
399         for better C compliance.
400
401 2003-04-15  Frank Ch. Eigler  <fche@redhat.com>
402
403         * mf-hooks.c (MF_VALIDATE_EXTENT): Remove unnecessary reentrancy
404         prevention code.
405         * mf-runtime.c (__mf_set_default_options): Turn off
406         check-initialization.
407         (__mf_describe_object): Shorten description.
408         * testsuite/libmudflap.c/fail25-frag.c: Turn on check-initialization.
409
410 2003-04-07  Frank Ch. Eigler  <fche@redhat.com>
411
412         * mf-hooks.c (__mf_0fn_mmap): Correct return value, as per <rth>.
413
414 2003-04-02  Frank Ch. Eigler  <fche@redhat.com>
415
416         * mf-hooks.c (BEGIN_PROTECT): Handle startup-time reentrant
417         calls specially.
418         (__mf_0fn_malloc ... _munmap): New dummy backup calls.
419         * mf-impl.h (CALL_BACKUP): New macros.
420         * mf-runtime.c (__mf_init): Tweak __mf_state during startup.
421
422 2003-03-31  Frank Ch. Eigler  <fche@redhat.com>
423
424         * Makefile.am (AM_CFLAGS): Remove optimization flags.
425         (HOOKOBJS): Remove dlopen hook.
426         (libmudflap_la_LIBADD): Add -ldl.
427         * mf-hooks.c (dlopen): Remove hook.
428         * mf-impl.h (__mf_dynamic): Ditto.
429         * mf-runtime.c (__mf_resolve_dynamics): Ditto.
430         * Makefile.in: Regenerated.
431
432 2003-03-28  Frank Ch. Eigler  <fche@redhat.com>
433
434         * configure.in: Check for target gettimeofday, signal, some headers.
435         * mf-impl.h (__mf_opts): Add new "sigusr1_report" field.  Comment
436         out inop multi_threaded field.
437         * mf-runtime.c (options): Handle new "-sigusr1-report" option.
438         (__mf_set_options): Correct handling of "-help".
439         (__mf_sigusr1_respond): New function to manage SIGUSR1 response.
440         (__mf_check, __mf_register, __mf_unregister): Call it.
441         (__mf_insert_new_object, __mf_unregister): Respect HAVE_GETTIMEOFDAY.
442         (__mf_report_leaks): Make callable
443         (__mf_tree_analyze): Traverse in-order.  Accumulate address bit
444         distribution statistics.
445         (__mf_adapt_cache): Rewrite shift guessing logic based on address
446         bit distributions.
447         * config.h.in, configure: Regenerated.
448         * testsuite/libmudflap.c/fail27-frag.c: New test.
449         * testsuite/libmudflap.c/pass36-frag.c: New test.
450
451 2003-03-11  Frank Ch. Eigler  <fche@redhat.com>
452
453         * mf-runtime.h.in: Tweak.
454         * Makefile.am, configure.in: Tweak mf-runtime.h generation some more.
455         Don't use intermediate files nor AC_OUTPUT-time postprocessing.
456         * Makefile.in, testsuite/Makefile.in, configure: Regenerated.
457
458 2003-03-10  Frank Ch. Eigler  <fche@redhat.com>
459
460         * configure.in: Tweak generation of mf-runtime.h some more.  It
461         needs to work from both config.status and configure.
462         * configure: Regenerated.
463
464 2003-03-10  Frank Ch. Eigler  <fche@redhat.com>
465
466         * Makefile.am: Reorganize hook file building.  Add auto dependencies.
467         * configure.in: Tweak generation of mf-runtime.h.
468         * mf-runtime.h.in: Add new __MF_TYPE_HEAP_I.
469         * mf-hooks.c (*): Adapt to initialized-heap object type.
470         * mf-impl.h: Tweak cemetary boundaries.
471         * mf-runtime.c (__mf_check): Adapt to new initialized-heap object
472         type.
473         (__mf_insert_new_object, __mf_register, __mf_unregister): Ditto.
474         (__mf_describe_object, __mf_report_leaks, __mf_violation): Ditto.
475         * testsuite/lib/libmudflap.exp (includes): Include build tree.
476         * testsuite/libmudflap.c/pass{26,5}: Further adapt to initialization
477         checking.
478         * testsuite/.../fail{25,26}-frag.c: New tests.
479         * testsuite/.../pass{32,33,34,35}-frag.c: New tests.
480         * Makefile.in, configure: Regenerated.
481
482 2003-03-05  Frank Ch. Eigler  <fche@redhat.com>
483
484         * mf-runtime.c (__mf_set_default_options): Turn on initialization
485         checking by default.
486         (__mf_insert_new_object): As a temporary hack, assume that new
487         objects registered on the stack start out initialized.
488         * testsuite/libmudflap.c/fail9,pass23,pass[6789]-*: Initialize
489         heap objects by hand.
490
491 2003-03-05  Frank Ch. Eigler  <fche@redhat.com>
492
493         Switch to macro-style hooks for str*/mem*/b* functions.
494         * mf-runtime.h.in (__MF_TYPE_*): Moved some internal values out.
495         (mem*, str*, b*): Added macro-style hooks for _MUDFLAP case.
496         * mf-runtime.c: #include config.h to enable glibc backtraces again.
497         (__mf_set_default_options): Turn off heur_proc_map.
498         (*): Adapt to to macro-style hook functions.
499         (__mf_object_dead_head, __mf_object_cemetary): Correct bounds.
500         (__mf_check, __mf_register, __mf_unregister): Tweak tracing message.
501         (__mf_violation): Handle __MF_VIOL_WATCH.
502         * mf-impl.h (__MF_TYPE_*): Moved these internal values here.
503         (__mf_dynamic): Removed mem*/str*/b* functions.
504         (TRACE, VERBOSE_TRACE): Add reentrancy locking.
505         (WRAPPER2): New macro for macro-style hooks.
506         * mf-hooks.c: Convert mem*/str*/b* functions to simpler
507         macro-style hooks.
508         (BEGIN_PROTECT): Tweak tracing vs reentrancy-lock ordering.
509         * mf-heuristics.c: Adapt to macro-style hook functions.
510         Correct some comments.
511         * testsuite/lib/mfdg.exp (dg-test): Simplify result string for
512         output pattern tests.
513         * testsuite/libmudflap.c/fail[89]-frag.c: Elaborate output test.
514         * testsuite/libmudflap.c++/c++frags.exp: Enable non-static tests.
515
516 2003-02-28  Frank Ch. Eigler  <fche@redhat.com>
517
518         * testsuite/libmudflap.c/fail23-frag.c, pass30-frag.c: New tests
519         for global array registration.
520         * testsuite/libmudflap.c++/fail24-frag.cxx, pass31-frag.cxx: Ditto.
521         * testsuite/libmudflap.c++/c++frags.exp: Tweak -static multilib hack.
522
523 2003-02-27  Frank Ch. Eigler  <fche@redhat.com>
524
525         * Makefile.am: Add gross make bug workarounds.  Tweaked
526         SUBDIRS and AM_CFLAGS.
527         * Makefile.in: Regenerated.
528
529 2003-02-26  Frank Ch. Eigler  <fche@redhat.com>
530
531         Switch to dejagnu.
532         * configure.in (AC_PROG_CXX): Don't look for C++ any more.
533         * Makefile.am (TESTS): Remove simple automake testing.
534         * configure, Makefile.in: Regenerated.
535         (SUBDIRS): Include new testsuite/ directory.
536         * tests/*: Removed all files; moved bulk under:
537         * testsuite/*: New subdirectory tree.
538         * testsuite/libmudflap.c/cfrags.exp: New file, C test driver.
539         * testsuite/libmudflap.c++/c++frags.exp: New file, C++ test driver.
540         * testsuite/lib/libmudflap.exp: New file, derived from libstdc++.
541         * testsuite/lib/mfdg.exp: New file, derived from dejagnu.
542         * testsuite/config/default.exp: New file.
543         * testsuite/Makefile.am, Makefile.in: New files.
544
545 2003-01-29  Frank Ch. Eigler  <fche@redhat.com>
546
547         * Makefile.am (TESTS_ENVIRONMENT): Remove redundant "-mode-check".
548         (TESTS): Add fail22 and pass29 tests.
549         * mf-runtime.h.in: Change API to take void*/size_t region parameters.
550         Add new access-type parameter for __mf_check.  Move __MF_VIOL* out.
551         * mf-impl.h: Corresponding changes.  Update CLAMP* macros for void*
552         values.  Move __MF_VIOL* here.
553         * mf-runtime.c (*): Adapt to void*/size_t API in mf-runtime.h.
554         (check_initialization): New field in __mf_opts.  Default off.
555         (read_count,write_count): New fields in __mf_object.
556         (__mf_check): Implement basic initialization checking.
557         (__mf_insert_new_object): Assume STATIC|GUESS regions are initialized.
558         (__mf_describe_object): Print new fields.
559         (__mf_violation): Identify check/read vs. check/write in messages.
560         * test/pass29-frag.c, test/fail22-frag.c: Basic tests for new
561         "-check-initialized" mudflap option.
562         * test/pass25-frag.c, test/fail21-frag.c: Adapt to API changes.
563         * mf-hooks.c (MF_VALIDATE_EXTENT): Add new access-type parameter.
564         Drop __FILE__/__LINE__ hack.  Update callers.
565         (*): Adapt to new mf-runtime.h API.
566         * Makefile.in: regenerated.
567
568 2003-01-24  Frank Ch. Eigler  <fche@redhat.com>
569
570         * configure.in: Build mf-runtime.h a more proper way.
571         * mf-hooks.c (strdup, strndup): Correct reentrancy logic.
572         * mf-runtime.c (verbose_violations): Turn on by default.
573         * mf-runtime.h.in: Remove some miscellaneous stuff ...
574         * mf-impl.h: ... and move it here.
575         * configure: Regenerated.
576
577 2003-01-22  Frank Ch. Eigler  <fche@redhat.com>
578
579         * configure.in: Look for C++ compiler.
580         * test/*-frag.c, mf-driver.c: Reformatted with GNU indent and
581         fixed type warnings when built with C++.
582         * test/pass27-frag.cxx, pass28-frag.cxx: New C++ tests.
583         * Makefile.am (TESTS): Run them.
584         (*) Add new rules for building and running C++ tests.
585         (TESTFLAGS): Set new default to avoid libstdc++-v3 shlib issues.
586         * mf-runtime.h.in: Protect with extern "C".
587         * Makefile, configure: Regenerated.
588
589 2003-01-06  Frank Ch. Eigler  <fche@redhat.com>
590
591         Portability improvements.
592         * configure.in: Look for glibc backtrace headers/functions.
593         * mf-hooks.c: Don't include <execinfo.h> any more.
594         * mf-runtime.c (__mf_set_options): Call more stdlib functions
595         via CALL_REAL.
596         (__mf_backtrace): Provide alternate baby implementation in 
597         absence of glibc.
598         * test/mf-driver.c: Portability tweaks.
599         * acinclude.m4: New file, containing top level libtool.m4.
600         * aclocal.m4, configure, Makefile.in, config.h.in: Regenerated.
601
602 2002-12-19  Frank Ch. Eigler  <fche@redhat.com>
603
604         * mf-runtime.h.in (HAVE_UINTPTR_T): Define unconditionally.
605
606 2002-11-08  Frank Ch. Eigler  <fche@redhat.com>
607         
608         * mf-runtime.c (options): Add new "wipe-heap", "wipe-stack"
609         options.
610         (__mf_unregister): Implement stack/heap object wiping.
611         (__mf_set_options): Renamed from __mf_process_opts.
612         (__mf_uncache_object): Change arg type, correct callers. 
613         * mf-impl.h: Corresponding changes.
614         * mf-hooks.c (realloc): Save/restore heap-wiping flag.
615         * mf-runtime.h.in (__mf_set_options): Extend public API.
616         * test/pass26-frag.c: New test for stack wiping.
617         * Makefile.am (TESTS): Run it.
618         * Makefile.in: Regenerated.
619         
620 2002-11-07  Frank Ch. Eigler  <fche@redhat.com>
621
622         * mf-runtime.h.in (__mf_watch, __mf_unwatch): Extend public API.
623         * mf-runtime.c (__mf_object_t): Add watching_p field.
624         (__mf_watch_or_not): New function to implement
625         object watch flagging.
626         (__mf_watch, __mf_unwatch): New wrappers for above.
627         (__mf_check, __mf_describe_object): Handle objects with watching_p.
628         (__mf_count_violation): Enlarge array.
629         (__mf_uncache_object): Renamed from __mf_remove_old_object.  Don't
630         unlink object.  Clear cache properly.
631         (__mf_unregister): Unlink object explicitly before uncaching.
632         * test/fail21-frag.c, pass25-frag.c: New tests.
633         * Makefile.in, aclocal.m4: Regenerated.
634         
635 2002-11-05  Frank Ch. Eigler  <fche@redhat.com>
636
637         * test/fail20-frag.c: New test for NULL pointer dereferencing.
638         * Makefile.am (TESTS): Add it.
639         * test/pass-stratcliff.c: Add decls of stpcpy.
640         * configure.in: Test for <stdint.h>.  Generate mf-runtime.h in
641         build tree from config.h and new file mf-runtime.h.in.
642         * mf-runtime.h.in: Renamed from mf-runtime.h.  Tweak uintptr_t decl.
643         * Makefile.in, configure, config.h.in: Regenerated.
644         * mf-hooks.c: Add #undef for wrapped glibc str*/mem* macros.    
645         * mf-runtime.c (options, __mf_set_default_options): Support new 
646         default "abbreviate" option.
647         (__mf_object.description_epoch): New field.
648         (__mf_describe_object): Conditionally abbreviate objects already
649         displayed in current epoch.  Accept NULL input to increment epoch.
650         (__mf_fini, __mf_ini): Reset description epoch.
651         (__mf_register, __mf_unregister, __mf_adapt_cache, __mf_init): Ensure
652         that NULL pointer slot in lookup cache is invalidated.  Register a
653         NOACCESS region around NULL.
654         * mf-impl.h: Corresponding changes.
655
656 2002-10-16  Frank Ch. Eigler  <fche@redhat.com>
657
658         * test/fail19-frag.c, pass24-frag.c, pass-stratcliff.c: New tests.
659         * Makefile.am: Run them.  Install mf-runtime.h.
660         * Makefile.in: Regenerated.
661         * mf-hooks.c: Add some markers for more missing functions.
662         * mf-runtime.c (__mf_adapt_cache): Experiment with a utilization-based
663         statistic to tune tune cache size (mask).
664
665 2002-10-01  Frank Ch. Eigler  <fche@redhat.com>
666
667         * test/pass23-frag.c: New test for bit_field_ref expressions.
668         * Makefile.am, Makefile.in: Add new test.
669         * mf-hooks.c (mmap, munmap): Rewrite to track individual pages.
670         (MF_VALIDATE_EXTENT): Accept zero-size mem/str operations.
671         * mf-runtime.c (__mf_init): Register errno global.
672         (__mf_find_object): Removed function.
673         (__mf_check): Rewrite logic to support accesses across some
674         contiguous but distinctly registered objects.
675         (__mf_remove_old_object): Tolerate cache entries that span
676         contiguous objects.
677
678 2002-09-30  Frank Ch. Eigler  <fche@redhat.com>
679
680         * test/pass21-frag.c, pass22-frag.c: New tests: alloca, bitfields.
681         * Makefile.am, Makefile.in: Run new tests.
682         * mf-hooks.c (alloca): Correct stack direction logic.
683
684 2002-09-26  Frank Ch. Eigler  <fche@redhat.com>
685
686         * mf-impl.h (adapt_cache): New option.
687         * mf-runtime.c (__mf_set_default_options): Set its default value.
688         Tweak the tree_aging parameter down.
689         (__mf_check): Maintain separate counter for cache-adaptation.
690         (__mf_tree_analyze): New function to collect object tree stats.
691         (__mf_adapt_cache): New function to automate cache parameters.
692
693 2002-09-24  Frank Ch. Eigler  <fche@redhat.com>
694
695         * mf-heuristics.c (__init_misc, __mf_heuristic_check): Add
696         hypothetical #if-0'd argv/envp region registration.
697         * mf-runtime.c (__mf_init): Add kludged form of above.
698         (*) Add "heur_argv_environ" flag, default on, to govern this.
699         * mf-impl.h: Corresponding changes.
700
701 2002-09-20  Frank Ch. Eigler  <fche@redhat.com>
702
703         * test/fail18-frag.c: New test file for NOACCESS regions.
704         * Makefile.am (TESTS): Add new test.
705         * Makefile.in: Regenerated.
706
707         * mf-heuristics.c (__mf_heuristics_check): Correct deja_vu logic.
708         * mf-impl.h (tree_aging): Add new mudflap_option, default 1000000.
709         (optimize_object_tree): Remove unused mudflap_option.
710         * mf-runtime.h (__MF_TYPE_NOACCESS): New region type.  Add printing
711         support throughout.  Use .._MAX_CEM for cemetary upper bound.
712         * mf-runtime.c (__mf_init): Register __mf_* globals as NOACCESS
713         regions.
714         (__mf_object): Add new liveness field for use by tree aging.
715         (__mf_check): Trigger tree aging when needed.
716         (__mf_age_tree): New function to decay liveness field.
717         (__mf_find_objects_rec): Use liveness field to rotate tree.
718         (__mf_insert_new_object): Only provide backtrace for HEAP objects.
719         (__mf_unregister): Ditto.
720         (__mf_register): Tweak duplicate-static message.
721         (__mf_violation: Tweak nearby-object counter printing.
722
723 2002-09-16  Frank Ch. Eigler  <fche@redhat.com>
724
725         * test/pass20-frag.c: New test file.
726         * Makefile.am (TESTS): Reorganize.  Add pass20 test.
727         * Makefile.in: Regenerated.
728
729         * mf-impl.h (TRACE_IN, TRACE_OUT): Remove macros.  Update callers.
730         * mf-hooks.c (BEGIN_PROTECT): Add hook tracing here.
731         * mf-heuristic.c (__mf_heuristic_check): Track seen /proc/self/map
732         entries to avoid repeat registration.
733         * mf-runtime.c (__mf_object_cemetary): Don't bother bury GUESS regions.
734         (__mf_register, __mf_unregister): Rewrite GUESS handling logic.
735         
736 2002-09-09  Frank Ch. Eigler  <fche@redhat.com>
737
738         * Makefile.am: Create test sources with #include, not cat>>.
739         * Makefile.in: Regenerated.
740         * test/buildtest.sh: Removed.
741         * test/driver.c (abort_handler, main): Be quiet.
742
743 2002-09-06  Frank Ch. Eigler  <fche@redhat.com>
744
745         * test/pass18-frag.c, pass19-frag.c: New tests.
746         * Makefile.am (check): Run them.  Rebuild test programs each time.
747         * Makefile.in: Regenerated.
748
749 2002-09-06  Frank Ch. Eigler  <fche@redhat.com>
750
751         * mf-runtime.c (__mf_register): Correct SEGV-inducing error in
752         overlapping object search.
753         (__mf_violation): Likewise for nearby objects.
754         Improve nearby-object listing.
755         
756         cleanup:
757         * mf-runtime.c, mf-hooks.c: Remove "{{{"/"}}}" folding marks.
758         * mf-heuristics.c (__mf_heuristic_check): Tweak message.
759
760 2002-09-03  Frank Ch. Eigler  <fche@redhat.com>
761
762         alloca support:
763         * Makefile.am (AM_CFLAGS): New definition of needed settings.
764         (HOOKOBJS): Add alloca-hook.o.
765         * mf-hooks.c (alloca): New function to implement alloca in libiberty
766         style.
767         * mf-runtime.c (__mf_report): Call alloca(0) to flush remaining blocks.
768         (__mf_backtrace): Reimplement without using alloca.
769         * Makefile.in: Regenerated.
770
771         cleanup:
772         * mf-hooks.c: Use VERBOSE_TRACE throughout instead of fprintf(stderr).
773         Correct signedness bugs in length-tracking variables.
774         * mf-impl.h: Make options unsigned.
775         (CALL_WRAP): New macro to parallel CALL_REAL().
776         (DECLARE): Remove erroneous ";" at end.
777         * mf-runtime.c, mf-hooks.c, mf-heuristics.c: Replace remaining %p
778         formatting specs with %08lx.  Correct several compiler warnings.
779
780 2002-08-28  Frank Ch. Eigler  <fche@redhat.com>
781
782         * mf-runtime.c (__mf_violation): Try harder to locate nearby objects.
783
784 2002-08-27  Frank Ch. Eigler  <fche@redhat.com>
785
786         libmudflap hook breakup:
787         * Makefile.am (TESTS_ENVIRONMENT): Add ../../gcc to LD_LIBRARY_PATH
788         for libgcc_s.
789         (TESTS): Make dependent on libmudflap.
790         (HOOKOBJS): Break up mf-hooks.o into many little hook objects,
791         compiled from segments of mf-hooks.c.
792         * mf-hooks.c: Corresponding changes: wrap each function in
793         #ifdef/#endif.
794         * Makefile.in: Regenerated.
795
796         Heuristics reorganization:
797         * mf-heuristics.c (__mf_register_ro_sections, __mf_init_heuristics): 
798         Remove these functions.  Update callers.
799         (__mf_heuristic_check): Incorporate all the various heuristics.
800         Encode cacheability/retry judgement into trinary return value.
801         Separate start-end logic into a separate fallback heuristic.  Only
802         register relevant /proc/self/map segments.
803         * mf-impl.h: Corresponding changes.
804         * mf-runtime.c (__mf_check): Reorganize heuristics fallback logic.
805         (__mf_init): Don't call __mf_init_heuristics.
806
807         Tracing cleanup:
808         * mf-heuristics.c, mf-runtime.c: Use new MUDFLAP_OPTION
809         "-verbose-trace" to emit all tracing messages other than those of
810         basic public api.  Eliminate some duplicate/excessive messages.
811         * mf-runtime.h: Corresponding changes.
812
813 2002-08-27  Graydon Hoare  <graydon@redhat.com>
814
815         * mf-impl.h (WRAPPER): Change to create linker aliases for __wrap
816         and __real when compiled with -DPIC.
817         * mf-hooks.c (WRAPPER): Change all uses of WRAPPER macro slightly.
818         * Makefile.am (AUTOMAKE_OPTIONS): Fix LD_LIBRARY_PATH for tests.
819         * Makefile.in: Regenerate.
820
821 2002-08-26  Graydon Hoare  <graydon@redhat.com>
822
823         * mf-impl.h: New file, private implementation header.
824         * mf-runtime.h: Reorganize a bit.
825         (CLAMPSZ): Fix arithmetic.
826         (__MF_CACHE_MISS_P): Fix arithmetic.
827         * mf-runtime.c: Reorganize a bit.
828         (__mf_dynamic): New structure.
829         (resolve_single_dynamic): New function.
830         (__mf_resolve_dynamics): New function.
831         (__mf_init): Initialize dynamic wrappers.
832         * mf-hooks.c: Macro-ize __real calls.
833         Clamp various bits of arithmetic.
834         Add explicit __mf_check call contexts.
835         * Makefile.am: Add dependencies on mf-impl.h
836         * Makefile.in: Regenerate.
837         * configure.in: Comment out shared override.
838         * configure: Regenerate.
839
840 2002-08-22  Graydon Hoare  <graydon@redhat.com>
841
842         * mf-runtime.c (__mf_process_opts): Sanity-check free_queue_length.
843         (__mf_check): Re-inialize and check heuristics before violation.
844         (__mf_register): Permit updating pure-guess regions.
845         * mf-hooks.c (__wrap_free): Correct some free queue logic.
846         (__wrap_dlopen): New wrapper function.
847         (__wrap_mmap): New wrapper function.
848         (__wrap_munmap): New wrapper function.
849         * mf-heuristics.c (__mf_register_ro_sections): Register *all* regions
850         which are not stack addresses.
851         (is_stack_address): New function.
852         (__mf_init_heuristics): Save and restore state, always initialize with
853         "starting" state.
854
855 2002-08-21  Frank Ch. Eigler  <fche@redhat.com>
856
857         * mf-hooks.c (MF_VALIDATE_EXTENT): Rewrite to correct off-by-one
858         error.  Pass location string.
859         (wrap_strcpy, wrap_strncpy): Remove extra %s in trace strings.
860         * mf-runtime.c (options): Add lc-mask, lc-shift options.
861         (__mf_process_opts): Apply some sanity checking for lc-mask.
862         (__mf_check, __mf_violation): Take new location-string argument.
863         Update callers to pass NULL if necessary.
864         (__mf_backtrace): New smart backtracer function.  Calls replace
865         several ad-hoc blocks elsewhere.
866         (__mf_describe_object): Remove bad reentrancy test.  Improve
867         tracing message.
868         * mf-runtime.h: Corresponding changes.  Public/private markup.
869         (__MF_CACHE_MISS_P): New macro.
870
871 2002-08-20  Graydon Hoare  <graydon@redhat.com>
872
873         * mf-runtime.h: New option: stack_bound (heuristic). 
874         Move some macros out of implementation files.
875         * mf-runtime.c: New option string: -stack-bound.
876         Unify recursion protection with hooks. 
877         Add more logging.
878         (__mf_check): Call __mf_heuristic_check.
879         (__mf_process_opts): Fix "no-" processing.
880         * mf-heuristics.c (__mf_heuristic_check): New function.
881         * mf-hooks.c: Much off-by-one fixing, recursion protection.
882
883 2002-08-20  Frank Ch. Eigler  <fche@redhat.com>
884
885         Option parsing improvements, region splitting bug fixes:
886         * mf-heuristics.c (__mf_register_ro_sections): Add warned casts.
887         * mf-runtime.h (heur_proc_map): New libmudflap option.
888         * mf-runtime.c (__mf_set_default_options): Set it.
889         (__mf_usage): Print default values/status.
890         (__mf_process_opts): Support general "no-" option string prefix.
891         (__mf_init): Print __mf_usage on unknown-option error.
892         (__mf_register): Print trace message up front.
893         Correct region splitting logic for case where a subregion disappears.
894         Correct memory leak.
895         (__mf_violation): Make even basic message conditional on option.
896
897         Build cleanup:
898         * Makefile.am (TESTS_ENVIRONMENT): Add -no-heur-proc-map.
899         (clean-local): New target.
900         (test/*x rules): Add -g CFLAGS.
901         (CFLAGS): Add -freorder-blocks.
902         (MFCONFIG_CFLAGS, INCLUDE): Remove unneeded settings.
903         * Makefile.in: Regenerated.
904         * Makefile, mf-config.h: Removed files.
905
906 2002-08-16  Graydon Hoare  <graydon@redhat.com>
907
908         * mf-runtime.c (__mf_insert_new_object): Factor out of
909         __mf_register.
910         (__mf_remove_old_object): Factor out of __mf_unregister.
911         (__mf_register): Handle guessed regions, splitting
912         guesses when new registrations arrive.
913         (__mf_unregister): Do not unregister guesses.
914         * mf-runtime.h: Move convenience macros around, 
915         declare new option fields. Add __MF_TYPE_GUESS.
916         * mf-hooks.c (__wrap_*alloc): Use crumple zones.
917         (__wrap_free): Call __real_free for deferred frees.
918         * Makefile.am: Add more tests, fix dependency.
919         * Makefile.in: Regenerate.
920         * test/pass[13..17]-frag.c: New testcases.
921         * test/fail[13..17]-frag.c: New testcases.
922
923 2002-08-15  Graydon Hoare  <graydon@redhat.com>
924
925         * mf-heuristics.c: New file.
926         * mf-runtime.c (options): Add -trace-calls option.
927         (__mf_init): Call __mf_init_heuristics.
928
929 2002-08-14  Graydon Hoare  <graydon@redhat.com>
930
931         * Makefile.am (TESTS): Add testsuite support.
932         * Makefile.in: Regenerate.
933         * test/mf-driver.c: New file.
934         * test/buildtest.sh: New file.
935         * test/passNN-frag.c: New testcases.
936         * test/failNN-frag.c: New testcases.
937
938 2002-08-14  Graydon Hoare  <graydon@redhat.com>
939
940         * mf-hooks.c: Change __real_strlen() to __real_strlen()+1 when
941         verifying non-size-limited string extents.
942
943 2002-08-14  Frank Ch. Eigler  <fche@redhat.com>
944
945         * mf-hooks.c: Make __wrap string* functions use __real_str[n]len
946         instead of plain str[n]len for internal checks.
947         * mf-runtime.c (__mf_violation): Print optional stack traceback.
948
949 2002-08-14  Frank Ch. Eigler  <fche@redhat.com>
950
951         * mf-hooks.c: Remove #if-0 around hooks that are now ld-wrapped.
952
953 2002-08-13  Graydon Hoare  <graydon@redhat.com>
954
955         * mf-runtime.c: Rework configuration to operate on
956         environment variable options rather than #defines
957         (__mf_violation): Add simple fork-a-gdb violaiton mode.
958         (__mf_init): Set static __mf_active_p flag on startup,
959         to inhibit mudflap wrap-based checking during crt0.s.
960         * mf-runtime.h: Declare options structure.
961         * mf-hooks.c: New wrappings for mem*, b*, str*
962         libc functions (temporarily #if 0-ed out).
963
964 2002-08-12  Frank Ch. Eigler  <fche@redhat.com>
965
966         * Makefile.am, configure.in: New files.
967         * Makefile.in, Makefile, configure, config.h.in: New generated files.
968         * stamp-h.in, aclocal.m4: Ditto.
969
970 2002-08-08  Frank Ch. Eigler  <fche@redhat.com>
971
972         * Makefile: New file.
973         * mf-config.h: New file: runtime configuration.
974         * mf-hooks.c: New file: interposed libc functions.
975         * mf-runtime.c: New file: bulk of runtime.
976         * mf-runtime.h: New file: public functions.
977