diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-01 15:12:31 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-01 15:12:31 +0000 |
commit | 04009ada97c55121041815652a9d78a432c61c38 (patch) | |
tree | 642d211297defb60131bfbbe916e43ab1da041fc /gcc/trans-mem.c | |
parent | 54d48997bb13dc7764c024930b2051fae3cd0c34 (diff) | |
download | gcc-04009ada97c55121041815652a9d78a432c61c38.tar.gz |
remove many typedefs
gcc/ChangeLog:
2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
unneeded typedefs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228344 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r-- | gcc/trans-mem.c | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index d9a681f2a34..5b43d86f6da 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -927,7 +927,7 @@ make_pass_diagnose_tm_blocks (gcc::context *ctxt) /* One individual log entry. We may have multiple statements for the same location if neither dominate each other (on different execution paths). */ -typedef struct tm_log_entry +struct tm_log_entry { /* Address to save. */ tree addr; @@ -940,7 +940,7 @@ typedef struct tm_log_entry save/restore sequence. Later, when generating the save sequence we place the SSA temp generated here. */ tree save_var; -} *tm_log_entry_t; +}; /* Log entry hashtable helpers. */ @@ -1009,29 +1009,29 @@ enum thread_memory_type mem_max }; -typedef struct tm_new_mem_map +struct tm_new_mem_map { /* SSA_NAME being dereferenced. */ tree val; enum thread_memory_type local_new_memory; -} tm_new_mem_map_t; +}; /* Hashtable helpers. */ -struct tm_mem_map_hasher : free_ptr_hash <tm_new_mem_map_t> +struct tm_mem_map_hasher : free_ptr_hash <tm_new_mem_map> { - static inline hashval_t hash (const tm_new_mem_map_t *); - static inline bool equal (const tm_new_mem_map_t *, const tm_new_mem_map_t *); + static inline hashval_t hash (const tm_new_mem_map *); + static inline bool equal (const tm_new_mem_map *, const tm_new_mem_map *); }; inline hashval_t -tm_mem_map_hasher::hash (const tm_new_mem_map_t *v) +tm_mem_map_hasher::hash (const tm_new_mem_map *v) { return (intptr_t)v->val >> 4; } inline bool -tm_mem_map_hasher::equal (const tm_new_mem_map_t *v, const tm_new_mem_map_t *c) +tm_mem_map_hasher::equal (const tm_new_mem_map *v, const tm_new_mem_map *c) { return v->val == c->val; } @@ -1362,8 +1362,8 @@ thread_private_new_memory (basic_block entry_block, tree x) { gimple *stmt = NULL; enum tree_code code; - tm_new_mem_map_t **slot; - tm_new_mem_map_t elt, *elt_p; + tm_new_mem_map **slot; + tm_new_mem_map elt, *elt_p; tree val = x; enum thread_memory_type retval = mem_transaction_local; @@ -1383,7 +1383,7 @@ thread_private_new_memory (basic_block entry_block, tree x) /* Optimistically assume the memory is transaction local during processing. This catches recursion into this variable. */ - *slot = elt_p = XNEW (tm_new_mem_map_t); + *slot = elt_p = XNEW (tm_new_mem_map); elt_p->val = val; elt_p->local_new_memory = mem_transaction_local; @@ -1864,8 +1864,6 @@ public: bitmap irr_blocks; }; -typedef struct tm_region *tm_region_p; - /* True if there are pending edge statements to be committed for the current function being scanned in the tmmark pass. */ bool pending_edge_inserts_p; @@ -1970,7 +1968,7 @@ tm_region_init (struct tm_region *region) auto_vec<basic_block> queue; bitmap visited_blocks = BITMAP_ALLOC (NULL); struct tm_region *old_region; - auto_vec<tm_region_p> bb_regions; + auto_vec<tm_region *> bb_regions; all_tm_regions = region; bb = single_succ (ENTRY_BLOCK_PTR_FOR_FN (cfun)); @@ -2594,7 +2592,7 @@ get_tm_region_blocks (basic_block entry_block, // Callback data for collect_bb2reg. struct bb2reg_stuff { - vec<tm_region_p> *bb2reg; + vec<tm_region *> *bb2reg; bool include_uninstrumented_p; }; @@ -2603,7 +2601,7 @@ static void * collect_bb2reg (struct tm_region *region, void *data) { struct bb2reg_stuff *stuff = (struct bb2reg_stuff *)data; - vec<tm_region_p> *bb2reg = stuff->bb2reg; + vec<tm_region *> *bb2reg = stuff->bb2reg; vec<basic_block> queue; unsigned int i; basic_block bb; @@ -2647,13 +2645,13 @@ collect_bb2reg (struct tm_region *region, void *data) // ??? There is currently a hack inside tree-ssa-pre.c to work around the // only known instance of this block sharing. -static vec<tm_region_p> +static vec<tm_region *> get_bb_regions_instrumented (bool traverse_clones, bool include_uninstrumented_p) { unsigned n = last_basic_block_for_fn (cfun); struct bb2reg_stuff stuff; - vec<tm_region_p> ret; + vec<tm_region *> ret; ret.create (n); ret.safe_grow_cleared (n); @@ -2986,7 +2984,7 @@ execute_tm_mark (void) tm_log_init (); - vec<tm_region_p> bb_regions + vec<tm_region *> bb_regions = get_bb_regions_instrumented (/*traverse_clones=*/true, /*include_uninstrumented_p=*/false); struct tm_region *r; @@ -3223,7 +3221,7 @@ public: unsigned int pass_tm_edges::execute (function *fun) { - vec<tm_region_p> bb_regions + vec<tm_region *> bb_regions = get_bb_regions_instrumented (/*traverse_clones=*/false, /*include_uninstrumented_p=*/true); struct tm_region *r; @@ -3307,13 +3305,13 @@ expand_regions (struct tm_region *region, /* A unique TM memory operation. */ -typedef struct tm_memop +struct tm_memop { /* Unique ID that all memory operations to the same location have. */ unsigned int value_id; /* Address of load/store. */ tree addr; -} *tm_memop_t; +}; /* TM memory operation hashtable helpers. */ |