Commit ce8f9416 by Sebastian Pop Committed by Sebastian Pop

re PR tree-optimization/23511 (Segfault in fold_binary)

	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.

From-SVN: r103391
parent 73ed17ff
2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
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.
2005-08-23 Jakub Jelinek <jakub@redhat.com> 2005-08-23 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/22043 PR tree-optimization/22043
......
...@@ -1460,7 +1460,9 @@ infer_loop_bounds_from_undefined (struct loop *loop) ...@@ -1460,7 +1460,9 @@ infer_loop_bounds_from_undefined (struct loop *loop)
if (init == NULL_TREE if (init == NULL_TREE
|| step == NULL_TREE || step == NULL_TREE
|| TREE_CODE (init) != INTEGER_CST || 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; break;
utype = unsigned_type_for (type); utype = unsigned_type_for (type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment