re PR target/33594 (stack arrays not aligned on word boundaries)
authorAmruth Laxman <amruth.laxman@nsn.com>
Tue, 16 Oct 2007 20:43:02 +0000 (20:43 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 16 Oct 2007 20:43:02 +0000 (20:43 +0000)
PR target/33594
* config/sparc/sparc.h (LOCAL_ALIGNMENT): Define.

From-SVN: r129385

gcc/ChangeLog
gcc/config/sparc/sparc.h

index 69e7416d7d7a66a63a99a1e28dfca4ff1a5965bf..17077e2f190a98938d4fb23065c072af08ccbe1a 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-16  Amruth Laxman  <amruth.laxman@nsn.com>
+
+       PR target/33594
+       * config/sparc/sparc.h (LOCAL_ALIGNMENT): Define.
+
 2007-10-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * dce.c (init_dce): Only initialize the obstacks for the fast pass.
index fc154a4c3729c66fc2e0b21231c3f337bd6daecb..94b877340367707c0dcabee76d0e2095d435bfd3 100644 (file)
@@ -691,6 +691,9 @@ if (TARGET_ARCH64                           \
    && TYPE_MODE (TREE_TYPE (TYPE)) == QImode   \
    && (ALIGN) < FASTEST_ALIGNMENT ? FASTEST_ALIGNMENT : (ALIGN))
 
+/* Make local arrays of chars word-aligned for the same reasons.  */
+#define LOCAL_ALIGNMENT(TYPE, ALIGN) DATA_ALIGNMENT (TYPE, ALIGN)
+
 /* Set this nonzero if move instructions will actually fail to work
    when given unaligned data.  */
 #define STRICT_ALIGNMENT 1