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