public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: "Vít Kabele" <vit.kabele@sysgo.com>
Cc: gcc-patches@gcc.gnu.org,  vit@kabele.me
Subject: Re: [PATCH] Print padding size when aligning struct member
Date: Tue, 07 Feb 2023 14:08:35 +0100	[thread overview]
Message-ID: <mvmedr1wrl8.fsf@suse.de> (raw)
In-Reply-To: <20230207124156.853506-1-vit.kabele@sysgo.com> (=?utf-8?Q?=22?= =?utf-8?Q?V=C3=ADt?= Kabele"'s message of "Tue, 7 Feb 2023 13:41:57 +0100")

On Feb 07 2023, Vít Kabele wrote:

> diff --git a/gcc/testsuite/gcc.dg/Wpadded.c b/gcc/testsuite/gcc.dg/Wpadded.c
> index 70fcd79a6d4..357e7f61e4a 100644
> --- a/gcc/testsuite/gcc.dg/Wpadded.c
> +++ b/gcc/testsuite/gcc.dg/Wpadded.c
> @@ -10,5 +10,5 @@
>  
>  struct foo {
>    char bar;
> -  long baz; /* { dg-warning "padding struct to align" ""  { target { ! default_packed } } } */
> +  long baz; /* { dg-warning "padding struct with 7 bytes to align" ""  { target { ! default_packed } } } */

The actual amount of padding is target dependent.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

  reply	other threads:[~2023-02-07 13:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-07 12:41 Vít Kabele
2023-02-07 13:08 ` Andreas Schwab [this message]
2023-02-07 14:09   ` Vit Kabele
2023-02-24  7:28   ` [PATCH v2] " Vít Kabele
2023-03-11 15:35     ` Jeff Law
2023-03-28 14:24       ` Vit Kabele

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=mvmedr1wrl8.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=vit.kabele@sysgo.com \
    --cc=vit@kabele.me \
    /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).