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