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