diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-23 08:15:13 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-23 08:15:13 +0000 |
commit | 1d7c087e8b9c917fc33169a61d7a300432cdf784 (patch) | |
tree | 036e5ee218fbbfada8c97099b95ccbfa5bb690ee /gcc/tree-ssa-loop-niter.c | |
parent | b7f95d090cb437c047bae4f944dab45bf150f652 (diff) | |
download | gcc-1d7c087e8b9c917fc33169a61d7a300432cdf784.tar.gz |
PR tree-optimization/23511
* tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103391 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r-- | gcc/tree-ssa-loop-niter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index a8e4737633d..5ecdaebd08e 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -1460,7 +1460,9 @@ infer_loop_bounds_from_undefined (struct loop *loop) if (init == NULL_TREE || step == NULL_TREE || TREE_CODE (init) != INTEGER_CST - || TREE_CODE (step) != INTEGER_CST) + || TREE_CODE (step) != INTEGER_CST + || TYPE_MIN_VALUE (type) == NULL_TREE + || TYPE_MAX_VALUE (type) == NULL_TREE) break; utype = unsigned_type_for (type); |