aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-07-13 11:41:16 +0200
committerRichard Biener <rguenther@suse.de>2020-07-13 11:42:49 +0200
commit7a4770f0394751860ee54520b23007938907ac33 (patch)
tree4099d6708b55d8b6e4156babd307017b5928a882 /gcc
parentb8697d0cd06da3375063295fe7161671e0904459 (diff)
downloadgcc-7a4770f0394751860ee54520b23007938907ac33.zip
gcc-7a4770f0394751860ee54520b23007938907ac33.tar.gz
gcc-7a4770f0394751860ee54520b23007938907ac33.tar.bz2
fix global variable alignment for testcase gcc.dg/torture/pr96133.c
The testcase was errorneously accessing the global variable via a type that might require bigger alignment than provided. Fix that via an appropriate attribute. 2020-07-13 Richard Biener <rguenther@suse.de> PR testsuite/96180 * gcc.dg/torture/pr96133.c: Align global variable.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr96133.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr96133.c b/gcc/testsuite/gcc.dg/torture/pr96133.c
index 8d051ce..ac31a71 100644
--- a/gcc/testsuite/gcc.dg/torture/pr96133.c
+++ b/gcc/testsuite/gcc.dg/torture/pr96133.c
@@ -1,7 +1,7 @@
/* { dg-do run } */
typedef int T;
-static const T a[2][3] = { { 1, 2, 3 }, { 4, 5, 6 } };
+static const T a[2][3] __attribute__((aligned(2*sizeof(T)))) = { { 1, 2, 3 }, { 4, 5, 6 } };
typedef T v2 __attribute__((vector_size(2*sizeof(T))));
int