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