From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2059) id A1F0D3858D32; Mon, 9 May 2022 16:33:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1F0D3858D32 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Dimitar Dimitrov To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-215] testsuite: Silence analyzer/pr51628-30.c for default_packed X-Act-Checkin: gcc X-Git-Author: Dimitar Dimitrov X-Git-Refname: refs/heads/master X-Git-Oldrev: f08ea45bad43024a1458dca6e37c5c1bcc02e234 X-Git-Newrev: 8a39c7c128dbf4405821778724c5a1017ab12e06 Message-Id: <20220509163312.A1F0D3858D32@sourceware.org> Date: Mon, 9 May 2022 16:33:12 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2022 16:33:12 -0000 https://gcc.gnu.org/g:8a39c7c128dbf4405821778724c5a1017ab12e06 commit r13-215-g8a39c7c128dbf4405821778724c5a1017ab12e06 Author: Dimitar Dimitrov Date: Fri Apr 22 18:22:00 2022 +0300 testsuite: Silence analyzer/pr51628-30.c for default_packed On default_packed targets like PRU, a warning in the file included from analyzer/pr51628-30.c is reported as spurious one, even though it has been annotated there: Excess errors: gcc/gcc/testsuite/gcc.dg/analyzer/torture/../../../c-c++-common/pr51628-30.c:7:19: warning: 'packed' attribute ignored for field of type 'struct B' [-Wattributes] Mark that gcc.dg/analyzer/torture/pr51628-30.c generates excess warnings for default_packed targets. This is safe because the original test case covered an ICE, not a diagnostic error. gcc/testsuite/ChangeLog: * gcc.dg/analyzer/torture/pr51628-30.c: Test can spill excess errors for default_packed targets. Signed-off-by: Dimitar Dimitrov Diff: --- gcc/testsuite/gcc.dg/analyzer/torture/pr51628-30.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/pr51628-30.c b/gcc/testsuite/gcc.dg/analyzer/torture/pr51628-30.c index 4513e0f890c..abc13413f2b 100644 --- a/gcc/testsuite/gcc.dg/analyzer/torture/pr51628-30.c +++ b/gcc/testsuite/gcc.dg/analyzer/torture/pr51628-30.c @@ -1,3 +1,4 @@ /* { dg-additional-options "-Wno-address-of-packed-member" } */ +/* { dg-excess-errors "warnings about ignored 'packed' attribute" { target default_packed } } */ #include "../../../c-c++-common/pr51628-30.c"