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