* 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 2b5418814468c0e6150a2355a543303160dc8d87..fc23908a4c3b897951633b948e13712fc4d742e5 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 6a0c65490be253367515aa98134ca62f98953892..c6379de3e8bb957fe94f9aeb410744f08772a2b5 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)