diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-16 19:33:02 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-16 19:33:02 +0000 |
commit | 18cbf8e0863ffde9f056797bda1edda609448ec5 (patch) | |
tree | 7c95157fdec589bf4c2449659d0737681576009a /gcc/ipa-inline-analysis.c | |
parent | 34cbd75f6c452d498a3a322460ba7656020a44fa (diff) | |
download | gcc-18cbf8e0863ffde9f056797bda1edda609448ec5.tar.gz |
* ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
into instrumentation thunks.
* cif-code.def (CIF_CHKP): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236299 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline-analysis.c')
-rw-r--r-- | gcc/ipa-inline-analysis.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 82d1774abcb..8b5ca86c0d6 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -2943,7 +2943,13 @@ compute_inline_parameters (struct cgraph_node *node, bool early) info->self_size = info->size; info->self_time = info->time; /* We can not inline instrumetnation clones. */ - info->inlinable = !node->thunk.add_pointer_bounds_args; + if (node->thunk.add_pointer_bounds_args) + { + info->inlinable = false; + node->callees->inline_failed = CIF_CHKP; + } + else + info->inlinable = true; } else { |