On 08/03/2011 04:04 AM, Torvald Riegel wrote: > Move local_tid from gtm_thread to gtm_transaction. > > * config/generic/tls.h (gtm_thread): Move local_tid from here ... > * libitm_i.h (local_tid): ... to here. > * beginend.cc (GTM::gtm_transaction::begin_transaction): Same. > (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
This seems very wrong. Why? > Fix missing setup of gtm_thread if no transaction has run yet. > > * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary. > * testsuite/libitm.c/notx.c: New file. Ok. r~