This test passes different kinds of objects to the underlying function. So just pass in -std=gnu17.

Pushing to the trunk.

Jeff

commit 9c18fe50565a9bf41ecb45a047d14525990fa130
Author: Jeff Law <j...@ventanamicro.com>
Date:   Sat Nov 16 11:26:21 2024 -0700

    [committed] Adjust ARC tests after c23 changes
    
    This test passes different kinds of objects to the underlying function.  So
    just pass in -std=gnu17.
    
    gcc/testsuite
            * gcc.target/arc/add_n-combine.c: Pass in -std=gnu17.

diff --git a/gcc/testsuite/gcc.target/arc/add_n-combine.c 
b/gcc/testsuite/gcc.target/arc/add_n-combine.c
index fd311b3839c..19690192fca 100644
--- a/gcc/testsuite/gcc.target/arc/add_n-combine.c
+++ b/gcc/testsuite/gcc.target/arc/add_n-combine.c
@@ -1,5 +1,5 @@
 /* { dg-do compile }  */
-/* { dg-options "-O2" }  */
+/* { dg-options "-O2 -std=gnu17" }  */
 
 struct b1 {
       char c;

Reply via email to