https://gcc.gnu.org/g:19953f014038b061e7b272e489540080ea8cabc4

commit 19953f014038b061e7b272e489540080ea8cabc4
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Thu Apr 10 17:28:09 2025 -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.  */

Reply via email to