From e0310afb08cc322a877a51e232bda6efe59d92ed Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Thu, 3 May 2007 00:34:38 +0200 Subject: [PATCH] re PR rtl-optimization/31771 (g++.dg/gomp/pr26913.C ICEs) PR tree-optimization/31771 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index. From-SVN: r124362 --- gcc/ChangeLog | 5 +++++ gcc/tree-cfg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index acc7956c77c..49dcdb3ee5e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-05-03 Zdenek Dvorak + + PR tree-optimization/31771 + * tree-cfg.c (move_block_to_fn): Assign bb to the correct index. + 2007-05-02 Paul Brook * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow. diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index bf15bceeb4c..efe0a1cb0a1 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -4624,7 +4624,7 @@ move_block_to_fn (struct function *dest_cfun, basic_block bb, } VEC_replace (basic_block, cfg->x_basic_block_info, - cfg->x_last_basic_block, bb); + bb->index, bb); /* The statements in BB need to be associated with a new TREE_BLOCK. Labels need to be associated with a new label-to-block map. */