public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/51516] New: [trans-mem] problem with TM clone aliases
@ 2011-12-12 19:20 patrick.marlier at gmail dot com
  2012-01-06 18:17 ` [Bug middle-end/51516] " aldyh at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: patrick.marlier at gmail dot com @ 2011-12-12 19:20 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/51516] [trans-mem] problem with TM clone aliases
  2011-12-12 19:20 [Bug middle-end/51516] New: [trans-mem] problem with TM clone aliases patrick.marlier at gmail dot com
@ 2012-01-06 18:17 ` aldyh at gcc dot gnu.org
  2012-01-10 16:51 ` aldyh at gcc dot gnu.org
  2012-01-10 16:53 ` aldyh at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: aldyh at gcc dot gnu.org @ 2012-01-06 18:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51516

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-01-06
         AssignedTo|unassigned at gcc dot       |aldyh at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/51516] [trans-mem] problem with TM clone aliases
  2011-12-12 19:20 [Bug middle-end/51516] New: [trans-mem] problem with TM clone aliases patrick.marlier at gmail dot com
  2012-01-06 18:17 ` [Bug middle-end/51516] " aldyh at gcc dot gnu.org
@ 2012-01-10 16:51 ` aldyh at gcc dot gnu.org
  2012-01-10 16:53 ` aldyh at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: aldyh at gcc dot gnu.org @ 2012-01-10 16:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51516

--- Comment #1 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2012-01-10 16:50:56 UTC ---
Author: aldyh
Date: Tue Jan 10 16:50:41 2012
New Revision: 183070

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183070
Log:
        PR middle-end/51516
        * trans-mem.c (get_cg_data): Traverse aliases if requested.
        (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
        (ipa_tm_note_irrevocable): Same.
        (ipa_tm_scan_irr_block): Same.
        (ipa_tm_decrement_clone_counts): Same.
        (ipa_tm_scan_irr_function): Same.
        (ipa_tm_create_version_alias): Same.
        (ipa_tm_create_version): Same.
        (ipa_tm_transform_calls_redirect): Same.
        (ipa_tm_transform_calls): Same.
        (ipa_tm_transform_transaction): Same.
        (ipa_tm_execute): Same.


Added:
    trunk/gcc/testsuite/g++.dg/tm/pr51516.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/trans-mem.c


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/51516] [trans-mem] problem with TM clone aliases
  2011-12-12 19:20 [Bug middle-end/51516] New: [trans-mem] problem with TM clone aliases patrick.marlier at gmail dot com
  2012-01-06 18:17 ` [Bug middle-end/51516] " aldyh at gcc dot gnu.org
  2012-01-10 16:51 ` aldyh at gcc dot gnu.org
@ 2012-01-10 16:53 ` aldyh at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: aldyh at gcc dot gnu.org @ 2012-01-10 16:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51516

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2012-01-10 16:52:52 UTC ---
fixed


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-10 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-12 19:20 [Bug middle-end/51516] New: [trans-mem] problem with TM clone aliases patrick.marlier at gmail dot com
2012-01-06 18:17 ` [Bug middle-end/51516] " aldyh at gcc dot gnu.org
2012-01-10 16:51 ` aldyh at gcc dot gnu.org
2012-01-10 16:53 ` aldyh at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).