public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Sebor <msebor@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-6023] Fix member alignment for all targets [PR103751].
Date: Thu, 16 Dec 2021 19:34:46 +0000 (GMT)	[thread overview]
Message-ID: <20211216193446.BACF43858D35@sourceware.org> (raw)

https://gcc.gnu.org/g:f91814c22595e1db642140efe030caf2c092ab6f

commit r12-6023-gf91814c22595e1db642140efe030caf2c092ab6f
Author: Martin Sebor <msebor@redhat.com>
Date:   Thu Dec 16 12:28:03 2021 -0700

    Fix member alignment for all targets [PR103751].
    
    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.

Diff:
---
 gcc/testsuite/gcc.dg/Warray-bounds-48.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-48.c b/gcc/testsuite/gcc.dg/Warray-bounds-48.c
index 29b20863846..775b301e375 100644
--- a/gcc/testsuite/gcc.dg/Warray-bounds-48.c
+++ b/gcc/testsuite/gcc.dg/Warray-bounds-48.c
@@ -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'" }
 };


                 reply	other threads:[~2021-12-16 19:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211216193446.BACF43858D35@sourceware.org \
    --to=msebor@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).