From: Jakub Jelinek Date: Sat, 6 Aug 2016 10:30:49 +0000 (+0200) Subject: gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of INT64_MAX. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ab652083684015ace7812218f4bcb082bd07f00;p=gcc.git 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 --- 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;