From e10dbae3dad0ac5269685620caa6f2698b00d669 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Thu, 2 Nov 2017 15:12:51 +0000 Subject: [PATCH] Define MALLOC_ABI_ALIGNMENT The AArch64 backend currently doesn't set MALLOC_ABI_ALIGNMENT, so add this to enable alignment optimizations on malloc pointers. Use the same value as STACK_BOUNDARY and BIGGEST_ALIGNMENT. gcc/ * config/aarch64/aarch64.h (MALLOC_ABI_ALIGNMENT): New define. From-SVN: r254348 --- gcc/ChangeLog | 4 ++++ gcc/config/aarch64/aarch64.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 12d55f8c7a1..0af62d17265 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-02 Wilco Dijkstra + + * config/aarch64/aarch64.h (MALLOC_ABI_ALIGNMENT): New define. + 2017-11-02 Jeff Law * gimple-ssa-sprintf.c (sprintf_dom_walker): Remove diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index bc1ccc34281..5e2e2fccff3 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -111,6 +111,9 @@ #define STRUCTURE_SIZE_BOUNDARY 8 +/* Heap alignment (same as BIGGEST_ALIGNMENT and STACK_BOUNDARY). */ +#define MALLOC_ABI_ALIGNMENT 128 + /* Defined by the ABI */ #define WCHAR_TYPE "unsigned int" #define WCHAR_TYPE_SIZE 32 -- 2.30.2