summaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loop-38.c4
-rw-r--r--gcc/tree-ssa-loop-niter.c2
4 files changed, 12 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ada7ff5e786..59a51f3d887 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-02 Jan Hubicka <jh@suse.cz>
+
+ * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
+ missing sign to unsigned.
+
2012-11-02 Andrew Pinski <apinski@cavium.com>
PR rtl-opt/54524
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0dec13f86d4..d75f009d994 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2012-11-02 Jan Hubicka <jh@suse.cz>
+
+ * gcc.dg/tree-ssa/loop-38.c: Correct testcase.
+
2012-11-02 Michael Meissner <meissner@linux.vnet.ibm.com>
* gcc.target/powerpc/pr48258-2.c: Simplfy the acceptance
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-38.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-38.c
index d5568d64624..7f2303124ad 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/loop-38.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-38.c
@@ -13,6 +13,6 @@ t(int n)
sum+=b[i];
return sum;
}
-/* { dg-final { scan-tree-dump "Found better loop bound 10" "cunrolli" } } */
-/* { dg-final { scan-tree-dump "Loop 1 iterates at most 10 times" "cunrolli" } } */
+/* { dg-final { scan-tree-dump "Found better loop bound 11" "cunrolli" } } */
+/* { dg-final { scan-tree-dump "Loop 1 iterates at most 11 times" "cunrolli" } } */
/* { dg-final { cleanup-tree-dump "cunrolli" } } */
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))
{