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
This commit is contained in:
Jakub Jelinek 2016-08-06 12:30:49 +02:00 committed by Jakub Jelinek
parent 6ef835c6c0
commit 4ab6520836
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-08-06 Jakub Jelinek <jakub@redhat.com>
* gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
INT64_MAX.
2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable

View File

@ -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;