* gcc.c-torture/execute/20020307-1.c: Use long.

From-SVN: r50578
This commit is contained in:
Kazu Hirata 2002-03-11 13:11:10 +00:00 committed by Kazu Hirata
parent cb9a8e9764
commit 1453ec8cd6
2 changed files with 7 additions and 3 deletions

View 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

View 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)