3 * configure.in: Requires autoconf 2.12.1 or higher.
4 * configure: Regenerated.
8 * mcalloc.c: #include <sys/types.h> before <string.h>. HP/UX 11.0
13 * mmalloc.h: Include sys/types.h and stdio.h #ifndef HAVE_STDDEF_H.
14 * mmprivate.h: Do not handle HAVE_STDDEF_H here, since we include
19 * Makefile.in: Get SHELL from configure.
20 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
25 * mmalloc/detach.c: Do not include fcntl.h.
29 * mrealloc.c (realloc): Store result in local variable before
30 returning it. Makes debugging much easier at negligible cost.
34 * mvalloc.c (cache_pagesize): Rename from pagesize, so that if we
35 are building mm.o, it does not conflict with the variable of the
36 same name in mmap-sup.c.
40 * Makefile.in (mm.o): New target that combines all the functions
41 into a single object module. This avoids client programs picking
42 up part of the allocation routines from mmalloc and part from libc,
43 which can lead to undefined behavior.
45 (TARGETOBJS): Define to be either the individual objects or the
46 single combined object.
47 (TARGETLIB): Create the archive using TARGETOBJS.
48 * mm.c: New file that simply #includes the other source C files.
52 * Makefile.in (maintainer-clean): Depend on distclean, remove
57 * mmcheck.c (checkhdr): Add prototype.
59 (mmalloc_check): Ditto.
60 (mrealloc_check): Ditto.
61 * mmtrace.c (tr_break): Ditto.
63 (tr_mallochook): Ditto.
64 (tr_reallochook): Ditto.
65 * sbrk-sup.c (sbrk_morecore): Ditto.
69 * configure configure.in: Don't default CC to cc. It causes problems
70 when starting a compile in the mmalloc directory.
74 * mmalloc.h (mmalloc_findbase): Add prototype.
78 * mmap-sup.c (mmalloc_findbase): Change to not require /dev/zero
79 if MMAP_ANONYMOUS is available.
83 * detach.c (mmalloc_detach): Fix bug in computation of negative
85 * mmcheck.c (mmcheckf): Renamed from mmcheck and new FORCE argument
86 added. Replaced hack that always allowed checking routines to be
87 installed and enforce restriction that they have to be installed
88 prior to allocating any memory on the used heap or the FORCE argument
90 (mmcheck): New function that calls mmcheckf with FORCE set to zero,
91 for backwards compatibility.
92 * mmalloc.c (malloc): Store result in local variable before
93 returning it. Makes debugging much easier at negligible cost.
94 * mmalloc.h (mmcheckf): Declare.
95 * attach.c (reuse): Call mmcheckf rather than mmcheck.
96 * mmap-sup.c (__mmalloc_mmap_morecore): Improve to allow mmap
97 to select a base mapping address if none is otherwise given.
98 (mmalloc_findbase): New function that user can call to find
99 an available mapping address of a given size.
103 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
104 Use autoconf-set values.
106 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
107 * configure: Rebuilt.
112 * Makefile.in (install-info): Apply patch to install
113 mmalloc.info from srcdir if not found in build dir.
118 * configure.in: Use AC_CHECK_TOOL to find AR & RANLIB.
119 * configure: Regenerate with autoconf.
120 * Makefile.in: Use AR set by configure substitution.
124 * mmalloc.h (mmtrace): Add prototype.
129 * mvalloc.c (valloc): new.
130 * mmemalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
132 (memalign): don't put the node on the _aligned_blocks list more
137 * Makefile.in (OFILES): Make objects depend upon Makefile,
138 since Makefile sets DEFS which can definitely affect how
139 objects are to be compiled.
143 * configure.in (AC_CHECK_HEADERS): add limits.h.
144 (AC_HEADER_STDC): remove.
146 * mmalloc.h: document necessity of defining size_t before
149 * mmprivate.h: add check for limits.h, remove definition of
154 * configure.in: AC_CHECK_HEADERS, not AC_CHECK_HEADER.
158 * configure.in: add check for stddef.h
159 * mmalloc.h: include stddef.h if HAVE_STDDEF_H is defined.
163 * configure.in: add AC_HEADER_STDC check.
165 * mmalloc.h: check if STDC_HEADERS instead of __STDC__.
167 * mmprivate.h: check if STDC_HEADERS instead of __STDC__.
171 * mmprivate.h: Remove declarations (PTR, etc) that are already
172 provided by ansidecl.h, include mmalloc.h earlier in file.
176 * Makefile.in (BISON): Remove macro.
180 * Makefile.in (maintainer-clean): New target, synonym for
181 realclean. Add GNU standard maintainer-clean echos.
185 * Update all FSF addresses except those in COPYING* files
186 and shar archive of original FSF files.
190 * Makefile.in (distclean, realclean): Remove config.cache and
195 * Makefile.in (Makefile): Added config.status to dependency list.
196 (config.status): New target.
200 * mmap-sup.c: Removed munmap prototype. Some systems have a
201 slightly different prototype.
205 * Makefile.in, configure.in: Converted to use autoconf.
206 * configure: New file, generated with autoconf 2.3.
207 * config/{mh-go32, mh-irix, mh-ncr3000, mh-sunos4,
212 * Makefile.in (install-info): Name destination file correctly,
213 rather than using undefined shell variable.
217 * mmprivate.h: New file, was mmalloc.h.
218 (mmalloc.h): Include.
219 * mmalloc.h: Remove all but declarations of mmalloc functions.
220 (ansidecl.h): Include.
221 * attach.c, et al: Include mmprivate.h instead of mmalloc.h.
225 * configure.in: Change i[34]86 to i[345]86.
229 * Makefile.in (distclean): Separate from realclean.
230 (realclean): Remove mmalloc.info.
234 * config/go32.mh: New file
235 * configure.in (host==go32): Use new fragment.
239 * mmtrace.c (tr_freehook, tr_mallochook, tr_reallochook):
240 Cast addresses put out via fprintf to unsigned long and use %lx.
244 * COPYING.LIB: New file (standard version 2 LGPL, as already cited
245 by the source files).
249 * Makefile.in (info dvi install-info): Actually make the manual.
253 * mmalloc.texi: Fix typo ("for for" -> "for").
257 * test1.c: New file which tests for bug fixed below.
258 * Makefile.in (check): Put in commands to run it (but commented out
259 because it won't work for Canadian cross).
261 * mmalloc.c (mmalloc): When extending a free block at the end of the
262 heap, check whether which block is at the end changed.
264 * Makefile.in (TAGS): make work when srcdir != objdir.
268 * attach.c, detach.c: Include <sys/types.h> before <fcntl.h>.
272 * Makefile.in: Add mostlyclean and realclean targets.
274 Wed Mar 24 01:58:12 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
276 * Makefile.in: add dvi and installcheck targets
278 Fri Mar 12 18:35:43 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
280 * configure.in: recognize *-*-solaris2* instead of *-*-solaris* (a
281 number of people want to call SunOS 4.1.2 "solaris1.0" and get it right)
285 * Makefile.in (distclean): Add.
289 * Makefile.in, attach.c, detach.c, keys.c, mmap-sup.c, mmtrace.c,
290 sbrk-sup.c: Use GNU Library General Public License, like other
295 * configure.in: Regularize list of host configs.
299 * mmalloc.texi: Add missing doubled @. Bugfix by Paul Eggert.
301 Fri Oct 23 01:50:52 1992 Stu Grossman (grossman at cygnus.com)
303 * configure.in: Handle solaris same as sysv4.
305 Thu Oct 1 23:34:20 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
307 * configure.in: use cpu-vendor-os triple instead of nested cases
311 * sbrk-sup.c (__mmalloc_brk_init): Ensure base of sbrk'd region
316 * Makefile.in: always create installation directories.
320 * mrealloc.c: Minor code format style changes for consistency.
324 * attach.c, detach.c, mcalloc.c, mmalloc.c, mmtrace.c, mrealloc.c,
325 sbrk-sup.c: Remove "(void)" casts from function calls where the
326 return value is ignored, in accordance with GNU coding standards.
330 * mmalloc.h (struct mdesc): Add FIXME comments to point out the
331 need to save some data on a per-process basis for mapped regions
333 * attach.c (reuse): Update the morecore field for reused mapped
334 regions to be correct for the current process.
336 Mon Jun 29 10:45:25 1992 Fred Fish (fnf at cygnus.com)
342 * mmalloc.h (struct mdesc): Change member "errno" to
343 "saved_errno" to avoid possible conflict with ANSI C environments,
344 where it is allowed to be a macro.
345 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
346 it is broken on ncr 3000's.
347 * config/mh-ncr3000 (RANLIB): Use RANLIB=true.
349 Fri Jun 12 21:34:21 1992 John Gilmore (gnu at cygnus.com)
351 * mmap-sup.c: Avoid ANSI C "empty translation unit" idiocy.
355 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL using
360 * sbrk-sup.c (sbrk_morecore): Fix sbrk() error return test.
364 * Makefile.in: rework CFLAGS so that they can be passed from the
365 command line. remove MINUS_G. Default CFLAGS to -g.
370 * attach.c, mcalloc.c, mfree.c, mmalloc.c, mmalloc.h, mmap-sup.c,
371 mmcheck.c, mtrace.c, mrealloc.c, mvalloc.c, sbrk-sup.c: Lint.
375 * configure.in: Recognize new ncr3000 config.
376 * config/mh-ncr3000: New config file.
377 * Makefile.in (MINUS_G): Add macro and default to -g.
381 * mmalloc.c: Minor fix to comment.
382 * mmalloc.texi: Update to match actual implementation
383 * mmalloc.h (morecore): Change prototype's 2nd arg to int.
387 * mmalloc.h (size_t, CHAR_BIT): Only redefine if not already
392 * mmalloc.h: Remove include of <stdlib.h>. This also gets rid
393 of the ugly kludge installed on 1-Apr-92.
395 Mon Apr 6 16:33:37 1992 Stu Grossman (grossman at cygnus.com)
397 * detach.c (mmalloc_detach): Arg should be PTR, not void *.
398 Fixes complaints from non __STDC__ systems.
402 * mcalloc.c, mfree.c, mmalloc.c, mrealloc.c: Minor comment
404 * mmalloc.h: Add ugly kludge to band-aid over problems with
405 bogus vendor <stdlib.h> files.
407 Sun Mar 29 12:41:31 1992 John Gilmore (gnu at cygnus.com)
409 * attach.c, mmalloc.c, mmcheck.c: Lint.
413 * attach.c (reuse): Explicitly discard return value of mmcheck.
414 * mmcheck.c (mmcheck): Document requirements for installing
415 corruption checking hooks and set up to enforce restrictions.
419 * config/mh-irix4: new file.
421 * Makefile.in: added standard targets, fixed install directories.
425 * Initial release, incorporated into gdb.