gcc.c (process_command): Update copyright notice dates.
[gcc.git] / libitm / ChangeLog
1 2016-01-04 Jakub Jelinek <jakub@redhat.com>
2
3 * libitm.texi: Bump @copying's copyright year.
4
5 2015-11-26 Torvald Riegel <triegel@redhat.com>
6
7 * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
8 (ml_wt_dispatch::pre_write): Adapt.
9 (ml_wt_dispatch::pre_load): Likewise.
10
11 2015-11-22 Torvald Riegel <triegel@redhat.com>
12
13 * libitm_i.h (gtm_alloc_action): Remove union.
14 * testsuite/libitm.c/alloc-1.c: New.
15
16 2015-11-19 Torvald Riegel <triegel@redhat.com>
17
18 * testsuite/libitm.c++/eh-5.C: New.
19 * libitm.h (_ITM_cxa_free_exception): New.
20 * libitm.map (_ITM_cxa_free_exception): Add it.
21 * libitm.texi: Update ABI docs.
22 * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
23 (gtm_transaction_cp::cxa_uncaught_count): Add.
24 (gtm_thread::cxa_unthrown): Remove.
25 (gtm_thread::cxa_uncaught_count_ptr): Add.
26 (gtm_thread::cxa_uncaught_count): Add.
27 (gtm_thread::drop_references_allocations): Rename to...
28 (gtm_thread::discard_allocation): ... this and adapt.
29 (gtm_thread::init_cpp_exceptions): New.
30 * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
31 (gtm_thread::begin_transaction): Likewise.
32 (gtm_transaction_cp::save): Likewise.
33 (gtm_thread::trycommit): Likewise.
34 * eh_cpp.cc: Add overview comments.
35 (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
36 (free_any_exception, _ITM_cxa_free_exception): New.
37 (gtm_thread::init_cpp_exceptions): Define.
38 (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
39 (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
40 (gtm_thread::revert_cpp_exceptions): Likewise.
41
42 2015-11-09 Torvald Riegel <triegel@redhat.com>
43
44 * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
45 _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
46 * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
47 * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
48 (gtm_thread::forget_allocations): New overload with size_t argument.
49 * alloc.c (gtm_thread::forget_allocation): Define new overload and
50 adapt existing one.
51 (gtm_thread::record_allocation): Adapt.
52 (gtm_thread::commit_allocations_1): Adapt.
53 (gtm_thread::commit_allocations_2): Adapt.
54 * testsuite/libitm.c++/newdelete.C: New.
55
56 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
57 Joseph Myers <joseph@codesourcery.com>
58 Mark Shinwell <shinwell@codesourcery.com>
59 Andrew Stubbs <ams@codesourcery.com>
60 Rich Felker <dalias@libc.org>
61
62 * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
63 GTM_begin_transaction for compatibility with FDPIC.
64
65 2015-10-09 David Malcolm <dmalcolm@redhat.com>
66
67 * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
68 using load_gcc_lib.
69
70 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
71
72 PR libitm/61164
73 * local_atomic (__always_inline): Rename to...
74 (__libitm_always_inline): ... this.
75
76 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
77
78 PR target/52482
79 * config/powerpc/sjlj.S: Port to Xcode 2.5.
80
81 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
82
83 * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
84 operands "op" and "val" to int.
85
86 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
87
88 * config/linux/sh/futex_bits.h (sys_futex0) Change operands
89 "op" and "val" to int.
90
91 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
92
93 * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
94 "op" and "val" to int.
95
96 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
97
98 * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
99 Declare as static int.
100 (FUTEX_PRIVATE_FLAG): Remove L suffix.
101 * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
102
103 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
104
105 * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
106 sys_futex0 function.
107
108 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
109
110 * Makefile.in: Regenerated with automake-1.11.6.
111 * aclocal.m4: Likewise.
112 * configure: Likewise.
113 * testsuite/Makefile.in: Likewise.
114
115 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
116
117 * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
118 * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
119
120 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
121
122 PR libitm/64360
123 * libitm.c/stackundo.c (test2): Make it static.
124 (test1): Likewise.
125
126 2015-01-05 Jakub Jelinek <jakub@redhat.com>
127
128 Update copyright years.
129
130 2015-01-05 Jakub Jelinek <jakub@redhat.com>
131
132 * libitm.texi: Bump @copying's copyright year.
133
134 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
135
136 * testsuite/lib/libitm.exp: Load target-utils.exp.
137 Move load of target-supports.exp earlier.
138
139 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
140
141 * configure.tgt (x86_64): Tune -m32 multilib to generic.
142
143 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
144
145 PR bootstrap/63784
146 * configure: Regenerated.
147
148 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
149
150 PR target/63610
151 * configure: Regenerate.
152
153 2014-10-06 Marek Polacek <polacek@redhat.com>
154
155 * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
156 * testsuite/libitm.c/memset-1.c: Likewise.
157
158 2014-07-24 Richard Henderson <rth@redhat.com>
159
160 * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
161 addressing mode in epilogue.
162
163 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
164
165 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
166 -mclear-hwcap instead.
167 * configure: Regenerate.
168 * clearcap.map: Remove.
169
170 2014-05-21 John Marino <gnugcc@marino.st>
171
172 * configure.tgt (*-*-dragonfly*): New target.
173
174 2014-05-19 Richard Henderson <rth@redhat.com>
175
176 * config/aarch64/sjlj.S: New file.
177 * config/aarch64/target.h: New file.
178 * configure.tgt: Enable aarch64.
179
180 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
181
182 * config/generic/asmcfi.h: Also check for
183 __GCC_HAVE_DWARF2_CFI_ASM.
184
185 2013-04-02 Richard Henderson <rth@redhat.com>
186
187 * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
188 * config/arm/target.h, config/sh/target.h: Likewise.
189 * config/sparc/target.h, config/x86/target.h: Likewise.
190
191 2014-03-26 Jakub Jelinek <jakub@redhat.com>
192
193 * config/linux/futex_bits.h: Include errno.h.
194 (sys_futex0): If syscall returns -1, return -errno rather than
195 -1.
196
197 2014-03-26 Joseph Myers <joseph@codesourcery.com>
198
199 * libitm.texi (Index): Rename to Library Index.
200
201 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
202
203 PR libitm/53113
204 * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
205 (x86_avx.lo): Append -mavx to CXXFLAGS.
206 * Makefile.in: Regenerate.
207
208 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
209
210 Update copyright years
211
212 2014-01-02 Tobias Burnus <burnus@net-b.de>
213
214 * libitm.texi: Bump @copying's copyright year.
215
216 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
217
218 * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
219 (FUNC): Define ELFv2 variant.
220 (END): Likewise.
221 (HIDDEN): Likewise.
222 (CALL): Likewise.
223 (BASE): Likewise.
224 (LR_SAVE): Likewise.
225
226 2013-09-20 Alan Modra <amodra@gmail.com>
227
228 * configure: Regenerate.
229
230 2013-08-30 Torvald Riegel <triegel@redhat.com>
231
232 * config/posix/rwlock.cc: Fix initialization order.
233
234 2013-08-30 Torvald Riegel <triegel@redhat.com>
235
236 * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
237 (htm_fastpath): Assign an asm name.
238 * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
239 HTM fast paths.
240 (_ITM_actions): Likewise.
241 * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
242 x86_64.
243 * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
244 * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
245 field to the start of the structure.
246 * config/linux/rwlock.h (gtm_rwlock): Update comments.
247 * beginend.cc (gtm_thread::begin_transaction): Add retry policy
248 handling for custom HTM fast paths.
249
250 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
251 Revert:
252 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
253
254 * configure.tgt: Add -msoft-float to XCFLAGS.
255
256 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
257
258 * configure.tgt: Add -msoft-float to XCFLAGS.
259
260 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
261
262 * config/s390/target.h (htm_begin, htm_commit, htm_abort)
263 (htm_transaction_active): Enable zEC12 instructions in the
264 assembler.
265 * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
266
267 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
268
269 * acinclude.m4: Add htm asm check for s390.
270 * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
271 * configure: Regenerate.
272 * config/s390/target.h: Remove __HTM__ check.
273 (htm_available): Call getauxval to get hwcaps and check whether
274 HTM is available or not.
275
276 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
277
278 * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
279 * configure.ac: Use it.
280 (AC_CHECK_HEADERS): Check for sys/auxv.h.
281 (AC_CHECK_FUNCS): Check for getauxval.
282 * config.h.in, configure: Rebuild.
283 * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
284 * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
285 (USE_HTM_FASTPATH): Define.
286 (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
287 _HTM_RETRIES) New macros.
288 (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
289 htm_begin_success, htm_commit, htm_transaction_active): New functions.
290
291 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
292
293 * config/s390/target.h: Include htmintrin.h.
294 (_HTM_ITM_RETRIES): New macro definition.
295 (htm_available, htm_init, htm_begin, htm_begin_success)
296 (htm_commit, htm_abort, htm_abort_should_retry): New functions.
297
298 2013-06-20 Iain Sandoe <iain@codesourcery.com>
299 Cesar Philippidis <cesar@codesourcery.com>
300
301 * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
302 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
303 * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
304 * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
305
306 2013-06-20 Torvald Riegel <triegel@redhat.com>
307
308 * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
309 (_ITM_getTransactionId): Same.
310 * config/x86/target.h (htm_transaction_active): New.
311
312 2013-06-20 Torvald Riegel <triegel@redhat.com>
313
314 PR libitm/57643
315 * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
316 the HTM fastpath.
317
318 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
319
320 PR bootstrap/56714
321 * local_atomic (__always_inline): Always define our version.
322 (__calculate_memory_order): Mark inline.
323 (atomic_thread_fence): Ditto.
324 (atomic_signal_fence): Ditto.
325 (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
326 (atomic_bool::atomic_flag_clear_explicit): Ditto.
327 (atomic_bool::atomic_flag_test_and_set): Ditto.
328 (atomic_bool::atomic_flag_clear): Ditto.
329
330 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
331
332 * config/s390/sjlj.S: New file.
333 * config/s390/target.h: New file.
334 * configure.tgt: Set options for S/390.
335
336 2013-03-23 Andi Kleen <ak@linux.intel.com>
337
338 * local_atomic (__always_inline): Add.
339 (__calculate_memory_order, atomic_thread_fence,
340 atomic_signal_fence, test_and_set, clear, store, load,
341 exchange, compare_exchange_weak, compare_exchange_strong,
342 fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
343 Add __always_inline to force inlining.
344
345 2013-02-11 Iain Sandoe <iain@codesourcery.com>
346 Jack Howarth <howarth@bromo.med.uc.edu>
347 Patrick Marlier <patrick.marlier@gmail.com>
348
349 PR libitm/55693
350 * alloc_cpp.cc: Enable function declarations on darwin.
351 * eh_cpp.cc: Likewise.
352
353 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
354
355 Update copyright years.
356
357 2012-11-09 Torvald Riegel <triegel@redhat.com>
358
359 * beginend.cc (htm_fastpath): New.
360 (gtm_thread::begin_transaction, _ITM_commitTransaction,
361 _ITM_commitTransactionEH): Add HTM fastpath handling.
362 * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
363 * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
364 * config/x86/target.h (htm_available, htm_init, htm_begin_success,
365 htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
366 * configure.tgt: Add -mrtm to XCFLAGS.
367 * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
368 (gtm_thread::serialirr_mode): Add HTM fastpath handling.
369 * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
370 * retry.cc (parse_default_method): Add HTM method parsing.
371 (gtm_thread::number_of_threads_changed): Use HTM by default if
372 available.
373
374 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
375
376 * configure: Regenerate.
377
378 2012-10-31 Richard Henderson <rth@redhat.com>
379
380 * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
381 * configure.ac: Use it.
382 * config.h.in, configure: Rebuild.
383 * testsuite/Makefile.in: Rebuild.
384
385 2012-10-24 Torvald Riegel <triegel@redhat.com>
386
387 * libitm.texi: Clarify ABI requirements for data-logging functions.
388
389 2012-10-24 Torvald Riegel <triegel@redhat.com>
390
391 * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
392 it requires serial mode instead of assuming that for certain
393 dispatchs.
394 * dispatch.h (abi_dispatch::requires_serial): New.
395 (abi_dispatch::abi_dispatch): Adapt.
396 * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
397 * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
398 * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
399 serial_dispatch::serial_dispatch,
400 serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
401
402 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
403
404 * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
405 and ia32 declarations some more.
406 * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
407
408 2012-09-20 Jakub Jelinek <jakub@redhat.com>
409
410 PR other/43620
411 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
412 * configure: Regenerate.
413 * Makefile.in: Regenerate.
414
415 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
416
417 * configure: Regenerated.
418
419 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
420
421 * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
422
423 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
424
425 * eh_cpp.cc: Fix __cxa_end_catch declaration.
426
427 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
428
429 * configure: Regenerated.
430
431 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
432
433 PR libitm/52854
434 * config/x86/target.h (gtm_jmpbuf): Replace long with long long
435 for x86-64.
436
437 2012-04-03 Tristan Gingold <gingold@adacore.com>
438
439 * configure: Regenerate.
440
441 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
442
443 PR bootstrap/52812
444 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
445
446 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
447
448 * testsuite/lib/libitm.exp: load fortran-modules.exp
449
450 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
451
452 * configure.tgt (*-*-irix6*): Remove.
453
454 2012-03-13 Torvald Riegel <triegel@redhat.com>
455
456 PR libitm/52526
457 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
458 wake-up.
459
460 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
461
462 * configure.tgt (*-*-osf*): Remove.
463 * configure: Regenerate.
464
465 2012-03-05 Torvald Riegel <triegel@redhat.com>
466
467 * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
468 memtransfer/memset if size isn't larger than zero.
469
470 2012-03-02 Torvald Riegel <triegel@redhat.com>
471
472 * libitm.texi: Link to specification and add a usage example.
473
474 2012-02-24 Torvald Riegel <triegel@redhat.com>
475
476 * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
477 default dispatch for more than 1 thread to ml_wt.
478
479 2012-02-20 Torvald Riegel <triegel@redhat.com>
480
481 * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
482
483 2012-02-20 Torvald Riegel <triegel@redhat.com>
484
485 * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
486
487 2012-02-20 Torvald Riegel <triegel@redhat.com>
488
489 * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
490 serial mode corner cases made obsolete by prior gtm_rwlock changes.
491 (gl_wt_dispatch.rollback): Same.
492
493 2012-02-20 Torvald Riegel <triegel@redhat.com>
494
495 * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
496
497 2012-02-20 Torvald Riegel <triegel@redhat.com>
498
499 * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
500 for RfW src. Optimize number of calls to gtm_thr.
501
502 2012-02-20 Torvald Riegel <triegel@redhat.com>
503
504 * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
505 acquisition to ...
506 * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
507 (default_dispatch): Make atomic.
508 (GTM::gtm_thread::set_default_dispatch): Access atomically.
509 (GTM::gtm_thread::decide_retry_strategy): Access atomically and
510 use decide_begin_dispatch() if default_dispatch might have changed.
511 (GTM::gtm_thread::number_of_threads_changed): Initialize
512 default_dispatch here.
513
514 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
515 Patrick Marlier <patrick.marlier@gmail.com>
516
517 PR libitm/52220
518 * alloc_cpp.cc: No dummy definitions for darwin.
519 * eh_cpp.cc: Likewise.
520
521 2012-02-14 Richard Henderson <rth@redhat.com>
522
523 * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
524
525 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
526
527 * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
528
529 2012-02-14 Torvald Riegel <triegel@redhat.com>
530
531 * libitm_i.h (GTM::gtm_rwlog_entry): New.
532 (GTM::gtm_thread): Add read and write logs.
533 (GTM::dispatch_ml_wt): Declare.
534 * retry.cc (parse_default_method): Support ml_wt.
535 * method-ml.cc: New file.
536 * Makefile.am: Add method-ml.cc.
537 * Makefile.in: Regenerate.
538
539 2012-02-14 Torvald Riegel <triegel@redhat.com>
540
541 * dispatch.h (GTM::abi_dispatch::supports): New.
542 (GTM::method_group::reinit): New.
543 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
544 (GTM::gtm_thread::number_of_threads_changed): Check that the method
545 supports the current situation.
546
547 2012-02-14 Torvald Riegel <triegel@redhat.com>
548
549 * util.cc (GTM::xcalloc): New.
550 * common.h (GTM::xcalloc): Declare.
551
552 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
553
554 * config/sparc/target.h (cpu_relax): Read from CC register.
555 * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
556
557 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
558
559 * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
560
561 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
562
563 * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
564 * config/sparc/cacheline.h: New file.
565 * config/sparc/target.h: Likewise.
566 * config/sparc/sjlj.S: Likewise.
567 * config/linux/sparc/futex_bits.h: Likewise.
568
569 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
570
571 * configure.ac (link_itm): Fix comment.
572 * configure: Regenerate.
573 * testsuite/lib/libitm.exp: Do not pass -litm for the link.
574
575 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
576
577 PR libitm/51822
578 * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
579 Correct libgomp references.
580
581 2012-01-24 Torvald Riegel <triegel@redhat.com>
582
583 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
584 wake-up.
585
586 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
587
588 * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
589 end of structure.
590 * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
591 offset values. Do not copy return address. Decrement stack
592 by 56 bytes only.
593 (GTM_longjump) [__x86_64__]: Update offset values.
594
595 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
596
597 PR libitm/51830
598 * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
599 the first function argument to %eax.
600
601 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
602
603 * libitm.h (_ITM_getThreadnum): Remove.
604 * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
605
606 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
607
608 * clearcap.map: New file.
609 * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
610 * configure.ac: Call it.
611 Clear HWCAP_LDFLAGS if defaulting to -mavx.
612 * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
613 * configure: Regenerate.
614 * Makefile.in: Regenerate.
615 * testsuite/Makefile.in: Regenerate.
616
617 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
618
619 PR libitm/51173
620 * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
621 include, exclude options.
622
623 2012-01-14 Torvald Riegel <triegel@redhat.com>
624
625 * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
626 rolling back.
627 * containers.h (GTM::vector::set_size): New.
628
629 2012-01-14 Torvald Riegel <triegel@redhat.com>
630
631 PR libitm/51855
632 * config/generic/tls.h (GTM::mask_stack_top): New.
633 (GTM::mask_stack_bottom): Declare.
634 * config/generic/tls.c (GTM::mask_stack_bottom): New.
635 * local.cc (gtm_undolog::rollback): Filter out any updates that
636 overlap the libitm stack. Add current transaction as parameter.
637 * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
638 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
639 * testsuite/libitm.c/stackundo.c: New test.
640
641 2012-01-10 Richard Henderson <rth@redhat.com>
642
643 * libitm_i.h (_Unwind_DeleteException): Declare weak.
644 * eh_cpp.cc (_Unwind_DeleteException): Define for
645 !HAVE_ELF_STYLE_WEAKREF.
646
647 2012-01-08 Torvald Riegel <triegel@redhat.com>
648
649 * local.cc (GTM_LB): Use GTM::gtm_undolog.
650 (GTM::gtm_thread::drop_references_undolog): Remove.
651 (GTM::gtm_thread::commit_undolog,
652 GTM::gtm_thread::rollback_undolog): Move to ...
653 * libitm_i.h (GTM::gtm_undolog): ...here. New.
654 (GTM::gtm_undolog_entry): Remove.
655 (GTM::gtm_thread): Adapt.
656 * beginend.cc (GTM::gtm_thread::rollback): Adapt.
657 (GTM::gtm_thread::trycommit): Adapt.
658 * method-serial.cc (serial_dispatch::log): Adapt.
659 * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
660 (gl_wt_dispatch::store): Fix likely/unlikely.
661 * containers.h (GTM::vector::resize): Add additional_capacity
662 parameter and handle it.
663 (GTM::vector::resize_noinline): New/adapt.
664 (GTM::vector::push): New.
665
666 2012-01-06 Richard Henderson <rth@redhat.com>
667
668 * configure.tgt: Support powerpc-linux and powerpc-darwin.
669 * config/linux/powerpc/futex_bits.h: New file.
670 * config/powerpc/cacheline.h: New file.
671 * config/powerpc/sjlj.S: New file.
672 * config/powerpc/target.h: New file.
673 * config/generic/asmcfi.h (cfi_offset): New.
674 (cfi_restore, cfi_undefined): New.
675
676 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
677
678 PR other/51171
679 * testsuite/libitm.c/reentrant.c: Remove xfail.
680 (thread): Pass x to pure().
681 From Patrik Marlier <patrick.marlier@gmail.com>.
682
683 2011-12-24 Torvald Riegel <triegel@redhat.com>
684
685 * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
686 privatization safety if already in serial mode.
687
688 2011-12-24 Torvald Riegel <triegel@redhat.com>
689
690 * beginend.cc (GTM::gtm_thread::restart): Add and handle
691 finish_serial_upgrade parameter.
692 * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
693 * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
694 Don't unset reader flag.
695 (GTM::gtm_rwlock::write_upgrade_finish): New.
696 * config/posix/rwlock.cc: Same.
697 * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
698 Declare.
699 * config/posix/rwlock.h: Same.
700 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
701 flag after commit or after rollback when restarting.
702
703 2011-12-24 Torvald Riegel <triegel@redhat.com>
704
705 * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
706 (GTM::gtm_thread::try_commit): Changed memory order.
707 * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
708 as parameter.
709 * config/linux/x86/futex_bits.h (sys_futex0): Same.
710 * config/linux/sh/futex_bits.h (sys_futex0): Same.
711 * config/linux/futex_bits.h (sys_futex0): Same.
712 * config/linux/futex.cc (futex_wait, futex_wake): Same.
713 * config/linux/futex.h (futex_wait, futex_wake): Same.
714 * config/linux/rwlock.h (gtm_rwlock::writers,
715 gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
716 ints.
717 * config/linux/rwlock.cc (gtm_rwlock::read_lock,
718 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
719 gtm_rwlock::write_unlock): Fix memory orders and fences.
720 * config/posix/rwlock.cc (gtm_rwlock::read_lock,
721 gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
722 gtm_rwlock::write_unlock): Same.
723 * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
724 * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
725 gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
726 Add comments.
727 (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
728 gl_wt_dispatch::load, gl_wt_dispatch::store,
729 gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
730 orders and fences. Add comments.
731
732 2011-12-21 Jakub Jelinek <jakub@redhat.com>
733
734 * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
735 * Makefile.in: Regenerated.
736
737 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
738
739 * configure.tgt: Add sh* case.
740 * config/sh/target.h: New file.
741 * config/sh/sjlj.S: New file.
742 * config/linux/sh/futex_bits.h: New file.
743
744 2011-12-14 Richard Henderson <rth@redhat.com>
745
746 * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
747 * config/arm/sjlj.S, config/arm/target.h: New files.
748 * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
749 (cfi_rel_offset): New.
750 * config/linux/futex_bits.h: New file.
751 * config/linux/futex.cc: Include futex_bits.h here...
752 * config/linux/futex.h: ... not here.
753 * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
754 * configure.ac (ARCH_AM): New conditional.
755 * Makefile.in, configure: Rebuild.
756 * configure.tgt: Handle ARM.
757
758 2011-12-13 Richard Henderson <rth@redhat.com>
759
760 * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
761 signed/unsigned comparison werror.
762
763 * local_atomic: New file.
764 * libitm_i.h: Include it.
765 (gtm_thread::shared_state): Use atomic template.
766 * beginend.cc (GTM::gtm_clock): Use atomic template.
767 (global_tid): Use atomic template if 64-bit atomics available.
768 (gtm_thread::gtm_thread): Update shared_state access.
769 (gtm_thread::trycommit): Likewise.
770 (choose_code_path): Update global_tid access.
771 * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
772 * stmlock.h (GTM::gtm_clock): Use atomic template.
773 (gtm_get_clock, gtm_inc_clock): Update accesses.
774 * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
775 redundant __sync_synchronize after atomic shared_state access.
776 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
777 (gtm_rwlock::write_lock_generic): Likewise.
778 (gtm_rwlock::read_unlock): Likewise.
779 * config/alpha/target.h (atomic_read_barrier): Remove.
780 (atomic_write_barrier): Remove.
781 * config/x86/target.h (atomic_read_barrier): Remove.
782 (atomic_write_barrier): Remove.
783
784 2011-11-30 Richard Henderson <rth@redhat.com>
785
786 * libitm_i.h (GTM_longjmp): Swap first and second arguments.
787 * beginend.c (_ITM_abortTransaction): Update to match.
788 (GTM::gtm_thread::restart): Likewise.
789 * config/alpha/sjlj.S (GTM_longjmp): Likewise.
790 * config/x86/sjlj.S (GTM_longjmp): Likewise.
791
792 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
793
794 * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
795 * Makefile.in: Regenerate.
796
797 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
798
799 * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
800 * alloc_cpp.cc: Generate dummy functions if we don't
801 HAVE_ELF_STYLE_WEAKREF.
802 * eh_cpp.cc: Likewise.
803 * configure: Regenerate.
804 * aclocal.m4: Likewise.
805 * config.h.in: Likewise.
806 * Makefile.in: Likewise.
807 * testsuite/Makefile.in: Likewise.
808
809 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
810
811 * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
812 __USER_LABEL_PREFIX__ for targets that use it.
813 (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
814 (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
815 in portability to non-elf targets.
816 (GTM_longjmp): Likewise.
817 * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
818 where required.
819
820 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
821
822 * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
823 * testsuite/libitm.c/memset-1.c: Likewise.
824
825 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
826
827 * configure: Regenerate.
828
829 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
830
831 * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
832 (LIBITM_ENABLE_SYMVERS): Handle sun style.
833 * Makefile.am: Handle sun style versioning.
834 (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
835 * configure: Regenerate.
836 * Makefile.in: Regenerate.
837
838 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
839
840 * config/generic/asmcfi.h: Fix comment.
841 * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
842 sequence without .hidden support, error for non-ELF targets.
843 (GTM_longjmp) [__ELF__]: Only use .hidden if
844 HAVE_ATTRIBUTE_VISIBILITY.
845
846 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
847
848 * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
849 _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
850 Dummy functions.
851 * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
852 __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
853
854 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
855
856 PR bootstrap/51098
857 * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
858 * configure: Regenerate.
859
860 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
861
862 * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
863
864 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
865
866 * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
867 .hidden.
868 (.note.GNU-stack): Only use if __linux__.
869 * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
870 * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
871 * testsuite/libitm.c/reentrant.c: Likewise.
872 * testsuite/libitm.c/simple-2.c: Likewise.
873 * testsuite/libitm.c/txrelease.c: Likewise.
874 * testsuite/libitm.c++/static_ctor.C: Likewise.
875
876 2011-11-10 Richard Henderson <rth@redhat.com>
877
878 * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
879 * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
880 * configure.ac (ARCH_X86_AVX): New conditional.
881 * Makefile.in, configure: Rebuild.
882
883 2011-11-09 Richard Henderson <rth@redhat.com>
884
885 * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
886 * configure.ac: Use it.
887 * config.h.in, configure: Rebuild.
888 * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
889
890 2011-11-09 Richard Henderson <rth@redhat.com>
891
892 * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
893 * config/alpha/unaligned.h: Remove file.
894 * config/generic/unaligned.h: Remove file.
895 * config/x86/unaligned.h: Remove file.
896 * config/generic/cachepage.h: Remove file.
897 * config/posix/cachepage.cc: Remove file.
898 * config/generic/cacheline.cc: Remove file.
899 * config/x86/cacheline.cc: Remove file.
900 * config/generic/cacheline.h (gtm_cacheline): Remove the
901 store_mask, copy_mask, copy_mask_wb methods.
902 * config/x86/cacheline.h: Likewise.
903 * config/alpha/cacheline.h: Fall back to generic after setting size.
904 * config/generic/tls.cc (gtm_mask_stack): Remove.
905 * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
906 (GTM_vpalignr_table): Remove.
907 * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
908 (GTM_pshift_table): Remove.
909 * config/libitm_i.h: Don't include cachepage.h.
910 * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
911 * Makefile.in, testsuite/Makefile.in: Rebuild.
912
913 2011-11-09 Richard Henderson <rth@redhat.com>
914
915 * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
916 to emit branch prediction hint.
917
918 * config/x86/sjlj.S: Protect elf directives with __ELF__.
919 Protect .note.GNU-stack with __linux__.
920
921 * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
922 * configure, aclocal.m4, config.h.in: Rebuild.
923 * config/generic/asmcfi.h: New file.
924 * config/x86/sjlj.S: Use it.
925
926 2011-11-08 Richard Henderson <rth@redhat.com>
927
928 * local.cc (_ITM_LB): Use a normal call, not a function alias.
929
930 2011-11-08 Richard Henderson <rth@redhat.com>
931
932 * configure.tgt: Test correct directory for supported cpus.
933
934 * configure.ac: Exit if unsupported.
935 * configure: Rebuild.
936 * configure.tgt: Delete boilerplate from libgomp for unsupported
937 targets. Set UNSUPPORTED for unsupported targets.
938
939 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
940
941 * configure.tgt: Handle i386 like i[456]86.
942 * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
943 take address.
944 * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
945 !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
946
947 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
948
949 * method-wbetl.cc: Update copyright notice.
950 * aatree.cc: Same.
951 * util.cc: Same.
952 * libitm.h: Same.
953 * memset.cc: Same.
954 * eh_cpp.cc: Same.
955 * barrier.tpl: Same.
956 * useraction.cc: Same.
957 * stmlock.h: Same.
958 * memcpy.cc: Same.
959 * common.h: Same.
960 * config/generic/tls.cc: Same.
961 * config/generic/cacheline.h: Same.
962 * config/generic/cachepage.h: Same.
963 * config/generic/cacheline.cc: Same.
964 * config/generic/unaligned.h: Same.
965 * config/x86/cacheline.h: Same.
966 * config/x86/cacheline.cc: Same.
967 * config/x86/unaligned.h: Same.
968 * config/alpha/cacheline.h: Same.
969 * config/alpha/unaligned.h: Same.
970 * config/alpha/sjlj.S: Same.
971 * config/posix/cachepage.cc: Same.
972 * config/linux/futex.h: Same.
973 * config/linux/alpha/futex_bits.h: Same.
974
975 2011-11-04 Torvald Riegel <triegel@redhat.com>
976
977 * libitm.texi: No cover text and invariant sections.
978
979 2011-11-03 Richard Henderson <rth@redhat.com>
980
981 * local_type_traits: New file.
982 * libitm_i.h: Use it. Use C headers, not C++ wrappers.
983
984 2011-11-03 Richard Henderson <rth@redhat.com>
985
986 * configure.ac: Don't test for gfortran.
987 * configure: Rebuild.
988
989 * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
990 * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
991
992 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
993
994 * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
995 * testsuite/libitm.c/memset-1.c: Same.
996 * testsuite/libitm.c/c.exp: Same.
997 * testsuite/lib/libitm-dg.exp: Same.
998 * testsuite/lib/libitm.exp: Same.
999 * testsuite/libitm.c++/c++.exp: Same.
1000
1001 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1002
1003 * testsuite/config/default.exp: Update copyright date.
1004 * configure.ac: Add copyright info.
1005 * configure.tgt: Same.
1006
1007 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
1008
1009 * testsuite/libitm.c/reentrant.c: XFAIL.
1010 * testsuite/libitm.c++/static_ctor.C: XFAIL.
1011
1012 2011-10-29 Torvald Riegel <triegel@redhat.com>
1013
1014 * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
1015 handle aborts.
1016 (_ITM_abortTransaction): Handle aborts of outer transactions.
1017 * libitm_i.h: Same.
1018 * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
1019 * libitm.texi: Document aborts of outer transactions.
1020 * testsuite/libitm.c/cancel.c: New file.
1021
1022 2011-10-19 Torvald Riegel <triegel@redhat.com>
1023
1024 * testsuite/*: Change __transaction to __transaction_atomic or
1025 __transaction_relaxed.
1026
1027 2011-10-19 Torvald Riegel <triegel@redhat.com>
1028
1029 * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
1030 (gtm_thr): Same.
1031
1032 2011-10-19 Torvald Riegel <triegel@redhat.com>
1033
1034 * libitm_i.h: Add gl_wt dispatch.
1035 * retry.cc (parse_default_method): Same.
1036 * method-gl.cc: New file.
1037 * Makefile.am: Use method-gl.cc.
1038 * Makefile.in: Rebuild.
1039
1040 2011-10-19 Torvald Riegel <triegel@redhat.com>
1041
1042 * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
1043 safety if requested by a TM method.
1044 * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
1045 privatization safety.
1046 * method-serial.cc: Same.
1047
1048 2011-10-19 Torvald Riegel <triegel@redhat.com>
1049
1050 * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
1051 (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
1052 undolog-related member functions from *_local to *_undolog.
1053 * local.cc (gtm_thread::commit_undolog): Same.
1054 * beginend.cc (GTM::gtm_thread::trycommit): Same.
1055 (GTM::gtm_thread::rollback): Roll back undolog before
1056 dispatch-specific rollback.
1057
1058 2011-10-19 Torvald Riegel <triegel@redhat.com>
1059
1060 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
1061 re-initialization of the current method group.
1062 * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
1063
1064 2011-10-19 Torvald Riegel <triegel@redhat.com>
1065
1066 * alloc.cc (commit_allocations_2): Do not free transaction-local
1067 memory when committing a nested transaction.
1068
1069 2011-10-19 Torvald Riegel <triegel@redhat.com>
1070
1071 * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
1072 serial-irrevocable dispatch, not serial.
1073
1074 2011-10-19 Torvald Riegel <triegel@redhat.com>
1075
1076 * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
1077 declarations.
1078 * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
1079 * method-serial.cc: Implement begin_or_restart().
1080 * beginend.cc (GTM::gtm_thread::begin_transaction): Call
1081 dispatch-specific begin_or_restart().
1082 (GTM::gtm_thread::restart): Same.
1083
1084 2011-08-23 Torvald Riegel <triegel@redhat.com>
1085
1086 * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
1087 restarting without switching to serial mode.
1088 (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
1089 transaction state. Choose closed-nesting alternative if available.
1090 (GTM::gtm_thread::set_default_dispatch): New.
1091 (parse_default_method): New.
1092 (GTM::gtm_thread::number_of_threads_changed): New.
1093 * method-serial.cc (GTM::serial_mg): New method group class.
1094 (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
1095 fini.
1096 (GTM::serial_dispatch): Same.
1097 (GTM::serialirr_onwrite_dispatch): Same.
1098 (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
1099 * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
1100 registered threads.
1101 (GTM::gtm_thread::gtm_thread): Same.
1102 (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
1103 (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
1104 (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
1105 choose dispatch but set state according to dispatch here.
1106 * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
1107 (GTM::method_group): New class.
1108 (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
1109 * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
1110 * libitm.texi: Document TM methods, method groups, method life cycle.
1111 Rename method sets to method groups.
1112
1113 2011-08-23 Torvald Riegel <triegel@redhat.com>
1114
1115 * config/x86/tls.h: Moved to ...
1116 * config/linux/x86/tls.h: ... here.
1117
1118 2011-08-23 Torvald Riegel <triegel@redhat.com>
1119
1120 * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
1121 Add X32 support.
1122 * config/x86/sjlj.S: Same.
1123
1124 2011-08-19 Torvald Riegel <triegel@redhat.com>
1125
1126 * config/linux/rwlock.h: New file.
1127 * config/linux/rwlock.c: New file.
1128 * configure.ac: Reenable futex support (undo SVN rev 157758).
1129 * Makefile.am: Same.
1130 * configure.tgt: Same.
1131 * config/linux/alpha/futex_bits.h: Same.
1132 * config/linux/futex.h: Same. Return number of woken processes.
1133 * config/linux/futex.cc: Same.
1134 (futex_wait): Remove spinning.
1135 * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
1136 Use __x86_64__ instead of __LP64__.
1137 * aclocal.m4: Include generic futex checks.
1138 * configure: Rebuild.
1139 * Makefile.in: Rebuild.
1140 * testsuite/Makefile.in: Rebuild.
1141 * beginend.cc: Include pthread.h.
1142 * config/posix/cachepage.cc: Same.
1143
1144 2011-08-12 Torvald Riegel <triegel@redhat.com>
1145
1146 * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1147 (abi_disp, set_abi_disp): Move to tx's TLS slot.
1148 (set_gtm_thr): New.
1149 * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
1150 (set_gtm_thr): New.
1151 (GTM::gtm_thread::thread_num): Removed.
1152 (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
1153 * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
1154 tx-to-thread renaming.
1155 * beginend.cc: Adapted to tx-to-thread renaming.
1156 (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
1157 (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
1158 * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
1159 gtm_transaction to gtm_thread.
1160 (_ITM_getThreadnum): Removed. Not supported anymore.
1161 * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
1162 * libitm.texi: Documented that _ITM_getThreadnum is not supported.
1163 * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
1164 gtm_tx-to-gtm_thr renaming if necessary.
1165 * eh_cpp.cc: Same.
1166 * local.cc: Same.
1167 * retry.cc: Same.
1168 * clone.cc: Same.
1169 * alloc.cc: Same.
1170 * alloc_c.cc: Same.
1171 * alloc_cpp.cc: Same.
1172 * method-serial.cc: Same.
1173 * config/generic/tls.cc: Same.
1174 * config/posix/rwlock.h (gtm_rwlock): Same.
1175 * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
1176
1177 2011-08-12 Torvald Riegel <triegel@redhat.com>
1178
1179 * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
1180 implementation.
1181 (gtm_rwlock::read_unlock): Same.
1182 (gtm_rwlock::write_lock_generic): New. Generalized from ...
1183 (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
1184 * libitm_i.h (GTM::gtm_transaction): Added shared_state.
1185 * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
1186 w_upgrade. Replaced by per-transaction flags (in shared_state).
1187 Added c_confirmed_writers.
1188 (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
1189 GTM::gtm_rwlock::write_upgrade): Add tx parameter.
1190 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1191 * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
1192 * beginend.cc (GTM::gtm_transaction::begin_transaction,
1193 _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
1194 * libitm.texi: Document locking conventions and implementations in
1195 libitm.
1196
1197 2011-08-12 Torvald Riegel <triegel@redhat.com>
1198
1199 * libitm_i.h (next_tx): Add list of all threads' transaction.
1200 * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
1201 transaction with list of transactions and ...
1202 (thread_exit_handler): ... deregister here.
1203 * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
1204 * config/x86/target.h: Same.
1205
1206 2011-08-12 Torvald Riegel <triegel@redhat.com>
1207
1208 * testsuite/libitm.c++/static_ctor.C: New file.
1209
1210 2011-08-12 Torvald Riegel <triegel@redhat.com>
1211
1212 * testsuite/libitm.c/reentrant.c: New file.
1213
1214 2011-08-12 Torvald Riegel <triegel@redhat.com>
1215
1216 * config/generic/tls.h: Remove the free list for transactions and ...
1217 * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
1218 (GTM::gtm_transaction::operator delete): ... and release here.
1219 (thread_exit_handler): New. Delete tx when thread terminates.
1220 (thread_exit_init): New.
1221 (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
1222 * testsuite/libitm.c/txrelease.c: New file.
1223
1224 2011-08-12 Torvald Riegel <triegel@redhat.com>
1225
1226 * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
1227 * testsuite/libitm.c/notx.c: New file.
1228
1229 2011-08-12 Torvald Riegel <triegel@redhat.com>
1230
1231 * config/generic/tls.h (gtm_thread): Move local_tid from here ...
1232 * libitm_i.h (local_tid): ... to here.
1233 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1234 (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
1235
1236 2011-08-12 Torvald Riegel <triegel@redhat.com>
1237
1238 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
1239 serialirr_onwrite_dispatch as new default for now.
1240 * method-serial.cc (serialirr_onwrite_dispatch): New.
1241 (GTM::dispatch_serialirr_onwrite): New.
1242 * libitm_i.h: Same.
1243
1244 2011-08-12 Torvald Riegel <triegel@redhat.com>
1245
1246 * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
1247 * query.cc (_ITM_getTransactionId): There is no active transaction if
1248 the current nesting level is zero.
1249
1250 2011-07-28 Torvald Riegel <triegel@redhat.com>
1251
1252 * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
1253 rollback.
1254
1255 2011-07-28 Torvald Riegel <triegel@redhat.com>
1256
1257 * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
1258 transaction properties from the caller instead of from the
1259 transaction object.
1260 * libitm_i.h: Same.
1261 * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
1262
1263 2011-07-28 Torvald Riegel <triegel@redhat.com>
1264
1265 * local.cc (gtm_transaction::rollback_local): Support closed nesting.
1266 * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
1267 * dispatch.h: Same.
1268 * method-serial.cc: Same.
1269 * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
1270 flat nesting as default, and closed nesting on demand.
1271 (GTM::gtm_transaction::rollback): Same.
1272 (_ITM_abortTransaction): Same.
1273 (GTM::gtm_transaction::restart): Same.
1274 (GTM::gtm_transaction::trycommit): Same.
1275 (GTM::gtm_transaction::trycommit_and_finalize): Removed.
1276 (choose_code_path): New.
1277 (GTM::gtm_transaction_cp::save): New.
1278 (GTM::gtm_transaction_cp::commit): New.
1279 * query.cc (_ITM_inTransaction): Support flat nesting.
1280 * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
1281 (GTM::gtm_transaction): Support flat and closed nesting.
1282 * alloc.cc (commit_allocations_2): New.
1283 (commit_cb_data): New helper struct.
1284 (GTM::gtm_transaction::commit_allocations): Handle nested
1285 commits/rollbacks.
1286 * libitm.texi: Update user action section, add description of nesting.
1287
1288 2011-07-28 Torvald Riegel <triegel@redhat.com>
1289
1290 * libitm_i.h: Add closed nesting as restart reason.
1291 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
1292
1293 2011-07-28 Torvald Riegel <triegel@redhat.com>
1294
1295 * useraction.cc: Use vector instead of list to store actions.
1296 Also support partial rollbacks for closed nesting.
1297 * libitm_i.h (GTM::gtm_transaction::user_action): Same.
1298 * beginend.cc: Same.
1299
1300 2011-07-28 Torvald Riegel <triegel@redhat.com>
1301
1302 * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
1303 closed_nesting flags, as well as a closed nesting alternative.
1304 * method-serial.cc: Same.
1305 (serial_dispatch): Renamed to serialirr_dispatch.
1306 (GTM::dispatch_serialirr): Same.
1307 (serial_dispatch_ul): Renamed to serial_dispatch.
1308 (GTM::dispatch_serial): Same.
1309
1310 2011-07-28 Torvald Riegel <triegel@redhat.com>
1311
1312 * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
1313
1314 2011-07-28 Torvald Riegel <triegel@redhat.com>
1315
1316 * aatree.h (aa_tree::remove): New.
1317 (aa_tree::operator new): Add placement new.
1318
1319 2011-07-02 Torvald Riegel <triegel@redhat.com>
1320
1321 * containers.h: New file.
1322 * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
1323 * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
1324 * common.h: ... to here.
1325 (local_undo): Use GTM::vector for gtm_transaction::local_undo.
1326 * local.cc: Same.
1327
1328 2011-06-30 Torvald Riegel <triegel@redhat.com>
1329
1330 * libitm_i.h (STATE_ABORTING): Remove.
1331 * beginend.cc (_ITM_abortTransaction): Same.
1332 (GTM::gtm_transaction::trycommit_and_finalize): Same.
1333 * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
1334 (_ITM_rollbackTransaction): Remove.
1335 * beginend.cc: Same.
1336 * libitm.map: Same.
1337 * libitm.texi: Document these ABI changes.
1338
1339 2011-06-30 Torvald Riegel <triegel@redhat.com>
1340
1341 * libitm.texi: New file.
1342 * Makefile.am: Add libitm.texi.
1343 * Makefile.in: Rebuild.
1344
1345 2011-06-30 Torvald Riegel <triegel@redhat.com>
1346
1347 * libitm_i.h: Move parts to common.h and dispatch.h.
1348 * common.h: New file.
1349 * dispatch.h: New file, new dispatch class.
1350 Rename GTM::abi_dispatch::lock_type to ls_modifier.
1351 RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
1352 * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
1353 decision to retry.cc.
1354 * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
1355 only.
1356 (GTM::gtm_transaction::decide_begin_dispatch): Same.
1357 * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
1358 logging.
1359 * barrier.cc: Use new barriers definitions.
1360 (abi_dispatch::memmove_overlap_check): New.
1361 * config/x86/x86_sse.cc: Same.
1362 * config/x86/x86_avx.cc: Same.
1363 * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
1364 memcpy.cc.
1365 * Makefile.in: Rebuild.
1366 * method-readonly.cc: Remove.
1367 * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
1368 Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
1369
1370 2011-06-30 Torvald Riegel <triegel@redhat.com>
1371
1372 * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
1373 * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
1374 * testsuite/libitm.c/dropref-2.c: Same.
1375 * testsuite/libitm.c/dropref.c: Same.
1376
1377 2011-06-30 Torvald Riegel <triegel@redhat.com>
1378
1379 * config/generic/tls.h (gtm_disp): Rename to abi_disp.
1380 * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
1381 * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
1382 * alloc_c.cc: Same.
1383 * barrier.tpl: Same.
1384 * beginend.c: Same.
1385 * config/generic/tls.h: Same.
1386 * config/x86/tls.h: Same.
1387 * libitm_i.h: Same.
1388 * memcpy.cc: Same.
1389 * memset.cc: Same.
1390 * method-readonly.cc: Same.
1391 * method-serial.cc: Same.
1392 * method-wbetl.cc: Same.
1393 * retry.cc: Same.
1394
1395 2011-03-03 Richard Henderson <rth@redhat.com>
1396
1397 * config/posix/rwlock.cc (write_upgrade): Add missing case.
1398 From Patrik Marlier <patrick.marlier@unine.ch>.
1399
1400 2011-02-03 Richard Henderson <rth@redhat.com>
1401
1402 * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
1403 * configure.ac: Use it.
1404 * configure, config.h.in: Rebuild.
1405 * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
1406 (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
1407 _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
1408 * libitm.map: Use wildcards to match size_t mangling.
1409
1410 2010-12-14 Richard Henderson <rth@redhat.com>
1411
1412 * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
1413 blocks of TIDs per thread.
1414 * config/generic/tls.h (struct gtm_thread): Add local_tid member.
1415 (setup_gtm_thr): Return the thread structure.
1416 * config/x86/tls.h (setup_gtm_thr): Likewise.
1417
1418 2010-12-14 Richard Henderson <rth@redhat.com>
1419
1420 * clone.cc (table_lock): Remove.
1421 (find_clone): Don't take it.
1422 (ExcludeTransaction): New helper class.
1423 (_ITM_registerTMCloneTable): Use it.
1424 (_ITM_deregisterTMCloneTable): Likewise.
1425
1426 2010-12-14 Richard Henderson <rth@redhat.com>
1427
1428 * config/x86/tls.h: New file.
1429
1430 2010-07-15 Richard Henderson <rth@redhat.com>
1431
1432 * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
1433 * Makefile.in: Rebuild.
1434
1435 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1436
1437 * method-wbetl.cc (trydropreference): Fix source line.
1438
1439 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
1440
1441 * libitm.h: Add comment.
1442 * libitm_i.h (begin_transaction): Add ITM_REGPARM.
1443
1444 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
1445
1446 * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
1447 * beginend.cc (begin_transaction): If 64-bit sync builtins are not
1448 available, use pthread mutexes.
1449 * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
1450 * config.h.in: Regenerate.
1451 * configure: Regenerate.
1452
1453 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
1454
1455 * libitm.h (ITM_PURE): Define.
1456 Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
1457
1458 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1459
1460 * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
1461 (validate): Add comment.
1462 (trydropreference): New.
1463 * method-readonly.cc (class readonly_dispatch): Add
1464 trydropreference.
1465 * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
1466 Call trydropreference().
1467 * libitm.h (_ITM_dropReferences): Remove const attribute.
1468 * method-serial.cc (class serial_dispatch): Add trydropreference.
1469 * libitm_i.h (struct gtm_dispatch): Add trydropreference.
1470
1471 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
1472
1473 * memcpy.cc (do_memcpy): Comment.
1474
1475 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
1476
1477 * barrier.tpl: Add comments throughout.
1478
1479 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1480
1481 * method-wbetl.cc (struct w_entry): Add comments.
1482 (trycommit): Same.
1483 (rollback): Same.
1484
1485 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
1486
1487 * alloc_c.cc (_ITM_dropReferences): New.
1488 * libitm.map (_ITM_dropReferences): Add.
1489 * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
1490 * libitm_i.h (struct gtm_transaction): Declare
1491 drop_references_allocations and drop_references_local.
1492 * local.cc (rollback_local): Ignore memory when applicable.
1493 (drop_references_local): New.
1494
1495 2010-06-23 Richard Henderson <rth@redhat.com>
1496
1497 * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
1498 memset.cc, method-serial.cc: Revert the 2010-06-16 change.
1499 * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
1500 * config/alpha/target.h: Likewise.
1501 * config/generic/tls.cc (gtm_mask_stack): Use it.
1502
1503 2010-06-23 Richard Henderson <rth@redhat.com>
1504
1505 * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
1506 a mutex instead of trying a lock-free compare-and-swap on the list.
1507 (gtm_cacheline_page::operator delete): Likewise.
1508
1509 2010-06-16 Richard Henderson <rth@redhat.com>
1510
1511 * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
1512 that overlap the libitm stack.
1513 * barrier.tpl: Mark incoming stack.
1514 * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
1515 _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
1516 * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
1517 * memcpy.cc, memset.cc: Likewise.
1518 * method-serial.cc (_ITM_changeTransactionMode): Likewise.
1519 * config/generic/tls.h (gtm_thread): Add stack_top member.
1520 (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
1521 * libitm_i.h (gtm_mask_stack): Declare.
1522 * config/generic/tls.cc: New file.
1523 * Makefile.am (libitm_la_SOURCES): Add it.
1524 (AM_CXXFLAGS): Turn off exceptions.
1525 * Makefile.in: Rebuild.
1526
1527 2010-06-16 Richard Henderson <rth@redhat.com>
1528
1529 * alloc.cc (struct gtm_alloc_action): Move definition ...
1530 * libitm_i.h: ... here.
1531 (class gtm_transaction): Declare new and delete.
1532 * beginend.cc (alloc_tx): Reformulate as operator new.
1533 (free_tx): Reformulate as operator delete.
1534 * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
1535
1536 2010-06-11 Richard Henderson <rth@redhat.com>
1537
1538 * clone.cc (clone_entry_compare): Fix typo.
1539 From Patrik Marlier <patrick.marlier@unine.ch>.
1540
1541 2010-05-13 Richard Henderson <rth@redhat.com>
1542
1543 * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
1544 in extern "C".
1545
1546 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
1547
1548 * libitm_i.h (struct gtm_transaction): Remove
1549 get_allocation_size.
1550 (record_allocation): Remove size parameter.
1551 * libitm.map (_ITM_realloc): Remove.
1552 * alloc_c.cc (_ITM_realloc): Remove.
1553 (_ITM_malloc): Remove size argument to record_allocation.
1554 (_ITM_calloc): Same.
1555 * alloc_cpp.cc (_ZGTtnwm): Same.
1556 (_ZGTtnwmRKSt9nothrow_t): Same.
1557 (_ZGTtnam): Same.
1558 (_ZGTtnamRKSt9nothrow_t): Same.
1559 * alloc.cc (struct gtm_alloc_action): Remove size.
1560 (get_allocation_size): Remove.
1561 (commit_allocations): Add comment.
1562 (record_allocation): Remove size parameter.
1563 (forget_allocation): Remove set of size.
1564
1565 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
1566
1567 * Makefile.am (abi_version): New.
1568 (AM_CXXFLAGS): Pass abi_version.
1569 * Makefile.in: Regenerate.
1570 * config/x86/unaligned.h: Remove always_inline kludge for vectors.
1571
1572 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
1573
1574 * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
1575 _ITM_getTMCloneOrIrrevokable.
1576 * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
1577 * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
1578
1579 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
1580
1581 * configure.ac: Remove Linux futex support.
1582 * configure.tgt (config_path): Same.
1583 * Makefile.am: Same.
1584 * config/linux: Remove entire directory.
1585 * configure: Rebuild.
1586 * Makefile.in: Rebuild.
1587 * testsuite/Makefile.in: Rebuild.
1588
1589 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
1590
1591 * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
1592 switching to serial mode.
1593 * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
1594
1595 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
1596
1597 * configure.tgt: Add emacs -*- tags.
1598 * barrier.tpl: Same.
1599
1600 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
1601
1602 * Makefile.am: Rename serial.cc to method-serial.cc.
1603 * Makefile.in: Regenerate with automake 1.11.1.
1604 * testsuite/Makefile.in: Same.
1605 * aclocal.m4: Regenerate with aclocal 1.11.1.
1606 * method-serial.cc: Rename from serial.cc.
1607 * libitm_i.h (struct gtm_transaction): Update comment on
1608 serialirr_mode.
1609
1610 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
1611
1612 * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
1613 * config/linux/rwlock.h (class gtm_rwlock): Add comments.
1614
1615 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
1616
1617 * configure: Rebuild.
1618
1619 2009-11-12 Richard Henderson <rth@redhat.com>
1620
1621 * Rewrite everything in C++.
1622
1623 2009-11-03 Richard Henderson <rth@redhat.com>
1624
1625 * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
1626 * Makefile.am (libitm_la_SOURCES): Add them.
1627 * configure.ac (ARCH_X86): New conditional.
1628 * Makefile.in, configure: Rebuild.
1629 * configure.tgt: Set up ARCH; do cflags setup at the same time.
1630 Move futex setup into "other system configury" case.
1631 * local.c (rollback_local): Merge into ...
1632 (GTM_rollback_local): ... here.
1633 (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
1634 (_ITM_LB): Define as an alias to GTM_LB.
1635
1636 2009-11-03 Richard Henderson <rth@redhat.com>
1637
1638 * method-readonly.c: New file.
1639 * Makefile.am (libitm_la_SOURCES): Add it.
1640 * Makefile.in: Rebuild.
1641 * beginend.c (gtm_stmlock_array, gtm_clock): New.
1642 (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
1643 * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
1644 (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
1645 gtm_stmlock_set_owned, gtm_stmlock_get_addr,
1646 gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
1647 gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
1648 gtm_get_clock, gtm_inc_clock): New.
1649 * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
1650 LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
1651 LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
1652 locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
1653 replace uses with new libitm_i.h symbols.
1654 (dispatch_wbetl): Rename from wbetl_dispatch.
1655 * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
1656 away from dispatch_readonly; abort if the beginTransaction call
1657 asserted that the transaction was readonly.
1658
1659 2009-11-03 Richard Henderson <rth@redhat.com>
1660
1661 * memset.c: New file.
1662 * Makefile.am (libitm_la_SOURCES): Add it.
1663 * Makefile.in: Rebuild.
1664 * testsuite/libitm.c/memset-1.c: New.
1665
1666 2009-11-03 Richard Henderson <rth@redhat.com>
1667
1668 * dispatch.c: Remove file.
1669 * useraction.c (struct gtm_user_action): Move from libitm.h.
1670 * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
1671 (serial_memset, serial_memmove, serial_memcpy): Remove.
1672 (serial_W*, serial_R*): Remove.
1673 (serial_dispatch): Update to match.
1674 * configure.ac: Move Werror down below configure checks. Don't
1675 check for sys/loadavg.h, do check for malloc.h. Don't check for
1676 getloadavg and clock_gettime; do check for memalign, posix_memalign.
1677 Use GCC_AC_FUNC_MMAP_BLACKLIST
1678 * libitm.h: Split out all internal items to...
1679 * libitm_i.h: ... here. New file.
1680 * copymask.c: New file.
1681 * local.c (struct gtm_local_undo): Move from libitm.h.
1682 (GTM_alloc_local): Rename from alloc_local; export.
1683 * memcpy.c: New file.
1684 * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
1685 * config/posix/page.c: New file.
1686 * config/posix/target_tls.h: Remove file.
1687 * barrier.c: New file.
1688 * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
1689 copymask.c, page.c.
1690 * alloc.c (struct gtm_alloc_action): Move from libitm.h.
1691 * method-wbetl.c: Rewrite for new cacheline methods.
1692 * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
1693
1694 * config/alpha/sjlj.S: Fix typo.
1695 * config/alpha/target_i.h: Copy functions from alpha/target.h.
1696 * config/alpha/copymask.c: New file.
1697 * config/alpha/target.h (CACHELINE_SIZE): New.
1698 (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
1699
1700 * config/x86/target_i.h: Copy functions from x86/target.h.
1701 * config/x86/copymask.c: New file.
1702 * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
1703 (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
1704 (PAGE_SIZE, FIXED_PAGE_SIZE): New.
1705 * config/x86/target_tls.h: Move contents to target_i.h.
1706
1707 * testsuite/libitm.c/clone-1.c: Include libitm.h.
1708 * testsuite/libitm.c/memcpy-1.c: New.
1709
1710 2009-10-22 Richard Henderson <rth@redhat.com>
1711
1712 * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
1713 (AM_CCASFLAGS): New.
1714 * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
1715 saving/restoring _AC_ARG_VAR_PRECIOUS.
1716 * Makefile.in, aclocal.m4, config.h.in, configure,
1717 testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
1718
1719 2009-10-22 Richard Henderson <rth@redhat.com>
1720
1721 * testsuite/*: Update for new compiler syntax.
1722
1723 2009-10-21 Richard Henderson <rth@redhat.com>
1724
1725 * libitm.h (_ITM_abortReason): Add outerAbort.
1726
1727 2009-08-03 Richard Henderson <rth@redhat.com>
1728
1729 * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
1730 _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
1731 * method-wbetl.c (struct w_entry): Remove mask.
1732 (wbetl_write, wbetl_load): Return pointer to word containing the data;
1733 adjust all callers.
1734
1735 2009-07-22 Richard Henderson <rth@redhat.com>
1736
1737 * eh_cpp.c: New file.
1738 * Makefile.am (libitm_la_SOURCES): Add it.
1739 * Makefile.in: Rebuild.
1740 * beginend.c (GTM_rollback_transaction): Undo exception state.
1741 (GTM_trycommit_transaction): Mark inline.
1742 (GTM_trycommit_and_finalize_transaction): Split out from ...
1743 (_ITM_commitTransaction): ... here.
1744 (_ITM_commitTransactionEH): New function.
1745 * libitm.h (struct gtm_transaction): Add cxa_catch_count,
1746 cxa_unthrown, eh_in_flight; reorder.
1747
1748 * testsuite/libitm.c++/c++.exp: New.
1749 * testsuite/libitm.c++/eh-1.C: New.
1750
1751 * aatree.c (aa_free): Remove REGPARM.
1752 * aatree.h: Remove all REGPARM.
1753
1754 2009-07-18 Richard Henderson <rth@redhat.com>
1755
1756 * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
1757 * Makefile.am (libitm_la_SOURCES): Add them.
1758 * Makefile.in: Rebuild.
1759 * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
1760 (GTM_trycommit_transaction): Likewise.
1761 * libitm.h: Include aatree.h
1762 (struct gtm_alloc_action): New.
1763 (struct gtm_transaction): Add alloc_actions.
1764 (GTM_record_allocation, GTM_forget_allocation): Declare.
1765 (GTM_get_allocation_size, GTM_commit_allocations): Declare.
1766 * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
1767 _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
1768 _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
1769 _ZGTtdaPvRKSt9nothrow_t): Export.
1770
1771 2009-07-18 Richard Henderson <rth@redhat.com>
1772
1773 * target_tls.h: Move ...
1774 * config/posix/target_tls.h: ... here.
1775
1776 2009-07-07 Richard Henderson <rth@redhat.com>
1777
1778 * config/x86/target.h (atomic_write_barrier): Use sfence if available.
1779
1780 2009-07-07 Richard Henderson <rth@redhat.com>
1781
1782 * Update to GPL3.
1783
1784 2009-07-07 Richard Henderson <rth@redhat.com>
1785
1786 * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
1787 * beginend.c (global_tid): Widen to _ITM_transactionId_t.
1788
1789 * configure.tgt: Don't use -ftls-model for x86 linux.
1790 * libitm.h: Include target.h after standard includes.
1791 (_gtm_thr): Rename from gtm_thr.
1792 (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
1793 (gtm_disp, set_gtm_disp): New.
1794 * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
1795 retry.c, serial.c, useraction.c: Use accessor functions throughout.
1796 * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
1797
1798 2009-07-07 Richard Henderson <rth@redhat.com>
1799
1800 * config/linux/rwlock.c (EZ): New define. Use it throughout.
1801
1802 2009-07-06 Richard Henderson <rth@redhat.com>
1803
1804 * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
1805 (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
1806 (_ITM_beginTransaction): Take variadic arguments.
1807 (_ITM_registerThrownObject): Declare.
1808 * beginend.c, serial.c: Update.
1809 * libitm.map: Add _ITM_registerThrownObject.
1810
1811 2009-01-28 Richard Henderson <rth@redhat.com>
1812
1813 * Makefile.am (libitm_la_SOURCES): Add clone.c.
1814 * Makefile.in: Rebuild.
1815 * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
1816 (GTM_restart_transaction): Fix uninstrumented code check.
1817 * retry.c (GTM_decide_retry_strategy): Add serial check.
1818 * serial.c (GTM_serialmode): Add irrevokable variable. Don't
1819 automatically go irrevokable when in serial mode.
1820 * clone.c: New file.
1821 * libitm.h, libitm.map: Update.
1822
1823 2009-01-27 Richard Henderson <rth@redhat.com>
1824
1825 * Makefile.am (LTCCASCOMPILE): Define.
1826 (libitm_la_SOURCES): Add methid-wbetl.c.
1827 * testsuite/Makefile.am: New
1828 * configure.ac: Add testsuite/Makefile.
1829 * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
1830 * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
1831 (_ITM_abortTransaction): Finalize implementation method; pass
1832 transaction properties to longjmp.
1833 (GTM_restart_transaction): Split out from ...
1834 (_ITM_commitTransaction): ... here.
1835 * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
1836 Move to config/x86/target.h.
1837 * config/linux/alpha/futex_bits.h: New.
1838 * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
1839 * config/x86/target.h: Disable target types for 32-bit.
1840 * config/alpha/sjlj.S, config/alpha/target.h: New.
1841 * libitm.h (struct gtm_dispatch): Add init, fini.
1842 (enum restart_reason): New.
1843 (struct gtm_transaction): Add method and restarts.
1844 * retry.c (GTM_decide_retry_strategy): Implement.
1845 * serial.c (serial_init, serial_fini): New.
1846 (GTM_serialmode): Finialize outgoing method.
1847 * method-wbetl.c: New.
1848
1849 2008-12-09 Richard Henderson <rth@redhat.com>
1850
1851 * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
1852 * configure.tgt (i386-*, x86_64-*): Don't force SSE.
1853 * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
1854 * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
1855 (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
1856 (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
1857 * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
1858 * serial.c (serial_R##T, serial_W##T): Likewise.
1859
1860 2008-11-21 Richard Henderson <rth@redhat.com>
1861
1862 * Initial commit.
1863 \f
1864 Copyright (C) 2008-2016 Free Software Foundation, Inc.
1865
1866 Copying and distribution of this file, with or without modification,
1867 are permitted in any medium without royalty provided the copyright
1868 notice and this notice are preserved.