From 134aa83c6f547bb80346882188e457db6a268b77 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Wed, 3 Sep 2014 00:53:29 +0000 Subject: [PATCH] use rtx_code_label in lab_rtx_for_bb hash map gcc/ChangeLog: * cfgexpand.c (label_rtx_for_bb): Change type to hash_map *. (expand_gimple_basic_block): Adjust. (pass_expand::execute): Likewise. From-SVN: r214842 --- gcc/ChangeLog | 7 +++++++ gcc/cfgexpand.c | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 31440198c7e..ca786c20efc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2014-09-02 Trevor Saunders + * cfgexpand.c (label_rtx_for_bb): Change type to + hash_map *. + (expand_gimple_basic_block): Adjust. + (pass_expand::execute): Likewise. + +2014-09-02 Trevor Saunders + * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c, config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md, config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c, diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 7d11b1b5df7..db7689767b9 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -1974,7 +1974,7 @@ maybe_dump_rtl_for_gimple_stmt (gimple stmt, rtx_insn *since) /* Maps the blocks that do not contain tree labels to rtx labels. */ -static hash_map *lab_rtx_for_bb; +static hash_map *lab_rtx_for_bb; /* Returns the label_rtx expression for a label starting basic block BB. */ @@ -1988,7 +1988,7 @@ label_rtx_for_bb (basic_block bb ATTRIBUTE_UNUSED) if (bb->flags & BB_RTL) return block_label (bb); - rtx *elt = lab_rtx_for_bb->get (bb); + rtx_code_label **elt = lab_rtx_for_bb->get (bb); if (elt) return *elt; @@ -4945,7 +4945,7 @@ expand_gimple_basic_block (basic_block bb, bool disable_tail_calls) stmt = NULL; } - rtx *elt = lab_rtx_for_bb->get (bb); + rtx_code_label **elt = lab_rtx_for_bb->get (bb); if (stmt || elt) { @@ -5815,7 +5815,7 @@ pass_expand::execute (function *fun) FOR_EACH_EDGE (e, ei, ENTRY_BLOCK_PTR_FOR_FN (fun)->succs) e->flags &= ~EDGE_EXECUTABLE; - lab_rtx_for_bb = new hash_map; + lab_rtx_for_bb = new hash_map; FOR_BB_BETWEEN (bb, init_block->next_bb, EXIT_BLOCK_PTR_FOR_FN (fun), next_bb) bb = expand_gimple_basic_block (bb, var_ret_seq != NULL_RTX); -- 2.11.4.GIT