OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR tree-optimization/23511
[pf3gnuchains/gcc-fork.git]
/
gcc
/
tree-ssa-loop-niter.c
diff --git
a/gcc/tree-ssa-loop-niter.c
b/gcc/tree-ssa-loop-niter.c
index
a8e4737
..
5ecdaeb
100644
(file)
--- 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
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);
break;
utype = unsigned_type_for (type);