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