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