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