re PR target/38731 (Local strings on the stack not aligned)
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Thu, 25 Jun 2009 19:00:26 +0000 (19:00 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 25 Jun 2009 19:00:26 +0000 (12:00 -0700)
2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/38731
        * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
        DATA_ALIGNMENT instead.

From-SVN: r148948

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

index adb14e39203c7a0f994771f27f2301ca3777442d..7225a1f9edd9e2f8d29350a95dd944a320e48539 100644 (file)
@@ -1,3 +1,9 @@
+2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       PR target/38731
+       * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
+       DATA_ALIGNMENT instead.
+
 2009-06-25  Richard Guenther  <rguenther@suse.de>
 
        * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
index 8cb26ea80a11ca48628acee09bb23bb9177f092d..712ca9b4b00533acce227aac600c901ae8025ff1 100644 (file)
@@ -704,14 +704,7 @@ extern unsigned rs6000_pointer_size;
    local store.  TYPE is the data type, and ALIGN is the alignment
    that the object would ordinarily have.  */
 #define LOCAL_ALIGNMENT(TYPE, ALIGN)                           \
-  (((TARGET_ALTIVEC || TARGET_VSX)                             \
-    && TREE_CODE (TYPE) == VECTOR_TYPE) ? 128 :                        \
-    (TARGET_E500_DOUBLE                                                \
-     && TYPE_MODE (TYPE) == DFmode) ? 64 :                     \
-    ((TARGET_SPE && TREE_CODE (TYPE) == VECTOR_TYPE            \
-     && SPE_VECTOR_MODE (TYPE_MODE (TYPE))) || (TARGET_PAIRED_FLOAT \
-        && TREE_CODE (TYPE) == VECTOR_TYPE \
-        && PAIRED_VECTOR_MODE (TYPE_MODE (TYPE)))) ? 64 : ALIGN)
+  DATA_ALIGNMENT (TYPE, ALIGN)
 
 /* Alignment of field after `int : 0' in a structure.  */
 #define EMPTY_FIELD_BOUNDARY 32