aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <jlaw@ventanamicro.com>2023-12-02 22:03:28 -0700
committerJeff Law <jlaw@ventanamicro.com>2023-12-02 22:03:28 -0700
commit622c5356676caec1dc970869d6671244703f0559 (patch)
tree5f1f85077fd2fd0259d6ed96c5fd69f224ff8b92
parent870b63fe71607b94c0e5b0c6e61cd807e0216ddd (diff)
downloadgcc-622c5356676caec1dc970869d6671244703f0559.zip
gcc-622c5356676caec1dc970869d6671244703f0559.tar.gz
gcc-622c5356676caec1dc970869d6671244703f0559.tar.bz2
[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.
-rw-r--r--gcc/testsuite/gcc.target/h8300/pr17306-2.c2
-rw-r--r--gcc/testsuite/gcc.target/h8300/pr58400.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/h8300/pr17306-2.c b/gcc/testsuite/gcc.target/h8300/pr17306-2.c
index a407c74..8c79f31 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 496626f..9d1ad7a 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;