Patchwork [ARM] Fix some testsuite fallout with DATA_ABI_ALIGNMENT changes.

login
register
mail settings
Submitter Ramana Radhakrishnan
Date June 12, 2013, 2:50 p.m.
Message ID <51B88ABB.7090808@arm.com>
Download mbox | patch
Permalink /patch/250806/
State New
Headers show

Comments

Ramana Radhakrishnan - June 12, 2013, 2:50 p.m.
Hi,

This fixes up some of the fallout in the testsuite for ARM with the 
DATA_ABI_ALIGNMENT changes recently.

Applied to trunk.

regards
Ramana


2013-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

         * gcc.target/arm/unaligned-memcpy-4.c (src, dst): Initialize
         to ensure alignment.
         * gcc.target/arm/unaligned-memcpy-3.c (src): Likewise.

Patch

diff --git a/gcc/testsuite/gcc.target/arm/unaligned-memcpy-3.c b/gcc/testsuite/gcc.target/arm/unaligned-memcpy-3.c
index 9e2d164..d0b09bd 100644
--- a/gcc/testsuite/gcc.target/arm/unaligned-memcpy-3.c
+++ b/gcc/testsuite/gcc.target/arm/unaligned-memcpy-3.c
@@ -4,7 +4,7 @@ 
 
 #include <string.h>
 
-char src[16];
+char src[16] = {0};
 
 void aligned_src (char *dest)
 {
diff --git a/gcc/testsuite/gcc.target/arm/unaligned-memcpy-4.c b/gcc/testsuite/gcc.target/arm/unaligned-memcpy-4.c
index 4708c51..830e22e 100644
--- a/gcc/testsuite/gcc.target/arm/unaligned-memcpy-4.c
+++ b/gcc/testsuite/gcc.target/arm/unaligned-memcpy-4.c
@@ -4,8 +4,8 @@ 
 
 #include <string.h>
 
-char src[16];
-char dest[16];
+char src[16] = { 0 };
+char dest[16] = { 0 };
 
 void aligned_both (void)
 {