diff options
author | pmarlier <pmarlier@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-17 02:57:56 +0000 |
---|---|---|
committer | pmarlier <pmarlier@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-17 02:57:56 +0000 |
commit | 2670559d64d698557a1495f152030165891603d8 (patch) | |
tree | 734f60a84f1033bf4846899994016b28cf532b76 /gcc/trans-mem.c | |
parent | 0fc204b1686142b49a0747ecc23debe30be7a80d (diff) | |
download | gcc-2670559d64d698557a1495f152030165891603d8.tar.gz |
2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
Patrick Marlier <patrick.marlier@gmail.com>
* trans-mem.c (ipa_tm_transform_clone): Transform functions with
indirect calls.
testsuite/
2012-05-16 Patrick Marlier <patrick.marlier@gmail.com>
* gcc.dg/tm/indirect-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r-- | gcc/trans-mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index 0a021b421e3..51dd7fe13ed 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -4732,7 +4732,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->symbol.decl; |