]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: i386: adapt to -std=gnu23 default change
authorSam James <sam@gentoo.org>
Sat, 16 Nov 2024 03:14:19 +0000 (03:14 +0000)
committerSam James <sam@gentoo.org>
Sat, 16 Nov 2024 03:29:59 +0000 (03:29 +0000)
r15-5327-g55e3bd376b2214 changes the default to -std=gnu23 but this
test relies on unprototyped functions. Follow Joseph's advice
in that commit and tweak the test accordingly.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr66891.c: Pass -std=gnu17.

gcc/testsuite/gcc.target/i386/pr66891.c

index 61a45703196d0de4d394b359e21e17c1e1e88adf..cd79fb5fdd618004d4532476ef949f9ff75130d7 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target ia32 } } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -std=gnu17" } */
 
 __attribute__((__stdcall__)) void fn1();