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