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