public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-215] testsuite: Silence analyzer/pr51628-30.c for default_packed
@ 2022-05-09 16:33 Dimitar Dimitrov
  0 siblings, 0 replies; only message in thread
From: Dimitar Dimitrov @ 2022-05-09 16:33 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8a39c7c128dbf4405821778724c5a1017ab12e06

commit r13-215-g8a39c7c128dbf4405821778724c5a1017ab12e06
Author: Dimitar Dimitrov <dimitar@dinux.eu>
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 <dimitar@dinux.eu>

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"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-09 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09 16:33 [gcc r13-215] testsuite: Silence analyzer/pr51628-30.c for default_packed Dimitar Dimitrov

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).