This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
libc/malloc obstack.h
- From: roland at sourceware dot org
- To: glibc-cvs at sources dot redhat dot com
- Date: 11 Jan 2006 05:42:42 -0000
- Subject: libc/malloc obstack.h
CVSROOT: /cvs/glibc
Module name: libc
Changes by: roland@sources.redhat.com 2006-01-11 05:42:42
Modified files:
malloc : obstack.h
Log message:
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.
Fix portability bugs encountered when porting to the IBM iSeries,
where pointers are 256 bits wide and no integers are that wide.
* malloc/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
All uses changed to:
(__BPTR_ALIGN, __PTR_ALIGN): New macros.
(struct _obstack_chunk.temp): Change from int to a union
of pointer and int. All uses changed.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/malloc/obstack.h.diff?cvsroot=glibc&r1=1.21&r2=1.22