1 2013-10-16 Release Manager
5 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10 * configure.tgt: Add -msoft-float to XCFLAGS.
13 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15 * config/s390/sjlj.S: Add file missing from last commit.
16 * config/s390/target.h: Likewise.
18 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20 Backports from mainline:
21 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23 * config/s390/sjlj.S: New file.
24 * config/s390/target.h: New file.
25 * configure.tgt: Set options for S/390.
27 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29 * config/s390/target.h: Include htmintrin.h.
30 (_HTM_ITM_RETRIES): New macro definition.
31 (htm_available, htm_init, htm_begin, htm_begin_success)
32 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
34 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36 * acinclude.m4: Add htm asm check for s390.
37 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the
39 * configure: Regenerate.
40 * config/s390/target.h: Remove __HTM__ check.
41 (htm_available): Call getauxval to get hwcaps and check
42 whether HTM is available or not.
44 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
46 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
47 (htm_transaction_active): Enable zEC12 instructions in the
49 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
51 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
53 * configure.tgt: Add -msoft-float to XCFLAGS.
55 2013-05-31 Release Manager
59 2013-03-22 Release Manager
63 2013-02-11 Iain Sandoe <iain@codesourcery.com>
64 Jack Howarth <howarth@bromo.med.uc.edu>
65 Patrick Marlier <patrick.marlier@gmail.com>
68 * alloc_cpp.cc: Enable function declarations on darwin.
69 * eh_cpp.cc: Likewise.
71 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
73 Update copyright years.
75 2012-11-09 Torvald Riegel <triegel@redhat.com>
77 * beginend.cc (htm_fastpath): New.
78 (gtm_thread::begin_transaction, _ITM_commitTransaction,
79 _ITM_commitTransactionEH): Add HTM fastpath handling.
80 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
81 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
82 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
83 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
84 * configure.tgt: Add -mrtm to XCFLAGS.
85 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
86 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
87 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
88 * retry.cc (parse_default_method): Add HTM method parsing.
89 (gtm_thread::number_of_threads_changed): Use HTM by default if
92 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
94 * configure: Regenerate.
96 2012-10-31 Richard Henderson <rth@redhat.com>
98 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
99 * configure.ac: Use it.
100 * config.h.in, configure: Rebuild.
101 * testsuite/Makefile.in: Rebuild.
103 2012-10-24 Torvald Riegel <triegel@redhat.com>
105 * libitm.texi: Clarify ABI requirements for data-logging functions.
107 2012-10-24 Torvald Riegel <triegel@redhat.com>
109 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
110 it requires serial mode instead of assuming that for certain
112 * dispatch.h (abi_dispatch::requires_serial): New.
113 (abi_dispatch::abi_dispatch): Adapt.
114 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
115 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
116 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
117 serial_dispatch::serial_dispatch,
118 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
120 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
122 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
123 and ia32 declarations some more.
124 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
126 2012-09-20 Jakub Jelinek <jakub@redhat.com>
129 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
130 * configure: Regenerate.
131 * Makefile.in: Regenerate.
133 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
135 * configure: Regenerated.
137 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
139 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
141 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
143 * eh_cpp.cc: Fix __cxa_end_catch declaration.
145 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
147 * configure: Regenerated.
149 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
152 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
155 2012-04-03 Tristan Gingold <gingold@adacore.com>
157 * configure: Regenerate.
159 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
162 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
164 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
166 * testsuite/lib/libitm.exp: load fortran-modules.exp
168 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
170 * configure.tgt (*-*-irix6*): Remove.
172 2012-03-13 Torvald Riegel <triegel@redhat.com>
175 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
178 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
180 * configure.tgt (*-*-osf*): Remove.
181 * configure: Regenerate.
183 2012-03-05 Torvald Riegel <triegel@redhat.com>
185 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
186 memtransfer/memset if size isn't larger than zero.
188 2012-03-02 Torvald Riegel <triegel@redhat.com>
190 * libitm.texi: Link to specification and add a usage example.
192 2012-02-24 Torvald Riegel <triegel@redhat.com>
194 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
195 default dispatch for more than 1 thread to ml_wt.
197 2012-02-20 Torvald Riegel <triegel@redhat.com>
199 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
201 2012-02-20 Torvald Riegel <triegel@redhat.com>
203 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
205 2012-02-20 Torvald Riegel <triegel@redhat.com>
207 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
208 serial mode corner cases made obsolete by prior gtm_rwlock changes.
209 (gl_wt_dispatch.rollback): Same.
211 2012-02-20 Torvald Riegel <triegel@redhat.com>
213 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
215 2012-02-20 Torvald Riegel <triegel@redhat.com>
217 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
218 for RfW src. Optimize number of calls to gtm_thr.
220 2012-02-20 Torvald Riegel <triegel@redhat.com>
222 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
224 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
225 (default_dispatch): Make atomic.
226 (GTM::gtm_thread::set_default_dispatch): Access atomically.
227 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
228 use decide_begin_dispatch() if default_dispatch might have changed.
229 (GTM::gtm_thread::number_of_threads_changed): Initialize
230 default_dispatch here.
232 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
233 Patrick Marlier <patrick.marlier@gmail.com>
236 * alloc_cpp.cc: No dummy definitions for darwin.
237 * eh_cpp.cc: Likewise.
239 2012-02-14 Richard Henderson <rth@redhat.com>
241 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
243 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
245 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
247 2012-02-14 Torvald Riegel <triegel@redhat.com>
249 * libitm_i.h (GTM::gtm_rwlog_entry): New.
250 (GTM::gtm_thread): Add read and write logs.
251 (GTM::dispatch_ml_wt): Declare.
252 * retry.cc (parse_default_method): Support ml_wt.
253 * method-ml.cc: New file.
254 * Makefile.am: Add method-ml.cc.
255 * Makefile.in: Regenerate.
257 2012-02-14 Torvald Riegel <triegel@redhat.com>
259 * dispatch.h (GTM::abi_dispatch::supports): New.
260 (GTM::method_group::reinit): New.
261 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
262 (GTM::gtm_thread::number_of_threads_changed): Check that the method
263 supports the current situation.
265 2012-02-14 Torvald Riegel <triegel@redhat.com>
267 * util.cc (GTM::xcalloc): New.
268 * common.h (GTM::xcalloc): Declare.
270 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
272 * config/sparc/target.h (cpu_relax): Read from CC register.
273 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
275 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
277 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
279 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
281 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
282 * config/sparc/cacheline.h: New file.
283 * config/sparc/target.h: Likewise.
284 * config/sparc/sjlj.S: Likewise.
285 * config/linux/sparc/futex_bits.h: Likewise.
287 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
289 * configure.ac (link_itm): Fix comment.
290 * configure: Regenerate.
291 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
293 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
296 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
297 Correct libgomp references.
299 2012-01-24 Torvald Riegel <triegel@redhat.com>
301 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
304 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
306 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
308 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
309 offset values. Do not copy return address. Decrement stack
311 (GTM_longjump) [__x86_64__]: Update offset values.
313 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
316 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
317 the first function argument to %eax.
319 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
321 * libitm.h (_ITM_getThreadnum): Remove.
322 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
324 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326 * clearcap.map: New file.
327 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
328 * configure.ac: Call it.
329 Clear HWCAP_LDFLAGS if defaulting to -mavx.
330 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
331 * configure: Regenerate.
332 * Makefile.in: Regenerate.
333 * testsuite/Makefile.in: Regenerate.
335 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
338 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
339 include, exclude options.
341 2012-01-14 Torvald Riegel <triegel@redhat.com>
343 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
345 * containers.h (GTM::vector::set_size): New.
347 2012-01-14 Torvald Riegel <triegel@redhat.com>
350 * config/generic/tls.h (GTM::mask_stack_top): New.
351 (GTM::mask_stack_bottom): Declare.
352 * config/generic/tls.c (GTM::mask_stack_bottom): New.
353 * local.cc (gtm_undolog::rollback): Filter out any updates that
354 overlap the libitm stack. Add current transaction as parameter.
355 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
356 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
357 * testsuite/libitm.c/stackundo.c: New test.
359 2012-01-10 Richard Henderson <rth@redhat.com>
361 * libitm_i.h (_Unwind_DeleteException): Declare weak.
362 * eh_cpp.cc (_Unwind_DeleteException): Define for
363 !HAVE_ELF_STYLE_WEAKREF.
365 2012-01-08 Torvald Riegel <triegel@redhat.com>
367 * local.cc (GTM_LB): Use GTM::gtm_undolog.
368 (GTM::gtm_thread::drop_references_undolog): Remove.
369 (GTM::gtm_thread::commit_undolog,
370 GTM::gtm_thread::rollback_undolog): Move to ...
371 * libitm_i.h (GTM::gtm_undolog): ...here. New.
372 (GTM::gtm_undolog_entry): Remove.
373 (GTM::gtm_thread): Adapt.
374 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
375 (GTM::gtm_thread::trycommit): Adapt.
376 * method-serial.cc (serial_dispatch::log): Adapt.
377 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
378 (gl_wt_dispatch::store): Fix likely/unlikely.
379 * containers.h (GTM::vector::resize): Add additional_capacity
380 parameter and handle it.
381 (GTM::vector::resize_noinline): New/adapt.
382 (GTM::vector::push): New.
384 2012-01-06 Richard Henderson <rth@redhat.com>
386 * configure.tgt: Support powerpc-linux and powerpc-darwin.
387 * config/linux/powerpc/futex_bits.h: New file.
388 * config/powerpc/cacheline.h: New file.
389 * config/powerpc/sjlj.S: New file.
390 * config/powerpc/target.h: New file.
391 * config/generic/asmcfi.h (cfi_offset): New.
392 (cfi_restore, cfi_undefined): New.
394 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
397 * testsuite/libitm.c/reentrant.c: Remove xfail.
398 (thread): Pass x to pure().
399 From Patrik Marlier <patrick.marlier@gmail.com>.
401 2011-12-24 Torvald Riegel <triegel@redhat.com>
403 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
404 privatization safety if already in serial mode.
406 2011-12-24 Torvald Riegel <triegel@redhat.com>
408 * beginend.cc (GTM::gtm_thread::restart): Add and handle
409 finish_serial_upgrade parameter.
410 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
411 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
412 Don't unset reader flag.
413 (GTM::gtm_rwlock::write_upgrade_finish): New.
414 * config/posix/rwlock.cc: Same.
415 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
417 * config/posix/rwlock.h: Same.
418 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
419 flag after commit or after rollback when restarting.
421 2011-12-24 Torvald Riegel <triegel@redhat.com>
423 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
424 (GTM::gtm_thread::try_commit): Changed memory order.
425 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
427 * config/linux/x86/futex_bits.h (sys_futex0): Same.
428 * config/linux/sh/futex_bits.h (sys_futex0): Same.
429 * config/linux/futex_bits.h (sys_futex0): Same.
430 * config/linux/futex.cc (futex_wait, futex_wake): Same.
431 * config/linux/futex.h (futex_wait, futex_wake): Same.
432 * config/linux/rwlock.h (gtm_rwlock::writers,
433 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
435 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
436 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
437 gtm_rwlock::write_unlock): Fix memory orders and fences.
438 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
439 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
440 gtm_rwlock::write_unlock): Same.
441 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
442 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
443 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
445 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
446 gl_wt_dispatch::load, gl_wt_dispatch::store,
447 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
448 orders and fences. Add comments.
450 2011-12-21 Jakub Jelinek <jakub@redhat.com>
452 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
453 * Makefile.in: Regenerated.
455 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
457 * configure.tgt: Add sh* case.
458 * config/sh/target.h: New file.
459 * config/sh/sjlj.S: New file.
460 * config/linux/sh/futex_bits.h: New file.
462 2011-12-14 Richard Henderson <rth@redhat.com>
464 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
465 * config/arm/sjlj.S, config/arm/target.h: New files.
466 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
467 (cfi_rel_offset): New.
468 * config/linux/futex_bits.h: New file.
469 * config/linux/futex.cc: Include futex_bits.h here...
470 * config/linux/futex.h: ... not here.
471 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
472 * configure.ac (ARCH_AM): New conditional.
473 * Makefile.in, configure: Rebuild.
474 * configure.tgt: Handle ARM.
476 2011-12-13 Richard Henderson <rth@redhat.com>
478 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
479 signed/unsigned comparison werror.
481 * local_atomic: New file.
482 * libitm_i.h: Include it.
483 (gtm_thread::shared_state): Use atomic template.
484 * beginend.cc (GTM::gtm_clock): Use atomic template.
485 (global_tid): Use atomic template if 64-bit atomics available.
486 (gtm_thread::gtm_thread): Update shared_state access.
487 (gtm_thread::trycommit): Likewise.
488 (choose_code_path): Update global_tid access.
489 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
490 * stmlock.h (GTM::gtm_clock): Use atomic template.
491 (gtm_get_clock, gtm_inc_clock): Update accesses.
492 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
493 redundant __sync_synchronize after atomic shared_state access.
494 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
495 (gtm_rwlock::write_lock_generic): Likewise.
496 (gtm_rwlock::read_unlock): Likewise.
497 * config/alpha/target.h (atomic_read_barrier): Remove.
498 (atomic_write_barrier): Remove.
499 * config/x86/target.h (atomic_read_barrier): Remove.
500 (atomic_write_barrier): Remove.
502 2011-11-30 Richard Henderson <rth@redhat.com>
504 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
505 * beginend.c (_ITM_abortTransaction): Update to match.
506 (GTM::gtm_thread::restart): Likewise.
507 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
508 * config/x86/sjlj.S (GTM_longjmp): Likewise.
510 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
512 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
513 * Makefile.in: Regenerate.
515 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
517 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
518 * alloc_cpp.cc: Generate dummy functions if we don't
519 HAVE_ELF_STYLE_WEAKREF.
520 * eh_cpp.cc: Likewise.
521 * configure: Regenerate.
522 * aclocal.m4: Likewise.
523 * config.h.in: Likewise.
524 * Makefile.in: Likewise.
525 * testsuite/Makefile.in: Likewise.
527 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
529 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
530 __USER_LABEL_PREFIX__ for targets that use it.
531 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
532 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
533 in portability to non-elf targets.
534 (GTM_longjmp): Likewise.
535 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
538 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
540 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
541 * testsuite/libitm.c/memset-1.c: Likewise.
543 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
545 * configure: Regenerate.
547 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
549 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
550 (LIBITM_ENABLE_SYMVERS): Handle sun style.
551 * Makefile.am: Handle sun style versioning.
552 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
553 * configure: Regenerate.
554 * Makefile.in: Regenerate.
556 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
558 * config/generic/asmcfi.h: Fix comment.
559 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
560 sequence without .hidden support, error for non-ELF targets.
561 (GTM_longjmp) [__ELF__]: Only use .hidden if
562 HAVE_ATTRIBUTE_VISIBILITY.
564 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
566 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
567 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
569 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
570 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
572 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
575 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
576 * configure: Regenerate.
578 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
580 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
582 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
584 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
586 (.note.GNU-stack): Only use if __linux__.
587 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
588 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
589 * testsuite/libitm.c/reentrant.c: Likewise.
590 * testsuite/libitm.c/simple-2.c: Likewise.
591 * testsuite/libitm.c/txrelease.c: Likewise.
592 * testsuite/libitm.c++/static_ctor.C: Likewise.
594 2011-11-10 Richard Henderson <rth@redhat.com>
596 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
597 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
598 * configure.ac (ARCH_X86_AVX): New conditional.
599 * Makefile.in, configure: Rebuild.
601 2011-11-09 Richard Henderson <rth@redhat.com>
603 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
604 * configure.ac: Use it.
605 * config.h.in, configure: Rebuild.
606 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
608 2011-11-09 Richard Henderson <rth@redhat.com>
610 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
611 * config/alpha/unaligned.h: Remove file.
612 * config/generic/unaligned.h: Remove file.
613 * config/x86/unaligned.h: Remove file.
614 * config/generic/cachepage.h: Remove file.
615 * config/posix/cachepage.cc: Remove file.
616 * config/generic/cacheline.cc: Remove file.
617 * config/x86/cacheline.cc: Remove file.
618 * config/generic/cacheline.h (gtm_cacheline): Remove the
619 store_mask, copy_mask, copy_mask_wb methods.
620 * config/x86/cacheline.h: Likewise.
621 * config/alpha/cacheline.h: Fall back to generic after setting size.
622 * config/generic/tls.cc (gtm_mask_stack): Remove.
623 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
624 (GTM_vpalignr_table): Remove.
625 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
626 (GTM_pshift_table): Remove.
627 * config/libitm_i.h: Don't include cachepage.h.
628 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
629 * Makefile.in, testsuite/Makefile.in: Rebuild.
631 2011-11-09 Richard Henderson <rth@redhat.com>
633 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
634 to emit branch prediction hint.
636 * config/x86/sjlj.S: Protect elf directives with __ELF__.
637 Protect .note.GNU-stack with __linux__.
639 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
640 * configure, aclocal.m4, config.h.in: Rebuild.
641 * config/generic/asmcfi.h: New file.
642 * config/x86/sjlj.S: Use it.
644 2011-11-08 Richard Henderson <rth@redhat.com>
646 * local.cc (_ITM_LB): Use a normal call, not a function alias.
648 2011-11-08 Richard Henderson <rth@redhat.com>
650 * configure.tgt: Test correct directory for supported cpus.
652 * configure.ac: Exit if unsupported.
653 * configure: Rebuild.
654 * configure.tgt: Delete boilerplate from libgomp for unsupported
655 targets. Set UNSUPPORTED for unsupported targets.
657 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
659 * configure.tgt: Handle i386 like i[456]86.
660 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
662 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
663 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
665 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
667 * method-wbetl.cc: Update copyright notice.
674 * useraction.cc: Same.
678 * config/generic/tls.cc: Same.
679 * config/generic/cacheline.h: Same.
680 * config/generic/cachepage.h: Same.
681 * config/generic/cacheline.cc: Same.
682 * config/generic/unaligned.h: Same.
683 * config/x86/cacheline.h: Same.
684 * config/x86/cacheline.cc: Same.
685 * config/x86/unaligned.h: Same.
686 * config/alpha/cacheline.h: Same.
687 * config/alpha/unaligned.h: Same.
688 * config/alpha/sjlj.S: Same.
689 * config/posix/cachepage.cc: Same.
690 * config/linux/futex.h: Same.
691 * config/linux/alpha/futex_bits.h: Same.
693 2011-11-04 Torvald Riegel <triegel@redhat.com>
695 * libitm.texi: No cover text and invariant sections.
697 2011-11-03 Richard Henderson <rth@redhat.com>
699 * local_type_traits: New file.
700 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
702 2011-11-03 Richard Henderson <rth@redhat.com>
704 * configure.ac: Don't test for gfortran.
705 * configure: Rebuild.
707 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
708 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
710 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
712 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
713 * testsuite/libitm.c/memset-1.c: Same.
714 * testsuite/libitm.c/c.exp: Same.
715 * testsuite/lib/libitm-dg.exp: Same.
716 * testsuite/lib/libitm.exp: Same.
717 * testsuite/libitm.c++/c++.exp: Same.
719 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
721 * testsuite/config/default.exp: Update copyright date.
722 * configure.ac: Add copyright info.
723 * configure.tgt: Same.
725 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
727 * testsuite/libitm.c/reentrant.c: XFAIL.
728 * testsuite/libitm.c++/static_ctor.C: XFAIL.
730 2011-10-29 Torvald Riegel <triegel@redhat.com>
732 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
734 (_ITM_abortTransaction): Handle aborts of outer transactions.
736 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
737 * libitm.texi: Document aborts of outer transactions.
738 * testsuite/libitm.c/cancel.c: New file.
740 2011-10-19 Torvald Riegel <triegel@redhat.com>
742 * testsuite/*: Change __transaction to __transaction_atomic or
743 __transaction_relaxed.
745 2011-10-19 Torvald Riegel <triegel@redhat.com>
747 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
750 2011-10-19 Torvald Riegel <triegel@redhat.com>
752 * libitm_i.h: Add gl_wt dispatch.
753 * retry.cc (parse_default_method): Same.
754 * method-gl.cc: New file.
755 * Makefile.am: Use method-gl.cc.
756 * Makefile.in: Rebuild.
758 2011-10-19 Torvald Riegel <triegel@redhat.com>
760 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
761 safety if requested by a TM method.
762 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
763 privatization safety.
764 * method-serial.cc: Same.
766 2011-10-19 Torvald Riegel <triegel@redhat.com>
768 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
769 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
770 undolog-related member functions from *_local to *_undolog.
771 * local.cc (gtm_thread::commit_undolog): Same.
772 * beginend.cc (GTM::gtm_thread::trycommit): Same.
773 (GTM::gtm_thread::rollback): Roll back undolog before
774 dispatch-specific rollback.
776 2011-10-19 Torvald Riegel <triegel@redhat.com>
778 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
779 re-initialization of the current method group.
780 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
782 2011-10-19 Torvald Riegel <triegel@redhat.com>
784 * alloc.cc (commit_allocations_2): Do not free transaction-local
785 memory when committing a nested transaction.
787 2011-10-19 Torvald Riegel <triegel@redhat.com>
789 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
790 serial-irrevocable dispatch, not serial.
792 2011-10-19 Torvald Riegel <triegel@redhat.com>
794 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
796 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
797 * method-serial.cc: Implement begin_or_restart().
798 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
799 dispatch-specific begin_or_restart().
800 (GTM::gtm_thread::restart): Same.
802 2011-08-23 Torvald Riegel <triegel@redhat.com>
804 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
805 restarting without switching to serial mode.
806 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
807 transaction state. Choose closed-nesting alternative if available.
808 (GTM::gtm_thread::set_default_dispatch): New.
809 (parse_default_method): New.
810 (GTM::gtm_thread::number_of_threads_changed): New.
811 * method-serial.cc (GTM::serial_mg): New method group class.
812 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
814 (GTM::serial_dispatch): Same.
815 (GTM::serialirr_onwrite_dispatch): Same.
816 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
817 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
819 (GTM::gtm_thread::gtm_thread): Same.
820 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
821 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
822 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
823 choose dispatch but set state according to dispatch here.
824 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
825 (GTM::method_group): New class.
826 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
827 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
828 * libitm.texi: Document TM methods, method groups, method life cycle.
829 Rename method sets to method groups.
831 2011-08-23 Torvald Riegel <triegel@redhat.com>
833 * config/x86/tls.h: Moved to ...
834 * config/linux/x86/tls.h: ... here.
836 2011-08-23 Torvald Riegel <triegel@redhat.com>
838 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
840 * config/x86/sjlj.S: Same.
842 2011-08-19 Torvald Riegel <triegel@redhat.com>
844 * config/linux/rwlock.h: New file.
845 * config/linux/rwlock.c: New file.
846 * configure.ac: Reenable futex support (undo SVN rev 157758).
848 * configure.tgt: Same.
849 * config/linux/alpha/futex_bits.h: Same.
850 * config/linux/futex.h: Same. Return number of woken processes.
851 * config/linux/futex.cc: Same.
852 (futex_wait): Remove spinning.
853 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
854 Use __x86_64__ instead of __LP64__.
855 * aclocal.m4: Include generic futex checks.
856 * configure: Rebuild.
857 * Makefile.in: Rebuild.
858 * testsuite/Makefile.in: Rebuild.
859 * beginend.cc: Include pthread.h.
860 * config/posix/cachepage.cc: Same.
862 2011-08-12 Torvald Riegel <triegel@redhat.com>
864 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
865 (abi_disp, set_abi_disp): Move to tx's TLS slot.
867 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
869 (GTM::gtm_thread::thread_num): Removed.
870 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
871 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
872 tx-to-thread renaming.
873 * beginend.cc: Adapted to tx-to-thread renaming.
874 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
875 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
876 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
877 gtm_transaction to gtm_thread.
878 (_ITM_getThreadnum): Removed. Not supported anymore.
879 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
880 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
881 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
882 gtm_tx-to-gtm_thr renaming if necessary.
889 * alloc_cpp.cc: Same.
890 * method-serial.cc: Same.
891 * config/generic/tls.cc: Same.
892 * config/posix/rwlock.h (gtm_rwlock): Same.
893 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
895 2011-08-12 Torvald Riegel <triegel@redhat.com>
897 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
899 (gtm_rwlock::read_unlock): Same.
900 (gtm_rwlock::write_lock_generic): New. Generalized from ...
901 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
902 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
903 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
904 w_upgrade. Replaced by per-transaction flags (in shared_state).
905 Added c_confirmed_writers.
906 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
907 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
908 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
909 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
910 * beginend.cc (GTM::gtm_transaction::begin_transaction,
911 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
912 * libitm.texi: Document locking conventions and implementations in
915 2011-08-12 Torvald Riegel <triegel@redhat.com>
917 * libitm_i.h (next_tx): Add list of all threads' transaction.
918 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
919 transaction with list of transactions and ...
920 (thread_exit_handler): ... deregister here.
921 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
922 * config/x86/target.h: Same.
924 2011-08-12 Torvald Riegel <triegel@redhat.com>
926 * testsuite/libitm.c++/static_ctor.C: New file.
928 2011-08-12 Torvald Riegel <triegel@redhat.com>
930 * testsuite/libitm.c/reentrant.c: New file.
932 2011-08-12 Torvald Riegel <triegel@redhat.com>
934 * config/generic/tls.h: Remove the free list for transactions and ...
935 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
936 (GTM::gtm_transaction::operator delete): ... and release here.
937 (thread_exit_handler): New. Delete tx when thread terminates.
938 (thread_exit_init): New.
939 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
940 * testsuite/libitm.c/txrelease.c: New file.
942 2011-08-12 Torvald Riegel <triegel@redhat.com>
944 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
945 * testsuite/libitm.c/notx.c: New file.
947 2011-08-12 Torvald Riegel <triegel@redhat.com>
949 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
950 * libitm_i.h (local_tid): ... to here.
951 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
952 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
954 2011-08-12 Torvald Riegel <triegel@redhat.com>
956 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
957 serialirr_onwrite_dispatch as new default for now.
958 * method-serial.cc (serialirr_onwrite_dispatch): New.
959 (GTM::dispatch_serialirr_onwrite): New.
962 2011-08-12 Torvald Riegel <triegel@redhat.com>
964 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
965 * query.cc (_ITM_getTransactionId): There is no active transaction if
966 the current nesting level is zero.
968 2011-07-28 Torvald Riegel <triegel@redhat.com>
970 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
973 2011-07-28 Torvald Riegel <triegel@redhat.com>
975 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
976 transaction properties from the caller instead of from the
979 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
981 2011-07-28 Torvald Riegel <triegel@redhat.com>
983 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
984 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
986 * method-serial.cc: Same.
987 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
988 flat nesting as default, and closed nesting on demand.
989 (GTM::gtm_transaction::rollback): Same.
990 (_ITM_abortTransaction): Same.
991 (GTM::gtm_transaction::restart): Same.
992 (GTM::gtm_transaction::trycommit): Same.
993 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
994 (choose_code_path): New.
995 (GTM::gtm_transaction_cp::save): New.
996 (GTM::gtm_transaction_cp::commit): New.
997 * query.cc (_ITM_inTransaction): Support flat nesting.
998 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
999 (GTM::gtm_transaction): Support flat and closed nesting.
1000 * alloc.cc (commit_allocations_2): New.
1001 (commit_cb_data): New helper struct.
1002 (GTM::gtm_transaction::commit_allocations): Handle nested
1004 * libitm.texi: Update user action section, add description of nesting.
1006 2011-07-28 Torvald Riegel <triegel@redhat.com>
1008 * libitm_i.h: Add closed nesting as restart reason.
1009 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1011 2011-07-28 Torvald Riegel <triegel@redhat.com>
1013 * useraction.cc: Use vector instead of list to store actions.
1014 Also support partial rollbacks for closed nesting.
1015 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1016 * beginend.cc: Same.
1018 2011-07-28 Torvald Riegel <triegel@redhat.com>
1020 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1021 closed_nesting flags, as well as a closed nesting alternative.
1022 * method-serial.cc: Same.
1023 (serial_dispatch): Renamed to serialirr_dispatch.
1024 (GTM::dispatch_serialirr): Same.
1025 (serial_dispatch_ul): Renamed to serial_dispatch.
1026 (GTM::dispatch_serial): Same.
1028 2011-07-28 Torvald Riegel <triegel@redhat.com>
1030 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1032 2011-07-28 Torvald Riegel <triegel@redhat.com>
1034 * aatree.h (aa_tree::remove): New.
1035 (aa_tree::operator new): Add placement new.
1037 2011-07-02 Torvald Riegel <triegel@redhat.com>
1039 * containers.h: New file.
1040 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1041 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1042 * common.h: ... to here.
1043 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1046 2011-06-30 Torvald Riegel <triegel@redhat.com>
1048 * libitm_i.h (STATE_ABORTING): Remove.
1049 * beginend.cc (_ITM_abortTransaction): Same.
1050 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1051 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1052 (_ITM_rollbackTransaction): Remove.
1053 * beginend.cc: Same.
1055 * libitm.texi: Document these ABI changes.
1057 2011-06-30 Torvald Riegel <triegel@redhat.com>
1059 * libitm.texi: New file.
1060 * Makefile.am: Add libitm.texi.
1061 * Makefile.in: Rebuild.
1063 2011-06-30 Torvald Riegel <triegel@redhat.com>
1065 * libitm_i.h: Move parts to common.h and dispatch.h.
1066 * common.h: New file.
1067 * dispatch.h: New file, new dispatch class.
1068 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1069 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1070 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1071 decision to retry.cc.
1072 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1074 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1075 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1077 * barrier.cc: Use new barriers definitions.
1078 (abi_dispatch::memmove_overlap_check): New.
1079 * config/x86/x86_sse.cc: Same.
1080 * config/x86/x86_avx.cc: Same.
1081 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1083 * Makefile.in: Rebuild.
1084 * method-readonly.cc: Remove.
1085 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1086 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1088 2011-06-30 Torvald Riegel <triegel@redhat.com>
1090 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1091 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1092 * testsuite/libitm.c/dropref-2.c: Same.
1093 * testsuite/libitm.c/dropref.c: Same.
1095 2011-06-30 Torvald Riegel <triegel@redhat.com>
1097 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1098 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1099 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1101 * barrier.tpl: Same.
1103 * config/generic/tls.h: Same.
1104 * config/x86/tls.h: Same.
1108 * method-readonly.cc: Same.
1109 * method-serial.cc: Same.
1110 * method-wbetl.cc: Same.
1113 2011-03-03 Richard Henderson <rth@redhat.com>
1115 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1116 From Patrik Marlier <patrick.marlier@unine.ch>.
1118 2011-02-03 Richard Henderson <rth@redhat.com>
1120 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1121 * configure.ac: Use it.
1122 * configure, config.h.in: Rebuild.
1123 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1124 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1125 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1126 * libitm.map: Use wildcards to match size_t mangling.
1128 2010-12-14 Richard Henderson <rth@redhat.com>
1130 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1131 blocks of TIDs per thread.
1132 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1133 (setup_gtm_thr): Return the thread structure.
1134 * config/x86/tls.h (setup_gtm_thr): Likewise.
1136 2010-12-14 Richard Henderson <rth@redhat.com>
1138 * clone.cc (table_lock): Remove.
1139 (find_clone): Don't take it.
1140 (ExcludeTransaction): New helper class.
1141 (_ITM_registerTMCloneTable): Use it.
1142 (_ITM_deregisterTMCloneTable): Likewise.
1144 2010-12-14 Richard Henderson <rth@redhat.com>
1146 * config/x86/tls.h: New file.
1148 2010-07-15 Richard Henderson <rth@redhat.com>
1150 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1151 * Makefile.in: Rebuild.
1153 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1155 * method-wbetl.cc (trydropreference): Fix source line.
1157 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1159 * libitm.h: Add comment.
1160 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1162 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1164 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1165 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1166 available, use pthread mutexes.
1167 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1168 * config.h.in: Regenerate.
1169 * configure: Regenerate.
1171 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1173 * libitm.h (ITM_PURE): Define.
1174 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1176 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1178 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1179 (validate): Add comment.
1180 (trydropreference): New.
1181 * method-readonly.cc (class readonly_dispatch): Add
1183 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1184 Call trydropreference().
1185 * libitm.h (_ITM_dropReferences): Remove const attribute.
1186 * method-serial.cc (class serial_dispatch): Add trydropreference.
1187 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1189 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1191 * memcpy.cc (do_memcpy): Comment.
1193 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1195 * barrier.tpl: Add comments throughout.
1197 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1199 * method-wbetl.cc (struct w_entry): Add comments.
1203 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1205 * alloc_c.cc (_ITM_dropReferences): New.
1206 * libitm.map (_ITM_dropReferences): Add.
1207 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1208 * libitm_i.h (struct gtm_transaction): Declare
1209 drop_references_allocations and drop_references_local.
1210 * local.cc (rollback_local): Ignore memory when applicable.
1211 (drop_references_local): New.
1213 2010-06-23 Richard Henderson <rth@redhat.com>
1215 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1216 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1217 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1218 * config/alpha/target.h: Likewise.
1219 * config/generic/tls.cc (gtm_mask_stack): Use it.
1221 2010-06-23 Richard Henderson <rth@redhat.com>
1223 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1224 a mutex instead of trying a lock-free compare-and-swap on the list.
1225 (gtm_cacheline_page::operator delete): Likewise.
1227 2010-06-16 Richard Henderson <rth@redhat.com>
1229 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1230 that overlap the libitm stack.
1231 * barrier.tpl: Mark incoming stack.
1232 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1233 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1234 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1235 * memcpy.cc, memset.cc: Likewise.
1236 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1237 * config/generic/tls.h (gtm_thread): Add stack_top member.
1238 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1239 * libitm_i.h (gtm_mask_stack): Declare.
1240 * config/generic/tls.cc: New file.
1241 * Makefile.am (libitm_la_SOURCES): Add it.
1242 (AM_CXXFLAGS): Turn off exceptions.
1243 * Makefile.in: Rebuild.
1245 2010-06-16 Richard Henderson <rth@redhat.com>
1247 * alloc.cc (struct gtm_alloc_action): Move definition ...
1248 * libitm_i.h: ... here.
1249 (class gtm_transaction): Declare new and delete.
1250 * beginend.cc (alloc_tx): Reformulate as operator new.
1251 (free_tx): Reformulate as operator delete.
1252 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1254 2010-06-11 Richard Henderson <rth@redhat.com>
1256 * clone.cc (clone_entry_compare): Fix typo.
1257 From Patrik Marlier <patrick.marlier@unine.ch>.
1259 2010-05-13 Richard Henderson <rth@redhat.com>
1261 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1264 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1266 * libitm_i.h (struct gtm_transaction): Remove
1267 get_allocation_size.
1268 (record_allocation): Remove size parameter.
1269 * libitm.map (_ITM_realloc): Remove.
1270 * alloc_c.cc (_ITM_realloc): Remove.
1271 (_ITM_malloc): Remove size argument to record_allocation.
1272 (_ITM_calloc): Same.
1273 * alloc_cpp.cc (_ZGTtnwm): Same.
1274 (_ZGTtnwmRKSt9nothrow_t): Same.
1276 (_ZGTtnamRKSt9nothrow_t): Same.
1277 * alloc.cc (struct gtm_alloc_action): Remove size.
1278 (get_allocation_size): Remove.
1279 (commit_allocations): Add comment.
1280 (record_allocation): Remove size parameter.
1281 (forget_allocation): Remove set of size.
1283 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1285 * Makefile.am (abi_version): New.
1286 (AM_CXXFLAGS): Pass abi_version.
1287 * Makefile.in: Regenerate.
1288 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1290 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1292 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1293 _ITM_getTMCloneOrIrrevokable.
1294 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1295 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1297 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1299 * configure.ac: Remove Linux futex support.
1300 * configure.tgt (config_path): Same.
1301 * Makefile.am: Same.
1302 * config/linux: Remove entire directory.
1303 * configure: Rebuild.
1304 * Makefile.in: Rebuild.
1305 * testsuite/Makefile.in: Rebuild.
1307 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1309 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1310 switching to serial mode.
1311 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1313 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1315 * configure.tgt: Add emacs -*- tags.
1316 * barrier.tpl: Same.
1318 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1320 * Makefile.am: Rename serial.cc to method-serial.cc.
1321 * Makefile.in: Regenerate with automake 1.11.1.
1322 * testsuite/Makefile.in: Same.
1323 * aclocal.m4: Regenerate with aclocal 1.11.1.
1324 * method-serial.cc: Rename from serial.cc.
1325 * libitm_i.h (struct gtm_transaction): Update comment on
1328 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1330 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1331 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1333 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1335 * configure: Rebuild.
1337 2009-11-12 Richard Henderson <rth@redhat.com>
1339 * Rewrite everything in C++.
1341 2009-11-03 Richard Henderson <rth@redhat.com>
1343 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1344 * Makefile.am (libitm_la_SOURCES): Add them.
1345 * configure.ac (ARCH_X86): New conditional.
1346 * Makefile.in, configure: Rebuild.
1347 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1348 Move futex setup into "other system configury" case.
1349 * local.c (rollback_local): Merge into ...
1350 (GTM_rollback_local): ... here.
1351 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1352 (_ITM_LB): Define as an alias to GTM_LB.
1354 2009-11-03 Richard Henderson <rth@redhat.com>
1356 * method-readonly.c: New file.
1357 * Makefile.am (libitm_la_SOURCES): Add it.
1358 * Makefile.in: Rebuild.
1359 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1360 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1361 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1362 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1363 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1364 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1365 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1366 gtm_get_clock, gtm_inc_clock): New.
1367 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1368 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1369 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1370 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1371 replace uses with new libitm_i.h symbols.
1372 (dispatch_wbetl): Rename from wbetl_dispatch.
1373 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1374 away from dispatch_readonly; abort if the beginTransaction call
1375 asserted that the transaction was readonly.
1377 2009-11-03 Richard Henderson <rth@redhat.com>
1379 * memset.c: New file.
1380 * Makefile.am (libitm_la_SOURCES): Add it.
1381 * Makefile.in: Rebuild.
1382 * testsuite/libitm.c/memset-1.c: New.
1384 2009-11-03 Richard Henderson <rth@redhat.com>
1386 * dispatch.c: Remove file.
1387 * useraction.c (struct gtm_user_action): Move from libitm.h.
1388 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1389 (serial_memset, serial_memmove, serial_memcpy): Remove.
1390 (serial_W*, serial_R*): Remove.
1391 (serial_dispatch): Update to match.
1392 * configure.ac: Move Werror down below configure checks. Don't
1393 check for sys/loadavg.h, do check for malloc.h. Don't check for
1394 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1395 Use GCC_AC_FUNC_MMAP_BLACKLIST
1396 * libitm.h: Split out all internal items to...
1397 * libitm_i.h: ... here. New file.
1398 * copymask.c: New file.
1399 * local.c (struct gtm_local_undo): Move from libitm.h.
1400 (GTM_alloc_local): Rename from alloc_local; export.
1401 * memcpy.c: New file.
1402 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1403 * config/posix/page.c: New file.
1404 * config/posix/target_tls.h: Remove file.
1405 * barrier.c: New file.
1406 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1408 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1409 * method-wbetl.c: Rewrite for new cacheline methods.
1410 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1412 * config/alpha/sjlj.S: Fix typo.
1413 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1414 * config/alpha/copymask.c: New file.
1415 * config/alpha/target.h (CACHELINE_SIZE): New.
1416 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1418 * config/x86/target_i.h: Copy functions from x86/target.h.
1419 * config/x86/copymask.c: New file.
1420 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1421 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1422 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1423 * config/x86/target_tls.h: Move contents to target_i.h.
1425 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1426 * testsuite/libitm.c/memcpy-1.c: New.
1428 2009-10-22 Richard Henderson <rth@redhat.com>
1430 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1431 (AM_CCASFLAGS): New.
1432 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1433 saving/restoring _AC_ARG_VAR_PRECIOUS.
1434 * Makefile.in, aclocal.m4, config.h.in, configure,
1435 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1437 2009-10-22 Richard Henderson <rth@redhat.com>
1439 * testsuite/*: Update for new compiler syntax.
1441 2009-10-21 Richard Henderson <rth@redhat.com>
1443 * libitm.h (_ITM_abortReason): Add outerAbort.
1445 2009-08-03 Richard Henderson <rth@redhat.com>
1447 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1448 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1449 * method-wbetl.c (struct w_entry): Remove mask.
1450 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1453 2009-07-22 Richard Henderson <rth@redhat.com>
1455 * eh_cpp.c: New file.
1456 * Makefile.am (libitm_la_SOURCES): Add it.
1457 * Makefile.in: Rebuild.
1458 * beginend.c (GTM_rollback_transaction): Undo exception state.
1459 (GTM_trycommit_transaction): Mark inline.
1460 (GTM_trycommit_and_finalize_transaction): Split out from ...
1461 (_ITM_commitTransaction): ... here.
1462 (_ITM_commitTransactionEH): New function.
1463 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1464 cxa_unthrown, eh_in_flight; reorder.
1466 * testsuite/libitm.c++/c++.exp: New.
1467 * testsuite/libitm.c++/eh-1.C: New.
1469 * aatree.c (aa_free): Remove REGPARM.
1470 * aatree.h: Remove all REGPARM.
1472 2009-07-18 Richard Henderson <rth@redhat.com>
1474 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1475 * Makefile.am (libitm_la_SOURCES): Add them.
1476 * Makefile.in: Rebuild.
1477 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1478 (GTM_trycommit_transaction): Likewise.
1479 * libitm.h: Include aatree.h
1480 (struct gtm_alloc_action): New.
1481 (struct gtm_transaction): Add alloc_actions.
1482 (GTM_record_allocation, GTM_forget_allocation): Declare.
1483 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1484 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1485 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1486 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1487 _ZGTtdaPvRKSt9nothrow_t): Export.
1489 2009-07-18 Richard Henderson <rth@redhat.com>
1491 * target_tls.h: Move ...
1492 * config/posix/target_tls.h: ... here.
1494 2009-07-07 Richard Henderson <rth@redhat.com>
1496 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1498 2009-07-07 Richard Henderson <rth@redhat.com>
1502 2009-07-07 Richard Henderson <rth@redhat.com>
1504 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1505 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1507 * configure.tgt: Don't use -ftls-model for x86 linux.
1508 * libitm.h: Include target.h after standard includes.
1509 (_gtm_thr): Rename from gtm_thr.
1510 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1511 (gtm_disp, set_gtm_disp): New.
1512 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1513 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1514 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1516 2009-07-07 Richard Henderson <rth@redhat.com>
1518 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1520 2009-07-06 Richard Henderson <rth@redhat.com>
1522 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1523 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1524 (_ITM_beginTransaction): Take variadic arguments.
1525 (_ITM_registerThrownObject): Declare.
1526 * beginend.c, serial.c: Update.
1527 * libitm.map: Add _ITM_registerThrownObject.
1529 2009-01-28 Richard Henderson <rth@redhat.com>
1531 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1532 * Makefile.in: Rebuild.
1533 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1534 (GTM_restart_transaction): Fix uninstrumented code check.
1535 * retry.c (GTM_decide_retry_strategy): Add serial check.
1536 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1537 automatically go irrevokable when in serial mode.
1538 * clone.c: New file.
1539 * libitm.h, libitm.map: Update.
1541 2009-01-27 Richard Henderson <rth@redhat.com>
1543 * Makefile.am (LTCCASCOMPILE): Define.
1544 (libitm_la_SOURCES): Add methid-wbetl.c.
1545 * testsuite/Makefile.am: New
1546 * configure.ac: Add testsuite/Makefile.
1547 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1548 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1549 (_ITM_abortTransaction): Finalize implementation method; pass
1550 transaction properties to longjmp.
1551 (GTM_restart_transaction): Split out from ...
1552 (_ITM_commitTransaction): ... here.
1553 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1554 Move to config/x86/target.h.
1555 * config/linux/alpha/futex_bits.h: New.
1556 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1557 * config/x86/target.h: Disable target types for 32-bit.
1558 * config/alpha/sjlj.S, config/alpha/target.h: New.
1559 * libitm.h (struct gtm_dispatch): Add init, fini.
1560 (enum restart_reason): New.
1561 (struct gtm_transaction): Add method and restarts.
1562 * retry.c (GTM_decide_retry_strategy): Implement.
1563 * serial.c (serial_init, serial_fini): New.
1564 (GTM_serialmode): Finialize outgoing method.
1565 * method-wbetl.c: New.
1567 2008-12-09 Richard Henderson <rth@redhat.com>
1569 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1570 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1571 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1572 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1573 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1574 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1575 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1576 * serial.c (serial_R##T, serial_W##T): Likewise.
1578 2008-11-21 Richard Henderson <rth@redhat.com>