12015-06-23 Release Manager 2 3 * GCC 4.8.5 released. 4 52014-12-19 Release Manager 6 7 * GCC 4.8.4 released. 8 92014-12-05 Uros Bizjak <ubizjak@gmail.com> 10 11 * configure.tgt (x86_64): Tune -m32 multilib to generic. 12 132014-05-22 Release Manager 14 15 * GCC 4.8.3 released. 16 172014-04-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 18 19 * acinclude.m4: Move s390* case from RTM to HTM check. 20 * configure: Regenerate. 21 222014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 23 24 * config/generic/asmcfi.h: Also check for 25 __GCC_HAVE_DWARF2_CFI_ASM. 26 272014-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 28 29 Backport from mainline r204808: 30 31 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 32 33 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]: 34 (FUNC): Define ELFv2 variant. 35 (END): Likewise. 36 (HIDDEN): Likewise. 37 (CALL): Likewise. 38 (BASE): Likewise. 39 (LR_SAVE): Likewise. 40 412014-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 42 43 Power8 HTM Support 44 Backport from mainline 45 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New. 46 * configure: Rebuild. 47 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS. 48 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h. 49 (USE_HTM_FASTPATH): Define. 50 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT) 51 (_HTM_RETRIES) New macros. 52 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init) 53 (htm_begin_success, htm_commit, htm_transaction_active): New functions. 54 552014-03-26 Jakub Jelinek <jakub@redhat.com> 56 57 * config/linux/futex_bits.h: Include errno.h. 58 (sys_futex0): If syscall returns -1, return -errno rather than 59 -1. 60 612014-03-03 Peter Bergner <bergner@vnet.ibm.com> 62 63 Backport from mainline 64 2013-06-20 Torvald Riegel <triegel@redhat.com> 65 66 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath. 67 (_ITM_getTransactionId): Same. 68 * config/x86/target.h (htm_transaction_active): New. 69 70 2013-06-20 Torvald Riegel <triegel@redhat.com> 71 72 PR libitm/57643 73 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in 74 the HTM fastpath. 75 762013-10-16 Release Manager 77 78 * GCC 4.8.2 released. 79 802013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 81 82 Revert: 83 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 84 85 * configure.tgt: Add -msoft-float to XCFLAGS. 86 872013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 88 89 * config/s390/sjlj.S: Add file missing from last commit. 90 * config/s390/target.h: Likewise. 91 922013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 93 94 Backports from mainline: 95 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 96 97 * config/s390/sjlj.S: New file. 98 * config/s390/target.h: New file. 99 * configure.tgt: Set options for S/390. 100 101 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 102 103 * config/s390/target.h: Include htmintrin.h. 104 (_HTM_ITM_RETRIES): New macro definition. 105 (htm_available, htm_init, htm_begin, htm_begin_success) 106 (htm_commit, htm_abort, htm_abort_should_retry): New functions. 107 108 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 109 110 * acinclude.m4: Add htm asm check for s390. 111 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the 112 options. 113 * configure: Regenerate. 114 * config/s390/target.h: Remove __HTM__ check. 115 (htm_available): Call getauxval to get hwcaps and check 116 whether HTM is available or not. 117 118 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 119 120 * config/s390/target.h (htm_begin, htm_commit, htm_abort) 121 (htm_transaction_active): Enable zEC12 instructions in the 122 assembler. 123 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS. 124 125 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 126 127 * configure.tgt: Add -msoft-float to XCFLAGS. 128 1292013-05-31 Release Manager 130 131 * GCC 4.8.1 released. 132 1332013-03-22 Release Manager 134 135 * GCC 4.8.0 released. 136 1372013-02-11 Iain Sandoe <iain@codesourcery.com> 138 Jack Howarth <howarth@bromo.med.uc.edu> 139 Patrick Marlier <patrick.marlier@gmail.com> 140 141 PR libitm/55693 142 * alloc_cpp.cc: Enable function declarations on darwin. 143 * eh_cpp.cc: Likewise. 144 1452013-02-03 Richard Sandiford <rdsandiford@googlemail.com> 146 147 Update copyright years. 148 1492012-11-09 Torvald Riegel <triegel@redhat.com> 150 151 * beginend.cc (htm_fastpath): New. 152 (gtm_thread::begin_transaction, _ITM_commitTransaction, 153 _ITM_commitTransactionEH): Add HTM fastpath handling. 154 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New. 155 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New. 156 * config/x86/target.h (htm_available, htm_init, htm_begin_success, 157 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New. 158 * configure.tgt: Add -mrtm to XCFLAGS. 159 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New. 160 (gtm_thread::serialirr_mode): Add HTM fastpath handling. 161 * libitm_i.h (htm_fastpath, dispatch_htm): Declare. 162 * retry.cc (parse_default_method): Add HTM method parsing. 163 (gtm_thread::number_of_threads_changed): Use HTM by default if 164 available. 165 1662012-11-04 Thomas Schwinge <thomas@codesourcery.com> 167 168 * configure: Regenerate. 169 1702012-10-31 Richard Henderson <rth@redhat.com> 171 172 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New. 173 * configure.ac: Use it. 174 * config.h.in, configure: Rebuild. 175 * testsuite/Makefile.in: Rebuild. 176 1772012-10-24 Torvald Riegel <triegel@redhat.com> 178 179 * libitm.texi: Clarify ABI requirements for data-logging functions. 180 1812012-10-24 Torvald Riegel <triegel@redhat.com> 182 183 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether 184 it requires serial mode instead of assuming that for certain 185 dispatchs. 186 * dispatch.h (abi_dispatch::requires_serial): New. 187 (abi_dispatch::abi_dispatch): Adapt. 188 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt. 189 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same. 190 * method-serial.cc (serialirr_dispatch::serialirr_dispatch, 191 serial_dispatch::serial_dispatch, 192 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same. 193 1942012-10-02 Uros Bizjak <ubizjak@gmail.com> 195 196 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64 197 and ia32 declarations some more. 198 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code. 199 2002012-09-20 Jakub Jelinek <jakub@redhat.com> 201 202 PR other/43620 203 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. 204 * configure: Regenerate. 205 * Makefile.in: Regenerate. 206 2072012-09-14 David Edelsohn <dje.gcc@gmail.com> 208 209 * configure: Regenerated. 210 2112012-07-31 Uros Bizjak <ubizjak@gmail.com> 212 213 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause. 214 2152012-05-21 Patrick Marlier <patrick.marlier@gmail.com> 216 217 * eh_cpp.cc: Fix __cxa_end_catch declaration. 218 2192012-05-16 H.J. Lu <hongjiu.lu@intel.com> 220 221 * configure: Regenerated. 222 2232012-04-04 H.J. Lu <hongjiu.lu@intel.com> 224 225 PR libitm/52854 226 * config/x86/target.h (gtm_jmpbuf): Replace long with long long 227 for x86-64. 228 2292012-04-03 Tristan Gingold <gingold@adacore.com> 230 231 * configure: Regenerate. 232 2332012-03-31 H.J. Lu <hongjiu.lu@intel.com> 234 235 PR bootstrap/52812 236 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64. 237 2382012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> 239 240 * testsuite/lib/libitm.exp: load fortran-modules.exp 241 2422012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 243 244 * configure.tgt (*-*-irix6*): Remove. 245 2462012-03-13 Torvald Riegel <triegel@redhat.com> 247 248 PR libitm/52526 249 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost 250 wake-up. 251 2522012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 253 254 * configure.tgt (*-*-osf*): Remove. 255 * configure: Regenerate. 256 2572012-03-05 Torvald Riegel <triegel@redhat.com> 258 259 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute 260 memtransfer/memset if size isn't larger than zero. 261 2622012-03-02 Torvald Riegel <triegel@redhat.com> 263 264 * libitm.texi: Link to specification and add a usage example. 265 2662012-02-24 Torvald Riegel <triegel@redhat.com> 267 268 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change 269 default dispatch for more than 1 thread to ml_wt. 270 2712012-02-20 Torvald Riegel <triegel@redhat.com> 272 273 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline. 274 2752012-02-20 Torvald Riegel <triegel@redhat.com> 276 277 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders. 278 2792012-02-20 Torvald Riegel <triegel@redhat.com> 280 281 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of 282 serial mode corner cases made obsolete by prior gtm_rwlock changes. 283 (gl_wt_dispatch.rollback): Same. 284 2852012-02-20 Torvald Riegel <triegel@redhat.com> 286 287 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders. 288 2892012-02-20 Torvald Riegel <triegel@redhat.com> 290 291 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo 292 for RfW src. Optimize number of calls to gtm_thr. 293 2942012-02-20 Torvald Riegel <triegel@redhat.com> 295 296 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock 297 acquisition to ... 298 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here. 299 (default_dispatch): Make atomic. 300 (GTM::gtm_thread::set_default_dispatch): Access atomically. 301 (GTM::gtm_thread::decide_retry_strategy): Access atomically and 302 use decide_begin_dispatch() if default_dispatch might have changed. 303 (GTM::gtm_thread::number_of_threads_changed): Initialize 304 default_dispatch here. 305 3062012-02-15 Iain Sandoe <iains@gcc.gnu.org> 307 Patrick Marlier <patrick.marlier@gmail.com> 308 309 PR libitm/52220 310 * alloc_cpp.cc: No dummy definitions for darwin. 311 * eh_cpp.cc: Likewise. 312 3132012-02-14 Richard Henderson <rth@redhat.com> 314 315 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections. 316 3172012-02-14 Uros Bizjak <ubizjak@gmail.com> 318 319 * config/x86/target.h (GTM_longjmp): Correct .cfi directives. 320 3212012-02-14 Torvald Riegel <triegel@redhat.com> 322 323 * libitm_i.h (GTM::gtm_rwlog_entry): New. 324 (GTM::gtm_thread): Add read and write logs. 325 (GTM::dispatch_ml_wt): Declare. 326 * retry.cc (parse_default_method): Support ml_wt. 327 * method-ml.cc: New file. 328 * Makefile.am: Add method-ml.cc. 329 * Makefile.in: Regenerate. 330 3312012-02-14 Torvald Riegel <triegel@redhat.com> 332 333 * dispatch.h (GTM::abi_dispatch::supports): New. 334 (GTM::method_group::reinit): New. 335 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit(). 336 (GTM::gtm_thread::number_of_threads_changed): Check that the method 337 supports the current situation. 338 3392012-02-14 Torvald Riegel <triegel@redhat.com> 340 341 * util.cc (GTM::xcalloc): New. 342 * common.h (GTM::xcalloc): Declare. 343 3442012-02-14 Eric Botcazou <ebotcazou@adacore.com> 345 346 * config/sparc/target.h (cpu_relax): Read from CC register. 347 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically. 348 3492012-02-14 Uros Bizjak <ubizjak@gmail.com> 350 351 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address. 352 3532012-02-13 Eric Botcazou <ebotcazou@adacore.com> 354 355 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9. 356 * config/sparc/cacheline.h: New file. 357 * config/sparc/target.h: Likewise. 358 * config/sparc/sjlj.S: Likewise. 359 * config/linux/sparc/futex_bits.h: Likewise. 360 3612012-02-13 Eric Botcazou <ebotcazou@adacore.com> 362 363 * configure.ac (link_itm): Fix comment. 364 * configure: Regenerate. 365 * testsuite/lib/libitm.exp: Do not pass -litm for the link. 366 3672012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 368 369 PR libitm/51822 370 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc. 371 Correct libgomp references. 372 3732012-01-24 Torvald Riegel <triegel@redhat.com> 374 375 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader 376 wake-up. 377 3782012-01-24 Uros Bizjak <ubizjak@gmail.com> 379 380 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the 381 end of structure. 382 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update 383 offset values. Do not copy return address. Decrement stack 384 by 56 bytes only. 385 (GTM_longjump) [__x86_64__]: Update offset values. 386 3872012-01-23 Uros Bizjak <ubizjak@gmail.com> 388 389 PR libitm/51830 390 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load 391 the first function argument to %eax. 392 3932012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 394 395 * libitm.h (_ITM_getThreadnum): Remove. 396 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0. 397 3982012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 399 400 * clearcap.map: New file. 401 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test. 402 * configure.ac: Call it. 403 Clear HWCAP_LDFLAGS if defaulting to -mavx. 404 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS) 405 * configure: Regenerate. 406 * Makefile.in: Regenerate. 407 * testsuite/Makefile.in: Regenerate. 408 4092012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 410 411 PR libitm/51173 412 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove 413 include, exclude options. 414 4152012-01-14 Torvald Riegel <triegel@redhat.com> 416 417 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after 418 rolling back. 419 * containers.h (GTM::vector::set_size): New. 420 4212012-01-14 Torvald Riegel <triegel@redhat.com> 422 423 PR libitm/51855 424 * config/generic/tls.h (GTM::mask_stack_top): New. 425 (GTM::mask_stack_bottom): Declare. 426 * config/generic/tls.c (GTM::mask_stack_bottom): New. 427 * local.cc (gtm_undolog::rollback): Filter out any updates that 428 overlap the libitm stack. Add current transaction as parameter. 429 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt. 430 * beginend.cc (GTM::gtm_thread::rollback): Adapt. 431 * testsuite/libitm.c/stackundo.c: New test. 432 4332012-01-10 Richard Henderson <rth@redhat.com> 434 435 * libitm_i.h (_Unwind_DeleteException): Declare weak. 436 * eh_cpp.cc (_Unwind_DeleteException): Define for 437 !HAVE_ELF_STYLE_WEAKREF. 438 4392012-01-08 Torvald Riegel <triegel@redhat.com> 440 441 * local.cc (GTM_LB): Use GTM::gtm_undolog. 442 (GTM::gtm_thread::drop_references_undolog): Remove. 443 (GTM::gtm_thread::commit_undolog, 444 GTM::gtm_thread::rollback_undolog): Move to ... 445 * libitm_i.h (GTM::gtm_undolog): ...here. New. 446 (GTM::gtm_undolog_entry): Remove. 447 (GTM::gtm_thread): Adapt. 448 * beginend.cc (GTM::gtm_thread::rollback): Adapt. 449 (GTM::gtm_thread::trycommit): Adapt. 450 * method-serial.cc (serial_dispatch::log): Adapt. 451 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt. 452 (gl_wt_dispatch::store): Fix likely/unlikely. 453 * containers.h (GTM::vector::resize): Add additional_capacity 454 parameter and handle it. 455 (GTM::vector::resize_noinline): New/adapt. 456 (GTM::vector::push): New. 457 4582012-01-06 Richard Henderson <rth@redhat.com> 459 460 * configure.tgt: Support powerpc-linux and powerpc-darwin. 461 * config/linux/powerpc/futex_bits.h: New file. 462 * config/powerpc/cacheline.h: New file. 463 * config/powerpc/sjlj.S: New file. 464 * config/powerpc/target.h: New file. 465 * config/generic/asmcfi.h (cfi_offset): New. 466 (cfi_restore, cfi_undefined): New. 467 4682012-01-05 Aldy Hernandez <aldyh@redhat.com> 469 470 PR other/51171 471 * testsuite/libitm.c/reentrant.c: Remove xfail. 472 (thread): Pass x to pure(). 473 From Patrik Marlier <patrick.marlier@gmail.com>. 474 4752011-12-24 Torvald Riegel <triegel@redhat.com> 476 477 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce 478 privatization safety if already in serial mode. 479 4802011-12-24 Torvald Riegel <triegel@redhat.com> 481 482 * beginend.cc (GTM::gtm_thread::restart): Add and handle 483 finish_serial_upgrade parameter. 484 * libitm.h (GTM::gtm_thread::restart): Adapt declaration. 485 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic): 486 Don't unset reader flag. 487 (GTM::gtm_rwlock::write_upgrade_finish): New. 488 * config/posix/rwlock.cc: Same. 489 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish): 490 Declare. 491 * config/posix/rwlock.h: Same. 492 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader 493 flag after commit or after rollback when restarting. 494 4952011-12-24 Torvald Riegel <triegel@redhat.com> 496 497 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment. 498 (GTM::gtm_thread::try_commit): Changed memory order. 499 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int 500 as parameter. 501 * config/linux/x86/futex_bits.h (sys_futex0): Same. 502 * config/linux/sh/futex_bits.h (sys_futex0): Same. 503 * config/linux/futex_bits.h (sys_futex0): Same. 504 * config/linux/futex.cc (futex_wait, futex_wake): Same. 505 * config/linux/futex.h (futex_wait, futex_wake): Same. 506 * config/linux/rwlock.h (gtm_rwlock::writers, 507 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic 508 ints. 509 * config/linux/rwlock.cc (gtm_rwlock::read_lock, 510 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock, 511 gtm_rwlock::write_unlock): Fix memory orders and fences. 512 * config/posix/rwlock.cc (gtm_rwlock::read_lock, 513 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock, 514 gtm_rwlock::write_unlock): Same. 515 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int. 516 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static, 517 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart): 518 Add comments. 519 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate, 520 gl_wt_dispatch::load, gl_wt_dispatch::store, 521 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory 522 orders and fences. Add comments. 523 5242011-12-21 Jakub Jelinek <jakub@redhat.com> 525 526 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first. 527 * Makefile.in: Regenerated. 528 5292011-12-17 Kaz Kojima <kkojima@gcc.gnu.org> 530 531 * configure.tgt: Add sh* case. 532 * config/sh/target.h: New file. 533 * config/sh/sjlj.S: New file. 534 * config/linux/sh/futex_bits.h: New file. 535 5362011-12-14 Richard Henderson <rth@redhat.com> 537 538 * config/arm/hwcap.h, config/arm/hwcap.cc: New files. 539 * config/arm/sjlj.S, config/arm/target.h: New files. 540 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New. 541 (cfi_rel_offset): New. 542 * config/linux/futex_bits.h: New file. 543 * config/linux/futex.cc: Include futex_bits.h here... 544 * config/linux/futex.h: ... not here. 545 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc. 546 * configure.ac (ARCH_AM): New conditional. 547 * Makefile.in, configure: Rebuild. 548 * configure.tgt: Handle ARM. 549 5502011-12-13 Richard Henderson <rth@redhat.com> 551 552 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix 553 signed/unsigned comparison werror. 554 555 * local_atomic: New file. 556 * libitm_i.h: Include it. 557 (gtm_thread::shared_state): Use atomic template. 558 * beginend.cc (GTM::gtm_clock): Use atomic template. 559 (global_tid): Use atomic template if 64-bit atomics available. 560 (gtm_thread::gtm_thread): Update shared_state access. 561 (gtm_thread::trycommit): Likewise. 562 (choose_code_path): Update global_tid access. 563 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users. 564 * stmlock.h (GTM::gtm_clock): Use atomic template. 565 (gtm_get_clock, gtm_inc_clock): Update accesses. 566 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove 567 redundant __sync_synchronize after atomic shared_state access. 568 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise. 569 (gtm_rwlock::write_lock_generic): Likewise. 570 (gtm_rwlock::read_unlock): Likewise. 571 * config/alpha/target.h (atomic_read_barrier): Remove. 572 (atomic_write_barrier): Remove. 573 * config/x86/target.h (atomic_read_barrier): Remove. 574 (atomic_write_barrier): Remove. 575 5762011-11-30 Richard Henderson <rth@redhat.com> 577 578 * libitm_i.h (GTM_longjmp): Swap first and second arguments. 579 * beginend.c (_ITM_abortTransaction): Update to match. 580 (GTM::gtm_thread::restart): Likewise. 581 * config/alpha/sjlj.S (GTM_longjmp): Likewise. 582 * config/x86/sjlj.S (GTM_longjmp): Likewise. 583 5842011-11-23 Iain Sandoe <iains@gcc.gnu.org> 585 586 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined". 587 * Makefile.in: Regenerate. 588 5892011-11-22 Iain Sandoe <iains@gcc.gnu.org> 590 591 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF. 592 * alloc_cpp.cc: Generate dummy functions if we don't 593 HAVE_ELF_STYLE_WEAKREF. 594 * eh_cpp.cc: Likewise. 595 * configure: Regenerate. 596 * aclocal.m4: Likewise. 597 * config.h.in: Likewise. 598 * Makefile.in: Likewise. 599 * testsuite/Makefile.in: Likewise. 600 6012011-11-22 Iain Sandoe <iains@gcc.gnu.org> 602 603 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to 604 __USER_LABEL_PREFIX__ for targets that use it. 605 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets. 606 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist 607 in portability to non-elf targets. 608 (GTM_longjmp): Likewise. 609 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__ 610 where required. 611 6122011-11-22 Iain Sandoe <iains@gcc.gnu.org> 613 614 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling. 615 * testsuite/libitm.c/memset-1.c: Likewise. 616 6172011-11-21 Andreas Tobler <andreast@fgznet.ch> 618 619 * configure: Regenerate. 620 6212011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 622 623 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold. 624 (LIBITM_ENABLE_SYMVERS): Handle sun style. 625 * Makefile.am: Handle sun style versioning. 626 (libitm_la_LINK): Add $(libitm_la_LDFLAGS). 627 * configure: Regenerate. 628 * Makefile.in: Regenerate. 629 6302011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 631 632 * config/generic/asmcfi.h: Fix comment. 633 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code 634 sequence without .hidden support, error for non-ELF targets. 635 (GTM_longjmp) [__ELF__]: Only use .hidden if 636 HAVE_ATTRIBUTE_VISIBILITY. 637 6382011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 639 640 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv, 641 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t): 642 Dummy functions. 643 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw, 644 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise. 645 6462011-11-16 Uros Bizjak <ubizjak@gmail.com> 647 648 PR bootstrap/51098 649 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector. 650 * configure: Regenerate. 651 6522011-11-14 H.J. Lu <hongjiu.lu@intel.com> 653 654 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32. 655 6562011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 657 658 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use 659 .hidden. 660 (.note.GNU-stack): Only use if __linux__. 661 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function. 662 * testsuite/libitm.c/notx.c: Use dg-options "-pthread". 663 * testsuite/libitm.c/reentrant.c: Likewise. 664 * testsuite/libitm.c/simple-2.c: Likewise. 665 * testsuite/libitm.c/txrelease.c: Likewise. 666 * testsuite/libitm.c++/static_ctor.C: Likewise. 667 6682011-11-10 Richard Henderson <rth@redhat.com> 669 670 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments. 671 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX. 672 * configure.ac (ARCH_X86_AVX): New conditional. 673 * Makefile.in, configure: Rebuild. 674 6752011-11-09 Richard Henderson <rth@redhat.com> 676 677 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New. 678 * configure.ac: Use it. 679 * config.h.in, configure: Rebuild. 680 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX. 681 6822011-11-09 Richard Henderson <rth@redhat.com> 683 684 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file. 685 * config/alpha/unaligned.h: Remove file. 686 * config/generic/unaligned.h: Remove file. 687 * config/x86/unaligned.h: Remove file. 688 * config/generic/cachepage.h: Remove file. 689 * config/posix/cachepage.cc: Remove file. 690 * config/generic/cacheline.cc: Remove file. 691 * config/x86/cacheline.cc: Remove file. 692 * config/generic/cacheline.h (gtm_cacheline): Remove the 693 store_mask, copy_mask, copy_mask_wb methods. 694 * config/x86/cacheline.h: Likewise. 695 * config/alpha/cacheline.h: Fall back to generic after setting size. 696 * config/generic/tls.cc (gtm_mask_stack): Remove. 697 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove. 698 (GTM_vpalignr_table): Remove. 699 * config/x86/x86_sse.cc (GTM_palignr_table): Remove. 700 (GTM_pshift_table): Remove. 701 * config/libitm_i.h: Don't include cachepage.h. 702 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc 703 * Makefile.in, testsuite/Makefile.in: Rebuild. 704 7052011-11-09 Richard Henderson <rth@redhat.com> 706 707 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte 708 to emit branch prediction hint. 709 710 * config/x86/sjlj.S: Protect elf directives with __ELF__. 711 Protect .note.GNU-stack with __linux__. 712 713 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it. 714 * configure, aclocal.m4, config.h.in: Rebuild. 715 * config/generic/asmcfi.h: New file. 716 * config/x86/sjlj.S: Use it. 717 7182011-11-08 Richard Henderson <rth@redhat.com> 719 720 * local.cc (_ITM_LB): Use a normal call, not a function alias. 721 7222011-11-08 Richard Henderson <rth@redhat.com> 723 724 * configure.tgt: Test correct directory for supported cpus. 725 726 * configure.ac: Exit if unsupported. 727 * configure: Rebuild. 728 * configure.tgt: Delete boilerplate from libgomp for unsupported 729 targets. Set UNSUPPORTED for unsupported targets. 730 7312011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 732 733 * configure.tgt: Handle i386 like i[456]86. 734 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't 735 take address. 736 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD || 737 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable. 738 7392011-11-05 Aldy Hernandez <aldyh@redhat.com> 740 741 * method-wbetl.cc: Update copyright notice. 742 * aatree.cc: Same. 743 * util.cc: Same. 744 * libitm.h: Same. 745 * memset.cc: Same. 746 * eh_cpp.cc: Same. 747 * barrier.tpl: Same. 748 * useraction.cc: Same. 749 * stmlock.h: Same. 750 * memcpy.cc: Same. 751 * common.h: Same. 752 * config/generic/tls.cc: Same. 753 * config/generic/cacheline.h: Same. 754 * config/generic/cachepage.h: Same. 755 * config/generic/cacheline.cc: Same. 756 * config/generic/unaligned.h: Same. 757 * config/x86/cacheline.h: Same. 758 * config/x86/cacheline.cc: Same. 759 * config/x86/unaligned.h: Same. 760 * config/alpha/cacheline.h: Same. 761 * config/alpha/unaligned.h: Same. 762 * config/alpha/sjlj.S: Same. 763 * config/posix/cachepage.cc: Same. 764 * config/linux/futex.h: Same. 765 * config/linux/alpha/futex_bits.h: Same. 766 7672011-11-04 Torvald Riegel <triegel@redhat.com> 768 769 * libitm.texi: No cover text and invariant sections. 770 7712011-11-03 Richard Henderson <rth@redhat.com> 772 773 * local_type_traits: New file. 774 * libitm_i.h: Use it. Use C headers, not C++ wrappers. 775 7762011-11-03 Richard Henderson <rth@redhat.com> 777 778 * configure.ac: Don't test for gfortran. 779 * configure: Rebuild. 780 781 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp. 782 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest. 783 7842011-11-03 Aldy Hernandez <aldyh@redhat.com> 785 786 * testsuite/libitm.c/memcpy-1.c: Add copyright notice. 787 * testsuite/libitm.c/memset-1.c: Same. 788 * testsuite/libitm.c/c.exp: Same. 789 * testsuite/lib/libitm-dg.exp: Same. 790 * testsuite/lib/libitm.exp: Same. 791 * testsuite/libitm.c++/c++.exp: Same. 792 7932011-11-03 Aldy Hernandez <aldyh@redhat.com> 794 795 * testsuite/config/default.exp: Update copyright date. 796 * configure.ac: Add copyright info. 797 * configure.tgt: Same. 798 7992011-11-03 Aldy Hernandez <aldyh@redhat.com> 800 801 * testsuite/libitm.c/reentrant.c: XFAIL. 802 * testsuite/libitm.c++/static_ctor.C: XFAIL. 803 8042011-10-29 Torvald Riegel <triegel@redhat.com> 805 806 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and 807 handle aborts. 808 (_ITM_abortTransaction): Handle aborts of outer transactions. 809 * libitm_i.h: Same. 810 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion. 811 * libitm.texi: Document aborts of outer transactions. 812 * testsuite/libitm.c/cancel.c: New file. 813 8142011-10-19 Torvald Riegel <triegel@redhat.com> 815 816 * testsuite/*: Change __transaction to __transaction_atomic or 817 __transaction_relaxed. 818 8192011-10-19 Torvald Riegel <triegel@redhat.com> 820 821 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile. 822 (gtm_thr): Same. 823 8242011-10-19 Torvald Riegel <triegel@redhat.com> 825 826 * libitm_i.h: Add gl_wt dispatch. 827 * retry.cc (parse_default_method): Same. 828 * method-gl.cc: New file. 829 * Makefile.am: Use method-gl.cc. 830 * Makefile.in: Rebuild. 831 8322011-10-19 Torvald Riegel <triegel@redhat.com> 833 834 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization 835 safety if requested by a TM method. 836 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for 837 privatization safety. 838 * method-serial.cc: Same. 839 8402011-10-19 Torvald Riegel <triegel@redhat.com> 841 842 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry. 843 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed 844 undolog-related member functions from *_local to *_undolog. 845 * local.cc (gtm_thread::commit_undolog): Same. 846 * beginend.cc (GTM::gtm_thread::trycommit): Same. 847 (GTM::gtm_thread::rollback): Roll back undolog before 848 dispatch-specific rollback. 849 8502011-10-19 Torvald Riegel <triegel@redhat.com> 851 852 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle 853 re-initialization of the current method group. 854 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this. 855 8562011-10-19 Torvald Riegel <triegel@redhat.com> 857 858 * alloc.cc (commit_allocations_2): Do not free transaction-local 859 memory when committing a nested transaction. 860 8612011-10-19 Torvald Riegel <triegel@redhat.com> 862 863 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use 864 serial-irrevocable dispatch, not serial. 865 8662011-10-19 Torvald Riegel <triegel@redhat.com> 867 868 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up 869 declarations. 870 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New. 871 * method-serial.cc: Implement begin_or_restart(). 872 * beginend.cc (GTM::gtm_thread::begin_transaction): Call 873 dispatch-specific begin_or_restart(). 874 (GTM::gtm_thread::restart): Same. 875 8762011-08-23 Torvald Riegel <triegel@redhat.com> 877 878 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix 879 restarting without switching to serial mode. 880 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the 881 transaction state. Choose closed-nesting alternative if available. 882 (GTM::gtm_thread::set_default_dispatch): New. 883 (parse_default_method): New. 884 (GTM::gtm_thread::number_of_threads_changed): New. 885 * method-serial.cc (GTM::serial_mg): New method group class. 886 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and 887 fini. 888 (GTM::serial_dispatch): Same. 889 (GTM::serialirr_onwrite_dispatch): Same. 890 (GTM::gtm_thread::serialirr_mode): Remove calls to fini. 891 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of 892 registered threads. 893 (GTM::gtm_thread::gtm_thread): Same. 894 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini(). 895 (GTM::gtm_thread::trycommit): Same. Reset number of restarts. 896 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch() 897 choose dispatch but set state according to dispatch here. 898 * dispatch.h (GTM::abi_dispatch::fini): Move to method group. 899 (GTM::method_group): New class. 900 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group. 901 * libitm_i.h (GTM::gtm_thread): Add declarations for new members. 902 * libitm.texi: Document TM methods, method groups, method life cycle. 903 Rename method sets to method groups. 904 9052011-08-23 Torvald Riegel <triegel@redhat.com> 906 907 * config/x86/tls.h: Moved to ... 908 * config/linux/x86/tls.h: ... here. 909 9102011-08-23 Torvald Riegel <triegel@redhat.com> 911 912 * config/x86/tls.h: Use __x86_64__ instead of __LP64__. 913 Add X32 support. 914 * config/x86/sjlj.S: Same. 915 9162011-08-19 Torvald Riegel <triegel@redhat.com> 917 918 * config/linux/rwlock.h: New file. 919 * config/linux/rwlock.c: New file. 920 * configure.ac: Reenable futex support (undo SVN rev 157758). 921 * Makefile.am: Same. 922 * configure.tgt: Same. 923 * config/linux/alpha/futex_bits.h: Same. 924 * config/linux/futex.h: Same. Return number of woken processes. 925 * config/linux/futex.cc: Same. 926 (futex_wait): Remove spinning. 927 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero. 928 Use __x86_64__ instead of __LP64__. 929 * aclocal.m4: Include generic futex checks. 930 * configure: Rebuild. 931 * Makefile.in: Rebuild. 932 * testsuite/Makefile.in: Rebuild. 933 * beginend.cc: Include pthread.h. 934 * config/posix/cachepage.cc: Same. 935 9362011-08-12 Torvald Riegel <triegel@redhat.com> 937 938 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed. 939 (abi_disp, set_abi_disp): Move to tx's TLS slot. 940 (set_gtm_thr): New. 941 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed. 942 (set_gtm_thr): New. 943 (GTM::gtm_thread::thread_num): Removed. 944 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls. 945 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More 946 tx-to-thread renaming. 947 * beginend.cc: Adapted to tx-to-thread renaming. 948 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler(). 949 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction(). 950 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed 951 gtm_transaction to gtm_thread. 952 (_ITM_getThreadnum): Removed. Not supported anymore. 953 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call. 954 * libitm.texi: Documented that _ITM_getThreadnum is not supported. 955 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to 956 gtm_tx-to-gtm_thr renaming if necessary. 957 * eh_cpp.cc: Same. 958 * local.cc: Same. 959 * retry.cc: Same. 960 * clone.cc: Same. 961 * alloc.cc: Same. 962 * alloc_c.cc: Same. 963 * alloc_cpp.cc: Same. 964 * method-serial.cc: Same. 965 * config/generic/tls.cc: Same. 966 * config/posix/rwlock.h (gtm_rwlock): Same. 967 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming. 968 9692011-08-12 Torvald Riegel <triegel@redhat.com> 970 971 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking 972 implementation. 973 (gtm_rwlock::read_unlock): Same. 974 (gtm_rwlock::write_lock_generic): New. Generalized from ... 975 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these. 976 * libitm_i.h (GTM::gtm_transaction): Added shared_state. 977 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and 978 w_upgrade. Replaced by per-transaction flags (in shared_state). 979 Added c_confirmed_writers. 980 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock, 981 GTM::gtm_rwlock::write_upgrade): Add tx parameter. 982 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same. 983 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same. 984 * beginend.cc (GTM::gtm_transaction::begin_transaction, 985 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same. 986 * libitm.texi: Document locking conventions and implementations in 987 libitm. 988 9892011-08-12 Torvald Riegel <triegel@redhat.com> 990 991 * libitm_i.h (next_tx): Add list of all threads' transaction. 992 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register 993 transaction with list of transactions and ... 994 (thread_exit_handler): ... deregister here. 995 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting. 996 * config/x86/target.h: Same. 997 9982011-08-12 Torvald Riegel <triegel@redhat.com> 999 1000 * testsuite/libitm.c++/static_ctor.C: New file. 1001 10022011-08-12 Torvald Riegel <triegel@redhat.com> 1003 1004 * testsuite/libitm.c/reentrant.c: New file. 1005 10062011-08-12 Torvald Riegel <triegel@redhat.com> 1007 1008 * config/generic/tls.h: Remove the free list for transactions and ... 1009 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ... 1010 (GTM::gtm_transaction::operator delete): ... and release here. 1011 (thread_exit_handler): New. Delete tx when thread terminates. 1012 (thread_exit_init): New. 1013 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler. 1014 * testsuite/libitm.c/txrelease.c: New file. 1015 10162011-08-12 Torvald Riegel <triegel@redhat.com> 1017 1018 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary. 1019 * testsuite/libitm.c/notx.c: New file. 1020 10212011-08-12 Torvald Riegel <triegel@redhat.com> 1022 1023 * config/generic/tls.h (gtm_thread): Move local_tid from here ... 1024 * libitm_i.h (local_tid): ... to here. 1025 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same. 1026 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary. 1027 10282011-08-12 Torvald Riegel <triegel@redhat.com> 1029 1030 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use 1031 serialirr_onwrite_dispatch as new default for now. 1032 * method-serial.cc (serialirr_onwrite_dispatch): New. 1033 (GTM::dispatch_serialirr_onwrite): New. 1034 * libitm_i.h: Same. 1035 10362011-08-12 Torvald Riegel <triegel@redhat.com> 1037 1038 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well. 1039 * query.cc (_ITM_getTransactionId): There is no active transaction if 1040 the current nesting level is zero. 1041 10422011-07-28 Torvald Riegel <triegel@redhat.com> 1043 1044 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level 1045 rollback. 1046 10472011-07-28 Torvald Riegel <triegel@redhat.com> 1048 1049 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get 1050 transaction properties from the caller instead of from the 1051 transaction object. 1052 * libitm_i.h: Same. 1053 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same. 1054 10552011-07-28 Torvald Riegel <triegel@redhat.com> 1056 1057 * local.cc (gtm_transaction::rollback_local): Support closed nesting. 1058 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same. 1059 * dispatch.h: Same. 1060 * method-serial.cc: Same. 1061 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to 1062 flat nesting as default, and closed nesting on demand. 1063 (GTM::gtm_transaction::rollback): Same. 1064 (_ITM_abortTransaction): Same. 1065 (GTM::gtm_transaction::restart): Same. 1066 (GTM::gtm_transaction::trycommit): Same. 1067 (GTM::gtm_transaction::trycommit_and_finalize): Removed. 1068 (choose_code_path): New. 1069 (GTM::gtm_transaction_cp::save): New. 1070 (GTM::gtm_transaction_cp::commit): New. 1071 * query.cc (_ITM_inTransaction): Support flat nesting. 1072 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting. 1073 (GTM::gtm_transaction): Support flat and closed nesting. 1074 * alloc.cc (commit_allocations_2): New. 1075 (commit_cb_data): New helper struct. 1076 (GTM::gtm_transaction::commit_allocations): Handle nested 1077 commits/rollbacks. 1078 * libitm.texi: Update user action section, add description of nesting. 1079 10802011-07-28 Torvald Riegel <triegel@redhat.com> 1081 1082 * libitm_i.h: Add closed nesting as restart reason. 1083 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same. 1084 10852011-07-28 Torvald Riegel <triegel@redhat.com> 1086 1087 * useraction.cc: Use vector instead of list to store actions. 1088 Also support partial rollbacks for closed nesting. 1089 * libitm_i.h (GTM::gtm_transaction::user_action): Same. 1090 * beginend.cc: Same. 1091 10922011-07-28 Torvald Riegel <triegel@redhat.com> 1093 1094 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and 1095 closed_nesting flags, as well as a closed nesting alternative. 1096 * method-serial.cc: Same. 1097 (serial_dispatch): Renamed to serialirr_dispatch. 1098 (GTM::dispatch_serialirr): Same. 1099 (serial_dispatch_ul): Renamed to serial_dispatch. 1100 (GTM::dispatch_serial): Same. 1101 11022011-07-28 Torvald Riegel <triegel@redhat.com> 1103 1104 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value. 1105 11062011-07-28 Torvald Riegel <triegel@redhat.com> 1107 1108 * aatree.h (aa_tree::remove): New. 1109 (aa_tree::operator new): Add placement new. 1110 11112011-07-02 Torvald Riegel <triegel@redhat.com> 1112 1113 * containers.h: New file. 1114 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag. 1115 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ... 1116 * common.h: ... to here. 1117 (local_undo): Use GTM::vector for gtm_transaction::local_undo. 1118 * local.cc: Same. 1119 11202011-06-30 Torvald Riegel <triegel@redhat.com> 1121 1122 * libitm_i.h (STATE_ABORTING): Remove. 1123 * beginend.cc (_ITM_abortTransaction): Same. 1124 (GTM::gtm_transaction::trycommit_and_finalize): Same. 1125 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove. 1126 (_ITM_rollbackTransaction): Remove. 1127 * beginend.cc: Same. 1128 * libitm.map: Same. 1129 * libitm.texi: Document these ABI changes. 1130 11312011-06-30 Torvald Riegel <triegel@redhat.com> 1132 1133 * libitm.texi: New file. 1134 * Makefile.am: Add libitm.texi. 1135 * Makefile.in: Rebuild. 1136 11372011-06-30 Torvald Riegel <triegel@redhat.com> 1138 1139 * libitm_i.h: Move parts to common.h and dispatch.h. 1140 * common.h: New file. 1141 * dispatch.h: New file, new dispatch class. 1142 Rename GTM::abi_dispatch::lock_type to ls_modifier. 1143 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL. 1144 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode 1145 decision to retry.cc. 1146 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode 1147 only. 1148 (GTM::gtm_transaction::decide_begin_dispatch): Same. 1149 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo 1150 logging. 1151 * barrier.cc: Use new barriers definitions. 1152 (abi_dispatch::memmove_overlap_check): New. 1153 * config/x86/x86_sse.cc: Same. 1154 * config/x86/x86_avx.cc: Same. 1155 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and 1156 memcpy.cc. 1157 * Makefile.in: Rebuild. 1158 * method-readonly.cc: Remove. 1159 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier. 1160 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL. 1161 11622011-06-30 Torvald Riegel <triegel@redhat.com> 1163 1164 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore. 1165 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail. 1166 * testsuite/libitm.c/dropref-2.c: Same. 1167 * testsuite/libitm.c/dropref.c: Same. 1168 11692011-06-30 Torvald Riegel <triegel@redhat.com> 1170 1171 * config/generic/tls.h (gtm_disp): Rename to abi_disp. 1172 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp. 1173 * libitm_i.h: Rename gtm_dispatch to abi_dispatch. 1174 * alloc_c.cc: Same. 1175 * barrier.tpl: Same. 1176 * beginend.c: Same. 1177 * config/generic/tls.h: Same. 1178 * config/x86/tls.h: Same. 1179 * libitm_i.h: Same. 1180 * memcpy.cc: Same. 1181 * memset.cc: Same. 1182 * method-readonly.cc: Same. 1183 * method-serial.cc: Same. 1184 * method-wbetl.cc: Same. 1185 * retry.cc: Same. 1186 11872011-03-03 Richard Henderson <rth@redhat.com> 1188 1189 * config/posix/rwlock.cc (write_upgrade): Add missing case. 1190 From Patrik Marlier <patrick.marlier@unine.ch>. 1191 11922011-02-03 Richard Henderson <rth@redhat.com> 1193 1194 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New. 1195 * configure.ac: Use it. 1196 * configure, config.h.in: Rebuild. 1197 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name. 1198 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX, 1199 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise. 1200 * libitm.map: Use wildcards to match size_t mangling. 1201 12022010-12-14 Richard Henderson <rth@redhat.com> 1203 1204 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate 1205 blocks of TIDs per thread. 1206 * config/generic/tls.h (struct gtm_thread): Add local_tid member. 1207 (setup_gtm_thr): Return the thread structure. 1208 * config/x86/tls.h (setup_gtm_thr): Likewise. 1209 12102010-12-14 Richard Henderson <rth@redhat.com> 1211 1212 * clone.cc (table_lock): Remove. 1213 (find_clone): Don't take it. 1214 (ExcludeTransaction): New helper class. 1215 (_ITM_registerTMCloneTable): Use it. 1216 (_ITM_deregisterTMCloneTable): Likewise. 1217 12182010-12-14 Richard Henderson <rth@redhat.com> 1219 1220 * config/x86/tls.h: New file. 1221 12222010-07-15 Richard Henderson <rth@redhat.com> 1223 1224 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables. 1225 * Makefile.in: Rebuild. 1226 12272010-07-13 Aldy Hernandez <aldyh@redhat.com> 1228 1229 * method-wbetl.cc (trydropreference): Fix source line. 1230 12312010-07-13 Aldy Hernandez <aldyh@redhat.com> 1232 1233 * libitm.h: Add comment. 1234 * libitm_i.h (begin_transaction): Add ITM_REGPARM. 1235 12362010-07-07 Aldy Hernandez <aldyh@redhat.com> 1237 1238 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS. 1239 * beginend.cc (begin_transaction): If 64-bit sync builtins are not 1240 available, use pthread mutexes. 1241 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New. 1242 * config.h.in: Regenerate. 1243 * configure: Regenerate. 1244 12452010-07-06 Aldy Hernandez <aldyh@redhat.com> 1246 1247 * libitm.h (ITM_PURE): Define. 1248 Declare _ITM_malloc, _ITM_calloc, and _ITM_free. 1249 12502010-06-28 Aldy Hernandez <aldyh@redhat.com> 1251 1252 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference. 1253 (validate): Add comment. 1254 (trydropreference): New. 1255 * method-readonly.cc (class readonly_dispatch): Add 1256 trydropreference. 1257 * alloc_c.cc (_ITM_dropReferences): Remove const attribute. 1258 Call trydropreference(). 1259 * libitm.h (_ITM_dropReferences): Remove const attribute. 1260 * method-serial.cc (class serial_dispatch): Add trydropreference. 1261 * libitm_i.h (struct gtm_dispatch): Add trydropreference. 1262 12632010-06-28 Aldy Hernandez <aldyh@redhat.com> 1264 1265 * memcpy.cc (do_memcpy): Comment. 1266 12672010-06-25 Aldy Hernandez <aldyh@redhat.com> 1268 1269 * barrier.tpl: Add comments throughout. 1270 12712010-06-24 Aldy Hernandez <aldyh@redhat.com> 1272 1273 * method-wbetl.cc (struct w_entry): Add comments. 1274 (trycommit): Same. 1275 (rollback): Same. 1276 12772010-06-24 Aldy Hernandez <aldyh@redhat.com> 1278 1279 * alloc_c.cc (_ITM_dropReferences): New. 1280 * libitm.map (_ITM_dropReferences): Add. 1281 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute. 1282 * libitm_i.h (struct gtm_transaction): Declare 1283 drop_references_allocations and drop_references_local. 1284 * local.cc (rollback_local): Ignore memory when applicable. 1285 (drop_references_local): New. 1286 12872010-06-23 Richard Henderson <rth@redhat.com> 1288 1289 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc, 1290 memset.cc, method-serial.cc: Revert the 2010-06-16 change. 1291 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*. 1292 * config/alpha/target.h: Likewise. 1293 * config/generic/tls.cc (gtm_mask_stack): Use it. 1294 12952010-06-23 Richard Henderson <rth@redhat.com> 1296 1297 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use 1298 a mutex instead of trying a lock-free compare-and-swap on the list. 1299 (gtm_cacheline_page::operator delete): Likewise. 1300 13012010-06-16 Richard Henderson <rth@redhat.com> 1302 1303 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes 1304 that overlap the libitm stack. 1305 * barrier.tpl: Mark incoming stack. 1306 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction, 1307 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise. 1308 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise. 1309 * memcpy.cc, memset.cc: Likewise. 1310 * method-serial.cc (_ITM_changeTransactionMode): Likewise. 1311 * config/generic/tls.h (gtm_thread): Add stack_top member. 1312 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New. 1313 * libitm_i.h (gtm_mask_stack): Declare. 1314 * config/generic/tls.cc: New file. 1315 * Makefile.am (libitm_la_SOURCES): Add it. 1316 (AM_CXXFLAGS): Turn off exceptions. 1317 * Makefile.in: Rebuild. 1318 13192010-06-16 Richard Henderson <rth@redhat.com> 1320 1321 * alloc.cc (struct gtm_alloc_action): Move definition ... 1322 * libitm_i.h: ... here. 1323 (class gtm_transaction): Declare new and delete. 1324 * beginend.cc (alloc_tx): Reformulate as operator new. 1325 (free_tx): Reformulate as operator delete. 1326 * config/generic/tls.h (gtm_thread): Change free_tx member to void *. 1327 13282010-06-11 Richard Henderson <rth@redhat.com> 1329 1330 * clone.cc (clone_entry_compare): Fix typo. 1331 From Patrik Marlier <patrick.marlier@unine.ch>. 1332 13332010-05-13 Richard Henderson <rth@redhat.com> 1334 1335 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions 1336 in extern "C". 1337 13382010-05-07 Aldy Hernandez <aldyh@redhat.com> 1339 1340 * libitm_i.h (struct gtm_transaction): Remove 1341 get_allocation_size. 1342 (record_allocation): Remove size parameter. 1343 * libitm.map (_ITM_realloc): Remove. 1344 * alloc_c.cc (_ITM_realloc): Remove. 1345 (_ITM_malloc): Remove size argument to record_allocation. 1346 (_ITM_calloc): Same. 1347 * alloc_cpp.cc (_ZGTtnwm): Same. 1348 (_ZGTtnwmRKSt9nothrow_t): Same. 1349 (_ZGTtnam): Same. 1350 (_ZGTtnamRKSt9nothrow_t): Same. 1351 * alloc.cc (struct gtm_alloc_action): Remove size. 1352 (get_allocation_size): Remove. 1353 (commit_allocations): Add comment. 1354 (record_allocation): Remove size parameter. 1355 (forget_allocation): Remove set of size. 1356 13572010-04-19 Aldy Hernandez <aldyh@redhat.com> 1358 1359 * Makefile.am (abi_version): New. 1360 (AM_CXXFLAGS): Pass abi_version. 1361 * Makefile.in: Regenerate. 1362 * config/x86/unaligned.h: Remove always_inline kludge for vectors. 1363 13642010-04-06 Aldy Hernandez <aldyh@redhat.com> 1365 1366 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from 1367 _ITM_getTMCloneOrIrrevokable. 1368 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same. 1369 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same. 1370 13712010-03-26 Aldy Hernandez <aldyh@redhat.com> 1372 1373 * configure.ac: Remove Linux futex support. 1374 * configure.tgt (config_path): Same. 1375 * Makefile.am: Same. 1376 * config/linux: Remove entire directory. 1377 * configure: Rebuild. 1378 * Makefile.in: Rebuild. 1379 * testsuite/Makefile.in: Rebuild. 1380 13812010-03-09 Aldy Hernandez <aldyh@redhat.com> 1382 1383 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when 1384 switching to serial mode. 1385 * beginend.cc (trycommit_and_finalize): Unlock serial_lock. 1386 13872010-03-03 Aldy Hernandez <aldyh@redhat.com> 1388 1389 * configure.tgt: Add emacs -*- tags. 1390 * barrier.tpl: Same. 1391 13922010-02-23 Aldy Hernandez <aldyh@redhat.com> 1393 1394 * Makefile.am: Rename serial.cc to method-serial.cc. 1395 * Makefile.in: Regenerate with automake 1.11.1. 1396 * testsuite/Makefile.in: Same. 1397 * aclocal.m4: Regenerate with aclocal 1.11.1. 1398 * method-serial.cc: Rename from serial.cc. 1399 * libitm_i.h (struct gtm_transaction): Update comment on 1400 serialirr_mode. 1401 14022010-02-22 Aldy Hernandez <aldyh@redhat.com> 1403 1404 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM. 1405 * config/linux/rwlock.h (class gtm_rwlock): Add comments. 1406 14072010-02-11 Aldy Hernandez <aldyh@redhat.com> 1408 1409 * configure: Rebuild. 1410 14112009-11-12 Richard Henderson <rth@redhat.com> 1412 1413 * Rewrite everything in C++. 1414 14152009-11-03 Richard Henderson <rth@redhat.com> 1416 1417 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files. 1418 * Makefile.am (libitm_la_SOURCES): Add them. 1419 * configure.ac (ARCH_X86): New conditional. 1420 * Makefile.in, configure: Rebuild. 1421 * configure.tgt: Set up ARCH; do cflags setup at the same time. 1422 Move futex setup into "other system configury" case. 1423 * local.c (rollback_local): Merge into ... 1424 (GTM_rollback_local): ... here. 1425 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here. 1426 (_ITM_LB): Define as an alias to GTM_LB. 1427 14282009-11-03 Richard Henderson <rth@redhat.com> 1429 1430 * method-readonly.c: New file. 1431 * Makefile.am (libitm_la_SOURCES): Add it. 1432 * Makefile.in: Rebuild. 1433 * beginend.c (gtm_stmlock_array, gtm_clock): New. 1434 (GTM_begin_transaction): Use dispatch_readonly for read-only txn. 1435 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c. 1436 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p, 1437 gtm_stmlock_set_owned, gtm_stmlock_get_addr, 1438 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE, 1439 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY, 1440 gtm_get_clock, gtm_inc_clock): New. 1441 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX, 1442 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP, 1443 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK, 1444 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and 1445 replace uses with new libitm_i.h symbols. 1446 (dispatch_wbetl): Rename from wbetl_dispatch. 1447 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move 1448 away from dispatch_readonly; abort if the beginTransaction call 1449 asserted that the transaction was readonly. 1450 14512009-11-03 Richard Henderson <rth@redhat.com> 1452 1453 * memset.c: New file. 1454 * Makefile.am (libitm_la_SOURCES): Add it. 1455 * Makefile.in: Rebuild. 1456 * testsuite/libitm.c/memset-1.c: New. 1457 14582009-11-03 Richard Henderson <rth@redhat.com> 1459 1460 * dispatch.c: Remove file. 1461 * useraction.c (struct gtm_user_action): Move from libitm.h. 1462 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New. 1463 (serial_memset, serial_memmove, serial_memcpy): Remove. 1464 (serial_W*, serial_R*): Remove. 1465 (serial_dispatch): Update to match. 1466 * configure.ac: Move Werror down below configure checks. Don't 1467 check for sys/loadavg.h, do check for malloc.h. Don't check for 1468 getloadavg and clock_gettime; do check for memalign, posix_memalign. 1469 Use GCC_AC_FUNC_MMAP_BLACKLIST 1470 * libitm.h: Split out all internal items to... 1471 * libitm_i.h: ... here. New file. 1472 * copymask.c: New file. 1473 * local.c (struct gtm_local_undo): Move from libitm.h. 1474 (GTM_alloc_local): Rename from alloc_local; export. 1475 * memcpy.c: New file. 1476 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly. 1477 * config/posix/page.c: New file. 1478 * config/posix/target_tls.h: Remove file. 1479 * barrier.c: New file. 1480 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c, 1481 copymask.c, page.c. 1482 * alloc.c (struct gtm_alloc_action): Move from libitm.h. 1483 * method-wbetl.c: Rewrite for new cacheline methods. 1484 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild. 1485 1486 * config/alpha/sjlj.S: Fix typo. 1487 * config/alpha/target_i.h: Copy functions from alpha/target.h. 1488 * config/alpha/copymask.c: New file. 1489 * config/alpha/target.h (CACHELINE_SIZE): New. 1490 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New. 1491 1492 * config/x86/target_i.h: Copy functions from x86/target.h. 1493 * config/x86/copymask.c: New file. 1494 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove. 1495 (CACHELINE_SIZE, STRICT_ALIGNMENT): New. 1496 (PAGE_SIZE, FIXED_PAGE_SIZE): New. 1497 * config/x86/target_tls.h: Move contents to target_i.h. 1498 1499 * testsuite/libitm.c/clone-1.c: Include libitm.h. 1500 * testsuite/libitm.c/memcpy-1.c: New. 1501 15022009-10-22 Richard Henderson <rth@redhat.com> 1503 1504 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove. 1505 (AM_CCASFLAGS): New. 1506 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for 1507 saving/restoring _AC_ARG_VAR_PRECIOUS. 1508 * Makefile.in, aclocal.m4, config.h.in, configure, 1509 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64. 1510 15112009-10-22 Richard Henderson <rth@redhat.com> 1512 1513 * testsuite/*: Update for new compiler syntax. 1514 15152009-10-21 Richard Henderson <rth@redhat.com> 1516 1517 * libitm.h (_ITM_abortReason): Add outerAbort. 1518 15192009-08-03 Richard Henderson <rth@redhat.com> 1520 1521 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception, 1522 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export. 1523 * method-wbetl.c (struct w_entry): Remove mask. 1524 (wbetl_write, wbetl_load): Return pointer to word containing the data; 1525 adjust all callers. 1526 15272009-07-22 Richard Henderson <rth@redhat.com> 1528 1529 * eh_cpp.c: New file. 1530 * Makefile.am (libitm_la_SOURCES): Add it. 1531 * Makefile.in: Rebuild. 1532 * beginend.c (GTM_rollback_transaction): Undo exception state. 1533 (GTM_trycommit_transaction): Mark inline. 1534 (GTM_trycommit_and_finalize_transaction): Split out from ... 1535 (_ITM_commitTransaction): ... here. 1536 (_ITM_commitTransactionEH): New function. 1537 * libitm.h (struct gtm_transaction): Add cxa_catch_count, 1538 cxa_unthrown, eh_in_flight; reorder. 1539 1540 * testsuite/libitm.c++/c++.exp: New. 1541 * testsuite/libitm.c++/eh-1.C: New. 1542 1543 * aatree.c (aa_free): Remove REGPARM. 1544 * aatree.h: Remove all REGPARM. 1545 15462009-07-18 Richard Henderson <rth@redhat.com> 1547 1548 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files. 1549 * Makefile.am (libitm_la_SOURCES): Add them. 1550 * Makefile.in: Rebuild. 1551 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations. 1552 (GTM_trycommit_transaction): Likewise. 1553 * libitm.h: Include aatree.h 1554 (struct gtm_alloc_action): New. 1555 (struct gtm_transaction): Add alloc_actions. 1556 (GTM_record_allocation, GTM_forget_allocation): Declare. 1557 (GTM_get_allocation_size, GTM_commit_allocations): Declare. 1558 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free, 1559 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t, 1560 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t, 1561 _ZGTtdaPvRKSt9nothrow_t): Export. 1562 15632009-07-18 Richard Henderson <rth@redhat.com> 1564 1565 * target_tls.h: Move ... 1566 * config/posix/target_tls.h: ... here. 1567 15682009-07-07 Richard Henderson <rth@redhat.com> 1569 1570 * config/x86/target.h (atomic_write_barrier): Use sfence if available. 1571 15722009-07-07 Richard Henderson <rth@redhat.com> 1573 1574 * Update to GPL3. 1575 15762009-07-07 Richard Henderson <rth@redhat.com> 1577 1578 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t. 1579 * beginend.c (global_tid): Widen to _ITM_transactionId_t. 1580 1581 * configure.tgt: Don't use -ftls-model for x86 linux. 1582 * libitm.h: Include target.h after standard includes. 1583 (_gtm_thr): Rename from gtm_thr. 1584 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New. 1585 (gtm_disp, set_gtm_disp): New. 1586 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c, 1587 retry.c, serial.c, useraction.c: Use accessor functions throughout. 1588 * config/alpha/target_tls.h, config/x86/target_tls.h: New files. 1589 15902009-07-07 Richard Henderson <rth@redhat.com> 1591 1592 * config/linux/rwlock.c (EZ): New define. Use it throughout. 1593 15942009-07-06 Richard Henderson <rth@redhat.com> 1595 1596 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove. 1597 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove. 1598 (_ITM_beginTransaction): Take variadic arguments. 1599 (_ITM_registerThrownObject): Declare. 1600 * beginend.c, serial.c: Update. 1601 * libitm.map: Add _ITM_registerThrownObject. 1602 16032009-01-28 Richard Henderson <rth@redhat.com> 1604 1605 * Makefile.am (libitm_la_SOURCES): Add clone.c. 1606 * Makefile.in: Rebuild. 1607 * beginend.c (_ITM_abortTransaction): Abort if irrevokable. 1608 (GTM_restart_transaction): Fix uninstrumented code check. 1609 * retry.c (GTM_decide_retry_strategy): Add serial check. 1610 * serial.c (GTM_serialmode): Add irrevokable variable. Don't 1611 automatically go irrevokable when in serial mode. 1612 * clone.c: New file. 1613 * libitm.h, libitm.map: Update. 1614 16152009-01-27 Richard Henderson <rth@redhat.com> 1616 1617 * Makefile.am (LTCCASCOMPILE): Define. 1618 (libitm_la_SOURCES): Add methid-wbetl.c. 1619 * testsuite/Makefile.am: New 1620 * configure.ac: Add testsuite/Makefile. 1621 * Makefile.in, testsuite/Makefile.in, configure: Regenerate. 1622 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch. 1623 (_ITM_abortTransaction): Finalize implementation method; pass 1624 transaction properties to longjmp. 1625 (GTM_restart_transaction): Split out from ... 1626 (_ITM_commitTransaction): ... here. 1627 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier): 1628 Move to config/x86/target.h. 1629 * config/linux/alpha/futex_bits.h: New. 1630 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register. 1631 * config/x86/target.h: Disable target types for 32-bit. 1632 * config/alpha/sjlj.S, config/alpha/target.h: New. 1633 * libitm.h (struct gtm_dispatch): Add init, fini. 1634 (enum restart_reason): New. 1635 (struct gtm_transaction): Add method and restarts. 1636 * retry.c (GTM_decide_retry_strategy): Implement. 1637 * serial.c (serial_init, serial_fini): New. 1638 (GTM_serialmode): Finialize outgoing method. 1639 * method-wbetl.c: New. 1640 16412008-12-09 Richard Henderson <rth@redhat.com> 1642 1643 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New. 1644 * configure.tgt (i386-*, x86_64-*): Don't force SSE. 1645 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR. 1646 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default. 1647 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header. 1648 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES. 1649 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR. 1650 * serial.c (serial_R##T, serial_W##T): Likewise. 1651 16522008-11-21 Richard Henderson <rth@redhat.com> 1653 1654 * Initial commit. 1655