aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-im.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-09-22 21:41:02 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-09-22 19:41:02 +0000
commit46842bfe9c5fb7f609917cad8d3ec8cc5ff30bea (patch)
tree81a83ef7308d61e0af0e1f1e3ed2c94921012d73 /gcc/tree-ssa-loop-im.c
parent114783066e5d1046dfe83bb987008f4c2729e8f6 (diff)
downloadgcc-46842bfe9c5fb7f609917cad8d3ec8cc5ff30bea.zip
gcc-46842bfe9c5fb7f609917cad8d3ec8cc5ff30bea.tar.gz
gcc-46842bfe9c5fb7f609917cad8d3ec8cc5ff30bea.tar.bz2
tree-ssa-ccp.c (prop_value_d): Rename to ...
* tree-ssa-ccp.c (prop_value_d): Rename to ... (ccp_prop_value_t): ... this one to avoid ODR violation; update uses. * ipa-prop.c (struct type_change_info): Rename to ... (prop_type_change_info): ... this; update uses. * ggc-page.c (globals): Rename to ... (static struct ggc_globals): ... this; update uses. * tree-ssa-loop-im.c (mem_ref): Rename to ... (im_mem_ref): ... this; update uses. * ggc-common.c (loc_descriptor): Rename to ... (ggc_loc_descriptor): ... this; update uses. * lra-eliminations.c (elim_table): Rename to ... (lra_elim_table): ... this; update uses. * bitmap.c (output_info): Rename to ... (bitmap_output_info): ... this; update uses. * gcse.c (expr): Rename to ... (gcse_expr) ... this; update uses. (occr): Rename to ... (gcse_occr): .. this; update uses. * tree-ssa-copy.c (prop_value_d): Rename to ... (prop_value_t): ... this. * predict.c (block_info_def): Rename to ... (block_info): ... this; update uses. (edge_info_def): Rename to ... (edge_info): ... this; update uses. * profile.c (bb_info): Rename to ... (bb_profile_info): ... this; update uses. * alloc-pool.c (output_info): Rename to ... (pool_output_info): ... this; update uses. * ipa-cp.c (topo_info): Rename to .. (ipa_topo_info): ... this; update uses. * tree-nrv.c (nrv_data): Rename to ... (nrv_data_t): ... this; update uses. * ipa-split.c (bb_info): Rename to ... (split_bb_info): ... this one. * profile.h (edge_info): Rename to ... (edge_profile_info): ... this one; update uses. * dse.c (bb_info): Rename to ... (dse_bb_info): ... this one; update uses. * cprop.c (occr): Rename to ... (cprop_occr): ... this one; update uses. (expr): Rename to ... (cprop_expr): ... this one; update uses. From-SVN: r215481
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
-rw-r--r--gcc/tree-ssa-loop-im.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c
index a3ebe72..325f777 100644
--- a/gcc/tree-ssa-loop-im.c
+++ b/gcc/tree-ssa-loop-im.c
@@ -116,7 +116,7 @@ typedef struct mem_ref_loc
/* Description of a memory reference. */
-typedef struct mem_ref
+typedef struct im_mem_ref
{
unsigned id; /* ID assigned to the memory reference
(its index in memory_accesses.refs_list) */
@@ -153,15 +153,15 @@ typedef struct mem_ref
/* Mem_ref hashtable helpers. */
-struct mem_ref_hasher : typed_noop_remove <mem_ref>
+struct mem_ref_hasher : typed_noop_remove <im_mem_ref>
{
- typedef mem_ref value_type;
+ typedef im_mem_ref value_type;
typedef tree_node compare_type;
static inline hashval_t hash (const value_type *);
static inline bool equal (const value_type *, const compare_type *);
};
-/* A hash function for struct mem_ref object OBJ. */
+/* A hash function for struct im_mem_ref object OBJ. */
inline hashval_t
mem_ref_hasher::hash (const value_type *mem)
@@ -169,7 +169,7 @@ mem_ref_hasher::hash (const value_type *mem)
return mem->hash;
}
-/* An equality function for struct mem_ref object MEM1 with
+/* An equality function for struct im_mem_ref object MEM1 with
memory reference OBJ2. */
inline bool
@@ -1395,7 +1395,7 @@ force_move_till (tree ref, tree *index, void *data)
/* A function to free the mem_ref object OBJ. */
static void
-memref_free (struct mem_ref *mem)
+memref_free (struct im_mem_ref *mem)
{
mem->accesses_in_loop.release ();
}
@@ -1406,7 +1406,7 @@ memref_free (struct mem_ref *mem)
static mem_ref_p
mem_ref_alloc (tree mem, unsigned hash, unsigned id)
{
- mem_ref_p ref = XOBNEW (&mem_ref_obstack, struct mem_ref);
+ mem_ref_p ref = XOBNEW (&mem_ref_obstack, struct im_mem_ref);
ao_ref_init (&ref->mem, mem);
ref->id = id;
ref->hash = hash;
@@ -1461,7 +1461,7 @@ gather_mem_refs_stmt (struct loop *loop, gimple stmt)
{
tree *mem = NULL;
hashval_t hash;
- mem_ref **slot;
+ im_mem_ref **slot;
mem_ref_p ref;
bool is_stored;
unsigned id;
@@ -1578,7 +1578,7 @@ analyze_memory_references (void)
/* Sort the location list of gathered memory references after their
loop postorder number. */
- mem_ref *ref;
+ im_mem_ref *ref;
FOR_EACH_VEC_ELT (memory_accesses.refs_list, i, ref)
ref->accesses_in_loop.qsort (sort_locs_in_loop_postorder_cmp);