From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.sysgo.com (mail.sysgo.com [159.69.174.51]) by sourceware.org (Postfix) with ESMTPS id DC6353858C62 for ; Tue, 7 Feb 2023 14:10:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DC6353858C62 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sysgo.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sysgo.com Received: from lantia.sysgo.com ([172.20.1.5]:40188) by mail.sysgo.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1pPOfW-0004nB-0I; Tue, 07 Feb 2023 15:09:58 +0100 Date: Tue, 7 Feb 2023 15:09:56 +0100 From: Vit Kabele To: Andreas Schwab Cc: gcc-patches@gcc.gnu.org, vit@kabele.me Subject: Re: [PATCH] Print padding size when aligning struct member Message-ID: Mail-Followup-To: Vit Kabele , Andreas Schwab , gcc-patches@gcc.gnu.org, vit@kabele.me References: <20230207124156.853506-1-vit.kabele@sysgo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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