From: John David Anglin Date: Wed, 3 Jul 2024 18:34:47 +0000 (-0400) Subject: Revert "Delete MALLOC_ABI_ALIGNMENT define from pa32-linux.h" X-Git-Tag: basepoints/gcc-16~7726 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad2206d576603c94b0c1778c84b7f43fbf8a13b4;p=thirdparty%2Fgcc.git Revert "Delete MALLOC_ABI_ALIGNMENT define from pa32-linux.h" This reverts commit 0ee3266b3dec4d984d43c79e2b3e649256e3eaaa. --- diff --git a/gcc/config/pa/pa32-linux.h b/gcc/config/pa/pa32-linux.h index 63abba26deb..187ae62b0f8 100644 --- a/gcc/config/pa/pa32-linux.h +++ b/gcc/config/pa/pa32-linux.h @@ -68,6 +68,11 @@ call_ ## FUNC (void) \ #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE BITS_PER_WORD +/* POSIX types such as pthread_mutex_t require 16-byte alignment to retain + layout compatibility with the original linux thread implementation. */ +#undef MALLOC_ABI_ALIGNMENT +#define MALLOC_ABI_ALIGNMENT 128 + /* Place jump tables in the text section except when generating non-PIC code. When generating non-PIC code, the relocations needed to load the address of the jump table result in a text label in the final executable