https://gcc.gnu.org/g:7151aa12d659fc095687a22688dd0307ebb4845d

commit r15-5845-g7151aa12d659fc095687a22688dd0307ebb4845d
Author: Dimitar Dimitrov <dimi...@dinux.eu>
Date:   Sun Dec 1 16:24:03 2024 +0200

    testsuite: Silence gcc.dg/pr117806.c for default_packed
    
    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 <dimi...@dinux.eu>

Diff:
---
 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 bc2c8c665e73..a01278cdc152 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 {

Reply via email to