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.
Regstrapped on powerpc64le-linux-gnu. Also tested with gcc-14 on x86_64-linux-x-powerpc-elf. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/powerpc/pr92661.c: Allow implicit function decls. --- 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 d9500dbfdb71e..0eb3c654d2d39 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. */ -- Alexandre Oliva, happy hacker https://blog.lx.oliva.nom.br/ Free Software Activist FSFLA co-founder GNU Toolchain Engineer More tolerance and less prejudice are key for inclusion and diversity. Excluding neuro-others for not behaving ""normal"" is *not* inclusive!