This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/2] use rtx_code_label in lab_rtx_for_bb hash map


From: Trevor Saunders <tsaunders@mozilla.com>

Hi,

$subject again

bootstrapped + regtested on x86_64-unknown-linux-gnu, and run through
config-list.mk.  Will commit it shortly as preapproved by Jeff in
http://gcc.gnu.org/ml/gcc-patches/2014-08/msg01310.html

Trev

gcc/ChangeLog:

	* cfgexpand.c (label_rtx_for_bb): Change type to
	hash_map<basic_block, rtx_code_label *> *.
	(expand_gimple_basic_block): Adjust.
	(pass_expand::execute): Likewise.
---
 gcc/ChangeLog   | 7 +++++++
 gcc/cfgexpand.c | 8 ++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3144019..ca786c2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
 
+	* cfgexpand.c (label_rtx_for_bb): Change type to
+	hash_map<basic_block, rtx_code_label *> *.
+	(expand_gimple_basic_block): Adjust.
+	(pass_expand::execute): Likewise.
+
+2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
+
 	* 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 7d11b1b..db76897 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<basic_block, rtx> *lab_rtx_for_bb;
+static hash_map<basic_block, rtx_code_label *> *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<basic_block, rtx>;
+  lab_rtx_for_bb = new hash_map<basic_block, rtx_code_label *>;
   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.1.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]