This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
trans-mem: functions making indirect calls are not transformed (issue6194061)
- From: Dave Boutcher <daveboutcher at gmail dot com>
- To: <reply at codereview dot appspotmail dot com>,<patrick dot marlier at unine dot ch>,<gcc-patches at gcc dot gnu dot org>
- Date: Tue, 8 May 2012 17:40:59 -0500 (CDT)
- Subject: trans-mem: functions making indirect calls are not transformed (issue6194061)
gcc/trans-mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c
index 2badf25..24073fa 100644
--- a/gcc/trans-mem.c
+++ b/gcc/trans-mem.c
@@ -4721,7 +4721,7 @@ ipa_tm_transform_clone (struct cgraph_node *node)
/* If this function makes no calls and has no irrevocable blocks,
then there's nothing to do. */
/* ??? Remove non-aborting top-level transactions. */
- if (!node->callees && !d->irrevocable_blocks_clone)
+ if (!node->callees && !node->indirect_calls && !d->irrevocable_blocks_clone)
return;
current_function_decl = d->clone->decl;
--
1.7.9.5
--
This patch is available for review at http://codereview.appspot.com/6194061