Two minor regressions on the H8 were triggered by the C99 changes. First pr58400.c has several functions without prototypes. I just added -fpermissive to that test. Second pr17306-2.c has a single call to an unprototyped function for which I added the prototype.

These are both H8 specific tests.

Pushed to the trunk,
Jeff
commit 622c5356676caec1dc970869d6671244703f0559
Author: Jeff Law <j...@ventanamicro.com>
Date:   Sat Dec 2 22:03:28 2023 -0700

    [committed] Fix minor testsuite problems on H8 after C99 changes
    
    Two minor regressions on the H8 were triggered by the C99 changes.  First
    pr58400.c has several functions without prototypes.  I just added 
-fpermissive
    to that test.  Second pr17306-2.c has a single call to an unprototyped 
function
    for which I added the prototype.
    
    These are both H8 specific tests.
    
    gcc/testsuite
            * gcc.target/h8300/pr58400.c: Add -fpermissive.
            * gcc.target/h8300/pr17306-2.c: Add missing prototype.

diff --git a/gcc/testsuite/gcc.target/h8300/pr17306-2.c 
b/gcc/testsuite/gcc.target/h8300/pr17306-2.c
index a407c74b4cd..8c79f31b9db 100644
--- a/gcc/testsuite/gcc.target/h8300/pr17306-2.c
+++ b/gcc/testsuite/gcc.target/h8300/pr17306-2.c
@@ -8,6 +8,8 @@ struct x {
   char y;
 };
 
+void oof (void);
+
 struct x __attribute__ ((eightbit_data)) foo;
 
 int bar ()
diff --git a/gcc/testsuite/gcc.target/h8300/pr58400.c 
b/gcc/testsuite/gcc.target/h8300/pr58400.c
index 496626f4b48..9d1ad7a2202 100644
--- a/gcc/testsuite/gcc.target/h8300/pr58400.c
+++ b/gcc/testsuite/gcc.target/h8300/pr58400.c
@@ -1,5 +1,5 @@
 /* { dg-do compile }  */
-/* { dg-options "-Os -mh -mint32 -w" }  */
+/* { dg-options "-Os -mh -mint32 -w -fpermissive" }  */
 
  typedef unsigned short __u16;
  typedef __signed__ int __s32;

Reply via email to