This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/48023] New: [trans-mem] no-builtin flag and TM builtin like memset


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]