summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-14 12:29:06 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-14 12:29:06 +0000
commit0f81d1b1db2329f88deb03f1ca4c1bf6476d23d8 (patch)
tree22793cf18859c40c1d11f310d8c985db7f286d01 /gcc/tree.c
parent03c8b2e448895fb4738d873baf78452139212503 (diff)
downloadgcc-0f81d1b1db2329f88deb03f1ca4c1bf6476d23d8.tar.gz
* tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
functions. (number_of_iterations_ne, number_of_iterations_lt_to_ne, assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt, number_of_iterations_le): New functions. (number_of_iterations_special): Removed. (number_of_iterations_exit): Do not use number_of_iterations_special. * tree.c (unsigned_type_for): Always return integer type. * gcc.dg/tree-ssa/pr19210-1.c: Update outcome. Add new test loop. * gcc.dg/tree-ssa/pr19210-2.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109702 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 4bda846734f..0cca7579ee1 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -6809,6 +6809,8 @@ tree_fold_gcd (tree a, tree b)
tree
unsigned_type_for (tree type)
{
+ if (POINTER_TYPE_P (type))
+ return size_type_node;
return lang_hooks.types.unsigned_type (type);
}