This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47492] New: problem with memset() inside transaction_safe function
- From: "vasilis.karakostas at bsc dot es" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Jan 2011 14:57:29 +0000
- Subject: [Bug c/47492] New: problem with memset() inside transaction_safe function
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47492
Summary: problem with memset() inside transaction_safe function
Product: gcc
Version: trans-mem
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: vasilis.karakostas@bsc.es
CC: aldyh@redhat.com, javier.arias@bsc.es,
patrick.marlier@gmail.com
Created attachment 23141
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23141
testcase
When I call memset() function from an __attribute__((transaction_safe))
function, I get compilation error.
testcase.c:10:2: error: unsafe function call 'memset' within 'transaction_safe'
function
According to Intel TM ABI, the memset() function is managed by the compiler and
it should be automatically transformed to be transaction safe.
I have attached an example.