diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2014-11-20 15:10:56 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2014-11-20 15:10:56 +0000 |
commit | 509793471ab9e93d8627a6d74064ec43c36ff4ca (patch) | |
tree | 32d0ea1b5e051e3d370ca84a45ea541a8f404a5d /gcc/cfgexpand.c | |
parent | 907dadbd2ade80fd356071954711375ce9b0c85a (diff) | |
download | gcc-509793471ab9e93d8627a6d74064ec43c36ff4ca.zip gcc-509793471ab9e93d8627a6d74064ec43c36ff4ca.tar.gz gcc-509793471ab9e93d8627a6d74064ec43c36ff4ca.tar.bz2 |
convert trans-mem to hash_table
gcc/
* cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
hash_table.
From-SVN: r217872
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index f61140e..8cdf585 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -2234,16 +2234,16 @@ static void mark_transaction_restart_calls (gimple stmt) { struct tm_restart_node dummy; - void **slot; + tm_restart_node **slot; if (!cfun->gimple_df->tm_restart) return; dummy.stmt = stmt; - slot = htab_find_slot (cfun->gimple_df->tm_restart, &dummy, NO_INSERT); + slot = cfun->gimple_df->tm_restart->find_slot (&dummy, NO_INSERT); if (slot) { - struct tm_restart_node *n = (struct tm_restart_node *) *slot; + struct tm_restart_node *n = *slot; tree list = n->label_or_list; rtx_insn *insn; @@ -6062,10 +6062,7 @@ pass_expand::execute (function *fun) /* After expanding, the tm_restart map is no longer needed. */ if (fun->gimple_df->tm_restart) - { - htab_delete (fun->gimple_df->tm_restart); - fun->gimple_df->tm_restart = NULL; - } + fun->gimple_df->tm_restart = NULL; /* Tag the blocks with a depth number so that change_scope can find the common parent easily. */ |