ChangeLog 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326
  1. 2022-02-03 David Seifert <soap@gentoo.org>
  2. Jakub Jelinek <jakub@redhat.com>
  3. * configure.ac: Support --disable-werror.
  4. * configure: Regenerate.
  5. 2022-01-31 Martin Liska <mliska@suse.cz>
  6. * acinclude.m4: Detect *_ld_is_mold and use it.
  7. * configure: Regenerate.
  8. 2022-01-03 Jakub Jelinek <jakub@redhat.com>
  9. * libitm.texi: Bump @copying's copyright year.
  10. 2021-11-26 Iain Sandoe <iain@sandoe.co.uk>
  11. * eh_cpp.cc (GTM::gtm_thread::init_cpp_exceptions): If the
  12. target does not support HAVE_ELF_STYLE_WEAKREF then do not
  13. try to test the __cxa_get_globals against NULL.
  14. 2021-06-17 Jonathan Wakely <jwakely@redhat.com>
  15. PR libstdc++/91488
  16. * testsuite/libitm.c++/libstdc++-pr91488.C: New test.
  17. 2021-01-15 Jakub Jelinek <jakub@redhat.com>
  18. PR target/70454
  19. * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
  20. be added through preprocessor check on
  21. __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
  22. 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
  23. * configure: Re-generate.
  24. 2021-01-01 Jakub Jelinek <jakub@redhat.com>
  25. * libitm.texi: Bump @copying's copyright year.
  26. 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
  27. PR target/97865
  28. * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin.
  29. * configure: Regenerate.
  30. 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
  31. * configure: Regenerate.
  32. 2020-10-01 Alan Modra <amodra@gmail.com>
  33. * config/powerpc/sjlj.S: Support __PCREL__ code.
  34. 2020-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
  35. * config/aarch64/sjlj.S: Add conditional pac-ret protection.
  36. 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
  37. * config/aarch64/sjlj.S: Add BTI marking and related definitions,
  38. and add BTI c to function entries.
  39. 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
  40. * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.
  41. 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
  42. PR bootstrap/95413
  43. * configure: Regenerated.
  44. 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
  45. PR bootstrap/95147
  46. * configure: Regenerated.
  47. 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
  48. * configure: Regenerated.
  49. 2020-05-12 Nathan Sidwell <nathan@acm.org>
  50. Fix throw specifiers on interface.
  51. * libitm/libitm.h (_ITM_NOTHROW): Define.
  52. (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
  53. (_ITM_cxa_begin_catch): Use it.
  54. * eh_cpp.cc: Add throw() to __cxa_allocate_exception,
  55. __cxa_free_exception, __cxa_begin_catch, __cxa_tm_cleanup,
  56. __cxa_get_globals.
  57. (_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
  58. (_ITM_cxa_begin_catch): Likewise.
  59. 2020-05-05 Nathan Sidwell <nathan@acm.org>
  60. * testsuite/lib/libitm.exp (libitm_init): Add
  61. -fdiagnostics-color=never to options.
  62. 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
  63. PR libstdc++/79193
  64. PR libstdc++/88999
  65. * configure: Regenerated.
  66. 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
  67. * configure.ac: Handle `--with-toolexeclibdir='.
  68. * Makefile.in: Regenerate.
  69. * aclocal.m4: Regenerate.
  70. * configure: Regenerate.
  71. * testsuite/Makefile.in: Regenerate.
  72. 2020-01-01 Jakub Jelinek <jakub@redhat.com>
  73. Update copyright years.
  74. * libitm.texi: Bump @copying's copyright year.
  75. 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
  76. PR libgomp/91938
  77. * configure.tgt: Avoid IE tls on *-*-musl*.
  78. 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
  79. * configure: Regenerate.
  80. 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
  81. * config/arm/sjlj.S (ldaddr): Add FDPIC support.
  82. 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
  83. * configure.tgt: Handle *-*-uclinux*.
  84. * configure: Regenerate.
  85. 2019-09-06 Florian Weimer <fweimer@redhat.com>
  86. * configure: Regenerate.
  87. 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
  88. PR other/79543
  89. * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Fix GNU ld --version
  90. scanning to conform to the GNU Coding Standards.
  91. * configure: Regenerate.
  92. 2019-05-03 Jakub Jelinek <jakub@redhat.com>
  93. * Makefile.am (finclude): Remove.
  94. * Makefile.in: Regenerated.
  95. 2019-01-01 Jakub Jelinek <jakub@redhat.com>
  96. Update copyright years.
  97. 2019-01-01 Jakub Jelinek <jakub@redhat.com>
  98. * libitm.texi: Bump @copying's copyright year.
  99. 2018-12-16 Jakub Jelinek <jakub@redhat.com>
  100. PR c++/88482
  101. * eh_cpp.cc (__cxa_throw): Change DEST argument type from
  102. void * to void (*) (void *).
  103. (_ITM_cxa_throw): Likewise.
  104. * libitm.h (_ITM_cxa_throw): Likewise.
  105. * libitm.texi (_ITM_cxa_throw): Likewise.
  106. 2018-12-13 Peter Bergner <bergner@linux.ibm.com>
  107. * config/powerpc/target.h (htm_available): Add support for
  108. PPC_FEATURE2_HTM_NO_SUSPEND. Use __builtin_cpu_supports if available.
  109. 2018-10-31 Joseph Myers <joseph@codesourcery.com>
  110. PR bootstrap/82856
  111. * Makefile.am: Include multilib.am.
  112. (AUTOMAKE_OPTIONS): Add info-in-builddir.
  113. (CLEANFILES): Remove libitm.info.
  114. * configure.ac: Remove AC_PREREQ.
  115. * testsuite/Makefile.am (RUNTEST): Remove quotes.
  116. * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
  117. Regenerate.
  118. 2018-10-30 Nicholas Krause <xerofoify@gmail.com>
  119. PR libitm/86293
  120. * method-serial.cc: Mark varible as potentially unused
  121. to silence warning.
  122. 2018-08-03 Sergei Trofimovich <slyfox@gentoo.org>
  123. * config/sh/sjlj.S: Adjust to use PIC vs normal code to avoid
  124. absolute relocation in a shared library.
  125. 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
  126. PR libitm/85988
  127. * config/linux/x86/tls.h (SEG_READ): Use the offset of
  128. __private_tm as base.
  129. (SEG_WRITE): Likewise.
  130. (SEG_ENCODE_WRITE): Correct the offset of pointer_guard for x32.
  131. (gtm_thr): Replace SEG_READ(10) with SEG_READ(0).
  132. (set_gtm_thr): Replace SEG_WRITE(10) with SEG_WRITE(0).
  133. (abi_disp): Replace SEG_DECODE_READ(11) with SEG_DECODE_READ(1).
  134. (set_abi_disp): Replace SEG_ENCODE_WRITE(11) with
  135. 2018-05-17 Jason Merrill <jason@redhat.com>
  136. * beginend.cc (save): Disable -Werror=deprecated-copy.
  137. 2018-05-02 Tom de Vries <tom@codesourcery.com>
  138. PR testsuite/85106
  139. * testsuite/lib/libitm.exp: Include scanltranstree.exp.
  140. 2018-05-02 Tom de Vries <tom@codesourcery.com>
  141. PR testsuite/85106
  142. * testsuite/lib/libitm.exp: Include scanwpaipa.exp.
  143. 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
  144. * config/x86/sjlj.S (_ITM_beginTransaction): Add
  145. (__CET__ & 2) != 0 check for shadow stack.
  146. (GTM_longjmp): Likewise.
  147. 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
  148. * configure: Regenerated.
  149. 2018-04-23 H.J. Lu <hongjiu.lu@intel.com>
  150. PR target/85489
  151. * config/x86/sjlj.S (GTM_longjmp): Replace jle/jg with jbe/ja.
  152. 2018-04-19 Jakub Jelinek <jakub@redhat.com>
  153. * configure: Regenerated.
  154. 2018-04-18 David Malcolm <dmalcolm@redhat.com>
  155. PR jit/85384
  156. * configure: Regenerate.
  157. 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
  158. PR target/84148
  159. * configure: Regenerate.
  160. 2018-01-03 Jakub Jelinek <jakub@redhat.com>
  161. Update copyright years.
  162. * libitm.texi: Bump @copying's copyright year.
  163. 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
  164. * Makefile.in: Regenerate.
  165. * acinclude.m4: Add enable.m4 and cet.m4.
  166. * config/x86/sjlj.S: Include cet.h.
  167. (_ITM_beginTransaction): Add _CET_ENDBR.
  168. Save Shadow Stack pointer.
  169. (GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
  170. * config/x86/target.h (struct gtm_jmpbuf):
  171. Add new field for Shadow Stack pointer.
  172. * configure: Regenerate.
  173. * configure.ac: Set CET_FLAGS. Update XCFLAGS.
  174. * configure.ac: Update libtool_VERSION for x86.
  175. * testsuite/Makefile.in: Regenerate.
  176. 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
  177. * libitm/config/x86/target.h: Add new field (ssp).
  178. * libitm/config/x86/sjlj.S: Change offsets.
  179. 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  180. * testsuite/lib/libitm.exp: Load scanlang.exp.
  181. 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
  182. * libitm_i.h (sutrct gtm_thread): Fix typo in comment.
  183. 2017-01-21 Jakub Jelinek <jakub@redhat.com>
  184. PR other/79046
  185. * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
  186. of cat to get version from BASE-VER file.
  187. * testsuite/Makefile.in: Regenerated.
  188. 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
  189. * config/x86/target.h (htm_available): Determine vendor from
  190. __get_cpuid_max return. Use signature_INTEL_ebx. Cleanup.
  191. 2017-01-18 Torvald Riegel <triegel@redhat.com>
  192. * config/x86/target.h (htm_available): Add check for some processors
  193. on which TSX is broken.
  194. 2017-01-17 Jakub Jelinek <jakub@redhat.com>
  195. PR other/79046
  196. * configure.ac: Add GCC_BASE_VER.
  197. * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
  198. get version from BASE-VER file.
  199. * testsuite/Makefile.in: Regenerated.
  200. * configure: Regenerated.
  201. * Makefile.in: Regenerated.
  202. 2017-01-04 Alan Modra <amodra@gmail.com>
  203. * Makefile.in: Regenerate.
  204. * testsuite/Makefile.in: Regenerate.
  205. 2017-01-01 Jakub Jelinek <jakub@redhat.com>
  206. Update copyright years.
  207. * libitm.texi: Bump @copying's copyright year.
  208. 2016-12-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  209. * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
  210. * aclocal.m4: Regenerate.
  211. * configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
  212. LIBITM_CHECK_LINKER_HWCAP.
  213. 2016-11-15 Matthias Klose <doko@ubuntu.com>
  214. * configure: Regenerate.
  215. 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
  216. PR libitm/70456
  217. * util.cc (xmalloc): Use posix_memalign to allocate memory on
  218. on cache line if requested.
  219. 2016-03-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
  220. * config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
  221. function attribute to disable floating point in begin_transaction() on
  222. S/390.
  223. * beginend.cc (begin_transaction): Use
  224. TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
  225. 2016-01-22 Torvald Riegel <triegel@redhat.com>
  226. * beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
  227. boundary.
  228. (htm_fastpath): Remove.
  229. (gtm_thread::begin_transaction): Fix HTM fastpath.
  230. (_ITM_commitTransaction): Adapt.
  231. (_ITM_commitTransactionEH): Adapt.
  232. * libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
  233. and accessors.
  234. * libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
  235. * libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
  236. * libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
  237. * libitm/libitm_i.h (htm_fastpath): Remove declaration.
  238. * libitm/method-serial.cc (htm_mg): Adapt.
  239. (gtm_thread::serialirr_mode): Adapt.
  240. * libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
  241. 2016-01-21 Torvald Riegel <triegel@redhat.com>
  242. * testsuite/libitm.c++/libstdc++-safeexc.C: Not supported on darwin
  243. or AIX.
  244. 2016-01-19 Richard Henderson <rth@redhat.com>
  245. PR bootstrap/69343
  246. PR bootstrap/69339
  247. Revert:
  248. 2016-01-13 Richard Henderson <rth@redhat.com>
  249. * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
  250. (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
  251. (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
  252. (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
  253. * configure.ac (ARCH_AARCH64): New conditional.
  254. (ARCH_PPC, ARCH_S390): Likewise.
  255. * Makefile.in, configure: Rebuild.
  256. * libitm.h (_ITM_TYPE_M128): Always define.
  257. * vect64.cc: Split ...
  258. * vect128.cc: ... out of...
  259. * config/x86/x86_sse.cc: ... here.
  260. * config/arm/neon.cc: New file.
  261. 2016-01-19 Torvald Riegel <triegel@redhat.com>
  262. * local_type_traits: Remove file.
  263. * libitm_i.h: Don't include it anymore.
  264. (sized_integral): Remove.
  265. 2016-01-16 Torvald Riegel <triegel@redhat.com>
  266. * method-gl.cc (gl_wt_dispatch::trycommit): Ensure proxy privatization
  267. safety.
  268. * method-ml.cc (ml_wt_dispatch::trycommit): Likewise.
  269. * libitm/testsuite/libitm.c/priv-1.c: New.
  270. 2015-01-15 Torvald Riegel <triegel@redhat.com>
  271. testsuite/libitm.c++/libstdc++-safeexc.C: New.
  272. 2016-01-13 Torvald Riegel <triegel@redhat.com>
  273. * beginend.cc (gtm_thread::trycommit): Fix seq_cst fences.
  274. * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
  275. (gtm_rwlock::write_unlock): Likewise.
  276. 2016-01-13 Richard Henderson <rth@redhat.com>
  277. * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
  278. (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
  279. (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
  280. (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
  281. * configure.ac (ARCH_AARCH64): New conditional.
  282. (ARCH_PPC, ARCH_S390): Likewise.
  283. * Makefile.in, configure: Rebuild.
  284. * libitm.h (_ITM_TYPE_M128): Always define.
  285. * vect64.cc: Split ...
  286. * vect128.cc: ... out of...
  287. * config/x86/x86_sse.cc: ... here.
  288. * config/arm/neon.cc: New file.
  289. 2016-01-13 Torvald Riegel <triegel@redhat.com>
  290. * beginend.cc (gtm_thread::trycommit): Fix privatization safety.
  291. * config/linux/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
  292. * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Likewise.
  293. * dispatch.h (abi_dispatch::snapshot_most_recent): New.
  294. * method-gl.cc (gl_wt_dispatch::snapshot_most_recent): New.
  295. * method-ml.cc (ml_wt_dispatch::snapshot_most_recent): New.
  296. * method-serial.cc (serial_dispatch::snapshot_most_recent): New.
  297. (serialirr_dispatch::snapshot_most_recent): New.
  298. (serialirr_onwrite_dispatch::snapshot_most_recent): New.
  299. 2016-01-12 Torvald Riegel <triegel@redhat.com>
  300. * libitm_i.h (gtm_mask_stack): Remove.
  301. * beginend.cc (gtm_stmlock_array, gtm_clock): Likewise.
  302. * stmlock.h: Remove file.
  303. * config/alpha/cacheline.h: Likewise.
  304. * config/generic/cacheline.h: Likewise.
  305. * config/powerpc/cacheline.h: Likewise.
  306. * config/sparc/cacheline.h: Likewise.
  307. * config/x86/cacheline.h: Likewise.
  308. 2016-01-04 Jakub Jelinek <jakub@redhat.com>
  309. Update copyright years.
  310. * libitm.texi: Bump @copying's copyright year.
  311. 2015-11-26 Torvald Riegel <triegel@redhat.com>
  312. * method-ml.cc (ml_mg): Use multiplicative instead of simple hashing.
  313. (ml_wt_dispatch::pre_write): Adapt.
  314. (ml_wt_dispatch::pre_load): Likewise.
  315. 2015-11-22 Torvald Riegel <triegel@redhat.com>
  316. * libitm_i.h (gtm_alloc_action): Remove union.
  317. * testsuite/libitm.c/alloc-1.c: New.
  318. 2015-11-19 Torvald Riegel <triegel@redhat.com>
  319. * testsuite/libitm.c++/eh-5.C: New.
  320. * libitm.h (_ITM_cxa_free_exception): New.
  321. * libitm.map (_ITM_cxa_free_exception): Add it.
  322. * libitm.texi: Update ABI docs.
  323. * libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
  324. (gtm_transaction_cp::cxa_uncaught_count): Add.
  325. (gtm_thread::cxa_unthrown): Remove.
  326. (gtm_thread::cxa_uncaught_count_ptr): Add.
  327. (gtm_thread::cxa_uncaught_count): Add.
  328. (gtm_thread::drop_references_allocations): Rename to...
  329. (gtm_thread::discard_allocation): ... this and adapt.
  330. (gtm_thread::init_cpp_exceptions): New.
  331. * beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
  332. (gtm_thread::begin_transaction): Likewise.
  333. (gtm_transaction_cp::save): Likewise.
  334. (gtm_thread::trycommit): Likewise.
  335. * eh_cpp.cc: Add overview comments.
  336. (__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
  337. (free_any_exception, _ITM_cxa_free_exception): New.
  338. (gtm_thread::init_cpp_exceptions): Define.
  339. (_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
  340. (_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
  341. (gtm_thread::revert_cpp_exceptions): Likewise.
  342. 2015-11-09 Torvald Riegel <triegel@redhat.com>
  343. * alloc_cpp.cc (_ZdlPvX, _ZdlPvXRKSt9nothrow_t, _ZGTtdlPvX,
  344. _ZGTtdlPvXRKSt9nothrow_t, delsz_opnt): New.
  345. * libitm.map: Add _ZGTtdlPvX and _ZGTtdlPvXRKSt9nothrow_t.
  346. * libitm_i.h (gtm_alloc_action): Add free_fn_sz and sz. Add comments.
  347. (gtm_thread::forget_allocations): New overload with size_t argument.
  348. * alloc.c (gtm_thread::forget_allocation): Define new overload and
  349. adapt existing one.
  350. (gtm_thread::record_allocation): Adapt.
  351. (gtm_thread::commit_allocations_1): Adapt.
  352. (gtm_thread::commit_allocations_2): Adapt.
  353. * testsuite/libitm.c++/newdelete.C: New.
  354. 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
  355. Joseph Myers <joseph@codesourcery.com>
  356. Mark Shinwell <shinwell@codesourcery.com>
  357. Andrew Stubbs <ams@codesourcery.com>
  358. Rich Felker <dalias@libc.org>
  359. * config/sh/sjlj.S (_ITM_beginTransaction): Bypass PLT calling
  360. GTM_begin_transaction for compatibility with FDPIC.
  361. 2015-10-09 David Malcolm <dmalcolm@redhat.com>
  362. * testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
  363. using load_gcc_lib.
  364. 2015-08-20 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> (tiny change)
  365. PR libitm/61164
  366. * local_atomic (__always_inline): Rename to...
  367. (__libitm_always_inline): ... this.
  368. 2015-07-03 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
  369. PR target/52482
  370. * config/powerpc/sjlj.S: Port to Xcode 2.5.
  371. 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
  372. * config/linux/x86/futex_bits.h (sys_futex0) [__x86_64__]: Change
  373. operands "op" and "val" to int.
  374. 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
  375. * config/linux/sh/futex_bits.h (sys_futex0) Change operands
  376. "op" and "val" to int.
  377. 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
  378. * config/linux/alpha/futex_bits.h (sys_futex0) Change operands
  379. "op" and "val" to int.
  380. 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
  381. * config/linux/futex.cc (gtm_futex_wait, gtm_futex_wake):
  382. Declare as static int.
  383. (FUTEX_PRIVATE_FLAG): Remove L suffix.
  384. * config/linux/futex_bits.h (sys_futex0) Change operand "op" to int.
  385. 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
  386. * config/linux/x86/futex_bits.h (sys_futex0) [__PIC__]: Remove
  387. sys_futex0 function.
  388. 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
  389. * Makefile.in: Regenerated with automake-1.11.6.
  390. * aclocal.m4: Likewise.
  391. * configure: Likewise.
  392. * testsuite/Makefile.in: Likewise.
  393. 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
  394. * config/arm/hwcap.cc: Use fcntl.h instead of sys/fcntl.h.
  395. * config/linux/x86/tls.h: Only use __GLIBC_PREREQ if defined.
  396. 2015-01-15 H.J. Lu <hongjiu.lu@intel.com>
  397. PR libitm/64360
  398. * libitm.c/stackundo.c (test2): Make it static.
  399. (test1): Likewise.
  400. 2015-01-05 Jakub Jelinek <jakub@redhat.com>
  401. Update copyright years.
  402. 2015-01-05 Jakub Jelinek <jakub@redhat.com>
  403. * libitm.texi: Bump @copying's copyright year.
  404. 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
  405. * testsuite/lib/libitm.exp: Load target-utils.exp.
  406. Move load of target-supports.exp earlier.
  407. 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
  408. * configure.tgt (x86_64): Tune -m32 multilib to generic.
  409. 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
  410. PR bootstrap/63784
  411. * configure: Regenerated.
  412. 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  413. PR target/63610
  414. * configure: Regenerate.
  415. 2014-10-06 Marek Polacek <polacek@redhat.com>
  416. * testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
  417. * testsuite/libitm.c/memset-1.c: Likewise.
  418. 2014-07-24 Richard Henderson <rth@redhat.com>
  419. * config/aarch64/sjlj.S (_ITM_beginTransaction): Use post-inc
  420. addressing mode in epilogue.
  421. 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  422. * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): Check for
  423. -mclear-hwcap instead.
  424. * configure: Regenerate.
  425. * clearcap.map: Remove.
  426. 2014-05-21 John Marino <gnugcc@marino.st>
  427. * configure.tgt (*-*-dragonfly*): New target.
  428. 2014-05-19 Richard Henderson <rth@redhat.com>
  429. * config/aarch64/sjlj.S: New file.
  430. * config/aarch64/target.h: New file.
  431. * configure.tgt: Enable aarch64.
  432. 2014-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  433. * config/generic/asmcfi.h: Also check for
  434. __GCC_HAVE_DWARF2_CFI_ASM.
  435. 2013-04-02 Richard Henderson <rth@redhat.com>
  436. * config/alpha/target.h (PAGE_SIZE, FIXED_PAGE_SIZE): Remove.
  437. * config/arm/target.h, config/sh/target.h: Likewise.
  438. * config/sparc/target.h, config/x86/target.h: Likewise.
  439. 2014-03-26 Jakub Jelinek <jakub@redhat.com>
  440. * config/linux/futex_bits.h: Include errno.h.
  441. (sys_futex0): If syscall returns -1, return -errno rather than
  442. -1.
  443. 2014-03-26 Joseph Myers <joseph@codesourcery.com>
  444. * libitm.texi (Index): Rename to Library Index.
  445. 2014-01-13 H.J. Lu <hongjiu.lu@intel.com>
  446. PR libitm/53113
  447. * Makefile.am (x86_sse.lo): Append -msse to CXXFLAGS.
  448. (x86_avx.lo): Append -mavx to CXXFLAGS.
  449. * Makefile.in: Regenerate.
  450. 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
  451. Update copyright years
  452. 2014-01-02 Tobias Burnus <burnus@net-b.de>
  453. * libitm.texi: Bump @copying's copyright year.
  454. 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  455. * config/powerpc/sjlj.S [__powerpc64__ && _CALL_ELF == 2]:
  456. (FUNC): Define ELFv2 variant.
  457. (END): Likewise.
  458. (HIDDEN): Likewise.
  459. (CALL): Likewise.
  460. (BASE): Likewise.
  461. (LR_SAVE): Likewise.
  462. 2013-09-20 Alan Modra <amodra@gmail.com>
  463. * configure: Regenerate.
  464. 2013-08-30 Torvald Riegel <triegel@redhat.com>
  465. * config/posix/rwlock.cc: Fix initialization order.
  466. 2013-08-30 Torvald Riegel <triegel@redhat.com>
  467. * libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
  468. (htm_fastpath): Assign an asm name.
  469. * libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
  470. HTM fast paths.
  471. (_ITM_actions): Likewise.
  472. * config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
  473. x86_64.
  474. * config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
  475. * config/posix/rwlock.h (gtm_rwlock): Update comments. Move summary
  476. field to the start of the structure.
  477. * config/linux/rwlock.h (gtm_rwlock): Update comments.
  478. * beginend.cc (gtm_thread::begin_transaction): Add retry policy
  479. handling for custom HTM fast paths.
  480. 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  481. Revert:
  482. 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  483. * configure.tgt: Add -msoft-float to XCFLAGS.
  484. 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  485. * configure.tgt: Add -msoft-float to XCFLAGS.
  486. 2013-07-29 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  487. * config/s390/target.h (htm_begin, htm_commit, htm_abort)
  488. (htm_transaction_active): Enable zEC12 instructions in the
  489. assembler.
  490. * configure.tgt: Remove -Wa,-march=zEC12 from XCFLAGS.
  491. 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  492. * acinclude.m4: Add htm asm check for s390.
  493. * configure.tgt: Add -mhtm and -Wa,-march=zEC12 to the options.
  494. * configure: Regenerate.
  495. * config/s390/target.h: Remove __HTM__ check.
  496. (htm_available): Call getauxval to get hwcaps and check whether
  497. HTM is available or not.
  498. 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
  499. * acinclude.m4 (LIBITM_CHECK_AS_HTM): New.
  500. * configure.ac: Use it.
  501. (AC_CHECK_HEADERS): Check for sys/auxv.h.
  502. (AC_CHECK_FUNCS): Check for getauxval.
  503. * config.h.in, configure: Rebuild.
  504. * configure.tgt (target_cpu): Add -mhtm to XCFLAGS.
  505. * config/powerpc/target.h: Include sys/auxv.h and htmintrin.h.
  506. (USE_HTM_FASTPATH): Define.
  507. (_TBEGIN_STARTED, _TBEGIN_INDETERMINATE, _TBEGIN_PERSISTENT,
  508. _HTM_RETRIES) New macros.
  509. (htm_abort, htm_abort_should_retry, htm_available, htm_begin, htm_init,
  510. htm_begin_success, htm_commit, htm_transaction_active): New functions.
  511. 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  512. * config/s390/target.h: Include htmintrin.h.
  513. (_HTM_ITM_RETRIES): New macro definition.
  514. (htm_available, htm_init, htm_begin, htm_begin_success)
  515. (htm_commit, htm_abort, htm_abort_should_retry): New functions.
  516. 2013-06-20 Iain Sandoe <iain@codesourcery.com>
  517. Cesar Philippidis <cesar@codesourcery.com>
  518. * testsuite/lib/libitm.exp: Reorder lib loads into dependency order.
  519. Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
  520. * testsuite/libitm.c/c.exp: load_gcc_lib gcc-dg.exp.
  521. * testsuite/libitm.c++/c++.exp: load_gcc_lib gcc-dg.exp.
  522. 2013-06-20 Torvald Riegel <triegel@redhat.com>
  523. * query.cc (_ITM_inTransaction): Abort when using the HTM fastpath.
  524. (_ITM_getTransactionId): Same.
  525. * config/x86/target.h (htm_transaction_active): New.
  526. 2013-06-20 Torvald Riegel <triegel@redhat.com>
  527. PR libitm/57643
  528. * beginend.cc (gtm_thread::begin_transaction): Handle reentrancy in
  529. the HTM fastpath.
  530. 2013-03-31 Gerald Pfeifer <gerald@pfeifer.com>
  531. PR bootstrap/56714
  532. * local_atomic (__always_inline): Always define our version.
  533. (__calculate_memory_order): Mark inline.
  534. (atomic_thread_fence): Ditto.
  535. (atomic_signal_fence): Ditto.
  536. (atomic_bool::atomic_flag_test_and_set_explicit): Ditto.
  537. (atomic_bool::atomic_flag_clear_explicit): Ditto.
  538. (atomic_bool::atomic_flag_test_and_set): Ditto.
  539. (atomic_bool::atomic_flag_clear): Ditto.
  540. 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
  541. * config/s390/sjlj.S: New file.
  542. * config/s390/target.h: New file.
  543. * configure.tgt: Set options for S/390.
  544. 2013-03-23 Andi Kleen <ak@linux.intel.com>
  545. * local_atomic (__always_inline): Add.
  546. (__calculate_memory_order, atomic_thread_fence,
  547. atomic_signal_fence, test_and_set, clear, store, load,
  548. exchange, compare_exchange_weak, compare_exchange_strong,
  549. fetch_add, fetch_sub, fetch_and, fetch_or, fetch_xor):
  550. Add __always_inline to force inlining.
  551. 2013-02-11 Iain Sandoe <iain@codesourcery.com>
  552. Jack Howarth <howarth@bromo.med.uc.edu>
  553. Patrick Marlier <patrick.marlier@gmail.com>
  554. PR libitm/55693
  555. * alloc_cpp.cc: Enable function declarations on darwin.
  556. * eh_cpp.cc: Likewise.
  557. 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
  558. Update copyright years.
  559. 2012-11-09 Torvald Riegel <triegel@redhat.com>
  560. * beginend.cc (htm_fastpath): New.
  561. (gtm_thread::begin_transaction, _ITM_commitTransaction,
  562. _ITM_commitTransactionEH): Add HTM fastpath handling.
  563. * config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
  564. * config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
  565. * config/x86/target.h (htm_available, htm_init, htm_begin_success,
  566. htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
  567. * configure.tgt: Add -mrtm to XCFLAGS.
  568. * method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
  569. (gtm_thread::serialirr_mode): Add HTM fastpath handling.
  570. * libitm_i.h (htm_fastpath, dispatch_htm): Declare.
  571. * retry.cc (parse_default_method): Add HTM method parsing.
  572. (gtm_thread::number_of_threads_changed): Use HTM by default if
  573. available.
  574. 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
  575. * configure: Regenerate.
  576. 2012-10-31 Richard Henderson <rth@redhat.com>
  577. * acinclude.m4 (LIBITM_CHECK_AS_RTM): New.
  578. * configure.ac: Use it.
  579. * config.h.in, configure: Rebuild.
  580. * testsuite/Makefile.in: Rebuild.
  581. 2012-10-24 Torvald Riegel <triegel@redhat.com>
  582. * libitm.texi: Clarify ABI requirements for data-logging functions.
  583. 2012-10-24 Torvald Riegel <triegel@redhat.com>
  584. * retry.cc (gtm_thread::decide_begin_dispatch): Ask dispatch whether
  585. it requires serial mode instead of assuming that for certain
  586. dispatchs.
  587. * dispatch.h (abi_dispatch::requires_serial): New.
  588. (abi_dispatch::abi_dispatch): Adapt.
  589. * method-gl.cc (gl_wt_dispatch::gl_wt_dispatch): Adapt.
  590. * method-ml.cc (ml_wt_dispatch::ml_wt_dispatch): Same.
  591. * method-serial.cc (serialirr_dispatch::serialirr_dispatch,
  592. serial_dispatch::serial_dispatch,
  593. serialirr_onwrite_dispatch::serialirr_onwrite_dispatch): Same.
  594. 2012-10-02 Uros Bizjak <ubizjak@gmail.com>
  595. * config/x86/target.h (struct gtm_jmpbuf): Merge x86_64
  596. and ia32 declarations some more.
  597. * config/x86/sjlj.S (_ITM_beginTransaction): Move ret to common code.
  598. 2012-09-20 Jakub Jelinek <jakub@redhat.com>
  599. PR other/43620
  600. * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
  601. * configure: Regenerate.
  602. * Makefile.in: Regenerate.
  603. 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
  604. * configure: Regenerated.
  605. 2012-07-31 Uros Bizjak <ubizjak@gmail.com>
  606. * config/x86/target.h (cpu_relax): Use __builtin_ia32_pause.
  607. 2012-05-21 Patrick Marlier <patrick.marlier@gmail.com>
  608. * eh_cpp.cc: Fix __cxa_end_catch declaration.
  609. 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
  610. * configure: Regenerated.
  611. 2012-04-04 H.J. Lu <hongjiu.lu@intel.com>
  612. PR libitm/52854
  613. * config/x86/target.h (gtm_jmpbuf): Replace long with long long
  614. for x86-64.
  615. 2012-04-03 Tristan Gingold <gingold@adacore.com>
  616. * configure: Regenerate.
  617. 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
  618. PR bootstrap/52812
  619. * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
  620. 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
  621. * testsuite/lib/libitm.exp: load fortran-modules.exp
  622. 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  623. * configure.tgt (*-*-irix6*): Remove.
  624. 2012-03-13 Torvald Riegel <triegel@redhat.com>
  625. PR libitm/52526
  626. * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
  627. wake-up.
  628. 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  629. * configure.tgt (*-*-osf*): Remove.
  630. * configure: Regenerate.
  631. 2012-03-05 Torvald Riegel <triegel@redhat.com>
  632. * dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
  633. memtransfer/memset if size isn't larger than zero.
  634. 2012-03-02 Torvald Riegel <triegel@redhat.com>
  635. * libitm.texi: Link to specification and add a usage example.
  636. 2012-02-24 Torvald Riegel <triegel@redhat.com>
  637. * retry.cc (GTM::gtm_thread::number_of_threads_changed): Change
  638. default dispatch for more than 1 thread to ml_wt.
  639. 2012-02-20 Torvald Riegel <triegel@redhat.com>
  640. * method-gl.cc (gl_wt_dispatch::orec): Put on separate cacheline.
  641. 2012-02-20 Torvald Riegel <triegel@redhat.com>
  642. * method-gl.cc (gl_wt_dispatch::rollback): Optimize memory orders.
  643. 2012-02-20 Torvald Riegel <triegel@redhat.com>
  644. * method-gl.cc (gl_wt_dispatch::trycommit): Remove handling of
  645. serial mode corner cases made obsolete by prior gtm_rwlock changes.
  646. (gl_wt_dispatch.rollback): Same.
  647. 2012-02-20 Torvald Riegel <triegel@redhat.com>
  648. * method-gl.cc (gl_wt_dispatch::pre_write): Optimize memory orders.
  649. 2012-02-20 Torvald Riegel <triegel@redhat.com>
  650. * method-gl.cc (gl_wt_dispatch::memtransfer_static): Add missing undo
  651. for RfW src. Optimize number of calls to gtm_thr.
  652. 2012-02-20 Torvald Riegel <triegel@redhat.com>
  653. * beginend.cc (GTM::gtm_thread::begin_transaction): Move serial lock
  654. acquisition to ...
  655. * retry.cc (GTM::gtm_thread::decide_begin_dispatch): ... here.
  656. (default_dispatch): Make atomic.
  657. (GTM::gtm_thread::set_default_dispatch): Access atomically.
  658. (GTM::gtm_thread::decide_retry_strategy): Access atomically and
  659. use decide_begin_dispatch() if default_dispatch might have changed.
  660. (GTM::gtm_thread::number_of_threads_changed): Initialize
  661. default_dispatch here.
  662. 2012-02-15 Iain Sandoe <iains@gcc.gnu.org>
  663. Patrick Marlier <patrick.marlier@gmail.com>
  664. PR libitm/52220
  665. * alloc_cpp.cc: No dummy definitions for darwin.
  666. * eh_cpp.cc: Likewise.
  667. 2012-02-14 Richard Henderson <rth@redhat.com>
  668. * config/x86/target.h (GTM_longjmp): Correct the .cfi corrections.
  669. 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
  670. * config/x86/target.h (GTM_longjmp): Correct .cfi directives.
  671. 2012-02-14 Torvald Riegel <triegel@redhat.com>
  672. * libitm_i.h (GTM::gtm_rwlog_entry): New.
  673. (GTM::gtm_thread): Add read and write logs.
  674. (GTM::dispatch_ml_wt): Declare.
  675. * retry.cc (parse_default_method): Support ml_wt.
  676. * method-ml.cc: New file.
  677. * Makefile.am: Add method-ml.cc.
  678. * Makefile.in: Regenerate.
  679. 2012-02-14 Torvald Riegel <triegel@redhat.com>
  680. * dispatch.h (GTM::abi_dispatch::supports): New.
  681. (GTM::method_group::reinit): New.
  682. * retry.cc (GTM::gtm_thread::decide_retry_strategy): Use reinit().
  683. (GTM::gtm_thread::number_of_threads_changed): Check that the method
  684. supports the current situation.
  685. 2012-02-14 Torvald Riegel <triegel@redhat.com>
  686. * util.cc (GTM::xcalloc): New.
  687. * common.h (GTM::xcalloc): Declare.
  688. 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
  689. * config/sparc/target.h (cpu_relax): Read from CC register.
  690. * config/sparc/sjlj.S (GTM_longjmp): Restore %fp atomically.
  691. 2012-02-14 Uros Bizjak <ubizjak@gmail.com>
  692. * config/x86/target.h (GTM_longjmp): Jump indirect from memory address.
  693. 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
  694. * configure.tgt (target_cpu): Handle sparc and sparc64/sparcv9.
  695. * config/sparc/cacheline.h: New file.
  696. * config/sparc/target.h: Likewise.
  697. * config/sparc/sjlj.S: Likewise.
  698. * config/linux/sparc/futex_bits.h: Likewise.
  699. 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
  700. * configure.ac (link_itm): Fix comment.
  701. * configure: Regenerate.
  702. * testsuite/lib/libitm.exp: Do not pass -litm for the link.
  703. 2012-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  704. PR libitm/51822
  705. * testsuite/libitm.c++/c++.exp (lang_link_flags): Add -shared-libgcc.
  706. Correct libgomp references.
  707. 2012-01-24 Torvald Riegel <triegel@redhat.com>
  708. * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader
  709. wake-up.
  710. 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
  711. * config/x86/target.h (gtm_jmpbuf) [__x86_64__]: Move rip to the
  712. end of structure.
  713. * config/x86/sjlj.S (_ITM_beginTransaction) [__x86_64__]: Update
  714. offset values. Do not copy return address. Decrement stack
  715. by 56 bytes only.
  716. (GTM_longjump) [__x86_64__]: Update offset values.
  717. 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
  718. PR libitm/51830
  719. * config/x86/sjlj.S (_ITM_beginTransaction) [!__x86_64__]: Load
  720. the first function argument to %eax.
  721. 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  722. * libitm.h (_ITM_getThreadnum): Remove.
  723. * libitm.map (_ITM_getThreadnum): Remove from LIBITM_1.0.
  724. 2012-01-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  725. * clearcap.map: New file.
  726. * acinclude.m4 (LIBITM_CHECK_LINKER_HWCAP): New test.
  727. * configure.ac: Call it.
  728. Clear HWCAP_LDFLAGS if defaulting to -mavx.
  729. * Makefile.am (AM_LDFLAGS): Add $(HWCAP_LDFLAGS)
  730. * configure: Regenerate.
  731. * Makefile.in: Regenerate.
  732. * testsuite/Makefile.in: Regenerate.
  733. 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  734. PR libitm/51173
  735. * testsuite/libitm.c++/static_ctor.C: Skip test, note PR, remove
  736. include, exclude options.
  737. 2012-01-14 Torvald Riegel <triegel@redhat.com>
  738. * local.cc (GTM::gtm_undolog::rollback): Truncate undo log after
  739. rolling back.
  740. * containers.h (GTM::vector::set_size): New.
  741. 2012-01-14 Torvald Riegel <triegel@redhat.com>
  742. PR libitm/51855
  743. * config/generic/tls.h (GTM::mask_stack_top): New.
  744. (GTM::mask_stack_bottom): Declare.
  745. * config/generic/tls.c (GTM::mask_stack_bottom): New.
  746. * local.cc (gtm_undolog::rollback): Filter out any updates that
  747. overlap the libitm stack. Add current transaction as parameter.
  748. * libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
  749. * beginend.cc (GTM::gtm_thread::rollback): Adapt.
  750. * testsuite/libitm.c/stackundo.c: New test.
  751. 2012-01-10 Richard Henderson <rth@redhat.com>
  752. * libitm_i.h (_Unwind_DeleteException): Declare weak.
  753. * eh_cpp.cc (_Unwind_DeleteException): Define for
  754. !HAVE_ELF_STYLE_WEAKREF.
  755. 2012-01-08 Torvald Riegel <triegel@redhat.com>
  756. * local.cc (GTM_LB): Use GTM::gtm_undolog.
  757. (GTM::gtm_thread::drop_references_undolog): Remove.
  758. (GTM::gtm_thread::commit_undolog,
  759. GTM::gtm_thread::rollback_undolog): Move to ...
  760. * libitm_i.h (GTM::gtm_undolog): ...here. New.
  761. (GTM::gtm_undolog_entry): Remove.
  762. (GTM::gtm_thread): Adapt.
  763. * beginend.cc (GTM::gtm_thread::rollback): Adapt.
  764. (GTM::gtm_thread::trycommit): Adapt.
  765. * method-serial.cc (serial_dispatch::log): Adapt.
  766. * method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
  767. (gl_wt_dispatch::store): Fix likely/unlikely.
  768. * containers.h (GTM::vector::resize): Add additional_capacity
  769. parameter and handle it.
  770. (GTM::vector::resize_noinline): New/adapt.
  771. (GTM::vector::push): New.
  772. 2012-01-06 Richard Henderson <rth@redhat.com>
  773. * configure.tgt: Support powerpc-linux and powerpc-darwin.
  774. * config/linux/powerpc/futex_bits.h: New file.
  775. * config/powerpc/cacheline.h: New file.
  776. * config/powerpc/sjlj.S: New file.
  777. * config/powerpc/target.h: New file.
  778. * config/generic/asmcfi.h (cfi_offset): New.
  779. (cfi_restore, cfi_undefined): New.
  780. 2012-01-05 Aldy Hernandez <aldyh@redhat.com>
  781. PR other/51171
  782. * testsuite/libitm.c/reentrant.c: Remove xfail.
  783. (thread): Pass x to pure().
  784. From Patrik Marlier <patrick.marlier@gmail.com>.
  785. 2011-12-24 Torvald Riegel <triegel@redhat.com>
  786. * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
  787. privatization safety if already in serial mode.
  788. 2011-12-24 Torvald Riegel <triegel@redhat.com>
  789. * beginend.cc (GTM::gtm_thread::restart): Add and handle
  790. finish_serial_upgrade parameter.
  791. * libitm.h (GTM::gtm_thread::restart): Adapt declaration.
  792. * config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
  793. Don't unset reader flag.
  794. (GTM::gtm_rwlock::write_upgrade_finish): New.
  795. * config/posix/rwlock.cc: Same.
  796. * config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
  797. Declare.
  798. * config/posix/rwlock.h: Same.
  799. * method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
  800. flag after commit or after rollback when restarting.
  801. 2011-12-24 Torvald Riegel <triegel@redhat.com>
  802. * beginend.cc (GTM::gtm_thread::begin_transaction): Add comment.
  803. (GTM::gtm_thread::try_commit): Changed memory order.
  804. * config/linux/alpha/futex_bits.h (sys_futex0): Take atomic int
  805. as parameter.
  806. * config/linux/x86/futex_bits.h (sys_futex0): Same.
  807. * config/linux/sh/futex_bits.h (sys_futex0): Same.
  808. * config/linux/futex_bits.h (sys_futex0): Same.
  809. * config/linux/futex.cc (futex_wait, futex_wake): Same.
  810. * config/linux/futex.h (futex_wait, futex_wake): Same.
  811. * config/linux/rwlock.h (gtm_rwlock::writers,
  812. gtm_rwlock::writer_readers, gtm_rwlock::readers): Change to atomic
  813. ints.
  814. * config/linux/rwlock.cc (gtm_rwlock::read_lock,
  815. gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
  816. gtm_rwlock::write_unlock): Fix memory orders and fences.
  817. * config/posix/rwlock.cc (gtm_rwlock::read_lock,
  818. gtm_rwlock::write_lock_generic, gtm_rwlock::read_unlock,
  819. gtm_rwlock::write_unlock): Same.
  820. * config/linux/rwlock.h (gtm_rwlock::summary): Change to atomic int.
  821. * method-gl.cc (gl_mg::init, gl_wt_dispatch::memtransfer_static,
  822. gl_wt_dispatch::memset_static, gl_wt_dispatch::begin_or_restart):
  823. Add comments.
  824. (gl_wt_dispatch::pre_write, gl_wt_dispatch::validate,
  825. gl_wt_dispatch::load, gl_wt_dispatch::store,
  826. gl_wt_dispatch::try_commit, gl_wt_dispatch::rollback): Fix memory
  827. orders and fences. Add comments.
  828. 2011-12-21 Jakub Jelinek <jakub@redhat.com>
  829. * Makefile.am (AM_CXXFLAGS): Put $(XCFLAGS) first.
  830. * Makefile.in: Regenerated.
  831. 2011-12-17 Kaz Kojima <kkojima@gcc.gnu.org>
  832. * configure.tgt: Add sh* case.
  833. * config/sh/target.h: New file.
  834. * config/sh/sjlj.S: New file.
  835. * config/linux/sh/futex_bits.h: New file.
  836. 2011-12-14 Richard Henderson <rth@redhat.com>
  837. * config/arm/hwcap.h, config/arm/hwcap.cc: New files.
  838. * config/arm/sjlj.S, config/arm/target.h: New files.
  839. * config/generic/asmcfi.h (cfi_adjust_cfa_offset): New.
  840. (cfi_rel_offset): New.
  841. * config/linux/futex_bits.h: New file.
  842. * config/linux/futex.cc: Include futex_bits.h here...
  843. * config/linux/futex.h: ... not here.
  844. * Makefile.am (libitm_la_SOURCES) <ARCH_ARM>: Add hwcap.cc.
  845. * configure.ac (ARCH_AM): New conditional.
  846. * Makefile.in, configure: Rebuild.
  847. * configure.tgt: Handle ARM.
  848. 2011-12-13 Richard Henderson <rth@redhat.com>
  849. * config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
  850. signed/unsigned comparison werror.
  851. * local_atomic: New file.
  852. * libitm_i.h: Include it.
  853. (gtm_thread::shared_state): Use atomic template.
  854. * beginend.cc (GTM::gtm_clock): Use atomic template.
  855. (global_tid): Use atomic template if 64-bit atomics available.
  856. (gtm_thread::gtm_thread): Update shared_state access.
  857. (gtm_thread::trycommit): Likewise.
  858. (choose_code_path): Update global_tid access.
  859. * method-gl.cc (gl_mg::orec): Use atomic template. Update all users.
  860. * stmlock.h (GTM::gtm_clock): Use atomic template.
  861. (gtm_get_clock, gtm_inc_clock): Update accesses.
  862. * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
  863. redundant __sync_synchronize after atomic shared_state access.
  864. * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
  865. (gtm_rwlock::write_lock_generic): Likewise.
  866. (gtm_rwlock::read_unlock): Likewise.
  867. * config/alpha/target.h (atomic_read_barrier): Remove.
  868. (atomic_write_barrier): Remove.
  869. * config/x86/target.h (atomic_read_barrier): Remove.
  870. (atomic_write_barrier): Remove.
  871. 2011-11-30 Richard Henderson <rth@redhat.com>
  872. * libitm_i.h (GTM_longjmp): Swap first and second arguments.
  873. * beginend.c (_ITM_abortTransaction): Update to match.
  874. (GTM::gtm_thread::restart): Likewise.
  875. * config/alpha/sjlj.S (GTM_longjmp): Likewise.
  876. * config/x86/sjlj.S (GTM_longjmp): Likewise.
  877. 2011-11-23 Iain Sandoe <iains@gcc.gnu.org>
  878. * Makefile.am (libitm_la_LDFLAGS): Remove "-no-undefined".
  879. * Makefile.in: Regenerate.
  880. 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
  881. * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF.
  882. * alloc_cpp.cc: Generate dummy functions if we don't
  883. HAVE_ELF_STYLE_WEAKREF.
  884. * eh_cpp.cc: Likewise.
  885. * configure: Regenerate.
  886. * aclocal.m4: Likewise.
  887. * config.h.in: Likewise.
  888. * Makefile.in: Likewise.
  889. * testsuite/Makefile.in: Likewise.
  890. 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
  891. * config/x86/sjlj.S (CONCAT1, CONCAT2, SYM): Respond to
  892. __USER_LABEL_PREFIX__ for targets that use it.
  893. (TYPE, SIZE, HIDDEN): New macros to assist on non-elf targets.
  894. (_ITM_beginTransaction): Use SYM, TYPE, SIZE macros to assist
  895. in portability to non-elf targets.
  896. (GTM_longjmp): Likewise.
  897. * libitm_i.h (begin_transaction): Apply __USER_LABEL_PREFIX__
  898. where required.
  899. 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
  900. * testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
  901. * testsuite/libitm.c/memset-1.c: Likewise.
  902. 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
  903. * configure: Regenerate.
  904. 2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  905. * acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Handle gold.
  906. (LIBITM_ENABLE_SYMVERS): Handle sun style.
  907. * Makefile.am: Handle sun style versioning.
  908. (libitm_la_LINK): Add $(libitm_la_LDFLAGS).
  909. * configure: Regenerate.
  910. * Makefile.in: Regenerate.
  911. 2011-11-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  912. * config/generic/asmcfi.h: Fix comment.
  913. * config/x86/sjlj.S (_ITM_beginTransaction): Provide ELF PIC code
  914. sequence without .hidden support, error for non-ELF targets.
  915. (GTM_longjmp) [__ELF__]: Only use .hidden if
  916. HAVE_ATTRIBUTE_VISIBILITY.
  917. 2011-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  918. * alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
  919. _ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
  920. Dummy functions.
  921. * eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
  922. __cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.
  923. 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
  924. PR bootstrap/51098
  925. * acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
  926. * configure: Regenerate.
  927. 2011-11-14 H.J. Lu <hongjiu.lu@intel.com>
  928. * testsuite/lib/libitm.exp: Check ia32 instead of ilp32.
  929. 2011-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  930. * config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use
  931. .hidden.
  932. (.note.GNU-stack): Only use if __linux__.
  933. * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function.
  934. * testsuite/libitm.c/notx.c: Use dg-options "-pthread".
  935. * testsuite/libitm.c/reentrant.c: Likewise.
  936. * testsuite/libitm.c/simple-2.c: Likewise.
  937. * testsuite/libitm.c/txrelease.c: Likewise.
  938. * testsuite/libitm.c++/static_ctor.C: Likewise.
  939. 2011-11-10 Richard Henderson <rth@redhat.com>
  940. * config/x86/x86_avx.cc: Remove #undef __AVX__ hack. Tidy comments.
  941. * Makefile.am (x86_avx.lo): Only add -mavx if ARCH_X86_AVX.
  942. * configure.ac (ARCH_X86_AVX): New conditional.
  943. * Makefile.in, configure: Rebuild.
  944. 2011-11-09 Richard Henderson <rth@redhat.com>
  945. * acinclude.m4 (LIBITM_CHECK_AS_AVX): New.
  946. * configure.ac: Use it.
  947. * config.h.in, configure: Rebuild.
  948. * config/x86/x86_avx.cc: Handle !HAVE_AS_AVX.
  949. 2011-11-09 Richard Henderson <rth@redhat.com>
  950. * barrier.tpl, memcpy.cc, memset.cc, method-wbetl.cc: Remove file.
  951. * config/alpha/unaligned.h: Remove file.
  952. * config/generic/unaligned.h: Remove file.
  953. * config/x86/unaligned.h: Remove file.
  954. * config/generic/cachepage.h: Remove file.
  955. * config/posix/cachepage.cc: Remove file.
  956. * config/generic/cacheline.cc: Remove file.
  957. * config/x86/cacheline.cc: Remove file.
  958. * config/generic/cacheline.h (gtm_cacheline): Remove the
  959. store_mask, copy_mask, copy_mask_wb methods.
  960. * config/x86/cacheline.h: Likewise.
  961. * config/alpha/cacheline.h: Fall back to generic after setting size.
  962. * config/generic/tls.cc (gtm_mask_stack): Remove.
  963. * config/x86/x86_avx.cc (GTM_vpperm_shift): Remove.
  964. (GTM_vpalignr_table): Remove.
  965. * config/x86/x86_sse.cc (GTM_palignr_table): Remove.
  966. (GTM_pshift_table): Remove.
  967. * config/libitm_i.h: Don't include cachepage.h.
  968. * Makefile.am (libitm_la_SOURCES): Remove cacheline.cc, cachepage.cc
  969. * Makefile.in, testsuite/Makefile.in: Rebuild.
  970. 2011-11-09 Richard Henderson <rth@redhat.com>
  971. * config/x86/cacheline.h (gtm_cacheline::store_mask): Use .byte
  972. to emit branch prediction hint.
  973. * config/x86/sjlj.S: Protect elf directives with __ELF__.
  974. Protect .note.GNU-stack with __linux__.
  975. * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it.
  976. * configure, aclocal.m4, config.h.in: Rebuild.
  977. * config/generic/asmcfi.h: New file.
  978. * config/x86/sjlj.S: Use it.
  979. 2011-11-08 Richard Henderson <rth@redhat.com>
  980. * local.cc (_ITM_LB): Use a normal call, not a function alias.
  981. 2011-11-08 Richard Henderson <rth@redhat.com>
  982. * configure.tgt: Test correct directory for supported cpus.
  983. * configure.ac: Exit if unsupported.
  984. * configure: Rebuild.
  985. * configure.tgt: Delete boilerplate from libgomp for unsupported
  986. targets. Set UNSUPPORTED for unsupported targets.
  987. 2011-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  988. * configure.tgt: Handle i386 like i[456]86.
  989. * config/generic/tls.h [!HAVE_ARCH_GTM_THREAD] (gtm_thr): Don't
  990. take address.
  991. * config/generic/tls.cc [!HAVE_ARCH_GTM_THREAD ||
  992. !HAVE_ARCH_GTM_THREAD_DISP] (_gtm_thr_tls): New variable.
  993. 2011-11-05 Aldy Hernandez <aldyh@redhat.com>
  994. * method-wbetl.cc: Update copyright notice.
  995. * aatree.cc: Same.
  996. * util.cc: Same.
  997. * libitm.h: Same.
  998. * memset.cc: Same.
  999. * eh_cpp.cc: Same.
  1000. * barrier.tpl: Same.
  1001. * useraction.cc: Same.
  1002. * stmlock.h: Same.
  1003. * memcpy.cc: Same.
  1004. * common.h: Same.
  1005. * config/generic/tls.cc: Same.
  1006. * config/generic/cacheline.h: Same.
  1007. * config/generic/cachepage.h: Same.
  1008. * config/generic/cacheline.cc: Same.
  1009. * config/generic/unaligned.h: Same.
  1010. * config/x86/cacheline.h: Same.
  1011. * config/x86/cacheline.cc: Same.
  1012. * config/x86/unaligned.h: Same.
  1013. * config/alpha/cacheline.h: Same.
  1014. * config/alpha/unaligned.h: Same.
  1015. * config/alpha/sjlj.S: Same.
  1016. * config/posix/cachepage.cc: Same.
  1017. * config/linux/futex.h: Same.
  1018. * config/linux/alpha/futex_bits.h: Same.
  1019. 2011-11-04 Torvald Riegel <triegel@redhat.com>
  1020. * libitm.texi: No cover text and invariant sections.
  1021. 2011-11-03 Richard Henderson <rth@redhat.com>
  1022. * local_type_traits: New file.
  1023. * libitm_i.h: Use it. Use C headers, not C++ wrappers.
  1024. 2011-11-03 Richard Henderson <rth@redhat.com>
  1025. * configure.ac: Don't test for gfortran.
  1026. * configure: Rebuild.
  1027. * testsuite/lib/libitm.exp: Don't include gfortran-dg.exp.
  1028. * testsuite/libitm.c++/c++.exp: Don't use gfortran-dg-runtest.
  1029. 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
  1030. * testsuite/libitm.c/memcpy-1.c: Add copyright notice.
  1031. * testsuite/libitm.c/memset-1.c: Same.
  1032. * testsuite/libitm.c/c.exp: Same.
  1033. * testsuite/lib/libitm-dg.exp: Same.
  1034. * testsuite/lib/libitm.exp: Same.
  1035. * testsuite/libitm.c++/c++.exp: Same.
  1036. 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
  1037. * testsuite/config/default.exp: Update copyright date.
  1038. * configure.ac: Add copyright info.
  1039. * configure.tgt: Same.
  1040. 2011-11-03 Aldy Hernandez <aldyh@redhat.com>
  1041. * testsuite/libitm.c/reentrant.c: XFAIL.
  1042. * testsuite/libitm.c++/static_ctor.C: XFAIL.
  1043. 2011-10-29 Torvald Riegel <triegel@redhat.com>
  1044. * beginend.cc (GTM::gtm_thread::rollback): Add aborting flag and
  1045. handle aborts.
  1046. (_ITM_abortTransaction): Handle aborts of outer transactions.
  1047. * libitm_i.h: Same.
  1048. * eh_cpp.cc (GTM::gtm_thread::revert_cpp_exceptions): Fix assertion.
  1049. * libitm.texi: Document aborts of outer transactions.
  1050. * testsuite/libitm.c/cancel.c: New file.
  1051. 2011-10-19 Torvald Riegel <triegel@redhat.com>
  1052. * testsuite/*: Change __transaction to __transaction_atomic or
  1053. __transaction_relaxed.
  1054. 2011-10-19 Torvald Riegel <triegel@redhat.com>
  1055. * config/linux/x86/tls.h (abi_disp): Make TLS slot read volatile.
  1056. (gtm_thr): Same.
  1057. 2011-10-19 Torvald Riegel <triegel@redhat.com>
  1058. * libitm_i.h: Add gl_wt dispatch.
  1059. * retry.cc (parse_default_method): Same.
  1060. * method-gl.cc: New file.
  1061. * Makefile.am: Use method-gl.cc.
  1062. * Makefile.in: Rebuild.
  1063. 2011-10-19 Torvald Riegel <triegel@redhat.com>
  1064. * beginend.cc (GTM::gtm_thread::trycommit): Ensure privatization
  1065. safety if requested by a TM method.
  1066. * dispatch.h (GTM::abi_dispatch::trycommit): Add parameter for
  1067. privatization safety.
  1068. * method-serial.cc: Same.
  1069. 2011-10-19 Torvald Riegel <triegel@redhat.com>
  1070. * libitm_i.h: Renamed gtm_local_undo to gtm_undolog_entry.
  1071. (GTM::gtm_thread): Renamed local_undo to undolog. Renamed
  1072. undolog-related member functions from *_local to *_undolog.
  1073. * local.cc (gtm_thread::commit_undolog): Same.
  1074. * beginend.cc (GTM::gtm_thread::trycommit): Same.
  1075. (GTM::gtm_thread::rollback): Roll back undolog before
  1076. dispatch-specific rollback.
  1077. 2011-10-19 Torvald Riegel <triegel@redhat.com>
  1078. * retry.cc (GTM::gtm_thread::decide_retry_strategy): Handle
  1079. re-initialization of the current method group.
  1080. * libitm_i.h (GTM::gtm_restart_reason): Add restart reason for this.
  1081. 2011-10-19 Torvald Riegel <triegel@redhat.com>
  1082. * alloc.cc (commit_allocations_2): Do not free transaction-local
  1083. memory when committing a nested transaction.
  1084. 2011-10-19 Torvald Riegel <triegel@redhat.com>
  1085. * method-serial.cc (GTM::gtm_thread::serialirr_mode): Fixed: Use
  1086. serial-irrevocable dispatch, not serial.
  1087. 2011-10-19 Torvald Riegel <triegel@redhat.com>
  1088. * libitm_i.h (GTM::gtm_restart_reason): Re-arrange and clean up
  1089. declarations.
  1090. * dispatch.h (GTM::abi_dispatch::begin_or_restart): New.
  1091. * method-serial.cc: Implement begin_or_restart().
  1092. * beginend.cc (GTM::gtm_thread::begin_transaction): Call
  1093. dispatch-specific begin_or_restart().
  1094. (GTM::gtm_thread::restart): Same.
  1095. 2011-08-23 Torvald Riegel <triegel@redhat.com>
  1096. * retry.cc (GTM::gtm_thread::decide_retry_strategy): Cleanup. Fix
  1097. restarting without switching to serial mode.
  1098. (GTM::gtm_thread::decide_begin_dispatch): Let the caller set the
  1099. transaction state. Choose closed-nesting alternative if available.
  1100. (GTM::gtm_thread::set_default_dispatch): New.
  1101. (parse_default_method): New.
  1102. (GTM::gtm_thread::number_of_threads_changed): New.
  1103. * method-serial.cc (GTM::serial_mg): New method group class.
  1104. (GTM::serialirr_dispatch): Belongs to serial_mg. Remove reinit and
  1105. fini.
  1106. (GTM::serial_dispatch): Same.
  1107. (GTM::serialirr_onwrite_dispatch): Same.
  1108. (GTM::gtm_thread::serialirr_mode): Remove calls to fini.
  1109. * beginend.cc (GTM::gtm_thread::~gtm_thread): Maintain number of
  1110. registered threads.
  1111. (GTM::gtm_thread::gtm_thread): Same.
  1112. (_ITM_abortTransaction): Remove calls to abi_dispatch::fini().
  1113. (GTM::gtm_thread::trycommit): Same. Reset number of restarts.
  1114. (GTM::gtm_thread::begin_transaction): Let decide_begin_dispatch()
  1115. choose dispatch but set state according to dispatch here.
  1116. * dispatch.h (GTM::abi_dispatch::fini): Move to method group.
  1117. (GTM::method_group): New class.
  1118. (GTM::abi_dispatch): Add comments. Maintain pointer to method_group.
  1119. * libitm_i.h (GTM::gtm_thread): Add declarations for new members.
  1120. * libitm.texi: Document TM methods, method groups, method life cycle.
  1121. Rename method sets to method groups.
  1122. 2011-08-23 Torvald Riegel <triegel@redhat.com>
  1123. * config/x86/tls.h: Moved to ...
  1124. * config/linux/x86/tls.h: ... here.
  1125. 2011-08-23 Torvald Riegel <triegel@redhat.com>
  1126. * config/x86/tls.h: Use __x86_64__ instead of __LP64__.
  1127. Add X32 support.
  1128. * config/x86/sjlj.S: Same.
  1129. 2011-08-19 Torvald Riegel <triegel@redhat.com>
  1130. * config/linux/rwlock.h: New file.
  1131. * config/linux/rwlock.c: New file.
  1132. * configure.ac: Reenable futex support (undo SVN rev 157758).
  1133. * Makefile.am: Same.
  1134. * configure.tgt: Same.
  1135. * config/linux/alpha/futex_bits.h: Same.
  1136. * config/linux/futex.h: Same. Return number of woken processes.
  1137. * config/linux/futex.cc: Same.
  1138. (futex_wait): Remove spinning.
  1139. * config/linux/x86/futex_bits.h: Same. Set futex timeout to zero.
  1140. Use __x86_64__ instead of __LP64__.
  1141. * aclocal.m4: Include generic futex checks.
  1142. * configure: Rebuild.
  1143. * Makefile.in: Rebuild.
  1144. * testsuite/Makefile.in: Rebuild.
  1145. * beginend.cc: Include pthread.h.
  1146. * config/posix/cachepage.cc: Same.
  1147. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1148. * config/x86/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
  1149. (abi_disp, set_abi_disp): Move to tx's TLS slot.
  1150. (set_gtm_thr): New.
  1151. * config/generic/tls.h (gtm_tx, set_gtm_tx, setup_gtm_thr): Removed.
  1152. (set_gtm_thr): New.
  1153. (GTM::gtm_thread::thread_num): Removed.
  1154. (GTM::gtm_thread): Renamed to GTM::gtm_thread_tls.
  1155. * libitm_i.h (GTM::gtm_transaction): Renamed to GTM::gtm_thread. More
  1156. tx-to-thread renaming.
  1157. * beginend.cc: Adapted to tx-to-thread renaming.
  1158. (GTM::gtm_thread::~gtm_thread): Extracted from thread_exit_handler().
  1159. (GTM::gtm_thread::gtm_thread): Extracted from begin_transaction().
  1160. * query.cc (_ITM_getTransactionId, _ITM_inTransaction): Renamed
  1161. gtm_transaction to gtm_thread.
  1162. (_ITM_getThreadnum): Removed. Not supported anymore.
  1163. * testsuite/libitm.c/notx.c (main): Removed _ITM_getThreadnum call.
  1164. * libitm.texi: Documented that _ITM_getThreadnum is not supported.
  1165. * useraction.cc: Renamed gtm_transaction to gtm_thread. Adapted to
  1166. gtm_tx-to-gtm_thr renaming if necessary.
  1167. * eh_cpp.cc: Same.
  1168. * local.cc: Same.
  1169. * retry.cc: Same.
  1170. * clone.cc: Same.
  1171. * alloc.cc: Same.
  1172. * alloc_c.cc: Same.
  1173. * alloc_cpp.cc: Same.
  1174. * method-serial.cc: Same.
  1175. * config/generic/tls.cc: Same.
  1176. * config/posix/rwlock.h (gtm_rwlock): Same.
  1177. * config/posix/rwlock.cc: Same. Adapted to more tx-to-thread renaming.
  1178. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1179. * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking
  1180. implementation.
  1181. (gtm_rwlock::read_unlock): Same.
  1182. (gtm_rwlock::write_lock_generic): New. Generalized from ...
  1183. (gtm_rwlock::write_lock, gtm_rwlock::write_upgrade): ... these.
  1184. * libitm_i.h (GTM::gtm_transaction): Added shared_state.
  1185. * config/posix/rwlock.h (GTM::gtm_rwlock): Removed a_reader and
  1186. w_upgrade. Replaced by per-transaction flags (in shared_state).
  1187. Added c_confirmed_writers.
  1188. (GTM::gtm_rwlock::read_lock, GTM::gtm_rwlock::read_unlock,
  1189. GTM::gtm_rwlock::write_upgrade): Add tx parameter.
  1190. * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
  1191. * method-serial.cc (GTM::gtm_transaction::serialirr_mode): Same.
  1192. * beginend.cc (GTM::gtm_transaction::begin_transaction,
  1193. _ITM_abortTransaction, GTM::gtm_transaction::trycommit): Same.
  1194. * libitm.texi: Document locking conventions and implementations in
  1195. libitm.
  1196. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1197. * libitm_i.h (next_tx): Add list of all threads' transaction.
  1198. * beginend.cc (GTM::gtm_transaction::begin_transaction): Register
  1199. transaction with list of transactions and ...
  1200. (thread_exit_handler): ... deregister here.
  1201. * config/alpha/target.h: Add HW_CACHELINE_SIZE setting.
  1202. * config/x86/target.h: Same.
  1203. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1204. * testsuite/libitm.c++/static_ctor.C: New file.
  1205. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1206. * testsuite/libitm.c/reentrant.c: New file.
  1207. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1208. * config/generic/tls.h: Remove the free list for transactions and ...
  1209. * beginend.cc (GTM::gtm_transaction::operator new): ... allocate ...
  1210. (GTM::gtm_transaction::operator delete): ... and release here.
  1211. (thread_exit_handler): New. Delete tx when thread terminates.
  1212. (thread_exit_init): New.
  1213. (GTM::gtm_transaction::begin_transaction): Set up on-exit handler.
  1214. * testsuite/libitm.c/txrelease.c: New file.
  1215. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1216. * query.cc (_ITM_getThreadnum): Set up gtm_thread if necessary.
  1217. * testsuite/libitm.c/notx.c: New file.
  1218. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1219. * config/generic/tls.h (gtm_thread): Move local_tid from here ...
  1220. * libitm_i.h (local_tid): ... to here.
  1221. * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
  1222. (GTM::gtm_transaction::operator new): Set up gtm_thread if necessary.
  1223. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1224. * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Use
  1225. serialirr_onwrite_dispatch as new default for now.
  1226. * method-serial.cc (serialirr_onwrite_dispatch): New.
  1227. (GTM::dispatch_serialirr_onwrite): New.
  1228. * libitm_i.h: Same.
  1229. 2011-08-12 Torvald Riegel <triegel@redhat.com>
  1230. * beginend.cc (GTM::gtm_transaction::rollback): Roll back tx id as well.
  1231. * query.cc (_ITM_getTransactionId): There is no active transaction if
  1232. the current nesting level is zero.
  1233. 2011-07-28 Torvald Riegel <triegel@redhat.com>
  1234. * beginend.cc (GTM::gtm_transaction::rollback): Fix nesting level
  1235. rollback.
  1236. 2011-07-28 Torvald Riegel <triegel@redhat.com>
  1237. * retry.cc (GTM::gtm_transaction::decide_begin_dispatch): Get
  1238. transaction properties from the caller instead of from the
  1239. transaction object.
  1240. * libitm_i.h: Same.
  1241. * beginend.cc (GTM::gtm_transaction::begin_transaction): Same.
  1242. 2011-07-28 Torvald Riegel <triegel@redhat.com>
  1243. * local.cc (gtm_transaction::rollback_local): Support closed nesting.
  1244. * eh_cpp.cc (GTM::gtm_transaction::revert_cpp_exceptions): Same.
  1245. * dispatch.h: Same.
  1246. * method-serial.cc: Same.
  1247. * beginend.cc (GTM::gtm_transaction::begin_transaction): Change to
  1248. flat nesting as default, and closed nesting on demand.
  1249. (GTM::gtm_transaction::rollback): Same.
  1250. (_ITM_abortTransaction): Same.
  1251. (GTM::gtm_transaction::restart): Same.
  1252. (GTM::gtm_transaction::trycommit): Same.
  1253. (GTM::gtm_transaction::trycommit_and_finalize): Removed.
  1254. (choose_code_path): New.
  1255. (GTM::gtm_transaction_cp::save): New.
  1256. (GTM::gtm_transaction_cp::commit): New.
  1257. * query.cc (_ITM_inTransaction): Support flat nesting.
  1258. * libitm_i.h (GTM::gtm_transaction_cp): New helper struct for nesting.
  1259. (GTM::gtm_transaction): Support flat and closed nesting.
  1260. * alloc.cc (commit_allocations_2): New.
  1261. (commit_cb_data): New helper struct.
  1262. (GTM::gtm_transaction::commit_allocations): Handle nested
  1263. commits/rollbacks.
  1264. * libitm.texi: Update user action section, add description of nesting.
  1265. 2011-07-28 Torvald Riegel <triegel@redhat.com>
  1266. * libitm_i.h: Add closed nesting as restart reason.
  1267. * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Same.
  1268. 2011-07-28 Torvald Riegel <triegel@redhat.com>
  1269. * useraction.cc: Use vector instead of list to store actions.
  1270. Also support partial rollbacks for closed nesting.
  1271. * libitm_i.h (GTM::gtm_transaction::user_action): Same.
  1272. * beginend.cc: Same.
  1273. 2011-07-28 Torvald Riegel <triegel@redhat.com>
  1274. * dispatch.h (GTM::abi_dispatch): Add can_run_uninstrumented_code and
  1275. closed_nesting flags, as well as a closed nesting alternative.
  1276. * method-serial.cc: Same.
  1277. (serial_dispatch): Renamed to serialirr_dispatch.
  1278. (GTM::dispatch_serialirr): Same.
  1279. (serial_dispatch_ul): Renamed to serial_dispatch.
  1280. (GTM::dispatch_serial): Same.
  1281. 2011-07-28 Torvald Riegel <triegel@redhat.com>
  1282. * libitm.h (_ITM_codeProperties): Change pr_hasElse to the ABI's value.
  1283. 2011-07-28 Torvald Riegel <triegel@redhat.com>
  1284. * aatree.h (aa_tree::remove): New.
  1285. (aa_tree::operator new): Add placement new.
  1286. 2011-07-02 Torvald Riegel <triegel@redhat.com>
  1287. * containers.h: New file.
  1288. * util.cc (xmalloc, xrealloc): Accept cacheline-alloc flag.
  1289. * libitm_i.h (xmalloc, xrealloc): Moved declarations from here ...
  1290. * common.h: ... to here.
  1291. (local_undo): Use GTM::vector for gtm_transaction::local_undo.
  1292. * local.cc: Same.
  1293. 2011-06-30 Torvald Riegel <triegel@redhat.com>
  1294. * libitm_i.h (STATE_ABORTING): Remove.
  1295. * beginend.cc (_ITM_abortTransaction): Same.
  1296. (GTM::gtm_transaction::trycommit_and_finalize): Same.
  1297. * libitm.h (_ITM_registerThrownObject, _ITM_tryCommitTransaction): Remove.
  1298. (_ITM_rollbackTransaction): Remove.
  1299. * beginend.cc: Same.
  1300. * libitm.map: Same.
  1301. * libitm.texi: Document these ABI changes.
  1302. 2011-06-30 Torvald Riegel <triegel@redhat.com>
  1303. * libitm.texi: New file.
  1304. * Makefile.am: Add libitm.texi.
  1305. * Makefile.in: Rebuild.
  1306. 2011-06-30 Torvald Riegel <triegel@redhat.com>
  1307. * libitm_i.h: Move parts to common.h and dispatch.h.
  1308. * common.h: New file.
  1309. * dispatch.h: New file, new dispatch class.
  1310. Rename GTM::abi_dispatch::lock_type to ls_modifier.
  1311. RenameGTM::abi_dispatch::NOLOCK to NONTXNAL.
  1312. * beginend.cc (GTM::gtm_transaction::begin_transaction): Delegate mode
  1313. decision to retry.cc.
  1314. * retry.cc (GTM::gtm_transaction::decide_retry_strategy): Use serial mode
  1315. only.
  1316. (GTM::gtm_transaction::decide_begin_dispatch): Same.
  1317. * method-serial.cc: Adapt to new dispatch. Add serial mode with undo
  1318. logging.
  1319. * barrier.cc: Use new barriers definitions.
  1320. (abi_dispatch::memmove_overlap_check): New.
  1321. * config/x86/x86_sse.cc: Same.
  1322. * config/x86/x86_avx.cc: Same.
  1323. * Makefile.am: Don't build readonly and wbetl methods, memset.cc and
  1324. memcpy.cc.
  1325. * Makefile.in: Rebuild.
  1326. * method-readonly.cc: Remove.
  1327. * method-wbetl.cc: Rename GTM::abi_dispatch::lock_type to ls_modifier.
  1328. Rename GTM::abi_dispatch::NOLOCK to NONTXNAL.
  1329. 2011-06-30 Torvald Riegel <triegel@redhat.com>
  1330. * alloc_c.cc (_ITM_dropReferences): Don't support it anymore.
  1331. * testsuite/libitm.c++/dropref.C: _ITM_dropReferences is expected to fail.
  1332. * testsuite/libitm.c/dropref-2.c: Same.
  1333. * testsuite/libitm.c/dropref.c: Same.
  1334. 2011-06-30 Torvald Riegel <triegel@redhat.com>
  1335. * config/generic/tls.h (gtm_disp): Rename to abi_disp.
  1336. * config/generic/tls.h (set_gtm_disp): Rename to set_abi_disp.
  1337. * libitm_i.h: Rename gtm_dispatch to abi_dispatch.
  1338. * alloc_c.cc: Same.
  1339. * barrier.tpl: Same.
  1340. * beginend.c: Same.
  1341. * config/generic/tls.h: Same.
  1342. * config/x86/tls.h: Same.
  1343. * libitm_i.h: Same.
  1344. * memcpy.cc: Same.
  1345. * memset.cc: Same.
  1346. * method-readonly.cc: Same.
  1347. * method-serial.cc: Same.
  1348. * method-wbetl.cc: Same.
  1349. * retry.cc: Same.
  1350. 2011-03-03 Richard Henderson <rth@redhat.com>
  1351. * config/posix/rwlock.cc (write_upgrade): Add missing case.
  1352. From Patrik Marlier <patrick.marlier@unine.ch>.
  1353. 2011-02-03 Richard Henderson <rth@redhat.com>
  1354. * acinclude.m4 (LIBITM_CHECK_SIZE_T_MANGLING): New.
  1355. * configure.ac: Use it.
  1356. * configure, config.h.in: Rebuild.
  1357. * alloc_cpp.cc (_ZnwX): Use MANGLE_SIZE_T in constructing the name.
  1358. (_ZnaX, _ZnwXRKSt9nothrow_t, _ZnaXRKSt9nothrow_t, _ZGTtnwX,
  1359. _ZGTtnaX, _ZGTtnwXRKSt9nothrow_t, _ZGTtnaXRKSt9nothrow_t): Likewise.
  1360. * libitm.map: Use wildcards to match size_t mangling.
  1361. 2010-12-14 Richard Henderson <rth@redhat.com>
  1362. * beginend.cc (GTM::gtm_transaction::begin_transaction): Allocate
  1363. blocks of TIDs per thread.
  1364. * config/generic/tls.h (struct gtm_thread): Add local_tid member.
  1365. (setup_gtm_thr): Return the thread structure.
  1366. * config/x86/tls.h (setup_gtm_thr): Likewise.
  1367. 2010-12-14 Richard Henderson <rth@redhat.com>
  1368. * clone.cc (table_lock): Remove.
  1369. (find_clone): Don't take it.
  1370. (ExcludeTransaction): New helper class.
  1371. (_ITM_registerTMCloneTable): Use it.
  1372. (_ITM_deregisterTMCloneTable): Likewise.
  1373. 2010-12-14 Richard Henderson <rth@redhat.com>
  1374. * config/x86/tls.h: New file.
  1375. 2010-07-15 Richard Henderson <rth@redhat.com>
  1376. * Makefile.am (AM_CXXFLAGS): Add -funwind-tables.
  1377. * Makefile.in: Rebuild.
  1378. 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
  1379. * method-wbetl.cc (trydropreference): Fix source line.
  1380. 2010-07-13 Aldy Hernandez <aldyh@redhat.com>
  1381. * libitm.h: Add comment.
  1382. * libitm_i.h (begin_transaction): Add ITM_REGPARM.
  1383. 2010-07-07 Aldy Hernandez <aldyh@redhat.com>
  1384. * configure.ac: Call LIBITM_CHECK_64BIT_SYNC_BUILTINS.
  1385. * beginend.cc (begin_transaction): If 64-bit sync builtins are not
  1386. available, use pthread mutexes.
  1387. * acinclude.m4 (LIBITM_CHECK_64BIT_SYNC_BUILTINS): New.
  1388. * config.h.in: Regenerate.
  1389. * configure: Regenerate.
  1390. 2010-07-06 Aldy Hernandez <aldyh@redhat.com>
  1391. * libitm.h (ITM_PURE): Define.
  1392. Declare _ITM_malloc, _ITM_calloc, and _ITM_free.
  1393. 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
  1394. * method-wbetl.cc (class wbetl_dispatch): Add trydropreference.
  1395. (validate): Add comment.
  1396. (trydropreference): New.
  1397. * method-readonly.cc (class readonly_dispatch): Add
  1398. trydropreference.
  1399. * alloc_c.cc (_ITM_dropReferences): Remove const attribute.
  1400. Call trydropreference().
  1401. * libitm.h (_ITM_dropReferences): Remove const attribute.
  1402. * method-serial.cc (class serial_dispatch): Add trydropreference.
  1403. * libitm_i.h (struct gtm_dispatch): Add trydropreference.
  1404. 2010-06-28 Aldy Hernandez <aldyh@redhat.com>
  1405. * memcpy.cc (do_memcpy): Comment.
  1406. 2010-06-25 Aldy Hernandez <aldyh@redhat.com>
  1407. * barrier.tpl: Add comments throughout.
  1408. 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
  1409. * method-wbetl.cc (struct w_entry): Add comments.
  1410. (trycommit): Same.
  1411. (rollback): Same.
  1412. 2010-06-24 Aldy Hernandez <aldyh@redhat.com>
  1413. * alloc_c.cc (_ITM_dropReferences): New.
  1414. * libitm.map (_ITM_dropReferences): Add.
  1415. * libitm.h (_ITM_dropReferences): Add transaction_pure attribute.
  1416. * libitm_i.h (struct gtm_transaction): Declare
  1417. drop_references_allocations and drop_references_local.
  1418. * local.cc (rollback_local): Ignore memory when applicable.
  1419. (drop_references_local): New.
  1420. 2010-06-23 Richard Henderson <rth@redhat.com>
  1421. * barrier.tpl, beginend.cc, clone.cc, tls.h, memcpy.cc,
  1422. memset.cc, method-serial.cc: Revert the 2010-06-16 change.
  1423. * config/x86/target.h (struct gtm_jmpbuf): Change CFA type to void*.
  1424. * config/alpha/target.h: Likewise.
  1425. * config/generic/tls.cc (gtm_mask_stack): Use it.
  1426. 2010-06-23 Richard Henderson <rth@redhat.com>
  1427. * config/posix/cachepage.cc (gtm_cacheline_page::operator new): Use
  1428. a mutex instead of trying a lock-free compare-and-swap on the list.
  1429. (gtm_cacheline_page::operator delete): Likewise.
  1430. 2010-06-16 Richard Henderson <rth@redhat.com>
  1431. * method-wbetl.cc (wbetl_dispatch::trycommit): Discard changes
  1432. that overlap the libitm stack.
  1433. * barrier.tpl: Mark incoming stack.
  1434. * beginend.cc (_ITM_rollbackTransaction, _ITM_abortTransaction,
  1435. _ITM_commitTransaction, _ITM_commitTransactionEH): Likewise.
  1436. * clone.cc (_ITM_getTMCloneOrIrrevocable): Likewise.
  1437. * memcpy.cc, memset.cc: Likewise.
  1438. * method-serial.cc (_ITM_changeTransactionMode): Likewise.
  1439. * config/generic/tls.h (gtm_thread): Add stack_top member.
  1440. (gtm_stack_top, set_gtm_stack_top, struct gtm_stack_marker): New.
  1441. * libitm_i.h (gtm_mask_stack): Declare.
  1442. * config/generic/tls.cc: New file.
  1443. * Makefile.am (libitm_la_SOURCES): Add it.
  1444. (AM_CXXFLAGS): Turn off exceptions.
  1445. * Makefile.in: Rebuild.
  1446. 2010-06-16 Richard Henderson <rth@redhat.com>
  1447. * alloc.cc (struct gtm_alloc_action): Move definition ...
  1448. * libitm_i.h: ... here.
  1449. (class gtm_transaction): Declare new and delete.
  1450. * beginend.cc (alloc_tx): Reformulate as operator new.
  1451. (free_tx): Reformulate as operator delete.
  1452. * config/generic/tls.h (gtm_thread): Change free_tx member to void *.
  1453. 2010-06-11 Richard Henderson <rth@redhat.com>
  1454. * clone.cc (clone_entry_compare): Fix typo.
  1455. From Patrik Marlier <patrick.marlier@unine.ch>.
  1456. 2010-05-13 Richard Henderson <rth@redhat.com>
  1457. * alloc_c.cc (_ITM_malloc, _ITM_calloc, _ITM_free): Wrap functions
  1458. in extern "C".
  1459. 2010-05-07 Aldy Hernandez <aldyh@redhat.com>
  1460. * libitm_i.h (struct gtm_transaction): Remove
  1461. get_allocation_size.
  1462. (record_allocation): Remove size parameter.
  1463. * libitm.map (_ITM_realloc): Remove.
  1464. * alloc_c.cc (_ITM_realloc): Remove.
  1465. (_ITM_malloc): Remove size argument to record_allocation.
  1466. (_ITM_calloc): Same.
  1467. * alloc_cpp.cc (_ZGTtnwm): Same.
  1468. (_ZGTtnwmRKSt9nothrow_t): Same.
  1469. (_ZGTtnam): Same.
  1470. (_ZGTtnamRKSt9nothrow_t): Same.
  1471. * alloc.cc (struct gtm_alloc_action): Remove size.
  1472. (get_allocation_size): Remove.
  1473. (commit_allocations): Add comment.
  1474. (record_allocation): Remove size parameter.
  1475. (forget_allocation): Remove set of size.
  1476. 2010-04-19 Aldy Hernandez <aldyh@redhat.com>
  1477. * Makefile.am (abi_version): New.
  1478. (AM_CXXFLAGS): Pass abi_version.
  1479. * Makefile.in: Regenerate.
  1480. * config/x86/unaligned.h: Remove always_inline kludge for vectors.
  1481. 2010-04-06 Aldy Hernandez <aldyh@redhat.com>
  1482. * clone.cc (_ITM_getTMCloneOrIrrevocable): Rename from
  1483. _ITM_getTMCloneOrIrrevokable.
  1484. * libitm.h (_ITM_getTMCloneOrIrrevocable): Same.
  1485. * libitm.map (_ITM_getTMCloneOrIrrevocable): Same.
  1486. 2010-03-26 Aldy Hernandez <aldyh@redhat.com>
  1487. * configure.ac: Remove Linux futex support.
  1488. * configure.tgt (config_path): Same.
  1489. * Makefile.am: Same.
  1490. * config/linux: Remove entire directory.
  1491. * configure: Rebuild.
  1492. * Makefile.in: Rebuild.
  1493. * testsuite/Makefile.in: Rebuild.
  1494. 2010-03-09 Aldy Hernandez <aldyh@redhat.com>
  1495. * retry.cc (decide_retry_strategy): Set state to STATE_SERIAL when
  1496. switching to serial mode.
  1497. * beginend.cc (trycommit_and_finalize): Unlock serial_lock.
  1498. 2010-03-03 Aldy Hernandez <aldyh@redhat.com>
  1499. * configure.tgt: Add emacs -*- tags.
  1500. * barrier.tpl: Same.
  1501. 2010-02-23 Aldy Hernandez <aldyh@redhat.com>
  1502. * Makefile.am: Rename serial.cc to method-serial.cc.
  1503. * Makefile.in: Regenerate with automake 1.11.1.
  1504. * testsuite/Makefile.in: Same.
  1505. * aclocal.m4: Regenerate with aclocal 1.11.1.
  1506. * method-serial.cc: Rename from serial.cc.
  1507. * libitm_i.h (struct gtm_transaction): Update comment on
  1508. serialirr_mode.
  1509. 2010-02-22 Aldy Hernandez <aldyh@redhat.com>
  1510. * libitm_i.h (GTM_longjmp): Add ITM_REGPARM.
  1511. * config/linux/rwlock.h (class gtm_rwlock): Add comments.
  1512. 2010-02-11 Aldy Hernandez <aldyh@redhat.com>
  1513. * configure: Rebuild.
  1514. 2009-11-12 Richard Henderson <rth@redhat.com>
  1515. * Rewrite everything in C++.
  1516. 2009-11-03 Richard Henderson <rth@redhat.com>
  1517. * config/x86/x86_sse.c, config/x86/x86_avx.c: New files.
  1518. * Makefile.am (libitm_la_SOURCES): Add them.
  1519. * configure.ac (ARCH_X86): New conditional.
  1520. * Makefile.in, configure: Rebuild.
  1521. * configure.tgt: Set up ARCH; do cflags setup at the same time.
  1522. Move futex setup into "other system configury" case.
  1523. * local.c (rollback_local): Merge into ...
  1524. (GTM_rollback_local): ... here.
  1525. (GTM_LB): Rename from GTM_alloc_local; do the memcpy here.
  1526. (_ITM_LB): Define as an alias to GTM_LB.
  1527. 2009-11-03 Richard Henderson <rth@redhat.com>
  1528. * method-readonly.c: New file.
  1529. * Makefile.am (libitm_la_SOURCES): Add it.
  1530. * Makefile.in: Rebuild.
  1531. * beginend.c (gtm_stmlock_array, gtm_clock): New.
  1532. (GTM_begin_transaction): Use dispatch_readonly for read-only txn.
  1533. * libitm_i.h (gtm_stmlock, gtm_version): Move from method-wbetl.c.
  1534. (GTM_VERSION_MAX, GTM_VERSION_INVALID, gtm_stmlock_owned_p,
  1535. gtm_stmlock_set_owned, gtm_stmlock_get_addr,
  1536. gtm_stmlock_get_version, gtm_stmlock_set_version, LOCK_ARRAY_SIZE,
  1537. gtm_stmlock_array, gtm_get_stmlock, gtm_clock, RESTART_NOT_READONLY,
  1538. gtm_get_clock, gtm_inc_clock): New.
  1539. * method-wbetl.c (gtm_version, gtm_stmlock, OWNED_MASK, VERSION_MAX,
  1540. LOCK_GET_OWNED, LOCK_SET_ADDR, LOCK_GET_ADDR, LOCK_GET_TIMESTAMP,
  1541. LOCK_SET_TIMESTAMP, LOCK_ARRAY_SIZE, LOCK_MASK, LOCK_IDX, GET_LOCK,
  1542. locks, gclock, CLOCK, GET_CLOCK, FETCH_AND_INC_CLOCK): Remove and
  1543. replace uses with new libitm_i.h symbols.
  1544. (dispatch_wbetl): Rename from wbetl_dispatch.
  1545. * retry.c (GTM_decide_retry_strategy): If RESTART_NOT_READONLY, move
  1546. away from dispatch_readonly; abort if the beginTransaction call
  1547. asserted that the transaction was readonly.
  1548. 2009-11-03 Richard Henderson <rth@redhat.com>
  1549. * memset.c: New file.
  1550. * Makefile.am (libitm_la_SOURCES): Add it.
  1551. * Makefile.in: Rebuild.
  1552. * testsuite/libitm.c/memset-1.c: New.
  1553. 2009-11-03 Richard Henderson <rth@redhat.com>
  1554. * dispatch.c: Remove file.
  1555. * useraction.c (struct gtm_user_action): Move from libitm.h.
  1556. * serial.c (GTM_null_read_lock, GTM_null_write_lock): New.
  1557. (serial_memset, serial_memmove, serial_memcpy): Remove.
  1558. (serial_W*, serial_R*): Remove.
  1559. (serial_dispatch): Update to match.
  1560. * configure.ac: Move Werror down below configure checks. Don't
  1561. check for sys/loadavg.h, do check for malloc.h. Don't check for
  1562. getloadavg and clock_gettime; do check for memalign, posix_memalign.
  1563. Use GCC_AC_FUNC_MMAP_BLACKLIST
  1564. * libitm.h: Split out all internal items to...
  1565. * libitm_i.h: ... here. New file.
  1566. * copymask.c: New file.
  1567. * local.c (struct gtm_local_undo): Move from libitm.h.
  1568. (GTM_alloc_local): Rename from alloc_local; export.
  1569. * memcpy.c: New file.
  1570. * alloc_c.c (_ITM_realloc): Use _ITM_memcpyRnWt directly.
  1571. * config/posix/page.c: New file.
  1572. * config/posix/target_tls.h: Remove file.
  1573. * barrier.c: New file.
  1574. * Makefile.am (libitm_la_SOURCES): Add barrier.c, memcpy.c,
  1575. copymask.c, page.c.
  1576. * alloc.c (struct gtm_alloc_action): Move from libitm.h.
  1577. * method-wbetl.c: Rewrite for new cacheline methods.
  1578. * Makefile.in, configure, testsuite/Makefile.in, config.h.in: Rebuild.
  1579. * config/alpha/sjlj.S: Fix typo.
  1580. * config/alpha/target_i.h: Copy functions from alpha/target.h.
  1581. * config/alpha/copymask.c: New file.
  1582. * config/alpha/target.h (CACHELINE_SIZE): New.
  1583. (STRICT_ALIGNMENT, PAGE_SIZE, FIXED_PAGE_SIZE): New.
  1584. * config/x86/target_i.h: Copy functions from x86/target.h.
  1585. * config/x86/copymask.c: New file.
  1586. * config/x86/target.h (_ITM_ALL_TARGET_TYPES): Remove.
  1587. (CACHELINE_SIZE, STRICT_ALIGNMENT): New.
  1588. (PAGE_SIZE, FIXED_PAGE_SIZE): New.
  1589. * config/x86/target_tls.h: Move contents to target_i.h.
  1590. * testsuite/libitm.c/clone-1.c: Include libitm.h.
  1591. * testsuite/libitm.c/memcpy-1.c: New.
  1592. 2009-10-22 Richard Henderson <rth@redhat.com>
  1593. * Makefile.am (CCAS, CCASFLAGS, LTCCASCOMPILE): Remove.
  1594. (AM_CCASFLAGS): New.
  1595. * configure.ac: Add AM_PROG_AS. Use m4_rename_force for
  1596. saving/restoring _AC_ARG_VAR_PRECIOUS.
  1597. * Makefile.in, aclocal.m4, config.h.in, configure,
  1598. testsuite/Makefile.in: Rebuild with automake 1.11; autoconf 2.64.
  1599. 2009-10-22 Richard Henderson <rth@redhat.com>
  1600. * testsuite/*: Update for new compiler syntax.
  1601. 2009-10-21 Richard Henderson <rth@redhat.com>
  1602. * libitm.h (_ITM_abortReason): Add outerAbort.
  1603. 2009-08-03 Richard Henderson <rth@redhat.com>
  1604. * libitm.map (_ITM_commitTransactionEH, _ITM_cxa_allocate_exception,
  1605. _ITM_cxa_begin_catch, _ITM_cxa_end_catch, _ITM_cxa_throw): Export.
  1606. * method-wbetl.c (struct w_entry): Remove mask.
  1607. (wbetl_write, wbetl_load): Return pointer to word containing the data;
  1608. adjust all callers.
  1609. 2009-07-22 Richard Henderson <rth@redhat.com>
  1610. * eh_cpp.c: New file.
  1611. * Makefile.am (libitm_la_SOURCES): Add it.
  1612. * Makefile.in: Rebuild.
  1613. * beginend.c (GTM_rollback_transaction): Undo exception state.
  1614. (GTM_trycommit_transaction): Mark inline.
  1615. (GTM_trycommit_and_finalize_transaction): Split out from ...
  1616. (_ITM_commitTransaction): ... here.
  1617. (_ITM_commitTransactionEH): New function.
  1618. * libitm.h (struct gtm_transaction): Add cxa_catch_count,
  1619. cxa_unthrown, eh_in_flight; reorder.
  1620. * testsuite/libitm.c++/c++.exp: New.
  1621. * testsuite/libitm.c++/eh-1.C: New.
  1622. * aatree.c (aa_free): Remove REGPARM.
  1623. * aatree.h: Remove all REGPARM.
  1624. 2009-07-18 Richard Henderson <rth@redhat.com>
  1625. * aatree.c, aatree.h, alloc.c, alloc_c.c, alloc_cpp.c: New files.
  1626. * Makefile.am (libitm_la_SOURCES): Add them.
  1627. * Makefile.in: Rebuild.
  1628. * beginend.c (GTM_rollback_transaction): Use GTM_commit_allocations.
  1629. (GTM_trycommit_transaction): Likewise.
  1630. * libitm.h: Include aatree.h
  1631. (struct gtm_alloc_action): New.
  1632. (struct gtm_transaction): Add alloc_actions.
  1633. (GTM_record_allocation, GTM_forget_allocation): Declare.
  1634. (GTM_get_allocation_size, GTM_commit_allocations): Declare.
  1635. * libitm.map (_ITM_malloc, _ITM_calloc, _ITM_realloc, _ITM_free,
  1636. _ZGTtnwm, _ZGTtnam, _ZGTtdlPv, _ZGTtdaPv, _ZGTtnwmRKSt9nothrow_t,
  1637. _ZGTtnamRKSt9nothrow_t, _ZGTtdlPvRKSt9nothrow_t,
  1638. _ZGTtdaPvRKSt9nothrow_t): Export.
  1639. 2009-07-18 Richard Henderson <rth@redhat.com>
  1640. * target_tls.h: Move ...
  1641. * config/posix/target_tls.h: ... here.
  1642. 2009-07-07 Richard Henderson <rth@redhat.com>
  1643. * config/x86/target.h (atomic_write_barrier): Use sfence if available.
  1644. 2009-07-07 Richard Henderson <rth@redhat.com>
  1645. * Update to GPL3.
  1646. 2009-07-07 Richard Henderson <rth@redhat.com>
  1647. * libitm.h (struct gtm_transaction): Widen id to _ITM_transactionId_t.
  1648. * beginend.c (global_tid): Widen to _ITM_transactionId_t.
  1649. * configure.tgt: Don't use -ftls-model for x86 linux.
  1650. * libitm.h: Include target.h after standard includes.
  1651. (_gtm_thr): Rename from gtm_thr.
  1652. (setup_gtm_thr, gtm_thr, gtm_tx, set_gtm_tx): New.
  1653. (gtm_disp, set_gtm_disp): New.
  1654. * beginend.c, dispatch.c, local.c, method-wbetl.c, query.c,
  1655. retry.c, serial.c, useraction.c: Use accessor functions throughout.
  1656. * config/alpha/target_tls.h, config/x86/target_tls.h: New files.
  1657. 2009-07-07 Richard Henderson <rth@redhat.com>
  1658. * config/linux/rwlock.c (EZ): New define. Use it throughout.
  1659. 2009-07-06 Richard Henderson <rth@redhat.com>
  1660. * libitm.h (_ITM_SRCLOCATION_DECL_1, _ITM_SRCLOCATION_DECL_2): Remove.
  1661. (_ITM_SRCLOCATION_DEFN_1, _ITM_SRCLOCATION_DEFN_2): Remove.
  1662. (_ITM_beginTransaction): Take variadic arguments.
  1663. (_ITM_registerThrownObject): Declare.
  1664. * beginend.c, serial.c: Update.
  1665. * libitm.map: Add _ITM_registerThrownObject.
  1666. 2009-01-28 Richard Henderson <rth@redhat.com>
  1667. * Makefile.am (libitm_la_SOURCES): Add clone.c.
  1668. * Makefile.in: Rebuild.
  1669. * beginend.c (_ITM_abortTransaction): Abort if irrevokable.
  1670. (GTM_restart_transaction): Fix uninstrumented code check.
  1671. * retry.c (GTM_decide_retry_strategy): Add serial check.
  1672. * serial.c (GTM_serialmode): Add irrevokable variable. Don't
  1673. automatically go irrevokable when in serial mode.
  1674. * clone.c: New file.
  1675. * libitm.h, libitm.map: Update.
  1676. 2009-01-27 Richard Henderson <rth@redhat.com>
  1677. * Makefile.am (LTCCASCOMPILE): Define.
  1678. (libitm_la_SOURCES): Add methid-wbetl.c.
  1679. * testsuite/Makefile.am: New
  1680. * configure.ac: Add testsuite/Makefile.
  1681. * Makefile.in, testsuite/Makefile.in, configure: Regenerate.
  1682. * beginend.c (GTM_begin_transaction): Install wbetl_dispatch.
  1683. (_ITM_abortTransaction): Finalize implementation method; pass
  1684. transaction properties to longjmp.
  1685. (GTM_restart_transaction): Split out from ...
  1686. (_ITM_commitTransaction): ... here.
  1687. * config/linux/x86/futex_bits.h (cpu_relax, atomic_write_barrier):
  1688. Move to config/x86/target.h.
  1689. * config/linux/alpha/futex_bits.h: New.
  1690. * config/x86/sjlj.S (GTM_longjmp): Fix 64-bit input register.
  1691. * config/x86/target.h: Disable target types for 32-bit.
  1692. * config/alpha/sjlj.S, config/alpha/target.h: New.
  1693. * libitm.h (struct gtm_dispatch): Add init, fini.
  1694. (enum restart_reason): New.
  1695. (struct gtm_transaction): Add method and restarts.
  1696. * retry.c (GTM_decide_retry_strategy): Implement.
  1697. * serial.c (serial_init, serial_fini): New.
  1698. (GTM_serialmode): Finialize outgoing method.
  1699. * method-wbetl.c: New.
  1700. 2008-12-09 Richard Henderson <rth@redhat.com>
  1701. * config/x86/target.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): New.
  1702. * configure.tgt (i386-*, x86_64-*): Don't force SSE.
  1703. * dispatch.c (_ITM_##R##T, _ITM_##W##T): Use _ITM_TYPE_ATTR.
  1704. * libitm.h (_ITM_ALL_TARGET_TYPES, _ITM_TYPE_ATTR): Provide default.
  1705. (_ITM_TYPE_M64, _ITM_TYPE_M128, _ITM_TYPE_M256): Move to x86 header.
  1706. (_ITM_ALL_TYPES): Use _ITM_ALL_TARGET_TYPES.
  1707. * local.c (_ITM_L##T): Use _ITM_TYPE_ATTR.
  1708. * serial.c (serial_R##T, serial_W##T): Likewise.
  1709. 2008-11-21 Richard Henderson <rth@redhat.com>
  1710. * Initial commit.
  1711. Copyright (C) 2008-2022 Free Software Foundation, Inc.
  1712. Copying and distribution of this file, with or without modification,
  1713. are permitted in any medium without royalty provided the copyright
  1714. notice and this notice are preserved.