Commit 1e75a380 by John David Anglin

pa.h (MALLOC_ABI_ALIGNMENT): Set 32-bit alignment default to 64 bits.

	* config/pa.h (MALLOC_ABI_ALIGNMENT): Set 32-bit alignment default to
	64 bits.
	* config/pa/pa32-linux.h (MALLOC_ABI_ALIGNMENT): Set alignment to
	128 bits.

From-SVN: r256773
parent 08afc47d
2018-01-16 John David Anglin <danglin@gcc.gnu.org>
* config/pa.h (MALLOC_ABI_ALIGNMENT): Set 32-bit alignment default to
64 bits.
* config/pa/pa32-linux.h (MALLOC_ABI_ALIGNMENT): Set alignment to
128 bits.
* config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Cleanup type and mode
variables.
......
......@@ -307,7 +307,7 @@ typedef struct GTY(()) machine_function
POSIX types such as pthread_mutex_t require 16-byte alignment. Again,
this is non critical since 16-byte alignment is no longer needed for
atomic operations. */
#define MALLOC_ABI_ALIGNMENT (TARGET_SOM ? 64 : 128)
#define MALLOC_ABI_ALIGNMENT (TARGET_64BIT ? 128 : 64)
/* Make arrays of chars word-aligned for the same reasons. */
#define DATA_ALIGNMENT(TYPE, ALIGN) \
......
......@@ -62,3 +62,8 @@ 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment