]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix member alignment for all targets [PR103751].
authorMartin Sebor <msebor@redhat.com>
Thu, 16 Dec 2021 19:28:03 +0000 (12:28 -0700)
committerMartin Sebor <msebor@redhat.com>
Thu, 16 Dec 2021 19:34:24 +0000 (12:34 -0700)
Resolves:
PR testsuite/103751 - FAIL: gcc.dg/Warray-bounds-48.c (test for excess errors)

gcc/testsuite/ChangeLog:
PR testsuite/103751
* gcc.dg/Warray-bounds-48.c: Fix member alignment.

gcc/testsuite/gcc.dg/Warray-bounds-48.c

index 29b20863846093ef324d0209405f0eb2062d0da8..775b301e375379b677423d1fa8294682eb35da07 100644 (file)
@@ -212,6 +212,7 @@ void test_a0 (struct A0 *p, unsigned n)
 struct A1
 {
   int32_t n;
+  __attribute__ ((aligned (4)))
   int16_t a1[1];    // { dg-message "while referencing 'a1'" }
 };