From 622c5356676caec1dc970869d6671244703f0559 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sat, 2 Dec 2023 22:03:28 -0700 Subject: [PATCH] [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. --- gcc/testsuite/gcc.target/h8300/pr17306-2.c | 2 ++ gcc/testsuite/gcc.target/h8300/pr58400.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/h8300/pr17306-2.c b/gcc/testsuite/gcc.target/h8300/pr17306-2.c index a407c74b4cdb..8c79f31b9db5 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 496626f4b485..9d1ad7a22028 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; -- 2.47.2