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