* gcc.c-torture/execute/20020307-1.c: Use long.
authorKazu Hirata <kazu@hxi.com>
Mon, 11 Mar 2002 13:11:10 +0000 (13:11 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 11 Mar 2002 13:11:10 +0000 (13:11 +0000)
From-SVN: r50578

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20020307-1.c

index 2b54188..fc23908 100644 (file)
@@ -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
index 6a0c654..c6379de 100644 (file)
@@ -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)