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