diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-08-06 12:30:49 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-08-06 12:30:49 +0200 |
commit | 4ab652083684015ace7812218f4bcb082bd07f00 (patch) | |
tree | a67920a6add239bb84fdaed5a72f769ac9d77075 /gcc | |
parent | 6ef835c6c0c1d141e5b926dd8f9b41a6b68c783a (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcov.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c72eb5f..8410391 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 @@ -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; |