1 2015-06-05 Tom de Vries <tom@codesourcery.com>
3 merge from gomp4 branch:
4 2015-05-28 Tom de Vries <tom@codesourcery.com>
6 PR tree-optimization/65443
7 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
8 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
9 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
11 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13 * testsuite/libgomp.graphite/bounds.c: Adjust for
14 cleanup-tree-dump removal.
15 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
16 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
18 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
19 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
20 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
21 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
22 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
23 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
24 * testsuite/libgomp.graphite/pr41118.c: Likewise.
26 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
28 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
29 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
30 (futex_wake) [!__x86_64__]: Ditto.
32 2015-05-28 Julian Brown <julian@codesourcery.com>
34 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
35 function comment. Only call gomp_fatal if new argument is true.
36 (acc_dev_num_out_of_range): New function.
37 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
38 acc_dev_num_out_of_range as appropriate.
39 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
40 (acc_get_device_num, acc_set_device_num): Update calls to
42 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
45 2015-05-28 Julian Brown <julian@codesourcery.com>
48 * oacc-init.c (plugin/plugin-host.h): Include.
49 (acc_on_device): Check whether we're in an offloaded region for
51 plugin. Don't use __builtin_acc_on_device.
52 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
53 nonshm_exec flag in thread-local data.
54 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
55 data for host_nonshm plugin.
56 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
57 for host_nonshm plugin.
58 * plugin/plugin-host.h: New.
60 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
62 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
64 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
66 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
68 (FUTEX_PRIVATE_FLAG): Remove L suffix.
69 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
72 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
74 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
76 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
78 * target.c (gomp_map_pointer): New function abstracting out
79 GOMP_MAP_POINTER handling.
80 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
83 2015-05-19 Jakub Jelinek <jakub@redhat.com>
86 * testsuite/libgomp.c/pr66199-1.c: New test.
87 * testsuite/libgomp.c/pr66199-2.c: New test.
88 * testsuite/libgomp.c++/pr66199-1.C: New test.
89 * testsuite/libgomp.c++/pr66199-2.C: New test.
90 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
91 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
93 2015-05-19 Julian Brown <julian@codesourcery.com>
95 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
98 2015-05-13 Jakub Jelinek <jakub@redhat.com>
101 * testsuite/libgomp.c/pr66133.c: New test.
103 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
105 * Makefile.in: Regenerated with automake-1.11.6.
106 * aclocal.m4: Likewise.
107 * config.h.in: Likewise.
108 * configure: Likewise.
109 * testsuite/Makefile.in: Likewise.
111 2015-05-08 Jason Merrill <jason@redhat.com>
113 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
116 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
118 2015-05-06 Julian Brown <julian@codesourcery.com>
120 * oacc-init.c (acc_device_lock): Add explanatory comment.
121 (resolve_device): Add comment about locking requirement.
122 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
123 gomp_init_device and gomp_fini_device calls.
124 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
125 (acc_get_device_num, acc_set_device_num): Add locking around
126 resolve_device and gomp_init_device calls.
128 2015-05-06 Julian Brown <julian@codesourcery.com>
130 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
131 goacc_thread_lock on error paths.
132 * oacc-mem.c (lookup_host): Remove locking from function. Note
133 locking requirement for caller in function comment.
134 (lookup_dev): Likewise.
135 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
136 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
137 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
140 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
144 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
145 don't expect "0x" prefix for "%p" format specifier, don't expect
146 "(nil)" for NULL pointer.
147 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
148 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
149 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
150 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
151 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
152 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
153 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
154 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
155 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
156 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
157 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
158 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
159 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
160 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
161 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
162 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
163 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
164 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
165 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
166 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
167 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
168 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
169 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
170 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
171 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
172 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
173 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
174 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
175 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
176 accurately specify what we're looking for.
177 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
178 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
179 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
180 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
181 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
183 2015-04-30 James Norris <jnorris@codesourcery.com>
186 * testsuite/lib/libgomp.exp
187 (check_effective_target_openacc_host_selected)
188 (check_effective_target_openacc_host_nonshm_selected): New
190 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
192 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
193 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
194 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
195 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
196 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
197 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
198 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
199 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
200 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
201 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
202 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
203 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
204 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
205 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
206 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
207 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
208 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
209 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
210 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
211 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
212 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
213 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
214 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
215 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
216 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
217 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
218 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
219 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
220 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
221 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
222 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
223 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
224 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
225 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
226 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
227 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
228 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
229 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
230 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
231 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
232 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
233 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
234 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
236 2015-04-08 Julian Brown <julian@codesourcery.com>
238 * libgomp.h (target_mem_desc: Remove mem_map field.
239 (acc_dispatch_t): Remove open_device_func, close_device_func,
240 get_device_num_func, set_device_num_func, target_data members.
241 Change create_thread_data_func argument to device number instead of
243 * oacc-async.c (assert.h): Include.
244 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
245 (acc_wait_all, acc_wait_all_async): Use current host thread's
246 active device, not base_dev.
247 * oacc-cuda.c (acc_get_current_cuda_device)
248 (acc_get_current_cuda_context, acc_get_cuda_stream)
249 (acc_set_cuda_stream): Likewise.
250 * oacc-host.c (host_dispatch): Don't set open_device_func,
251 close_device_func, get_device_num_func or set_device_num_func.
252 * oacc-init.c (base_dev, init_key): Remove.
253 (cached_base_dev): New.
254 (name_of_acc_device_t): New.
255 (acc_init_1): Initialise default-numbered device, not zeroth.
256 (acc_shutdown_1): Close all devices of a given type.
257 (goacc_destroy_thread): Don't use base_dev.
258 (lazy_open, lazy_init, lazy_init_and_open): Remove.
259 (goacc_attach_host_thread_to_device): New.
260 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
261 (acc_get_num_devices): Don't use base_dev.
262 (acc_set_device_type): Reimplement.
263 (acc_get_device_type): Don't use base_dev.
264 (acc_get_device_num): Tweak logic.
265 (acc_set_device_num): Likewise.
266 (acc_on_device): Use acc_get_device_type.
267 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
268 (goacc_lazy_initialize): Reimplement with acc_init and
269 goacc_attach_host_thread_to_device.
270 * oacc-int.h (goacc_thread): Add base_dev field.
271 (base_dev): Remove extern declaration.
272 (goacc_attach_host_thread_to_device): Add prototype.
273 * oacc-mem.c (acc_malloc): Use current thread's device instead of
275 (acc_free): Likewise.
276 (acc_memcpy_to_device): Likewise.
277 (acc_memcpy_from_device): Likewise.
278 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
279 goacc_lazy_initialize (throughout).
280 (GOACC_parallel): Use tgt_offset to locate target functions.
281 * target.c (gomp_map_vars): Don't set tgt->mem_map.
282 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
283 (gomp_load_plugin_for_device): Remove open_device, close_device,
284 get_device_num, set_device_num openacc hook initialisation. Don't set
286 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
287 (GOMP_OFFLOAD_openacc_close_device)
288 (GOMP_OFFLOAD_openacc_get_device_num)
289 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
290 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
292 * plugin/plugin-nvptx.c (ptx_inited): Remove.
293 (instantiated_devices, ptx_dev_lock): New.
294 (struct ptx_image_data): New.
295 (ptx_devices, ptx_images, ptx_image_lock): New.
296 (fini_streams_for_device): Reorder cuStreamDestroy call.
297 (nvptx_get_num_devices): Remove forward declaration.
298 (nvptx_init): Change return type to bool.
299 (nvptx_fini): Remove.
300 (nvptx_attach_host_thread_to_device): New.
301 (nvptx_open_device): Return struct ptx_device* instead of void*.
302 (nvptx_close_device): Change argument type to struct ptx_device*,
304 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
305 (kernel_target_data, kernel_host_table): Remove static globals.
306 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
307 (GOMP_OFFLOAD_init_device): Reimplement.
308 (GOMP_OFFLOAD_fini_device): Likewise.
309 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
310 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
311 (GOMP_OFFLOAD_host2dev): Use ORD argument.
312 (GOMP_OFFLOAD_openacc_open_device)
313 (GOMP_OFFLOAD_openacc_close_device)
314 (GOMP_OFFLOAD_openacc_set_device_num)
315 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
316 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
320 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
322 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
324 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
325 * libgomp.h (struct gomp_memory_mapping): Remove.
326 (struct target_mem_desc): Change type of mem_map from
327 gomp_memory_mapping * to splay_tree_s *.
328 (struct gomp_device_descr): Remove register_image_func, get_table_func.
329 Add load_image_func, unload_image_func.
330 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
331 Remove offload_regions_registered.
332 (gomp_init_tables): Remove.
333 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
335 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
336 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
337 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
338 offload_regions_registered.
339 Initialize load_image_func, unload_image_func, mem_map.root.
340 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
341 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
342 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
343 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
344 gomp_memory_mapping *. Use dev's lock and splay_tree.
345 (lookup_dev): Use dev's lock.
346 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
347 (acc_is_present): Likewise.
348 (acc_map_data): Likewise.
349 (acc_unmap_data): Likewise. Use dev's lock.
350 (present_create_copy): Likewise.
351 (delete_copyout): Pass dev to lookup_host instead of mem_map.
352 (update_dev_host): Likewise.
353 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
354 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
355 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
356 (GOMP_OFFLOAD_get_table): Remove
357 (GOMP_OFFLOAD_load_image): New function.
358 (GOMP_OFFLOAD_unload_image): New function.
359 * target.c (register_lock): New mutex for offload image registration.
360 (num_devices): Do not guard with PLUGIN_SUPPORT.
361 (gomp_realloc_unlock): New static function.
362 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
364 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
365 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
366 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
368 (gomp_unmap_vars): Likewise.
369 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
370 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
371 (gomp_offload_image_to_device): New static function.
372 (GOMP_offload_register): Add mutex lock.
373 Call gomp_offload_image_to_device for all initialized devices.
374 Replace gomp_realloc with gomp_realloc_unlock.
375 (GOMP_offload_unregister): New function.
376 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
377 get_table_func from the plugin with calls to init_device_func and
378 gomp_offload_image_to_device.
379 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
381 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
382 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
383 (GOMP_target_data): Do not call gomp_init_tables.
384 (GOMP_target_update): Likewise. Remove argument from gomp_update.
385 (gomp_load_plugin_for_device): Replace register_image and get_table
386 with load_image and unload_image in DLSYM ().
387 (gomp_register_images_for_device): Remove function.
388 (gomp_target_init): Do not initialize current_device.mem_map.*,
389 current_device.offload_regions_registered.
390 Remove call to gomp_register_images_for_device.
391 Do not free offload_images and num_offload_images.
393 2015-03-30 Jakub Jelinek <jakub@redhat.com>
396 * testsuite/libgomp.fortran/pr65597.f90: New test.
398 2015-03-27 Tom de Vries <tom@codesourcery.com>
401 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
402 (init, check): New function.
403 (foo): Change return type to void.
404 (main): Call init and check.
406 2015-03-27 Tom de Vries <tom@codesourcery.com>
409 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
410 (foo): Use M for non-inner loops to scale down test-case.
412 2015-03-25 Kai Tietz <ktietz@redhat.com>
415 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
416 (GOACC_data_start): Likewise.
417 * target.c (gomp_map_vars): Likewise.
419 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
421 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
424 2015-03-19 Jakub Jelinek <jakub@redhat.com>
426 * testsuite/libgomp.c/target-10.c: New test.
427 * testsuite/libgomp.c++/target-4.C: New test.
429 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
431 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
432 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
434 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
436 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
437 * configure.ac (*-*-rtems*): Assume Pthread is supported.
438 (pthread.h): Check for this header file.
439 * configure: Regenerate.
441 2015-02-25 Tom de Vries <tom@codesourcery.com>
443 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
444 (check_reduction_op, check_reduction_macro, max, min):
446 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
448 (main): Use new functions.
450 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
452 * target.c (gomp_load_plugin_for_device): Use const char * instead of
453 char * for variables holding dlerror return values.
456 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
458 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
460 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
461 Cesar Philippidis <cesar@codesourcery.com>
463 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
464 GOACC_ctaid, and GOACC_nctaid routines.
466 2015-02-11 Jakub Jelinek <jakub@redhat.com>
469 * testsuite/libgomp.c/atomic-18.c: New test.
470 * testsuite/libgomp.c++/atomic-16.C: New test.
472 2015-02-04 Jakub Jelinek <jakub@redhat.com>
476 * testsuite/libgomp.c/pr64824.c: New test.
477 * testsuite/libgomp.c/pr64868.c: New test.
478 * testsuite/libgomp.c++/pr64824.C: New test.
479 * testsuite/libgomp.c++/pr64868.C: New test.
481 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
484 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
486 * config/aix/plugin-suffix.h: Delete.
488 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
491 * configure.tgt (*-*-aix*): Use config_path "aix posix".
492 (*-*-darwin*): Use config_path "bsd darwin posix".
493 (*-*-hpux*): Use config_path "hpux posix".
494 * target.c: Add include of plugin-suffix.h and use
496 * config/aix/plugin-suffix.h: New file.
497 * config/darwin/plugin-suffix.h: New file.
498 * config/hpux/plugin-suffix.h: New file.
499 * config/posix/plugin-suffix.h: New file.
501 2015-01-23 Jakub Jelinek <jakub@redhat.com>
504 * libgomp.c/pr64734.c: New test.
506 2015-01-23 Tom de Vries <tom@codesourcery.com>
509 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
511 2015-01-23 Tom de Vries <tom@codesourcery.com>
514 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
517 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
520 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
521 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
522 formal parameter. Update all users.
523 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
524 Document unused formal parameter.
526 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
528 * oacc-parallel.c: Don't include <alloca.h>.
529 (GOACC_parallel): Use gomp_alloca instead of alloca.
531 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
533 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
535 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
536 James Norris <jnorris@codesourcery.com>
537 Tom de Vries <tom@codesourcery.com>
538 Julian Brown <julian@codesourcery.com>
539 Cesar Philippidis <cesar@codesourcery.com>
540 Nathan Sidwell <nathan@codesourcery.com>
541 Tobias Burnus <burnus@net-b.de>
543 * Makefile.am (search_path): Add $(top_srcdir)/../include.
544 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
545 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
546 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
547 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
548 Include $(top_srcdir)/plugin/Makefrag.am.
549 (nodist_libsubinclude_HEADERS): Add openacc.h.
550 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
551 openacc.f90, openacc.mod, openacc_kinds.mod.
552 (omp_lib.mod): Generalize into...
553 (%.mod): ... this new rule.
554 (openacc_kinds.mod, openacc.mod): New rules.
555 * plugin/configfrag.ac: New file.
556 * configure.ac: Move plugin/offloading support into it. Include
557 it. Instantiate testsuite/libgomp-test-support.pt.exp.
558 * plugin/Makefrag.am: New file.
559 * testsuite/Makefile.am (OFFLOAD_TARGETS)
560 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
562 (libgomp-test-support.exp): New rule.
563 (all-local): Depend on it.
564 * Makefile.in: Regenerate.
565 * testsuite/Makefile.in: Regenerate.
566 * config.h.in: Likewise.
567 * configure: Likewise.
568 * configure.tgt: Harden shell syntax.
569 * env.c: Include "oacc-int.h".
570 (parse_acc_device_type): New function.
571 (gomp_debug_var, goacc_device_type, goacc_device_num): New
573 (initialize_env): Initialize those. Call
574 goacc_runtime_initialize.
575 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
576 (gomp_fatal): Call gomp_vfatal.
577 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
578 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
579 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
580 (splay_tree_node, splay_tree, splay_tree_key)
581 (struct target_mem_desc, struct splay_tree_key_s)
582 (struct gomp_memory_mapping, struct acc_dispatch_t)
583 (struct gomp_device_descr, gomp_acc_insert_pointer)
584 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
585 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
586 (gomp_free_memmap, gomp_fini_device): New declarations.
587 (gomp_vdebug, gomp_debug): New macros.
588 Include "splay-tree.h".
589 * libgomp.map (OACC_2.0): New symbol version. Use for
590 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
591 acc_set_device_type_h_, acc_get_device_type,
592 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
593 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
594 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
595 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
596 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
597 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
598 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
599 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
600 acc_copyin_array_h_, acc_present_or_copyin,
601 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
602 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
603 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
604 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
605 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
606 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
607 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
608 acc_update_device, acc_update_device_32_h_,
609 acc_update_device_64_h_, acc_update_device_array_h_,
610 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
611 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
612 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
613 acc_is_present_64_h_, acc_is_present_array_h_,
614 acc_memcpy_to_device, acc_memcpy_from_device,
615 acc_get_current_cuda_device, acc_get_current_cuda_context,
616 acc_get_cuda_stream, acc_set_cuda_stream.
617 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
618 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
619 GOACC_update, GOACC_wait, GOACC_get_thread_num,
620 GOACC_get_num_threads.
621 (GOMP_PLUGIN_1.0): New symbol version. Use for
622 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
623 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
624 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
625 GOMP_PLUGIN_acc_thread.
626 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
627 environment variable.
628 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
629 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
630 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
631 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
632 (splay_tree_remove): New declarations.
633 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
634 (splay_tree_remove, splay_tree_lookup): Move into...
635 * splay-tree.c: ... this new file.
636 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
637 (splay_tree_node, splay_tree, splay_tree_key)
638 (struct target_mem_desc, struct splay_tree_key_s)
639 (struct gomp_device_descr): Don't declare.
640 (num_devices_openmp): New variable.
641 (gomp_get_num_devices ): Use it.
642 (gomp_init_targets_once): New function.
643 (gomp_get_num_devices ): Use it.
644 (get_kind, gomp_copy_from_async, gomp_free_memmap)
645 (gomp_fini_device, gomp_register_image_for_device): New functions.
646 (gomp_map_vars): Add devaddrs parameter.
647 (gomp_update): Add mm parameter.
648 (gomp_init_device): Move most of it into...
649 (gomp_init_tables): ... this new function.
650 (gomp_register_images_for_device): Remove function.
651 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
652 Make them hidden instead of static.
653 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
654 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
655 (GOMP_target_end_data, GOMP_target_update)
656 (gomp_load_plugin_for_device, gomp_target_init): Update for
658 * oacc-async.c: New file.
659 * oacc-cuda.c: Likewise.
660 * oacc-host.c: Likewise.
661 * oacc-init.c: Likewise.
662 * oacc-int.h: Likewise.
663 * oacc-mem.c: Likewise.
664 * oacc-parallel.c: Likewise.
665 * oacc-plugin.c: Likewise.
666 * oacc-plugin.h: Likewise.
667 * oacc-ptx.h: Likewise.
668 * openacc.f90: Likewise.
669 * openacc.h: Likewise.
670 * openacc_lib.h: Likewise.
671 * plugin/plugin-host.c: Likewise.
672 * plugin/plugin-nvptx.c: Likewise.
673 * libgomp-plugin.c: Likewise.
674 * libgomp-plugin.h: Likewise.
675 * libgomp_target.h: Remove file after merging content into the
676 former file. Update all users.
677 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
678 (offload_targets_s, offload_targets_s_openacc): New variables.
679 (check_effective_target_openacc_nvidia_accel_present)
680 (check_effective_target_openacc_nvidia_accel_selected): New
682 (libgomp_init): Update for OpenACC changes.
683 * testsuite/libgomp-test-support.exp.in: New file.
684 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
685 * testsuite/libgomp.oacc-c/c.exp: Likewise.
686 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
687 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
688 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
689 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
690 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
691 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
692 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
693 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
694 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
695 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
696 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
697 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
698 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
699 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
700 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
701 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
702 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
703 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
704 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
705 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
706 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
707 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
708 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
709 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
710 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
711 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
712 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
713 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
714 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
715 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
716 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
717 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
718 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
719 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
720 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
721 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
722 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
723 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
724 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
725 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
726 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
727 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
728 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
729 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
730 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
731 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
732 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
733 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
734 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
735 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
736 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
737 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
738 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
739 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
740 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
741 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
742 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
743 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
744 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
745 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
746 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
747 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
748 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
749 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
750 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
751 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
752 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
753 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
754 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
755 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
756 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
757 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
758 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
759 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
760 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
761 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
762 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
763 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
764 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
765 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
766 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
767 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
768 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
769 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
770 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
771 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
772 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
773 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
774 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
775 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
776 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
777 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
778 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
779 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
780 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
781 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
782 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
783 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
784 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
785 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
786 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
787 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
788 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
789 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
790 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
791 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
792 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
793 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
794 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
795 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
796 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
797 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
798 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
799 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
800 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
801 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
802 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
803 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
804 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
805 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
806 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
807 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
808 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
809 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
810 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
811 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
812 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
813 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
814 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
815 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
816 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
817 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
818 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
819 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
820 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
821 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
822 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
823 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
825 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
826 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
827 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
828 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
829 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
830 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
831 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
832 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
833 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
834 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
835 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
836 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
837 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
838 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
839 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
840 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
841 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
842 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
843 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
844 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
845 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
846 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
847 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
848 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
849 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
850 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
851 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
852 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
853 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
854 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
855 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
856 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
857 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
858 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
859 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
860 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
861 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
862 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
863 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
864 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
865 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
866 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
867 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
868 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
869 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
870 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
871 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
872 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
873 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
874 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
875 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
876 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
877 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
878 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
879 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
880 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
881 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
882 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
883 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
884 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
886 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
887 Julian Brown <julian@codesourcery.com>
888 David Malcolm <dmalcolm@redhat.com>
890 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
891 to "GNU Offloading and Multi Processing Runtime Library". Change
893 * configure: Regenerate.
894 * libgomp.texi: Update.
896 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
898 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
900 * configure: Regenerate.
902 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
903 "intelmic" in $offload_targets.
905 2015-01-05 Jakub Jelinek <jakub@redhat.com>
907 Update copyright years.
909 * libgomp.texi: Bump @copying's copyright year.
911 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
913 * testsuite/lib/libgomp.exp: Load target-utils.exp.
914 Move load of target-supportes.exp earlier.
916 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
918 * testsuite/libgomp.c/target-9.c: New test.
920 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
922 * config.h.in: Regenerate.
923 * configure: Regenerate.
924 * configure.ac: Add GCC_CHECK_EMUTLS.
925 * libgomp.h: Add check for USE_EMUTLS: this case
926 is equal to HAVE_TLS.
929 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
931 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
933 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
934 Ilya Verbin <ilya.verbin@intel.com>
936 * testsuite/libgomp.c/target-critical-1.c: New test.
938 2014-11-26 Jakub Jelinek <jakub@redhat.com>
940 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
941 to dg-options unless expensive testing is on.
942 (TESTITERS): Define to N if not defined.
943 (main): Use TESTITERS instead of N.
944 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
945 dg-additional-options depending on whether expensive testing is on.
946 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
947 Decrease N to 100000 and CHUNKSZ to 10000.
949 2014-11-24 Jakub Jelinek <jakub@redhat.com>
952 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
953 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
955 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
957 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
959 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
962 * configure: Regenerated.
964 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
966 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
967 vect_simd_clones effective target.
968 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
970 2014-11-14 Jakub Jelinek <jakub@redhat.com>
972 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
974 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
975 instead of 32 as block_size.
977 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
978 Ilya Verbin <ilya.verbin@intel.com>
980 * Makefile.in: Regenerate.
981 * configure: Regenerate.
982 * configure.ac: Set up offload_additional_options,
983 offload_additional_lib_paths and offload_targets.
984 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
985 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
986 * testsuite/Makefile.in: Regenerate.
987 * testsuite/lib/libgomp.exp (libgomp_init): Append
988 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
989 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
990 build directory to LD_LIBRARY_PATH for intelmic offload targets.
992 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
993 Ilya Verbin <ilya.verbin@intel.com>
994 Kirill Yukhin <kirill.yukhin@intel.com>
995 Ilya Tocar <ilya.tocar@intel.com>
997 * testsuite/lib/libgomp.exp
998 (check_effective_target_offload_device): New.
999 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
1000 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
1001 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
1002 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
1003 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
1004 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
1005 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
1006 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
1007 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
1008 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
1009 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
1010 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
1011 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
1012 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
1013 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
1014 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
1015 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
1016 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
1017 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
1018 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
1019 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
1020 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
1021 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
1022 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
1023 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
1024 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
1025 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
1026 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
1027 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
1028 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
1029 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
1030 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
1031 * testsuite/libgomp.c/target-7.c: Fix test.
1032 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
1033 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
1034 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
1035 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
1036 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
1037 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
1038 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
1039 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
1040 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
1041 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
1042 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
1043 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
1044 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
1045 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
1046 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
1047 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
1048 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
1049 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
1050 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1051 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
1052 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
1053 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
1054 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
1055 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
1056 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
1057 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
1058 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
1059 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
1060 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
1061 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
1062 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
1064 2014-11-13 Jakub Jelinek <jakub@redhat.com>
1065 Ilya Verbin <ilya.verbin@intel.com>
1066 Thomas Schwinge <thomas@codesourcery.com>
1067 Andrey Turetskiy <andrey.turetskiy@intel.com>
1069 * libgomp.map (GOMP_4.0.1): New symbol version.
1070 Add GOMP_offload_register.
1071 * libgomp_target.h: New file.
1072 * splay-tree.h: New file.
1073 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
1074 (gomp_target_init): New forward declaration.
1075 (gomp_is_initialized): New static variable.
1076 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
1077 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
1079 (offload_images, num_offload_images, devices, num_devices): New static
1081 (splay_compare): New static function.
1082 (struct gomp_device_descr): New structure.
1083 (gomp_get_num_devices): Call gomp_target_init.
1084 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
1085 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
1086 (GOMP_offload_register): New function.
1087 (GOMP_target): Arrange for host callback to be performed in a separate
1088 initial thread and contention group, inheriting ICVs from
1089 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
1090 Add device initialization and lookup for target function in splay tree.
1091 (GOMP_target_data): Add device initialization and call gomp_map_vars.
1092 (GOMP_target_end_data): Call gomp_unmap_vars.
1093 (GOMP_target_update): Add device initialization and call gomp_update.
1094 (gomp_load_plugin_for_device, gomp_register_images_for_device)
1095 (gomp_target_init): New static functions.
1097 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
1098 Thomas Schwinge <thomas@codesourcery.com>
1099 Ilya Verbin <ilya.verbin@intel.com>
1100 Andrey Turetskiy <andrey.turetskiy@intel.com>
1102 * config.h.in: Regenerate.
1103 * configure: Regenerate.
1104 * configure.ac: Check for libdl, required for plugin support.
1105 (PLUGIN_SUPPORT): Define if plugins are supported.
1106 (enable_offload_targets): Support Intel MIC targets.
1107 (OFFLOAD_TARGETS): List of target names suitable for offloading.
1109 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1112 * configure: Regenerate.
1114 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1116 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1118 2014-10-06 Marek Polacek <polacek@redhat.com>
1120 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1121 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1122 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1123 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1125 2014-10-06 Marek Polacek <polacek@redhat.com>
1127 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1128 * testsuite/libgomp.c/nqueens-1.c: Likewise.
1129 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1130 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1131 * testsuite/libgomp.c/pr36802-2.c: Likewise.
1132 * testsuite/libgomp.c/pr36802-3.c: Likewise.
1133 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1134 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1135 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1136 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1137 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1138 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1139 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1140 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1141 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1142 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1143 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1144 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1147 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1150 * testsuite/libgomp.c/pr61200.c: New test.
1152 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1155 * testsuite/libgomp.c++/pr63248.C: New test.
1157 2014-08-04 Jakub Jelinek <jakub@redhat.com>
1159 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1160 is not zero, but taskgroup->children is NULL and there are
1161 any task->children, schedule those instead of waiting.
1162 * testsuite/libgomp.c/depend-6.c: New test.
1163 * testsuite/libgomp.c/depend-7.c: New test.
1164 * testsuite/libgomp.c/depend-8.c: New test.
1165 * testsuite/libgomp.c/depend-9.c: New test.
1166 * testsuite/libgomp.c/depend-10.c: New test.
1168 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1170 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1171 (struct gomp_taskwait): New type.
1172 (struct gomp_task): Add taskwait and parent_depends_on, remove
1173 in_taskwait and taskwait_sem fields.
1174 (gomp_finish_task): Don't destroy taskwait_sem.
1175 * task.c (gomp_init_task): Don't init in_taskwait, instead init
1176 taskwait and parent_depends_on.
1177 (GOMP_task): For if (0) tasks with depend clause that depend on
1178 earlier tasks don't defer them, instead call
1179 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1180 Initialize redundant_out field, for redundant out entries just
1181 move them at the end of linked list instead of removing them
1182 completely, and set redundant_out flag instead of redundant.
1183 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1185 (gomp_task_run_post_handle_dependers): If parent is in
1186 gomp_task_maybe_wait_for_dependencies and newly runnable task
1187 is not parent_depends_on, queue it in parent->children linked
1188 list after all runnable tasks with parent_depends_on set.
1189 Adjust for addition of taskwait indirection.
1190 (gomp_task_run_post_remove_parent): If parent is in
1191 gomp_task_maybe_wait_for_dependencies and task to be removed
1192 is parent_depends_on, decrement n_depend and if needed awake
1193 parent. Adjust for addition of taskwait indirection.
1194 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1195 (gomp_task_maybe_wait_for_dependencies): New function.
1196 * testsuite/libgomp.c/depend-5.c: New test.
1198 2014-07-13 Tobias Burnus <burnus@net-b.de>
1200 * testsuite/libgomp.fortran/pr34020.f90: Make compile
1201 with TS 18508/Fortran 2015.
1203 2014-07-06 Marek Polacek <polacek@redhat.com>
1206 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1208 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1210 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1211 matches regex $lang_source_re, add $lang_include_flags to options.
1212 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1213 * testsuite/libgomp.c++/c++.exp: Likewise.
1214 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1215 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1217 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1219 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1221 * testsuite/libgomp.fortran/fortran.exp: Explain
1222 gfortran-dg-runtest usage.
1224 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1226 * testsuite/libgomp.fortran/simd5.f90: New test.
1227 * testsuite/libgomp.fortran/simd6.f90: New test.
1228 * testsuite/libgomp.fortran/simd7.f90: New test.
1230 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1232 * testsuite/libgomp.c/for-2.c: Define SC to static for
1233 #pragma omp for simd testing.
1234 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1235 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1237 * testsuite/libgomp.c/simd-14.c: New test.
1238 * testsuite/libgomp.c/simd-15.c: New test.
1239 * testsuite/libgomp.c/simd-16.c: New test.
1240 * testsuite/libgomp.c/simd-17.c: New test.
1241 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1242 #pragma omp for simd testing.
1243 * testsuite/libgomp.c++/simd10.C: New test.
1244 * testsuite/libgomp.c++/simd11.C: New test.
1245 * testsuite/libgomp.c++/simd12.C: New test.
1246 * testsuite/libgomp.c++/simd13.C: New test.
1248 * testsuite/libgomp.fortran/aligned1.f03: New test.
1249 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1250 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1251 tasks with !$omp parallel !$omp single.
1252 * testsuite/libgomp.fortran/target8.f90: New test.
1253 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1254 not to use trim in the combiner, instead call elemental function.
1255 (fn): New elemental function.
1256 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1258 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1260 * testsuite/libgomp.fortran/udr12.f90: New test.
1261 * testsuite/libgomp.fortran/udr13.f90: New test.
1262 * testsuite/libgomp.fortran/udr14.f90: New test.
1263 * testsuite/libgomp.fortran/udr15.f90: New test.
1265 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1267 * omp_lib.f90.in (openmp_version): Set to 201307.
1268 * omp_lib.h.in (openmp_version): Likewise.
1269 * testsuite/libgomp.c/target-8.c: New test.
1270 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1271 and inbranch clauses.
1272 * testsuite/libgomp.fortran/depend-3.f90: New test.
1273 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1275 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1276 * testsuite/libgomp.fortran/target1.f90: New test.
1277 * testsuite/libgomp.fortran/target2.f90: New test.
1278 * testsuite/libgomp.fortran/target3.f90: New test.
1279 * testsuite/libgomp.fortran/target4.f90: New test.
1280 * testsuite/libgomp.fortran/target5.f90: New test.
1281 * testsuite/libgomp.fortran/target6.f90: New test.
1282 * testsuite/libgomp.fortran/target7.f90: New test.
1284 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1287 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1288 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1289 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1290 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1291 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1292 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1293 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1294 * testsuite/libgomp.fortran/associate1.f90: New test.
1295 * testsuite/libgomp.fortran/associate2.f90: New test.
1296 * testsuite/libgomp.fortran/procptr1.f90: New test.
1298 2014-06-06 Jakub Jelinek <jakub@redhat.com>
1300 * testsuite/libgomp.fortran/simd1.f90: New test.
1301 * testsuite/libgomp.fortran/udr1.f90: New test.
1302 * testsuite/libgomp.fortran/udr2.f90: New test.
1303 * testsuite/libgomp.fortran/udr3.f90: New test.
1304 * testsuite/libgomp.fortran/udr4.f90: New test.
1305 * testsuite/libgomp.fortran/udr5.f90: New test.
1306 * testsuite/libgomp.fortran/udr6.f90: New test.
1307 * testsuite/libgomp.fortran/udr7.f90: New test.
1308 * testsuite/libgomp.fortran/udr8.f90: New test.
1309 * testsuite/libgomp.fortran/udr9.f90: New test.
1310 * testsuite/libgomp.fortran/udr10.f90: New test.
1311 * testsuite/libgomp.fortran/udr11.f90: New test.
1313 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
1315 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1316 vect_simd_clones effective target.
1317 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1319 2014-05-21 Jakub Jelinek <jakub@redhat.com>
1322 * testsuite/libgomp.c++/simd-9.C: New test.
1324 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
1326 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1327 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1328 texts according to their @menu entry positions.
1330 2014-05-11 Jakub Jelinek <jakub@redhat.com>
1332 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1333 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1334 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1335 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1336 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1337 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1338 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1339 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1340 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1341 * testsuite/libgomp.fortran/depend-1.f90: New test.
1342 * testsuite/libgomp.fortran/depend-2.f90: New test.
1343 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1344 * testsuite/libgomp.fortran/simd1.f90: New test.
1345 * testsuite/libgomp.fortran/simd2.f90: New test.
1346 * testsuite/libgomp.fortran/simd3.f90: New test.
1347 * testsuite/libgomp.fortran/simd4.f90: New test.
1348 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1350 2014-05-02 Jakub Jelinek <jakub@redhat.com>
1352 * testsuite/libgomp.c/simd-10.c: New test.
1353 * testsuite/libgomp.c/simd-11.c: New test.
1354 * testsuite/libgomp.c/simd-12.c: New test.
1355 * testsuite/libgomp.c/simd-13.c: New test.
1357 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1359 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1360 atomic type clauses in any order and optional comma in between.
1361 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1362 * testsuite/libgomp.c/atomic-17.c: Likewise.
1364 * testsuite/libgomp.c/simd-7.c: New test.
1365 * testsuite/libgomp.c/simd-8.c: New test.
1366 * testsuite/libgomp.c/simd-9.c: New test.
1367 * testsuite/libgomp.c/loop-16.c: New test.
1369 2014-04-02 Richard Henderson <rth@redhat.com>
1371 * config/linux/futex.h (futex_wait): Get error value from errno.
1372 (futex_wake): Likewise.
1374 2014-03-25 Jakub Jelinek <jakub@redhat.com>
1377 * testsuite/libgomp.c++/udr-11.C: New test.
1378 * testsuite/libgomp.c++/udr-12.C: New test.
1379 * testsuite/libgomp.c++/udr-13.C: New test.
1380 * testsuite/libgomp.c++/udr-14.C: New test.
1381 * testsuite/libgomp.c++/udr-15.C: New test.
1382 * testsuite/libgomp.c++/udr-16.C: New test.
1383 * testsuite/libgomp.c++/udr-17.C: New test.
1384 * testsuite/libgomp.c++/udr-18.C: New test.
1385 * testsuite/libgomp.c++/udr-19.C: New test.
1387 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1389 Update copyright years
1391 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1393 * hashtab.h: Use the standard form for the copyright notice.
1395 2014-01-02 Tobias Burnus <burnus@net-b.de>
1397 * libgomp.texi: Bump @copying's copyright year.
1399 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
1401 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1402 alloca () with __builtin_alloca ().
1403 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1404 * testsuite/libgomp.c/lock-3.c: Likewise.
1405 * testsuite/libgomp.c/pr48591.c: Likewise.
1407 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1410 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1413 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1416 * testsuite/libgomp.c/pr58756.c: New test.
1418 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1421 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1424 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1426 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1428 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1429 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1430 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1431 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1434 * libgomp_g.h: Include <stddef.h> for size_t.
1436 * libgomp.spec.in: Update comment about libgomp's dependencies.
1437 * configure.ac: Likewise.
1438 * configure: Regenerate.
1440 2013-10-16 Tobias Burnus <burnus@net-b.de>
1442 * libgomp.texi: (Runtime Library Routines): Update references for
1443 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1444 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1445 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1446 (Environment Variables): Update references for OpenMP 4.0. Add
1447 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1448 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1451 2013-10-14 Jakub Jelinek <jakub@redhat.com>
1453 * env.c (parse_bind_var): Initialize value to avoid
1454 (false positive) warning.
1456 2013-10-12 Jakub Jelinek <jakub@redhat.com>
1459 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1461 (gomp_init_num_threads): Move i variable declaration into
1462 #ifdef CPU_ALLOC_SIZE block.
1463 * config/linux/affinity.c (gomp_affinity_init_level): Test
1464 gomp_places_list_len == 0 rather than gomp_places_list == 0
1465 when checking for topology reading error.
1466 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1467 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1468 gomp_places_list, only parse env var and always return false.
1469 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1470 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1471 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1472 and either of these variables were parsed correctly into a places
1475 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1476 Jakub Jelinek <jakub@redhat.com>
1478 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1479 of 5 loopfn matches.
1480 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1481 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1482 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1483 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1484 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1485 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1486 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1487 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1489 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1491 * Makefile.am (omp_lib.mod): Streamline rule.
1492 * Makefile.in: Regenerate.
1494 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1497 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1498 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1499 * testsuite/libgomp.fortran/lib2.f: Likewise.
1500 * testsuite/libgomp.fortran/lib3.f: Likewise.
1502 * configure.ac: Typo fix.
1503 * configure: Regenerate.
1505 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1506 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1508 * omp.h.in: Don't touch the user's namespace.
1510 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1511 Tobias Burnus <burnus@net-b.de>
1512 Richard Henderson <rth@redhat.com>
1514 * target.c: New file.
1515 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1516 * Makefile.in: Regenerated.
1517 * libgomp_g.h (GOMP_task): Add depend argument.
1518 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1519 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1520 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1521 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1522 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1523 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1524 GOMP_taskgroup_start, GOMP_taskgroup_end,
1525 GOMP_parallel_sections): New prototypes.
1526 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1527 (omp_is_initial_device_): New function.
1528 (ULP, STR1, STR2, ialias_redirect): Removed.
1529 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1530 omp_set_default_device_8_, omp_get_default_device_,
1531 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1533 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1534 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1535 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1537 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1538 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1539 omp_set_default_device, omp_set_default_device_,
1540 omp_set_default_device_8_, omp_get_default_device,
1541 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1542 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1543 omp_get_team_num_): Export @@OMP_4.0.
1544 * team.c (struct gomp_thread_start_data): Add place field.
1545 (gomp_thread_start): Clear thr->thread_pool and
1546 thr->task before returning. Use gomp_team_barrier_wait_final
1547 instead of gomp_team_barrier_wait. Initialize thr->place.
1548 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1549 team_cancelled and task_queued_count fields.
1550 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1551 before calling pthread_exit.
1552 (gomp_free_thread): No longer static. Use
1553 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1554 (gomp_team_start): Add flags argument. Set
1555 thr->thread_pool->threads_busy to nthreads immediately after creating
1556 new pool. Use gomp_managed_threads_lock instead of
1557 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1558 (gomp_team_end): Use gomp_managed_threads_lock instead of
1559 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1560 of gomp_team_barrier_wait. If team->team_cancelled, call
1561 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1562 rather than thr->ts.work_share.
1563 (initialize_team): Don't call gomp_sem_init here.
1564 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1566 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1567 * env.c (gomp_global_icv): Add default_device_var, target_data and
1568 bind_var initializers.
1569 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1570 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1571 gomp_places_list_len): New variables.
1572 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1573 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1575 (gomp_cancel_var): New global variable.
1576 (parse_int): New function.
1577 (handle_omp_display_env): New function.
1578 (initialize_env): Use it. Initialize default_device_var.
1579 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1580 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1581 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1582 been successfully parsed (and call gomp_init_affinity in that case).
1583 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1584 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1585 omp_get_team_num, omp_is_initial_device): New functions.
1586 * libgomp.h: Include stdlib.h.
1587 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1589 (struct target_mem_desc): Forward declare.
1590 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1591 and thread_limit_var fields.
1592 (gomp_get_num_devices): New prototype.
1593 (gomp_cancel_var): New extern decl.
1594 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1595 team_cancelled and task_queued_count fields. Add comments about
1596 task_{,queued_,running_}count.
1597 (gomp_cancel_kind): New enum.
1598 (gomp_work_share_end_cancel): New prototype.
1599 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1600 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1602 (struct gomp_taskgroup): New type.
1603 (struct gomp_task_depend_entry,
1604 struct gomp_dependers_vec): New types.
1605 (gomp_finish_task): Free depend_hash if non-NULL.
1606 (struct gomp_team_state): Add place_partition_off
1607 and place_partition_len fields.
1608 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1609 gomp_places_list_len): New extern decls.
1610 (struct gomp_thread): Add place field.
1611 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1612 (gomp_init_thread_affinity): Add place argument.
1613 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1614 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1615 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1616 gomp_affinity_init_level, gomp_affinity_print_place): New
1618 (gomp_team_start): Add flags argument.
1619 (gomp_thread_limit_var, gomp_remaining_threads_count,
1620 gomp_remaining_threads_lock): Remove.
1621 (gomp_managed_threads_lock): New variable.
1622 (struct gomp_thread_pool): Add threads_busy field.
1623 (gomp_free_thread): New prototype.
1624 * task.c: Include hashtab.h.
1625 (hash_entry_type): New typedef.
1626 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1627 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1628 copy_ctors_done and taskgroup fields.
1629 (GOMP_task): Add depend argument, handle depend clauses. If
1630 gomp_team_barrier_cancelled or if it's taskgroup has been
1631 cancelled, don't queue or start new tasks. Set copy_ctors_done
1632 field if needed. Initialize taskgroup field. If copy_ctors_done
1633 and already cancelled, don't discard the task. If taskgroup is
1634 non-NULL, enqueue the task into taskgroup queue. Increment
1635 num_children field in taskgroup. Increment task_queued_count.
1636 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1637 gomp_task_run_post_remove_taskgroup): New inline functions.
1638 (gomp_task_run_post_handle_depend_hash,
1639 gomp_task_run_post_handle_dependers,
1640 gomp_task_run_post_handle_depend): New functions.
1641 (GOMP_taskwait): Use them. If more than one new tasks
1642 have been queued, wake other threads if needed.
1643 (gomp_barrier_handle_tasks): Likewise. If
1644 gomp_team_barrier_cancelled, don't start any new tasks, just free
1646 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1648 (omp_proc_bind_kind, omp_proc_bind_false,
1649 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1650 omp_proc_bind_spread): New params.
1651 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1652 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1653 omp_get_team_num, omp_is_initial_device): New interfaces.
1654 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1655 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1656 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1657 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1658 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1659 useless use omp_lib_kinds.
1660 * omp.h.in (omp_proc_bind_t): New typedef.
1661 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1662 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1663 omp_get_team_num, omp_is_initial_device): New prototypes.
1664 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1665 through to gomp_team_start.
1666 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1667 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1668 Adjust gomp_parallel_loop_start callers.
1669 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1670 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1671 GOMP_loop_end_cancel): New functions.
1672 (GOMP_parallel_end): Add ialias_redirect.
1673 * hashtab.h: New file.
1674 * libgomp.texi (Environment Variables): Minor cleanup,
1675 update section refs to OpenMP 4.0rc2.
1676 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1677 environment variables.
1678 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1679 team->work_shares_to_free to thr->ts.work_share before calling
1681 (gomp_work_share_end_cancel): New function.
1682 * config/linux/proc.c: Include errno.h.
1683 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1684 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1685 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1686 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1687 gomp_cpuset_size is sizeof (cpu_set_t).
1688 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1689 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1690 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1691 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1692 contain any logical CPUs.
1693 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1694 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1695 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1696 pthread_getaffinity_np. Check gomp_places_list instead of
1697 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1698 * config/linux/bar.c (gomp_barrier_wait_end,
1699 gomp_barrier_wait_last): Use BAR_* defines.
1700 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1701 from state where needed. Set work_share_cancelled to 0 on last
1703 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1704 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1706 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1707 Add cpusetsize argument.
1708 (gomp_cpuset_size, gomp_cpusetp): Declare.
1709 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1710 (affinity_counter): Remove.
1711 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1712 if CPU_ALLOC_SIZE isn't defined.
1713 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1714 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1715 bind current thread to the first place.
1716 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1717 pthread_setaffinity_np to gomp_places_list[place].
1718 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1719 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1720 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1721 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1722 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1723 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1724 (gomp_barrier_t): Add awaited_final field.
1725 (gomp_barrier_init): Initialize awaited_final field.
1726 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1727 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1729 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1731 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1732 gomp_team_barrier_cancelled): New inline functions.
1733 (gomp_barrier_last_thread,
1734 gomp_team_barrier_set_task_pending,
1735 gomp_team_barrier_clear_task_pending,
1736 gomp_team_barrier_set_waiting_for_tasks,
1737 gomp_team_barrier_waiting_for_tasks,
1738 gomp_team_barrier_done): Use BAR_* defines.
1739 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1740 (gomp_barrier_wait_end): Use BAR_* defines.
1741 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1742 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1744 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1745 gomp_team_barrier_cancel): New functions.
1746 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1748 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1749 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1750 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1751 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1752 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1753 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1754 (gomp_barrier_t): Add cancellable field.
1755 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1756 gomp_team_barrier_cancel): New prototypes.
1757 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1758 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1759 gomp_team_barrier_cancelled): New inline functions.
1760 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1761 gomp_team_barrier_set_task_pending,
1762 gomp_team_barrier_clear_task_pending,
1763 gomp_team_barrier_set_waiting_for_tasks,
1764 gomp_team_barrier_waiting_for_tasks,
1765 gomp_team_barrier_done): Use BAR_* defines.
1766 * barrier.c (GOMP_barrier_cancel): New function.
1767 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1768 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1769 omp_proc_bind_spread): New params.
1770 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1771 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1772 omp_get_team_num, omp_is_initial_device): New externals.
1773 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1775 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1776 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1777 infinity. If not nested, just return minimum of max_num_threads
1778 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1779 to the returned value. Otherwise, don't update atomically
1780 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1781 (GOMP_parallel_end): Adjust for thread_limit now being in
1782 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1783 infinity. Adjust threads_busy in the pool rather than
1784 gomp_remaining_threads_count. Remember team->nthreads and call
1785 gomp_team_end before adjusting threads_busy, if not nested
1786 afterwards, just set it to 1 non-atomically. Add ialias.
1787 (GOMP_parallel_start): Adjust gomp_team_start caller.
1788 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1789 * testsuite/libgomp.c/affinity-1.c: New test.
1790 * testsuite/libgomp.c/atomic-15.c: New test.
1791 * testsuite/libgomp.c/atomic-16.c: New test.
1792 * testsuite/libgomp.c/atomic-17.c: New test.
1793 * testsuite/libgomp.c/cancel-for-1.c: New test.
1794 * testsuite/libgomp.c/cancel-for-2.c: New test.
1795 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1796 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1797 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1798 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1799 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1800 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1801 * testsuite/libgomp.c/depend-1.c: New test.
1802 * testsuite/libgomp.c/depend-2.c: New test.
1803 * testsuite/libgomp.c/depend-3.c: New test.
1804 * testsuite/libgomp.c/depend-4.c: New test.
1805 * testsuite/libgomp.c/for-1.c: New test.
1806 * testsuite/libgomp.c/for-1.h: New file.
1807 * testsuite/libgomp.c/for-2.c: New test.
1808 * testsuite/libgomp.c/for-2.h: New file.
1809 * testsuite/libgomp.c/for-3.c: New test.
1810 * testsuite/libgomp.c/pr58392.c: New test.
1811 * testsuite/libgomp.c/simd-1.c: New test.
1812 * testsuite/libgomp.c/simd-2.c: New test.
1813 * testsuite/libgomp.c/simd-3.c: New test.
1814 * testsuite/libgomp.c/simd-4.c: New test.
1815 * testsuite/libgomp.c/simd-5.c: New test.
1816 * testsuite/libgomp.c/simd-6.c: New test.
1817 * testsuite/libgomp.c/target-1.c: New test.
1818 * testsuite/libgomp.c/target-2.c: New test.
1819 * testsuite/libgomp.c/target-3.c: New test.
1820 * testsuite/libgomp.c/target-4.c: New test.
1821 * testsuite/libgomp.c/target-5.c: New test.
1822 * testsuite/libgomp.c/target-6.c: New test.
1823 * testsuite/libgomp.c/target-7.c: New test.
1824 * testsuite/libgomp.c/taskgroup-1.c: New test.
1825 * testsuite/libgomp.c/thread-limit-1.c: New test.
1826 * testsuite/libgomp.c/thread-limit-2.c: New test.
1827 * testsuite/libgomp.c/thread-limit-3.c: New test.
1828 * testsuite/libgomp.c/udr-1.c: New test.
1829 * testsuite/libgomp.c/udr-2.c: New test.
1830 * testsuite/libgomp.c/udr-3.c: New test.
1831 * testsuite/libgomp.c++/affinity-1.C: New test.
1832 * testsuite/libgomp.c++/atomic-10.C: New test.
1833 * testsuite/libgomp.c++/atomic-11.C: New test.
1834 * testsuite/libgomp.c++/atomic-12.C: New test.
1835 * testsuite/libgomp.c++/atomic-13.C: New test.
1836 * testsuite/libgomp.c++/atomic-14.C: New test.
1837 * testsuite/libgomp.c++/atomic-15.C: New test.
1838 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1839 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1840 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1841 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1842 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1843 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1844 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1845 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1846 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1847 * testsuite/libgomp.c++/cancel-test.h: New file.
1848 * testsuite/libgomp.c++/for-9.C: New test.
1849 * testsuite/libgomp.c++/for-10.C: New test.
1850 * testsuite/libgomp.c++/for-11.C: New test.
1851 * testsuite/libgomp.c++/simd-1.C: New test.
1852 * testsuite/libgomp.c++/simd-2.C: New test.
1853 * testsuite/libgomp.c++/simd-3.C: New test.
1854 * testsuite/libgomp.c++/simd-4.C: New test.
1855 * testsuite/libgomp.c++/simd-5.C: New test.
1856 * testsuite/libgomp.c++/simd-6.C: New test.
1857 * testsuite/libgomp.c++/simd-7.C: New test.
1858 * testsuite/libgomp.c++/simd-8.C: New test.
1859 * testsuite/libgomp.c++/target-1.C: New test.
1860 * testsuite/libgomp.c++/target-2.C: New test.
1861 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1862 * testsuite/libgomp.c++/target-3.C: New test.
1863 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1864 * testsuite/libgomp.c++/udr-1.C: New test.
1865 * testsuite/libgomp.c++/udr-2.C: New test.
1866 * testsuite/libgomp.c++/udr-3.C: New test.
1867 * testsuite/libgomp.c++/udr-4.C: New test.
1868 * testsuite/libgomp.c++/udr-5.C: New test.
1869 * testsuite/libgomp.c++/udr-6.C: New test.
1870 * testsuite/libgomp.c++/udr-7.C: New test.
1871 * testsuite/libgomp.c++/udr-8.C: New test.
1872 * testsuite/libgomp.c++/udr-9.C: New test.
1874 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1877 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1880 2013-09-20 Alan Modra <amodra@gmail.com>
1882 * configure: Regenerate.
1884 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1886 * testsuite/libgomp.c/sections-2.c: New test.
1888 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1890 * testsuite/libgomp.fortran/strassen.f90:
1891 Add dg-skip-if aarch64_tiny.
1893 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1894 Cesar Philippidis <cesar@codesourcery.com>
1896 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1897 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1898 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1899 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1900 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1901 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1902 Use dg-runtest rather than gfortran-dg-runtest.
1904 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1906 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1907 Linux-based x86 systems to cover all GNU systems.
1908 * testsuite/libgomp.c/lock-3.c: Likewise.
1909 * testsuite/libgomp.c/pr48591.c: Likewise.
1911 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1913 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1914 GNU/Hurd, as done for Linux-based systems.
1916 * config/posix/ptrlock.h: Fix comment.
1918 2013-05-27 Tobias Burnus <burnus@net-b.de>
1921 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1922 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1923 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1924 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1925 omp_destroy_nest_lock): Correct arguments to match the one in
1927 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1928 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1929 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1930 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1932 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1934 * testsuite/libgomp.c/loop-13.c: New test.
1935 * testsuite/libgomp.c/loop-14.c: New test.
1936 * testsuite/libgomp.c/loop-15.c: New test.
1937 * testsuite/libgomp.c++/loop-13.C: New test.
1938 * testsuite/libgomp.c++/loop-14.C: New test.
1939 * testsuite/libgomp.c++/loop-15.C: New test.
1941 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1944 * testsuite/libgomp.c++/pr56217.C: New test.
1946 2013-02-01 Alan Modra <amodra@gmail.com>
1948 * task.c (GOMP_task, GOMP_taskwait): Comment.
1950 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1951 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1954 * config/linux/wait.h (do_spin): Use atomic load for addr.
1955 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1956 for intptr and ptrlock.
1957 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1960 2013-01-22 Alan Modra <amodra@gmail.com>
1964 * task.c (GOMP_task): Revert 2011-12-09 change.
1965 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1966 barrier to read task->children..
1967 (gomp_barrier_handle_tasks): ..and matching atomic store with
1968 release barrier here when setting parent->children to NULL.
1970 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1971 Tobias Burnus <burnus@net-b.de>
1974 * testsuite/libgomp.fortran/fortran.exp: Use
1975 -fintrinsic-modules-path= instead of
1976 -fintrinsic-modules-path.
1978 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1980 Update copyright years.
1982 2012-12-19 Tobias Burnus <burnus@net-b.de>
1984 * testsuite/libgomp.fortran/fortran.exp: Set
1985 -fintrinsic-modules-path.
1987 2012-12-19 Tobias Burnus <burnus@net-b.de>
1989 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1990 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1992 2012-11-21 Jakub Jelinek <jakub@redhat.com>
1995 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1996 if pool had any threads_used.
1998 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
2000 * testsuite/libgomp.c++/pr24455.C: Use
2001 -Wl,-undefined,dynamic_lookup on darwin.
2003 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
2005 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
2007 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
2009 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
2011 2012-10-23 Ian Bolton <ian.bolton@arm.com>
2012 Jim MacArthur <jim.macarthur@arm.com>
2013 Marcus Shawcroft <marcus.shawcroft@arm.com>
2014 Nigel Stephens <nigel.stephens@arm.com>
2015 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2016 Richard Earnshaw <rearnsha@arm.com>
2017 Sofiane Naci <sofiane.naci@arm.com>
2018 Stephen Thomas <stephen.thomas@arm.com>
2019 Tejas Belagod <tejas.belagod@arm.com>
2020 Yufeng Zhang <yufeng.zhang@arm.com>
2022 * configure.tgt: Add AArch64.
2024 2012-10-04 Jason Merrill <jason@redhat.com>
2026 * testsuite/libgomp.c++/tls-init1.C: New.
2028 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
2030 * configure: Regenerated.
2032 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
2034 * config/linux/mips/futex.h (sys_futex0): Change to static
2035 function with noinline, nomips16 attributes under MIPS16. Adjust
2036 asm statement to place 'li v0,SYS_futex' immediately before
2039 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
2041 * libgomp.texi (Library Index): Renamed from "Index" to prevent
2042 conflict with index.html on case-insensitive file systems.
2044 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2046 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
2047 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
2049 2012-07-02 Richard Guenther <rguenther@suse.de>
2050 Michael Matz <matz@suse.de>
2051 Tobias Grosser <tobias@grosser.es>
2052 Sebastian Pop <sebpop@gmail.com>
2054 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2055 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2056 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2057 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2059 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2061 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
2063 2012-06-22 Richard Guenther <rguenther@suse.de>
2065 Merge from graphite branch
2066 2012-01-13 Tobias Grosser <tobias@grosser.es>
2068 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2069 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2071 2012-06-07 Jakub Jelinek <jakub@redhat.com>
2074 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
2075 use GOMP_barrier () call instead.
2076 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2077 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2078 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
2079 call GOMP_barrier instead.
2080 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2082 2012-06-06 Jakub Jelinek <jakub@redhat.com>
2085 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
2086 argument to memset call.
2088 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2090 * configure: Regenerated.
2092 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2094 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
2096 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2099 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2101 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2104 * testsuite/libgomp.c/pr52547.c: New test.
2106 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2108 * testsuite/lib/libgomp.exp: load fortran-modules.exp
2110 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2112 * configure.tgt (mips-sgi-irix6*): Remove.
2114 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2116 * configure.tgt (alpha*-dec-osf*): Remove.
2118 * config/osf/sem.h: Remove.
2119 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2121 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
2123 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2125 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2128 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2129 Remove ENABLE_SYMVERS_SOL2.
2130 * configure: Regenerate.
2131 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2132 (PREPROCESS): New variable.
2133 (libgomp.ver): New target.
2134 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2135 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2136 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2138 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2139 * Makefile.in: Regenerate.
2141 2012-02-14 Walter Lee <walt@tilera.com>
2143 * configure.tgt: Handle tilegx and tilepro.
2144 * config/linux/tile/futex.h: New file.
2146 2012-02-08 Richard Guenther <rguenther@suse.de>
2148 PR tree-optimization/46886
2149 * testsuite/libgomp.c/pr46886.c: New testcase.
2151 2012-01-25 Matthias Klose <doko@ubuntu.com>
2153 * config/linux/arm: Remove empty directory.
2154 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2156 2011-12-09 Alan Modra <amodra@gmail.com>
2159 * task.c (GOMP_taskwait): Don't access task->children outside of
2160 task_lock mutex region.
2161 (GOMP_task): Likewise.
2163 2011-12-06 Jakub Jelinek <jakub@redhat.com>
2166 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2168 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2169 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2170 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2171 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2172 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2174 2011-12-02 Alan Modra <amodra@gmail.com>
2176 * config/linux/affinity.c: Use atomic rather than sync builtin.
2177 * config/linux/lock.c: Likewise.
2178 * config/linux/ptrlock.h: Likewise.
2179 * config/linux/ptrlock.c: Likewise.
2180 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2181 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2182 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2183 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2184 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2185 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2186 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2187 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2188 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2189 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2191 2011-11-30 Alan Modra <amodra@gmail.com>
2194 * config/linux/bar.h: Use atomic rather than sync builtins.
2195 * config/linux/bar.c: Likewise. Add missing acquire
2196 synchronisation on generation field.
2197 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2200 2011-11-30 Alan Modra <amodra@gmail.com>
2202 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2203 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2204 * config/linux/mutex.h: Use atomic rather than sync builtins.
2205 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2206 * config/linux/omp-lock.h: Comment fix.
2207 * config/linux/arm/mutex.h: Delete.
2208 * config/linux/powerpc/mutex.h: Delete.
2209 * config/linux/ia64/mutex.h: Delete.
2210 * config/linux/mips/mutex.h: Delete.
2212 2011-11-30 Alan Modra <amodra@gmail.com>
2215 * config/linux/sem.h: Rewrite.
2216 * config/linux/sem.c: Rewrite.
2218 2011-11-28 Richard Henderson <rth@redhat.com>
2220 * libgomp.h (enum memmodel): New.
2222 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2224 * configure: Regenerate.
2226 2011-10-10 Matthias Klose <doko@ubuntu.com>
2228 * config/posix95: Remove empty directory.
2230 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2232 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2234 2011-08-19 Jakub Jelinek <jakub@redhat.com>
2237 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2238 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2240 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2242 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2244 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2247 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2249 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
2251 * config/linux/proc.h: New.
2252 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2253 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2254 (gomp_init_num_threads): Update call to cpuset_popcount.
2255 (get_num_procs): Ditto.
2256 * config/linux/affinity.c (gomp_init_affinity): Call
2257 gomp_cpuset_popcount.
2259 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2263 * omp.h.in (omp_in_final): New prototype.
2264 * omp_lib.f90.in (omp_in_final): New interface.
2265 (omp_integer_kind, omp_logical_kind): Remove
2266 and replace all its uses in the module with 4.
2267 (openmp_version): Change to 201107.
2268 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2269 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2270 kind for the parameters.
2271 (omp_in_final): New external.
2272 (openmp_version): Change to 201107.
2273 * task.c (omp_in_final): New function.
2274 (gomp_init_task): Initialize final_task.
2275 (GOMP_task): Remove unused attribute from flags. Handle final
2277 (GOMP_taskyield): New function.
2278 (omp_in_final): Return true if if (false) or final (true) task
2279 or descendant of final (true).
2280 * fortran.c (omp_in_final_): New function.
2281 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2282 (GOMP_3.0): Export GOMP_taskyield.
2283 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2285 (parse_unsigned_long_list): New function.
2286 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2287 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2288 even if parse_affinity returned false.
2289 * config/linux/affinity.c (gomp_init_affinity): Handle
2290 gomp_cpu_affinity_len == 0.
2291 * libgomp_g.h (GOMP_taskyield): New prototype.
2292 * libgomp.h (struct gomp_task): Add final_task field.
2293 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2294 * team.c (gomp_team_start): Override new task's nthreads_var icv
2295 if list form OMP_NUM_THREADS has been used and it has value for
2296 the new nesting level.
2298 * testsuite/libgomp.c/atomic-11.c: New test.
2299 * testsuite/libgomp.c/atomic-12.c: New test.
2300 * testsuite/libgomp.c/atomic-13.c: New test.
2301 * testsuite/libgomp.c/atomic-14.c: New test.
2302 * testsuite/libgomp.c/reduction-6.c: New test.
2303 * testsuite/libgomp.c/task-5.c: New test.
2304 * testsuite/libgomp.c++/atomic-2.C: New test.
2305 * testsuite/libgomp.c++/atomic-3.C: New test.
2306 * testsuite/libgomp.c++/atomic-4.C: New test.
2307 * testsuite/libgomp.c++/atomic-5.C: New test.
2308 * testsuite/libgomp.c++/atomic-6.C: New test.
2309 * testsuite/libgomp.c++/atomic-7.C: New test.
2310 * testsuite/libgomp.c++/atomic-8.C: New test.
2311 * testsuite/libgomp.c++/atomic-9.C: New test.
2312 * testsuite/libgomp.c++/task-8.C: New test.
2313 * testsuite/libgomp.c++/reduction-4.C: New test.
2314 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2315 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2316 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2317 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2318 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2319 * testsuite/libgomp.fortran/pointer1.f90: New test.
2320 * testsuite/libgomp.fortran/pointer2.f90: New test.
2321 * testsuite/libgomp.fortran/task4.f90: New test.
2323 2011-08-02 Tobias Burnus <burnus@net-b.de>
2325 * libgomp.texi: Update OpenMP spec references to 3.1.
2326 (omp_in_final,OMP_PROC_BIND): New sections.
2327 (OMP_NUM_THREADS): Document that the value can be now a list.
2328 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2330 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2332 * config/linux/x86/futex.h: Check __x86_64__ instead of
2335 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2339 * testsuite/libgomp.c/pr49897-1.c: New test.
2340 * testsuite/libgomp.c/pr49897-2.c: New test.
2341 * testsuite/libgomp.c/pr49898-1.c: New test.
2342 * testsuite/libgomp.c/pr49898-2.c: New test.
2344 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2346 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2347 for ia32 instead of ilp32.
2349 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2350 * testsuite/libgomp.c/atomic-6.c: Likewise.
2352 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2354 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2355 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2357 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2360 * config/osf/sem.h: New file.
2361 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2363 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2366 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2369 2011-07-15 Jakub Jelinek <jakub@redhat.com>
2371 * config/linux/wait.h (do_spin): New inline, largely copied
2372 from do_wait, just don't do futex_wait here, instead return true if
2374 (do_wait): Implement using do_spin.
2375 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2377 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2378 __sync_bool_compare_and_swap, pass the oldval to
2379 gomp_mutex_lock_slow.
2380 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2381 If all mutex contenders are just spinning and not sleeping, don't
2382 change state to 2 unnecessarily. Optimize the loop when state has
2383 already become 2 to use just one atomic operation per loop instead
2385 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2387 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2388 __sync_bool_compare_and_swap, pass the oldval to
2389 gomp_mutex_lock_slow.
2391 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2394 * iter.c (gomp_iter_static_next): For chunk size 0
2395 only use n ceil/ nthreads size for the first
2396 n % nthreads threads in the team instead of
2397 all threads except for the last few ones which
2398 get less work or none at all.
2399 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2400 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2401 chunk argument, set run_sched_modifier to 0 for static
2402 resp. 1 for other kinds. If chunk argument is 0
2403 and not static, set value to 1.
2405 2011-05-19 Jakub Jelinek <jakub@redhat.com>
2408 * testsuite/libgomp.c++/pr49043.C: New test.
2411 * testsuite/libgomp.c++/pr48869.C: New test.
2413 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2416 * fortran.c: Include limits.h.
2418 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2420 (omp_set_num_threads_8_, omp_set_schedule_8_,
2421 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2422 omp_get_team_size_8_): Use TO_INT macro.
2423 * testsuite/libgomp.fortran/pr48894.f90: New test.
2425 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2428 * testsuite/libgomp.c/pr48591.c: New test.
2430 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2433 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2434 * configure: Regenerate.
2436 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2439 * testsuite/libgomp.fortran/task3.f90: New test.
2441 2011-02-24 Tobias Burnus <burnus@net-b.de>
2443 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2445 2011-02-23 Jakub Jelinek <jakub@redhat.com>
2448 * libgomp.texi (omp_get_wtime): Don't say time in the past
2451 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2454 * testsuite/libgomp.fortran/fortran.exp: Check for both
2455 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2456 but $blddir != "", still append ${blddir}/${lang_library_path}
2459 2011-02-16 Tobias Burnus <burnus@net-b.de>
2462 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2463 of libquadmath.a before adding its libpath to ldflags.
2465 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2468 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2469 to FUTEX_WAIT futex syscall.
2470 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2472 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2474 * configure: Regenerate.
2476 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2479 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2481 2011-01-16 Gerald Pfeifer
2483 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2485 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2488 * libgomp.fortran/allocatable6.f90: New test.
2490 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2492 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2493 * configure: Regenerate.
2495 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2499 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2500 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2501 * aclocal.m4: Regenerate.
2502 * configure: Regenerate.
2503 * Makefile.in: Regenerate.
2504 * testsuite/Makefile.in: Regenerate.
2506 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2509 * libgomp.fortran/pr46753.f90: New test.
2512 * env.c (initialize_env): Default to spin count 300000
2513 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2517 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2518 at the end if sync builtins aren't supported.
2520 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2522 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2524 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2526 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2528 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2530 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2532 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2533 Tobias Burnus <burnus@net-b.de>
2537 * configure: Regenerate.
2539 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2541 * config/linux/futex.h: New.
2542 * config/linux/arm/mutex.h: New.
2543 * configure.tgt (arm*-*-linux*): Add config path.
2545 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2547 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2549 2010-09-23 Tobias Burnus <burnus@net-b.de>
2551 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2552 Change Fortran datatype to LOGICAL.
2553 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2554 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2556 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2558 * configure: Regenerate.
2560 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2562 * libgomp.texi: Add function keyword to a couple of Fortran
2563 interfaces, use integer instead of int for Fortran.
2565 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2567 * libgomp.texi: Fix spelling and pasto problems throughout.
2568 Adjust prototypes to match code.
2570 2010-07-24 Tobias Burnus <burnus@net-b.de>
2572 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2573 silence -fwhole-file warning.
2575 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2577 * configure.tgt (*-*-solaris2.[56]*): Removed.
2579 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2581 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2582 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2583 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2584 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2585 targetting solaris2*.
2586 * configure: Regenerate.
2587 * config.h.in: Regenerate.
2589 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2590 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2591 Add libgomp_version_dep.
2592 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2594 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2595 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2596 * Makefile.in: Regenerate.
2598 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2599 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2600 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2601 to common block, protected by
2602 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2604 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2606 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2608 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2611 * configure: Regenerate.
2613 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2616 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2617 * configure: Regenerate.
2618 * Makefile.in: Regenerate.
2619 * testsuite/Makefile.in: Regenerate.
2621 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2624 * testsuite/libgomp.c/pr43893.c: New test.
2625 * testsuite/libgomp.c++/pr43893.C: New test.
2627 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2630 * testsuite/libgomp.fortran/vla8.f90: New test.
2632 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2635 * config/linux/affinity.c (gomp_init_affinity): Decrease
2636 gomp_available_cpus if affinity mask confines the process to fewer
2638 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2639 non-NULL, just return gomp_available_cpus.
2642 * sections.c (gomp_sections_init): Initialize ws->mode.
2644 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2646 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2647 not unused bar variable.
2648 * configure: Regenerate.
2650 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2652 * Makefile.in: Regenerate.
2653 * aclocal.m4: Regenerate.
2654 * testsuite/Makefile.in: Regenerate.
2656 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2659 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2660 (initialize_env): Adjust callers.
2661 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2662 when the argument is 0.
2664 * testsuite/libgomp.c/pr42942.c: New test.
2666 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2670 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2671 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2673 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2675 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2676 * testsuite/libgomp.c++/task-6.C: Likewise.
2678 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2680 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2682 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2684 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2685 * configure: Regenerate.
2687 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2690 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2692 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2694 * configure.ac: Test for executability of GFORTRAN.
2695 * configure: Regenerate.
2697 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2699 * configure: Regenerate.
2701 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2704 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2706 2010-01-03 Richard Guenther <rguenther@suse.de>
2708 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2710 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2712 * testsuite/libgomp.graphite/pr4118.c: New.
2714 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2716 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2717 for darwin, protect the test with require-effective-target tls_runtime.
2718 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2720 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2723 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2724 link spec %s substitutions for static libraries.
2726 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2729 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2731 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2733 * Makefile.in: Regenerate.
2734 * configure: Regenerate.
2735 * testsuite/Makefile.in: Regenerate.
2737 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2739 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2740 settings for LC_ALL and LANG.
2742 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2745 * testsuite/libgomp.fortran/pr42162.f90: New test.
2747 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2750 * testsuite/libgomp.c/pr42029.c: New test.
2752 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2754 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2755 *s. Accept ld version without text in ()s.
2756 * configure: Regenerated.
2758 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2760 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2762 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2765 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2766 or a hyphen (happens with fortran language disabled).
2767 * configure: Regenerate.
2769 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2771 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2772 use sed script portable to Solaris /bin/sed for extracting ld
2774 * configure: Regenerate.
2776 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2778 * testsuite/libgomp.graphite/bounds.c: New test.
2780 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2782 * Makefile.am (libgomp_la_LINK): New.
2783 * Makefile.in: Regenerate.
2785 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2787 * configure.ac (AC_PREREQ): Bump to 2.64.
2789 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2791 * Makefile.am (install-html, install-pdf): Remove.
2792 * Makefile.in: Regenerate.
2794 * Makefile.in: Regenerate.
2795 * aclocal.m4: Regenerate.
2796 * config.h.in: Regenerate.
2797 * configure: Regenerate.
2798 * testsuite/Makefile.in: Regenerate.
2800 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2802 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2803 * Makefile.in: Regenerate.
2805 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2807 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2808 * Makefile.in: Regenerate.
2810 2009-08-19 Tobias Burnus <burnus@net-b.de>
2813 omp_lib.h.in: Fix -std=f95 errors.
2816 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2818 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2819 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2820 * testsuite/libgomp.graphite/graphite.exp: New.
2822 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2824 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2827 2009-08-04 David Daney <ddaney@caviumnetworks.com>
2829 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2830 needed memory barrier semantics.
2831 * config/linux/mips/mutex.h: New file.
2833 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2835 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2837 2009-07-16 Joseph Myers <joseph@codesourcery.com>
2839 * configure: Regenerate.
2841 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2846 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2847 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2848 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2850 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2852 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2853 options when choosing a multilib.
2855 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2857 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2858 ld_library_path. Use add_path. Add just find_libgcc_s to
2859 ld_library_path, not every libgcc multilib directory.
2860 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2861 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2862 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2864 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2866 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2868 * Makefile.am (LTLDFLAGS): Define.
2870 * Makefile.in: Regenerate.
2872 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2875 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2876 libgfortranbegin, check existence of libgfortran.a instead of
2879 2009-05-20 Jakub Jelinek <jakub@redhat.com>
2882 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2883 (gomp_free_pool_helper): Likewise.
2885 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2886 Jakub Jelinek <jakub@redhat.com>
2889 * testsuite/libgomp.fortran/workshare2.f90: New test.
2891 2009-04-09 Nick Clifton <nickc@redhat.com>
2893 * iter.c: Change copyright header to refer to version 3 of the
2894 GNU General Public License with version 3.1 of the GCC Runtime
2895 Library Exception and to point readers at the COPYING3 and
2896 COPYING3.RUNTIME files and the FSF's license web page.
2897 * alloc.c: Likewise.
2898 * barrier.c: Likewise.
2899 * config/bsd/proc.c: Likewise.
2900 * config/linux/affinity.c: Likewise.
2901 * config/linux/alpha/futex.h: Likewise.
2902 * config/linux/bar.c: Likewise.
2903 * config/linux/bar.h: Likewise.
2904 * config/linux/ia64/futex.h: Likewise.
2905 * config/linux/ia64/mutex.h: Likewise.
2906 * config/linux/lock.c: Likewise.
2907 * config/linux/mips/futex.h: Likewise.
2908 * config/linux/mutex.c: Likewise.
2909 * config/linux/mutex.h: Likewise.
2910 * config/linux/powerpc/futex.h: Likewise.
2911 * config/linux/proc.c: Likewise.
2912 * config/linux/ptrlock.c: Likewise.
2913 * config/linux/ptrlock.h: Likewise.
2914 * config/linux/s390/futex.h: Likewise.
2915 * config/linux/sem.c: Likewise.
2916 * config/linux/sem.h: Likewise.
2917 * config/linux/sparc/futex.h: Likewise.
2918 * config/linux/wait.h: Likewise.
2919 * config/linux/x86/futex.h: Likewise.
2920 * config/mingw32/proc.c: Likewise.
2921 * config/mingw32/time.c: Likewise.
2922 * config/posix/affinity.c: Likewise.
2923 * config/posix/bar.c: Likewise.
2924 * config/posix/bar.h: Likewise.
2925 * config/posix/lock.c: Likewise.
2926 * config/posix/mutex.h: Likewise.
2927 * config/posix/proc.c: Likewise.
2928 * config/posix/ptrlock.h: Likewise.
2929 * config/posix/sem.c: Likewise.
2930 * config/posix/sem.h: Likewise.
2931 * config/posix/time.c: Likewise.
2932 * config/posix95/lock.c: Likewise.
2933 * critical.c: Likewise.
2935 * error.c: Likewise.
2936 * fortran.c: Likewise.
2937 * iter_ull.c: Likewise.
2938 * libgomp.h: Likewise.
2939 * libgomp_f.h.in: Likewise.
2940 * libgomp_g.h: Likewise.
2942 * loop_ull.c: Likewise.
2943 * omp.h.in: Likewise.
2944 * omp_lib.f90.in: Likewise.
2945 * omp_lib.h.in: Likewise.
2946 * ordered.c: Likewise.
2947 * parallel.c: Likewise.
2948 * sections.c: Likewise.
2949 * single.c: Likewise.
2954 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2956 * testsuite/config/default.exp: Change copyright header to refer to
2957 version 3 of the GNU General Public License and to point readers
2958 at the COPYING3 file and the FSF's license web page.
2960 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2963 * libgomp.c++/pr39573.C: New test.
2965 2009-04-01 Jakub Jelinek <jakub@redhat.com>
2968 * testsuite/libgomp.c/pr39591-1.c: New test.
2969 * testsuite/libgomp.c/pr39591-2.c: New test.
2970 * testsuite/libgomp.c/pr39591-3.c: New test.
2972 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
2974 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2975 * testsuite/libgomp.c/atomic-6.c: Ditto.
2977 2009-03-23 Jakub Jelinek <jakub@redhat.com>
2980 * testsuite/libgomp.c/loop-12.c: New test.
2981 * testsuite/libgomp.c/loop-11.c: New test.
2982 * testsuite/libgomp.c++/loop-11.C: New test.
2983 * testsuite/libgomp.c++/loop-12.C: New test.
2984 * testsuite/libgomp.c++/for-8.C: New test.
2986 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2988 * configure: Regenerate.
2990 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2993 * testsuite/libgomp.c/pr39154.c: New test.
2995 2009-01-30 Ian Lance Taylor <iant@google.com>
2997 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2998 libgomp_ld_is_gold. Get gold version number.
2999 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
3000 * configure: Rebuild.
3002 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3004 * testsuite/lib/libgomp.exp: Add -B option for targets that
3005 use libgfortran.a%s in their specs.
3007 2009-01-07 Jakub Jelinek <jakub@redhat.com>
3010 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
3011 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
3012 HAVE_AS_SYMVER_DIRECTIVE is not defined.
3013 * configure: Regenerated.
3014 * config.h.in: Likewise.
3016 2008-12-28 Jakub Jelinek <jakub@redhat.com>
3019 * testsuite/libgomp.c/pr38650.c: New test.
3020 * testsuite/libgomp.c++/pr38650.C: New test.
3022 2008-12-27 Jakub Jelinek <jakub@redhat.com>
3024 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
3026 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
3028 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
3030 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3032 * configure: Regenerate.
3034 2008-12-08 Jakub Jelinek <jakub@redhat.com>
3037 * testsuite/libgomp.c/pr36802-1.c: New test.
3038 * testsuite/libgomp.c/pr36802-2.c: New test.
3039 * testsuite/libgomp.c/pr36802-3.c: New test.
3041 2008-12-01 Janis Johnson <janis187@us.ibm.com>
3044 * config/linux/powerpc/mutex.h: New.
3046 2008-12-01 Jakub Jelinek <jakub@redhat.com>
3049 * testsuite/libgomp.c++/for-7.C: New test.
3052 * testsuite/libgomp.c++/for-6.C: New test.
3054 2008-11-26 Janis Johnson <janis187@us.ibm.com>
3057 * testsuite/lib/libgomp.exp: Include new timeout library files.
3058 (libgomp_target_compile): Set timeout value from new proc.
3060 2008-11-13 Steve Ellcey <sje@cup.hp.com>
3063 * config/linux/ia64/mutex.h: New.
3065 2008-11-04 Tobias Burnus <burnus@net-b.de>
3068 * libgomp.texi (Runtime library routines, environment variables):
3069 Update for OpenMP version 3.0.
3071 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3072 Steve Ellcey <sje@cup.hp.com>
3074 * configure: Regenerate for new libtool.
3075 * Makefile.in: Ditto.
3076 * testsuite/Makefile.in: Ditto.
3078 2008-09-19 Jakub Jelinek <jakub@redhat.com>
3079 Andreas Tobler <a.tobler@schweiz.org>
3081 * config/bsd/proc.c: New file.
3082 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
3083 * configure.ac: Check for header <sys/sysctl.h>
3084 * configure: Regenerate.
3085 * config.h.in: Likewise.
3087 2008-09-05 Janis Johnson <janis187@us.ibm.com>
3089 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
3091 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3093 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
3094 * Makefile.in: Regenerated.
3095 * testsuite/Makefile.in: Regenerated.
3097 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
3099 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
3100 depend on blddir if blddir exists.
3101 (libgomp_target_compile): Likewise.
3102 * testsuite/libgomp.c++/c++.exp: Likewise.
3103 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3105 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3107 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
3108 Do not list GPL as Invariant Section.
3110 2008-07-28 Ilie Garbacea <ilie@mips.com>
3111 Chao-ying Fu <fu@mips.com>
3113 * configure.tgt: Enable futex for MIPS.
3114 * config/linux/mips/futex.h: New file.
3116 2008-07-16 Jakub Jelinek <jakub@redhat.com>
3118 * team.c (gomp_team_end): Free team immediately if it has
3121 2008-07-08 David Edelsohn <edelsohn@gnu.org>
3123 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3124 * testsuite/libgomp.fortran/fortran.exp: Same.
3125 * testsuite/libgomp.c/c.exp: Same.
3126 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3127 directory to library path first.
3129 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3131 * env.c (parse_stacksize): Add cast to avoid warning.
3132 (parse_spincount): Likewise.
3134 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3136 * testsuite/libgomp.c/loop-10.c: New test.
3137 * libgomp.c/loop-3.c (main): Add lastprivate clause.
3138 * libgomp.c++/loop-6.C (main): Likewise.
3141 * testsuite/libgomp.c/debug-1.c: New test.
3143 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3145 * testsuite/libgomp.c/nqueens-1.c: New test.
3148 * testsuite/libgomp.c++/task-7.C: New function.
3150 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3152 * configure: Regenerate.
3154 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3156 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3157 mutex when HAVE_SYNC_BUILTINS isn't defined.
3159 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3161 * libgomp.texi (omp_test_lock): Fix typo.
3163 2008-06-12 Tobias Burnus <burnus@net-b.de>
3165 * omp_lib.f90.in: Add "implicit none".
3167 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3170 * testsuite/libgomp.c/reduction-5.c: New test.
3172 2008-06-11 Jakub Jelinek <jakub@redhat.com>
3174 * libgomp.h (struct gomp_task): Add in_tied_task field.
3175 * task.c (gomp_init_task): Initialize it.
3176 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
3177 unconditionally. Don't call gomp_team_barrier_wake if
3178 current task is implicit or if(0) from implicit and number of
3179 running tasks is equal to nthreads - 1.
3182 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3183 omp_get_team_size_8): Fix pastos.
3186 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3187 * configure: Regenerated.
3188 * config.h.in: Regenerated.
3189 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3192 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3195 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3196 (GOMP_loop_ull_dynamic_start): Likewise.
3197 (GOMP_loop_ull_guided_start): Likewise.
3198 (GOMP_loop_ull_ordered_static_start): Likewise.
3199 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3200 (GOMP_loop_ull_ordered_guided_start): Likewise.
3202 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3203 Richard Henderson <rth@redhat.com>
3204 Ulrich Drepper <drepper@redhat.com>
3205 Jakob Blomer <jakob.blomer@ira.uka.de>
3207 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3208 Substitute also OMP_*LOCK_25*.
3209 * configure: Regenerated.
3210 * config.h.in: Regenerated.
3211 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3212 ptrlock.c and task.c.
3213 * Makefile.in: Regenerated.
3214 * testsuite/Makefile.in: Regenerated.
3216 * loop_ull.c: New file.
3217 * iter_ull.c: New file.
3218 * libgomp.h: Include ptrlock.h.
3219 (enum gomp_task_kind): New type.
3220 (struct gomp_team): Add task_lock, task_queue, task_count,
3221 task_running_count, single_count fields. Add
3222 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3223 Remove work_share_lock, generation_mask,
3224 oldest_live_gen, num_live_gen and init_work_shares fields, add
3225 work work_share_list_alloc, work_share_list_free and work_share_chunk
3226 fields. Change work_shares from pointer to pointers into an array.
3227 Change ordered_release field into gomp_sem_t ** from flexible array
3228 member. Add implicit_task and initial_work_shares fields.
3229 Move close to the end of the struct.
3230 (struct gomp_team_state): Add single_count, last_work_share,
3231 active_level and level fields, remove work_share_generation.
3232 (gomp_barrier_handle_tasks): New prototype.
3233 (gomp_finish_task): New inline function.
3234 (struct gomp_work_share): Move chunk_size, end, incr into
3235 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3236 next_ll fields. Reshuffle fields. Add next_alloc,
3237 next_ws, next_free and inline_ordered_team_ids fields, change
3238 ordered_team_ids into pointer from flexible array member.
3239 Add mode field. Put lock and next into a different cache line
3240 from most of the write-once fields.
3241 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3242 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3243 gomp_iter_ull_guided_next): New prototypes.
3244 (gomp_new_icv): New prototype.
3245 (struct gomp_thread): Add thread_pool and task fields.
3246 (struct gomp_thread_pool): New type.
3247 (gomp_new_team): New prototype.
3248 (gomp_team_start): Change type of last argument.
3249 (gomp_new_work_share): Removed.
3250 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3251 (gomp_work_share_init_done): New static inline.
3252 (gomp_throttled_spin_count_var, gomp_available_cpus,
3253 gomp_managed_threads): New extern decls.
3254 (gomp_init_task): New prototype.
3255 (gomp_spin_count_var): New extern var decl.
3256 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3257 or no alias support, or if not PIC.
3258 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3259 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3260 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3261 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3262 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3263 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3264 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3265 gomp_test_nest_lock_25): New prototypes.
3266 (omp_lock_symver, strong_alias): Define.
3267 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3269 (gomp_end_task): New.
3270 (struct gomp_task_icv, gomp_global_icv): New.
3271 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3272 (struct gomp_task): New.
3273 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3274 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3276 (gomp_schedule_type): Reorder enum to match
3278 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3280 (gomp_thread_start): Add gomp_team_barrier_wait call.
3281 For non-nested case remove clearing of docked thread thr fields.
3282 Use pool fields instead of global gomp_* variables. Use
3283 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3284 Create tasks for each member thread.
3285 (free_team): Only destroy team barrier, task_lock here and free it.
3286 (gomp_free_thread): Free last_team if non-NULL.
3287 (gomp_team_end): Call gomp_team_barrier_wait instead of
3288 gomp_barrier_wait. For nested case call one extra
3289 gomp_barrier_wait. Move here some destruction from free_team.
3290 Call free_team on pool->last_team if any, rather than freeing
3291 current team. Destroy work_share_list_free_lock ifndef
3293 (gomp_new_icv): New function.
3294 (gomp_threads, gomp_threads_size, gomp_threads_used,
3295 gomp_threads_dock): Removed.
3296 (gomp_thread_destructor): New variable.
3297 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3299 (gomp_team_start): Create new pool if current thread doesn't have
3300 one. Use pool fields instead of global gomp_* variables.
3301 Initialize thread_pool field for new threads. Clear single_count.
3302 Change last argument from ws to team, don't create
3303 new team, set ts.work_share to &team->work_shares[0] and clear
3304 ts.last_work_share. Don't clear ts.work_share_generation.
3305 If number of threads changed, adjust atomically gomp_managed_threads.
3306 Use gomp_init_task instead of gomp_new_task,
3307 set thr->task to the corresponding implicit_task array entry.
3308 Create tasks for each member thread. Initialize ts.level.
3309 (initialize_team): Call pthread_key_create on
3310 gomp_thread_destructor.
3311 (team_destructor): New function.
3312 (new_team): Removed.
3313 (gomp_new_team): New function.
3314 (free_team): Free gomp_work_share blocks chained through next_alloc,
3315 instead of freeing work_shares and destroying work_share_lock.
3316 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3317 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3318 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3319 of gomp_barrier_wait.
3320 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3321 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3322 if gomp_work_share_start returned true. Don't unlock ws->lock.
3323 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3324 of gomp_barrier_wait.
3325 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3326 gomp_work_share_init_done if gomp_work_share_start returned true.
3327 Don't unlock ws->lock.
3328 * work.c: Include stddef.h.
3329 (free_work_share): Use work_share_list_free_lock instead
3330 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3331 Call gomp_fini_work_share and then either free ws if orphaned, or
3332 put it into work_share_list_free list of the current team.
3333 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3335 (gomp_work_share_start, gomp_work_share_end,
3336 gomp_work_share_end_nowait): Rewritten.
3337 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3338 (openmp_version): Set to 200805.
3339 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3340 omp_sched_guided, omp_sched_auto): New parameters.
3341 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3342 omp_set_max_active_levels, omp_get_max_active_levels,
3343 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3344 omp_get_active_level): New interfaces.
3345 * omp_lib.h.in (openmp_version): Set to 200805.
3346 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3347 omp_sched_guided, omp_sched_auto): New parameters.
3348 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3349 omp_set_max_active_levels, omp_get_max_active_levels,
3350 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3351 omp_get_active_level): New externals.
3352 * loop.c: Include limits.h.
3353 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3355 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3356 Likewise. Use gomp_icv.
3357 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3358 ts.static_trip here.
3359 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3360 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3361 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3362 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3363 don't unlock ws->lock, otherwise lock it.
3364 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3365 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3366 (gomp_parallel_loop_start): Call gomp_new_team instead of
3367 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3368 Adjust gomp_team_start caller. Pass 0 as second argument to
3369 gomp_resolve_num_threads.
3370 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3371 If adding ws->chunk_size nthreads + 1 times after end won't
3372 overflow, set ws->mode to 1.
3373 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3374 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3375 GOMP_loop_ull_ordered_static_start,
3376 GOMP_loop_ull_ordered_dynamic_start,
3377 GOMP_loop_ull_ordered_guided_start,
3378 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3379 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3380 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3381 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3382 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3384 * libgomp.map: Export lock routines also @@OMP_2.0.
3385 (GOMP_loop_ordered_dynamic_first,
3386 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3387 GOMP_loop_ordered_static_first): Remove.
3388 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3389 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3390 GOMP_loop_ull_ordered_dynamic_next,
3391 GOMP_loop_ull_ordered_dynamic_start,
3392 GOMP_loop_ull_ordered_guided_next,
3393 GOMP_loop_ull_ordered_guided_start,
3394 GOMP_loop_ull_ordered_runtime_next,
3395 GOMP_loop_ull_ordered_runtime_start,
3396 GOMP_loop_ull_ordered_static_next,
3397 GOMP_loop_ull_ordered_static_start,
3398 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3399 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3400 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3401 (omp_set_schedule, omp_get_schedule,
3402 omp_get_thread_limit, omp_set_max_active_levels,
3403 omp_get_max_active_levels, omp_get_level,
3404 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3405 omp_set_schedule_, omp_set_schedule_8_,
3406 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3407 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3408 omp_get_max_active_levels_, omp_get_level_,
3409 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3410 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3411 New exports @@OMP_3.0.
3412 * omp.h.in (omp_sched_t): New type.
3413 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3414 omp_set_max_active_levels, omp_get_max_active_levels,
3415 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3416 omp_get_active_level): New prototypes.
3417 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3418 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3419 gomp_thread_limit_var, gomp_remaining_threads_count,
3420 gomp_remaining_threads_lock): New variables.
3421 (parse_spincount): New function.
3422 (initialize_env): Call gomp_init_num_threads unconditionally.
3423 Initialize gomp_available_cpus. Call parse_spincount,
3424 initialize gomp_{,throttled_}spin_count_var
3425 depending on presence and value of OMP_WAIT_POLICY and
3426 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
3427 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3428 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
3429 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
3430 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
3431 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3432 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3433 (gomp_global_icv): New.
3434 (parse_schedule): Use it. Parse "auto".
3435 (omp_set_num_threads): Use gomp_icv.
3436 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3438 (omp_get_max_threads): Move from parallel.c.
3439 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3440 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3442 (parse_stacksize, parse_wait_policy): New functions.
3443 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3444 both wrappers for compatibility and new locks.
3445 (omp_set_schedule, omp_get_schedule,
3446 omp_get_thread_limit, omp_set_max_active_levels,
3447 omp_get_max_active_levels, omp_get_level,
3448 omp_get_ancestor_thread_num, omp_get_team_size,
3449 omp_get_active_level): New ialias_redirect.
3450 (omp_set_schedule_, omp_set_schedule_8_,
3451 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3452 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3453 omp_get_max_active_levels_, omp_get_level_,
3454 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3455 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3457 * parallel.c: Include limits.h.
3458 (gomp_resolve_num_threads): Add count argument. Rewritten.
3459 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3460 argument to gomp_team_start. Pass 0 as second argument to
3461 gomp_resolve_num_threads.
3462 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3463 if gomp_thread_limit_var != ULONG_MAX.
3464 (omp_in_parallel): Implement using ts.active_level.
3465 (omp_get_max_threads): Move to env.c.
3466 (omp_get_level, omp_get_ancestor_thread_num,
3467 omp_get_team_size, omp_get_active_level): New functions,
3469 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3470 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3471 gomp_iter_dynamic_next instead of the _locked variant and don't take
3472 lock around it, otherwise acquire it before calling
3473 gomp_iter_dynamic_next_locked.
3474 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3475 gomp_iter_dynamic_next instead of the _locked variant and don't take
3477 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3478 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3479 Adjust gomp_team_start caller. Pass count as second argument to
3480 gomp_resolve_num_threads, don't adjust num_threads after the call.
3482 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3483 ws->chunk_size by incr.
3484 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3486 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3488 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3489 (omp_check_defines): Check even the compat defines.
3490 * config/linux/ptrlock.c: New file.
3491 * config/linux/ptrlock.h: New file.
3492 * config/linux/wait.h: New file.
3493 * config/posix/ptrlock.c: New file.
3494 * config/posix/ptrlock.h: New file.
3495 * config/linux/bar.h (gomp_team_barrier_wait,
3496 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3497 (gomp_team_barrier_set_task_pending,
3498 gomp_team_barrier_clear_task_pending,
3499 gomp_team_barrier_set_waiting_for_tasks,
3500 gomp_team_barrier_waiting_for_tasks,
3501 gomp_team_barrier_done): New inlines.
3502 (gomp_barrier_t): Rewritten.
3503 (gomp_barrier_state_t): New typedef.
3504 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3505 gomp_barrier_wait_start): Rewritten.
3506 (gomp_barrier_wait_end): Change second argument to
3507 gomp_barrier_state_t.
3508 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3510 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3512 (gomp_barrier_wait_end): Rewritten.
3513 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3514 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3515 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3516 (gomp_barrier_state_t): New typedef.
3517 (gomp_team_barrier_wait,
3518 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3519 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3520 into the return value. Return gomp_barrier_state_t.
3521 (gomp_team_barrier_set_task_pending,
3522 gomp_team_barrier_clear_task_pending,
3523 gomp_team_barrier_set_waiting_for_tasks,
3524 gomp_team_barrier_waiting_for_tasks,
3525 gomp_team_barrier_done): New inlines.
3526 (gomp_barrier_wait_end): Change second argument to
3527 gomp_barrier_state_t.
3528 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3530 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3531 (gomp_barrier_wait_end): Change second argument to
3532 gomp_barrier_state_t.
3533 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3534 gomp_team_barrier_wake): New functions.
3535 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3537 (gomp_futex_wake, gomp_futex_wait): New variables.
3538 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3539 * config/linux/lock.c: Rewrite to make locks task owned,
3540 for backwards compatibility provide the old entrypoints
3541 if symbol versioning. Include wait.h instead of libgomp.h and
3543 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3544 * config/posix95/lock.c: Rewrite to make locks task owned,
3545 for backwards compatibility provide the old entrypoints
3546 if symbol versioning.
3547 * config/posix/lock.c: Rewrite to make locks task owned,
3548 for backwards compatibility provide the old entrypoints
3549 if symbol versioning.
3550 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3551 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3552 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3553 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3554 (sys_futex0): Return error code.
3555 (futex_wake, futex_wait): If ENOSYS was returned, clear
3556 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3557 (cpu_relax, atomic_write_barrier): New static inlines.
3558 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3559 (futex_wake, futex_wait): If ENOSYS was returned, clear
3560 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3561 (cpu_relax, atomic_write_barrier): New static inlines.
3562 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3563 (sys_futex0): Return error code.
3564 (futex_wake, futex_wait): If ENOSYS was returned, clear
3565 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3566 (cpu_relax, atomic_write_barrier): New static inlines.
3567 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3568 (sys_futex0): Return error code.
3569 (futex_wake, futex_wait): If ENOSYS was returned, clear
3570 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3571 (cpu_relax, atomic_write_barrier): New static inlines.
3572 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3573 (sys_futex0): Return error code.
3574 (futex_wake, futex_wait): If ENOSYS was returned, clear
3575 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3576 (cpu_relax, atomic_write_barrier): New static inlines.
3577 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3578 (sys_futex0): Return error code.
3579 (futex_wake, futex_wait): If ENOSYS was returned, clear
3580 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3581 (cpu_relax, atomic_write_barrier): New static inlines.
3582 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3584 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3585 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3586 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3588 (omp_nest_lock_t): Change owner into void *, add lock field.
3589 * config/posix95/omp-lock.h: Include semaphore.h.
3590 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3591 (omp_lock_t): Use sem_t instead of mutex if semaphores
3593 (omp_nest_lock_t): Likewise. Change owner to void *.
3594 * config/posix/omp-lock.h: Include semaphore.h.
3595 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3596 (omp_lock_t): Use sem_t instead of mutex if semaphores
3598 (omp_nest_lock_t): Likewise. Add owner field.
3600 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3602 * testsuite/libgomp.c/collapse-1.c: New test.
3603 * testsuite/libgomp.c/collapse-2.c: New test.
3604 * testsuite/libgomp.c/collapse-3.c: New test.
3605 * testsuite/libgomp.c/icv-1.c: New test.
3606 * testsuite/libgomp.c/icv-2.c: New test.
3607 * testsuite/libgomp.c/lib-2.c: New test.
3608 * testsuite/libgomp.c/lock-1.c: New test.
3609 * testsuite/libgomp.c/lock-2.c: New test.
3610 * testsuite/libgomp.c/lock-3.c: New test.
3611 * testsuite/libgomp.c/loop-4.c: New test.
3612 * testsuite/libgomp.c/loop-5.c: New test.
3613 * testsuite/libgomp.c/loop-6.c: New test.
3614 * testsuite/libgomp.c/loop-7.c: New test.
3615 * testsuite/libgomp.c/loop-8.c: New test.
3616 * testsuite/libgomp.c/loop-9.c: New test.
3617 * testsuite/libgomp.c/nested-3.c: New test.
3618 * testsuite/libgomp.c/nestedfn-6.c: New test.
3619 * testsuite/libgomp.c/sort-1.c: New test.
3620 * testsuite/libgomp.c/task-1.c: New test.
3621 * testsuite/libgomp.c/task-2.c: New test.
3622 * testsuite/libgomp.c/task-3.c: New test.
3623 * testsuite/libgomp.c/task-4.c: New test.
3624 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3625 to C++ testsuite default compiler options.
3626 * testsuite/libgomp.c++/collapse-1.C: New test.
3627 * testsuite/libgomp.c++/collapse-2.C: New test.
3628 * testsuite/libgomp.c++/ctor-10.C: New test.
3629 * testsuite/libgomp.c++/for-1.C: New test.
3630 * testsuite/libgomp.c++/for-2.C: New test.
3631 * testsuite/libgomp.c++/for-3.C: New test.
3632 * testsuite/libgomp.c++/for-4.C: New test.
3633 * testsuite/libgomp.c++/for-5.C: New test.
3634 * testsuite/libgomp.c++/loop-8.C: New test.
3635 * testsuite/libgomp.c++/loop-9.C: New test.
3636 * testsuite/libgomp.c++/loop-10.C: New test.
3637 * testsuite/libgomp.c++/task-1.C: New test.
3638 * testsuite/libgomp.c++/task-2.C: New test.
3639 * testsuite/libgomp.c++/task-3.C: New test.
3640 * testsuite/libgomp.c++/task-4.C: New test.
3641 * testsuite/libgomp.c++/task-5.C: New test.
3642 * testsuite/libgomp.c++/task-6.C: New test.
3643 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3644 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3645 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3646 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3647 * testsuite/libgomp.fortran/collapse1.f90: New test.
3648 * testsuite/libgomp.fortran/collapse2.f90: New test.
3649 * testsuite/libgomp.fortran/collapse3.f90: New test.
3650 * testsuite/libgomp.fortran/collapse4.f90: New test.
3651 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3652 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3653 * testsuite/libgomp.fortran/lib4.f90: New test.
3654 * testsuite/libgomp.fortran/lock-1.f90: New test.
3655 * testsuite/libgomp.fortran/lock-2.f90: New test.
3656 * testsuite/libgomp.fortran/nested1.f90: New test.
3657 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3658 * testsuite/libgomp.fortran/strassen.f90: New test.
3659 * testsuite/libgomp.fortran/tabs1.f90: New test.
3660 * testsuite/libgomp.fortran/tabs2.f: New test.
3661 * testsuite/libgomp.fortran/task1.f90: New test.
3662 * testsuite/libgomp.fortran/task2.f90: New test.
3663 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3664 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3665 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3666 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3667 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3669 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3672 * testsuite/libgomp.c++/ctor-11.C: New test.
3673 * testsuite/libgomp.c++/ctor-12.C: New test.
3675 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3677 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3679 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3682 * testsuite/libgomp.c/atomic-5.c: New test.
3683 * testsuite/libgomp.c/atomic-6.c: New test.
3684 * testsuite/libgomp.c/autopar-1.c: New test.
3686 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3688 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3689 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3690 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3691 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3692 * configure: Regenerate.
3693 * Makefile.in, testsuite/Makefile.in: Likewise.
3695 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3698 * aclocal.m4: Regenerate.
3699 * configure: Regenerate.
3701 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3704 * testsuite/libgomp.c/atomic-4.c: New test.
3707 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3708 (gomp_iter_guided_next): Likewise.
3709 * testsuite/libgomp.c/pr35625.c: New test.
3711 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3713 * aclocal.m4: Regenerate.
3714 * configure: Likewise.
3715 * Makefile.in: Likewise.
3716 * testsuite/Makefile.in: Likewise.
3718 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3721 * testsuite/libgomp.c++/pr35185.C: New test.
3723 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3726 * testsuite/libgomp.c/pr35549.c: New test.
3728 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3730 * testsuite/libgomp.c/atomic-3.c: New test.
3732 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3735 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3738 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3741 * configure.ac: Add ACX_HEADER_STRING.
3742 * env.c: Include strings.h.
3743 * aclocal.m4: Regenerate.
3744 * config.h.in: Regenerate.
3745 * configure: Regenerate.
3746 * Makefile.in: Regenerate.
3747 * testsuite/Makefile.in: Regenerate.
3749 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3752 * testsuite/libgomp.c/pr35196.c: New test.
3755 * testsuite/libgomp.fortran/pr35130.f90: New test.
3756 * testsuite/libgomp.c/pr35130.c: New test.
3758 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3761 * testsuite/libgomp.c/pr33880.c: New test.
3762 * testsuite/libgomp.fortran/pr33880.f90: New test.
3764 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3766 * configure: Regenerate.
3768 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3770 * configure.ac: Move futex checking into ../config/futex.m4.
3771 * configure: Rebuilt.
3772 * aclocal.m4: Rebuilt.
3773 * Makefile.in: Rebuilt.
3775 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3776 2007-10-15 ../config/tls.m4 change.
3778 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3781 * testsuite/libgomp.c/pr34513.c: New test.
3782 * testsuite/libgomp.c++/pr34513.C: New test.
3784 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3787 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3789 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3791 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3793 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3795 * testsuite/libgomp.c/private-1.c: New test.
3797 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3798 Paolo Bonzini <bonzini@gnu.org>
3800 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3801 instead of 'VPATH ='.
3802 * Makefile.in: Regenerate.
3804 2007-11-23 Matthias Klose <doko@ubuntu.com>
3806 * configure.ac: Adjust makeinfo version check.
3807 * configure: Regenerate.
3809 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3812 * testsuite/libgomp.fortran/pr34020.f90: New test.
3814 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3817 * testsuite/libgomp.c++/atomic-1.C: New test.
3819 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3822 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3823 Make x and y integers rather than (implicit) reals. Add private (j)
3824 clause to the last omp parallel.
3826 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3828 * configure: Regenerate following changes to ../config/tls.m4.
3830 2007-09-28 Jakub Jelinek <jakub@redhat.com>
3832 * testsuite/libgomp.fortran/stack.f90: New test.
3834 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3836 * config/mingw32/proc.c: New file.
3838 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
3840 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3841 (main): Use __get_cpuid to get i386 target fetaures.
3842 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3843 (main): Use __get_cpuid to get x86_64 target fetaures.
3845 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3848 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3849 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3851 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3854 * testsuite/libgomp.fortran/pr32550.f90: New test.
3855 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3857 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3859 * aclocal.m4: Regenerated.
3861 2007-07-05 Tobias Burnus <burnus@net-b.de>
3864 * testsuite/libgomp.fortran/pr32359.f90: New.
3866 2007-07-02 Jakub Jelinek <jakub@redhat.com>
3869 * sections.c (GOMP_parallel_sections_start): Only decrease
3870 number of threads to COUNT if dyn_var is true.
3871 * testsuite/libgomp.c/pr32468.c: New test.
3873 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3876 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3878 2007-06-21 Jakub Jelinek <jakub@redhat.com>
3881 * testsuite/libgomp.c/pr32362-1.c: New test.
3882 * testsuite/libgomp.c/pr32362-2.c: New test.
3883 * testsuite/libgomp.c/pr32362-3.c: New test.
3885 2007-06-07 Jakub Jelinek <jakub@redhat.com>
3887 * team.c (gomp_team_start): Fix setting up thread_attr
3890 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3892 * configure: Regenerate.
3894 2007-05-23 Steve Ellcey <sje@cup.hp.com>
3896 * Makefile.in: Regenerate.
3897 * configure: Regenerate.
3898 * aclocal.m4: Regenerate.
3899 * testsuite/Makefile.in: Regenerate.
3901 2007-05-04 Jakub Jelinek <jakub@redhat.com>
3903 * config/linux/proc.c: New file.
3906 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3908 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3910 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3912 2007-04-16 Matthias Klose <doko@debian.org>
3914 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3915 flags if not building with -m64.
3916 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3917 flag for i?86-*-* targets, if current target matches -m64.
3919 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3921 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3922 * Makefile.in: Regenerate.
3924 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3927 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3929 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3931 2007-04-04 Jakub Jelinek <jakub@redhat.com>
3933 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3935 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3936 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3937 (parse_affinity): New function.
3938 (initialize_env): Call it and gomp_init_affinity.
3939 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3940 create new pthread_attr_t and call gomp_init_thread_affinity
3941 on it for each thread before passing the attribute to pthread_create.
3942 * config/linux/affinity.c: New file.
3943 * config/posix/affinity.c: New file.
3944 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3945 * configure: Rebuilt.
3946 * config.h.in: Rebuilt.
3947 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3948 * Makefile.in: Rebuilt.
3950 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3952 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3954 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3955 and use it if found.
3957 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
3959 * testsuite/config/default.exp: New file.
3960 * testsuite/lib/libgomp.exp: New file.
3961 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3962 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3963 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3964 (libgomp_load): Remove.
3965 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3966 always_ld_library_path, not ld_library_path. Set additional_flags
3967 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3968 (target_compile): Do not call libgomp_init. Append lang_library_path
3969 and lang_link_flags to options.
3970 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3971 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3973 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3974 always_ld_library_path. Set LD_LIBRARY_PATH here.
3975 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3976 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3977 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3979 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3980 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3981 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3982 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3983 * testsuite/libgomp.c/atomic-10.c: Ditto.
3985 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3987 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3988 dg-final cleanup-modules line.
3989 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3990 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3991 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3992 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3993 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3994 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3995 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3997 2007-03-18 Andreas Schwab <schwab@suse.de>
3999 * acinclude.m4: Adjust regular expression for ld version
4001 * configure: Regenerate.
4003 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4005 * Makefile.am: Add install-pdf target as copied from
4006 automake v1.10 rules.
4007 * Makefile.in: Regenerate
4009 2007-02-07 Jakub Jelinek <jakub@redhat.com>
4012 * configure: Regenerate.
4015 * testsuite/libgomp.c++/pr30703.C: New test.
4017 2007-02-02 Jakub Jelinek <jakub@redhat.com>
4020 2006-07-05 Eric Christopher <echristo@apple.com>
4021 * configure.ac: Depend addition of -pthread on host OS.
4022 * configure: Regenerate.
4024 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4026 * libgomp.texi: Fix spacing after abbreviations.
4028 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
4031 * configure.ac: Add check for makeinfo
4032 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
4033 if an appropiate version of makeinfo is found.
4034 * aclocal.m4: Regenerated.
4035 * configure: Regenerated.
4036 * Makefile.in: Regenerated.
4037 * testsuite/Makefile.in: Regenerated.
4039 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
4042 * libgomp.texi: More about implementation-dependent settings.
4044 2007-01-26 Tobias Burnus <burnus@net-b.de>
4046 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
4048 2007-01-24 Jakub Jelinek <jakub@redhat.com>
4051 * testsuite/libgomp.c/pr30494.c: New test.
4053 2007-01-15 Tom Tromey <tromey@redhat.com>
4055 * configure: Rebuilt.
4056 * configure.ac: Fixed comment.
4058 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
4060 * libgomp.texi: Document implementation specific default values of
4061 environment variables.
4063 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
4066 * libgomp.texi: New file.
4067 * configure.ac: Add --enable-generated-files-in-srcdir option.
4068 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
4070 * Makefile.in: Regenerated.
4071 * config.h.in: Regenerated.
4072 * testsuite/Makefile.in: Regenerated.
4075 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
4078 * env.c (omp_set_num_threads): Set illegal thread count to 1.
4080 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4082 * configure: Regenerate.
4084 2006-12-04 Jakub Jelinek <jakub@redhat.com>
4087 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
4088 start if there shouldn't be any loop iterations.
4089 (gomp_loop_ordered_static_start): Remove start == end test.
4090 * testsuite/libgomp.c/pr29947-1.c: New test.
4091 * testsuite/libgomp.c/pr29947-2.c: New test.
4093 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4095 * configure.tgt: Force initial-exec TLS model on Linux only.
4097 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
4099 * configure: Regenerated.
4101 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
4103 * env.c (parse_schedule): Reject out of range values.
4104 (parse_unsigned_long): Reject out of range, negative or zero values.
4106 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4109 * testsuite/libgomp.fortran/pr29629.f90: New test.
4111 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
4114 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4115 * config/posix95: New directory.
4116 * config/posix95/omp-lock.h: New file.
4117 * config/posix95/lock.c: Likewise.
4119 2006-10-14 Geoffrey Keating <geoffk@apple.com>
4121 * aclocal.m4: Regenerate.
4122 * configure: Regenerate.
4124 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4126 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4129 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4131 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4133 * configure: Regenerate.
4134 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4136 2006-09-26 Jakub Jelinek <jakub@redhat.com>
4140 * testsuite/libgomp.c/nestedfn-4.c: New test.
4141 * testsuite/libgomp.c/nestedfn-5.c: New test.
4142 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4145 * testsuite/libgomp.fortran/condinc1.f: New test.
4146 * testsuite/libgomp.fortran/condinc2.f: New test.
4147 * testsuite/libgomp.fortran/condinc3.f90: New test.
4148 * testsuite/libgomp.fortran/condinc4.f90: New test.
4149 * testsuite/libgomp.fortran/condinc1.inc: New file.
4151 2006-09-18 Tom Tromey <tromey@redhat.com>
4153 * configure: Rebuilt.
4155 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4158 PR preprocessor/14634
4159 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4161 * configure: Regenerate.
4163 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4165 * testsuite/libgomp.fortran/reduction3.f90: Change
4166 -2147483648 to -huge(i)-1 to avoid overflow.
4167 * testsuite/libgomp.fortran/reduction4.f90: Change
4168 Z'ffffffff' to not(0) to avoid overflow.
4170 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4173 * Makefile.am (libsubincludedir): New.
4174 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4175 * Makefile.in: Regenerate.
4177 2006-08-17 Jakub Jelinek <jakub@redhat.com>
4180 * env.c: Include ctype.h.
4181 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4182 leading and/or trailing whitespace and compare strings case
4185 2006-07-16 Jakub Jelinek <jakub@redhat.com>
4188 * testsuite/libgomp.fortran/pr28390.f: New test.
4190 2006-07-05 Eric Christopher <echristo@apple.com>
4192 * configure.ac: Depend addition of -pthread on host OS.
4193 * configure: Regenerate.
4195 2006-06-21 Jakub Jelinek <jakub@redhat.com>
4197 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4198 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4201 2006-06-20 Jakub Jelinek <jakub@redhat.com>
4205 * configure.ac: If neither --enable-linux-futex nor
4206 --disable-linux-futex is passed, determine the default by checking
4207 for compiling and/or running against NPTL. With --enable-linux-futex,
4208 check if SYS_gettid and SYS_futex are defined.
4209 * configure: Rebuilt.
4211 2006-06-14 Richard Henderson <rth@redhat.com>
4214 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4215 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4217 2006-06-09 Richard Henderson <rth@redhat.com>
4219 * env.c (gomp_nthreads_var): Change to unsigned long.
4220 (gomp_run_sched_chunk): Likewise.
4221 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4222 (initialize_env): Initialize gomp_thread_attr.
4223 * libgomp.h (gomp_nthreads_var): Update decl.
4224 (gomp_run_sched_chunk): Likewise.
4225 (gomp_thread_attr): Declare.
4226 * team.c (gomp_thread_attr): Export.
4227 (initialize_team): Don't initialize it.
4229 2006-06-09 Jakub Jelinek <jakub@redhat.com>
4232 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4233 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4235 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4237 * config/mingw32/time.c: New file.
4238 * configure.tgt: Use it.
4240 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4242 * Makefile.am: Add install-html target. Add install-html to .PHONY
4243 * Makefile.in: Regenerate.
4245 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4248 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4249 * testsuite/libgomp.c/critical-1.c: Likewise.
4250 * testsuite/libgomp.c/loop-1.c: Likewise.
4251 * testsuite/libgomp.c/loop-2.c: Likewise.
4252 * testsuite/libgomp.c/single-1.c: Likewise.
4253 * testsuite/libgomp.c/ordered-1.c: Likewise.
4254 * testsuite/libgomp.c/ordered-2.c: Likewise.
4256 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4259 * libgomp.fortran/pr27416-1.f90: New test.
4261 2006-05-03 Jakub Jelinek <jakub@redhat.com>
4264 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4265 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4267 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4270 * testsuite/libgomp.c/pr26943-1.c: New test.
4271 * testsuite/libgomp.c/pr26943-2.c: New test.
4272 * testsuite/libgomp.c/pr26943-3.c: New test.
4273 * testsuite/libgomp.c/pr26943-4.c: New test.
4274 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4275 * testsuite/libgomp.c++/pr26943.C: New test.
4277 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4280 * testsuite/libgomp.c++/pr27337.C: New test.
4282 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4285 * testsuite/libgomp.c/pr26171.c: New test.
4287 2006-04-25 Richard Henderson <rth@redhat.com>
4290 * configure.ac: Use GCC_CHECK_TLS.
4291 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4292 * Makefile.in, aclocal.m4, configure: Regenerate.
4294 2006-04-10 Matthias Klose <doko@debian.org>
4296 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4297 directory names containing underscores.
4299 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4302 * testsuite/libgomp.c++/pr26691.C: New test.
4304 2006-03-13 Jakub Jelinek <jakub@redhat.com>
4306 * testsuite/libgomp.fortran/retval2.f90: New test.
4308 2006-03-09 Diego Novillo <dnovillo@redhat.com>
4310 * testsuite/libgomp.c++: New directory.
4312 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
4314 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4315 * config/posix/sem.c: Implement the above.
4317 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4319 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4320 define HAVE_BROKEN_POSIX_SEMAPHORES.
4321 * configure: Rebuilt.
4322 * config.h.in: Rebuilt.
4324 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4327 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4328 for the other pthread check.
4329 * configure: Regenerate.
4330 * config.h.in: Regenerate.
4332 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4336 * Makefile.am (fincludedir): New variable.
4337 (nodist_include_HEADERS): Remove Fortran files.
4338 (nodist_finclude_HEADERS): New variable.
4339 * Makefile.in: Regenerated.
4341 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4343 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4344 Remove tests for returning assumed character length arrays.
4346 2006-02-12 Roger Sayle <roger@eyesopen.com>
4347 John David Anglin <dave@hiauly1.hia.nrc.ca>
4350 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4352 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4354 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4356 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4358 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4359 part of LD_LIBRARY_PATH manually.
4361 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4364 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4367 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
4370 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4371 * configure.ac (PERL): Don't set.
4372 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4373 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4374 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4375 * omp.h.in: Wrap the new configure substitutions with @ characters.
4376 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4377 * aclocal.m4, configure, Makefile.in: Regenerate.
4378 * mkomp_h.pl: Delete.
4380 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
4383 * configure.ac: Use GCC_HEADER_STDINT.
4384 * libgomp.h: Include gstdint.h.
4385 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4386 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4388 2006-01-24 Richard Henderson <rth@redhat.com>
4391 * configure.ac: Add AM_MAINTAINER_MODE.
4392 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4394 2006-01-24 Diego Novillo <dnovillo@redhat.com>
4396 * Makefile.in: Regenerate.
4397 * testsuite/Makefile.in: Regenerate.
4398 * aclocal.m4: Regenerate.
4400 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
4402 * config/posix/proc.c: Conditional include of sys/loadavg.h for
4404 * configure.ac: Add check for loadavg.h.
4405 (link_gomp): Adjust comment.
4406 * configure: Regenerate.
4407 * config.h.in: Regenerate.
4409 2006-01-21 Steve Ellcey <sje@cup.hp.com>
4412 * configure.ac: Remove check for alloca.h.
4413 * configure: Regenerate.
4414 * config.h.in: Regenerate.
4415 * libgomp.h: define gomp_alloca to be __builtin_alloca.
4416 * team.c: Remove use of alloca.h.
4417 Call gomp_alloca instead of alloca.
4419 2006-01-20 Steve Ellcey <sje@cup.hp.com>
4422 * team.c: Add include of alloca.h.
4423 * configure.ac: Add check for alloca.h.
4424 * configure: Regenerate.
4425 * config.h.in: Regenerate.
4427 2006-01-17 Jakub Jelinek <jakub@redhat.com>
4430 * testsuite/libgomp.fortran/pr25219.f90: New test.
4432 2005-12-05 Uros Bizjak <uros@kss-loka.si>
4434 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4435 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4436 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4437 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4438 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4439 testsuite/libgomp.fortran/threadprivate1.f90,
4440 testsuite/libgomp.fortran/threadprivate2.f90,
4441 testsuite/libgomp.fortran/threadprivate3.f90,
4442 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4443 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4444 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4445 effective-target to TLS runtime.
4447 * testsuite/libgomp.fortran/pr25162.f: Require
4448 effective-target TLS runtime.
4450 2005-12-01 Jakub Jelinek <jakub@redhat.com>
4452 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4453 * testsuite/libgomp.c/nestedfn-3.c: New test.
4455 2005-11-30 Jakub Jelinek <jakub@redhat.com>
4458 * testsuite/libgomp.fortran/pr25162.f: New test.
4460 2005-11-28 Jakub Jelinek <jakub@redhat.com>
4462 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4463 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4465 2005-11-25 Jakub Jelinek <jakub@redhat.com>
4467 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4468 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4469 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4470 single.c, team.c, work.c, config/linux/alpha/futex.h,
4471 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4472 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4473 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4474 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4475 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4476 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4477 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4480 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4482 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4483 to nodist_noinst_HEADERS.
4484 * Makefile.in: Rebuilt.
4486 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4487 add integer count field.
4488 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4489 omp_nest_lock_t type change.
4490 (omp_init_nest_lock): Likewise. Initialize count to 0.
4491 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4493 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4495 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4496 Increment count if successful and return the new nesting level.
4497 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4498 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4499 * testsuite/libgomp.c/lib-1.c: New test.
4500 * testsuite/libgomp.fortran/lib1.f90: New test.
4501 * testsuite/libgomp.fortran/lib2.f: New test.
4502 * testsuite/libgomp.fortran/lib3.f: New test.
4504 2005-11-17 Richard Henderson <rth@redhat.com>
4507 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4508 * configure.ac (link_gomp): New. Substitute it.
4509 (AC_CONFIG_FILES): Add libgomp.spec.
4510 * libgomp.spec.in: New file.
4511 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4512 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4514 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4516 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4517 reduction(-:var) behaving the same as reduction(+:var).
4518 * testsuite/libgomp.c/reduction-4.c: New test.
4520 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4522 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4523 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4524 testsuite/libgomp.c/copyin-3.c,
4525 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4526 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4527 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4528 testsuite/libgomp.c++/pr24455.C,
4529 testsuite/libgomp.fortran/threadprivate1.f90,
4530 testsuite/libgomp.fortran/threadprivate2.f90,
4531 testsuite/libgomp.fortran/threadprivate3.f90,
4532 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4533 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4534 testsuite/libgomp.fortran/omp_parse3.f90: Require
4535 effective-target TLS.
4537 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4541 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4544 * team.c (initialize_team): Pass NULL rather than free as
4545 pthread_key_create destructor. Initialize thread specific data
4546 pointer in initial thread to a static local variable rather than
4549 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4551 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4552 its location to ld_library_path.
4554 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4556 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4558 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4560 * testsuite/libgomp.c: Rename from libgomp.dg.
4562 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4564 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4565 threadprivate variable 'i'.
4567 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4569 * config/linux/s390/futex.h: New file.
4570 * configure.tgt: Use it.
4572 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4573 before the parallel.
4575 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4578 * testsuite/libgomp.c++/master-1.C: New test.
4580 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4582 * testsuite/libgomp.dg/copyin-3.c: New test.
4584 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4586 * testsuite/libgomp.fortran/retval1.f90: New test.
4587 * testsuite/libgomp.fortran/vla7.f90: New test.
4589 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4591 * testsuite/libgomp.fortran/vla2.f90: New test.
4592 * testsuite/libgomp.fortran/vla3.f90: New test.
4593 * testsuite/libgomp.fortran/vla4.f90: New test.
4594 * testsuite/libgomp.fortran/vla5.f90: New test.
4595 * testsuite/libgomp.fortran/vla6.f90: New test.
4597 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4599 * config/linux/sparc/futex.h: New file.
4600 * configure.tgt: Use it.
4601 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4603 * critical.c: Include stdlib.h.
4604 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4605 ignoring return value.
4606 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4607 LIBGOMP_CHECK_SYNC_BUILTINS check.
4608 * configure: Rebuilt.
4610 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4612 * testsuite/libgomp.fortran/vla1.f90: New test.
4614 2005-10-31 Richard Henderson <rth@redhat.com>
4616 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4617 setting 's' in different threads.
4619 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4621 * libgomp.h (attribute_hidden, ialias): Define.
4622 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4623 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4624 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4625 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4626 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4627 omp_test_lock, omp_test_nest_lock): Likewise.
4628 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4629 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4630 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4631 omp_test_lock, omp_test_nest_lock): Likewise.
4632 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4633 omp_get_dynamic, omp_get_nested): Likewise.
4634 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4635 omp_get_thread_num, omp_in_parallel): Likewise.
4636 * fortran.c (ialias_redirect): Define.
4637 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4638 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4639 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4640 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4641 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4642 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4643 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4644 omp_get_wtime): Add ialias_redirect.
4646 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4648 * fortran.c: Include stdlib.h.
4650 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4652 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4653 * Makefile.in: Regenerated.
4655 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4657 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4658 * libgomp_f.h.in (omp_check_defines): New function.
4659 * env.c: Include libgomp_f.h.
4660 (initialize_env): Call omp_check_defines.
4662 * testsuite/libgomp.dg/copyin-2.c: New test.
4663 * testsuite/libgomp.c++/copyin-2.C: New test.
4664 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4666 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4667 * testsuite/libgomp.fortran/sharing2.f90: New test.
4669 * testsuite/libgomp.dg/copyin-1.c: New test.
4670 * testsuite/libgomp.c++/copyin-1.C: New test.
4672 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4674 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4676 * testsuite/libgomp.fortran/workshare1.f90: New test.
4678 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4680 * libgomp.fortran/sharing1.f90: New test.
4682 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4685 * testsuite/libgomp.c++/loop-7.C: New test.
4687 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4689 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4690 * testsuite/libgomp.fortran/reduction6.f90: New test.
4691 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4693 2005-10-23 Richard Henderson <rth@redhat.com>
4695 * testsuite/libgomp.c++/ctor-1.C: New.
4696 * testsuite/libgomp.c++/ctor-2.C: New.
4697 * testsuite/libgomp.c++/ctor-3.C: New.
4698 * testsuite/libgomp.c++/ctor-4.C: New.
4699 * testsuite/libgomp.c++/ctor-5.C: New.
4700 * testsuite/libgomp.c++/ctor-6.C: New.
4701 * testsuite/libgomp.c++/ctor-7.C: New.
4702 * testsuite/libgomp.c++/ctor-8.C: New.
4703 * testsuite/libgomp.c++/ctor-9.C: New.
4705 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4708 * testsuite/libgomp.c++/pr24455-1.C: New test.
4709 * testsuite/libgomp.c++/pr24455.C: New test.
4710 * testsuite/libgomp.dg/pr24455-1.c: New test.
4711 * testsuite/libgomp.dg/pr24455.c: New test.
4713 2005-10-20 Richard Henderson <rth@redhat.com>
4715 * testsuite/libgomp.c++/loop-6.C: New.
4716 * testsuite/libgomp.dg/loop-3.c: New.
4718 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4720 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4722 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4725 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4727 * testsuite/libgomp.fortran/jacobi.f: New test.
4729 2005-10-19 Richard Henderson <rth@redhat.com>
4731 * configure.tgt (i?86-linux): Default to with_arch instead of
4732 CFLAGS. Add -mtune to match target_cpu.
4733 (x86_64-linux): Tune to i686.
4735 * fortran.c (omp_test_nest_lock_): Fix typo.
4737 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4739 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4740 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4741 * testsuite/libgomp.dg/ordered-3.c: New test.
4743 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4744 Remove volatile keyword.
4746 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4747 in COMMON block to avoid warnings on 64-bit targets.
4749 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4751 * testsuite/libgomp.dg/shared-3.c: New test.
4753 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4755 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4756 * testsuite/libgomp.fortran/reduction5.f90: New test.
4758 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4760 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4762 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4763 flush loop now that __sync_synchronize has proper memory barrier.
4764 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4765 Add -ffixed-form to dg-options.
4767 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4769 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4770 from subdirectories.
4771 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4772 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4773 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4774 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4775 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4776 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4777 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4778 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4779 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4780 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4781 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4782 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4783 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4784 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4785 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4786 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4787 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4788 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4789 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4790 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4791 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4792 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4793 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4794 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4795 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4797 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4799 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4800 lang_library_path exists. Use find instead of glob to gather tests.
4801 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4803 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4805 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4806 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4807 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4808 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4809 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4810 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4811 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4812 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4813 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4814 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4815 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4816 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4817 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4819 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4821 * testsuite/libgomp.dg/vla-1.c: New test.
4823 * testsuite/libgomp.fortran/reference2.f90: New test.
4825 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4826 declaration of omp_get_thread_num.
4827 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4830 * testsuite/libgomp.fortran/reduction1.f90: New test.
4831 * testsuite/libgomp.fortran/reduction2.f90: New test.
4832 * testsuite/libgomp.fortran/reduction3.f90: New test.
4833 * testsuite/libgomp.fortran/reduction4.f90: New test.
4835 2005-10-13 Richard Henderson <rth@redhat.com>
4837 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4838 * Makefile.in: Regenerate.
4839 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4840 * libgomp.h: Include bar.h.
4841 (struct gomp_barrier): Remove.
4842 (struct gomp_team): Add barrier. Replace master_barrier with
4843 master_release. Replace threads with ordered_release.
4844 (struct gomp_thread): Replace barrier with release.
4845 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4846 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4847 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4848 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4849 (GOMP_single_copy_end): Likewise.
4850 * team.c (gomp_threads_dock): New.
4851 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4852 (gomp_thread_start): Use gomp_barrier_wait.
4853 (new_team, free_team): Update for gomp_team changes.
4854 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4855 (gomp_team_end): Use gomp_barrier_wait.
4856 (initialize_team): Update for gomp_thread changes.
4857 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4858 (gomp_work_share_end_nowait): Use atomic ops when available.
4859 * config/linux/bar.c, config/linux/bar.h: New files.
4860 * config/posix/bar.c, config/posix/bar.h: New files.
4862 2005-10-13 Jakub Jelinek <jakub@redhat.com>
4864 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4865 * testsuite/libgomp.dg/single-2.c: New test.
4867 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4868 lang_link_flags): Unset, so that they aren't inherited from previously
4871 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4873 2005-10-12 Richard Henderson <rth@redhat.com>
4875 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4876 (libgomp_init): Use lang_test_file, lang_library_path, and
4877 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4879 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4880 (lang_test_file, lang_link_flags): New.
4881 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4883 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4884 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4885 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4886 testsuite/libgomp.c++/parallel-1.C,
4887 testsuite/libgomp.c++/reduction-1.C,
4888 testsuite/libgomp.c++/reduction-2.C,
4889 testsuite/libgomp.c++/reduction-3.C,
4890 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4891 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4892 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4893 New files, largely cribbed from the C testsuite.
4895 2005-10-12 Jakub Jelinek <jakub@redhat.com>
4897 * testsuite/libgomp.fortran/character1.f90: New test.
4898 * testsuite/libgomp.fortran/character2.f90: New test.
4900 * testsuite/libgomp.dg/nested-1.c: New test.
4901 * testsuite/libgomp.dg/nested-2.c: New test.
4902 * testsuite/libgomp.fortran/do1.f90: New test.
4903 * testsuite/libgomp.fortran/do2.f90: New test.
4905 * testsuite/libgomp.fortran/reference1.f90: New test.
4907 2005-10-11 Jakub Jelinek <jakub@redhat.com>
4909 * testsuite/libgomp.dg/reduction-1.c: New test.
4910 * testsuite/libgomp.dg/reduction-2.c: New test.
4911 * testsuite/libgomp.dg/reduction-3.c: New test.
4913 2005-10-10 Jakub Jelinek <jakub@redhat.com>
4915 * testsuite/libgomp.dg/atomic-1.c: New test.
4916 * testsuite/libgomp.dg/atomic-2.c: New test.
4918 2005-10-09 Richard Henderson <rth@redhat.com>
4920 * critical.c (atomic_lock): New.
4921 (initialize_critical): Initialize it.
4922 (GOMP_atomic_start, GOMP_atomic_end): New.
4923 * libgomp.map: Export them.
4924 * libgomp_g.h: Declare them.
4926 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4928 2005-10-02 Richard Henderson <rth@redhat.com>
4930 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
4931 to XCFLAGS instead of CFLAGS.
4933 2005-09-30 Richard Henderson <rth@redhat.com>
4935 * configure.ac: Determine whether -pthread or -lpthread is needed.
4936 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4937 * Makefine.in, configure: Rebuild.
4939 2005-09-28 Richard Henderson <rth@redhat.com>
4941 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4942 * testsuite/libgomp.dg/omp-single-3.c: New test.
4944 2005-09-28 Diego Novillo <dnovillo@redhat.com>
4946 * testsuite/libgomp.dg/omp-single-2.c: New test.
4947 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4949 2005-09-27 Richard Henderson <rth@redhat.com>
4951 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4952 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4954 2005-09-27 Jakub Jelinek <jakub@redhat.com>
4956 * testsuite/libgomp.dg/omp-loop03.c: New test.
4958 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4960 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4962 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4964 * testsuite/libgomp.dg/omp-single-1.c: New test.
4965 * testsuite/libgomp.dg/shared-1.c: Return 0.
4966 Add prototype for abort.
4967 * testsuite/libgomp.dg/shared-2.c: Likewise.
4969 2005-09-26 Jakub Jelinek <jakub@redhat.com>
4971 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4974 2005-09-26 Diego Novillo <dnovillo@redhat.com>
4976 * testsuite/libgomp.dg/shared-1.c: New test.
4977 * testsuite/libgomp.dg/shared-2.c: New test.
4979 2005-09-24 Richard Henderson <rth@redhat.com>
4981 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4983 2005-09-24 Richard Henderson <rth@redhat.com>
4985 * iter.c (gomp_iter_static_next): Round up when computing number
4986 of iterations. Don't bother distributing a remainder equally.
4988 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4989 Don't call srand. Zero b before testing.
4992 2005-09-24 Jakub Jelinek <jakub@redhat.com>
4994 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4995 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4997 2005-09-23 Jakub Jelinek <jakub@redhat.com>
4999 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
5000 without !$omp end do, followed immediately by subroutine end.
5002 2005-09-23 Diego Novillo <dnovillo@redhat.com>
5004 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
5006 2005-09-22 Richard Henderson <rth@redhat.com>
5008 * critical.c (GOMP_critical_name_start): Change argument to void**.
5009 Reuse the pointer space if the mutex fits.
5010 (GOMP_critical_name_end): Likewise.
5011 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
5012 * libgomp_g.h (GOMP_critical_name_start): Update decl.
5013 (GOMP_critical_name_end): Likewise.
5014 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
5015 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
5017 2005-09-20 Richard Henderson <rth@redhat.com>
5019 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
5020 (create_lock_lock): New.
5021 (initialize_critical): Initialize it.
5022 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
5023 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
5025 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5027 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
5029 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5031 * testsuite/libgomp.dg/omp-loop01.c: New test.
5032 * testsuite/libgomp.dg/omp-loop02.c: New test.
5034 2005-09-20 Jakub Jelinek <jakub@redhat.com>
5036 * configure.ac (AC_PROG_FC): Add.
5037 (USE_FORTRAN): New automake conditional.
5038 * configure: Rebuilt.
5039 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
5040 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
5041 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
5042 Add rules to build them.
5043 * Makefile.in: Rebuilt.
5044 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
5046 * libgomp.map: Add Fortran wrappers.
5047 * libgomp_f.h.in: New file.
5048 * omp_lib.h.in: New file.
5049 * omp_lib.f90.in: New file.
5050 * fortran.c: New file.
5051 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
5052 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
5053 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
5054 libgfortran has been built.
5055 * testsuite/libgomp.fortran/fortran.exp: New file.
5056 * testsuite/libgomp.fortran/omp_cond1.f: New test.
5057 * testsuite/libgomp.fortran/omp_cond2.f: New test.
5058 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
5059 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
5060 * testsuite/libgomp.fortran/omp_hello.f: New test.
5061 * testsuite/libgomp.fortran/omp_orphan.f: New test.
5062 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
5063 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
5064 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
5065 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
5066 * testsuite/libgomp.fortran/omp_reduction.f: New test.
5067 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
5068 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
5070 2005-08-30 Richard Henderson <rth@redhat.com>
5072 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
5073 function for when aliases are not usable.
5074 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
5075 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5076 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
5077 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
5078 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
5079 GOMP_loop_ordered_guided_next): Likewise.
5080 * ordered.c (GOMP_ordered_start): Likewise.
5082 2005-08-01 Diego Novillo <dnovillo@redhat.com>
5084 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
5085 * testsuite/libgomp.dg/omp_hello.c: Fix return code
5086 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
5087 * testsuite/libgomp.dg/omp_orphan.c: Likewise
5088 * testsuite/libgomp.dg/omp_reduction.c: Likewise
5089 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
5090 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
5091 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
5092 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
5094 2005-07-07 Eric Christopher <echristo@redhat.com>
5095 Diego Novillo <dnovillo@redhat.com>
5097 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5098 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5100 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5101 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5102 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5103 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5104 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5105 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5106 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5108 2005-06-13 Diego Novillo <dnovillo@redhat.com>
5110 * TOPLEVEL.patch: Remove.
5112 2005-05-16 Richard Henderson <rth@redhat.com>
5114 * configure.ac: Test for clock_gettime.
5115 * config.h.in, configure: Rebuild.
5116 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5117 (omp_get_wtime): Use clock_gettime if available.
5118 (omp_get_wtick): Use clock_getres if available.
5120 2005-05-11 Richard Henderson <rth@redhat.com>
5122 * config/linux/ia64/futex.h: New file.
5123 * configure.tgt: Use it.
5125 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5127 2005-05-07 Richard Henderson <rth@redhat.com>
5129 * config/linux/powerpc/futex.h: New file.
5130 * configure.tgt: Use it.
5132 * config/linux/i486/futex.h: Merge ...
5133 * config/linux/x86_64/futex.h: ... into ...
5134 * config/linux/x86/futex.h: ... here.
5135 * configure.tgt: Update to match.
5137 2005-05-06 Richard Henderson <rth@redhat.com>
5139 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5140 * config/linux/i486/futex.h: Likewise.
5141 * config/linux/x86_64/futex.h: Likewise.
5143 * config/linux/lock.c: New file.
5144 * config/linux/omp-lock.h: New file.
5146 * critical.c, env.h: Don't include omp.h
5147 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5148 * config/posix/time.c: Likewise.
5149 * config/posix/omp-lock.h: New file.
5150 * libgomp.h: Include omp-lock.h and omp.h.
5151 * Makefile.am (nodist_include_HEADERS): New.
5153 * configure.ac (PERL): New.
5154 * mkomp_h.pl: New file.
5155 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5157 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5159 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5160 build directory. Re-add -march=i486 hack.
5162 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5163 (libgomp_link_flags): Remove.
5164 (libgomp_initialized): Remove.
5165 (libgomp_init): Don't protect from reinitialization. Copy code
5166 from libstdc++ for getting the multilib set correctly.
5168 2005-05-05 Richard Henderson <rth@redhat.com>
5170 * config/linux/alpha/futex.h: New file.
5171 * configure.tgt (alpha*-*-linux*): Use it.
5173 * config/posix/mutex.c: New file.
5174 * config/posix/sem.c: Use libgomp.h.
5176 * configure.tgt (x86_64-linux): Also test CC for -m32.
5177 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5179 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5182 * Makefile.am (SUBDIRS): New.
5183 (libgomp_la_LDFLAGS): Add -lpthread.
5184 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5185 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5187 * libgomp_g.h: New file.
5188 * libgomp.h: Split out all public declarations to libgomp_g.h.
5189 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5190 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5191 * config/linux/sem.h: Likewise.
5192 * config/posix/sem.h: Likewise.
5194 * Makefile.am (AM_LDFLAGS): New.
5195 (libgomp_version_script): Split out from ...
5196 (libgomp_la_LDFLAGS): ... here.
5197 (libgomp_version_info): New.
5198 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5199 (LIBGOMP_ENABLE): New.
5200 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5201 (LIBGOMP_ENABLE_SYMVERS): New.
5202 * configure.ac (AC_INIT): Version 1.0.
5203 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5204 (enable-linux-futex): Likewise. Rename from enable-futex.
5205 (libtool_VERSION): New.
5206 (LIBGOMP_ENABLE_SYMVERS): Use it.
5207 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5208 * Makefile.in, aclocal.m4, configure: Rebuild.
5210 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5211 (gomp_mutex_unlock_slow): Fix typo.
5212 * config/linux/sem.c: Similarly.
5213 (gomp_sem_post_slow): Fix typo.
5214 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5215 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5216 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5218 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5219 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5220 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5221 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5222 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5223 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5224 LDFLAGS. Pull enable_futex check to top-level.
5225 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5226 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5228 First attempt at real configury.
5229 * Makefile, config.h: Remove file.
5230 * Makefile.am, Makefile.in: New file.
5231 * acinclude.m4 aclocal.m4: New file.
5232 * configure.ac, configure.tgt, configure: New file.
5234 * config/posix/lock.c: Rename from sys-lock.c.
5235 * config/posix/mutex.h: Rename from sys-mutex.h.
5236 * config/posix/sem.c: Rename from sys-sem.c.
5237 * config/posix/sem.h: Rename from sys-sem.h.
5238 * config/posix/proc.c: Rename from sys-proc.c.
5239 * config/posix/time.c: Rename from sys-proc.c.
5241 * config/linux/mutex.c: New file.
5242 * config/linux/mutex.h: New file.
5243 * config/linux/sem.c: New file.
5244 * config/linux/sem.h: New file.
5245 * config/linux/i486/futex.h: New file.
5246 * config/linux/x86_64/futex.h: New file.
5248 2005-05-04 Richard Henderson <rth@redhat.com>
5250 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5251 * libgomp.h: Declare them.
5252 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5253 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5255 2005-05-04 Richard Henderson <rth@redhat.com>
5257 * libgomp-1 code drop
5259 2005-05-04 Richard Henderson <rth@redhat.com>
5261 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5262 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5263 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5264 (gomp_iter_static_next): Update.
5265 (gomp_ordered_static_next): Update.
5266 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5267 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5268 totally empty range.
5269 (gomp_loop_ordered_static_next): Refine test for calling
5270 gomp_ordered_static_next.
5271 * testsuite/ordered-1.c: Add case for more threads than iterations.
5273 * iter.c (gomp_iter_runtime_next_locked): Remove.
5274 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5275 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5276 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5277 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5278 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5279 gomp_loop_ordered_guided_next): Downcase name, make static, add
5280 an external alias with the old name.
5281 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5282 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5283 switch and call one of the above static functions.
5284 * libgomp.h: Update.
5286 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5287 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5288 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5289 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5290 GOMP_loop_ordered_guided_start): Update to match.
5291 * sections.c (GOMP_sections_start): Likewise.
5292 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5294 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5295 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5296 Use bounds check instead of modulus.
5297 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5298 (gomp_ordered_last): Don't sync with ordered_owner here.
5299 (gomp_ordered_next): Likewise.
5300 (gomp_ordered_static_loop_next): Likewise.
5301 * loop.c, libgomp.h: Update to match.
5303 * libgomp.h (GOMP_barrier): Declare.
5305 * testsuite/barrier-1.c: New file.
5306 * testsuite/critical-1.c: New file.
5307 * testsuite/ordered-2.c: New file.
5308 * testsuite/ordered-1.c: New file.
5309 * testsuite/sections-1.c: New file.
5310 * testsuite/single-1.c: New file.
5311 * testsuite/Makefile (TESTS): Add them.
5313 2005-05-04 Richard Henderson <rth@redhat.com>
5315 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5316 * loop.c (GOMP_loop_static_start): If not the startup thread,
5317 acquire the mutex to wait for initialization complete.
5318 (GOMP_loop_ordered_static_start): Likewise.
5319 (GOMP_loop_ordered_runtime_start): Likewise.
5320 (GOMP_loop_ordered_static_first): Remove.
5321 (GOMP_loop_ordered_dynamic_first): Remove.
5322 (GOMP_loop_ordered_guided_first): Remove.
5323 (GOMP_loop_ordered_runtime_first): Remove.
5324 * ordered.c (gomp_ordered_loop_first): Post to own release when
5325 we're the first thread.
5326 (gomp_ordered_loop_last): Wait on release if not owner.
5327 (gomp_ordered_loop_next): Likewise.
5328 (gomp_ordered_static_loop_init): New.
5329 (gomp_ordered_static_loop_next): Use ordered_owner.
5330 (GOMP_ordered_start): Likewise.
5331 * work.c (gomp_new_work_share): Initialize ordered_owner.
5333 2005-05-03 Richard Henderson <rth@redhat.com>
5335 * Makefile (OPT): New.
5338 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5339 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5340 * libgomp.h, libgomp.map, NOTES: Update to match.
5342 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5343 Add initialized and thr members.
5344 (gomp_thread_start): Pause when initially spawned to wait for
5345 the whole team to be created.
5346 (gomp_team_start): Release team members at the end.
5348 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5349 (f_foo_1): Use GOMP_loop_end.
5350 (f_foo_2): Use GOMP_loop_end_nowait.
5352 * testsuite/loop-2.c: New file.
5353 * testsuite/Makefile (TESTS): Add it.
5355 2005-05-03 Richard Henderson <rth@redhat.com>
5357 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5358 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5359 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5362 * testsuite/Makefile: New file.
5363 * testsuite/loop-1.c: New file.
5365 2005-05-03 Richard Henderson <rth@redhat.com>
5367 Initial implementation and checkin.