aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-11-24 20:16:13 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-11-24 20:19:06 -0800
commitf88e50780137503365192011b261498b06c75930 (patch)
tree1f2655818be5a8b779646304907f03bd23294f0c /gcc
parentd9ca4b45bd1ab00d74d38cba94a84990d40918ca (diff)
downloadgcc-f88e50780137503365192011b261498b06c75930.zip
gcc-f88e50780137503365192011b261498b06c75930.tar.gz
gcc-f88e50780137503365192011b261498b06c75930.tar.bz2
pr103194-5.c: Replace long with int64_t
Replace long with int64_t to work with -mx32. * gcc.target/i386/pr103194-5.c: Include <stdint.h>. Replace long with int64_t.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/i386/pr103194-5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr103194-5.c b/gcc/testsuite/gcc.target/i386/pr103194-5.c
index dfaddf0..2e33528 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 } } */