diff options
Diffstat (limited to 'gcc/cgraphbuild.c')
-rw-r--r-- | gcc/cgraphbuild.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/gcc/cgraphbuild.c b/gcc/cgraphbuild.c index f033bddfd53..1490cb7aa3e 100644 --- a/gcc/cgraphbuild.c +++ b/gcc/cgraphbuild.c @@ -74,16 +74,16 @@ record_reference (tree *tp, int *walk_subtrees, void *data) struct cgraph_node *node = cgraph_get_create_real_symbol_node (decl); if (!ctx->only_vars) cgraph_mark_address_taken_node (node); - ipa_record_reference ((symtab_node)ctx->varpool_node, - (symtab_node)node, + ipa_record_reference (ctx->varpool_node, + node, IPA_REF_ADDR, NULL); } if (TREE_CODE (decl) == VAR_DECL) { struct varpool_node *vnode = varpool_node_for_decl (decl); - ipa_record_reference ((symtab_node)ctx->varpool_node, - (symtab_node)vnode, + ipa_record_reference (ctx->varpool_node, + vnode, IPA_REF_ADDR, NULL); } *walk_subtrees = 0; @@ -121,8 +121,8 @@ record_type_list (struct cgraph_node *node, tree list) if (TREE_CODE (type) == VAR_DECL) { struct varpool_node *vnode = varpool_node_for_decl (type); - ipa_record_reference ((symtab_node)node, - (symtab_node)vnode, + ipa_record_reference (node, + vnode, IPA_REF_ADDR, NULL); } } @@ -137,12 +137,12 @@ record_eh_tables (struct cgraph_node *node, struct function *fun) { eh_region i; - if (DECL_FUNCTION_PERSONALITY (node->symbol.decl)) + if (DECL_FUNCTION_PERSONALITY (node->decl)) { struct cgraph_node *per_node; - per_node = cgraph_get_create_real_symbol_node (DECL_FUNCTION_PERSONALITY (node->symbol.decl)); - ipa_record_reference ((symtab_node)node, (symtab_node)per_node, IPA_REF_ADDR, NULL); + per_node = cgraph_get_create_real_symbol_node (DECL_FUNCTION_PERSONALITY (node->decl)); + ipa_record_reference (node, per_node, IPA_REF_ADDR, NULL); cgraph_mark_address_taken_node (per_node); } @@ -224,7 +224,7 @@ mark_address (gimple stmt, tree addr, void *data) struct cgraph_node *node = cgraph_get_create_real_symbol_node (addr); cgraph_mark_address_taken_node (node); ipa_record_reference ((symtab_node)data, - (symtab_node)node, + node, IPA_REF_ADDR, stmt); } else if (addr && TREE_CODE (addr) == VAR_DECL @@ -233,7 +233,7 @@ mark_address (gimple stmt, tree addr, void *data) struct varpool_node *vnode = varpool_node_for_decl (addr); ipa_record_reference ((symtab_node)data, - (symtab_node)vnode, + vnode, IPA_REF_ADDR, stmt); } @@ -253,7 +253,7 @@ mark_load (gimple stmt, tree t, void *data) struct cgraph_node *node = cgraph_get_create_real_symbol_node (t); cgraph_mark_address_taken_node (node); ipa_record_reference ((symtab_node)data, - (symtab_node)node, + node, IPA_REF_ADDR, stmt); } else if (t && TREE_CODE (t) == VAR_DECL @@ -262,7 +262,7 @@ mark_load (gimple stmt, tree t, void *data) struct varpool_node *vnode = varpool_node_for_decl (t); ipa_record_reference ((symtab_node)data, - (symtab_node)vnode, + vnode, IPA_REF_LOAD, stmt); } return false; @@ -280,7 +280,7 @@ mark_store (gimple stmt, tree t, void *data) struct varpool_node *vnode = varpool_node_for_decl (t); ipa_record_reference ((symtab_node)data, - (symtab_node)vnode, + vnode, IPA_REF_STORE, stmt); } return false; @@ -337,21 +337,21 @@ build_cgraph_edges (void) && gimple_omp_parallel_child_fn (stmt)) { tree fn = gimple_omp_parallel_child_fn (stmt); - ipa_record_reference ((symtab_node)node, - (symtab_node)cgraph_get_create_real_symbol_node (fn), + ipa_record_reference (node, + cgraph_get_create_real_symbol_node (fn), IPA_REF_ADDR, stmt); } if (gimple_code (stmt) == GIMPLE_OMP_TASK) { tree fn = gimple_omp_task_child_fn (stmt); if (fn) - ipa_record_reference ((symtab_node)node, - (symtab_node) cgraph_get_create_real_symbol_node (fn), + ipa_record_reference (node, + cgraph_get_create_real_symbol_node (fn), IPA_REF_ADDR, stmt); fn = gimple_omp_task_copy_fn (stmt); if (fn) - ipa_record_reference ((symtab_node)node, - (symtab_node)cgraph_get_create_real_symbol_node (fn), + ipa_record_reference (node, + cgraph_get_create_real_symbol_node (fn), IPA_REF_ADDR, stmt); } } @@ -437,7 +437,7 @@ rebuild_cgraph_edges (void) gimple_stmt_iterator gsi; cgraph_node_remove_callees (node); - ipa_remove_all_references (&node->symbol.ref_list); + ipa_remove_all_references (&node->ref_list); node->count = ENTRY_BLOCK_PTR->count; @@ -485,7 +485,7 @@ cgraph_rebuild_references (void) int i; /* Keep speculative references for further cgraph edge expansion. */ - for (i = 0; ipa_ref_list_reference_iterate (&node->symbol.ref_list, i, ref);) + for (i = 0; ipa_ref_list_reference_iterate (&node->ref_list, i, ref);) if (!ref->speculative) ipa_remove_reference (ref); else @@ -547,7 +547,7 @@ remove_cgraph_callee_edges (void) { struct cgraph_node *node = cgraph_get_node (current_function_decl); cgraph_node_remove_callees (node); - ipa_remove_all_references (&node->symbol.ref_list); + ipa_remove_all_references (&node->ref_list); return 0; } |