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/47492] New: problem with memset() inside transaction_safe function


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.


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