summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-11 13:11:10 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-11 13:11:10 +0000
commit3283ef09ec18f5250d2b4885e8e0c7589155c547 (patch)
treee5726d0eb1afd2120abceaf155b8050d115ac6c4 /gcc
parent2ab60bb18429966e3588240f8ae4da5c1cdf24d7 (diff)
downloadgcc-3283ef09ec18f5250d2b4885e8e0c7589155c547.tar.gz
* gcc.c-torture/execute/20020307-1.c: Use long.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50578 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20020307-1.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2b541881446..fc23908a4c3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-11 Kazu Hirata <kazu@hxi.com>
+
+ * gcc.c-torture/execute/20020307-1.c: Use long.
+
2002-03-11 Jakub Jelinek <jakub@redhat.com>
PR optimization/5844
diff --git a/gcc/testsuite/gcc.c-torture/execute/20020307-1.c b/gcc/testsuite/gcc.c-torture/execute/20020307-1.c
index 6a0c65490be..c6379de3e8b 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20020307-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20020307-1.c
@@ -1,7 +1,7 @@
-#define MASK(N) ((int)((1U << (N)) - 1))
-#define BITS(N) ((1 << ((N) - 1)) + 2)
+#define MASK(N) ((1UL << (N)) - 1)
+#define BITS(N) ((1UL << ((N) - 1)) + 2)
-#define FUNC(N) void f##N(int j) { if ((j & MASK(N)) >= BITS(N)) abort();}
+#define FUNC(N) void f##N(long j) { if ((j & MASK(N)) >= BITS(N)) abort();}
FUNC(3)
FUNC(4)