]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Silence gcc.dg/pr117806.c for default_packed
authorDimitar Dimitrov <dimitar@dinux.eu>
Sun, 1 Dec 2024 14:24:03 +0000 (16:24 +0200)
committerDimitar Dimitrov <dimitar@dinux.eu>
Sun, 1 Dec 2024 14:40:50 +0000 (16:40 +0200)
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.

gcc/testsuite/ChangeLog:

* gcc.dg/pr117806.c: Test can spill excess
errors for default_packed targets.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/gcc.dg/pr117806.c

index bc2c8c665e734ea084efa367bc4f9386b2ff74e1..a01278cdc152f1acceb2ad01093505121f46ad98 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-excess-errors "warnings about ignored 'packed' attribute" { target default_packed } } */
 /* { dg-options "-std=c23" } */
 
 struct Test {