1 2013-05-31 Release Manager
5 2013-03-22 Release Manager
9 2013-02-11 Iain Sandoe <iain@codesourcery.com>
10 Jack Howarth <howarth@bromo.med.uc.edu>
11 Patrick Marlier <patrick.marlier@gmail.com>
14 * alloc_cpp.cc: Enable function declarations on darwin.
15 * eh_cpp.cc: Likewise.
17 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
19 Update copyright years.
21 2012-11-09 Torvald Riegel <triegel@redhat.com>
23 * beginend.cc (htm_fastpath): New.
24 (gtm_thread::begin_transaction, _ITM_commitTransaction,
25 _ITM_commitTransactionEH): Add HTM fastpath handling.
26 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
27 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
28 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
29 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
30 * configure.tgt: Add -mrtm to XCFLAGS.
31 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
32 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
33 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
34 * retry.cc (parse_default_method): Add HTM method parsing.
35 (gtm_thread::number_of_threads_changed): Use HTM by default if
38 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
40 * configure: Regenerate.
42 2012-10-31 Richard Henderson <rth@redhat.com>
44 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
45 * configure.ac: Use it.
46 * config.h.in, configure: Rebuild.
47 * testsuite/Makefile.in: Rebuild.
49 2012-10-24 Torvald Riegel <triegel@redhat.com>
51 * libitm.texi: Clarify ABI requirements for data-logging functions.
53 2012-10-24 Torvald Riegel <triegel@redhat.com>
55 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
56 it requires serial mode instead of assuming that for certain
58 * dispatch.h (abi_dispatch::requires_serial): New.
59 (abi_dispatch::abi_dispatch): Adapt.
60 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
61 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
62 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
63 serial_dispatch::serial_dispatch,
64 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
66 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
68 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
69 and ia32 declarations some more.
70 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
72 2012-09-20 Jakub Jelinek <jakub@redhat.com>
75 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
76 * configure: Regenerate.
77 * Makefile.in: Regenerate.
79 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
81 * configure: Regenerated.
83 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
85 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
87 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
89 * eh_cpp.cc: Fix __cxa_end_catch declaration.
91 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
93 * configure: Regenerated.
95 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
98 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
101 2012-04-03 Tristan Gingold <gingold@adacore.com>
103 * configure: Regenerate.
105 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
108 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
110 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
112 * testsuite/lib/libitm.exp: load fortran-modules.exp
114 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
116 * configure.tgt (*-*-irix6*): Remove.
118 2012-03-13 Torvald Riegel <triegel@redhat.com>
121 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
124 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
126 * configure.tgt (*-*-osf*): Remove.
127 * configure: Regenerate.
129 2012-03-05 Torvald Riegel <triegel@redhat.com>
131 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
132 memtransfer/memset if size isn't larger than zero.
134 2012-03-02 Torvald Riegel <triegel@redhat.com>
136 * libitm.texi: Link to specification and add a usage example.
138 2012-02-24 Torvald Riegel <triegel@redhat.com>
140 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
141 default dispatch for more than 1 thread to ml_wt.
143 2012-02-20 Torvald Riegel <triegel@redhat.com>
145 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
147 2012-02-20 Torvald Riegel <triegel@redhat.com>
149 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
151 2012-02-20 Torvald Riegel <triegel@redhat.com>
153 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
154 serial mode corner cases made obsolete by prior gtm_rwlock changes.
155 (gl_wt_dispatch.rollback): Same.
157 2012-02-20 Torvald Riegel <triegel@redhat.com>
159 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
161 2012-02-20 Torvald Riegel <triegel@redhat.com>
163 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
164 for RfW src. Optimize number of calls to gtm_thr.
166 2012-02-20 Torvald Riegel <triegel@redhat.com>
168 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
170 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
171 (default_dispatch): Make atomic.
172 (GTM::gtm_thread::set_default_dispatch): Access atomically.
173 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
174 use decide_begin_dispatch() if default_dispatch might have changed.
175 (GTM::gtm_thread::number_of_threads_changed): Initialize
176 default_dispatch here.
178 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
179 Patrick Marlier <patrick.marlier@gmail.com>
182 * alloc_cpp.cc: No dummy definitions for darwin.
183 * eh_cpp.cc: Likewise.
185 2012-02-14 Richard Henderson <rth@redhat.com>
187 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
189 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
191 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
193 2012-02-14 Torvald Riegel <triegel@redhat.com>
195 * libitm_i.h (GTM::gtm_rwlog_entry): New.
196 (GTM::gtm_thread): Add read and write logs.
197 (GTM::dispatch_ml_wt): Declare.
198 * retry.cc (parse_default_method): Support ml_wt.
199 * method-ml.cc: New file.
200 * Makefile.am: Add method-ml.cc.
201 * Makefile.in: Regenerate.
203 2012-02-14 Torvald Riegel <triegel@redhat.com>
205 * dispatch.h (GTM::abi_dispatch::supports): New.
206 (GTM::method_group::reinit): New.
207 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
208 (GTM::gtm_thread::number_of_threads_changed): Check that the method
209 supports the current situation.
211 2012-02-14 Torvald Riegel <triegel@redhat.com>
213 * util.cc (GTM::xcalloc): New.
214 * common.h (GTM::xcalloc): Declare.
216 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
218 * config/sparc/target.h (cpu_relax): Read from CC register.
219 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
221 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
223 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
225 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
227 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
228 * config/sparc/cacheline.h: New file.
229 * config/sparc/target.h: Likewise.
230 * config/sparc/sjlj.S: Likewise.
231 * config/linux/sparc/futex_bits.h: Likewise.
233 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
235 * configure.ac (link_itm): Fix comment.
236 * configure: Regenerate.
237 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
239 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
242 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
243 Correct libgomp references.
245 2012-01-24 Torvald Riegel <triegel@redhat.com>
247 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
250 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
252 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
254 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
255 offset values. Do not copy return address. Decrement stack
257 (GTM_longjump) [__x86_64__]: Update offset values.
259 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
262 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
263 the first function argument to %eax.
265 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
267 * libitm.h (_ITM_getThreadnum): Remove.
268 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
270 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
272 * clearcap.map: New file.
273 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
274 * configure.ac: Call it.
275 Clear HWCAP_LDFLAGS if defaulting to -mavx.
276 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
277 * configure: Regenerate.
278 * Makefile.in: Regenerate.
279 * testsuite/Makefile.in: Regenerate.
281 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
284 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
285 include, exclude options.
287 2012-01-14 Torvald Riegel <triegel@redhat.com>
289 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
291 * containers.h (GTM::vector::set_size): New.
293 2012-01-14 Torvald Riegel <triegel@redhat.com>
296 * config/generic/tls.h (GTM::mask_stack_top): New.
297 (GTM::mask_stack_bottom): Declare.
298 * config/generic/tls.c (GTM::mask_stack_bottom): New.
299 * local.cc (gtm_undolog::rollback): Filter out any updates that
300 overlap the libitm stack. Add current transaction as parameter.
301 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
302 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
303 * testsuite/libitm.c/stackundo.c: New test.
305 2012-01-10 Richard Henderson <rth@redhat.com>
307 * libitm_i.h (_Unwind_DeleteException): Declare weak.
308 * eh_cpp.cc (_Unwind_DeleteException): Define for
309 !HAVE_ELF_STYLE_WEAKREF.
311 2012-01-08 Torvald Riegel <triegel@redhat.com>
313 * local.cc (GTM_LB): Use GTM::gtm_undolog.
314 (GTM::gtm_thread::drop_references_undolog): Remove.
315 (GTM::gtm_thread::commit_undolog,
316 GTM::gtm_thread::rollback_undolog): Move to ...
317 * libitm_i.h (GTM::gtm_undolog): ...here. New.
318 (GTM::gtm_undolog_entry): Remove.
319 (GTM::gtm_thread): Adapt.
320 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
321 (GTM::gtm_thread::trycommit): Adapt.
322 * method-serial.cc (serial_dispatch::log): Adapt.
323 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
324 (gl_wt_dispatch::store): Fix likely/unlikely.
325 * containers.h (GTM::vector::resize): Add additional_capacity
326 parameter and handle it.
327 (GTM::vector::resize_noinline): New/adapt.
328 (GTM::vector::push): New.
330 2012-01-06 Richard Henderson <rth@redhat.com>
332 * configure.tgt: Support powerpc-linux and powerpc-darwin.
333 * config/linux/powerpc/futex_bits.h: New file.
334 * config/powerpc/cacheline.h: New file.
335 * config/powerpc/sjlj.S: New file.
336 * config/powerpc/target.h: New file.
337 * config/generic/asmcfi.h (cfi_offset): New.
338 (cfi_restore, cfi_undefined): New.
340 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
343 * testsuite/libitm.c/reentrant.c: Remove xfail.
344 (thread): Pass x to pure().
345 From Patrik Marlier <patrick.marlier@gmail.com>.
347 2011-12-24 Torvald Riegel <triegel@redhat.com>
349 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
350 privatization safety if already in serial mode.
352 2011-12-24 Torvald Riegel <triegel@redhat.com>
354 * beginend.cc (GTM::gtm_thread::restart): Add and handle
355 finish_serial_upgrade parameter.
356 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
357 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
358 Don't unset reader flag.
359 (GTM::gtm_rwlock::write_upgrade_finish): New.
360 * config/posix/rwlock.cc: Same.
361 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
363 * config/posix/rwlock.h: Same.
364 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
365 flag after commit or after rollback when restarting.
367 2011-12-24 Torvald Riegel <triegel@redhat.com>
369 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
370 (GTM::gtm_thread::try_commit): Changed memory order.
371 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
373 * config/linux/x86/futex_bits.h (sys_futex0): Same.
374 * config/linux/sh/futex_bits.h (sys_futex0): Same.
375 * config/linux/futex_bits.h (sys_futex0): Same.
376 * config/linux/futex.cc (futex_wait, futex_wake): Same.
377 * config/linux/futex.h (futex_wait, futex_wake): Same.
378 * config/linux/rwlock.h (gtm_rwlock::writers,
379 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
381 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
382 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
383 gtm_rwlock::write_unlock): Fix memory orders and fences.
384 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
385 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
386 gtm_rwlock::write_unlock): Same.
387 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
388 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
389 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
391 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
392 gl_wt_dispatch::load, gl_wt_dispatch::store,
393 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
394 orders and fences. Add comments.
396 2011-12-21 Jakub Jelinek <jakub@redhat.com>
398 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
399 * Makefile.in: Regenerated.
401 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
403 * configure.tgt: Add sh* case.
404 * config/sh/target.h: New file.
405 * config/sh/sjlj.S: New file.
406 * config/linux/sh/futex_bits.h: New file.
408 2011-12-14 Richard Henderson <rth@redhat.com>
410 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
411 * config/arm/sjlj.S, config/arm/target.h: New files.
412 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
413 (cfi_rel_offset): New.
414 * config/linux/futex_bits.h: New file.
415 * config/linux/futex.cc: Include futex_bits.h here...
416 * config/linux/futex.h: ... not here.
417 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
418 * configure.ac (ARCH_AM): New conditional.
419 * Makefile.in, configure: Rebuild.
420 * configure.tgt: Handle ARM.
422 2011-12-13 Richard Henderson <rth@redhat.com>
424 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
425 signed/unsigned comparison werror.
427 * local_atomic: New file.
428 * libitm_i.h: Include it.
429 (gtm_thread::shared_state): Use atomic template.
430 * beginend.cc (GTM::gtm_clock): Use atomic template.
431 (global_tid): Use atomic template if 64-bit atomics available.
432 (gtm_thread::gtm_thread): Update shared_state access.
433 (gtm_thread::trycommit): Likewise.
434 (choose_code_path): Update global_tid access.
435 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
436 * stmlock.h (GTM::gtm_clock): Use atomic template.
437 (gtm_get_clock, gtm_inc_clock): Update accesses.
438 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
439 redundant __sync_synchronize after atomic shared_state access.
440 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
441 (gtm_rwlock::write_lock_generic): Likewise.
442 (gtm_rwlock::read_unlock): Likewise.
443 * config/alpha/target.h (atomic_read_barrier): Remove.
444 (atomic_write_barrier): Remove.
445 * config/x86/target.h (atomic_read_barrier): Remove.
446 (atomic_write_barrier): Remove.
448 2011-11-30 Richard Henderson <rth@redhat.com>
450 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
451 * beginend.c (_ITM_abortTransaction): Update to match.
452 (GTM::gtm_thread::restart): Likewise.
453 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
454 * config/x86/sjlj.S (GTM_longjmp): Likewise.
456 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
458 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
459 * Makefile.in: Regenerate.
461 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
463 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
464 * alloc_cpp.cc: Generate dummy functions if we don't
465 HAVE_ELF_STYLE_WEAKREF.
466 * eh_cpp.cc: Likewise.
467 * configure: Regenerate.
468 * aclocal.m4: Likewise.
469 * config.h.in: Likewise.
470 * Makefile.in: Likewise.
471 * testsuite/Makefile.in: Likewise.
473 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
475 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
476 __USER_LABEL_PREFIX__ for targets that use it.
477 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
478 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
479 in portability to non-elf targets.
480 (GTM_longjmp): Likewise.
481 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
484 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
486 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
487 * testsuite/libitm.c/memset-1.c: Likewise.
489 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
491 * configure: Regenerate.
493 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
495 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
496 (LIBITM_ENABLE_SYMVERS): Handle sun style.
497 * Makefile.am: Handle sun style versioning.
498 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
499 * configure: Regenerate.
500 * Makefile.in: Regenerate.
502 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
504 * config/generic/asmcfi.h: Fix comment.
505 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
506 sequence without .hidden support, error for non-ELF targets.
507 (GTM_longjmp) [__ELF__]: Only use .hidden if
508 HAVE_ATTRIBUTE_VISIBILITY.
510 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
512 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
513 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
515 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
516 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
518 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
521 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
522 * configure: Regenerate.
524 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
526 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
528 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
530 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
532 (.note.GNU-stack): Only use if __linux__.
533 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
534 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
535 * testsuite/libitm.c/reentrant.c: Likewise.
536 * testsuite/libitm.c/simple-2.c: Likewise.
537 * testsuite/libitm.c/txrelease.c: Likewise.
538 * testsuite/libitm.c++/static_ctor.C: Likewise.
540 2011-11-10 Richard Henderson <rth@redhat.com>
542 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
543 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
544 * configure.ac (ARCH_X86_AVX): New conditional.
545 * Makefile.in, configure: Rebuild.
547 2011-11-09 Richard Henderson <rth@redhat.com>
549 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
550 * configure.ac: Use it.
551 * config.h.in, configure: Rebuild.
552 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
554 2011-11-09 Richard Henderson <rth@redhat.com>
556 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
557 * config/alpha/unaligned.h: Remove file.
558 * config/generic/unaligned.h: Remove file.
559 * config/x86/unaligned.h: Remove file.
560 * config/generic/cachepage.h: Remove file.
561 * config/posix/cachepage.cc: Remove file.
562 * config/generic/cacheline.cc: Remove file.
563 * config/x86/cacheline.cc: Remove file.
564 * config/generic/cacheline.h (gtm_cacheline): Remove the
565 store_mask, copy_mask, copy_mask_wb methods.
566 * config/x86/cacheline.h: Likewise.
567 * config/alpha/cacheline.h: Fall back to generic after setting size.
568 * config/generic/tls.cc (gtm_mask_stack): Remove.
569 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
570 (GTM_vpalignr_table): Remove.
571 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
572 (GTM_pshift_table): Remove.
573 * config/libitm_i.h: Don't include cachepage.h.
574 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
575 * Makefile.in, testsuite/Makefile.in: Rebuild.
577 2011-11-09 Richard Henderson <rth@redhat.com>
579 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
580 to emit branch prediction hint.
582 * config/x86/sjlj.S: Protect elf directives with __ELF__.
583 Protect .note.GNU-stack with __linux__.
585 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
586 * configure, aclocal.m4, config.h.in: Rebuild.
587 * config/generic/asmcfi.h: New file.
588 * config/x86/sjlj.S: Use it.
590 2011-11-08 Richard Henderson <rth@redhat.com>
592 * local.cc (_ITM_LB): Use a normal call, not a function alias.
594 2011-11-08 Richard Henderson <rth@redhat.com>
596 * configure.tgt: Test correct directory for supported cpus.
598 * configure.ac: Exit if unsupported.
599 * configure: Rebuild.
600 * configure.tgt: Delete boilerplate from libgomp for unsupported
601 targets. Set UNSUPPORTED for unsupported targets.
603 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
605 * configure.tgt: Handle i386 like i[456]86.
606 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
608 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
609 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
611 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
613 * method-wbetl.cc: Update copyright notice.
620 * useraction.cc: Same.
624 * config/generic/tls.cc: Same.
625 * config/generic/cacheline.h: Same.
626 * config/generic/cachepage.h: Same.
627 * config/generic/cacheline.cc: Same.
628 * config/generic/unaligned.h: Same.
629 * config/x86/cacheline.h: Same.
630 * config/x86/cacheline.cc: Same.
631 * config/x86/unaligned.h: Same.
632 * config/alpha/cacheline.h: Same.
633 * config/alpha/unaligned.h: Same.
634 * config/alpha/sjlj.S: Same.
635 * config/posix/cachepage.cc: Same.
636 * config/linux/futex.h: Same.
637 * config/linux/alpha/futex_bits.h: Same.
639 2011-11-04 Torvald Riegel <triegel@redhat.com>
641 * libitm.texi: No cover text and invariant sections.
643 2011-11-03 Richard Henderson <rth@redhat.com>
645 * local_type_traits: New file.
646 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
648 2011-11-03 Richard Henderson <rth@redhat.com>
650 * configure.ac: Don't test for gfortran.
651 * configure: Rebuild.
653 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
654 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
656 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
658 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
659 * testsuite/libitm.c/memset-1.c: Same.
660 * testsuite/libitm.c/c.exp: Same.
661 * testsuite/lib/libitm-dg.exp: Same.
662 * testsuite/lib/libitm.exp: Same.
663 * testsuite/libitm.c++/c++.exp: Same.
665 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
667 * testsuite/config/default.exp: Update copyright date.
668 * configure.ac: Add copyright info.
669 * configure.tgt: Same.
671 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
673 * testsuite/libitm.c/reentrant.c: XFAIL.
674 * testsuite/libitm.c++/static_ctor.C: XFAIL.
676 2011-10-29 Torvald Riegel <triegel@redhat.com>
678 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
680 (_ITM_abortTransaction): Handle aborts of outer transactions.
682 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
683 * libitm.texi: Document aborts of outer transactions.
684 * testsuite/libitm.c/cancel.c: New file.
686 2011-10-19 Torvald Riegel <triegel@redhat.com>
688 * testsuite/*: Change __transaction to __transaction_atomic or
689 __transaction_relaxed.
691 2011-10-19 Torvald Riegel <triegel@redhat.com>
693 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
696 2011-10-19 Torvald Riegel <triegel@redhat.com>
698 * libitm_i.h: Add gl_wt dispatch.
699 * retry.cc (parse_default_method): Same.
700 * method-gl.cc: New file.
701 * Makefile.am: Use method-gl.cc.
702 * Makefile.in: Rebuild.
704 2011-10-19 Torvald Riegel <triegel@redhat.com>
706 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
707 safety if requested by a TM method.
708 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
709 privatization safety.
710 * method-serial.cc: Same.
712 2011-10-19 Torvald Riegel <triegel@redhat.com>
714 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
715 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
716 undolog-related member functions from *_local to *_undolog.
717 * local.cc (gtm_thread::commit_undolog): Same.
718 * beginend.cc (GTM::gtm_thread::trycommit): Same.
719 (GTM::gtm_thread::rollback): Roll back undolog before
720 dispatch-specific rollback.
722 2011-10-19 Torvald Riegel <triegel@redhat.com>
724 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
725 re-initialization of the current method group.
726 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
728 2011-10-19 Torvald Riegel <triegel@redhat.com>
730 * alloc.cc (commit_allocations_2): Do not free transaction-local
731 memory when committing a nested transaction.
733 2011-10-19 Torvald Riegel <triegel@redhat.com>
735 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
736 serial-irrevocable dispatch, not serial.
738 2011-10-19 Torvald Riegel <triegel@redhat.com>
740 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
742 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
743 * method-serial.cc: Implement begin_or_restart().
744 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
745 dispatch-specific begin_or_restart().
746 (GTM::gtm_thread::restart): Same.
748 2011-08-23 Torvald Riegel <triegel@redhat.com>
750 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
751 restarting without switching to serial mode.
752 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
753 transaction state. Choose closed-nesting alternative if available.
754 (GTM::gtm_thread::set_default_dispatch): New.
755 (parse_default_method): New.
756 (GTM::gtm_thread::number_of_threads_changed): New.
757 * method-serial.cc (GTM::serial_mg): New method group class.
758 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
760 (GTM::serial_dispatch): Same.
761 (GTM::serialirr_onwrite_dispatch): Same.
762 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
763 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
765 (GTM::gtm_thread::gtm_thread): Same.
766 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
767 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
768 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
769 choose dispatch but set state according to dispatch here.
770 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
771 (GTM::method_group): New class.
772 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
773 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
774 * libitm.texi: Document TM methods, method groups, method life cycle.
775 Rename method sets to method groups.
777 2011-08-23 Torvald Riegel <triegel@redhat.com>
779 * config/x86/tls.h: Moved to ...
780 * config/linux/x86/tls.h: ... here.
782 2011-08-23 Torvald Riegel <triegel@redhat.com>
784 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
786 * config/x86/sjlj.S: Same.
788 2011-08-19 Torvald Riegel <triegel@redhat.com>
790 * config/linux/rwlock.h: New file.
791 * config/linux/rwlock.c: New file.
792 * configure.ac: Reenable futex support (undo SVN rev 157758).
794 * configure.tgt: Same.
795 * config/linux/alpha/futex_bits.h: Same.
796 * config/linux/futex.h: Same. Return number of woken processes.
797 * config/linux/futex.cc: Same.
798 (futex_wait): Remove spinning.
799 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
800 Use __x86_64__ instead of __LP64__.
801 * aclocal.m4: Include generic futex checks.
802 * configure: Rebuild.
803 * Makefile.in: Rebuild.
804 * testsuite/Makefile.in: Rebuild.
805 * beginend.cc: Include pthread.h.
806 * config/posix/cachepage.cc: Same.
808 2011-08-12 Torvald Riegel <triegel@redhat.com>
810 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
811 (abi_disp, set_abi_disp): Move to tx's TLS slot.
813 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
815 (GTM::gtm_thread::thread_num): Removed.
816 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
817 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
818 tx-to-thread renaming.
819 * beginend.cc: Adapted to tx-to-thread renaming.
820 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
821 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
822 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
823 gtm_transaction to gtm_thread.
824 (_ITM_getThreadnum): Removed. Not supported anymore.
825 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
826 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
827 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
828 gtm_tx-to-gtm_thr renaming if necessary.
835 * alloc_cpp.cc: Same.
836 * method-serial.cc: Same.
837 * config/generic/tls.cc: Same.
838 * config/posix/rwlock.h (gtm_rwlock): Same.
839 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
841 2011-08-12 Torvald Riegel <triegel@redhat.com>
843 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
845 (gtm_rwlock::read_unlock): Same.
846 (gtm_rwlock::write_lock_generic): New. Generalized from ...
847 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
848 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
849 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
850 w_upgrade. Replaced by per-transaction flags (in shared_state).
851 Added c_confirmed_writers.
852 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
853 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
854 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
855 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
856 * beginend.cc (GTM::gtm_transaction::begin_transaction,
857 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
858 * libitm.texi: Document locking conventions and implementations in
861 2011-08-12 Torvald Riegel <triegel@redhat.com>
863 * libitm_i.h (next_tx): Add list of all threads' transaction.
864 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
865 transaction with list of transactions and ...
866 (thread_exit_handler): ... deregister here.
867 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
868 * config/x86/target.h: Same.
870 2011-08-12 Torvald Riegel <triegel@redhat.com>
872 * testsuite/libitm.c++/static_ctor.C: New file.
874 2011-08-12 Torvald Riegel <triegel@redhat.com>
876 * testsuite/libitm.c/reentrant.c: New file.
878 2011-08-12 Torvald Riegel <triegel@redhat.com>
880 * config/generic/tls.h: Remove the free list for transactions and ...
881 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
882 (GTM::gtm_transaction::operator delete): ... and release here.
883 (thread_exit_handler): New. Delete tx when thread terminates.
884 (thread_exit_init): New.
885 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
886 * testsuite/libitm.c/txrelease.c: New file.
888 2011-08-12 Torvald Riegel <triegel@redhat.com>
890 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
891 * testsuite/libitm.c/notx.c: New file.
893 2011-08-12 Torvald Riegel <triegel@redhat.com>
895 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
896 * libitm_i.h (local_tid): ... to here.
897 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
898 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
900 2011-08-12 Torvald Riegel <triegel@redhat.com>
902 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
903 serialirr_onwrite_dispatch as new default for now.
904 * method-serial.cc (serialirr_onwrite_dispatch): New.
905 (GTM::dispatch_serialirr_onwrite): New.
908 2011-08-12 Torvald Riegel <triegel@redhat.com>
910 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
911 * query.cc (_ITM_getTransactionId): There is no active transaction if
912 the current nesting level is zero.
914 2011-07-28 Torvald Riegel <triegel@redhat.com>
916 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
919 2011-07-28 Torvald Riegel <triegel@redhat.com>
921 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
922 transaction properties from the caller instead of from the
925 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
927 2011-07-28 Torvald Riegel <triegel@redhat.com>
929 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
930 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
932 * method-serial.cc: Same.
933 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
934 flat nesting as default, and closed nesting on demand.
935 (GTM::gtm_transaction::rollback): Same.
936 (_ITM_abortTransaction): Same.
937 (GTM::gtm_transaction::restart): Same.
938 (GTM::gtm_transaction::trycommit): Same.
939 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
940 (choose_code_path): New.
941 (GTM::gtm_transaction_cp::save): New.
942 (GTM::gtm_transaction_cp::commit): New.
943 * query.cc (_ITM_inTransaction): Support flat nesting.
944 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
945 (GTM::gtm_transaction): Support flat and closed nesting.
946 * alloc.cc (commit_allocations_2): New.
947 (commit_cb_data): New helper struct.
948 (GTM::gtm_transaction::commit_allocations): Handle nested
950 * libitm.texi: Update user action section, add description of nesting.
952 2011-07-28 Torvald Riegel <triegel@redhat.com>
954 * libitm_i.h: Add closed nesting as restart reason.
955 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
957 2011-07-28 Torvald Riegel <triegel@redhat.com>
959 * useraction.cc: Use vector instead of list to store actions.
960 Also support partial rollbacks for closed nesting.
961 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
964 2011-07-28 Torvald Riegel <triegel@redhat.com>
966 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
967 closed_nesting flags, as well as a closed nesting alternative.
968 * method-serial.cc: Same.
969 (serial_dispatch): Renamed to serialirr_dispatch.
970 (GTM::dispatch_serialirr): Same.
971 (serial_dispatch_ul): Renamed to serial_dispatch.
972 (GTM::dispatch_serial): Same.
974 2011-07-28 Torvald Riegel <triegel@redhat.com>
976 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
978 2011-07-28 Torvald Riegel <triegel@redhat.com>
980 * aatree.h (aa_tree::remove): New.
981 (aa_tree::operator new): Add placement new.
983 2011-07-02 Torvald Riegel <triegel@redhat.com>
985 * containers.h: New file.
986 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
987 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
988 * common.h: ... to here.
989 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
992 2011-06-30 Torvald Riegel <triegel@redhat.com>
994 * libitm_i.h (STATE_ABORTING): Remove.
995 * beginend.cc (_ITM_abortTransaction): Same.
996 (GTM::gtm_transaction::trycommit_and_finalize): Same.
997 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
998 (_ITM_rollbackTransaction): Remove.
1001 * libitm.texi: Document these ABI changes.
1003 2011-06-30 Torvald Riegel <triegel@redhat.com>
1005 * libitm.texi: New file.
1006 * Makefile.am: Add libitm.texi.
1007 * Makefile.in: Rebuild.
1009 2011-06-30 Torvald Riegel <triegel@redhat.com>
1011 * libitm_i.h: Move parts to common.h and dispatch.h.
1012 * common.h: New file.
1013 * dispatch.h: New file, new dispatch class.
1014 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1015 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1016 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1017 decision to retry.cc.
1018 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1020 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1021 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1023 * barrier.cc: Use new barriers definitions.
1024 (abi_dispatch::memmove_overlap_check): New.
1025 * config/x86/x86_sse.cc: Same.
1026 * config/x86/x86_avx.cc: Same.
1027 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1029 * Makefile.in: Rebuild.
1030 * method-readonly.cc: Remove.
1031 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1032 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1034 2011-06-30 Torvald Riegel <triegel@redhat.com>
1036 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1037 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1038 * testsuite/libitm.c/dropref-2.c: Same.
1039 * testsuite/libitm.c/dropref.c: Same.
1041 2011-06-30 Torvald Riegel <triegel@redhat.com>
1043 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1044 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1045 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1047 * barrier.tpl: Same.
1049 * config/generic/tls.h: Same.
1050 * config/x86/tls.h: Same.
1054 * method-readonly.cc: Same.
1055 * method-serial.cc: Same.
1056 * method-wbetl.cc: Same.
1059 2011-03-03 Richard Henderson <rth@redhat.com>
1061 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1062 From Patrik Marlier <patrick.marlier@unine.ch>.
1064 2011-02-03 Richard Henderson <rth@redhat.com>
1066 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1067 * configure.ac: Use it.
1068 * configure, config.h.in: Rebuild.
1069 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1070 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1071 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1072 * libitm.map: Use wildcards to match size_t mangling.
1074 2010-12-14 Richard Henderson <rth@redhat.com>
1076 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1077 blocks of TIDs per thread.
1078 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1079 (setup_gtm_thr): Return the thread structure.
1080 * config/x86/tls.h (setup_gtm_thr): Likewise.
1082 2010-12-14 Richard Henderson <rth@redhat.com>
1084 * clone.cc (table_lock): Remove.
1085 (find_clone): Don't take it.
1086 (ExcludeTransaction): New helper class.
1087 (_ITM_registerTMCloneTable): Use it.
1088 (_ITM_deregisterTMCloneTable): Likewise.
1090 2010-12-14 Richard Henderson <rth@redhat.com>
1092 * config/x86/tls.h: New file.
1094 2010-07-15 Richard Henderson <rth@redhat.com>
1096 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1097 * Makefile.in: Rebuild.
1099 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1101 * method-wbetl.cc (trydropreference): Fix source line.
1103 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1105 * libitm.h: Add comment.
1106 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1108 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1110 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1111 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1112 available, use pthread mutexes.
1113 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1114 * config.h.in: Regenerate.
1115 * configure: Regenerate.
1117 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1119 * libitm.h (ITM_PURE): Define.
1120 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1122 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1124 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1125 (validate): Add comment.
1126 (trydropreference): New.
1127 * method-readonly.cc (class readonly_dispatch): Add
1129 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1130 Call trydropreference().
1131 * libitm.h (_ITM_dropReferences): Remove const attribute.
1132 * method-serial.cc (class serial_dispatch): Add trydropreference.
1133 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1135 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1137 * memcpy.cc (do_memcpy): Comment.
1139 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1141 * barrier.tpl: Add comments throughout.
1143 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1145 * method-wbetl.cc (struct w_entry): Add comments.
1149 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1151 * alloc_c.cc (_ITM_dropReferences): New.
1152 * libitm.map (_ITM_dropReferences): Add.
1153 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1154 * libitm_i.h (struct gtm_transaction): Declare
1155 drop_references_allocations and drop_references_local.
1156 * local.cc (rollback_local): Ignore memory when applicable.
1157 (drop_references_local): New.
1159 2010-06-23 Richard Henderson <rth@redhat.com>
1161 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1162 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1163 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1164 * config/alpha/target.h: Likewise.
1165 * config/generic/tls.cc (gtm_mask_stack): Use it.
1167 2010-06-23 Richard Henderson <rth@redhat.com>
1169 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1170 a mutex instead of trying a lock-free compare-and-swap on the list.
1171 (gtm_cacheline_page::operator delete): Likewise.
1173 2010-06-16 Richard Henderson <rth@redhat.com>
1175 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1176 that overlap the libitm stack.
1177 * barrier.tpl: Mark incoming stack.
1178 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1179 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1180 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1181 * memcpy.cc, memset.cc: Likewise.
1182 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1183 * config/generic/tls.h (gtm_thread): Add stack_top member.
1184 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1185 * libitm_i.h (gtm_mask_stack): Declare.
1186 * config/generic/tls.cc: New file.
1187 * Makefile.am (libitm_la_SOURCES): Add it.
1188 (AM_CXXFLAGS): Turn off exceptions.
1189 * Makefile.in: Rebuild.
1191 2010-06-16 Richard Henderson <rth@redhat.com>
1193 * alloc.cc (struct gtm_alloc_action): Move definition ...
1194 * libitm_i.h: ... here.
1195 (class gtm_transaction): Declare new and delete.
1196 * beginend.cc (alloc_tx): Reformulate as operator new.
1197 (free_tx): Reformulate as operator delete.
1198 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1200 2010-06-11 Richard Henderson <rth@redhat.com>
1202 * clone.cc (clone_entry_compare): Fix typo.
1203 From Patrik Marlier <patrick.marlier@unine.ch>.
1205 2010-05-13 Richard Henderson <rth@redhat.com>
1207 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1210 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1212 * libitm_i.h (struct gtm_transaction): Remove
1213 get_allocation_size.
1214 (record_allocation): Remove size parameter.
1215 * libitm.map (_ITM_realloc): Remove.
1216 * alloc_c.cc (_ITM_realloc): Remove.
1217 (_ITM_malloc): Remove size argument to record_allocation.
1218 (_ITM_calloc): Same.
1219 * alloc_cpp.cc (_ZGTtnwm): Same.
1220 (_ZGTtnwmRKSt9nothrow_t): Same.
1222 (_ZGTtnamRKSt9nothrow_t): Same.
1223 * alloc.cc (struct gtm_alloc_action): Remove size.
1224 (get_allocation_size): Remove.
1225 (commit_allocations): Add comment.
1226 (record_allocation): Remove size parameter.
1227 (forget_allocation): Remove set of size.
1229 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1231 * Makefile.am (abi_version): New.
1232 (AM_CXXFLAGS): Pass abi_version.
1233 * Makefile.in: Regenerate.
1234 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1236 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1238 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1239 _ITM_getTMCloneOrIrrevokable.
1240 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1241 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1243 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1245 * configure.ac: Remove Linux futex support.
1246 * configure.tgt (config_path): Same.
1247 * Makefile.am: Same.
1248 * config/linux: Remove entire directory.
1249 * configure: Rebuild.
1250 * Makefile.in: Rebuild.
1251 * testsuite/Makefile.in: Rebuild.
1253 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1255 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1256 switching to serial mode.
1257 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1259 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1261 * configure.tgt: Add emacs -*- tags.
1262 * barrier.tpl: Same.
1264 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1266 * Makefile.am: Rename serial.cc to method-serial.cc.
1267 * Makefile.in: Regenerate with automake 1.11.1.
1268 * testsuite/Makefile.in: Same.
1269 * aclocal.m4: Regenerate with aclocal 1.11.1.
1270 * method-serial.cc: Rename from serial.cc.
1271 * libitm_i.h (struct gtm_transaction): Update comment on
1274 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1276 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1277 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1279 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1281 * configure: Rebuild.
1283 2009-11-12 Richard Henderson <rth@redhat.com>
1285 * Rewrite everything in C++.
1287 2009-11-03 Richard Henderson <rth@redhat.com>
1289 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1290 * Makefile.am (libitm_la_SOURCES): Add them.
1291 * configure.ac (ARCH_X86): New conditional.
1292 * Makefile.in, configure: Rebuild.
1293 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1294 Move futex setup into "other system configury" case.
1295 * local.c (rollback_local): Merge into ...
1296 (GTM_rollback_local): ... here.
1297 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1298 (_ITM_LB): Define as an alias to GTM_LB.
1300 2009-11-03 Richard Henderson <rth@redhat.com>
1302 * method-readonly.c: New file.
1303 * Makefile.am (libitm_la_SOURCES): Add it.
1304 * Makefile.in: Rebuild.
1305 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1306 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1307 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1308 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1309 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1310 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1311 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1312 gtm_get_clock, gtm_inc_clock): New.
1313 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1314 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1315 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1316 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1317 replace uses with new libitm_i.h symbols.
1318 (dispatch_wbetl): Rename from wbetl_dispatch.
1319 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1320 away from dispatch_readonly; abort if the beginTransaction call
1321 asserted that the transaction was readonly.
1323 2009-11-03 Richard Henderson <rth@redhat.com>
1325 * memset.c: New file.
1326 * Makefile.am (libitm_la_SOURCES): Add it.
1327 * Makefile.in: Rebuild.
1328 * testsuite/libitm.c/memset-1.c: New.
1330 2009-11-03 Richard Henderson <rth@redhat.com>
1332 * dispatch.c: Remove file.
1333 * useraction.c (struct gtm_user_action): Move from libitm.h.
1334 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1335 (serial_memset, serial_memmove, serial_memcpy): Remove.
1336 (serial_W*, serial_R*): Remove.
1337 (serial_dispatch): Update to match.
1338 * configure.ac: Move Werror down below configure checks. Don't
1339 check for sys/loadavg.h, do check for malloc.h. Don't check for
1340 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1341 Use GCC_AC_FUNC_MMAP_BLACKLIST
1342 * libitm.h: Split out all internal items to...
1343 * libitm_i.h: ... here. New file.
1344 * copymask.c: New file.
1345 * local.c (struct gtm_local_undo): Move from libitm.h.
1346 (GTM_alloc_local): Rename from alloc_local; export.
1347 * memcpy.c: New file.
1348 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1349 * config/posix/page.c: New file.
1350 * config/posix/target_tls.h: Remove file.
1351 * barrier.c: New file.
1352 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1354 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1355 * method-wbetl.c: Rewrite for new cacheline methods.
1356 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1358 * config/alpha/sjlj.S: Fix typo.
1359 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1360 * config/alpha/copymask.c: New file.
1361 * config/alpha/target.h (CACHELINE_SIZE): New.
1362 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1364 * config/x86/target_i.h: Copy functions from x86/target.h.
1365 * config/x86/copymask.c: New file.
1366 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1367 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1368 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1369 * config/x86/target_tls.h: Move contents to target_i.h.
1371 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1372 * testsuite/libitm.c/memcpy-1.c: New.
1374 2009-10-22 Richard Henderson <rth@redhat.com>
1376 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1377 (AM_CCASFLAGS): New.
1378 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1379 saving/restoring _AC_ARG_VAR_PRECIOUS.
1380 * Makefile.in, aclocal.m4, config.h.in, configure,
1381 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1383 2009-10-22 Richard Henderson <rth@redhat.com>
1385 * testsuite/*: Update for new compiler syntax.
1387 2009-10-21 Richard Henderson <rth@redhat.com>
1389 * libitm.h (_ITM_abortReason): Add outerAbort.
1391 2009-08-03 Richard Henderson <rth@redhat.com>
1393 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1394 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1395 * method-wbetl.c (struct w_entry): Remove mask.
1396 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1399 2009-07-22 Richard Henderson <rth@redhat.com>
1401 * eh_cpp.c: New file.
1402 * Makefile.am (libitm_la_SOURCES): Add it.
1403 * Makefile.in: Rebuild.
1404 * beginend.c (GTM_rollback_transaction): Undo exception state.
1405 (GTM_trycommit_transaction): Mark inline.
1406 (GTM_trycommit_and_finalize_transaction): Split out from ...
1407 (_ITM_commitTransaction): ... here.
1408 (_ITM_commitTransactionEH): New function.
1409 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1410 cxa_unthrown, eh_in_flight; reorder.
1412 * testsuite/libitm.c++/c++.exp: New.
1413 * testsuite/libitm.c++/eh-1.C: New.
1415 * aatree.c (aa_free): Remove REGPARM.
1416 * aatree.h: Remove all REGPARM.
1418 2009-07-18 Richard Henderson <rth@redhat.com>
1420 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1421 * Makefile.am (libitm_la_SOURCES): Add them.
1422 * Makefile.in: Rebuild.
1423 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1424 (GTM_trycommit_transaction): Likewise.
1425 * libitm.h: Include aatree.h
1426 (struct gtm_alloc_action): New.
1427 (struct gtm_transaction): Add alloc_actions.
1428 (GTM_record_allocation, GTM_forget_allocation): Declare.
1429 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1430 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1431 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1432 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1433 _ZGTtdaPvRKSt9nothrow_t): Export.
1435 2009-07-18 Richard Henderson <rth@redhat.com>
1437 * target_tls.h: Move ...
1438 * config/posix/target_tls.h: ... here.
1440 2009-07-07 Richard Henderson <rth@redhat.com>
1442 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1444 2009-07-07 Richard Henderson <rth@redhat.com>
1448 2009-07-07 Richard Henderson <rth@redhat.com>
1450 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1451 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1453 * configure.tgt: Don't use -ftls-model for x86 linux.
1454 * libitm.h: Include target.h after standard includes.
1455 (_gtm_thr): Rename from gtm_thr.
1456 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1457 (gtm_disp, set_gtm_disp): New.
1458 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1459 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1460 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1462 2009-07-07 Richard Henderson <rth@redhat.com>
1464 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1466 2009-07-06 Richard Henderson <rth@redhat.com>
1468 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1469 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1470 (_ITM_beginTransaction): Take variadic arguments.
1471 (_ITM_registerThrownObject): Declare.
1472 * beginend.c, serial.c: Update.
1473 * libitm.map: Add _ITM_registerThrownObject.
1475 2009-01-28 Richard Henderson <rth@redhat.com>
1477 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1478 * Makefile.in: Rebuild.
1479 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1480 (GTM_restart_transaction): Fix uninstrumented code check.
1481 * retry.c (GTM_decide_retry_strategy): Add serial check.
1482 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1483 automatically go irrevokable when in serial mode.
1484 * clone.c: New file.
1485 * libitm.h, libitm.map: Update.
1487 2009-01-27 Richard Henderson <rth@redhat.com>
1489 * Makefile.am (LTCCASCOMPILE): Define.
1490 (libitm_la_SOURCES): Add methid-wbetl.c.
1491 * testsuite/Makefile.am: New
1492 * configure.ac: Add testsuite/Makefile.
1493 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1494 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1495 (_ITM_abortTransaction): Finalize implementation method; pass
1496 transaction properties to longjmp.
1497 (GTM_restart_transaction): Split out from ...
1498 (_ITM_commitTransaction): ... here.
1499 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1500 Move to config/x86/target.h.
1501 * config/linux/alpha/futex_bits.h: New.
1502 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1503 * config/x86/target.h: Disable target types for 32-bit.
1504 * config/alpha/sjlj.S, config/alpha/target.h: New.
1505 * libitm.h (struct gtm_dispatch): Add init, fini.
1506 (enum restart_reason): New.
1507 (struct gtm_transaction): Add method and restarts.
1508 * retry.c (GTM_decide_retry_strategy): Implement.
1509 * serial.c (serial_init, serial_fini): New.
1510 (GTM_serialmode): Finialize outgoing method.
1511 * method-wbetl.c: New.
1513 2008-12-09 Richard Henderson <rth@redhat.com>
1515 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1516 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1517 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1518 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1519 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1520 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1521 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1522 * serial.c (serial_R##T, serial_W##T): Likewise.
1524 2008-11-21 Richard Henderson <rth@redhat.com>