[Bug c/47492] New: problem with memset() inside transaction_safe function
vasilis.karakostas at bsc dot es
gcc-bugzilla@gcc.gnu.org
Thu Jan 27 15:10:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list