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