From: Wilco Dijkstra Date: Thu, 2 Nov 2017 15:12:51 +0000 (+0000) Subject: Define MALLOC_ABI_ALIGNMENT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e10dbae3dad0ac5269685620caa6f2698b00d669;p=gcc.git 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 --- 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