http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51516
Bug #: 51516
Summary: [trans-mem] problem with TM clone aliases
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Created attachment 26060
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26060
patch for trans-mem.c
PR51347 shows up a problem due to the TM IPA rework.
Indeed, an alias can get called but tm cg data are in the parent of the alias.
So it ends up to calls _ITM_getTMCloneOrIrrevocable for the alias which is
wrong.
Patch attached with testcase.
Bootstrapped and regtested.
http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00225.html
Patrick Marlier.