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