This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47492] [trans-mem] Problem with memset() inside transaction_safe function
- 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: Thu, 27 Jan 2011 15:10:28 +0000
- Subject: [Bug c/47492] [trans-mem] Problem with memset() inside transaction_safe function
- Auto-submitted: auto-generated
- References: <bug-47492-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47492
--- Comment #1 from Patrick Marlier <patrick.marlier at gmail dot com> 2011-01-27 15:10:18 UTC ---
Created attachment 23143
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23143
draft patch
This patch makes it work but:
(trans-mem.c)
examine_call_tm(): I don't know if it is require to test for BUILT_IN_TM_MEMSET
because it is never reached.
expand_call_tm(): it is required to mark the transaction having transactional
stores but should it be also done for MEMCPY/MEMMOVE?