On default_packed targets like PRU, spurious warnings are emitted: ...workspace/gcc/gcc/testsuite/gcc.dg/pr117806.c:5:3: warning: 'packed' attribute ignored for field of type 'double' [-Wattributes]
Fix by annotating the excess warnings for default_packed targets. Pushed to trunk as obvious. gcc/testsuite/ChangeLog: * gcc.dg/pr117806.c: Test can spill excess errors for default_packed targets. Cc: Martin Uecker <uec...@tugraz.at> Signed-off-by: Dimitar Dimitrov <dimi...@dinux.eu> --- gcc/testsuite/gcc.dg/pr117806.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/pr117806.c b/gcc/testsuite/gcc.dg/pr117806.c index bc2c8c665e7..a01278cdc15 100644 --- a/gcc/testsuite/gcc.dg/pr117806.c +++ b/gcc/testsuite/gcc.dg/pr117806.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-excess-errors "warnings about ignored 'packed' attribute" { target default_packed } } */ /* { dg-options "-std=c23" } */ struct Test { -- 2.47.1