From c463ec8c067d8ac9063d6460c6004429c79d0e87 Mon Sep 17 00:00:00 2001 From: uros Date: Thu, 8 Nov 2018 17:06:24 +0000 Subject: [PATCH] * gcc.dg/pr87874.c (em): Declare uint64_max as const unsigned long long int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265929 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 7 ++++++- gcc/testsuite/gcc.dg/pr87874.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57f23679c412..5d2447315953 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-11-08 Uros Bizjak + + * gcc.dg/pr87874.c (em): Declare uint64_max as + const unsigned long long int. + 2018-11-08 Jozef Lawrynowicz * gcc.dg/attr-alloc_size-10.c: Fix calculation of USHRT_MAX to prevent @@ -24,7 +29,7 @@ 2018-11-08 Jozef Lawrynowicz - * lib/gcc-dg.exp (gcc-dg-prune): Add new regexps for when the size of + * lib/gcc-dg.exp (gcc-dg-prune): Add new regexps for when the size of an output section is too large for a memory region, or a memory region overflows. diff --git a/gcc/testsuite/gcc.dg/pr87874.c b/gcc/testsuite/gcc.dg/pr87874.c index 1480a5e54937..80debe0b4806 100644 --- a/gcc/testsuite/gcc.dg/pr87874.c +++ b/gcc/testsuite/gcc.dg/pr87874.c @@ -16,7 +16,7 @@ em (int u5, int fo, int s7) if (es == 0) if (nb == *vk) { - const unsigned long int uint64_max = 18446744073709551615ul; + const unsigned long long int uint64_max = 18446744073709551615ull; __int128 ks = uint64_max / 2 + 1; while (s7 < 1) -- 2.47.2