[PATCH] pr103194-5.c: Replace long with int64_t

H.J. Lu hjl.tools@gmail.com
Thu Nov 25 04:18:27 GMT 2021


Replace long with int64_t to work with -mx32.

	* gcc.target/i386/pr103194-5.c: Replace long with int64_t.
---
 gcc/testsuite/gcc.target/i386/pr103194-5.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/pr103194-5.c b/gcc/testsuite/gcc.target/i386/pr103194-5.c
index dfaddf0aa6e..2e335285c2f 100644
--- a/gcc/testsuite/gcc.target/i386/pr103194-5.c
+++ b/gcc/testsuite/gcc.target/i386/pr103194-5.c
@@ -2,6 +2,7 @@
 /* { dg-options "-O2" } */
 #include <stdatomic.h>
 #include <stdbool.h>
+#include <stdint.h>
 
 #define FOO(RTYPE,TYPE)							\
   __attribute__((noinline,noclone)) RTYPE				\
@@ -53,7 +54,7 @@
     return __sync_fetch_and_and (a, ~mask) & mask;			\
   }									\
 
-FOO(int, long);
+FOO(int, int64_t);
 
 /* { dg-final { scan-assembler-times "lock;?\[ \t\]*bts" 2 } } */
 /* { dg-final { scan-assembler-times "lock;?\[ \t\]*btc" 4 } } */
-- 
2.33.1



More information about the Gcc-patches mailing list