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