This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51516] New: [trans-mem] problem with TM clone aliases
- From: "patrick.marlier at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Dec 2011 19:05:12 +0000
- Subject: [Bug middle-end/51516] New: [trans-mem] problem with TM clone aliases
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: patrick.marlier@gmail.com
CC: aldyh@gcc.gnu.org, rth@gcc.gnu.org
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.