From 4ab652083684015ace7812218f4bcb082bd07f00 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 6 Aug 2016 12:30:49 +0200 Subject: [PATCH] gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of INT64_MAX. * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of INT64_MAX. From-SVN: r239192 --- gcc/ChangeLog | 5 +++++ gcc/gcov.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c72eb5ff5ec..8410391495b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-08-06 Jakub Jelinek + + * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of + INT64_MAX. + 2016-08-06 Prathamesh Kulkarni * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable diff --git a/gcc/gcov.c b/gcc/gcov.c index 496bff65257..f05ef7cb3c3 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -465,7 +465,7 @@ handle_cycle (const arc_vector_t &edges, int64_t &count) { /* Find the minimum edge of the cycle, and reduce all nodes in the cycle by that amount. */ - int64_t cycle_count = INT64_MAX; + int64_t cycle_count = INTTYPE_MAXIMUM (int64_t); for (unsigned i = 0; i < edges.size (); i++) { int64_t ecount = edges[i]->cs_count; -- 2.30.2