remove unused files
[platform/upstream/gcc48.git] / libmudflap / ChangeLog
1 2013-10-16  Release Manager
2
3         * GCC 4.8.2 released.
4
5 2013-05-31  Release Manager
6
7         * GCC 4.8.1 released.
8
9 2013-03-22  Release Manager
10
11         * GCC 4.8.0 released.
12
13 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
14
15         PR tree-optimization/53265
16         * testsuite/libmudflap.c/fail37-frag.c: Add optimization barrier.
17
18 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
19
20         Update copyright years.
21
22 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
23
24         * mf-runtime.c (__mf_usage): Update copyright notice dates.
25
26 2012-12-15  Alexandre Oliva <aoliva@redhat.com>
27
28         * mf-hooks1.c (free): Return on NULL before any logging.
29
30 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
31
32         * configure: Regenerated.
33
34 2012-07-13  Richard Guenther  <rguenther@suse.de>
35
36         * testsuite/libmudflap.c++/ctors.exp: Explicitely specify -O0.
37         * testsuite/libmudflap.c++/c++frags.exp: Likewise.
38         * testsuite/libmudflap.cth/cthfrags.exp: Likewise.
39         * testsuite/libmudflap.c/cfrags.exp: Likewise.
40         * testsuite/libmudflap.c/externs.exp: Likewise.
41
42 2012-07-13  Richard Guenther  <rguenther@suse.de>
43
44         * testsuite/libmudflap.c/fail11-frag.c: Adjust to not look like memset.
45         * testsuite/libmudflap.c/fail12-frag.c: Likewise.
46
47 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
48
49         * mf-impl.h: Fix typo.
50
51 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
52
53         * configure: Regenerated.
54
55 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
56
57         PR 24985
58         * testsuite/lib/libmudflap.exp: Handle caret.
59
60 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
61
62         PR libmudflap/40778
63         * testsuite/libmudflap.c/fail68-frag.c: New test.
64
65 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
66
67         * mf-runtime.c (__mf_usage): Update copyright notice dates.
68
69 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
70
71         * configure: Regenerate.
72
73 2011-07-31  Tom de Vries  <tom@codesourcery.com>
74
75         PR middle-end/43513
76         * testsuite/libmudflap.c/fail31-frag.c: Adapt testcase to prevent
77         folding of alloca.
78
79 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
80
81         Revert:
82         2011-07-15  Jakub Jelinek  <jakub@redhat.com>
83
84         PR testsuite/49753
85         PR tree-optimization/49309
86         * testsuite/libmudflap.c++/pass68-frag.cxx: New test.
87
88 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
89
90         PR testsuite/49753
91         PR tree-optimization/49309
92         * testsuite/libmudflap.c++/pass68-frag.cxx: New test.
93
94 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
95
96         * configure.ac: Don't create pth.
97         Check for library containing sched_yield.
98         * configure: Regenerate.
99         * config.h.in: Regenerate.
100
101         * testsuite/lib/libmudflap.exp (libmudflap-init): Use
102         mfconfig_libs in -static check.
103
104 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
105
106         PR libmudflap/49550
107         * mf-runtime.c (__wrap_main) [__sun__ && __svr4__]: Don't register
108         stdin, stdout, stderr.
109         Register __ctype, __ctype_mask.
110
111         * configure.ac: Check for mmap64.
112         Check for rawmemchr, stpcpy, mempcpy.
113         * configure: Regenerate.
114         * config.h.in: Regenerate.
115         * mf-hooks1.c [HAVE_MMAP64] (__mf_0fn_mmap64): New function.
116         (mmap64): New wrapper function.
117         * mf-impl.h (__mf_dynamic_index) [HAVE_MMAP64]: Add dyn_mmap64.
118         * mf-runtime.c (__mf_dynamic) [HAVE_MMAP64]: Handle mmap64.
119
120         * mf-hooks2.c [HAVE_GETMNTENT && HAVE_SYS_MNTTAB_H]: Implement
121         getmntent wrapper.
122
123         * mf-hooks3.c (_REENTRANT): Define.
124
125         * testsuite/libmudflap.c/heap-scalestress.c (SCALE): Reduce to 10000.
126
127         * testsuite/libmudflap.c/pass-stratcliff.c: Include ../config.h.
128         (MIN): Define.
129         Use HAVE_RAWMEMCHR, HAVE_STPCPY, HAVE_MEMPCPY as guards.
130
131         * testsuite/libmudflap.c/pass47-frag.c: Expect __ctype warning on
132         *-*-solaris2.*.
133
134 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
135
136         PR libmudflap/49549
137         * testsuite/lib/libmudflap.exp (load_gcc_lib): Load
138         target-supports.exp.
139         * testsuite/libmudflap.cth/cthfrags.exp: Only pass
140         --noinhibit-exec to GNU ld.
141
142 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
143
144         PR libmudflap/38738
145         * configure.ac: Check for sys/mnttab.h.
146         Check for library containing connect.
147         * configure: Regenerate.
148         * config.h.in: Regenerate.
149         * mf-hooks2.c [HAVE_SYS_MNTTAB_H]: Include <sys/mnttab.h>.
150         * testsuite/libmudflap.c/pass-stratcliff.c (main) [__sun__ &&
151         __svr4__]: Disable rawmemchr, stpcpy, mempcpy tests.
152
153 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
154
155         * configure: Regenerate.
156
157 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
158
159         * mf-runtime.c (__mf_usage): Update copyright notice dates.
160
161 2010-10-31  Jason Merrill  <jason@redhat.com>
162
163         PR testsuite/20003
164         * testsuite/libmudflap.cth/pass40-frag.c: Increase timeout to 30.
165
166 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
167
168         * testsuite/libmudflap.c++/pass41-frag.cxx (dg-prune-output):
169         New dg directive.
170
171 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
172
173         PR bootstrap/43170
174         * configure: Regenerate.
175
176 2010-05-16  Uros Bizjak  <ubizjak@gmail.com>
177
178         * testsuite/libmudflap.c/pass46-frag.c (dg-options): Remove -Wall.
179
180 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
181
182         * testsuite/lib/mfdg.exp (additional_prunes): New global.
183         (dg-test): Clear additional_prunes before test is run.
184         (dg-prune-output): New procedure.
185         * testsuite/lib/libmudflap.exp (libmudflap-dg-test): Do not call
186         prune_gcc_output.
187         (libmudflap-dg-prune): New procedure.
188         * testsuite/libmudflap.c++/pass57-frag.cxx (dg-prune-output):
189         New dg directive.
190
191 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
192
193         PR other/43620
194         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
195         * Makefile.in: Regenerate.
196         * testsuite/Makefile.in: Regenerate.
197
198 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
199
200         * Makefile.in: Regenerate.
201         * aclocal.m4: Regenerate.
202         * testsuite/Makefile.in: Regenerate.
203
204 2010-03-15  David S. Miller  <davem@davemloft.net>
205
206         * testsuite/libmudflap.c/pass54-frag.c: Add explicit return from
207         main.
208
209 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
210
211         * mf-runtime.c (__mf_usage): Update copyright notice dates.
212
213 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
214
215         * Makefile.in: Regenerate.
216         * configure: Regenerate.
217         * testsuite/Makefile.in: Regenerate.
218
219 2009-09-22  Frank Ch. Eigler  <fche@redhat.com>
220
221         PR libmudflap/41433
222         * mf-runtime.c (__mf_init): Ignore $MUDFLAP_OPTIONS if
223         running setuid or setgid.
224
225 2009-09-01  Loren J. Rittle  <ljrittle@acm.org>
226
227         * mf-runtime.c (__mf_init): Support FreeBSD.
228         Prime mutex which calls calloc upon first lock to avoid deadlock.
229         * mf-hooks1.c (__mf_0fn_mmap): Support FreeBSD.
230         Ignore red zone allocation request for initial thread's stack.
231
232 2009-09-01  Loren J. Rittle  <ljrittle@acm.org>
233             Andreas Schwab  <schwab@linux-m68k.org>
234
235         * testsuite/libmudflap.c/pass51-frag.c (MAP_FAILED): Define,
236         if not in system header; use it.  On FreeBSD, must pass fd==-1
237         with MAP_ANON flag.  Correct mmap error check.
238         * testsuite/libmudflap.c/fail40-frag.c: Ditto.
239
240 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
241
242         * configure.ac (AC_PREREQ): Bump to 2.64.
243
244 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
245
246         * Makefile.am (install-html, install-pdf): Remove.
247         * Makefile.in: Regenerate.
248
249         * Makefile.in: Regenerate.
250         * aclocal.m4: Regenerate.
251         * config.h.in: Regenerate.
252         * configure: Regenerate.
253         * testsuite/Makefile.in: Regenerate.
254
255 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
256
257         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
258
259 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
260
261         * configure: Regenerate.
262
263 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
264
265         PR testsuite/40699
266         PR testsuite/40707
267         PR testsuite/40709
268         * testsuite/lib/libmudflap.exp: Revert 2009-06-30 commit.
269
270 2009-07-01  Richard Guenther  <rguenther@suse.de>
271
272         PR tree-optimization/19831
273         * testsuite/libmudflap.c/fail11-frag.c: Make allocated memory
274         escape.
275         * testsuite/libmudflap.c/fail12-frag.c: Likewise.
276         * testsuite/libmudflap.c/fail16-frag.c: Likewise.
277         * testsuite/libmudflap.c/fail31-frag.c: Likewise.
278
279 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
280
281         * testsuite/lib/libmudflap.exp (libmudflap-init): Don't add "."
282         to ld_library_path.  Use add_path.  Add just find_libgcc_s to
283         ld_library_path, not every libgcc multilib directory.
284
285 2009-04-09  Nick Clifton  <nickc@redhat.com>
286
287         * mf-hooks1.c: Change copyright header to refer to version 3
288         of the GNU General Public License with version 3.1 of the GCC
289         Runtime Library Exception and to point readers at the COPYING3
290         and COPYING3.RUNTIME files and the FSF's license web page.
291         * mf-heuristics.c: Likewise.
292         * mf-hooks2.c: Likewise.
293         * mf-hooks3.c: Likewise.
294         * mf-impl.h: Likewise.
295         * mf-runtime.c: Likewise.
296         * mf-runtime.h: Likewise.
297
298 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
299
300         * testsuite/lib/mfdg.exp: Change copyright header to refer to
301         version 3 of the GNU General Public License and to point readers
302         at the COPYING3 file and the FSF's license web page.
303         * testsuite/lib/libmudflap.exp: Likewise.
304
305 2009-03-31  Ben Elliston  <bje@au.ibm.com>
306
307         PR libmudflap/38462
308         * testsuite/libmudflap.c/fail27-frag.c: Match `mudflap dead
309         object', not `mudflap object'.
310
311 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
312
313         * configure: Regenerate.
314
315 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
316
317         * mf-runtime.c (__mf_usage): Update copyright notice dates.
318
319 2009-01-23  Jie Zhang  <jie.zhang@analog.com>
320
321         * mf-impl.h (__mf_get_state, __mf_set_state): Don't use
322         __thread when TLS support is emulated.
323         * mf-hooks3.c (__mf_get_state, __mf_set_state): Likewise.
324         * mf-runtime.c (__mf_state_1): Likewise.
325         * configure.ac: Use GCC_CHECK_EMUTLS.
326         * configure: Regenerate.
327         * config.h.in: Regenerate.
328
329 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
330
331         * configure: Regenerate.
332
333 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
334
335         PR testsuite/28870
336         * testsuite/lib/mfdg.exp (dg-test): Use new timeout support.
337         (dg-timeout): Remove.
338         (standard-wait): Remove.
339         * testsuite/lib/libmudflap.exp: Include new timeout library files.
340         (libmudflap_target_compile): Set timeout value from new proc.
341
342 2008-11-10  Jakub Jelinek  <jakub@redhat.com>
343
344         PR middle-end/35314
345         * testsuite/libmudflap.c/pass67-frag.c: New test.
346
347 2008-10-09  Jakub Jelinek  <jakub@redhat.com>
348
349         PR c++/37568
350         * testsuite/libmudflap.c++/pass66-frag.cxx: New test.
351
352 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
353             Steve Ellcey  <sje@cup.hp.com>
354
355         * configure: Regenerate for new libtool.
356         * Makefile.in: Ditto.
357         * testsuite/Makefile.in: Ditto.
358
359 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
360
361         PR libmudflap/36397
362         * testsuite/libmudflap.c/pass64-frag.c: New test.
363
364 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
365
366         * Makefile.in: Regenerate.
367         * config.h.in: Regenerate.
368         * configure: Regenerate.
369         * testsuite/Makefile.in: Regenerate.
370
371 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
372
373         PR bootstrap/35457
374         * aclocal.m4: Regenerate.
375         * configure: Regenerate.
376
377 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
378
379         * testsuite/libmudflap.c/pass63-frag.c: New test.
380
381 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
382
383         * aclocal.m4: Regenerate.
384         * configure: Likewise.
385         * Makefile.in: Likewise.
386         * testsuite/Makefile.in: Likewise.
387
388 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
389
390         * mf-runtime.c (__mf_usage): Update copyright notice dates.
391
392 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
393
394         * testsuite/libmudflap.c/fail8-frag.c: Adjust scan pattern for
395         mudflap dead object.
396         * testsuite/libmudflap.c/fail9-frag.c: Ditto.
397
398 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
399
400         * configure: Regenerate.
401
402 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
403
404         PR tree-optimization/34618
405         * testsuite/libmudflap.c/pass62-frag.c: New test.
406
407 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
408
409         PR c++/34619
410         * testsuite/libmudflap.c++/pass61-frag.cxx: New test.
411
412 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
413
414         PR libmudflap/26442
415         * testsuite/libmudflap.c++/pass60-frag.cxx: New test.
416
417 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
418
419         * configure: Regenerate following changes to ../config/tls.m4.
420
421 2007-07-26  Tom Tromey  <tromey@redhat.com>
422
423         * Makefile.in: Rebuilt.
424         * Makefile.am (clean-local): Removed.
425         (pth/mf-runtime.lo, pth/mf-heuristics.lo, pth/mf-hooks1.lo,
426         pth/mf-hooks2.lo, pth/mf-hooks3.lo): Likewise.
427         (libmudflapth_la_SOURCES): List sources.
428         (libmudflapth_la_LIBADD): Clear.
429         (libmudflapth_la_CFLAGS): New variable.
430
431 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
432
433         * aclocal.m4: Regenerated.
434
435 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
436
437         * configure: Regenerate.
438
439 2007-05-31  Frank Ch. Eigler  <fche@redhat.com>
440
441         From Andi Kleen <ak@suse.de>:
442         * mf-runtime.c (options): Rename structure for compatibility with
443         glibc getopt_long.
444
445 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
446
447         * Makefile.in: Regenerate.
448         * configure: Regenerate.
449         * aclocal.m4: Regenerate.
450         * testsuite/Makefile.in: Regenerate.
451
452 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
453
454         * testsuite/libmudflap.cth/pass59-frag.c (main): Fix casting of arg.
455
456 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
457
458         * Makefile.am: Add dummy install-pdf target.
459         * Makefile.in: Regenerate
460
461 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
462
463         PR libgomp/28468
464         * configure: Regenerate.
465
466 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
467
468         * configure: Regenerate.
469
470 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
471
472         * configure: Regenerated.
473
474 2006-11-10  Frank Ch. Eigler  <fche@redhat.com>
475
476         PR libmudflap/28578
477         * mf-hooks1.c (__mf_0fn_malloc): Make the bootstrap buffers
478         static but not function scope static.
479         (free): Skip deallocation attempts for objects placed into
480         bootstrap buffers.
481         * testsuite/libmudflap.cth/pass59-frag.c: New test.
482
483 2006-11-06  Frank Ch. Eigler  <fche@redhat.com>
484
485         From Herman ten Brugge <hermantenbrugge@home.nl>:
486         * mf-runtime.c (__mf_uncache_object): Optimize the code so that
487         small and large objects are handled a lot faster.
488
489 2006-11-06  Frank Ch. Eigler  <fche@redhat.com>
490
491         * configure.ac (__libc_freeres): Look for it.
492         * mf-impl.h (call_libc_freeres): New configuration flag.
493         * mf-runtime.c (__mf_set_default_options): Set it by default.
494         (__mfu_report): Call it if needed.
495         (__mfu_unregister): Remove "unaccessed registered object" warning.
496         * configure, config.h.in: Regenerated.
497
498 2006-09-18  Tom Tromey  <tromey@redhat.com>
499
500         * configure: Rebuilt.
501
502 2006-06-21  Frank Ch. Eigler  <fche@redhat.com>
503
504         PR 21274
505         mf-runtime.h installation based on ssp patch for PR 26473 from
506         Mark Mitchell  <mark@codesourcery.com>.
507         * configure.ac (ACX_NONCANONICAL_TARGET): Use it.
508         * Makefile.am (target_noncanonical): Define.
509         (libsubincludedir): New variable.
510         (nobase_libsubinclude_HEADERS): Add mf-runtime.h.
511         (include_HEADERS): Remove.
512         * configure, aclocal.m4, config.h.in: Regenerated.
513         * Makefile.in, testsuite/Makefile.in: Likewise.
514         * mf-runtime.h: Add #ifndef protection for conflicting _REENTRANT
515         and _THREAD_SAFE redefinition values.
516
517 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
518
519         * Makefile.am: Add install-html target. Add install-html to .PHONY
520         * Makefile.in: Regenerate.
521
522 2006-04-19  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
523
524         PR mudflap/26789
525         * testsuite/libmudflap.c++/error1-frag.cxx: New test.
526
527         PR mudflap/26790
528         * testsuite/libmudflap.c++/error2-frag.cxx: New test.
529
530 2006-04-10  Matthias Klose  <doko@debian.org>
531
532         * testsuite/lib/libmudflap.exp (libmudflap-init): Recognize multilib
533         directory names containing underscores.
534
535 2005-11-22  Janis Johnson  <janis187@us.ibm.com>
536
537         * testsuite/lib/libmudflap.exp (libmudflap-init): Remove -static from
538         MUDFLAP_FLAGS if static library not supported.
539         * testsuite/libmudflap.c/cfrags.exp (MUDFLAP_FLAGS): new.
540         * testsuite/libmudflap.c/externs.exp: Ditto.
541         * testsuite/libmudflap.c++/ctors.exp: Ditto.
542         * testsuite/libmudflap.c++/c++frags.exp: Ditto.
543         * testsuite/libmudflap.cth/cthfrags.exp: Ditto.
544
545 2005-10-04  James E Wilson  <wilson@specifix.com>
546
547         * configure.ac (mudflap_cv_entry_point): Use quadrigraphs to declare
548         $name as array of characters with unknown bound.  Also store into the
549         array.
550         * configure: Regenerate.
551
552 2005-09-30  James E. Wilson  <wilson@specifix.com>
553
554         * configure.ac (pthread.h): Use AC_CHECK_HEADERS instead of
555         AC_CHECK_HEADER.
556         (target_thread_file): New.  Set from sed'ed gcc output.
557         (posix_threads): New.  Set from target_thread_file.  Use instead of
558         ac_have_pthread_h.
559         (pthread_create_version): Move initialization before code using it.
560         * configure: Regenerate.
561
562         * mf-heuristics.c (_end, ENTRY_POINT): Make them arrays with unknown
563         bounds.
564
565 2005-09-29  James E. Wilson  <wilson@specifix.com>
566
567         * mf-hooks1.c (__mf_0fn_mmap, mmap, __mf_0fn_munmap, munmap): Protect
568         with HAVE_MMAP ifdef.
569
570 2005-09-23  Frank Ch. Eigler  <fche@elastic.org>
571
572         PR 23084.
573         * mf-hooks2.c (accept): Tolerate NULL sockaddr* parameter.
574
575 2005-09-23  Frank Ch. Eigler  <fche@elastic.org>
576
577         * testsuite/libmudflap.c++/pass58-frag.cxx: New test for heisenbug 19319.
578
579 2005-09-23  Tom Tromey  <tromey@redhat.com>
580
581         * aclocal.m4, configure: Rebuilt.
582         * configure.ac: Use GCC_CHECK_TLS.
583         * acinclude.m4 (LIBMUDFLAP_CHECK_TLS, LIBMUDFLAP_ENABLE): Moved
584         to ../config.
585
586 2005-08-22  Jim Wilson  <wilson@specifix.com>
587
588         * mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
589         __FreeBSD__ is defined.
590
591 2005-08-17  Jim Wilson  <wilson@specifix.com>
592
593         * mf-hooks1.c (malloc, calloc, realloc, free,
594         __mf_wrap_alloca_indirect): Call BEGIN_MALLOC_PROTECT before calling
595         the real routines, and END_MALLOC_PROTECT afterwards.
596         * mf-impl.h (enum __mf_state_enum): Expand comment.  Add in_malloc.
597         (BEGIN_PROTECT): Handle in_malloc state.
598         (BEGIN_MALLOC_PROTECT, END_MALLOC_PROTECT): New.
599         * testsuite/libmudflap.c/hook2-allocstuff.c: New.
600
601 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
602
603         * All files: Update FSF address.
604
605 2005-08-15  Ulrich Weigand  <weigand@informatik.uni-erlangen.de>
606
607         * mf-hooks3.c (main_seen_p): Remove.
608         (__mf_get_state): Remove attempt to recognize the main thread.
609
610 2005-08-15  Maciej W. Rozycki  <macro@linux-mips.org>
611
612         * configure.ac: Test for the name of the symbol used for the entry
613         point; define ENTRY_POINT to the result.
614         * configure: Regenerate.
615         * config.h.in: Regenerate.
616         * mf-heuristics.c: Replace _start with ENTRY_POINT throughout.
617
618 2005-08-14  Ulrich Weigand  <weigand@informatik.uni-erlangen.de>
619
620         * mf-runtime.c (__mf_state_1): Initialize to reentrant.
621         (__mf_init): Set thread state active.
622         * mf-hooks3.c (__mf_pthread_spawner): Always set thread
623         state active.
624         (pthread_create wrapper): Always use thread spawner.
625
626         * testsuite/libmudflap.cth/pass37-frag.c: Increase timeout.
627         * testsuite/libmudflap.cth/pass39-frag.c: Likewise.
628
629 2005-07-16  Richard Henderson  <rth@redhat.com>
630
631         * acinclude.m4: New file.
632         * configure.ac: Invoke LIBMUDFLAP_CHECK_TLS.
633         * configure, config.h.in, Makefile.in, testsuite/Makefile.in: Rebuild.
634         * mf-hooks1.c (__mf_0fn_malloc): Move body from ...
635         (__mf_0fn_calloc): ... here.
636         * mf-hooks3.c (struct pthread_info): Remove.
637         (__mf_pthread_info, __mf_pthread_info_idx): Remove.
638         (LIBMUDFLAPTH_THREADS_MAX): Set to 1021.
639         (struct mf_thread_data): New.
640         (mf_thread_data, mf_thread_data_lock): New.
641         (__mf_allocate_blank_threadinfo): Remove.
642         (__mf_find_threadinfo): Rewrite and simplify.  Only use if TLS is
643         not available.
644         (__mf_state_perthread): Remove.
645         (__mf_get_state, __mf_set_state): New.
646         (__mf_pthread_cleanup): Use &errno, rather than saved pointer.
647         Update mf_thread_data killing procedure.
648         (__mf_pthread_spawner): Similarly.
649         (__mf_0fn_pthread_create): Only use wrapper if necessary.  Remove
650         code to allocate thread stack space.
651         (__mf_0fn_pthread_join, pthread_join): Remove.
652         (__mf_0fn_pthread_exit, pthread_exit): Remove.
653         * mf-impl.h (dyn_pthread_join, dyn_pthread_exit): Remove.
654         (__mf_state_1): Rename from __mf_state; use TLS when available.
655         (__mf_get_state, __mf_set_state): New.  Update all users.
656         * mf-runtime.c (begin_recursion_protect1): New.
657         (BEGIN_RECURSION_PROTECT): Use it.
658         (__mf_state_1): Rename from __mf_state; use TLS when available.
659         (threads_active_p): Remove.
660         (__mf_usage): Compute it directly.
661
662 2005-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
663
664         * testsuite/libmudflap.c/externs-1.c (main): Add return statement.
665
666 2005-06-15  Frank Ch. Eigler  <fche@redhat.com>
667
668         Fix for uncaching bug reported by Herman ten Brugge.
669         * mf-runtime.c (__mf_uncache_object): Search whole cache.
670         * testsuite/libmudflap.c/fail40-frag.c: New test.
671
672 2005-05-23  Alfred M. Szmidt  <ams@gnu.org>
673
674         PR libmudflap/21724
675         * Makefile.am (AM_MAKEFLAGS): Pass includedir.
676         * Makefile.in: Amend.
677
678 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
679
680         PR mudflap/21023
681         * testsuite/libmudflap.c/externs.exp, externs-{1,2}.c: New test files.
682         * testsuite/libmudflap.c/cfrags.exp: Bypass new sources.
683
684 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
685
686         PR libmudflap/21094
687         * testsuite/libmudflap.c++/*.exp: Assert build tree g++.
688
689 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
690
691         PR mudflap/22064
692         * mf-impl.h (mudflap_mode, violation_mode): Make these ordinary
693         unsigned vars with #defines instead of enums.
694
695 2005-05-09  Mike Stump  <mrs@apple.com>
696
697         * configure: Regenerate.
698
699 2005-04-12  Mike Stump  <mrs@apple.com>
700
701         * configure: Regenerate.
702
703 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
704
705         PR mudflap/19266
706         * testsuite/libmudflap.c++/c++frags.exp: Also test -O permutation.
707         * testsuite/libmudflap.c++/pass57-frag.cxx: New test.
708
709 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
710
711         * mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.
712
713 2005-03-31  Mike Stump  <mrs@apple.com>
714
715         * mf-runtime.h: Add libmudflap copyright clause.
716
717 2005-03-21  Mike Stump  <mrs@apple.com>
718
719         * mf-heuristics.c: Fix whitespace at end of line.
720         * mf-hooks1.c: Likewise.
721         * mf-hooks2.c: Likewise.
722         * mf-hooks3.c: Likewise.
723         * mf-impl.h: Likewise.
724         * mf-runtime.c: Likewise.
725         * mf-runtime.h: Likewise.
726
727 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
728
729         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
730         In all substitutions, expand gcc_version in Makefile.
731         * aclocal.m4, configure: Regenerate.
732         * Makefile.am: Set gcc_version.
733         * Makefile.in, testsuite/Makefile.in: Regenerate.
734
735 2005-03-17  Frank Ch. Eigler  <fche@redhat.com>
736
737         * mf-runtime.c (__mfu_check): Respect ignore_reads configuration.
738         * testsuite/libmudflap.c/{pass56,fail39}-frag.c: New tests.
739
740 2005-02-13  Frank Ch. Eigler  <fche@redhat.com>
741
742         PR mudflap/19319
743         * testsuite/libmudflap.c++/pass55-frag.c: New test.
744
745 2005-01-05  Richard Henderson  <rth@redhat.com>
746
747         * testsuite/libmudflap.c/pass32-frag.c: Fix typo.
748
749 2005-01-02  Greg McGary  <greg@mcgary.org>
750
751         * mf-impl.h (uintptr_t): Get typedef via stdint.h or define explicitly.
752         * mf-runtime.h: New file, replaces mf-runtime.h.in.
753         * configure.ac (AC_CONFIG_FILES): mf-runtime.h is no longer generated.
754         * Makefile.in: Ditto.
755         * testsuite/lib/libmudflap.exp: Add -I${srcdir}/.. to get mf-runtime.h
756         * testsuite/libmudflap.c/pass32-frag.c: s/uintptr_t/__mf_uintptr_t/
757         * testsuite/libmudflap.c/fail36-frag.c: New test.
758         * testsuite/libmudflap.c/fail37-frag.c: New test.
759         * testsuite/libmudflap.c/fail38-frag.c: New test.
760
761 2004-12-08  Kelley Cook  <kcook@gcc.gnu.org>
762
763         * Makefile.am: Add ../config to ACLOCAL_AMFLAGS.
764         * aclocal.m4, Makefile.in, testsuite/Makefile.in: Regenerate.
765
766 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
767
768         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
769         * aclocal.m4: Include ../config/gcc-version.m4.
770         * configure, Makefile.in, testsuite/Makefile.in: Regenerate.
771
772 2004-11-29  Kelley Cook  <kcook@gcc.gnu.org>
773
774         * Makefile.am: Define ACLOCAL_AMFLAGS.
775         * acinclude.m4: Remove.
776         * stamp-h.in: Remove superfluous stamp file.
777         * aclocal.m4, configure, Makefile.in: Regenerate.
778         * testsuite/Makefile.in: Likewise.
779
780 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
781
782         * Makefile.am: Revert previous.
783         * acinclude.m4: Restore.
784         * aclocal.m4, configure, Makefile.in: Regenerate.
785         * testsuite/Makefile.in: Likewise.
786
787 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
788
789         * Makefile.am: Define ACLOCAL_AMFLAGS.
790         * acinclude.m4: Remove.
791         * aclocal.m4, configure, Makefile.in: Regenerate.
792         * testsuite/Makefile.in: Likewise.
793
794 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
795
796         * testsuite/lib/libmudflap.exp: Use new procs in target-libpath.exp.
797
798 2004-11-23  Kelley Cook  <kcook@gcc.gnu.org>
799
800         * Makefile.in, configure, aclocal.m4: Regenerate with automake 1.9.3.
801         * testsuite/Makefile.in: Likewise.
802
803 2004-11-01  Andreas Schwab  <schwab@suse.de>
804
805         * configure.ac: (target_alias): Default to $host_alias, not
806         $target.
807         * configure: Regenerated.
808
809 2004-10-28  Frank Ch. Eigler  <fche@redhat.com>
810
811         * testsuite/libmudflap.c/fail35-,pass53-,pass54-frag.c: New tests.
812         * testsuite/libmudflap.c/pass35-frag.c: Correct embedded warning
813         message.
814
815 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
816
817         PR other/18138
818         * testsuite/lib/libmudflap.exp: Accept more than one multilib libgcc.
819
820 2004-10-12  Frank Ch. Eigler  <fche@redhat.com>
821
822         * configure.ac: Check for more headers, functions.
823         * mf-hooks2.c (mkbuffer, unmkbuffer): New helper functions for
824         tracking overridden FILE buffers.
825         (fopen, setvbuf): New/revised hook functions for buffer overriding.
826         (setbuf,setlinebuf,fdopen,freopen,fopen64,freopen64,fclose): Ditto.
827         (fflush): Accept given NULL stream (means "all streams").
828         * mf-runtime.h.in:
829         * mf-runtime.c (__mfu_check): Accept accesses that span adjacent
830         HEAP/GUESS objects.
831         (LOOKUP_CACHE_SIZE_MAX): Raise to 64K entries tentatively.
832         (__mf_adapt_cache): Use them all.
833         * testsuite/libmudflap.c/pass35-frag.c: Update warning message.
834         * testsuite/libmudflap.c++/ctors.exp: Ditto.
835         * testsuite/libmudflap.c/{pass51,pass52}-frag.c: New tests.
836         * configure, config.h.in: Regenerated.
837
838 2004-10-05  Frank Ch. Eigler  <fche@redhat.com>
839
840         * configure.ac: Checking for sys/socket.h once is enough.
841         * configure: Regenerated.
842
843 2004-10-04  Frank Ch. Eigler  <fche@redhat.com>
844
845         * configure.ac: Look for more headers & functions.
846         * mf-hooks2.c (getmntent, inet_ntoa, getproto*): New wrapper functions.
847         * mf-runtime.h.in: Add new "#pragma redefine_extname"s for them.
848         * mf-runtime.c (options): Clean up integer signedness warnings.
849         (main): Add a declaration to fix a warning.
850         * mf-hooks3.c (pthread_exit): Add not-reached exit() to wrapper.
851         * configure, config.h.in: Regenerated.
852
853 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
854
855         * testsuite/libmudflap.c/pass50-frag.c, fail33-frag.c, fail34-frag.c:
856         New tests for proper base/limit checking for aggregates.
857
858 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
859
860         * testsuite/libmudflap.c/pass35-frag.c: Update expected message.
861
862 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
863
864         * configure.ac: Look for pwd.h, grp.h, netdb.h headers and functions.
865         * mf-hooks2.c (strerror): Unregister previous string returned by
866         previous strerror.
867         (getlogin,cuserid,getpwnam,getpwuid,getgrnam,getgrgid): New wrappers.
868         (getservent,getservbyname,getservbyport,gai_strerror): Ditto.
869         * mf-runtime.h.in: Add redefine_extname pragmas for them all.
870         * mf-runtime.c (__mf_describe_object): Clarify object life status.
871         * testsuite/libmudflap.c/pass48-frag.c, pass49-frag.c, fail32-frag.c:
872         New tests.
873         * configure, config.h.in: Regenerated.
874
875 2004-08-03  Dale Johannesen  <dalej@apple.com>
876
877          * mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.
878
879 2004-08-03  Frank Ch. Eigler  <fche@redhat.com>
880
881         * mf-runtime.c (compare_uintptr_t): Remove function.  Inline
882         simplified contents in all former callers.
883
884 2004-07-27  Ulrich Weigand  <weigand@informatik.uni-erlangen.de>
885
886         * mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in
887         the statically linked case.
888
889 2004-07-27  Frank Ch. Eigler  <fche@redhat.com>
890
891         * splay-tree.[ch]: Remove.  Merge contents into ...
892         * mf-runtime.c: ... here, renaming symbols and making all functions
893         static.  Remove unused min/max functions.
894         * Makefile.am: Forget about splay-tree.[ch].
895         * Makefile.in, testsuite/Makefile.in: Regenerated.
896
897 2004-07-21  Frank Ch. Eigler  <fche@redhat.com>
898
899         * mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling.
900         (__mfu_usage): Include (C) 2004.
901         * mf-hooks3.c (__mf_find_threadinfo): Don't call tracing functions
902         here.  Include a comment explaining why.
903
904 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
905
906         * mf-impl.h (__mf_options): Add ignore_reads and timestamps fields.
907         * mf-runtime.c (options): Give them a name.
908         (__mf_set_default_options): Set them.
909         (__mf_insert_new_object, __mfu_unregister): Optionalize timestamps.
910         (__mf_violation): Warning cleanup.
911         * mf-impl.h (MF_VALIDATE_EXTENT): Support ignore_reads option.
912         * splay-tree.c (splay_tree_delete_helper): Remove obsolete decl.
913
914 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
915
916         g++/15861
917         * mf-runtime.c (__mf_init): Make it non-static.  Tolerate
918         repeated invocation.
919
920 2004-07-09  Frank Ch. Eigler  <fche@redhat.com>
921
922         Test case for g++/15861
923         * testsuite/libmudflap.c++/ctors-[12].cxx: New test case halves.
924         * testsuite/libmudflap.c++/ctors.exp: Driver.
925         * testsuite/libmudflap.c++/c++frags.exp: Elide redundant default.
926         Look only for *frag* test cases.
927
928 2004-07-08  Frank Ch. Eigler  <fche@redhat.com>
929
930         ANSI C conversion, libmudflap specialization, recursion limiting.
931         * splay-tree.h (splay_tree_{de,}allocate_fn): Remove allocation_data
932         argument and indirection function pointers, update callers.
933         (splay_tree_s): Add statistics and recursion control fields
934         num_keys, max_depth, depth, rebalance_p.
935         * splay-tree.c (splay_tree_splay_helper): Track recursion depth.
936         Back out of search if it exceeds limit.
937         (splay_tree_splay): Manage recursion limiting with rebalancing as
938         needed.
939         (splay_tree_new): More initialization.
940         (splay_tree_rebalance): New function.
941         (splay_tree_foreach): Rewrite using nonrecursive logic.
942         (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate):
943         Remove.  Point indirect calls to mf-runtime.c's routines.
944         (splay_tree_compare_ints, splay_tree_compare_pointers): Remove unused
945         functions.
946         (splay_tree_delete, splay_tree_delete_helper): Ditto.
947         * testsuite/heap-scalestress.c: New test based on one from
948         Eyal Lebedinsky <eyal@eyal.emu.id.au>:
949
950 2004-07-05  Matthias Klose  <doko@debian.org>
951
952         * libtool-version: New.
953         * Makefile.am (libmudflap_la_LDFLAGS, libmudflapth_la_LDFLAGS):
954         Use -version-info for soname.
955         * Makefile.in: Regenerate.
956         * configure.ac: Remove libtool_VERSION macro
957         * configure: Regenerate
958
959 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
960
961         * mf-runtime.h.in: Wrap declarations of struct __mf_cache,
962         __mf_lookup_cache, __mf_lc_mask, or __mf_lc_shift in
963         #ifndef _MUDFLAP.
964
965 2004-06-29  Frank Ch. Eigler  <fche@redhat.com>
966
967         Splay tree implementation fork.
968         * splay-tree.c, splay-tree.h: Copied & modified from libiberty.
969         Use hard-coded comparison function for uintptr_t.  Remove key/value
970         deallocation logic.  Cache last splayed key for consecutive lookups.
971         * Makefile.am, Makefile.in: Use them, don't link to them.
972         * mf-runtime.c (__mf_object_tree): Adapt to simpler splay_tree_new.
973         (__mf_find_objects2): Flip successor/predecessor search sequence.
974         * ansidecl.h, libiberty.h: Removed dummy files.
975
976 2004-06-29  Nick Clifton  <nickc@redhat.com>
977
978         * configure.ac (AC_CHECK_HEADERS): Add dirent.h
979         * configure: Regenerate.
980         * mf-hooks2.c: Surround uses of dirent.h with #ifdef
981         HAVE_DIRENT_H.
982         Remove spurious inclusion of <strings.h>.
983
984 2004-06-29  Nick Clifton  <nickc@redhat.com>
985
986         * mf-runtime.c (pthread_join): Only apply the weak pragma if the
987         function actually exists.
988
989 2004-06-25  Frank Ch. Eigler  <fche@redhat.com>
990
991         * ansidecl.h, libiberty.h: New dummy files for building splay-tree.
992         * config.h.in: Regenerated.
993
994 2004-06-24  Frank Ch. Eigler  <fche@redhat.com>
995
996         Adopt splay trees for object database.
997         * Makefile.am: Copy splay-tree.* from libiberty.
998         * Makefile.in, testsuite/Makefile.in: Regenerated.
999         * mf-runtime.h.in (__mf_unregister): Add third parameter (type).
1000         * mf-hooks[123].c (*): Add new third parameter to mf_unregister.
1001         * mf-impl.h (BEGIN_PROTECT): Remove some trace text.
1002         * mf-runtime.c: Rewrite code dealing with object database to use
1003         libiberty splay trees.  Remove tree liveness aging option.
1004         * testsuite/libmudflap.c/fail18-frag.c: Add volatile flag.
1005
1006 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1007
1008         * configure.ac: New name of configure.in.  Update
1009         AC_INIT, AC_CONFIG_SRCDIR, AC_CONFIG_HEADERS, AC_CONFIG_FILES,
1010         AC_OUTPUT, AM_INIT_AUTOMAKE to the preferred style for
1011         Autoconf 2.5x and Automake 1.7 or later.
1012         * configure.in: Remove.
1013         * configure: Regenerate.
1014
1015         * Makefile.am: Remove useless multilib rules.
1016         * Makefile.in: Regenerate.
1017
1018 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1019
1020         * .cvsignore: New file.
1021
1022 2004-06-10  Stephen Crowley  <stephen.crowley@sbcglobal.net>
1023
1024         PR libmudflap/13505
1025         * mf-hooks2.c (semctl): Add cygwin porting hack.
1026
1027 2004-06-09  Frank Ch. Eigler  <fche@redhat.com>
1028
1029         ctype support.
1030         * configure.in: Look for ctype header and glibc implementation.
1031         * mf-hooks2.c (__ctype_{b,toupper,tolower}_loc): Sample ctype
1032         array hooks for glibc 2.3.
1033         * mf-runtime.h.in: Wrap them.
1034         * mf-runtime.c (__mf_init): Leave marker regarding other ctype
1035         implementations.
1036         * testsuite/libmudflap.c/pass47-frag.c: New test.
1037         * configure, config.h.in: Regenerated.
1038
1039 2004-06-04  Frank Ch. Eigler  <fche@redhat.com>
1040
1041         Portability improvements, e.g., libmudflap/15293.
1042         * configure.in: Look for glibc extension functions.  Look for
1043         support of -f{function,data}-sections.  Look for more headers.
1044         Create testsuite/mfconfig.exp.  Correct more "test x.." thinkos.
1045         * Makefile.am: Use $(SECTION_FLAGS).  Collapse piecemeal-compiled
1046         mf-hooks* into usual single object per source.
1047         * mf-hooks*.c: Remove all #if WRAP_foo conditionals.
1048         * mf-hooks2.c: #include a bunch more system headers.  Define strnlen
1049         if system doesn't provide one.
1050         * mf-hooks3.c (struct pthread_info): Add stack_*_alloc fields.
1051         (pthread_create): Use it to properly GC dead thread stacks.
1052         * mf-runtime.c (__mf_violation): Correct snprintf type warning.
1053         * testsuite/Makefile.am: Stop generating site.exp.
1054         * testsuite/mfconfig.exp.in: New file.
1055         * testsuite/config/default.exp: Load new mfconfig.exp.
1056         * testsuite/lib/libmudflap.exp (libmudflap-init): Add extra libraries.
1057         (prune_gcc_output): Add glibc static linking warnings.
1058         * testsuite/libmudflap.*/*frags.exp: Enumerate needed -lmudflap* libs.
1059         * testsuite/libmudflap.c/pass46-frag.c: Ditto.
1060         * configure, Makefile, aclocal.m4, config.h.in, testsuite/Makefile.in:
1061         Regenerated with autoconf 2.57 and automake 1.7.
1062
1063 2004-06-04  Per Bothner  <per@bothner.com>
1064
1065         * configure.in (LIBMUDFLAPTH):  Fix thinko.
1066
1067         * configure.in:  Check for more headers.
1068         * mf-hooks2.c:  Conditionalize on HAVE_SYS_SOCKET_H etc.
1069
1070         * mf-runtime.c:  In two places conditionalize on SIUSR1 rather than
1071         HAVE_SIGNAL as mingw has signal.h but not SIUSR1.
1072
1073 2004-06-01  Andreas Jaeger  <aj@suse.de>
1074
1075         * configure.in: Handle multilibs, support
1076         --enable-version-specific-runtime-libs.
1077         * Makefile.am (lib_LTLIBRARIES): Rename to ...
1078         (toolexeclib_LTLIBRARIES): this for multilib support.
1079         * Makefile.in: Regenerated.
1080         * configure: Regenerated.
1081         * aclocal.m4: Regenerated.
1082         * config.h.in: Regenerated.
1083         * testsuite/Makefile.in: Regenerated.
1084
1085 2004-06-01  Andreas Jaeger  <aj@suse.de>
1086
1087         * testsuite/lib/libmudflap.exp (libmudflap-init): Handle
1088         multilibs, using multilib directory instead of hardcoded path.
1089         Set LD_RUN_PATH.
1090
1091 2004-05-21  Frank Ch. Eigler  <fche@redhat.com>
1092
1093         * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1094         * Makefile.in: Ditto.
1095
1096 2004-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1097
1098         * acinclude.m4 (lt_cv_deplibs_check_method): Use pass_all on sh*.
1099         * aclocal.m4, configure: Rebuilt.
1100
1101 2004-05-17  Frank Ch. Eigler  <fche@redhat.com>
1102
1103         * lib/libmudflap.exp (libmudflap-init): For C++ test cases only,
1104         import some build settings from libstdc++-v3 testsuite_flags.
1105         * .../cfrags.exp, .../c++frags.exp, .../cthfrags.exp: Corresponding
1106         changes to pass test language.
1107
1108         * mf-runtime.c (__mfu_check): Poison the cache with antidote for
1109         quicker mode-nop handling.
1110
1111 2004-03-25  Frank Ch. Eigler  <fche@redhat.com>
1112
1113         * mf-impl.h: Added libgcc license header.
1114
1115 2004-03-20  Frank Ch. Eigler  <fche@redhat.com>
1116
1117         * mf-hooks[123].c, mf-runtime.c, mf-heuristics.c:
1118         Added libgcc license header.
1119         * mf-hooks3.c (__mf_0fn_pthread_create): Correct arg constness.
1120         (pthread_create): Simplify stack allocation syntax.
1121
1122 2004-03-08  Loren J. Rittle  <ljrittle@acm.org>
1123
1124         * mf-hooks2.c: Support FreeBSD.
1125         (WRAP_gets): Avoid gets().
1126         * testsuite/libmudflap.c/pass-stratcliff.c: Do not
1127         test unimplemented mem/str calls on FreeBSD.
1128         * testsuite/libmudflap.c/pass21-frag.c: Do not include
1129         <alloca.h> on FreeBSD.
1130
1131 2004-01-30  Frank Ch. Eigler  <fche@redhat.com>
1132
1133         * testsuite/libmudflap.c/pass36-frag.c: Add missing free() call.
1134         * testsuite/libmudflap.c/pass46-frag.c: New test for -fmudflapir.
1135         * testsuite/libmudflap.cth/cthfrags.exp: Add -DSTATIC to compiler
1136         flags for static linking permutation.
1137         * testsuite/libmudflap.cth/pass40-frag.c: When -DSTATIC, avoid
1138         some pthreads code that croaks on linux glibc tls.
1139
1140 2004-01-27  Frank Ch. Eigler  <fche@redhat.com>
1141
1142         * testsuite/libmudflap.c/fail31-frag.c, pass45-frag.c: New tests.
1143
1144 2004-01-15  Frank Ch. Eigler  <fche@redhat.com>
1145
1146         * testsuite/libmudflap.c/pass44-frag.c: New test.
1147
1148 2004-01-12  Frank Ch. Eigler  <fche@redhat.com>
1149
1150         * testsuite/libmudflap.c/fail{28,29,30}-frag.c: New tests.
1151
1152 2004-01-08  Frank Ch. Eigler  <fche@redhat.com>
1153
1154         * testsuite/libmudflap.c/pass43-frag.c: Added missing program rc.
1155
1156 2003-12-11  Frank Ch. Eigler  <fche@redhat.com>
1157
1158         * testsuite/libmudflap.c/pass42-frag.c, pass43-frag.c: New tests.
1159
1160 2003-12-08  Andrew Pinski  <pinskia@physics.uc.edu>
1161
1162         PR libmudflap/12670
1163         * configure.in: Add check for see if
1164         socklen_t typedef is in sys/socket.h.
1165         * mf-hooks1.c: Add define if socklen_t
1166         is not typedef.
1167         * mf-hooks2.c: Likewise.
1168         * mf-hooks3.c: Likewise.
1169         * config.h.in: Regen.
1170         * configure: Regen.
1171
1172 2003-12-08  Frank Ch. Eigler  <fche@redhat.com>
1173
1174         * mf-runtime.c (__mf_watch_or_not): Tweak tracing message.
1175         * testsuite/libmudflap.c/fail21-frag.c: Defeat aliasing
1176         optimizations.
1177         * testsuite/libmudflap.c/pass25-frag.c: Ditto.
1178         * testsuite/libmudflap.c/pass26-frag.c: Tolerate non-overlapping
1179         (unoptimized) allocation of stack space.
1180
1181 2003-12-07  Richard Henderson  <rth@redhat.com>
1182
1183         * testsuite/libmudflap.c/fail23-frag.c (main): Adjust addend to 11.
1184         * testsuite/libmudflap.c/fail27-frag.c (foo): Mark noinline.
1185
1186 2003-12-06  Andrew Pinski <apinski@apple.com>
1187
1188         partial PR libmudflap/12670
1189         * mf-hooks1.c: Respect Darwin checks.  Conditionalize POSIX_SOURCE.
1190         * mf-hooks2.c: Likewise.
1191         * mf-hooks3.c: Likewise.
1192
1193 2003-11-19  Frank Ch. Eigler  <fche@redhat.com>
1194
1195         libstdc++/11696
1196         * mf-runtime.h.in: Switch to #pragma redefine_extname for
1197         symbols interposed at compile time.
1198         * testsuite/libmudflap.c++/pass41-frag.cxx: New test.
1199
1200         libmudflap/12939
1201         * mf-hooks2.c (semctl): Tolerate FreeBSD.
1202
1203         * configure.in: Reorganize check for <pthread.h>.
1204         * configure: Regenerated.
1205
1206 2003-11-04  David Edelsohn  <edelsohn@gnu.org>
1207
1208         * mf-runtime.c (_ALL_SOURCE): Define for AIX.
1209         (_LARGE_FILE_API): Define for AIX.
1210         * mf-hooks[123]: Same.
1211         (_XOPEN_SOURCE_EXTENDED): Define to 1 for AIX.
1212
1213 2003-10-21  David Edelsohn  <edelsohn@gnu.org>
1214
1215         * mf-runtime.c (_XOPEN_SOURCE_EXTENDED): Define to 1 for AIX.
1216
1217 2003-07-29  Frank Ch. Eigler  <fche@redhat.com>
1218
1219         2003-07-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1220
1221         * configure.in: Update check for union semun.
1222
1223 2003-07-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1224
1225         PR other/11673
1226         * mf-hooks2.c [WRAP_semctl]: Fix check for HAVE_UNION_SEMUN.
1227
1228 2003-07-29  Frank Ch. Eigler  <fche@redhat.com>
1229
1230         PR other/11673
1231         * configure.in: Add checks for 64-bit LFS functions, struct semun
1232         definition, for BSD compatibility.
1233         * mf-hooks1.c: Respect BSD checks.  Conditionalize POSIX_SOURCE.
1234         * mf-hooks2.c: Ditto.  Include <strings.h> for bcmp* decls.
1235         * mf-hooks3.c: Ditto.
1236         (pthread_create): Try MAP_ANON on platforms without the MAP_ANONYMOUS
1237         mmap flag.
1238         * configure, config.h.in: Regenerated.
1239
1240 2003-07-23  Frank Ch. Eigler  <fche@redhat.com>
1241
1242         Multithreading fixes:
1243         * mf-runtime.c (__mf_object): Store allocating/deallocating
1244         thread id.
1245         (options): Support new "-thread-stack" option.
1246         Rename "-heur-argv-environ" option to "-heur-stdlib".
1247         Disable "-lc-mask" and "-lc-shift" options.
1248         (__mf_dynamic): Add function pointers for pthread_join/_exit.
1249         (__assert_fail): New self-contained function for glibc.
1250         * mf-hooks3.c: Essentially rewritten, particularly related to
1251         use of __mf_pthread_info array.
1252         (pthread_join, _exit): New hook functions.
1253         * mf-impl.h (BEGIN_PROTECT): Handle starting_p case.
1254         * testsuite/libmudflap.cth/pass40-frag.c: New test.
1255
1256         Warning cleanups:
1257         * mf-heuristics.c: Add type casts for tracing, sub calls.
1258         * mf-impl.h (BEGIN_PROTECT): Redefine to omit result type.
1259         Update all callers to declare explicit result holder.
1260         (END_PROTECT): Removed.
1261         * testsuite/*/*frags.exp: Clean up default MUDFLAP_OPTIONS.
1262
1263 2003-07-15  Diego Novillo  <dnovillo@redhat.com>
1264
1265         * testsuite/libmudflap.c/fail21-frag.c: Add volatile modifiers.
1266         * testsuite/libmudflap.c/fail15-frag.c: Likewise.
1267         * testsuite/libmudflap.c/fail13-frag.c: Likewise.
1268
1269 2003-07-04  Frank Ch. Eigler  <fche@redhat.com>
1270
1271         * mf-hooks1.c, 2.c, 3.c: New file, splits up content from old ...
1272         * mf-hooks: Removed.
1273         * mf-impl.h (MF_VALIDATE_EXTENT, BEGIN_PROTECT, END_PROTECT):
1274         Move these macros from old mf-hooks.c here.
1275         * Makefile.am: Adapt to split-up hook sources for faster builds.
1276         * Makefile.in: Regenerated.
1277
1278         * mf-heuristics.c: Remove #if-0 block.
1279
1280         * mf-impl.h (__mf_state): Reorganize declaration and implementation.
1281         (__mf_starting_p): New state only for use while dlsym bootstrapping.
1282         (CALL_REAL, __mf_init): Corresponding changes.
1283         (TRACE, VERBOSE_TRACE): Include thread id and "mf:" prefix.  Update
1284         all callers to remove redundant "mf:" prefix.
1285         * mf-runtime.h.in: #define a few reentrancy macros for libmudflapth.
1286         * mf-hooks3.c: Rewrite chunks to support per-thread __mf_state value.
1287         (__mf_pthread_info): Become a hash table.
1288
1289         * testsuite/lib/mfdg.exp: Support new "dg-timeout" and
1290         "dg-repetitions" directives to control test case execution.
1291         * testsuite/libmudflap.cth/pass37-frag.c: Add timeout and repeat
1292         options.
1293         * testsuite/libmudflap.cth/pass39-frag.c: Ditto for this new test.
1294
1295 2003-06-25  Frank Ch. Eigler  <fche@redhat.com>
1296
1297         * mf-hooks.c (alloca): Separate into stub.
1298         (__mf_wrap_alloca_indirect): New function.  Use CALL_REAL
1299         malloc/free for alloca blocks.
1300         (pthread_create): Tolerate failing pthread_attr_get* calls.
1301         * mf-runtime.c (__mf_fini): Call __mf_wrap_alloca_indirect.
1302         * mf-impl.h (CALL_WRAP): Remove macro.
1303         * testsuite/libmudflap.c/pass21-frag.c: Include <alloca.h>.
1304         * testsuite/libmudflap.c/pass23-frag.c: Include more struct
1305         padding for ia64 BIT_FIELD_REF constructs.
1306
1307 2003-06-19  Frank Ch. Eigler  <fche@redhat.com>
1308
1309         * mf-hooks.c (struct pthread_info): Add "thread_errno" field.
1310         (__mf_pthread_spawner, __mf_pthread_cleanup): Use it with GUESS
1311         libmudflap object type.
1312         * mf-runtime.c (__mfu_unregister): Correct cemetary logic to avoid
1313         crashes on unregistering STATIC objects.
1314
1315 2003-06-17  Frank Ch. Eigler  <fche@redhat.com>
1316
1317         Based on patch from Eyal Lebedinsky <eyal@eyal.emu.id.au>:
1318         * mf-hooks.c (__mf_pthread_spawner): Register thread errno.
1319         (time, strerror, fopen, fopen64, fclose, fread): New hooks.
1320         (fwrite, fgetc, fgets, getc, gets, ungetc, fputc): New hooks.
1321         (fputs, putc, puts, clearerr, feof, ferror, fileno): New hooks.
1322         (printf, fprintf, sprintf, snprintf, vprintf, vfprintf): New hooks.
1323         (vsprintf, vsnprintf, access, remove, fflush, fseek): New hooks.
1324         (fseeko64, ftell, ftello64, rewind, fgetpos, fsetpos): New hooks.
1325         (stat, stat64, fstat, lstat, mkfifo, setvbuf, setbuf): New hooks.
1326         (setvbuf, opendir, closedir, readdir, recv, recvfrom): New hooks.
1327         (recvmsg, send, sendto, sendmsg, setsockopt, getsockopt): New hooks.
1328         (accept, bind, connect, gethostname, sethostname): New hooks.
1329         (gethostbyname, wait, waitpid, popen, pclose, execve): New hooks.
1330         (execv, execvp, system, dlopen, dlclose, dlerror, dlsym): New hooks.
1331         (semop, semctl, shmctl, shmat, shmdt): New hooks.
1332         * mf-runtime.h.in: Corresponding changes.
1333         * mf-runtime.c (__mf_ini): Register stdio objects.  Use STATIC type.
1334         (opts) Rename heur_argv_environ to heur_std_data.
1335         (__mf_wrap_main): Use STATIC type for argv/environ strings.
1336         * Makefile.am: Corresponding changes.
1337         * Makefile.in: Regenerated.
1338
1339 2003-06-11  Frank Ch. Eigler  <fche@redhat.com>
1340
1341         * mf-heuristics.c (__mf_heuristic_check): Disable stack_bounds
1342         heuristic for threaded case, and for non-x86-linux targets.
1343         * mf-hooks.c (__mf_0fn_calloc): Provide a working dummy implementation
1344         for use during pre-main() program startup.
1345         (__mf_0fn_*): Make these functions non-static.
1346         * mf-impl.h (DECLARE, CALL_REAL): Support calls to 0fn backup hook
1347         functions.
1348         * mf-runtime.c (__mf_state): Set initial state to "starting".
1349         (__mf_resolve_single_dynamic): Tolerate repeated calls for same symbol.
1350         (__wrap_main): New function to register argv[] and environ[] strings.
1351         (__mf_ini): Call it.
1352         (*): In all trace functions, use "%p" as formatter for uintptr_t.
1353
1354         * testsuite/libmudflap.c/pass38-frag.c: New test case.
1355         * testsuite/libmudflap.cth/pass37-frag.c: Improved test.
1356
1357         * acinclude.m4: Add comments with aoliva's concerns about x86_64
1358         pass_all.
1359         * aclocal.m4, configure: Regenerated.
1360
1361 2003-06-04  Frank Ch. Eigler  <fche@redhat.com>
1362
1363         * acinclude.m4: Correct typo in AC_MSG_CHECKING.
1364         * aclocal.m4, configure: Regenerated.
1365
1366 2003-06-03  Frank Ch. Eigler  <fche@redhat.com>
1367
1368         * acinclude.m4: Force "pass_all" deplibs_check_method for libtool
1369         for x86_64 target.  Disable caching for this value.
1370         * aclocal.m4, configure: Regenerated.
1371
1372 2003-06-02  Frank Ch. Eigler  <fche@redhat.com>
1373
1374         * testsuite/libmudflap.c/pass38-frag.c: Deleted.  -fwritable-strings
1375         is about to become deprecated, and its present handling bugs are
1376         unworthy of fixing.
1377
1378 2003-05-30  Frank Ch. Eigler  <fche@redhat.com>
1379
1380         * testsuite/libmudflap.c/pass38-frag.c: New test for
1381         -fwritable-strings.
1382
1383 2003-05-23  Frank Ch. Eigler  <fche@redhat.com>
1384
1385         * mf-runtime.c (__mf_sigusr1_handle): Call unlocked variant of
1386         __mf_report, asserting reentrant calling context.
1387
1388 2003-05-23  Frank Ch. Eigler  <fche@redhat.com>
1389
1390         * mf-hooks.c (realloc): Correct reentrancy logic.
1391         * testsuite/libmudflap.c/hook-allocstuff.c: New test case.
1392
1393 2003-05-20  Frank Ch. Eigler  <fche@redhat.com>
1394
1395         * mf-hooks.c (LIBMUDFLAPTH_THREADS_MAX): New macro, replaces
1396         PTHREAD_THREADS_MAX.  Update users.
1397         * mf-runtime.c (__mf_usage): Print [active] instead of [default]
1398         for active options.
1399         * testsuite/Makefile.am (all-local): Prime dejagnu site.exp file
1400         with libmudflapth presence indicator.
1401         * testsuite/Makefile.in: Regenerated.
1402
1403 2003-05-16  Frank Ch. Eigler  <fche@redhat.com>
1404
1405         * Makefile.am (AM_CFLAGS): Remove "-ansi".
1406         * configure.in: Remove silly no-pthreads => no-shared logic.
1407         * Makefile.in, configure: Regenerated.
1408         * mf-heuristics.c (__mf_heuristic_check): Remove reentrancy hacks.
1409         * mf-hooks.c (BEGIN_PROTECT, END_PROTECT): Reorganize reentrancy
1410         code.  Count reentrancy events.
1411         (all hook functions): Don't directly manipulate __mf_state variable.
1412         Add TRACE calls to hook functions without them.
1413         * mf-impl.h (LOCKTH): Try to count lock contention events.
1414         (VERBOSE_TRACE, TRACE): Remove reentrancy hacks.
1415         * mf-runtime.c (BEGIN_RECURSION_PROTECT, END_RECURSION_PROTECT):
1416         Reorganize reentrancy code.
1417         (external __mf_ entry points): Use RECURSION_PROTECT mechanism to
1418         identify reentrancy with mutex holding times.
1419         (internal __mfu_ entry points): Remove internal reentrancy code.
1420         (__mf_init): Use ordinary locked calls.
1421         (__mfu_report): Print the two new counts.
1422         * testsuite/lib/libmudflap.exp: Filter out junk ld/pthreads messages.
1423         * testsuite/libmudfap.cth/cthfrags.exp: New test driver.
1424         * testsuite/libmudflap.cth/pass37-frag.c: New pthreads test.
1425         * testsuite/libmudfap.cth/cfrags.exp: Adapt to new libmudflap
1426         option defaults.
1427
1428 2003-05-09  Frank Ch. Eigler  <fche@redhat.com>
1429
1430         * configure.in: Add pthread support, plus glibc and porting hacks.
1431         * Makefile.am (LIBMUDFLAPTH): New conditional, to build -lmudflapth
1432         from objects built into ./pth/.
1433         * mf-runtime.c (__mfu_watch,register,...): Fork new unlocked
1434         functions for internal entry points.  Update callers to pick
1435         locked vs. unlocked variants.
1436         (__mf_resolve_single_dynamic): Extend to support symbol versioning
1437         info coming in from a static data structure.
1438         (*): Reorder miscellaneous declarations to group data vs functions.
1439         (__mf_set_default_options): Simplify.
1440         (__mf_usage): Mention threading status of host executable.
1441         * mf-impl.h: Move max/min decls here.  Reorganize __mf_dynamic
1442         decls to match above.
1443         (LOCKTH, UNLOCKTH): New macros for Big Libmudflap Lock management.
1444         * mf-heuristics.c: Choose between locked/unlocked calls.  Add
1445         some lock/unlock markers.  Remove some unused code.
1446         * mf-hooks: Ditto.
1447         (pthread_create): New hook function.
1448         (__mf_pthread_cleanup, _spawner): New helper functions.
1449         * configure. aclocal.m4, config.h.in, Makefile.in: Regenerated.
1450
1451 2003-05-02  Frank Ch. Eigler  <fche@redhat.com>
1452
1453         * testsuite/libmudflap.c/fail27-frag.c: Add more volatile flags.
1454
1455 2002-04-28  Frank Ch. Eigler  <fche@redhat.com>
1456
1457         * Makefile.am (HOOKOBJS): Add *time related hooks.
1458         * configure.in: Look for pthreads.h header.
1459         * mf-hooks.c (asctime, ctime, gmtime, localtime): New wrappers.
1460         * mf-runtime.c: Begin sketching some pthreads support.
1461         (__mf_usage): Check for -lpthread presence.
1462         (__mf_unregister): Confirm matching unregistration base.
1463         (__mf_find_objects_rec): Reduce unnecessary recursion.
1464         * mf-runtime.h.in: Add "nothrow" attribute to functions.  Add
1465         #defines for new hook functions.
1466         * mf-impl.h: Corresponding changes.
1467         * config.h.in, configure, Makefile.in: Regenerated.
1468
1469 2002-04-27  Diego Novillo  <dnovillo@redhat.com>
1470
1471         * testsuite/libmudflap.c/fail1-frag.c: Add volatile
1472         modifiers to prevent being optimized away.
1473         * testsuite/libmudflap.c/fail10-frag.c: Likewise.
1474         * testsuite/libmudflap.c/fail13-frag.c: Likewise.
1475         * testsuite/libmudflap.c/fail14-frag.c: Likewise.
1476         * testsuite/libmudflap.c/fail15-frag.c: Likewise.
1477         * testsuite/libmudflap.c/fail2-frag.c: Likewise.
1478         * testsuite/libmudflap.c/fail20-frag.c: Likewise.
1479         * testsuite/libmudflap.c/fail3-frag.c: Likewise.
1480
1481 2003-04-15  Frank Ch. Eigler  <fche@redhat.com>
1482
1483         * Makefile.am (libmudflap_la_LIBADD): Remove -ldl.
1484         * configure.in: Look for uintptr_t and -ldl on target.
1485         * mf-runtime.h.in: Adjust uintptr_t declaration logic.
1486         * Makefile.in, aclocal.m4, configure, config.h.in: Regenerated.
1487         * testsuite/Makefile.in: Regenerated.
1488         * mf-runtime.c (__mf_sigusr1_respond): Tweak declaration and calls
1489         for better C compliance.
1490
1491 2003-04-15  Frank Ch. Eigler  <fche@redhat.com>
1492
1493         * mf-hooks.c (MF_VALIDATE_EXTENT): Remove unnecessary reentrancy
1494         prevention code.
1495         * mf-runtime.c (__mf_set_default_options): Turn off
1496         check-initialization.
1497         (__mf_describe_object): Shorten description.
1498         * testsuite/libmudflap.c/fail25-frag.c: Turn on check-initialization.
1499
1500 2003-04-07  Frank Ch. Eigler  <fche@redhat.com>
1501
1502         * mf-hooks.c (__mf_0fn_mmap): Correct return value, as per <rth>.
1503
1504 2003-04-02  Frank Ch. Eigler  <fche@redhat.com>
1505
1506         * mf-hooks.c (BEGIN_PROTECT): Handle startup-time reentrant
1507         calls specially.
1508         (__mf_0fn_malloc ... _munmap): New dummy backup calls.
1509         * mf-impl.h (CALL_BACKUP): New macros.
1510         * mf-runtime.c (__mf_init): Tweak __mf_state during startup.
1511
1512 2003-03-31  Frank Ch. Eigler  <fche@redhat.com>
1513
1514         * Makefile.am (AM_CFLAGS): Remove optimization flags.
1515         (HOOKOBJS): Remove dlopen hook.
1516         (libmudflap_la_LIBADD): Add -ldl.
1517         * mf-hooks.c (dlopen): Remove hook.
1518         * mf-impl.h (__mf_dynamic): Ditto.
1519         * mf-runtime.c (__mf_resolve_dynamics): Ditto.
1520         * Makefile.in: Regenerated.
1521
1522 2003-03-28  Frank Ch. Eigler  <fche@redhat.com>
1523
1524         * configure.in: Check for target gettimeofday, signal, some headers.
1525         * mf-impl.h (__mf_opts): Add new "sigusr1_report" field.  Comment
1526         out inop multi_threaded field.
1527         * mf-runtime.c (options): Handle new "-sigusr1-report" option.
1528         (__mf_set_options): Correct handling of "-help".
1529         (__mf_sigusr1_respond): New function to manage SIGUSR1 response.
1530         (__mf_check, __mf_register, __mf_unregister): Call it.
1531         (__mf_insert_new_object, __mf_unregister): Respect HAVE_GETTIMEOFDAY.
1532         (__mf_report_leaks): Make callable
1533         (__mf_tree_analyze): Traverse in-order.  Accumulate address bit
1534         distribution statistics.
1535         (__mf_adapt_cache): Rewrite shift guessing logic based on address
1536         bit distributions.
1537         * config.h.in, configure: Regenerated.
1538         * testsuite/libmudflap.c/fail27-frag.c: New test.
1539         * testsuite/libmudflap.c/pass36-frag.c: New test.
1540
1541 2003-03-11  Frank Ch. Eigler  <fche@redhat.com>
1542
1543         * mf-runtime.h.in: Tweak.
1544         * Makefile.am, configure.in: Tweak mf-runtime.h generation some more.
1545         Don't use intermediate files nor AC_OUTPUT-time postprocessing.
1546         * Makefile.in, testsuite/Makefile.in, configure: Regenerated.
1547
1548 2003-03-10  Frank Ch. Eigler  <fche@redhat.com>
1549
1550         * configure.in: Tweak generation of mf-runtime.h some more.  It
1551         needs to work from both config.status and configure.
1552         * configure: Regenerated.
1553
1554 2003-03-10  Frank Ch. Eigler  <fche@redhat.com>
1555
1556         * Makefile.am: Reorganize hook file building.  Add auto dependencies.
1557         * configure.in: Tweak generation of mf-runtime.h.
1558         * mf-runtime.h.in: Add new __MF_TYPE_HEAP_I.
1559         * mf-hooks.c (*): Adapt to initialized-heap object type.
1560         * mf-impl.h: Tweak cemetary boundaries.
1561         * mf-runtime.c (__mf_check): Adapt to new initialized-heap object
1562         type.
1563         (__mf_insert_new_object, __mf_register, __mf_unregister): Ditto.
1564         (__mf_describe_object, __mf_report_leaks, __mf_violation): Ditto.
1565         * testsuite/lib/libmudflap.exp (includes): Include build tree.
1566         * testsuite/libmudflap.c/pass{26,5}: Further adapt to initialization
1567         checking.
1568         * testsuite/.../fail{25,26}-frag.c: New tests.
1569         * testsuite/.../pass{32,33,34,35}-frag.c: New tests.
1570         * Makefile.in, configure: Regenerated.
1571
1572 2003-03-05  Frank Ch. Eigler  <fche@redhat.com>
1573
1574         * mf-runtime.c (__mf_set_default_options): Turn on initialization
1575         checking by default.
1576         (__mf_insert_new_object): As a temporary hack, assume that new
1577         objects registered on the stack start out initialized.
1578         * testsuite/libmudflap.c/fail9,pass23,pass[6789]-*: Initialize
1579         heap objects by hand.
1580
1581 2003-03-05  Frank Ch. Eigler  <fche@redhat.com>
1582
1583         Switch to macro-style hooks for str*/mem*/b* functions.
1584         * mf-runtime.h.in (__MF_TYPE_*): Moved some internal values out.
1585         (mem*, str*, b*): Added macro-style hooks for _MUDFLAP case.
1586         * mf-runtime.c: #include config.h to enable glibc backtraces again.
1587         (__mf_set_default_options): Turn off heur_proc_map.
1588         (*): Adapt to to macro-style hook functions.
1589         (__mf_object_dead_head, __mf_object_cemetary): Correct bounds.
1590         (__mf_check, __mf_register, __mf_unregister): Tweak tracing message.
1591         (__mf_violation): Handle __MF_VIOL_WATCH.
1592         * mf-impl.h (__MF_TYPE_*): Moved these internal values here.
1593         (__mf_dynamic): Removed mem*/str*/b* functions.
1594         (TRACE, VERBOSE_TRACE): Add reentrancy locking.
1595         (WRAPPER2): New macro for macro-style hooks.
1596         * mf-hooks.c: Convert mem*/str*/b* functions to simpler
1597         macro-style hooks.
1598         (BEGIN_PROTECT): Tweak tracing vs reentrancy-lock ordering.
1599         * mf-heuristics.c: Adapt to macro-style hook functions.
1600         Correct some comments.
1601         * testsuite/lib/mfdg.exp (dg-test): Simplify result string for
1602         output pattern tests.
1603         * testsuite/libmudflap.c/fail[89]-frag.c: Elaborate output test.
1604         * testsuite/libmudflap.c++/c++frags.exp: Enable non-static tests.
1605
1606 2003-02-28  Frank Ch. Eigler  <fche@redhat.com>
1607
1608         * testsuite/libmudflap.c/fail23-frag.c, pass30-frag.c: New tests
1609         for global array registration.
1610         * testsuite/libmudflap.c++/fail24-frag.cxx, pass31-frag.cxx: Ditto.
1611         * testsuite/libmudflap.c++/c++frags.exp: Tweak -static multilib hack.
1612
1613 2003-02-27  Frank Ch. Eigler  <fche@redhat.com>
1614
1615         * Makefile.am: Add gross make bug workarounds.  Tweaked
1616         SUBDIRS and AM_CFLAGS.
1617         * Makefile.in: Regenerated.
1618
1619 2003-02-26  Frank Ch. Eigler  <fche@redhat.com>
1620
1621         Switch to dejagnu.
1622         * configure.in (AC_PROG_CXX): Don't look for C++ any more.
1623         * Makefile.am (TESTS): Remove simple automake testing.
1624         * configure, Makefile.in: Regenerated.
1625         (SUBDIRS): Include new testsuite/ directory.
1626         * tests/*: Removed all files; moved bulk under:
1627         * testsuite/*: New subdirectory tree.
1628         * testsuite/libmudflap.c/cfrags.exp: New file, C test driver.
1629         * testsuite/libmudflap.c++/c++frags.exp: New file, C++ test driver.
1630         * testsuite/lib/libmudflap.exp: New file, derived from libstdc++.
1631         * testsuite/lib/mfdg.exp: New file, derived from dejagnu.
1632         * testsuite/config/default.exp: New file.
1633         * testsuite/Makefile.am, Makefile.in: New files.
1634
1635 2003-01-29  Frank Ch. Eigler  <fche@redhat.com>
1636
1637         * Makefile.am (TESTS_ENVIRONMENT): Remove redundant "-mode-check".
1638         (TESTS): Add fail22 and pass29 tests.
1639         * mf-runtime.h.in: Change API to take void*/size_t region parameters.
1640         Add new access-type parameter for __mf_check.  Move __MF_VIOL* out.
1641         * mf-impl.h: Corresponding changes.  Update CLAMP* macros for void*
1642         values.  Move __MF_VIOL* here.
1643         * mf-runtime.c (*): Adapt to void*/size_t API in mf-runtime.h.
1644         (check_initialization): New field in __mf_opts.  Default off.
1645         (read_count,write_count): New fields in __mf_object.
1646         (__mf_check): Implement basic initialization checking.
1647         (__mf_insert_new_object): Assume STATIC|GUESS regions are initialized.
1648         (__mf_describe_object): Print new fields.
1649         (__mf_violation): Identify check/read vs. check/write in messages.
1650         * test/pass29-frag.c, test/fail22-frag.c: Basic tests for new
1651         "-check-initialized" mudflap option.
1652         * test/pass25-frag.c, test/fail21-frag.c: Adapt to API changes.
1653         * mf-hooks.c (MF_VALIDATE_EXTENT): Add new access-type parameter.
1654         Drop __FILE__/__LINE__ hack.  Update callers.
1655         (*): Adapt to new mf-runtime.h API.
1656         * Makefile.in: regenerated.
1657
1658 2003-01-24  Frank Ch. Eigler  <fche@redhat.com>
1659
1660         * configure.in: Build mf-runtime.h a more proper way.
1661         * mf-hooks.c (strdup, strndup): Correct reentrancy logic.
1662         * mf-runtime.c (verbose_violations): Turn on by default.
1663         * mf-runtime.h.in: Remove some miscellaneous stuff ...
1664         * mf-impl.h: ... and move it here.
1665         * configure: Regenerated.
1666
1667 2003-01-22  Frank Ch. Eigler  <fche@redhat.com>
1668
1669         * configure.in: Look for C++ compiler.
1670         * test/*-frag.c, mf-driver.c: Reformatted with GNU indent and
1671         fixed type warnings when built with C++.
1672         * test/pass27-frag.cxx, pass28-frag.cxx: New C++ tests.
1673         * Makefile.am (TESTS): Run them.
1674         (*) Add new rules for building and running C++ tests.
1675         (TESTFLAGS): Set new default to avoid libstdc++-v3 shlib issues.
1676         * mf-runtime.h.in: Protect with extern "C".
1677         * Makefile, configure: Regenerated.
1678
1679 2003-01-06  Frank Ch. Eigler  <fche@redhat.com>
1680
1681         Portability improvements.
1682         * configure.in: Look for glibc backtrace headers/functions.
1683         * mf-hooks.c: Don't include <execinfo.h> any more.
1684         * mf-runtime.c (__mf_set_options): Call more stdlib functions
1685         via CALL_REAL.
1686         (__mf_backtrace): Provide alternate baby implementation in
1687         absence of glibc.
1688         * test/mf-driver.c: Portability tweaks.
1689         * acinclude.m4: New file, containing top level libtool.m4.
1690         * aclocal.m4, configure, Makefile.in, config.h.in: Regenerated.
1691
1692 2002-12-19  Frank Ch. Eigler  <fche@redhat.com>
1693
1694         * mf-runtime.h.in (HAVE_UINTPTR_T): Define unconditionally.
1695
1696 2002-11-08  Frank Ch. Eigler  <fche@redhat.com>
1697
1698         * mf-runtime.c (options): Add new "wipe-heap", "wipe-stack"
1699         options.
1700         (__mf_unregister): Implement stack/heap object wiping.
1701         (__mf_set_options): Renamed from __mf_process_opts.
1702         (__mf_uncache_object): Change arg type, correct callers.
1703         * mf-impl.h: Corresponding changes.
1704         * mf-hooks.c (realloc): Save/restore heap-wiping flag.
1705         * mf-runtime.h.in (__mf_set_options): Extend public API.
1706         * test/pass26-frag.c: New test for stack wiping.
1707         * Makefile.am (TESTS): Run it.
1708         * Makefile.in: Regenerated.
1709
1710 2002-11-07  Frank Ch. Eigler  <fche@redhat.com>
1711
1712         * mf-runtime.h.in (__mf_watch, __mf_unwatch): Extend public API.
1713         * mf-runtime.c (__mf_object_t): Add watching_p field.
1714         (__mf_watch_or_not): New function to implement
1715         object watch flagging.
1716         (__mf_watch, __mf_unwatch): New wrappers for above.
1717         (__mf_check, __mf_describe_object): Handle objects with watching_p.
1718         (__mf_count_violation): Enlarge array.
1719         (__mf_uncache_object): Renamed from __mf_remove_old_object.  Don't
1720         unlink object.  Clear cache properly.
1721         (__mf_unregister): Unlink object explicitly before uncaching.
1722         * test/fail21-frag.c, pass25-frag.c: New tests.
1723         * Makefile.in, aclocal.m4: Regenerated.
1724
1725 2002-11-05  Frank Ch. Eigler  <fche@redhat.com>
1726
1727         * test/fail20-frag.c: New test for NULL pointer dereferencing.
1728         * Makefile.am (TESTS): Add it.
1729         * test/pass-stratcliff.c: Add decls of stpcpy.
1730         * configure.in: Test for <stdint.h>.  Generate mf-runtime.h in
1731         build tree from config.h and new file mf-runtime.h.in.
1732         * mf-runtime.h.in: Renamed from mf-runtime.h.  Tweak uintptr_t decl.
1733         * Makefile.in, configure, config.h.in: Regenerated.
1734         * mf-hooks.c: Add #undef for wrapped glibc str*/mem* macros.
1735         * mf-runtime.c (options, __mf_set_default_options): Support new
1736         default "abbreviate" option.
1737         (__mf_object.description_epoch): New field.
1738         (__mf_describe_object): Conditionally abbreviate objects already
1739         displayed in current epoch.  Accept NULL input to increment epoch.
1740         (__mf_fini, __mf_ini): Reset description epoch.
1741         (__mf_register, __mf_unregister, __mf_adapt_cache, __mf_init): Ensure
1742         that NULL pointer slot in lookup cache is invalidated.  Register a
1743         NOACCESS region around NULL.
1744         * mf-impl.h: Corresponding changes.
1745
1746 2002-10-16  Frank Ch. Eigler  <fche@redhat.com>
1747
1748         * test/fail19-frag.c, pass24-frag.c, pass-stratcliff.c: New tests.
1749         * Makefile.am: Run them.  Install mf-runtime.h.
1750         * Makefile.in: Regenerated.
1751         * mf-hooks.c: Add some markers for more missing functions.
1752         * mf-runtime.c (__mf_adapt_cache): Experiment with a utilization-based
1753         statistic to tune tune cache size (mask).
1754
1755 2002-10-01  Frank Ch. Eigler  <fche@redhat.com>
1756
1757         * test/pass23-frag.c: New test for bit_field_ref expressions.
1758         * Makefile.am, Makefile.in: Add new test.
1759         * mf-hooks.c (mmap, munmap): Rewrite to track individual pages.
1760         (MF_VALIDATE_EXTENT): Accept zero-size mem/str operations.
1761         * mf-runtime.c (__mf_init): Register errno global.
1762         (__mf_find_object): Removed function.
1763         (__mf_check): Rewrite logic to support accesses across some
1764         contiguous but distinctly registered objects.
1765         (__mf_remove_old_object): Tolerate cache entries that span
1766         contiguous objects.
1767
1768 2002-09-30  Frank Ch. Eigler  <fche@redhat.com>
1769
1770         * test/pass21-frag.c, pass22-frag.c: New tests: alloca, bitfields.
1771         * Makefile.am, Makefile.in: Run new tests.
1772         * mf-hooks.c (alloca): Correct stack direction logic.
1773
1774 2002-09-26  Frank Ch. Eigler  <fche@redhat.com>
1775
1776         * mf-impl.h (adapt_cache): New option.
1777         * mf-runtime.c (__mf_set_default_options): Set its default value.
1778         Tweak the tree_aging parameter down.
1779         (__mf_check): Maintain separate counter for cache-adaptation.
1780         (__mf_tree_analyze): New function to collect object tree stats.
1781         (__mf_adapt_cache): New function to automate cache parameters.
1782
1783 2002-09-24  Frank Ch. Eigler  <fche@redhat.com>
1784
1785         * mf-heuristics.c (__init_misc, __mf_heuristic_check): Add
1786         hypothetical #if-0'd argv/envp region registration.
1787         * mf-runtime.c (__mf_init): Add kludged form of above.
1788         (*) Add "heur_argv_environ" flag, default on, to govern this.
1789         * mf-impl.h: Corresponding changes.
1790
1791 2002-09-20  Frank Ch. Eigler  <fche@redhat.com>
1792
1793         * test/fail18-frag.c: New test file for NOACCESS regions.
1794         * Makefile.am (TESTS): Add new test.
1795         * Makefile.in: Regenerated.
1796
1797         * mf-heuristics.c (__mf_heuristics_check): Correct deja_vu logic.
1798         * mf-impl.h (tree_aging): Add new mudflap_option, default 1000000.
1799         (optimize_object_tree): Remove unused mudflap_option.
1800         * mf-runtime.h (__MF_TYPE_NOACCESS): New region type.  Add printing
1801         support throughout.  Use .._MAX_CEM for cemetary upper bound.
1802         * mf-runtime.c (__mf_init): Register __mf_* globals as NOACCESS
1803         regions.
1804         (__mf_object): Add new liveness field for use by tree aging.
1805         (__mf_check): Trigger tree aging when needed.
1806         (__mf_age_tree): New function to decay liveness field.
1807         (__mf_find_objects_rec): Use liveness field to rotate tree.
1808         (__mf_insert_new_object): Only provide backtrace for HEAP objects.
1809         (__mf_unregister): Ditto.
1810         (__mf_register): Tweak duplicate-static message.
1811         (__mf_violation: Tweak nearby-object counter printing.
1812
1813 2002-09-16  Frank Ch. Eigler  <fche@redhat.com>
1814
1815         * test/pass20-frag.c: New test file.
1816         * Makefile.am (TESTS): Reorganize.  Add pass20 test.
1817         * Makefile.in: Regenerated.
1818
1819         * mf-impl.h (TRACE_IN, TRACE_OUT): Remove macros.  Update callers.
1820         * mf-hooks.c (BEGIN_PROTECT): Add hook tracing here.
1821         * mf-heuristic.c (__mf_heuristic_check): Track seen /proc/self/map
1822         entries to avoid repeat registration.
1823         * mf-runtime.c (__mf_object_cemetary): Don't bother bury GUESS regions.
1824         (__mf_register, __mf_unregister): Rewrite GUESS handling logic.
1825
1826 2002-09-09  Frank Ch. Eigler  <fche@redhat.com>
1827
1828         * Makefile.am: Create test sources with #include, not cat>>.
1829         * Makefile.in: Regenerated.
1830         * test/buildtest.sh: Removed.
1831         * test/driver.c (abort_handler, main): Be quiet.
1832
1833 2002-09-06  Frank Ch. Eigler  <fche@redhat.com>
1834
1835         * test/pass18-frag.c, pass19-frag.c: New tests.
1836         * Makefile.am (check): Run them.  Rebuild test programs each time.
1837         * Makefile.in: Regenerated.
1838
1839 2002-09-06  Frank Ch. Eigler  <fche@redhat.com>
1840
1841         * mf-runtime.c (__mf_register): Correct SEGV-inducing error in
1842         overlapping object search.
1843         (__mf_violation): Likewise for nearby objects.
1844         Improve nearby-object listing.
1845
1846         cleanup:
1847         * mf-runtime.c, mf-hooks.c: Remove "{{{"/"}}}" folding marks.
1848         * mf-heuristics.c (__mf_heuristic_check): Tweak message.
1849
1850 2002-09-03  Frank Ch. Eigler  <fche@redhat.com>
1851
1852         alloca support:
1853         * Makefile.am (AM_CFLAGS): New definition of needed settings.
1854         (HOOKOBJS): Add alloca-hook.o.
1855         * mf-hooks.c (alloca): New function to implement alloca in libiberty
1856         style.
1857         * mf-runtime.c (__mf_report): Call alloca(0) to flush remaining blocks.
1858         (__mf_backtrace): Reimplement without using alloca.
1859         * Makefile.in: Regenerated.
1860
1861         cleanup:
1862         * mf-hooks.c: Use VERBOSE_TRACE throughout instead of fprintf(stderr).
1863         Correct signedness bugs in length-tracking variables.
1864         * mf-impl.h: Make options unsigned.
1865         (CALL_WRAP): New macro to parallel CALL_REAL().
1866         (DECLARE): Remove erroneous ";" at end.
1867         * mf-runtime.c, mf-hooks.c, mf-heuristics.c: Replace remaining %p
1868         formatting specs with %08lx.  Correct several compiler warnings.
1869
1870 2002-08-28  Frank Ch. Eigler  <fche@redhat.com>
1871
1872         * mf-runtime.c (__mf_violation): Try harder to locate nearby objects.
1873
1874 2002-08-27  Frank Ch. Eigler  <fche@redhat.com>
1875
1876         libmudflap hook breakup:
1877         * Makefile.am (TESTS_ENVIRONMENT): Add ../../gcc to LD_LIBRARY_PATH
1878         for libgcc_s.
1879         (TESTS): Make dependent on libmudflap.
1880         (HOOKOBJS): Break up mf-hooks.o into many little hook objects,
1881         compiled from segments of mf-hooks.c.
1882         * mf-hooks.c: Corresponding changes: wrap each function in
1883         #ifdef/#endif.
1884         * Makefile.in: Regenerated.
1885
1886         Heuristics reorganization:
1887         * mf-heuristics.c (__mf_register_ro_sections, __mf_init_heuristics):
1888         Remove these functions.  Update callers.
1889         (__mf_heuristic_check): Incorporate all the various heuristics.
1890         Encode cacheability/retry judgement into trinary return value.
1891         Separate start-end logic into a separate fallback heuristic.  Only
1892         register relevant /proc/self/map segments.
1893         * mf-impl.h: Corresponding changes.
1894         * mf-runtime.c (__mf_check): Reorganize heuristics fallback logic.
1895         (__mf_init): Don't call __mf_init_heuristics.
1896
1897         Tracing cleanup:
1898         * mf-heuristics.c, mf-runtime.c: Use new MUDFLAP_OPTION
1899         "-verbose-trace" to emit all tracing messages other than those of
1900         basic public api.  Eliminate some duplicate/excessive messages.
1901         * mf-runtime.h: Corresponding changes.
1902
1903 2002-08-27  Graydon Hoare  <graydon@redhat.com>
1904
1905         * mf-impl.h (WRAPPER): Change to create linker aliases for __wrap
1906         and __real when compiled with -DPIC.
1907         * mf-hooks.c (WRAPPER): Change all uses of WRAPPER macro slightly.
1908         * Makefile.am (AUTOMAKE_OPTIONS): Fix LD_LIBRARY_PATH for tests.
1909         * Makefile.in: Regenerate.
1910
1911 2002-08-26  Graydon Hoare  <graydon@redhat.com>
1912
1913         * mf-impl.h: New file, private implementation header.
1914         * mf-runtime.h: Reorganize a bit.
1915         (CLAMPSZ): Fix arithmetic.
1916         (__MF_CACHE_MISS_P): Fix arithmetic.
1917         * mf-runtime.c: Reorganize a bit.
1918         (__mf_dynamic): New structure.
1919         (resolve_single_dynamic): New function.
1920         (__mf_resolve_dynamics): New function.
1921         (__mf_init): Initialize dynamic wrappers.
1922         * mf-hooks.c: Macro-ize __real calls.
1923         Clamp various bits of arithmetic.
1924         Add explicit __mf_check call contexts.
1925         * Makefile.am: Add dependencies on mf-impl.h
1926         * Makefile.in: Regenerate.
1927         * configure.in: Comment out shared override.
1928         * configure: Regenerate.
1929
1930 2002-08-22  Graydon Hoare  <graydon@redhat.com>
1931
1932         * mf-runtime.c (__mf_process_opts): Sanity-check free_queue_length.
1933         (__mf_check): Re-inialize and check heuristics before violation.
1934         (__mf_register): Permit updating pure-guess regions.
1935         * mf-hooks.c (__wrap_free): Correct some free queue logic.
1936         (__wrap_dlopen): New wrapper function.
1937         (__wrap_mmap): New wrapper function.
1938         (__wrap_munmap): New wrapper function.
1939         * mf-heuristics.c (__mf_register_ro_sections): Register *all* regions
1940         which are not stack addresses.
1941         (is_stack_address): New function.
1942         (__mf_init_heuristics): Save and restore state, always initialize with
1943         "starting" state.
1944
1945 2002-08-21  Frank Ch. Eigler  <fche@redhat.com>
1946
1947         * mf-hooks.c (MF_VALIDATE_EXTENT): Rewrite to correct off-by-one
1948         error.  Pass location string.
1949         (wrap_strcpy, wrap_strncpy): Remove extra %s in trace strings.
1950         * mf-runtime.c (options): Add lc-mask, lc-shift options.
1951         (__mf_process_opts): Apply some sanity checking for lc-mask.
1952         (__mf_check, __mf_violation): Take new location-string argument.
1953         Update callers to pass NULL if necessary.
1954         (__mf_backtrace): New smart backtracer function.  Calls replace
1955         several ad-hoc blocks elsewhere.
1956         (__mf_describe_object): Remove bad reentrancy test.  Improve
1957         tracing message.
1958         * mf-runtime.h: Corresponding changes.  Public/private markup.
1959         (__MF_CACHE_MISS_P): New macro.
1960
1961 2002-08-20  Graydon Hoare  <graydon@redhat.com>
1962
1963         * mf-runtime.h: New option: stack_bound (heuristic).
1964         Move some macros out of implementation files.
1965         * mf-runtime.c: New option string: -stack-bound.
1966         Unify recursion protection with hooks.
1967         Add more logging.
1968         (__mf_check): Call __mf_heuristic_check.
1969         (__mf_process_opts): Fix "no-" processing.
1970         * mf-heuristics.c (__mf_heuristic_check): New function.
1971         * mf-hooks.c: Much off-by-one fixing, recursion protection.
1972
1973 2002-08-20  Frank Ch. Eigler  <fche@redhat.com>
1974
1975         Option parsing improvements, region splitting bug fixes:
1976         * mf-heuristics.c (__mf_register_ro_sections): Add warned casts.
1977         * mf-runtime.h (heur_proc_map): New libmudflap option.
1978         * mf-runtime.c (__mf_set_default_options): Set it.
1979         (__mf_usage): Print default values/status.
1980         (__mf_process_opts): Support general "no-" option string prefix.
1981         (__mf_init): Print __mf_usage on unknown-option error.
1982         (__mf_register): Print trace message up front.
1983         Correct region splitting logic for case where a subregion disappears.
1984         Correct memory leak.
1985         (__mf_violation): Make even basic message conditional on option.
1986
1987         Build cleanup:
1988         * Makefile.am (TESTS_ENVIRONMENT): Add -no-heur-proc-map.
1989         (clean-local): New target.
1990         (test/*x rules): Add -g CFLAGS.
1991         (CFLAGS): Add -freorder-blocks.
1992         (MFCONFIG_CFLAGS, INCLUDE): Remove unneeded settings.
1993         * Makefile.in: Regenerated.
1994         * Makefile, mf-config.h: Removed files.
1995
1996 2002-08-16  Graydon Hoare  <graydon@redhat.com>
1997
1998         * mf-runtime.c (__mf_insert_new_object): Factor out of
1999         __mf_register.
2000         (__mf_remove_old_object): Factor out of __mf_unregister.
2001         (__mf_register): Handle guessed regions, splitting
2002         guesses when new registrations arrive.
2003         (__mf_unregister): Do not unregister guesses.
2004         * mf-runtime.h: Move convenience macros around,
2005         declare new option fields. Add __MF_TYPE_GUESS.
2006         * mf-hooks.c (__wrap_*alloc): Use crumple zones.
2007         (__wrap_free): Call __real_free for deferred frees.
2008         * Makefile.am: Add more tests, fix dependency.
2009         * Makefile.in: Regenerate.
2010         * test/pass[13..17]-frag.c: New testcases.
2011         * test/fail[13..17]-frag.c: New testcases.
2012
2013 2002-08-15  Graydon Hoare  <graydon@redhat.com>
2014
2015         * mf-heuristics.c: New file.
2016         * mf-runtime.c (options): Add -trace-calls option.
2017         (__mf_init): Call __mf_init_heuristics.
2018
2019 2002-08-14  Graydon Hoare  <graydon@redhat.com>
2020
2021         * Makefile.am (TESTS): Add testsuite support.
2022         * Makefile.in: Regenerate.
2023         * test/mf-driver.c: New file.
2024         * test/buildtest.sh: New file.
2025         * test/passNN-frag.c: New testcases.
2026         * test/failNN-frag.c: New testcases.
2027
2028 2002-08-14  Graydon Hoare  <graydon@redhat.com>
2029
2030         * mf-hooks.c: Change __real_strlen() to __real_strlen()+1 when
2031         verifying non-size-limited string extents.
2032
2033 2002-08-14  Frank Ch. Eigler  <fche@redhat.com>
2034
2035         * mf-hooks.c: Make __wrap string* functions use __real_str[n]len
2036         instead of plain str[n]len for internal checks.
2037         * mf-runtime.c (__mf_violation): Print optional stack traceback.
2038
2039 2002-08-14  Frank Ch. Eigler  <fche@redhat.com>
2040
2041         * mf-hooks.c: Remove #if-0 around hooks that are now ld-wrapped.
2042
2043 2002-08-13  Graydon Hoare  <graydon@redhat.com>
2044
2045         * mf-runtime.c: Rework configuration to operate on
2046         environment variable options rather than #defines
2047         (__mf_violation): Add simple fork-a-gdb violaiton mode.
2048         (__mf_init): Set static __mf_active_p flag on startup,
2049         to inhibit mudflap wrap-based checking during crt0.s.
2050         * mf-runtime.h: Declare options structure.
2051         * mf-hooks.c: New wrappings for mem*, b*, str*
2052         libc functions (temporarily #if 0-ed out).
2053
2054 2002-08-12  Frank Ch. Eigler  <fche@redhat.com>
2055
2056         * Makefile.am, configure.in: New files.
2057         * Makefile.in, Makefile, configure, config.h.in: New generated files.
2058         * stamp-h.in, aclocal.m4: Ditto.
2059
2060 2002-08-08  Frank Ch. Eigler  <fche@redhat.com>
2061
2062         * Makefile: New file.
2063         * mf-config.h: New file: runtime configuration.
2064         * mf-hooks.c: New file: interposed libc functions.
2065         * mf-runtime.c: New file: bulk of runtime.
2066         * mf-runtime.h: New file: public functions.