]> git.ipfire.org Git - thirdparty/gcc.git/blob - libitm/ChangeLog
Fixed PR reference.
[thirdparty/gcc.git] / libitm / ChangeLog
1 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 PR libitm/51822
4 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add
5 -shared-libgcc.
6 Correct libgomp references.
7
8 2012-01-24 Torvald Riegel <triegel@redhat.com>
9
10 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
11 wake-up.
12
13 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
14
15 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
16 end of structure.
17 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
18 offset values. Do not copy return address. Decrement stack
19 by 56 bytes only.
20 (GTM_longjump) [__x86_64__]: Update offset values.
21
22 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
23
24 PR libitm/51830
25 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
26 the first function argument to %eax.
27
28 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29
30 * libitm.h (_ITM_getThreadnum): Remove.
31 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
32
33 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34
35 * clearcap.map: New file.
36 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
37 * configure.ac: Call it.
38 Clear HWCAP_LDFLAGS if defaulting to -mavx.
39 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
40 * configure: Regenerate.
41 * Makefile.in: Regenerate.
42 * testsuite/Makefile.in: Regenerate.
43
44 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45
46 PR libitm/51173
47 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
48 include, exclude options.
49
50 2012-01-14 Torvald Riegel <triegel@redhat.com>
51
52 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
53 rolling back.
54 * containers.h (GTM::vector::set_size): New.
55
56 2012-01-14 Torvald Riegel <triegel@redhat.com>
57
58 PR libitm/51855
59 * config/generic/tls.h (GTM::mask_stack_top): New.
60 (GTM::mask_stack_bottom): Declare.
61 * config/generic/tls.c (GTM::mask_stack_bottom): New.
62 * local.cc (gtm_undolog::rollback): Filter out any updates that
63 overlap the libitm stack. Add current transaction as parameter.
64 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
65 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
66 * testsuite/libitm.c/stackundo.c: New test.
67
68 2012-01-10 Richard Henderson <rth@redhat.com>
69
70 * libitm_i.h (_Unwind_DeleteException): Declare weak.
71 * eh_cpp.cc (_Unwind_DeleteException): Define for
72 !HAVE_ELF_STYLE_WEAKREF.
73
74 2012-01-08 Torvald Riegel <triegel@redhat.com>
75
76 * local.cc (GTM_LB): Use GTM::gtm_undolog.
77 (GTM::gtm_thread::drop_references_undolog): Remove.
78 (GTM::gtm_thread::commit_undolog,
79 GTM::gtm_thread::rollback_undolog): Move to ...
80 * libitm_i.h (GTM::gtm_undolog): ...here. New.
81 (GTM::gtm_undolog_entry): Remove.
82 (GTM::gtm_thread): Adapt.
83 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
84 (GTM::gtm_thread::trycommit): Adapt.
85 * method-serial.cc (serial_dispatch::log): Adapt.
86 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
87 (gl_wt_dispatch::store): Fix likely/unlikely.
88 * containers.h (GTM::vector::resize): Add additional_capacity
89 parameter and handle it.
90 (GTM::vector::resize_noinline): New/adapt.
91 (GTM::vector::push): New.
92
93 2012-01-06 Richard Henderson <rth@redhat.com>
94
95 * configure.tgt: Support powerpc-linux and powerpc-darwin.
96 * config/linux/powerpc/futex_bits.h: New file.
97 * config/powerpc/cacheline.h: New file.
98 * config/powerpc/sjlj.S: New file.
99 * config/powerpc/target.h: New file.
100 * config/generic/asmcfi.h (cfi_offset): New.
101 (cfi_restore, cfi_undefined): New.
102
103 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
104
105 PR other/51171
106 * testsuite/libitm.c/reentrant.c: Remove xfail.
107 (thread): Pass x to pure().
108 From Patrik Marlier <patrick.marlier@gmail.com>.
109
110 2011-12-24 Torvald Riegel <triegel@redhat.com>
111
112 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
113 privatization safety if already in serial mode.
114
115 2011-12-24 Torvald Riegel <triegel@redhat.com>
116
117 * beginend.cc (GTM::gtm_thread::restart): Add and handle
118 finish_serial_upgrade parameter.
119 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
120 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
121 Don't unset reader flag.
122 (GTM::gtm_rwlock::write_upgrade_finish): New.
123 * config/posix/rwlock.cc: Same.
124 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
125 Declare.
126 * config/posix/rwlock.h: Same.
127 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
128 flag after commit or after rollback when restarting.
129
130 2011-12-24 Torvald Riegel <triegel@redhat.com>
131
132 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
133 (GTM::gtm_thread::try_commit): Changed memory order.
134 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
135 as parameter.
136 * config/linux/x86/futex_bits.h (sys_futex0): Same.
137 * config/linux/sh/futex_bits.h (sys_futex0): Same.
138 * config/linux/futex_bits.h (sys_futex0): Same.
139 * config/linux/futex.cc (futex_wait, futex_wake): Same.
140 * config/linux/futex.h (futex_wait, futex_wake): Same.
141 * config/linux/rwlock.h (gtm_rwlock::writers,
142 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
143 ints.
144 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
145 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
146 gtm_rwlock::write_unlock): Fix memory orders and fences.
147 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
148 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
149 gtm_rwlock::write_unlock): Same.
150 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
151 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
152 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
153 Add comments.
154 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
155 gl_wt_dispatch::load, gl_wt_dispatch::store,
156 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
157 orders and fences. Add comments.
158
159 2011-12-21 Jakub Jelinek <jakub@redhat.com>
160
161 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
162 * Makefile.in: Regenerated.
163
164 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
165
166 * configure.tgt: Add sh* case.
167 * config/sh/target.h: New file.
168 * config/sh/sjlj.S: New file.
169 * config/linux/sh/futex_bits.h: New file.
170
171 2011-12-14 Richard Henderson <rth@redhat.com>
172
173 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
174 * config/arm/sjlj.S, config/arm/target.h: New files.
175 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
176 (cfi_rel_offset): New.
177 * config/linux/futex_bits.h: New file.
178 * config/linux/futex.cc: Include futex_bits.h here...
179 * config/linux/futex.h: ... not here.
180 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
181 * configure.ac (ARCH_AM): New conditional.
182 * Makefile.in, configure: Rebuild.
183 * configure.tgt: Handle ARM.
184
185 2011-12-13 Richard Henderson <rth@redhat.com>
186
187 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
188 signed/unsigned comparison werror.
189
190 * local_atomic: New file.
191 * libitm_i.h: Include it.
192 (gtm_thread::shared_state): Use atomic template.
193 * beginend.cc (GTM::gtm_clock): Use atomic template.
194 (global_tid): Use atomic template if 64-bit atomics available.
195 (gtm_thread::gtm_thread): Update shared_state access.
196 (gtm_thread::trycommit): Likewise.
197 (choose_code_path): Update global_tid access.
198 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
199 * stmlock.h (GTM::gtm_clock): Use atomic template.
200 (gtm_get_clock, gtm_inc_clock): Update accesses.
201 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
202 redundant __sync_synchronize after atomic shared_state access.
203 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
204 (gtm_rwlock::write_lock_generic): Likewise.
205 (gtm_rwlock::read_unlock): Likewise.
206 * config/alpha/target.h (atomic_read_barrier): Remove.
207 (atomic_write_barrier): Remove.
208 * config/x86/target.h (atomic_read_barrier): Remove.
209 (atomic_write_barrier): Remove.
210
211 2011-11-30 Richard Henderson <rth@redhat.com>
212
213 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
214 * beginend.c (_ITM_abortTransaction): Update to match.
215 (GTM::gtm_thread::restart): Likewise.
216 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
217 * config/x86/sjlj.S (GTM_longjmp): Likewise.
218
219 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
220
221 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
222 * Makefile.in: Regenerate.
223
224 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
225
226 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
227 * alloc_cpp.cc: Generate dummy functions if we don't
228 HAVE_ELF_STYLE_WEAKREF.
229 * eh_cpp.cc: Likewise.
230 * configure: Regenerate.
231 * aclocal.m4: Likewise.
232 * config.h.in: Likewise.
233 * Makefile.in: Likewise.
234 * testsuite/Makefile.in: Likewise.
235
236 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
237
238 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
239 __USER_LABEL_PREFIX__ for targets that use it.
240 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
241 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
242 in portability to non-elf targets.
243 (GTM_longjmp): Likewise.
244 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
245 where required.
246
247 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
248
249 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
250 * testsuite/libitm.c/memset-1.c: Likewise.
251
252 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
253
254 * configure: Regenerate.
255
256 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
257
258 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
259 (LIBITM_ENABLE_SYMVERS): Handle sun style.
260 * Makefile.am: Handle sun style versioning.
261 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
262 * configure: Regenerate.
263 * Makefile.in: Regenerate.
264
265 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
266
267 * config/generic/asmcfi.h: Fix comment.
268 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
269 sequence without .hidden support, error for non-ELF targets.
270 (GTM_longjmp) [__ELF__]: Only use .hidden if
271 HAVE_ATTRIBUTE_VISIBILITY.
272
273 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
274
275 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
276 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
277 Dummy functions.
278 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
279 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
280
281 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
282
283 PR bootstrap/51098
284 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
285 * configure: Regenerate.
286
287 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
288
289 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
290
291 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
292
293 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
294 .hidden.
295 (.note.GNU-stack): Only use if __linux__.
296 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
297 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
298 * testsuite/libitm.c/reentrant.c: Likewise.
299 * testsuite/libitm.c/simple-2.c: Likewise.
300 * testsuite/libitm.c/txrelease.c: Likewise.
301 * testsuite/libitm.c++/static_ctor.C: Likewise.
302
303 2011-11-10 Richard Henderson <rth@redhat.com>
304
305 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
306 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
307 * configure.ac (ARCH_X86_AVX): New conditional.
308 * Makefile.in, configure: Rebuild.
309
310 2011-11-09 Richard Henderson <rth@redhat.com>
311
312 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
313 * configure.ac: Use it.
314 * config.h.in, configure: Rebuild.
315 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
316
317 2011-11-09 Richard Henderson <rth@redhat.com>
318
319 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
320 * config/alpha/unaligned.h: Remove file.
321 * config/generic/unaligned.h: Remove file.
322 * config/x86/unaligned.h: Remove file.
323 * config/generic/cachepage.h: Remove file.
324 * config/posix/cachepage.cc: Remove file.
325 * config/generic/cacheline.cc: Remove file.
326 * config/x86/cacheline.cc: Remove file.
327 * config/generic/cacheline.h (gtm_cacheline): Remove the
328 store_mask, copy_mask, copy_mask_wb methods.
329 * config/x86/cacheline.h: Likewise.
330 * config/alpha/cacheline.h: Fall back to generic after setting size.
331 * config/generic/tls.cc (gtm_mask_stack): Remove.
332 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
333 (GTM_vpalignr_table): Remove.
334 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
335 (GTM_pshift_table): Remove.
336 * config/libitm_i.h: Don't include cachepage.h.
337 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
338 * Makefile.in, testsuite/Makefile.in: Rebuild.
339
340 2011-11-09 Richard Henderson <rth@redhat.com>
341
342 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
343 to emit branch prediction hint.
344
345 * config/x86/sjlj.S: Protect elf directives with __ELF__.
346 Protect .note.GNU-stack with __linux__.
347
348 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
349 * configure, aclocal.m4, config.h.in: Rebuild.
350 * config/generic/asmcfi.h: New file.
351 * config/x86/sjlj.S: Use it.
352
353 2011-11-08 Richard Henderson <rth@redhat.com>
354
355 * local.cc (_ITM_LB): Use a normal call, not a function alias.
356
357 2011-11-08 Richard Henderson <rth@redhat.com>
358
359 * configure.tgt: Test correct directory for supported cpus.
360
361 * configure.ac: Exit if unsupported.
362 * configure: Rebuild.
363 * configure.tgt: Delete boilerplate from libgomp for unsupported
364 targets. Set UNSUPPORTED for unsupported targets.
365
366 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
367
368 * configure.tgt: Handle i386 like i[456]86.
369 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
370 take address.
371 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
372 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
373
374 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
375
376 * method-wbetl.cc: Update copyright notice.
377 * aatree.cc: Same.
378 * util.cc: Same.
379 * libitm.h: Same.
380 * memset.cc: Same.
381 * eh_cpp.cc: Same.
382 * barrier.tpl: Same.
383 * useraction.cc: Same.
384 * stmlock.h: Same.
385 * memcpy.cc: Same.
386 * common.h: Same.
387 * config/generic/tls.cc: Same.
388 * config/generic/cacheline.h: Same.
389 * config/generic/cachepage.h: Same.
390 * config/generic/cacheline.cc: Same.
391 * config/generic/unaligned.h: Same.
392 * config/x86/cacheline.h: Same.
393 * config/x86/cacheline.cc: Same.
394 * config/x86/unaligned.h: Same.
395 * config/alpha/cacheline.h: Same.
396 * config/alpha/unaligned.h: Same.
397 * config/alpha/sjlj.S: Same.
398 * config/posix/cachepage.cc: Same.
399 * config/linux/futex.h: Same.
400 * config/linux/alpha/futex_bits.h: Same.
401
402 2011-11-04 Torvald Riegel <triegel@redhat.com>
403
404 * libitm.texi: No cover text and invariant sections.
405
406 2011-11-03 Richard Henderson <rth@redhat.com>
407
408 * local_type_traits: New file.
409 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
410
411 2011-11-03 Richard Henderson <rth@redhat.com>
412
413 * configure.ac: Don't test for gfortran.
414 * configure: Rebuild.
415
416 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
417 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
418
419 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
420
421 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
422 * testsuite/libitm.c/memset-1.c: Same.
423 * testsuite/libitm.c/c.exp: Same.
424 * testsuite/lib/libitm-dg.exp: Same.
425 * testsuite/lib/libitm.exp: Same.
426 * testsuite/libitm.c++/c++.exp: Same.
427
428 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
429
430 * testsuite/config/default.exp: Update copyright date.
431 * configure.ac: Add copyright info.
432 * configure.tgt: Same.
433
434 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
435
436 * testsuite/libitm.c/reentrant.c: XFAIL.
437 * testsuite/libitm.c++/static_ctor.C: XFAIL.
438
439 2011-10-29 Torvald Riegel <triegel@redhat.com>
440
441 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
442 handle aborts.
443 (_ITM_abortTransaction): Handle aborts of outer transactions.
444 * libitm_i.h: Same.
445 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
446 * libitm.texi: Document aborts of outer transactions.
447 * testsuite/libitm.c/cancel.c: New file.
448
449 2011-10-19 Torvald Riegel <triegel@redhat.com>
450
451 * testsuite/*: Change __transaction to __transaction_atomic or
452 __transaction_relaxed.
453
454 2011-10-19 Torvald Riegel <triegel@redhat.com>
455
456 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
457 (gtm_thr): Same.
458
459 2011-10-19 Torvald Riegel <triegel@redhat.com>
460
461 * libitm_i.h: Add gl_wt dispatch.
462 * retry.cc (parse_default_method): Same.
463 * method-gl.cc: New file.
464 * Makefile.am: Use method-gl.cc.
465 * Makefile.in: Rebuild.
466
467 2011-10-19 Torvald Riegel <triegel@redhat.com>
468
469 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
470 safety if requested by a TM method.
471 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
472 privatization safety.
473 * method-serial.cc: Same.
474
475 2011-10-19 Torvald Riegel <triegel@redhat.com>
476
477 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
478 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
479 undolog-related member functions from *_local to *_undolog.
480 * local.cc (gtm_thread::commit_undolog): Same.
481 * beginend.cc (GTM::gtm_thread::trycommit): Same.
482 (GTM::gtm_thread::rollback): Roll back undolog before
483 dispatch-specific rollback.
484
485 2011-10-19 Torvald Riegel <triegel@redhat.com>
486
487 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
488 re-initialization of the current method group.
489 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
490
491 2011-10-19 Torvald Riegel <triegel@redhat.com>
492
493 * alloc.cc (commit_allocations_2): Do not free transaction-local
494 memory when committing a nested transaction.
495
496 2011-10-19 Torvald Riegel <triegel@redhat.com>
497
498 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
499 serial-irrevocable dispatch, not serial.
500
501 2011-10-19 Torvald Riegel <triegel@redhat.com>
502
503 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
504 declarations.
505 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
506 * method-serial.cc: Implement begin_or_restart().
507 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
508 dispatch-specific begin_or_restart().
509 (GTM::gtm_thread::restart): Same.
510
511 2011-08-23 Torvald Riegel <triegel@redhat.com>
512
513 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
514 restarting without switching to serial mode.
515 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
516 transaction state. Choose closed-nesting alternative if available.
517 (GTM::gtm_thread::set_default_dispatch): New.
518 (parse_default_method): New.
519 (GTM::gtm_thread::number_of_threads_changed): New.
520 * method-serial.cc (GTM::serial_mg): New method group class.
521 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
522 fini.
523 (GTM::serial_dispatch): Same.
524 (GTM::serialirr_onwrite_dispatch): Same.
525 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
526 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
527 registered threads.
528 (GTM::gtm_thread::gtm_thread): Same.
529 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
530 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
531 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
532 choose dispatch but set state according to dispatch here.
533 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
534 (GTM::method_group): New class.
535 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
536 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
537 * libitm.texi: Document TM methods, method groups, method life cycle.
538 Rename method sets to method groups.
539
540 2011-08-23 Torvald Riegel <triegel@redhat.com>
541
542 * config/x86/tls.h: Moved to ...
543 * config/linux/x86/tls.h: ... here.
544
545 2011-08-23 Torvald Riegel <triegel@redhat.com>
546
547 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
548 Add X32 support.
549 * config/x86/sjlj.S: Same.
550
551 2011-08-19 Torvald Riegel <triegel@redhat.com>
552
553 * config/linux/rwlock.h: New file.
554 * config/linux/rwlock.c: New file.
555 * configure.ac: Reenable futex support (undo SVN rev 157758).
556 * Makefile.am: Same.
557 * configure.tgt: Same.
558 * config/linux/alpha/futex_bits.h: Same.
559 * config/linux/futex.h: Same. Return number of woken processes.
560 * config/linux/futex.cc: Same.
561 (futex_wait): Remove spinning.
562 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
563 Use __x86_64__ instead of __LP64__.
564 * aclocal.m4: Include generic futex checks.
565 * configure: Rebuild.
566 * Makefile.in: Rebuild.
567 * testsuite/Makefile.in: Rebuild.
568 * beginend.cc: Include pthread.h.
569 * config/posix/cachepage.cc: Same.
570
571 2011-08-12 Torvald Riegel <triegel@redhat.com>
572
573 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
574 (abi_disp, set_abi_disp): Move to tx's TLS slot.
575 (set_gtm_thr): New.
576 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
577 (set_gtm_thr): New.
578 (GTM::gtm_thread::thread_num): Removed.
579 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
580 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
581 tx-to-thread renaming.
582 * beginend.cc: Adapted to tx-to-thread renaming.
583 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
584 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
585 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
586 gtm_transaction to gtm_thread.
587 (_ITM_getThreadnum): Removed. Not supported anymore.
588 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
589 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
590 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
591 gtm_tx-to-gtm_thr renaming if necessary.
592 * eh_cpp.cc: Same.
593 * local.cc: Same.
594 * retry.cc: Same.
595 * clone.cc: Same.
596 * alloc.cc: Same.
597 * alloc_c.cc: Same.
598 * alloc_cpp.cc: Same.
599 * method-serial.cc: Same.
600 * config/generic/tls.cc: Same.
601 * config/posix/rwlock.h (gtm_rwlock): Same.
602 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
603
604 2011-08-12 Torvald Riegel <triegel@redhat.com>
605
606 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
607 implementation.
608 (gtm_rwlock::read_unlock): Same.
609 (gtm_rwlock::write_lock_generic): New. Generalized from ...
610 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
611 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
612 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
613 w_upgrade. Replaced by per-transaction flags (in shared_state).
614 Added c_confirmed_writers.
615 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
616 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
617 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
618 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
619 * beginend.cc (GTM::gtm_transaction::begin_transaction,
620 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
621 * libitm.texi: Document locking conventions and implementations in
622 libitm.
623
624 2011-08-12 Torvald Riegel <triegel@redhat.com>
625
626 * libitm_i.h (next_tx): Add list of all threads' transaction.
627 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
628 transaction with list of transactions and ...
629 (thread_exit_handler): ... deregister here.
630 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
631 * config/x86/target.h: Same.
632
633 2011-08-12 Torvald Riegel <triegel@redhat.com>
634
635 * testsuite/libitm.c++/static_ctor.C: New file.
636
637 2011-08-12 Torvald Riegel <triegel@redhat.com>
638
639 * testsuite/libitm.c/reentrant.c: New file.
640
641 2011-08-12 Torvald Riegel <triegel@redhat.com>
642
643 * config/generic/tls.h: Remove the free list for transactions and ...
644 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
645 (GTM::gtm_transaction::operator delete): ... and release here.
646 (thread_exit_handler): New. Delete tx when thread terminates.
647 (thread_exit_init): New.
648 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
649 * testsuite/libitm.c/txrelease.c: New file.
650
651 2011-08-12 Torvald Riegel <triegel@redhat.com>
652
653 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
654 * testsuite/libitm.c/notx.c: New file.
655
656 2011-08-12 Torvald Riegel <triegel@redhat.com>
657
658 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
659 * libitm_i.h (local_tid): ... to here.
660 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
661 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
662
663 2011-08-12 Torvald Riegel <triegel@redhat.com>
664
665 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
666 serialirr_onwrite_dispatch as new default for now.
667 * method-serial.cc (serialirr_onwrite_dispatch): New.
668 (GTM::dispatch_serialirr_onwrite): New.
669 * libitm_i.h: Same.
670
671 2011-08-12 Torvald Riegel <triegel@redhat.com>
672
673 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
674 * query.cc (_ITM_getTransactionId): There is no active transaction if
675 the current nesting level is zero.
676
677 2011-07-28 Torvald Riegel <triegel@redhat.com>
678
679 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
680 rollback.
681
682 2011-07-28 Torvald Riegel <triegel@redhat.com>
683
684 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
685 transaction properties from the caller instead of from the
686 transaction object.
687 * libitm_i.h: Same.
688 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
689
690 2011-07-28 Torvald Riegel <triegel@redhat.com>
691
692 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
693 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
694 * dispatch.h: Same.
695 * method-serial.cc: Same.
696 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
697 flat nesting as default, and closed nesting on demand.
698 (GTM::gtm_transaction::rollback): Same.
699 (_ITM_abortTransaction): Same.
700 (GTM::gtm_transaction::restart): Same.
701 (GTM::gtm_transaction::trycommit): Same.
702 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
703 (choose_code_path): New.
704 (GTM::gtm_transaction_cp::save): New.
705 (GTM::gtm_transaction_cp::commit): New.
706 * query.cc (_ITM_inTransaction): Support flat nesting.
707 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
708 (GTM::gtm_transaction): Support flat and closed nesting.
709 * alloc.cc (commit_allocations_2): New.
710 (commit_cb_data): New helper struct.
711 (GTM::gtm_transaction::commit_allocations): Handle nested
712 commits/rollbacks.
713 * libitm.texi: Update user action section, add description of nesting.
714
715 2011-07-28 Torvald Riegel <triegel@redhat.com>
716
717 * libitm_i.h: Add closed nesting as restart reason.
718 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
719
720 2011-07-28 Torvald Riegel <triegel@redhat.com>
721
722 * useraction.cc: Use vector instead of list to store actions.
723 Also support partial rollbacks for closed nesting.
724 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
725 * beginend.cc: Same.
726
727 2011-07-28 Torvald Riegel <triegel@redhat.com>
728
729 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
730 closed_nesting flags, as well as a closed nesting alternative.
731 * method-serial.cc: Same.
732 (serial_dispatch): Renamed to serialirr_dispatch.
733 (GTM::dispatch_serialirr): Same.
734 (serial_dispatch_ul): Renamed to serial_dispatch.
735 (GTM::dispatch_serial): Same.
736
737 2011-07-28 Torvald Riegel <triegel@redhat.com>
738
739 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
740
741 2011-07-28 Torvald Riegel <triegel@redhat.com>
742
743 * aatree.h (aa_tree::remove): New.
744 (aa_tree::operator new): Add placement new.
745
746 2011-07-02 Torvald Riegel <triegel@redhat.com>
747
748 * containers.h: New file.
749 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
750 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
751 * common.h: ... to here.
752 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
753 * local.cc: Same.
754
755 2011-06-30 Torvald Riegel <triegel@redhat.com>
756
757 * libitm_i.h (STATE_ABORTING): Remove.
758 * beginend.cc (_ITM_abortTransaction): Same.
759 (GTM::gtm_transaction::trycommit_and_finalize): Same.
760 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
761 (_ITM_rollbackTransaction): Remove.
762 * beginend.cc: Same.
763 * libitm.map: Same.
764 * libitm.texi: Document these ABI changes.
765
766 2011-06-30 Torvald Riegel <triegel@redhat.com>
767
768 * libitm.texi: New file.
769 * Makefile.am: Add libitm.texi.
770 * Makefile.in: Rebuild.
771
772 2011-06-30 Torvald Riegel <triegel@redhat.com>
773
774 * libitm_i.h: Move parts to common.h and dispatch.h.
775 * common.h: New file.
776 * dispatch.h: New file, new dispatch class.
777 Rename GTM::abi_dispatch::lock_type to ls_modifier.
778 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
779 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
780 decision to retry.cc.
781 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
782 only.
783 (GTM::gtm_transaction::decide_begin_dispatch): Same.
784 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
785 logging.
786 * barrier.cc: Use new barriers definitions.
787 (abi_dispatch::memmove_overlap_check): New.
788 * config/x86/x86_sse.cc: Same.
789 * config/x86/x86_avx.cc: Same.
790 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
791 memcpy.cc.
792 * Makefile.in: Rebuild.
793 * method-readonly.cc: Remove.
794 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
795 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
796
797 2011-06-30 Torvald Riegel <triegel@redhat.com>
798
799 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
800 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
801 * testsuite/libitm.c/dropref-2.c: Same.
802 * testsuite/libitm.c/dropref.c: Same.
803
804 2011-06-30 Torvald Riegel <triegel@redhat.com>
805
806 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
807 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
808 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
809 * alloc_c.cc: Same.
810 * barrier.tpl: Same.
811 * beginend.c: Same.
812 * config/generic/tls.h: Same.
813 * config/x86/tls.h: Same.
814 * libitm_i.h: Same.
815 * memcpy.cc: Same.
816 * memset.cc: Same.
817 * method-readonly.cc: Same.
818 * method-serial.cc: Same.
819 * method-wbetl.cc: Same.
820 * retry.cc: Same.
821
822 2011-03-03 Richard Henderson <rth@redhat.com>
823
824 * config/posix/rwlock.cc (write_upgrade): Add missing case.
825 From Patrik Marlier <patrick.marlier@unine.ch>.
826
827 2011-02-03 Richard Henderson <rth@redhat.com>
828
829 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
830 * configure.ac: Use it.
831 * configure, config.h.in: Rebuild.
832 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
833 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
834 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
835 * libitm.map: Use wildcards to match size_t mangling.
836
837 2010-12-14 Richard Henderson <rth@redhat.com>
838
839 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
840 blocks of TIDs per thread.
841 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
842 (setup_gtm_thr): Return the thread structure.
843 * config/x86/tls.h (setup_gtm_thr): Likewise.
844
845 2010-12-14 Richard Henderson <rth@redhat.com>
846
847 * clone.cc (table_lock): Remove.
848 (find_clone): Don't take it.
849 (ExcludeTransaction): New helper class.
850 (_ITM_registerTMCloneTable): Use it.
851 (_ITM_deregisterTMCloneTable): Likewise.
852
853 2010-12-14 Richard Henderson <rth@redhat.com>
854
855 * config/x86/tls.h: New file.
856
857 2010-07-15 Richard Henderson <rth@redhat.com>
858
859 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
860 * Makefile.in: Rebuild.
861
862 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
863
864 * method-wbetl.cc (trydropreference): Fix source line.
865
866 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
867
868 * libitm.h: Add comment.
869 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
870
871 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
872
873 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
874 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
875 available, use pthread mutexes.
876 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
877 * config.h.in: Regenerate.
878 * configure: Regenerate.
879
880 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
881
882 * libitm.h (ITM_PURE): Define.
883 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
884
885 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
886
887 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
888 (validate): Add comment.
889 (trydropreference): New.
890 * method-readonly.cc (class readonly_dispatch): Add
891 trydropreference.
892 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
893 Call trydropreference().
894 * libitm.h (_ITM_dropReferences): Remove const attribute.
895 * method-serial.cc (class serial_dispatch): Add trydropreference.
896 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
897
898 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
899
900 * memcpy.cc (do_memcpy): Comment.
901
902 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
903
904 * barrier.tpl: Add comments throughout.
905
906 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
907
908 * method-wbetl.cc (struct w_entry): Add comments.
909 (trycommit): Same.
910 (rollback): Same.
911
912 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
913
914 * alloc_c.cc (_ITM_dropReferences): New.
915 * libitm.map (_ITM_dropReferences): Add.
916 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
917 * libitm_i.h (struct gtm_transaction): Declare
918 drop_references_allocations and drop_references_local.
919 * local.cc (rollback_local): Ignore memory when applicable.
920 (drop_references_local): New.
921
922 2010-06-23 Richard Henderson <rth@redhat.com>
923
924 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
925 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
926 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
927 * config/alpha/target.h: Likewise.
928 * config/generic/tls.cc (gtm_mask_stack): Use it.
929
930 2010-06-23 Richard Henderson <rth@redhat.com>
931
932 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
933 a mutex instead of trying a lock-free compare-and-swap on the list.
934 (gtm_cacheline_page::operator delete): Likewise.
935
936 2010-06-16 Richard Henderson <rth@redhat.com>
937
938 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
939 that overlap the libitm stack.
940 * barrier.tpl: Mark incoming stack.
941 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
942 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
943 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
944 * memcpy.cc, memset.cc: Likewise.
945 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
946 * config/generic/tls.h (gtm_thread): Add stack_top member.
947 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
948 * libitm_i.h (gtm_mask_stack): Declare.
949 * config/generic/tls.cc: New file.
950 * Makefile.am (libitm_la_SOURCES): Add it.
951 (AM_CXXFLAGS): Turn off exceptions.
952 * Makefile.in: Rebuild.
953
954 2010-06-16 Richard Henderson <rth@redhat.com>
955
956 * alloc.cc (struct gtm_alloc_action): Move definition ...
957 * libitm_i.h: ... here.
958 (class gtm_transaction): Declare new and delete.
959 * beginend.cc (alloc_tx): Reformulate as operator new.
960 (free_tx): Reformulate as operator delete.
961 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
962
963 2010-06-11 Richard Henderson <rth@redhat.com>
964
965 * clone.cc (clone_entry_compare): Fix typo.
966 From Patrik Marlier <patrick.marlier@unine.ch>.
967
968 2010-05-13 Richard Henderson <rth@redhat.com>
969
970 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
971 in extern "C".
972
973 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
974
975 * libitm_i.h (struct gtm_transaction): Remove
976 get_allocation_size.
977 (record_allocation): Remove size parameter.
978 * libitm.map (_ITM_realloc): Remove.
979 * alloc_c.cc (_ITM_realloc): Remove.
980 (_ITM_malloc): Remove size argument to record_allocation.
981 (_ITM_calloc): Same.
982 * alloc_cpp.cc (_ZGTtnwm): Same.
983 (_ZGTtnwmRKSt9nothrow_t): Same.
984 (_ZGTtnam): Same.
985 (_ZGTtnamRKSt9nothrow_t): Same.
986 * alloc.cc (struct gtm_alloc_action): Remove size.
987 (get_allocation_size): Remove.
988 (commit_allocations): Add comment.
989 (record_allocation): Remove size parameter.
990 (forget_allocation): Remove set of size.
991
992 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
993
994 * Makefile.am (abi_version): New.
995 (AM_CXXFLAGS): Pass abi_version.
996 * Makefile.in: Regenerate.
997 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
998
999 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1000
1001 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1002 _ITM_getTMCloneOrIrrevokable.
1003 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1004 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1005
1006 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1007
1008 * configure.ac: Remove Linux futex support.
1009 * configure.tgt (config_path): Same.
1010 * Makefile.am: Same.
1011 * config/linux: Remove entire directory.
1012 * configure: Rebuild.
1013 * Makefile.in: Rebuild.
1014 * testsuite/Makefile.in: Rebuild.
1015
1016 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1017
1018 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1019 switching to serial mode.
1020 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1021
1022 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1023
1024 * configure.tgt: Add emacs -*- tags.
1025 * barrier.tpl: Same.
1026
1027 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1028
1029 * Makefile.am: Rename serial.cc to method-serial.cc.
1030 * Makefile.in: Regenerate with automake 1.11.1.
1031 * testsuite/Makefile.in: Same.
1032 * aclocal.m4: Regenerate with aclocal 1.11.1.
1033 * method-serial.cc: Rename from serial.cc.
1034 * libitm_i.h (struct gtm_transaction): Update comment on
1035 serialirr_mode.
1036
1037 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1038
1039 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1040 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1041
1042 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1043
1044 * configure: Rebuild.
1045
1046 2009-11-12 Richard Henderson <rth@redhat.com>
1047
1048 * Rewrite everything in C++.
1049
1050 2009-11-03 Richard Henderson <rth@redhat.com>
1051
1052 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1053 * Makefile.am (libitm_la_SOURCES): Add them.
1054 * configure.ac (ARCH_X86): New conditional.
1055 * Makefile.in, configure: Rebuild.
1056 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1057 Move futex setup into "other system configury" case.
1058 * local.c (rollback_local): Merge into ...
1059 (GTM_rollback_local): ... here.
1060 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1061 (_ITM_LB): Define as an alias to GTM_LB.
1062
1063 2009-11-03 Richard Henderson <rth@redhat.com>
1064
1065 * method-readonly.c: New file.
1066 * Makefile.am (libitm_la_SOURCES): Add it.
1067 * Makefile.in: Rebuild.
1068 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1069 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1070 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1071 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1072 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1073 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1074 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1075 gtm_get_clock, gtm_inc_clock): New.
1076 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1077 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1078 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1079 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1080 replace uses with new libitm_i.h symbols.
1081 (dispatch_wbetl): Rename from wbetl_dispatch.
1082 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1083 away from dispatch_readonly; abort if the beginTransaction call
1084 asserted that the transaction was readonly.
1085
1086 2009-11-03 Richard Henderson <rth@redhat.com>
1087
1088 * memset.c: New file.
1089 * Makefile.am (libitm_la_SOURCES): Add it.
1090 * Makefile.in: Rebuild.
1091 * testsuite/libitm.c/memset-1.c: New.
1092
1093 2009-11-03 Richard Henderson <rth@redhat.com>
1094
1095 * dispatch.c: Remove file.
1096 * useraction.c (struct gtm_user_action): Move from libitm.h.
1097 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1098 (serial_memset, serial_memmove, serial_memcpy): Remove.
1099 (serial_W*, serial_R*): Remove.
1100 (serial_dispatch): Update to match.
1101 * configure.ac: Move Werror down below configure checks. Don't
1102 check for sys/loadavg.h, do check for malloc.h. Don't check for
1103 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1104 Use GCC_AC_FUNC_MMAP_BLACKLIST
1105 * libitm.h: Split out all internal items to...
1106 * libitm_i.h: ... here. New file.
1107 * copymask.c: New file.
1108 * local.c (struct gtm_local_undo): Move from libitm.h.
1109 (GTM_alloc_local): Rename from alloc_local; export.
1110 * memcpy.c: New file.
1111 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1112 * config/posix/page.c: New file.
1113 * config/posix/target_tls.h: Remove file.
1114 * barrier.c: New file.
1115 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1116 copymask.c, page.c.
1117 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1118 * method-wbetl.c: Rewrite for new cacheline methods.
1119 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1120
1121 * config/alpha/sjlj.S: Fix typo.
1122 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1123 * config/alpha/copymask.c: New file.
1124 * config/alpha/target.h (CACHELINE_SIZE): New.
1125 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1126
1127 * config/x86/target_i.h: Copy functions from x86/target.h.
1128 * config/x86/copymask.c: New file.
1129 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1130 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1131 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1132 * config/x86/target_tls.h: Move contents to target_i.h.
1133
1134 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1135 * testsuite/libitm.c/memcpy-1.c: New.
1136
1137 2009-10-22 Richard Henderson <rth@redhat.com>
1138
1139 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1140 (AM_CCASFLAGS): New.
1141 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1142 saving/restoring _AC_ARG_VAR_PRECIOUS.
1143 * Makefile.in, aclocal.m4, config.h.in, configure,
1144 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1145
1146 2009-10-22 Richard Henderson <rth@redhat.com>
1147
1148 * testsuite/*: Update for new compiler syntax.
1149
1150 2009-10-21 Richard Henderson <rth@redhat.com>
1151
1152 * libitm.h (_ITM_abortReason): Add outerAbort.
1153
1154 2009-08-03 Richard Henderson <rth@redhat.com>
1155
1156 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1157 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1158 * method-wbetl.c (struct w_entry): Remove mask.
1159 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1160 adjust all callers.
1161
1162 2009-07-22 Richard Henderson <rth@redhat.com>
1163
1164 * eh_cpp.c: New file.
1165 * Makefile.am (libitm_la_SOURCES): Add it.
1166 * Makefile.in: Rebuild.
1167 * beginend.c (GTM_rollback_transaction): Undo exception state.
1168 (GTM_trycommit_transaction): Mark inline.
1169 (GTM_trycommit_and_finalize_transaction): Split out from ...
1170 (_ITM_commitTransaction): ... here.
1171 (_ITM_commitTransactionEH): New function.
1172 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1173 cxa_unthrown, eh_in_flight; reorder.
1174
1175 * testsuite/libitm.c++/c++.exp: New.
1176 * testsuite/libitm.c++/eh-1.C: New.
1177
1178 * aatree.c (aa_free): Remove REGPARM.
1179 * aatree.h: Remove all REGPARM.
1180
1181 2009-07-18 Richard Henderson <rth@redhat.com>
1182
1183 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1184 * Makefile.am (libitm_la_SOURCES): Add them.
1185 * Makefile.in: Rebuild.
1186 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1187 (GTM_trycommit_transaction): Likewise.
1188 * libitm.h: Include aatree.h
1189 (struct gtm_alloc_action): New.
1190 (struct gtm_transaction): Add alloc_actions.
1191 (GTM_record_allocation, GTM_forget_allocation): Declare.
1192 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1193 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1194 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1195 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1196 _ZGTtdaPvRKSt9nothrow_t): Export.
1197
1198 2009-07-18 Richard Henderson <rth@redhat.com>
1199
1200 * target_tls.h: Move ...
1201 * config/posix/target_tls.h: ... here.
1202
1203 2009-07-07 Richard Henderson <rth@redhat.com>
1204
1205 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1206
1207 2009-07-07 Richard Henderson <rth@redhat.com>
1208
1209 * Update to GPL3.
1210
1211 2009-07-07 Richard Henderson <rth@redhat.com>
1212
1213 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1214 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1215
1216 * configure.tgt: Don't use -ftls-model for x86 linux.
1217 * libitm.h: Include target.h after standard includes.
1218 (_gtm_thr): Rename from gtm_thr.
1219 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1220 (gtm_disp, set_gtm_disp): New.
1221 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1222 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1223 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1224
1225 2009-07-07 Richard Henderson <rth@redhat.com>
1226
1227 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1228
1229 2009-07-06 Richard Henderson <rth@redhat.com>
1230
1231 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1232 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1233 (_ITM_beginTransaction): Take variadic arguments.
1234 (_ITM_registerThrownObject): Declare.
1235 * beginend.c, serial.c: Update.
1236 * libitm.map: Add _ITM_registerThrownObject.
1237
1238 2009-01-28 Richard Henderson <rth@redhat.com>
1239
1240 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1241 * Makefile.in: Rebuild.
1242 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1243 (GTM_restart_transaction): Fix uninstrumented code check.
1244 * retry.c (GTM_decide_retry_strategy): Add serial check.
1245 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1246 automatically go irrevokable when in serial mode.
1247 * clone.c: New file.
1248 * libitm.h, libitm.map: Update.
1249
1250 2009-01-27 Richard Henderson <rth@redhat.com>
1251
1252 * Makefile.am (LTCCASCOMPILE): Define.
1253 (libitm_la_SOURCES): Add methid-wbetl.c.
1254 * testsuite/Makefile.am: New
1255 * configure.ac: Add testsuite/Makefile.
1256 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1257 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1258 (_ITM_abortTransaction): Finalize implementation method; pass
1259 transaction properties to longjmp.
1260 (GTM_restart_transaction): Split out from ...
1261 (_ITM_commitTransaction): ... here.
1262 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1263 Move to config/x86/target.h.
1264 * config/linux/alpha/futex_bits.h: New.
1265 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1266 * config/x86/target.h: Disable target types for 32-bit.
1267 * config/alpha/sjlj.S, config/alpha/target.h: New.
1268 * libitm.h (struct gtm_dispatch): Add init, fini.
1269 (enum restart_reason): New.
1270 (struct gtm_transaction): Add method and restarts.
1271 * retry.c (GTM_decide_retry_strategy): Implement.
1272 * serial.c (serial_init, serial_fini): New.
1273 (GTM_serialmode): Finialize outgoing method.
1274 * method-wbetl.c: New.
1275
1276 2008-12-09 Richard Henderson <rth@redhat.com>
1277
1278 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1279 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1280 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1281 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1282 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1283 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1284 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1285 * serial.c (serial_R##T, serial_W##T): Likewise.
1286
1287 2008-11-21 Richard Henderson <rth@redhat.com>
1288
1289 * Initial commit.