[gcc(refs/users/aoliva/heads/testme)] [testsuite] [ppc] allow implicit fuction declarations in pr92661.c
Alexandre Oliva
aoliva@gcc.gnu.org
Sat Mar 28 08:43:07 GMT 2026
https://gcc.gnu.org/g:ec9a3e80cec8f8d062516f888849441d65cccde0
commit ec9a3e80cec8f8d062516f888849441d65cccde0
Author: Alexandre Oliva <oliva@adacore.com>
Date: Tue Mar 10 04:17:24 2026 -0300
[testsuite] [ppc] allow implicit fuction declarations in pr92661.c
gcc.target/powerpc/pr92661.c expects and tolerates errors about dfp
builtins when dfp is not supported, but the C front end no longer
accepts calls of undeclared functions by default, even with -w.
Adding -fpermissive would do, but I thought it would be too broad, so
I went for -Wno-error=implicit-function-declaration.
for gcc/testsuite/ChangeLog
* gcc.target/powerpc/pr92661.c: Allow implicit function decls.
Diff:
---
gcc/testsuite/gcc.target/powerpc/pr92661.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/powerpc/pr92661.c b/gcc/testsuite/gcc.target/powerpc/pr92661.c
index d9500dbfdb71..0eb3c654d2d3 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr92661.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr92661.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-w -O2 -mdejagnu-cpu=power9" } */
+/* { dg-options "-w -O2 -mdejagnu-cpu=power9 -Wno-error=implicit-function-declaration" } */
/* PR92661: The following tests should not ICE, regardless of
whether the target supports DFP or not. */
More information about the Gcc-cvs
mailing list