From: Trevor Saunders Date: Wed, 3 Sep 2014 00:53:29 +0000 (+0000) Subject: use rtx_code_label in lab_rtx_for_bb hash map X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=134aa83c6f547bb80346882188e457db6a268b77;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 31440198c7e..ca786c20efc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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, 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);