aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2005-06-03 21:07:11 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2005-06-03 17:07:11 -0400
commit441e96b5bc6736abb50a7f7927b77e4ab5b57daf (patch)
treecaa57108bab4889bac26004363221e15a6c72c67 /gcc/tree-ssa-dom.c
parent658a82f8edacdbe5f49eb4309bf5e2fb3dc9b147 (diff)
downloadgcc-441e96b5bc6736abb50a7f7927b77e4ab5b57daf.zip
gcc-441e96b5bc6736abb50a7f7927b77e4ab5b57daf.tar.gz
gcc-441e96b5bc6736abb50a7f7927b77e4ab5b57daf.tar.bz2
tree-ssa-dom.c (record_edge_info): Use last_basic_block to allocate info array.
* 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. From-SVN: r100554
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 8e79a46..2bd527a 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;