[trans-mem] Test static constructors inside of transactional code

2011-08-03 Thread Torvald Riegel
Based on recent discussions among the C++ TM specification group, static constructors should be allowed in transactional (i.e., transaction_safe) code. GCC should have a wrapper assigment for __cxa_guard_acquire and __cxa_guard_release, and libitm should implement wrappers that guarantee atomicity

Re: [trans-mem] Test static constructors inside of transactional code

2011-08-04 Thread Richard Henderson
On 08/03/2011 04:57 AM, Torvald Riegel wrote: > Test static constructors inside of transactional code. > > * testsuite/libitm.c++/static_ctor.C: New file. Ok. > +static void *thread (void *dummy __attribute__((unused))) This is C++. Unnamed parameters work. r~