]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix testcase for platform without gnu/stubs-x32.h
authorliuhongt <hongtao.liu@intel.com>
Mon, 19 Feb 2024 04:19:35 +0000 (12:19 +0800)
committerliuhongt <hongtao.liu@intel.com>
Tue, 20 Feb 2024 00:59:27 +0000 (08:59 +0800)
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.

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

index 4280d400458547415451f468dfa543c06d414de2..74197dbc641fc7d1cb011ea6fd15eec14915dbd4 100644 (file)
@@ -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                                                   \