1 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
3 * configure: Regenerate.
5 2012-10-31 Richard Henderson <rth@redhat.com>
7 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
8 * configure.ac: Use it.
9 * config.h.in, configure: Rebuild.
10 * testsuite/Makefile.in: Rebuild.
12 2012-10-24 Torvald Riegel <triegel@redhat.com>
14 * libitm.texi: Clarify ABI requirements for data-logging functions.
16 2012-10-24 Torvald Riegel <triegel@redhat.com>
18 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
19 it requires serial mode instead of assuming that for certain
21 * dispatch.h (abi_dispatch::requires_serial): New.
22 (abi_dispatch::abi_dispatch): Adapt.
23 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
24 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
25 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
26 serial_dispatch::serial_dispatch,
27 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
29 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
31 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
32 and ia32 declarations some more.
33 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
35 2012-09-20 Jakub Jelinek <jakub@redhat.com>
38 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
39 * configure: Regenerate.
40 * Makefile.in: Regenerate.
42 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
44 * configure: Regenerated.
46 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
48 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
50 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
52 * eh_cpp.cc: Fix __cxa_end_catch declaration.
54 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
56 * configure: Regenerated.
58 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
61 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
64 2012-04-03 Tristan Gingold <gingold@adacore.com>
66 * configure: Regenerate.
68 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
71 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
73 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
75 * testsuite/lib/libitm.exp: load fortran-modules.exp
77 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
79 * configure.tgt (*-*-irix6*): Remove.
81 2012-03-13 Torvald Riegel <triegel@redhat.com>
84 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
87 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
89 * configure.tgt (*-*-osf*): Remove.
90 * configure: Regenerate.
92 2012-03-05 Torvald Riegel <triegel@redhat.com>
94 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
95 memtransfer/memset if size isn't larger than zero.
97 2012-03-02 Torvald Riegel <triegel@redhat.com>
99 * libitm.texi: Link to specification and add a usage example.
101 2012-02-24 Torvald Riegel <triegel@redhat.com>
103 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
104 default dispatch for more than 1 thread to ml_wt.
106 2012-02-20 Torvald Riegel <triegel@redhat.com>
108 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
110 2012-02-20 Torvald Riegel <triegel@redhat.com>
112 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
114 2012-02-20 Torvald Riegel <triegel@redhat.com>
116 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
117 serial mode corner cases made obsolete by prior gtm_rwlock changes.
118 (gl_wt_dispatch.rollback): Same.
120 2012-02-20 Torvald Riegel <triegel@redhat.com>
122 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
124 2012-02-20 Torvald Riegel <triegel@redhat.com>
126 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
127 for RfW src. Optimize number of calls to gtm_thr.
129 2012-02-20 Torvald Riegel <triegel@redhat.com>
131 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
133 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
134 (default_dispatch): Make atomic.
135 (GTM::gtm_thread::set_default_dispatch): Access atomically.
136 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
137 use decide_begin_dispatch() if default_dispatch might have changed.
138 (GTM::gtm_thread::number_of_threads_changed): Initialize
139 default_dispatch here.
141 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
142 Patrick Marlier <patrick.marlier@gmail.com>
145 * alloc_cpp.cc: No dummy definitions for darwin.
146 * eh_cpp.cc: Likewise.
148 2012-02-14 Richard Henderson <rth@redhat.com>
150 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
152 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
154 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
156 2012-02-14 Torvald Riegel <triegel@redhat.com>
158 * libitm_i.h (GTM::gtm_rwlog_entry): New.
159 (GTM::gtm_thread): Add read and write logs.
160 (GTM::dispatch_ml_wt): Declare.
161 * retry.cc (parse_default_method): Support ml_wt.
162 * method-ml.cc: New file.
163 * Makefile.am: Add method-ml.cc.
164 * Makefile.in: Regenerate.
166 2012-02-14 Torvald Riegel <triegel@redhat.com>
168 * dispatch.h (GTM::abi_dispatch::supports): New.
169 (GTM::method_group::reinit): New.
170 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
171 (GTM::gtm_thread::number_of_threads_changed): Check that the method
172 supports the current situation.
174 2012-02-14 Torvald Riegel <triegel@redhat.com>
176 * util.cc (GTM::xcalloc): New.
177 * common.h (GTM::xcalloc): Declare.
179 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
181 * config/sparc/target.h (cpu_relax): Read from CC register.
182 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
184 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
186 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
188 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
190 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
191 * config/sparc/cacheline.h: New file.
192 * config/sparc/target.h: Likewise.
193 * config/sparc/sjlj.S: Likewise.
194 * config/linux/sparc/futex_bits.h: Likewise.
196 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
198 * configure.ac (link_itm): Fix comment.
199 * configure: Regenerate.
200 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
202 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
205 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
206 Correct libgomp references.
208 2012-01-24 Torvald Riegel <triegel@redhat.com>
210 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
213 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
215 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
217 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
218 offset values. Do not copy return address. Decrement stack
220 (GTM_longjump) [__x86_64__]: Update offset values.
222 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
225 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
226 the first function argument to %eax.
228 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
230 * libitm.h (_ITM_getThreadnum): Remove.
231 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
233 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
235 * clearcap.map: New file.
236 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
237 * configure.ac: Call it.
238 Clear HWCAP_LDFLAGS if defaulting to -mavx.
239 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
240 * configure: Regenerate.
241 * Makefile.in: Regenerate.
242 * testsuite/Makefile.in: Regenerate.
244 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
247 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
248 include, exclude options.
250 2012-01-14 Torvald Riegel <triegel@redhat.com>
252 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
254 * containers.h (GTM::vector::set_size): New.
256 2012-01-14 Torvald Riegel <triegel@redhat.com>
259 * config/generic/tls.h (GTM::mask_stack_top): New.
260 (GTM::mask_stack_bottom): Declare.
261 * config/generic/tls.c (GTM::mask_stack_bottom): New.
262 * local.cc (gtm_undolog::rollback): Filter out any updates that
263 overlap the libitm stack. Add current transaction as parameter.
264 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
265 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
266 * testsuite/libitm.c/stackundo.c: New test.
268 2012-01-10 Richard Henderson <rth@redhat.com>
270 * libitm_i.h (_Unwind_DeleteException): Declare weak.
271 * eh_cpp.cc (_Unwind_DeleteException): Define for
272 !HAVE_ELF_STYLE_WEAKREF.
274 2012-01-08 Torvald Riegel <triegel@redhat.com>
276 * local.cc (GTM_LB): Use GTM::gtm_undolog.
277 (GTM::gtm_thread::drop_references_undolog): Remove.
278 (GTM::gtm_thread::commit_undolog,
279 GTM::gtm_thread::rollback_undolog): Move to ...
280 * libitm_i.h (GTM::gtm_undolog): ...here. New.
281 (GTM::gtm_undolog_entry): Remove.
282 (GTM::gtm_thread): Adapt.
283 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
284 (GTM::gtm_thread::trycommit): Adapt.
285 * method-serial.cc (serial_dispatch::log): Adapt.
286 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
287 (gl_wt_dispatch::store): Fix likely/unlikely.
288 * containers.h (GTM::vector::resize): Add additional_capacity
289 parameter and handle it.
290 (GTM::vector::resize_noinline): New/adapt.
291 (GTM::vector::push): New.
293 2012-01-06 Richard Henderson <rth@redhat.com>
295 * configure.tgt: Support powerpc-linux and powerpc-darwin.
296 * config/linux/powerpc/futex_bits.h: New file.
297 * config/powerpc/cacheline.h: New file.
298 * config/powerpc/sjlj.S: New file.
299 * config/powerpc/target.h: New file.
300 * config/generic/asmcfi.h (cfi_offset): New.
301 (cfi_restore, cfi_undefined): New.
303 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
306 * testsuite/libitm.c/reentrant.c: Remove xfail.
307 (thread): Pass x to pure().
308 From Patrik Marlier <patrick.marlier@gmail.com>.
310 2011-12-24 Torvald Riegel <triegel@redhat.com>
312 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
313 privatization safety if already in serial mode.
315 2011-12-24 Torvald Riegel <triegel@redhat.com>
317 * beginend.cc (GTM::gtm_thread::restart): Add and handle
318 finish_serial_upgrade parameter.
319 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
320 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
321 Don't unset reader flag.
322 (GTM::gtm_rwlock::write_upgrade_finish): New.
323 * config/posix/rwlock.cc: Same.
324 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
326 * config/posix/rwlock.h: Same.
327 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
328 flag after commit or after rollback when restarting.
330 2011-12-24 Torvald Riegel <triegel@redhat.com>
332 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
333 (GTM::gtm_thread::try_commit): Changed memory order.
334 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
336 * config/linux/x86/futex_bits.h (sys_futex0): Same.
337 * config/linux/sh/futex_bits.h (sys_futex0): Same.
338 * config/linux/futex_bits.h (sys_futex0): Same.
339 * config/linux/futex.cc (futex_wait, futex_wake): Same.
340 * config/linux/futex.h (futex_wait, futex_wake): Same.
341 * config/linux/rwlock.h (gtm_rwlock::writers,
342 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
344 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
345 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
346 gtm_rwlock::write_unlock): Fix memory orders and fences.
347 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
348 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
349 gtm_rwlock::write_unlock): Same.
350 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
351 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
352 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
354 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
355 gl_wt_dispatch::load, gl_wt_dispatch::store,
356 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
357 orders and fences. Add comments.
359 2011-12-21 Jakub Jelinek <jakub@redhat.com>
361 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
362 * Makefile.in: Regenerated.
364 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
366 * configure.tgt: Add sh* case.
367 * config/sh/target.h: New file.
368 * config/sh/sjlj.S: New file.
369 * config/linux/sh/futex_bits.h: New file.
371 2011-12-14 Richard Henderson <rth@redhat.com>
373 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
374 * config/arm/sjlj.S, config/arm/target.h: New files.
375 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
376 (cfi_rel_offset): New.
377 * config/linux/futex_bits.h: New file.
378 * config/linux/futex.cc: Include futex_bits.h here...
379 * config/linux/futex.h: ... not here.
380 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
381 * configure.ac (ARCH_AM): New conditional.
382 * Makefile.in, configure: Rebuild.
383 * configure.tgt: Handle ARM.
385 2011-12-13 Richard Henderson <rth@redhat.com>
387 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
388 signed/unsigned comparison werror.
390 * local_atomic: New file.
391 * libitm_i.h: Include it.
392 (gtm_thread::shared_state): Use atomic template.
393 * beginend.cc (GTM::gtm_clock): Use atomic template.
394 (global_tid): Use atomic template if 64-bit atomics available.
395 (gtm_thread::gtm_thread): Update shared_state access.
396 (gtm_thread::trycommit): Likewise.
397 (choose_code_path): Update global_tid access.
398 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
399 * stmlock.h (GTM::gtm_clock): Use atomic template.
400 (gtm_get_clock, gtm_inc_clock): Update accesses.
401 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
402 redundant __sync_synchronize after atomic shared_state access.
403 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
404 (gtm_rwlock::write_lock_generic): Likewise.
405 (gtm_rwlock::read_unlock): Likewise.
406 * config/alpha/target.h (atomic_read_barrier): Remove.
407 (atomic_write_barrier): Remove.
408 * config/x86/target.h (atomic_read_barrier): Remove.
409 (atomic_write_barrier): Remove.
411 2011-11-30 Richard Henderson <rth@redhat.com>
413 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
414 * beginend.c (_ITM_abortTransaction): Update to match.
415 (GTM::gtm_thread::restart): Likewise.
416 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
417 * config/x86/sjlj.S (GTM_longjmp): Likewise.
419 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
421 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
422 * Makefile.in: Regenerate.
424 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
426 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
427 * alloc_cpp.cc: Generate dummy functions if we don't
428 HAVE_ELF_STYLE_WEAKREF.
429 * eh_cpp.cc: Likewise.
430 * configure: Regenerate.
431 * aclocal.m4: Likewise.
432 * config.h.in: Likewise.
433 * Makefile.in: Likewise.
434 * testsuite/Makefile.in: Likewise.
436 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
438 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
439 __USER_LABEL_PREFIX__ for targets that use it.
440 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
441 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
442 in portability to non-elf targets.
443 (GTM_longjmp): Likewise.
444 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
447 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
449 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
450 * testsuite/libitm.c/memset-1.c: Likewise.
452 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
454 * configure: Regenerate.
456 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
458 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
459 (LIBITM_ENABLE_SYMVERS): Handle sun style.
460 * Makefile.am: Handle sun style versioning.
461 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
462 * configure: Regenerate.
463 * Makefile.in: Regenerate.
465 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
467 * config/generic/asmcfi.h: Fix comment.
468 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
469 sequence without .hidden support, error for non-ELF targets.
470 (GTM_longjmp) [__ELF__]: Only use .hidden if
471 HAVE_ATTRIBUTE_VISIBILITY.
473 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
475 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
476 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
478 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
479 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
481 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
484 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
485 * configure: Regenerate.
487 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
489 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
491 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
493 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
495 (.note.GNU-stack): Only use if __linux__.
496 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
497 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
498 * testsuite/libitm.c/reentrant.c: Likewise.
499 * testsuite/libitm.c/simple-2.c: Likewise.
500 * testsuite/libitm.c/txrelease.c: Likewise.
501 * testsuite/libitm.c++/static_ctor.C: Likewise.
503 2011-11-10 Richard Henderson <rth@redhat.com>
505 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
506 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
507 * configure.ac (ARCH_X86_AVX): New conditional.
508 * Makefile.in, configure: Rebuild.
510 2011-11-09 Richard Henderson <rth@redhat.com>
512 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
513 * configure.ac: Use it.
514 * config.h.in, configure: Rebuild.
515 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
517 2011-11-09 Richard Henderson <rth@redhat.com>
519 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
520 * config/alpha/unaligned.h: Remove file.
521 * config/generic/unaligned.h: Remove file.
522 * config/x86/unaligned.h: Remove file.
523 * config/generic/cachepage.h: Remove file.
524 * config/posix/cachepage.cc: Remove file.
525 * config/generic/cacheline.cc: Remove file.
526 * config/x86/cacheline.cc: Remove file.
527 * config/generic/cacheline.h (gtm_cacheline): Remove the
528 store_mask, copy_mask, copy_mask_wb methods.
529 * config/x86/cacheline.h: Likewise.
530 * config/alpha/cacheline.h: Fall back to generic after setting size.
531 * config/generic/tls.cc (gtm_mask_stack): Remove.
532 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
533 (GTM_vpalignr_table): Remove.
534 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
535 (GTM_pshift_table): Remove.
536 * config/libitm_i.h: Don't include cachepage.h.
537 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
538 * Makefile.in, testsuite/Makefile.in: Rebuild.
540 2011-11-09 Richard Henderson <rth@redhat.com>
542 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
543 to emit branch prediction hint.
545 * config/x86/sjlj.S: Protect elf directives with __ELF__.
546 Protect .note.GNU-stack with __linux__.
548 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
549 * configure, aclocal.m4, config.h.in: Rebuild.
550 * config/generic/asmcfi.h: New file.
551 * config/x86/sjlj.S: Use it.
553 2011-11-08 Richard Henderson <rth@redhat.com>
555 * local.cc (_ITM_LB): Use a normal call, not a function alias.
557 2011-11-08 Richard Henderson <rth@redhat.com>
559 * configure.tgt: Test correct directory for supported cpus.
561 * configure.ac: Exit if unsupported.
562 * configure: Rebuild.
563 * configure.tgt: Delete boilerplate from libgomp for unsupported
564 targets. Set UNSUPPORTED for unsupported targets.
566 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
568 * configure.tgt: Handle i386 like i[456]86.
569 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
571 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
572 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
574 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
576 * method-wbetl.cc: Update copyright notice.
583 * useraction.cc: Same.
587 * config/generic/tls.cc: Same.
588 * config/generic/cacheline.h: Same.
589 * config/generic/cachepage.h: Same.
590 * config/generic/cacheline.cc: Same.
591 * config/generic/unaligned.h: Same.
592 * config/x86/cacheline.h: Same.
593 * config/x86/cacheline.cc: Same.
594 * config/x86/unaligned.h: Same.
595 * config/alpha/cacheline.h: Same.
596 * config/alpha/unaligned.h: Same.
597 * config/alpha/sjlj.S: Same.
598 * config/posix/cachepage.cc: Same.
599 * config/linux/futex.h: Same.
600 * config/linux/alpha/futex_bits.h: Same.
602 2011-11-04 Torvald Riegel <triegel@redhat.com>
604 * libitm.texi: No cover text and invariant sections.
606 2011-11-03 Richard Henderson <rth@redhat.com>
608 * local_type_traits: New file.
609 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
611 2011-11-03 Richard Henderson <rth@redhat.com>
613 * configure.ac: Don't test for gfortran.
614 * configure: Rebuild.
616 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
617 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
619 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
621 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
622 * testsuite/libitm.c/memset-1.c: Same.
623 * testsuite/libitm.c/c.exp: Same.
624 * testsuite/lib/libitm-dg.exp: Same.
625 * testsuite/lib/libitm.exp: Same.
626 * testsuite/libitm.c++/c++.exp: Same.
628 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
630 * testsuite/config/default.exp: Update copyright date.
631 * configure.ac: Add copyright info.
632 * configure.tgt: Same.
634 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
636 * testsuite/libitm.c/reentrant.c: XFAIL.
637 * testsuite/libitm.c++/static_ctor.C: XFAIL.
639 2011-10-29 Torvald Riegel <triegel@redhat.com>
641 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
643 (_ITM_abortTransaction): Handle aborts of outer transactions.
645 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
646 * libitm.texi: Document aborts of outer transactions.
647 * testsuite/libitm.c/cancel.c: New file.
649 2011-10-19 Torvald Riegel <triegel@redhat.com>
651 * testsuite/*: Change __transaction to __transaction_atomic or
652 __transaction_relaxed.
654 2011-10-19 Torvald Riegel <triegel@redhat.com>
656 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
659 2011-10-19 Torvald Riegel <triegel@redhat.com>
661 * libitm_i.h: Add gl_wt dispatch.
662 * retry.cc (parse_default_method): Same.
663 * method-gl.cc: New file.
664 * Makefile.am: Use method-gl.cc.
665 * Makefile.in: Rebuild.
667 2011-10-19 Torvald Riegel <triegel@redhat.com>
669 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
670 safety if requested by a TM method.
671 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
672 privatization safety.
673 * method-serial.cc: Same.
675 2011-10-19 Torvald Riegel <triegel@redhat.com>
677 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
678 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
679 undolog-related member functions from *_local to *_undolog.
680 * local.cc (gtm_thread::commit_undolog): Same.
681 * beginend.cc (GTM::gtm_thread::trycommit): Same.
682 (GTM::gtm_thread::rollback): Roll back undolog before
683 dispatch-specific rollback.
685 2011-10-19 Torvald Riegel <triegel@redhat.com>
687 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
688 re-initialization of the current method group.
689 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
691 2011-10-19 Torvald Riegel <triegel@redhat.com>
693 * alloc.cc (commit_allocations_2): Do not free transaction-local
694 memory when committing a nested transaction.
696 2011-10-19 Torvald Riegel <triegel@redhat.com>
698 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
699 serial-irrevocable dispatch, not serial.
701 2011-10-19 Torvald Riegel <triegel@redhat.com>
703 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
705 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
706 * method-serial.cc: Implement begin_or_restart().
707 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
708 dispatch-specific begin_or_restart().
709 (GTM::gtm_thread::restart): Same.
711 2011-08-23 Torvald Riegel <triegel@redhat.com>
713 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
714 restarting without switching to serial mode.
715 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
716 transaction state. Choose closed-nesting alternative if available.
717 (GTM::gtm_thread::set_default_dispatch): New.
718 (parse_default_method): New.
719 (GTM::gtm_thread::number_of_threads_changed): New.
720 * method-serial.cc (GTM::serial_mg): New method group class.
721 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
723 (GTM::serial_dispatch): Same.
724 (GTM::serialirr_onwrite_dispatch): Same.
725 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
726 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
728 (GTM::gtm_thread::gtm_thread): Same.
729 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
730 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
731 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
732 choose dispatch but set state according to dispatch here.
733 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
734 (GTM::method_group): New class.
735 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
736 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
737 * libitm.texi: Document TM methods, method groups, method life cycle.
738 Rename method sets to method groups.
740 2011-08-23 Torvald Riegel <triegel@redhat.com>
742 * config/x86/tls.h: Moved to ...
743 * config/linux/x86/tls.h: ... here.
745 2011-08-23 Torvald Riegel <triegel@redhat.com>
747 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
749 * config/x86/sjlj.S: Same.
751 2011-08-19 Torvald Riegel <triegel@redhat.com>
753 * config/linux/rwlock.h: New file.
754 * config/linux/rwlock.c: New file.
755 * configure.ac: Reenable futex support (undo SVN rev 157758).
757 * configure.tgt: Same.
758 * config/linux/alpha/futex_bits.h: Same.
759 * config/linux/futex.h: Same. Return number of woken processes.
760 * config/linux/futex.cc: Same.
761 (futex_wait): Remove spinning.
762 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
763 Use __x86_64__ instead of __LP64__.
764 * aclocal.m4: Include generic futex checks.
765 * configure: Rebuild.
766 * Makefile.in: Rebuild.
767 * testsuite/Makefile.in: Rebuild.
768 * beginend.cc: Include pthread.h.
769 * config/posix/cachepage.cc: Same.
771 2011-08-12 Torvald Riegel <triegel@redhat.com>
773 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
774 (abi_disp, set_abi_disp): Move to tx's TLS slot.
776 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
778 (GTM::gtm_thread::thread_num): Removed.
779 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
780 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
781 tx-to-thread renaming.
782 * beginend.cc: Adapted to tx-to-thread renaming.
783 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
784 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
785 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
786 gtm_transaction to gtm_thread.
787 (_ITM_getThreadnum): Removed. Not supported anymore.
788 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
789 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
790 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
791 gtm_tx-to-gtm_thr renaming if necessary.
798 * alloc_cpp.cc: Same.
799 * method-serial.cc: Same.
800 * config/generic/tls.cc: Same.
801 * config/posix/rwlock.h (gtm_rwlock): Same.
802 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
804 2011-08-12 Torvald Riegel <triegel@redhat.com>
806 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
808 (gtm_rwlock::read_unlock): Same.
809 (gtm_rwlock::write_lock_generic): New. Generalized from ...
810 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
811 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
812 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
813 w_upgrade. Replaced by per-transaction flags (in shared_state).
814 Added c_confirmed_writers.
815 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
816 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
817 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
818 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
819 * beginend.cc (GTM::gtm_transaction::begin_transaction,
820 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
821 * libitm.texi: Document locking conventions and implementations in
824 2011-08-12 Torvald Riegel <triegel@redhat.com>
826 * libitm_i.h (next_tx): Add list of all threads' transaction.
827 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
828 transaction with list of transactions and ...
829 (thread_exit_handler): ... deregister here.
830 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
831 * config/x86/target.h: Same.
833 2011-08-12 Torvald Riegel <triegel@redhat.com>
835 * testsuite/libitm.c++/static_ctor.C: New file.
837 2011-08-12 Torvald Riegel <triegel@redhat.com>
839 * testsuite/libitm.c/reentrant.c: New file.
841 2011-08-12 Torvald Riegel <triegel@redhat.com>
843 * config/generic/tls.h: Remove the free list for transactions and ...
844 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
845 (GTM::gtm_transaction::operator delete): ... and release here.
846 (thread_exit_handler): New. Delete tx when thread terminates.
847 (thread_exit_init): New.
848 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
849 * testsuite/libitm.c/txrelease.c: New file.
851 2011-08-12 Torvald Riegel <triegel@redhat.com>
853 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
854 * testsuite/libitm.c/notx.c: New file.
856 2011-08-12 Torvald Riegel <triegel@redhat.com>
858 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
859 * libitm_i.h (local_tid): ... to here.
860 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
861 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
863 2011-08-12 Torvald Riegel <triegel@redhat.com>
865 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
866 serialirr_onwrite_dispatch as new default for now.
867 * method-serial.cc (serialirr_onwrite_dispatch): New.
868 (GTM::dispatch_serialirr_onwrite): New.
871 2011-08-12 Torvald Riegel <triegel@redhat.com>
873 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
874 * query.cc (_ITM_getTransactionId): There is no active transaction if
875 the current nesting level is zero.
877 2011-07-28 Torvald Riegel <triegel@redhat.com>
879 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
882 2011-07-28 Torvald Riegel <triegel@redhat.com>
884 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
885 transaction properties from the caller instead of from the
888 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
890 2011-07-28 Torvald Riegel <triegel@redhat.com>
892 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
893 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
895 * method-serial.cc: Same.
896 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
897 flat nesting as default, and closed nesting on demand.
898 (GTM::gtm_transaction::rollback): Same.
899 (_ITM_abortTransaction): Same.
900 (GTM::gtm_transaction::restart): Same.
901 (GTM::gtm_transaction::trycommit): Same.
902 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
903 (choose_code_path): New.
904 (GTM::gtm_transaction_cp::save): New.
905 (GTM::gtm_transaction_cp::commit): New.
906 * query.cc (_ITM_inTransaction): Support flat nesting.
907 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
908 (GTM::gtm_transaction): Support flat and closed nesting.
909 * alloc.cc (commit_allocations_2): New.
910 (commit_cb_data): New helper struct.
911 (GTM::gtm_transaction::commit_allocations): Handle nested
913 * libitm.texi: Update user action section, add description of nesting.
915 2011-07-28 Torvald Riegel <triegel@redhat.com>
917 * libitm_i.h: Add closed nesting as restart reason.
918 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
920 2011-07-28 Torvald Riegel <triegel@redhat.com>
922 * useraction.cc: Use vector instead of list to store actions.
923 Also support partial rollbacks for closed nesting.
924 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
927 2011-07-28 Torvald Riegel <triegel@redhat.com>
929 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
930 closed_nesting flags, as well as a closed nesting alternative.
931 * method-serial.cc: Same.
932 (serial_dispatch): Renamed to serialirr_dispatch.
933 (GTM::dispatch_serialirr): Same.
934 (serial_dispatch_ul): Renamed to serial_dispatch.
935 (GTM::dispatch_serial): Same.
937 2011-07-28 Torvald Riegel <triegel@redhat.com>
939 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
941 2011-07-28 Torvald Riegel <triegel@redhat.com>
943 * aatree.h (aa_tree::remove): New.
944 (aa_tree::operator new): Add placement new.
946 2011-07-02 Torvald Riegel <triegel@redhat.com>
948 * containers.h: New file.
949 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
950 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
951 * common.h: ... to here.
952 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
955 2011-06-30 Torvald Riegel <triegel@redhat.com>
957 * libitm_i.h (STATE_ABORTING): Remove.
958 * beginend.cc (_ITM_abortTransaction): Same.
959 (GTM::gtm_transaction::trycommit_and_finalize): Same.
960 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
961 (_ITM_rollbackTransaction): Remove.
964 * libitm.texi: Document these ABI changes.
966 2011-06-30 Torvald Riegel <triegel@redhat.com>
968 * libitm.texi: New file.
969 * Makefile.am: Add libitm.texi.
970 * Makefile.in: Rebuild.
972 2011-06-30 Torvald Riegel <triegel@redhat.com>
974 * libitm_i.h: Move parts to common.h and dispatch.h.
975 * common.h: New file.
976 * dispatch.h: New file, new dispatch class.
977 Rename GTM::abi_dispatch::lock_type to ls_modifier.
978 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
979 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
980 decision to retry.cc.
981 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
983 (GTM::gtm_transaction::decide_begin_dispatch): Same.
984 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
986 * barrier.cc: Use new barriers definitions.
987 (abi_dispatch::memmove_overlap_check): New.
988 * config/x86/x86_sse.cc: Same.
989 * config/x86/x86_avx.cc: Same.
990 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
992 * Makefile.in: Rebuild.
993 * method-readonly.cc: Remove.
994 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
995 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
997 2011-06-30 Torvald Riegel <triegel@redhat.com>
999 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1000 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1001 * testsuite/libitm.c/dropref-2.c: Same.
1002 * testsuite/libitm.c/dropref.c: Same.
1004 2011-06-30 Torvald Riegel <triegel@redhat.com>
1006 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1007 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1008 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1010 * barrier.tpl: Same.
1012 * config/generic/tls.h: Same.
1013 * config/x86/tls.h: Same.
1017 * method-readonly.cc: Same.
1018 * method-serial.cc: Same.
1019 * method-wbetl.cc: Same.
1022 2011-03-03 Richard Henderson <rth@redhat.com>
1024 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1025 From Patrik Marlier <patrick.marlier@unine.ch>.
1027 2011-02-03 Richard Henderson <rth@redhat.com>
1029 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1030 * configure.ac: Use it.
1031 * configure, config.h.in: Rebuild.
1032 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1033 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1034 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1035 * libitm.map: Use wildcards to match size_t mangling.
1037 2010-12-14 Richard Henderson <rth@redhat.com>
1039 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1040 blocks of TIDs per thread.
1041 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1042 (setup_gtm_thr): Return the thread structure.
1043 * config/x86/tls.h (setup_gtm_thr): Likewise.
1045 2010-12-14 Richard Henderson <rth@redhat.com>
1047 * clone.cc (table_lock): Remove.
1048 (find_clone): Don't take it.
1049 (ExcludeTransaction): New helper class.
1050 (_ITM_registerTMCloneTable): Use it.
1051 (_ITM_deregisterTMCloneTable): Likewise.
1053 2010-12-14 Richard Henderson <rth@redhat.com>
1055 * config/x86/tls.h: New file.
1057 2010-07-15 Richard Henderson <rth@redhat.com>
1059 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1060 * Makefile.in: Rebuild.
1062 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1064 * method-wbetl.cc (trydropreference): Fix source line.
1066 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1068 * libitm.h: Add comment.
1069 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1071 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1073 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1074 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1075 available, use pthread mutexes.
1076 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1077 * config.h.in: Regenerate.
1078 * configure: Regenerate.
1080 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1082 * libitm.h (ITM_PURE): Define.
1083 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1085 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1087 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1088 (validate): Add comment.
1089 (trydropreference): New.
1090 * method-readonly.cc (class readonly_dispatch): Add
1092 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1093 Call trydropreference().
1094 * libitm.h (_ITM_dropReferences): Remove const attribute.
1095 * method-serial.cc (class serial_dispatch): Add trydropreference.
1096 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1098 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1100 * memcpy.cc (do_memcpy): Comment.
1102 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1104 * barrier.tpl: Add comments throughout.
1106 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1108 * method-wbetl.cc (struct w_entry): Add comments.
1112 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1114 * alloc_c.cc (_ITM_dropReferences): New.
1115 * libitm.map (_ITM_dropReferences): Add.
1116 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1117 * libitm_i.h (struct gtm_transaction): Declare
1118 drop_references_allocations and drop_references_local.
1119 * local.cc (rollback_local): Ignore memory when applicable.
1120 (drop_references_local): New.
1122 2010-06-23 Richard Henderson <rth@redhat.com>
1124 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1125 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1126 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1127 * config/alpha/target.h: Likewise.
1128 * config/generic/tls.cc (gtm_mask_stack): Use it.
1130 2010-06-23 Richard Henderson <rth@redhat.com>
1132 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1133 a mutex instead of trying a lock-free compare-and-swap on the list.
1134 (gtm_cacheline_page::operator delete): Likewise.
1136 2010-06-16 Richard Henderson <rth@redhat.com>
1138 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1139 that overlap the libitm stack.
1140 * barrier.tpl: Mark incoming stack.
1141 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1142 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1143 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1144 * memcpy.cc, memset.cc: Likewise.
1145 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1146 * config/generic/tls.h (gtm_thread): Add stack_top member.
1147 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1148 * libitm_i.h (gtm_mask_stack): Declare.
1149 * config/generic/tls.cc: New file.
1150 * Makefile.am (libitm_la_SOURCES): Add it.
1151 (AM_CXXFLAGS): Turn off exceptions.
1152 * Makefile.in: Rebuild.
1154 2010-06-16 Richard Henderson <rth@redhat.com>
1156 * alloc.cc (struct gtm_alloc_action): Move definition ...
1157 * libitm_i.h: ... here.
1158 (class gtm_transaction): Declare new and delete.
1159 * beginend.cc (alloc_tx): Reformulate as operator new.
1160 (free_tx): Reformulate as operator delete.
1161 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1163 2010-06-11 Richard Henderson <rth@redhat.com>
1165 * clone.cc (clone_entry_compare): Fix typo.
1166 From Patrik Marlier <patrick.marlier@unine.ch>.
1168 2010-05-13 Richard Henderson <rth@redhat.com>
1170 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1173 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1175 * libitm_i.h (struct gtm_transaction): Remove
1176 get_allocation_size.
1177 (record_allocation): Remove size parameter.
1178 * libitm.map (_ITM_realloc): Remove.
1179 * alloc_c.cc (_ITM_realloc): Remove.
1180 (_ITM_malloc): Remove size argument to record_allocation.
1181 (_ITM_calloc): Same.
1182 * alloc_cpp.cc (_ZGTtnwm): Same.
1183 (_ZGTtnwmRKSt9nothrow_t): Same.
1185 (_ZGTtnamRKSt9nothrow_t): Same.
1186 * alloc.cc (struct gtm_alloc_action): Remove size.
1187 (get_allocation_size): Remove.
1188 (commit_allocations): Add comment.
1189 (record_allocation): Remove size parameter.
1190 (forget_allocation): Remove set of size.
1192 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1194 * Makefile.am (abi_version): New.
1195 (AM_CXXFLAGS): Pass abi_version.
1196 * Makefile.in: Regenerate.
1197 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1199 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1201 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1202 _ITM_getTMCloneOrIrrevokable.
1203 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1204 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1206 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1208 * configure.ac: Remove Linux futex support.
1209 * configure.tgt (config_path): Same.
1210 * Makefile.am: Same.
1211 * config/linux: Remove entire directory.
1212 * configure: Rebuild.
1213 * Makefile.in: Rebuild.
1214 * testsuite/Makefile.in: Rebuild.
1216 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1218 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1219 switching to serial mode.
1220 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1222 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1224 * configure.tgt: Add emacs -*- tags.
1225 * barrier.tpl: Same.
1227 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1229 * Makefile.am: Rename serial.cc to method-serial.cc.
1230 * Makefile.in: Regenerate with automake 1.11.1.
1231 * testsuite/Makefile.in: Same.
1232 * aclocal.m4: Regenerate with aclocal 1.11.1.
1233 * method-serial.cc: Rename from serial.cc.
1234 * libitm_i.h (struct gtm_transaction): Update comment on
1237 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1239 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1240 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1242 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1244 * configure: Rebuild.
1246 2009-11-12 Richard Henderson <rth@redhat.com>
1248 * Rewrite everything in C++.
1250 2009-11-03 Richard Henderson <rth@redhat.com>
1252 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1253 * Makefile.am (libitm_la_SOURCES): Add them.
1254 * configure.ac (ARCH_X86): New conditional.
1255 * Makefile.in, configure: Rebuild.
1256 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1257 Move futex setup into "other system configury" case.
1258 * local.c (rollback_local): Merge into ...
1259 (GTM_rollback_local): ... here.
1260 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1261 (_ITM_LB): Define as an alias to GTM_LB.
1263 2009-11-03 Richard Henderson <rth@redhat.com>
1265 * method-readonly.c: New file.
1266 * Makefile.am (libitm_la_SOURCES): Add it.
1267 * Makefile.in: Rebuild.
1268 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1269 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1270 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1271 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1272 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1273 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1274 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1275 gtm_get_clock, gtm_inc_clock): New.
1276 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1277 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1278 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1279 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1280 replace uses with new libitm_i.h symbols.
1281 (dispatch_wbetl): Rename from wbetl_dispatch.
1282 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1283 away from dispatch_readonly; abort if the beginTransaction call
1284 asserted that the transaction was readonly.
1286 2009-11-03 Richard Henderson <rth@redhat.com>
1288 * memset.c: New file.
1289 * Makefile.am (libitm_la_SOURCES): Add it.
1290 * Makefile.in: Rebuild.
1291 * testsuite/libitm.c/memset-1.c: New.
1293 2009-11-03 Richard Henderson <rth@redhat.com>
1295 * dispatch.c: Remove file.
1296 * useraction.c (struct gtm_user_action): Move from libitm.h.
1297 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1298 (serial_memset, serial_memmove, serial_memcpy): Remove.
1299 (serial_W*, serial_R*): Remove.
1300 (serial_dispatch): Update to match.
1301 * configure.ac: Move Werror down below configure checks. Don't
1302 check for sys/loadavg.h, do check for malloc.h. Don't check for
1303 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1304 Use GCC_AC_FUNC_MMAP_BLACKLIST
1305 * libitm.h: Split out all internal items to...
1306 * libitm_i.h: ... here. New file.
1307 * copymask.c: New file.
1308 * local.c (struct gtm_local_undo): Move from libitm.h.
1309 (GTM_alloc_local): Rename from alloc_local; export.
1310 * memcpy.c: New file.
1311 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1312 * config/posix/page.c: New file.
1313 * config/posix/target_tls.h: Remove file.
1314 * barrier.c: New file.
1315 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1317 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1318 * method-wbetl.c: Rewrite for new cacheline methods.
1319 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1321 * config/alpha/sjlj.S: Fix typo.
1322 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1323 * config/alpha/copymask.c: New file.
1324 * config/alpha/target.h (CACHELINE_SIZE): New.
1325 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1327 * config/x86/target_i.h: Copy functions from x86/target.h.
1328 * config/x86/copymask.c: New file.
1329 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1330 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1331 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1332 * config/x86/target_tls.h: Move contents to target_i.h.
1334 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1335 * testsuite/libitm.c/memcpy-1.c: New.
1337 2009-10-22 Richard Henderson <rth@redhat.com>
1339 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1340 (AM_CCASFLAGS): New.
1341 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1342 saving/restoring _AC_ARG_VAR_PRECIOUS.
1343 * Makefile.in, aclocal.m4, config.h.in, configure,
1344 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1346 2009-10-22 Richard Henderson <rth@redhat.com>
1348 * testsuite/*: Update for new compiler syntax.
1350 2009-10-21 Richard Henderson <rth@redhat.com>
1352 * libitm.h (_ITM_abortReason): Add outerAbort.
1354 2009-08-03 Richard Henderson <rth@redhat.com>
1356 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1357 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1358 * method-wbetl.c (struct w_entry): Remove mask.
1359 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1362 2009-07-22 Richard Henderson <rth@redhat.com>
1364 * eh_cpp.c: New file.
1365 * Makefile.am (libitm_la_SOURCES): Add it.
1366 * Makefile.in: Rebuild.
1367 * beginend.c (GTM_rollback_transaction): Undo exception state.
1368 (GTM_trycommit_transaction): Mark inline.
1369 (GTM_trycommit_and_finalize_transaction): Split out from ...
1370 (_ITM_commitTransaction): ... here.
1371 (_ITM_commitTransactionEH): New function.
1372 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1373 cxa_unthrown, eh_in_flight; reorder.
1375 * testsuite/libitm.c++/c++.exp: New.
1376 * testsuite/libitm.c++/eh-1.C: New.
1378 * aatree.c (aa_free): Remove REGPARM.
1379 * aatree.h: Remove all REGPARM.
1381 2009-07-18 Richard Henderson <rth@redhat.com>
1383 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1384 * Makefile.am (libitm_la_SOURCES): Add them.
1385 * Makefile.in: Rebuild.
1386 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1387 (GTM_trycommit_transaction): Likewise.
1388 * libitm.h: Include aatree.h
1389 (struct gtm_alloc_action): New.
1390 (struct gtm_transaction): Add alloc_actions.
1391 (GTM_record_allocation, GTM_forget_allocation): Declare.
1392 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1393 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1394 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1395 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1396 _ZGTtdaPvRKSt9nothrow_t): Export.
1398 2009-07-18 Richard Henderson <rth@redhat.com>
1400 * target_tls.h: Move ...
1401 * config/posix/target_tls.h: ... here.
1403 2009-07-07 Richard Henderson <rth@redhat.com>
1405 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1407 2009-07-07 Richard Henderson <rth@redhat.com>
1411 2009-07-07 Richard Henderson <rth@redhat.com>
1413 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1414 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1416 * configure.tgt: Don't use -ftls-model for x86 linux.
1417 * libitm.h: Include target.h after standard includes.
1418 (_gtm_thr): Rename from gtm_thr.
1419 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1420 (gtm_disp, set_gtm_disp): New.
1421 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1422 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1423 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1425 2009-07-07 Richard Henderson <rth@redhat.com>
1427 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1429 2009-07-06 Richard Henderson <rth@redhat.com>
1431 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1432 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1433 (_ITM_beginTransaction): Take variadic arguments.
1434 (_ITM_registerThrownObject): Declare.
1435 * beginend.c, serial.c: Update.
1436 * libitm.map: Add _ITM_registerThrownObject.
1438 2009-01-28 Richard Henderson <rth@redhat.com>
1440 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1441 * Makefile.in: Rebuild.
1442 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1443 (GTM_restart_transaction): Fix uninstrumented code check.
1444 * retry.c (GTM_decide_retry_strategy): Add serial check.
1445 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1446 automatically go irrevokable when in serial mode.
1447 * clone.c: New file.
1448 * libitm.h, libitm.map: Update.
1450 2009-01-27 Richard Henderson <rth@redhat.com>
1452 * Makefile.am (LTCCASCOMPILE): Define.
1453 (libitm_la_SOURCES): Add methid-wbetl.c.
1454 * testsuite/Makefile.am: New
1455 * configure.ac: Add testsuite/Makefile.
1456 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1457 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1458 (_ITM_abortTransaction): Finalize implementation method; pass
1459 transaction properties to longjmp.
1460 (GTM_restart_transaction): Split out from ...
1461 (_ITM_commitTransaction): ... here.
1462 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1463 Move to config/x86/target.h.
1464 * config/linux/alpha/futex_bits.h: New.
1465 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1466 * config/x86/target.h: Disable target types for 32-bit.
1467 * config/alpha/sjlj.S, config/alpha/target.h: New.
1468 * libitm.h (struct gtm_dispatch): Add init, fini.
1469 (enum restart_reason): New.
1470 (struct gtm_transaction): Add method and restarts.
1471 * retry.c (GTM_decide_retry_strategy): Implement.
1472 * serial.c (serial_init, serial_fini): New.
1473 (GTM_serialmode): Finialize outgoing method.
1474 * method-wbetl.c: New.
1476 2008-12-09 Richard Henderson <rth@redhat.com>
1478 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1479 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1480 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1481 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1482 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1483 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1484 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1485 * serial.c (serial_R##T, serial_W##T): Likewise.
1487 2008-11-21 Richard Henderson <rth@redhat.com>