From bb1e543c64ff31a2e5d6959b0e4260c507c45b5b Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 20 Jan 2015 20:48:59 +0100 Subject: re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO) PR lto/45375 * ipa-inline.c: Include lto-streamer.h (report_inline_failed_reason): Output source file differences and flags on optimization/target node mismatch. (can_inline_edge_p): Consider caller to be the outer inline function; be less restrictive about matching opimize and optimize_size attributes. (inline_account_function_p): Break out from ... (inline_small_functions): ... here. * ipa-inline-transform.c (clone_inlined_nodes): Use inline_account_function_p. (inline_call): Use optimize attribution; use inline_account_function_p. (inline_transform): Use opt_for_fn. * ipa-inline.h (inline_account_function_p): Declare. From-SVN: r219909 --- gcc/ipa-inline.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/ipa-inline.h') diff --git a/gcc/ipa-inline.h b/gcc/ipa-inline.h index ea7cb09..dfc0053 100644 --- a/gcc/ipa-inline.h +++ b/gcc/ipa-inline.h @@ -256,6 +256,8 @@ void free_growth_caches (void); void compute_inline_parameters (struct cgraph_node *, bool); bool speculation_useful_p (struct cgraph_edge *e, bool anticipate_inlining); unsigned int early_inliner (function *fun); +bool inline_account_function_p (struct cgraph_node *node); + /* In ipa-inline-transform.c */ bool inline_call (struct cgraph_edge *, bool, vec *, int *, bool, -- cgit v1.1