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