diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-04-26 00:07:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-04-26 00:07:06 +0000 |
commit | c3fa6e3dc7db4a926f65be9855a077da9babd5b6 (patch) | |
tree | 102337a346f9bb4db77adeed311a7471661414ee /malloc | |
parent | e0ea35832e9039a89809102688e57a1040587b87 (diff) | |
download | glibc-c3fa6e3dc7db4a926f65be9855a077da9babd5b6.zip glibc-c3fa6e3dc7db4a926f65be9855a077da9babd5b6.tar.gz glibc-c3fa6e3dc7db4a926f65be9855a077da9babd5b6.tar.bz2 |
Update.
2001-04-25 Ulrich Drepper <drepper@redhat.com>
* malloc/malloc.c: Allow MALLOC_ALIGNMENT to be defined on the
compiler command line.
* sysdeps/hppa/Makefile: Add -DMALLOC_ALIGNMENT=16 to compiler
command line for malloc.c.
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/malloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 37249b0..a9541b9 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -1292,7 +1292,10 @@ static void free_atfork(); /* sizes, alignments */ #define SIZE_SZ (sizeof(INTERNAL_SIZE_T)) -#define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ) +/* Allow the default to be overwritten on the compiler command line. */ +#ifndef MALLOC_ALIGNMENT +# define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ) +#endif #define MALLOC_ALIGN_MASK (MALLOC_ALIGNMENT - 1) #define MINSIZE (sizeof(struct malloc_chunk)) |