[committed] Fix minor testsuite problems on H8 after C99 changes
Checks
Commit Message
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.
@@ -8,6 +8,8 @@ struct x {
char y;
};
+void oof (void);
+
struct x __attribute__ ((eightbit_data)) foo;
int bar ()
@@ -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;