PR 51516: fix problem with TM clone aliases

Aldy Hernandez aldyh@redhat.com
Wed Dec 14 14:26:00 GMT 2011


Patrick, I see what you mean.  Your patch looks sensible, but Richard 
will have to review.

Richard, here is a resubmission of Patrick's patch, as the original 
patch had the wrong description, and one of the testcases no longer 
applied.  Could you please review?

The problem here is that a __comp_ctor is a weak alias.  When we look at 
the tm_ipa_cg_data for the alias, it is the original/parent that 
actually has such information.  Eventually we call 
_ITM_getTMCloneOrIrrevocable for the alias, when we should be calling 
the constructor directly.

This patch looks at the parent's tm_ipa_cg_data.

I don't understand why we don't apply similar logic to every other 
get_cg_data call, but I will let you two sort this out, and I will apply 
if/when approved.

Thanks guys.

p.s. The original submission is here (though I have restated everything 
above: http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00225.html).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: curr
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111214/b5facbf8/attachment.ksh>


More information about the Gcc-patches mailing list