aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2020-10-27 10:13:18 -0400
committerAndrew MacLeod <amacleod@redhat.com>2020-10-27 10:14:20 -0400
commit3af44504d40d688cafc43d1b850a55ef794b443a (patch)
treed2485e5561b8edf61a9718a708a60d610e40af29 /gcc
parent686c1b70c70a8df4f8633c1b8eeb84a1fdaa48b2 (diff)
downloadgcc-3af44504d40d688cafc43d1b850a55ef794b443a.zip
gcc-3af44504d40d688cafc43d1b850a55ef794b443a.tar.gz
gcc-3af44504d40d688cafc43d1b850a55ef794b443a.tar.bz2
Combine logical OR ranges properly. pr97567
update testcase to work on 32 bit targets gcc/testsuite * gcc.dg/pr97567.c: Update to work with 32 bit targets.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/pr97567.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/pr97567.c b/gcc/testsuite/gcc.dg/pr97567.c
index b2b72a4..8922f27 100644
--- a/gcc/testsuite/gcc.dg/pr97567.c
+++ b/gcc/testsuite/gcc.dg/pr97567.c
@@ -4,7 +4,7 @@
int a, b, c, d;
void k() {
unsigned f = 1;
- long g = 4073709551615;
+ long long g = 4073709551615;
for (; a; a++)
for (;;) {
d = 0;
@@ -16,7 +16,7 @@ void k() {
;
g || f;
int i = 0 - f || g;
- long j = g - f;
+ long long j = g - f;
if (j || f) {
if (g < 4073709551615)
for (;;)