diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2022-04-22 18:22:00 +0300 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2022-05-09 19:31:55 +0300 |
commit | 8a39c7c128dbf4405821778724c5a1017ab12e06 (patch) | |
tree | a616f946584f2016cec36ad640e919bc5db8e485 /gcc | |
parent | f08ea45bad43024a1458dca6e37c5c1bcc02e234 (diff) | |
download | gcc-8a39c7c128dbf4405821778724c5a1017ab12e06.zip gcc-8a39c7c128dbf4405821778724c5a1017ab12e06.tar.gz gcc-8a39c7c128dbf4405821778724c5a1017ab12e06.tar.bz2 |
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/analyzer/torture/pr51628-30.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/pr51628-30.c b/gcc/testsuite/gcc.dg/analyzer/torture/pr51628-30.c index 4513e0f..abc1341 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" |