aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2006-01-14 13:29:06 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2006-01-14 12:29:06 +0000
commit7f17528ab58fa0a0f627b94bacbae686438b9bd4 (patch)
tree22793cf18859c40c1d11f310d8c985db7f286d01 /gcc/tree.c
parent26fb114d1345224c2af762534482eb8ad117f622 (diff)
downloadgcc-7f17528ab58fa0a0f627b94bacbae686438b9bd4.zip
gcc-7f17528ab58fa0a0f627b94bacbae686438b9bd4.tar.gz
gcc-7f17528ab58fa0a0f627b94bacbae686438b9bd4.tar.bz2
tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several functions.
* 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. From-SVN: r109702
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 4bda846..0cca757 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);
}