forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
1637 lines (1249 loc) · 56.9 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2013-09-20 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
2013-08-30 Torvald Riegel <triegel@redhat.com>
* config/posix/rwlock.cc: Fix initialization order.
2013-08-30 Torvald Riegel <triegel@redhat.com>
* libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
(htm_fastpath): Assign an asm name.
* libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
HTM fast paths.
(_ITM_actions): Likewise.
* config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
x86_64.
* config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
* config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
field to the start of the structure.
* config/linux/rwlock.h (gtm_rwlock): Update comments.
* beginend.cc (gtm_thread::begin_transaction): Add retry policy
handling for custom HTM fast paths.
2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Revert:
2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* configure.tgt: Add -msoft-float to XCFLAGS.
2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* configure.tgt: Add -msoft-float to XCFLAGS.
2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/target.h (htm_begin, htm_commit, htm_abort)
(htm_transaction_active): Enable zEC12 instructions in the
assembler.
* configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* acinclude.m4: Add htm asm check for s390.
* configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
* configure: Regenerate.
* config/s390/target.h: Remove __HTM__ check.
(htm_available): Call getauxval to get hwcaps and check whether
HTM is available or not.
2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
* acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
* configure.ac: Use it.
(AC_CHECK_HEADERS): Check for sys/auxv.h.
(AC_CHECK_FUNCS): Check for getauxval.
* config.h.in, configure: Rebuild.
* configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
* config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
(USE_HTM_FASTPATH): Define.
(_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
_HTM_RETRIES) New macros.
(htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
htm_begin_success, htm_commit, htm_transaction_active): New functions.
2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/target.h: Include htmintrin.h.
(_HTM_ITM_RETRIES): New macro definition.
(htm_available, htm_init, htm_begin, htm_begin_success)
(htm_commit, htm_abort, htm_abort_should_retry): New functions.
2013-06-20 Iain Sandoe <iain@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>
* testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
* testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
* testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
2013-06-20 Torvald Riegel <triegel@redhat.com>
* query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
(_ITM_getTransactionId): Same.
* config/x86/target.h (htm_transaction_active): New.
2013-06-20 Torvald Riegel <triegel@redhat.com>
PR libitm/57643
* beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
the HTM fastpath.
2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
PR bootstrap/56714
* local_atomic (__always_inline): Always define our version.
(__calculate_memory_order): Mark inline.
(atomic_thread_fence): Ditto.
(atomic_signal_fence): Ditto.
(atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
(atomic_bool::atomic_flag_clear_explicit): Ditto.
(atomic_bool::atomic_flag_test_and_set): Ditto.
(atomic_bool::atomic_flag_clear): Ditto.
2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/sjlj.S: New file.
* config/s390/target.h: New file.
* configure.tgt: Set options for S/390.
2013-03-23 Andi Kleen <ak@linux.intel.com>
* local_atomic (__always_inline): Add.
(__calculate_memory_order, atomic_thread_fence,
atomic_signal_fence, test_and_set, clear, store, load,
exchange, compare_exchange_weak, compare_exchange_strong,
fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
Add __always_inline to force inlining.
2013-02-11 Iain Sandoe <iain@codesourcery.com>
Jack Howarth <howarth@bromo.med.uc.edu>
Patrick Marlier <patrick.marlier@gmail.com>
PR libitm/55693
* alloc_cpp.cc: Enable function declarations on darwin.
* eh_cpp.cc: Likewise.
2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
Update copyright years.
2012-11-09 Torvald Riegel <triegel@redhat.com>
* beginend.cc (htm_fastpath): New.
(gtm_thread::begin_transaction, _ITM_commitTransaction,
_ITM_commitTransactionEH): Add HTM fastpath handling.
* config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
* config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
* config/x86/target.h (htm_available, htm_init, htm_begin_success,
htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
* configure.tgt: Add -mrtm to XCFLAGS.
* method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
(gtm_thread::serialirr_mode): Add HTM fastpath handling.
* libitm_i.h (htm_fastpath, dispatch_htm): Declare.
* retry.cc (parse_default_method): Add HTM method parsing.
(gtm_thread::number_of_threads_changed): Use HTM by default if
available.
2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
* configure: Regenerate.
2012-10-31 Richard Henderson <rth@redhat.com>
* acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
* configure.ac: Use it.
* config.h.in, configure: Rebuild.
* testsuite/Makefile.in: Rebuild.
2012-10-24 Torvald Riegel <triegel@redhat.com>
* libitm.texi: Clarify ABI requirements for data-logging functions.
2012-10-24 Torvald Riegel <triegel@redhat.com>
* retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
it requires serial mode instead of assuming that for certain
dispatchs.
* dispatch.h (abi_dispatch::requires_serial): New.
(abi_dispatch::abi_dispatch): Adapt.
* method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
* method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
* method-serial.cc (serialirr_dispatch::serialirr_dispatch,
serial_dispatch::serial_dispatch,
serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
2012-10-02 Uros Bizjak <ubizjak@gmail.com>
* config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
and ia32 declarations some more.
* config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
2012-09-20 Jakub Jelinek <jakub@redhat.com>
PR other/43620
* configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
* configure: Regenerate.
* Makefile.in: Regenerate.
2012-09-14 David Edelsohn <dje.gcc@gmail.com>
* configure: Regenerated.
2012-07-31 Uros Bizjak <ubizjak@gmail.com>
* config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
* eh_cpp.cc: Fix __cxa_end_catch declaration.
2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
PR libitm/52854
* config/x86/target.h (gtm_jmpbuf): Replace long with long long
for x86-64.
2012-04-03 Tristan Gingold <gingold@adacore.com>
* configure: Regenerate.
2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/52812
* configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
* testsuite/lib/libitm.exp: load fortran-modules.exp
2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.tgt (*-*-irix6*): Remove.
2012-03-13 Torvald Riegel <triegel@redhat.com>
PR libitm/52526
* config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
wake-up.
2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.tgt (*-*-osf*): Remove.
* configure: Regenerate.
2012-03-05 Torvald Riegel <triegel@redhat.com>
* dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
memtransfer/memset if size isn't larger than zero.
2012-03-02 Torvald Riegel <triegel@redhat.com>
* libitm.texi: Link to specification and add a usage example.
2012-02-24 Torvald Riegel <triegel@redhat.com>
* retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
default dispatch for more than 1 thread to ml_wt.
2012-02-20 Torvald Riegel <triegel@redhat.com>
* method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
2012-02-20 Torvald Riegel <triegel@redhat.com>
* method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
2012-02-20 Torvald Riegel <triegel@redhat.com>
* method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
serial mode corner cases made obsolete by prior gtm_rwlock changes.
(gl_wt_dispatch.rollback): Same.
2012-02-20 Torvald Riegel <triegel@redhat.com>
* method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
2012-02-20 Torvald Riegel <triegel@redhat.com>
* method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
for RfW src. Optimize number of calls to gtm_thr.
2012-02-20 Torvald Riegel <triegel@redhat.com>
* beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
acquisition to ...
* retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
(default_dispatch): Make atomic.
(GTM::gtm_thread::set_default_dispatch): Access atomically.
(GTM::gtm_thread::decide_retry_strategy): Access atomically and
use decide_begin_dispatch() if default_dispatch might have changed.
(GTM::gtm_thread::number_of_threads_changed): Initialize
default_dispatch here.
2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
Patrick Marlier <patrick.marlier@gmail.com>
PR libitm/52220
* alloc_cpp.cc: No dummy definitions for darwin.
* eh_cpp.cc: Likewise.
2012-02-14 Richard Henderson <rth@redhat.com>
* config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
2012-02-14 Uros Bizjak <ubizjak@gmail.com>
* config/x86/target.h (GTM_longjmp): Correct .cfi directives.
2012-02-14 Torvald Riegel <triegel@redhat.com>
* libitm_i.h (GTM::gtm_rwlog_entry): New.
(GTM::gtm_thread): Add read and write logs.
(GTM::dispatch_ml_wt): Declare.
* retry.cc (parse_default_method): Support ml_wt.
* method-ml.cc: New file.
* Makefile.am: Add method-ml.cc.
* Makefile.in: Regenerate.
2012-02-14 Torvald Riegel <triegel@redhat.com>
* dispatch.h (GTM::abi_dispatch::supports): New.
(GTM::method_group::reinit): New.
* retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
(GTM::gtm_thread::number_of_threads_changed): Check that the method
supports the current situation.
2012-02-14 Torvald Riegel <triegel@redhat.com>
* util.cc (GTM::xcalloc): New.
* common.h (GTM::xcalloc): Declare.
2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
* config/sparc/target.h (cpu_relax): Read from CC register.
* config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
2012-02-14 Uros Bizjak <ubizjak@gmail.com>
* config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
* configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
* config/sparc/cacheline.h: New file.
* config/sparc/target.h: Likewise.
* config/sparc/sjlj.S: Likewise.
* config/linux/sparc/futex_bits.h: Likewise.
2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
* configure.ac (link_itm): Fix comment.
* configure: Regenerate.
* testsuite/lib/libitm.exp: Do not pass -litm for the link.
2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libitm/51822
* testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
Correct libgomp references.
2012-01-24 Torvald Riegel <triegel@redhat.com>
* config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
wake-up.
2012-01-24 Uros Bizjak <ubizjak@gmail.com>
* config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
end of structure.
* config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
offset values. Do not copy return address. Decrement stack
by 56 bytes only.
(GTM_longjump) [__x86_64__]: Update offset values.
2012-01-23 Uros Bizjak <ubizjak@gmail.com>
PR libitm/51830
* config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
the first function argument to %eax.
2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* libitm.h (_ITM_getThreadnum): Remove.
* libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* clearcap.map: New file.
* acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
* configure.ac: Call it.
Clear HWCAP_LDFLAGS if defaulting to -mavx.
* Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
* configure: Regenerate.
* Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libitm/51173
* testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
include, exclude options.
2012-01-14 Torvald Riegel <triegel@redhat.com>
* local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
rolling back.
* containers.h (GTM::vector::set_size): New.
2012-01-14 Torvald Riegel <triegel@redhat.com>
PR libitm/51855
* config/generic/tls.h (GTM::mask_stack_top): New.
(GTM::mask_stack_bottom): Declare.
* config/generic/tls.c (GTM::mask_stack_bottom): New.
* local.cc (gtm_undolog::rollback): Filter out any updates that
overlap the libitm stack. Add current transaction as parameter.
* libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
* beginend.cc (GTM::gtm_thread::rollback): Adapt.
* testsuite/libitm.c/stackundo.c: New test.
2012-01-10 Richard Henderson <rth@redhat.com>
* libitm_i.h (_Unwind_DeleteException): Declare weak.
* eh_cpp.cc (_Unwind_DeleteException): Define for
!HAVE_ELF_STYLE_WEAKREF.
2012-01-08 Torvald Riegel <triegel@redhat.com>
* local.cc (GTM_LB): Use GTM::gtm_undolog.
(GTM::gtm_thread::drop_references_undolog): Remove.
(GTM::gtm_thread::commit_undolog,
GTM::gtm_thread::rollback_undolog): Move to ...
* libitm_i.h (GTM::gtm_undolog): ...here. New.
(GTM::gtm_undolog_entry): Remove.
(GTM::gtm_thread): Adapt.
* beginend.cc (GTM::gtm_thread::rollback): Adapt.
(GTM::gtm_thread::trycommit): Adapt.
* method-serial.cc (serial_dispatch::log): Adapt.
* method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
(gl_wt_dispatch::store): Fix likely/unlikely.
* containers.h (GTM::vector::resize): Add additional_capacity
parameter and handle it.
(GTM::vector::resize_noinline): New/adapt.
(GTM::vector::push): New.
2012-01-06 Richard Henderson <rth@redhat.com>
* configure.tgt: Support powerpc-linux and powerpc-darwin.
* config/linux/powerpc/futex_bits.h: New file.
* config/powerpc/cacheline.h: New file.
* config/powerpc/sjlj.S: New file.
* config/powerpc/target.h: New file.
* config/generic/asmcfi.h (cfi_offset): New.
(cfi_restore, cfi_undefined): New.
2012-01-05 Aldy Hernandez <aldyh@redhat.com>
PR other/51171
* testsuite/libitm.c/reentrant.c: Remove xfail.
(thread): Pass x to pure().
From Patrik Marlier <patrick.marlier@gmail.com>.
2011-12-24 Torvald Riegel <triegel@redhat.com>
* beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
privatization safety if already in serial mode.
2011-12-24 Torvald Riegel <triegel@redhat.com>
* beginend.cc (GTM::gtm_thread::restart): Add and handle
finish_serial_upgrade parameter.
* libitm.h (GTM::gtm_thread::restart): Adapt declaration.
* config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
Don't unset reader flag.
(GTM::gtm_rwlock::write_upgrade_finish): New.
* config/posix/rwlock.cc: Same.
* config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
Declare.
* config/posix/rwlock.h: Same.
* method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
flag after commit or after rollback when restarting.
2011-12-24 Torvald Riegel <triegel@redhat.com>
* beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
(GTM::gtm_thread::try_commit): Changed memory order.
* config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
as parameter.
* config/linux/x86/futex_bits.h (sys_futex0): Same.
* config/linux/sh/futex_bits.h (sys_futex0): Same.
* config/linux/futex_bits.h (sys_futex0): Same.
* config/linux/futex.cc (futex_wait, futex_wake): Same.
* config/linux/futex.h (futex_wait, futex_wake): Same.
* config/linux/rwlock.h (gtm_rwlock::writers,
gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
ints.
* config/linux/rwlock.cc (gtm_rwlock::read_lock,
gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
gtm_rwlock::write_unlock): Fix memory orders and fences.
* config/posix/rwlock.cc (gtm_rwlock::read_lock,
gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
gtm_rwlock::write_unlock): Same.
* config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
* method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
Add comments.
(gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
gl_wt_dispatch::load, gl_wt_dispatch::store,
gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
orders and fences. Add comments.
2011-12-21 Jakub Jelinek <jakub@redhat.com>
* Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
* Makefile.in: Regenerated.
2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
* configure.tgt: Add sh* case.
* config/sh/target.h: New file.
* config/sh/sjlj.S: New file.
* config/linux/sh/futex_bits.h: New file.
2011-12-14 Richard Henderson <rth@redhat.com>
* config/arm/hwcap.h, config/arm/hwcap.cc: New files.
* config/arm/sjlj.S, config/arm/target.h: New files.
* config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
(cfi_rel_offset): New.
* config/linux/futex_bits.h: New file.
* config/linux/futex.cc: Include futex_bits.h here...
* config/linux/futex.h: ... not here.
* Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
* configure.ac (ARCH_AM): New conditional.
* Makefile.in, configure: Rebuild.
* configure.tgt: Handle ARM.
2011-12-13 Richard Henderson <rth@redhat.com>
* config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
signed/unsigned comparison werror.
* local_atomic: New file.
* libitm_i.h: Include it.
(gtm_thread::shared_state): Use atomic template.
* beginend.cc (GTM::gtm_clock): Use atomic template.
(global_tid): Use atomic template if 64-bit atomics available.
(gtm_thread::gtm_thread): Update shared_state access.
(gtm_thread::trycommit): Likewise.
(choose_code_path): Update global_tid access.
* method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
* stmlock.h (GTM::gtm_clock): Use atomic template.
(gtm_get_clock, gtm_inc_clock): Update accesses.
* config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
redundant __sync_synchronize after atomic shared_state access.
* config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
(gtm_rwlock::write_lock_generic): Likewise.
(gtm_rwlock::read_unlock): Likewise.
* config/alpha/target.h (atomic_read_barrier): Remove.
(atomic_write_barrier): Remove.
* config/x86/target.h (atomic_read_barrier): Remove.
(atomic_write_barrier): Remove.
2011-11-30 Richard Henderson <rth@redhat.com>
* libitm_i.h (GTM_longjmp): Swap first and second arguments.
* beginend.c (_ITM_abortTransaction): Update to match.
(GTM::gtm_thread::restart): Likewise.
* config/alpha/sjlj.S (GTM_longjmp): Likewise.
* config/x86/sjlj.S (GTM_longjmp): Likewise.
2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
* Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
* Makefile.in: Regenerate.
2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
* configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
* alloc_cpp.cc: Generate dummy functions if we don't
HAVE_ELF_STYLE_WEAKREF.
* eh_cpp.cc: Likewise.
* configure: Regenerate.
* aclocal.m4: Likewise.
* config.h.in: Likewise.
* Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
* config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
__USER_LABEL_PREFIX__ for targets that use it.
(TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
(_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
in portability to non-elf targets.
(GTM_longjmp): Likewise.
* libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
where required.
2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
* testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
* testsuite/libitm.c/memset-1.c: Likewise.
2011-11-21 Andreas Tobler <andreast@fgznet.ch>
* configure: Regenerate.
2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
(LIBITM_ENABLE_SYMVERS): Handle sun style.
* Makefile.am: Handle sun style versioning.
(libitm_la_LINK): Add $(libitm_la_LDFLAGS).
* configure: Regenerate.
* Makefile.in: Regenerate.
2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/generic/asmcfi.h: Fix comment.
* config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
sequence without .hidden support, error for non-ELF targets.
(GTM_longjmp) [__ELF__]: Only use .hidden if
HAVE_ATTRIBUTE_VISIBILITY.
2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
_ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
Dummy functions.
* eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
__cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
2011-11-16 Uros Bizjak <ubizjak@gmail.com>
PR bootstrap/51098
* acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
* configure: Regenerate.
2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
* testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
.hidden.
(.note.GNU-stack): Only use if __linux__.
* alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
* testsuite/libitm.c/notx.c: Use dg-options "-pthread".
* testsuite/libitm.c/reentrant.c: Likewise.
* testsuite/libitm.c/simple-2.c: Likewise.
* testsuite/libitm.c/txrelease.c: Likewise.
* testsuite/libitm.c++/static_ctor.C: Likewise.
2011-11-10 Richard Henderson <rth@redhat.com>
* config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
* Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
* configure.ac (ARCH_X86_AVX): New conditional.
* Makefile.in, configure: Rebuild.
2011-11-09 Richard Henderson <rth@redhat.com>
* acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
* configure.ac: Use it.
* config.h.in, configure: Rebuild.
* config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
2011-11-09 Richard Henderson <rth@redhat.com>
* barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
* config/alpha/unaligned.h: Remove file.
* config/generic/unaligned.h: Remove file.
* config/x86/unaligned.h: Remove file.
* config/generic/cachepage.h: Remove file.
* config/posix/cachepage.cc: Remove file.
* config/generic/cacheline.cc: Remove file.
* config/x86/cacheline.cc: Remove file.
* config/generic/cacheline.h (gtm_cacheline): Remove the
store_mask, copy_mask, copy_mask_wb methods.
* config/x86/cacheline.h: Likewise.
* config/alpha/cacheline.h: Fall back to generic after setting size.
* config/generic/tls.cc (gtm_mask_stack): Remove.
* config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
(GTM_vpalignr_table): Remove.
* config/x86/x86_sse.cc (GTM_palignr_table): Remove.
(GTM_pshift_table): Remove.
* config/libitm_i.h: Don't include cachepage.h.
* Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
* Makefile.in, testsuite/Makefile.in: Rebuild.
2011-11-09 Richard Henderson <rth@redhat.com>
* config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
to emit branch prediction hint.
* config/x86/sjlj.S: Protect elf directives with __ELF__.
Protect .note.GNU-stack with __linux__.
* configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
* configure, aclocal.m4, config.h.in: Rebuild.
* config/generic/asmcfi.h: New file.
* config/x86/sjlj.S: Use it.
2011-11-08 Richard Henderson <rth@redhat.com>
* local.cc (_ITM_LB): Use a normal call, not a function alias.
2011-11-08 Richard Henderson <rth@redhat.com>
* configure.tgt: Test correct directory for supported cpus.
* configure.ac: Exit if unsupported.
* configure: Rebuild.
* configure.tgt: Delete boilerplate from libgomp for unsupported
targets. Set UNSUPPORTED for unsupported targets.
2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure.tgt: Handle i386 like i[456]86.
* config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
take address.
* config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
!HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
2011-11-05 Aldy Hernandez <aldyh@redhat.com>
* method-wbetl.cc: Update copyright notice.
* aatree.cc: Same.
* util.cc: Same.
* libitm.h: Same.
* memset.cc: Same.
* eh_cpp.cc: Same.
* barrier.tpl: Same.
* useraction.cc: Same.
* stmlock.h: Same.
* memcpy.cc: Same.
* common.h: Same.
* config/generic/tls.cc: Same.
* config/generic/cacheline.h: Same.
* config/generic/cachepage.h: Same.
* config/generic/cacheline.cc: Same.
* config/generic/unaligned.h: Same.
* config/x86/cacheline.h: Same.
* config/x86/cacheline.cc: Same.
* config/x86/unaligned.h: Same.
* config/alpha/cacheline.h: Same.
* config/alpha/unaligned.h: Same.
* config/alpha/sjlj.S: Same.
* config/posix/cachepage.cc: Same.
* config/linux/futex.h: Same.
* config/linux/alpha/futex_bits.h: Same.
2011-11-04 Torvald Riegel <triegel@redhat.com>
* libitm.texi: No cover text and invariant sections.
2011-11-03 Richard Henderson <rth@redhat.com>
* local_type_traits: New file.
* libitm_i.h: Use it. Use C headers, not C++ wrappers.
2011-11-03 Richard Henderson <rth@redhat.com>
* configure.ac: Don't test for gfortran.
* configure: Rebuild.
* testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
* testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
2011-11-03 Aldy Hernandez <aldyh@redhat.com>
* testsuite/libitm.c/memcpy-1.c: Add copyright notice.
* testsuite/libitm.c/memset-1.c: Same.
* testsuite/libitm.c/c.exp: Same.
* testsuite/lib/libitm-dg.exp: Same.
* testsuite/lib/libitm.exp: Same.
* testsuite/libitm.c++/c++.exp: Same.
2011-11-03 Aldy Hernandez <aldyh@redhat.com>
* testsuite/config/default.exp: Update copyright date.
* configure.ac: Add copyright info.
* configure.tgt: Same.
2011-11-03 Aldy Hernandez <aldyh@redhat.com>
* testsuite/libitm.c/reentrant.c: XFAIL.
* testsuite/libitm.c++/static_ctor.C: XFAIL.
2011-10-29 Torvald Riegel <triegel@redhat.com>
* beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
handle aborts.
(_ITM_abortTransaction): Handle aborts of outer transactions.
* libitm_i.h: Same.
* eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
* libitm.texi: Document aborts of outer transactions.
* testsuite/libitm.c/cancel.c: New file.
2011-10-19 Torvald Riegel <triegel@redhat.com>
* testsuite/*: Change __transaction to __transaction_atomic or
__transaction_relaxed.
2011-10-19 Torvald Riegel <triegel@redhat.com>
* config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
(gtm_thr): Same.
2011-10-19 Torvald Riegel <triegel@redhat.com>
* libitm_i.h: Add gl_wt dispatch.
* retry.cc (parse_default_method): Same.
* method-gl.cc: New file.
* Makefile.am: Use method-gl.cc.
* Makefile.in: Rebuild.
2011-10-19 Torvald Riegel <triegel@redhat.com>
* beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
safety if requested by a TM method.
* dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
privatization safety.
* method-serial.cc: Same.
2011-10-19 Torvald Riegel <triegel@redhat.com>
* libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
(GTM::gtm_thread): Renamed local_undo to undolog. Renamed
undolog-related member functions from *_local to *_undolog.
* local.cc (gtm_thread::commit_undolog): Same.
* beginend.cc (GTM::gtm_thread::trycommit): Same.
(GTM::gtm_thread::rollback): Roll back undolog before
dispatch-specific rollback.
2011-10-19 Torvald Riegel <triegel@redhat.com>
* retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
re-initialization of the current method group.
* libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
2011-10-19 Torvald Riegel <triegel@redhat.com>
* alloc.cc (commit_allocations_2): Do not free transaction-local
memory when committing a nested transaction.
2011-10-19 Torvald Riegel <triegel@redhat.com>
* method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
serial-irrevocable dispatch, not serial.
2011-10-19 Torvald Riegel <triegel@redhat.com>
* libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
declarations.
* dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
* method-serial.cc: Implement begin_or_restart().
* beginend.cc (GTM::gtm_thread::begin_transaction): Call
dispatch-specific begin_or_restart().
(GTM::gtm_thread::restart): Same.
2011-08-23 Torvald Riegel <triegel@redhat.com>
* retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
restarting without switching to serial mode.
(GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
transaction state. Choose closed-nesting alternative if available.
(GTM::gtm_thread::set_default_dispatch): New.
(parse_default_method): New.
(GTM::gtm_thread::number_of_threads_changed): New.
* method-serial.cc (GTM::serial_mg): New method group class.
(GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
fini.
(GTM::serial_dispatch): Same.
(GTM::serialirr_onwrite_dispatch): Same.
(GTM::gtm_thread::serialirr_mode): Remove calls to fini.
* beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
registered threads.
(GTM::gtm_thread::gtm_thread): Same.
(_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
(GTM::gtm_thread::trycommit): Same. Reset number of restarts.
(GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
choose dispatch but set state according to dispatch here.
* dispatch.h (GTM::abi_dispatch::fini): Move to method group.
(GTM::method_group): New class.
(GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
* libitm_i.h (GTM::gtm_thread): Add declarations for new members.
* libitm.texi: Document TM methods, method groups, method life cycle.
Rename method sets to method groups.
2011-08-23 Torvald Riegel <triegel@redhat.com>
* config/x86/tls.h: Moved to ...
* config/linux/x86/tls.h: ... here.
2011-08-23 Torvald Riegel <triegel@redhat.com>
* config/x86/tls.h: Use __x86_64__ instead of __LP64__.
Add X32 support.
* config/x86/sjlj.S: Same.
2011-08-19 Torvald Riegel <triegel@redhat.com>
* config/linux/rwlock.h: New file.
* config/linux/rwlock.c: New file.
* configure.ac: Reenable futex support (undo SVN rev 157758).
* Makefile.am: Same.
* configure.tgt: Same.
* config/linux/alpha/futex_bits.h: Same.
* config/linux/futex.h: Same. Return number of woken processes.
* config/linux/futex.cc: Same.
(futex_wait): Remove spinning.
* config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
Use __x86_64__ instead of __LP64__.
* aclocal.m4: Include generic futex checks.
* configure: Rebuild.
* Makefile.in: Rebuild.
* testsuite/Makefile.in: Rebuild.
* beginend.cc: Include pthread.h.
* config/posix/cachepage.cc: Same.
2011-08-12 Torvald Riegel <triegel@redhat.com>
* config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
(abi_disp, set_abi_disp): Move to tx's TLS slot.
(set_gtm_thr): New.
* config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
(set_gtm_thr): New.
(GTM::gtm_thread::thread_num): Removed.
(GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
* libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
tx-to-thread renaming.
* beginend.cc: Adapted to tx-to-thread renaming.
(GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
(GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
* query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
gtm_transaction to gtm_thread.
(_ITM_getThreadnum): Removed. Not supported anymore.
* testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
* libitm.texi: Documented that _ITM_getThreadnum is not supported.
* useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
gtm_tx-to-gtm_thr renaming if necessary.
* eh_cpp.cc: Same.
* local.cc: Same.
* retry.cc: Same.
* clone.cc: Same.
* alloc.cc: Same.
* alloc_c.cc: Same.
* alloc_cpp.cc: Same.
* method-serial.cc: Same.
* config/generic/tls.cc: Same.
* config/posix/rwlock.h (gtm_rwlock): Same.
* config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
2011-08-12 Torvald Riegel <triegel@redhat.com>
* config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
implementation.
(gtm_rwlock::read_unlock): Same.
(gtm_rwlock::write_lock_generic): New. Generalized from ...
(gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
* libitm_i.h (GTM::gtm_transaction): Added shared_state.
* config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
w_upgrade. Replaced by per-transaction flags (in shared_state).
Added c_confirmed_writers.
(GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
GTM::gtm_rwlock::write_upgrade): Add tx parameter.
* retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
* method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
* beginend.cc (GTM::gtm_transaction::begin_transaction,
_ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
* libitm.texi: Document locking conventions and implementations in
libitm.
2011-08-12 Torvald Riegel <triegel@redhat.com>
* libitm_i.h (next_tx): Add list of all threads' transaction.
* beginend.cc (GTM::gtm_transaction::begin_transaction): Register
transaction with list of transactions and ...
(thread_exit_handler): ... deregister here.
* config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
* config/x86/target.h: Same.
2011-08-12 Torvald Riegel <triegel@redhat.com>
* testsuite/libitm.c++/static_ctor.C: New file.
2011-08-12 Torvald Riegel <triegel@redhat.com>
* testsuite/libitm.c/reentrant.c: New file.
2011-08-12 Torvald Riegel <triegel@redhat.com>
* config/generic/tls.h: Remove the free list for transactions and ...
* beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
(GTM::gtm_transaction::operator delete): ... and release here.
(thread_exit_handler): New. Delete tx when thread terminates.
(thread_exit_init): New.
(GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
* testsuite/libitm.c/txrelease.c: New file.
2011-08-12 Torvald Riegel <triegel@redhat.com>