]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] Fix minor testsuite problems on H8 after C99 changes
authorJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:03:28 +0000 (22:03 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:03:28 +0000 (22:03 -0700)
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
gcc/testsuite/gcc.target/h8300/pr58400.c

index a407c74b4cdbb3a068b04c1253fcc8006665448a..8c79f31b9db5afac8724b5547f4bff0cb6bc77bf 100644 (file)
@@ -8,6 +8,8 @@ struct x {
   char y;
 };
 
+void oof (void);
+
 struct x __attribute__ ((eightbit_data)) foo;
 
 int bar ()
index 496626f4b485e51a627d9f358bd50131feb5a7be..9d1ad7a22028bb3733f872b6faaaf2adba8d99e5 100644 (file)
@@ -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;