aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-chkp.c
diff options
context:
space:
mode:
authorIlya Enkovich <ilya.enkovich@intel.com>2015-03-19 14:01:31 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2015-03-19 14:01:31 +0000
commit5cdd35db59ff0a28e8d62001e9042080e2323d3f (patch)
tree7cb94b002d6db4c813be4542dfd85303ea537ffb /gcc/ipa-chkp.c
parent8cf0fb5cefb981f16c3bae9c00d1c6d8f5886a0d (diff)
downloadgcc-5cdd35db59ff0a28e8d62001e9042080e2323d3f.zip
gcc-5cdd35db59ff0a28e8d62001e9042080e2323d3f.tar.gz
gcc-5cdd35db59ff0a28e8d62001e9042080e2323d3f.tar.bz2
ipa-chkp.c (chkp_maybe_create_clone): Don't try to clone instrumented thunks.
* ipa-chkp.c (chkp_maybe_create_clone): Don't try to clone instrumented thunks. From-SVN: r221516
Diffstat (limited to 'gcc/ipa-chkp.c')
-rw-r--r--gcc/ipa-chkp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-chkp.c b/gcc/ipa-chkp.c
index 3bea06a..a9933e2 100644
--- a/gcc/ipa-chkp.c
+++ b/gcc/ipa-chkp.c
@@ -592,7 +592,8 @@ chkp_maybe_create_clone (tree fndecl)
/* Clone all thunks. */
for (e = node->callers; e; e = e->next_caller)
if (e->caller->thunk.thunk_p
- && !e->caller->thunk.add_pointer_bounds_args)
+ && !e->caller->thunk.add_pointer_bounds_args
+ && !e->caller->instrumentation_clone)
{
struct cgraph_node *thunk
= chkp_maybe_create_clone (e->caller->decl);