[committed] MIPS/testsuite: Include stdio.h in mipscop tests

Message ID 20240104015819.353901-4-syq@gcc.gnu.org
State Accepted
Headers
Series [committed] MIPS/testsuite: Include stdio.h in mipscop tests |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

YunQiang Su Jan. 4, 2024, 1:58 a.m. UTC
  gcc/testsuite

	* gcc.c-torture/compile/mipscop-1.c: Include stdio.h.
	* gcc.c-torture/compile/mipscop-2.c: Ditto.
	* gcc.c-torture/compile/mipscop-3.c: Ditto.
	* gcc.c-torture/compile/mipscop-4.c: Ditto.
---
 gcc/testsuite/gcc.c-torture/compile/mipscop-1.c | 1 +
 gcc/testsuite/gcc.c-torture/compile/mipscop-2.c | 1 +
 gcc/testsuite/gcc.c-torture/compile/mipscop-3.c | 1 +
 gcc/testsuite/gcc.c-torture/compile/mipscop-4.c | 1 +
 4 files changed, 4 insertions(+)
  

Patch

diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c
index 8a40ba1c6b7..2ba0ee79b8b 100644
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c
@@ -1,5 +1,6 @@ 
 /* { dg-do compile { target mips*-*-* } } */
 
+#include <stdio.h>
 register unsigned int cp0count asm ("$c0r1");
 
 int __attribute__ ((nomips16))
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c
index 94df41d65f9..6fffc8ec098 100644
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c
+++ b/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c
@@ -1,5 +1,6 @@ 
 /* { dg-do compile { target mips*-*-* } } */
 
+#include <stdio.h>
 register unsigned int c3r1 asm ("$c3r1");
 
 extern unsigned int b, c;
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c
index cb4bd4d3efb..03e30117bc1 100644
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c
+++ b/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c
@@ -1,5 +1,6 @@ 
 /* { dg-do compile { target mips*-*-* } } */
 
+#include <stdio.h>
 register unsigned int c3r1 asm ("$c3r1"), c3r2 asm ("$c3r2");
 
 extern unsigned int b, c;
diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c
index 263fc5cacc1..7e000c1c68a 100644
--- a/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c
+++ b/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c
@@ -1,5 +1,6 @@ 
 /* { dg-do compile { target mips*-*-* } } */
 
+#include <stdio.h>
 register unsigned long c3r1 asm ("$c3r1"), c3r2 asm ("$c3r2");
 
 extern unsigned long b, c;