summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2012-02-29 13:06:28 +0000
committerWilliam Schmidt <wschmidt@gcc.gnu.org>2012-02-29 13:06:28 +0000
commit529b39d8ab7bb1902dc4c77c77194525cfe77adf (patch)
treee3fe327c871ceaf3b256317d449503f46052fa01 /gcc/tree-ssa-dom.c
parent43c626f04fef67a60ada8310f0479391fa918dff (diff)
downloadgcc-529b39d8ab7bb1902dc4c77c77194525cfe77adf.tar.gz
re PR tree-optimization/52424 (dom prematurely pops entries from const_and_copies stack)
2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR tree-optimization/52424 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before calling dom_thread_across_edge. From-SVN: r184662
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index a9a658f2c44..4ea9644dd27 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -1779,6 +1779,9 @@ dom_opt_leave_block (struct dom_walk_data *walk_data, basic_block bb)
&& (single_succ_edge (bb)->flags & EDGE_ABNORMAL) == 0
&& potentially_threadable_block (single_succ (bb)))
{
+ /* Push a marker on the stack, which thread_across_edge expects
+ and will remove. */
+ VEC_safe_push (tree, heap, const_and_copies_stack, NULL_TREE);
dom_thread_across_edge (walk_data, single_succ_edge (bb));
}
else if ((last = last_stmt (bb))