OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libitm/] [ChangeLog] - Blame information for rev 741

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.