1 2015-06-15 Tom de Vries <tom@codesourcery.com>
3 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
4 dg-additional-options for any remaining options.
5 * testsuite/libgomp.c/atomic-2.c: Same.
6 * testsuite/libgomp.c/atomic-4.c: Same.
7 * testsuite/libgomp.c/atomic-5.c: Same.
8 * testsuite/libgomp.c/atomic-6.c: Same.
9 * testsuite/libgomp.c/autopar-1.c: Same.
10 * testsuite/libgomp.c/copyin-1.c: Same.
11 * testsuite/libgomp.c/copyin-2.c: Same.
12 * testsuite/libgomp.c/copyin-3.c: Same.
13 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14 * testsuite/libgomp.c/nestedfn-5.c: Same.
15 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
16 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
17 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
18 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
19 * testsuite/libgomp.c/pr32362-1.c: Same.
20 * testsuite/libgomp.c/pr32362-2.c: Same.
21 * testsuite/libgomp.c/pr32362-3.c: Same.
22 * testsuite/libgomp.c/pr39591-1.c: Same.
23 * testsuite/libgomp.c/pr39591-2.c: Same.
24 * testsuite/libgomp.c/pr39591-3.c: Same.
25 * testsuite/libgomp.c/pr58392.c: Same.
26 * testsuite/libgomp.c/pr58756.c: Same.
27 * testsuite/libgomp.c/simd-1.c: Same.
28 * testsuite/libgomp.c/simd-10.c: Same.
29 * testsuite/libgomp.c/simd-11.c: Same.
30 * testsuite/libgomp.c/simd-12.c: Same.
31 * testsuite/libgomp.c/simd-13.c: Same.
32 * testsuite/libgomp.c/simd-14.c: Same.
33 * testsuite/libgomp.c/simd-15.c: Same.
34 * testsuite/libgomp.c/simd-2.c: Same.
35 * testsuite/libgomp.c/simd-3.c: Same.
36 * testsuite/libgomp.c/simd-4.c: Same.
37 * testsuite/libgomp.c/simd-5.c: Same.
38 * testsuite/libgomp.c/simd-6.c: Same.
39 * testsuite/libgomp.c/simd-7.c: Same.
40 * testsuite/libgomp.c/simd-8.c: Same.
41 * testsuite/libgomp.c/simd-9.c: Same.
43 2015-06-15 Tom de Vries <tom@codesourcery.com>
45 * testsuite/libgomp.c/pr35625.c: Fix typo.
47 2015-06-15 Tom de Vries <tom@codesourcery.com>
49 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
51 * testsuite/libgomp.c/atomic-3.c: Same.
52 * testsuite/libgomp.c/debug-1.c: Same.
53 * testsuite/libgomp.c/nqueens-1.c: Same.
54 * testsuite/libgomp.c/pr26171.c: Same.
55 * testsuite/libgomp.c/pr48591.c: Same.
56 * testsuite/libgomp.c/pr64824.c: Same.
57 * testsuite/libgomp.c/pr64868.c: Same.
58 * testsuite/libgomp.c/pr66133.c: Same.
59 * testsuite/libgomp.c/pr66199-1.c: Same.
60 * testsuite/libgomp.c/pr66199-2.c: Same.
61 * testsuite/libgomp.c/target-8.c: Same.
63 2015-06-15 Tom de Vries <tom@codesourcery.com>
65 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
67 * testsuite/libgomp.c/for-1.c: Same.
68 * testsuite/libgomp.c/for-2.c: Same.
69 * testsuite/libgomp.c/for-3.c: Same.
70 * testsuite/libgomp.c/pr35625.c: Same.
71 * testsuite/libgomp.c/pr39154.c: Same.
72 * testsuite/libgomp.c/simd-16.c: Same.
73 * testsuite/libgomp.c/simd-17.c: Same.
75 2015-06-13 Tom de Vries <tom@codesourcery.com>
77 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
79 2015-06-13 Tom de Vries <tom@codesourcery.com>
81 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
82 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
83 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
85 (main): Use N instead of hardcoded constants.
87 2015-06-05 Tom de Vries <tom@codesourcery.com>
89 merge from gomp4 branch:
90 2015-05-28 Tom de Vries <tom@codesourcery.com>
92 PR tree-optimization/65443
93 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
94 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
95 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
97 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
99 * testsuite/libgomp.graphite/bounds.c: Adjust for
100 cleanup-tree-dump removal.
101 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
102 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
103 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
104 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
105 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
106 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
107 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
108 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
109 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
110 * testsuite/libgomp.graphite/pr41118.c: Likewise.
112 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
114 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
115 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
116 (futex_wake) [!__x86_64__]: Ditto.
118 2015-05-28 Julian Brown <julian@codesourcery.com>
120 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
121 function comment. Only call gomp_fatal if new argument is true.
122 (acc_dev_num_out_of_range): New function.
123 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
124 acc_dev_num_out_of_range as appropriate.
125 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
126 (acc_get_device_num, acc_set_device_num): Update calls to
128 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
131 2015-05-28 Julian Brown <julian@codesourcery.com>
134 * oacc-init.c (plugin/plugin-host.h): Include.
135 (acc_on_device): Check whether we're in an offloaded region for
137 plugin. Don't use __builtin_acc_on_device.
138 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
139 nonshm_exec flag in thread-local data.
140 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
141 data for host_nonshm plugin.
142 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
143 for host_nonshm plugin.
144 * plugin/plugin-host.h: New.
146 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
148 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
150 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
152 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
154 (FUTEX_PRIVATE_FLAG): Remove L suffix.
155 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
158 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
160 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
162 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
164 * target.c (gomp_map_pointer): New function abstracting out
165 GOMP_MAP_POINTER handling.
166 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
169 2015-05-19 Jakub Jelinek <jakub@redhat.com>
172 * testsuite/libgomp.c/pr66199-1.c: New test.
173 * testsuite/libgomp.c/pr66199-2.c: New test.
174 * testsuite/libgomp.c++/pr66199-1.C: New test.
175 * testsuite/libgomp.c++/pr66199-2.C: New test.
176 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
177 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
179 2015-05-19 Julian Brown <julian@codesourcery.com>
181 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
184 2015-05-13 Jakub Jelinek <jakub@redhat.com>
187 * testsuite/libgomp.c/pr66133.c: New test.
189 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
191 * Makefile.in: Regenerated with automake-1.11.6.
192 * aclocal.m4: Likewise.
193 * config.h.in: Likewise.
194 * configure: Likewise.
195 * testsuite/Makefile.in: Likewise.
197 2015-05-08 Jason Merrill <jason@redhat.com>
199 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
202 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
204 2015-05-06 Julian Brown <julian@codesourcery.com>
206 * oacc-init.c (acc_device_lock): Add explanatory comment.
207 (resolve_device): Add comment about locking requirement.
208 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
209 gomp_init_device and gomp_fini_device calls.
210 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
211 (acc_get_device_num, acc_set_device_num): Add locking around
212 resolve_device and gomp_init_device calls.
214 2015-05-06 Julian Brown <julian@codesourcery.com>
216 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
217 goacc_thread_lock on error paths.
218 * oacc-mem.c (lookup_host): Remove locking from function. Note
219 locking requirement for caller in function comment.
220 (lookup_dev): Likewise.
221 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
222 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
223 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
226 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
230 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
231 don't expect "0x" prefix for "%p" format specifier, don't expect
232 "(nil)" for NULL pointer.
233 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
234 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
235 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
236 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
237 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
238 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
239 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
240 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
241 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
242 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
243 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
244 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
245 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
246 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
247 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
248 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
249 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
250 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
251 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
252 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
253 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
254 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
255 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
256 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
257 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
258 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
259 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
260 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
261 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
262 accurately specify what we're looking for.
263 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
264 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
265 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
266 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
267 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
269 2015-04-30 James Norris <jnorris@codesourcery.com>
272 * testsuite/lib/libgomp.exp
273 (check_effective_target_openacc_host_selected)
274 (check_effective_target_openacc_host_nonshm_selected): New
276 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
278 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
279 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
280 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
281 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
282 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
283 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
284 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
285 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
286 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
287 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
288 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
289 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
290 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
291 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
292 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
293 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
294 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
295 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
296 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
297 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
298 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
299 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
300 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
301 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
302 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
303 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
304 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
305 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
306 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
307 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
308 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
309 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
310 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
311 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
312 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
313 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
314 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
315 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
316 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
317 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
318 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
319 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
320 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
322 2015-04-08 Julian Brown <julian@codesourcery.com>
324 * libgomp.h (target_mem_desc: Remove mem_map field.
325 (acc_dispatch_t): Remove open_device_func, close_device_func,
326 get_device_num_func, set_device_num_func, target_data members.
327 Change create_thread_data_func argument to device number instead of
329 * oacc-async.c (assert.h): Include.
330 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
331 (acc_wait_all, acc_wait_all_async): Use current host thread's
332 active device, not base_dev.
333 * oacc-cuda.c (acc_get_current_cuda_device)
334 (acc_get_current_cuda_context, acc_get_cuda_stream)
335 (acc_set_cuda_stream): Likewise.
336 * oacc-host.c (host_dispatch): Don't set open_device_func,
337 close_device_func, get_device_num_func or set_device_num_func.
338 * oacc-init.c (base_dev, init_key): Remove.
339 (cached_base_dev): New.
340 (name_of_acc_device_t): New.
341 (acc_init_1): Initialise default-numbered device, not zeroth.
342 (acc_shutdown_1): Close all devices of a given type.
343 (goacc_destroy_thread): Don't use base_dev.
344 (lazy_open, lazy_init, lazy_init_and_open): Remove.
345 (goacc_attach_host_thread_to_device): New.
346 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
347 (acc_get_num_devices): Don't use base_dev.
348 (acc_set_device_type): Reimplement.
349 (acc_get_device_type): Don't use base_dev.
350 (acc_get_device_num): Tweak logic.
351 (acc_set_device_num): Likewise.
352 (acc_on_device): Use acc_get_device_type.
353 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
354 (goacc_lazy_initialize): Reimplement with acc_init and
355 goacc_attach_host_thread_to_device.
356 * oacc-int.h (goacc_thread): Add base_dev field.
357 (base_dev): Remove extern declaration.
358 (goacc_attach_host_thread_to_device): Add prototype.
359 * oacc-mem.c (acc_malloc): Use current thread's device instead of
361 (acc_free): Likewise.
362 (acc_memcpy_to_device): Likewise.
363 (acc_memcpy_from_device): Likewise.
364 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
365 goacc_lazy_initialize (throughout).
366 (GOACC_parallel): Use tgt_offset to locate target functions.
367 * target.c (gomp_map_vars): Don't set tgt->mem_map.
368 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
369 (gomp_load_plugin_for_device): Remove open_device, close_device,
370 get_device_num, set_device_num openacc hook initialisation. Don't set
372 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
373 (GOMP_OFFLOAD_openacc_close_device)
374 (GOMP_OFFLOAD_openacc_get_device_num)
375 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
376 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
378 * plugin/plugin-nvptx.c (ptx_inited): Remove.
379 (instantiated_devices, ptx_dev_lock): New.
380 (struct ptx_image_data): New.
381 (ptx_devices, ptx_images, ptx_image_lock): New.
382 (fini_streams_for_device): Reorder cuStreamDestroy call.
383 (nvptx_get_num_devices): Remove forward declaration.
384 (nvptx_init): Change return type to bool.
385 (nvptx_fini): Remove.
386 (nvptx_attach_host_thread_to_device): New.
387 (nvptx_open_device): Return struct ptx_device* instead of void*.
388 (nvptx_close_device): Change argument type to struct ptx_device*,
390 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
391 (kernel_target_data, kernel_host_table): Remove static globals.
392 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
393 (GOMP_OFFLOAD_init_device): Reimplement.
394 (GOMP_OFFLOAD_fini_device): Likewise.
395 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
396 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
397 (GOMP_OFFLOAD_host2dev): Use ORD argument.
398 (GOMP_OFFLOAD_openacc_open_device)
399 (GOMP_OFFLOAD_openacc_close_device)
400 (GOMP_OFFLOAD_openacc_set_device_num)
401 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
402 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
406 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
408 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
410 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
411 * libgomp.h (struct gomp_memory_mapping): Remove.
412 (struct target_mem_desc): Change type of mem_map from
413 gomp_memory_mapping * to splay_tree_s *.
414 (struct gomp_device_descr): Remove register_image_func, get_table_func.
415 Add load_image_func, unload_image_func.
416 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
417 Remove offload_regions_registered.
418 (gomp_init_tables): Remove.
419 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
421 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
422 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
423 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
424 offload_regions_registered.
425 Initialize load_image_func, unload_image_func, mem_map.root.
426 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
427 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
428 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
429 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
430 gomp_memory_mapping *. Use dev's lock and splay_tree.
431 (lookup_dev): Use dev's lock.
432 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
433 (acc_is_present): Likewise.
434 (acc_map_data): Likewise.
435 (acc_unmap_data): Likewise. Use dev's lock.
436 (present_create_copy): Likewise.
437 (delete_copyout): Pass dev to lookup_host instead of mem_map.
438 (update_dev_host): Likewise.
439 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
440 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
441 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
442 (GOMP_OFFLOAD_get_table): Remove
443 (GOMP_OFFLOAD_load_image): New function.
444 (GOMP_OFFLOAD_unload_image): New function.
445 * target.c (register_lock): New mutex for offload image registration.
446 (num_devices): Do not guard with PLUGIN_SUPPORT.
447 (gomp_realloc_unlock): New static function.
448 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
450 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
451 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
452 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
454 (gomp_unmap_vars): Likewise.
455 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
456 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
457 (gomp_offload_image_to_device): New static function.
458 (GOMP_offload_register): Add mutex lock.
459 Call gomp_offload_image_to_device for all initialized devices.
460 Replace gomp_realloc with gomp_realloc_unlock.
461 (GOMP_offload_unregister): New function.
462 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
463 get_table_func from the plugin with calls to init_device_func and
464 gomp_offload_image_to_device.
465 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
467 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
468 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
469 (GOMP_target_data): Do not call gomp_init_tables.
470 (GOMP_target_update): Likewise. Remove argument from gomp_update.
471 (gomp_load_plugin_for_device): Replace register_image and get_table
472 with load_image and unload_image in DLSYM ().
473 (gomp_register_images_for_device): Remove function.
474 (gomp_target_init): Do not initialize current_device.mem_map.*,
475 current_device.offload_regions_registered.
476 Remove call to gomp_register_images_for_device.
477 Do not free offload_images and num_offload_images.
479 2015-03-30 Jakub Jelinek <jakub@redhat.com>
482 * testsuite/libgomp.fortran/pr65597.f90: New test.
484 2015-03-27 Tom de Vries <tom@codesourcery.com>
487 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
488 (init, check): New function.
489 (foo): Change return type to void.
490 (main): Call init and check.
492 2015-03-27 Tom de Vries <tom@codesourcery.com>
495 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
496 (foo): Use M for non-inner loops to scale down test-case.
498 2015-03-25 Kai Tietz <ktietz@redhat.com>
501 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
502 (GOACC_data_start): Likewise.
503 * target.c (gomp_map_vars): Likewise.
505 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
507 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
510 2015-03-19 Jakub Jelinek <jakub@redhat.com>
512 * testsuite/libgomp.c/target-10.c: New test.
513 * testsuite/libgomp.c++/target-4.C: New test.
515 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
517 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
518 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
520 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
522 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
523 * configure.ac (*-*-rtems*): Assume Pthread is supported.
524 (pthread.h): Check for this header file.
525 * configure: Regenerate.
527 2015-02-25 Tom de Vries <tom@codesourcery.com>
529 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
530 (check_reduction_op, check_reduction_macro, max, min):
532 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
534 (main): Use new functions.
536 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
538 * target.c (gomp_load_plugin_for_device): Use const char * instead of
539 char * for variables holding dlerror return values.
542 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
544 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
546 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
547 Cesar Philippidis <cesar@codesourcery.com>
549 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
550 GOACC_ctaid, and GOACC_nctaid routines.
552 2015-02-11 Jakub Jelinek <jakub@redhat.com>
555 * testsuite/libgomp.c/atomic-18.c: New test.
556 * testsuite/libgomp.c++/atomic-16.C: New test.
558 2015-02-04 Jakub Jelinek <jakub@redhat.com>
562 * testsuite/libgomp.c/pr64824.c: New test.
563 * testsuite/libgomp.c/pr64868.c: New test.
564 * testsuite/libgomp.c++/pr64824.C: New test.
565 * testsuite/libgomp.c++/pr64868.C: New test.
567 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
570 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
572 * config/aix/plugin-suffix.h: Delete.
574 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
577 * configure.tgt (*-*-aix*): Use config_path "aix posix".
578 (*-*-darwin*): Use config_path "bsd darwin posix".
579 (*-*-hpux*): Use config_path "hpux posix".
580 * target.c: Add include of plugin-suffix.h and use
582 * config/aix/plugin-suffix.h: New file.
583 * config/darwin/plugin-suffix.h: New file.
584 * config/hpux/plugin-suffix.h: New file.
585 * config/posix/plugin-suffix.h: New file.
587 2015-01-23 Jakub Jelinek <jakub@redhat.com>
590 * libgomp.c/pr64734.c: New test.
592 2015-01-23 Tom de Vries <tom@codesourcery.com>
595 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
597 2015-01-23 Tom de Vries <tom@codesourcery.com>
600 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
603 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
606 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
607 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
608 formal parameter. Update all users.
609 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
610 Document unused formal parameter.
612 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
614 * oacc-parallel.c: Don't include <alloca.h>.
615 (GOACC_parallel): Use gomp_alloca instead of alloca.
617 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
619 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
621 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
622 James Norris <jnorris@codesourcery.com>
623 Tom de Vries <tom@codesourcery.com>
624 Julian Brown <julian@codesourcery.com>
625 Cesar Philippidis <cesar@codesourcery.com>
626 Nathan Sidwell <nathan@codesourcery.com>
627 Tobias Burnus <burnus@net-b.de>
629 * Makefile.am (search_path): Add $(top_srcdir)/../include.
630 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
631 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
632 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
633 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
634 Include $(top_srcdir)/plugin/Makefrag.am.
635 (nodist_libsubinclude_HEADERS): Add openacc.h.
636 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
637 openacc.f90, openacc.mod, openacc_kinds.mod.
638 (omp_lib.mod): Generalize into...
639 (%.mod): ... this new rule.
640 (openacc_kinds.mod, openacc.mod): New rules.
641 * plugin/configfrag.ac: New file.
642 * configure.ac: Move plugin/offloading support into it. Include
643 it. Instantiate testsuite/libgomp-test-support.pt.exp.
644 * plugin/Makefrag.am: New file.
645 * testsuite/Makefile.am (OFFLOAD_TARGETS)
646 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
648 (libgomp-test-support.exp): New rule.
649 (all-local): Depend on it.
650 * Makefile.in: Regenerate.
651 * testsuite/Makefile.in: Regenerate.
652 * config.h.in: Likewise.
653 * configure: Likewise.
654 * configure.tgt: Harden shell syntax.
655 * env.c: Include "oacc-int.h".
656 (parse_acc_device_type): New function.
657 (gomp_debug_var, goacc_device_type, goacc_device_num): New
659 (initialize_env): Initialize those. Call
660 goacc_runtime_initialize.
661 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
662 (gomp_fatal): Call gomp_vfatal.
663 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
664 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
665 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
666 (splay_tree_node, splay_tree, splay_tree_key)
667 (struct target_mem_desc, struct splay_tree_key_s)
668 (struct gomp_memory_mapping, struct acc_dispatch_t)
669 (struct gomp_device_descr, gomp_acc_insert_pointer)
670 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
671 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
672 (gomp_free_memmap, gomp_fini_device): New declarations.
673 (gomp_vdebug, gomp_debug): New macros.
674 Include "splay-tree.h".
675 * libgomp.map (OACC_2.0): New symbol version. Use for
676 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
677 acc_set_device_type_h_, acc_get_device_type,
678 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
679 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
680 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
681 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
682 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
683 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
684 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
685 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
686 acc_copyin_array_h_, acc_present_or_copyin,
687 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
688 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
689 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
690 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
691 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
692 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
693 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
694 acc_update_device, acc_update_device_32_h_,
695 acc_update_device_64_h_, acc_update_device_array_h_,
696 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
697 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
698 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
699 acc_is_present_64_h_, acc_is_present_array_h_,
700 acc_memcpy_to_device, acc_memcpy_from_device,
701 acc_get_current_cuda_device, acc_get_current_cuda_context,
702 acc_get_cuda_stream, acc_set_cuda_stream.
703 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
704 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
705 GOACC_update, GOACC_wait, GOACC_get_thread_num,
706 GOACC_get_num_threads.
707 (GOMP_PLUGIN_1.0): New symbol version. Use for
708 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
709 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
710 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
711 GOMP_PLUGIN_acc_thread.
712 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
713 environment variable.
714 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
715 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
716 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
717 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
718 (splay_tree_remove): New declarations.
719 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
720 (splay_tree_remove, splay_tree_lookup): Move into...
721 * splay-tree.c: ... this new file.
722 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
723 (splay_tree_node, splay_tree, splay_tree_key)
724 (struct target_mem_desc, struct splay_tree_key_s)
725 (struct gomp_device_descr): Don't declare.
726 (num_devices_openmp): New variable.
727 (gomp_get_num_devices ): Use it.
728 (gomp_init_targets_once): New function.
729 (gomp_get_num_devices ): Use it.
730 (get_kind, gomp_copy_from_async, gomp_free_memmap)
731 (gomp_fini_device, gomp_register_image_for_device): New functions.
732 (gomp_map_vars): Add devaddrs parameter.
733 (gomp_update): Add mm parameter.
734 (gomp_init_device): Move most of it into...
735 (gomp_init_tables): ... this new function.
736 (gomp_register_images_for_device): Remove function.
737 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
738 Make them hidden instead of static.
739 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
740 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
741 (GOMP_target_end_data, GOMP_target_update)
742 (gomp_load_plugin_for_device, gomp_target_init): Update for
744 * oacc-async.c: New file.
745 * oacc-cuda.c: Likewise.
746 * oacc-host.c: Likewise.
747 * oacc-init.c: Likewise.
748 * oacc-int.h: Likewise.
749 * oacc-mem.c: Likewise.
750 * oacc-parallel.c: Likewise.
751 * oacc-plugin.c: Likewise.
752 * oacc-plugin.h: Likewise.
753 * oacc-ptx.h: Likewise.
754 * openacc.f90: Likewise.
755 * openacc.h: Likewise.
756 * openacc_lib.h: Likewise.
757 * plugin/plugin-host.c: Likewise.
758 * plugin/plugin-nvptx.c: Likewise.
759 * libgomp-plugin.c: Likewise.
760 * libgomp-plugin.h: Likewise.
761 * libgomp_target.h: Remove file after merging content into the
762 former file. Update all users.
763 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
764 (offload_targets_s, offload_targets_s_openacc): New variables.
765 (check_effective_target_openacc_nvidia_accel_present)
766 (check_effective_target_openacc_nvidia_accel_selected): New
768 (libgomp_init): Update for OpenACC changes.
769 * testsuite/libgomp-test-support.exp.in: New file.
770 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
771 * testsuite/libgomp.oacc-c/c.exp: Likewise.
772 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
773 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
774 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
775 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
776 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
777 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
778 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
779 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
780 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
781 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
782 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
783 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
784 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
785 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
786 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
787 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
788 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
789 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
790 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
791 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
792 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
793 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
794 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
795 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
796 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
797 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
798 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
799 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
800 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
801 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
802 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
803 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
804 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
805 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
806 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
807 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
808 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
809 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
810 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
811 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
812 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
813 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
814 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
815 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
816 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
817 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
818 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
819 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
820 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
821 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
822 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
823 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
824 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
825 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
826 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
827 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
828 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
829 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
830 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
831 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
832 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
833 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
834 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
835 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
836 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
837 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
838 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
839 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
840 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
841 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
842 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
843 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
844 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
845 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
846 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
847 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
848 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
849 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
850 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
851 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
852 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
853 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
854 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
855 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
856 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
857 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
858 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
859 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
860 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
861 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
862 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
863 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
864 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
865 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
866 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
867 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
868 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
869 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
870 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
871 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
872 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
873 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
874 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
875 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
876 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
877 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
878 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
879 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
880 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
881 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
882 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
883 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
884 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
885 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
886 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
887 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
888 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
889 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
890 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
891 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
892 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
893 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
894 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
895 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
896 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
897 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
898 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
899 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
900 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
901 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
902 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
903 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
904 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
905 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
906 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
907 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
908 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
909 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
911 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
912 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
913 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
914 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
915 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
916 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
917 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
918 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
919 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
920 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
921 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
922 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
923 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
924 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
925 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
926 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
927 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
928 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
929 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
930 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
931 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
932 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
933 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
934 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
935 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
936 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
937 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
938 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
939 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
940 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
941 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
942 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
943 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
944 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
945 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
946 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
947 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
948 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
949 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
950 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
951 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
952 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
953 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
954 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
955 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
956 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
957 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
958 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
959 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
960 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
961 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
962 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
963 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
964 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
965 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
966 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
967 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
968 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
969 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
970 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
972 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
973 Julian Brown <julian@codesourcery.com>
974 David Malcolm <dmalcolm@redhat.com>
976 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
977 to "GNU Offloading and Multi Processing Runtime Library". Change
979 * configure: Regenerate.
980 * libgomp.texi: Update.
982 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
984 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
986 * configure: Regenerate.
988 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
989 "intelmic" in $offload_targets.
991 2015-01-05 Jakub Jelinek <jakub@redhat.com>
993 Update copyright years.
995 * libgomp.texi: Bump @copying's copyright year.
997 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
999 * testsuite/lib/libgomp.exp: Load target-utils.exp.
1000 Move load of target-supportes.exp earlier.
1002 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
1004 * testsuite/libgomp.c/target-9.c: New test.
1006 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
1008 * config.h.in: Regenerate.
1009 * configure: Regenerate.
1010 * configure.ac: Add GCC_CHECK_EMUTLS.
1011 * libgomp.h: Add check for USE_EMUTLS: this case
1012 is equal to HAVE_TLS.
1015 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
1017 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
1019 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
1020 Ilya Verbin <ilya.verbin@intel.com>
1022 * testsuite/libgomp.c/target-critical-1.c: New test.
1024 2014-11-26 Jakub Jelinek <jakub@redhat.com>
1026 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
1027 to dg-options unless expensive testing is on.
1028 (TESTITERS): Define to N if not defined.
1029 (main): Use TESTITERS instead of N.
1030 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
1031 dg-additional-options depending on whether expensive testing is on.
1032 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
1033 Decrease N to 100000 and CHUNKSZ to 10000.
1035 2014-11-24 Jakub Jelinek <jakub@redhat.com>
1038 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
1039 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
1041 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
1043 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
1045 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1048 * configure: Regenerated.
1050 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
1052 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
1053 vect_simd_clones effective target.
1054 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1056 2014-11-14 Jakub Jelinek <jakub@redhat.com>
1058 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
1059 of 32 as block_size.
1060 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
1061 instead of 32 as block_size.
1063 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1064 Ilya Verbin <ilya.verbin@intel.com>
1066 * Makefile.in: Regenerate.
1067 * configure: Regenerate.
1068 * configure.ac: Set up offload_additional_options,
1069 offload_additional_lib_paths and offload_targets.
1070 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
1071 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
1072 * testsuite/Makefile.in: Regenerate.
1073 * testsuite/lib/libgomp.exp (libgomp_init): Append
1074 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
1075 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
1076 build directory to LD_LIBRARY_PATH for intelmic offload targets.
1078 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1079 Ilya Verbin <ilya.verbin@intel.com>
1080 Kirill Yukhin <kirill.yukhin@intel.com>
1081 Ilya Tocar <ilya.tocar@intel.com>
1083 * testsuite/lib/libgomp.exp
1084 (check_effective_target_offload_device): New.
1085 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
1086 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
1087 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
1088 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
1089 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
1090 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
1091 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
1092 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
1093 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
1094 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
1095 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
1096 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
1097 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
1098 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
1099 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
1100 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
1101 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
1102 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
1103 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
1104 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
1105 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
1106 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
1107 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
1108 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
1109 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
1110 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
1111 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
1112 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
1113 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
1114 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
1115 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
1116 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
1117 * testsuite/libgomp.c/target-7.c: Fix test.
1118 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
1119 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
1120 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
1121 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
1122 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
1123 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
1124 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
1125 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
1126 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
1127 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
1128 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
1129 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
1130 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
1131 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
1132 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
1133 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
1134 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
1135 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
1136 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1137 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
1138 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
1139 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
1140 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
1141 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
1142 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
1143 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
1144 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
1145 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
1146 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
1147 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
1148 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
1150 2014-11-13 Jakub Jelinek <jakub@redhat.com>
1151 Ilya Verbin <ilya.verbin@intel.com>
1152 Thomas Schwinge <thomas@codesourcery.com>
1153 Andrey Turetskiy <andrey.turetskiy@intel.com>
1155 * libgomp.map (GOMP_4.0.1): New symbol version.
1156 Add GOMP_offload_register.
1157 * libgomp_target.h: New file.
1158 * splay-tree.h: New file.
1159 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
1160 (gomp_target_init): New forward declaration.
1161 (gomp_is_initialized): New static variable.
1162 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
1163 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
1165 (offload_images, num_offload_images, devices, num_devices): New static
1167 (splay_compare): New static function.
1168 (struct gomp_device_descr): New structure.
1169 (gomp_get_num_devices): Call gomp_target_init.
1170 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
1171 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
1172 (GOMP_offload_register): New function.
1173 (GOMP_target): Arrange for host callback to be performed in a separate
1174 initial thread and contention group, inheriting ICVs from
1175 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
1176 Add device initialization and lookup for target function in splay tree.
1177 (GOMP_target_data): Add device initialization and call gomp_map_vars.
1178 (GOMP_target_end_data): Call gomp_unmap_vars.
1179 (GOMP_target_update): Add device initialization and call gomp_update.
1180 (gomp_load_plugin_for_device, gomp_register_images_for_device)
1181 (gomp_target_init): New static functions.
1183 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
1184 Thomas Schwinge <thomas@codesourcery.com>
1185 Ilya Verbin <ilya.verbin@intel.com>
1186 Andrey Turetskiy <andrey.turetskiy@intel.com>
1188 * config.h.in: Regenerate.
1189 * configure: Regenerate.
1190 * configure.ac: Check for libdl, required for plugin support.
1191 (PLUGIN_SUPPORT): Define if plugins are supported.
1192 (enable_offload_targets): Support Intel MIC targets.
1193 (OFFLOAD_TARGETS): List of target names suitable for offloading.
1195 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1198 * configure: Regenerate.
1200 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1202 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1204 2014-10-06 Marek Polacek <polacek@redhat.com>
1206 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1207 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1208 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1209 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1211 2014-10-06 Marek Polacek <polacek@redhat.com>
1213 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1214 * testsuite/libgomp.c/nqueens-1.c: Likewise.
1215 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1216 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1217 * testsuite/libgomp.c/pr36802-2.c: Likewise.
1218 * testsuite/libgomp.c/pr36802-3.c: Likewise.
1219 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1220 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1221 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1222 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1223 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1224 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1225 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1226 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1227 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1228 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1229 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1230 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1233 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1236 * testsuite/libgomp.c/pr61200.c: New test.
1238 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1241 * testsuite/libgomp.c++/pr63248.C: New test.
1243 2014-08-04 Jakub Jelinek <jakub@redhat.com>
1245 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1246 is not zero, but taskgroup->children is NULL and there are
1247 any task->children, schedule those instead of waiting.
1248 * testsuite/libgomp.c/depend-6.c: New test.
1249 * testsuite/libgomp.c/depend-7.c: New test.
1250 * testsuite/libgomp.c/depend-8.c: New test.
1251 * testsuite/libgomp.c/depend-9.c: New test.
1252 * testsuite/libgomp.c/depend-10.c: New test.
1254 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1256 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1257 (struct gomp_taskwait): New type.
1258 (struct gomp_task): Add taskwait and parent_depends_on, remove
1259 in_taskwait and taskwait_sem fields.
1260 (gomp_finish_task): Don't destroy taskwait_sem.
1261 * task.c (gomp_init_task): Don't init in_taskwait, instead init
1262 taskwait and parent_depends_on.
1263 (GOMP_task): For if (0) tasks with depend clause that depend on
1264 earlier tasks don't defer them, instead call
1265 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1266 Initialize redundant_out field, for redundant out entries just
1267 move them at the end of linked list instead of removing them
1268 completely, and set redundant_out flag instead of redundant.
1269 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1271 (gomp_task_run_post_handle_dependers): If parent is in
1272 gomp_task_maybe_wait_for_dependencies and newly runnable task
1273 is not parent_depends_on, queue it in parent->children linked
1274 list after all runnable tasks with parent_depends_on set.
1275 Adjust for addition of taskwait indirection.
1276 (gomp_task_run_post_remove_parent): If parent is in
1277 gomp_task_maybe_wait_for_dependencies and task to be removed
1278 is parent_depends_on, decrement n_depend and if needed awake
1279 parent. Adjust for addition of taskwait indirection.
1280 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1281 (gomp_task_maybe_wait_for_dependencies): New function.
1282 * testsuite/libgomp.c/depend-5.c: New test.
1284 2014-07-13 Tobias Burnus <burnus@net-b.de>
1286 * testsuite/libgomp.fortran/pr34020.f90: Make compile
1287 with TS 18508/Fortran 2015.
1289 2014-07-06 Marek Polacek <polacek@redhat.com>
1292 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1294 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1296 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1297 matches regex $lang_source_re, add $lang_include_flags to options.
1298 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1299 * testsuite/libgomp.c++/c++.exp: Likewise.
1300 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1301 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1303 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1305 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1307 * testsuite/libgomp.fortran/fortran.exp: Explain
1308 gfortran-dg-runtest usage.
1310 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1312 * testsuite/libgomp.fortran/simd5.f90: New test.
1313 * testsuite/libgomp.fortran/simd6.f90: New test.
1314 * testsuite/libgomp.fortran/simd7.f90: New test.
1316 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1318 * testsuite/libgomp.c/for-2.c: Define SC to static for
1319 #pragma omp for simd testing.
1320 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1321 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1323 * testsuite/libgomp.c/simd-14.c: New test.
1324 * testsuite/libgomp.c/simd-15.c: New test.
1325 * testsuite/libgomp.c/simd-16.c: New test.
1326 * testsuite/libgomp.c/simd-17.c: New test.
1327 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1328 #pragma omp for simd testing.
1329 * testsuite/libgomp.c++/simd10.C: New test.
1330 * testsuite/libgomp.c++/simd11.C: New test.
1331 * testsuite/libgomp.c++/simd12.C: New test.
1332 * testsuite/libgomp.c++/simd13.C: New test.
1334 * testsuite/libgomp.fortran/aligned1.f03: New test.
1335 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1336 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1337 tasks with !$omp parallel !$omp single.
1338 * testsuite/libgomp.fortran/target8.f90: New test.
1339 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1340 not to use trim in the combiner, instead call elemental function.
1341 (fn): New elemental function.
1342 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1344 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1346 * testsuite/libgomp.fortran/udr12.f90: New test.
1347 * testsuite/libgomp.fortran/udr13.f90: New test.
1348 * testsuite/libgomp.fortran/udr14.f90: New test.
1349 * testsuite/libgomp.fortran/udr15.f90: New test.
1351 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1353 * omp_lib.f90.in (openmp_version): Set to 201307.
1354 * omp_lib.h.in (openmp_version): Likewise.
1355 * testsuite/libgomp.c/target-8.c: New test.
1356 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1357 and inbranch clauses.
1358 * testsuite/libgomp.fortran/depend-3.f90: New test.
1359 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1361 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1362 * testsuite/libgomp.fortran/target1.f90: New test.
1363 * testsuite/libgomp.fortran/target2.f90: New test.
1364 * testsuite/libgomp.fortran/target3.f90: New test.
1365 * testsuite/libgomp.fortran/target4.f90: New test.
1366 * testsuite/libgomp.fortran/target5.f90: New test.
1367 * testsuite/libgomp.fortran/target6.f90: New test.
1368 * testsuite/libgomp.fortran/target7.f90: New test.
1370 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1373 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1374 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1375 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1376 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1377 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1378 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1379 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1380 * testsuite/libgomp.fortran/associate1.f90: New test.
1381 * testsuite/libgomp.fortran/associate2.f90: New test.
1382 * testsuite/libgomp.fortran/procptr1.f90: New test.
1384 2014-06-06 Jakub Jelinek <jakub@redhat.com>
1386 * testsuite/libgomp.fortran/simd1.f90: New test.
1387 * testsuite/libgomp.fortran/udr1.f90: New test.
1388 * testsuite/libgomp.fortran/udr2.f90: New test.
1389 * testsuite/libgomp.fortran/udr3.f90: New test.
1390 * testsuite/libgomp.fortran/udr4.f90: New test.
1391 * testsuite/libgomp.fortran/udr5.f90: New test.
1392 * testsuite/libgomp.fortran/udr6.f90: New test.
1393 * testsuite/libgomp.fortran/udr7.f90: New test.
1394 * testsuite/libgomp.fortran/udr8.f90: New test.
1395 * testsuite/libgomp.fortran/udr9.f90: New test.
1396 * testsuite/libgomp.fortran/udr10.f90: New test.
1397 * testsuite/libgomp.fortran/udr11.f90: New test.
1399 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
1401 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1402 vect_simd_clones effective target.
1403 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1405 2014-05-21 Jakub Jelinek <jakub@redhat.com>
1408 * testsuite/libgomp.c++/simd-9.C: New test.
1410 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
1412 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1413 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1414 texts according to their @menu entry positions.
1416 2014-05-11 Jakub Jelinek <jakub@redhat.com>
1418 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1419 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1420 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1421 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1422 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1423 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1424 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1425 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1426 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1427 * testsuite/libgomp.fortran/depend-1.f90: New test.
1428 * testsuite/libgomp.fortran/depend-2.f90: New test.
1429 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1430 * testsuite/libgomp.fortran/simd1.f90: New test.
1431 * testsuite/libgomp.fortran/simd2.f90: New test.
1432 * testsuite/libgomp.fortran/simd3.f90: New test.
1433 * testsuite/libgomp.fortran/simd4.f90: New test.
1434 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1436 2014-05-02 Jakub Jelinek <jakub@redhat.com>
1438 * testsuite/libgomp.c/simd-10.c: New test.
1439 * testsuite/libgomp.c/simd-11.c: New test.
1440 * testsuite/libgomp.c/simd-12.c: New test.
1441 * testsuite/libgomp.c/simd-13.c: New test.
1443 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1445 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1446 atomic type clauses in any order and optional comma in between.
1447 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1448 * testsuite/libgomp.c/atomic-17.c: Likewise.
1450 * testsuite/libgomp.c/simd-7.c: New test.
1451 * testsuite/libgomp.c/simd-8.c: New test.
1452 * testsuite/libgomp.c/simd-9.c: New test.
1453 * testsuite/libgomp.c/loop-16.c: New test.
1455 2014-04-02 Richard Henderson <rth@redhat.com>
1457 * config/linux/futex.h (futex_wait): Get error value from errno.
1458 (futex_wake): Likewise.
1460 2014-03-25 Jakub Jelinek <jakub@redhat.com>
1463 * testsuite/libgomp.c++/udr-11.C: New test.
1464 * testsuite/libgomp.c++/udr-12.C: New test.
1465 * testsuite/libgomp.c++/udr-13.C: New test.
1466 * testsuite/libgomp.c++/udr-14.C: New test.
1467 * testsuite/libgomp.c++/udr-15.C: New test.
1468 * testsuite/libgomp.c++/udr-16.C: New test.
1469 * testsuite/libgomp.c++/udr-17.C: New test.
1470 * testsuite/libgomp.c++/udr-18.C: New test.
1471 * testsuite/libgomp.c++/udr-19.C: New test.
1473 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1475 Update copyright years
1477 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1479 * hashtab.h: Use the standard form for the copyright notice.
1481 2014-01-02 Tobias Burnus <burnus@net-b.de>
1483 * libgomp.texi: Bump @copying's copyright year.
1485 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
1487 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1488 alloca () with __builtin_alloca ().
1489 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1490 * testsuite/libgomp.c/lock-3.c: Likewise.
1491 * testsuite/libgomp.c/pr48591.c: Likewise.
1493 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1496 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1499 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1502 * testsuite/libgomp.c/pr58756.c: New test.
1504 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1507 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1510 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1512 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1514 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1515 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1516 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1517 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1520 * libgomp_g.h: Include <stddef.h> for size_t.
1522 * libgomp.spec.in: Update comment about libgomp's dependencies.
1523 * configure.ac: Likewise.
1524 * configure: Regenerate.
1526 2013-10-16 Tobias Burnus <burnus@net-b.de>
1528 * libgomp.texi: (Runtime Library Routines): Update references for
1529 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1530 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1531 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1532 (Environment Variables): Update references for OpenMP 4.0. Add
1533 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1534 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1537 2013-10-14 Jakub Jelinek <jakub@redhat.com>
1539 * env.c (parse_bind_var): Initialize value to avoid
1540 (false positive) warning.
1542 2013-10-12 Jakub Jelinek <jakub@redhat.com>
1545 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1547 (gomp_init_num_threads): Move i variable declaration into
1548 #ifdef CPU_ALLOC_SIZE block.
1549 * config/linux/affinity.c (gomp_affinity_init_level): Test
1550 gomp_places_list_len == 0 rather than gomp_places_list == 0
1551 when checking for topology reading error.
1552 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1553 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1554 gomp_places_list, only parse env var and always return false.
1555 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1556 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1557 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1558 and either of these variables were parsed correctly into a places
1561 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1562 Jakub Jelinek <jakub@redhat.com>
1564 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1565 of 5 loopfn matches.
1566 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1567 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1568 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1569 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1570 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1571 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1572 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1573 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1575 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1577 * Makefile.am (omp_lib.mod): Streamline rule.
1578 * Makefile.in: Regenerate.
1580 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1583 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1584 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1585 * testsuite/libgomp.fortran/lib2.f: Likewise.
1586 * testsuite/libgomp.fortran/lib3.f: Likewise.
1588 * configure.ac: Typo fix.
1589 * configure: Regenerate.
1591 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1592 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1594 * omp.h.in: Don't touch the user's namespace.
1596 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1597 Tobias Burnus <burnus@net-b.de>
1598 Richard Henderson <rth@redhat.com>
1600 * target.c: New file.
1601 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1602 * Makefile.in: Regenerated.
1603 * libgomp_g.h (GOMP_task): Add depend argument.
1604 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1605 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1606 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1607 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1608 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1609 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1610 GOMP_taskgroup_start, GOMP_taskgroup_end,
1611 GOMP_parallel_sections): New prototypes.
1612 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1613 (omp_is_initial_device_): New function.
1614 (ULP, STR1, STR2, ialias_redirect): Removed.
1615 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1616 omp_set_default_device_8_, omp_get_default_device_,
1617 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1619 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1620 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1621 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1623 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1624 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1625 omp_set_default_device, omp_set_default_device_,
1626 omp_set_default_device_8_, omp_get_default_device,
1627 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1628 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1629 omp_get_team_num_): Export @@OMP_4.0.
1630 * team.c (struct gomp_thread_start_data): Add place field.
1631 (gomp_thread_start): Clear thr->thread_pool and
1632 thr->task before returning. Use gomp_team_barrier_wait_final
1633 instead of gomp_team_barrier_wait. Initialize thr->place.
1634 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1635 team_cancelled and task_queued_count fields.
1636 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1637 before calling pthread_exit.
1638 (gomp_free_thread): No longer static. Use
1639 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1640 (gomp_team_start): Add flags argument. Set
1641 thr->thread_pool->threads_busy to nthreads immediately after creating
1642 new pool. Use gomp_managed_threads_lock instead of
1643 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1644 (gomp_team_end): Use gomp_managed_threads_lock instead of
1645 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1646 of gomp_team_barrier_wait. If team->team_cancelled, call
1647 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1648 rather than thr->ts.work_share.
1649 (initialize_team): Don't call gomp_sem_init here.
1650 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1652 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1653 * env.c (gomp_global_icv): Add default_device_var, target_data and
1654 bind_var initializers.
1655 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1656 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1657 gomp_places_list_len): New variables.
1658 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1659 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1661 (gomp_cancel_var): New global variable.
1662 (parse_int): New function.
1663 (handle_omp_display_env): New function.
1664 (initialize_env): Use it. Initialize default_device_var.
1665 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1666 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1667 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1668 been successfully parsed (and call gomp_init_affinity in that case).
1669 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1670 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1671 omp_get_team_num, omp_is_initial_device): New functions.
1672 * libgomp.h: Include stdlib.h.
1673 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1675 (struct target_mem_desc): Forward declare.
1676 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1677 and thread_limit_var fields.
1678 (gomp_get_num_devices): New prototype.
1679 (gomp_cancel_var): New extern decl.
1680 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1681 team_cancelled and task_queued_count fields. Add comments about
1682 task_{,queued_,running_}count.
1683 (gomp_cancel_kind): New enum.
1684 (gomp_work_share_end_cancel): New prototype.
1685 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1686 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1688 (struct gomp_taskgroup): New type.
1689 (struct gomp_task_depend_entry,
1690 struct gomp_dependers_vec): New types.
1691 (gomp_finish_task): Free depend_hash if non-NULL.
1692 (struct gomp_team_state): Add place_partition_off
1693 and place_partition_len fields.
1694 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1695 gomp_places_list_len): New extern decls.
1696 (struct gomp_thread): Add place field.
1697 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1698 (gomp_init_thread_affinity): Add place argument.
1699 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1700 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1701 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1702 gomp_affinity_init_level, gomp_affinity_print_place): New
1704 (gomp_team_start): Add flags argument.
1705 (gomp_thread_limit_var, gomp_remaining_threads_count,
1706 gomp_remaining_threads_lock): Remove.
1707 (gomp_managed_threads_lock): New variable.
1708 (struct gomp_thread_pool): Add threads_busy field.
1709 (gomp_free_thread): New prototype.
1710 * task.c: Include hashtab.h.
1711 (hash_entry_type): New typedef.
1712 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1713 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1714 copy_ctors_done and taskgroup fields.
1715 (GOMP_task): Add depend argument, handle depend clauses. If
1716 gomp_team_barrier_cancelled or if it's taskgroup has been
1717 cancelled, don't queue or start new tasks. Set copy_ctors_done
1718 field if needed. Initialize taskgroup field. If copy_ctors_done
1719 and already cancelled, don't discard the task. If taskgroup is
1720 non-NULL, enqueue the task into taskgroup queue. Increment
1721 num_children field in taskgroup. Increment task_queued_count.
1722 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1723 gomp_task_run_post_remove_taskgroup): New inline functions.
1724 (gomp_task_run_post_handle_depend_hash,
1725 gomp_task_run_post_handle_dependers,
1726 gomp_task_run_post_handle_depend): New functions.
1727 (GOMP_taskwait): Use them. If more than one new tasks
1728 have been queued, wake other threads if needed.
1729 (gomp_barrier_handle_tasks): Likewise. If
1730 gomp_team_barrier_cancelled, don't start any new tasks, just free
1732 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1734 (omp_proc_bind_kind, omp_proc_bind_false,
1735 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1736 omp_proc_bind_spread): New params.
1737 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1738 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1739 omp_get_team_num, omp_is_initial_device): New interfaces.
1740 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1741 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1742 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1743 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1744 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1745 useless use omp_lib_kinds.
1746 * omp.h.in (omp_proc_bind_t): New typedef.
1747 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1748 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1749 omp_get_team_num, omp_is_initial_device): New prototypes.
1750 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1751 through to gomp_team_start.
1752 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1753 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1754 Adjust gomp_parallel_loop_start callers.
1755 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1756 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1757 GOMP_loop_end_cancel): New functions.
1758 (GOMP_parallel_end): Add ialias_redirect.
1759 * hashtab.h: New file.
1760 * libgomp.texi (Environment Variables): Minor cleanup,
1761 update section refs to OpenMP 4.0rc2.
1762 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1763 environment variables.
1764 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1765 team->work_shares_to_free to thr->ts.work_share before calling
1767 (gomp_work_share_end_cancel): New function.
1768 * config/linux/proc.c: Include errno.h.
1769 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1770 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1771 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1772 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1773 gomp_cpuset_size is sizeof (cpu_set_t).
1774 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1775 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1776 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1777 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1778 contain any logical CPUs.
1779 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1780 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1781 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1782 pthread_getaffinity_np. Check gomp_places_list instead of
1783 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1784 * config/linux/bar.c (gomp_barrier_wait_end,
1785 gomp_barrier_wait_last): Use BAR_* defines.
1786 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1787 from state where needed. Set work_share_cancelled to 0 on last
1789 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1790 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1792 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1793 Add cpusetsize argument.
1794 (gomp_cpuset_size, gomp_cpusetp): Declare.
1795 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1796 (affinity_counter): Remove.
1797 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1798 if CPU_ALLOC_SIZE isn't defined.
1799 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1800 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1801 bind current thread to the first place.
1802 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1803 pthread_setaffinity_np to gomp_places_list[place].
1804 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1805 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1806 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1807 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1808 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1809 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1810 (gomp_barrier_t): Add awaited_final field.
1811 (gomp_barrier_init): Initialize awaited_final field.
1812 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1813 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1815 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1817 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1818 gomp_team_barrier_cancelled): New inline functions.
1819 (gomp_barrier_last_thread,
1820 gomp_team_barrier_set_task_pending,
1821 gomp_team_barrier_clear_task_pending,
1822 gomp_team_barrier_set_waiting_for_tasks,
1823 gomp_team_barrier_waiting_for_tasks,
1824 gomp_team_barrier_done): Use BAR_* defines.
1825 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1826 (gomp_barrier_wait_end): Use BAR_* defines.
1827 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1828 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1830 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1831 gomp_team_barrier_cancel): New functions.
1832 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1834 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1835 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1836 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1837 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1838 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1839 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1840 (gomp_barrier_t): Add cancellable field.
1841 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1842 gomp_team_barrier_cancel): New prototypes.
1843 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1844 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1845 gomp_team_barrier_cancelled): New inline functions.
1846 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1847 gomp_team_barrier_set_task_pending,
1848 gomp_team_barrier_clear_task_pending,
1849 gomp_team_barrier_set_waiting_for_tasks,
1850 gomp_team_barrier_waiting_for_tasks,
1851 gomp_team_barrier_done): Use BAR_* defines.
1852 * barrier.c (GOMP_barrier_cancel): New function.
1853 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1854 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1855 omp_proc_bind_spread): New params.
1856 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1857 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1858 omp_get_team_num, omp_is_initial_device): New externals.
1859 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1861 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1862 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1863 infinity. If not nested, just return minimum of max_num_threads
1864 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1865 to the returned value. Otherwise, don't update atomically
1866 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1867 (GOMP_parallel_end): Adjust for thread_limit now being in
1868 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1869 infinity. Adjust threads_busy in the pool rather than
1870 gomp_remaining_threads_count. Remember team->nthreads and call
1871 gomp_team_end before adjusting threads_busy, if not nested
1872 afterwards, just set it to 1 non-atomically. Add ialias.
1873 (GOMP_parallel_start): Adjust gomp_team_start caller.
1874 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1875 * testsuite/libgomp.c/affinity-1.c: New test.
1876 * testsuite/libgomp.c/atomic-15.c: New test.
1877 * testsuite/libgomp.c/atomic-16.c: New test.
1878 * testsuite/libgomp.c/atomic-17.c: New test.
1879 * testsuite/libgomp.c/cancel-for-1.c: New test.
1880 * testsuite/libgomp.c/cancel-for-2.c: New test.
1881 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1882 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1883 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1884 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1885 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1886 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1887 * testsuite/libgomp.c/depend-1.c: New test.
1888 * testsuite/libgomp.c/depend-2.c: New test.
1889 * testsuite/libgomp.c/depend-3.c: New test.
1890 * testsuite/libgomp.c/depend-4.c: New test.
1891 * testsuite/libgomp.c/for-1.c: New test.
1892 * testsuite/libgomp.c/for-1.h: New file.
1893 * testsuite/libgomp.c/for-2.c: New test.
1894 * testsuite/libgomp.c/for-2.h: New file.
1895 * testsuite/libgomp.c/for-3.c: New test.
1896 * testsuite/libgomp.c/pr58392.c: New test.
1897 * testsuite/libgomp.c/simd-1.c: New test.
1898 * testsuite/libgomp.c/simd-2.c: New test.
1899 * testsuite/libgomp.c/simd-3.c: New test.
1900 * testsuite/libgomp.c/simd-4.c: New test.
1901 * testsuite/libgomp.c/simd-5.c: New test.
1902 * testsuite/libgomp.c/simd-6.c: New test.
1903 * testsuite/libgomp.c/target-1.c: New test.
1904 * testsuite/libgomp.c/target-2.c: New test.
1905 * testsuite/libgomp.c/target-3.c: New test.
1906 * testsuite/libgomp.c/target-4.c: New test.
1907 * testsuite/libgomp.c/target-5.c: New test.
1908 * testsuite/libgomp.c/target-6.c: New test.
1909 * testsuite/libgomp.c/target-7.c: New test.
1910 * testsuite/libgomp.c/taskgroup-1.c: New test.
1911 * testsuite/libgomp.c/thread-limit-1.c: New test.
1912 * testsuite/libgomp.c/thread-limit-2.c: New test.
1913 * testsuite/libgomp.c/thread-limit-3.c: New test.
1914 * testsuite/libgomp.c/udr-1.c: New test.
1915 * testsuite/libgomp.c/udr-2.c: New test.
1916 * testsuite/libgomp.c/udr-3.c: New test.
1917 * testsuite/libgomp.c++/affinity-1.C: New test.
1918 * testsuite/libgomp.c++/atomic-10.C: New test.
1919 * testsuite/libgomp.c++/atomic-11.C: New test.
1920 * testsuite/libgomp.c++/atomic-12.C: New test.
1921 * testsuite/libgomp.c++/atomic-13.C: New test.
1922 * testsuite/libgomp.c++/atomic-14.C: New test.
1923 * testsuite/libgomp.c++/atomic-15.C: New test.
1924 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1925 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1926 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1927 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1928 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1929 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1930 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1931 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1932 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1933 * testsuite/libgomp.c++/cancel-test.h: New file.
1934 * testsuite/libgomp.c++/for-9.C: New test.
1935 * testsuite/libgomp.c++/for-10.C: New test.
1936 * testsuite/libgomp.c++/for-11.C: New test.
1937 * testsuite/libgomp.c++/simd-1.C: New test.
1938 * testsuite/libgomp.c++/simd-2.C: New test.
1939 * testsuite/libgomp.c++/simd-3.C: New test.
1940 * testsuite/libgomp.c++/simd-4.C: New test.
1941 * testsuite/libgomp.c++/simd-5.C: New test.
1942 * testsuite/libgomp.c++/simd-6.C: New test.
1943 * testsuite/libgomp.c++/simd-7.C: New test.
1944 * testsuite/libgomp.c++/simd-8.C: New test.
1945 * testsuite/libgomp.c++/target-1.C: New test.
1946 * testsuite/libgomp.c++/target-2.C: New test.
1947 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1948 * testsuite/libgomp.c++/target-3.C: New test.
1949 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1950 * testsuite/libgomp.c++/udr-1.C: New test.
1951 * testsuite/libgomp.c++/udr-2.C: New test.
1952 * testsuite/libgomp.c++/udr-3.C: New test.
1953 * testsuite/libgomp.c++/udr-4.C: New test.
1954 * testsuite/libgomp.c++/udr-5.C: New test.
1955 * testsuite/libgomp.c++/udr-6.C: New test.
1956 * testsuite/libgomp.c++/udr-7.C: New test.
1957 * testsuite/libgomp.c++/udr-8.C: New test.
1958 * testsuite/libgomp.c++/udr-9.C: New test.
1960 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1963 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1966 2013-09-20 Alan Modra <amodra@gmail.com>
1968 * configure: Regenerate.
1970 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1972 * testsuite/libgomp.c/sections-2.c: New test.
1974 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1976 * testsuite/libgomp.fortran/strassen.f90:
1977 Add dg-skip-if aarch64_tiny.
1979 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1980 Cesar Philippidis <cesar@codesourcery.com>
1982 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1983 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1984 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1985 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1986 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1987 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1988 Use dg-runtest rather than gfortran-dg-runtest.
1990 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1992 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1993 Linux-based x86 systems to cover all GNU systems.
1994 * testsuite/libgomp.c/lock-3.c: Likewise.
1995 * testsuite/libgomp.c/pr48591.c: Likewise.
1997 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1999 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
2000 GNU/Hurd, as done for Linux-based systems.
2002 * config/posix/ptrlock.h: Fix comment.
2004 2013-05-27 Tobias Burnus <burnus@net-b.de>
2007 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
2008 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
2009 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
2010 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
2011 omp_destroy_nest_lock): Correct arguments to match the one in
2013 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
2014 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
2015 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
2016 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
2018 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2020 * testsuite/libgomp.c/loop-13.c: New test.
2021 * testsuite/libgomp.c/loop-14.c: New test.
2022 * testsuite/libgomp.c/loop-15.c: New test.
2023 * testsuite/libgomp.c++/loop-13.C: New test.
2024 * testsuite/libgomp.c++/loop-14.C: New test.
2025 * testsuite/libgomp.c++/loop-15.C: New test.
2027 2013-02-06 Jakub Jelinek <jakub@redhat.com>
2030 * testsuite/libgomp.c++/pr56217.C: New test.
2032 2013-02-01 Alan Modra <amodra@gmail.com>
2034 * task.c (GOMP_task, GOMP_taskwait): Comment.
2036 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
2037 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
2040 * config/linux/wait.h (do_spin): Use atomic load for addr.
2041 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
2042 for intptr and ptrlock.
2043 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
2046 2013-01-22 Alan Modra <amodra@gmail.com>
2050 * task.c (GOMP_task): Revert 2011-12-09 change.
2051 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
2052 barrier to read task->children..
2053 (gomp_barrier_handle_tasks): ..and matching atomic store with
2054 release barrier here when setting parent->children to NULL.
2056 2013-01-16 Jakub Jelinek <jakub@redhat.com>
2057 Tobias Burnus <burnus@net-b.de>
2060 * testsuite/libgomp.fortran/fortran.exp: Use
2061 -fintrinsic-modules-path= instead of
2062 -fintrinsic-modules-path.
2064 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
2066 Update copyright years.
2068 2012-12-19 Tobias Burnus <burnus@net-b.de>
2070 * testsuite/libgomp.fortran/fortran.exp: Set
2071 -fintrinsic-modules-path.
2073 2012-12-19 Tobias Burnus <burnus@net-b.de>
2075 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
2076 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
2078 2012-11-21 Jakub Jelinek <jakub@redhat.com>
2081 * team.c (gomp_free_thread): Decrease gomp_managed_threads
2082 if pool had any threads_used.
2084 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
2086 * testsuite/libgomp.c++/pr24455.C: Use
2087 -Wl,-undefined,dynamic_lookup on darwin.
2089 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
2091 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
2093 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
2095 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
2097 2012-10-23 Ian Bolton <ian.bolton@arm.com>
2098 Jim MacArthur <jim.macarthur@arm.com>
2099 Marcus Shawcroft <marcus.shawcroft@arm.com>
2100 Nigel Stephens <nigel.stephens@arm.com>
2101 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2102 Richard Earnshaw <rearnsha@arm.com>
2103 Sofiane Naci <sofiane.naci@arm.com>
2104 Stephen Thomas <stephen.thomas@arm.com>
2105 Tejas Belagod <tejas.belagod@arm.com>
2106 Yufeng Zhang <yufeng.zhang@arm.com>
2108 * configure.tgt: Add AArch64.
2110 2012-10-04 Jason Merrill <jason@redhat.com>
2112 * testsuite/libgomp.c++/tls-init1.C: New.
2114 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
2116 * configure: Regenerated.
2118 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
2120 * config/linux/mips/futex.h (sys_futex0): Change to static
2121 function with noinline, nomips16 attributes under MIPS16. Adjust
2122 asm statement to place 'li v0,SYS_futex' immediately before
2125 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
2127 * libgomp.texi (Library Index): Renamed from "Index" to prevent
2128 conflict with index.html on case-insensitive file systems.
2130 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2132 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
2133 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
2135 2012-07-02 Richard Guenther <rguenther@suse.de>
2136 Michael Matz <matz@suse.de>
2137 Tobias Grosser <tobias@grosser.es>
2138 Sebastian Pop <sebpop@gmail.com>
2140 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2141 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2142 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2143 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2145 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2147 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
2149 2012-06-22 Richard Guenther <rguenther@suse.de>
2151 Merge from graphite branch
2152 2012-01-13 Tobias Grosser <tobias@grosser.es>
2154 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2155 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2157 2012-06-07 Jakub Jelinek <jakub@redhat.com>
2160 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
2161 use GOMP_barrier () call instead.
2162 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2163 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2164 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
2165 call GOMP_barrier instead.
2166 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2168 2012-06-06 Jakub Jelinek <jakub@redhat.com>
2171 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
2172 argument to memset call.
2174 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2176 * configure: Regenerated.
2178 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2180 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
2182 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2185 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2187 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2190 * testsuite/libgomp.c/pr52547.c: New test.
2192 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2194 * testsuite/lib/libgomp.exp: load fortran-modules.exp
2196 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2198 * configure.tgt (mips-sgi-irix6*): Remove.
2200 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2202 * configure.tgt (alpha*-dec-osf*): Remove.
2204 * config/osf/sem.h: Remove.
2205 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2207 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
2209 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2211 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2214 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2215 Remove ENABLE_SYMVERS_SOL2.
2216 * configure: Regenerate.
2217 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2218 (PREPROCESS): New variable.
2219 (libgomp.ver): New target.
2220 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2221 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2222 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2224 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2225 * Makefile.in: Regenerate.
2227 2012-02-14 Walter Lee <walt@tilera.com>
2229 * configure.tgt: Handle tilegx and tilepro.
2230 * config/linux/tile/futex.h: New file.
2232 2012-02-08 Richard Guenther <rguenther@suse.de>
2234 PR tree-optimization/46886
2235 * testsuite/libgomp.c/pr46886.c: New testcase.
2237 2012-01-25 Matthias Klose <doko@ubuntu.com>
2239 * config/linux/arm: Remove empty directory.
2240 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2242 2011-12-09 Alan Modra <amodra@gmail.com>
2245 * task.c (GOMP_taskwait): Don't access task->children outside of
2246 task_lock mutex region.
2247 (GOMP_task): Likewise.
2249 2011-12-06 Jakub Jelinek <jakub@redhat.com>
2252 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2254 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2255 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2256 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2257 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2258 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2260 2011-12-02 Alan Modra <amodra@gmail.com>
2262 * config/linux/affinity.c: Use atomic rather than sync builtin.
2263 * config/linux/lock.c: Likewise.
2264 * config/linux/ptrlock.h: Likewise.
2265 * config/linux/ptrlock.c: Likewise.
2266 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2267 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2268 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2269 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2270 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2271 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2272 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2273 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2274 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2275 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2277 2011-11-30 Alan Modra <amodra@gmail.com>
2280 * config/linux/bar.h: Use atomic rather than sync builtins.
2281 * config/linux/bar.c: Likewise. Add missing acquire
2282 synchronisation on generation field.
2283 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2286 2011-11-30 Alan Modra <amodra@gmail.com>
2288 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2289 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2290 * config/linux/mutex.h: Use atomic rather than sync builtins.
2291 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2292 * config/linux/omp-lock.h: Comment fix.
2293 * config/linux/arm/mutex.h: Delete.
2294 * config/linux/powerpc/mutex.h: Delete.
2295 * config/linux/ia64/mutex.h: Delete.
2296 * config/linux/mips/mutex.h: Delete.
2298 2011-11-30 Alan Modra <amodra@gmail.com>
2301 * config/linux/sem.h: Rewrite.
2302 * config/linux/sem.c: Rewrite.
2304 2011-11-28 Richard Henderson <rth@redhat.com>
2306 * libgomp.h (enum memmodel): New.
2308 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2310 * configure: Regenerate.
2312 2011-10-10 Matthias Klose <doko@ubuntu.com>
2314 * config/posix95: Remove empty directory.
2316 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2318 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2320 2011-08-19 Jakub Jelinek <jakub@redhat.com>
2323 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2324 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2326 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2328 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2330 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2333 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2335 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
2337 * config/linux/proc.h: New.
2338 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2339 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2340 (gomp_init_num_threads): Update call to cpuset_popcount.
2341 (get_num_procs): Ditto.
2342 * config/linux/affinity.c (gomp_init_affinity): Call
2343 gomp_cpuset_popcount.
2345 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2349 * omp.h.in (omp_in_final): New prototype.
2350 * omp_lib.f90.in (omp_in_final): New interface.
2351 (omp_integer_kind, omp_logical_kind): Remove
2352 and replace all its uses in the module with 4.
2353 (openmp_version): Change to 201107.
2354 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2355 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2356 kind for the parameters.
2357 (omp_in_final): New external.
2358 (openmp_version): Change to 201107.
2359 * task.c (omp_in_final): New function.
2360 (gomp_init_task): Initialize final_task.
2361 (GOMP_task): Remove unused attribute from flags. Handle final
2363 (GOMP_taskyield): New function.
2364 (omp_in_final): Return true if if (false) or final (true) task
2365 or descendant of final (true).
2366 * fortran.c (omp_in_final_): New function.
2367 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2368 (GOMP_3.0): Export GOMP_taskyield.
2369 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2371 (parse_unsigned_long_list): New function.
2372 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2373 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2374 even if parse_affinity returned false.
2375 * config/linux/affinity.c (gomp_init_affinity): Handle
2376 gomp_cpu_affinity_len == 0.
2377 * libgomp_g.h (GOMP_taskyield): New prototype.
2378 * libgomp.h (struct gomp_task): Add final_task field.
2379 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2380 * team.c (gomp_team_start): Override new task's nthreads_var icv
2381 if list form OMP_NUM_THREADS has been used and it has value for
2382 the new nesting level.
2384 * testsuite/libgomp.c/atomic-11.c: New test.
2385 * testsuite/libgomp.c/atomic-12.c: New test.
2386 * testsuite/libgomp.c/atomic-13.c: New test.
2387 * testsuite/libgomp.c/atomic-14.c: New test.
2388 * testsuite/libgomp.c/reduction-6.c: New test.
2389 * testsuite/libgomp.c/task-5.c: New test.
2390 * testsuite/libgomp.c++/atomic-2.C: New test.
2391 * testsuite/libgomp.c++/atomic-3.C: New test.
2392 * testsuite/libgomp.c++/atomic-4.C: New test.
2393 * testsuite/libgomp.c++/atomic-5.C: New test.
2394 * testsuite/libgomp.c++/atomic-6.C: New test.
2395 * testsuite/libgomp.c++/atomic-7.C: New test.
2396 * testsuite/libgomp.c++/atomic-8.C: New test.
2397 * testsuite/libgomp.c++/atomic-9.C: New test.
2398 * testsuite/libgomp.c++/task-8.C: New test.
2399 * testsuite/libgomp.c++/reduction-4.C: New test.
2400 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2401 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2402 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2403 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2404 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2405 * testsuite/libgomp.fortran/pointer1.f90: New test.
2406 * testsuite/libgomp.fortran/pointer2.f90: New test.
2407 * testsuite/libgomp.fortran/task4.f90: New test.
2409 2011-08-02 Tobias Burnus <burnus@net-b.de>
2411 * libgomp.texi: Update OpenMP spec references to 3.1.
2412 (omp_in_final,OMP_PROC_BIND): New sections.
2413 (OMP_NUM_THREADS): Document that the value can be now a list.
2414 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2416 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2418 * config/linux/x86/futex.h: Check __x86_64__ instead of
2421 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2425 * testsuite/libgomp.c/pr49897-1.c: New test.
2426 * testsuite/libgomp.c/pr49897-2.c: New test.
2427 * testsuite/libgomp.c/pr49898-1.c: New test.
2428 * testsuite/libgomp.c/pr49898-2.c: New test.
2430 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2432 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2433 for ia32 instead of ilp32.
2435 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2436 * testsuite/libgomp.c/atomic-6.c: Likewise.
2438 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2440 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2441 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2443 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2446 * config/osf/sem.h: New file.
2447 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2449 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2452 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2455 2011-07-15 Jakub Jelinek <jakub@redhat.com>
2457 * config/linux/wait.h (do_spin): New inline, largely copied
2458 from do_wait, just don't do futex_wait here, instead return true if
2460 (do_wait): Implement using do_spin.
2461 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2463 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2464 __sync_bool_compare_and_swap, pass the oldval to
2465 gomp_mutex_lock_slow.
2466 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2467 If all mutex contenders are just spinning and not sleeping, don't
2468 change state to 2 unnecessarily. Optimize the loop when state has
2469 already become 2 to use just one atomic operation per loop instead
2471 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2473 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2474 __sync_bool_compare_and_swap, pass the oldval to
2475 gomp_mutex_lock_slow.
2477 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2480 * iter.c (gomp_iter_static_next): For chunk size 0
2481 only use n ceil/ nthreads size for the first
2482 n % nthreads threads in the team instead of
2483 all threads except for the last few ones which
2484 get less work or none at all.
2485 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2486 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2487 chunk argument, set run_sched_modifier to 0 for static
2488 resp. 1 for other kinds. If chunk argument is 0
2489 and not static, set value to 1.
2491 2011-05-19 Jakub Jelinek <jakub@redhat.com>
2494 * testsuite/libgomp.c++/pr49043.C: New test.
2497 * testsuite/libgomp.c++/pr48869.C: New test.
2499 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2502 * fortran.c: Include limits.h.
2504 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2506 (omp_set_num_threads_8_, omp_set_schedule_8_,
2507 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2508 omp_get_team_size_8_): Use TO_INT macro.
2509 * testsuite/libgomp.fortran/pr48894.f90: New test.
2511 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2514 * testsuite/libgomp.c/pr48591.c: New test.
2516 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2519 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2520 * configure: Regenerate.
2522 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2525 * testsuite/libgomp.fortran/task3.f90: New test.
2527 2011-02-24 Tobias Burnus <burnus@net-b.de>
2529 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2531 2011-02-23 Jakub Jelinek <jakub@redhat.com>
2534 * libgomp.texi (omp_get_wtime): Don't say time in the past
2537 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2540 * testsuite/libgomp.fortran/fortran.exp: Check for both
2541 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2542 but $blddir != "", still append ${blddir}/${lang_library_path}
2545 2011-02-16 Tobias Burnus <burnus@net-b.de>
2548 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2549 of libquadmath.a before adding its libpath to ldflags.
2551 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2554 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2555 to FUTEX_WAIT futex syscall.
2556 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2558 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2560 * configure: Regenerate.
2562 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2565 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2567 2011-01-16 Gerald Pfeifer
2569 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2571 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2574 * libgomp.fortran/allocatable6.f90: New test.
2576 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2578 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2579 * configure: Regenerate.
2581 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2585 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2586 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2587 * aclocal.m4: Regenerate.
2588 * configure: Regenerate.
2589 * Makefile.in: Regenerate.
2590 * testsuite/Makefile.in: Regenerate.
2592 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2595 * libgomp.fortran/pr46753.f90: New test.
2598 * env.c (initialize_env): Default to spin count 300000
2599 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2603 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2604 at the end if sync builtins aren't supported.
2606 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2608 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2610 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2612 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2614 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2616 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2618 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2619 Tobias Burnus <burnus@net-b.de>
2623 * configure: Regenerate.
2625 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2627 * config/linux/futex.h: New.
2628 * config/linux/arm/mutex.h: New.
2629 * configure.tgt (arm*-*-linux*): Add config path.
2631 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2633 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2635 2010-09-23 Tobias Burnus <burnus@net-b.de>
2637 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2638 Change Fortran datatype to LOGICAL.
2639 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2640 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2642 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2644 * configure: Regenerate.
2646 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2648 * libgomp.texi: Add function keyword to a couple of Fortran
2649 interfaces, use integer instead of int for Fortran.
2651 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2653 * libgomp.texi: Fix spelling and pasto problems throughout.
2654 Adjust prototypes to match code.
2656 2010-07-24 Tobias Burnus <burnus@net-b.de>
2658 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2659 silence -fwhole-file warning.
2661 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2663 * configure.tgt (*-*-solaris2.[56]*): Removed.
2665 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2667 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2668 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2669 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2670 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2671 targetting solaris2*.
2672 * configure: Regenerate.
2673 * config.h.in: Regenerate.
2675 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2676 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2677 Add libgomp_version_dep.
2678 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2680 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2681 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2682 * Makefile.in: Regenerate.
2684 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2685 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2686 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2687 to common block, protected by
2688 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2690 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2692 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2694 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2697 * configure: Regenerate.
2699 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2702 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2703 * configure: Regenerate.
2704 * Makefile.in: Regenerate.
2705 * testsuite/Makefile.in: Regenerate.
2707 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2710 * testsuite/libgomp.c/pr43893.c: New test.
2711 * testsuite/libgomp.c++/pr43893.C: New test.
2713 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2716 * testsuite/libgomp.fortran/vla8.f90: New test.
2718 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2721 * config/linux/affinity.c (gomp_init_affinity): Decrease
2722 gomp_available_cpus if affinity mask confines the process to fewer
2724 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2725 non-NULL, just return gomp_available_cpus.
2728 * sections.c (gomp_sections_init): Initialize ws->mode.
2730 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2732 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2733 not unused bar variable.
2734 * configure: Regenerate.
2736 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2738 * Makefile.in: Regenerate.
2739 * aclocal.m4: Regenerate.
2740 * testsuite/Makefile.in: Regenerate.
2742 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2745 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2746 (initialize_env): Adjust callers.
2747 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2748 when the argument is 0.
2750 * testsuite/libgomp.c/pr42942.c: New test.
2752 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2756 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2757 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2759 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2761 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2762 * testsuite/libgomp.c++/task-6.C: Likewise.
2764 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2766 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2768 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2770 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2771 * configure: Regenerate.
2773 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2776 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2778 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2780 * configure.ac: Test for executability of GFORTRAN.
2781 * configure: Regenerate.
2783 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2785 * configure: Regenerate.
2787 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2790 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2792 2010-01-03 Richard Guenther <rguenther@suse.de>
2794 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2796 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2798 * testsuite/libgomp.graphite/pr4118.c: New.
2800 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2802 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2803 for darwin, protect the test with require-effective-target tls_runtime.
2804 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2806 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2809 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2810 link spec %s substitutions for static libraries.
2812 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2815 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2817 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2819 * Makefile.in: Regenerate.
2820 * configure: Regenerate.
2821 * testsuite/Makefile.in: Regenerate.
2823 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2825 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2826 settings for LC_ALL and LANG.
2828 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2831 * testsuite/libgomp.fortran/pr42162.f90: New test.
2833 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2836 * testsuite/libgomp.c/pr42029.c: New test.
2838 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2840 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2841 *s. Accept ld version without text in ()s.
2842 * configure: Regenerated.
2844 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2846 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2848 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2851 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2852 or a hyphen (happens with fortran language disabled).
2853 * configure: Regenerate.
2855 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2857 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2858 use sed script portable to Solaris /bin/sed for extracting ld
2860 * configure: Regenerate.
2862 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2864 * testsuite/libgomp.graphite/bounds.c: New test.
2866 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2868 * Makefile.am (libgomp_la_LINK): New.
2869 * Makefile.in: Regenerate.
2871 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2873 * configure.ac (AC_PREREQ): Bump to 2.64.
2875 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2877 * Makefile.am (install-html, install-pdf): Remove.
2878 * Makefile.in: Regenerate.
2880 * Makefile.in: Regenerate.
2881 * aclocal.m4: Regenerate.
2882 * config.h.in: Regenerate.
2883 * configure: Regenerate.
2884 * testsuite/Makefile.in: Regenerate.
2886 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2888 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2889 * Makefile.in: Regenerate.
2891 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2893 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2894 * Makefile.in: Regenerate.
2896 2009-08-19 Tobias Burnus <burnus@net-b.de>
2899 omp_lib.h.in: Fix -std=f95 errors.
2902 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2904 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2905 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2906 * testsuite/libgomp.graphite/graphite.exp: New.
2908 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2910 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2913 2009-08-04 David Daney <ddaney@caviumnetworks.com>
2915 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2916 needed memory barrier semantics.
2917 * config/linux/mips/mutex.h: New file.
2919 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2921 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2923 2009-07-16 Joseph Myers <joseph@codesourcery.com>
2925 * configure: Regenerate.
2927 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2932 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2933 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2934 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2936 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2938 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2939 options when choosing a multilib.
2941 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2943 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2944 ld_library_path. Use add_path. Add just find_libgcc_s to
2945 ld_library_path, not every libgcc multilib directory.
2946 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2947 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2948 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2950 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2952 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2954 * Makefile.am (LTLDFLAGS): Define.
2956 * Makefile.in: Regenerate.
2958 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2961 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2962 libgfortranbegin, check existence of libgfortran.a instead of
2965 2009-05-20 Jakub Jelinek <jakub@redhat.com>
2968 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2969 (gomp_free_pool_helper): Likewise.
2971 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2972 Jakub Jelinek <jakub@redhat.com>
2975 * testsuite/libgomp.fortran/workshare2.f90: New test.
2977 2009-04-09 Nick Clifton <nickc@redhat.com>
2979 * iter.c: Change copyright header to refer to version 3 of the
2980 GNU General Public License with version 3.1 of the GCC Runtime
2981 Library Exception and to point readers at the COPYING3 and
2982 COPYING3.RUNTIME files and the FSF's license web page.
2983 * alloc.c: Likewise.
2984 * barrier.c: Likewise.
2985 * config/bsd/proc.c: Likewise.
2986 * config/linux/affinity.c: Likewise.
2987 * config/linux/alpha/futex.h: Likewise.
2988 * config/linux/bar.c: Likewise.
2989 * config/linux/bar.h: Likewise.
2990 * config/linux/ia64/futex.h: Likewise.
2991 * config/linux/ia64/mutex.h: Likewise.
2992 * config/linux/lock.c: Likewise.
2993 * config/linux/mips/futex.h: Likewise.
2994 * config/linux/mutex.c: Likewise.
2995 * config/linux/mutex.h: Likewise.
2996 * config/linux/powerpc/futex.h: Likewise.
2997 * config/linux/proc.c: Likewise.
2998 * config/linux/ptrlock.c: Likewise.
2999 * config/linux/ptrlock.h: Likewise.
3000 * config/linux/s390/futex.h: Likewise.
3001 * config/linux/sem.c: Likewise.
3002 * config/linux/sem.h: Likewise.
3003 * config/linux/sparc/futex.h: Likewise.
3004 * config/linux/wait.h: Likewise.
3005 * config/linux/x86/futex.h: Likewise.
3006 * config/mingw32/proc.c: Likewise.
3007 * config/mingw32/time.c: Likewise.
3008 * config/posix/affinity.c: Likewise.
3009 * config/posix/bar.c: Likewise.
3010 * config/posix/bar.h: Likewise.
3011 * config/posix/lock.c: Likewise.
3012 * config/posix/mutex.h: Likewise.
3013 * config/posix/proc.c: Likewise.
3014 * config/posix/ptrlock.h: Likewise.
3015 * config/posix/sem.c: Likewise.
3016 * config/posix/sem.h: Likewise.
3017 * config/posix/time.c: Likewise.
3018 * config/posix95/lock.c: Likewise.
3019 * critical.c: Likewise.
3021 * error.c: Likewise.
3022 * fortran.c: Likewise.
3023 * iter_ull.c: Likewise.
3024 * libgomp.h: Likewise.
3025 * libgomp_f.h.in: Likewise.
3026 * libgomp_g.h: Likewise.
3028 * loop_ull.c: Likewise.
3029 * omp.h.in: Likewise.
3030 * omp_lib.f90.in: Likewise.
3031 * omp_lib.h.in: Likewise.
3032 * ordered.c: Likewise.
3033 * parallel.c: Likewise.
3034 * sections.c: Likewise.
3035 * single.c: Likewise.
3040 2009-04-09 Jakub Jelinek <jakub@redhat.com>
3042 * testsuite/config/default.exp: Change copyright header to refer to
3043 version 3 of the GNU General Public License and to point readers
3044 at the COPYING3 file and the FSF's license web page.
3046 2009-04-08 Jakub Jelinek <jakub@redhat.com>
3049 * libgomp.c++/pr39573.C: New test.
3051 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3054 * testsuite/libgomp.c/pr39591-1.c: New test.
3055 * testsuite/libgomp.c/pr39591-2.c: New test.
3056 * testsuite/libgomp.c/pr39591-3.c: New test.
3058 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
3060 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
3061 * testsuite/libgomp.c/atomic-6.c: Ditto.
3063 2009-03-23 Jakub Jelinek <jakub@redhat.com>
3066 * testsuite/libgomp.c/loop-12.c: New test.
3067 * testsuite/libgomp.c/loop-11.c: New test.
3068 * testsuite/libgomp.c++/loop-11.C: New test.
3069 * testsuite/libgomp.c++/loop-12.C: New test.
3070 * testsuite/libgomp.c++/for-8.C: New test.
3072 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3074 * configure: Regenerate.
3076 2009-02-11 Jakub Jelinek <jakub@redhat.com>
3079 * testsuite/libgomp.c/pr39154.c: New test.
3081 2009-01-30 Ian Lance Taylor <iant@google.com>
3083 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
3084 libgomp_ld_is_gold. Get gold version number.
3085 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
3086 * configure: Rebuild.
3088 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3090 * testsuite/lib/libgomp.exp: Add -B option for targets that
3091 use libgfortran.a%s in their specs.
3093 2009-01-07 Jakub Jelinek <jakub@redhat.com>
3096 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
3097 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
3098 HAVE_AS_SYMVER_DIRECTIVE is not defined.
3099 * configure: Regenerated.
3100 * config.h.in: Likewise.
3102 2008-12-28 Jakub Jelinek <jakub@redhat.com>
3105 * testsuite/libgomp.c/pr38650.c: New test.
3106 * testsuite/libgomp.c++/pr38650.C: New test.
3108 2008-12-27 Jakub Jelinek <jakub@redhat.com>
3110 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
3112 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
3114 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
3116 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3118 * configure: Regenerate.
3120 2008-12-08 Jakub Jelinek <jakub@redhat.com>
3123 * testsuite/libgomp.c/pr36802-1.c: New test.
3124 * testsuite/libgomp.c/pr36802-2.c: New test.
3125 * testsuite/libgomp.c/pr36802-3.c: New test.
3127 2008-12-01 Janis Johnson <janis187@us.ibm.com>
3130 * config/linux/powerpc/mutex.h: New.
3132 2008-12-01 Jakub Jelinek <jakub@redhat.com>
3135 * testsuite/libgomp.c++/for-7.C: New test.
3138 * testsuite/libgomp.c++/for-6.C: New test.
3140 2008-11-26 Janis Johnson <janis187@us.ibm.com>
3143 * testsuite/lib/libgomp.exp: Include new timeout library files.
3144 (libgomp_target_compile): Set timeout value from new proc.
3146 2008-11-13 Steve Ellcey <sje@cup.hp.com>
3149 * config/linux/ia64/mutex.h: New.
3151 2008-11-04 Tobias Burnus <burnus@net-b.de>
3154 * libgomp.texi (Runtime library routines, environment variables):
3155 Update for OpenMP version 3.0.
3157 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3158 Steve Ellcey <sje@cup.hp.com>
3160 * configure: Regenerate for new libtool.
3161 * Makefile.in: Ditto.
3162 * testsuite/Makefile.in: Ditto.
3164 2008-09-19 Jakub Jelinek <jakub@redhat.com>
3165 Andreas Tobler <a.tobler@schweiz.org>
3167 * config/bsd/proc.c: New file.
3168 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
3169 * configure.ac: Check for header <sys/sysctl.h>
3170 * configure: Regenerate.
3171 * config.h.in: Likewise.
3173 2008-09-05 Janis Johnson <janis187@us.ibm.com>
3175 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
3177 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3179 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
3180 * Makefile.in: Regenerated.
3181 * testsuite/Makefile.in: Regenerated.
3183 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
3185 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
3186 depend on blddir if blddir exists.
3187 (libgomp_target_compile): Likewise.
3188 * testsuite/libgomp.c++/c++.exp: Likewise.
3189 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3191 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3193 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
3194 Do not list GPL as Invariant Section.
3196 2008-07-28 Ilie Garbacea <ilie@mips.com>
3197 Chao-ying Fu <fu@mips.com>
3199 * configure.tgt: Enable futex for MIPS.
3200 * config/linux/mips/futex.h: New file.
3202 2008-07-16 Jakub Jelinek <jakub@redhat.com>
3204 * team.c (gomp_team_end): Free team immediately if it has
3207 2008-07-08 David Edelsohn <edelsohn@gnu.org>
3209 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3210 * testsuite/libgomp.fortran/fortran.exp: Same.
3211 * testsuite/libgomp.c/c.exp: Same.
3212 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3213 directory to library path first.
3215 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3217 * env.c (parse_stacksize): Add cast to avoid warning.
3218 (parse_spincount): Likewise.
3220 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3222 * testsuite/libgomp.c/loop-10.c: New test.
3223 * libgomp.c/loop-3.c (main): Add lastprivate clause.
3224 * libgomp.c++/loop-6.C (main): Likewise.
3227 * testsuite/libgomp.c/debug-1.c: New test.
3229 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3231 * testsuite/libgomp.c/nqueens-1.c: New test.
3234 * testsuite/libgomp.c++/task-7.C: New function.
3236 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3238 * configure: Regenerate.
3240 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3242 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3243 mutex when HAVE_SYNC_BUILTINS isn't defined.
3245 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3247 * libgomp.texi (omp_test_lock): Fix typo.
3249 2008-06-12 Tobias Burnus <burnus@net-b.de>
3251 * omp_lib.f90.in: Add "implicit none".
3253 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3256 * testsuite/libgomp.c/reduction-5.c: New test.
3258 2008-06-11 Jakub Jelinek <jakub@redhat.com>
3260 * libgomp.h (struct gomp_task): Add in_tied_task field.
3261 * task.c (gomp_init_task): Initialize it.
3262 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
3263 unconditionally. Don't call gomp_team_barrier_wake if
3264 current task is implicit or if(0) from implicit and number of
3265 running tasks is equal to nthreads - 1.
3268 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3269 omp_get_team_size_8): Fix pastos.
3272 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3273 * configure: Regenerated.
3274 * config.h.in: Regenerated.
3275 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3278 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3281 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3282 (GOMP_loop_ull_dynamic_start): Likewise.
3283 (GOMP_loop_ull_guided_start): Likewise.
3284 (GOMP_loop_ull_ordered_static_start): Likewise.
3285 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3286 (GOMP_loop_ull_ordered_guided_start): Likewise.
3288 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3289 Richard Henderson <rth@redhat.com>
3290 Ulrich Drepper <drepper@redhat.com>
3291 Jakob Blomer <jakob.blomer@ira.uka.de>
3293 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3294 Substitute also OMP_*LOCK_25*.
3295 * configure: Regenerated.
3296 * config.h.in: Regenerated.
3297 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3298 ptrlock.c and task.c.
3299 * Makefile.in: Regenerated.
3300 * testsuite/Makefile.in: Regenerated.
3302 * loop_ull.c: New file.
3303 * iter_ull.c: New file.
3304 * libgomp.h: Include ptrlock.h.
3305 (enum gomp_task_kind): New type.
3306 (struct gomp_team): Add task_lock, task_queue, task_count,
3307 task_running_count, single_count fields. Add
3308 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3309 Remove work_share_lock, generation_mask,
3310 oldest_live_gen, num_live_gen and init_work_shares fields, add
3311 work work_share_list_alloc, work_share_list_free and work_share_chunk
3312 fields. Change work_shares from pointer to pointers into an array.
3313 Change ordered_release field into gomp_sem_t ** from flexible array
3314 member. Add implicit_task and initial_work_shares fields.
3315 Move close to the end of the struct.
3316 (struct gomp_team_state): Add single_count, last_work_share,
3317 active_level and level fields, remove work_share_generation.
3318 (gomp_barrier_handle_tasks): New prototype.
3319 (gomp_finish_task): New inline function.
3320 (struct gomp_work_share): Move chunk_size, end, incr into
3321 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3322 next_ll fields. Reshuffle fields. Add next_alloc,
3323 next_ws, next_free and inline_ordered_team_ids fields, change
3324 ordered_team_ids into pointer from flexible array member.
3325 Add mode field. Put lock and next into a different cache line
3326 from most of the write-once fields.
3327 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3328 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3329 gomp_iter_ull_guided_next): New prototypes.
3330 (gomp_new_icv): New prototype.
3331 (struct gomp_thread): Add thread_pool and task fields.
3332 (struct gomp_thread_pool): New type.
3333 (gomp_new_team): New prototype.
3334 (gomp_team_start): Change type of last argument.
3335 (gomp_new_work_share): Removed.
3336 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3337 (gomp_work_share_init_done): New static inline.
3338 (gomp_throttled_spin_count_var, gomp_available_cpus,
3339 gomp_managed_threads): New extern decls.
3340 (gomp_init_task): New prototype.
3341 (gomp_spin_count_var): New extern var decl.
3342 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3343 or no alias support, or if not PIC.
3344 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3345 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3346 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3347 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3348 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3349 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3350 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3351 gomp_test_nest_lock_25): New prototypes.
3352 (omp_lock_symver, strong_alias): Define.
3353 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3355 (gomp_end_task): New.
3356 (struct gomp_task_icv, gomp_global_icv): New.
3357 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3358 (struct gomp_task): New.
3359 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3360 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3362 (gomp_schedule_type): Reorder enum to match
3364 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3366 (gomp_thread_start): Add gomp_team_barrier_wait call.
3367 For non-nested case remove clearing of docked thread thr fields.
3368 Use pool fields instead of global gomp_* variables. Use
3369 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3370 Create tasks for each member thread.
3371 (free_team): Only destroy team barrier, task_lock here and free it.
3372 (gomp_free_thread): Free last_team if non-NULL.
3373 (gomp_team_end): Call gomp_team_barrier_wait instead of
3374 gomp_barrier_wait. For nested case call one extra
3375 gomp_barrier_wait. Move here some destruction from free_team.
3376 Call free_team on pool->last_team if any, rather than freeing
3377 current team. Destroy work_share_list_free_lock ifndef
3379 (gomp_new_icv): New function.
3380 (gomp_threads, gomp_threads_size, gomp_threads_used,
3381 gomp_threads_dock): Removed.
3382 (gomp_thread_destructor): New variable.
3383 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3385 (gomp_team_start): Create new pool if current thread doesn't have
3386 one. Use pool fields instead of global gomp_* variables.
3387 Initialize thread_pool field for new threads. Clear single_count.
3388 Change last argument from ws to team, don't create
3389 new team, set ts.work_share to &team->work_shares[0] and clear
3390 ts.last_work_share. Don't clear ts.work_share_generation.
3391 If number of threads changed, adjust atomically gomp_managed_threads.
3392 Use gomp_init_task instead of gomp_new_task,
3393 set thr->task to the corresponding implicit_task array entry.
3394 Create tasks for each member thread. Initialize ts.level.
3395 (initialize_team): Call pthread_key_create on
3396 gomp_thread_destructor.
3397 (team_destructor): New function.
3398 (new_team): Removed.
3399 (gomp_new_team): New function.
3400 (free_team): Free gomp_work_share blocks chained through next_alloc,
3401 instead of freeing work_shares and destroying work_share_lock.
3402 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3403 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3404 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3405 of gomp_barrier_wait.
3406 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3407 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3408 if gomp_work_share_start returned true. Don't unlock ws->lock.
3409 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3410 of gomp_barrier_wait.
3411 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3412 gomp_work_share_init_done if gomp_work_share_start returned true.
3413 Don't unlock ws->lock.
3414 * work.c: Include stddef.h.
3415 (free_work_share): Use work_share_list_free_lock instead
3416 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3417 Call gomp_fini_work_share and then either free ws if orphaned, or
3418 put it into work_share_list_free list of the current team.
3419 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3421 (gomp_work_share_start, gomp_work_share_end,
3422 gomp_work_share_end_nowait): Rewritten.
3423 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3424 (openmp_version): Set to 200805.
3425 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3426 omp_sched_guided, omp_sched_auto): New parameters.
3427 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3428 omp_set_max_active_levels, omp_get_max_active_levels,
3429 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3430 omp_get_active_level): New interfaces.
3431 * omp_lib.h.in (openmp_version): Set to 200805.
3432 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3433 omp_sched_guided, omp_sched_auto): New parameters.
3434 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3435 omp_set_max_active_levels, omp_get_max_active_levels,
3436 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3437 omp_get_active_level): New externals.
3438 * loop.c: Include limits.h.
3439 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3441 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3442 Likewise. Use gomp_icv.
3443 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3444 ts.static_trip here.
3445 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3446 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3447 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3448 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3449 don't unlock ws->lock, otherwise lock it.
3450 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3451 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3452 (gomp_parallel_loop_start): Call gomp_new_team instead of
3453 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3454 Adjust gomp_team_start caller. Pass 0 as second argument to
3455 gomp_resolve_num_threads.
3456 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3457 If adding ws->chunk_size nthreads + 1 times after end won't
3458 overflow, set ws->mode to 1.
3459 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3460 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3461 GOMP_loop_ull_ordered_static_start,
3462 GOMP_loop_ull_ordered_dynamic_start,
3463 GOMP_loop_ull_ordered_guided_start,
3464 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3465 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3466 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3467 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3468 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3470 * libgomp.map: Export lock routines also @@OMP_2.0.
3471 (GOMP_loop_ordered_dynamic_first,
3472 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3473 GOMP_loop_ordered_static_first): Remove.
3474 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3475 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3476 GOMP_loop_ull_ordered_dynamic_next,
3477 GOMP_loop_ull_ordered_dynamic_start,
3478 GOMP_loop_ull_ordered_guided_next,
3479 GOMP_loop_ull_ordered_guided_start,
3480 GOMP_loop_ull_ordered_runtime_next,
3481 GOMP_loop_ull_ordered_runtime_start,
3482 GOMP_loop_ull_ordered_static_next,
3483 GOMP_loop_ull_ordered_static_start,
3484 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3485 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3486 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3487 (omp_set_schedule, omp_get_schedule,
3488 omp_get_thread_limit, omp_set_max_active_levels,
3489 omp_get_max_active_levels, omp_get_level,
3490 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3491 omp_set_schedule_, omp_set_schedule_8_,
3492 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3493 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3494 omp_get_max_active_levels_, omp_get_level_,
3495 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3496 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3497 New exports @@OMP_3.0.
3498 * omp.h.in (omp_sched_t): New type.
3499 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3500 omp_set_max_active_levels, omp_get_max_active_levels,
3501 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3502 omp_get_active_level): New prototypes.
3503 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3504 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3505 gomp_thread_limit_var, gomp_remaining_threads_count,
3506 gomp_remaining_threads_lock): New variables.
3507 (parse_spincount): New function.
3508 (initialize_env): Call gomp_init_num_threads unconditionally.
3509 Initialize gomp_available_cpus. Call parse_spincount,
3510 initialize gomp_{,throttled_}spin_count_var
3511 depending on presence and value of OMP_WAIT_POLICY and
3512 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
3513 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3514 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
3515 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
3516 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
3517 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3518 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3519 (gomp_global_icv): New.
3520 (parse_schedule): Use it. Parse "auto".
3521 (omp_set_num_threads): Use gomp_icv.
3522 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3524 (omp_get_max_threads): Move from parallel.c.
3525 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3526 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3528 (parse_stacksize, parse_wait_policy): New functions.
3529 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3530 both wrappers for compatibility and new locks.
3531 (omp_set_schedule, omp_get_schedule,
3532 omp_get_thread_limit, omp_set_max_active_levels,
3533 omp_get_max_active_levels, omp_get_level,
3534 omp_get_ancestor_thread_num, omp_get_team_size,
3535 omp_get_active_level): New ialias_redirect.
3536 (omp_set_schedule_, omp_set_schedule_8_,
3537 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3538 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3539 omp_get_max_active_levels_, omp_get_level_,
3540 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3541 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3543 * parallel.c: Include limits.h.
3544 (gomp_resolve_num_threads): Add count argument. Rewritten.
3545 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3546 argument to gomp_team_start. Pass 0 as second argument to
3547 gomp_resolve_num_threads.
3548 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3549 if gomp_thread_limit_var != ULONG_MAX.
3550 (omp_in_parallel): Implement using ts.active_level.
3551 (omp_get_max_threads): Move to env.c.
3552 (omp_get_level, omp_get_ancestor_thread_num,
3553 omp_get_team_size, omp_get_active_level): New functions,
3555 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3556 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3557 gomp_iter_dynamic_next instead of the _locked variant and don't take
3558 lock around it, otherwise acquire it before calling
3559 gomp_iter_dynamic_next_locked.
3560 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3561 gomp_iter_dynamic_next instead of the _locked variant and don't take
3563 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3564 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3565 Adjust gomp_team_start caller. Pass count as second argument to
3566 gomp_resolve_num_threads, don't adjust num_threads after the call.
3568 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3569 ws->chunk_size by incr.
3570 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3572 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3574 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3575 (omp_check_defines): Check even the compat defines.
3576 * config/linux/ptrlock.c: New file.
3577 * config/linux/ptrlock.h: New file.
3578 * config/linux/wait.h: New file.
3579 * config/posix/ptrlock.c: New file.
3580 * config/posix/ptrlock.h: New file.
3581 * config/linux/bar.h (gomp_team_barrier_wait,
3582 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3583 (gomp_team_barrier_set_task_pending,
3584 gomp_team_barrier_clear_task_pending,
3585 gomp_team_barrier_set_waiting_for_tasks,
3586 gomp_team_barrier_waiting_for_tasks,
3587 gomp_team_barrier_done): New inlines.
3588 (gomp_barrier_t): Rewritten.
3589 (gomp_barrier_state_t): New typedef.
3590 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3591 gomp_barrier_wait_start): Rewritten.
3592 (gomp_barrier_wait_end): Change second argument to
3593 gomp_barrier_state_t.
3594 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3596 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3598 (gomp_barrier_wait_end): Rewritten.
3599 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3600 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3601 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3602 (gomp_barrier_state_t): New typedef.
3603 (gomp_team_barrier_wait,
3604 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3605 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3606 into the return value. Return gomp_barrier_state_t.
3607 (gomp_team_barrier_set_task_pending,
3608 gomp_team_barrier_clear_task_pending,
3609 gomp_team_barrier_set_waiting_for_tasks,
3610 gomp_team_barrier_waiting_for_tasks,
3611 gomp_team_barrier_done): New inlines.
3612 (gomp_barrier_wait_end): Change second argument to
3613 gomp_barrier_state_t.
3614 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3616 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3617 (gomp_barrier_wait_end): Change second argument to
3618 gomp_barrier_state_t.
3619 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3620 gomp_team_barrier_wake): New functions.
3621 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3623 (gomp_futex_wake, gomp_futex_wait): New variables.
3624 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3625 * config/linux/lock.c: Rewrite to make locks task owned,
3626 for backwards compatibility provide the old entrypoints
3627 if symbol versioning. Include wait.h instead of libgomp.h and
3629 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3630 * config/posix95/lock.c: Rewrite to make locks task owned,
3631 for backwards compatibility provide the old entrypoints
3632 if symbol versioning.
3633 * config/posix/lock.c: Rewrite to make locks task owned,
3634 for backwards compatibility provide the old entrypoints
3635 if symbol versioning.
3636 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3637 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3638 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3639 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3640 (sys_futex0): Return error code.
3641 (futex_wake, futex_wait): If ENOSYS was returned, clear
3642 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3643 (cpu_relax, atomic_write_barrier): New static inlines.
3644 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3645 (futex_wake, futex_wait): If ENOSYS was returned, clear
3646 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3647 (cpu_relax, atomic_write_barrier): New static inlines.
3648 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3649 (sys_futex0): Return error code.
3650 (futex_wake, futex_wait): If ENOSYS was returned, clear
3651 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3652 (cpu_relax, atomic_write_barrier): New static inlines.
3653 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3654 (sys_futex0): Return error code.
3655 (futex_wake, futex_wait): If ENOSYS was returned, clear
3656 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3657 (cpu_relax, atomic_write_barrier): New static inlines.
3658 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3659 (sys_futex0): Return error code.
3660 (futex_wake, futex_wait): If ENOSYS was returned, clear
3661 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3662 (cpu_relax, atomic_write_barrier): New static inlines.
3663 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3664 (sys_futex0): Return error code.
3665 (futex_wake, futex_wait): If ENOSYS was returned, clear
3666 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3667 (cpu_relax, atomic_write_barrier): New static inlines.
3668 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3670 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3671 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3672 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3674 (omp_nest_lock_t): Change owner into void *, add lock field.
3675 * config/posix95/omp-lock.h: Include semaphore.h.
3676 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3677 (omp_lock_t): Use sem_t instead of mutex if semaphores
3679 (omp_nest_lock_t): Likewise. Change owner to void *.
3680 * config/posix/omp-lock.h: Include semaphore.h.
3681 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3682 (omp_lock_t): Use sem_t instead of mutex if semaphores
3684 (omp_nest_lock_t): Likewise. Add owner field.
3686 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3688 * testsuite/libgomp.c/collapse-1.c: New test.
3689 * testsuite/libgomp.c/collapse-2.c: New test.
3690 * testsuite/libgomp.c/collapse-3.c: New test.
3691 * testsuite/libgomp.c/icv-1.c: New test.
3692 * testsuite/libgomp.c/icv-2.c: New test.
3693 * testsuite/libgomp.c/lib-2.c: New test.
3694 * testsuite/libgomp.c/lock-1.c: New test.
3695 * testsuite/libgomp.c/lock-2.c: New test.
3696 * testsuite/libgomp.c/lock-3.c: New test.
3697 * testsuite/libgomp.c/loop-4.c: New test.
3698 * testsuite/libgomp.c/loop-5.c: New test.
3699 * testsuite/libgomp.c/loop-6.c: New test.
3700 * testsuite/libgomp.c/loop-7.c: New test.
3701 * testsuite/libgomp.c/loop-8.c: New test.
3702 * testsuite/libgomp.c/loop-9.c: New test.
3703 * testsuite/libgomp.c/nested-3.c: New test.
3704 * testsuite/libgomp.c/nestedfn-6.c: New test.
3705 * testsuite/libgomp.c/sort-1.c: New test.
3706 * testsuite/libgomp.c/task-1.c: New test.
3707 * testsuite/libgomp.c/task-2.c: New test.
3708 * testsuite/libgomp.c/task-3.c: New test.
3709 * testsuite/libgomp.c/task-4.c: New test.
3710 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3711 to C++ testsuite default compiler options.
3712 * testsuite/libgomp.c++/collapse-1.C: New test.
3713 * testsuite/libgomp.c++/collapse-2.C: New test.
3714 * testsuite/libgomp.c++/ctor-10.C: New test.
3715 * testsuite/libgomp.c++/for-1.C: New test.
3716 * testsuite/libgomp.c++/for-2.C: New test.
3717 * testsuite/libgomp.c++/for-3.C: New test.
3718 * testsuite/libgomp.c++/for-4.C: New test.
3719 * testsuite/libgomp.c++/for-5.C: New test.
3720 * testsuite/libgomp.c++/loop-8.C: New test.
3721 * testsuite/libgomp.c++/loop-9.C: New test.
3722 * testsuite/libgomp.c++/loop-10.C: New test.
3723 * testsuite/libgomp.c++/task-1.C: New test.
3724 * testsuite/libgomp.c++/task-2.C: New test.
3725 * testsuite/libgomp.c++/task-3.C: New test.
3726 * testsuite/libgomp.c++/task-4.C: New test.
3727 * testsuite/libgomp.c++/task-5.C: New test.
3728 * testsuite/libgomp.c++/task-6.C: New test.
3729 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3730 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3731 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3732 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3733 * testsuite/libgomp.fortran/collapse1.f90: New test.
3734 * testsuite/libgomp.fortran/collapse2.f90: New test.
3735 * testsuite/libgomp.fortran/collapse3.f90: New test.
3736 * testsuite/libgomp.fortran/collapse4.f90: New test.
3737 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3738 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3739 * testsuite/libgomp.fortran/lib4.f90: New test.
3740 * testsuite/libgomp.fortran/lock-1.f90: New test.
3741 * testsuite/libgomp.fortran/lock-2.f90: New test.
3742 * testsuite/libgomp.fortran/nested1.f90: New test.
3743 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3744 * testsuite/libgomp.fortran/strassen.f90: New test.
3745 * testsuite/libgomp.fortran/tabs1.f90: New test.
3746 * testsuite/libgomp.fortran/tabs2.f: New test.
3747 * testsuite/libgomp.fortran/task1.f90: New test.
3748 * testsuite/libgomp.fortran/task2.f90: New test.
3749 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3750 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3751 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3752 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3753 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3755 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3758 * testsuite/libgomp.c++/ctor-11.C: New test.
3759 * testsuite/libgomp.c++/ctor-12.C: New test.
3761 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3763 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3765 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3768 * testsuite/libgomp.c/atomic-5.c: New test.
3769 * testsuite/libgomp.c/atomic-6.c: New test.
3770 * testsuite/libgomp.c/autopar-1.c: New test.
3772 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3774 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3775 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3776 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3777 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3778 * configure: Regenerate.
3779 * Makefile.in, testsuite/Makefile.in: Likewise.
3781 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3784 * aclocal.m4: Regenerate.
3785 * configure: Regenerate.
3787 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3790 * testsuite/libgomp.c/atomic-4.c: New test.
3793 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3794 (gomp_iter_guided_next): Likewise.
3795 * testsuite/libgomp.c/pr35625.c: New test.
3797 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3799 * aclocal.m4: Regenerate.
3800 * configure: Likewise.
3801 * Makefile.in: Likewise.
3802 * testsuite/Makefile.in: Likewise.
3804 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3807 * testsuite/libgomp.c++/pr35185.C: New test.
3809 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3812 * testsuite/libgomp.c/pr35549.c: New test.
3814 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3816 * testsuite/libgomp.c/atomic-3.c: New test.
3818 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3821 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3824 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3827 * configure.ac: Add ACX_HEADER_STRING.
3828 * env.c: Include strings.h.
3829 * aclocal.m4: Regenerate.
3830 * config.h.in: Regenerate.
3831 * configure: Regenerate.
3832 * Makefile.in: Regenerate.
3833 * testsuite/Makefile.in: Regenerate.
3835 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3838 * testsuite/libgomp.c/pr35196.c: New test.
3841 * testsuite/libgomp.fortran/pr35130.f90: New test.
3842 * testsuite/libgomp.c/pr35130.c: New test.
3844 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3847 * testsuite/libgomp.c/pr33880.c: New test.
3848 * testsuite/libgomp.fortran/pr33880.f90: New test.
3850 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3852 * configure: Regenerate.
3854 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3856 * configure.ac: Move futex checking into ../config/futex.m4.
3857 * configure: Rebuilt.
3858 * aclocal.m4: Rebuilt.
3859 * Makefile.in: Rebuilt.
3861 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3862 2007-10-15 ../config/tls.m4 change.
3864 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3867 * testsuite/libgomp.c/pr34513.c: New test.
3868 * testsuite/libgomp.c++/pr34513.C: New test.
3870 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3873 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3875 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3877 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3879 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3881 * testsuite/libgomp.c/private-1.c: New test.
3883 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3884 Paolo Bonzini <bonzini@gnu.org>
3886 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3887 instead of 'VPATH ='.
3888 * Makefile.in: Regenerate.
3890 2007-11-23 Matthias Klose <doko@ubuntu.com>
3892 * configure.ac: Adjust makeinfo version check.
3893 * configure: Regenerate.
3895 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3898 * testsuite/libgomp.fortran/pr34020.f90: New test.
3900 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3903 * testsuite/libgomp.c++/atomic-1.C: New test.
3905 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3908 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3909 Make x and y integers rather than (implicit) reals. Add private (j)
3910 clause to the last omp parallel.
3912 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3914 * configure: Regenerate following changes to ../config/tls.m4.
3916 2007-09-28 Jakub Jelinek <jakub@redhat.com>
3918 * testsuite/libgomp.fortran/stack.f90: New test.
3920 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3922 * config/mingw32/proc.c: New file.
3924 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
3926 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3927 (main): Use __get_cpuid to get i386 target fetaures.
3928 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3929 (main): Use __get_cpuid to get x86_64 target fetaures.
3931 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3934 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3935 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3937 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3940 * testsuite/libgomp.fortran/pr32550.f90: New test.
3941 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3943 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3945 * aclocal.m4: Regenerated.
3947 2007-07-05 Tobias Burnus <burnus@net-b.de>
3950 * testsuite/libgomp.fortran/pr32359.f90: New.
3952 2007-07-02 Jakub Jelinek <jakub@redhat.com>
3955 * sections.c (GOMP_parallel_sections_start): Only decrease
3956 number of threads to COUNT if dyn_var is true.
3957 * testsuite/libgomp.c/pr32468.c: New test.
3959 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3962 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3964 2007-06-21 Jakub Jelinek <jakub@redhat.com>
3967 * testsuite/libgomp.c/pr32362-1.c: New test.
3968 * testsuite/libgomp.c/pr32362-2.c: New test.
3969 * testsuite/libgomp.c/pr32362-3.c: New test.
3971 2007-06-07 Jakub Jelinek <jakub@redhat.com>
3973 * team.c (gomp_team_start): Fix setting up thread_attr
3976 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3978 * configure: Regenerate.
3980 2007-05-23 Steve Ellcey <sje@cup.hp.com>
3982 * Makefile.in: Regenerate.
3983 * configure: Regenerate.
3984 * aclocal.m4: Regenerate.
3985 * testsuite/Makefile.in: Regenerate.
3987 2007-05-04 Jakub Jelinek <jakub@redhat.com>
3989 * config/linux/proc.c: New file.
3992 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3994 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3996 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3998 2007-04-16 Matthias Klose <doko@debian.org>
4000 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
4001 flags if not building with -m64.
4002 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
4003 flag for i?86-*-* targets, if current target matches -m64.
4005 2007-04-14 Steve Ellcey <sje@cup.hp.com>
4007 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
4008 * Makefile.in: Regenerate.
4010 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4013 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
4015 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4017 2007-04-04 Jakub Jelinek <jakub@redhat.com>
4019 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
4021 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
4022 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
4023 (parse_affinity): New function.
4024 (initialize_env): Call it and gomp_init_affinity.
4025 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
4026 create new pthread_attr_t and call gomp_init_thread_affinity
4027 on it for each thread before passing the attribute to pthread_create.
4028 * config/linux/affinity.c: New file.
4029 * config/posix/affinity.c: New file.
4030 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
4031 * configure: Rebuilt.
4032 * config.h.in: Rebuilt.
4033 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
4034 * Makefile.in: Rebuilt.
4036 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
4038 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
4040 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
4041 and use it if found.
4043 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
4045 * testsuite/config/default.exp: New file.
4046 * testsuite/lib/libgomp.exp: New file.
4047 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
4048 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
4049 load_lib *, load_gcc_lib *): Move to libgomp.exp.
4050 (libgomp_load): Remove.
4051 * testsuite/lib/libgomp.exp (libgomp_init): Compute
4052 always_ld_library_path, not ld_library_path. Set additional_flags
4053 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
4054 (target_compile): Do not call libgomp_init. Append lang_library_path
4055 and lang_link_flags to options.
4056 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
4057 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
4059 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
4060 always_ld_library_path. Set LD_LIBRARY_PATH here.
4061 * testsuite/libgomp.fortran/fortran.exp: Ditto.
4062 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
4063 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
4065 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
4066 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
4067 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
4068 * testsuite/libgomp.c/pr29947-1.c: Ditto.
4069 * testsuite/libgomp.c/atomic-10.c: Ditto.
4071 2007-03-21 Jakub Jelinek <jakub@redhat.com>
4073 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
4074 dg-final cleanup-modules line.
4075 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
4076 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
4077 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
4078 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4079 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4080 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4081 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4083 2007-03-18 Andreas Schwab <schwab@suse.de>
4085 * acinclude.m4: Adjust regular expression for ld version
4087 * configure: Regenerate.
4089 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4091 * Makefile.am: Add install-pdf target as copied from
4092 automake v1.10 rules.
4093 * Makefile.in: Regenerate
4095 2007-02-07 Jakub Jelinek <jakub@redhat.com>
4098 * configure: Regenerate.
4101 * testsuite/libgomp.c++/pr30703.C: New test.
4103 2007-02-02 Jakub Jelinek <jakub@redhat.com>
4106 2006-07-05 Eric Christopher <echristo@apple.com>
4107 * configure.ac: Depend addition of -pthread on host OS.
4108 * configure: Regenerate.
4110 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4112 * libgomp.texi: Fix spacing after abbreviations.
4114 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
4117 * configure.ac: Add check for makeinfo
4118 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
4119 if an appropiate version of makeinfo is found.
4120 * aclocal.m4: Regenerated.
4121 * configure: Regenerated.
4122 * Makefile.in: Regenerated.
4123 * testsuite/Makefile.in: Regenerated.
4125 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
4128 * libgomp.texi: More about implementation-dependent settings.
4130 2007-01-26 Tobias Burnus <burnus@net-b.de>
4132 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
4134 2007-01-24 Jakub Jelinek <jakub@redhat.com>
4137 * testsuite/libgomp.c/pr30494.c: New test.
4139 2007-01-15 Tom Tromey <tromey@redhat.com>
4141 * configure: Rebuilt.
4142 * configure.ac: Fixed comment.
4144 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
4146 * libgomp.texi: Document implementation specific default values of
4147 environment variables.
4149 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
4152 * libgomp.texi: New file.
4153 * configure.ac: Add --enable-generated-files-in-srcdir option.
4154 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
4156 * Makefile.in: Regenerated.
4157 * config.h.in: Regenerated.
4158 * testsuite/Makefile.in: Regenerated.
4161 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
4164 * env.c (omp_set_num_threads): Set illegal thread count to 1.
4166 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4168 * configure: Regenerate.
4170 2006-12-04 Jakub Jelinek <jakub@redhat.com>
4173 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
4174 start if there shouldn't be any loop iterations.
4175 (gomp_loop_ordered_static_start): Remove start == end test.
4176 * testsuite/libgomp.c/pr29947-1.c: New test.
4177 * testsuite/libgomp.c/pr29947-2.c: New test.
4179 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4181 * configure.tgt: Force initial-exec TLS model on Linux only.
4183 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
4185 * configure: Regenerated.
4187 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
4189 * env.c (parse_schedule): Reject out of range values.
4190 (parse_unsigned_long): Reject out of range, negative or zero values.
4192 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4195 * testsuite/libgomp.fortran/pr29629.f90: New test.
4197 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
4200 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4201 * config/posix95: New directory.
4202 * config/posix95/omp-lock.h: New file.
4203 * config/posix95/lock.c: Likewise.
4205 2006-10-14 Geoffrey Keating <geoffk@apple.com>
4207 * aclocal.m4: Regenerate.
4208 * configure: Regenerate.
4210 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4212 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4215 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4217 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4219 * configure: Regenerate.
4220 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4222 2006-09-26 Jakub Jelinek <jakub@redhat.com>
4226 * testsuite/libgomp.c/nestedfn-4.c: New test.
4227 * testsuite/libgomp.c/nestedfn-5.c: New test.
4228 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4231 * testsuite/libgomp.fortran/condinc1.f: New test.
4232 * testsuite/libgomp.fortran/condinc2.f: New test.
4233 * testsuite/libgomp.fortran/condinc3.f90: New test.
4234 * testsuite/libgomp.fortran/condinc4.f90: New test.
4235 * testsuite/libgomp.fortran/condinc1.inc: New file.
4237 2006-09-18 Tom Tromey <tromey@redhat.com>
4239 * configure: Rebuilt.
4241 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4244 PR preprocessor/14634
4245 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4247 * configure: Regenerate.
4249 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4251 * testsuite/libgomp.fortran/reduction3.f90: Change
4252 -2147483648 to -huge(i)-1 to avoid overflow.
4253 * testsuite/libgomp.fortran/reduction4.f90: Change
4254 Z'ffffffff' to not(0) to avoid overflow.
4256 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4259 * Makefile.am (libsubincludedir): New.
4260 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4261 * Makefile.in: Regenerate.
4263 2006-08-17 Jakub Jelinek <jakub@redhat.com>
4266 * env.c: Include ctype.h.
4267 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4268 leading and/or trailing whitespace and compare strings case
4271 2006-07-16 Jakub Jelinek <jakub@redhat.com>
4274 * testsuite/libgomp.fortran/pr28390.f: New test.
4276 2006-07-05 Eric Christopher <echristo@apple.com>
4278 * configure.ac: Depend addition of -pthread on host OS.
4279 * configure: Regenerate.
4281 2006-06-21 Jakub Jelinek <jakub@redhat.com>
4283 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4284 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4287 2006-06-20 Jakub Jelinek <jakub@redhat.com>
4291 * configure.ac: If neither --enable-linux-futex nor
4292 --disable-linux-futex is passed, determine the default by checking
4293 for compiling and/or running against NPTL. With --enable-linux-futex,
4294 check if SYS_gettid and SYS_futex are defined.
4295 * configure: Rebuilt.
4297 2006-06-14 Richard Henderson <rth@redhat.com>
4300 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4301 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4303 2006-06-09 Richard Henderson <rth@redhat.com>
4305 * env.c (gomp_nthreads_var): Change to unsigned long.
4306 (gomp_run_sched_chunk): Likewise.
4307 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4308 (initialize_env): Initialize gomp_thread_attr.
4309 * libgomp.h (gomp_nthreads_var): Update decl.
4310 (gomp_run_sched_chunk): Likewise.
4311 (gomp_thread_attr): Declare.
4312 * team.c (gomp_thread_attr): Export.
4313 (initialize_team): Don't initialize it.
4315 2006-06-09 Jakub Jelinek <jakub@redhat.com>
4318 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4319 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4321 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4323 * config/mingw32/time.c: New file.
4324 * configure.tgt: Use it.
4326 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4328 * Makefile.am: Add install-html target. Add install-html to .PHONY
4329 * Makefile.in: Regenerate.
4331 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4334 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4335 * testsuite/libgomp.c/critical-1.c: Likewise.
4336 * testsuite/libgomp.c/loop-1.c: Likewise.
4337 * testsuite/libgomp.c/loop-2.c: Likewise.
4338 * testsuite/libgomp.c/single-1.c: Likewise.
4339 * testsuite/libgomp.c/ordered-1.c: Likewise.
4340 * testsuite/libgomp.c/ordered-2.c: Likewise.
4342 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4345 * libgomp.fortran/pr27416-1.f90: New test.
4347 2006-05-03 Jakub Jelinek <jakub@redhat.com>
4350 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4351 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4353 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4356 * testsuite/libgomp.c/pr26943-1.c: New test.
4357 * testsuite/libgomp.c/pr26943-2.c: New test.
4358 * testsuite/libgomp.c/pr26943-3.c: New test.
4359 * testsuite/libgomp.c/pr26943-4.c: New test.
4360 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4361 * testsuite/libgomp.c++/pr26943.C: New test.
4363 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4366 * testsuite/libgomp.c++/pr27337.C: New test.
4368 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4371 * testsuite/libgomp.c/pr26171.c: New test.
4373 2006-04-25 Richard Henderson <rth@redhat.com>
4376 * configure.ac: Use GCC_CHECK_TLS.
4377 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4378 * Makefile.in, aclocal.m4, configure: Regenerate.
4380 2006-04-10 Matthias Klose <doko@debian.org>
4382 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4383 directory names containing underscores.
4385 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4388 * testsuite/libgomp.c++/pr26691.C: New test.
4390 2006-03-13 Jakub Jelinek <jakub@redhat.com>
4392 * testsuite/libgomp.fortran/retval2.f90: New test.
4394 2006-03-09 Diego Novillo <dnovillo@redhat.com>
4396 * testsuite/libgomp.c++: New directory.
4398 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
4400 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4401 * config/posix/sem.c: Implement the above.
4403 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4405 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4406 define HAVE_BROKEN_POSIX_SEMAPHORES.
4407 * configure: Rebuilt.
4408 * config.h.in: Rebuilt.
4410 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4413 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4414 for the other pthread check.
4415 * configure: Regenerate.
4416 * config.h.in: Regenerate.
4418 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4422 * Makefile.am (fincludedir): New variable.
4423 (nodist_include_HEADERS): Remove Fortran files.
4424 (nodist_finclude_HEADERS): New variable.
4425 * Makefile.in: Regenerated.
4427 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4429 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4430 Remove tests for returning assumed character length arrays.
4432 2006-02-12 Roger Sayle <roger@eyesopen.com>
4433 John David Anglin <dave@hiauly1.hia.nrc.ca>
4436 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4438 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4440 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4442 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4444 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4445 part of LD_LIBRARY_PATH manually.
4447 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4450 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4453 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
4456 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4457 * configure.ac (PERL): Don't set.
4458 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4459 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4460 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4461 * omp.h.in: Wrap the new configure substitutions with @ characters.
4462 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4463 * aclocal.m4, configure, Makefile.in: Regenerate.
4464 * mkomp_h.pl: Delete.
4466 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
4469 * configure.ac: Use GCC_HEADER_STDINT.
4470 * libgomp.h: Include gstdint.h.
4471 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4472 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4474 2006-01-24 Richard Henderson <rth@redhat.com>
4477 * configure.ac: Add AM_MAINTAINER_MODE.
4478 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4480 2006-01-24 Diego Novillo <dnovillo@redhat.com>
4482 * Makefile.in: Regenerate.
4483 * testsuite/Makefile.in: Regenerate.
4484 * aclocal.m4: Regenerate.
4486 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
4488 * config/posix/proc.c: Conditional include of sys/loadavg.h for
4490 * configure.ac: Add check for loadavg.h.
4491 (link_gomp): Adjust comment.
4492 * configure: Regenerate.
4493 * config.h.in: Regenerate.
4495 2006-01-21 Steve Ellcey <sje@cup.hp.com>
4498 * configure.ac: Remove check for alloca.h.
4499 * configure: Regenerate.
4500 * config.h.in: Regenerate.
4501 * libgomp.h: define gomp_alloca to be __builtin_alloca.
4502 * team.c: Remove use of alloca.h.
4503 Call gomp_alloca instead of alloca.
4505 2006-01-20 Steve Ellcey <sje@cup.hp.com>
4508 * team.c: Add include of alloca.h.
4509 * configure.ac: Add check for alloca.h.
4510 * configure: Regenerate.
4511 * config.h.in: Regenerate.
4513 2006-01-17 Jakub Jelinek <jakub@redhat.com>
4516 * testsuite/libgomp.fortran/pr25219.f90: New test.
4518 2005-12-05 Uros Bizjak <uros@kss-loka.si>
4520 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4521 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4522 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4523 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4524 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4525 testsuite/libgomp.fortran/threadprivate1.f90,
4526 testsuite/libgomp.fortran/threadprivate2.f90,
4527 testsuite/libgomp.fortran/threadprivate3.f90,
4528 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4529 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4530 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4531 effective-target to TLS runtime.
4533 * testsuite/libgomp.fortran/pr25162.f: Require
4534 effective-target TLS runtime.
4536 2005-12-01 Jakub Jelinek <jakub@redhat.com>
4538 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4539 * testsuite/libgomp.c/nestedfn-3.c: New test.
4541 2005-11-30 Jakub Jelinek <jakub@redhat.com>
4544 * testsuite/libgomp.fortran/pr25162.f: New test.
4546 2005-11-28 Jakub Jelinek <jakub@redhat.com>
4548 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4549 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4551 2005-11-25 Jakub Jelinek <jakub@redhat.com>
4553 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4554 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4555 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4556 single.c, team.c, work.c, config/linux/alpha/futex.h,
4557 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4558 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4559 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4560 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4561 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4562 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4563 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4566 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4568 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4569 to nodist_noinst_HEADERS.
4570 * Makefile.in: Rebuilt.
4572 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4573 add integer count field.
4574 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4575 omp_nest_lock_t type change.
4576 (omp_init_nest_lock): Likewise. Initialize count to 0.
4577 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4579 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4581 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4582 Increment count if successful and return the new nesting level.
4583 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4584 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4585 * testsuite/libgomp.c/lib-1.c: New test.
4586 * testsuite/libgomp.fortran/lib1.f90: New test.
4587 * testsuite/libgomp.fortran/lib2.f: New test.
4588 * testsuite/libgomp.fortran/lib3.f: New test.
4590 2005-11-17 Richard Henderson <rth@redhat.com>
4593 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4594 * configure.ac (link_gomp): New. Substitute it.
4595 (AC_CONFIG_FILES): Add libgomp.spec.
4596 * libgomp.spec.in: New file.
4597 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4598 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4600 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4602 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4603 reduction(-:var) behaving the same as reduction(+:var).
4604 * testsuite/libgomp.c/reduction-4.c: New test.
4606 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4608 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4609 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4610 testsuite/libgomp.c/copyin-3.c,
4611 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4612 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4613 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4614 testsuite/libgomp.c++/pr24455.C,
4615 testsuite/libgomp.fortran/threadprivate1.f90,
4616 testsuite/libgomp.fortran/threadprivate2.f90,
4617 testsuite/libgomp.fortran/threadprivate3.f90,
4618 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4619 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4620 testsuite/libgomp.fortran/omp_parse3.f90: Require
4621 effective-target TLS.
4623 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4627 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4630 * team.c (initialize_team): Pass NULL rather than free as
4631 pthread_key_create destructor. Initialize thread specific data
4632 pointer in initial thread to a static local variable rather than
4635 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4637 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4638 its location to ld_library_path.
4640 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4642 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4644 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4646 * testsuite/libgomp.c: Rename from libgomp.dg.
4648 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4650 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4651 threadprivate variable 'i'.
4653 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4655 * config/linux/s390/futex.h: New file.
4656 * configure.tgt: Use it.
4658 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4659 before the parallel.
4661 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4664 * testsuite/libgomp.c++/master-1.C: New test.
4666 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4668 * testsuite/libgomp.dg/copyin-3.c: New test.
4670 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4672 * testsuite/libgomp.fortran/retval1.f90: New test.
4673 * testsuite/libgomp.fortran/vla7.f90: New test.
4675 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4677 * testsuite/libgomp.fortran/vla2.f90: New test.
4678 * testsuite/libgomp.fortran/vla3.f90: New test.
4679 * testsuite/libgomp.fortran/vla4.f90: New test.
4680 * testsuite/libgomp.fortran/vla5.f90: New test.
4681 * testsuite/libgomp.fortran/vla6.f90: New test.
4683 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4685 * config/linux/sparc/futex.h: New file.
4686 * configure.tgt: Use it.
4687 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4689 * critical.c: Include stdlib.h.
4690 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4691 ignoring return value.
4692 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4693 LIBGOMP_CHECK_SYNC_BUILTINS check.
4694 * configure: Rebuilt.
4696 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4698 * testsuite/libgomp.fortran/vla1.f90: New test.
4700 2005-10-31 Richard Henderson <rth@redhat.com>
4702 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4703 setting 's' in different threads.
4705 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4707 * libgomp.h (attribute_hidden, ialias): Define.
4708 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4709 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4710 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4711 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4712 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4713 omp_test_lock, omp_test_nest_lock): Likewise.
4714 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4715 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4716 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4717 omp_test_lock, omp_test_nest_lock): Likewise.
4718 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4719 omp_get_dynamic, omp_get_nested): Likewise.
4720 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4721 omp_get_thread_num, omp_in_parallel): Likewise.
4722 * fortran.c (ialias_redirect): Define.
4723 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4724 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4725 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4726 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4727 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4728 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4729 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4730 omp_get_wtime): Add ialias_redirect.
4732 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4734 * fortran.c: Include stdlib.h.
4736 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4738 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4739 * Makefile.in: Regenerated.
4741 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4743 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4744 * libgomp_f.h.in (omp_check_defines): New function.
4745 * env.c: Include libgomp_f.h.
4746 (initialize_env): Call omp_check_defines.
4748 * testsuite/libgomp.dg/copyin-2.c: New test.
4749 * testsuite/libgomp.c++/copyin-2.C: New test.
4750 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4752 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4753 * testsuite/libgomp.fortran/sharing2.f90: New test.
4755 * testsuite/libgomp.dg/copyin-1.c: New test.
4756 * testsuite/libgomp.c++/copyin-1.C: New test.
4758 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4760 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4762 * testsuite/libgomp.fortran/workshare1.f90: New test.
4764 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4766 * libgomp.fortran/sharing1.f90: New test.
4768 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4771 * testsuite/libgomp.c++/loop-7.C: New test.
4773 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4775 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4776 * testsuite/libgomp.fortran/reduction6.f90: New test.
4777 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4779 2005-10-23 Richard Henderson <rth@redhat.com>
4781 * testsuite/libgomp.c++/ctor-1.C: New.
4782 * testsuite/libgomp.c++/ctor-2.C: New.
4783 * testsuite/libgomp.c++/ctor-3.C: New.
4784 * testsuite/libgomp.c++/ctor-4.C: New.
4785 * testsuite/libgomp.c++/ctor-5.C: New.
4786 * testsuite/libgomp.c++/ctor-6.C: New.
4787 * testsuite/libgomp.c++/ctor-7.C: New.
4788 * testsuite/libgomp.c++/ctor-8.C: New.
4789 * testsuite/libgomp.c++/ctor-9.C: New.
4791 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4794 * testsuite/libgomp.c++/pr24455-1.C: New test.
4795 * testsuite/libgomp.c++/pr24455.C: New test.
4796 * testsuite/libgomp.dg/pr24455-1.c: New test.
4797 * testsuite/libgomp.dg/pr24455.c: New test.
4799 2005-10-20 Richard Henderson <rth@redhat.com>
4801 * testsuite/libgomp.c++/loop-6.C: New.
4802 * testsuite/libgomp.dg/loop-3.c: New.
4804 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4806 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4808 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4811 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4813 * testsuite/libgomp.fortran/jacobi.f: New test.
4815 2005-10-19 Richard Henderson <rth@redhat.com>
4817 * configure.tgt (i?86-linux): Default to with_arch instead of
4818 CFLAGS. Add -mtune to match target_cpu.
4819 (x86_64-linux): Tune to i686.
4821 * fortran.c (omp_test_nest_lock_): Fix typo.
4823 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4825 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4826 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4827 * testsuite/libgomp.dg/ordered-3.c: New test.
4829 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4830 Remove volatile keyword.
4832 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4833 in COMMON block to avoid warnings on 64-bit targets.
4835 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4837 * testsuite/libgomp.dg/shared-3.c: New test.
4839 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4841 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4842 * testsuite/libgomp.fortran/reduction5.f90: New test.
4844 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4846 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4848 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4849 flush loop now that __sync_synchronize has proper memory barrier.
4850 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4851 Add -ffixed-form to dg-options.
4853 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4855 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4856 from subdirectories.
4857 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4858 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4859 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4860 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4861 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4862 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4863 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4864 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4865 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4866 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4867 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4868 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4869 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4870 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4871 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4872 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4873 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4874 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4875 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4876 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4877 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4878 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4879 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4880 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4881 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4883 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4885 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4886 lang_library_path exists. Use find instead of glob to gather tests.
4887 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4889 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4891 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4892 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4893 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4894 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4895 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4896 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4897 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4898 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4899 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4900 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4901 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4902 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4903 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4905 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4907 * testsuite/libgomp.dg/vla-1.c: New test.
4909 * testsuite/libgomp.fortran/reference2.f90: New test.
4911 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4912 declaration of omp_get_thread_num.
4913 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4916 * testsuite/libgomp.fortran/reduction1.f90: New test.
4917 * testsuite/libgomp.fortran/reduction2.f90: New test.
4918 * testsuite/libgomp.fortran/reduction3.f90: New test.
4919 * testsuite/libgomp.fortran/reduction4.f90: New test.
4921 2005-10-13 Richard Henderson <rth@redhat.com>
4923 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4924 * Makefile.in: Regenerate.
4925 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4926 * libgomp.h: Include bar.h.
4927 (struct gomp_barrier): Remove.
4928 (struct gomp_team): Add barrier. Replace master_barrier with
4929 master_release. Replace threads with ordered_release.
4930 (struct gomp_thread): Replace barrier with release.
4931 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4932 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4933 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4934 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4935 (GOMP_single_copy_end): Likewise.
4936 * team.c (gomp_threads_dock): New.
4937 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4938 (gomp_thread_start): Use gomp_barrier_wait.
4939 (new_team, free_team): Update for gomp_team changes.
4940 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4941 (gomp_team_end): Use gomp_barrier_wait.
4942 (initialize_team): Update for gomp_thread changes.
4943 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4944 (gomp_work_share_end_nowait): Use atomic ops when available.
4945 * config/linux/bar.c, config/linux/bar.h: New files.
4946 * config/posix/bar.c, config/posix/bar.h: New files.
4948 2005-10-13 Jakub Jelinek <jakub@redhat.com>
4950 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4951 * testsuite/libgomp.dg/single-2.c: New test.
4953 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4954 lang_link_flags): Unset, so that they aren't inherited from previously
4957 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4959 2005-10-12 Richard Henderson <rth@redhat.com>
4961 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4962 (libgomp_init): Use lang_test_file, lang_library_path, and
4963 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4965 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4966 (lang_test_file, lang_link_flags): New.
4967 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4969 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4970 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4971 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4972 testsuite/libgomp.c++/parallel-1.C,
4973 testsuite/libgomp.c++/reduction-1.C,
4974 testsuite/libgomp.c++/reduction-2.C,
4975 testsuite/libgomp.c++/reduction-3.C,
4976 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4977 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4978 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4979 New files, largely cribbed from the C testsuite.
4981 2005-10-12 Jakub Jelinek <jakub@redhat.com>
4983 * testsuite/libgomp.fortran/character1.f90: New test.
4984 * testsuite/libgomp.fortran/character2.f90: New test.
4986 * testsuite/libgomp.dg/nested-1.c: New test.
4987 * testsuite/libgomp.dg/nested-2.c: New test.
4988 * testsuite/libgomp.fortran/do1.f90: New test.
4989 * testsuite/libgomp.fortran/do2.f90: New test.
4991 * testsuite/libgomp.fortran/reference1.f90: New test.
4993 2005-10-11 Jakub Jelinek <jakub@redhat.com>
4995 * testsuite/libgomp.dg/reduction-1.c: New test.
4996 * testsuite/libgomp.dg/reduction-2.c: New test.
4997 * testsuite/libgomp.dg/reduction-3.c: New test.
4999 2005-10-10 Jakub Jelinek <jakub@redhat.com>
5001 * testsuite/libgomp.dg/atomic-1.c: New test.
5002 * testsuite/libgomp.dg/atomic-2.c: New test.
5004 2005-10-09 Richard Henderson <rth@redhat.com>
5006 * critical.c (atomic_lock): New.
5007 (initialize_critical): Initialize it.
5008 (GOMP_atomic_start, GOMP_atomic_end): New.
5009 * libgomp.map: Export them.
5010 * libgomp_g.h: Declare them.
5012 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
5014 2005-10-02 Richard Henderson <rth@redhat.com>
5016 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
5017 to XCFLAGS instead of CFLAGS.
5019 2005-09-30 Richard Henderson <rth@redhat.com>
5021 * configure.ac: Determine whether -pthread or -lpthread is needed.
5022 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
5023 * Makefine.in, configure: Rebuild.
5025 2005-09-28 Richard Henderson <rth@redhat.com>
5027 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
5028 * testsuite/libgomp.dg/omp-single-3.c: New test.
5030 2005-09-28 Diego Novillo <dnovillo@redhat.com>
5032 * testsuite/libgomp.dg/omp-single-2.c: New test.
5033 * testsuite/libgomp.dg/shared-2.c: Fix return code.
5035 2005-09-27 Richard Henderson <rth@redhat.com>
5037 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
5038 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
5040 2005-09-27 Jakub Jelinek <jakub@redhat.com>
5042 * testsuite/libgomp.dg/omp-loop03.c: New test.
5044 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5046 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
5048 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5050 * testsuite/libgomp.dg/omp-single-1.c: New test.
5051 * testsuite/libgomp.dg/shared-1.c: Return 0.
5052 Add prototype for abort.
5053 * testsuite/libgomp.dg/shared-2.c: Likewise.
5055 2005-09-26 Jakub Jelinek <jakub@redhat.com>
5057 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
5060 2005-09-26 Diego Novillo <dnovillo@redhat.com>
5062 * testsuite/libgomp.dg/shared-1.c: New test.
5063 * testsuite/libgomp.dg/shared-2.c: New test.
5065 2005-09-24 Richard Henderson <rth@redhat.com>
5067 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
5069 2005-09-24 Richard Henderson <rth@redhat.com>
5071 * iter.c (gomp_iter_static_next): Round up when computing number
5072 of iterations. Don't bother distributing a remainder equally.
5074 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
5075 Don't call srand. Zero b before testing.
5078 2005-09-24 Jakub Jelinek <jakub@redhat.com>
5080 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
5081 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
5083 2005-09-23 Jakub Jelinek <jakub@redhat.com>
5085 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
5086 without !$omp end do, followed immediately by subroutine end.
5088 2005-09-23 Diego Novillo <dnovillo@redhat.com>
5090 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
5092 2005-09-22 Richard Henderson <rth@redhat.com>
5094 * critical.c (GOMP_critical_name_start): Change argument to void**.
5095 Reuse the pointer space if the mutex fits.
5096 (GOMP_critical_name_end): Likewise.
5097 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
5098 * libgomp_g.h (GOMP_critical_name_start): Update decl.
5099 (GOMP_critical_name_end): Likewise.
5100 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
5101 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
5103 2005-09-20 Richard Henderson <rth@redhat.com>
5105 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
5106 (create_lock_lock): New.
5107 (initialize_critical): Initialize it.
5108 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
5109 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
5111 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5113 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
5115 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5117 * testsuite/libgomp.dg/omp-loop01.c: New test.
5118 * testsuite/libgomp.dg/omp-loop02.c: New test.
5120 2005-09-20 Jakub Jelinek <jakub@redhat.com>
5122 * configure.ac (AC_PROG_FC): Add.
5123 (USE_FORTRAN): New automake conditional.
5124 * configure: Rebuilt.
5125 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
5126 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
5127 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
5128 Add rules to build them.
5129 * Makefile.in: Rebuilt.
5130 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
5132 * libgomp.map: Add Fortran wrappers.
5133 * libgomp_f.h.in: New file.
5134 * omp_lib.h.in: New file.
5135 * omp_lib.f90.in: New file.
5136 * fortran.c: New file.
5137 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
5138 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
5139 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
5140 libgfortran has been built.
5141 * testsuite/libgomp.fortran/fortran.exp: New file.
5142 * testsuite/libgomp.fortran/omp_cond1.f: New test.
5143 * testsuite/libgomp.fortran/omp_cond2.f: New test.
5144 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
5145 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
5146 * testsuite/libgomp.fortran/omp_hello.f: New test.
5147 * testsuite/libgomp.fortran/omp_orphan.f: New test.
5148 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
5149 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
5150 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
5151 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
5152 * testsuite/libgomp.fortran/omp_reduction.f: New test.
5153 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
5154 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
5156 2005-08-30 Richard Henderson <rth@redhat.com>
5158 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
5159 function for when aliases are not usable.
5160 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
5161 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5162 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
5163 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
5164 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
5165 GOMP_loop_ordered_guided_next): Likewise.
5166 * ordered.c (GOMP_ordered_start): Likewise.
5168 2005-08-01 Diego Novillo <dnovillo@redhat.com>
5170 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
5171 * testsuite/libgomp.dg/omp_hello.c: Fix return code
5172 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
5173 * testsuite/libgomp.dg/omp_orphan.c: Likewise
5174 * testsuite/libgomp.dg/omp_reduction.c: Likewise
5175 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
5176 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
5177 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
5178 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
5180 2005-07-07 Eric Christopher <echristo@redhat.com>
5181 Diego Novillo <dnovillo@redhat.com>
5183 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5184 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5186 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5187 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5188 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5189 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5190 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5191 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5192 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5194 2005-06-13 Diego Novillo <dnovillo@redhat.com>
5196 * TOPLEVEL.patch: Remove.
5198 2005-05-16 Richard Henderson <rth@redhat.com>
5200 * configure.ac: Test for clock_gettime.
5201 * config.h.in, configure: Rebuild.
5202 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5203 (omp_get_wtime): Use clock_gettime if available.
5204 (omp_get_wtick): Use clock_getres if available.
5206 2005-05-11 Richard Henderson <rth@redhat.com>
5208 * config/linux/ia64/futex.h: New file.
5209 * configure.tgt: Use it.
5211 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5213 2005-05-07 Richard Henderson <rth@redhat.com>
5215 * config/linux/powerpc/futex.h: New file.
5216 * configure.tgt: Use it.
5218 * config/linux/i486/futex.h: Merge ...
5219 * config/linux/x86_64/futex.h: ... into ...
5220 * config/linux/x86/futex.h: ... here.
5221 * configure.tgt: Update to match.
5223 2005-05-06 Richard Henderson <rth@redhat.com>
5225 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5226 * config/linux/i486/futex.h: Likewise.
5227 * config/linux/x86_64/futex.h: Likewise.
5229 * config/linux/lock.c: New file.
5230 * config/linux/omp-lock.h: New file.
5232 * critical.c, env.h: Don't include omp.h
5233 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5234 * config/posix/time.c: Likewise.
5235 * config/posix/omp-lock.h: New file.
5236 * libgomp.h: Include omp-lock.h and omp.h.
5237 * Makefile.am (nodist_include_HEADERS): New.
5239 * configure.ac (PERL): New.
5240 * mkomp_h.pl: New file.
5241 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5243 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5245 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5246 build directory. Re-add -march=i486 hack.
5248 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5249 (libgomp_link_flags): Remove.
5250 (libgomp_initialized): Remove.
5251 (libgomp_init): Don't protect from reinitialization. Copy code
5252 from libstdc++ for getting the multilib set correctly.
5254 2005-05-05 Richard Henderson <rth@redhat.com>
5256 * config/linux/alpha/futex.h: New file.
5257 * configure.tgt (alpha*-*-linux*): Use it.
5259 * config/posix/mutex.c: New file.
5260 * config/posix/sem.c: Use libgomp.h.
5262 * configure.tgt (x86_64-linux): Also test CC for -m32.
5263 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5265 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5268 * Makefile.am (SUBDIRS): New.
5269 (libgomp_la_LDFLAGS): Add -lpthread.
5270 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5271 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5273 * libgomp_g.h: New file.
5274 * libgomp.h: Split out all public declarations to libgomp_g.h.
5275 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5276 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5277 * config/linux/sem.h: Likewise.
5278 * config/posix/sem.h: Likewise.
5280 * Makefile.am (AM_LDFLAGS): New.
5281 (libgomp_version_script): Split out from ...
5282 (libgomp_la_LDFLAGS): ... here.
5283 (libgomp_version_info): New.
5284 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5285 (LIBGOMP_ENABLE): New.
5286 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5287 (LIBGOMP_ENABLE_SYMVERS): New.
5288 * configure.ac (AC_INIT): Version 1.0.
5289 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5290 (enable-linux-futex): Likewise. Rename from enable-futex.
5291 (libtool_VERSION): New.
5292 (LIBGOMP_ENABLE_SYMVERS): Use it.
5293 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5294 * Makefile.in, aclocal.m4, configure: Rebuild.
5296 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5297 (gomp_mutex_unlock_slow): Fix typo.
5298 * config/linux/sem.c: Similarly.
5299 (gomp_sem_post_slow): Fix typo.
5300 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5301 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5302 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5304 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5305 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5306 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5307 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5308 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5309 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5310 LDFLAGS. Pull enable_futex check to top-level.
5311 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5312 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5314 First attempt at real configury.
5315 * Makefile, config.h: Remove file.
5316 * Makefile.am, Makefile.in: New file.
5317 * acinclude.m4 aclocal.m4: New file.
5318 * configure.ac, configure.tgt, configure: New file.
5320 * config/posix/lock.c: Rename from sys-lock.c.
5321 * config/posix/mutex.h: Rename from sys-mutex.h.
5322 * config/posix/sem.c: Rename from sys-sem.c.
5323 * config/posix/sem.h: Rename from sys-sem.h.
5324 * config/posix/proc.c: Rename from sys-proc.c.
5325 * config/posix/time.c: Rename from sys-proc.c.
5327 * config/linux/mutex.c: New file.
5328 * config/linux/mutex.h: New file.
5329 * config/linux/sem.c: New file.
5330 * config/linux/sem.h: New file.
5331 * config/linux/i486/futex.h: New file.
5332 * config/linux/x86_64/futex.h: New file.
5334 2005-05-04 Richard Henderson <rth@redhat.com>
5336 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5337 * libgomp.h: Declare them.
5338 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5339 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5341 2005-05-04 Richard Henderson <rth@redhat.com>
5343 * libgomp-1 code drop
5345 2005-05-04 Richard Henderson <rth@redhat.com>
5347 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5348 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5349 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5350 (gomp_iter_static_next): Update.
5351 (gomp_ordered_static_next): Update.
5352 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5353 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5354 totally empty range.
5355 (gomp_loop_ordered_static_next): Refine test for calling
5356 gomp_ordered_static_next.
5357 * testsuite/ordered-1.c: Add case for more threads than iterations.
5359 * iter.c (gomp_iter_runtime_next_locked): Remove.
5360 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5361 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5362 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5363 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5364 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5365 gomp_loop_ordered_guided_next): Downcase name, make static, add
5366 an external alias with the old name.
5367 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5368 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5369 switch and call one of the above static functions.
5370 * libgomp.h: Update.
5372 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5373 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5374 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5375 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5376 GOMP_loop_ordered_guided_start): Update to match.
5377 * sections.c (GOMP_sections_start): Likewise.
5378 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5380 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5381 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5382 Use bounds check instead of modulus.
5383 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5384 (gomp_ordered_last): Don't sync with ordered_owner here.
5385 (gomp_ordered_next): Likewise.
5386 (gomp_ordered_static_loop_next): Likewise.
5387 * loop.c, libgomp.h: Update to match.
5389 * libgomp.h (GOMP_barrier): Declare.
5391 * testsuite/barrier-1.c: New file.
5392 * testsuite/critical-1.c: New file.
5393 * testsuite/ordered-2.c: New file.
5394 * testsuite/ordered-1.c: New file.
5395 * testsuite/sections-1.c: New file.
5396 * testsuite/single-1.c: New file.
5397 * testsuite/Makefile (TESTS): Add them.
5399 2005-05-04 Richard Henderson <rth@redhat.com>
5401 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5402 * loop.c (GOMP_loop_static_start): If not the startup thread,
5403 acquire the mutex to wait for initialization complete.
5404 (GOMP_loop_ordered_static_start): Likewise.
5405 (GOMP_loop_ordered_runtime_start): Likewise.
5406 (GOMP_loop_ordered_static_first): Remove.
5407 (GOMP_loop_ordered_dynamic_first): Remove.
5408 (GOMP_loop_ordered_guided_first): Remove.
5409 (GOMP_loop_ordered_runtime_first): Remove.
5410 * ordered.c (gomp_ordered_loop_first): Post to own release when
5411 we're the first thread.
5412 (gomp_ordered_loop_last): Wait on release if not owner.
5413 (gomp_ordered_loop_next): Likewise.
5414 (gomp_ordered_static_loop_init): New.
5415 (gomp_ordered_static_loop_next): Use ordered_owner.
5416 (GOMP_ordered_start): Likewise.
5417 * work.c (gomp_new_work_share): Initialize ordered_owner.
5419 2005-05-03 Richard Henderson <rth@redhat.com>
5421 * Makefile (OPT): New.
5424 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5425 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5426 * libgomp.h, libgomp.map, NOTES: Update to match.
5428 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5429 Add initialized and thr members.
5430 (gomp_thread_start): Pause when initially spawned to wait for
5431 the whole team to be created.
5432 (gomp_team_start): Release team members at the end.
5434 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5435 (f_foo_1): Use GOMP_loop_end.
5436 (f_foo_2): Use GOMP_loop_end_nowait.
5438 * testsuite/loop-2.c: New file.
5439 * testsuite/Makefile (TESTS): Add it.
5441 2005-05-03 Richard Henderson <rth@redhat.com>
5443 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5444 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5445 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5448 * testsuite/Makefile: New file.
5449 * testsuite/loop-1.c: New file.
5451 2005-05-03 Richard Henderson <rth@redhat.com>
5453 Initial implementation and checkin.