OSDN Git Service

PR tree-optimization/23511
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Aug 2005 08:15:13 +0000 (08:15 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Aug 2005 08:15:13 +0000 (08:15 +0000)
* 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

gcc/ChangeLog
gcc/tree-ssa-loop-niter.c

index 1f3f538..5de0010 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        PR tree-optimization/22043
index a8e4737..5ecdaeb 100644 (file)
@@ -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);