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