diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-01-20 20:48:59 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-01-20 19:48:59 +0000 |
commit | bb1e543c64ff31a2e5d6959b0e4260c507c45b5b (patch) | |
tree | 6e5c86ba08bd55d166385c9730c5ac85ac9810d0 /gcc/ipa-inline.h | |
parent | 17cb42833c207240918de8279e171c834093565a (diff) | |
download | gcc-bb1e543c64ff31a2e5d6959b0e4260c507c45b5b.zip gcc-bb1e543c64ff31a2e5d6959b0e4260c507c45b5b.tar.gz gcc-bb1e543c64ff31a2e5d6959b0e4260c507c45b5b.tar.bz2 |
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
Diffstat (limited to 'gcc/ipa-inline.h')
-rw-r--r-- | gcc/ipa-inline.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<cgraph_edge *> *, int *, bool, |