aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-08-06 12:30:49 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-08-06 12:30:49 +0200
commit4ab652083684015ace7812218f4bcb082bd07f00 (patch)
treea67920a6add239bb84fdaed5a72f769ac9d77075 /gcc/gcov.c
parent6ef835c6c0c1d141e5b926dd8f9b41a6b68c783a (diff)
downloadgcc-4ab652083684015ace7812218f4bcb082bd07f00.zip
gcc-4ab652083684015ace7812218f4bcb082bd07f00.tar.gz
gcc-4ab652083684015ace7812218f4bcb082bd07f00.tar.bz2
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
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r--gcc/gcov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c
index 496bff6..f05ef7c 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;