http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48023
Summary: [trans-mem] no-builtin flag and TM builtin like memset
Product: gcc
Version: trans-mem
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Created attachment 23574
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23574
testcase for memset.
If -fgnu-tm and -fno-builtin are used, code is transactified but then the
memset becomes unsafe.
I think the behavior is correct but I just want to be sure. So don't hesitate
to mark it as invalid.
$ gcc -fno-builtin -fgnu-tm -S -O0 testcase.i
testcase.i:10:8: error: unsafe function call ‘memcpy’ within ‘transaction_safe’
function
$ gcc -fgnu-tm -S -O0 testcase.i
Patrick Marlier.