aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2024-07-03 14:34:47 -0400
committerJohn David Anglin <danglin@gcc.gnu.org>2024-07-03 14:36:26 -0400
commit6e1fb1f9db3b722598a7332b92f4470a7bbc9c95 (patch)
tree4f63441e0d90bdc9e87c5be9fd8318f8403620a1
parentacde9f81da39450b90e12ccf937d35aa8da1b478 (diff)
downloadgcc-6e1fb1f9db3b722598a7332b92f4470a7bbc9c95.zip
gcc-6e1fb1f9db3b722598a7332b92f4470a7bbc9c95.tar.gz
gcc-6e1fb1f9db3b722598a7332b92f4470a7bbc9c95.tar.bz2
Revert "Delete MALLOC_ABI_ALIGNMENT define from pa32-linux.h"
This reverts commit 0ee3266b3dec4d984d43c79e2b3e649256e3eaaa.
-rw-r--r--gcc/config/pa/pa32-linux.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/pa/pa32-linux.h b/gcc/config/pa/pa32-linux.h
index 63abba2..187ae62 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