]> gcc.gnu.org Git - gcc.git/commitdiff
pr103194-5.c: Replace long with int64_t
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 25 Nov 2021 04:16:13 +0000 (20:16 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 25 Nov 2021 04:19:06 +0000 (20:19 -0800)
Replace long with int64_t to work with -mx32.

* gcc.target/i386/pr103194-5.c: Include <stdint.h>.
Replace long with int64_t.

gcc/testsuite/gcc.target/i386/pr103194-5.c

index dfaddf0aa6e73ca0ca7807abd9413cc867830b46..2e335285c2ff0778f8a1e6e46f7d00a1a9289fea 100644 (file)
@@ -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 } } */
This page took 0.071221 seconds and 5 git commands to generate.