diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-03 21:07:11 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-03 21:07:11 +0000 |
commit | 80096ea0e8da0110d9d5af05e304963377b1c685 (patch) | |
tree | caa57108bab4889bac26004363221e15a6c72c67 /gcc/tree-ssa-dom.c | |
parent | 0dd6780f91a699c7a2e69cd35a186889564846e6 (diff) | |
download | gcc-80096ea0e8da0110d9d5af05e304963377b1c685.tar.gz |
* tree-ssa-dom.c (record_edge_info): Use last_basic_block to
allocate info array.
* tree-vrp.c (extract_range_from_unary_expr): Set resulting
range to varying in cast expressions that change
TYPE_PRECISION.
testsuite/ChangeLog
* gcc.dg/tree-ssa/vrp14.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100554 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 8e79a46e17f..2bd527a231e 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -2422,7 +2422,7 @@ record_edge_info (basic_block bb) { tree labels = SWITCH_LABELS (stmt); int i, n_labels = TREE_VEC_LENGTH (labels); - tree *info = xcalloc (n_basic_blocks, sizeof (tree)); + tree *info = xcalloc (last_basic_block, sizeof (tree)); edge e; edge_iterator ei; |