2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
authorroland <roland>
Wed, 11 Jan 2006 05:42:45 +0000 (05:42 +0000)
committerroland <roland>
Wed, 11 Jan 2006 05:42:45 +0000 (05:42 +0000)
commitc81bd7ac01229977c4ad2f063bd3f6d4afddb7f7
tree16889a656bcc298e3250bd40dd8f02893f2f5ce0
parent4fbd620f228b21a345d521126f74c7802eab5add
2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>

* malloc/obstack.c: Fix old comments.  Update FSF snail mail address.
* malloc/obstack.h: Likewise.
Fix portability bugs encountered when porting to Itanium.
* malloc/obstack.h (obstack_empty_p, obstack_finish): Do not
assume that the "contents" member is suitably aligned.  It is
not, for some hosts and alignments: e.g., Itanium, long-double.
* malloc/obstack.c (_obstack_begin, _obstack_begin_1,
_obstack_newchunk): Likewise.
* malloc/obstack.c: Include <stddef.h>, for size_t.
Include <inttypes.h>, <stdint.h> if needed and available.
(DEFAULT_ALIGNMENT): Now an enum constant, not a macro.
Use C89 offsetof rather than K&R trick.
Use the maximum alignment of uintmax_t, long double, void *
rather than the alignment of double.
(union fooround): Use uintmax_t, long double, void * members
rather than just long and double.
* malloc/obstack.c (print_and_abort) [!_LIBC]:
Call fprintf (stderr, ...), not __fxprintf (NULL, ...).
[_LIBC && USE_IN_LIBIO]: Don't include <wchar.h>; no longer needed.
malloc/obstack.c