import gdb-2000-02-04 snapshot
[external/binutils.git] / mmalloc / ChangeLog
1 2000-02-04  Kevin Buettner  (kevinb@cygnus.com)
2
3         * acinclude.m4, aclocal.m4: New files.
4         * configure.in (sbrk): Use BFD_NEED_DECLARATION to test for
5         presence of a suitable declaration in the system headers.
6         * configure: Regenerated.
7         * sbrk-sup.c (sbrk): Ifdef'd with NEED_DECLARATION_SBRK.
8
9 1999-01-04  Jason Molenda  (jsm@bugshack.cygnus.com)
10
11         * configure.in: Requires autoconf 2.12.1 or higher.
12         * configure: Regenerated.
13
14 1998-07-24  Jim Blandy  <jimb@zwingli.cygnus.com>
15
16         * mcalloc.c: #include <sys/types.h> before <string.h>.  HP/UX 11.0
17         needs this.
18
19 Thu Apr 23 12:19:22 1998  Philippe De Muyter  <phdm@macqel.be>
20
21         * mmalloc.h: Include sys/types.h and stdio.h #ifndef HAVE_STDDEF_H.
22         * mmprivate.h: Do not handle HAVE_STDDEF_H here, since we include
23         mmalloc.h.
24
25 Tue Mar 24 17:07:02 1998  Stu Grossman  <grossman@bhuna.cygnus.co.uk>
26
27         * Makefile.in:  Get SHELL from configure.
28         * configure:  Regenerate with autoconf 2.12.1 to fix shell issues for
29         NT native builds.
30
31 Mon Feb  7 13:06:45 1997  Philippe De Muyter  <phdm@macqel.be>
32
33         * mmalloc/detach.c: Do not include fcntl.h.
34
35 Thu Aug 28 13:15:07 1997  Andrew Cagney  <cagney@b1.cygnus.com>
36
37         * mrealloc.c (realloc): Store result in local variable before
38         returning it.  Makes debugging much easier at negligible cost.
39
40 Tue Feb  4 16:30:59 1997  Ian Lance Taylor  <ian@cygnus.com>
41
42         * mvalloc.c (cache_pagesize): Rename from pagesize, so that if we
43         are building mm.o, it does not conflict with the variable of the
44         same name in mmap-sup.c.
45
46 Sat Dec 28 12:48:32 1996  Fred Fish  <fnf@cygnus.com>
47
48         * Makefile.in (mm.o): New target that combines all the functions
49         into a single object module.  This avoids client programs picking
50         up part of the allocation routines from mmalloc and part from libc,
51         which can lead to undefined behavior.
52         (CFILES): Add mm.c
53         (TARGETOBJS): Define to be either the individual objects or the
54         single combined object.
55         (TARGETLIB): Create the archive using TARGETOBJS.
56         * mm.c: New file that simply #includes the other source C files.
57         
58 Thu Oct  3 15:45:23 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
59
60         * Makefile.in (maintainer-clean): Depend on distclean, remove
61         duplication.
62
63 Tue Sep 10 17:52:06 1996  Fred Fish  <fnf@cygnus.com>
64
65         * mmcheck.c (checkhdr): Add prototype.
66         (mfree_check): Ditto.
67         (mmalloc_check): Ditto.
68         (mrealloc_check): Ditto.
69         * mmtrace.c (tr_break): Ditto.
70         (tr_freehook): Ditto.
71         (tr_mallochook): Ditto.
72         (tr_reallochook): Ditto.
73         * sbrk-sup.c (sbrk_morecore): Ditto.
74
75 Wed Sep  4 18:02:45 1996  Stu Grossman  (grossman@critters.cygnus.com)
76
77         * configure configure.in:  Don't default CC to cc.  It causes problems
78         when starting a compile in the mmalloc directory.
79
80 Wed Jul 24 00:53:34 1996  Fred Fish  <fnf@cygnus.com>
81
82         * mmalloc.h (mmalloc_findbase): Add prototype.
83
84 Fri Jul 12 18:35:34 1996  Fred Fish  <fnf@cygnus.com>
85
86         * mmap-sup.c (mmalloc_findbase): Change to not require /dev/zero
87         if MMAP_ANONYMOUS is available.
88
89 Wed Jul 10 23:53:42 1996  Fred Fish  <fnf@cygnus.com>
90
91         * detach.c (mmalloc_detach): Fix bug in computation of negative
92         brk value.
93         * mmcheck.c (mmcheckf): Renamed from mmcheck and new FORCE argument
94         added.  Replaced hack that always allowed checking routines to be
95         installed and enforce restriction that they have to be installed
96         prior to allocating any memory on the used heap or the FORCE argument
97         has to be non-NULL.
98         (mmcheck): New function that calls mmcheckf with FORCE set to zero,
99         for backwards compatibility.
100         * mmalloc.c (malloc): Store result in local variable before
101         returning it.  Makes debugging much easier at negligible cost.
102         * mmalloc.h (mmcheckf): Declare.
103         * attach.c (reuse): Call mmcheckf rather than mmcheck.
104         * mmap-sup.c (__mmalloc_mmap_morecore): Improve to allow mmap
105         to select a base mapping address if none is otherwise given.
106         (mmalloc_findbase): New function that user can call to find
107         an available mapping address of a given size.
108         
109 Tue Jun 25 22:54:06 1996  Jason Molenda  (crash@godzilla.cygnus.co.jp)
110
111         * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
112         Use autoconf-set values.
113         (docdir): Removed.
114         * configure.in (AC_PREREQ): autoconf 2.5 or higher.
115         * configure: Rebuilt.
116
117 Tue May 28 13:51:22 1996  Fred Fish  <fnf@cygnus.com>
118
119         From: Thomas A Peterson <tap@src.honeywell.com>
120         * Makefile.in (install-info): Apply patch to install
121         mmalloc.info from srcdir if not found in build dir.
122
123 Sun Apr  7 20:55:30 1996  Fred Fish  <fnf@rtl.cygnus.com>
124
125         From: Miles Bader  <miles@gnu.ai.mit.edu>
126         * configure.in: Use AC_CHECK_TOOL to find AR & RANLIB.
127         * configure: Regenerate with autoconf.
128         * Makefile.in: Use AR set by configure substitution.
129         
130 Fri Mar 29 09:57:36 1996  Fred Fish  <fnf@cygnus.com>
131
132         * mmalloc.h (mmtrace): Add prototype.
133
134 Sat Feb  3 12:41:00 1996  Fred Fish  <fnf@cygnus.com>
135
136         From H.J. Lu (hjl@gnu.ai.mit.edu):
137         * mvalloc.c (valloc): new.
138         * mmemalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
139         if possible.
140         (memalign): don't put the node on the _aligned_blocks list more
141         than once.
142
143 Mon Nov 20 12:04:32 1995  Fred Fish  <fnf@cygnus.com>
144
145         * Makefile.in (OFILES): Make objects depend upon Makefile,
146         since Makefile sets DEFS which can definitely affect how
147         objects are to be compiled.
148
149 Mon Nov  6 14:12:13 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
150
151         * configure.in (AC_CHECK_HEADERS): add limits.h.
152         (AC_HEADER_STDC): remove.
153
154         * mmalloc.h: document necessity of defining size_t before
155         including mmalloc.h.
156
157         * mmprivate.h: add check for limits.h, remove definition of
158         NULL and size_t.
159
160 Sun Nov  5 00:27:36 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
161
162         * configure.in: AC_CHECK_HEADERS, not AC_CHECK_HEADER.
163
164 Sun Nov  5 00:14:13 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
165
166         * configure.in: add check for stddef.h
167         * mmalloc.h: include stddef.h if HAVE_STDDEF_H is defined.
168
169 Sat Nov  4 19:10:13 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
170
171         * configure.in: add AC_HEADER_STDC check.
172
173         * mmalloc.h: check if STDC_HEADERS instead of __STDC__.
174
175         * mmprivate.h: check if STDC_HEADERS instead of __STDC__.
176
177 Tue Oct 24 13:17:44 1995  Stan Shebs  <shebs@andros.cygnus.com>
178
179         * mmprivate.h: Remove declarations (PTR, etc) that are already
180         provided by ansidecl.h, include mmalloc.h earlier in file.
181
182 Tue Oct 10 11:04:47 1995  Fred Fish  <fnf@cygnus.com>
183
184         * Makefile.in (BISON):  Remove macro.
185
186 Wed Sep 20 12:51:13 1995  Ian Lance Taylor  <ian@cygnus.com>
187
188         * Makefile.in (maintainer-clean): New target, synonym for
189         realclean.  Add GNU standard maintainer-clean echos.
190
191 Thu Aug  3 10:45:37 1995  Fred Fish  <fnf@cygnus.com>
192
193         * Update all FSF addresses except those in COPYING* files
194         and shar archive of original FSF files.
195
196 Mon Jun 12 12:11:57 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
197
198         * Makefile.in (distclean, realclean): Remove config.cache and
199           config.log.
200
201 Wed May 17 17:47:44 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
202
203         * Makefile.in (Makefile): Added config.status to dependency list.
204           (config.status): New target.
205
206 Fri May  5 15:17:53 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
207
208         * mmap-sup.c: Removed munmap prototype.  Some systems have a
209           slightly different prototype.
210
211 Wed May  3 17:18:13 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
212
213         * Makefile.in, configure.in: Converted to use autoconf.
214         * configure: New file, generated with autoconf 2.3.
215         * config/{mh-go32, mh-irix, mh-ncr3000, mh-sunos4, 
216           mh-sysv4}: Removed.
217
218 Thu Nov  3 23:55:21 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
219
220         * Makefile.in (install-info): Name destination file correctly,
221         rather than using undefined shell variable.
222
223 Fri Oct 28 16:46:58 1994  Stan Shebs  (shebs@andros.cygnus.com)
224
225         * mmprivate.h: New file, was mmalloc.h.
226         (mmalloc.h): Include.
227         * mmalloc.h: Remove all but declarations of mmalloc functions.
228         (ansidecl.h): Include.
229         * attach.c, et al: Include mmprivate.h instead of mmalloc.h.
230
231 Wed Aug 24 12:55:33 1994  Ian Lance Taylor  (ian@sanguine.cygnus.com)
232
233         * configure.in: Change i[34]86 to i[345]86.
234
235 Mon Aug 22 11:36:40 1994  Stan Shebs  (shebs@andros.cygnus.com)
236
237         * Makefile.in (distclean): Separate from realclean.
238         (realclean): Remove mmalloc.info.
239
240 Fri May  6 13:04:25 1994  Steve Chamberlain  (sac@cygnus.com)
241
242         * config/go32.mh: New file
243         * configure.in (host==go32):  Use new fragment.
244
245 Tue Feb  8 00:32:28 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
246
247         * mmtrace.c (tr_freehook, tr_mallochook, tr_reallochook):
248         Cast addresses put out via fprintf to unsigned long and use %lx.
249
250 Tue Nov 16 20:33:17 1993  Jim Kingdon  (kingdon@deneb.cygnus.com)
251
252         * COPYING.LIB: New file (standard version 2 LGPL, as already cited
253         by the source files).
254
255 Fri Nov  5 11:47:33 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
256
257         * Makefile.in (info dvi install-info): Actually make the manual.
258
259 Mon Nov  1 14:20:25 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
260
261         * mmalloc.texi: Fix typo ("for for" -> "for").
262
263 Fri Jul 16 15:27:08 1993  Jim Kingdon  (kingdon@rtl.cygnus.com)
264
265         * test1.c: New file which tests for bug fixed below.
266         * Makefile.in (check): Put in commands to run it (but commented out
267         because it won't work for Canadian cross).
268
269         * mmalloc.c (mmalloc): When extending a free block at the end of the
270         heap, check whether which block is at the end changed.
271
272         * Makefile.in (TAGS): make work when srcdir != objdir.
273
274 Thu Jul 15 07:56:47 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
275
276         * attach.c, detach.c: Include <sys/types.h> before <fcntl.h>.
277
278 Wed Jun 30 11:00:53 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
279
280         * Makefile.in: Add mostlyclean and realclean targets.
281
282 Wed Mar 24 01:58:12 1993  david d `zoo' zuhn  (zoo at poseidon.cygnus.com)
283
284         * Makefile.in: add dvi and installcheck targets
285
286 Fri Mar 12 18:35:43 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
287
288         * configure.in: recognize *-*-solaris2* instead of *-*-solaris* (a
289         number of people want to call SunOS 4.1.2 "solaris1.0" and get it right)
290
291 Mon Feb 22 18:08:53 1993  John Gilmore  (gnu@cygnus.com)
292
293         * Makefile.in (distclean):  Add.
294
295 Tue Feb 16 08:09:15 1993  Fred Fish  (fnf@cygnus.com)
296
297         * Makefile.in, attach.c, detach.c, keys.c, mmap-sup.c, mmtrace.c,
298         sbrk-sup.c:  Use GNU Library General Public License, like other
299         files.
300
301 Wed Nov 18 19:18:59 1992  John Gilmore  (gnu@cygnus.com)
302
303         * configure.in:  Regularize list of host configs.
304
305 Fri Oct 30 00:59:46 1992  John Gilmore  (gnu@cygnus.com)
306
307         * mmalloc.texi:  Add missing doubled @.  Bugfix by Paul Eggert.
308
309 Fri Oct 23 01:50:52 1992  Stu Grossman  (grossman at cygnus.com)
310
311         * configure.in:  Handle solaris same as sysv4.
312
313 Thu Oct  1 23:34:20 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
314
315         * configure.in: use cpu-vendor-os triple instead of nested cases
316
317 Sun Aug 23 11:09:46 1992  Fred Fish  (fnf@cygnus.com)
318
319         * sbrk-sup.c (__mmalloc_brk_init):  Ensure base of sbrk'd region
320         is aligned.  Bug reported by Andrew Heybey (ath@lcs.mit.edu).
321
322 Wed Aug 19 14:49:23 1992  Ian Lance Taylor  (ian@cygnus.com)
323
324         * Makefile.in: always create installation directories.
325
326 Mon Jul 20 21:15:44 1992  Fred Fish  (fnf@cygnus.com)
327
328         * mrealloc.c:  Minor code format style changes for consistency.
329
330 Fri Jul  3 20:25:30 1992  Fred Fish  (fnf@cygnus.com)
331
332         * attach.c, detach.c, mcalloc.c, mmalloc.c, mmtrace.c, mrealloc.c,
333         sbrk-sup.c:  Remove "(void)" casts from function calls where the
334         return value is ignored, in accordance with GNU coding standards.
335
336 Tue Jun 30 16:44:41 1992  Fred Fish  (fnf@cygnus.com)
337
338         * mmalloc.h (struct mdesc):  Add FIXME comments to point out the
339         need to save some data on a per-process basis for mapped regions
340         that are shared.
341         * attach.c (reuse):  Update the morecore field for reused mapped
342         regions to be correct for the current process.
343
344 Mon Jun 29 10:45:25 1992  Fred Fish  (fnf at cygnus.com)
345
346         * mmtrace.c:  Lint.
347
348 Mon Jun 15 12:20:16 1992  Fred Fish  (fnf@cygnus.com)
349
350         * mmalloc.h (struct mdesc):  Change member "errno" to
351         "saved_errno" to avoid possible conflict with ANSI C environments,
352         where it is allowed to be a macro.
353         * config/mh-ncr3000 (INSTALL):  Don't use /usr/ucb/install,
354         it is broken on ncr 3000's.
355         * config/mh-ncr3000 (RANLIB):  Use RANLIB=true.
356
357 Fri Jun 12 21:34:21 1992  John Gilmore  (gnu at cygnus.com)
358
359         * mmap-sup.c:  Avoid ANSI C "empty translation unit" idiocy.
360
361 Tue Jun  9 17:29:04 1992  Fred Fish  (fnf@cygnus.com)
362
363         * config/{mh-ncr3000, mh-sysv4}:  Add definition for INSTALL using
364         /usr/ucb/install.
365
366 Thu Apr 30 22:36:31 1992  Fred Fish  (fnf@cygnus.com)
367
368         * sbrk-sup.c (sbrk_morecore):  Fix sbrk() error return test.
369
370 Mon Apr 20 21:03:30 1992  K. Richard Pixley  (rich@cygnus.com)
371
372         * Makefile.in: rework CFLAGS so that they can be passed from the
373           command line.  remove MINUS_G.  Default CFLAGS to -g.
374
375 Thu Apr 16 20:00:21 1992  Fred Fish  (fnf@cygnus.com)
376
377         * TODO:  New file.
378         * attach.c, mcalloc.c, mfree.c, mmalloc.c, mmalloc.h, mmap-sup.c,
379         mmcheck.c, mtrace.c, mrealloc.c, mvalloc.c, sbrk-sup.c:  Lint.
380
381 Fri Apr 10 22:59:17 1992  Fred Fish  (fnf@cygnus.com)
382
383         * configure.in:  Recognize new ncr3000 config.
384         * config/mh-ncr3000:  New config file.
385         * Makefile.in (MINUS_G):  Add macro and default to -g.
386
387 Wed Apr  8 09:34:53 1992  Fred Fish  (fnf@cygnus.com)
388
389         * mmalloc.c:  Minor fix to comment.
390         * mmalloc.texi:  Update to match actual implementation
391         * mmalloc.h (morecore):  Change prototype's 2nd arg to int.
392
393 Tue Apr  7 22:16:09 1992  Fred Fish  (fnf@cygnus.com)
394
395         * mmalloc.h (size_t, CHAR_BIT):  Only redefine if not already
396         defined.
397
398 Mon Apr  6 20:49:33 1992  Fred Fish  (fnf@cygnus.com)
399
400         * mmalloc.h:  Remove include of <stdlib.h>.  This also gets rid
401         of the ugly kludge installed on 1-Apr-92.
402
403 Mon Apr  6 16:33:37 1992  Stu Grossman  (grossman at cygnus.com)
404
405         * detach.c (mmalloc_detach):  Arg should be PTR, not void *.
406         Fixes complaints from non __STDC__ systems.
407
408 Wed Apr  1 11:47:02 1992  Fred Fish  (fnf@cygnus.com)
409
410         * mcalloc.c, mfree.c, mmalloc.c, mrealloc.c:  Minor comment
411         change.
412         * mmalloc.h:  Add ugly kludge to band-aid over problems with
413         bogus vendor <stdlib.h> files.
414
415 Sun Mar 29 12:41:31 1992  John Gilmore  (gnu at cygnus.com)
416
417         * attach.c, mmalloc.c, mmcheck.c:  Lint.
418
419 Thu Mar 26 17:06:04 1992  Fred Fish  (fnf@cygnus.com)
420
421         * attach.c (reuse):  Explicitly discard return value of mmcheck.
422         * mmcheck.c (mmcheck):  Document requirements for installing
423         corruption checking hooks and set up to enforce restrictions.
424
425 Tue Mar 24 23:41:10 1992  K. Richard Pixley  (rich@cygnus.com)
426
427         * config/mh-irix4: new file.
428
429         * Makefile.in: added standard targets, fixed install directories.
430
431 Sat Mar 14 17:34:59 1992  Fred Fish  (fnf@cygnus.com)
432
433         * Initial release, incorporated into gdb.
434
435