1 2015-04-30 James Norris <jnorris@codesourcery.com>
4 * testsuite/lib/libgomp.exp
5 (check_effective_target_openacc_host_selected)
6 (check_effective_target_openacc_host_nonshm_selected): New
8 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
10 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
12 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
17 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
18 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
19 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
20 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
21 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
22 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
23 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
24 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
25 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
26 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
27 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
28 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
29 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
30 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
31 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
32 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
33 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
34 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
35 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
36 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
37 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
38 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
39 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
40 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
41 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
42 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
43 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
44 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
45 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
46 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
47 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
48 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
49 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
50 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
51 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
52 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
54 2015-04-08 Julian Brown <julian@codesourcery.com>
56 * libgomp.h (target_mem_desc: Remove mem_map field.
57 (acc_dispatch_t): Remove open_device_func, close_device_func,
58 get_device_num_func, set_device_num_func, target_data members.
59 Change create_thread_data_func argument to device number instead of
61 * oacc-async.c (assert.h): Include.
62 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
63 (acc_wait_all, acc_wait_all_async): Use current host thread's
64 active device, not base_dev.
65 * oacc-cuda.c (acc_get_current_cuda_device)
66 (acc_get_current_cuda_context, acc_get_cuda_stream)
67 (acc_set_cuda_stream): Likewise.
68 * oacc-host.c (host_dispatch): Don't set open_device_func,
69 close_device_func, get_device_num_func or set_device_num_func.
70 * oacc-init.c (base_dev, init_key): Remove.
71 (cached_base_dev): New.
72 (name_of_acc_device_t): New.
73 (acc_init_1): Initialise default-numbered device, not zeroth.
74 (acc_shutdown_1): Close all devices of a given type.
75 (goacc_destroy_thread): Don't use base_dev.
76 (lazy_open, lazy_init, lazy_init_and_open): Remove.
77 (goacc_attach_host_thread_to_device): New.
78 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
79 (acc_get_num_devices): Don't use base_dev.
80 (acc_set_device_type): Reimplement.
81 (acc_get_device_type): Don't use base_dev.
82 (acc_get_device_num): Tweak logic.
83 (acc_set_device_num): Likewise.
84 (acc_on_device): Use acc_get_device_type.
85 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
86 (goacc_lazy_initialize): Reimplement with acc_init and
87 goacc_attach_host_thread_to_device.
88 * oacc-int.h (goacc_thread): Add base_dev field.
89 (base_dev): Remove extern declaration.
90 (goacc_attach_host_thread_to_device): Add prototype.
91 * oacc-mem.c (acc_malloc): Use current thread's device instead of
94 (acc_memcpy_to_device): Likewise.
95 (acc_memcpy_from_device): Likewise.
96 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
97 goacc_lazy_initialize (throughout).
98 (GOACC_parallel): Use tgt_offset to locate target functions.
99 * target.c (gomp_map_vars): Don't set tgt->mem_map.
100 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
101 (gomp_load_plugin_for_device): Remove open_device, close_device,
102 get_device_num, set_device_num openacc hook initialisation. Don't set
104 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
105 (GOMP_OFFLOAD_openacc_close_device)
106 (GOMP_OFFLOAD_openacc_get_device_num)
107 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
108 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
110 * plugin/plugin-nvptx.c (ptx_inited): Remove.
111 (instantiated_devices, ptx_dev_lock): New.
112 (struct ptx_image_data): New.
113 (ptx_devices, ptx_images, ptx_image_lock): New.
114 (fini_streams_for_device): Reorder cuStreamDestroy call.
115 (nvptx_get_num_devices): Remove forward declaration.
116 (nvptx_init): Change return type to bool.
117 (nvptx_fini): Remove.
118 (nvptx_attach_host_thread_to_device): New.
119 (nvptx_open_device): Return struct ptx_device* instead of void*.
120 (nvptx_close_device): Change argument type to struct ptx_device*,
122 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
123 (kernel_target_data, kernel_host_table): Remove static globals.
124 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
125 (GOMP_OFFLOAD_init_device): Reimplement.
126 (GOMP_OFFLOAD_fini_device): Likewise.
127 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
128 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
129 (GOMP_OFFLOAD_host2dev): Use ORD argument.
130 (GOMP_OFFLOAD_openacc_open_device)
131 (GOMP_OFFLOAD_openacc_close_device)
132 (GOMP_OFFLOAD_openacc_set_device_num)
133 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
134 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
138 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
140 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
142 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
143 * libgomp.h (struct gomp_memory_mapping): Remove.
144 (struct target_mem_desc): Change type of mem_map from
145 gomp_memory_mapping * to splay_tree_s *.
146 (struct gomp_device_descr): Remove register_image_func, get_table_func.
147 Add load_image_func, unload_image_func.
148 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
149 Remove offload_regions_registered.
150 (gomp_init_tables): Remove.
151 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
153 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
154 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
155 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
156 offload_regions_registered.
157 Initialize load_image_func, unload_image_func, mem_map.root.
158 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
159 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
160 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
161 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
162 gomp_memory_mapping *. Use dev's lock and splay_tree.
163 (lookup_dev): Use dev's lock.
164 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
165 (acc_is_present): Likewise.
166 (acc_map_data): Likewise.
167 (acc_unmap_data): Likewise. Use dev's lock.
168 (present_create_copy): Likewise.
169 (delete_copyout): Pass dev to lookup_host instead of mem_map.
170 (update_dev_host): Likewise.
171 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
172 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
173 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
174 (GOMP_OFFLOAD_get_table): Remove
175 (GOMP_OFFLOAD_load_image): New function.
176 (GOMP_OFFLOAD_unload_image): New function.
177 * target.c (register_lock): New mutex for offload image registration.
178 (num_devices): Do not guard with PLUGIN_SUPPORT.
179 (gomp_realloc_unlock): New static function.
180 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
182 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
183 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
184 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
186 (gomp_unmap_vars): Likewise.
187 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
188 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
189 (gomp_offload_image_to_device): New static function.
190 (GOMP_offload_register): Add mutex lock.
191 Call gomp_offload_image_to_device for all initialized devices.
192 Replace gomp_realloc with gomp_realloc_unlock.
193 (GOMP_offload_unregister): New function.
194 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
195 get_table_func from the plugin with calls to init_device_func and
196 gomp_offload_image_to_device.
197 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
199 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
200 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
201 (GOMP_target_data): Do not call gomp_init_tables.
202 (GOMP_target_update): Likewise. Remove argument from gomp_update.
203 (gomp_load_plugin_for_device): Replace register_image and get_table
204 with load_image and unload_image in DLSYM ().
205 (gomp_register_images_for_device): Remove function.
206 (gomp_target_init): Do not initialize current_device.mem_map.*,
207 current_device.offload_regions_registered.
208 Remove call to gomp_register_images_for_device.
209 Do not free offload_images and num_offload_images.
211 2015-03-30 Jakub Jelinek <jakub@redhat.com>
214 * testsuite/libgomp.fortran/pr65597.f90: New test.
216 2015-03-27 Tom de Vries <tom@codesourcery.com>
219 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
220 (init, check): New function.
221 (foo): Change return type to void.
222 (main): Call init and check.
224 2015-03-27 Tom de Vries <tom@codesourcery.com>
227 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
228 (foo): Use M for non-inner loops to scale down test-case.
230 2015-03-25 Kai Tietz <ktietz@redhat.com>
233 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
234 (GOACC_data_start): Likewise.
235 * target.c (gomp_map_vars): Likewise.
237 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
239 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
242 2015-03-19 Jakub Jelinek <jakub@redhat.com>
244 * testsuite/libgomp.c/target-10.c: New test.
245 * testsuite/libgomp.c++/target-4.C: New test.
247 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
249 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
250 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
252 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
254 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
255 * configure.ac (*-*-rtems*): Assume Pthread is supported.
256 (pthread.h): Check for this header file.
257 * configure: Regenerate.
259 2015-02-25 Tom de Vries <tom@codesourcery.com>
261 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
262 (check_reduction_op, check_reduction_macro, max, min):
264 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
266 (main): Use new functions.
268 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
270 * target.c (gomp_load_plugin_for_device): Use const char * instead of
271 char * for variables holding dlerror return values.
274 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
276 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
278 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
279 Cesar Philippidis <cesar@codesourcery.com>
281 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
282 GOACC_ctaid, and GOACC_nctaid routines.
284 2015-02-11 Jakub Jelinek <jakub@redhat.com>
287 * testsuite/libgomp.c/atomic-18.c: New test.
288 * testsuite/libgomp.c++/atomic-16.C: New test.
290 2015-02-04 Jakub Jelinek <jakub@redhat.com>
294 * testsuite/libgomp.c/pr64824.c: New test.
295 * testsuite/libgomp.c/pr64868.c: New test.
296 * testsuite/libgomp.c++/pr64824.C: New test.
297 * testsuite/libgomp.c++/pr64868.C: New test.
299 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
302 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
304 * config/aix/plugin-suffix.h: Delete.
306 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
309 * configure.tgt (*-*-aix*): Use config_path "aix posix".
310 (*-*-darwin*): Use config_path "bsd darwin posix".
311 (*-*-hpux*): Use config_path "hpux posix".
312 * target.c: Add include of plugin-suffix.h and use
314 * config/aix/plugin-suffix.h: New file.
315 * config/darwin/plugin-suffix.h: New file.
316 * config/hpux/plugin-suffix.h: New file.
317 * config/posix/plugin-suffix.h: New file.
319 2015-01-23 Jakub Jelinek <jakub@redhat.com>
322 * libgomp.c/pr64734.c: New test.
324 2015-01-23 Tom de Vries <tom@codesourcery.com>
327 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
329 2015-01-23 Tom de Vries <tom@codesourcery.com>
332 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
335 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
338 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
339 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
340 formal parameter. Update all users.
341 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
342 Document unused formal parameter.
344 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
346 * oacc-parallel.c: Don't include <alloca.h>.
347 (GOACC_parallel): Use gomp_alloca instead of alloca.
349 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
351 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
353 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
354 James Norris <jnorris@codesourcery.com>
355 Tom de Vries <tom@codesourcery.com>
356 Julian Brown <julian@codesourcery.com>
357 Cesar Philippidis <cesar@codesourcery.com>
358 Nathan Sidwell <nathan@codesourcery.com>
359 Tobias Burnus <burnus@net-b.de>
361 * Makefile.am (search_path): Add $(top_srcdir)/../include.
362 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
363 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
364 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
365 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
366 Include $(top_srcdir)/plugin/Makefrag.am.
367 (nodist_libsubinclude_HEADERS): Add openacc.h.
368 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
369 openacc.f90, openacc.mod, openacc_kinds.mod.
370 (omp_lib.mod): Generalize into...
371 (%.mod): ... this new rule.
372 (openacc_kinds.mod, openacc.mod): New rules.
373 * plugin/configfrag.ac: New file.
374 * configure.ac: Move plugin/offloading support into it. Include
375 it. Instantiate testsuite/libgomp-test-support.pt.exp.
376 * plugin/Makefrag.am: New file.
377 * testsuite/Makefile.am (OFFLOAD_TARGETS)
378 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
380 (libgomp-test-support.exp): New rule.
381 (all-local): Depend on it.
382 * Makefile.in: Regenerate.
383 * testsuite/Makefile.in: Regenerate.
384 * config.h.in: Likewise.
385 * configure: Likewise.
386 * configure.tgt: Harden shell syntax.
387 * env.c: Include "oacc-int.h".
388 (parse_acc_device_type): New function.
389 (gomp_debug_var, goacc_device_type, goacc_device_num): New
391 (initialize_env): Initialize those. Call
392 goacc_runtime_initialize.
393 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
394 (gomp_fatal): Call gomp_vfatal.
395 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
396 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
397 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
398 (splay_tree_node, splay_tree, splay_tree_key)
399 (struct target_mem_desc, struct splay_tree_key_s)
400 (struct gomp_memory_mapping, struct acc_dispatch_t)
401 (struct gomp_device_descr, gomp_acc_insert_pointer)
402 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
403 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
404 (gomp_free_memmap, gomp_fini_device): New declarations.
405 (gomp_vdebug, gomp_debug): New macros.
406 Include "splay-tree.h".
407 * libgomp.map (OACC_2.0): New symbol version. Use for
408 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
409 acc_set_device_type_h_, acc_get_device_type,
410 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
411 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
412 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
413 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
414 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
415 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
416 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
417 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
418 acc_copyin_array_h_, acc_present_or_copyin,
419 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
420 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
421 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
422 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
423 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
424 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
425 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
426 acc_update_device, acc_update_device_32_h_,
427 acc_update_device_64_h_, acc_update_device_array_h_,
428 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
429 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
430 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
431 acc_is_present_64_h_, acc_is_present_array_h_,
432 acc_memcpy_to_device, acc_memcpy_from_device,
433 acc_get_current_cuda_device, acc_get_current_cuda_context,
434 acc_get_cuda_stream, acc_set_cuda_stream.
435 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
436 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
437 GOACC_update, GOACC_wait, GOACC_get_thread_num,
438 GOACC_get_num_threads.
439 (GOMP_PLUGIN_1.0): New symbol version. Use for
440 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
441 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
442 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
443 GOMP_PLUGIN_acc_thread.
444 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
445 environment variable.
446 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
447 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
448 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
449 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
450 (splay_tree_remove): New declarations.
451 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
452 (splay_tree_remove, splay_tree_lookup): Move into...
453 * splay-tree.c: ... this new file.
454 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
455 (splay_tree_node, splay_tree, splay_tree_key)
456 (struct target_mem_desc, struct splay_tree_key_s)
457 (struct gomp_device_descr): Don't declare.
458 (num_devices_openmp): New variable.
459 (gomp_get_num_devices ): Use it.
460 (gomp_init_targets_once): New function.
461 (gomp_get_num_devices ): Use it.
462 (get_kind, gomp_copy_from_async, gomp_free_memmap)
463 (gomp_fini_device, gomp_register_image_for_device): New functions.
464 (gomp_map_vars): Add devaddrs parameter.
465 (gomp_update): Add mm parameter.
466 (gomp_init_device): Move most of it into...
467 (gomp_init_tables): ... this new function.
468 (gomp_register_images_for_device): Remove function.
469 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
470 Make them hidden instead of static.
471 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
472 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
473 (GOMP_target_end_data, GOMP_target_update)
474 (gomp_load_plugin_for_device, gomp_target_init): Update for
476 * oacc-async.c: New file.
477 * oacc-cuda.c: Likewise.
478 * oacc-host.c: Likewise.
479 * oacc-init.c: Likewise.
480 * oacc-int.h: Likewise.
481 * oacc-mem.c: Likewise.
482 * oacc-parallel.c: Likewise.
483 * oacc-plugin.c: Likewise.
484 * oacc-plugin.h: Likewise.
485 * oacc-ptx.h: Likewise.
486 * openacc.f90: Likewise.
487 * openacc.h: Likewise.
488 * openacc_lib.h: Likewise.
489 * plugin/plugin-host.c: Likewise.
490 * plugin/plugin-nvptx.c: Likewise.
491 * libgomp-plugin.c: Likewise.
492 * libgomp-plugin.h: Likewise.
493 * libgomp_target.h: Remove file after merging content into the
494 former file. Update all users.
495 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
496 (offload_targets_s, offload_targets_s_openacc): New variables.
497 (check_effective_target_openacc_nvidia_accel_present)
498 (check_effective_target_openacc_nvidia_accel_selected): New
500 (libgomp_init): Update for OpenACC changes.
501 * testsuite/libgomp-test-support.exp.in: New file.
502 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
503 * testsuite/libgomp.oacc-c/c.exp: Likewise.
504 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
505 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
506 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
507 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
508 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
509 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
510 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
511 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
512 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
513 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
514 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
515 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
516 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
517 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
518 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
519 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
520 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
521 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
522 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
523 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
524 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
525 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
526 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
527 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
528 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
529 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
530 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
531 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
532 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
533 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
534 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
535 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
536 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
537 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
538 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
539 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
540 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
541 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
542 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
543 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
544 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
545 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
546 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
547 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
548 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
549 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
550 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
551 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
552 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
553 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
554 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
555 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
556 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
557 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
558 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
559 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
560 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
561 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
562 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
563 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
564 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
565 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
566 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
567 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
568 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
569 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
570 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
571 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
572 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
573 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
574 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
575 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
576 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
577 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
578 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
579 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
580 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
581 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
582 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
583 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
584 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
585 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
586 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
587 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
588 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
589 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
590 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
591 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
592 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
593 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
594 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
595 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
596 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
597 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
598 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
599 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
600 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
601 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
602 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
603 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
604 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
605 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
606 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
607 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
608 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
609 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
610 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
611 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
612 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
613 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
614 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
615 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
616 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
617 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
618 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
619 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
620 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
621 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
622 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
623 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
624 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
625 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
626 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
627 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
628 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
629 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
630 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
631 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
632 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
633 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
634 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
635 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
636 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
637 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
638 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
639 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
640 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
641 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
643 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
644 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
645 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
646 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
647 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
648 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
649 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
650 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
651 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
652 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
653 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
654 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
655 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
656 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
657 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
658 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
659 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
660 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
661 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
662 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
663 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
664 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
665 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
666 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
667 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
668 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
669 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
670 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
671 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
672 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
673 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
674 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
675 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
676 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
677 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
678 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
679 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
680 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
681 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
682 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
683 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
684 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
685 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
686 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
687 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
688 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
689 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
690 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
691 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
692 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
693 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
694 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
695 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
696 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
697 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
698 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
699 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
700 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
701 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
702 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
704 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
705 Julian Brown <julian@codesourcery.com>
706 David Malcolm <dmalcolm@redhat.com>
708 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
709 to "GNU Offloading and Multi Processing Runtime Library". Change
711 * configure: Regenerate.
712 * libgomp.texi: Update.
714 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
716 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
718 * configure: Regenerate.
720 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
721 "intelmic" in $offload_targets.
723 2015-01-05 Jakub Jelinek <jakub@redhat.com>
725 Update copyright years.
727 * libgomp.texi: Bump @copying's copyright year.
729 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
731 * testsuite/lib/libgomp.exp: Load target-utils.exp.
732 Move load of target-supportes.exp earlier.
734 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
736 * testsuite/libgomp.c/target-9.c: New test.
738 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
740 * config.h.in: Regenerate.
741 * configure: Regenerate.
742 * configure.ac: Add GCC_CHECK_EMUTLS.
743 * libgomp.h: Add check for USE_EMUTLS: this case
744 is equal to HAVE_TLS.
747 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
749 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
751 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
752 Ilya Verbin <ilya.verbin@intel.com>
754 * testsuite/libgomp.c/target-critical-1.c: New test.
756 2014-11-26 Jakub Jelinek <jakub@redhat.com>
758 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
759 to dg-options unless expensive testing is on.
760 (TESTITERS): Define to N if not defined.
761 (main): Use TESTITERS instead of N.
762 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
763 dg-additional-options depending on whether expensive testing is on.
764 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
765 Decrease N to 100000 and CHUNKSZ to 10000.
767 2014-11-24 Jakub Jelinek <jakub@redhat.com>
770 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
771 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
773 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
775 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
777 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
780 * configure: Regenerated.
782 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
784 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
785 vect_simd_clones effective target.
786 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
788 2014-11-14 Jakub Jelinek <jakub@redhat.com>
790 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
792 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
793 instead of 32 as block_size.
795 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
796 Ilya Verbin <ilya.verbin@intel.com>
798 * Makefile.in: Regenerate.
799 * configure: Regenerate.
800 * configure.ac: Set up offload_additional_options,
801 offload_additional_lib_paths and offload_targets.
802 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
803 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
804 * testsuite/Makefile.in: Regenerate.
805 * testsuite/lib/libgomp.exp (libgomp_init): Append
806 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
807 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
808 build directory to LD_LIBRARY_PATH for intelmic offload targets.
810 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
811 Ilya Verbin <ilya.verbin@intel.com>
812 Kirill Yukhin <kirill.yukhin@intel.com>
813 Ilya Tocar <ilya.tocar@intel.com>
815 * testsuite/lib/libgomp.exp
816 (check_effective_target_offload_device): New.
817 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
818 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
819 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
820 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
821 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
822 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
823 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
824 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
825 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
826 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
827 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
828 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
829 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
830 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
831 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
832 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
833 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
834 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
835 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
836 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
837 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
838 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
839 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
840 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
841 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
842 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
843 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
844 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
845 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
846 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
847 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
848 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
849 * testsuite/libgomp.c/target-7.c: Fix test.
850 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
851 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
852 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
853 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
854 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
855 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
856 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
857 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
858 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
859 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
860 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
861 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
862 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
863 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
864 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
865 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
866 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
867 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
868 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
869 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
870 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
871 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
872 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
873 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
874 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
875 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
876 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
877 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
878 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
879 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
880 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
882 2014-11-13 Jakub Jelinek <jakub@redhat.com>
883 Ilya Verbin <ilya.verbin@intel.com>
884 Thomas Schwinge <thomas@codesourcery.com>
885 Andrey Turetskiy <andrey.turetskiy@intel.com>
887 * libgomp.map (GOMP_4.0.1): New symbol version.
888 Add GOMP_offload_register.
889 * libgomp_target.h: New file.
890 * splay-tree.h: New file.
891 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
892 (gomp_target_init): New forward declaration.
893 (gomp_is_initialized): New static variable.
894 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
895 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
897 (offload_images, num_offload_images, devices, num_devices): New static
899 (splay_compare): New static function.
900 (struct gomp_device_descr): New structure.
901 (gomp_get_num_devices): Call gomp_target_init.
902 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
903 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
904 (GOMP_offload_register): New function.
905 (GOMP_target): Arrange for host callback to be performed in a separate
906 initial thread and contention group, inheriting ICVs from
907 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
908 Add device initialization and lookup for target function in splay tree.
909 (GOMP_target_data): Add device initialization and call gomp_map_vars.
910 (GOMP_target_end_data): Call gomp_unmap_vars.
911 (GOMP_target_update): Add device initialization and call gomp_update.
912 (gomp_load_plugin_for_device, gomp_register_images_for_device)
913 (gomp_target_init): New static functions.
915 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
916 Thomas Schwinge <thomas@codesourcery.com>
917 Ilya Verbin <ilya.verbin@intel.com>
918 Andrey Turetskiy <andrey.turetskiy@intel.com>
920 * config.h.in: Regenerate.
921 * configure: Regenerate.
922 * configure.ac: Check for libdl, required for plugin support.
923 (PLUGIN_SUPPORT): Define if plugins are supported.
924 (enable_offload_targets): Support Intel MIC targets.
925 (OFFLOAD_TARGETS): List of target names suitable for offloading.
927 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
930 * configure: Regenerate.
932 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
934 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
936 2014-10-06 Marek Polacek <polacek@redhat.com>
938 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
939 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
940 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
941 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
943 2014-10-06 Marek Polacek <polacek@redhat.com>
945 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
946 * testsuite/libgomp.c/nqueens-1.c: Likewise.
947 * testsuite/libgomp.c/pr26943-3.c: Likewise.
948 * testsuite/libgomp.c/pr26943-4.c: Likewise.
949 * testsuite/libgomp.c/pr36802-2.c: Likewise.
950 * testsuite/libgomp.c/pr36802-3.c: Likewise.
951 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
952 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
953 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
954 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
955 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
956 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
957 * testsuite/libgomp.c/omp-single-1.c: Likewise.
958 * testsuite/libgomp.c/omp-single-2.c: Likewise.
959 * testsuite/libgomp.c/omp_matvec.c: Likewise.
960 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
961 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
962 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
965 2014-10-03 Jakub Jelinek <jakub@redhat.com>
968 * testsuite/libgomp.c/pr61200.c: New test.
970 2014-09-18 Jakub Jelinek <jakub@redhat.com>
973 * testsuite/libgomp.c++/pr63248.C: New test.
975 2014-08-04 Jakub Jelinek <jakub@redhat.com>
977 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
978 is not zero, but taskgroup->children is NULL and there are
979 any task->children, schedule those instead of waiting.
980 * testsuite/libgomp.c/depend-6.c: New test.
981 * testsuite/libgomp.c/depend-7.c: New test.
982 * testsuite/libgomp.c/depend-8.c: New test.
983 * testsuite/libgomp.c/depend-9.c: New test.
984 * testsuite/libgomp.c/depend-10.c: New test.
986 2014-08-01 Jakub Jelinek <jakub@redhat.com>
988 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
989 (struct gomp_taskwait): New type.
990 (struct gomp_task): Add taskwait and parent_depends_on, remove
991 in_taskwait and taskwait_sem fields.
992 (gomp_finish_task): Don't destroy taskwait_sem.
993 * task.c (gomp_init_task): Don't init in_taskwait, instead init
994 taskwait and parent_depends_on.
995 (GOMP_task): For if (0) tasks with depend clause that depend on
996 earlier tasks don't defer them, instead call
997 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
998 Initialize redundant_out field, for redundant out entries just
999 move them at the end of linked list instead of removing them
1000 completely, and set redundant_out flag instead of redundant.
1001 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1003 (gomp_task_run_post_handle_dependers): If parent is in
1004 gomp_task_maybe_wait_for_dependencies and newly runnable task
1005 is not parent_depends_on, queue it in parent->children linked
1006 list after all runnable tasks with parent_depends_on set.
1007 Adjust for addition of taskwait indirection.
1008 (gomp_task_run_post_remove_parent): If parent is in
1009 gomp_task_maybe_wait_for_dependencies and task to be removed
1010 is parent_depends_on, decrement n_depend and if needed awake
1011 parent. Adjust for addition of taskwait indirection.
1012 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1013 (gomp_task_maybe_wait_for_dependencies): New function.
1014 * testsuite/libgomp.c/depend-5.c: New test.
1016 2014-07-13 Tobias Burnus <burnus@net-b.de>
1018 * testsuite/libgomp.fortran/pr34020.f90: Make compile
1019 with TS 18508/Fortran 2015.
1021 2014-07-06 Marek Polacek <polacek@redhat.com>
1024 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1026 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1028 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1029 matches regex $lang_source_re, add $lang_include_flags to options.
1030 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1031 * testsuite/libgomp.c++/c++.exp: Likewise.
1032 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1033 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1035 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1037 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1039 * testsuite/libgomp.fortran/fortran.exp: Explain
1040 gfortran-dg-runtest usage.
1042 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1044 * testsuite/libgomp.fortran/simd5.f90: New test.
1045 * testsuite/libgomp.fortran/simd6.f90: New test.
1046 * testsuite/libgomp.fortran/simd7.f90: New test.
1048 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1050 * testsuite/libgomp.c/for-2.c: Define SC to static for
1051 #pragma omp for simd testing.
1052 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1053 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1055 * testsuite/libgomp.c/simd-14.c: New test.
1056 * testsuite/libgomp.c/simd-15.c: New test.
1057 * testsuite/libgomp.c/simd-16.c: New test.
1058 * testsuite/libgomp.c/simd-17.c: New test.
1059 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1060 #pragma omp for simd testing.
1061 * testsuite/libgomp.c++/simd10.C: New test.
1062 * testsuite/libgomp.c++/simd11.C: New test.
1063 * testsuite/libgomp.c++/simd12.C: New test.
1064 * testsuite/libgomp.c++/simd13.C: New test.
1066 * testsuite/libgomp.fortran/aligned1.f03: New test.
1067 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1068 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1069 tasks with !$omp parallel !$omp single.
1070 * testsuite/libgomp.fortran/target8.f90: New test.
1071 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1072 not to use trim in the combiner, instead call elemental function.
1073 (fn): New elemental function.
1074 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1076 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1078 * testsuite/libgomp.fortran/udr12.f90: New test.
1079 * testsuite/libgomp.fortran/udr13.f90: New test.
1080 * testsuite/libgomp.fortran/udr14.f90: New test.
1081 * testsuite/libgomp.fortran/udr15.f90: New test.
1083 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1085 * omp_lib.f90.in (openmp_version): Set to 201307.
1086 * omp_lib.h.in (openmp_version): Likewise.
1087 * testsuite/libgomp.c/target-8.c: New test.
1088 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1089 and inbranch clauses.
1090 * testsuite/libgomp.fortran/depend-3.f90: New test.
1091 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1093 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1094 * testsuite/libgomp.fortran/target1.f90: New test.
1095 * testsuite/libgomp.fortran/target2.f90: New test.
1096 * testsuite/libgomp.fortran/target3.f90: New test.
1097 * testsuite/libgomp.fortran/target4.f90: New test.
1098 * testsuite/libgomp.fortran/target5.f90: New test.
1099 * testsuite/libgomp.fortran/target6.f90: New test.
1100 * testsuite/libgomp.fortran/target7.f90: New test.
1102 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1105 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1106 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1107 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1108 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1109 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1110 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1111 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1112 * testsuite/libgomp.fortran/associate1.f90: New test.
1113 * testsuite/libgomp.fortran/associate2.f90: New test.
1114 * testsuite/libgomp.fortran/procptr1.f90: New test.
1116 2014-06-06 Jakub Jelinek <jakub@redhat.com>
1118 * testsuite/libgomp.fortran/simd1.f90: New test.
1119 * testsuite/libgomp.fortran/udr1.f90: New test.
1120 * testsuite/libgomp.fortran/udr2.f90: New test.
1121 * testsuite/libgomp.fortran/udr3.f90: New test.
1122 * testsuite/libgomp.fortran/udr4.f90: New test.
1123 * testsuite/libgomp.fortran/udr5.f90: New test.
1124 * testsuite/libgomp.fortran/udr6.f90: New test.
1125 * testsuite/libgomp.fortran/udr7.f90: New test.
1126 * testsuite/libgomp.fortran/udr8.f90: New test.
1127 * testsuite/libgomp.fortran/udr9.f90: New test.
1128 * testsuite/libgomp.fortran/udr10.f90: New test.
1129 * testsuite/libgomp.fortran/udr11.f90: New test.
1131 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
1133 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1134 vect_simd_clones effective target.
1135 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1137 2014-05-21 Jakub Jelinek <jakub@redhat.com>
1140 * testsuite/libgomp.c++/simd-9.C: New test.
1142 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
1144 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1145 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1146 texts according to their @menu entry positions.
1148 2014-05-11 Jakub Jelinek <jakub@redhat.com>
1150 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1151 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1152 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1153 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1154 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1155 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1156 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1157 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1158 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1159 * testsuite/libgomp.fortran/depend-1.f90: New test.
1160 * testsuite/libgomp.fortran/depend-2.f90: New test.
1161 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1162 * testsuite/libgomp.fortran/simd1.f90: New test.
1163 * testsuite/libgomp.fortran/simd2.f90: New test.
1164 * testsuite/libgomp.fortran/simd3.f90: New test.
1165 * testsuite/libgomp.fortran/simd4.f90: New test.
1166 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1168 2014-05-02 Jakub Jelinek <jakub@redhat.com>
1170 * testsuite/libgomp.c/simd-10.c: New test.
1171 * testsuite/libgomp.c/simd-11.c: New test.
1172 * testsuite/libgomp.c/simd-12.c: New test.
1173 * testsuite/libgomp.c/simd-13.c: New test.
1175 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1177 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1178 atomic type clauses in any order and optional comma in between.
1179 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1180 * testsuite/libgomp.c/atomic-17.c: Likewise.
1182 * testsuite/libgomp.c/simd-7.c: New test.
1183 * testsuite/libgomp.c/simd-8.c: New test.
1184 * testsuite/libgomp.c/simd-9.c: New test.
1185 * testsuite/libgomp.c/loop-16.c: New test.
1187 2014-04-02 Richard Henderson <rth@redhat.com>
1189 * config/linux/futex.h (futex_wait): Get error value from errno.
1190 (futex_wake): Likewise.
1192 2014-03-25 Jakub Jelinek <jakub@redhat.com>
1195 * testsuite/libgomp.c++/udr-11.C: New test.
1196 * testsuite/libgomp.c++/udr-12.C: New test.
1197 * testsuite/libgomp.c++/udr-13.C: New test.
1198 * testsuite/libgomp.c++/udr-14.C: New test.
1199 * testsuite/libgomp.c++/udr-15.C: New test.
1200 * testsuite/libgomp.c++/udr-16.C: New test.
1201 * testsuite/libgomp.c++/udr-17.C: New test.
1202 * testsuite/libgomp.c++/udr-18.C: New test.
1203 * testsuite/libgomp.c++/udr-19.C: New test.
1205 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1207 Update copyright years
1209 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1211 * hashtab.h: Use the standard form for the copyright notice.
1213 2014-01-02 Tobias Burnus <burnus@net-b.de>
1215 * libgomp.texi: Bump @copying's copyright year.
1217 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
1219 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1220 alloca () with __builtin_alloca ().
1221 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1222 * testsuite/libgomp.c/lock-3.c: Likewise.
1223 * testsuite/libgomp.c/pr48591.c: Likewise.
1225 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1228 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1231 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1234 * testsuite/libgomp.c/pr58756.c: New test.
1236 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1239 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1242 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1244 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1246 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1247 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1248 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1249 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1252 * libgomp_g.h: Include <stddef.h> for size_t.
1254 * libgomp.spec.in: Update comment about libgomp's dependencies.
1255 * configure.ac: Likewise.
1256 * configure: Regenerate.
1258 2013-10-16 Tobias Burnus <burnus@net-b.de>
1260 * libgomp.texi: (Runtime Library Routines): Update references for
1261 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1262 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1263 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1264 (Environment Variables): Update references for OpenMP 4.0. Add
1265 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1266 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1269 2013-10-14 Jakub Jelinek <jakub@redhat.com>
1271 * env.c (parse_bind_var): Initialize value to avoid
1272 (false positive) warning.
1274 2013-10-12 Jakub Jelinek <jakub@redhat.com>
1277 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1279 (gomp_init_num_threads): Move i variable declaration into
1280 #ifdef CPU_ALLOC_SIZE block.
1281 * config/linux/affinity.c (gomp_affinity_init_level): Test
1282 gomp_places_list_len == 0 rather than gomp_places_list == 0
1283 when checking for topology reading error.
1284 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1285 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1286 gomp_places_list, only parse env var and always return false.
1287 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1288 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1289 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1290 and either of these variables were parsed correctly into a places
1293 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1294 Jakub Jelinek <jakub@redhat.com>
1296 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1297 of 5 loopfn matches.
1298 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1299 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1300 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1301 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1302 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1303 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1304 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1305 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1307 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1309 * Makefile.am (omp_lib.mod): Streamline rule.
1310 * Makefile.in: Regenerate.
1312 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1315 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1316 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1317 * testsuite/libgomp.fortran/lib2.f: Likewise.
1318 * testsuite/libgomp.fortran/lib3.f: Likewise.
1320 * configure.ac: Typo fix.
1321 * configure: Regenerate.
1323 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1324 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1326 * omp.h.in: Don't touch the user's namespace.
1328 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1329 Tobias Burnus <burnus@net-b.de>
1330 Richard Henderson <rth@redhat.com>
1332 * target.c: New file.
1333 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1334 * Makefile.in: Regenerated.
1335 * libgomp_g.h (GOMP_task): Add depend argument.
1336 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1337 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1338 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1339 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1340 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1341 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1342 GOMP_taskgroup_start, GOMP_taskgroup_end,
1343 GOMP_parallel_sections): New prototypes.
1344 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1345 (omp_is_initial_device_): New function.
1346 (ULP, STR1, STR2, ialias_redirect): Removed.
1347 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1348 omp_set_default_device_8_, omp_get_default_device_,
1349 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1351 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1352 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1353 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1355 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1356 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1357 omp_set_default_device, omp_set_default_device_,
1358 omp_set_default_device_8_, omp_get_default_device,
1359 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1360 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1361 omp_get_team_num_): Export @@OMP_4.0.
1362 * team.c (struct gomp_thread_start_data): Add place field.
1363 (gomp_thread_start): Clear thr->thread_pool and
1364 thr->task before returning. Use gomp_team_barrier_wait_final
1365 instead of gomp_team_barrier_wait. Initialize thr->place.
1366 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1367 team_cancelled and task_queued_count fields.
1368 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1369 before calling pthread_exit.
1370 (gomp_free_thread): No longer static. Use
1371 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1372 (gomp_team_start): Add flags argument. Set
1373 thr->thread_pool->threads_busy to nthreads immediately after creating
1374 new pool. Use gomp_managed_threads_lock instead of
1375 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1376 (gomp_team_end): Use gomp_managed_threads_lock instead of
1377 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1378 of gomp_team_barrier_wait. If team->team_cancelled, call
1379 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1380 rather than thr->ts.work_share.
1381 (initialize_team): Don't call gomp_sem_init here.
1382 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1384 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1385 * env.c (gomp_global_icv): Add default_device_var, target_data and
1386 bind_var initializers.
1387 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1388 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1389 gomp_places_list_len): New variables.
1390 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1391 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1393 (gomp_cancel_var): New global variable.
1394 (parse_int): New function.
1395 (handle_omp_display_env): New function.
1396 (initialize_env): Use it. Initialize default_device_var.
1397 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1398 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1399 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1400 been successfully parsed (and call gomp_init_affinity in that case).
1401 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1402 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1403 omp_get_team_num, omp_is_initial_device): New functions.
1404 * libgomp.h: Include stdlib.h.
1405 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1407 (struct target_mem_desc): Forward declare.
1408 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1409 and thread_limit_var fields.
1410 (gomp_get_num_devices): New prototype.
1411 (gomp_cancel_var): New extern decl.
1412 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1413 team_cancelled and task_queued_count fields. Add comments about
1414 task_{,queued_,running_}count.
1415 (gomp_cancel_kind): New enum.
1416 (gomp_work_share_end_cancel): New prototype.
1417 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1418 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1420 (struct gomp_taskgroup): New type.
1421 (struct gomp_task_depend_entry,
1422 struct gomp_dependers_vec): New types.
1423 (gomp_finish_task): Free depend_hash if non-NULL.
1424 (struct gomp_team_state): Add place_partition_off
1425 and place_partition_len fields.
1426 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1427 gomp_places_list_len): New extern decls.
1428 (struct gomp_thread): Add place field.
1429 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1430 (gomp_init_thread_affinity): Add place argument.
1431 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1432 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1433 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1434 gomp_affinity_init_level, gomp_affinity_print_place): New
1436 (gomp_team_start): Add flags argument.
1437 (gomp_thread_limit_var, gomp_remaining_threads_count,
1438 gomp_remaining_threads_lock): Remove.
1439 (gomp_managed_threads_lock): New variable.
1440 (struct gomp_thread_pool): Add threads_busy field.
1441 (gomp_free_thread): New prototype.
1442 * task.c: Include hashtab.h.
1443 (hash_entry_type): New typedef.
1444 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1445 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1446 copy_ctors_done and taskgroup fields.
1447 (GOMP_task): Add depend argument, handle depend clauses. If
1448 gomp_team_barrier_cancelled or if it's taskgroup has been
1449 cancelled, don't queue or start new tasks. Set copy_ctors_done
1450 field if needed. Initialize taskgroup field. If copy_ctors_done
1451 and already cancelled, don't discard the task. If taskgroup is
1452 non-NULL, enqueue the task into taskgroup queue. Increment
1453 num_children field in taskgroup. Increment task_queued_count.
1454 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1455 gomp_task_run_post_remove_taskgroup): New inline functions.
1456 (gomp_task_run_post_handle_depend_hash,
1457 gomp_task_run_post_handle_dependers,
1458 gomp_task_run_post_handle_depend): New functions.
1459 (GOMP_taskwait): Use them. If more than one new tasks
1460 have been queued, wake other threads if needed.
1461 (gomp_barrier_handle_tasks): Likewise. If
1462 gomp_team_barrier_cancelled, don't start any new tasks, just free
1464 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1466 (omp_proc_bind_kind, omp_proc_bind_false,
1467 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1468 omp_proc_bind_spread): New params.
1469 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1470 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1471 omp_get_team_num, omp_is_initial_device): New interfaces.
1472 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1473 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1474 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1475 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1476 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1477 useless use omp_lib_kinds.
1478 * omp.h.in (omp_proc_bind_t): New typedef.
1479 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1480 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1481 omp_get_team_num, omp_is_initial_device): New prototypes.
1482 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1483 through to gomp_team_start.
1484 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1485 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1486 Adjust gomp_parallel_loop_start callers.
1487 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1488 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1489 GOMP_loop_end_cancel): New functions.
1490 (GOMP_parallel_end): Add ialias_redirect.
1491 * hashtab.h: New file.
1492 * libgomp.texi (Environment Variables): Minor cleanup,
1493 update section refs to OpenMP 4.0rc2.
1494 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1495 environment variables.
1496 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1497 team->work_shares_to_free to thr->ts.work_share before calling
1499 (gomp_work_share_end_cancel): New function.
1500 * config/linux/proc.c: Include errno.h.
1501 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1502 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1503 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1504 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1505 gomp_cpuset_size is sizeof (cpu_set_t).
1506 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1507 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1508 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1509 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1510 contain any logical CPUs.
1511 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1512 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1513 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1514 pthread_getaffinity_np. Check gomp_places_list instead of
1515 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1516 * config/linux/bar.c (gomp_barrier_wait_end,
1517 gomp_barrier_wait_last): Use BAR_* defines.
1518 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1519 from state where needed. Set work_share_cancelled to 0 on last
1521 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1522 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1524 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1525 Add cpusetsize argument.
1526 (gomp_cpuset_size, gomp_cpusetp): Declare.
1527 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1528 (affinity_counter): Remove.
1529 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1530 if CPU_ALLOC_SIZE isn't defined.
1531 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1532 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1533 bind current thread to the first place.
1534 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1535 pthread_setaffinity_np to gomp_places_list[place].
1536 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1537 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1538 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1539 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1540 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1541 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1542 (gomp_barrier_t): Add awaited_final field.
1543 (gomp_barrier_init): Initialize awaited_final field.
1544 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1545 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1547 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1549 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1550 gomp_team_barrier_cancelled): New inline functions.
1551 (gomp_barrier_last_thread,
1552 gomp_team_barrier_set_task_pending,
1553 gomp_team_barrier_clear_task_pending,
1554 gomp_team_barrier_set_waiting_for_tasks,
1555 gomp_team_barrier_waiting_for_tasks,
1556 gomp_team_barrier_done): Use BAR_* defines.
1557 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1558 (gomp_barrier_wait_end): Use BAR_* defines.
1559 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1560 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1562 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1563 gomp_team_barrier_cancel): New functions.
1564 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1566 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1567 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1568 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1569 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1570 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1571 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1572 (gomp_barrier_t): Add cancellable field.
1573 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1574 gomp_team_barrier_cancel): New prototypes.
1575 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1576 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1577 gomp_team_barrier_cancelled): New inline functions.
1578 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1579 gomp_team_barrier_set_task_pending,
1580 gomp_team_barrier_clear_task_pending,
1581 gomp_team_barrier_set_waiting_for_tasks,
1582 gomp_team_barrier_waiting_for_tasks,
1583 gomp_team_barrier_done): Use BAR_* defines.
1584 * barrier.c (GOMP_barrier_cancel): New function.
1585 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1586 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1587 omp_proc_bind_spread): New params.
1588 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1589 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1590 omp_get_team_num, omp_is_initial_device): New externals.
1591 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1593 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1594 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1595 infinity. If not nested, just return minimum of max_num_threads
1596 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1597 to the returned value. Otherwise, don't update atomically
1598 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1599 (GOMP_parallel_end): Adjust for thread_limit now being in
1600 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1601 infinity. Adjust threads_busy in the pool rather than
1602 gomp_remaining_threads_count. Remember team->nthreads and call
1603 gomp_team_end before adjusting threads_busy, if not nested
1604 afterwards, just set it to 1 non-atomically. Add ialias.
1605 (GOMP_parallel_start): Adjust gomp_team_start caller.
1606 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1607 * testsuite/libgomp.c/affinity-1.c: New test.
1608 * testsuite/libgomp.c/atomic-15.c: New test.
1609 * testsuite/libgomp.c/atomic-16.c: New test.
1610 * testsuite/libgomp.c/atomic-17.c: New test.
1611 * testsuite/libgomp.c/cancel-for-1.c: New test.
1612 * testsuite/libgomp.c/cancel-for-2.c: New test.
1613 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1614 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1615 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1616 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1617 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1618 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1619 * testsuite/libgomp.c/depend-1.c: New test.
1620 * testsuite/libgomp.c/depend-2.c: New test.
1621 * testsuite/libgomp.c/depend-3.c: New test.
1622 * testsuite/libgomp.c/depend-4.c: New test.
1623 * testsuite/libgomp.c/for-1.c: New test.
1624 * testsuite/libgomp.c/for-1.h: New file.
1625 * testsuite/libgomp.c/for-2.c: New test.
1626 * testsuite/libgomp.c/for-2.h: New file.
1627 * testsuite/libgomp.c/for-3.c: New test.
1628 * testsuite/libgomp.c/pr58392.c: New test.
1629 * testsuite/libgomp.c/simd-1.c: New test.
1630 * testsuite/libgomp.c/simd-2.c: New test.
1631 * testsuite/libgomp.c/simd-3.c: New test.
1632 * testsuite/libgomp.c/simd-4.c: New test.
1633 * testsuite/libgomp.c/simd-5.c: New test.
1634 * testsuite/libgomp.c/simd-6.c: New test.
1635 * testsuite/libgomp.c/target-1.c: New test.
1636 * testsuite/libgomp.c/target-2.c: New test.
1637 * testsuite/libgomp.c/target-3.c: New test.
1638 * testsuite/libgomp.c/target-4.c: New test.
1639 * testsuite/libgomp.c/target-5.c: New test.
1640 * testsuite/libgomp.c/target-6.c: New test.
1641 * testsuite/libgomp.c/target-7.c: New test.
1642 * testsuite/libgomp.c/taskgroup-1.c: New test.
1643 * testsuite/libgomp.c/thread-limit-1.c: New test.
1644 * testsuite/libgomp.c/thread-limit-2.c: New test.
1645 * testsuite/libgomp.c/thread-limit-3.c: New test.
1646 * testsuite/libgomp.c/udr-1.c: New test.
1647 * testsuite/libgomp.c/udr-2.c: New test.
1648 * testsuite/libgomp.c/udr-3.c: New test.
1649 * testsuite/libgomp.c++/affinity-1.C: New test.
1650 * testsuite/libgomp.c++/atomic-10.C: New test.
1651 * testsuite/libgomp.c++/atomic-11.C: New test.
1652 * testsuite/libgomp.c++/atomic-12.C: New test.
1653 * testsuite/libgomp.c++/atomic-13.C: New test.
1654 * testsuite/libgomp.c++/atomic-14.C: New test.
1655 * testsuite/libgomp.c++/atomic-15.C: New test.
1656 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1657 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1658 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1659 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1660 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1661 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1662 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1663 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1664 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1665 * testsuite/libgomp.c++/cancel-test.h: New file.
1666 * testsuite/libgomp.c++/for-9.C: New test.
1667 * testsuite/libgomp.c++/for-10.C: New test.
1668 * testsuite/libgomp.c++/for-11.C: New test.
1669 * testsuite/libgomp.c++/simd-1.C: New test.
1670 * testsuite/libgomp.c++/simd-2.C: New test.
1671 * testsuite/libgomp.c++/simd-3.C: New test.
1672 * testsuite/libgomp.c++/simd-4.C: New test.
1673 * testsuite/libgomp.c++/simd-5.C: New test.
1674 * testsuite/libgomp.c++/simd-6.C: New test.
1675 * testsuite/libgomp.c++/simd-7.C: New test.
1676 * testsuite/libgomp.c++/simd-8.C: New test.
1677 * testsuite/libgomp.c++/target-1.C: New test.
1678 * testsuite/libgomp.c++/target-2.C: New test.
1679 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1680 * testsuite/libgomp.c++/target-3.C: New test.
1681 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1682 * testsuite/libgomp.c++/udr-1.C: New test.
1683 * testsuite/libgomp.c++/udr-2.C: New test.
1684 * testsuite/libgomp.c++/udr-3.C: New test.
1685 * testsuite/libgomp.c++/udr-4.C: New test.
1686 * testsuite/libgomp.c++/udr-5.C: New test.
1687 * testsuite/libgomp.c++/udr-6.C: New test.
1688 * testsuite/libgomp.c++/udr-7.C: New test.
1689 * testsuite/libgomp.c++/udr-8.C: New test.
1690 * testsuite/libgomp.c++/udr-9.C: New test.
1692 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1695 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1698 2013-09-20 Alan Modra <amodra@gmail.com>
1700 * configure: Regenerate.
1702 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1704 * testsuite/libgomp.c/sections-2.c: New test.
1706 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1708 * testsuite/libgomp.fortran/strassen.f90:
1709 Add dg-skip-if aarch64_tiny.
1711 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1712 Cesar Philippidis <cesar@codesourcery.com>
1714 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1715 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1716 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1717 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1718 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1719 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1720 Use dg-runtest rather than gfortran-dg-runtest.
1722 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1724 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1725 Linux-based x86 systems to cover all GNU systems.
1726 * testsuite/libgomp.c/lock-3.c: Likewise.
1727 * testsuite/libgomp.c/pr48591.c: Likewise.
1729 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1731 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1732 GNU/Hurd, as done for Linux-based systems.
1734 * config/posix/ptrlock.h: Fix comment.
1736 2013-05-27 Tobias Burnus <burnus@net-b.de>
1739 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1740 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1741 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1742 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1743 omp_destroy_nest_lock): Correct arguments to match the one in
1745 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1746 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1747 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1748 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1750 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1752 * testsuite/libgomp.c/loop-13.c: New test.
1753 * testsuite/libgomp.c/loop-14.c: New test.
1754 * testsuite/libgomp.c/loop-15.c: New test.
1755 * testsuite/libgomp.c++/loop-13.C: New test.
1756 * testsuite/libgomp.c++/loop-14.C: New test.
1757 * testsuite/libgomp.c++/loop-15.C: New test.
1759 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1762 * testsuite/libgomp.c++/pr56217.C: New test.
1764 2013-02-01 Alan Modra <amodra@gmail.com>
1766 * task.c (GOMP_task, GOMP_taskwait): Comment.
1768 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1769 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1772 * config/linux/wait.h (do_spin): Use atomic load for addr.
1773 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1774 for intptr and ptrlock.
1775 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1778 2013-01-22 Alan Modra <amodra@gmail.com>
1782 * task.c (GOMP_task): Revert 2011-12-09 change.
1783 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1784 barrier to read task->children..
1785 (gomp_barrier_handle_tasks): ..and matching atomic store with
1786 release barrier here when setting parent->children to NULL.
1788 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1789 Tobias Burnus <burnus@net-b.de>
1792 * testsuite/libgomp.fortran/fortran.exp: Use
1793 -fintrinsic-modules-path= instead of
1794 -fintrinsic-modules-path.
1796 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1798 Update copyright years.
1800 2012-12-19 Tobias Burnus <burnus@net-b.de>
1802 * testsuite/libgomp.fortran/fortran.exp: Set
1803 -fintrinsic-modules-path.
1805 2012-12-19 Tobias Burnus <burnus@net-b.de>
1807 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1808 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1810 2012-11-21 Jakub Jelinek <jakub@redhat.com>
1813 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1814 if pool had any threads_used.
1816 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
1818 * testsuite/libgomp.c++/pr24455.C: Use
1819 -Wl,-undefined,dynamic_lookup on darwin.
1821 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
1823 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1825 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1827 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1829 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1830 Jim MacArthur <jim.macarthur@arm.com>
1831 Marcus Shawcroft <marcus.shawcroft@arm.com>
1832 Nigel Stephens <nigel.stephens@arm.com>
1833 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1834 Richard Earnshaw <rearnsha@arm.com>
1835 Sofiane Naci <sofiane.naci@arm.com>
1836 Stephen Thomas <stephen.thomas@arm.com>
1837 Tejas Belagod <tejas.belagod@arm.com>
1838 Yufeng Zhang <yufeng.zhang@arm.com>
1840 * configure.tgt: Add AArch64.
1842 2012-10-04 Jason Merrill <jason@redhat.com>
1844 * testsuite/libgomp.c++/tls-init1.C: New.
1846 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1848 * configure: Regenerated.
1850 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
1852 * config/linux/mips/futex.h (sys_futex0): Change to static
1853 function with noinline, nomips16 attributes under MIPS16. Adjust
1854 asm statement to place 'li v0,SYS_futex' immediately before
1857 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
1859 * libgomp.texi (Library Index): Renamed from "Index" to prevent
1860 conflict with index.html on case-insensitive file systems.
1862 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1864 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1865 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1867 2012-07-02 Richard Guenther <rguenther@suse.de>
1868 Michael Matz <matz@suse.de>
1869 Tobias Grosser <tobias@grosser.es>
1870 Sebastian Pop <sebpop@gmail.com>
1872 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1873 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1874 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1875 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1877 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
1879 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1881 2012-06-22 Richard Guenther <rguenther@suse.de>
1883 Merge from graphite branch
1884 2012-01-13 Tobias Grosser <tobias@grosser.es>
1886 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1887 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1889 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1892 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1893 use GOMP_barrier () call instead.
1894 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1895 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1896 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1897 call GOMP_barrier instead.
1898 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1900 2012-06-06 Jakub Jelinek <jakub@redhat.com>
1903 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1904 argument to memset call.
1906 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1908 * configure: Regenerated.
1910 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1912 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1914 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1917 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1919 2012-03-22 Jakub Jelinek <jakub@redhat.com>
1922 * testsuite/libgomp.c/pr52547.c: New test.
1924 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1926 * testsuite/lib/libgomp.exp: load fortran-modules.exp
1928 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1930 * configure.tgt (mips-sgi-irix6*): Remove.
1932 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1934 * configure.tgt (alpha*-dec-osf*): Remove.
1936 * config/osf/sem.h: Remove.
1937 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1939 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
1941 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1943 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1946 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1947 Remove ENABLE_SYMVERS_SOL2.
1948 * configure: Regenerate.
1949 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1950 (PREPROCESS): New variable.
1951 (libgomp.ver): New target.
1952 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1953 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1954 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1956 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1957 * Makefile.in: Regenerate.
1959 2012-02-14 Walter Lee <walt@tilera.com>
1961 * configure.tgt: Handle tilegx and tilepro.
1962 * config/linux/tile/futex.h: New file.
1964 2012-02-08 Richard Guenther <rguenther@suse.de>
1966 PR tree-optimization/46886
1967 * testsuite/libgomp.c/pr46886.c: New testcase.
1969 2012-01-25 Matthias Klose <doko@ubuntu.com>
1971 * config/linux/arm: Remove empty directory.
1972 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1974 2011-12-09 Alan Modra <amodra@gmail.com>
1977 * task.c (GOMP_taskwait): Don't access task->children outside of
1978 task_lock mutex region.
1979 (GOMP_task): Likewise.
1981 2011-12-06 Jakub Jelinek <jakub@redhat.com>
1984 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1986 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1987 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1988 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1989 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1990 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1992 2011-12-02 Alan Modra <amodra@gmail.com>
1994 * config/linux/affinity.c: Use atomic rather than sync builtin.
1995 * config/linux/lock.c: Likewise.
1996 * config/linux/ptrlock.h: Likewise.
1997 * config/linux/ptrlock.c: Likewise.
1998 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1999 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2000 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2001 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2002 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2003 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2004 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2005 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2006 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2007 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2009 2011-11-30 Alan Modra <amodra@gmail.com>
2012 * config/linux/bar.h: Use atomic rather than sync builtins.
2013 * config/linux/bar.c: Likewise. Add missing acquire
2014 synchronisation on generation field.
2015 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2018 2011-11-30 Alan Modra <amodra@gmail.com>
2020 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2021 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2022 * config/linux/mutex.h: Use atomic rather than sync builtins.
2023 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2024 * config/linux/omp-lock.h: Comment fix.
2025 * config/linux/arm/mutex.h: Delete.
2026 * config/linux/powerpc/mutex.h: Delete.
2027 * config/linux/ia64/mutex.h: Delete.
2028 * config/linux/mips/mutex.h: Delete.
2030 2011-11-30 Alan Modra <amodra@gmail.com>
2033 * config/linux/sem.h: Rewrite.
2034 * config/linux/sem.c: Rewrite.
2036 2011-11-28 Richard Henderson <rth@redhat.com>
2038 * libgomp.h (enum memmodel): New.
2040 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2042 * configure: Regenerate.
2044 2011-10-10 Matthias Klose <doko@ubuntu.com>
2046 * config/posix95: Remove empty directory.
2048 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2050 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2052 2011-08-19 Jakub Jelinek <jakub@redhat.com>
2055 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2056 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2058 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2060 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2062 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2065 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2067 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
2069 * config/linux/proc.h: New.
2070 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2071 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2072 (gomp_init_num_threads): Update call to cpuset_popcount.
2073 (get_num_procs): Ditto.
2074 * config/linux/affinity.c (gomp_init_affinity): Call
2075 gomp_cpuset_popcount.
2077 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2081 * omp.h.in (omp_in_final): New prototype.
2082 * omp_lib.f90.in (omp_in_final): New interface.
2083 (omp_integer_kind, omp_logical_kind): Remove
2084 and replace all its uses in the module with 4.
2085 (openmp_version): Change to 201107.
2086 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2087 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2088 kind for the parameters.
2089 (omp_in_final): New external.
2090 (openmp_version): Change to 201107.
2091 * task.c (omp_in_final): New function.
2092 (gomp_init_task): Initialize final_task.
2093 (GOMP_task): Remove unused attribute from flags. Handle final
2095 (GOMP_taskyield): New function.
2096 (omp_in_final): Return true if if (false) or final (true) task
2097 or descendant of final (true).
2098 * fortran.c (omp_in_final_): New function.
2099 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2100 (GOMP_3.0): Export GOMP_taskyield.
2101 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2103 (parse_unsigned_long_list): New function.
2104 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2105 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2106 even if parse_affinity returned false.
2107 * config/linux/affinity.c (gomp_init_affinity): Handle
2108 gomp_cpu_affinity_len == 0.
2109 * libgomp_g.h (GOMP_taskyield): New prototype.
2110 * libgomp.h (struct gomp_task): Add final_task field.
2111 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2112 * team.c (gomp_team_start): Override new task's nthreads_var icv
2113 if list form OMP_NUM_THREADS has been used and it has value for
2114 the new nesting level.
2116 * testsuite/libgomp.c/atomic-11.c: New test.
2117 * testsuite/libgomp.c/atomic-12.c: New test.
2118 * testsuite/libgomp.c/atomic-13.c: New test.
2119 * testsuite/libgomp.c/atomic-14.c: New test.
2120 * testsuite/libgomp.c/reduction-6.c: New test.
2121 * testsuite/libgomp.c/task-5.c: New test.
2122 * testsuite/libgomp.c++/atomic-2.C: New test.
2123 * testsuite/libgomp.c++/atomic-3.C: New test.
2124 * testsuite/libgomp.c++/atomic-4.C: New test.
2125 * testsuite/libgomp.c++/atomic-5.C: New test.
2126 * testsuite/libgomp.c++/atomic-6.C: New test.
2127 * testsuite/libgomp.c++/atomic-7.C: New test.
2128 * testsuite/libgomp.c++/atomic-8.C: New test.
2129 * testsuite/libgomp.c++/atomic-9.C: New test.
2130 * testsuite/libgomp.c++/task-8.C: New test.
2131 * testsuite/libgomp.c++/reduction-4.C: New test.
2132 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2133 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2134 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2135 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2136 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2137 * testsuite/libgomp.fortran/pointer1.f90: New test.
2138 * testsuite/libgomp.fortran/pointer2.f90: New test.
2139 * testsuite/libgomp.fortran/task4.f90: New test.
2141 2011-08-02 Tobias Burnus <burnus@net-b.de>
2143 * libgomp.texi: Update OpenMP spec references to 3.1.
2144 (omp_in_final,OMP_PROC_BIND): New sections.
2145 (OMP_NUM_THREADS): Document that the value can be now a list.
2146 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2148 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2150 * config/linux/x86/futex.h: Check __x86_64__ instead of
2153 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2157 * testsuite/libgomp.c/pr49897-1.c: New test.
2158 * testsuite/libgomp.c/pr49897-2.c: New test.
2159 * testsuite/libgomp.c/pr49898-1.c: New test.
2160 * testsuite/libgomp.c/pr49898-2.c: New test.
2162 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2164 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2165 for ia32 instead of ilp32.
2167 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2168 * testsuite/libgomp.c/atomic-6.c: Likewise.
2170 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2172 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2173 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2175 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2178 * config/osf/sem.h: New file.
2179 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2181 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2184 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2187 2011-07-15 Jakub Jelinek <jakub@redhat.com>
2189 * config/linux/wait.h (do_spin): New inline, largely copied
2190 from do_wait, just don't do futex_wait here, instead return true if
2192 (do_wait): Implement using do_spin.
2193 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2195 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2196 __sync_bool_compare_and_swap, pass the oldval to
2197 gomp_mutex_lock_slow.
2198 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2199 If all mutex contenders are just spinning and not sleeping, don't
2200 change state to 2 unnecessarily. Optimize the loop when state has
2201 already become 2 to use just one atomic operation per loop instead
2203 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2205 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2206 __sync_bool_compare_and_swap, pass the oldval to
2207 gomp_mutex_lock_slow.
2209 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2212 * iter.c (gomp_iter_static_next): For chunk size 0
2213 only use n ceil/ nthreads size for the first
2214 n % nthreads threads in the team instead of
2215 all threads except for the last few ones which
2216 get less work or none at all.
2217 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2218 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2219 chunk argument, set run_sched_modifier to 0 for static
2220 resp. 1 for other kinds. If chunk argument is 0
2221 and not static, set value to 1.
2223 2011-05-19 Jakub Jelinek <jakub@redhat.com>
2226 * testsuite/libgomp.c++/pr49043.C: New test.
2229 * testsuite/libgomp.c++/pr48869.C: New test.
2231 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2234 * fortran.c: Include limits.h.
2236 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2238 (omp_set_num_threads_8_, omp_set_schedule_8_,
2239 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2240 omp_get_team_size_8_): Use TO_INT macro.
2241 * testsuite/libgomp.fortran/pr48894.f90: New test.
2243 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2246 * testsuite/libgomp.c/pr48591.c: New test.
2248 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2251 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2252 * configure: Regenerate.
2254 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2257 * testsuite/libgomp.fortran/task3.f90: New test.
2259 2011-02-24 Tobias Burnus <burnus@net-b.de>
2261 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2263 2011-02-23 Jakub Jelinek <jakub@redhat.com>
2266 * libgomp.texi (omp_get_wtime): Don't say time in the past
2269 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2272 * testsuite/libgomp.fortran/fortran.exp: Check for both
2273 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2274 but $blddir != "", still append ${blddir}/${lang_library_path}
2277 2011-02-16 Tobias Burnus <burnus@net-b.de>
2280 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2281 of libquadmath.a before adding its libpath to ldflags.
2283 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2286 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2287 to FUTEX_WAIT futex syscall.
2288 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2290 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2292 * configure: Regenerate.
2294 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2297 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2299 2011-01-16 Gerald Pfeifer
2301 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2303 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2306 * libgomp.fortran/allocatable6.f90: New test.
2308 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2310 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2311 * configure: Regenerate.
2313 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2317 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2318 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2319 * aclocal.m4: Regenerate.
2320 * configure: Regenerate.
2321 * Makefile.in: Regenerate.
2322 * testsuite/Makefile.in: Regenerate.
2324 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2327 * libgomp.fortran/pr46753.f90: New test.
2330 * env.c (initialize_env): Default to spin count 300000
2331 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2335 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2336 at the end if sync builtins aren't supported.
2338 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2340 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2342 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2344 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2346 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2348 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2350 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2351 Tobias Burnus <burnus@net-b.de>
2355 * configure: Regenerate.
2357 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2359 * config/linux/futex.h: New.
2360 * config/linux/arm/mutex.h: New.
2361 * configure.tgt (arm*-*-linux*): Add config path.
2363 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2365 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2367 2010-09-23 Tobias Burnus <burnus@net-b.de>
2369 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2370 Change Fortran datatype to LOGICAL.
2371 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2372 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2374 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2376 * configure: Regenerate.
2378 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2380 * libgomp.texi: Add function keyword to a couple of Fortran
2381 interfaces, use integer instead of int for Fortran.
2383 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2385 * libgomp.texi: Fix spelling and pasto problems throughout.
2386 Adjust prototypes to match code.
2388 2010-07-24 Tobias Burnus <burnus@net-b.de>
2390 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2391 silence -fwhole-file warning.
2393 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2395 * configure.tgt (*-*-solaris2.[56]*): Removed.
2397 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2399 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2400 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2401 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2402 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2403 targetting solaris2*.
2404 * configure: Regenerate.
2405 * config.h.in: Regenerate.
2407 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2408 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2409 Add libgomp_version_dep.
2410 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2412 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2413 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2414 * Makefile.in: Regenerate.
2416 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2417 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2418 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2419 to common block, protected by
2420 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2422 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2424 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2426 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2429 * configure: Regenerate.
2431 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2434 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2435 * configure: Regenerate.
2436 * Makefile.in: Regenerate.
2437 * testsuite/Makefile.in: Regenerate.
2439 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2442 * testsuite/libgomp.c/pr43893.c: New test.
2443 * testsuite/libgomp.c++/pr43893.C: New test.
2445 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2448 * testsuite/libgomp.fortran/vla8.f90: New test.
2450 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2453 * config/linux/affinity.c (gomp_init_affinity): Decrease
2454 gomp_available_cpus if affinity mask confines the process to fewer
2456 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2457 non-NULL, just return gomp_available_cpus.
2460 * sections.c (gomp_sections_init): Initialize ws->mode.
2462 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2464 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2465 not unused bar variable.
2466 * configure: Regenerate.
2468 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2470 * Makefile.in: Regenerate.
2471 * aclocal.m4: Regenerate.
2472 * testsuite/Makefile.in: Regenerate.
2474 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2477 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2478 (initialize_env): Adjust callers.
2479 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2480 when the argument is 0.
2482 * testsuite/libgomp.c/pr42942.c: New test.
2484 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2488 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2489 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2491 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2493 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2494 * testsuite/libgomp.c++/task-6.C: Likewise.
2496 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2498 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2500 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2502 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2503 * configure: Regenerate.
2505 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2508 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2510 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2512 * configure.ac: Test for executability of GFORTRAN.
2513 * configure: Regenerate.
2515 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2517 * configure: Regenerate.
2519 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2522 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2524 2010-01-03 Richard Guenther <rguenther@suse.de>
2526 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2528 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2530 * testsuite/libgomp.graphite/pr4118.c: New.
2532 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2534 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2535 for darwin, protect the test with require-effective-target tls_runtime.
2536 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2538 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2541 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2542 link spec %s substitutions for static libraries.
2544 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2547 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2549 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2551 * Makefile.in: Regenerate.
2552 * configure: Regenerate.
2553 * testsuite/Makefile.in: Regenerate.
2555 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2557 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2558 settings for LC_ALL and LANG.
2560 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2563 * testsuite/libgomp.fortran/pr42162.f90: New test.
2565 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2568 * testsuite/libgomp.c/pr42029.c: New test.
2570 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2572 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2573 *s. Accept ld version without text in ()s.
2574 * configure: Regenerated.
2576 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2578 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2580 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2583 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2584 or a hyphen (happens with fortran language disabled).
2585 * configure: Regenerate.
2587 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2589 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2590 use sed script portable to Solaris /bin/sed for extracting ld
2592 * configure: Regenerate.
2594 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2596 * testsuite/libgomp.graphite/bounds.c: New test.
2598 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2600 * Makefile.am (libgomp_la_LINK): New.
2601 * Makefile.in: Regenerate.
2603 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2605 * configure.ac (AC_PREREQ): Bump to 2.64.
2607 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2609 * Makefile.am (install-html, install-pdf): Remove.
2610 * Makefile.in: Regenerate.
2612 * Makefile.in: Regenerate.
2613 * aclocal.m4: Regenerate.
2614 * config.h.in: Regenerate.
2615 * configure: Regenerate.
2616 * testsuite/Makefile.in: Regenerate.
2618 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2620 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2621 * Makefile.in: Regenerate.
2623 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2625 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2626 * Makefile.in: Regenerate.
2628 2009-08-19 Tobias Burnus <burnus@net-b.de>
2631 omp_lib.h.in: Fix -std=f95 errors.
2634 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2636 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2637 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2638 * testsuite/libgomp.graphite/graphite.exp: New.
2640 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2642 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2645 2009-08-04 David Daney <ddaney@caviumnetworks.com>
2647 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2648 needed memory barrier semantics.
2649 * config/linux/mips/mutex.h: New file.
2651 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2653 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2655 2009-07-16 Joseph Myers <joseph@codesourcery.com>
2657 * configure: Regenerate.
2659 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2664 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2665 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2666 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2668 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2670 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2671 options when choosing a multilib.
2673 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2675 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2676 ld_library_path. Use add_path. Add just find_libgcc_s to
2677 ld_library_path, not every libgcc multilib directory.
2678 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2679 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2680 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2682 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2684 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2686 * Makefile.am (LTLDFLAGS): Define.
2688 * Makefile.in: Regenerate.
2690 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2693 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2694 libgfortranbegin, check existence of libgfortran.a instead of
2697 2009-05-20 Jakub Jelinek <jakub@redhat.com>
2700 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2701 (gomp_free_pool_helper): Likewise.
2703 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2704 Jakub Jelinek <jakub@redhat.com>
2707 * testsuite/libgomp.fortran/workshare2.f90: New test.
2709 2009-04-09 Nick Clifton <nickc@redhat.com>
2711 * iter.c: Change copyright header to refer to version 3 of the
2712 GNU General Public License with version 3.1 of the GCC Runtime
2713 Library Exception and to point readers at the COPYING3 and
2714 COPYING3.RUNTIME files and the FSF's license web page.
2715 * alloc.c: Likewise.
2716 * barrier.c: Likewise.
2717 * config/bsd/proc.c: Likewise.
2718 * config/linux/affinity.c: Likewise.
2719 * config/linux/alpha/futex.h: Likewise.
2720 * config/linux/bar.c: Likewise.
2721 * config/linux/bar.h: Likewise.
2722 * config/linux/ia64/futex.h: Likewise.
2723 * config/linux/ia64/mutex.h: Likewise.
2724 * config/linux/lock.c: Likewise.
2725 * config/linux/mips/futex.h: Likewise.
2726 * config/linux/mutex.c: Likewise.
2727 * config/linux/mutex.h: Likewise.
2728 * config/linux/powerpc/futex.h: Likewise.
2729 * config/linux/proc.c: Likewise.
2730 * config/linux/ptrlock.c: Likewise.
2731 * config/linux/ptrlock.h: Likewise.
2732 * config/linux/s390/futex.h: Likewise.
2733 * config/linux/sem.c: Likewise.
2734 * config/linux/sem.h: Likewise.
2735 * config/linux/sparc/futex.h: Likewise.
2736 * config/linux/wait.h: Likewise.
2737 * config/linux/x86/futex.h: Likewise.
2738 * config/mingw32/proc.c: Likewise.
2739 * config/mingw32/time.c: Likewise.
2740 * config/posix/affinity.c: Likewise.
2741 * config/posix/bar.c: Likewise.
2742 * config/posix/bar.h: Likewise.
2743 * config/posix/lock.c: Likewise.
2744 * config/posix/mutex.h: Likewise.
2745 * config/posix/proc.c: Likewise.
2746 * config/posix/ptrlock.h: Likewise.
2747 * config/posix/sem.c: Likewise.
2748 * config/posix/sem.h: Likewise.
2749 * config/posix/time.c: Likewise.
2750 * config/posix95/lock.c: Likewise.
2751 * critical.c: Likewise.
2753 * error.c: Likewise.
2754 * fortran.c: Likewise.
2755 * iter_ull.c: Likewise.
2756 * libgomp.h: Likewise.
2757 * libgomp_f.h.in: Likewise.
2758 * libgomp_g.h: Likewise.
2760 * loop_ull.c: Likewise.
2761 * omp.h.in: Likewise.
2762 * omp_lib.f90.in: Likewise.
2763 * omp_lib.h.in: Likewise.
2764 * ordered.c: Likewise.
2765 * parallel.c: Likewise.
2766 * sections.c: Likewise.
2767 * single.c: Likewise.
2772 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2774 * testsuite/config/default.exp: Change copyright header to refer to
2775 version 3 of the GNU General Public License and to point readers
2776 at the COPYING3 file and the FSF's license web page.
2778 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2781 * libgomp.c++/pr39573.C: New test.
2783 2009-04-01 Jakub Jelinek <jakub@redhat.com>
2786 * testsuite/libgomp.c/pr39591-1.c: New test.
2787 * testsuite/libgomp.c/pr39591-2.c: New test.
2788 * testsuite/libgomp.c/pr39591-3.c: New test.
2790 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
2792 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2793 * testsuite/libgomp.c/atomic-6.c: Ditto.
2795 2009-03-23 Jakub Jelinek <jakub@redhat.com>
2798 * testsuite/libgomp.c/loop-12.c: New test.
2799 * testsuite/libgomp.c/loop-11.c: New test.
2800 * testsuite/libgomp.c++/loop-11.C: New test.
2801 * testsuite/libgomp.c++/loop-12.C: New test.
2802 * testsuite/libgomp.c++/for-8.C: New test.
2804 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2806 * configure: Regenerate.
2808 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2811 * testsuite/libgomp.c/pr39154.c: New test.
2813 2009-01-30 Ian Lance Taylor <iant@google.com>
2815 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2816 libgomp_ld_is_gold. Get gold version number.
2817 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2818 * configure: Rebuild.
2820 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2822 * testsuite/lib/libgomp.exp: Add -B option for targets that
2823 use libgfortran.a%s in their specs.
2825 2009-01-07 Jakub Jelinek <jakub@redhat.com>
2828 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2829 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2830 HAVE_AS_SYMVER_DIRECTIVE is not defined.
2831 * configure: Regenerated.
2832 * config.h.in: Likewise.
2834 2008-12-28 Jakub Jelinek <jakub@redhat.com>
2837 * testsuite/libgomp.c/pr38650.c: New test.
2838 * testsuite/libgomp.c++/pr38650.C: New test.
2840 2008-12-27 Jakub Jelinek <jakub@redhat.com>
2842 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2844 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
2846 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2848 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2850 * configure: Regenerate.
2852 2008-12-08 Jakub Jelinek <jakub@redhat.com>
2855 * testsuite/libgomp.c/pr36802-1.c: New test.
2856 * testsuite/libgomp.c/pr36802-2.c: New test.
2857 * testsuite/libgomp.c/pr36802-3.c: New test.
2859 2008-12-01 Janis Johnson <janis187@us.ibm.com>
2862 * config/linux/powerpc/mutex.h: New.
2864 2008-12-01 Jakub Jelinek <jakub@redhat.com>
2867 * testsuite/libgomp.c++/for-7.C: New test.
2870 * testsuite/libgomp.c++/for-6.C: New test.
2872 2008-11-26 Janis Johnson <janis187@us.ibm.com>
2875 * testsuite/lib/libgomp.exp: Include new timeout library files.
2876 (libgomp_target_compile): Set timeout value from new proc.
2878 2008-11-13 Steve Ellcey <sje@cup.hp.com>
2881 * config/linux/ia64/mutex.h: New.
2883 2008-11-04 Tobias Burnus <burnus@net-b.de>
2886 * libgomp.texi (Runtime library routines, environment variables):
2887 Update for OpenMP version 3.0.
2889 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2890 Steve Ellcey <sje@cup.hp.com>
2892 * configure: Regenerate for new libtool.
2893 * Makefile.in: Ditto.
2894 * testsuite/Makefile.in: Ditto.
2896 2008-09-19 Jakub Jelinek <jakub@redhat.com>
2897 Andreas Tobler <a.tobler@schweiz.org>
2899 * config/bsd/proc.c: New file.
2900 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2901 * configure.ac: Check for header <sys/sysctl.h>
2902 * configure: Regenerate.
2903 * config.h.in: Likewise.
2905 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2907 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2909 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2911 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2912 * Makefile.in: Regenerated.
2913 * testsuite/Makefile.in: Regenerated.
2915 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
2917 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2918 depend on blddir if blddir exists.
2919 (libgomp_target_compile): Likewise.
2920 * testsuite/libgomp.c++/c++.exp: Likewise.
2921 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2923 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2925 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
2926 Do not list GPL as Invariant Section.
2928 2008-07-28 Ilie Garbacea <ilie@mips.com>
2929 Chao-ying Fu <fu@mips.com>
2931 * configure.tgt: Enable futex for MIPS.
2932 * config/linux/mips/futex.h: New file.
2934 2008-07-16 Jakub Jelinek <jakub@redhat.com>
2936 * team.c (gomp_team_end): Free team immediately if it has
2939 2008-07-08 David Edelsohn <edelsohn@gnu.org>
2941 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2942 * testsuite/libgomp.fortran/fortran.exp: Same.
2943 * testsuite/libgomp.c/c.exp: Same.
2944 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2945 directory to library path first.
2947 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
2949 * env.c (parse_stacksize): Add cast to avoid warning.
2950 (parse_spincount): Likewise.
2952 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2954 * testsuite/libgomp.c/loop-10.c: New test.
2955 * libgomp.c/loop-3.c (main): Add lastprivate clause.
2956 * libgomp.c++/loop-6.C (main): Likewise.
2959 * testsuite/libgomp.c/debug-1.c: New test.
2961 2008-06-19 Jakub Jelinek <jakub@redhat.com>
2963 * testsuite/libgomp.c/nqueens-1.c: New test.
2966 * testsuite/libgomp.c++/task-7.C: New function.
2968 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2970 * configure: Regenerate.
2972 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2974 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2975 mutex when HAVE_SYNC_BUILTINS isn't defined.
2977 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2979 * libgomp.texi (omp_test_lock): Fix typo.
2981 2008-06-12 Tobias Burnus <burnus@net-b.de>
2983 * omp_lib.f90.in: Add "implicit none".
2985 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2988 * testsuite/libgomp.c/reduction-5.c: New test.
2990 2008-06-11 Jakub Jelinek <jakub@redhat.com>
2992 * libgomp.h (struct gomp_task): Add in_tied_task field.
2993 * task.c (gomp_init_task): Initialize it.
2994 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
2995 unconditionally. Don't call gomp_team_barrier_wake if
2996 current task is implicit or if(0) from implicit and number of
2997 running tasks is equal to nthreads - 1.
3000 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3001 omp_get_team_size_8): Fix pastos.
3004 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3005 * configure: Regenerated.
3006 * config.h.in: Regenerated.
3007 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3010 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3013 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3014 (GOMP_loop_ull_dynamic_start): Likewise.
3015 (GOMP_loop_ull_guided_start): Likewise.
3016 (GOMP_loop_ull_ordered_static_start): Likewise.
3017 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3018 (GOMP_loop_ull_ordered_guided_start): Likewise.
3020 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3021 Richard Henderson <rth@redhat.com>
3022 Ulrich Drepper <drepper@redhat.com>
3023 Jakob Blomer <jakob.blomer@ira.uka.de>
3025 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3026 Substitute also OMP_*LOCK_25*.
3027 * configure: Regenerated.
3028 * config.h.in: Regenerated.
3029 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3030 ptrlock.c and task.c.
3031 * Makefile.in: Regenerated.
3032 * testsuite/Makefile.in: Regenerated.
3034 * loop_ull.c: New file.
3035 * iter_ull.c: New file.
3036 * libgomp.h: Include ptrlock.h.
3037 (enum gomp_task_kind): New type.
3038 (struct gomp_team): Add task_lock, task_queue, task_count,
3039 task_running_count, single_count fields. Add
3040 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3041 Remove work_share_lock, generation_mask,
3042 oldest_live_gen, num_live_gen and init_work_shares fields, add
3043 work work_share_list_alloc, work_share_list_free and work_share_chunk
3044 fields. Change work_shares from pointer to pointers into an array.
3045 Change ordered_release field into gomp_sem_t ** from flexible array
3046 member. Add implicit_task and initial_work_shares fields.
3047 Move close to the end of the struct.
3048 (struct gomp_team_state): Add single_count, last_work_share,
3049 active_level and level fields, remove work_share_generation.
3050 (gomp_barrier_handle_tasks): New prototype.
3051 (gomp_finish_task): New inline function.
3052 (struct gomp_work_share): Move chunk_size, end, incr into
3053 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3054 next_ll fields. Reshuffle fields. Add next_alloc,
3055 next_ws, next_free and inline_ordered_team_ids fields, change
3056 ordered_team_ids into pointer from flexible array member.
3057 Add mode field. Put lock and next into a different cache line
3058 from most of the write-once fields.
3059 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3060 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3061 gomp_iter_ull_guided_next): New prototypes.
3062 (gomp_new_icv): New prototype.
3063 (struct gomp_thread): Add thread_pool and task fields.
3064 (struct gomp_thread_pool): New type.
3065 (gomp_new_team): New prototype.
3066 (gomp_team_start): Change type of last argument.
3067 (gomp_new_work_share): Removed.
3068 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3069 (gomp_work_share_init_done): New static inline.
3070 (gomp_throttled_spin_count_var, gomp_available_cpus,
3071 gomp_managed_threads): New extern decls.
3072 (gomp_init_task): New prototype.
3073 (gomp_spin_count_var): New extern var decl.
3074 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3075 or no alias support, or if not PIC.
3076 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3077 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3078 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3079 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3080 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3081 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3082 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3083 gomp_test_nest_lock_25): New prototypes.
3084 (omp_lock_symver, strong_alias): Define.
3085 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3087 (gomp_end_task): New.
3088 (struct gomp_task_icv, gomp_global_icv): New.
3089 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3090 (struct gomp_task): New.
3091 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3092 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3094 (gomp_schedule_type): Reorder enum to match
3096 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3098 (gomp_thread_start): Add gomp_team_barrier_wait call.
3099 For non-nested case remove clearing of docked thread thr fields.
3100 Use pool fields instead of global gomp_* variables. Use
3101 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3102 Create tasks for each member thread.
3103 (free_team): Only destroy team barrier, task_lock here and free it.
3104 (gomp_free_thread): Free last_team if non-NULL.
3105 (gomp_team_end): Call gomp_team_barrier_wait instead of
3106 gomp_barrier_wait. For nested case call one extra
3107 gomp_barrier_wait. Move here some destruction from free_team.
3108 Call free_team on pool->last_team if any, rather than freeing
3109 current team. Destroy work_share_list_free_lock ifndef
3111 (gomp_new_icv): New function.
3112 (gomp_threads, gomp_threads_size, gomp_threads_used,
3113 gomp_threads_dock): Removed.
3114 (gomp_thread_destructor): New variable.
3115 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3117 (gomp_team_start): Create new pool if current thread doesn't have
3118 one. Use pool fields instead of global gomp_* variables.
3119 Initialize thread_pool field for new threads. Clear single_count.
3120 Change last argument from ws to team, don't create
3121 new team, set ts.work_share to &team->work_shares[0] and clear
3122 ts.last_work_share. Don't clear ts.work_share_generation.
3123 If number of threads changed, adjust atomically gomp_managed_threads.
3124 Use gomp_init_task instead of gomp_new_task,
3125 set thr->task to the corresponding implicit_task array entry.
3126 Create tasks for each member thread. Initialize ts.level.
3127 (initialize_team): Call pthread_key_create on
3128 gomp_thread_destructor.
3129 (team_destructor): New function.
3130 (new_team): Removed.
3131 (gomp_new_team): New function.
3132 (free_team): Free gomp_work_share blocks chained through next_alloc,
3133 instead of freeing work_shares and destroying work_share_lock.
3134 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3135 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3136 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3137 of gomp_barrier_wait.
3138 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3139 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3140 if gomp_work_share_start returned true. Don't unlock ws->lock.
3141 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3142 of gomp_barrier_wait.
3143 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3144 gomp_work_share_init_done if gomp_work_share_start returned true.
3145 Don't unlock ws->lock.
3146 * work.c: Include stddef.h.
3147 (free_work_share): Use work_share_list_free_lock instead
3148 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3149 Call gomp_fini_work_share and then either free ws if orphaned, or
3150 put it into work_share_list_free list of the current team.
3151 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3153 (gomp_work_share_start, gomp_work_share_end,
3154 gomp_work_share_end_nowait): Rewritten.
3155 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3156 (openmp_version): Set to 200805.
3157 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3158 omp_sched_guided, omp_sched_auto): New parameters.
3159 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3160 omp_set_max_active_levels, omp_get_max_active_levels,
3161 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3162 omp_get_active_level): New interfaces.
3163 * omp_lib.h.in (openmp_version): Set to 200805.
3164 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3165 omp_sched_guided, omp_sched_auto): New parameters.
3166 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3167 omp_set_max_active_levels, omp_get_max_active_levels,
3168 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3169 omp_get_active_level): New externals.
3170 * loop.c: Include limits.h.
3171 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3173 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3174 Likewise. Use gomp_icv.
3175 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3176 ts.static_trip here.
3177 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3178 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3179 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3180 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3181 don't unlock ws->lock, otherwise lock it.
3182 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3183 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3184 (gomp_parallel_loop_start): Call gomp_new_team instead of
3185 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3186 Adjust gomp_team_start caller. Pass 0 as second argument to
3187 gomp_resolve_num_threads.
3188 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3189 If adding ws->chunk_size nthreads + 1 times after end won't
3190 overflow, set ws->mode to 1.
3191 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3192 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3193 GOMP_loop_ull_ordered_static_start,
3194 GOMP_loop_ull_ordered_dynamic_start,
3195 GOMP_loop_ull_ordered_guided_start,
3196 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3197 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3198 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3199 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3200 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3202 * libgomp.map: Export lock routines also @@OMP_2.0.
3203 (GOMP_loop_ordered_dynamic_first,
3204 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3205 GOMP_loop_ordered_static_first): Remove.
3206 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3207 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3208 GOMP_loop_ull_ordered_dynamic_next,
3209 GOMP_loop_ull_ordered_dynamic_start,
3210 GOMP_loop_ull_ordered_guided_next,
3211 GOMP_loop_ull_ordered_guided_start,
3212 GOMP_loop_ull_ordered_runtime_next,
3213 GOMP_loop_ull_ordered_runtime_start,
3214 GOMP_loop_ull_ordered_static_next,
3215 GOMP_loop_ull_ordered_static_start,
3216 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3217 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3218 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3219 (omp_set_schedule, omp_get_schedule,
3220 omp_get_thread_limit, omp_set_max_active_levels,
3221 omp_get_max_active_levels, omp_get_level,
3222 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3223 omp_set_schedule_, omp_set_schedule_8_,
3224 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3225 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3226 omp_get_max_active_levels_, omp_get_level_,
3227 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3228 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3229 New exports @@OMP_3.0.
3230 * omp.h.in (omp_sched_t): New type.
3231 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3232 omp_set_max_active_levels, omp_get_max_active_levels,
3233 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3234 omp_get_active_level): New prototypes.
3235 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3236 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3237 gomp_thread_limit_var, gomp_remaining_threads_count,
3238 gomp_remaining_threads_lock): New variables.
3239 (parse_spincount): New function.
3240 (initialize_env): Call gomp_init_num_threads unconditionally.
3241 Initialize gomp_available_cpus. Call parse_spincount,
3242 initialize gomp_{,throttled_}spin_count_var
3243 depending on presence and value of OMP_WAIT_POLICY and
3244 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
3245 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3246 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
3247 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
3248 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
3249 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3250 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3251 (gomp_global_icv): New.
3252 (parse_schedule): Use it. Parse "auto".
3253 (omp_set_num_threads): Use gomp_icv.
3254 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3256 (omp_get_max_threads): Move from parallel.c.
3257 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3258 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3260 (parse_stacksize, parse_wait_policy): New functions.
3261 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3262 both wrappers for compatibility and new locks.
3263 (omp_set_schedule, omp_get_schedule,
3264 omp_get_thread_limit, omp_set_max_active_levels,
3265 omp_get_max_active_levels, omp_get_level,
3266 omp_get_ancestor_thread_num, omp_get_team_size,
3267 omp_get_active_level): New ialias_redirect.
3268 (omp_set_schedule_, omp_set_schedule_8_,
3269 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3270 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3271 omp_get_max_active_levels_, omp_get_level_,
3272 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3273 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3275 * parallel.c: Include limits.h.
3276 (gomp_resolve_num_threads): Add count argument. Rewritten.
3277 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3278 argument to gomp_team_start. Pass 0 as second argument to
3279 gomp_resolve_num_threads.
3280 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3281 if gomp_thread_limit_var != ULONG_MAX.
3282 (omp_in_parallel): Implement using ts.active_level.
3283 (omp_get_max_threads): Move to env.c.
3284 (omp_get_level, omp_get_ancestor_thread_num,
3285 omp_get_team_size, omp_get_active_level): New functions,
3287 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3288 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3289 gomp_iter_dynamic_next instead of the _locked variant and don't take
3290 lock around it, otherwise acquire it before calling
3291 gomp_iter_dynamic_next_locked.
3292 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3293 gomp_iter_dynamic_next instead of the _locked variant and don't take
3295 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3296 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3297 Adjust gomp_team_start caller. Pass count as second argument to
3298 gomp_resolve_num_threads, don't adjust num_threads after the call.
3300 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3301 ws->chunk_size by incr.
3302 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3304 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3306 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3307 (omp_check_defines): Check even the compat defines.
3308 * config/linux/ptrlock.c: New file.
3309 * config/linux/ptrlock.h: New file.
3310 * config/linux/wait.h: New file.
3311 * config/posix/ptrlock.c: New file.
3312 * config/posix/ptrlock.h: New file.
3313 * config/linux/bar.h (gomp_team_barrier_wait,
3314 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3315 (gomp_team_barrier_set_task_pending,
3316 gomp_team_barrier_clear_task_pending,
3317 gomp_team_barrier_set_waiting_for_tasks,
3318 gomp_team_barrier_waiting_for_tasks,
3319 gomp_team_barrier_done): New inlines.
3320 (gomp_barrier_t): Rewritten.
3321 (gomp_barrier_state_t): New typedef.
3322 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3323 gomp_barrier_wait_start): Rewritten.
3324 (gomp_barrier_wait_end): Change second argument to
3325 gomp_barrier_state_t.
3326 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3328 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3330 (gomp_barrier_wait_end): Rewritten.
3331 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3332 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3333 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3334 (gomp_barrier_state_t): New typedef.
3335 (gomp_team_barrier_wait,
3336 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3337 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3338 into the return value. Return gomp_barrier_state_t.
3339 (gomp_team_barrier_set_task_pending,
3340 gomp_team_barrier_clear_task_pending,
3341 gomp_team_barrier_set_waiting_for_tasks,
3342 gomp_team_barrier_waiting_for_tasks,
3343 gomp_team_barrier_done): New inlines.
3344 (gomp_barrier_wait_end): Change second argument to
3345 gomp_barrier_state_t.
3346 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3348 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3349 (gomp_barrier_wait_end): Change second argument to
3350 gomp_barrier_state_t.
3351 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3352 gomp_team_barrier_wake): New functions.
3353 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3355 (gomp_futex_wake, gomp_futex_wait): New variables.
3356 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3357 * config/linux/lock.c: Rewrite to make locks task owned,
3358 for backwards compatibility provide the old entrypoints
3359 if symbol versioning. Include wait.h instead of libgomp.h and
3361 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3362 * config/posix95/lock.c: Rewrite to make locks task owned,
3363 for backwards compatibility provide the old entrypoints
3364 if symbol versioning.
3365 * config/posix/lock.c: Rewrite to make locks task owned,
3366 for backwards compatibility provide the old entrypoints
3367 if symbol versioning.
3368 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3369 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3370 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3371 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3372 (sys_futex0): Return error code.
3373 (futex_wake, futex_wait): If ENOSYS was returned, clear
3374 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3375 (cpu_relax, atomic_write_barrier): New static inlines.
3376 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3377 (futex_wake, futex_wait): If ENOSYS was returned, clear
3378 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3379 (cpu_relax, atomic_write_barrier): New static inlines.
3380 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3381 (sys_futex0): Return error code.
3382 (futex_wake, futex_wait): If ENOSYS was returned, clear
3383 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3384 (cpu_relax, atomic_write_barrier): New static inlines.
3385 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3386 (sys_futex0): Return error code.
3387 (futex_wake, futex_wait): If ENOSYS was returned, clear
3388 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3389 (cpu_relax, atomic_write_barrier): New static inlines.
3390 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3391 (sys_futex0): Return error code.
3392 (futex_wake, futex_wait): If ENOSYS was returned, clear
3393 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3394 (cpu_relax, atomic_write_barrier): New static inlines.
3395 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3396 (sys_futex0): Return error code.
3397 (futex_wake, futex_wait): If ENOSYS was returned, clear
3398 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3399 (cpu_relax, atomic_write_barrier): New static inlines.
3400 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3402 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3403 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3404 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3406 (omp_nest_lock_t): Change owner into void *, add lock field.
3407 * config/posix95/omp-lock.h: Include semaphore.h.
3408 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3409 (omp_lock_t): Use sem_t instead of mutex if semaphores
3411 (omp_nest_lock_t): Likewise. Change owner to void *.
3412 * config/posix/omp-lock.h: Include semaphore.h.
3413 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3414 (omp_lock_t): Use sem_t instead of mutex if semaphores
3416 (omp_nest_lock_t): Likewise. Add owner field.
3418 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3420 * testsuite/libgomp.c/collapse-1.c: New test.
3421 * testsuite/libgomp.c/collapse-2.c: New test.
3422 * testsuite/libgomp.c/collapse-3.c: New test.
3423 * testsuite/libgomp.c/icv-1.c: New test.
3424 * testsuite/libgomp.c/icv-2.c: New test.
3425 * testsuite/libgomp.c/lib-2.c: New test.
3426 * testsuite/libgomp.c/lock-1.c: New test.
3427 * testsuite/libgomp.c/lock-2.c: New test.
3428 * testsuite/libgomp.c/lock-3.c: New test.
3429 * testsuite/libgomp.c/loop-4.c: New test.
3430 * testsuite/libgomp.c/loop-5.c: New test.
3431 * testsuite/libgomp.c/loop-6.c: New test.
3432 * testsuite/libgomp.c/loop-7.c: New test.
3433 * testsuite/libgomp.c/loop-8.c: New test.
3434 * testsuite/libgomp.c/loop-9.c: New test.
3435 * testsuite/libgomp.c/nested-3.c: New test.
3436 * testsuite/libgomp.c/nestedfn-6.c: New test.
3437 * testsuite/libgomp.c/sort-1.c: New test.
3438 * testsuite/libgomp.c/task-1.c: New test.
3439 * testsuite/libgomp.c/task-2.c: New test.
3440 * testsuite/libgomp.c/task-3.c: New test.
3441 * testsuite/libgomp.c/task-4.c: New test.
3442 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3443 to C++ testsuite default compiler options.
3444 * testsuite/libgomp.c++/collapse-1.C: New test.
3445 * testsuite/libgomp.c++/collapse-2.C: New test.
3446 * testsuite/libgomp.c++/ctor-10.C: New test.
3447 * testsuite/libgomp.c++/for-1.C: New test.
3448 * testsuite/libgomp.c++/for-2.C: New test.
3449 * testsuite/libgomp.c++/for-3.C: New test.
3450 * testsuite/libgomp.c++/for-4.C: New test.
3451 * testsuite/libgomp.c++/for-5.C: New test.
3452 * testsuite/libgomp.c++/loop-8.C: New test.
3453 * testsuite/libgomp.c++/loop-9.C: New test.
3454 * testsuite/libgomp.c++/loop-10.C: New test.
3455 * testsuite/libgomp.c++/task-1.C: New test.
3456 * testsuite/libgomp.c++/task-2.C: New test.
3457 * testsuite/libgomp.c++/task-3.C: New test.
3458 * testsuite/libgomp.c++/task-4.C: New test.
3459 * testsuite/libgomp.c++/task-5.C: New test.
3460 * testsuite/libgomp.c++/task-6.C: New test.
3461 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3462 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3463 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3464 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3465 * testsuite/libgomp.fortran/collapse1.f90: New test.
3466 * testsuite/libgomp.fortran/collapse2.f90: New test.
3467 * testsuite/libgomp.fortran/collapse3.f90: New test.
3468 * testsuite/libgomp.fortran/collapse4.f90: New test.
3469 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3470 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3471 * testsuite/libgomp.fortran/lib4.f90: New test.
3472 * testsuite/libgomp.fortran/lock-1.f90: New test.
3473 * testsuite/libgomp.fortran/lock-2.f90: New test.
3474 * testsuite/libgomp.fortran/nested1.f90: New test.
3475 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3476 * testsuite/libgomp.fortran/strassen.f90: New test.
3477 * testsuite/libgomp.fortran/tabs1.f90: New test.
3478 * testsuite/libgomp.fortran/tabs2.f: New test.
3479 * testsuite/libgomp.fortran/task1.f90: New test.
3480 * testsuite/libgomp.fortran/task2.f90: New test.
3481 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3482 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3483 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3484 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3485 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3487 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3490 * testsuite/libgomp.c++/ctor-11.C: New test.
3491 * testsuite/libgomp.c++/ctor-12.C: New test.
3493 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3495 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3497 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3500 * testsuite/libgomp.c/atomic-5.c: New test.
3501 * testsuite/libgomp.c/atomic-6.c: New test.
3502 * testsuite/libgomp.c/autopar-1.c: New test.
3504 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3506 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3507 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3508 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3509 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3510 * configure: Regenerate.
3511 * Makefile.in, testsuite/Makefile.in: Likewise.
3513 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3516 * aclocal.m4: Regenerate.
3517 * configure: Regenerate.
3519 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3522 * testsuite/libgomp.c/atomic-4.c: New test.
3525 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3526 (gomp_iter_guided_next): Likewise.
3527 * testsuite/libgomp.c/pr35625.c: New test.
3529 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3531 * aclocal.m4: Regenerate.
3532 * configure: Likewise.
3533 * Makefile.in: Likewise.
3534 * testsuite/Makefile.in: Likewise.
3536 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3539 * testsuite/libgomp.c++/pr35185.C: New test.
3541 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3544 * testsuite/libgomp.c/pr35549.c: New test.
3546 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3548 * testsuite/libgomp.c/atomic-3.c: New test.
3550 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3553 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3556 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3559 * configure.ac: Add ACX_HEADER_STRING.
3560 * env.c: Include strings.h.
3561 * aclocal.m4: Regenerate.
3562 * config.h.in: Regenerate.
3563 * configure: Regenerate.
3564 * Makefile.in: Regenerate.
3565 * testsuite/Makefile.in: Regenerate.
3567 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3570 * testsuite/libgomp.c/pr35196.c: New test.
3573 * testsuite/libgomp.fortran/pr35130.f90: New test.
3574 * testsuite/libgomp.c/pr35130.c: New test.
3576 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3579 * testsuite/libgomp.c/pr33880.c: New test.
3580 * testsuite/libgomp.fortran/pr33880.f90: New test.
3582 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3584 * configure: Regenerate.
3586 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3588 * configure.ac: Move futex checking into ../config/futex.m4.
3589 * configure: Rebuilt.
3590 * aclocal.m4: Rebuilt.
3591 * Makefile.in: Rebuilt.
3593 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3594 2007-10-15 ../config/tls.m4 change.
3596 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3599 * testsuite/libgomp.c/pr34513.c: New test.
3600 * testsuite/libgomp.c++/pr34513.C: New test.
3602 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3605 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3607 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3609 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3611 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3613 * testsuite/libgomp.c/private-1.c: New test.
3615 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3616 Paolo Bonzini <bonzini@gnu.org>
3618 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3619 instead of 'VPATH ='.
3620 * Makefile.in: Regenerate.
3622 2007-11-23 Matthias Klose <doko@ubuntu.com>
3624 * configure.ac: Adjust makeinfo version check.
3625 * configure: Regenerate.
3627 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3630 * testsuite/libgomp.fortran/pr34020.f90: New test.
3632 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3635 * testsuite/libgomp.c++/atomic-1.C: New test.
3637 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3640 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3641 Make x and y integers rather than (implicit) reals. Add private (j)
3642 clause to the last omp parallel.
3644 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3646 * configure: Regenerate following changes to ../config/tls.m4.
3648 2007-09-28 Jakub Jelinek <jakub@redhat.com>
3650 * testsuite/libgomp.fortran/stack.f90: New test.
3652 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3654 * config/mingw32/proc.c: New file.
3656 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
3658 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3659 (main): Use __get_cpuid to get i386 target fetaures.
3660 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3661 (main): Use __get_cpuid to get x86_64 target fetaures.
3663 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3666 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3667 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3669 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3672 * testsuite/libgomp.fortran/pr32550.f90: New test.
3673 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3675 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3677 * aclocal.m4: Regenerated.
3679 2007-07-05 Tobias Burnus <burnus@net-b.de>
3682 * testsuite/libgomp.fortran/pr32359.f90: New.
3684 2007-07-02 Jakub Jelinek <jakub@redhat.com>
3687 * sections.c (GOMP_parallel_sections_start): Only decrease
3688 number of threads to COUNT if dyn_var is true.
3689 * testsuite/libgomp.c/pr32468.c: New test.
3691 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3694 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3696 2007-06-21 Jakub Jelinek <jakub@redhat.com>
3699 * testsuite/libgomp.c/pr32362-1.c: New test.
3700 * testsuite/libgomp.c/pr32362-2.c: New test.
3701 * testsuite/libgomp.c/pr32362-3.c: New test.
3703 2007-06-07 Jakub Jelinek <jakub@redhat.com>
3705 * team.c (gomp_team_start): Fix setting up thread_attr
3708 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3710 * configure: Regenerate.
3712 2007-05-23 Steve Ellcey <sje@cup.hp.com>
3714 * Makefile.in: Regenerate.
3715 * configure: Regenerate.
3716 * aclocal.m4: Regenerate.
3717 * testsuite/Makefile.in: Regenerate.
3719 2007-05-04 Jakub Jelinek <jakub@redhat.com>
3721 * config/linux/proc.c: New file.
3724 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3726 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3728 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3730 2007-04-16 Matthias Klose <doko@debian.org>
3732 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3733 flags if not building with -m64.
3734 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3735 flag for i?86-*-* targets, if current target matches -m64.
3737 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3739 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3740 * Makefile.in: Regenerate.
3742 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3745 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3747 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3749 2007-04-04 Jakub Jelinek <jakub@redhat.com>
3751 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3753 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3754 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3755 (parse_affinity): New function.
3756 (initialize_env): Call it and gomp_init_affinity.
3757 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3758 create new pthread_attr_t and call gomp_init_thread_affinity
3759 on it for each thread before passing the attribute to pthread_create.
3760 * config/linux/affinity.c: New file.
3761 * config/posix/affinity.c: New file.
3762 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3763 * configure: Rebuilt.
3764 * config.h.in: Rebuilt.
3765 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3766 * Makefile.in: Rebuilt.
3768 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3770 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3772 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3773 and use it if found.
3775 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
3777 * testsuite/config/default.exp: New file.
3778 * testsuite/lib/libgomp.exp: New file.
3779 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3780 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3781 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3782 (libgomp_load): Remove.
3783 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3784 always_ld_library_path, not ld_library_path. Set additional_flags
3785 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3786 (target_compile): Do not call libgomp_init. Append lang_library_path
3787 and lang_link_flags to options.
3788 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3789 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3791 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3792 always_ld_library_path. Set LD_LIBRARY_PATH here.
3793 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3794 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3795 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3797 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3798 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3799 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3800 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3801 * testsuite/libgomp.c/atomic-10.c: Ditto.
3803 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3805 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3806 dg-final cleanup-modules line.
3807 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3808 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3809 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3810 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3811 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3812 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3813 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3815 2007-03-18 Andreas Schwab <schwab@suse.de>
3817 * acinclude.m4: Adjust regular expression for ld version
3819 * configure: Regenerate.
3821 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3823 * Makefile.am: Add install-pdf target as copied from
3824 automake v1.10 rules.
3825 * Makefile.in: Regenerate
3827 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3830 * configure: Regenerate.
3833 * testsuite/libgomp.c++/pr30703.C: New test.
3835 2007-02-02 Jakub Jelinek <jakub@redhat.com>
3838 2006-07-05 Eric Christopher <echristo@apple.com>
3839 * configure.ac: Depend addition of -pthread on host OS.
3840 * configure: Regenerate.
3842 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3844 * libgomp.texi: Fix spacing after abbreviations.
3846 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
3849 * configure.ac: Add check for makeinfo
3850 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3851 if an appropiate version of makeinfo is found.
3852 * aclocal.m4: Regenerated.
3853 * configure: Regenerated.
3854 * Makefile.in: Regenerated.
3855 * testsuite/Makefile.in: Regenerated.
3857 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
3860 * libgomp.texi: More about implementation-dependent settings.
3862 2007-01-26 Tobias Burnus <burnus@net-b.de>
3864 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3866 2007-01-24 Jakub Jelinek <jakub@redhat.com>
3869 * testsuite/libgomp.c/pr30494.c: New test.
3871 2007-01-15 Tom Tromey <tromey@redhat.com>
3873 * configure: Rebuilt.
3874 * configure.ac: Fixed comment.
3876 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
3878 * libgomp.texi: Document implementation specific default values of
3879 environment variables.
3881 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
3884 * libgomp.texi: New file.
3885 * configure.ac: Add --enable-generated-files-in-srcdir option.
3886 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3888 * Makefile.in: Regenerated.
3889 * config.h.in: Regenerated.
3890 * testsuite/Makefile.in: Regenerated.
3893 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
3896 * env.c (omp_set_num_threads): Set illegal thread count to 1.
3898 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3900 * configure: Regenerate.
3902 2006-12-04 Jakub Jelinek <jakub@redhat.com>
3905 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
3906 start if there shouldn't be any loop iterations.
3907 (gomp_loop_ordered_static_start): Remove start == end test.
3908 * testsuite/libgomp.c/pr29947-1.c: New test.
3909 * testsuite/libgomp.c/pr29947-2.c: New test.
3911 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3913 * configure.tgt: Force initial-exec TLS model on Linux only.
3915 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3917 * configure: Regenerated.
3919 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
3921 * env.c (parse_schedule): Reject out of range values.
3922 (parse_unsigned_long): Reject out of range, negative or zero values.
3924 2006-10-29 Jakub Jelinek <jakub@redhat.com>
3927 * testsuite/libgomp.fortran/pr29629.f90: New test.
3929 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
3932 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3933 * config/posix95: New directory.
3934 * config/posix95/omp-lock.h: New file.
3935 * config/posix95/lock.c: Likewise.
3937 2006-10-14 Geoffrey Keating <geoffk@apple.com>
3939 * aclocal.m4: Regenerate.
3940 * configure: Regenerate.
3942 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3944 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3947 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3949 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3951 * configure: Regenerate.
3952 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3954 2006-09-26 Jakub Jelinek <jakub@redhat.com>
3958 * testsuite/libgomp.c/nestedfn-4.c: New test.
3959 * testsuite/libgomp.c/nestedfn-5.c: New test.
3960 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3963 * testsuite/libgomp.fortran/condinc1.f: New test.
3964 * testsuite/libgomp.fortran/condinc2.f: New test.
3965 * testsuite/libgomp.fortran/condinc3.f90: New test.
3966 * testsuite/libgomp.fortran/condinc4.f90: New test.
3967 * testsuite/libgomp.fortran/condinc1.inc: New file.
3969 2006-09-18 Tom Tromey <tromey@redhat.com>
3971 * configure: Rebuilt.
3973 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
3976 PR preprocessor/14634
3977 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3979 * configure: Regenerate.
3981 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
3983 * testsuite/libgomp.fortran/reduction3.f90: Change
3984 -2147483648 to -huge(i)-1 to avoid overflow.
3985 * testsuite/libgomp.fortran/reduction4.f90: Change
3986 Z'ffffffff' to not(0) to avoid overflow.
3988 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
3991 * Makefile.am (libsubincludedir): New.
3992 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3993 * Makefile.in: Regenerate.
3995 2006-08-17 Jakub Jelinek <jakub@redhat.com>
3998 * env.c: Include ctype.h.
3999 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4000 leading and/or trailing whitespace and compare strings case
4003 2006-07-16 Jakub Jelinek <jakub@redhat.com>
4006 * testsuite/libgomp.fortran/pr28390.f: New test.
4008 2006-07-05 Eric Christopher <echristo@apple.com>
4010 * configure.ac: Depend addition of -pthread on host OS.
4011 * configure: Regenerate.
4013 2006-06-21 Jakub Jelinek <jakub@redhat.com>
4015 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4016 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4019 2006-06-20 Jakub Jelinek <jakub@redhat.com>
4023 * configure.ac: If neither --enable-linux-futex nor
4024 --disable-linux-futex is passed, determine the default by checking
4025 for compiling and/or running against NPTL. With --enable-linux-futex,
4026 check if SYS_gettid and SYS_futex are defined.
4027 * configure: Rebuilt.
4029 2006-06-14 Richard Henderson <rth@redhat.com>
4032 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4033 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4035 2006-06-09 Richard Henderson <rth@redhat.com>
4037 * env.c (gomp_nthreads_var): Change to unsigned long.
4038 (gomp_run_sched_chunk): Likewise.
4039 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4040 (initialize_env): Initialize gomp_thread_attr.
4041 * libgomp.h (gomp_nthreads_var): Update decl.
4042 (gomp_run_sched_chunk): Likewise.
4043 (gomp_thread_attr): Declare.
4044 * team.c (gomp_thread_attr): Export.
4045 (initialize_team): Don't initialize it.
4047 2006-06-09 Jakub Jelinek <jakub@redhat.com>
4050 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4051 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4053 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4055 * config/mingw32/time.c: New file.
4056 * configure.tgt: Use it.
4058 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4060 * Makefile.am: Add install-html target. Add install-html to .PHONY
4061 * Makefile.in: Regenerate.
4063 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4066 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4067 * testsuite/libgomp.c/critical-1.c: Likewise.
4068 * testsuite/libgomp.c/loop-1.c: Likewise.
4069 * testsuite/libgomp.c/loop-2.c: Likewise.
4070 * testsuite/libgomp.c/single-1.c: Likewise.
4071 * testsuite/libgomp.c/ordered-1.c: Likewise.
4072 * testsuite/libgomp.c/ordered-2.c: Likewise.
4074 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4077 * libgomp.fortran/pr27416-1.f90: New test.
4079 2006-05-03 Jakub Jelinek <jakub@redhat.com>
4082 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4083 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4085 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4088 * testsuite/libgomp.c/pr26943-1.c: New test.
4089 * testsuite/libgomp.c/pr26943-2.c: New test.
4090 * testsuite/libgomp.c/pr26943-3.c: New test.
4091 * testsuite/libgomp.c/pr26943-4.c: New test.
4092 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4093 * testsuite/libgomp.c++/pr26943.C: New test.
4095 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4098 * testsuite/libgomp.c++/pr27337.C: New test.
4100 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4103 * testsuite/libgomp.c/pr26171.c: New test.
4105 2006-04-25 Richard Henderson <rth@redhat.com>
4108 * configure.ac: Use GCC_CHECK_TLS.
4109 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4110 * Makefile.in, aclocal.m4, configure: Regenerate.
4112 2006-04-10 Matthias Klose <doko@debian.org>
4114 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4115 directory names containing underscores.
4117 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4120 * testsuite/libgomp.c++/pr26691.C: New test.
4122 2006-03-13 Jakub Jelinek <jakub@redhat.com>
4124 * testsuite/libgomp.fortran/retval2.f90: New test.
4126 2006-03-09 Diego Novillo <dnovillo@redhat.com>
4128 * testsuite/libgomp.c++: New directory.
4130 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
4132 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4133 * config/posix/sem.c: Implement the above.
4135 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4137 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4138 define HAVE_BROKEN_POSIX_SEMAPHORES.
4139 * configure: Rebuilt.
4140 * config.h.in: Rebuilt.
4142 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4145 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4146 for the other pthread check.
4147 * configure: Regenerate.
4148 * config.h.in: Regenerate.
4150 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4154 * Makefile.am (fincludedir): New variable.
4155 (nodist_include_HEADERS): Remove Fortran files.
4156 (nodist_finclude_HEADERS): New variable.
4157 * Makefile.in: Regenerated.
4159 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4161 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4162 Remove tests for returning assumed character length arrays.
4164 2006-02-12 Roger Sayle <roger@eyesopen.com>
4165 John David Anglin <dave@hiauly1.hia.nrc.ca>
4168 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4170 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4172 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4174 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4176 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4177 part of LD_LIBRARY_PATH manually.
4179 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4182 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4185 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
4188 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4189 * configure.ac (PERL): Don't set.
4190 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4191 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4192 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4193 * omp.h.in: Wrap the new configure substitutions with @ characters.
4194 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4195 * aclocal.m4, configure, Makefile.in: Regenerate.
4196 * mkomp_h.pl: Delete.
4198 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
4201 * configure.ac: Use GCC_HEADER_STDINT.
4202 * libgomp.h: Include gstdint.h.
4203 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4204 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4206 2006-01-24 Richard Henderson <rth@redhat.com>
4209 * configure.ac: Add AM_MAINTAINER_MODE.
4210 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4212 2006-01-24 Diego Novillo <dnovillo@redhat.com>
4214 * Makefile.in: Regenerate.
4215 * testsuite/Makefile.in: Regenerate.
4216 * aclocal.m4: Regenerate.
4218 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
4220 * config/posix/proc.c: Conditional include of sys/loadavg.h for
4222 * configure.ac: Add check for loadavg.h.
4223 (link_gomp): Adjust comment.
4224 * configure: Regenerate.
4225 * config.h.in: Regenerate.
4227 2006-01-21 Steve Ellcey <sje@cup.hp.com>
4230 * configure.ac: Remove check for alloca.h.
4231 * configure: Regenerate.
4232 * config.h.in: Regenerate.
4233 * libgomp.h: define gomp_alloca to be __builtin_alloca.
4234 * team.c: Remove use of alloca.h.
4235 Call gomp_alloca instead of alloca.
4237 2006-01-20 Steve Ellcey <sje@cup.hp.com>
4240 * team.c: Add include of alloca.h.
4241 * configure.ac: Add check for alloca.h.
4242 * configure: Regenerate.
4243 * config.h.in: Regenerate.
4245 2006-01-17 Jakub Jelinek <jakub@redhat.com>
4248 * testsuite/libgomp.fortran/pr25219.f90: New test.
4250 2005-12-05 Uros Bizjak <uros@kss-loka.si>
4252 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4253 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4254 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4255 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4256 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4257 testsuite/libgomp.fortran/threadprivate1.f90,
4258 testsuite/libgomp.fortran/threadprivate2.f90,
4259 testsuite/libgomp.fortran/threadprivate3.f90,
4260 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4261 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4262 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4263 effective-target to TLS runtime.
4265 * testsuite/libgomp.fortran/pr25162.f: Require
4266 effective-target TLS runtime.
4268 2005-12-01 Jakub Jelinek <jakub@redhat.com>
4270 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4271 * testsuite/libgomp.c/nestedfn-3.c: New test.
4273 2005-11-30 Jakub Jelinek <jakub@redhat.com>
4276 * testsuite/libgomp.fortran/pr25162.f: New test.
4278 2005-11-28 Jakub Jelinek <jakub@redhat.com>
4280 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4281 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4283 2005-11-25 Jakub Jelinek <jakub@redhat.com>
4285 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4286 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4287 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4288 single.c, team.c, work.c, config/linux/alpha/futex.h,
4289 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4290 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4291 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4292 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4293 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4294 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4295 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4298 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4300 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4301 to nodist_noinst_HEADERS.
4302 * Makefile.in: Rebuilt.
4304 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4305 add integer count field.
4306 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4307 omp_nest_lock_t type change.
4308 (omp_init_nest_lock): Likewise. Initialize count to 0.
4309 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4311 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4313 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4314 Increment count if successful and return the new nesting level.
4315 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4316 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4317 * testsuite/libgomp.c/lib-1.c: New test.
4318 * testsuite/libgomp.fortran/lib1.f90: New test.
4319 * testsuite/libgomp.fortran/lib2.f: New test.
4320 * testsuite/libgomp.fortran/lib3.f: New test.
4322 2005-11-17 Richard Henderson <rth@redhat.com>
4325 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4326 * configure.ac (link_gomp): New. Substitute it.
4327 (AC_CONFIG_FILES): Add libgomp.spec.
4328 * libgomp.spec.in: New file.
4329 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4330 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4332 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4334 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4335 reduction(-:var) behaving the same as reduction(+:var).
4336 * testsuite/libgomp.c/reduction-4.c: New test.
4338 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4340 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4341 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4342 testsuite/libgomp.c/copyin-3.c,
4343 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4344 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4345 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4346 testsuite/libgomp.c++/pr24455.C,
4347 testsuite/libgomp.fortran/threadprivate1.f90,
4348 testsuite/libgomp.fortran/threadprivate2.f90,
4349 testsuite/libgomp.fortran/threadprivate3.f90,
4350 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4351 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4352 testsuite/libgomp.fortran/omp_parse3.f90: Require
4353 effective-target TLS.
4355 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4359 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4362 * team.c (initialize_team): Pass NULL rather than free as
4363 pthread_key_create destructor. Initialize thread specific data
4364 pointer in initial thread to a static local variable rather than
4367 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4369 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4370 its location to ld_library_path.
4372 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4374 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4376 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4378 * testsuite/libgomp.c: Rename from libgomp.dg.
4380 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4382 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4383 threadprivate variable 'i'.
4385 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4387 * config/linux/s390/futex.h: New file.
4388 * configure.tgt: Use it.
4390 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4391 before the parallel.
4393 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4396 * testsuite/libgomp.c++/master-1.C: New test.
4398 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4400 * testsuite/libgomp.dg/copyin-3.c: New test.
4402 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4404 * testsuite/libgomp.fortran/retval1.f90: New test.
4405 * testsuite/libgomp.fortran/vla7.f90: New test.
4407 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4409 * testsuite/libgomp.fortran/vla2.f90: New test.
4410 * testsuite/libgomp.fortran/vla3.f90: New test.
4411 * testsuite/libgomp.fortran/vla4.f90: New test.
4412 * testsuite/libgomp.fortran/vla5.f90: New test.
4413 * testsuite/libgomp.fortran/vla6.f90: New test.
4415 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4417 * config/linux/sparc/futex.h: New file.
4418 * configure.tgt: Use it.
4419 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4421 * critical.c: Include stdlib.h.
4422 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4423 ignoring return value.
4424 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4425 LIBGOMP_CHECK_SYNC_BUILTINS check.
4426 * configure: Rebuilt.
4428 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4430 * testsuite/libgomp.fortran/vla1.f90: New test.
4432 2005-10-31 Richard Henderson <rth@redhat.com>
4434 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4435 setting 's' in different threads.
4437 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4439 * libgomp.h (attribute_hidden, ialias): Define.
4440 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4441 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4442 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4443 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4444 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4445 omp_test_lock, omp_test_nest_lock): Likewise.
4446 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4447 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4448 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4449 omp_test_lock, omp_test_nest_lock): Likewise.
4450 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4451 omp_get_dynamic, omp_get_nested): Likewise.
4452 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4453 omp_get_thread_num, omp_in_parallel): Likewise.
4454 * fortran.c (ialias_redirect): Define.
4455 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4456 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4457 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4458 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4459 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4460 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4461 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4462 omp_get_wtime): Add ialias_redirect.
4464 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4466 * fortran.c: Include stdlib.h.
4468 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4470 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4471 * Makefile.in: Regenerated.
4473 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4475 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4476 * libgomp_f.h.in (omp_check_defines): New function.
4477 * env.c: Include libgomp_f.h.
4478 (initialize_env): Call omp_check_defines.
4480 * testsuite/libgomp.dg/copyin-2.c: New test.
4481 * testsuite/libgomp.c++/copyin-2.C: New test.
4482 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4484 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4485 * testsuite/libgomp.fortran/sharing2.f90: New test.
4487 * testsuite/libgomp.dg/copyin-1.c: New test.
4488 * testsuite/libgomp.c++/copyin-1.C: New test.
4490 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4492 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4494 * testsuite/libgomp.fortran/workshare1.f90: New test.
4496 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4498 * libgomp.fortran/sharing1.f90: New test.
4500 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4503 * testsuite/libgomp.c++/loop-7.C: New test.
4505 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4507 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4508 * testsuite/libgomp.fortran/reduction6.f90: New test.
4509 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4511 2005-10-23 Richard Henderson <rth@redhat.com>
4513 * testsuite/libgomp.c++/ctor-1.C: New.
4514 * testsuite/libgomp.c++/ctor-2.C: New.
4515 * testsuite/libgomp.c++/ctor-3.C: New.
4516 * testsuite/libgomp.c++/ctor-4.C: New.
4517 * testsuite/libgomp.c++/ctor-5.C: New.
4518 * testsuite/libgomp.c++/ctor-6.C: New.
4519 * testsuite/libgomp.c++/ctor-7.C: New.
4520 * testsuite/libgomp.c++/ctor-8.C: New.
4521 * testsuite/libgomp.c++/ctor-9.C: New.
4523 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4526 * testsuite/libgomp.c++/pr24455-1.C: New test.
4527 * testsuite/libgomp.c++/pr24455.C: New test.
4528 * testsuite/libgomp.dg/pr24455-1.c: New test.
4529 * testsuite/libgomp.dg/pr24455.c: New test.
4531 2005-10-20 Richard Henderson <rth@redhat.com>
4533 * testsuite/libgomp.c++/loop-6.C: New.
4534 * testsuite/libgomp.dg/loop-3.c: New.
4536 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4538 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4540 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4543 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4545 * testsuite/libgomp.fortran/jacobi.f: New test.
4547 2005-10-19 Richard Henderson <rth@redhat.com>
4549 * configure.tgt (i?86-linux): Default to with_arch instead of
4550 CFLAGS. Add -mtune to match target_cpu.
4551 (x86_64-linux): Tune to i686.
4553 * fortran.c (omp_test_nest_lock_): Fix typo.
4555 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4557 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4558 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4559 * testsuite/libgomp.dg/ordered-3.c: New test.
4561 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4562 Remove volatile keyword.
4564 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4565 in COMMON block to avoid warnings on 64-bit targets.
4567 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4569 * testsuite/libgomp.dg/shared-3.c: New test.
4571 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4573 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4574 * testsuite/libgomp.fortran/reduction5.f90: New test.
4576 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4578 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4580 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4581 flush loop now that __sync_synchronize has proper memory barrier.
4582 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4583 Add -ffixed-form to dg-options.
4585 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4587 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4588 from subdirectories.
4589 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4590 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4591 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4592 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4593 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4594 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4595 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4596 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4597 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4598 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4599 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4600 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4601 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4602 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4603 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4604 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4605 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4606 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4607 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4608 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4609 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4610 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4611 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4612 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4613 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4615 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4617 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4618 lang_library_path exists. Use find instead of glob to gather tests.
4619 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4621 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4623 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4624 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4625 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4626 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4627 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4628 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4629 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4630 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4631 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4632 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4633 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4634 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4635 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4637 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4639 * testsuite/libgomp.dg/vla-1.c: New test.
4641 * testsuite/libgomp.fortran/reference2.f90: New test.
4643 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4644 declaration of omp_get_thread_num.
4645 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4648 * testsuite/libgomp.fortran/reduction1.f90: New test.
4649 * testsuite/libgomp.fortran/reduction2.f90: New test.
4650 * testsuite/libgomp.fortran/reduction3.f90: New test.
4651 * testsuite/libgomp.fortran/reduction4.f90: New test.
4653 2005-10-13 Richard Henderson <rth@redhat.com>
4655 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4656 * Makefile.in: Regenerate.
4657 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4658 * libgomp.h: Include bar.h.
4659 (struct gomp_barrier): Remove.
4660 (struct gomp_team): Add barrier. Replace master_barrier with
4661 master_release. Replace threads with ordered_release.
4662 (struct gomp_thread): Replace barrier with release.
4663 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4664 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4665 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4666 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4667 (GOMP_single_copy_end): Likewise.
4668 * team.c (gomp_threads_dock): New.
4669 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4670 (gomp_thread_start): Use gomp_barrier_wait.
4671 (new_team, free_team): Update for gomp_team changes.
4672 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4673 (gomp_team_end): Use gomp_barrier_wait.
4674 (initialize_team): Update for gomp_thread changes.
4675 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4676 (gomp_work_share_end_nowait): Use atomic ops when available.
4677 * config/linux/bar.c, config/linux/bar.h: New files.
4678 * config/posix/bar.c, config/posix/bar.h: New files.
4680 2005-10-13 Jakub Jelinek <jakub@redhat.com>
4682 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4683 * testsuite/libgomp.dg/single-2.c: New test.
4685 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4686 lang_link_flags): Unset, so that they aren't inherited from previously
4689 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4691 2005-10-12 Richard Henderson <rth@redhat.com>
4693 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4694 (libgomp_init): Use lang_test_file, lang_library_path, and
4695 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4697 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4698 (lang_test_file, lang_link_flags): New.
4699 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4701 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4702 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4703 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4704 testsuite/libgomp.c++/parallel-1.C,
4705 testsuite/libgomp.c++/reduction-1.C,
4706 testsuite/libgomp.c++/reduction-2.C,
4707 testsuite/libgomp.c++/reduction-3.C,
4708 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4709 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4710 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4711 New files, largely cribbed from the C testsuite.
4713 2005-10-12 Jakub Jelinek <jakub@redhat.com>
4715 * testsuite/libgomp.fortran/character1.f90: New test.
4716 * testsuite/libgomp.fortran/character2.f90: New test.
4718 * testsuite/libgomp.dg/nested-1.c: New test.
4719 * testsuite/libgomp.dg/nested-2.c: New test.
4720 * testsuite/libgomp.fortran/do1.f90: New test.
4721 * testsuite/libgomp.fortran/do2.f90: New test.
4723 * testsuite/libgomp.fortran/reference1.f90: New test.
4725 2005-10-11 Jakub Jelinek <jakub@redhat.com>
4727 * testsuite/libgomp.dg/reduction-1.c: New test.
4728 * testsuite/libgomp.dg/reduction-2.c: New test.
4729 * testsuite/libgomp.dg/reduction-3.c: New test.
4731 2005-10-10 Jakub Jelinek <jakub@redhat.com>
4733 * testsuite/libgomp.dg/atomic-1.c: New test.
4734 * testsuite/libgomp.dg/atomic-2.c: New test.
4736 2005-10-09 Richard Henderson <rth@redhat.com>
4738 * critical.c (atomic_lock): New.
4739 (initialize_critical): Initialize it.
4740 (GOMP_atomic_start, GOMP_atomic_end): New.
4741 * libgomp.map: Export them.
4742 * libgomp_g.h: Declare them.
4744 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4746 2005-10-02 Richard Henderson <rth@redhat.com>
4748 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
4749 to XCFLAGS instead of CFLAGS.
4751 2005-09-30 Richard Henderson <rth@redhat.com>
4753 * configure.ac: Determine whether -pthread or -lpthread is needed.
4754 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4755 * Makefine.in, configure: Rebuild.
4757 2005-09-28 Richard Henderson <rth@redhat.com>
4759 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4760 * testsuite/libgomp.dg/omp-single-3.c: New test.
4762 2005-09-28 Diego Novillo <dnovillo@redhat.com>
4764 * testsuite/libgomp.dg/omp-single-2.c: New test.
4765 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4767 2005-09-27 Richard Henderson <rth@redhat.com>
4769 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4770 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4772 2005-09-27 Jakub Jelinek <jakub@redhat.com>
4774 * testsuite/libgomp.dg/omp-loop03.c: New test.
4776 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4778 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4780 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4782 * testsuite/libgomp.dg/omp-single-1.c: New test.
4783 * testsuite/libgomp.dg/shared-1.c: Return 0.
4784 Add prototype for abort.
4785 * testsuite/libgomp.dg/shared-2.c: Likewise.
4787 2005-09-26 Jakub Jelinek <jakub@redhat.com>
4789 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4792 2005-09-26 Diego Novillo <dnovillo@redhat.com>
4794 * testsuite/libgomp.dg/shared-1.c: New test.
4795 * testsuite/libgomp.dg/shared-2.c: New test.
4797 2005-09-24 Richard Henderson <rth@redhat.com>
4799 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4801 2005-09-24 Richard Henderson <rth@redhat.com>
4803 * iter.c (gomp_iter_static_next): Round up when computing number
4804 of iterations. Don't bother distributing a remainder equally.
4806 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4807 Don't call srand. Zero b before testing.
4810 2005-09-24 Jakub Jelinek <jakub@redhat.com>
4812 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4813 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4815 2005-09-23 Jakub Jelinek <jakub@redhat.com>
4817 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4818 without !$omp end do, followed immediately by subroutine end.
4820 2005-09-23 Diego Novillo <dnovillo@redhat.com>
4822 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4824 2005-09-22 Richard Henderson <rth@redhat.com>
4826 * critical.c (GOMP_critical_name_start): Change argument to void**.
4827 Reuse the pointer space if the mutex fits.
4828 (GOMP_critical_name_end): Likewise.
4829 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4830 * libgomp_g.h (GOMP_critical_name_start): Update decl.
4831 (GOMP_critical_name_end): Likewise.
4832 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4833 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4835 2005-09-20 Richard Henderson <rth@redhat.com>
4837 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4838 (create_lock_lock): New.
4839 (initialize_critical): Initialize it.
4840 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4841 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4843 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4845 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4847 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4849 * testsuite/libgomp.dg/omp-loop01.c: New test.
4850 * testsuite/libgomp.dg/omp-loop02.c: New test.
4852 2005-09-20 Jakub Jelinek <jakub@redhat.com>
4854 * configure.ac (AC_PROG_FC): Add.
4855 (USE_FORTRAN): New automake conditional.
4856 * configure: Rebuilt.
4857 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4858 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4859 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4860 Add rules to build them.
4861 * Makefile.in: Rebuilt.
4862 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4864 * libgomp.map: Add Fortran wrappers.
4865 * libgomp_f.h.in: New file.
4866 * omp_lib.h.in: New file.
4867 * omp_lib.f90.in: New file.
4868 * fortran.c: New file.
4869 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4870 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4871 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4872 libgfortran has been built.
4873 * testsuite/libgomp.fortran/fortran.exp: New file.
4874 * testsuite/libgomp.fortran/omp_cond1.f: New test.
4875 * testsuite/libgomp.fortran/omp_cond2.f: New test.
4876 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4877 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4878 * testsuite/libgomp.fortran/omp_hello.f: New test.
4879 * testsuite/libgomp.fortran/omp_orphan.f: New test.
4880 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4881 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4882 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4883 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4884 * testsuite/libgomp.fortran/omp_reduction.f: New test.
4885 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4886 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4888 2005-08-30 Richard Henderson <rth@redhat.com>
4890 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4891 function for when aliases are not usable.
4892 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4893 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4894 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4895 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4896 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4897 GOMP_loop_ordered_guided_next): Likewise.
4898 * ordered.c (GOMP_ordered_start): Likewise.
4900 2005-08-01 Diego Novillo <dnovillo@redhat.com>
4902 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4903 * testsuite/libgomp.dg/omp_hello.c: Fix return code
4904 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4905 * testsuite/libgomp.dg/omp_orphan.c: Likewise
4906 * testsuite/libgomp.dg/omp_reduction.c: Likewise
4907 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4908 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4909 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4910 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4912 2005-07-07 Eric Christopher <echristo@redhat.com>
4913 Diego Novillo <dnovillo@redhat.com>
4915 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4916 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4918 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4919 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4920 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4921 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4922 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4923 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4924 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4926 2005-06-13 Diego Novillo <dnovillo@redhat.com>
4928 * TOPLEVEL.patch: Remove.
4930 2005-05-16 Richard Henderson <rth@redhat.com>
4932 * configure.ac: Test for clock_gettime.
4933 * config.h.in, configure: Rebuild.
4934 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4935 (omp_get_wtime): Use clock_gettime if available.
4936 (omp_get_wtick): Use clock_getres if available.
4938 2005-05-11 Richard Henderson <rth@redhat.com>
4940 * config/linux/ia64/futex.h: New file.
4941 * configure.tgt: Use it.
4943 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4945 2005-05-07 Richard Henderson <rth@redhat.com>
4947 * config/linux/powerpc/futex.h: New file.
4948 * configure.tgt: Use it.
4950 * config/linux/i486/futex.h: Merge ...
4951 * config/linux/x86_64/futex.h: ... into ...
4952 * config/linux/x86/futex.h: ... here.
4953 * configure.tgt: Update to match.
4955 2005-05-06 Richard Henderson <rth@redhat.com>
4957 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4958 * config/linux/i486/futex.h: Likewise.
4959 * config/linux/x86_64/futex.h: Likewise.
4961 * config/linux/lock.c: New file.
4962 * config/linux/omp-lock.h: New file.
4964 * critical.c, env.h: Don't include omp.h
4965 * config/posix/lock.c: Include libgomp.h instead of omp.h.
4966 * config/posix/time.c: Likewise.
4967 * config/posix/omp-lock.h: New file.
4968 * libgomp.h: Include omp-lock.h and omp.h.
4969 * Makefile.am (nodist_include_HEADERS): New.
4971 * configure.ac (PERL): New.
4972 * mkomp_h.pl: New file.
4973 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4975 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4977 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4978 build directory. Re-add -march=i486 hack.
4980 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4981 (libgomp_link_flags): Remove.
4982 (libgomp_initialized): Remove.
4983 (libgomp_init): Don't protect from reinitialization. Copy code
4984 from libstdc++ for getting the multilib set correctly.
4986 2005-05-05 Richard Henderson <rth@redhat.com>
4988 * config/linux/alpha/futex.h: New file.
4989 * configure.tgt (alpha*-*-linux*): Use it.
4991 * config/posix/mutex.c: New file.
4992 * config/posix/sem.c: Use libgomp.h.
4994 * configure.tgt (x86_64-linux): Also test CC for -m32.
4995 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4997 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5000 * Makefile.am (SUBDIRS): New.
5001 (libgomp_la_LDFLAGS): Add -lpthread.
5002 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5003 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5005 * libgomp_g.h: New file.
5006 * libgomp.h: Split out all public declarations to libgomp_g.h.
5007 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5008 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5009 * config/linux/sem.h: Likewise.
5010 * config/posix/sem.h: Likewise.
5012 * Makefile.am (AM_LDFLAGS): New.
5013 (libgomp_version_script): Split out from ...
5014 (libgomp_la_LDFLAGS): ... here.
5015 (libgomp_version_info): New.
5016 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5017 (LIBGOMP_ENABLE): New.
5018 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5019 (LIBGOMP_ENABLE_SYMVERS): New.
5020 * configure.ac (AC_INIT): Version 1.0.
5021 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5022 (enable-linux-futex): Likewise. Rename from enable-futex.
5023 (libtool_VERSION): New.
5024 (LIBGOMP_ENABLE_SYMVERS): Use it.
5025 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5026 * Makefile.in, aclocal.m4, configure: Rebuild.
5028 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5029 (gomp_mutex_unlock_slow): Fix typo.
5030 * config/linux/sem.c: Similarly.
5031 (gomp_sem_post_slow): Fix typo.
5032 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5033 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5034 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5036 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5037 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5038 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5039 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5040 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5041 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5042 LDFLAGS. Pull enable_futex check to top-level.
5043 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5044 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5046 First attempt at real configury.
5047 * Makefile, config.h: Remove file.
5048 * Makefile.am, Makefile.in: New file.
5049 * acinclude.m4 aclocal.m4: New file.
5050 * configure.ac, configure.tgt, configure: New file.
5052 * config/posix/lock.c: Rename from sys-lock.c.
5053 * config/posix/mutex.h: Rename from sys-mutex.h.
5054 * config/posix/sem.c: Rename from sys-sem.c.
5055 * config/posix/sem.h: Rename from sys-sem.h.
5056 * config/posix/proc.c: Rename from sys-proc.c.
5057 * config/posix/time.c: Rename from sys-proc.c.
5059 * config/linux/mutex.c: New file.
5060 * config/linux/mutex.h: New file.
5061 * config/linux/sem.c: New file.
5062 * config/linux/sem.h: New file.
5063 * config/linux/i486/futex.h: New file.
5064 * config/linux/x86_64/futex.h: New file.
5066 2005-05-04 Richard Henderson <rth@redhat.com>
5068 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5069 * libgomp.h: Declare them.
5070 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5071 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5073 2005-05-04 Richard Henderson <rth@redhat.com>
5075 * libgomp-1 code drop
5077 2005-05-04 Richard Henderson <rth@redhat.com>
5079 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5080 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5081 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5082 (gomp_iter_static_next): Update.
5083 (gomp_ordered_static_next): Update.
5084 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5085 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5086 totally empty range.
5087 (gomp_loop_ordered_static_next): Refine test for calling
5088 gomp_ordered_static_next.
5089 * testsuite/ordered-1.c: Add case for more threads than iterations.
5091 * iter.c (gomp_iter_runtime_next_locked): Remove.
5092 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5093 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5094 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5095 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5096 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5097 gomp_loop_ordered_guided_next): Downcase name, make static, add
5098 an external alias with the old name.
5099 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5100 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5101 switch and call one of the above static functions.
5102 * libgomp.h: Update.
5104 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5105 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5106 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5107 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5108 GOMP_loop_ordered_guided_start): Update to match.
5109 * sections.c (GOMP_sections_start): Likewise.
5110 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5112 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5113 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5114 Use bounds check instead of modulus.
5115 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5116 (gomp_ordered_last): Don't sync with ordered_owner here.
5117 (gomp_ordered_next): Likewise.
5118 (gomp_ordered_static_loop_next): Likewise.
5119 * loop.c, libgomp.h: Update to match.
5121 * libgomp.h (GOMP_barrier): Declare.
5123 * testsuite/barrier-1.c: New file.
5124 * testsuite/critical-1.c: New file.
5125 * testsuite/ordered-2.c: New file.
5126 * testsuite/ordered-1.c: New file.
5127 * testsuite/sections-1.c: New file.
5128 * testsuite/single-1.c: New file.
5129 * testsuite/Makefile (TESTS): Add them.
5131 2005-05-04 Richard Henderson <rth@redhat.com>
5133 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5134 * loop.c (GOMP_loop_static_start): If not the startup thread,
5135 acquire the mutex to wait for initialization complete.
5136 (GOMP_loop_ordered_static_start): Likewise.
5137 (GOMP_loop_ordered_runtime_start): Likewise.
5138 (GOMP_loop_ordered_static_first): Remove.
5139 (GOMP_loop_ordered_dynamic_first): Remove.
5140 (GOMP_loop_ordered_guided_first): Remove.
5141 (GOMP_loop_ordered_runtime_first): Remove.
5142 * ordered.c (gomp_ordered_loop_first): Post to own release when
5143 we're the first thread.
5144 (gomp_ordered_loop_last): Wait on release if not owner.
5145 (gomp_ordered_loop_next): Likewise.
5146 (gomp_ordered_static_loop_init): New.
5147 (gomp_ordered_static_loop_next): Use ordered_owner.
5148 (GOMP_ordered_start): Likewise.
5149 * work.c (gomp_new_work_share): Initialize ordered_owner.
5151 2005-05-03 Richard Henderson <rth@redhat.com>
5153 * Makefile (OPT): New.
5156 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5157 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5158 * libgomp.h, libgomp.map, NOTES: Update to match.
5160 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5161 Add initialized and thr members.
5162 (gomp_thread_start): Pause when initially spawned to wait for
5163 the whole team to be created.
5164 (gomp_team_start): Release team members at the end.
5166 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5167 (f_foo_1): Use GOMP_loop_end.
5168 (f_foo_2): Use GOMP_loop_end_nowait.
5170 * testsuite/loop-2.c: New file.
5171 * testsuite/Makefile (TESTS): Add it.
5173 2005-05-03 Richard Henderson <rth@redhat.com>
5175 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5176 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5177 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5180 * testsuite/Makefile: New file.
5181 * testsuite/loop-1.c: New file.
5183 2005-05-03 Richard Henderson <rth@redhat.com>
5185 Initial implementation and checkin.