From 89faf322d87cbfad71c079acc8b96a5a145a60f7 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Mon, 5 Dec 2011 08:51:53 +0000 Subject: cgraph.c (cgraph_create_edge_1): Initialize call_stmt_cannot_inline_p from the stmt if possible. 2011-12-05 Richard Guenther * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_cannot_inline_p from the stmt if possible. (cgraph_make_edge_direct): Likewise. * gimple-streamer-in.c (input_gimple_stmt): Do not call gimple_call_set_cannot_inline. * gimple.h (enum gf_mask): Remove GF_CALL_CANNOT_INLINE, shift values. (gimple_call_set_cannot_inline): Remove. (gimple_call_cannot_inline_p): Likewise. * ipa-inline-analysis.c (initialize_inline_failed): Look at the edge call_stmt_cannot_inline_p flag. * ipa-inline.c (can_inline_edge_p): Likewise. (early_inliner): Only update the edge flag. * ipa-prop.c (update_indirect_edges_after_inlining): Likewise. (ipa_modify_call_arguments): Do not call gimple_call_set_cannot_inline. * cgraphunit.c (assemble_thunk): Likewise. * gimple-fold.c (gimple_fold_call): Likewise. * tree.h (CALL_CANNOT_INLINE_P): Remove. * tree-mudflap.c (mf_xform_statements): Do not modify alloca calls. * builtins.c (expand_builtin_alloca): With -fmudflap do not expand alloca calls inline. * cfgexpand.c (expand_call_stmt): Do not set CALL_CANNOT_INLINE_P. * gimple.c (gimple_build_call_from_tree): Do not read CALL_CANNOT_INLINE_P. * gimplify.c (gimplify_call_expr): Do not copy CALL_CANNOT_INLINE_P. From-SVN: r182001 --- gcc/tree-mudflap.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'gcc/tree-mudflap.c') diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index 9479aeb..67fea75 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -929,7 +929,6 @@ mf_xform_derefs_1 (gimple_stmt_iterator *iter, tree *tp, } /* Transform 1) Memory references. - 2) BUILTIN_ALLOCA calls. */ static void mf_xform_statements (void) @@ -970,16 +969,6 @@ mf_xform_statements (void) } break; - case GIMPLE_CALL: - { - tree fndecl = gimple_call_fndecl (s); - if (fndecl && (DECL_FUNCTION_CODE (fndecl) == BUILT_IN_ALLOCA - || (DECL_FUNCTION_CODE (fndecl) - == BUILT_IN_ALLOCA_WITH_ALIGN))) - gimple_call_set_cannot_inline (s, true); - } - break; - default: ; } -- cgit v1.1