summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-03 00:46:52 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-03 00:46:52 +0000
commitb676354b3f754afb5f77901b60f54f8470e05c43 (patch)
treee9ac0f4535d6b7da5700f5ea0508d55610b0e74f /gcc/tree-ssa-loop-niter.c
parent6c297efc46908aca7c020f4cbfc35e7a3a9ee828 (diff)
downloadgcc-b676354b3f754afb5f77901b60f54f8470e05c43.tar.gz
* gcc.dg/tree-ssa/loop-38.c: Correct testcase.
* tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add missing sign to unsigned. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193117 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r--gcc/tree-ssa-loop-niter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c
index b769f849d0e..3fd34c14528 100644
--- a/gcc/tree-ssa-loop-niter.c
+++ b/gcc/tree-ssa-loop-niter.c
@@ -3161,7 +3161,7 @@ discover_iteration_bound_by_body_walk (struct loop *loop)
}
gcc_assert (latch_index >= 0);
- if (latch_index < VEC_length (double_int, bounds))
+ if ((unsigned)latch_index < VEC_length (double_int, bounds))
{
if (dump_file && (dump_flags & TDF_DETAILS))
{