diff mbox series

Fix testcase for platform without gnu/stubs-x32.h

Message ID 20240219044958.3724987-1-hongtao.liu@intel.com
State New
Headers show
Series Fix testcase for platform without gnu/stubs-x32.h | expand

Commit Message

Liu, Hongtao Feb. 19, 2024, 4:49 a.m. UTC
target maybe_x32 doesn't check if platform has gnu/stubs-x32.h, but
it's included by stdint.h in the testcase.
Adjust testcase: remove stdint.h, use 'typedef long long int64_t'
instead.

Commit as an obvious patch.

gcc/testsuite/ChangeLog:

	PR target/113711
	* gcc.target/i386/apx-ndd-x32-1.c: Adjust testcase.
---
 gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c b/gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c
index 4280d400458..74197dbc641 100644
--- a/gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c
+++ b/gcc/testsuite/gcc.target/i386/apx-ndd-x32-1.c
@@ -3,7 +3,7 @@ 
 /* { dg-require-effective-target maybe_x32 } */
 /* { dg-options "-mapxf -O2 -mx32" } */
 
-#include <stdint.h>
+typedef long long int64_t;
 
 #define FOO(TYPE, OP_NAME, OP, IMM)			\
 TYPE							\