On 11/30/2011 08:25 PM, Patrick Marlier wrote:
> In the current version, the original function and its clone are marked as 
> taken with cgraph_mark_address_taken_node. But it seems not enough and it has 
> to be marked as needed.
> It comes with a testcase (testsuite/g++.dg/tm/ctor-used.C).
> 
> Passed all TM tests.
> 
> PS: Note that there is still a problem with the testcase because 
> _ITM_getTMCloneOrIrrevocable is called instead of _ITM_getTMCloneSafe (it is 
> an atomic not relaxed transaction). I can have a look if you want.
> 
> 2011-11-30  Patrick Marlier  <patrick.marl...@gmail.com>
> 
>     * trans-mem.c (ipa_tm_insert_gettmclone_call): mark original
>     and clone as needed.
> 

There are more problems than that.  This function is defined in this 
file, and somehow we declined to clone it.  We should not have attempted
to call _ITM_getTMCloneOrIrrevocable or _ITM_getTMCloneSafe.


r~

Reply via email to