diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 902de0564e29..d5e191ab7ed1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-03-19 Ilya Enkovich + + * ipa-chkp.c (chkp_maybe_create_clone): Don't try to + clone instrumented thunks. + 2015-03-19 Richard Biener Revert diff --git a/gcc/ipa-chkp.c b/gcc/ipa-chkp.c index 3bea06ab7508..a9933e237c41 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);