public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Vit Kabele <vit.kabele@sysgo.com>
To: Andreas Schwab <schwab@suse.de>
Cc: gcc-patches@gcc.gnu.org, vit@kabele.me
Subject: Re: [PATCH] Print padding size when aligning struct member
Date: Tue, 7 Feb 2023 15:09:56 +0100	[thread overview]
Message-ID: <Y+JbtBLWR81fZyyb@czspare1-lap.sysgo.cz> (raw)
In-Reply-To: <mvmedr1wrl8.fsf@suse.de>

On Tue, Feb 07, 2023 at 02:08:35PM +0100, Andreas Schwab wrote:
> 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.
Ah sorry, would removing everything after `with...` be ok?

Like this:
> +  long baz; /* { dg-warning "padding struct with" ""  { target { ! default_packed } } } */

-- 
Best regards,
Vit Kabele

  reply	other threads:[~2023-02-07 14:10 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
2023-02-07 14:09   ` Vit Kabele [this message]
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=Y+JbtBLWR81fZyyb@czspare1-lap.sysgo.cz \
    --to=vit.kabele@sysgo.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=schwab@suse.de \
    --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).