1 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
5 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6 don't expect "0x" prefix for "%p" format specifier, don't expect
7 "(nil)" for NULL pointer.
8 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
17 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
18 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
19 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
20 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
21 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
22 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
23 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
24 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
25 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
26 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
27 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
28 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
29 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
30 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
31 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
32 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
33 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
34 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
35 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
36 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
37 accurately specify what we're looking for.
38 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
39 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
40 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
41 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
42 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
44 2015-04-30 James Norris <jnorris@codesourcery.com>
47 * testsuite/lib/libgomp.exp
48 (check_effective_target_openacc_host_selected)
49 (check_effective_target_openacc_host_nonshm_selected): New
51 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
53 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
54 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
55 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
56 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
57 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
58 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
59 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
60 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
61 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
62 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
63 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
64 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
65 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
66 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
67 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
68 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
69 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
70 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
71 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
72 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
73 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
74 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
75 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
76 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
77 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
78 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
79 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
80 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
81 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
82 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
83 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
84 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
85 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
86 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
87 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
88 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
89 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
90 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
91 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
92 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
93 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
94 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
95 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
97 2015-04-08 Julian Brown <julian@codesourcery.com>
99 * libgomp.h (target_mem_desc: Remove mem_map field.
100 (acc_dispatch_t): Remove open_device_func, close_device_func,
101 get_device_num_func, set_device_num_func, target_data members.
102 Change create_thread_data_func argument to device number instead of
104 * oacc-async.c (assert.h): Include.
105 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
106 (acc_wait_all, acc_wait_all_async): Use current host thread's
107 active device, not base_dev.
108 * oacc-cuda.c (acc_get_current_cuda_device)
109 (acc_get_current_cuda_context, acc_get_cuda_stream)
110 (acc_set_cuda_stream): Likewise.
111 * oacc-host.c (host_dispatch): Don't set open_device_func,
112 close_device_func, get_device_num_func or set_device_num_func.
113 * oacc-init.c (base_dev, init_key): Remove.
114 (cached_base_dev): New.
115 (name_of_acc_device_t): New.
116 (acc_init_1): Initialise default-numbered device, not zeroth.
117 (acc_shutdown_1): Close all devices of a given type.
118 (goacc_destroy_thread): Don't use base_dev.
119 (lazy_open, lazy_init, lazy_init_and_open): Remove.
120 (goacc_attach_host_thread_to_device): New.
121 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
122 (acc_get_num_devices): Don't use base_dev.
123 (acc_set_device_type): Reimplement.
124 (acc_get_device_type): Don't use base_dev.
125 (acc_get_device_num): Tweak logic.
126 (acc_set_device_num): Likewise.
127 (acc_on_device): Use acc_get_device_type.
128 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
129 (goacc_lazy_initialize): Reimplement with acc_init and
130 goacc_attach_host_thread_to_device.
131 * oacc-int.h (goacc_thread): Add base_dev field.
132 (base_dev): Remove extern declaration.
133 (goacc_attach_host_thread_to_device): Add prototype.
134 * oacc-mem.c (acc_malloc): Use current thread's device instead of
136 (acc_free): Likewise.
137 (acc_memcpy_to_device): Likewise.
138 (acc_memcpy_from_device): Likewise.
139 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
140 goacc_lazy_initialize (throughout).
141 (GOACC_parallel): Use tgt_offset to locate target functions.
142 * target.c (gomp_map_vars): Don't set tgt->mem_map.
143 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
144 (gomp_load_plugin_for_device): Remove open_device, close_device,
145 get_device_num, set_device_num openacc hook initialisation. Don't set
147 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
148 (GOMP_OFFLOAD_openacc_close_device)
149 (GOMP_OFFLOAD_openacc_get_device_num)
150 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
151 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
153 * plugin/plugin-nvptx.c (ptx_inited): Remove.
154 (instantiated_devices, ptx_dev_lock): New.
155 (struct ptx_image_data): New.
156 (ptx_devices, ptx_images, ptx_image_lock): New.
157 (fini_streams_for_device): Reorder cuStreamDestroy call.
158 (nvptx_get_num_devices): Remove forward declaration.
159 (nvptx_init): Change return type to bool.
160 (nvptx_fini): Remove.
161 (nvptx_attach_host_thread_to_device): New.
162 (nvptx_open_device): Return struct ptx_device* instead of void*.
163 (nvptx_close_device): Change argument type to struct ptx_device*,
165 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
166 (kernel_target_data, kernel_host_table): Remove static globals.
167 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
168 (GOMP_OFFLOAD_init_device): Reimplement.
169 (GOMP_OFFLOAD_fini_device): Likewise.
170 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
171 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
172 (GOMP_OFFLOAD_host2dev): Use ORD argument.
173 (GOMP_OFFLOAD_openacc_open_device)
174 (GOMP_OFFLOAD_openacc_close_device)
175 (GOMP_OFFLOAD_openacc_set_device_num)
176 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
177 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
181 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
183 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
185 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
186 * libgomp.h (struct gomp_memory_mapping): Remove.
187 (struct target_mem_desc): Change type of mem_map from
188 gomp_memory_mapping * to splay_tree_s *.
189 (struct gomp_device_descr): Remove register_image_func, get_table_func.
190 Add load_image_func, unload_image_func.
191 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
192 Remove offload_regions_registered.
193 (gomp_init_tables): Remove.
194 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
196 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
197 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
198 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
199 offload_regions_registered.
200 Initialize load_image_func, unload_image_func, mem_map.root.
201 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
202 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
203 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
204 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
205 gomp_memory_mapping *. Use dev's lock and splay_tree.
206 (lookup_dev): Use dev's lock.
207 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
208 (acc_is_present): Likewise.
209 (acc_map_data): Likewise.
210 (acc_unmap_data): Likewise. Use dev's lock.
211 (present_create_copy): Likewise.
212 (delete_copyout): Pass dev to lookup_host instead of mem_map.
213 (update_dev_host): Likewise.
214 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
215 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
216 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
217 (GOMP_OFFLOAD_get_table): Remove
218 (GOMP_OFFLOAD_load_image): New function.
219 (GOMP_OFFLOAD_unload_image): New function.
220 * target.c (register_lock): New mutex for offload image registration.
221 (num_devices): Do not guard with PLUGIN_SUPPORT.
222 (gomp_realloc_unlock): New static function.
223 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
225 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
226 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
227 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
229 (gomp_unmap_vars): Likewise.
230 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
231 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
232 (gomp_offload_image_to_device): New static function.
233 (GOMP_offload_register): Add mutex lock.
234 Call gomp_offload_image_to_device for all initialized devices.
235 Replace gomp_realloc with gomp_realloc_unlock.
236 (GOMP_offload_unregister): New function.
237 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
238 get_table_func from the plugin with calls to init_device_func and
239 gomp_offload_image_to_device.
240 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
242 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
243 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
244 (GOMP_target_data): Do not call gomp_init_tables.
245 (GOMP_target_update): Likewise. Remove argument from gomp_update.
246 (gomp_load_plugin_for_device): Replace register_image and get_table
247 with load_image and unload_image in DLSYM ().
248 (gomp_register_images_for_device): Remove function.
249 (gomp_target_init): Do not initialize current_device.mem_map.*,
250 current_device.offload_regions_registered.
251 Remove call to gomp_register_images_for_device.
252 Do not free offload_images and num_offload_images.
254 2015-03-30 Jakub Jelinek <jakub@redhat.com>
257 * testsuite/libgomp.fortran/pr65597.f90: New test.
259 2015-03-27 Tom de Vries <tom@codesourcery.com>
262 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
263 (init, check): New function.
264 (foo): Change return type to void.
265 (main): Call init and check.
267 2015-03-27 Tom de Vries <tom@codesourcery.com>
270 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
271 (foo): Use M for non-inner loops to scale down test-case.
273 2015-03-25 Kai Tietz <ktietz@redhat.com>
276 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
277 (GOACC_data_start): Likewise.
278 * target.c (gomp_map_vars): Likewise.
280 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
282 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
285 2015-03-19 Jakub Jelinek <jakub@redhat.com>
287 * testsuite/libgomp.c/target-10.c: New test.
288 * testsuite/libgomp.c++/target-4.C: New test.
290 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
292 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
293 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
295 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
297 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
298 * configure.ac (*-*-rtems*): Assume Pthread is supported.
299 (pthread.h): Check for this header file.
300 * configure: Regenerate.
302 2015-02-25 Tom de Vries <tom@codesourcery.com>
304 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
305 (check_reduction_op, check_reduction_macro, max, min):
307 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
309 (main): Use new functions.
311 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
313 * target.c (gomp_load_plugin_for_device): Use const char * instead of
314 char * for variables holding dlerror return values.
317 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
319 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
321 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
322 Cesar Philippidis <cesar@codesourcery.com>
324 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
325 GOACC_ctaid, and GOACC_nctaid routines.
327 2015-02-11 Jakub Jelinek <jakub@redhat.com>
330 * testsuite/libgomp.c/atomic-18.c: New test.
331 * testsuite/libgomp.c++/atomic-16.C: New test.
333 2015-02-04 Jakub Jelinek <jakub@redhat.com>
337 * testsuite/libgomp.c/pr64824.c: New test.
338 * testsuite/libgomp.c/pr64868.c: New test.
339 * testsuite/libgomp.c++/pr64824.C: New test.
340 * testsuite/libgomp.c++/pr64868.C: New test.
342 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
345 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
347 * config/aix/plugin-suffix.h: Delete.
349 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
352 * configure.tgt (*-*-aix*): Use config_path "aix posix".
353 (*-*-darwin*): Use config_path "bsd darwin posix".
354 (*-*-hpux*): Use config_path "hpux posix".
355 * target.c: Add include of plugin-suffix.h and use
357 * config/aix/plugin-suffix.h: New file.
358 * config/darwin/plugin-suffix.h: New file.
359 * config/hpux/plugin-suffix.h: New file.
360 * config/posix/plugin-suffix.h: New file.
362 2015-01-23 Jakub Jelinek <jakub@redhat.com>
365 * libgomp.c/pr64734.c: New test.
367 2015-01-23 Tom de Vries <tom@codesourcery.com>
370 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
372 2015-01-23 Tom de Vries <tom@codesourcery.com>
375 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
378 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
381 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
382 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
383 formal parameter. Update all users.
384 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
385 Document unused formal parameter.
387 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
389 * oacc-parallel.c: Don't include <alloca.h>.
390 (GOACC_parallel): Use gomp_alloca instead of alloca.
392 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
394 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
396 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
397 James Norris <jnorris@codesourcery.com>
398 Tom de Vries <tom@codesourcery.com>
399 Julian Brown <julian@codesourcery.com>
400 Cesar Philippidis <cesar@codesourcery.com>
401 Nathan Sidwell <nathan@codesourcery.com>
402 Tobias Burnus <burnus@net-b.de>
404 * Makefile.am (search_path): Add $(top_srcdir)/../include.
405 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
406 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
407 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
408 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
409 Include $(top_srcdir)/plugin/Makefrag.am.
410 (nodist_libsubinclude_HEADERS): Add openacc.h.
411 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
412 openacc.f90, openacc.mod, openacc_kinds.mod.
413 (omp_lib.mod): Generalize into...
414 (%.mod): ... this new rule.
415 (openacc_kinds.mod, openacc.mod): New rules.
416 * plugin/configfrag.ac: New file.
417 * configure.ac: Move plugin/offloading support into it. Include
418 it. Instantiate testsuite/libgomp-test-support.pt.exp.
419 * plugin/Makefrag.am: New file.
420 * testsuite/Makefile.am (OFFLOAD_TARGETS)
421 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
423 (libgomp-test-support.exp): New rule.
424 (all-local): Depend on it.
425 * Makefile.in: Regenerate.
426 * testsuite/Makefile.in: Regenerate.
427 * config.h.in: Likewise.
428 * configure: Likewise.
429 * configure.tgt: Harden shell syntax.
430 * env.c: Include "oacc-int.h".
431 (parse_acc_device_type): New function.
432 (gomp_debug_var, goacc_device_type, goacc_device_num): New
434 (initialize_env): Initialize those. Call
435 goacc_runtime_initialize.
436 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
437 (gomp_fatal): Call gomp_vfatal.
438 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
439 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
440 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
441 (splay_tree_node, splay_tree, splay_tree_key)
442 (struct target_mem_desc, struct splay_tree_key_s)
443 (struct gomp_memory_mapping, struct acc_dispatch_t)
444 (struct gomp_device_descr, gomp_acc_insert_pointer)
445 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
446 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
447 (gomp_free_memmap, gomp_fini_device): New declarations.
448 (gomp_vdebug, gomp_debug): New macros.
449 Include "splay-tree.h".
450 * libgomp.map (OACC_2.0): New symbol version. Use for
451 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
452 acc_set_device_type_h_, acc_get_device_type,
453 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
454 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
455 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
456 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
457 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
458 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
459 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
460 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
461 acc_copyin_array_h_, acc_present_or_copyin,
462 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
463 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
464 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
465 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
466 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
467 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
468 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
469 acc_update_device, acc_update_device_32_h_,
470 acc_update_device_64_h_, acc_update_device_array_h_,
471 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
472 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
473 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
474 acc_is_present_64_h_, acc_is_present_array_h_,
475 acc_memcpy_to_device, acc_memcpy_from_device,
476 acc_get_current_cuda_device, acc_get_current_cuda_context,
477 acc_get_cuda_stream, acc_set_cuda_stream.
478 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
479 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
480 GOACC_update, GOACC_wait, GOACC_get_thread_num,
481 GOACC_get_num_threads.
482 (GOMP_PLUGIN_1.0): New symbol version. Use for
483 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
484 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
485 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
486 GOMP_PLUGIN_acc_thread.
487 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
488 environment variable.
489 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
490 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
491 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
492 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
493 (splay_tree_remove): New declarations.
494 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
495 (splay_tree_remove, splay_tree_lookup): Move into...
496 * splay-tree.c: ... this new file.
497 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
498 (splay_tree_node, splay_tree, splay_tree_key)
499 (struct target_mem_desc, struct splay_tree_key_s)
500 (struct gomp_device_descr): Don't declare.
501 (num_devices_openmp): New variable.
502 (gomp_get_num_devices ): Use it.
503 (gomp_init_targets_once): New function.
504 (gomp_get_num_devices ): Use it.
505 (get_kind, gomp_copy_from_async, gomp_free_memmap)
506 (gomp_fini_device, gomp_register_image_for_device): New functions.
507 (gomp_map_vars): Add devaddrs parameter.
508 (gomp_update): Add mm parameter.
509 (gomp_init_device): Move most of it into...
510 (gomp_init_tables): ... this new function.
511 (gomp_register_images_for_device): Remove function.
512 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
513 Make them hidden instead of static.
514 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
515 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
516 (GOMP_target_end_data, GOMP_target_update)
517 (gomp_load_plugin_for_device, gomp_target_init): Update for
519 * oacc-async.c: New file.
520 * oacc-cuda.c: Likewise.
521 * oacc-host.c: Likewise.
522 * oacc-init.c: Likewise.
523 * oacc-int.h: Likewise.
524 * oacc-mem.c: Likewise.
525 * oacc-parallel.c: Likewise.
526 * oacc-plugin.c: Likewise.
527 * oacc-plugin.h: Likewise.
528 * oacc-ptx.h: Likewise.
529 * openacc.f90: Likewise.
530 * openacc.h: Likewise.
531 * openacc_lib.h: Likewise.
532 * plugin/plugin-host.c: Likewise.
533 * plugin/plugin-nvptx.c: Likewise.
534 * libgomp-plugin.c: Likewise.
535 * libgomp-plugin.h: Likewise.
536 * libgomp_target.h: Remove file after merging content into the
537 former file. Update all users.
538 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
539 (offload_targets_s, offload_targets_s_openacc): New variables.
540 (check_effective_target_openacc_nvidia_accel_present)
541 (check_effective_target_openacc_nvidia_accel_selected): New
543 (libgomp_init): Update for OpenACC changes.
544 * testsuite/libgomp-test-support.exp.in: New file.
545 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
546 * testsuite/libgomp.oacc-c/c.exp: Likewise.
547 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
548 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
549 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
550 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
551 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
552 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
553 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
554 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
555 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
556 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
557 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
558 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
559 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
560 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
561 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
562 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
563 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
564 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
565 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
566 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
567 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
568 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
569 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
570 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
571 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
572 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
573 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
574 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
575 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
576 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
577 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
578 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
579 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
580 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
581 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
582 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
583 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
584 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
585 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
586 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
587 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
588 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
589 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
590 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
591 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
592 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
593 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
594 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
595 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
596 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
597 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
598 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
599 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
600 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
601 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
602 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
603 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
604 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
605 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
606 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
607 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
608 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
609 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
610 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
611 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
612 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
613 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
614 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
615 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
616 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
617 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
618 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
619 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
620 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
621 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
622 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
623 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
624 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
625 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
626 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
627 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
628 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
629 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
630 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
631 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
632 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
633 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
634 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
635 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
636 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
637 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
638 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
639 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
640 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
641 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
642 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
643 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
644 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
645 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
646 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
647 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
648 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
649 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
650 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
651 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
652 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
653 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
654 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
655 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
656 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
657 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
658 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
659 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
660 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
661 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
662 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
663 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
664 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
665 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
666 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
667 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
668 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
669 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
670 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
671 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
672 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
673 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
674 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
675 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
676 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
677 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
678 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
679 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
680 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
681 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
682 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
683 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
684 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
686 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
687 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
688 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
689 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
690 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
691 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
692 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
693 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
694 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
695 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
696 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
697 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
698 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
699 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
700 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
701 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
702 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
703 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
704 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
705 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
706 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
707 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
708 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
709 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
710 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
711 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
712 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
713 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
714 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
715 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
716 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
717 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
718 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
719 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
720 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
721 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
722 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
723 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
724 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
725 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
726 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
727 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
728 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
729 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
730 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
731 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
732 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
733 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
734 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
735 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
736 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
737 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
738 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
739 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
740 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
741 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
742 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
743 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
744 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
745 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
747 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
748 Julian Brown <julian@codesourcery.com>
749 David Malcolm <dmalcolm@redhat.com>
751 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
752 to "GNU Offloading and Multi Processing Runtime Library". Change
754 * configure: Regenerate.
755 * libgomp.texi: Update.
757 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
759 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
761 * configure: Regenerate.
763 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
764 "intelmic" in $offload_targets.
766 2015-01-05 Jakub Jelinek <jakub@redhat.com>
768 Update copyright years.
770 * libgomp.texi: Bump @copying's copyright year.
772 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
774 * testsuite/lib/libgomp.exp: Load target-utils.exp.
775 Move load of target-supportes.exp earlier.
777 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
779 * testsuite/libgomp.c/target-9.c: New test.
781 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
783 * config.h.in: Regenerate.
784 * configure: Regenerate.
785 * configure.ac: Add GCC_CHECK_EMUTLS.
786 * libgomp.h: Add check for USE_EMUTLS: this case
787 is equal to HAVE_TLS.
790 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
792 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
794 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
795 Ilya Verbin <ilya.verbin@intel.com>
797 * testsuite/libgomp.c/target-critical-1.c: New test.
799 2014-11-26 Jakub Jelinek <jakub@redhat.com>
801 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
802 to dg-options unless expensive testing is on.
803 (TESTITERS): Define to N if not defined.
804 (main): Use TESTITERS instead of N.
805 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
806 dg-additional-options depending on whether expensive testing is on.
807 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
808 Decrease N to 100000 and CHUNKSZ to 10000.
810 2014-11-24 Jakub Jelinek <jakub@redhat.com>
813 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
814 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
816 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
818 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
820 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
823 * configure: Regenerated.
825 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
827 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
828 vect_simd_clones effective target.
829 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
831 2014-11-14 Jakub Jelinek <jakub@redhat.com>
833 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
835 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
836 instead of 32 as block_size.
838 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
839 Ilya Verbin <ilya.verbin@intel.com>
841 * Makefile.in: Regenerate.
842 * configure: Regenerate.
843 * configure.ac: Set up offload_additional_options,
844 offload_additional_lib_paths and offload_targets.
845 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
846 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
847 * testsuite/Makefile.in: Regenerate.
848 * testsuite/lib/libgomp.exp (libgomp_init): Append
849 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
850 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
851 build directory to LD_LIBRARY_PATH for intelmic offload targets.
853 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
854 Ilya Verbin <ilya.verbin@intel.com>
855 Kirill Yukhin <kirill.yukhin@intel.com>
856 Ilya Tocar <ilya.tocar@intel.com>
858 * testsuite/lib/libgomp.exp
859 (check_effective_target_offload_device): New.
860 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
861 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
862 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
863 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
864 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
865 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
866 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
867 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
868 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
869 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
870 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
871 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
872 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
873 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
874 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
875 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
876 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
877 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
878 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
879 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
880 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
881 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
882 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
883 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
884 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
885 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
886 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
887 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
888 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
889 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
890 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
891 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
892 * testsuite/libgomp.c/target-7.c: Fix test.
893 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
894 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
895 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
896 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
897 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
898 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
899 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
900 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
901 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
902 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
903 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
904 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
905 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
906 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
907 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
908 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
909 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
910 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
911 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
912 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
913 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
914 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
915 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
916 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
917 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
918 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
919 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
920 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
921 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
922 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
923 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
925 2014-11-13 Jakub Jelinek <jakub@redhat.com>
926 Ilya Verbin <ilya.verbin@intel.com>
927 Thomas Schwinge <thomas@codesourcery.com>
928 Andrey Turetskiy <andrey.turetskiy@intel.com>
930 * libgomp.map (GOMP_4.0.1): New symbol version.
931 Add GOMP_offload_register.
932 * libgomp_target.h: New file.
933 * splay-tree.h: New file.
934 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
935 (gomp_target_init): New forward declaration.
936 (gomp_is_initialized): New static variable.
937 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
938 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
940 (offload_images, num_offload_images, devices, num_devices): New static
942 (splay_compare): New static function.
943 (struct gomp_device_descr): New structure.
944 (gomp_get_num_devices): Call gomp_target_init.
945 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
946 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
947 (GOMP_offload_register): New function.
948 (GOMP_target): Arrange for host callback to be performed in a separate
949 initial thread and contention group, inheriting ICVs from
950 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
951 Add device initialization and lookup for target function in splay tree.
952 (GOMP_target_data): Add device initialization and call gomp_map_vars.
953 (GOMP_target_end_data): Call gomp_unmap_vars.
954 (GOMP_target_update): Add device initialization and call gomp_update.
955 (gomp_load_plugin_for_device, gomp_register_images_for_device)
956 (gomp_target_init): New static functions.
958 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
959 Thomas Schwinge <thomas@codesourcery.com>
960 Ilya Verbin <ilya.verbin@intel.com>
961 Andrey Turetskiy <andrey.turetskiy@intel.com>
963 * config.h.in: Regenerate.
964 * configure: Regenerate.
965 * configure.ac: Check for libdl, required for plugin support.
966 (PLUGIN_SUPPORT): Define if plugins are supported.
967 (enable_offload_targets): Support Intel MIC targets.
968 (OFFLOAD_TARGETS): List of target names suitable for offloading.
970 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
973 * configure: Regenerate.
975 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
977 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
979 2014-10-06 Marek Polacek <polacek@redhat.com>
981 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
982 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
983 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
984 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
986 2014-10-06 Marek Polacek <polacek@redhat.com>
988 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
989 * testsuite/libgomp.c/nqueens-1.c: Likewise.
990 * testsuite/libgomp.c/pr26943-3.c: Likewise.
991 * testsuite/libgomp.c/pr26943-4.c: Likewise.
992 * testsuite/libgomp.c/pr36802-2.c: Likewise.
993 * testsuite/libgomp.c/pr36802-3.c: Likewise.
994 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
995 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
996 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
997 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
998 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
999 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1000 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1001 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1002 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1003 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1004 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1005 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1008 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1011 * testsuite/libgomp.c/pr61200.c: New test.
1013 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1016 * testsuite/libgomp.c++/pr63248.C: New test.
1018 2014-08-04 Jakub Jelinek <jakub@redhat.com>
1020 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1021 is not zero, but taskgroup->children is NULL and there are
1022 any task->children, schedule those instead of waiting.
1023 * testsuite/libgomp.c/depend-6.c: New test.
1024 * testsuite/libgomp.c/depend-7.c: New test.
1025 * testsuite/libgomp.c/depend-8.c: New test.
1026 * testsuite/libgomp.c/depend-9.c: New test.
1027 * testsuite/libgomp.c/depend-10.c: New test.
1029 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1031 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1032 (struct gomp_taskwait): New type.
1033 (struct gomp_task): Add taskwait and parent_depends_on, remove
1034 in_taskwait and taskwait_sem fields.
1035 (gomp_finish_task): Don't destroy taskwait_sem.
1036 * task.c (gomp_init_task): Don't init in_taskwait, instead init
1037 taskwait and parent_depends_on.
1038 (GOMP_task): For if (0) tasks with depend clause that depend on
1039 earlier tasks don't defer them, instead call
1040 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1041 Initialize redundant_out field, for redundant out entries just
1042 move them at the end of linked list instead of removing them
1043 completely, and set redundant_out flag instead of redundant.
1044 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1046 (gomp_task_run_post_handle_dependers): If parent is in
1047 gomp_task_maybe_wait_for_dependencies and newly runnable task
1048 is not parent_depends_on, queue it in parent->children linked
1049 list after all runnable tasks with parent_depends_on set.
1050 Adjust for addition of taskwait indirection.
1051 (gomp_task_run_post_remove_parent): If parent is in
1052 gomp_task_maybe_wait_for_dependencies and task to be removed
1053 is parent_depends_on, decrement n_depend and if needed awake
1054 parent. Adjust for addition of taskwait indirection.
1055 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1056 (gomp_task_maybe_wait_for_dependencies): New function.
1057 * testsuite/libgomp.c/depend-5.c: New test.
1059 2014-07-13 Tobias Burnus <burnus@net-b.de>
1061 * testsuite/libgomp.fortran/pr34020.f90: Make compile
1062 with TS 18508/Fortran 2015.
1064 2014-07-06 Marek Polacek <polacek@redhat.com>
1067 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1069 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1071 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1072 matches regex $lang_source_re, add $lang_include_flags to options.
1073 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1074 * testsuite/libgomp.c++/c++.exp: Likewise.
1075 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1076 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1078 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1080 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1082 * testsuite/libgomp.fortran/fortran.exp: Explain
1083 gfortran-dg-runtest usage.
1085 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1087 * testsuite/libgomp.fortran/simd5.f90: New test.
1088 * testsuite/libgomp.fortran/simd6.f90: New test.
1089 * testsuite/libgomp.fortran/simd7.f90: New test.
1091 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1093 * testsuite/libgomp.c/for-2.c: Define SC to static for
1094 #pragma omp for simd testing.
1095 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1096 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1098 * testsuite/libgomp.c/simd-14.c: New test.
1099 * testsuite/libgomp.c/simd-15.c: New test.
1100 * testsuite/libgomp.c/simd-16.c: New test.
1101 * testsuite/libgomp.c/simd-17.c: New test.
1102 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1103 #pragma omp for simd testing.
1104 * testsuite/libgomp.c++/simd10.C: New test.
1105 * testsuite/libgomp.c++/simd11.C: New test.
1106 * testsuite/libgomp.c++/simd12.C: New test.
1107 * testsuite/libgomp.c++/simd13.C: New test.
1109 * testsuite/libgomp.fortran/aligned1.f03: New test.
1110 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1111 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1112 tasks with !$omp parallel !$omp single.
1113 * testsuite/libgomp.fortran/target8.f90: New test.
1114 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1115 not to use trim in the combiner, instead call elemental function.
1116 (fn): New elemental function.
1117 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1119 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1121 * testsuite/libgomp.fortran/udr12.f90: New test.
1122 * testsuite/libgomp.fortran/udr13.f90: New test.
1123 * testsuite/libgomp.fortran/udr14.f90: New test.
1124 * testsuite/libgomp.fortran/udr15.f90: New test.
1126 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1128 * omp_lib.f90.in (openmp_version): Set to 201307.
1129 * omp_lib.h.in (openmp_version): Likewise.
1130 * testsuite/libgomp.c/target-8.c: New test.
1131 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1132 and inbranch clauses.
1133 * testsuite/libgomp.fortran/depend-3.f90: New test.
1134 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1136 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1137 * testsuite/libgomp.fortran/target1.f90: New test.
1138 * testsuite/libgomp.fortran/target2.f90: New test.
1139 * testsuite/libgomp.fortran/target3.f90: New test.
1140 * testsuite/libgomp.fortran/target4.f90: New test.
1141 * testsuite/libgomp.fortran/target5.f90: New test.
1142 * testsuite/libgomp.fortran/target6.f90: New test.
1143 * testsuite/libgomp.fortran/target7.f90: New test.
1145 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1148 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1149 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1150 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1151 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1152 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1153 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1154 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1155 * testsuite/libgomp.fortran/associate1.f90: New test.
1156 * testsuite/libgomp.fortran/associate2.f90: New test.
1157 * testsuite/libgomp.fortran/procptr1.f90: New test.
1159 2014-06-06 Jakub Jelinek <jakub@redhat.com>
1161 * testsuite/libgomp.fortran/simd1.f90: New test.
1162 * testsuite/libgomp.fortran/udr1.f90: New test.
1163 * testsuite/libgomp.fortran/udr2.f90: New test.
1164 * testsuite/libgomp.fortran/udr3.f90: New test.
1165 * testsuite/libgomp.fortran/udr4.f90: New test.
1166 * testsuite/libgomp.fortran/udr5.f90: New test.
1167 * testsuite/libgomp.fortran/udr6.f90: New test.
1168 * testsuite/libgomp.fortran/udr7.f90: New test.
1169 * testsuite/libgomp.fortran/udr8.f90: New test.
1170 * testsuite/libgomp.fortran/udr9.f90: New test.
1171 * testsuite/libgomp.fortran/udr10.f90: New test.
1172 * testsuite/libgomp.fortran/udr11.f90: New test.
1174 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
1176 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1177 vect_simd_clones effective target.
1178 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1180 2014-05-21 Jakub Jelinek <jakub@redhat.com>
1183 * testsuite/libgomp.c++/simd-9.C: New test.
1185 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
1187 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1188 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1189 texts according to their @menu entry positions.
1191 2014-05-11 Jakub Jelinek <jakub@redhat.com>
1193 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1194 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1195 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1196 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1197 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1198 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1199 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1200 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1201 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1202 * testsuite/libgomp.fortran/depend-1.f90: New test.
1203 * testsuite/libgomp.fortran/depend-2.f90: New test.
1204 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1205 * testsuite/libgomp.fortran/simd1.f90: New test.
1206 * testsuite/libgomp.fortran/simd2.f90: New test.
1207 * testsuite/libgomp.fortran/simd3.f90: New test.
1208 * testsuite/libgomp.fortran/simd4.f90: New test.
1209 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1211 2014-05-02 Jakub Jelinek <jakub@redhat.com>
1213 * testsuite/libgomp.c/simd-10.c: New test.
1214 * testsuite/libgomp.c/simd-11.c: New test.
1215 * testsuite/libgomp.c/simd-12.c: New test.
1216 * testsuite/libgomp.c/simd-13.c: New test.
1218 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1220 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1221 atomic type clauses in any order and optional comma in between.
1222 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1223 * testsuite/libgomp.c/atomic-17.c: Likewise.
1225 * testsuite/libgomp.c/simd-7.c: New test.
1226 * testsuite/libgomp.c/simd-8.c: New test.
1227 * testsuite/libgomp.c/simd-9.c: New test.
1228 * testsuite/libgomp.c/loop-16.c: New test.
1230 2014-04-02 Richard Henderson <rth@redhat.com>
1232 * config/linux/futex.h (futex_wait): Get error value from errno.
1233 (futex_wake): Likewise.
1235 2014-03-25 Jakub Jelinek <jakub@redhat.com>
1238 * testsuite/libgomp.c++/udr-11.C: New test.
1239 * testsuite/libgomp.c++/udr-12.C: New test.
1240 * testsuite/libgomp.c++/udr-13.C: New test.
1241 * testsuite/libgomp.c++/udr-14.C: New test.
1242 * testsuite/libgomp.c++/udr-15.C: New test.
1243 * testsuite/libgomp.c++/udr-16.C: New test.
1244 * testsuite/libgomp.c++/udr-17.C: New test.
1245 * testsuite/libgomp.c++/udr-18.C: New test.
1246 * testsuite/libgomp.c++/udr-19.C: New test.
1248 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1250 Update copyright years
1252 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1254 * hashtab.h: Use the standard form for the copyright notice.
1256 2014-01-02 Tobias Burnus <burnus@net-b.de>
1258 * libgomp.texi: Bump @copying's copyright year.
1260 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
1262 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1263 alloca () with __builtin_alloca ().
1264 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1265 * testsuite/libgomp.c/lock-3.c: Likewise.
1266 * testsuite/libgomp.c/pr48591.c: Likewise.
1268 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1271 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1274 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1277 * testsuite/libgomp.c/pr58756.c: New test.
1279 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1282 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1285 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1287 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1289 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1290 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1291 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1292 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1295 * libgomp_g.h: Include <stddef.h> for size_t.
1297 * libgomp.spec.in: Update comment about libgomp's dependencies.
1298 * configure.ac: Likewise.
1299 * configure: Regenerate.
1301 2013-10-16 Tobias Burnus <burnus@net-b.de>
1303 * libgomp.texi: (Runtime Library Routines): Update references for
1304 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1305 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1306 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1307 (Environment Variables): Update references for OpenMP 4.0. Add
1308 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1309 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1312 2013-10-14 Jakub Jelinek <jakub@redhat.com>
1314 * env.c (parse_bind_var): Initialize value to avoid
1315 (false positive) warning.
1317 2013-10-12 Jakub Jelinek <jakub@redhat.com>
1320 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1322 (gomp_init_num_threads): Move i variable declaration into
1323 #ifdef CPU_ALLOC_SIZE block.
1324 * config/linux/affinity.c (gomp_affinity_init_level): Test
1325 gomp_places_list_len == 0 rather than gomp_places_list == 0
1326 when checking for topology reading error.
1327 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1328 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1329 gomp_places_list, only parse env var and always return false.
1330 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1331 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1332 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1333 and either of these variables were parsed correctly into a places
1336 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1337 Jakub Jelinek <jakub@redhat.com>
1339 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1340 of 5 loopfn matches.
1341 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1342 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1343 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1344 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1345 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1346 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1347 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1348 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1350 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1352 * Makefile.am (omp_lib.mod): Streamline rule.
1353 * Makefile.in: Regenerate.
1355 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1358 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1359 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1360 * testsuite/libgomp.fortran/lib2.f: Likewise.
1361 * testsuite/libgomp.fortran/lib3.f: Likewise.
1363 * configure.ac: Typo fix.
1364 * configure: Regenerate.
1366 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1367 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1369 * omp.h.in: Don't touch the user's namespace.
1371 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1372 Tobias Burnus <burnus@net-b.de>
1373 Richard Henderson <rth@redhat.com>
1375 * target.c: New file.
1376 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1377 * Makefile.in: Regenerated.
1378 * libgomp_g.h (GOMP_task): Add depend argument.
1379 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1380 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1381 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1382 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1383 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1384 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1385 GOMP_taskgroup_start, GOMP_taskgroup_end,
1386 GOMP_parallel_sections): New prototypes.
1387 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1388 (omp_is_initial_device_): New function.
1389 (ULP, STR1, STR2, ialias_redirect): Removed.
1390 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1391 omp_set_default_device_8_, omp_get_default_device_,
1392 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1394 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1395 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1396 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1398 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1399 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1400 omp_set_default_device, omp_set_default_device_,
1401 omp_set_default_device_8_, omp_get_default_device,
1402 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1403 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1404 omp_get_team_num_): Export @@OMP_4.0.
1405 * team.c (struct gomp_thread_start_data): Add place field.
1406 (gomp_thread_start): Clear thr->thread_pool and
1407 thr->task before returning. Use gomp_team_barrier_wait_final
1408 instead of gomp_team_barrier_wait. Initialize thr->place.
1409 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1410 team_cancelled and task_queued_count fields.
1411 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1412 before calling pthread_exit.
1413 (gomp_free_thread): No longer static. Use
1414 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1415 (gomp_team_start): Add flags argument. Set
1416 thr->thread_pool->threads_busy to nthreads immediately after creating
1417 new pool. Use gomp_managed_threads_lock instead of
1418 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1419 (gomp_team_end): Use gomp_managed_threads_lock instead of
1420 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1421 of gomp_team_barrier_wait. If team->team_cancelled, call
1422 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1423 rather than thr->ts.work_share.
1424 (initialize_team): Don't call gomp_sem_init here.
1425 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1427 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1428 * env.c (gomp_global_icv): Add default_device_var, target_data and
1429 bind_var initializers.
1430 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1431 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1432 gomp_places_list_len): New variables.
1433 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1434 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1436 (gomp_cancel_var): New global variable.
1437 (parse_int): New function.
1438 (handle_omp_display_env): New function.
1439 (initialize_env): Use it. Initialize default_device_var.
1440 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1441 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1442 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1443 been successfully parsed (and call gomp_init_affinity in that case).
1444 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1445 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1446 omp_get_team_num, omp_is_initial_device): New functions.
1447 * libgomp.h: Include stdlib.h.
1448 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1450 (struct target_mem_desc): Forward declare.
1451 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1452 and thread_limit_var fields.
1453 (gomp_get_num_devices): New prototype.
1454 (gomp_cancel_var): New extern decl.
1455 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1456 team_cancelled and task_queued_count fields. Add comments about
1457 task_{,queued_,running_}count.
1458 (gomp_cancel_kind): New enum.
1459 (gomp_work_share_end_cancel): New prototype.
1460 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1461 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1463 (struct gomp_taskgroup): New type.
1464 (struct gomp_task_depend_entry,
1465 struct gomp_dependers_vec): New types.
1466 (gomp_finish_task): Free depend_hash if non-NULL.
1467 (struct gomp_team_state): Add place_partition_off
1468 and place_partition_len fields.
1469 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1470 gomp_places_list_len): New extern decls.
1471 (struct gomp_thread): Add place field.
1472 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1473 (gomp_init_thread_affinity): Add place argument.
1474 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1475 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1476 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1477 gomp_affinity_init_level, gomp_affinity_print_place): New
1479 (gomp_team_start): Add flags argument.
1480 (gomp_thread_limit_var, gomp_remaining_threads_count,
1481 gomp_remaining_threads_lock): Remove.
1482 (gomp_managed_threads_lock): New variable.
1483 (struct gomp_thread_pool): Add threads_busy field.
1484 (gomp_free_thread): New prototype.
1485 * task.c: Include hashtab.h.
1486 (hash_entry_type): New typedef.
1487 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1488 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1489 copy_ctors_done and taskgroup fields.
1490 (GOMP_task): Add depend argument, handle depend clauses. If
1491 gomp_team_barrier_cancelled or if it's taskgroup has been
1492 cancelled, don't queue or start new tasks. Set copy_ctors_done
1493 field if needed. Initialize taskgroup field. If copy_ctors_done
1494 and already cancelled, don't discard the task. If taskgroup is
1495 non-NULL, enqueue the task into taskgroup queue. Increment
1496 num_children field in taskgroup. Increment task_queued_count.
1497 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1498 gomp_task_run_post_remove_taskgroup): New inline functions.
1499 (gomp_task_run_post_handle_depend_hash,
1500 gomp_task_run_post_handle_dependers,
1501 gomp_task_run_post_handle_depend): New functions.
1502 (GOMP_taskwait): Use them. If more than one new tasks
1503 have been queued, wake other threads if needed.
1504 (gomp_barrier_handle_tasks): Likewise. If
1505 gomp_team_barrier_cancelled, don't start any new tasks, just free
1507 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1509 (omp_proc_bind_kind, omp_proc_bind_false,
1510 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1511 omp_proc_bind_spread): New params.
1512 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1513 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1514 omp_get_team_num, omp_is_initial_device): New interfaces.
1515 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1516 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1517 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1518 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1519 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1520 useless use omp_lib_kinds.
1521 * omp.h.in (omp_proc_bind_t): New typedef.
1522 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1523 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1524 omp_get_team_num, omp_is_initial_device): New prototypes.
1525 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1526 through to gomp_team_start.
1527 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1528 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1529 Adjust gomp_parallel_loop_start callers.
1530 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1531 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1532 GOMP_loop_end_cancel): New functions.
1533 (GOMP_parallel_end): Add ialias_redirect.
1534 * hashtab.h: New file.
1535 * libgomp.texi (Environment Variables): Minor cleanup,
1536 update section refs to OpenMP 4.0rc2.
1537 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1538 environment variables.
1539 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1540 team->work_shares_to_free to thr->ts.work_share before calling
1542 (gomp_work_share_end_cancel): New function.
1543 * config/linux/proc.c: Include errno.h.
1544 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1545 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1546 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1547 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1548 gomp_cpuset_size is sizeof (cpu_set_t).
1549 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1550 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1551 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1552 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1553 contain any logical CPUs.
1554 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1555 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1556 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1557 pthread_getaffinity_np. Check gomp_places_list instead of
1558 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1559 * config/linux/bar.c (gomp_barrier_wait_end,
1560 gomp_barrier_wait_last): Use BAR_* defines.
1561 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1562 from state where needed. Set work_share_cancelled to 0 on last
1564 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1565 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1567 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1568 Add cpusetsize argument.
1569 (gomp_cpuset_size, gomp_cpusetp): Declare.
1570 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1571 (affinity_counter): Remove.
1572 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1573 if CPU_ALLOC_SIZE isn't defined.
1574 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1575 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1576 bind current thread to the first place.
1577 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1578 pthread_setaffinity_np to gomp_places_list[place].
1579 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1580 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1581 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1582 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1583 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1584 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1585 (gomp_barrier_t): Add awaited_final field.
1586 (gomp_barrier_init): Initialize awaited_final field.
1587 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1588 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1590 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1592 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1593 gomp_team_barrier_cancelled): New inline functions.
1594 (gomp_barrier_last_thread,
1595 gomp_team_barrier_set_task_pending,
1596 gomp_team_barrier_clear_task_pending,
1597 gomp_team_barrier_set_waiting_for_tasks,
1598 gomp_team_barrier_waiting_for_tasks,
1599 gomp_team_barrier_done): Use BAR_* defines.
1600 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1601 (gomp_barrier_wait_end): Use BAR_* defines.
1602 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1603 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1605 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1606 gomp_team_barrier_cancel): New functions.
1607 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1609 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1610 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1611 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1612 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1613 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1614 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1615 (gomp_barrier_t): Add cancellable field.
1616 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1617 gomp_team_barrier_cancel): New prototypes.
1618 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1619 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1620 gomp_team_barrier_cancelled): New inline functions.
1621 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1622 gomp_team_barrier_set_task_pending,
1623 gomp_team_barrier_clear_task_pending,
1624 gomp_team_barrier_set_waiting_for_tasks,
1625 gomp_team_barrier_waiting_for_tasks,
1626 gomp_team_barrier_done): Use BAR_* defines.
1627 * barrier.c (GOMP_barrier_cancel): New function.
1628 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1629 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1630 omp_proc_bind_spread): New params.
1631 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1632 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1633 omp_get_team_num, omp_is_initial_device): New externals.
1634 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1636 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1637 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1638 infinity. If not nested, just return minimum of max_num_threads
1639 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1640 to the returned value. Otherwise, don't update atomically
1641 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1642 (GOMP_parallel_end): Adjust for thread_limit now being in
1643 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1644 infinity. Adjust threads_busy in the pool rather than
1645 gomp_remaining_threads_count. Remember team->nthreads and call
1646 gomp_team_end before adjusting threads_busy, if not nested
1647 afterwards, just set it to 1 non-atomically. Add ialias.
1648 (GOMP_parallel_start): Adjust gomp_team_start caller.
1649 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1650 * testsuite/libgomp.c/affinity-1.c: New test.
1651 * testsuite/libgomp.c/atomic-15.c: New test.
1652 * testsuite/libgomp.c/atomic-16.c: New test.
1653 * testsuite/libgomp.c/atomic-17.c: New test.
1654 * testsuite/libgomp.c/cancel-for-1.c: New test.
1655 * testsuite/libgomp.c/cancel-for-2.c: New test.
1656 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1657 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1658 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1659 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1660 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1661 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1662 * testsuite/libgomp.c/depend-1.c: New test.
1663 * testsuite/libgomp.c/depend-2.c: New test.
1664 * testsuite/libgomp.c/depend-3.c: New test.
1665 * testsuite/libgomp.c/depend-4.c: New test.
1666 * testsuite/libgomp.c/for-1.c: New test.
1667 * testsuite/libgomp.c/for-1.h: New file.
1668 * testsuite/libgomp.c/for-2.c: New test.
1669 * testsuite/libgomp.c/for-2.h: New file.
1670 * testsuite/libgomp.c/for-3.c: New test.
1671 * testsuite/libgomp.c/pr58392.c: New test.
1672 * testsuite/libgomp.c/simd-1.c: New test.
1673 * testsuite/libgomp.c/simd-2.c: New test.
1674 * testsuite/libgomp.c/simd-3.c: New test.
1675 * testsuite/libgomp.c/simd-4.c: New test.
1676 * testsuite/libgomp.c/simd-5.c: New test.
1677 * testsuite/libgomp.c/simd-6.c: New test.
1678 * testsuite/libgomp.c/target-1.c: New test.
1679 * testsuite/libgomp.c/target-2.c: New test.
1680 * testsuite/libgomp.c/target-3.c: New test.
1681 * testsuite/libgomp.c/target-4.c: New test.
1682 * testsuite/libgomp.c/target-5.c: New test.
1683 * testsuite/libgomp.c/target-6.c: New test.
1684 * testsuite/libgomp.c/target-7.c: New test.
1685 * testsuite/libgomp.c/taskgroup-1.c: New test.
1686 * testsuite/libgomp.c/thread-limit-1.c: New test.
1687 * testsuite/libgomp.c/thread-limit-2.c: New test.
1688 * testsuite/libgomp.c/thread-limit-3.c: New test.
1689 * testsuite/libgomp.c/udr-1.c: New test.
1690 * testsuite/libgomp.c/udr-2.c: New test.
1691 * testsuite/libgomp.c/udr-3.c: New test.
1692 * testsuite/libgomp.c++/affinity-1.C: New test.
1693 * testsuite/libgomp.c++/atomic-10.C: New test.
1694 * testsuite/libgomp.c++/atomic-11.C: New test.
1695 * testsuite/libgomp.c++/atomic-12.C: New test.
1696 * testsuite/libgomp.c++/atomic-13.C: New test.
1697 * testsuite/libgomp.c++/atomic-14.C: New test.
1698 * testsuite/libgomp.c++/atomic-15.C: New test.
1699 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1700 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1701 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1702 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1703 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1704 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1705 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1706 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1707 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1708 * testsuite/libgomp.c++/cancel-test.h: New file.
1709 * testsuite/libgomp.c++/for-9.C: New test.
1710 * testsuite/libgomp.c++/for-10.C: New test.
1711 * testsuite/libgomp.c++/for-11.C: New test.
1712 * testsuite/libgomp.c++/simd-1.C: New test.
1713 * testsuite/libgomp.c++/simd-2.C: New test.
1714 * testsuite/libgomp.c++/simd-3.C: New test.
1715 * testsuite/libgomp.c++/simd-4.C: New test.
1716 * testsuite/libgomp.c++/simd-5.C: New test.
1717 * testsuite/libgomp.c++/simd-6.C: New test.
1718 * testsuite/libgomp.c++/simd-7.C: New test.
1719 * testsuite/libgomp.c++/simd-8.C: New test.
1720 * testsuite/libgomp.c++/target-1.C: New test.
1721 * testsuite/libgomp.c++/target-2.C: New test.
1722 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1723 * testsuite/libgomp.c++/target-3.C: New test.
1724 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1725 * testsuite/libgomp.c++/udr-1.C: New test.
1726 * testsuite/libgomp.c++/udr-2.C: New test.
1727 * testsuite/libgomp.c++/udr-3.C: New test.
1728 * testsuite/libgomp.c++/udr-4.C: New test.
1729 * testsuite/libgomp.c++/udr-5.C: New test.
1730 * testsuite/libgomp.c++/udr-6.C: New test.
1731 * testsuite/libgomp.c++/udr-7.C: New test.
1732 * testsuite/libgomp.c++/udr-8.C: New test.
1733 * testsuite/libgomp.c++/udr-9.C: New test.
1735 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1738 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1741 2013-09-20 Alan Modra <amodra@gmail.com>
1743 * configure: Regenerate.
1745 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1747 * testsuite/libgomp.c/sections-2.c: New test.
1749 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1751 * testsuite/libgomp.fortran/strassen.f90:
1752 Add dg-skip-if aarch64_tiny.
1754 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1755 Cesar Philippidis <cesar@codesourcery.com>
1757 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1758 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1759 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1760 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1761 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1762 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1763 Use dg-runtest rather than gfortran-dg-runtest.
1765 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1767 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1768 Linux-based x86 systems to cover all GNU systems.
1769 * testsuite/libgomp.c/lock-3.c: Likewise.
1770 * testsuite/libgomp.c/pr48591.c: Likewise.
1772 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1774 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1775 GNU/Hurd, as done for Linux-based systems.
1777 * config/posix/ptrlock.h: Fix comment.
1779 2013-05-27 Tobias Burnus <burnus@net-b.de>
1782 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1783 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1784 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1785 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1786 omp_destroy_nest_lock): Correct arguments to match the one in
1788 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1789 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1790 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1791 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1793 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1795 * testsuite/libgomp.c/loop-13.c: New test.
1796 * testsuite/libgomp.c/loop-14.c: New test.
1797 * testsuite/libgomp.c/loop-15.c: New test.
1798 * testsuite/libgomp.c++/loop-13.C: New test.
1799 * testsuite/libgomp.c++/loop-14.C: New test.
1800 * testsuite/libgomp.c++/loop-15.C: New test.
1802 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1805 * testsuite/libgomp.c++/pr56217.C: New test.
1807 2013-02-01 Alan Modra <amodra@gmail.com>
1809 * task.c (GOMP_task, GOMP_taskwait): Comment.
1811 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1812 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1815 * config/linux/wait.h (do_spin): Use atomic load for addr.
1816 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1817 for intptr and ptrlock.
1818 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1821 2013-01-22 Alan Modra <amodra@gmail.com>
1825 * task.c (GOMP_task): Revert 2011-12-09 change.
1826 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1827 barrier to read task->children..
1828 (gomp_barrier_handle_tasks): ..and matching atomic store with
1829 release barrier here when setting parent->children to NULL.
1831 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1832 Tobias Burnus <burnus@net-b.de>
1835 * testsuite/libgomp.fortran/fortran.exp: Use
1836 -fintrinsic-modules-path= instead of
1837 -fintrinsic-modules-path.
1839 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1841 Update copyright years.
1843 2012-12-19 Tobias Burnus <burnus@net-b.de>
1845 * testsuite/libgomp.fortran/fortran.exp: Set
1846 -fintrinsic-modules-path.
1848 2012-12-19 Tobias Burnus <burnus@net-b.de>
1850 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1851 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1853 2012-11-21 Jakub Jelinek <jakub@redhat.com>
1856 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1857 if pool had any threads_used.
1859 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
1861 * testsuite/libgomp.c++/pr24455.C: Use
1862 -Wl,-undefined,dynamic_lookup on darwin.
1864 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
1866 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1868 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1870 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1872 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1873 Jim MacArthur <jim.macarthur@arm.com>
1874 Marcus Shawcroft <marcus.shawcroft@arm.com>
1875 Nigel Stephens <nigel.stephens@arm.com>
1876 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1877 Richard Earnshaw <rearnsha@arm.com>
1878 Sofiane Naci <sofiane.naci@arm.com>
1879 Stephen Thomas <stephen.thomas@arm.com>
1880 Tejas Belagod <tejas.belagod@arm.com>
1881 Yufeng Zhang <yufeng.zhang@arm.com>
1883 * configure.tgt: Add AArch64.
1885 2012-10-04 Jason Merrill <jason@redhat.com>
1887 * testsuite/libgomp.c++/tls-init1.C: New.
1889 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1891 * configure: Regenerated.
1893 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
1895 * config/linux/mips/futex.h (sys_futex0): Change to static
1896 function with noinline, nomips16 attributes under MIPS16. Adjust
1897 asm statement to place 'li v0,SYS_futex' immediately before
1900 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
1902 * libgomp.texi (Library Index): Renamed from "Index" to prevent
1903 conflict with index.html on case-insensitive file systems.
1905 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1907 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1908 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1910 2012-07-02 Richard Guenther <rguenther@suse.de>
1911 Michael Matz <matz@suse.de>
1912 Tobias Grosser <tobias@grosser.es>
1913 Sebastian Pop <sebpop@gmail.com>
1915 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1916 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1917 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1918 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1920 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
1922 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1924 2012-06-22 Richard Guenther <rguenther@suse.de>
1926 Merge from graphite branch
1927 2012-01-13 Tobias Grosser <tobias@grosser.es>
1929 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1930 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1932 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1935 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1936 use GOMP_barrier () call instead.
1937 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1938 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1939 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1940 call GOMP_barrier instead.
1941 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1943 2012-06-06 Jakub Jelinek <jakub@redhat.com>
1946 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1947 argument to memset call.
1949 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1951 * configure: Regenerated.
1953 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1955 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1957 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
1960 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1962 2012-03-22 Jakub Jelinek <jakub@redhat.com>
1965 * testsuite/libgomp.c/pr52547.c: New test.
1967 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1969 * testsuite/lib/libgomp.exp: load fortran-modules.exp
1971 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1973 * configure.tgt (mips-sgi-irix6*): Remove.
1975 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1977 * configure.tgt (alpha*-dec-osf*): Remove.
1979 * config/osf/sem.h: Remove.
1980 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1982 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
1984 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1986 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1989 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1990 Remove ENABLE_SYMVERS_SOL2.
1991 * configure: Regenerate.
1992 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1993 (PREPROCESS): New variable.
1994 (libgomp.ver): New target.
1995 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1996 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1997 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1999 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2000 * Makefile.in: Regenerate.
2002 2012-02-14 Walter Lee <walt@tilera.com>
2004 * configure.tgt: Handle tilegx and tilepro.
2005 * config/linux/tile/futex.h: New file.
2007 2012-02-08 Richard Guenther <rguenther@suse.de>
2009 PR tree-optimization/46886
2010 * testsuite/libgomp.c/pr46886.c: New testcase.
2012 2012-01-25 Matthias Klose <doko@ubuntu.com>
2014 * config/linux/arm: Remove empty directory.
2015 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2017 2011-12-09 Alan Modra <amodra@gmail.com>
2020 * task.c (GOMP_taskwait): Don't access task->children outside of
2021 task_lock mutex region.
2022 (GOMP_task): Likewise.
2024 2011-12-06 Jakub Jelinek <jakub@redhat.com>
2027 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2029 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2030 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2031 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2032 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2033 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2035 2011-12-02 Alan Modra <amodra@gmail.com>
2037 * config/linux/affinity.c: Use atomic rather than sync builtin.
2038 * config/linux/lock.c: Likewise.
2039 * config/linux/ptrlock.h: Likewise.
2040 * config/linux/ptrlock.c: Likewise.
2041 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2042 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2043 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2044 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2045 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2046 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2047 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2048 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2049 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2050 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2052 2011-11-30 Alan Modra <amodra@gmail.com>
2055 * config/linux/bar.h: Use atomic rather than sync builtins.
2056 * config/linux/bar.c: Likewise. Add missing acquire
2057 synchronisation on generation field.
2058 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2061 2011-11-30 Alan Modra <amodra@gmail.com>
2063 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2064 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2065 * config/linux/mutex.h: Use atomic rather than sync builtins.
2066 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2067 * config/linux/omp-lock.h: Comment fix.
2068 * config/linux/arm/mutex.h: Delete.
2069 * config/linux/powerpc/mutex.h: Delete.
2070 * config/linux/ia64/mutex.h: Delete.
2071 * config/linux/mips/mutex.h: Delete.
2073 2011-11-30 Alan Modra <amodra@gmail.com>
2076 * config/linux/sem.h: Rewrite.
2077 * config/linux/sem.c: Rewrite.
2079 2011-11-28 Richard Henderson <rth@redhat.com>
2081 * libgomp.h (enum memmodel): New.
2083 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2085 * configure: Regenerate.
2087 2011-10-10 Matthias Klose <doko@ubuntu.com>
2089 * config/posix95: Remove empty directory.
2091 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2093 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2095 2011-08-19 Jakub Jelinek <jakub@redhat.com>
2098 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2099 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2101 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2103 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2105 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2108 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2110 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
2112 * config/linux/proc.h: New.
2113 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2114 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2115 (gomp_init_num_threads): Update call to cpuset_popcount.
2116 (get_num_procs): Ditto.
2117 * config/linux/affinity.c (gomp_init_affinity): Call
2118 gomp_cpuset_popcount.
2120 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2124 * omp.h.in (omp_in_final): New prototype.
2125 * omp_lib.f90.in (omp_in_final): New interface.
2126 (omp_integer_kind, omp_logical_kind): Remove
2127 and replace all its uses in the module with 4.
2128 (openmp_version): Change to 201107.
2129 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2130 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2131 kind for the parameters.
2132 (omp_in_final): New external.
2133 (openmp_version): Change to 201107.
2134 * task.c (omp_in_final): New function.
2135 (gomp_init_task): Initialize final_task.
2136 (GOMP_task): Remove unused attribute from flags. Handle final
2138 (GOMP_taskyield): New function.
2139 (omp_in_final): Return true if if (false) or final (true) task
2140 or descendant of final (true).
2141 * fortran.c (omp_in_final_): New function.
2142 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2143 (GOMP_3.0): Export GOMP_taskyield.
2144 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2146 (parse_unsigned_long_list): New function.
2147 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2148 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2149 even if parse_affinity returned false.
2150 * config/linux/affinity.c (gomp_init_affinity): Handle
2151 gomp_cpu_affinity_len == 0.
2152 * libgomp_g.h (GOMP_taskyield): New prototype.
2153 * libgomp.h (struct gomp_task): Add final_task field.
2154 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2155 * team.c (gomp_team_start): Override new task's nthreads_var icv
2156 if list form OMP_NUM_THREADS has been used and it has value for
2157 the new nesting level.
2159 * testsuite/libgomp.c/atomic-11.c: New test.
2160 * testsuite/libgomp.c/atomic-12.c: New test.
2161 * testsuite/libgomp.c/atomic-13.c: New test.
2162 * testsuite/libgomp.c/atomic-14.c: New test.
2163 * testsuite/libgomp.c/reduction-6.c: New test.
2164 * testsuite/libgomp.c/task-5.c: New test.
2165 * testsuite/libgomp.c++/atomic-2.C: New test.
2166 * testsuite/libgomp.c++/atomic-3.C: New test.
2167 * testsuite/libgomp.c++/atomic-4.C: New test.
2168 * testsuite/libgomp.c++/atomic-5.C: New test.
2169 * testsuite/libgomp.c++/atomic-6.C: New test.
2170 * testsuite/libgomp.c++/atomic-7.C: New test.
2171 * testsuite/libgomp.c++/atomic-8.C: New test.
2172 * testsuite/libgomp.c++/atomic-9.C: New test.
2173 * testsuite/libgomp.c++/task-8.C: New test.
2174 * testsuite/libgomp.c++/reduction-4.C: New test.
2175 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2176 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2177 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2178 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2179 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2180 * testsuite/libgomp.fortran/pointer1.f90: New test.
2181 * testsuite/libgomp.fortran/pointer2.f90: New test.
2182 * testsuite/libgomp.fortran/task4.f90: New test.
2184 2011-08-02 Tobias Burnus <burnus@net-b.de>
2186 * libgomp.texi: Update OpenMP spec references to 3.1.
2187 (omp_in_final,OMP_PROC_BIND): New sections.
2188 (OMP_NUM_THREADS): Document that the value can be now a list.
2189 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2191 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2193 * config/linux/x86/futex.h: Check __x86_64__ instead of
2196 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2200 * testsuite/libgomp.c/pr49897-1.c: New test.
2201 * testsuite/libgomp.c/pr49897-2.c: New test.
2202 * testsuite/libgomp.c/pr49898-1.c: New test.
2203 * testsuite/libgomp.c/pr49898-2.c: New test.
2205 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2207 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2208 for ia32 instead of ilp32.
2210 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2211 * testsuite/libgomp.c/atomic-6.c: Likewise.
2213 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2215 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2216 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2218 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2221 * config/osf/sem.h: New file.
2222 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2224 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2227 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2230 2011-07-15 Jakub Jelinek <jakub@redhat.com>
2232 * config/linux/wait.h (do_spin): New inline, largely copied
2233 from do_wait, just don't do futex_wait here, instead return true if
2235 (do_wait): Implement using do_spin.
2236 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2238 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2239 __sync_bool_compare_and_swap, pass the oldval to
2240 gomp_mutex_lock_slow.
2241 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2242 If all mutex contenders are just spinning and not sleeping, don't
2243 change state to 2 unnecessarily. Optimize the loop when state has
2244 already become 2 to use just one atomic operation per loop instead
2246 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2248 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2249 __sync_bool_compare_and_swap, pass the oldval to
2250 gomp_mutex_lock_slow.
2252 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2255 * iter.c (gomp_iter_static_next): For chunk size 0
2256 only use n ceil/ nthreads size for the first
2257 n % nthreads threads in the team instead of
2258 all threads except for the last few ones which
2259 get less work or none at all.
2260 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2261 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2262 chunk argument, set run_sched_modifier to 0 for static
2263 resp. 1 for other kinds. If chunk argument is 0
2264 and not static, set value to 1.
2266 2011-05-19 Jakub Jelinek <jakub@redhat.com>
2269 * testsuite/libgomp.c++/pr49043.C: New test.
2272 * testsuite/libgomp.c++/pr48869.C: New test.
2274 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2277 * fortran.c: Include limits.h.
2279 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2281 (omp_set_num_threads_8_, omp_set_schedule_8_,
2282 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2283 omp_get_team_size_8_): Use TO_INT macro.
2284 * testsuite/libgomp.fortran/pr48894.f90: New test.
2286 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2289 * testsuite/libgomp.c/pr48591.c: New test.
2291 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2294 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2295 * configure: Regenerate.
2297 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2300 * testsuite/libgomp.fortran/task3.f90: New test.
2302 2011-02-24 Tobias Burnus <burnus@net-b.de>
2304 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2306 2011-02-23 Jakub Jelinek <jakub@redhat.com>
2309 * libgomp.texi (omp_get_wtime): Don't say time in the past
2312 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2315 * testsuite/libgomp.fortran/fortran.exp: Check for both
2316 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2317 but $blddir != "", still append ${blddir}/${lang_library_path}
2320 2011-02-16 Tobias Burnus <burnus@net-b.de>
2323 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2324 of libquadmath.a before adding its libpath to ldflags.
2326 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2329 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2330 to FUTEX_WAIT futex syscall.
2331 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2333 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2335 * configure: Regenerate.
2337 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2340 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2342 2011-01-16 Gerald Pfeifer
2344 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2346 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2349 * libgomp.fortran/allocatable6.f90: New test.
2351 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2353 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2354 * configure: Regenerate.
2356 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2360 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2361 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2362 * aclocal.m4: Regenerate.
2363 * configure: Regenerate.
2364 * Makefile.in: Regenerate.
2365 * testsuite/Makefile.in: Regenerate.
2367 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2370 * libgomp.fortran/pr46753.f90: New test.
2373 * env.c (initialize_env): Default to spin count 300000
2374 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2378 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2379 at the end if sync builtins aren't supported.
2381 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2383 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2385 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2387 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2389 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2391 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2393 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2394 Tobias Burnus <burnus@net-b.de>
2398 * configure: Regenerate.
2400 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2402 * config/linux/futex.h: New.
2403 * config/linux/arm/mutex.h: New.
2404 * configure.tgt (arm*-*-linux*): Add config path.
2406 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2408 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2410 2010-09-23 Tobias Burnus <burnus@net-b.de>
2412 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2413 Change Fortran datatype to LOGICAL.
2414 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2415 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2417 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2419 * configure: Regenerate.
2421 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2423 * libgomp.texi: Add function keyword to a couple of Fortran
2424 interfaces, use integer instead of int for Fortran.
2426 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2428 * libgomp.texi: Fix spelling and pasto problems throughout.
2429 Adjust prototypes to match code.
2431 2010-07-24 Tobias Burnus <burnus@net-b.de>
2433 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2434 silence -fwhole-file warning.
2436 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2438 * configure.tgt (*-*-solaris2.[56]*): Removed.
2440 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2442 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2443 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2444 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2445 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2446 targetting solaris2*.
2447 * configure: Regenerate.
2448 * config.h.in: Regenerate.
2450 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2451 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2452 Add libgomp_version_dep.
2453 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2455 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2456 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2457 * Makefile.in: Regenerate.
2459 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2460 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2461 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2462 to common block, protected by
2463 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2465 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2467 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2469 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2472 * configure: Regenerate.
2474 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2477 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2478 * configure: Regenerate.
2479 * Makefile.in: Regenerate.
2480 * testsuite/Makefile.in: Regenerate.
2482 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2485 * testsuite/libgomp.c/pr43893.c: New test.
2486 * testsuite/libgomp.c++/pr43893.C: New test.
2488 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2491 * testsuite/libgomp.fortran/vla8.f90: New test.
2493 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2496 * config/linux/affinity.c (gomp_init_affinity): Decrease
2497 gomp_available_cpus if affinity mask confines the process to fewer
2499 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2500 non-NULL, just return gomp_available_cpus.
2503 * sections.c (gomp_sections_init): Initialize ws->mode.
2505 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2507 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2508 not unused bar variable.
2509 * configure: Regenerate.
2511 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2513 * Makefile.in: Regenerate.
2514 * aclocal.m4: Regenerate.
2515 * testsuite/Makefile.in: Regenerate.
2517 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2520 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2521 (initialize_env): Adjust callers.
2522 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2523 when the argument is 0.
2525 * testsuite/libgomp.c/pr42942.c: New test.
2527 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2531 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2532 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2534 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2536 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2537 * testsuite/libgomp.c++/task-6.C: Likewise.
2539 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2541 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2543 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2545 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2546 * configure: Regenerate.
2548 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2551 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2553 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2555 * configure.ac: Test for executability of GFORTRAN.
2556 * configure: Regenerate.
2558 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2560 * configure: Regenerate.
2562 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2565 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2567 2010-01-03 Richard Guenther <rguenther@suse.de>
2569 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2571 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2573 * testsuite/libgomp.graphite/pr4118.c: New.
2575 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2577 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2578 for darwin, protect the test with require-effective-target tls_runtime.
2579 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2581 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2584 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2585 link spec %s substitutions for static libraries.
2587 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2590 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2592 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2594 * Makefile.in: Regenerate.
2595 * configure: Regenerate.
2596 * testsuite/Makefile.in: Regenerate.
2598 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2600 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2601 settings for LC_ALL and LANG.
2603 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2606 * testsuite/libgomp.fortran/pr42162.f90: New test.
2608 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2611 * testsuite/libgomp.c/pr42029.c: New test.
2613 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2615 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2616 *s. Accept ld version without text in ()s.
2617 * configure: Regenerated.
2619 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2621 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2623 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2626 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2627 or a hyphen (happens with fortran language disabled).
2628 * configure: Regenerate.
2630 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2632 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2633 use sed script portable to Solaris /bin/sed for extracting ld
2635 * configure: Regenerate.
2637 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2639 * testsuite/libgomp.graphite/bounds.c: New test.
2641 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2643 * Makefile.am (libgomp_la_LINK): New.
2644 * Makefile.in: Regenerate.
2646 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2648 * configure.ac (AC_PREREQ): Bump to 2.64.
2650 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2652 * Makefile.am (install-html, install-pdf): Remove.
2653 * Makefile.in: Regenerate.
2655 * Makefile.in: Regenerate.
2656 * aclocal.m4: Regenerate.
2657 * config.h.in: Regenerate.
2658 * configure: Regenerate.
2659 * testsuite/Makefile.in: Regenerate.
2661 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2663 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2664 * Makefile.in: Regenerate.
2666 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2668 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2669 * Makefile.in: Regenerate.
2671 2009-08-19 Tobias Burnus <burnus@net-b.de>
2674 omp_lib.h.in: Fix -std=f95 errors.
2677 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2679 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2680 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2681 * testsuite/libgomp.graphite/graphite.exp: New.
2683 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2685 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2688 2009-08-04 David Daney <ddaney@caviumnetworks.com>
2690 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2691 needed memory barrier semantics.
2692 * config/linux/mips/mutex.h: New file.
2694 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2696 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2698 2009-07-16 Joseph Myers <joseph@codesourcery.com>
2700 * configure: Regenerate.
2702 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2707 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2708 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2709 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2711 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2713 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2714 options when choosing a multilib.
2716 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2718 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2719 ld_library_path. Use add_path. Add just find_libgcc_s to
2720 ld_library_path, not every libgcc multilib directory.
2721 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2722 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2723 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2725 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2727 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2729 * Makefile.am (LTLDFLAGS): Define.
2731 * Makefile.in: Regenerate.
2733 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2736 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2737 libgfortranbegin, check existence of libgfortran.a instead of
2740 2009-05-20 Jakub Jelinek <jakub@redhat.com>
2743 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2744 (gomp_free_pool_helper): Likewise.
2746 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2747 Jakub Jelinek <jakub@redhat.com>
2750 * testsuite/libgomp.fortran/workshare2.f90: New test.
2752 2009-04-09 Nick Clifton <nickc@redhat.com>
2754 * iter.c: Change copyright header to refer to version 3 of the
2755 GNU General Public License with version 3.1 of the GCC Runtime
2756 Library Exception and to point readers at the COPYING3 and
2757 COPYING3.RUNTIME files and the FSF's license web page.
2758 * alloc.c: Likewise.
2759 * barrier.c: Likewise.
2760 * config/bsd/proc.c: Likewise.
2761 * config/linux/affinity.c: Likewise.
2762 * config/linux/alpha/futex.h: Likewise.
2763 * config/linux/bar.c: Likewise.
2764 * config/linux/bar.h: Likewise.
2765 * config/linux/ia64/futex.h: Likewise.
2766 * config/linux/ia64/mutex.h: Likewise.
2767 * config/linux/lock.c: Likewise.
2768 * config/linux/mips/futex.h: Likewise.
2769 * config/linux/mutex.c: Likewise.
2770 * config/linux/mutex.h: Likewise.
2771 * config/linux/powerpc/futex.h: Likewise.
2772 * config/linux/proc.c: Likewise.
2773 * config/linux/ptrlock.c: Likewise.
2774 * config/linux/ptrlock.h: Likewise.
2775 * config/linux/s390/futex.h: Likewise.
2776 * config/linux/sem.c: Likewise.
2777 * config/linux/sem.h: Likewise.
2778 * config/linux/sparc/futex.h: Likewise.
2779 * config/linux/wait.h: Likewise.
2780 * config/linux/x86/futex.h: Likewise.
2781 * config/mingw32/proc.c: Likewise.
2782 * config/mingw32/time.c: Likewise.
2783 * config/posix/affinity.c: Likewise.
2784 * config/posix/bar.c: Likewise.
2785 * config/posix/bar.h: Likewise.
2786 * config/posix/lock.c: Likewise.
2787 * config/posix/mutex.h: Likewise.
2788 * config/posix/proc.c: Likewise.
2789 * config/posix/ptrlock.h: Likewise.
2790 * config/posix/sem.c: Likewise.
2791 * config/posix/sem.h: Likewise.
2792 * config/posix/time.c: Likewise.
2793 * config/posix95/lock.c: Likewise.
2794 * critical.c: Likewise.
2796 * error.c: Likewise.
2797 * fortran.c: Likewise.
2798 * iter_ull.c: Likewise.
2799 * libgomp.h: Likewise.
2800 * libgomp_f.h.in: Likewise.
2801 * libgomp_g.h: Likewise.
2803 * loop_ull.c: Likewise.
2804 * omp.h.in: Likewise.
2805 * omp_lib.f90.in: Likewise.
2806 * omp_lib.h.in: Likewise.
2807 * ordered.c: Likewise.
2808 * parallel.c: Likewise.
2809 * sections.c: Likewise.
2810 * single.c: Likewise.
2815 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2817 * testsuite/config/default.exp: Change copyright header to refer to
2818 version 3 of the GNU General Public License and to point readers
2819 at the COPYING3 file and the FSF's license web page.
2821 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2824 * libgomp.c++/pr39573.C: New test.
2826 2009-04-01 Jakub Jelinek <jakub@redhat.com>
2829 * testsuite/libgomp.c/pr39591-1.c: New test.
2830 * testsuite/libgomp.c/pr39591-2.c: New test.
2831 * testsuite/libgomp.c/pr39591-3.c: New test.
2833 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
2835 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2836 * testsuite/libgomp.c/atomic-6.c: Ditto.
2838 2009-03-23 Jakub Jelinek <jakub@redhat.com>
2841 * testsuite/libgomp.c/loop-12.c: New test.
2842 * testsuite/libgomp.c/loop-11.c: New test.
2843 * testsuite/libgomp.c++/loop-11.C: New test.
2844 * testsuite/libgomp.c++/loop-12.C: New test.
2845 * testsuite/libgomp.c++/for-8.C: New test.
2847 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2849 * configure: Regenerate.
2851 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2854 * testsuite/libgomp.c/pr39154.c: New test.
2856 2009-01-30 Ian Lance Taylor <iant@google.com>
2858 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2859 libgomp_ld_is_gold. Get gold version number.
2860 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2861 * configure: Rebuild.
2863 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2865 * testsuite/lib/libgomp.exp: Add -B option for targets that
2866 use libgfortran.a%s in their specs.
2868 2009-01-07 Jakub Jelinek <jakub@redhat.com>
2871 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2872 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2873 HAVE_AS_SYMVER_DIRECTIVE is not defined.
2874 * configure: Regenerated.
2875 * config.h.in: Likewise.
2877 2008-12-28 Jakub Jelinek <jakub@redhat.com>
2880 * testsuite/libgomp.c/pr38650.c: New test.
2881 * testsuite/libgomp.c++/pr38650.C: New test.
2883 2008-12-27 Jakub Jelinek <jakub@redhat.com>
2885 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2887 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
2889 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2891 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2893 * configure: Regenerate.
2895 2008-12-08 Jakub Jelinek <jakub@redhat.com>
2898 * testsuite/libgomp.c/pr36802-1.c: New test.
2899 * testsuite/libgomp.c/pr36802-2.c: New test.
2900 * testsuite/libgomp.c/pr36802-3.c: New test.
2902 2008-12-01 Janis Johnson <janis187@us.ibm.com>
2905 * config/linux/powerpc/mutex.h: New.
2907 2008-12-01 Jakub Jelinek <jakub@redhat.com>
2910 * testsuite/libgomp.c++/for-7.C: New test.
2913 * testsuite/libgomp.c++/for-6.C: New test.
2915 2008-11-26 Janis Johnson <janis187@us.ibm.com>
2918 * testsuite/lib/libgomp.exp: Include new timeout library files.
2919 (libgomp_target_compile): Set timeout value from new proc.
2921 2008-11-13 Steve Ellcey <sje@cup.hp.com>
2924 * config/linux/ia64/mutex.h: New.
2926 2008-11-04 Tobias Burnus <burnus@net-b.de>
2929 * libgomp.texi (Runtime library routines, environment variables):
2930 Update for OpenMP version 3.0.
2932 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2933 Steve Ellcey <sje@cup.hp.com>
2935 * configure: Regenerate for new libtool.
2936 * Makefile.in: Ditto.
2937 * testsuite/Makefile.in: Ditto.
2939 2008-09-19 Jakub Jelinek <jakub@redhat.com>
2940 Andreas Tobler <a.tobler@schweiz.org>
2942 * config/bsd/proc.c: New file.
2943 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2944 * configure.ac: Check for header <sys/sysctl.h>
2945 * configure: Regenerate.
2946 * config.h.in: Likewise.
2948 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2950 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2952 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2954 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2955 * Makefile.in: Regenerated.
2956 * testsuite/Makefile.in: Regenerated.
2958 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
2960 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2961 depend on blddir if blddir exists.
2962 (libgomp_target_compile): Likewise.
2963 * testsuite/libgomp.c++/c++.exp: Likewise.
2964 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2966 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2968 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
2969 Do not list GPL as Invariant Section.
2971 2008-07-28 Ilie Garbacea <ilie@mips.com>
2972 Chao-ying Fu <fu@mips.com>
2974 * configure.tgt: Enable futex for MIPS.
2975 * config/linux/mips/futex.h: New file.
2977 2008-07-16 Jakub Jelinek <jakub@redhat.com>
2979 * team.c (gomp_team_end): Free team immediately if it has
2982 2008-07-08 David Edelsohn <edelsohn@gnu.org>
2984 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2985 * testsuite/libgomp.fortran/fortran.exp: Same.
2986 * testsuite/libgomp.c/c.exp: Same.
2987 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2988 directory to library path first.
2990 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
2992 * env.c (parse_stacksize): Add cast to avoid warning.
2993 (parse_spincount): Likewise.
2995 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2997 * testsuite/libgomp.c/loop-10.c: New test.
2998 * libgomp.c/loop-3.c (main): Add lastprivate clause.
2999 * libgomp.c++/loop-6.C (main): Likewise.
3002 * testsuite/libgomp.c/debug-1.c: New test.
3004 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3006 * testsuite/libgomp.c/nqueens-1.c: New test.
3009 * testsuite/libgomp.c++/task-7.C: New function.
3011 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3013 * configure: Regenerate.
3015 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3017 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3018 mutex when HAVE_SYNC_BUILTINS isn't defined.
3020 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3022 * libgomp.texi (omp_test_lock): Fix typo.
3024 2008-06-12 Tobias Burnus <burnus@net-b.de>
3026 * omp_lib.f90.in: Add "implicit none".
3028 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3031 * testsuite/libgomp.c/reduction-5.c: New test.
3033 2008-06-11 Jakub Jelinek <jakub@redhat.com>
3035 * libgomp.h (struct gomp_task): Add in_tied_task field.
3036 * task.c (gomp_init_task): Initialize it.
3037 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
3038 unconditionally. Don't call gomp_team_barrier_wake if
3039 current task is implicit or if(0) from implicit and number of
3040 running tasks is equal to nthreads - 1.
3043 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3044 omp_get_team_size_8): Fix pastos.
3047 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3048 * configure: Regenerated.
3049 * config.h.in: Regenerated.
3050 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3053 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3056 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3057 (GOMP_loop_ull_dynamic_start): Likewise.
3058 (GOMP_loop_ull_guided_start): Likewise.
3059 (GOMP_loop_ull_ordered_static_start): Likewise.
3060 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3061 (GOMP_loop_ull_ordered_guided_start): Likewise.
3063 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3064 Richard Henderson <rth@redhat.com>
3065 Ulrich Drepper <drepper@redhat.com>
3066 Jakob Blomer <jakob.blomer@ira.uka.de>
3068 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3069 Substitute also OMP_*LOCK_25*.
3070 * configure: Regenerated.
3071 * config.h.in: Regenerated.
3072 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3073 ptrlock.c and task.c.
3074 * Makefile.in: Regenerated.
3075 * testsuite/Makefile.in: Regenerated.
3077 * loop_ull.c: New file.
3078 * iter_ull.c: New file.
3079 * libgomp.h: Include ptrlock.h.
3080 (enum gomp_task_kind): New type.
3081 (struct gomp_team): Add task_lock, task_queue, task_count,
3082 task_running_count, single_count fields. Add
3083 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3084 Remove work_share_lock, generation_mask,
3085 oldest_live_gen, num_live_gen and init_work_shares fields, add
3086 work work_share_list_alloc, work_share_list_free and work_share_chunk
3087 fields. Change work_shares from pointer to pointers into an array.
3088 Change ordered_release field into gomp_sem_t ** from flexible array
3089 member. Add implicit_task and initial_work_shares fields.
3090 Move close to the end of the struct.
3091 (struct gomp_team_state): Add single_count, last_work_share,
3092 active_level and level fields, remove work_share_generation.
3093 (gomp_barrier_handle_tasks): New prototype.
3094 (gomp_finish_task): New inline function.
3095 (struct gomp_work_share): Move chunk_size, end, incr into
3096 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3097 next_ll fields. Reshuffle fields. Add next_alloc,
3098 next_ws, next_free and inline_ordered_team_ids fields, change
3099 ordered_team_ids into pointer from flexible array member.
3100 Add mode field. Put lock and next into a different cache line
3101 from most of the write-once fields.
3102 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3103 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3104 gomp_iter_ull_guided_next): New prototypes.
3105 (gomp_new_icv): New prototype.
3106 (struct gomp_thread): Add thread_pool and task fields.
3107 (struct gomp_thread_pool): New type.
3108 (gomp_new_team): New prototype.
3109 (gomp_team_start): Change type of last argument.
3110 (gomp_new_work_share): Removed.
3111 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3112 (gomp_work_share_init_done): New static inline.
3113 (gomp_throttled_spin_count_var, gomp_available_cpus,
3114 gomp_managed_threads): New extern decls.
3115 (gomp_init_task): New prototype.
3116 (gomp_spin_count_var): New extern var decl.
3117 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3118 or no alias support, or if not PIC.
3119 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3120 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3121 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3122 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3123 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3124 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3125 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3126 gomp_test_nest_lock_25): New prototypes.
3127 (omp_lock_symver, strong_alias): Define.
3128 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3130 (gomp_end_task): New.
3131 (struct gomp_task_icv, gomp_global_icv): New.
3132 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3133 (struct gomp_task): New.
3134 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3135 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3137 (gomp_schedule_type): Reorder enum to match
3139 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3141 (gomp_thread_start): Add gomp_team_barrier_wait call.
3142 For non-nested case remove clearing of docked thread thr fields.
3143 Use pool fields instead of global gomp_* variables. Use
3144 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3145 Create tasks for each member thread.
3146 (free_team): Only destroy team barrier, task_lock here and free it.
3147 (gomp_free_thread): Free last_team if non-NULL.
3148 (gomp_team_end): Call gomp_team_barrier_wait instead of
3149 gomp_barrier_wait. For nested case call one extra
3150 gomp_barrier_wait. Move here some destruction from free_team.
3151 Call free_team on pool->last_team if any, rather than freeing
3152 current team. Destroy work_share_list_free_lock ifndef
3154 (gomp_new_icv): New function.
3155 (gomp_threads, gomp_threads_size, gomp_threads_used,
3156 gomp_threads_dock): Removed.
3157 (gomp_thread_destructor): New variable.
3158 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3160 (gomp_team_start): Create new pool if current thread doesn't have
3161 one. Use pool fields instead of global gomp_* variables.
3162 Initialize thread_pool field for new threads. Clear single_count.
3163 Change last argument from ws to team, don't create
3164 new team, set ts.work_share to &team->work_shares[0] and clear
3165 ts.last_work_share. Don't clear ts.work_share_generation.
3166 If number of threads changed, adjust atomically gomp_managed_threads.
3167 Use gomp_init_task instead of gomp_new_task,
3168 set thr->task to the corresponding implicit_task array entry.
3169 Create tasks for each member thread. Initialize ts.level.
3170 (initialize_team): Call pthread_key_create on
3171 gomp_thread_destructor.
3172 (team_destructor): New function.
3173 (new_team): Removed.
3174 (gomp_new_team): New function.
3175 (free_team): Free gomp_work_share blocks chained through next_alloc,
3176 instead of freeing work_shares and destroying work_share_lock.
3177 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3178 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3179 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3180 of gomp_barrier_wait.
3181 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3182 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3183 if gomp_work_share_start returned true. Don't unlock ws->lock.
3184 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3185 of gomp_barrier_wait.
3186 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3187 gomp_work_share_init_done if gomp_work_share_start returned true.
3188 Don't unlock ws->lock.
3189 * work.c: Include stddef.h.
3190 (free_work_share): Use work_share_list_free_lock instead
3191 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3192 Call gomp_fini_work_share and then either free ws if orphaned, or
3193 put it into work_share_list_free list of the current team.
3194 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3196 (gomp_work_share_start, gomp_work_share_end,
3197 gomp_work_share_end_nowait): Rewritten.
3198 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3199 (openmp_version): Set to 200805.
3200 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3201 omp_sched_guided, omp_sched_auto): New parameters.
3202 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3203 omp_set_max_active_levels, omp_get_max_active_levels,
3204 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3205 omp_get_active_level): New interfaces.
3206 * omp_lib.h.in (openmp_version): Set to 200805.
3207 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3208 omp_sched_guided, omp_sched_auto): New parameters.
3209 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3210 omp_set_max_active_levels, omp_get_max_active_levels,
3211 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3212 omp_get_active_level): New externals.
3213 * loop.c: Include limits.h.
3214 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3216 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3217 Likewise. Use gomp_icv.
3218 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3219 ts.static_trip here.
3220 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3221 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3222 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3223 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3224 don't unlock ws->lock, otherwise lock it.
3225 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3226 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3227 (gomp_parallel_loop_start): Call gomp_new_team instead of
3228 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3229 Adjust gomp_team_start caller. Pass 0 as second argument to
3230 gomp_resolve_num_threads.
3231 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3232 If adding ws->chunk_size nthreads + 1 times after end won't
3233 overflow, set ws->mode to 1.
3234 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3235 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3236 GOMP_loop_ull_ordered_static_start,
3237 GOMP_loop_ull_ordered_dynamic_start,
3238 GOMP_loop_ull_ordered_guided_start,
3239 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3240 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3241 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3242 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3243 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3245 * libgomp.map: Export lock routines also @@OMP_2.0.
3246 (GOMP_loop_ordered_dynamic_first,
3247 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3248 GOMP_loop_ordered_static_first): Remove.
3249 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3250 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3251 GOMP_loop_ull_ordered_dynamic_next,
3252 GOMP_loop_ull_ordered_dynamic_start,
3253 GOMP_loop_ull_ordered_guided_next,
3254 GOMP_loop_ull_ordered_guided_start,
3255 GOMP_loop_ull_ordered_runtime_next,
3256 GOMP_loop_ull_ordered_runtime_start,
3257 GOMP_loop_ull_ordered_static_next,
3258 GOMP_loop_ull_ordered_static_start,
3259 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3260 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3261 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3262 (omp_set_schedule, omp_get_schedule,
3263 omp_get_thread_limit, omp_set_max_active_levels,
3264 omp_get_max_active_levels, omp_get_level,
3265 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3266 omp_set_schedule_, omp_set_schedule_8_,
3267 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3268 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3269 omp_get_max_active_levels_, omp_get_level_,
3270 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3271 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3272 New exports @@OMP_3.0.
3273 * omp.h.in (omp_sched_t): New type.
3274 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3275 omp_set_max_active_levels, omp_get_max_active_levels,
3276 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3277 omp_get_active_level): New prototypes.
3278 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3279 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3280 gomp_thread_limit_var, gomp_remaining_threads_count,
3281 gomp_remaining_threads_lock): New variables.
3282 (parse_spincount): New function.
3283 (initialize_env): Call gomp_init_num_threads unconditionally.
3284 Initialize gomp_available_cpus. Call parse_spincount,
3285 initialize gomp_{,throttled_}spin_count_var
3286 depending on presence and value of OMP_WAIT_POLICY and
3287 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
3288 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3289 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
3290 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
3291 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
3292 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3293 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3294 (gomp_global_icv): New.
3295 (parse_schedule): Use it. Parse "auto".
3296 (omp_set_num_threads): Use gomp_icv.
3297 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3299 (omp_get_max_threads): Move from parallel.c.
3300 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3301 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3303 (parse_stacksize, parse_wait_policy): New functions.
3304 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3305 both wrappers for compatibility and new locks.
3306 (omp_set_schedule, omp_get_schedule,
3307 omp_get_thread_limit, omp_set_max_active_levels,
3308 omp_get_max_active_levels, omp_get_level,
3309 omp_get_ancestor_thread_num, omp_get_team_size,
3310 omp_get_active_level): New ialias_redirect.
3311 (omp_set_schedule_, omp_set_schedule_8_,
3312 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3313 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3314 omp_get_max_active_levels_, omp_get_level_,
3315 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3316 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3318 * parallel.c: Include limits.h.
3319 (gomp_resolve_num_threads): Add count argument. Rewritten.
3320 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3321 argument to gomp_team_start. Pass 0 as second argument to
3322 gomp_resolve_num_threads.
3323 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3324 if gomp_thread_limit_var != ULONG_MAX.
3325 (omp_in_parallel): Implement using ts.active_level.
3326 (omp_get_max_threads): Move to env.c.
3327 (omp_get_level, omp_get_ancestor_thread_num,
3328 omp_get_team_size, omp_get_active_level): New functions,
3330 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3331 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3332 gomp_iter_dynamic_next instead of the _locked variant and don't take
3333 lock around it, otherwise acquire it before calling
3334 gomp_iter_dynamic_next_locked.
3335 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3336 gomp_iter_dynamic_next instead of the _locked variant and don't take
3338 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3339 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3340 Adjust gomp_team_start caller. Pass count as second argument to
3341 gomp_resolve_num_threads, don't adjust num_threads after the call.
3343 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3344 ws->chunk_size by incr.
3345 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3347 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3349 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3350 (omp_check_defines): Check even the compat defines.
3351 * config/linux/ptrlock.c: New file.
3352 * config/linux/ptrlock.h: New file.
3353 * config/linux/wait.h: New file.
3354 * config/posix/ptrlock.c: New file.
3355 * config/posix/ptrlock.h: New file.
3356 * config/linux/bar.h (gomp_team_barrier_wait,
3357 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3358 (gomp_team_barrier_set_task_pending,
3359 gomp_team_barrier_clear_task_pending,
3360 gomp_team_barrier_set_waiting_for_tasks,
3361 gomp_team_barrier_waiting_for_tasks,
3362 gomp_team_barrier_done): New inlines.
3363 (gomp_barrier_t): Rewritten.
3364 (gomp_barrier_state_t): New typedef.
3365 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3366 gomp_barrier_wait_start): Rewritten.
3367 (gomp_barrier_wait_end): Change second argument to
3368 gomp_barrier_state_t.
3369 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3371 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3373 (gomp_barrier_wait_end): Rewritten.
3374 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3375 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3376 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3377 (gomp_barrier_state_t): New typedef.
3378 (gomp_team_barrier_wait,
3379 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3380 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3381 into the return value. Return gomp_barrier_state_t.
3382 (gomp_team_barrier_set_task_pending,
3383 gomp_team_barrier_clear_task_pending,
3384 gomp_team_barrier_set_waiting_for_tasks,
3385 gomp_team_barrier_waiting_for_tasks,
3386 gomp_team_barrier_done): New inlines.
3387 (gomp_barrier_wait_end): Change second argument to
3388 gomp_barrier_state_t.
3389 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3391 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3392 (gomp_barrier_wait_end): Change second argument to
3393 gomp_barrier_state_t.
3394 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3395 gomp_team_barrier_wake): New functions.
3396 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3398 (gomp_futex_wake, gomp_futex_wait): New variables.
3399 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3400 * config/linux/lock.c: Rewrite to make locks task owned,
3401 for backwards compatibility provide the old entrypoints
3402 if symbol versioning. Include wait.h instead of libgomp.h and
3404 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3405 * config/posix95/lock.c: Rewrite to make locks task owned,
3406 for backwards compatibility provide the old entrypoints
3407 if symbol versioning.
3408 * config/posix/lock.c: Rewrite to make locks task owned,
3409 for backwards compatibility provide the old entrypoints
3410 if symbol versioning.
3411 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3412 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3413 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3414 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3415 (sys_futex0): Return error code.
3416 (futex_wake, futex_wait): If ENOSYS was returned, clear
3417 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3418 (cpu_relax, atomic_write_barrier): New static inlines.
3419 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3420 (futex_wake, futex_wait): If ENOSYS was returned, clear
3421 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3422 (cpu_relax, atomic_write_barrier): New static inlines.
3423 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3424 (sys_futex0): Return error code.
3425 (futex_wake, futex_wait): If ENOSYS was returned, clear
3426 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3427 (cpu_relax, atomic_write_barrier): New static inlines.
3428 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3429 (sys_futex0): Return error code.
3430 (futex_wake, futex_wait): If ENOSYS was returned, clear
3431 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3432 (cpu_relax, atomic_write_barrier): New static inlines.
3433 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3434 (sys_futex0): Return error code.
3435 (futex_wake, futex_wait): If ENOSYS was returned, clear
3436 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3437 (cpu_relax, atomic_write_barrier): New static inlines.
3438 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3439 (sys_futex0): Return error code.
3440 (futex_wake, futex_wait): If ENOSYS was returned, clear
3441 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3442 (cpu_relax, atomic_write_barrier): New static inlines.
3443 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3445 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3446 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3447 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3449 (omp_nest_lock_t): Change owner into void *, add lock field.
3450 * config/posix95/omp-lock.h: Include semaphore.h.
3451 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3452 (omp_lock_t): Use sem_t instead of mutex if semaphores
3454 (omp_nest_lock_t): Likewise. Change owner to void *.
3455 * config/posix/omp-lock.h: Include semaphore.h.
3456 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3457 (omp_lock_t): Use sem_t instead of mutex if semaphores
3459 (omp_nest_lock_t): Likewise. Add owner field.
3461 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3463 * testsuite/libgomp.c/collapse-1.c: New test.
3464 * testsuite/libgomp.c/collapse-2.c: New test.
3465 * testsuite/libgomp.c/collapse-3.c: New test.
3466 * testsuite/libgomp.c/icv-1.c: New test.
3467 * testsuite/libgomp.c/icv-2.c: New test.
3468 * testsuite/libgomp.c/lib-2.c: New test.
3469 * testsuite/libgomp.c/lock-1.c: New test.
3470 * testsuite/libgomp.c/lock-2.c: New test.
3471 * testsuite/libgomp.c/lock-3.c: New test.
3472 * testsuite/libgomp.c/loop-4.c: New test.
3473 * testsuite/libgomp.c/loop-5.c: New test.
3474 * testsuite/libgomp.c/loop-6.c: New test.
3475 * testsuite/libgomp.c/loop-7.c: New test.
3476 * testsuite/libgomp.c/loop-8.c: New test.
3477 * testsuite/libgomp.c/loop-9.c: New test.
3478 * testsuite/libgomp.c/nested-3.c: New test.
3479 * testsuite/libgomp.c/nestedfn-6.c: New test.
3480 * testsuite/libgomp.c/sort-1.c: New test.
3481 * testsuite/libgomp.c/task-1.c: New test.
3482 * testsuite/libgomp.c/task-2.c: New test.
3483 * testsuite/libgomp.c/task-3.c: New test.
3484 * testsuite/libgomp.c/task-4.c: New test.
3485 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3486 to C++ testsuite default compiler options.
3487 * testsuite/libgomp.c++/collapse-1.C: New test.
3488 * testsuite/libgomp.c++/collapse-2.C: New test.
3489 * testsuite/libgomp.c++/ctor-10.C: New test.
3490 * testsuite/libgomp.c++/for-1.C: New test.
3491 * testsuite/libgomp.c++/for-2.C: New test.
3492 * testsuite/libgomp.c++/for-3.C: New test.
3493 * testsuite/libgomp.c++/for-4.C: New test.
3494 * testsuite/libgomp.c++/for-5.C: New test.
3495 * testsuite/libgomp.c++/loop-8.C: New test.
3496 * testsuite/libgomp.c++/loop-9.C: New test.
3497 * testsuite/libgomp.c++/loop-10.C: New test.
3498 * testsuite/libgomp.c++/task-1.C: New test.
3499 * testsuite/libgomp.c++/task-2.C: New test.
3500 * testsuite/libgomp.c++/task-3.C: New test.
3501 * testsuite/libgomp.c++/task-4.C: New test.
3502 * testsuite/libgomp.c++/task-5.C: New test.
3503 * testsuite/libgomp.c++/task-6.C: New test.
3504 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3505 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3506 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3507 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3508 * testsuite/libgomp.fortran/collapse1.f90: New test.
3509 * testsuite/libgomp.fortran/collapse2.f90: New test.
3510 * testsuite/libgomp.fortran/collapse3.f90: New test.
3511 * testsuite/libgomp.fortran/collapse4.f90: New test.
3512 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3513 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3514 * testsuite/libgomp.fortran/lib4.f90: New test.
3515 * testsuite/libgomp.fortran/lock-1.f90: New test.
3516 * testsuite/libgomp.fortran/lock-2.f90: New test.
3517 * testsuite/libgomp.fortran/nested1.f90: New test.
3518 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3519 * testsuite/libgomp.fortran/strassen.f90: New test.
3520 * testsuite/libgomp.fortran/tabs1.f90: New test.
3521 * testsuite/libgomp.fortran/tabs2.f: New test.
3522 * testsuite/libgomp.fortran/task1.f90: New test.
3523 * testsuite/libgomp.fortran/task2.f90: New test.
3524 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3525 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3526 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3527 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3528 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3530 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3533 * testsuite/libgomp.c++/ctor-11.C: New test.
3534 * testsuite/libgomp.c++/ctor-12.C: New test.
3536 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3538 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3540 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3543 * testsuite/libgomp.c/atomic-5.c: New test.
3544 * testsuite/libgomp.c/atomic-6.c: New test.
3545 * testsuite/libgomp.c/autopar-1.c: New test.
3547 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3549 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3550 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3551 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3552 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3553 * configure: Regenerate.
3554 * Makefile.in, testsuite/Makefile.in: Likewise.
3556 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3559 * aclocal.m4: Regenerate.
3560 * configure: Regenerate.
3562 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3565 * testsuite/libgomp.c/atomic-4.c: New test.
3568 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3569 (gomp_iter_guided_next): Likewise.
3570 * testsuite/libgomp.c/pr35625.c: New test.
3572 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3574 * aclocal.m4: Regenerate.
3575 * configure: Likewise.
3576 * Makefile.in: Likewise.
3577 * testsuite/Makefile.in: Likewise.
3579 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3582 * testsuite/libgomp.c++/pr35185.C: New test.
3584 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3587 * testsuite/libgomp.c/pr35549.c: New test.
3589 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3591 * testsuite/libgomp.c/atomic-3.c: New test.
3593 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3596 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3599 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3602 * configure.ac: Add ACX_HEADER_STRING.
3603 * env.c: Include strings.h.
3604 * aclocal.m4: Regenerate.
3605 * config.h.in: Regenerate.
3606 * configure: Regenerate.
3607 * Makefile.in: Regenerate.
3608 * testsuite/Makefile.in: Regenerate.
3610 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3613 * testsuite/libgomp.c/pr35196.c: New test.
3616 * testsuite/libgomp.fortran/pr35130.f90: New test.
3617 * testsuite/libgomp.c/pr35130.c: New test.
3619 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3622 * testsuite/libgomp.c/pr33880.c: New test.
3623 * testsuite/libgomp.fortran/pr33880.f90: New test.
3625 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3627 * configure: Regenerate.
3629 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3631 * configure.ac: Move futex checking into ../config/futex.m4.
3632 * configure: Rebuilt.
3633 * aclocal.m4: Rebuilt.
3634 * Makefile.in: Rebuilt.
3636 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3637 2007-10-15 ../config/tls.m4 change.
3639 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3642 * testsuite/libgomp.c/pr34513.c: New test.
3643 * testsuite/libgomp.c++/pr34513.C: New test.
3645 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3648 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3650 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3652 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3654 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3656 * testsuite/libgomp.c/private-1.c: New test.
3658 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3659 Paolo Bonzini <bonzini@gnu.org>
3661 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3662 instead of 'VPATH ='.
3663 * Makefile.in: Regenerate.
3665 2007-11-23 Matthias Klose <doko@ubuntu.com>
3667 * configure.ac: Adjust makeinfo version check.
3668 * configure: Regenerate.
3670 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3673 * testsuite/libgomp.fortran/pr34020.f90: New test.
3675 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3678 * testsuite/libgomp.c++/atomic-1.C: New test.
3680 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3683 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3684 Make x and y integers rather than (implicit) reals. Add private (j)
3685 clause to the last omp parallel.
3687 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3689 * configure: Regenerate following changes to ../config/tls.m4.
3691 2007-09-28 Jakub Jelinek <jakub@redhat.com>
3693 * testsuite/libgomp.fortran/stack.f90: New test.
3695 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3697 * config/mingw32/proc.c: New file.
3699 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
3701 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3702 (main): Use __get_cpuid to get i386 target fetaures.
3703 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3704 (main): Use __get_cpuid to get x86_64 target fetaures.
3706 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3709 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3710 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3712 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3715 * testsuite/libgomp.fortran/pr32550.f90: New test.
3716 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3718 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3720 * aclocal.m4: Regenerated.
3722 2007-07-05 Tobias Burnus <burnus@net-b.de>
3725 * testsuite/libgomp.fortran/pr32359.f90: New.
3727 2007-07-02 Jakub Jelinek <jakub@redhat.com>
3730 * sections.c (GOMP_parallel_sections_start): Only decrease
3731 number of threads to COUNT if dyn_var is true.
3732 * testsuite/libgomp.c/pr32468.c: New test.
3734 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3737 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3739 2007-06-21 Jakub Jelinek <jakub@redhat.com>
3742 * testsuite/libgomp.c/pr32362-1.c: New test.
3743 * testsuite/libgomp.c/pr32362-2.c: New test.
3744 * testsuite/libgomp.c/pr32362-3.c: New test.
3746 2007-06-07 Jakub Jelinek <jakub@redhat.com>
3748 * team.c (gomp_team_start): Fix setting up thread_attr
3751 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3753 * configure: Regenerate.
3755 2007-05-23 Steve Ellcey <sje@cup.hp.com>
3757 * Makefile.in: Regenerate.
3758 * configure: Regenerate.
3759 * aclocal.m4: Regenerate.
3760 * testsuite/Makefile.in: Regenerate.
3762 2007-05-04 Jakub Jelinek <jakub@redhat.com>
3764 * config/linux/proc.c: New file.
3767 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3769 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3771 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3773 2007-04-16 Matthias Klose <doko@debian.org>
3775 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3776 flags if not building with -m64.
3777 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3778 flag for i?86-*-* targets, if current target matches -m64.
3780 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3782 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3783 * Makefile.in: Regenerate.
3785 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3788 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3790 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3792 2007-04-04 Jakub Jelinek <jakub@redhat.com>
3794 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3796 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3797 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3798 (parse_affinity): New function.
3799 (initialize_env): Call it and gomp_init_affinity.
3800 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3801 create new pthread_attr_t and call gomp_init_thread_affinity
3802 on it for each thread before passing the attribute to pthread_create.
3803 * config/linux/affinity.c: New file.
3804 * config/posix/affinity.c: New file.
3805 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3806 * configure: Rebuilt.
3807 * config.h.in: Rebuilt.
3808 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3809 * Makefile.in: Rebuilt.
3811 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3813 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3815 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3816 and use it if found.
3818 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
3820 * testsuite/config/default.exp: New file.
3821 * testsuite/lib/libgomp.exp: New file.
3822 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3823 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3824 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3825 (libgomp_load): Remove.
3826 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3827 always_ld_library_path, not ld_library_path. Set additional_flags
3828 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3829 (target_compile): Do not call libgomp_init. Append lang_library_path
3830 and lang_link_flags to options.
3831 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3832 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3834 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3835 always_ld_library_path. Set LD_LIBRARY_PATH here.
3836 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3837 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3838 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3840 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3841 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3842 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3843 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3844 * testsuite/libgomp.c/atomic-10.c: Ditto.
3846 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3848 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3849 dg-final cleanup-modules line.
3850 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3851 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3852 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3853 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3854 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3855 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3856 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3858 2007-03-18 Andreas Schwab <schwab@suse.de>
3860 * acinclude.m4: Adjust regular expression for ld version
3862 * configure: Regenerate.
3864 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3866 * Makefile.am: Add install-pdf target as copied from
3867 automake v1.10 rules.
3868 * Makefile.in: Regenerate
3870 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3873 * configure: Regenerate.
3876 * testsuite/libgomp.c++/pr30703.C: New test.
3878 2007-02-02 Jakub Jelinek <jakub@redhat.com>
3881 2006-07-05 Eric Christopher <echristo@apple.com>
3882 * configure.ac: Depend addition of -pthread on host OS.
3883 * configure: Regenerate.
3885 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3887 * libgomp.texi: Fix spacing after abbreviations.
3889 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
3892 * configure.ac: Add check for makeinfo
3893 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3894 if an appropiate version of makeinfo is found.
3895 * aclocal.m4: Regenerated.
3896 * configure: Regenerated.
3897 * Makefile.in: Regenerated.
3898 * testsuite/Makefile.in: Regenerated.
3900 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
3903 * libgomp.texi: More about implementation-dependent settings.
3905 2007-01-26 Tobias Burnus <burnus@net-b.de>
3907 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3909 2007-01-24 Jakub Jelinek <jakub@redhat.com>
3912 * testsuite/libgomp.c/pr30494.c: New test.
3914 2007-01-15 Tom Tromey <tromey@redhat.com>
3916 * configure: Rebuilt.
3917 * configure.ac: Fixed comment.
3919 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
3921 * libgomp.texi: Document implementation specific default values of
3922 environment variables.
3924 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
3927 * libgomp.texi: New file.
3928 * configure.ac: Add --enable-generated-files-in-srcdir option.
3929 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3931 * Makefile.in: Regenerated.
3932 * config.h.in: Regenerated.
3933 * testsuite/Makefile.in: Regenerated.
3936 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
3939 * env.c (omp_set_num_threads): Set illegal thread count to 1.
3941 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3943 * configure: Regenerate.
3945 2006-12-04 Jakub Jelinek <jakub@redhat.com>
3948 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
3949 start if there shouldn't be any loop iterations.
3950 (gomp_loop_ordered_static_start): Remove start == end test.
3951 * testsuite/libgomp.c/pr29947-1.c: New test.
3952 * testsuite/libgomp.c/pr29947-2.c: New test.
3954 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3956 * configure.tgt: Force initial-exec TLS model on Linux only.
3958 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3960 * configure: Regenerated.
3962 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
3964 * env.c (parse_schedule): Reject out of range values.
3965 (parse_unsigned_long): Reject out of range, negative or zero values.
3967 2006-10-29 Jakub Jelinek <jakub@redhat.com>
3970 * testsuite/libgomp.fortran/pr29629.f90: New test.
3972 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
3975 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3976 * config/posix95: New directory.
3977 * config/posix95/omp-lock.h: New file.
3978 * config/posix95/lock.c: Likewise.
3980 2006-10-14 Geoffrey Keating <geoffk@apple.com>
3982 * aclocal.m4: Regenerate.
3983 * configure: Regenerate.
3985 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3987 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3990 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
3992 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3994 * configure: Regenerate.
3995 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3997 2006-09-26 Jakub Jelinek <jakub@redhat.com>
4001 * testsuite/libgomp.c/nestedfn-4.c: New test.
4002 * testsuite/libgomp.c/nestedfn-5.c: New test.
4003 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4006 * testsuite/libgomp.fortran/condinc1.f: New test.
4007 * testsuite/libgomp.fortran/condinc2.f: New test.
4008 * testsuite/libgomp.fortran/condinc3.f90: New test.
4009 * testsuite/libgomp.fortran/condinc4.f90: New test.
4010 * testsuite/libgomp.fortran/condinc1.inc: New file.
4012 2006-09-18 Tom Tromey <tromey@redhat.com>
4014 * configure: Rebuilt.
4016 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4019 PR preprocessor/14634
4020 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4022 * configure: Regenerate.
4024 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4026 * testsuite/libgomp.fortran/reduction3.f90: Change
4027 -2147483648 to -huge(i)-1 to avoid overflow.
4028 * testsuite/libgomp.fortran/reduction4.f90: Change
4029 Z'ffffffff' to not(0) to avoid overflow.
4031 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4034 * Makefile.am (libsubincludedir): New.
4035 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4036 * Makefile.in: Regenerate.
4038 2006-08-17 Jakub Jelinek <jakub@redhat.com>
4041 * env.c: Include ctype.h.
4042 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4043 leading and/or trailing whitespace and compare strings case
4046 2006-07-16 Jakub Jelinek <jakub@redhat.com>
4049 * testsuite/libgomp.fortran/pr28390.f: New test.
4051 2006-07-05 Eric Christopher <echristo@apple.com>
4053 * configure.ac: Depend addition of -pthread on host OS.
4054 * configure: Regenerate.
4056 2006-06-21 Jakub Jelinek <jakub@redhat.com>
4058 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4059 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4062 2006-06-20 Jakub Jelinek <jakub@redhat.com>
4066 * configure.ac: If neither --enable-linux-futex nor
4067 --disable-linux-futex is passed, determine the default by checking
4068 for compiling and/or running against NPTL. With --enable-linux-futex,
4069 check if SYS_gettid and SYS_futex are defined.
4070 * configure: Rebuilt.
4072 2006-06-14 Richard Henderson <rth@redhat.com>
4075 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4076 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4078 2006-06-09 Richard Henderson <rth@redhat.com>
4080 * env.c (gomp_nthreads_var): Change to unsigned long.
4081 (gomp_run_sched_chunk): Likewise.
4082 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4083 (initialize_env): Initialize gomp_thread_attr.
4084 * libgomp.h (gomp_nthreads_var): Update decl.
4085 (gomp_run_sched_chunk): Likewise.
4086 (gomp_thread_attr): Declare.
4087 * team.c (gomp_thread_attr): Export.
4088 (initialize_team): Don't initialize it.
4090 2006-06-09 Jakub Jelinek <jakub@redhat.com>
4093 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4094 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4096 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4098 * config/mingw32/time.c: New file.
4099 * configure.tgt: Use it.
4101 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4103 * Makefile.am: Add install-html target. Add install-html to .PHONY
4104 * Makefile.in: Regenerate.
4106 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4109 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4110 * testsuite/libgomp.c/critical-1.c: Likewise.
4111 * testsuite/libgomp.c/loop-1.c: Likewise.
4112 * testsuite/libgomp.c/loop-2.c: Likewise.
4113 * testsuite/libgomp.c/single-1.c: Likewise.
4114 * testsuite/libgomp.c/ordered-1.c: Likewise.
4115 * testsuite/libgomp.c/ordered-2.c: Likewise.
4117 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4120 * libgomp.fortran/pr27416-1.f90: New test.
4122 2006-05-03 Jakub Jelinek <jakub@redhat.com>
4125 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4126 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4128 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4131 * testsuite/libgomp.c/pr26943-1.c: New test.
4132 * testsuite/libgomp.c/pr26943-2.c: New test.
4133 * testsuite/libgomp.c/pr26943-3.c: New test.
4134 * testsuite/libgomp.c/pr26943-4.c: New test.
4135 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4136 * testsuite/libgomp.c++/pr26943.C: New test.
4138 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4141 * testsuite/libgomp.c++/pr27337.C: New test.
4143 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4146 * testsuite/libgomp.c/pr26171.c: New test.
4148 2006-04-25 Richard Henderson <rth@redhat.com>
4151 * configure.ac: Use GCC_CHECK_TLS.
4152 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4153 * Makefile.in, aclocal.m4, configure: Regenerate.
4155 2006-04-10 Matthias Klose <doko@debian.org>
4157 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4158 directory names containing underscores.
4160 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4163 * testsuite/libgomp.c++/pr26691.C: New test.
4165 2006-03-13 Jakub Jelinek <jakub@redhat.com>
4167 * testsuite/libgomp.fortran/retval2.f90: New test.
4169 2006-03-09 Diego Novillo <dnovillo@redhat.com>
4171 * testsuite/libgomp.c++: New directory.
4173 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
4175 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4176 * config/posix/sem.c: Implement the above.
4178 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4180 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4181 define HAVE_BROKEN_POSIX_SEMAPHORES.
4182 * configure: Rebuilt.
4183 * config.h.in: Rebuilt.
4185 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4188 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4189 for the other pthread check.
4190 * configure: Regenerate.
4191 * config.h.in: Regenerate.
4193 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4197 * Makefile.am (fincludedir): New variable.
4198 (nodist_include_HEADERS): Remove Fortran files.
4199 (nodist_finclude_HEADERS): New variable.
4200 * Makefile.in: Regenerated.
4202 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4204 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4205 Remove tests for returning assumed character length arrays.
4207 2006-02-12 Roger Sayle <roger@eyesopen.com>
4208 John David Anglin <dave@hiauly1.hia.nrc.ca>
4211 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4213 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4215 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4217 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4219 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4220 part of LD_LIBRARY_PATH manually.
4222 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4225 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4228 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
4231 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4232 * configure.ac (PERL): Don't set.
4233 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4234 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4235 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4236 * omp.h.in: Wrap the new configure substitutions with @ characters.
4237 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4238 * aclocal.m4, configure, Makefile.in: Regenerate.
4239 * mkomp_h.pl: Delete.
4241 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
4244 * configure.ac: Use GCC_HEADER_STDINT.
4245 * libgomp.h: Include gstdint.h.
4246 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4247 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4249 2006-01-24 Richard Henderson <rth@redhat.com>
4252 * configure.ac: Add AM_MAINTAINER_MODE.
4253 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4255 2006-01-24 Diego Novillo <dnovillo@redhat.com>
4257 * Makefile.in: Regenerate.
4258 * testsuite/Makefile.in: Regenerate.
4259 * aclocal.m4: Regenerate.
4261 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
4263 * config/posix/proc.c: Conditional include of sys/loadavg.h for
4265 * configure.ac: Add check for loadavg.h.
4266 (link_gomp): Adjust comment.
4267 * configure: Regenerate.
4268 * config.h.in: Regenerate.
4270 2006-01-21 Steve Ellcey <sje@cup.hp.com>
4273 * configure.ac: Remove check for alloca.h.
4274 * configure: Regenerate.
4275 * config.h.in: Regenerate.
4276 * libgomp.h: define gomp_alloca to be __builtin_alloca.
4277 * team.c: Remove use of alloca.h.
4278 Call gomp_alloca instead of alloca.
4280 2006-01-20 Steve Ellcey <sje@cup.hp.com>
4283 * team.c: Add include of alloca.h.
4284 * configure.ac: Add check for alloca.h.
4285 * configure: Regenerate.
4286 * config.h.in: Regenerate.
4288 2006-01-17 Jakub Jelinek <jakub@redhat.com>
4291 * testsuite/libgomp.fortran/pr25219.f90: New test.
4293 2005-12-05 Uros Bizjak <uros@kss-loka.si>
4295 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4296 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4297 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4298 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4299 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4300 testsuite/libgomp.fortran/threadprivate1.f90,
4301 testsuite/libgomp.fortran/threadprivate2.f90,
4302 testsuite/libgomp.fortran/threadprivate3.f90,
4303 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4304 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4305 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4306 effective-target to TLS runtime.
4308 * testsuite/libgomp.fortran/pr25162.f: Require
4309 effective-target TLS runtime.
4311 2005-12-01 Jakub Jelinek <jakub@redhat.com>
4313 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4314 * testsuite/libgomp.c/nestedfn-3.c: New test.
4316 2005-11-30 Jakub Jelinek <jakub@redhat.com>
4319 * testsuite/libgomp.fortran/pr25162.f: New test.
4321 2005-11-28 Jakub Jelinek <jakub@redhat.com>
4323 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4324 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4326 2005-11-25 Jakub Jelinek <jakub@redhat.com>
4328 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4329 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4330 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4331 single.c, team.c, work.c, config/linux/alpha/futex.h,
4332 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4333 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4334 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4335 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4336 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4337 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4338 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4341 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4343 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4344 to nodist_noinst_HEADERS.
4345 * Makefile.in: Rebuilt.
4347 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4348 add integer count field.
4349 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4350 omp_nest_lock_t type change.
4351 (omp_init_nest_lock): Likewise. Initialize count to 0.
4352 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4354 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4356 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4357 Increment count if successful and return the new nesting level.
4358 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4359 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4360 * testsuite/libgomp.c/lib-1.c: New test.
4361 * testsuite/libgomp.fortran/lib1.f90: New test.
4362 * testsuite/libgomp.fortran/lib2.f: New test.
4363 * testsuite/libgomp.fortran/lib3.f: New test.
4365 2005-11-17 Richard Henderson <rth@redhat.com>
4368 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4369 * configure.ac (link_gomp): New. Substitute it.
4370 (AC_CONFIG_FILES): Add libgomp.spec.
4371 * libgomp.spec.in: New file.
4372 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4373 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4375 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4377 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4378 reduction(-:var) behaving the same as reduction(+:var).
4379 * testsuite/libgomp.c/reduction-4.c: New test.
4381 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4383 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4384 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4385 testsuite/libgomp.c/copyin-3.c,
4386 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4387 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4388 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4389 testsuite/libgomp.c++/pr24455.C,
4390 testsuite/libgomp.fortran/threadprivate1.f90,
4391 testsuite/libgomp.fortran/threadprivate2.f90,
4392 testsuite/libgomp.fortran/threadprivate3.f90,
4393 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4394 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4395 testsuite/libgomp.fortran/omp_parse3.f90: Require
4396 effective-target TLS.
4398 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4402 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4405 * team.c (initialize_team): Pass NULL rather than free as
4406 pthread_key_create destructor. Initialize thread specific data
4407 pointer in initial thread to a static local variable rather than
4410 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4412 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4413 its location to ld_library_path.
4415 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4417 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4419 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4421 * testsuite/libgomp.c: Rename from libgomp.dg.
4423 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4425 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4426 threadprivate variable 'i'.
4428 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4430 * config/linux/s390/futex.h: New file.
4431 * configure.tgt: Use it.
4433 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4434 before the parallel.
4436 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4439 * testsuite/libgomp.c++/master-1.C: New test.
4441 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4443 * testsuite/libgomp.dg/copyin-3.c: New test.
4445 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4447 * testsuite/libgomp.fortran/retval1.f90: New test.
4448 * testsuite/libgomp.fortran/vla7.f90: New test.
4450 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4452 * testsuite/libgomp.fortran/vla2.f90: New test.
4453 * testsuite/libgomp.fortran/vla3.f90: New test.
4454 * testsuite/libgomp.fortran/vla4.f90: New test.
4455 * testsuite/libgomp.fortran/vla5.f90: New test.
4456 * testsuite/libgomp.fortran/vla6.f90: New test.
4458 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4460 * config/linux/sparc/futex.h: New file.
4461 * configure.tgt: Use it.
4462 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4464 * critical.c: Include stdlib.h.
4465 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4466 ignoring return value.
4467 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4468 LIBGOMP_CHECK_SYNC_BUILTINS check.
4469 * configure: Rebuilt.
4471 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4473 * testsuite/libgomp.fortran/vla1.f90: New test.
4475 2005-10-31 Richard Henderson <rth@redhat.com>
4477 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4478 setting 's' in different threads.
4480 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4482 * libgomp.h (attribute_hidden, ialias): Define.
4483 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4484 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4485 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4486 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4487 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4488 omp_test_lock, omp_test_nest_lock): Likewise.
4489 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4490 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4491 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4492 omp_test_lock, omp_test_nest_lock): Likewise.
4493 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4494 omp_get_dynamic, omp_get_nested): Likewise.
4495 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4496 omp_get_thread_num, omp_in_parallel): Likewise.
4497 * fortran.c (ialias_redirect): Define.
4498 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4499 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4500 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4501 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4502 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4503 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4504 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4505 omp_get_wtime): Add ialias_redirect.
4507 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4509 * fortran.c: Include stdlib.h.
4511 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4513 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4514 * Makefile.in: Regenerated.
4516 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4518 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4519 * libgomp_f.h.in (omp_check_defines): New function.
4520 * env.c: Include libgomp_f.h.
4521 (initialize_env): Call omp_check_defines.
4523 * testsuite/libgomp.dg/copyin-2.c: New test.
4524 * testsuite/libgomp.c++/copyin-2.C: New test.
4525 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4527 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4528 * testsuite/libgomp.fortran/sharing2.f90: New test.
4530 * testsuite/libgomp.dg/copyin-1.c: New test.
4531 * testsuite/libgomp.c++/copyin-1.C: New test.
4533 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4535 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4537 * testsuite/libgomp.fortran/workshare1.f90: New test.
4539 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4541 * libgomp.fortran/sharing1.f90: New test.
4543 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4546 * testsuite/libgomp.c++/loop-7.C: New test.
4548 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4550 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4551 * testsuite/libgomp.fortran/reduction6.f90: New test.
4552 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4554 2005-10-23 Richard Henderson <rth@redhat.com>
4556 * testsuite/libgomp.c++/ctor-1.C: New.
4557 * testsuite/libgomp.c++/ctor-2.C: New.
4558 * testsuite/libgomp.c++/ctor-3.C: New.
4559 * testsuite/libgomp.c++/ctor-4.C: New.
4560 * testsuite/libgomp.c++/ctor-5.C: New.
4561 * testsuite/libgomp.c++/ctor-6.C: New.
4562 * testsuite/libgomp.c++/ctor-7.C: New.
4563 * testsuite/libgomp.c++/ctor-8.C: New.
4564 * testsuite/libgomp.c++/ctor-9.C: New.
4566 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4569 * testsuite/libgomp.c++/pr24455-1.C: New test.
4570 * testsuite/libgomp.c++/pr24455.C: New test.
4571 * testsuite/libgomp.dg/pr24455-1.c: New test.
4572 * testsuite/libgomp.dg/pr24455.c: New test.
4574 2005-10-20 Richard Henderson <rth@redhat.com>
4576 * testsuite/libgomp.c++/loop-6.C: New.
4577 * testsuite/libgomp.dg/loop-3.c: New.
4579 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4581 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4583 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4586 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4588 * testsuite/libgomp.fortran/jacobi.f: New test.
4590 2005-10-19 Richard Henderson <rth@redhat.com>
4592 * configure.tgt (i?86-linux): Default to with_arch instead of
4593 CFLAGS. Add -mtune to match target_cpu.
4594 (x86_64-linux): Tune to i686.
4596 * fortran.c (omp_test_nest_lock_): Fix typo.
4598 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4600 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4601 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4602 * testsuite/libgomp.dg/ordered-3.c: New test.
4604 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4605 Remove volatile keyword.
4607 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4608 in COMMON block to avoid warnings on 64-bit targets.
4610 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4612 * testsuite/libgomp.dg/shared-3.c: New test.
4614 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4616 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4617 * testsuite/libgomp.fortran/reduction5.f90: New test.
4619 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4621 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4623 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4624 flush loop now that __sync_synchronize has proper memory barrier.
4625 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4626 Add -ffixed-form to dg-options.
4628 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4630 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4631 from subdirectories.
4632 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4633 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4634 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4635 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4636 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4637 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4638 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4639 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4640 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4641 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4642 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4643 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4644 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4645 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4646 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4647 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4648 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4649 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4650 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4651 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4652 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4653 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4654 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4655 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4656 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4658 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4660 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4661 lang_library_path exists. Use find instead of glob to gather tests.
4662 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4664 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4666 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4667 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4668 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4669 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4670 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4671 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4672 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4673 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4674 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4675 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4676 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4677 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4678 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4680 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4682 * testsuite/libgomp.dg/vla-1.c: New test.
4684 * testsuite/libgomp.fortran/reference2.f90: New test.
4686 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4687 declaration of omp_get_thread_num.
4688 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4691 * testsuite/libgomp.fortran/reduction1.f90: New test.
4692 * testsuite/libgomp.fortran/reduction2.f90: New test.
4693 * testsuite/libgomp.fortran/reduction3.f90: New test.
4694 * testsuite/libgomp.fortran/reduction4.f90: New test.
4696 2005-10-13 Richard Henderson <rth@redhat.com>
4698 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4699 * Makefile.in: Regenerate.
4700 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4701 * libgomp.h: Include bar.h.
4702 (struct gomp_barrier): Remove.
4703 (struct gomp_team): Add barrier. Replace master_barrier with
4704 master_release. Replace threads with ordered_release.
4705 (struct gomp_thread): Replace barrier with release.
4706 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4707 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4708 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4709 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4710 (GOMP_single_copy_end): Likewise.
4711 * team.c (gomp_threads_dock): New.
4712 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4713 (gomp_thread_start): Use gomp_barrier_wait.
4714 (new_team, free_team): Update for gomp_team changes.
4715 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4716 (gomp_team_end): Use gomp_barrier_wait.
4717 (initialize_team): Update for gomp_thread changes.
4718 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4719 (gomp_work_share_end_nowait): Use atomic ops when available.
4720 * config/linux/bar.c, config/linux/bar.h: New files.
4721 * config/posix/bar.c, config/posix/bar.h: New files.
4723 2005-10-13 Jakub Jelinek <jakub@redhat.com>
4725 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4726 * testsuite/libgomp.dg/single-2.c: New test.
4728 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4729 lang_link_flags): Unset, so that they aren't inherited from previously
4732 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4734 2005-10-12 Richard Henderson <rth@redhat.com>
4736 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4737 (libgomp_init): Use lang_test_file, lang_library_path, and
4738 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4740 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4741 (lang_test_file, lang_link_flags): New.
4742 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4744 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4745 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4746 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4747 testsuite/libgomp.c++/parallel-1.C,
4748 testsuite/libgomp.c++/reduction-1.C,
4749 testsuite/libgomp.c++/reduction-2.C,
4750 testsuite/libgomp.c++/reduction-3.C,
4751 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4752 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4753 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4754 New files, largely cribbed from the C testsuite.
4756 2005-10-12 Jakub Jelinek <jakub@redhat.com>
4758 * testsuite/libgomp.fortran/character1.f90: New test.
4759 * testsuite/libgomp.fortran/character2.f90: New test.
4761 * testsuite/libgomp.dg/nested-1.c: New test.
4762 * testsuite/libgomp.dg/nested-2.c: New test.
4763 * testsuite/libgomp.fortran/do1.f90: New test.
4764 * testsuite/libgomp.fortran/do2.f90: New test.
4766 * testsuite/libgomp.fortran/reference1.f90: New test.
4768 2005-10-11 Jakub Jelinek <jakub@redhat.com>
4770 * testsuite/libgomp.dg/reduction-1.c: New test.
4771 * testsuite/libgomp.dg/reduction-2.c: New test.
4772 * testsuite/libgomp.dg/reduction-3.c: New test.
4774 2005-10-10 Jakub Jelinek <jakub@redhat.com>
4776 * testsuite/libgomp.dg/atomic-1.c: New test.
4777 * testsuite/libgomp.dg/atomic-2.c: New test.
4779 2005-10-09 Richard Henderson <rth@redhat.com>
4781 * critical.c (atomic_lock): New.
4782 (initialize_critical): Initialize it.
4783 (GOMP_atomic_start, GOMP_atomic_end): New.
4784 * libgomp.map: Export them.
4785 * libgomp_g.h: Declare them.
4787 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4789 2005-10-02 Richard Henderson <rth@redhat.com>
4791 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
4792 to XCFLAGS instead of CFLAGS.
4794 2005-09-30 Richard Henderson <rth@redhat.com>
4796 * configure.ac: Determine whether -pthread or -lpthread is needed.
4797 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4798 * Makefine.in, configure: Rebuild.
4800 2005-09-28 Richard Henderson <rth@redhat.com>
4802 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4803 * testsuite/libgomp.dg/omp-single-3.c: New test.
4805 2005-09-28 Diego Novillo <dnovillo@redhat.com>
4807 * testsuite/libgomp.dg/omp-single-2.c: New test.
4808 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4810 2005-09-27 Richard Henderson <rth@redhat.com>
4812 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4813 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4815 2005-09-27 Jakub Jelinek <jakub@redhat.com>
4817 * testsuite/libgomp.dg/omp-loop03.c: New test.
4819 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4821 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4823 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4825 * testsuite/libgomp.dg/omp-single-1.c: New test.
4826 * testsuite/libgomp.dg/shared-1.c: Return 0.
4827 Add prototype for abort.
4828 * testsuite/libgomp.dg/shared-2.c: Likewise.
4830 2005-09-26 Jakub Jelinek <jakub@redhat.com>
4832 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4835 2005-09-26 Diego Novillo <dnovillo@redhat.com>
4837 * testsuite/libgomp.dg/shared-1.c: New test.
4838 * testsuite/libgomp.dg/shared-2.c: New test.
4840 2005-09-24 Richard Henderson <rth@redhat.com>
4842 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4844 2005-09-24 Richard Henderson <rth@redhat.com>
4846 * iter.c (gomp_iter_static_next): Round up when computing number
4847 of iterations. Don't bother distributing a remainder equally.
4849 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4850 Don't call srand. Zero b before testing.
4853 2005-09-24 Jakub Jelinek <jakub@redhat.com>
4855 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4856 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4858 2005-09-23 Jakub Jelinek <jakub@redhat.com>
4860 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4861 without !$omp end do, followed immediately by subroutine end.
4863 2005-09-23 Diego Novillo <dnovillo@redhat.com>
4865 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4867 2005-09-22 Richard Henderson <rth@redhat.com>
4869 * critical.c (GOMP_critical_name_start): Change argument to void**.
4870 Reuse the pointer space if the mutex fits.
4871 (GOMP_critical_name_end): Likewise.
4872 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4873 * libgomp_g.h (GOMP_critical_name_start): Update decl.
4874 (GOMP_critical_name_end): Likewise.
4875 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4876 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4878 2005-09-20 Richard Henderson <rth@redhat.com>
4880 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4881 (create_lock_lock): New.
4882 (initialize_critical): Initialize it.
4883 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4884 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4886 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4888 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4890 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4892 * testsuite/libgomp.dg/omp-loop01.c: New test.
4893 * testsuite/libgomp.dg/omp-loop02.c: New test.
4895 2005-09-20 Jakub Jelinek <jakub@redhat.com>
4897 * configure.ac (AC_PROG_FC): Add.
4898 (USE_FORTRAN): New automake conditional.
4899 * configure: Rebuilt.
4900 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4901 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4902 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4903 Add rules to build them.
4904 * Makefile.in: Rebuilt.
4905 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4907 * libgomp.map: Add Fortran wrappers.
4908 * libgomp_f.h.in: New file.
4909 * omp_lib.h.in: New file.
4910 * omp_lib.f90.in: New file.
4911 * fortran.c: New file.
4912 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4913 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4914 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4915 libgfortran has been built.
4916 * testsuite/libgomp.fortran/fortran.exp: New file.
4917 * testsuite/libgomp.fortran/omp_cond1.f: New test.
4918 * testsuite/libgomp.fortran/omp_cond2.f: New test.
4919 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4920 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4921 * testsuite/libgomp.fortran/omp_hello.f: New test.
4922 * testsuite/libgomp.fortran/omp_orphan.f: New test.
4923 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4924 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4925 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4926 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4927 * testsuite/libgomp.fortran/omp_reduction.f: New test.
4928 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4929 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4931 2005-08-30 Richard Henderson <rth@redhat.com>
4933 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4934 function for when aliases are not usable.
4935 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4936 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4937 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4938 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4939 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4940 GOMP_loop_ordered_guided_next): Likewise.
4941 * ordered.c (GOMP_ordered_start): Likewise.
4943 2005-08-01 Diego Novillo <dnovillo@redhat.com>
4945 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4946 * testsuite/libgomp.dg/omp_hello.c: Fix return code
4947 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4948 * testsuite/libgomp.dg/omp_orphan.c: Likewise
4949 * testsuite/libgomp.dg/omp_reduction.c: Likewise
4950 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4951 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4952 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4953 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4955 2005-07-07 Eric Christopher <echristo@redhat.com>
4956 Diego Novillo <dnovillo@redhat.com>
4958 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4959 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4961 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4962 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4963 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4964 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4965 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4966 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4967 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4969 2005-06-13 Diego Novillo <dnovillo@redhat.com>
4971 * TOPLEVEL.patch: Remove.
4973 2005-05-16 Richard Henderson <rth@redhat.com>
4975 * configure.ac: Test for clock_gettime.
4976 * config.h.in, configure: Rebuild.
4977 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4978 (omp_get_wtime): Use clock_gettime if available.
4979 (omp_get_wtick): Use clock_getres if available.
4981 2005-05-11 Richard Henderson <rth@redhat.com>
4983 * config/linux/ia64/futex.h: New file.
4984 * configure.tgt: Use it.
4986 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4988 2005-05-07 Richard Henderson <rth@redhat.com>
4990 * config/linux/powerpc/futex.h: New file.
4991 * configure.tgt: Use it.
4993 * config/linux/i486/futex.h: Merge ...
4994 * config/linux/x86_64/futex.h: ... into ...
4995 * config/linux/x86/futex.h: ... here.
4996 * configure.tgt: Update to match.
4998 2005-05-06 Richard Henderson <rth@redhat.com>
5000 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5001 * config/linux/i486/futex.h: Likewise.
5002 * config/linux/x86_64/futex.h: Likewise.
5004 * config/linux/lock.c: New file.
5005 * config/linux/omp-lock.h: New file.
5007 * critical.c, env.h: Don't include omp.h
5008 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5009 * config/posix/time.c: Likewise.
5010 * config/posix/omp-lock.h: New file.
5011 * libgomp.h: Include omp-lock.h and omp.h.
5012 * Makefile.am (nodist_include_HEADERS): New.
5014 * configure.ac (PERL): New.
5015 * mkomp_h.pl: New file.
5016 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5018 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5020 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5021 build directory. Re-add -march=i486 hack.
5023 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5024 (libgomp_link_flags): Remove.
5025 (libgomp_initialized): Remove.
5026 (libgomp_init): Don't protect from reinitialization. Copy code
5027 from libstdc++ for getting the multilib set correctly.
5029 2005-05-05 Richard Henderson <rth@redhat.com>
5031 * config/linux/alpha/futex.h: New file.
5032 * configure.tgt (alpha*-*-linux*): Use it.
5034 * config/posix/mutex.c: New file.
5035 * config/posix/sem.c: Use libgomp.h.
5037 * configure.tgt (x86_64-linux): Also test CC for -m32.
5038 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5040 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5043 * Makefile.am (SUBDIRS): New.
5044 (libgomp_la_LDFLAGS): Add -lpthread.
5045 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5046 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5048 * libgomp_g.h: New file.
5049 * libgomp.h: Split out all public declarations to libgomp_g.h.
5050 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5051 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5052 * config/linux/sem.h: Likewise.
5053 * config/posix/sem.h: Likewise.
5055 * Makefile.am (AM_LDFLAGS): New.
5056 (libgomp_version_script): Split out from ...
5057 (libgomp_la_LDFLAGS): ... here.
5058 (libgomp_version_info): New.
5059 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5060 (LIBGOMP_ENABLE): New.
5061 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5062 (LIBGOMP_ENABLE_SYMVERS): New.
5063 * configure.ac (AC_INIT): Version 1.0.
5064 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5065 (enable-linux-futex): Likewise. Rename from enable-futex.
5066 (libtool_VERSION): New.
5067 (LIBGOMP_ENABLE_SYMVERS): Use it.
5068 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5069 * Makefile.in, aclocal.m4, configure: Rebuild.
5071 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5072 (gomp_mutex_unlock_slow): Fix typo.
5073 * config/linux/sem.c: Similarly.
5074 (gomp_sem_post_slow): Fix typo.
5075 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5076 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5077 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5079 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5080 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5081 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5082 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5083 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5084 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5085 LDFLAGS. Pull enable_futex check to top-level.
5086 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5087 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5089 First attempt at real configury.
5090 * Makefile, config.h: Remove file.
5091 * Makefile.am, Makefile.in: New file.
5092 * acinclude.m4 aclocal.m4: New file.
5093 * configure.ac, configure.tgt, configure: New file.
5095 * config/posix/lock.c: Rename from sys-lock.c.
5096 * config/posix/mutex.h: Rename from sys-mutex.h.
5097 * config/posix/sem.c: Rename from sys-sem.c.
5098 * config/posix/sem.h: Rename from sys-sem.h.
5099 * config/posix/proc.c: Rename from sys-proc.c.
5100 * config/posix/time.c: Rename from sys-proc.c.
5102 * config/linux/mutex.c: New file.
5103 * config/linux/mutex.h: New file.
5104 * config/linux/sem.c: New file.
5105 * config/linux/sem.h: New file.
5106 * config/linux/i486/futex.h: New file.
5107 * config/linux/x86_64/futex.h: New file.
5109 2005-05-04 Richard Henderson <rth@redhat.com>
5111 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5112 * libgomp.h: Declare them.
5113 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5114 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5116 2005-05-04 Richard Henderson <rth@redhat.com>
5118 * libgomp-1 code drop
5120 2005-05-04 Richard Henderson <rth@redhat.com>
5122 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5123 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5124 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5125 (gomp_iter_static_next): Update.
5126 (gomp_ordered_static_next): Update.
5127 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5128 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5129 totally empty range.
5130 (gomp_loop_ordered_static_next): Refine test for calling
5131 gomp_ordered_static_next.
5132 * testsuite/ordered-1.c: Add case for more threads than iterations.
5134 * iter.c (gomp_iter_runtime_next_locked): Remove.
5135 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5136 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5137 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5138 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5139 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5140 gomp_loop_ordered_guided_next): Downcase name, make static, add
5141 an external alias with the old name.
5142 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5143 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5144 switch and call one of the above static functions.
5145 * libgomp.h: Update.
5147 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5148 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5149 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5150 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5151 GOMP_loop_ordered_guided_start): Update to match.
5152 * sections.c (GOMP_sections_start): Likewise.
5153 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5155 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5156 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5157 Use bounds check instead of modulus.
5158 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5159 (gomp_ordered_last): Don't sync with ordered_owner here.
5160 (gomp_ordered_next): Likewise.
5161 (gomp_ordered_static_loop_next): Likewise.
5162 * loop.c, libgomp.h: Update to match.
5164 * libgomp.h (GOMP_barrier): Declare.
5166 * testsuite/barrier-1.c: New file.
5167 * testsuite/critical-1.c: New file.
5168 * testsuite/ordered-2.c: New file.
5169 * testsuite/ordered-1.c: New file.
5170 * testsuite/sections-1.c: New file.
5171 * testsuite/single-1.c: New file.
5172 * testsuite/Makefile (TESTS): Add them.
5174 2005-05-04 Richard Henderson <rth@redhat.com>
5176 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5177 * loop.c (GOMP_loop_static_start): If not the startup thread,
5178 acquire the mutex to wait for initialization complete.
5179 (GOMP_loop_ordered_static_start): Likewise.
5180 (GOMP_loop_ordered_runtime_start): Likewise.
5181 (GOMP_loop_ordered_static_first): Remove.
5182 (GOMP_loop_ordered_dynamic_first): Remove.
5183 (GOMP_loop_ordered_guided_first): Remove.
5184 (GOMP_loop_ordered_runtime_first): Remove.
5185 * ordered.c (gomp_ordered_loop_first): Post to own release when
5186 we're the first thread.
5187 (gomp_ordered_loop_last): Wait on release if not owner.
5188 (gomp_ordered_loop_next): Likewise.
5189 (gomp_ordered_static_loop_init): New.
5190 (gomp_ordered_static_loop_next): Use ordered_owner.
5191 (GOMP_ordered_start): Likewise.
5192 * work.c (gomp_new_work_share): Initialize ordered_owner.
5194 2005-05-03 Richard Henderson <rth@redhat.com>
5196 * Makefile (OPT): New.
5199 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5200 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5201 * libgomp.h, libgomp.map, NOTES: Update to match.
5203 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5204 Add initialized and thr members.
5205 (gomp_thread_start): Pause when initially spawned to wait for
5206 the whole team to be created.
5207 (gomp_team_start): Release team members at the end.
5209 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5210 (f_foo_1): Use GOMP_loop_end.
5211 (f_foo_2): Use GOMP_loop_end_nowait.
5213 * testsuite/loop-2.c: New file.
5214 * testsuite/Makefile (TESTS): Add it.
5216 2005-05-03 Richard Henderson <rth@redhat.com>
5218 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5219 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5220 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5223 * testsuite/Makefile: New file.
5224 * testsuite/loop-1.c: New file.
5226 2005-05-03 Richard Henderson <rth@redhat.com>
5228 Initial implementation and checkin.