ipa-chkp.c (chkp_maybe_create_clone): Don't try to clone instrumented thunks.
authorIlya Enkovich <ilya.enkovich@intel.com>
Thu, 19 Mar 2015 14:01:31 +0000 (14:01 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Thu, 19 Mar 2015 14:01:31 +0000 (14:01 +0000)
* ipa-chkp.c (chkp_maybe_create_clone): Don't try to
clone instrumented thunks.

From-SVN: r221516

gcc/ChangeLog
gcc/ipa-chkp.c

index 902de0564e29aeec020912632d312e3e6832eb0a..d5e191ab7ed1aea0fa0a318229d4861beed8932c 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
+
+       * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
+       clone instrumented thunks.
+
 2015-03-19  Richard Biener  <rguenther@suse.de>
 
        Revert
index 3bea06ab75087e7b630744eb51af8da57680f360..a9933e237c418fc14ffa0d076e2222afc2733570 100644 (file)
@@ -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);