This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/48023] New: [trans-mem] no-builtin flag and TM builtin like memset
- 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: Mon, 7 Mar 2011 16:23:29 +0000
- Subject: [Bug c/48023] New: [trans-mem] no-builtin flag and TM builtin like memset
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: patrick.marlier@gmail.com
CC: rth@gcc.gnu.org, aldyh@gcc.gnu.org
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.