]>
Commit | Line | Data |
---|---|---|
1 | 2011-11-10 Richard Henderson <rth@redhat.com> | |
2 | ||
3 | * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments. | |
4 | * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX. | |
5 | * configure.ac (ARCH_X86_AVX): New conditional. | |
6 | * Makefile.in, configure: Rebuild. | |
7 | ||
8 | 2011-11-09 Richard Henderson <rth@redhat.com> | |
9 | ||
10 | * acinclude.m4 (LIBITM_CHECK_AS_AVX): New. | |
11 | * configure.ac: Use it. | |
12 | * config.h.in, configure: Rebuild. | |
13 | * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX. | |
14 | ||
15 | 2011-11-09 Richard Henderson <rth@redhat.com> | |
16 | ||
17 | * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file. | |
18 | * config/alpha/unaligned.h: Remove file. | |
19 | * config/generic/unaligned.h: Remove file. | |
20 | * config/x86/unaligned.h: Remove file. | |
21 | * config/generic/cachepage.h: Remove file. | |
22 | * config/posix/cachepage.cc: Remove file. | |
23 | * config/generic/cacheline.cc: Remove file. | |
24 | * config/x86/cacheline.cc: Remove file. | |
25 | * config/generic/cacheline.h (gtm_cacheline): Remove the | |
26 | store_mask, copy_mask, copy_mask_wb methods. | |
27 | * config/x86/cacheline.h: Likewise. | |
28 | * config/alpha/cacheline.h: Fall back to generic after setting size. | |
29 | * config/generic/tls.cc (gtm_mask_stack): Remove. | |
30 | * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove. | |
31 | (GTM_vpalignr_table): Remove. | |
32 | * config/x86/x86_sse.cc (GTM_palignr_table): Remove. | |
33 | (GTM_pshift_table): Remove. | |
34 | * config/libitm_i.h: Don't include cachepage.h. | |
35 | * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc | |
36 | * Makefile.in, testsuite/Makefile.in: Rebuild. | |
37 | ||
38 | 2011-11-09 Richard Henderson <rth@redhat.com> | |
39 | ||
40 | * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte | |
41 | to emit branch prediction hint. | |
42 | ||
43 | * config/x86/sjlj.S: Protect elf directives with __ELF__. | |
44 | Protect .note.GNU-stack with __linux__. | |
45 | ||
46 | * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it. | |
47 | * configure, aclocal.m4, config.h.in: Rebuild. | |
48 | * config/generic/asmcfi.h: New file. | |
49 | * config/x86/sjlj.S: Use it. | |
50 | ||
51 | 2011-11-08 Richard Henderson <rth@redhat.com> | |
52 | ||
53 | * local.cc (_ITM_LB): Use a normal call, not a function alias. | |
54 | ||
55 | 2011-11-08 Richard Henderson <rth@redhat.com> | |
56 | ||
57 | * configure.tgt: Test correct directory for supported cpus. | |
58 | ||
59 | * configure.ac: Exit if unsupported. | |
60 | * configure: Rebuild. | |
61 | * configure.tgt: Delete boilerplate from libgomp for unsupported | |
62 | targets. Set UNSUPPORTED for unsupported targets. | |
63 | ||
64 | 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
65 | ||
66 | * configure.tgt: Handle i386 like i[456]86. | |
67 | * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't | |
68 | take address. | |
69 | * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD || | |
70 | !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable. | |
71 | ||
72 | 2011-11-05 Aldy Hernandez <aldyh@redhat.com> | |
73 | ||
74 | * method-wbetl.cc: Update copyright notice. | |
75 | * aatree.cc: Same. | |
76 | * util.cc: Same. | |
77 | * libitm.h: Same. | |
78 | * memset.cc: Same. | |
79 | * eh_cpp.cc: Same. | |
80 | * barrier.tpl: Same. | |
81 | * useraction.cc: Same. | |
82 | * stmlock.h: Same. | |
83 | * memcpy.cc: Same. | |
84 | * common.h: Same. | |
85 | * config/generic/tls.cc: Same. | |
86 | * config/generic/cacheline.h: Same. | |
87 | * config/generic/cachepage.h: Same. | |
88 | * config/generic/cacheline.cc: Same. | |
89 | * config/generic/unaligned.h: Same. | |
90 | * config/x86/cacheline.h: Same. | |
91 | * config/x86/cacheline.cc: Same. | |
92 | * config/x86/unaligned.h: Same. | |
93 | * config/alpha/cacheline.h: Same. | |
94 | * config/alpha/unaligned.h: Same. | |
95 | * config/alpha/sjlj.S: Same. | |
96 | * config/posix/cachepage.cc: Same. | |
97 | * config/linux/futex.h: Same. | |
98 | * config/linux/alpha/futex_bits.h: Same. | |
99 | ||
100 | 2011-11-04 Torvald Riegel <triegel@redhat.com> | |
101 | ||
102 | * libitm.texi: No cover text and invariant sections. | |
103 | ||
104 | 2011-11-03 Richard Henderson <rth@redhat.com> | |
105 | ||
106 | * local_type_traits: New file. | |
107 | * libitm_i.h: Use it. Use C headers, not C++ wrappers. | |
108 | ||
109 | 2011-11-03 Richard Henderson <rth@redhat.com> | |
110 | ||
111 | * configure.ac: Don't test for gfortran. | |
112 | * configure: Rebuild. | |
113 | ||
114 | * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp. | |
115 | * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest. | |
116 | ||
117 | 2011-11-03 Aldy Hernandez <aldyh@redhat.com> | |
118 | ||
119 | * testsuite/libitm.c/memcpy-1.c: Add copyright notice. | |
120 | * testsuite/libitm.c/memset-1.c: Same. | |
121 | * testsuite/libitm.c/c.exp: Same. | |
122 | * testsuite/lib/libitm-dg.exp: Same. | |
123 | * testsuite/lib/libitm.exp: Same. | |
124 | * testsuite/libitm.c++/c++.exp: Same. | |
125 | ||
126 | 2011-11-03 Aldy Hernandez <aldyh@redhat.com> | |
127 | ||
128 | * testsuite/config/default.exp: Update copyright date. | |
129 | * configure.ac: Add copyright info. | |
130 | * configure.tgt: Same. | |
131 | ||
132 | 2011-11-03 Aldy Hernandez <aldyh@redhat.com> | |
133 | ||
134 | * testsuite/libitm.c/reentrant.c: XFAIL. | |
135 | * testsuite/libitm.c++/static_ctor.C: XFAIL. | |
136 | ||
137 | 2011-10-29 Torvald Riegel <triegel@redhat.com> | |
138 | ||
139 | * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and | |
140 | handle aborts. | |
141 | (_ITM_abortTransaction): Handle aborts of outer transactions. | |
142 | * libitm_i.h: Same. | |
143 | * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion. | |
144 | * libitm.texi: Document aborts of outer transactions. | |
145 | * testsuite/libitm.c/cancel.c: New file. | |
146 | ||
147 | 2011-10-19 Torvald Riegel <triegel@redhat.com> | |
148 | ||
149 | * testsuite/*: Change __transaction to __transaction_atomic or | |
150 | __transaction_relaxed. | |
151 | ||
152 | 2011-10-19 Torvald Riegel <triegel@redhat.com> | |
153 | ||
154 | * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile. | |
155 | (gtm_thr): Same. | |
156 | ||
157 | 2011-10-19 Torvald Riegel <triegel@redhat.com> | |
158 | ||
159 | * libitm_i.h: Add gl_wt dispatch. | |
160 | * retry.cc (parse_default_method): Same. | |
161 | * method-gl.cc: New file. | |
162 | * Makefile.am: Use method-gl.cc. | |
163 | * Makefile.in: Rebuild. | |
164 | ||
165 | 2011-10-19 Torvald Riegel <triegel@redhat.com> | |
166 | ||
167 | * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization | |
168 | safety if requested by a TM method. | |
169 | * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for | |
170 | privatization safety. | |
171 | * method-serial.cc: Same. | |
172 | ||
173 | 2011-10-19 Torvald Riegel <triegel@redhat.com> | |
174 | ||
175 | * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry. | |
176 | (GTM::gtm_thread): Renamed local_undo to undolog. Renamed | |
177 | undolog-related member functions from *_local to *_undolog. | |
178 | * local.cc (gtm_thread::commit_undolog): Same. | |
179 | * beginend.cc (GTM::gtm_thread::trycommit): Same. | |
180 | (GTM::gtm_thread::rollback): Roll back undolog before | |
181 | dispatch-specific rollback. | |
182 | ||
183 | 2011-10-19 Torvald Riegel <triegel@redhat.com> | |
184 | ||
185 | * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle | |
186 | re-initialization of the current method group. | |
187 | * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this. | |
188 | ||
189 | 2011-10-19 Torvald Riegel <triegel@redhat.com> | |
190 | ||
191 | * alloc.cc (commit_allocations_2): Do not free transaction-local | |
192 | memory when committing a nested transaction. | |
193 | ||
194 | 2011-10-19 Torvald Riegel <triegel@redhat.com> | |
195 | ||
196 | * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use | |
197 | serial-irrevocable dispatch, not serial. | |
198 | ||
199 | 2011-10-19 Torvald Riegel <triegel@redhat.com> | |
200 | ||
201 | * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up | |
202 | declarations. | |
203 | * dispatch.h (GTM::abi_dispatch::begin_or_restart): New. | |
204 | * method-serial.cc: Implement begin_or_restart(). | |
205 | * beginend.cc (GTM::gtm_thread::begin_transaction): Call | |
206 | dispatch-specific begin_or_restart(). | |
207 | (GTM::gtm_thread::restart): Same. | |
208 | ||
209 | 2011-08-23 Torvald Riegel <triegel@redhat.com> | |
210 | ||
211 | * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix | |
212 | restarting without switching to serial mode. | |
213 | (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the | |
214 | transaction state. Choose closed-nesting alternative if available. | |
215 | (GTM::gtm_thread::set_default_dispatch): New. | |
216 | (parse_default_method): New. | |
217 | (GTM::gtm_thread::number_of_threads_changed): New. | |
218 | * method-serial.cc (GTM::serial_mg): New method group class. | |
219 | (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and | |
220 | fini. | |
221 | (GTM::serial_dispatch): Same. | |
222 | (GTM::serialirr_onwrite_dispatch): Same. | |
223 | (GTM::gtm_thread::serialirr_mode): Remove calls to fini. | |
224 | * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of | |
225 | registered threads. | |
226 | (GTM::gtm_thread::gtm_thread): Same. | |
227 | (_ITM_abortTransaction): Remove calls to abi_dispatch::fini(). | |
228 | (GTM::gtm_thread::trycommit): Same. Reset number of restarts. | |
229 | (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch() | |
230 | choose dispatch but set state according to dispatch here. | |
231 | * dispatch.h (GTM::abi_dispatch::fini): Move to method group. | |
232 | (GTM::method_group): New class. | |
233 | (GTM::abi_dispatch): Add comments. Maintain pointer to method_group. | |
234 | * libitm_i.h (GTM::gtm_thread): Add declarations for new members. | |
235 | * libitm.texi: Document TM methods, method groups, method life cycle. | |
236 | Rename method sets to method groups. | |
237 | ||
238 | 2011-08-23 Torvald Riegel <triegel@redhat.com> | |
239 | ||
240 | * config/x86/tls.h: Moved to ... | |
241 | * config/linux/x86/tls.h: ... here. | |
242 | ||
243 | 2011-08-23 Torvald Riegel <triegel@redhat.com> | |
244 | ||
245 | * config/x86/tls.h: Use __x86_64__ instead of __LP64__. | |
246 | Add X32 support. | |
247 | * config/x86/sjlj.S: Same. | |
248 | ||
249 | 2011-08-19 Torvald Riegel <triegel@redhat.com> | |
250 | ||
251 | * config/linux/rwlock.h: New file. | |
252 | * config/linux/rwlock.c: New file. | |
253 | * configure.ac: Reenable futex support (undo SVN rev 157758). | |
254 | * Makefile.am: Same. | |
255 | * configure.tgt: Same. | |
256 | * config/linux/alpha/futex_bits.h: Same. | |
257 | * config/linux/futex.h: Same. Return number of woken processes. | |
258 | * config/linux/futex.cc: Same. | |
259 | (futex_wait): Remove spinning. | |
260 | * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero. | |
261 | Use __x86_64__ instead of __LP64__. | |
262 | * aclocal.m4: Include generic futex checks. | |
263 | * configure: Rebuild. | |
264 | * Makefile.in: Rebuild. | |
265 | * testsuite/Makefile.in: Rebuild. | |
266 | * beginend.cc: Include pthread.h. | |
267 | * config/posix/cachepage.cc: Same. | |
268 | ||
269 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
270 | ||
271 | * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed. | |
272 | (abi_disp, set_abi_disp): Move to tx's TLS slot. | |
273 | (set_gtm_thr): New. | |
274 | * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed. | |
275 | (set_gtm_thr): New. | |
276 | (GTM::gtm_thread::thread_num): Removed. | |
277 | (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls. | |
278 | * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More | |
279 | tx-to-thread renaming. | |
280 | * beginend.cc: Adapted to tx-to-thread renaming. | |
281 | (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler(). | |
282 | (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction(). | |
283 | * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed | |
284 | gtm_transaction to gtm_thread. | |
285 | (_ITM_getThreadnum): Removed. Not supported anymore. | |
286 | * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call. | |
287 | * libitm.texi: Documented that _ITM_getThreadnum is not supported. | |
288 | * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to | |
289 | gtm_tx-to-gtm_thr renaming if necessary. | |
290 | * eh_cpp.cc: Same. | |
291 | * local.cc: Same. | |
292 | * retry.cc: Same. | |
293 | * clone.cc: Same. | |
294 | * alloc.cc: Same. | |
295 | * alloc_c.cc: Same. | |
296 | * alloc_cpp.cc: Same. | |
297 | * method-serial.cc: Same. | |
298 | * config/generic/tls.cc: Same. | |
299 | * config/posix/rwlock.h (gtm_rwlock): Same. | |
300 | * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming. | |
301 | ||
302 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
303 | ||
304 | * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking | |
305 | implementation. | |
306 | (gtm_rwlock::read_unlock): Same. | |
307 | (gtm_rwlock::write_lock_generic): New. Generalized from ... | |
308 | (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these. | |
309 | * libitm_i.h (GTM::gtm_transaction): Added shared_state. | |
310 | * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and | |
311 | w_upgrade. Replaced by per-transaction flags (in shared_state). | |
312 | Added c_confirmed_writers. | |
313 | (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock, | |
314 | GTM::gtm_rwlock::write_upgrade): Add tx parameter. | |
315 | * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same. | |
316 | * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same. | |
317 | * beginend.cc (GTM::gtm_transaction::begin_transaction, | |
318 | _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same. | |
319 | * libitm.texi: Document locking conventions and implementations in | |
320 | libitm. | |
321 | ||
322 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
323 | ||
324 | * libitm_i.h (next_tx): Add list of all threads' transaction. | |
325 | * beginend.cc (GTM::gtm_transaction::begin_transaction): Register | |
326 | transaction with list of transactions and ... | |
327 | (thread_exit_handler): ... deregister here. | |
328 | * config/alpha/target.h: Add HW_CACHELINE_SIZE setting. | |
329 | * config/x86/target.h: Same. | |
330 | ||
331 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
332 | ||
333 | * testsuite/libitm.c++/static_ctor.C: New file. | |
334 | ||
335 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
336 | ||
337 | * testsuite/libitm.c/reentrant.c: New file. | |
338 | ||
339 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
340 | ||
341 | * config/generic/tls.h: Remove the free list for transactions and ... | |
342 | * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ... | |
343 | (GTM::gtm_transaction::operator delete): ... and release here. | |
344 | (thread_exit_handler): New. Delete tx when thread terminates. | |
345 | (thread_exit_init): New. | |
346 | (GTM::gtm_transaction::begin_transaction): Set up on-exit handler. | |
347 | * testsuite/libitm.c/txrelease.c: New file. | |
348 | ||
349 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
350 | ||
351 | * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary. | |
352 | * testsuite/libitm.c/notx.c: New file. | |
353 | ||
354 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
355 | ||
356 | * config/generic/tls.h (gtm_thread): Move local_tid from here ... | |
357 | * libitm_i.h (local_tid): ... to here. | |
358 | * beginend.cc (GTM::gtm_transaction::begin_transaction): Same. | |
359 | (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary. | |
360 | ||
361 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
362 | ||
363 | * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use | |
364 | serialirr_onwrite_dispatch as new default for now. | |
365 | * method-serial.cc (serialirr_onwrite_dispatch): New. | |
366 | (GTM::dispatch_serialirr_onwrite): New. | |
367 | * libitm_i.h: Same. | |
368 | ||
369 | 2011-08-12 Torvald Riegel <triegel@redhat.com> | |
370 | ||
371 | * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well. | |
372 | * query.cc (_ITM_getTransactionId): There is no active transaction if | |
373 | the current nesting level is zero. | |
374 | ||
375 | 2011-07-28 Torvald Riegel <triegel@redhat.com> | |
376 | ||
377 | * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level | |
378 | rollback. | |
379 | ||
380 | 2011-07-28 Torvald Riegel <triegel@redhat.com> | |
381 | ||
382 | * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get | |
383 | transaction properties from the caller instead of from the | |
384 | transaction object. | |
385 | * libitm_i.h: Same. | |
386 | * beginend.cc (GTM::gtm_transaction::begin_transaction): Same. | |
387 | ||
388 | 2011-07-28 Torvald Riegel <triegel@redhat.com> | |
389 | ||
390 | * local.cc (gtm_transaction::rollback_local): Support closed nesting. | |
391 | * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same. | |
392 | * dispatch.h: Same. | |
393 | * method-serial.cc: Same. | |
394 | * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to | |
395 | flat nesting as default, and closed nesting on demand. | |
396 | (GTM::gtm_transaction::rollback): Same. | |
397 | (_ITM_abortTransaction): Same. | |
398 | (GTM::gtm_transaction::restart): Same. | |
399 | (GTM::gtm_transaction::trycommit): Same. | |
400 | (GTM::gtm_transaction::trycommit_and_finalize): Removed. | |
401 | (choose_code_path): New. | |
402 | (GTM::gtm_transaction_cp::save): New. | |
403 | (GTM::gtm_transaction_cp::commit): New. | |
404 | * query.cc (_ITM_inTransaction): Support flat nesting. | |
405 | * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting. | |
406 | (GTM::gtm_transaction): Support flat and closed nesting. | |
407 | * alloc.cc (commit_allocations_2): New. | |
408 | (commit_cb_data): New helper struct. | |
409 | (GTM::gtm_transaction::commit_allocations): Handle nested | |
410 | commits/rollbacks. | |
411 | * libitm.texi: Update user action section, add description of nesting. | |
412 | ||
413 | 2011-07-28 Torvald Riegel <triegel@redhat.com> | |
414 | ||
415 | * libitm_i.h: Add closed nesting as restart reason. | |
416 | * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same. | |
417 | ||
418 | 2011-07-28 Torvald Riegel <triegel@redhat.com> | |
419 | ||
420 | * useraction.cc: Use vector instead of list to store actions. | |
421 | Also support partial rollbacks for closed nesting. | |
422 | * libitm_i.h (GTM::gtm_transaction::user_action): Same. | |
423 | * beginend.cc: Same. | |
424 | ||
425 | 2011-07-28 Torvald Riegel <triegel@redhat.com> | |
426 | ||
427 | * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and | |
428 | closed_nesting flags, as well as a closed nesting alternative. | |
429 | * method-serial.cc: Same. | |
430 | (serial_dispatch): Renamed to serialirr_dispatch. | |
431 | (GTM::dispatch_serialirr): Same. | |
432 | (serial_dispatch_ul): Renamed to serial_dispatch. | |
433 | (GTM::dispatch_serial): Same. | |
434 | ||
435 | 2011-07-28 Torvald Riegel <triegel@redhat.com> | |
436 | ||
437 | * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value. | |
438 | ||
439 | 2011-07-28 Torvald Riegel <triegel@redhat.com> | |
440 | ||
441 | * aatree.h (aa_tree::remove): New. | |
442 | (aa_tree::operator new): Add placement new. | |
443 | ||
444 | 2011-07-02 Torvald Riegel <triegel@redhat.com> | |
445 | ||
446 | * containers.h: New file. | |
447 | * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag. | |
448 | * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ... | |
449 | * common.h: ... to here. | |
450 | (local_undo): Use GTM::vector for gtm_transaction::local_undo. | |
451 | * local.cc: Same. | |
452 | ||
453 | 2011-06-30 Torvald Riegel <triegel@redhat.com> | |
454 | ||
455 | * libitm_i.h (STATE_ABORTING): Remove. | |
456 | * beginend.cc (_ITM_abortTransaction): Same. | |
457 | (GTM::gtm_transaction::trycommit_and_finalize): Same. | |
458 | * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove. | |
459 | (_ITM_rollbackTransaction): Remove. | |
460 | * beginend.cc: Same. | |
461 | * libitm.map: Same. | |
462 | * libitm.texi: Document these ABI changes. | |
463 | ||
464 | 2011-06-30 Torvald Riegel <triegel@redhat.com> | |
465 | ||
466 | * libitm.texi: New file. | |
467 | * Makefile.am: Add libitm.texi. | |
468 | * Makefile.in: Rebuild. | |
469 | ||
470 | 2011-06-30 Torvald Riegel <triegel@redhat.com> | |
471 | ||
472 | * libitm_i.h: Move parts to common.h and dispatch.h. | |
473 | * common.h: New file. | |
474 | * dispatch.h: New file, new dispatch class. | |
475 | Rename GTM::abi_dispatch::lock_type to ls_modifier. | |
476 | RenameGTM::abi_dispatch::NOLOCK to NONTXNAL. | |
477 | * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode | |
478 | decision to retry.cc. | |
479 | * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode | |
480 | only. | |
481 | (GTM::gtm_transaction::decide_begin_dispatch): Same. | |
482 | * method-serial.cc: Adapt to new dispatch. Add serial mode with undo | |
483 | logging. | |
484 | * barrier.cc: Use new barriers definitions. | |
485 | (abi_dispatch::memmove_overlap_check): New. | |
486 | * config/x86/x86_sse.cc: Same. | |
487 | * config/x86/x86_avx.cc: Same. | |
488 | * Makefile.am: Don't build readonly and wbetl methods, memset.cc and | |
489 | memcpy.cc. | |
490 | * Makefile.in: Rebuild. | |
491 | * method-readonly.cc: Remove. | |
492 | * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier. | |
493 | Rename GTM::abi_dispatch::NOLOCK to NONTXNAL. | |
494 | ||
495 | 2011-06-30 Torvald Riegel <triegel@redhat.com> | |
496 | ||
497 | * alloc_c.cc (_ITM_dropReferences): Don't support it anymore. | |
498 | * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail. | |
499 | * testsuite/libitm.c/dropref-2.c: Same. | |
500 | * testsuite/libitm.c/dropref.c: Same. | |
501 | ||
502 | 2011-06-30 Torvald Riegel <triegel@redhat.com> | |
503 | ||
504 | * config/generic/tls.h (gtm_disp): Rename to abi_disp. | |
505 | * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp. | |
506 | * libitm_i.h: Rename gtm_dispatch to abi_dispatch. | |
507 | * alloc_c.cc: Same. | |
508 | * barrier.tpl: Same. | |
509 | * beginend.c: Same. | |
510 | * config/generic/tls.h: Same. | |
511 | * config/x86/tls.h: Same. | |
512 | * libitm_i.h: Same. | |
513 | * memcpy.cc: Same. | |
514 | * memset.cc: Same. | |
515 | * method-readonly.cc: Same. | |
516 | * method-serial.cc: Same. | |
517 | * method-wbetl.cc: Same. | |
518 | * retry.cc: Same. | |
519 | ||
520 | 2011-03-03 Richard Henderson <rth@redhat.com> | |
521 | ||
522 | * config/posix/rwlock.cc (write_upgrade): Add missing case. | |
523 | From Patrik Marlier <patrick.marlier@unine.ch>. | |
524 | ||
525 | 2011-02-03 Richard Henderson <rth@redhat.com> | |
526 | ||
527 | * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New. | |
528 | * configure.ac: Use it. | |
529 | * configure, config.h.in: Rebuild. | |
530 | * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name. | |
531 | (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX, | |
532 | _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise. | |
533 | * libitm.map: Use wildcards to match size_t mangling. | |
534 | ||
535 | 2010-12-14 Richard Henderson <rth@redhat.com> | |
536 | ||
537 | * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate | |
538 | blocks of TIDs per thread. | |
539 | * config/generic/tls.h (struct gtm_thread): Add local_tid member. | |
540 | (setup_gtm_thr): Return the thread structure. | |
541 | * config/x86/tls.h (setup_gtm_thr): Likewise. | |
542 | ||
543 | 2010-12-14 Richard Henderson <rth@redhat.com> | |
544 | ||
545 | * clone.cc (table_lock): Remove. | |
546 | (find_clone): Don't take it. | |
547 | (ExcludeTransaction): New helper class. | |
548 | (_ITM_registerTMCloneTable): Use it. | |
549 | (_ITM_deregisterTMCloneTable): Likewise. | |
550 | ||
551 | 2010-12-14 Richard Henderson <rth@redhat.com> | |
552 | ||
553 | * config/x86/tls.h: New file. | |
554 | ||
555 | 2010-07-15 Richard Henderson <rth@redhat.com> | |
556 | ||
557 | * Makefile.am (AM_CXXFLAGS): Add -funwind-tables. | |
558 | * Makefile.in: Rebuild. | |
559 | ||
560 | 2010-07-13 Aldy Hernandez <aldyh@redhat.com> | |
561 | ||
562 | * method-wbetl.cc (trydropreference): Fix source line. | |
563 | ||
564 | 2010-07-13 Aldy Hernandez <aldyh@redhat.com> | |
565 | ||
566 | * libitm.h: Add comment. | |
567 | * libitm_i.h (begin_transaction): Add ITM_REGPARM. | |
568 | ||
569 | 2010-07-07 Aldy Hernandez <aldyh@redhat.com> | |
570 | ||
571 | * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS. | |
572 | * beginend.cc (begin_transaction): If 64-bit sync builtins are not | |
573 | available, use pthread mutexes. | |
574 | * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New. | |
575 | * config.h.in: Regenerate. | |
576 | * configure: Regenerate. | |
577 | ||
578 | 2010-07-06 Aldy Hernandez <aldyh@redhat.com> | |
579 | ||
580 | * libitm.h (ITM_PURE): Define. | |
581 | Declare _ITM_malloc, _ITM_calloc, and _ITM_free. | |
582 | ||
583 | 2010-06-28 Aldy Hernandez <aldyh@redhat.com> | |
584 | ||
585 | * method-wbetl.cc (class wbetl_dispatch): Add trydropreference. | |
586 | (validate): Add comment. | |
587 | (trydropreference): New. | |
588 | * method-readonly.cc (class readonly_dispatch): Add | |
589 | trydropreference. | |
590 | * alloc_c.cc (_ITM_dropReferences): Remove const attribute. | |
591 | Call trydropreference(). | |
592 | * libitm.h (_ITM_dropReferences): Remove const attribute. | |
593 | * method-serial.cc (class serial_dispatch): Add trydropreference. | |
594 | * libitm_i.h (struct gtm_dispatch): Add trydropreference. | |
595 | ||
596 | 2010-06-28 Aldy Hernandez <aldyh@redhat.com> | |
597 | ||
598 | * memcpy.cc (do_memcpy): Comment. | |
599 | ||
600 | 2010-06-25 Aldy Hernandez <aldyh@redhat.com> | |
601 | ||
602 | * barrier.tpl: Add comments throughout. | |
603 | ||
604 | 2010-06-24 Aldy Hernandez <aldyh@redhat.com> | |
605 | ||
606 | * method-wbetl.cc (struct w_entry): Add comments. | |
607 | (trycommit): Same. | |
608 | (rollback): Same. | |
609 | ||
610 | 2010-06-24 Aldy Hernandez <aldyh@redhat.com> | |
611 | ||
612 | * alloc_c.cc (_ITM_dropReferences): New. | |
613 | * libitm.map (_ITM_dropReferences): Add. | |
614 | * libitm.h (_ITM_dropReferences): Add transaction_pure attribute. | |
615 | * libitm_i.h (struct gtm_transaction): Declare | |
616 | drop_references_allocations and drop_references_local. | |
617 | * local.cc (rollback_local): Ignore memory when applicable. | |
618 | (drop_references_local): New. | |
619 | ||
620 | 2010-06-23 Richard Henderson <rth@redhat.com> | |
621 | ||
622 | * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc, | |
623 | memset.cc, method-serial.cc: Revert the 2010-06-16 change. | |
624 | * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*. | |
625 | * config/alpha/target.h: Likewise. | |
626 | * config/generic/tls.cc (gtm_mask_stack): Use it. | |
627 | ||
628 | 2010-06-23 Richard Henderson <rth@redhat.com> | |
629 | ||
630 | * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use | |
631 | a mutex instead of trying a lock-free compare-and-swap on the list. | |
632 | (gtm_cacheline_page::operator delete): Likewise. | |
633 | ||
634 | 2010-06-16 Richard Henderson <rth@redhat.com> | |
635 | ||
636 | * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes | |
637 | that overlap the libitm stack. | |
638 | * barrier.tpl: Mark incoming stack. | |
639 | * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction, | |
640 | _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise. | |
641 | * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise. | |
642 | * memcpy.cc, memset.cc: Likewise. | |
643 | * method-serial.cc (_ITM_changeTransactionMode): Likewise. | |
644 | * config/generic/tls.h (gtm_thread): Add stack_top member. | |
645 | (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New. | |
646 | * libitm_i.h (gtm_mask_stack): Declare. | |
647 | * config/generic/tls.cc: New file. | |
648 | * Makefile.am (libitm_la_SOURCES): Add it. | |
649 | (AM_CXXFLAGS): Turn off exceptions. | |
650 | * Makefile.in: Rebuild. | |
651 | ||
652 | 2010-06-16 Richard Henderson <rth@redhat.com> | |
653 | ||
654 | * alloc.cc (struct gtm_alloc_action): Move definition ... | |
655 | * libitm_i.h: ... here. | |
656 | (class gtm_transaction): Declare new and delete. | |
657 | * beginend.cc (alloc_tx): Reformulate as operator new. | |
658 | (free_tx): Reformulate as operator delete. | |
659 | * config/generic/tls.h (gtm_thread): Change free_tx member to void *. | |
660 | ||
661 | 2010-06-11 Richard Henderson <rth@redhat.com> | |
662 | ||
663 | * clone.cc (clone_entry_compare): Fix typo. | |
664 | From Patrik Marlier <patrick.marlier@unine.ch>. | |
665 | ||
666 | 2010-05-13 Richard Henderson <rth@redhat.com> | |
667 | ||
668 | * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions | |
669 | in extern "C". | |
670 | ||
671 | 2010-05-07 Aldy Hernandez <aldyh@redhat.com> | |
672 | ||
673 | * libitm_i.h (struct gtm_transaction): Remove | |
674 | get_allocation_size. | |
675 | (record_allocation): Remove size parameter. | |
676 | * libitm.map (_ITM_realloc): Remove. | |
677 | * alloc_c.cc (_ITM_realloc): Remove. | |
678 | (_ITM_malloc): Remove size argument to record_allocation. | |
679 | (_ITM_calloc): Same. | |
680 | * alloc_cpp.cc (_ZGTtnwm): Same. | |
681 | (_ZGTtnwmRKSt9nothrow_t): Same. | |
682 | (_ZGTtnam): Same. | |
683 | (_ZGTtnamRKSt9nothrow_t): Same. | |
684 | * alloc.cc (struct gtm_alloc_action): Remove size. | |
685 | (get_allocation_size): Remove. | |
686 | (commit_allocations): Add comment. | |
687 | (record_allocation): Remove size parameter. | |
688 | (forget_allocation): Remove set of size. | |
689 | ||
690 | 2010-04-19 Aldy Hernandez <aldyh@redhat.com> | |
691 | ||
692 | * Makefile.am (abi_version): New. | |
693 | (AM_CXXFLAGS): Pass abi_version. | |
694 | * Makefile.in: Regenerate. | |
695 | * config/x86/unaligned.h: Remove always_inline kludge for vectors. | |
696 | ||
697 | 2010-04-06 Aldy Hernandez <aldyh@redhat.com> | |
698 | ||
699 | * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from | |
700 | _ITM_getTMCloneOrIrrevokable. | |
701 | * libitm.h (_ITM_getTMCloneOrIrrevocable): Same. | |
702 | * libitm.map (_ITM_getTMCloneOrIrrevocable): Same. | |
703 | ||
704 | 2010-03-26 Aldy Hernandez <aldyh@redhat.com> | |
705 | ||
706 | * configure.ac: Remove Linux futex support. | |
707 | * configure.tgt (config_path): Same. | |
708 | * Makefile.am: Same. | |
709 | * config/linux: Remove entire directory. | |
710 | * configure: Rebuild. | |
711 | * Makefile.in: Rebuild. | |
712 | * testsuite/Makefile.in: Rebuild. | |
713 | ||
714 | 2010-03-09 Aldy Hernandez <aldyh@redhat.com> | |
715 | ||
716 | * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when | |
717 | switching to serial mode. | |
718 | * beginend.cc (trycommit_and_finalize): Unlock serial_lock. | |
719 | ||
720 | 2010-03-03 Aldy Hernandez <aldyh@redhat.com> | |
721 | ||
722 | * configure.tgt: Add emacs -*- tags. | |
723 | * barrier.tpl: Same. | |
724 | ||
725 | 2010-02-23 Aldy Hernandez <aldyh@redhat.com> | |
726 | ||
727 | * Makefile.am: Rename serial.cc to method-serial.cc. | |
728 | * Makefile.in: Regenerate with automake 1.11.1. | |
729 | * testsuite/Makefile.in: Same. | |
730 | * aclocal.m4: Regenerate with aclocal 1.11.1. | |
731 | * method-serial.cc: Rename from serial.cc. | |
732 | * libitm_i.h (struct gtm_transaction): Update comment on | |
733 | serialirr_mode. | |
734 | ||
735 | 2010-02-22 Aldy Hernandez <aldyh@redhat.com> | |
736 | ||
737 | * libitm_i.h (GTM_longjmp): Add ITM_REGPARM. | |
738 | * config/linux/rwlock.h (class gtm_rwlock): Add comments. | |
739 | ||
740 | 2010-02-11 Aldy Hernandez <aldyh@redhat.com> | |
741 | ||
742 | * configure: Rebuild. | |
743 | ||
744 | 2009-11-12 Richard Henderson <rth@redhat.com> | |
745 | ||
746 | * Rewrite everything in C++. | |
747 | ||
748 | 2009-11-03 Richard Henderson <rth@redhat.com> | |
749 | ||
750 | * config/x86/x86_sse.c, config/x86/x86_avx.c: New files. | |
751 | * Makefile.am (libitm_la_SOURCES): Add them. | |
752 | * configure.ac (ARCH_X86): New conditional. | |
753 | * Makefile.in, configure: Rebuild. | |
754 | * configure.tgt: Set up ARCH; do cflags setup at the same time. | |
755 | Move futex setup into "other system configury" case. | |
756 | * local.c (rollback_local): Merge into ... | |
757 | (GTM_rollback_local): ... here. | |
758 | (GTM_LB): Rename from GTM_alloc_local; do the memcpy here. | |
759 | (_ITM_LB): Define as an alias to GTM_LB. | |
760 | ||
761 | 2009-11-03 Richard Henderson <rth@redhat.com> | |
762 | ||
763 | * method-readonly.c: New file. | |
764 | * Makefile.am (libitm_la_SOURCES): Add it. | |
765 | * Makefile.in: Rebuild. | |
766 | * beginend.c (gtm_stmlock_array, gtm_clock): New. | |
767 | (GTM_begin_transaction): Use dispatch_readonly for read-only txn. | |
768 | * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c. | |
769 | (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p, | |
770 | gtm_stmlock_set_owned, gtm_stmlock_get_addr, | |
771 | gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE, | |
772 | gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY, | |
773 | gtm_get_clock, gtm_inc_clock): New. | |
774 | * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX, | |
775 | LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP, | |
776 | LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK, | |
777 | locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and | |
778 | replace uses with new libitm_i.h symbols. | |
779 | (dispatch_wbetl): Rename from wbetl_dispatch. | |
780 | * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move | |
781 | away from dispatch_readonly; abort if the beginTransaction call | |
782 | asserted that the transaction was readonly. | |
783 | ||
784 | 2009-11-03 Richard Henderson <rth@redhat.com> | |
785 | ||
786 | * memset.c: New file. | |
787 | * Makefile.am (libitm_la_SOURCES): Add it. | |
788 | * Makefile.in: Rebuild. | |
789 | * testsuite/libitm.c/memset-1.c: New. | |
790 | ||
791 | 2009-11-03 Richard Henderson <rth@redhat.com> | |
792 | ||
793 | * dispatch.c: Remove file. | |
794 | * useraction.c (struct gtm_user_action): Move from libitm.h. | |
795 | * serial.c (GTM_null_read_lock, GTM_null_write_lock): New. | |
796 | (serial_memset, serial_memmove, serial_memcpy): Remove. | |
797 | (serial_W*, serial_R*): Remove. | |
798 | (serial_dispatch): Update to match. | |
799 | * configure.ac: Move Werror down below configure checks. Don't | |
800 | check for sys/loadavg.h, do check for malloc.h. Don't check for | |
801 | getloadavg and clock_gettime; do check for memalign, posix_memalign. | |
802 | Use GCC_AC_FUNC_MMAP_BLACKLIST | |
803 | * libitm.h: Split out all internal items to... | |
804 | * libitm_i.h: ... here. New file. | |
805 | * copymask.c: New file. | |
806 | * local.c (struct gtm_local_undo): Move from libitm.h. | |
807 | (GTM_alloc_local): Rename from alloc_local; export. | |
808 | * memcpy.c: New file. | |
809 | * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly. | |
810 | * config/posix/page.c: New file. | |
811 | * config/posix/target_tls.h: Remove file. | |
812 | * barrier.c: New file. | |
813 | * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c, | |
814 | copymask.c, page.c. | |
815 | * alloc.c (struct gtm_alloc_action): Move from libitm.h. | |
816 | * method-wbetl.c: Rewrite for new cacheline methods. | |
817 | * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild. | |
818 | ||
819 | * config/alpha/sjlj.S: Fix typo. | |
820 | * config/alpha/target_i.h: Copy functions from alpha/target.h. | |
821 | * config/alpha/copymask.c: New file. | |
822 | * config/alpha/target.h (CACHELINE_SIZE): New. | |
823 | (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New. | |
824 | ||
825 | * config/x86/target_i.h: Copy functions from x86/target.h. | |
826 | * config/x86/copymask.c: New file. | |
827 | * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove. | |
828 | (CACHELINE_SIZE, STRICT_ALIGNMENT): New. | |
829 | (PAGE_SIZE, FIXED_PAGE_SIZE): New. | |
830 | * config/x86/target_tls.h: Move contents to target_i.h. | |
831 | ||
832 | * testsuite/libitm.c/clone-1.c: Include libitm.h. | |
833 | * testsuite/libitm.c/memcpy-1.c: New. | |
834 | ||
835 | 2009-10-22 Richard Henderson <rth@redhat.com> | |
836 | ||
837 | * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove. | |
838 | (AM_CCASFLAGS): New. | |
839 | * configure.ac: Add AM_PROG_AS. Use m4_rename_force for | |
840 | saving/restoring _AC_ARG_VAR_PRECIOUS. | |
841 | * Makefile.in, aclocal.m4, config.h.in, configure, | |
842 | testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64. | |
843 | ||
844 | 2009-10-22 Richard Henderson <rth@redhat.com> | |
845 | ||
846 | * testsuite/*: Update for new compiler syntax. | |
847 | ||
848 | 2009-10-21 Richard Henderson <rth@redhat.com> | |
849 | ||
850 | * libitm.h (_ITM_abortReason): Add outerAbort. | |
851 | ||
852 | 2009-08-03 Richard Henderson <rth@redhat.com> | |
853 | ||
854 | * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception, | |
855 | _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export. | |
856 | * method-wbetl.c (struct w_entry): Remove mask. | |
857 | (wbetl_write, wbetl_load): Return pointer to word containing the data; | |
858 | adjust all callers. | |
859 | ||
860 | 2009-07-22 Richard Henderson <rth@redhat.com> | |
861 | ||
862 | * eh_cpp.c: New file. | |
863 | * Makefile.am (libitm_la_SOURCES): Add it. | |
864 | * Makefile.in: Rebuild. | |
865 | * beginend.c (GTM_rollback_transaction): Undo exception state. | |
866 | (GTM_trycommit_transaction): Mark inline. | |
867 | (GTM_trycommit_and_finalize_transaction): Split out from ... | |
868 | (_ITM_commitTransaction): ... here. | |
869 | (_ITM_commitTransactionEH): New function. | |
870 | * libitm.h (struct gtm_transaction): Add cxa_catch_count, | |
871 | cxa_unthrown, eh_in_flight; reorder. | |
872 | ||
873 | * testsuite/libitm.c++/c++.exp: New. | |
874 | * testsuite/libitm.c++/eh-1.C: New. | |
875 | ||
876 | * aatree.c (aa_free): Remove REGPARM. | |
877 | * aatree.h: Remove all REGPARM. | |
878 | ||
879 | 2009-07-18 Richard Henderson <rth@redhat.com> | |
880 | ||
881 | * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files. | |
882 | * Makefile.am (libitm_la_SOURCES): Add them. | |
883 | * Makefile.in: Rebuild. | |
884 | * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations. | |
885 | (GTM_trycommit_transaction): Likewise. | |
886 | * libitm.h: Include aatree.h | |
887 | (struct gtm_alloc_action): New. | |
888 | (struct gtm_transaction): Add alloc_actions. | |
889 | (GTM_record_allocation, GTM_forget_allocation): Declare. | |
890 | (GTM_get_allocation_size, GTM_commit_allocations): Declare. | |
891 | * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free, | |
892 | _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t, | |
893 | _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t, | |
894 | _ZGTtdaPvRKSt9nothrow_t): Export. | |
895 | ||
896 | 2009-07-18 Richard Henderson <rth@redhat.com> | |
897 | ||
898 | * target_tls.h: Move ... | |
899 | * config/posix/target_tls.h: ... here. | |
900 | ||
901 | 2009-07-07 Richard Henderson <rth@redhat.com> | |
902 | ||
903 | * config/x86/target.h (atomic_write_barrier): Use sfence if available. | |
904 | ||
905 | 2009-07-07 Richard Henderson <rth@redhat.com> | |
906 | ||
907 | * Update to GPL3. | |
908 | ||
909 | 2009-07-07 Richard Henderson <rth@redhat.com> | |
910 | ||
911 | * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t. | |
912 | * beginend.c (global_tid): Widen to _ITM_transactionId_t. | |
913 | ||
914 | * configure.tgt: Don't use -ftls-model for x86 linux. | |
915 | * libitm.h: Include target.h after standard includes. | |
916 | (_gtm_thr): Rename from gtm_thr. | |
917 | (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New. | |
918 | (gtm_disp, set_gtm_disp): New. | |
919 | * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c, | |
920 | retry.c, serial.c, useraction.c: Use accessor functions throughout. | |
921 | * config/alpha/target_tls.h, config/x86/target_tls.h: New files. | |
922 | ||
923 | 2009-07-07 Richard Henderson <rth@redhat.com> | |
924 | ||
925 | * config/linux/rwlock.c (EZ): New define. Use it throughout. | |
926 | ||
927 | 2009-07-06 Richard Henderson <rth@redhat.com> | |
928 | ||
929 | * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove. | |
930 | (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove. | |
931 | (_ITM_beginTransaction): Take variadic arguments. | |
932 | (_ITM_registerThrownObject): Declare. | |
933 | * beginend.c, serial.c: Update. | |
934 | * libitm.map: Add _ITM_registerThrownObject. | |
935 | ||
936 | 2009-01-28 Richard Henderson <rth@redhat.com> | |
937 | ||
938 | * Makefile.am (libitm_la_SOURCES): Add clone.c. | |
939 | * Makefile.in: Rebuild. | |
940 | * beginend.c (_ITM_abortTransaction): Abort if irrevokable. | |
941 | (GTM_restart_transaction): Fix uninstrumented code check. | |
942 | * retry.c (GTM_decide_retry_strategy): Add serial check. | |
943 | * serial.c (GTM_serialmode): Add irrevokable variable. Don't | |
944 | automatically go irrevokable when in serial mode. | |
945 | * clone.c: New file. | |
946 | * libitm.h, libitm.map: Update. | |
947 | ||
948 | 2009-01-27 Richard Henderson <rth@redhat.com> | |
949 | ||
950 | * Makefile.am (LTCCASCOMPILE): Define. | |
951 | (libitm_la_SOURCES): Add methid-wbetl.c. | |
952 | * testsuite/Makefile.am: New | |
953 | * configure.ac: Add testsuite/Makefile. | |
954 | * Makefile.in, testsuite/Makefile.in, configure: Regenerate. | |
955 | * beginend.c (GTM_begin_transaction): Install wbetl_dispatch. | |
956 | (_ITM_abortTransaction): Finalize implementation method; pass | |
957 | transaction properties to longjmp. | |
958 | (GTM_restart_transaction): Split out from ... | |
959 | (_ITM_commitTransaction): ... here. | |
960 | * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier): | |
961 | Move to config/x86/target.h. | |
962 | * config/linux/alpha/futex_bits.h: New. | |
963 | * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register. | |
964 | * config/x86/target.h: Disable target types for 32-bit. | |
965 | * config/alpha/sjlj.S, config/alpha/target.h: New. | |
966 | * libitm.h (struct gtm_dispatch): Add init, fini. | |
967 | (enum restart_reason): New. | |
968 | (struct gtm_transaction): Add method and restarts. | |
969 | * retry.c (GTM_decide_retry_strategy): Implement. | |
970 | * serial.c (serial_init, serial_fini): New. | |
971 | (GTM_serialmode): Finialize outgoing method. | |
972 | * method-wbetl.c: New. | |
973 | ||
974 | 2008-12-09 Richard Henderson <rth@redhat.com> | |
975 | ||
976 | * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New. | |
977 | * configure.tgt (i386-*, x86_64-*): Don't force SSE. | |
978 | * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR. | |
979 | * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default. | |
980 | (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header. | |
981 | (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES. | |
982 | * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR. | |
983 | * serial.c (serial_R##T, serial_W##T): Likewise. | |
984 | ||
985 | 2008-11-21 Richard Henderson <rth@redhat.com> | |
986 | ||
987 | * Initial commit. |