diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-03-14 22:26:14 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-03-14 22:26:14 +0000 |
commit | ae2bcd98fa6d0e389638e2c3cf4cf8a6c79809b4 (patch) | |
tree | 0e3d992e1d5de0e7bb1692b921740b6575918627 /gcc/tree-inline.c | |
parent | 89acbae0bce29e5f7168deb51e5f86ffdbe28d5f (diff) | |
download | gcc-ae2bcd98fa6d0e389638e2c3cf4cf8a6c79809b4.zip gcc-ae2bcd98fa6d0e389638e2c3cf4cf8a6c79809b4.tar.gz gcc-ae2bcd98fa6d0e389638e2c3cf4cf8a6c79809b4.tar.bz2 |
alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) () with lang_hooks.foo ().
* alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
with lang_hooks.foo ().
* builtins.c (expand_builtin_va_arg): Likewise.
* c-common.c (fname_as_string, c_common_truthvalue_conversion,
c_common_type_for_mode, c_common_nodes_and_builtins,
handle_mode_attribute, handle_vector_size_attribute): Likewise.
* c-convert.c (convert): Likewise.
* c-format.c (check_format_types): Likewise.
* c-objc-common.c (c_tree_printer): Likewise.
* c-typeck.c (build_unary_op, build_conditional_expr,
build_binary_op): Likewise.
* calls.c (try_to_integrate, expand_call,
emit_library_call_value_1): Likewise.
* cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
Likewise.
* cgraphunit.c (record_call_1, cgraph_analyze_function,
cgraph_expand_function): Likewise.
* convert.c (convert_to_pointer, convert_to_integer): Likewise.
* coverage.c (build_fn_info_type, build_ctr_info_type,
build_gcov_info, create_coverage): Likewise.
* dbxout.c (dbxout_init): Likewise.
* diagnostic.c (diagnostic_report_current_function): Likewise.
* dojump.c (do_jump): Likewise.
* dwarf2out.c (dwarf2_name): Likewise.
* except.c (init_eh): Likewise.
* explow.c (expr_size, int_expr_size): Likewise.
* expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
Likewise.
* expr.c (store_expr, store_constructor, safe_from_p,
expand_expr_real, do_store_flag, try_casesi): Likewise.
* function.c (push_function_context_to, pop_function_context_from,
free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
put_var_into_stack, allocate_struct_function, current_function_name):
Likewise.
* integrate.c (copy_decl_for_inlining, expand_inline_function):
Likewise.
* langhooks.c (lhd_clear_binding_stack, write_global_declarations,
lhd_print_error_function): Likewise.
* opts.c (handle_option, decode_options): Likewise.
* passes.c (open_dump_file): Likewise.
* print-tree.c (print_node): Likewise.
* stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
expand_decl_cleanup, emit_case_nodes): Likewise.
* stor-layout.c (variable_size): Likewise.
* toplev.c (announce_function, wrapup_global_declarations,
check_global_declarations, compile_file, default_tree_printer,
process_options, lang_dependent_init, finalize): Likewise.
* tree-dump.c (dequeue_and_dump): Likewise.
* tree-inline.c (remap_decl, remap_block, copy_body_r,
initialize_inlined_parameters, declare_return_variable,
inlinable_function_p, expand_call_inline, optimize_inline_calls,
walk_tree, copy_tree_r): Likewise.
* tree-optimize.c (tree_rest_of_compilation): Likewise.
* tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
variably_modified_type_p, dump_tree_statistics): Likewise.
* varasm.c (assemble_variable, compare_constant, copy_constant,
force_const_mem, compute_reloc_for_constant, output_constant,
output_addressed_constants, initializer_constant_valid_p): Likewise.
From-SVN: r79481
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index ba5eb7a..1d410af 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -154,7 +154,7 @@ remap_decl (tree decl, inline_data *id) /* We only remap local variables in the current function. */ fn = VARRAY_TOP_TREE (id->fns); - if (! (*lang_hooks.tree_inlining.auto_var_in_fn_p) (decl, fn)) + if (! lang_hooks.tree_inlining.auto_var_in_fn_p (decl, fn)) return NULL_TREE; /* See if we have remapped this declaration. */ @@ -183,7 +183,7 @@ remap_decl (tree decl, inline_data *id) #ifndef INLINER_FOR_JAVA if (! DECL_NAME (t) && TREE_TYPE (t) - && (*lang_hooks.tree_inlining.anon_aggr_type_p) (TREE_TYPE (t))) + && lang_hooks.tree_inlining.anon_aggr_type_p (TREE_TYPE (t))) { /* For a VAR_DECL of anonymous type, we must also copy the member VAR_DECLS here and rechain the DECL_ANON_UNION_ELEMS. */ @@ -390,7 +390,7 @@ remap_block (tree *block, tree decls, inline_data *id) /* We're building a clone; DECL_INITIAL is still error_mark_node, and current_binding_level is the parm binding level. */ - (*lang_hooks.decls.insert_block) (new_block); + lang_hooks.decls.insert_block (new_block); else { /* Attach this new block after the DECL_INITIAL block for the @@ -588,7 +588,7 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data) variables. We don't want to copy static variables; there's only one of those, no matter how many times we inline the containing function. */ - else if ((*lang_hooks.tree_inlining.auto_var_in_fn_p) (*tp, fn)) + else if (lang_hooks.tree_inlining.auto_var_in_fn_p (*tp, fn)) { tree new_decl; @@ -648,7 +648,7 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data) { if (TREE_CODE (*tp) == MODIFY_EXPR && TREE_OPERAND (*tp, 0) == TREE_OPERAND (*tp, 1) - && ((*lang_hooks.tree_inlining.auto_var_in_fn_p) + && (lang_hooks.tree_inlining.auto_var_in_fn_p (TREE_OPERAND (*tp, 0), fn))) { /* Some assignments VAR = VAR; don't generate any rtl code @@ -670,7 +670,7 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data) } } else if (TREE_CODE (*tp) == ADDR_EXPR - && ((*lang_hooks.tree_inlining.auto_var_in_fn_p) + && (lang_hooks.tree_inlining.auto_var_in_fn_p (TREE_OPERAND (*tp, 0), fn))) { /* Get rid of &* from inline substitutions. It can occur when @@ -764,7 +764,7 @@ DECL_ARGUMENTS (fn); ++argnum; /* Find the initializer. */ - value = (*lang_hooks.tree_inlining.convert_parm_for_inlining) + value = lang_hooks.tree_inlining.convert_parm_for_inlining (p, a ? TREE_VALUE (a) : NULL_TREE, fn, argnum); /* If the parameter is never assigned to, we may not need to @@ -860,7 +860,7 @@ DECL_ARGUMENTS (fn); } /* See if we need to clean up the declaration. */ - cleanup = (*lang_hooks.maybe_build_cleanup) (var); + cleanup = lang_hooks.maybe_build_cleanup (var); if (cleanup) { tree cleanup_stmt; @@ -946,7 +946,7 @@ declare_return_variable (struct inline_data *id, tree return_slot_addr, } #ifndef INLINER_FOR_JAVA - var = ((*lang_hooks.tree_inlining.copy_res_decl_for_inlining) + var = (lang_hooks.tree_inlining.copy_res_decl_for_inlining (result, fn, VARRAY_TREE (id->fns, 0), id->decl_map, &need_return_decl, return_slot_addr)); @@ -970,7 +970,7 @@ declare_return_variable (struct inline_data *id, tree return_slot_addr, if (need_return_decl) return build_stmt (DECL_STMT, var); #else /* INLINER_FOR_JAVA */ - *var = ((*lang_hooks.tree_inlining.copy_res_decl_for_inlining) + *var = (lang_hooks.tree_inlining.copy_res_decl_for_inlining (result, fn, VARRAY_TREE (id->fns, 0), id->decl_map, &need_return_decl, return_slot_addr)); @@ -1170,7 +1170,7 @@ inlinable_function_p (tree fn) in C++ it may result in template instantiation.) If the function is not inlinable for language-specific reasons, it is left up to the langhook to explain why. */ - inlinable = !(*lang_hooks.tree_inlining.cannot_inline_tree_fn) (&fn); + inlinable = !lang_hooks.tree_inlining.cannot_inline_tree_fn (&fn); /* If we don't have the function body available, we can't inline it. However, this should not be recorded since we also get here for @@ -1352,7 +1352,7 @@ expand_call_inline (tree *tp, int *walk_subtrees, void *data) return NULL_TREE; } - if (! (*lang_hooks.tree_inlining.start_inlining) (fn)) + if (! lang_hooks.tree_inlining.start_inlining (fn)) return NULL_TREE; /* Set the current filename and line number to the function we are @@ -1592,7 +1592,7 @@ expand_call_inline (tree *tp, int *walk_subtrees, void *data) /* Don't walk into subtrees. We've already handled them above. */ *walk_subtrees = 0; - (*lang_hooks.tree_inlining.end_inlining) (fn); + lang_hooks.tree_inlining.end_inlining (fn); /* Keep iterating. */ return NULL_TREE; @@ -1642,7 +1642,7 @@ optimize_inline_calls (tree fn) prev_fn = current_function_decl; } - prev_fn = ((*lang_hooks.tree_inlining.add_pending_fn_decls) + prev_fn = (lang_hooks.tree_inlining.add_pending_fn_decls (&id.fns, prev_fn)); /* Create the list of functions this call will inline. */ @@ -1763,7 +1763,7 @@ walk_tree (tree *tp, walk_tree_fn func, void *data, void *htab_) if (!walk_subtrees) { if (STATEMENT_CODE_P (code) || code == TREE_LIST - || (*lang_hooks.tree_inlining.tree_chain_matters_p) (*tp)) + || lang_hooks.tree_inlining.tree_chain_matters_p (*tp)) /* But we still need to check our siblings. */ WALK_SUBTREE_TAIL (TREE_CHAIN (*tp)); else @@ -1838,8 +1838,8 @@ walk_tree (tree *tp, walk_tree_fn func, void *data, void *htab_) /* Also examine various special fields, below. */ } - result = (*lang_hooks.tree_inlining.walk_subtrees) (tp, &walk_subtrees, func, - data, htab); + result = lang_hooks.tree_inlining.walk_subtrees (tp, &walk_subtrees, func, + data, htab); if (result || ! walk_subtrees) return result; @@ -1973,7 +1973,7 @@ copy_tree_r (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) || TREE_CODE_CLASS (code) == 'c' || code == TREE_LIST || code == TREE_VEC - || (*lang_hooks.tree_inlining.tree_chain_matters_p) (*tp)) + || lang_hooks.tree_inlining.tree_chain_matters_p (*tp)) { /* Because the chain gets clobbered when we make a copy, we save it here. */ @@ -1986,7 +1986,7 @@ copy_tree_r (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) walk_tree to walk into the chain as well. */ if (code == PARM_DECL || code == TREE_LIST #ifndef INLINER_FOR_JAVA - || (*lang_hooks.tree_inlining.tree_chain_matters_p) (*tp) + || lang_hooks.tree_inlining.tree_chain_matters_p (*tp) || STATEMENT_CODE_P (code)) TREE_CHAIN (*tp) = chain; @@ -1995,7 +1995,7 @@ copy_tree_r (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) if (TREE_CODE (*tp) == SCOPE_STMT) SCOPE_STMT_BLOCK (*tp) = NULL_TREE; #else /* INLINER_FOR_JAVA */ - || (*lang_hooks.tree_inlining.tree_chain_matters_p) (*tp)) + || lang_hooks.tree_inlining.tree_chain_matters_p (*tp)) TREE_CHAIN (*tp) = chain; #endif /* INLINER_FOR_JAVA */ } |