diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2016-05-16 12:10:28 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2016-05-16 10:10:28 +0000 |
commit | 0b9004ed5642ab56f97347cc9c5ca9a59a2fb6bb (patch) | |
tree | 2fad4cf8e62a6fa8390658fc1bb6621e961d826e /gcc/cgraph.c | |
parent | c1d854fb24ba20ecdd1736117a5e5cd39686e479 (diff) | |
download | gcc-0b9004ed5642ab56f97347cc9c5ca9a59a2fb6bb.zip gcc-0b9004ed5642ab56f97347cc9c5ca9a59a2fb6bb.tar.gz gcc-0b9004ed5642ab56f97347cc9c5ca9a59a2fb6bb.tar.bz2 |
ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic on estimating thunk bodies...
* ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
calls from thunk.
* ipa-inline-transform.c (inline_call): When inlining into thunk produce
gimple body.
(preserve_function_body_p): No need to preserve function body
* cif-codes.def (CIF_THUNK): Remove.
* cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
* g++.dg/ipa/ivinline-7.C: Do not xfail.
* g++.dg/ipa/ivinline-9.C: Do not xfail.
From-SVN: r236274
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 0c6ff93..6fcdbdd 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -3324,7 +3324,7 @@ cgraph_node::verify_node (void) error ("More than one edge out of thunk node"); error_found = true; } - if (gimple_has_body_p (decl)) + if (gimple_has_body_p (decl) && !global.inlined_to) { error ("Thunk is not supposed to have body"); error_found = true; |