aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-04-26 00:07:06 +0000
committerUlrich Drepper <drepper@redhat.com>2001-04-26 00:07:06 +0000
commitc3fa6e3dc7db4a926f65be9855a077da9babd5b6 (patch)
tree102337a346f9bb4db77adeed311a7471661414ee /malloc
parente0ea35832e9039a89809102688e57a1040587b87 (diff)
downloadglibc-c3fa6e3dc7db4a926f65be9855a077da9babd5b6.tar
glibc-c3fa6e3dc7db4a926f65be9855a077da9babd5b6.tar.gz
glibc-c3fa6e3dc7db4a926f65be9855a077da9babd5b6.tar.bz2
glibc-c3fa6e3dc7db4a926f65be9855a077da9babd5b6.zip
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 37249b0c7a..a9541b9630 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))