rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 22 May 2013 12:48:18 +0000 (12:48 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Wed, 22 May 2013 12:48:18 +0000 (12:48 +0000)
2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.

From-SVN: r199198

gcc/ChangeLog
gcc/config/rs6000/rs6000.h

index ffb3c6734b25797fc25e4e7251a54f94cebf25e3..ebe67be626af9bb1b0685d7141fb87dafe0a2b12 100644 (file)
@@ -1,3 +1,7 @@
+2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
+
 2013-05-22  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/57349
index 6549347b9b7eec4416a7430e80e0ed7ce7229926..4c24b56924d5b8641faaaeb83df8ea200421c1e5 100644 (file)
@@ -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.  */