From d28073d4fe3c2244be42b5b8b36062ec14bdc26b Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Wed, 22 May 2013 12:48:18 +0000 Subject: [PATCH] rs6000.h (MALLOC_ABI_ALIGNMENT): New #define. 2013-05-22 Bill Schmidt * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define. From-SVN: r199198 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/rs6000.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ffb3c6734b2..ebe67be626a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-05-22 Bill Schmidt + + * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define. + 2013-05-22 Richard Biener PR middle-end/57349 diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 6549347b9b7..4c24b56924d 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -2297,6 +2297,13 @@ extern char rs6000_reg_names[][8]; /* register names (0 vs. %r0). */ /* How to align the given loop. */ #define LOOP_ALIGN(LABEL) rs6000_loop_align(LABEL) +/* Alignment guaranteed by __builtin_malloc. */ +/* FIXME: 128-bit alignment is guaranteed by glibc for TARGET_64BIT. + However, specifying the stronger guarantee currently leads to + a regression in SPEC CPU2006 437.leslie3d. The stronger + guarantee should be implemented here once that's fixed. */ +#define MALLOC_ABI_ALIGNMENT (64) + /* Pick up the return address upon entry to a procedure. Used for dwarf2 unwind information. This also enables the table driven mechanism. */ -- 2.30.2