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