re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO)
authorJan Hubicka <hubicka@ucw.cz>
Tue, 20 Jan 2015 19:48:59 +0000 (20:48 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 20 Jan 2015 19:48:59 +0000 (19:48 +0000)
commitbb1e543c64ff31a2e5d6959b0e4260c507c45b5b
tree6e5c86ba08bd55d166385c9730c5ac85ac9810d0
parent17cb42833c207240918de8279e171c834093565a
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/ChangeLog
gcc/ipa-inline-transform.c
gcc/ipa-inline.c
gcc/ipa-inline.h