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