[committed] Fix minor testsuite problems on H8 after C99 changes

Message ID cbb5313e-ba18-42c0-b310-9f9b41a8abbe@gmail.com
State Committed
Commit 622c5356676caec1dc970869d6671244703f0559
Headers
Series [committed] Fix minor testsuite problems on H8 after C99 changes |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 warning Patch is already merged

Commit Message

Jeff Law Dec. 3, 2023, 5:04 a.m. UTC
  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 <jlaw@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.
  

Patch

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;