diff options
author | Richard Guenther <rguenther@suse.de> | 2007-06-23 18:17:57 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-06-23 18:17:57 +0000 |
commit | e36711f3cd476b24b011f18953aa3ed3e9a70a36 (patch) | |
tree | 46f2dd58d57c762a067b534222a23a553e776f4e /gcc/tree-inline.c | |
parent | 630ef467a860ff6db6bba710fd46700f4f363496 (diff) | |
download | gcc-e36711f3cd476b24b011f18953aa3ed3e9a70a36.zip gcc-e36711f3cd476b24b011f18953aa3ed3e9a70a36.tar.gz gcc-e36711f3cd476b24b011f18953aa3ed3e9a70a36.tar.bz2 |
re PR tree-optimization/16876 (ICE on testcase with -O3 in fold-const)
2007-06-23 Richard Guenther <rguenther@suse.de>
PR tree-optimization/16876
PR middle-end/29478
* tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
for CALL_EXPRs.
* tree-inline.c (initialize_inlined_parameters): Do not call
lang_hooks.tree_inlining.convert_parm_for_inlining.
* cgraphbuild.c (initialize_inline_failed): Set inline failed
reason for mismatched types.
* gimplify.c (gimplify_call_expr): Verify the call expression
arguments match the called function type signature. Otherwise
mark the call expression to be not considered for inlining
using CALL_CANNOT_INLINE_P flag.
* ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
edges call expression.
(cgraph_decide_inlining_of_small_function): Likewise.
(cgraph_decide_inlining): Likewise.
* c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
Remove define.
* c-tree.h (c_convert_parm_for_inlining): Remove declaration.
* c-typeck.c (c_convert_parm_for_inlining): Remove.
* langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
Remove declaration.
(LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
* langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
Remove.
* langhooks.h (struct lang_hooks_for_tree_inlining): Remove
convert_parm_for_inlining member.
* gcc.dg/pr29254.c: The warning is bogus.
* gcc.dg/warn-1.c: Likewise.
* gcc.dg/assign-warn-3.c: Likewise.
* gcc.dg/noncompile/pr16876.c: The testcase is bogus, remove.
From-SVN: r125974
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 0181686..054ca8c 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1451,7 +1451,6 @@ initialize_inlined_parameters (copy_body_data *id, tree exp, tree a; tree p; tree vars = NULL_TREE; - int argnum = 0; call_expr_arg_iterator iter; tree static_chain = CALL_EXPR_STATIC_CHAIN (exp); @@ -1462,17 +1461,7 @@ initialize_inlined_parameters (copy_body_data *id, tree exp, equivalent VAR_DECL, appropriately initialized. */ for (p = parms, a = first_call_expr_arg (exp, &iter); p; a = next_call_expr_arg (&iter), p = TREE_CHAIN (p)) - { - tree value; - - ++argnum; - - /* Find the initializer. */ - value = lang_hooks.tree_inlining.convert_parm_for_inlining - (p, a, fn, argnum); - - setup_one_parameter (id, p, value, fn, bb, &vars); - } + setup_one_parameter (id, p, a, fn, bb, &vars); /* Initialize the static chain. */ p = DECL_STRUCT_FUNCTION (fn)->static_chain_decl; |