1 2015-05-13 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/pr66133.c: New test.
6 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8 * Makefile.in: Regenerated with automake-1.11.6.
9 * aclocal.m4: Likewise.
10 * config.h.in: Likewise.
11 * configure: Likewise.
12 * testsuite/Makefile.in: Likewise.
14 2015-05-08 Jason Merrill <jason@redhat.com>
16 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
19 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
21 2015-05-06 Julian Brown <julian@codesourcery.com>
23 * oacc-init.c (acc_device_lock): Add explanatory comment.
24 (resolve_device): Add comment about locking requirement.
25 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
26 gomp_init_device and gomp_fini_device calls.
27 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
28 (acc_get_device_num, acc_set_device_num): Add locking around
29 resolve_device and gomp_init_device calls.
31 2015-05-06 Julian Brown <julian@codesourcery.com>
33 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
34 goacc_thread_lock on error paths.
35 * oacc-mem.c (lookup_host): Remove locking from function. Note
36 locking requirement for caller in function comment.
37 (lookup_dev): Likewise.
38 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
39 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
40 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
43 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
47 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
48 don't expect "0x" prefix for "%p" format specifier, don't expect
49 "(nil)" for NULL pointer.
50 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
51 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
52 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
53 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
54 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
55 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
56 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
57 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
58 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
59 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
60 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
61 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
62 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
63 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
64 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
65 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
66 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
67 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
68 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
69 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
70 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
71 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
72 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
73 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
74 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
75 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
76 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
77 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
78 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
79 accurately specify what we're looking for.
80 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
81 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
82 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
83 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
84 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
86 2015-04-30 James Norris <jnorris@codesourcery.com>
89 * testsuite/lib/libgomp.exp
90 (check_effective_target_openacc_host_selected)
91 (check_effective_target_openacc_host_nonshm_selected): New
93 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
95 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
96 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
97 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
98 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
99 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
100 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
101 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
102 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
103 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
104 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
105 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
106 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
107 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
108 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
109 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
110 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
111 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
112 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
113 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
114 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
115 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
116 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
117 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
118 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
119 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
120 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
121 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
122 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
123 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
124 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
125 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
126 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
127 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
128 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
129 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
130 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
131 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
132 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
133 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
134 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
135 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
136 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
137 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
139 2015-04-08 Julian Brown <julian@codesourcery.com>
141 * libgomp.h (target_mem_desc: Remove mem_map field.
142 (acc_dispatch_t): Remove open_device_func, close_device_func,
143 get_device_num_func, set_device_num_func, target_data members.
144 Change create_thread_data_func argument to device number instead of
146 * oacc-async.c (assert.h): Include.
147 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
148 (acc_wait_all, acc_wait_all_async): Use current host thread's
149 active device, not base_dev.
150 * oacc-cuda.c (acc_get_current_cuda_device)
151 (acc_get_current_cuda_context, acc_get_cuda_stream)
152 (acc_set_cuda_stream): Likewise.
153 * oacc-host.c (host_dispatch): Don't set open_device_func,
154 close_device_func, get_device_num_func or set_device_num_func.
155 * oacc-init.c (base_dev, init_key): Remove.
156 (cached_base_dev): New.
157 (name_of_acc_device_t): New.
158 (acc_init_1): Initialise default-numbered device, not zeroth.
159 (acc_shutdown_1): Close all devices of a given type.
160 (goacc_destroy_thread): Don't use base_dev.
161 (lazy_open, lazy_init, lazy_init_and_open): Remove.
162 (goacc_attach_host_thread_to_device): New.
163 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
164 (acc_get_num_devices): Don't use base_dev.
165 (acc_set_device_type): Reimplement.
166 (acc_get_device_type): Don't use base_dev.
167 (acc_get_device_num): Tweak logic.
168 (acc_set_device_num): Likewise.
169 (acc_on_device): Use acc_get_device_type.
170 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
171 (goacc_lazy_initialize): Reimplement with acc_init and
172 goacc_attach_host_thread_to_device.
173 * oacc-int.h (goacc_thread): Add base_dev field.
174 (base_dev): Remove extern declaration.
175 (goacc_attach_host_thread_to_device): Add prototype.
176 * oacc-mem.c (acc_malloc): Use current thread's device instead of
178 (acc_free): Likewise.
179 (acc_memcpy_to_device): Likewise.
180 (acc_memcpy_from_device): Likewise.
181 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
182 goacc_lazy_initialize (throughout).
183 (GOACC_parallel): Use tgt_offset to locate target functions.
184 * target.c (gomp_map_vars): Don't set tgt->mem_map.
185 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
186 (gomp_load_plugin_for_device): Remove open_device, close_device,
187 get_device_num, set_device_num openacc hook initialisation. Don't set
189 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
190 (GOMP_OFFLOAD_openacc_close_device)
191 (GOMP_OFFLOAD_openacc_get_device_num)
192 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
193 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
195 * plugin/plugin-nvptx.c (ptx_inited): Remove.
196 (instantiated_devices, ptx_dev_lock): New.
197 (struct ptx_image_data): New.
198 (ptx_devices, ptx_images, ptx_image_lock): New.
199 (fini_streams_for_device): Reorder cuStreamDestroy call.
200 (nvptx_get_num_devices): Remove forward declaration.
201 (nvptx_init): Change return type to bool.
202 (nvptx_fini): Remove.
203 (nvptx_attach_host_thread_to_device): New.
204 (nvptx_open_device): Return struct ptx_device* instead of void*.
205 (nvptx_close_device): Change argument type to struct ptx_device*,
207 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
208 (kernel_target_data, kernel_host_table): Remove static globals.
209 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
210 (GOMP_OFFLOAD_init_device): Reimplement.
211 (GOMP_OFFLOAD_fini_device): Likewise.
212 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
213 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
214 (GOMP_OFFLOAD_host2dev): Use ORD argument.
215 (GOMP_OFFLOAD_openacc_open_device)
216 (GOMP_OFFLOAD_openacc_close_device)
217 (GOMP_OFFLOAD_openacc_set_device_num)
218 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
219 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
223 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
225 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
227 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
228 * libgomp.h (struct gomp_memory_mapping): Remove.
229 (struct target_mem_desc): Change type of mem_map from
230 gomp_memory_mapping * to splay_tree_s *.
231 (struct gomp_device_descr): Remove register_image_func, get_table_func.
232 Add load_image_func, unload_image_func.
233 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
234 Remove offload_regions_registered.
235 (gomp_init_tables): Remove.
236 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
238 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
239 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
240 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
241 offload_regions_registered.
242 Initialize load_image_func, unload_image_func, mem_map.root.
243 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
244 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
245 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
246 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
247 gomp_memory_mapping *. Use dev's lock and splay_tree.
248 (lookup_dev): Use dev's lock.
249 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
250 (acc_is_present): Likewise.
251 (acc_map_data): Likewise.
252 (acc_unmap_data): Likewise. Use dev's lock.
253 (present_create_copy): Likewise.
254 (delete_copyout): Pass dev to lookup_host instead of mem_map.
255 (update_dev_host): Likewise.
256 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
257 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
258 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
259 (GOMP_OFFLOAD_get_table): Remove
260 (GOMP_OFFLOAD_load_image): New function.
261 (GOMP_OFFLOAD_unload_image): New function.
262 * target.c (register_lock): New mutex for offload image registration.
263 (num_devices): Do not guard with PLUGIN_SUPPORT.
264 (gomp_realloc_unlock): New static function.
265 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
267 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
268 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
269 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
271 (gomp_unmap_vars): Likewise.
272 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
273 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
274 (gomp_offload_image_to_device): New static function.
275 (GOMP_offload_register): Add mutex lock.
276 Call gomp_offload_image_to_device for all initialized devices.
277 Replace gomp_realloc with gomp_realloc_unlock.
278 (GOMP_offload_unregister): New function.
279 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
280 get_table_func from the plugin with calls to init_device_func and
281 gomp_offload_image_to_device.
282 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
284 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
285 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
286 (GOMP_target_data): Do not call gomp_init_tables.
287 (GOMP_target_update): Likewise. Remove argument from gomp_update.
288 (gomp_load_plugin_for_device): Replace register_image and get_table
289 with load_image and unload_image in DLSYM ().
290 (gomp_register_images_for_device): Remove function.
291 (gomp_target_init): Do not initialize current_device.mem_map.*,
292 current_device.offload_regions_registered.
293 Remove call to gomp_register_images_for_device.
294 Do not free offload_images and num_offload_images.
296 2015-03-30 Jakub Jelinek <jakub@redhat.com>
299 * testsuite/libgomp.fortran/pr65597.f90: New test.
301 2015-03-27 Tom de Vries <tom@codesourcery.com>
304 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
305 (init, check): New function.
306 (foo): Change return type to void.
307 (main): Call init and check.
309 2015-03-27 Tom de Vries <tom@codesourcery.com>
312 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
313 (foo): Use M for non-inner loops to scale down test-case.
315 2015-03-25 Kai Tietz <ktietz@redhat.com>
318 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
319 (GOACC_data_start): Likewise.
320 * target.c (gomp_map_vars): Likewise.
322 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
324 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
327 2015-03-19 Jakub Jelinek <jakub@redhat.com>
329 * testsuite/libgomp.c/target-10.c: New test.
330 * testsuite/libgomp.c++/target-4.C: New test.
332 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
334 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
335 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
337 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
339 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
340 * configure.ac (*-*-rtems*): Assume Pthread is supported.
341 (pthread.h): Check for this header file.
342 * configure: Regenerate.
344 2015-02-25 Tom de Vries <tom@codesourcery.com>
346 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
347 (check_reduction_op, check_reduction_macro, max, min):
349 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
351 (main): Use new functions.
353 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
355 * target.c (gomp_load_plugin_for_device): Use const char * instead of
356 char * for variables holding dlerror return values.
359 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
361 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
363 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
364 Cesar Philippidis <cesar@codesourcery.com>
366 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
367 GOACC_ctaid, and GOACC_nctaid routines.
369 2015-02-11 Jakub Jelinek <jakub@redhat.com>
372 * testsuite/libgomp.c/atomic-18.c: New test.
373 * testsuite/libgomp.c++/atomic-16.C: New test.
375 2015-02-04 Jakub Jelinek <jakub@redhat.com>
379 * testsuite/libgomp.c/pr64824.c: New test.
380 * testsuite/libgomp.c/pr64868.c: New test.
381 * testsuite/libgomp.c++/pr64824.C: New test.
382 * testsuite/libgomp.c++/pr64868.C: New test.
384 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
387 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
389 * config/aix/plugin-suffix.h: Delete.
391 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
394 * configure.tgt (*-*-aix*): Use config_path "aix posix".
395 (*-*-darwin*): Use config_path "bsd darwin posix".
396 (*-*-hpux*): Use config_path "hpux posix".
397 * target.c: Add include of plugin-suffix.h and use
399 * config/aix/plugin-suffix.h: New file.
400 * config/darwin/plugin-suffix.h: New file.
401 * config/hpux/plugin-suffix.h: New file.
402 * config/posix/plugin-suffix.h: New file.
404 2015-01-23 Jakub Jelinek <jakub@redhat.com>
407 * libgomp.c/pr64734.c: New test.
409 2015-01-23 Tom de Vries <tom@codesourcery.com>
412 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
414 2015-01-23 Tom de Vries <tom@codesourcery.com>
417 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
420 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
423 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
424 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
425 formal parameter. Update all users.
426 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
427 Document unused formal parameter.
429 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
431 * oacc-parallel.c: Don't include <alloca.h>.
432 (GOACC_parallel): Use gomp_alloca instead of alloca.
434 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
436 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
438 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
439 James Norris <jnorris@codesourcery.com>
440 Tom de Vries <tom@codesourcery.com>
441 Julian Brown <julian@codesourcery.com>
442 Cesar Philippidis <cesar@codesourcery.com>
443 Nathan Sidwell <nathan@codesourcery.com>
444 Tobias Burnus <burnus@net-b.de>
446 * Makefile.am (search_path): Add $(top_srcdir)/../include.
447 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
448 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
449 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
450 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
451 Include $(top_srcdir)/plugin/Makefrag.am.
452 (nodist_libsubinclude_HEADERS): Add openacc.h.
453 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
454 openacc.f90, openacc.mod, openacc_kinds.mod.
455 (omp_lib.mod): Generalize into...
456 (%.mod): ... this new rule.
457 (openacc_kinds.mod, openacc.mod): New rules.
458 * plugin/configfrag.ac: New file.
459 * configure.ac: Move plugin/offloading support into it. Include
460 it. Instantiate testsuite/libgomp-test-support.pt.exp.
461 * plugin/Makefrag.am: New file.
462 * testsuite/Makefile.am (OFFLOAD_TARGETS)
463 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
465 (libgomp-test-support.exp): New rule.
466 (all-local): Depend on it.
467 * Makefile.in: Regenerate.
468 * testsuite/Makefile.in: Regenerate.
469 * config.h.in: Likewise.
470 * configure: Likewise.
471 * configure.tgt: Harden shell syntax.
472 * env.c: Include "oacc-int.h".
473 (parse_acc_device_type): New function.
474 (gomp_debug_var, goacc_device_type, goacc_device_num): New
476 (initialize_env): Initialize those. Call
477 goacc_runtime_initialize.
478 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
479 (gomp_fatal): Call gomp_vfatal.
480 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
481 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
482 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
483 (splay_tree_node, splay_tree, splay_tree_key)
484 (struct target_mem_desc, struct splay_tree_key_s)
485 (struct gomp_memory_mapping, struct acc_dispatch_t)
486 (struct gomp_device_descr, gomp_acc_insert_pointer)
487 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
488 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
489 (gomp_free_memmap, gomp_fini_device): New declarations.
490 (gomp_vdebug, gomp_debug): New macros.
491 Include "splay-tree.h".
492 * libgomp.map (OACC_2.0): New symbol version. Use for
493 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
494 acc_set_device_type_h_, acc_get_device_type,
495 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
496 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
497 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
498 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
499 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
500 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
501 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
502 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
503 acc_copyin_array_h_, acc_present_or_copyin,
504 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
505 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
506 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
507 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
508 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
509 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
510 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
511 acc_update_device, acc_update_device_32_h_,
512 acc_update_device_64_h_, acc_update_device_array_h_,
513 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
514 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
515 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
516 acc_is_present_64_h_, acc_is_present_array_h_,
517 acc_memcpy_to_device, acc_memcpy_from_device,
518 acc_get_current_cuda_device, acc_get_current_cuda_context,
519 acc_get_cuda_stream, acc_set_cuda_stream.
520 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
521 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
522 GOACC_update, GOACC_wait, GOACC_get_thread_num,
523 GOACC_get_num_threads.
524 (GOMP_PLUGIN_1.0): New symbol version. Use for
525 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
526 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
527 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
528 GOMP_PLUGIN_acc_thread.
529 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
530 environment variable.
531 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
532 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
533 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
534 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
535 (splay_tree_remove): New declarations.
536 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
537 (splay_tree_remove, splay_tree_lookup): Move into...
538 * splay-tree.c: ... this new file.
539 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
540 (splay_tree_node, splay_tree, splay_tree_key)
541 (struct target_mem_desc, struct splay_tree_key_s)
542 (struct gomp_device_descr): Don't declare.
543 (num_devices_openmp): New variable.
544 (gomp_get_num_devices ): Use it.
545 (gomp_init_targets_once): New function.
546 (gomp_get_num_devices ): Use it.
547 (get_kind, gomp_copy_from_async, gomp_free_memmap)
548 (gomp_fini_device, gomp_register_image_for_device): New functions.
549 (gomp_map_vars): Add devaddrs parameter.
550 (gomp_update): Add mm parameter.
551 (gomp_init_device): Move most of it into...
552 (gomp_init_tables): ... this new function.
553 (gomp_register_images_for_device): Remove function.
554 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
555 Make them hidden instead of static.
556 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
557 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
558 (GOMP_target_end_data, GOMP_target_update)
559 (gomp_load_plugin_for_device, gomp_target_init): Update for
561 * oacc-async.c: New file.
562 * oacc-cuda.c: Likewise.
563 * oacc-host.c: Likewise.
564 * oacc-init.c: Likewise.
565 * oacc-int.h: Likewise.
566 * oacc-mem.c: Likewise.
567 * oacc-parallel.c: Likewise.
568 * oacc-plugin.c: Likewise.
569 * oacc-plugin.h: Likewise.
570 * oacc-ptx.h: Likewise.
571 * openacc.f90: Likewise.
572 * openacc.h: Likewise.
573 * openacc_lib.h: Likewise.
574 * plugin/plugin-host.c: Likewise.
575 * plugin/plugin-nvptx.c: Likewise.
576 * libgomp-plugin.c: Likewise.
577 * libgomp-plugin.h: Likewise.
578 * libgomp_target.h: Remove file after merging content into the
579 former file. Update all users.
580 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
581 (offload_targets_s, offload_targets_s_openacc): New variables.
582 (check_effective_target_openacc_nvidia_accel_present)
583 (check_effective_target_openacc_nvidia_accel_selected): New
585 (libgomp_init): Update for OpenACC changes.
586 * testsuite/libgomp-test-support.exp.in: New file.
587 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
588 * testsuite/libgomp.oacc-c/c.exp: Likewise.
589 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
590 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
591 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
592 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
593 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
594 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
595 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
596 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
597 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
598 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
599 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
600 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
601 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
602 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
603 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
604 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
605 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
606 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
607 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
608 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
609 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
610 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
611 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
612 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
613 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
614 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
615 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
616 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
617 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
618 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
619 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
620 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
621 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
622 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
623 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
624 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
625 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
626 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
627 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
628 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
629 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
630 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
631 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
632 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
633 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
634 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
635 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
636 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
637 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
638 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
639 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
640 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
641 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
642 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
643 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
644 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
645 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
646 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
647 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
648 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
649 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
650 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
651 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
652 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
653 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
654 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
655 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
656 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
657 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
658 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
659 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
660 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
661 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
662 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
663 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
664 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
665 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
666 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
667 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
668 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
669 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
670 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
671 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
672 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
673 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
674 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
675 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
676 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
677 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
678 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
679 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
680 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
681 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
682 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
683 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
684 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
685 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
686 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
687 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
688 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
689 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
690 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
691 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
692 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
693 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
694 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
695 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
696 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
697 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
698 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
699 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
700 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
701 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
702 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
703 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
704 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
705 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
706 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
707 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
708 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
709 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
710 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
711 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
712 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
713 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
714 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
715 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
716 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
717 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
718 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
719 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
720 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
721 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
722 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
723 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
724 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
725 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
726 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
728 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
729 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
730 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
731 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
732 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
733 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
734 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
735 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
736 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
737 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
738 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
739 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
740 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
741 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
742 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
743 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
744 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
745 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
746 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
747 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
748 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
749 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
750 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
751 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
752 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
753 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
754 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
755 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
756 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
757 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
758 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
759 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
760 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
761 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
762 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
763 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
764 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
765 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
766 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
767 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
768 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
769 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
770 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
771 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
772 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
773 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
774 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
775 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
776 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
777 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
778 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
779 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
780 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
781 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
782 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
783 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
784 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
785 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
786 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
787 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
789 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
790 Julian Brown <julian@codesourcery.com>
791 David Malcolm <dmalcolm@redhat.com>
793 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
794 to "GNU Offloading and Multi Processing Runtime Library". Change
796 * configure: Regenerate.
797 * libgomp.texi: Update.
799 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
801 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
803 * configure: Regenerate.
805 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
806 "intelmic" in $offload_targets.
808 2015-01-05 Jakub Jelinek <jakub@redhat.com>
810 Update copyright years.
812 * libgomp.texi: Bump @copying's copyright year.
814 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
816 * testsuite/lib/libgomp.exp: Load target-utils.exp.
817 Move load of target-supportes.exp earlier.
819 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
821 * testsuite/libgomp.c/target-9.c: New test.
823 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
825 * config.h.in: Regenerate.
826 * configure: Regenerate.
827 * configure.ac: Add GCC_CHECK_EMUTLS.
828 * libgomp.h: Add check for USE_EMUTLS: this case
829 is equal to HAVE_TLS.
832 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
834 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
836 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
837 Ilya Verbin <ilya.verbin@intel.com>
839 * testsuite/libgomp.c/target-critical-1.c: New test.
841 2014-11-26 Jakub Jelinek <jakub@redhat.com>
843 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
844 to dg-options unless expensive testing is on.
845 (TESTITERS): Define to N if not defined.
846 (main): Use TESTITERS instead of N.
847 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
848 dg-additional-options depending on whether expensive testing is on.
849 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
850 Decrease N to 100000 and CHUNKSZ to 10000.
852 2014-11-24 Jakub Jelinek <jakub@redhat.com>
855 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
856 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
858 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
860 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
862 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
865 * configure: Regenerated.
867 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
869 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
870 vect_simd_clones effective target.
871 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
873 2014-11-14 Jakub Jelinek <jakub@redhat.com>
875 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
877 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
878 instead of 32 as block_size.
880 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
881 Ilya Verbin <ilya.verbin@intel.com>
883 * Makefile.in: Regenerate.
884 * configure: Regenerate.
885 * configure.ac: Set up offload_additional_options,
886 offload_additional_lib_paths and offload_targets.
887 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
888 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
889 * testsuite/Makefile.in: Regenerate.
890 * testsuite/lib/libgomp.exp (libgomp_init): Append
891 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
892 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
893 build directory to LD_LIBRARY_PATH for intelmic offload targets.
895 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
896 Ilya Verbin <ilya.verbin@intel.com>
897 Kirill Yukhin <kirill.yukhin@intel.com>
898 Ilya Tocar <ilya.tocar@intel.com>
900 * testsuite/lib/libgomp.exp
901 (check_effective_target_offload_device): New.
902 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
903 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
904 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
905 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
906 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
907 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
908 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
909 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
910 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
911 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
912 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
913 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
914 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
915 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
916 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
917 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
918 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
919 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
920 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
921 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
922 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
923 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
924 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
925 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
926 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
927 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
928 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
929 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
930 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
931 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
932 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
933 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
934 * testsuite/libgomp.c/target-7.c: Fix test.
935 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
936 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
937 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
938 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
939 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
940 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
941 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
942 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
943 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
944 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
945 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
946 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
947 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
948 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
949 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
950 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
951 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
952 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
953 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
954 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
955 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
956 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
957 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
958 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
959 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
960 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
961 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
962 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
963 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
964 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
965 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
967 2014-11-13 Jakub Jelinek <jakub@redhat.com>
968 Ilya Verbin <ilya.verbin@intel.com>
969 Thomas Schwinge <thomas@codesourcery.com>
970 Andrey Turetskiy <andrey.turetskiy@intel.com>
972 * libgomp.map (GOMP_4.0.1): New symbol version.
973 Add GOMP_offload_register.
974 * libgomp_target.h: New file.
975 * splay-tree.h: New file.
976 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
977 (gomp_target_init): New forward declaration.
978 (gomp_is_initialized): New static variable.
979 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
980 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
982 (offload_images, num_offload_images, devices, num_devices): New static
984 (splay_compare): New static function.
985 (struct gomp_device_descr): New structure.
986 (gomp_get_num_devices): Call gomp_target_init.
987 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
988 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
989 (GOMP_offload_register): New function.
990 (GOMP_target): Arrange for host callback to be performed in a separate
991 initial thread and contention group, inheriting ICVs from
992 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
993 Add device initialization and lookup for target function in splay tree.
994 (GOMP_target_data): Add device initialization and call gomp_map_vars.
995 (GOMP_target_end_data): Call gomp_unmap_vars.
996 (GOMP_target_update): Add device initialization and call gomp_update.
997 (gomp_load_plugin_for_device, gomp_register_images_for_device)
998 (gomp_target_init): New static functions.
1000 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
1001 Thomas Schwinge <thomas@codesourcery.com>
1002 Ilya Verbin <ilya.verbin@intel.com>
1003 Andrey Turetskiy <andrey.turetskiy@intel.com>
1005 * config.h.in: Regenerate.
1006 * configure: Regenerate.
1007 * configure.ac: Check for libdl, required for plugin support.
1008 (PLUGIN_SUPPORT): Define if plugins are supported.
1009 (enable_offload_targets): Support Intel MIC targets.
1010 (OFFLOAD_TARGETS): List of target names suitable for offloading.
1012 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1015 * configure: Regenerate.
1017 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1019 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1021 2014-10-06 Marek Polacek <polacek@redhat.com>
1023 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1024 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1025 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1026 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1028 2014-10-06 Marek Polacek <polacek@redhat.com>
1030 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1031 * testsuite/libgomp.c/nqueens-1.c: Likewise.
1032 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1033 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1034 * testsuite/libgomp.c/pr36802-2.c: Likewise.
1035 * testsuite/libgomp.c/pr36802-3.c: Likewise.
1036 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1037 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1038 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1039 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1040 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1041 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1042 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1043 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1044 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1045 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1046 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1047 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1050 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1053 * testsuite/libgomp.c/pr61200.c: New test.
1055 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1058 * testsuite/libgomp.c++/pr63248.C: New test.
1060 2014-08-04 Jakub Jelinek <jakub@redhat.com>
1062 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1063 is not zero, but taskgroup->children is NULL and there are
1064 any task->children, schedule those instead of waiting.
1065 * testsuite/libgomp.c/depend-6.c: New test.
1066 * testsuite/libgomp.c/depend-7.c: New test.
1067 * testsuite/libgomp.c/depend-8.c: New test.
1068 * testsuite/libgomp.c/depend-9.c: New test.
1069 * testsuite/libgomp.c/depend-10.c: New test.
1071 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1073 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1074 (struct gomp_taskwait): New type.
1075 (struct gomp_task): Add taskwait and parent_depends_on, remove
1076 in_taskwait and taskwait_sem fields.
1077 (gomp_finish_task): Don't destroy taskwait_sem.
1078 * task.c (gomp_init_task): Don't init in_taskwait, instead init
1079 taskwait and parent_depends_on.
1080 (GOMP_task): For if (0) tasks with depend clause that depend on
1081 earlier tasks don't defer them, instead call
1082 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1083 Initialize redundant_out field, for redundant out entries just
1084 move them at the end of linked list instead of removing them
1085 completely, and set redundant_out flag instead of redundant.
1086 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1088 (gomp_task_run_post_handle_dependers): If parent is in
1089 gomp_task_maybe_wait_for_dependencies and newly runnable task
1090 is not parent_depends_on, queue it in parent->children linked
1091 list after all runnable tasks with parent_depends_on set.
1092 Adjust for addition of taskwait indirection.
1093 (gomp_task_run_post_remove_parent): If parent is in
1094 gomp_task_maybe_wait_for_dependencies and task to be removed
1095 is parent_depends_on, decrement n_depend and if needed awake
1096 parent. Adjust for addition of taskwait indirection.
1097 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1098 (gomp_task_maybe_wait_for_dependencies): New function.
1099 * testsuite/libgomp.c/depend-5.c: New test.
1101 2014-07-13 Tobias Burnus <burnus@net-b.de>
1103 * testsuite/libgomp.fortran/pr34020.f90: Make compile
1104 with TS 18508/Fortran 2015.
1106 2014-07-06 Marek Polacek <polacek@redhat.com>
1109 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1111 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1113 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1114 matches regex $lang_source_re, add $lang_include_flags to options.
1115 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1116 * testsuite/libgomp.c++/c++.exp: Likewise.
1117 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1118 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1120 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1122 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1124 * testsuite/libgomp.fortran/fortran.exp: Explain
1125 gfortran-dg-runtest usage.
1127 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1129 * testsuite/libgomp.fortran/simd5.f90: New test.
1130 * testsuite/libgomp.fortran/simd6.f90: New test.
1131 * testsuite/libgomp.fortran/simd7.f90: New test.
1133 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1135 * testsuite/libgomp.c/for-2.c: Define SC to static for
1136 #pragma omp for simd testing.
1137 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1138 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1140 * testsuite/libgomp.c/simd-14.c: New test.
1141 * testsuite/libgomp.c/simd-15.c: New test.
1142 * testsuite/libgomp.c/simd-16.c: New test.
1143 * testsuite/libgomp.c/simd-17.c: New test.
1144 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1145 #pragma omp for simd testing.
1146 * testsuite/libgomp.c++/simd10.C: New test.
1147 * testsuite/libgomp.c++/simd11.C: New test.
1148 * testsuite/libgomp.c++/simd12.C: New test.
1149 * testsuite/libgomp.c++/simd13.C: New test.
1151 * testsuite/libgomp.fortran/aligned1.f03: New test.
1152 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1153 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1154 tasks with !$omp parallel !$omp single.
1155 * testsuite/libgomp.fortran/target8.f90: New test.
1156 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1157 not to use trim in the combiner, instead call elemental function.
1158 (fn): New elemental function.
1159 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1161 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1163 * testsuite/libgomp.fortran/udr12.f90: New test.
1164 * testsuite/libgomp.fortran/udr13.f90: New test.
1165 * testsuite/libgomp.fortran/udr14.f90: New test.
1166 * testsuite/libgomp.fortran/udr15.f90: New test.
1168 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1170 * omp_lib.f90.in (openmp_version): Set to 201307.
1171 * omp_lib.h.in (openmp_version): Likewise.
1172 * testsuite/libgomp.c/target-8.c: New test.
1173 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1174 and inbranch clauses.
1175 * testsuite/libgomp.fortran/depend-3.f90: New test.
1176 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1178 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1179 * testsuite/libgomp.fortran/target1.f90: New test.
1180 * testsuite/libgomp.fortran/target2.f90: New test.
1181 * testsuite/libgomp.fortran/target3.f90: New test.
1182 * testsuite/libgomp.fortran/target4.f90: New test.
1183 * testsuite/libgomp.fortran/target5.f90: New test.
1184 * testsuite/libgomp.fortran/target6.f90: New test.
1185 * testsuite/libgomp.fortran/target7.f90: New test.
1187 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1190 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1191 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1192 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1193 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1194 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1195 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1196 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1197 * testsuite/libgomp.fortran/associate1.f90: New test.
1198 * testsuite/libgomp.fortran/associate2.f90: New test.
1199 * testsuite/libgomp.fortran/procptr1.f90: New test.
1201 2014-06-06 Jakub Jelinek <jakub@redhat.com>
1203 * testsuite/libgomp.fortran/simd1.f90: New test.
1204 * testsuite/libgomp.fortran/udr1.f90: New test.
1205 * testsuite/libgomp.fortran/udr2.f90: New test.
1206 * testsuite/libgomp.fortran/udr3.f90: New test.
1207 * testsuite/libgomp.fortran/udr4.f90: New test.
1208 * testsuite/libgomp.fortran/udr5.f90: New test.
1209 * testsuite/libgomp.fortran/udr6.f90: New test.
1210 * testsuite/libgomp.fortran/udr7.f90: New test.
1211 * testsuite/libgomp.fortran/udr8.f90: New test.
1212 * testsuite/libgomp.fortran/udr9.f90: New test.
1213 * testsuite/libgomp.fortran/udr10.f90: New test.
1214 * testsuite/libgomp.fortran/udr11.f90: New test.
1216 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
1218 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1219 vect_simd_clones effective target.
1220 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1222 2014-05-21 Jakub Jelinek <jakub@redhat.com>
1225 * testsuite/libgomp.c++/simd-9.C: New test.
1227 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
1229 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1230 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1231 texts according to their @menu entry positions.
1233 2014-05-11 Jakub Jelinek <jakub@redhat.com>
1235 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1236 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1237 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1238 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1239 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1240 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1241 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1242 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1243 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1244 * testsuite/libgomp.fortran/depend-1.f90: New test.
1245 * testsuite/libgomp.fortran/depend-2.f90: New test.
1246 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1247 * testsuite/libgomp.fortran/simd1.f90: New test.
1248 * testsuite/libgomp.fortran/simd2.f90: New test.
1249 * testsuite/libgomp.fortran/simd3.f90: New test.
1250 * testsuite/libgomp.fortran/simd4.f90: New test.
1251 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1253 2014-05-02 Jakub Jelinek <jakub@redhat.com>
1255 * testsuite/libgomp.c/simd-10.c: New test.
1256 * testsuite/libgomp.c/simd-11.c: New test.
1257 * testsuite/libgomp.c/simd-12.c: New test.
1258 * testsuite/libgomp.c/simd-13.c: New test.
1260 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1262 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1263 atomic type clauses in any order and optional comma in between.
1264 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1265 * testsuite/libgomp.c/atomic-17.c: Likewise.
1267 * testsuite/libgomp.c/simd-7.c: New test.
1268 * testsuite/libgomp.c/simd-8.c: New test.
1269 * testsuite/libgomp.c/simd-9.c: New test.
1270 * testsuite/libgomp.c/loop-16.c: New test.
1272 2014-04-02 Richard Henderson <rth@redhat.com>
1274 * config/linux/futex.h (futex_wait): Get error value from errno.
1275 (futex_wake): Likewise.
1277 2014-03-25 Jakub Jelinek <jakub@redhat.com>
1280 * testsuite/libgomp.c++/udr-11.C: New test.
1281 * testsuite/libgomp.c++/udr-12.C: New test.
1282 * testsuite/libgomp.c++/udr-13.C: New test.
1283 * testsuite/libgomp.c++/udr-14.C: New test.
1284 * testsuite/libgomp.c++/udr-15.C: New test.
1285 * testsuite/libgomp.c++/udr-16.C: New test.
1286 * testsuite/libgomp.c++/udr-17.C: New test.
1287 * testsuite/libgomp.c++/udr-18.C: New test.
1288 * testsuite/libgomp.c++/udr-19.C: New test.
1290 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1292 Update copyright years
1294 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1296 * hashtab.h: Use the standard form for the copyright notice.
1298 2014-01-02 Tobias Burnus <burnus@net-b.de>
1300 * libgomp.texi: Bump @copying's copyright year.
1302 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
1304 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1305 alloca () with __builtin_alloca ().
1306 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1307 * testsuite/libgomp.c/lock-3.c: Likewise.
1308 * testsuite/libgomp.c/pr48591.c: Likewise.
1310 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1313 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1316 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1319 * testsuite/libgomp.c/pr58756.c: New test.
1321 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1324 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1327 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1329 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1331 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1332 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1333 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1334 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1337 * libgomp_g.h: Include <stddef.h> for size_t.
1339 * libgomp.spec.in: Update comment about libgomp's dependencies.
1340 * configure.ac: Likewise.
1341 * configure: Regenerate.
1343 2013-10-16 Tobias Burnus <burnus@net-b.de>
1345 * libgomp.texi: (Runtime Library Routines): Update references for
1346 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1347 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1348 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1349 (Environment Variables): Update references for OpenMP 4.0. Add
1350 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1351 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1354 2013-10-14 Jakub Jelinek <jakub@redhat.com>
1356 * env.c (parse_bind_var): Initialize value to avoid
1357 (false positive) warning.
1359 2013-10-12 Jakub Jelinek <jakub@redhat.com>
1362 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1364 (gomp_init_num_threads): Move i variable declaration into
1365 #ifdef CPU_ALLOC_SIZE block.
1366 * config/linux/affinity.c (gomp_affinity_init_level): Test
1367 gomp_places_list_len == 0 rather than gomp_places_list == 0
1368 when checking for topology reading error.
1369 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1370 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1371 gomp_places_list, only parse env var and always return false.
1372 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1373 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1374 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1375 and either of these variables were parsed correctly into a places
1378 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1379 Jakub Jelinek <jakub@redhat.com>
1381 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1382 of 5 loopfn matches.
1383 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1384 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1385 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1386 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1387 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1388 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1389 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1390 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1392 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1394 * Makefile.am (omp_lib.mod): Streamline rule.
1395 * Makefile.in: Regenerate.
1397 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1400 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1401 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1402 * testsuite/libgomp.fortran/lib2.f: Likewise.
1403 * testsuite/libgomp.fortran/lib3.f: Likewise.
1405 * configure.ac: Typo fix.
1406 * configure: Regenerate.
1408 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1409 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1411 * omp.h.in: Don't touch the user's namespace.
1413 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1414 Tobias Burnus <burnus@net-b.de>
1415 Richard Henderson <rth@redhat.com>
1417 * target.c: New file.
1418 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1419 * Makefile.in: Regenerated.
1420 * libgomp_g.h (GOMP_task): Add depend argument.
1421 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1422 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1423 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1424 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1425 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1426 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1427 GOMP_taskgroup_start, GOMP_taskgroup_end,
1428 GOMP_parallel_sections): New prototypes.
1429 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1430 (omp_is_initial_device_): New function.
1431 (ULP, STR1, STR2, ialias_redirect): Removed.
1432 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1433 omp_set_default_device_8_, omp_get_default_device_,
1434 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1436 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1437 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1438 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1440 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1441 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1442 omp_set_default_device, omp_set_default_device_,
1443 omp_set_default_device_8_, omp_get_default_device,
1444 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1445 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1446 omp_get_team_num_): Export @@OMP_4.0.
1447 * team.c (struct gomp_thread_start_data): Add place field.
1448 (gomp_thread_start): Clear thr->thread_pool and
1449 thr->task before returning. Use gomp_team_barrier_wait_final
1450 instead of gomp_team_barrier_wait. Initialize thr->place.
1451 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1452 team_cancelled and task_queued_count fields.
1453 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1454 before calling pthread_exit.
1455 (gomp_free_thread): No longer static. Use
1456 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1457 (gomp_team_start): Add flags argument. Set
1458 thr->thread_pool->threads_busy to nthreads immediately after creating
1459 new pool. Use gomp_managed_threads_lock instead of
1460 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1461 (gomp_team_end): Use gomp_managed_threads_lock instead of
1462 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1463 of gomp_team_barrier_wait. If team->team_cancelled, call
1464 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1465 rather than thr->ts.work_share.
1466 (initialize_team): Don't call gomp_sem_init here.
1467 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1469 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1470 * env.c (gomp_global_icv): Add default_device_var, target_data and
1471 bind_var initializers.
1472 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1473 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1474 gomp_places_list_len): New variables.
1475 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1476 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1478 (gomp_cancel_var): New global variable.
1479 (parse_int): New function.
1480 (handle_omp_display_env): New function.
1481 (initialize_env): Use it. Initialize default_device_var.
1482 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1483 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1484 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1485 been successfully parsed (and call gomp_init_affinity in that case).
1486 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1487 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1488 omp_get_team_num, omp_is_initial_device): New functions.
1489 * libgomp.h: Include stdlib.h.
1490 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1492 (struct target_mem_desc): Forward declare.
1493 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1494 and thread_limit_var fields.
1495 (gomp_get_num_devices): New prototype.
1496 (gomp_cancel_var): New extern decl.
1497 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1498 team_cancelled and task_queued_count fields. Add comments about
1499 task_{,queued_,running_}count.
1500 (gomp_cancel_kind): New enum.
1501 (gomp_work_share_end_cancel): New prototype.
1502 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1503 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1505 (struct gomp_taskgroup): New type.
1506 (struct gomp_task_depend_entry,
1507 struct gomp_dependers_vec): New types.
1508 (gomp_finish_task): Free depend_hash if non-NULL.
1509 (struct gomp_team_state): Add place_partition_off
1510 and place_partition_len fields.
1511 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1512 gomp_places_list_len): New extern decls.
1513 (struct gomp_thread): Add place field.
1514 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1515 (gomp_init_thread_affinity): Add place argument.
1516 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1517 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1518 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1519 gomp_affinity_init_level, gomp_affinity_print_place): New
1521 (gomp_team_start): Add flags argument.
1522 (gomp_thread_limit_var, gomp_remaining_threads_count,
1523 gomp_remaining_threads_lock): Remove.
1524 (gomp_managed_threads_lock): New variable.
1525 (struct gomp_thread_pool): Add threads_busy field.
1526 (gomp_free_thread): New prototype.
1527 * task.c: Include hashtab.h.
1528 (hash_entry_type): New typedef.
1529 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1530 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1531 copy_ctors_done and taskgroup fields.
1532 (GOMP_task): Add depend argument, handle depend clauses. If
1533 gomp_team_barrier_cancelled or if it's taskgroup has been
1534 cancelled, don't queue or start new tasks. Set copy_ctors_done
1535 field if needed. Initialize taskgroup field. If copy_ctors_done
1536 and already cancelled, don't discard the task. If taskgroup is
1537 non-NULL, enqueue the task into taskgroup queue. Increment
1538 num_children field in taskgroup. Increment task_queued_count.
1539 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1540 gomp_task_run_post_remove_taskgroup): New inline functions.
1541 (gomp_task_run_post_handle_depend_hash,
1542 gomp_task_run_post_handle_dependers,
1543 gomp_task_run_post_handle_depend): New functions.
1544 (GOMP_taskwait): Use them. If more than one new tasks
1545 have been queued, wake other threads if needed.
1546 (gomp_barrier_handle_tasks): Likewise. If
1547 gomp_team_barrier_cancelled, don't start any new tasks, just free
1549 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1551 (omp_proc_bind_kind, omp_proc_bind_false,
1552 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1553 omp_proc_bind_spread): New params.
1554 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1555 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1556 omp_get_team_num, omp_is_initial_device): New interfaces.
1557 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1558 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1559 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1560 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1561 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1562 useless use omp_lib_kinds.
1563 * omp.h.in (omp_proc_bind_t): New typedef.
1564 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1565 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1566 omp_get_team_num, omp_is_initial_device): New prototypes.
1567 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1568 through to gomp_team_start.
1569 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1570 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1571 Adjust gomp_parallel_loop_start callers.
1572 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1573 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1574 GOMP_loop_end_cancel): New functions.
1575 (GOMP_parallel_end): Add ialias_redirect.
1576 * hashtab.h: New file.
1577 * libgomp.texi (Environment Variables): Minor cleanup,
1578 update section refs to OpenMP 4.0rc2.
1579 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1580 environment variables.
1581 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1582 team->work_shares_to_free to thr->ts.work_share before calling
1584 (gomp_work_share_end_cancel): New function.
1585 * config/linux/proc.c: Include errno.h.
1586 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1587 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1588 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1589 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1590 gomp_cpuset_size is sizeof (cpu_set_t).
1591 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1592 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1593 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1594 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1595 contain any logical CPUs.
1596 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1597 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1598 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1599 pthread_getaffinity_np. Check gomp_places_list instead of
1600 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1601 * config/linux/bar.c (gomp_barrier_wait_end,
1602 gomp_barrier_wait_last): Use BAR_* defines.
1603 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1604 from state where needed. Set work_share_cancelled to 0 on last
1606 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1607 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1609 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1610 Add cpusetsize argument.
1611 (gomp_cpuset_size, gomp_cpusetp): Declare.
1612 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1613 (affinity_counter): Remove.
1614 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1615 if CPU_ALLOC_SIZE isn't defined.
1616 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1617 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1618 bind current thread to the first place.
1619 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1620 pthread_setaffinity_np to gomp_places_list[place].
1621 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1622 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1623 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1624 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1625 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1626 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1627 (gomp_barrier_t): Add awaited_final field.
1628 (gomp_barrier_init): Initialize awaited_final field.
1629 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1630 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1632 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1634 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1635 gomp_team_barrier_cancelled): New inline functions.
1636 (gomp_barrier_last_thread,
1637 gomp_team_barrier_set_task_pending,
1638 gomp_team_barrier_clear_task_pending,
1639 gomp_team_barrier_set_waiting_for_tasks,
1640 gomp_team_barrier_waiting_for_tasks,
1641 gomp_team_barrier_done): Use BAR_* defines.
1642 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1643 (gomp_barrier_wait_end): Use BAR_* defines.
1644 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1645 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1647 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1648 gomp_team_barrier_cancel): New functions.
1649 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1651 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1652 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1653 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1654 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1655 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1656 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1657 (gomp_barrier_t): Add cancellable field.
1658 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1659 gomp_team_barrier_cancel): New prototypes.
1660 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1661 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1662 gomp_team_barrier_cancelled): New inline functions.
1663 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1664 gomp_team_barrier_set_task_pending,
1665 gomp_team_barrier_clear_task_pending,
1666 gomp_team_barrier_set_waiting_for_tasks,
1667 gomp_team_barrier_waiting_for_tasks,
1668 gomp_team_barrier_done): Use BAR_* defines.
1669 * barrier.c (GOMP_barrier_cancel): New function.
1670 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1671 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1672 omp_proc_bind_spread): New params.
1673 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1674 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1675 omp_get_team_num, omp_is_initial_device): New externals.
1676 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1678 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1679 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1680 infinity. If not nested, just return minimum of max_num_threads
1681 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1682 to the returned value. Otherwise, don't update atomically
1683 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1684 (GOMP_parallel_end): Adjust for thread_limit now being in
1685 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1686 infinity. Adjust threads_busy in the pool rather than
1687 gomp_remaining_threads_count. Remember team->nthreads and call
1688 gomp_team_end before adjusting threads_busy, if not nested
1689 afterwards, just set it to 1 non-atomically. Add ialias.
1690 (GOMP_parallel_start): Adjust gomp_team_start caller.
1691 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1692 * testsuite/libgomp.c/affinity-1.c: New test.
1693 * testsuite/libgomp.c/atomic-15.c: New test.
1694 * testsuite/libgomp.c/atomic-16.c: New test.
1695 * testsuite/libgomp.c/atomic-17.c: New test.
1696 * testsuite/libgomp.c/cancel-for-1.c: New test.
1697 * testsuite/libgomp.c/cancel-for-2.c: New test.
1698 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1699 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1700 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1701 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1702 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1703 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1704 * testsuite/libgomp.c/depend-1.c: New test.
1705 * testsuite/libgomp.c/depend-2.c: New test.
1706 * testsuite/libgomp.c/depend-3.c: New test.
1707 * testsuite/libgomp.c/depend-4.c: New test.
1708 * testsuite/libgomp.c/for-1.c: New test.
1709 * testsuite/libgomp.c/for-1.h: New file.
1710 * testsuite/libgomp.c/for-2.c: New test.
1711 * testsuite/libgomp.c/for-2.h: New file.
1712 * testsuite/libgomp.c/for-3.c: New test.
1713 * testsuite/libgomp.c/pr58392.c: New test.
1714 * testsuite/libgomp.c/simd-1.c: New test.
1715 * testsuite/libgomp.c/simd-2.c: New test.
1716 * testsuite/libgomp.c/simd-3.c: New test.
1717 * testsuite/libgomp.c/simd-4.c: New test.
1718 * testsuite/libgomp.c/simd-5.c: New test.
1719 * testsuite/libgomp.c/simd-6.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-3.c: New test.
1723 * testsuite/libgomp.c/target-4.c: New test.
1724 * testsuite/libgomp.c/target-5.c: New test.
1725 * testsuite/libgomp.c/target-6.c: New test.
1726 * testsuite/libgomp.c/target-7.c: New test.
1727 * testsuite/libgomp.c/taskgroup-1.c: New test.
1728 * testsuite/libgomp.c/thread-limit-1.c: New test.
1729 * testsuite/libgomp.c/thread-limit-2.c: New test.
1730 * testsuite/libgomp.c/thread-limit-3.c: New test.
1731 * testsuite/libgomp.c/udr-1.c: New test.
1732 * testsuite/libgomp.c/udr-2.c: New test.
1733 * testsuite/libgomp.c/udr-3.c: New test.
1734 * testsuite/libgomp.c++/affinity-1.C: New test.
1735 * testsuite/libgomp.c++/atomic-10.C: New test.
1736 * testsuite/libgomp.c++/atomic-11.C: New test.
1737 * testsuite/libgomp.c++/atomic-12.C: New test.
1738 * testsuite/libgomp.c++/atomic-13.C: New test.
1739 * testsuite/libgomp.c++/atomic-14.C: New test.
1740 * testsuite/libgomp.c++/atomic-15.C: New test.
1741 * testsuite/libgomp.c++/cancel-for-1.C: New test.
1742 * testsuite/libgomp.c++/cancel-for-2.C: New test.
1743 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1744 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1745 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1746 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1747 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1748 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1749 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1750 * testsuite/libgomp.c++/cancel-test.h: New file.
1751 * testsuite/libgomp.c++/for-9.C: New test.
1752 * testsuite/libgomp.c++/for-10.C: New test.
1753 * testsuite/libgomp.c++/for-11.C: New test.
1754 * testsuite/libgomp.c++/simd-1.C: New test.
1755 * testsuite/libgomp.c++/simd-2.C: New test.
1756 * testsuite/libgomp.c++/simd-3.C: New test.
1757 * testsuite/libgomp.c++/simd-4.C: New test.
1758 * testsuite/libgomp.c++/simd-5.C: New test.
1759 * testsuite/libgomp.c++/simd-6.C: New test.
1760 * testsuite/libgomp.c++/simd-7.C: New test.
1761 * testsuite/libgomp.c++/simd-8.C: New test.
1762 * testsuite/libgomp.c++/target-1.C: New test.
1763 * testsuite/libgomp.c++/target-2.C: New test.
1764 * testsuite/libgomp.c++/target-2-aux.cc: New file.
1765 * testsuite/libgomp.c++/target-3.C: New test.
1766 * testsuite/libgomp.c++/taskgroup-1.C: New test.
1767 * testsuite/libgomp.c++/udr-1.C: New test.
1768 * testsuite/libgomp.c++/udr-2.C: New test.
1769 * testsuite/libgomp.c++/udr-3.C: New test.
1770 * testsuite/libgomp.c++/udr-4.C: New test.
1771 * testsuite/libgomp.c++/udr-5.C: New test.
1772 * testsuite/libgomp.c++/udr-6.C: New test.
1773 * testsuite/libgomp.c++/udr-7.C: New test.
1774 * testsuite/libgomp.c++/udr-8.C: New test.
1775 * testsuite/libgomp.c++/udr-9.C: New test.
1777 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1780 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1783 2013-09-20 Alan Modra <amodra@gmail.com>
1785 * configure: Regenerate.
1787 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1789 * testsuite/libgomp.c/sections-2.c: New test.
1791 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1793 * testsuite/libgomp.fortran/strassen.f90:
1794 Add dg-skip-if aarch64_tiny.
1796 2013-06-20 Iain Sandoe <iain@codesourcery.com>
1797 Cesar Philippidis <cesar@codesourcery.com>
1799 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1800 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1801 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1802 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1803 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1804 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1805 Use dg-runtest rather than gfortran-dg-runtest.
1807 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
1809 * testsuite/libgomp.c/icv-2.c: Extend current handling of
1810 Linux-based x86 systems to cover all GNU systems.
1811 * testsuite/libgomp.c/lock-3.c: Likewise.
1812 * testsuite/libgomp.c/pr48591.c: Likewise.
1814 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
1816 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1817 GNU/Hurd, as done for Linux-based systems.
1819 * config/posix/ptrlock.h: Fix comment.
1821 2013-05-27 Tobias Burnus <burnus@net-b.de>
1824 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1825 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1826 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1827 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1828 omp_destroy_nest_lock): Correct arguments to match the one in
1830 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1831 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1832 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1833 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1835 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1837 * testsuite/libgomp.c/loop-13.c: New test.
1838 * testsuite/libgomp.c/loop-14.c: New test.
1839 * testsuite/libgomp.c/loop-15.c: New test.
1840 * testsuite/libgomp.c++/loop-13.C: New test.
1841 * testsuite/libgomp.c++/loop-14.C: New test.
1842 * testsuite/libgomp.c++/loop-15.C: New test.
1844 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1847 * testsuite/libgomp.c++/pr56217.C: New test.
1849 2013-02-01 Alan Modra <amodra@gmail.com>
1851 * task.c (GOMP_task, GOMP_taskwait): Comment.
1853 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
1854 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
1857 * config/linux/wait.h (do_spin): Use atomic load for addr.
1858 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1859 for intptr and ptrlock.
1860 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1863 2013-01-22 Alan Modra <amodra@gmail.com>
1867 * task.c (GOMP_task): Revert 2011-12-09 change.
1868 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
1869 barrier to read task->children..
1870 (gomp_barrier_handle_tasks): ..and matching atomic store with
1871 release barrier here when setting parent->children to NULL.
1873 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1874 Tobias Burnus <burnus@net-b.de>
1877 * testsuite/libgomp.fortran/fortran.exp: Use
1878 -fintrinsic-modules-path= instead of
1879 -fintrinsic-modules-path.
1881 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
1883 Update copyright years.
1885 2012-12-19 Tobias Burnus <burnus@net-b.de>
1887 * testsuite/libgomp.fortran/fortran.exp: Set
1888 -fintrinsic-modules-path.
1890 2012-12-19 Tobias Burnus <burnus@net-b.de>
1892 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1893 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1895 2012-11-21 Jakub Jelinek <jakub@redhat.com>
1898 * team.c (gomp_free_thread): Decrease gomp_managed_threads
1899 if pool had any threads_used.
1901 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
1903 * testsuite/libgomp.c++/pr24455.C: Use
1904 -Wl,-undefined,dynamic_lookup on darwin.
1906 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
1908 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1910 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
1912 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1914 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1915 Jim MacArthur <jim.macarthur@arm.com>
1916 Marcus Shawcroft <marcus.shawcroft@arm.com>
1917 Nigel Stephens <nigel.stephens@arm.com>
1918 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1919 Richard Earnshaw <rearnsha@arm.com>
1920 Sofiane Naci <sofiane.naci@arm.com>
1921 Stephen Thomas <stephen.thomas@arm.com>
1922 Tejas Belagod <tejas.belagod@arm.com>
1923 Yufeng Zhang <yufeng.zhang@arm.com>
1925 * configure.tgt: Add AArch64.
1927 2012-10-04 Jason Merrill <jason@redhat.com>
1929 * testsuite/libgomp.c++/tls-init1.C: New.
1931 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
1933 * configure: Regenerated.
1935 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
1937 * config/linux/mips/futex.h (sys_futex0): Change to static
1938 function with noinline, nomips16 attributes under MIPS16. Adjust
1939 asm statement to place 'li v0,SYS_futex' immediately before
1942 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
1944 * libgomp.texi (Library Index): Renamed from "Index" to prevent
1945 conflict with index.html on case-insensitive file systems.
1947 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1949 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1950 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1952 2012-07-02 Richard Guenther <rguenther@suse.de>
1953 Michael Matz <matz@suse.de>
1954 Tobias Grosser <tobias@grosser.es>
1955 Sebastian Pop <sebpop@gmail.com>
1957 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1958 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1959 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1960 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1962 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
1964 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1966 2012-06-22 Richard Guenther <rguenther@suse.de>
1968 Merge from graphite branch
1969 2012-01-13 Tobias Grosser <tobias@grosser.es>
1971 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1972 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1974 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1977 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1978 use GOMP_barrier () call instead.
1979 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1980 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1981 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1982 call GOMP_barrier instead.
1983 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1985 2012-06-06 Jakub Jelinek <jakub@redhat.com>
1988 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1989 argument to memset call.
1991 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
1993 * configure: Regenerated.
1995 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1997 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1999 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2002 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2004 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2007 * testsuite/libgomp.c/pr52547.c: New test.
2009 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2011 * testsuite/lib/libgomp.exp: load fortran-modules.exp
2013 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2015 * configure.tgt (mips-sgi-irix6*): Remove.
2017 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2019 * configure.tgt (alpha*-dec-osf*): Remove.
2021 * config/osf/sem.h: Remove.
2022 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2024 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
2026 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2028 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2031 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2032 Remove ENABLE_SYMVERS_SOL2.
2033 * configure: Regenerate.
2034 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2035 (PREPROCESS): New variable.
2036 (libgomp.ver): New target.
2037 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2038 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2039 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2041 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2042 * Makefile.in: Regenerate.
2044 2012-02-14 Walter Lee <walt@tilera.com>
2046 * configure.tgt: Handle tilegx and tilepro.
2047 * config/linux/tile/futex.h: New file.
2049 2012-02-08 Richard Guenther <rguenther@suse.de>
2051 PR tree-optimization/46886
2052 * testsuite/libgomp.c/pr46886.c: New testcase.
2054 2012-01-25 Matthias Klose <doko@ubuntu.com>
2056 * config/linux/arm: Remove empty directory.
2057 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2059 2011-12-09 Alan Modra <amodra@gmail.com>
2062 * task.c (GOMP_taskwait): Don't access task->children outside of
2063 task_lock mutex region.
2064 (GOMP_task): Likewise.
2066 2011-12-06 Jakub Jelinek <jakub@redhat.com>
2069 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2071 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2072 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2073 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2074 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2075 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2077 2011-12-02 Alan Modra <amodra@gmail.com>
2079 * config/linux/affinity.c: Use atomic rather than sync builtin.
2080 * config/linux/lock.c: Likewise.
2081 * config/linux/ptrlock.h: Likewise.
2082 * config/linux/ptrlock.c: Likewise.
2083 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2084 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2085 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2086 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2087 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2088 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2089 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2090 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2091 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2092 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2094 2011-11-30 Alan Modra <amodra@gmail.com>
2097 * config/linux/bar.h: Use atomic rather than sync builtins.
2098 * config/linux/bar.c: Likewise. Add missing acquire
2099 synchronisation on generation field.
2100 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2103 2011-11-30 Alan Modra <amodra@gmail.com>
2105 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2106 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2107 * config/linux/mutex.h: Use atomic rather than sync builtins.
2108 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2109 * config/linux/omp-lock.h: Comment fix.
2110 * config/linux/arm/mutex.h: Delete.
2111 * config/linux/powerpc/mutex.h: Delete.
2112 * config/linux/ia64/mutex.h: Delete.
2113 * config/linux/mips/mutex.h: Delete.
2115 2011-11-30 Alan Modra <amodra@gmail.com>
2118 * config/linux/sem.h: Rewrite.
2119 * config/linux/sem.c: Rewrite.
2121 2011-11-28 Richard Henderson <rth@redhat.com>
2123 * libgomp.h (enum memmodel): New.
2125 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2127 * configure: Regenerate.
2129 2011-10-10 Matthias Klose <doko@ubuntu.com>
2131 * config/posix95: Remove empty directory.
2133 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2135 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2137 2011-08-19 Jakub Jelinek <jakub@redhat.com>
2140 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2141 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2143 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2145 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2147 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2150 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2152 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
2154 * config/linux/proc.h: New.
2155 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2156 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2157 (gomp_init_num_threads): Update call to cpuset_popcount.
2158 (get_num_procs): Ditto.
2159 * config/linux/affinity.c (gomp_init_affinity): Call
2160 gomp_cpuset_popcount.
2162 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2166 * omp.h.in (omp_in_final): New prototype.
2167 * omp_lib.f90.in (omp_in_final): New interface.
2168 (omp_integer_kind, omp_logical_kind): Remove
2169 and replace all its uses in the module with 4.
2170 (openmp_version): Change to 201107.
2171 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2172 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2173 kind for the parameters.
2174 (omp_in_final): New external.
2175 (openmp_version): Change to 201107.
2176 * task.c (omp_in_final): New function.
2177 (gomp_init_task): Initialize final_task.
2178 (GOMP_task): Remove unused attribute from flags. Handle final
2180 (GOMP_taskyield): New function.
2181 (omp_in_final): Return true if if (false) or final (true) task
2182 or descendant of final (true).
2183 * fortran.c (omp_in_final_): New function.
2184 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2185 (GOMP_3.0): Export GOMP_taskyield.
2186 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2188 (parse_unsigned_long_list): New function.
2189 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2190 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2191 even if parse_affinity returned false.
2192 * config/linux/affinity.c (gomp_init_affinity): Handle
2193 gomp_cpu_affinity_len == 0.
2194 * libgomp_g.h (GOMP_taskyield): New prototype.
2195 * libgomp.h (struct gomp_task): Add final_task field.
2196 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2197 * team.c (gomp_team_start): Override new task's nthreads_var icv
2198 if list form OMP_NUM_THREADS has been used and it has value for
2199 the new nesting level.
2201 * testsuite/libgomp.c/atomic-11.c: New test.
2202 * testsuite/libgomp.c/atomic-12.c: New test.
2203 * testsuite/libgomp.c/atomic-13.c: New test.
2204 * testsuite/libgomp.c/atomic-14.c: New test.
2205 * testsuite/libgomp.c/reduction-6.c: New test.
2206 * testsuite/libgomp.c/task-5.c: New test.
2207 * testsuite/libgomp.c++/atomic-2.C: New test.
2208 * testsuite/libgomp.c++/atomic-3.C: New test.
2209 * testsuite/libgomp.c++/atomic-4.C: New test.
2210 * testsuite/libgomp.c++/atomic-5.C: New test.
2211 * testsuite/libgomp.c++/atomic-6.C: New test.
2212 * testsuite/libgomp.c++/atomic-7.C: New test.
2213 * testsuite/libgomp.c++/atomic-8.C: New test.
2214 * testsuite/libgomp.c++/atomic-9.C: New test.
2215 * testsuite/libgomp.c++/task-8.C: New test.
2216 * testsuite/libgomp.c++/reduction-4.C: New test.
2217 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2218 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2219 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2220 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2221 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2222 * testsuite/libgomp.fortran/pointer1.f90: New test.
2223 * testsuite/libgomp.fortran/pointer2.f90: New test.
2224 * testsuite/libgomp.fortran/task4.f90: New test.
2226 2011-08-02 Tobias Burnus <burnus@net-b.de>
2228 * libgomp.texi: Update OpenMP spec references to 3.1.
2229 (omp_in_final,OMP_PROC_BIND): New sections.
2230 (OMP_NUM_THREADS): Document that the value can be now a list.
2231 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2233 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2235 * config/linux/x86/futex.h: Check __x86_64__ instead of
2238 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2242 * testsuite/libgomp.c/pr49897-1.c: New test.
2243 * testsuite/libgomp.c/pr49897-2.c: New test.
2244 * testsuite/libgomp.c/pr49898-1.c: New test.
2245 * testsuite/libgomp.c/pr49898-2.c: New test.
2247 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2249 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2250 for ia32 instead of ilp32.
2252 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2253 * testsuite/libgomp.c/atomic-6.c: Likewise.
2255 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2257 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2258 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2260 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2263 * config/osf/sem.h: New file.
2264 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2266 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2269 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2272 2011-07-15 Jakub Jelinek <jakub@redhat.com>
2274 * config/linux/wait.h (do_spin): New inline, largely copied
2275 from do_wait, just don't do futex_wait here, instead return true if
2277 (do_wait): Implement using do_spin.
2278 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2280 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2281 __sync_bool_compare_and_swap, pass the oldval to
2282 gomp_mutex_lock_slow.
2283 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2284 If all mutex contenders are just spinning and not sleeping, don't
2285 change state to 2 unnecessarily. Optimize the loop when state has
2286 already become 2 to use just one atomic operation per loop instead
2288 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2290 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2291 __sync_bool_compare_and_swap, pass the oldval to
2292 gomp_mutex_lock_slow.
2294 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2297 * iter.c (gomp_iter_static_next): For chunk size 0
2298 only use n ceil/ nthreads size for the first
2299 n % nthreads threads in the team instead of
2300 all threads except for the last few ones which
2301 get less work or none at all.
2302 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2303 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2304 chunk argument, set run_sched_modifier to 0 for static
2305 resp. 1 for other kinds. If chunk argument is 0
2306 and not static, set value to 1.
2308 2011-05-19 Jakub Jelinek <jakub@redhat.com>
2311 * testsuite/libgomp.c++/pr49043.C: New test.
2314 * testsuite/libgomp.c++/pr48869.C: New test.
2316 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2319 * fortran.c: Include limits.h.
2321 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2323 (omp_set_num_threads_8_, omp_set_schedule_8_,
2324 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2325 omp_get_team_size_8_): Use TO_INT macro.
2326 * testsuite/libgomp.fortran/pr48894.f90: New test.
2328 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2331 * testsuite/libgomp.c/pr48591.c: New test.
2333 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2336 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2337 * configure: Regenerate.
2339 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2342 * testsuite/libgomp.fortran/task3.f90: New test.
2344 2011-02-24 Tobias Burnus <burnus@net-b.de>
2346 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2348 2011-02-23 Jakub Jelinek <jakub@redhat.com>
2351 * libgomp.texi (omp_get_wtime): Don't say time in the past
2354 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2357 * testsuite/libgomp.fortran/fortran.exp: Check for both
2358 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2359 but $blddir != "", still append ${blddir}/${lang_library_path}
2362 2011-02-16 Tobias Burnus <burnus@net-b.de>
2365 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2366 of libquadmath.a before adding its libpath to ldflags.
2368 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2371 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2372 to FUTEX_WAIT futex syscall.
2373 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2375 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2377 * configure: Regenerate.
2379 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2382 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2384 2011-01-16 Gerald Pfeifer
2386 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2388 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2391 * libgomp.fortran/allocatable6.f90: New test.
2393 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2395 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2396 * configure: Regenerate.
2398 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2402 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2403 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2404 * aclocal.m4: Regenerate.
2405 * configure: Regenerate.
2406 * Makefile.in: Regenerate.
2407 * testsuite/Makefile.in: Regenerate.
2409 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2412 * libgomp.fortran/pr46753.f90: New test.
2415 * env.c (initialize_env): Default to spin count 300000
2416 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2420 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2421 at the end if sync builtins aren't supported.
2423 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2425 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2427 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2429 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2431 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2433 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2435 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2436 Tobias Burnus <burnus@net-b.de>
2440 * configure: Regenerate.
2442 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2444 * config/linux/futex.h: New.
2445 * config/linux/arm/mutex.h: New.
2446 * configure.tgt (arm*-*-linux*): Add config path.
2448 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2450 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2452 2010-09-23 Tobias Burnus <burnus@net-b.de>
2454 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2455 Change Fortran datatype to LOGICAL.
2456 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2457 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2459 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2461 * configure: Regenerate.
2463 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2465 * libgomp.texi: Add function keyword to a couple of Fortran
2466 interfaces, use integer instead of int for Fortran.
2468 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2470 * libgomp.texi: Fix spelling and pasto problems throughout.
2471 Adjust prototypes to match code.
2473 2010-07-24 Tobias Burnus <burnus@net-b.de>
2475 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2476 silence -fwhole-file warning.
2478 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2480 * configure.tgt (*-*-solaris2.[56]*): Removed.
2482 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2484 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2485 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2486 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2487 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2488 targetting solaris2*.
2489 * configure: Regenerate.
2490 * config.h.in: Regenerate.
2492 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2493 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2494 Add libgomp_version_dep.
2495 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2497 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2498 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2499 * Makefile.in: Regenerate.
2501 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2502 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2503 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2504 to common block, protected by
2505 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2507 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2509 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2511 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2514 * configure: Regenerate.
2516 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2519 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2520 * configure: Regenerate.
2521 * Makefile.in: Regenerate.
2522 * testsuite/Makefile.in: Regenerate.
2524 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2527 * testsuite/libgomp.c/pr43893.c: New test.
2528 * testsuite/libgomp.c++/pr43893.C: New test.
2530 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2533 * testsuite/libgomp.fortran/vla8.f90: New test.
2535 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2538 * config/linux/affinity.c (gomp_init_affinity): Decrease
2539 gomp_available_cpus if affinity mask confines the process to fewer
2541 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2542 non-NULL, just return gomp_available_cpus.
2545 * sections.c (gomp_sections_init): Initialize ws->mode.
2547 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2549 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2550 not unused bar variable.
2551 * configure: Regenerate.
2553 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2555 * Makefile.in: Regenerate.
2556 * aclocal.m4: Regenerate.
2557 * testsuite/Makefile.in: Regenerate.
2559 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2562 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2563 (initialize_env): Adjust callers.
2564 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2565 when the argument is 0.
2567 * testsuite/libgomp.c/pr42942.c: New test.
2569 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2573 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2574 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2576 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2578 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2579 * testsuite/libgomp.c++/task-6.C: Likewise.
2581 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2583 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2585 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2587 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2588 * configure: Regenerate.
2590 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2593 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2595 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2597 * configure.ac: Test for executability of GFORTRAN.
2598 * configure: Regenerate.
2600 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2602 * configure: Regenerate.
2604 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2607 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2609 2010-01-03 Richard Guenther <rguenther@suse.de>
2611 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2613 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2615 * testsuite/libgomp.graphite/pr4118.c: New.
2617 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2619 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2620 for darwin, protect the test with require-effective-target tls_runtime.
2621 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2623 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2626 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2627 link spec %s substitutions for static libraries.
2629 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2632 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2634 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2636 * Makefile.in: Regenerate.
2637 * configure: Regenerate.
2638 * testsuite/Makefile.in: Regenerate.
2640 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2642 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2643 settings for LC_ALL and LANG.
2645 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2648 * testsuite/libgomp.fortran/pr42162.f90: New test.
2650 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2653 * testsuite/libgomp.c/pr42029.c: New test.
2655 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2657 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2658 *s. Accept ld version without text in ()s.
2659 * configure: Regenerated.
2661 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2663 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2665 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2668 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2669 or a hyphen (happens with fortran language disabled).
2670 * configure: Regenerate.
2672 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2674 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2675 use sed script portable to Solaris /bin/sed for extracting ld
2677 * configure: Regenerate.
2679 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2681 * testsuite/libgomp.graphite/bounds.c: New test.
2683 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2685 * Makefile.am (libgomp_la_LINK): New.
2686 * Makefile.in: Regenerate.
2688 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2690 * configure.ac (AC_PREREQ): Bump to 2.64.
2692 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2694 * Makefile.am (install-html, install-pdf): Remove.
2695 * Makefile.in: Regenerate.
2697 * Makefile.in: Regenerate.
2698 * aclocal.m4: Regenerate.
2699 * config.h.in: Regenerate.
2700 * configure: Regenerate.
2701 * testsuite/Makefile.in: Regenerate.
2703 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2705 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2706 * Makefile.in: Regenerate.
2708 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2710 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2711 * Makefile.in: Regenerate.
2713 2009-08-19 Tobias Burnus <burnus@net-b.de>
2716 omp_lib.h.in: Fix -std=f95 errors.
2719 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2721 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2722 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2723 * testsuite/libgomp.graphite/graphite.exp: New.
2725 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
2727 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2730 2009-08-04 David Daney <ddaney@caviumnetworks.com>
2732 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2733 needed memory barrier semantics.
2734 * config/linux/mips/mutex.h: New file.
2736 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2738 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2740 2009-07-16 Joseph Myers <joseph@codesourcery.com>
2742 * configure: Regenerate.
2744 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
2749 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2750 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2751 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2753 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2755 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2756 options when choosing a multilib.
2758 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
2760 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2761 ld_library_path. Use add_path. Add just find_libgcc_s to
2762 ld_library_path, not every libgcc multilib directory.
2763 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2764 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2765 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2767 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2769 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
2771 * Makefile.am (LTLDFLAGS): Define.
2773 * Makefile.in: Regenerate.
2775 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
2778 * testsuite/libgomp.fortran/fortran.exp: Don't link with
2779 libgfortranbegin, check existence of libgfortran.a instead of
2782 2009-05-20 Jakub Jelinek <jakub@redhat.com>
2785 * team.c (gomp_thread_start): Destroy thr->release semaphore.
2786 (gomp_free_pool_helper): Likewise.
2788 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
2789 Jakub Jelinek <jakub@redhat.com>
2792 * testsuite/libgomp.fortran/workshare2.f90: New test.
2794 2009-04-09 Nick Clifton <nickc@redhat.com>
2796 * iter.c: Change copyright header to refer to version 3 of the
2797 GNU General Public License with version 3.1 of the GCC Runtime
2798 Library Exception and to point readers at the COPYING3 and
2799 COPYING3.RUNTIME files and the FSF's license web page.
2800 * alloc.c: Likewise.
2801 * barrier.c: Likewise.
2802 * config/bsd/proc.c: Likewise.
2803 * config/linux/affinity.c: Likewise.
2804 * config/linux/alpha/futex.h: Likewise.
2805 * config/linux/bar.c: Likewise.
2806 * config/linux/bar.h: Likewise.
2807 * config/linux/ia64/futex.h: Likewise.
2808 * config/linux/ia64/mutex.h: Likewise.
2809 * config/linux/lock.c: Likewise.
2810 * config/linux/mips/futex.h: Likewise.
2811 * config/linux/mutex.c: Likewise.
2812 * config/linux/mutex.h: Likewise.
2813 * config/linux/powerpc/futex.h: Likewise.
2814 * config/linux/proc.c: Likewise.
2815 * config/linux/ptrlock.c: Likewise.
2816 * config/linux/ptrlock.h: Likewise.
2817 * config/linux/s390/futex.h: Likewise.
2818 * config/linux/sem.c: Likewise.
2819 * config/linux/sem.h: Likewise.
2820 * config/linux/sparc/futex.h: Likewise.
2821 * config/linux/wait.h: Likewise.
2822 * config/linux/x86/futex.h: Likewise.
2823 * config/mingw32/proc.c: Likewise.
2824 * config/mingw32/time.c: Likewise.
2825 * config/posix/affinity.c: Likewise.
2826 * config/posix/bar.c: Likewise.
2827 * config/posix/bar.h: Likewise.
2828 * config/posix/lock.c: Likewise.
2829 * config/posix/mutex.h: Likewise.
2830 * config/posix/proc.c: Likewise.
2831 * config/posix/ptrlock.h: Likewise.
2832 * config/posix/sem.c: Likewise.
2833 * config/posix/sem.h: Likewise.
2834 * config/posix/time.c: Likewise.
2835 * config/posix95/lock.c: Likewise.
2836 * critical.c: Likewise.
2838 * error.c: Likewise.
2839 * fortran.c: Likewise.
2840 * iter_ull.c: Likewise.
2841 * libgomp.h: Likewise.
2842 * libgomp_f.h.in: Likewise.
2843 * libgomp_g.h: Likewise.
2845 * loop_ull.c: Likewise.
2846 * omp.h.in: Likewise.
2847 * omp_lib.f90.in: Likewise.
2848 * omp_lib.h.in: Likewise.
2849 * ordered.c: Likewise.
2850 * parallel.c: Likewise.
2851 * sections.c: Likewise.
2852 * single.c: Likewise.
2857 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2859 * testsuite/config/default.exp: Change copyright header to refer to
2860 version 3 of the GNU General Public License and to point readers
2861 at the COPYING3 file and the FSF's license web page.
2863 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2866 * libgomp.c++/pr39573.C: New test.
2868 2009-04-01 Jakub Jelinek <jakub@redhat.com>
2871 * testsuite/libgomp.c/pr39591-1.c: New test.
2872 * testsuite/libgomp.c/pr39591-2.c: New test.
2873 * testsuite/libgomp.c/pr39591-3.c: New test.
2875 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
2877 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2878 * testsuite/libgomp.c/atomic-6.c: Ditto.
2880 2009-03-23 Jakub Jelinek <jakub@redhat.com>
2883 * testsuite/libgomp.c/loop-12.c: New test.
2884 * testsuite/libgomp.c/loop-11.c: New test.
2885 * testsuite/libgomp.c++/loop-11.C: New test.
2886 * testsuite/libgomp.c++/loop-12.C: New test.
2887 * testsuite/libgomp.c++/for-8.C: New test.
2889 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2891 * configure: Regenerate.
2893 2009-02-11 Jakub Jelinek <jakub@redhat.com>
2896 * testsuite/libgomp.c/pr39154.c: New test.
2898 2009-01-30 Ian Lance Taylor <iant@google.com>
2900 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2901 libgomp_ld_is_gold. Get gold version number.
2902 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2903 * configure: Rebuild.
2905 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2907 * testsuite/lib/libgomp.exp: Add -B option for targets that
2908 use libgfortran.a%s in their specs.
2910 2009-01-07 Jakub Jelinek <jakub@redhat.com>
2913 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2914 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2915 HAVE_AS_SYMVER_DIRECTIVE is not defined.
2916 * configure: Regenerated.
2917 * config.h.in: Likewise.
2919 2008-12-28 Jakub Jelinek <jakub@redhat.com>
2922 * testsuite/libgomp.c/pr38650.c: New test.
2923 * testsuite/libgomp.c++/pr38650.C: New test.
2925 2008-12-27 Jakub Jelinek <jakub@redhat.com>
2927 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2929 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
2931 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2933 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2935 * configure: Regenerate.
2937 2008-12-08 Jakub Jelinek <jakub@redhat.com>
2940 * testsuite/libgomp.c/pr36802-1.c: New test.
2941 * testsuite/libgomp.c/pr36802-2.c: New test.
2942 * testsuite/libgomp.c/pr36802-3.c: New test.
2944 2008-12-01 Janis Johnson <janis187@us.ibm.com>
2947 * config/linux/powerpc/mutex.h: New.
2949 2008-12-01 Jakub Jelinek <jakub@redhat.com>
2952 * testsuite/libgomp.c++/for-7.C: New test.
2955 * testsuite/libgomp.c++/for-6.C: New test.
2957 2008-11-26 Janis Johnson <janis187@us.ibm.com>
2960 * testsuite/lib/libgomp.exp: Include new timeout library files.
2961 (libgomp_target_compile): Set timeout value from new proc.
2963 2008-11-13 Steve Ellcey <sje@cup.hp.com>
2966 * config/linux/ia64/mutex.h: New.
2968 2008-11-04 Tobias Burnus <burnus@net-b.de>
2971 * libgomp.texi (Runtime library routines, environment variables):
2972 Update for OpenMP version 3.0.
2974 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
2975 Steve Ellcey <sje@cup.hp.com>
2977 * configure: Regenerate for new libtool.
2978 * Makefile.in: Ditto.
2979 * testsuite/Makefile.in: Ditto.
2981 2008-09-19 Jakub Jelinek <jakub@redhat.com>
2982 Andreas Tobler <a.tobler@schweiz.org>
2984 * config/bsd/proc.c: New file.
2985 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2986 * configure.ac: Check for header <sys/sysctl.h>
2987 * configure: Regenerate.
2988 * config.h.in: Likewise.
2990 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2992 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2994 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2996 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2997 * Makefile.in: Regenerated.
2998 * testsuite/Makefile.in: Regenerated.
3000 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
3002 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
3003 depend on blddir if blddir exists.
3004 (libgomp_target_compile): Likewise.
3005 * testsuite/libgomp.c++/c++.exp: Likewise.
3006 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3008 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3010 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
3011 Do not list GPL as Invariant Section.
3013 2008-07-28 Ilie Garbacea <ilie@mips.com>
3014 Chao-ying Fu <fu@mips.com>
3016 * configure.tgt: Enable futex for MIPS.
3017 * config/linux/mips/futex.h: New file.
3019 2008-07-16 Jakub Jelinek <jakub@redhat.com>
3021 * team.c (gomp_team_end): Free team immediately if it has
3024 2008-07-08 David Edelsohn <edelsohn@gnu.org>
3026 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3027 * testsuite/libgomp.fortran/fortran.exp: Same.
3028 * testsuite/libgomp.c/c.exp: Same.
3029 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3030 directory to library path first.
3032 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3034 * env.c (parse_stacksize): Add cast to avoid warning.
3035 (parse_spincount): Likewise.
3037 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3039 * testsuite/libgomp.c/loop-10.c: New test.
3040 * libgomp.c/loop-3.c (main): Add lastprivate clause.
3041 * libgomp.c++/loop-6.C (main): Likewise.
3044 * testsuite/libgomp.c/debug-1.c: New test.
3046 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3048 * testsuite/libgomp.c/nqueens-1.c: New test.
3051 * testsuite/libgomp.c++/task-7.C: New function.
3053 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3055 * configure: Regenerate.
3057 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3059 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3060 mutex when HAVE_SYNC_BUILTINS isn't defined.
3062 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3064 * libgomp.texi (omp_test_lock): Fix typo.
3066 2008-06-12 Tobias Burnus <burnus@net-b.de>
3068 * omp_lib.f90.in: Add "implicit none".
3070 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3073 * testsuite/libgomp.c/reduction-5.c: New test.
3075 2008-06-11 Jakub Jelinek <jakub@redhat.com>
3077 * libgomp.h (struct gomp_task): Add in_tied_task field.
3078 * task.c (gomp_init_task): Initialize it.
3079 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
3080 unconditionally. Don't call gomp_team_barrier_wake if
3081 current task is implicit or if(0) from implicit and number of
3082 running tasks is equal to nthreads - 1.
3085 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3086 omp_get_team_size_8): Fix pastos.
3089 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3090 * configure: Regenerated.
3091 * config.h.in: Regenerated.
3092 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3095 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3098 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3099 (GOMP_loop_ull_dynamic_start): Likewise.
3100 (GOMP_loop_ull_guided_start): Likewise.
3101 (GOMP_loop_ull_ordered_static_start): Likewise.
3102 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3103 (GOMP_loop_ull_ordered_guided_start): Likewise.
3105 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3106 Richard Henderson <rth@redhat.com>
3107 Ulrich Drepper <drepper@redhat.com>
3108 Jakob Blomer <jakob.blomer@ira.uka.de>
3110 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3111 Substitute also OMP_*LOCK_25*.
3112 * configure: Regenerated.
3113 * config.h.in: Regenerated.
3114 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3115 ptrlock.c and task.c.
3116 * Makefile.in: Regenerated.
3117 * testsuite/Makefile.in: Regenerated.
3119 * loop_ull.c: New file.
3120 * iter_ull.c: New file.
3121 * libgomp.h: Include ptrlock.h.
3122 (enum gomp_task_kind): New type.
3123 (struct gomp_team): Add task_lock, task_queue, task_count,
3124 task_running_count, single_count fields. Add
3125 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3126 Remove work_share_lock, generation_mask,
3127 oldest_live_gen, num_live_gen and init_work_shares fields, add
3128 work work_share_list_alloc, work_share_list_free and work_share_chunk
3129 fields. Change work_shares from pointer to pointers into an array.
3130 Change ordered_release field into gomp_sem_t ** from flexible array
3131 member. Add implicit_task and initial_work_shares fields.
3132 Move close to the end of the struct.
3133 (struct gomp_team_state): Add single_count, last_work_share,
3134 active_level and level fields, remove work_share_generation.
3135 (gomp_barrier_handle_tasks): New prototype.
3136 (gomp_finish_task): New inline function.
3137 (struct gomp_work_share): Move chunk_size, end, incr into
3138 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3139 next_ll fields. Reshuffle fields. Add next_alloc,
3140 next_ws, next_free and inline_ordered_team_ids fields, change
3141 ordered_team_ids into pointer from flexible array member.
3142 Add mode field. Put lock and next into a different cache line
3143 from most of the write-once fields.
3144 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3145 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3146 gomp_iter_ull_guided_next): New prototypes.
3147 (gomp_new_icv): New prototype.
3148 (struct gomp_thread): Add thread_pool and task fields.
3149 (struct gomp_thread_pool): New type.
3150 (gomp_new_team): New prototype.
3151 (gomp_team_start): Change type of last argument.
3152 (gomp_new_work_share): Removed.
3153 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3154 (gomp_work_share_init_done): New static inline.
3155 (gomp_throttled_spin_count_var, gomp_available_cpus,
3156 gomp_managed_threads): New extern decls.
3157 (gomp_init_task): New prototype.
3158 (gomp_spin_count_var): New extern var decl.
3159 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3160 or no alias support, or if not PIC.
3161 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3162 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3163 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3164 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3165 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3166 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3167 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3168 gomp_test_nest_lock_25): New prototypes.
3169 (omp_lock_symver, strong_alias): Define.
3170 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3172 (gomp_end_task): New.
3173 (struct gomp_task_icv, gomp_global_icv): New.
3174 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3175 (struct gomp_task): New.
3176 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3177 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3179 (gomp_schedule_type): Reorder enum to match
3181 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3183 (gomp_thread_start): Add gomp_team_barrier_wait call.
3184 For non-nested case remove clearing of docked thread thr fields.
3185 Use pool fields instead of global gomp_* variables. Use
3186 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3187 Create tasks for each member thread.
3188 (free_team): Only destroy team barrier, task_lock here and free it.
3189 (gomp_free_thread): Free last_team if non-NULL.
3190 (gomp_team_end): Call gomp_team_barrier_wait instead of
3191 gomp_barrier_wait. For nested case call one extra
3192 gomp_barrier_wait. Move here some destruction from free_team.
3193 Call free_team on pool->last_team if any, rather than freeing
3194 current team. Destroy work_share_list_free_lock ifndef
3196 (gomp_new_icv): New function.
3197 (gomp_threads, gomp_threads_size, gomp_threads_used,
3198 gomp_threads_dock): Removed.
3199 (gomp_thread_destructor): New variable.
3200 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3202 (gomp_team_start): Create new pool if current thread doesn't have
3203 one. Use pool fields instead of global gomp_* variables.
3204 Initialize thread_pool field for new threads. Clear single_count.
3205 Change last argument from ws to team, don't create
3206 new team, set ts.work_share to &team->work_shares[0] and clear
3207 ts.last_work_share. Don't clear ts.work_share_generation.
3208 If number of threads changed, adjust atomically gomp_managed_threads.
3209 Use gomp_init_task instead of gomp_new_task,
3210 set thr->task to the corresponding implicit_task array entry.
3211 Create tasks for each member thread. Initialize ts.level.
3212 (initialize_team): Call pthread_key_create on
3213 gomp_thread_destructor.
3214 (team_destructor): New function.
3215 (new_team): Removed.
3216 (gomp_new_team): New function.
3217 (free_team): Free gomp_work_share blocks chained through next_alloc,
3218 instead of freeing work_shares and destroying work_share_lock.
3219 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3220 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3221 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3222 of gomp_barrier_wait.
3223 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3224 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3225 if gomp_work_share_start returned true. Don't unlock ws->lock.
3226 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3227 of gomp_barrier_wait.
3228 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3229 gomp_work_share_init_done if gomp_work_share_start returned true.
3230 Don't unlock ws->lock.
3231 * work.c: Include stddef.h.
3232 (free_work_share): Use work_share_list_free_lock instead
3233 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3234 Call gomp_fini_work_share and then either free ws if orphaned, or
3235 put it into work_share_list_free list of the current team.
3236 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3238 (gomp_work_share_start, gomp_work_share_end,
3239 gomp_work_share_end_nowait): Rewritten.
3240 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3241 (openmp_version): Set to 200805.
3242 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3243 omp_sched_guided, omp_sched_auto): New parameters.
3244 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3245 omp_set_max_active_levels, omp_get_max_active_levels,
3246 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3247 omp_get_active_level): New interfaces.
3248 * omp_lib.h.in (openmp_version): Set to 200805.
3249 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3250 omp_sched_guided, omp_sched_auto): New parameters.
3251 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3252 omp_set_max_active_levels, omp_get_max_active_levels,
3253 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3254 omp_get_active_level): New externals.
3255 * loop.c: Include limits.h.
3256 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3258 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3259 Likewise. Use gomp_icv.
3260 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3261 ts.static_trip here.
3262 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3263 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3264 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3265 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3266 don't unlock ws->lock, otherwise lock it.
3267 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3268 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3269 (gomp_parallel_loop_start): Call gomp_new_team instead of
3270 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3271 Adjust gomp_team_start caller. Pass 0 as second argument to
3272 gomp_resolve_num_threads.
3273 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3274 If adding ws->chunk_size nthreads + 1 times after end won't
3275 overflow, set ws->mode to 1.
3276 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3277 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3278 GOMP_loop_ull_ordered_static_start,
3279 GOMP_loop_ull_ordered_dynamic_start,
3280 GOMP_loop_ull_ordered_guided_start,
3281 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3282 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3283 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3284 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3285 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3287 * libgomp.map: Export lock routines also @@OMP_2.0.
3288 (GOMP_loop_ordered_dynamic_first,
3289 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3290 GOMP_loop_ordered_static_first): Remove.
3291 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3292 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3293 GOMP_loop_ull_ordered_dynamic_next,
3294 GOMP_loop_ull_ordered_dynamic_start,
3295 GOMP_loop_ull_ordered_guided_next,
3296 GOMP_loop_ull_ordered_guided_start,
3297 GOMP_loop_ull_ordered_runtime_next,
3298 GOMP_loop_ull_ordered_runtime_start,
3299 GOMP_loop_ull_ordered_static_next,
3300 GOMP_loop_ull_ordered_static_start,
3301 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3302 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3303 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3304 (omp_set_schedule, omp_get_schedule,
3305 omp_get_thread_limit, omp_set_max_active_levels,
3306 omp_get_max_active_levels, omp_get_level,
3307 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3308 omp_set_schedule_, omp_set_schedule_8_,
3309 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3310 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3311 omp_get_max_active_levels_, omp_get_level_,
3312 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3313 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3314 New exports @@OMP_3.0.
3315 * omp.h.in (omp_sched_t): New type.
3316 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3317 omp_set_max_active_levels, omp_get_max_active_levels,
3318 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3319 omp_get_active_level): New prototypes.
3320 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3321 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3322 gomp_thread_limit_var, gomp_remaining_threads_count,
3323 gomp_remaining_threads_lock): New variables.
3324 (parse_spincount): New function.
3325 (initialize_env): Call gomp_init_num_threads unconditionally.
3326 Initialize gomp_available_cpus. Call parse_spincount,
3327 initialize gomp_{,throttled_}spin_count_var
3328 depending on presence and value of OMP_WAIT_POLICY and
3329 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
3330 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3331 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
3332 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
3333 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
3334 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3335 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3336 (gomp_global_icv): New.
3337 (parse_schedule): Use it. Parse "auto".
3338 (omp_set_num_threads): Use gomp_icv.
3339 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3341 (omp_get_max_threads): Move from parallel.c.
3342 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3343 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3345 (parse_stacksize, parse_wait_policy): New functions.
3346 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3347 both wrappers for compatibility and new locks.
3348 (omp_set_schedule, omp_get_schedule,
3349 omp_get_thread_limit, omp_set_max_active_levels,
3350 omp_get_max_active_levels, omp_get_level,
3351 omp_get_ancestor_thread_num, omp_get_team_size,
3352 omp_get_active_level): New ialias_redirect.
3353 (omp_set_schedule_, omp_set_schedule_8_,
3354 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3355 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3356 omp_get_max_active_levels_, omp_get_level_,
3357 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3358 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3360 * parallel.c: Include limits.h.
3361 (gomp_resolve_num_threads): Add count argument. Rewritten.
3362 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3363 argument to gomp_team_start. Pass 0 as second argument to
3364 gomp_resolve_num_threads.
3365 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3366 if gomp_thread_limit_var != ULONG_MAX.
3367 (omp_in_parallel): Implement using ts.active_level.
3368 (omp_get_max_threads): Move to env.c.
3369 (omp_get_level, omp_get_ancestor_thread_num,
3370 omp_get_team_size, omp_get_active_level): New functions,
3372 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3373 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3374 gomp_iter_dynamic_next instead of the _locked variant and don't take
3375 lock around it, otherwise acquire it before calling
3376 gomp_iter_dynamic_next_locked.
3377 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3378 gomp_iter_dynamic_next instead of the _locked variant and don't take
3380 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3381 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3382 Adjust gomp_team_start caller. Pass count as second argument to
3383 gomp_resolve_num_threads, don't adjust num_threads after the call.
3385 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3386 ws->chunk_size by incr.
3387 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3389 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3391 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3392 (omp_check_defines): Check even the compat defines.
3393 * config/linux/ptrlock.c: New file.
3394 * config/linux/ptrlock.h: New file.
3395 * config/linux/wait.h: New file.
3396 * config/posix/ptrlock.c: New file.
3397 * config/posix/ptrlock.h: New file.
3398 * config/linux/bar.h (gomp_team_barrier_wait,
3399 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3400 (gomp_team_barrier_set_task_pending,
3401 gomp_team_barrier_clear_task_pending,
3402 gomp_team_barrier_set_waiting_for_tasks,
3403 gomp_team_barrier_waiting_for_tasks,
3404 gomp_team_barrier_done): New inlines.
3405 (gomp_barrier_t): Rewritten.
3406 (gomp_barrier_state_t): New typedef.
3407 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3408 gomp_barrier_wait_start): Rewritten.
3409 (gomp_barrier_wait_end): Change second argument to
3410 gomp_barrier_state_t.
3411 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3413 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3415 (gomp_barrier_wait_end): Rewritten.
3416 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3417 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3418 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3419 (gomp_barrier_state_t): New typedef.
3420 (gomp_team_barrier_wait,
3421 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3422 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3423 into the return value. Return gomp_barrier_state_t.
3424 (gomp_team_barrier_set_task_pending,
3425 gomp_team_barrier_clear_task_pending,
3426 gomp_team_barrier_set_waiting_for_tasks,
3427 gomp_team_barrier_waiting_for_tasks,
3428 gomp_team_barrier_done): New inlines.
3429 (gomp_barrier_wait_end): Change second argument to
3430 gomp_barrier_state_t.
3431 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3433 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3434 (gomp_barrier_wait_end): Change second argument to
3435 gomp_barrier_state_t.
3436 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3437 gomp_team_barrier_wake): New functions.
3438 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3440 (gomp_futex_wake, gomp_futex_wait): New variables.
3441 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3442 * config/linux/lock.c: Rewrite to make locks task owned,
3443 for backwards compatibility provide the old entrypoints
3444 if symbol versioning. Include wait.h instead of libgomp.h and
3446 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3447 * config/posix95/lock.c: Rewrite to make locks task owned,
3448 for backwards compatibility provide the old entrypoints
3449 if symbol versioning.
3450 * config/posix/lock.c: Rewrite to make locks task owned,
3451 for backwards compatibility provide the old entrypoints
3452 if symbol versioning.
3453 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3454 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3455 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3456 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3457 (sys_futex0): Return error code.
3458 (futex_wake, futex_wait): If ENOSYS was returned, clear
3459 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3460 (cpu_relax, atomic_write_barrier): New static inlines.
3461 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3462 (futex_wake, futex_wait): If ENOSYS was returned, clear
3463 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3464 (cpu_relax, atomic_write_barrier): New static inlines.
3465 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3466 (sys_futex0): Return error code.
3467 (futex_wake, futex_wait): If ENOSYS was returned, clear
3468 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3469 (cpu_relax, atomic_write_barrier): New static inlines.
3470 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3471 (sys_futex0): Return error code.
3472 (futex_wake, futex_wait): If ENOSYS was returned, clear
3473 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3474 (cpu_relax, atomic_write_barrier): New static inlines.
3475 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3476 (sys_futex0): Return error code.
3477 (futex_wake, futex_wait): If ENOSYS was returned, clear
3478 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3479 (cpu_relax, atomic_write_barrier): New static inlines.
3480 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3481 (sys_futex0): Return error code.
3482 (futex_wake, futex_wait): If ENOSYS was returned, clear
3483 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3484 (cpu_relax, atomic_write_barrier): New static inlines.
3485 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3487 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3488 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3489 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3491 (omp_nest_lock_t): Change owner into void *, add lock field.
3492 * config/posix95/omp-lock.h: Include semaphore.h.
3493 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3494 (omp_lock_t): Use sem_t instead of mutex if semaphores
3496 (omp_nest_lock_t): Likewise. Change owner to void *.
3497 * config/posix/omp-lock.h: Include semaphore.h.
3498 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3499 (omp_lock_t): Use sem_t instead of mutex if semaphores
3501 (omp_nest_lock_t): Likewise. Add owner field.
3503 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3505 * testsuite/libgomp.c/collapse-1.c: New test.
3506 * testsuite/libgomp.c/collapse-2.c: New test.
3507 * testsuite/libgomp.c/collapse-3.c: New test.
3508 * testsuite/libgomp.c/icv-1.c: New test.
3509 * testsuite/libgomp.c/icv-2.c: New test.
3510 * testsuite/libgomp.c/lib-2.c: New test.
3511 * testsuite/libgomp.c/lock-1.c: New test.
3512 * testsuite/libgomp.c/lock-2.c: New test.
3513 * testsuite/libgomp.c/lock-3.c: New test.
3514 * testsuite/libgomp.c/loop-4.c: New test.
3515 * testsuite/libgomp.c/loop-5.c: New test.
3516 * testsuite/libgomp.c/loop-6.c: New test.
3517 * testsuite/libgomp.c/loop-7.c: New test.
3518 * testsuite/libgomp.c/loop-8.c: New test.
3519 * testsuite/libgomp.c/loop-9.c: New test.
3520 * testsuite/libgomp.c/nested-3.c: New test.
3521 * testsuite/libgomp.c/nestedfn-6.c: New test.
3522 * testsuite/libgomp.c/sort-1.c: New test.
3523 * testsuite/libgomp.c/task-1.c: New test.
3524 * testsuite/libgomp.c/task-2.c: New test.
3525 * testsuite/libgomp.c/task-3.c: New test.
3526 * testsuite/libgomp.c/task-4.c: New test.
3527 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3528 to C++ testsuite default compiler options.
3529 * testsuite/libgomp.c++/collapse-1.C: New test.
3530 * testsuite/libgomp.c++/collapse-2.C: New test.
3531 * testsuite/libgomp.c++/ctor-10.C: New test.
3532 * testsuite/libgomp.c++/for-1.C: New test.
3533 * testsuite/libgomp.c++/for-2.C: New test.
3534 * testsuite/libgomp.c++/for-3.C: New test.
3535 * testsuite/libgomp.c++/for-4.C: New test.
3536 * testsuite/libgomp.c++/for-5.C: New test.
3537 * testsuite/libgomp.c++/loop-8.C: New test.
3538 * testsuite/libgomp.c++/loop-9.C: New test.
3539 * testsuite/libgomp.c++/loop-10.C: New test.
3540 * testsuite/libgomp.c++/task-1.C: New test.
3541 * testsuite/libgomp.c++/task-2.C: New test.
3542 * testsuite/libgomp.c++/task-3.C: New test.
3543 * testsuite/libgomp.c++/task-4.C: New test.
3544 * testsuite/libgomp.c++/task-5.C: New test.
3545 * testsuite/libgomp.c++/task-6.C: New test.
3546 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3547 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3548 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3549 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3550 * testsuite/libgomp.fortran/collapse1.f90: New test.
3551 * testsuite/libgomp.fortran/collapse2.f90: New test.
3552 * testsuite/libgomp.fortran/collapse3.f90: New test.
3553 * testsuite/libgomp.fortran/collapse4.f90: New test.
3554 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3555 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3556 * testsuite/libgomp.fortran/lib4.f90: New test.
3557 * testsuite/libgomp.fortran/lock-1.f90: New test.
3558 * testsuite/libgomp.fortran/lock-2.f90: New test.
3559 * testsuite/libgomp.fortran/nested1.f90: New test.
3560 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3561 * testsuite/libgomp.fortran/strassen.f90: New test.
3562 * testsuite/libgomp.fortran/tabs1.f90: New test.
3563 * testsuite/libgomp.fortran/tabs2.f: New test.
3564 * testsuite/libgomp.fortran/task1.f90: New test.
3565 * testsuite/libgomp.fortran/task2.f90: New test.
3566 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3567 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3568 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3569 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3570 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3572 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3575 * testsuite/libgomp.c++/ctor-11.C: New test.
3576 * testsuite/libgomp.c++/ctor-12.C: New test.
3578 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3580 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3582 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3585 * testsuite/libgomp.c/atomic-5.c: New test.
3586 * testsuite/libgomp.c/atomic-6.c: New test.
3587 * testsuite/libgomp.c/autopar-1.c: New test.
3589 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3591 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3592 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3593 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3594 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3595 * configure: Regenerate.
3596 * Makefile.in, testsuite/Makefile.in: Likewise.
3598 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3601 * aclocal.m4: Regenerate.
3602 * configure: Regenerate.
3604 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3607 * testsuite/libgomp.c/atomic-4.c: New test.
3610 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3611 (gomp_iter_guided_next): Likewise.
3612 * testsuite/libgomp.c/pr35625.c: New test.
3614 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3616 * aclocal.m4: Regenerate.
3617 * configure: Likewise.
3618 * Makefile.in: Likewise.
3619 * testsuite/Makefile.in: Likewise.
3621 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3624 * testsuite/libgomp.c++/pr35185.C: New test.
3626 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3629 * testsuite/libgomp.c/pr35549.c: New test.
3631 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3633 * testsuite/libgomp.c/atomic-3.c: New test.
3635 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3638 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3641 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3644 * configure.ac: Add ACX_HEADER_STRING.
3645 * env.c: Include strings.h.
3646 * aclocal.m4: Regenerate.
3647 * config.h.in: Regenerate.
3648 * configure: Regenerate.
3649 * Makefile.in: Regenerate.
3650 * testsuite/Makefile.in: Regenerate.
3652 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3655 * testsuite/libgomp.c/pr35196.c: New test.
3658 * testsuite/libgomp.fortran/pr35130.f90: New test.
3659 * testsuite/libgomp.c/pr35130.c: New test.
3661 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3664 * testsuite/libgomp.c/pr33880.c: New test.
3665 * testsuite/libgomp.fortran/pr33880.f90: New test.
3667 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3669 * configure: Regenerate.
3671 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3673 * configure.ac: Move futex checking into ../config/futex.m4.
3674 * configure: Rebuilt.
3675 * aclocal.m4: Rebuilt.
3676 * Makefile.in: Rebuilt.
3678 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3679 2007-10-15 ../config/tls.m4 change.
3681 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3684 * testsuite/libgomp.c/pr34513.c: New test.
3685 * testsuite/libgomp.c++/pr34513.C: New test.
3687 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3690 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3692 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3694 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3696 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3698 * testsuite/libgomp.c/private-1.c: New test.
3700 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3701 Paolo Bonzini <bonzini@gnu.org>
3703 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3704 instead of 'VPATH ='.
3705 * Makefile.in: Regenerate.
3707 2007-11-23 Matthias Klose <doko@ubuntu.com>
3709 * configure.ac: Adjust makeinfo version check.
3710 * configure: Regenerate.
3712 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3715 * testsuite/libgomp.fortran/pr34020.f90: New test.
3717 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3720 * testsuite/libgomp.c++/atomic-1.C: New test.
3722 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3725 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3726 Make x and y integers rather than (implicit) reals. Add private (j)
3727 clause to the last omp parallel.
3729 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
3731 * configure: Regenerate following changes to ../config/tls.m4.
3733 2007-09-28 Jakub Jelinek <jakub@redhat.com>
3735 * testsuite/libgomp.fortran/stack.f90: New test.
3737 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
3739 * config/mingw32/proc.c: New file.
3741 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
3743 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3744 (main): Use __get_cpuid to get i386 target fetaures.
3745 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3746 (main): Use __get_cpuid to get x86_64 target fetaures.
3748 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
3751 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3752 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3754 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3757 * testsuite/libgomp.fortran/pr32550.f90: New test.
3758 * testsuite/libgomp.fortran/crayptr2.f90: New test.
3760 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
3762 * aclocal.m4: Regenerated.
3764 2007-07-05 Tobias Burnus <burnus@net-b.de>
3767 * testsuite/libgomp.fortran/pr32359.f90: New.
3769 2007-07-02 Jakub Jelinek <jakub@redhat.com>
3772 * sections.c (GOMP_parallel_sections_start): Only decrease
3773 number of threads to COUNT if dyn_var is true.
3774 * testsuite/libgomp.c/pr32468.c: New test.
3776 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3779 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3781 2007-06-21 Jakub Jelinek <jakub@redhat.com>
3784 * testsuite/libgomp.c/pr32362-1.c: New test.
3785 * testsuite/libgomp.c/pr32362-2.c: New test.
3786 * testsuite/libgomp.c/pr32362-3.c: New test.
3788 2007-06-07 Jakub Jelinek <jakub@redhat.com>
3790 * team.c (gomp_team_start): Fix setting up thread_attr
3793 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
3795 * configure: Regenerate.
3797 2007-05-23 Steve Ellcey <sje@cup.hp.com>
3799 * Makefile.in: Regenerate.
3800 * configure: Regenerate.
3801 * aclocal.m4: Regenerate.
3802 * testsuite/Makefile.in: Regenerate.
3804 2007-05-04 Jakub Jelinek <jakub@redhat.com>
3806 * config/linux/proc.c: New file.
3809 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3811 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3813 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3815 2007-04-16 Matthias Klose <doko@debian.org>
3817 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3818 flags if not building with -m64.
3819 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3820 flag for i?86-*-* targets, if current target matches -m64.
3822 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3824 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3825 * Makefile.in: Regenerate.
3827 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3830 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3832 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3834 2007-04-04 Jakub Jelinek <jakub@redhat.com>
3836 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3838 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3839 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3840 (parse_affinity): New function.
3841 (initialize_env): Call it and gomp_init_affinity.
3842 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3843 create new pthread_attr_t and call gomp_init_thread_affinity
3844 on it for each thread before passing the attribute to pthread_create.
3845 * config/linux/affinity.c: New file.
3846 * config/posix/affinity.c: New file.
3847 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3848 * configure: Rebuilt.
3849 * config.h.in: Rebuilt.
3850 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3851 * Makefile.in: Rebuilt.
3853 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
3855 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3857 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3858 and use it if found.
3860 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
3862 * testsuite/config/default.exp: New file.
3863 * testsuite/lib/libgomp.exp: New file.
3864 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3865 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3866 load_lib *, load_gcc_lib *): Move to libgomp.exp.
3867 (libgomp_load): Remove.
3868 * testsuite/lib/libgomp.exp (libgomp_init): Compute
3869 always_ld_library_path, not ld_library_path. Set additional_flags
3870 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3871 (target_compile): Do not call libgomp_init. Append lang_library_path
3872 and lang_link_flags to options.
3873 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
3874 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
3876 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3877 always_ld_library_path. Set LD_LIBRARY_PATH here.
3878 * testsuite/libgomp.fortran/fortran.exp: Ditto.
3879 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3880 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3882 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3883 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3884 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3885 * testsuite/libgomp.c/pr29947-1.c: Ditto.
3886 * testsuite/libgomp.c/atomic-10.c: Ditto.
3888 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3890 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3891 dg-final cleanup-modules line.
3892 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3893 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3894 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3895 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3896 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3897 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3898 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3900 2007-03-18 Andreas Schwab <schwab@suse.de>
3902 * acinclude.m4: Adjust regular expression for ld version
3904 * configure: Regenerate.
3906 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3908 * Makefile.am: Add install-pdf target as copied from
3909 automake v1.10 rules.
3910 * Makefile.in: Regenerate
3912 2007-02-07 Jakub Jelinek <jakub@redhat.com>
3915 * configure: Regenerate.
3918 * testsuite/libgomp.c++/pr30703.C: New test.
3920 2007-02-02 Jakub Jelinek <jakub@redhat.com>
3923 2006-07-05 Eric Christopher <echristo@apple.com>
3924 * configure.ac: Depend addition of -pthread on host OS.
3925 * configure: Regenerate.
3927 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3929 * libgomp.texi: Fix spacing after abbreviations.
3931 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
3934 * configure.ac: Add check for makeinfo
3935 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3936 if an appropiate version of makeinfo is found.
3937 * aclocal.m4: Regenerated.
3938 * configure: Regenerated.
3939 * Makefile.in: Regenerated.
3940 * testsuite/Makefile.in: Regenerated.
3942 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
3945 * libgomp.texi: More about implementation-dependent settings.
3947 2007-01-26 Tobias Burnus <burnus@net-b.de>
3949 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3951 2007-01-24 Jakub Jelinek <jakub@redhat.com>
3954 * testsuite/libgomp.c/pr30494.c: New test.
3956 2007-01-15 Tom Tromey <tromey@redhat.com>
3958 * configure: Rebuilt.
3959 * configure.ac: Fixed comment.
3961 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
3963 * libgomp.texi: Document implementation specific default values of
3964 environment variables.
3966 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
3969 * libgomp.texi: New file.
3970 * configure.ac: Add --enable-generated-files-in-srcdir option.
3971 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3973 * Makefile.in: Regenerated.
3974 * config.h.in: Regenerated.
3975 * testsuite/Makefile.in: Regenerated.
3978 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
3981 * env.c (omp_set_num_threads): Set illegal thread count to 1.
3983 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3985 * configure: Regenerate.
3987 2006-12-04 Jakub Jelinek <jakub@redhat.com>
3990 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
3991 start if there shouldn't be any loop iterations.
3992 (gomp_loop_ordered_static_start): Remove start == end test.
3993 * testsuite/libgomp.c/pr29947-1.c: New test.
3994 * testsuite/libgomp.c/pr29947-2.c: New test.
3996 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3998 * configure.tgt: Force initial-exec TLS model on Linux only.
4000 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
4002 * configure: Regenerated.
4004 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
4006 * env.c (parse_schedule): Reject out of range values.
4007 (parse_unsigned_long): Reject out of range, negative or zero values.
4009 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4012 * testsuite/libgomp.fortran/pr29629.f90: New test.
4014 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
4017 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4018 * config/posix95: New directory.
4019 * config/posix95/omp-lock.h: New file.
4020 * config/posix95/lock.c: Likewise.
4022 2006-10-14 Geoffrey Keating <geoffk@apple.com>
4024 * aclocal.m4: Regenerate.
4025 * configure: Regenerate.
4027 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4029 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4032 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4034 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4036 * configure: Regenerate.
4037 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4039 2006-09-26 Jakub Jelinek <jakub@redhat.com>
4043 * testsuite/libgomp.c/nestedfn-4.c: New test.
4044 * testsuite/libgomp.c/nestedfn-5.c: New test.
4045 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4048 * testsuite/libgomp.fortran/condinc1.f: New test.
4049 * testsuite/libgomp.fortran/condinc2.f: New test.
4050 * testsuite/libgomp.fortran/condinc3.f90: New test.
4051 * testsuite/libgomp.fortran/condinc4.f90: New test.
4052 * testsuite/libgomp.fortran/condinc1.inc: New file.
4054 2006-09-18 Tom Tromey <tromey@redhat.com>
4056 * configure: Rebuilt.
4058 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4061 PR preprocessor/14634
4062 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4064 * configure: Regenerate.
4066 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4068 * testsuite/libgomp.fortran/reduction3.f90: Change
4069 -2147483648 to -huge(i)-1 to avoid overflow.
4070 * testsuite/libgomp.fortran/reduction4.f90: Change
4071 Z'ffffffff' to not(0) to avoid overflow.
4073 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4076 * Makefile.am (libsubincludedir): New.
4077 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4078 * Makefile.in: Regenerate.
4080 2006-08-17 Jakub Jelinek <jakub@redhat.com>
4083 * env.c: Include ctype.h.
4084 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4085 leading and/or trailing whitespace and compare strings case
4088 2006-07-16 Jakub Jelinek <jakub@redhat.com>
4091 * testsuite/libgomp.fortran/pr28390.f: New test.
4093 2006-07-05 Eric Christopher <echristo@apple.com>
4095 * configure.ac: Depend addition of -pthread on host OS.
4096 * configure: Regenerate.
4098 2006-06-21 Jakub Jelinek <jakub@redhat.com>
4100 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4101 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4104 2006-06-20 Jakub Jelinek <jakub@redhat.com>
4108 * configure.ac: If neither --enable-linux-futex nor
4109 --disable-linux-futex is passed, determine the default by checking
4110 for compiling and/or running against NPTL. With --enable-linux-futex,
4111 check if SYS_gettid and SYS_futex are defined.
4112 * configure: Rebuilt.
4114 2006-06-14 Richard Henderson <rth@redhat.com>
4117 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4118 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4120 2006-06-09 Richard Henderson <rth@redhat.com>
4122 * env.c (gomp_nthreads_var): Change to unsigned long.
4123 (gomp_run_sched_chunk): Likewise.
4124 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4125 (initialize_env): Initialize gomp_thread_attr.
4126 * libgomp.h (gomp_nthreads_var): Update decl.
4127 (gomp_run_sched_chunk): Likewise.
4128 (gomp_thread_attr): Declare.
4129 * team.c (gomp_thread_attr): Export.
4130 (initialize_team): Don't initialize it.
4132 2006-06-09 Jakub Jelinek <jakub@redhat.com>
4135 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4136 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4138 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4140 * config/mingw32/time.c: New file.
4141 * configure.tgt: Use it.
4143 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4145 * Makefile.am: Add install-html target. Add install-html to .PHONY
4146 * Makefile.in: Regenerate.
4148 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4151 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4152 * testsuite/libgomp.c/critical-1.c: Likewise.
4153 * testsuite/libgomp.c/loop-1.c: Likewise.
4154 * testsuite/libgomp.c/loop-2.c: Likewise.
4155 * testsuite/libgomp.c/single-1.c: Likewise.
4156 * testsuite/libgomp.c/ordered-1.c: Likewise.
4157 * testsuite/libgomp.c/ordered-2.c: Likewise.
4159 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4162 * libgomp.fortran/pr27416-1.f90: New test.
4164 2006-05-03 Jakub Jelinek <jakub@redhat.com>
4167 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4168 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4170 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4173 * testsuite/libgomp.c/pr26943-1.c: New test.
4174 * testsuite/libgomp.c/pr26943-2.c: New test.
4175 * testsuite/libgomp.c/pr26943-3.c: New test.
4176 * testsuite/libgomp.c/pr26943-4.c: New test.
4177 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4178 * testsuite/libgomp.c++/pr26943.C: New test.
4180 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4183 * testsuite/libgomp.c++/pr27337.C: New test.
4185 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4188 * testsuite/libgomp.c/pr26171.c: New test.
4190 2006-04-25 Richard Henderson <rth@redhat.com>
4193 * configure.ac: Use GCC_CHECK_TLS.
4194 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4195 * Makefile.in, aclocal.m4, configure: Regenerate.
4197 2006-04-10 Matthias Klose <doko@debian.org>
4199 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4200 directory names containing underscores.
4202 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4205 * testsuite/libgomp.c++/pr26691.C: New test.
4207 2006-03-13 Jakub Jelinek <jakub@redhat.com>
4209 * testsuite/libgomp.fortran/retval2.f90: New test.
4211 2006-03-09 Diego Novillo <dnovillo@redhat.com>
4213 * testsuite/libgomp.c++: New directory.
4215 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
4217 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4218 * config/posix/sem.c: Implement the above.
4220 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4222 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4223 define HAVE_BROKEN_POSIX_SEMAPHORES.
4224 * configure: Rebuilt.
4225 * config.h.in: Rebuilt.
4227 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4230 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4231 for the other pthread check.
4232 * configure: Regenerate.
4233 * config.h.in: Regenerate.
4235 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4239 * Makefile.am (fincludedir): New variable.
4240 (nodist_include_HEADERS): Remove Fortran files.
4241 (nodist_finclude_HEADERS): New variable.
4242 * Makefile.in: Regenerated.
4244 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4246 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4247 Remove tests for returning assumed character length arrays.
4249 2006-02-12 Roger Sayle <roger@eyesopen.com>
4250 John David Anglin <dave@hiauly1.hia.nrc.ca>
4253 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4255 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4257 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4259 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4261 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4262 part of LD_LIBRARY_PATH manually.
4264 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4267 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4270 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
4273 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4274 * configure.ac (PERL): Don't set.
4275 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4276 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4277 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4278 * omp.h.in: Wrap the new configure substitutions with @ characters.
4279 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4280 * aclocal.m4, configure, Makefile.in: Regenerate.
4281 * mkomp_h.pl: Delete.
4283 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
4286 * configure.ac: Use GCC_HEADER_STDINT.
4287 * libgomp.h: Include gstdint.h.
4288 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4289 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4291 2006-01-24 Richard Henderson <rth@redhat.com>
4294 * configure.ac: Add AM_MAINTAINER_MODE.
4295 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4297 2006-01-24 Diego Novillo <dnovillo@redhat.com>
4299 * Makefile.in: Regenerate.
4300 * testsuite/Makefile.in: Regenerate.
4301 * aclocal.m4: Regenerate.
4303 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
4305 * config/posix/proc.c: Conditional include of sys/loadavg.h for
4307 * configure.ac: Add check for loadavg.h.
4308 (link_gomp): Adjust comment.
4309 * configure: Regenerate.
4310 * config.h.in: Regenerate.
4312 2006-01-21 Steve Ellcey <sje@cup.hp.com>
4315 * configure.ac: Remove check for alloca.h.
4316 * configure: Regenerate.
4317 * config.h.in: Regenerate.
4318 * libgomp.h: define gomp_alloca to be __builtin_alloca.
4319 * team.c: Remove use of alloca.h.
4320 Call gomp_alloca instead of alloca.
4322 2006-01-20 Steve Ellcey <sje@cup.hp.com>
4325 * team.c: Add include of alloca.h.
4326 * configure.ac: Add check for alloca.h.
4327 * configure: Regenerate.
4328 * config.h.in: Regenerate.
4330 2006-01-17 Jakub Jelinek <jakub@redhat.com>
4333 * testsuite/libgomp.fortran/pr25219.f90: New test.
4335 2005-12-05 Uros Bizjak <uros@kss-loka.si>
4337 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4338 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4339 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4340 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4341 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4342 testsuite/libgomp.fortran/threadprivate1.f90,
4343 testsuite/libgomp.fortran/threadprivate2.f90,
4344 testsuite/libgomp.fortran/threadprivate3.f90,
4345 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4346 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4347 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4348 effective-target to TLS runtime.
4350 * testsuite/libgomp.fortran/pr25162.f: Require
4351 effective-target TLS runtime.
4353 2005-12-01 Jakub Jelinek <jakub@redhat.com>
4355 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4356 * testsuite/libgomp.c/nestedfn-3.c: New test.
4358 2005-11-30 Jakub Jelinek <jakub@redhat.com>
4361 * testsuite/libgomp.fortran/pr25162.f: New test.
4363 2005-11-28 Jakub Jelinek <jakub@redhat.com>
4365 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4366 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4368 2005-11-25 Jakub Jelinek <jakub@redhat.com>
4370 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4371 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4372 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4373 single.c, team.c, work.c, config/linux/alpha/futex.h,
4374 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4375 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4376 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4377 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4378 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4379 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4380 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4383 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4385 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4386 to nodist_noinst_HEADERS.
4387 * Makefile.in: Rebuilt.
4389 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4390 add integer count field.
4391 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4392 omp_nest_lock_t type change.
4393 (omp_init_nest_lock): Likewise. Initialize count to 0.
4394 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4396 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4398 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4399 Increment count if successful and return the new nesting level.
4400 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4401 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4402 * testsuite/libgomp.c/lib-1.c: New test.
4403 * testsuite/libgomp.fortran/lib1.f90: New test.
4404 * testsuite/libgomp.fortran/lib2.f: New test.
4405 * testsuite/libgomp.fortran/lib3.f: New test.
4407 2005-11-17 Richard Henderson <rth@redhat.com>
4410 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4411 * configure.ac (link_gomp): New. Substitute it.
4412 (AC_CONFIG_FILES): Add libgomp.spec.
4413 * libgomp.spec.in: New file.
4414 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4415 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4417 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4419 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4420 reduction(-:var) behaving the same as reduction(+:var).
4421 * testsuite/libgomp.c/reduction-4.c: New test.
4423 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4425 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4426 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4427 testsuite/libgomp.c/copyin-3.c,
4428 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4429 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4430 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4431 testsuite/libgomp.c++/pr24455.C,
4432 testsuite/libgomp.fortran/threadprivate1.f90,
4433 testsuite/libgomp.fortran/threadprivate2.f90,
4434 testsuite/libgomp.fortran/threadprivate3.f90,
4435 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4436 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4437 testsuite/libgomp.fortran/omp_parse3.f90: Require
4438 effective-target TLS.
4440 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4444 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4447 * team.c (initialize_team): Pass NULL rather than free as
4448 pthread_key_create destructor. Initialize thread specific data
4449 pointer in initial thread to a static local variable rather than
4452 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4454 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4455 its location to ld_library_path.
4457 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4459 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4461 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4463 * testsuite/libgomp.c: Rename from libgomp.dg.
4465 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4467 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4468 threadprivate variable 'i'.
4470 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4472 * config/linux/s390/futex.h: New file.
4473 * configure.tgt: Use it.
4475 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4476 before the parallel.
4478 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4481 * testsuite/libgomp.c++/master-1.C: New test.
4483 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4485 * testsuite/libgomp.dg/copyin-3.c: New test.
4487 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4489 * testsuite/libgomp.fortran/retval1.f90: New test.
4490 * testsuite/libgomp.fortran/vla7.f90: New test.
4492 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4494 * testsuite/libgomp.fortran/vla2.f90: New test.
4495 * testsuite/libgomp.fortran/vla3.f90: New test.
4496 * testsuite/libgomp.fortran/vla4.f90: New test.
4497 * testsuite/libgomp.fortran/vla5.f90: New test.
4498 * testsuite/libgomp.fortran/vla6.f90: New test.
4500 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4502 * config/linux/sparc/futex.h: New file.
4503 * configure.tgt: Use it.
4504 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4506 * critical.c: Include stdlib.h.
4507 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4508 ignoring return value.
4509 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4510 LIBGOMP_CHECK_SYNC_BUILTINS check.
4511 * configure: Rebuilt.
4513 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4515 * testsuite/libgomp.fortran/vla1.f90: New test.
4517 2005-10-31 Richard Henderson <rth@redhat.com>
4519 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4520 setting 's' in different threads.
4522 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4524 * libgomp.h (attribute_hidden, ialias): Define.
4525 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4526 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4527 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4528 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4529 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4530 omp_test_lock, omp_test_nest_lock): Likewise.
4531 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4532 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4533 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4534 omp_test_lock, omp_test_nest_lock): Likewise.
4535 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4536 omp_get_dynamic, omp_get_nested): Likewise.
4537 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4538 omp_get_thread_num, omp_in_parallel): Likewise.
4539 * fortran.c (ialias_redirect): Define.
4540 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4541 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4542 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4543 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4544 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4545 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4546 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4547 omp_get_wtime): Add ialias_redirect.
4549 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4551 * fortran.c: Include stdlib.h.
4553 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4555 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4556 * Makefile.in: Regenerated.
4558 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4560 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4561 * libgomp_f.h.in (omp_check_defines): New function.
4562 * env.c: Include libgomp_f.h.
4563 (initialize_env): Call omp_check_defines.
4565 * testsuite/libgomp.dg/copyin-2.c: New test.
4566 * testsuite/libgomp.c++/copyin-2.C: New test.
4567 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4569 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4570 * testsuite/libgomp.fortran/sharing2.f90: New test.
4572 * testsuite/libgomp.dg/copyin-1.c: New test.
4573 * testsuite/libgomp.c++/copyin-1.C: New test.
4575 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4577 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4579 * testsuite/libgomp.fortran/workshare1.f90: New test.
4581 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4583 * libgomp.fortran/sharing1.f90: New test.
4585 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4588 * testsuite/libgomp.c++/loop-7.C: New test.
4590 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4592 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4593 * testsuite/libgomp.fortran/reduction6.f90: New test.
4594 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4596 2005-10-23 Richard Henderson <rth@redhat.com>
4598 * testsuite/libgomp.c++/ctor-1.C: New.
4599 * testsuite/libgomp.c++/ctor-2.C: New.
4600 * testsuite/libgomp.c++/ctor-3.C: New.
4601 * testsuite/libgomp.c++/ctor-4.C: New.
4602 * testsuite/libgomp.c++/ctor-5.C: New.
4603 * testsuite/libgomp.c++/ctor-6.C: New.
4604 * testsuite/libgomp.c++/ctor-7.C: New.
4605 * testsuite/libgomp.c++/ctor-8.C: New.
4606 * testsuite/libgomp.c++/ctor-9.C: New.
4608 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4611 * testsuite/libgomp.c++/pr24455-1.C: New test.
4612 * testsuite/libgomp.c++/pr24455.C: New test.
4613 * testsuite/libgomp.dg/pr24455-1.c: New test.
4614 * testsuite/libgomp.dg/pr24455.c: New test.
4616 2005-10-20 Richard Henderson <rth@redhat.com>
4618 * testsuite/libgomp.c++/loop-6.C: New.
4619 * testsuite/libgomp.dg/loop-3.c: New.
4621 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4623 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4625 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4628 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4630 * testsuite/libgomp.fortran/jacobi.f: New test.
4632 2005-10-19 Richard Henderson <rth@redhat.com>
4634 * configure.tgt (i?86-linux): Default to with_arch instead of
4635 CFLAGS. Add -mtune to match target_cpu.
4636 (x86_64-linux): Tune to i686.
4638 * fortran.c (omp_test_nest_lock_): Fix typo.
4640 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4642 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4643 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4644 * testsuite/libgomp.dg/ordered-3.c: New test.
4646 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4647 Remove volatile keyword.
4649 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4650 in COMMON block to avoid warnings on 64-bit targets.
4652 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4654 * testsuite/libgomp.dg/shared-3.c: New test.
4656 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4658 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4659 * testsuite/libgomp.fortran/reduction5.f90: New test.
4661 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4663 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4665 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4666 flush loop now that __sync_synchronize has proper memory barrier.
4667 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4668 Add -ffixed-form to dg-options.
4670 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4672 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4673 from subdirectories.
4674 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4675 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4676 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4677 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4678 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4679 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4680 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4681 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4682 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4683 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4684 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4685 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4686 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4687 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4688 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4689 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4690 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4691 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4692 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4693 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4694 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4695 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4696 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4697 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4698 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4700 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4702 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4703 lang_library_path exists. Use find instead of glob to gather tests.
4704 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4706 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4708 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4709 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4710 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4711 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4712 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4713 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4714 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4715 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4716 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4717 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4718 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4719 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4720 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4722 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4724 * testsuite/libgomp.dg/vla-1.c: New test.
4726 * testsuite/libgomp.fortran/reference2.f90: New test.
4728 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4729 declaration of omp_get_thread_num.
4730 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
4733 * testsuite/libgomp.fortran/reduction1.f90: New test.
4734 * testsuite/libgomp.fortran/reduction2.f90: New test.
4735 * testsuite/libgomp.fortran/reduction3.f90: New test.
4736 * testsuite/libgomp.fortran/reduction4.f90: New test.
4738 2005-10-13 Richard Henderson <rth@redhat.com>
4740 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4741 * Makefile.in: Regenerate.
4742 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4743 * libgomp.h: Include bar.h.
4744 (struct gomp_barrier): Remove.
4745 (struct gomp_team): Add barrier. Replace master_barrier with
4746 master_release. Replace threads with ordered_release.
4747 (struct gomp_thread): Replace barrier with release.
4748 * ordered.c (gomp_ordered_first): Update for ordered_release change.
4749 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4750 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4751 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4752 (GOMP_single_copy_end): Likewise.
4753 * team.c (gomp_threads_dock): New.
4754 (gomp_barrier_init, gomp_barrier_destroy): Remove.
4755 (gomp_thread_start): Use gomp_barrier_wait.
4756 (new_team, free_team): Update for gomp_team changes.
4757 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4758 (gomp_team_end): Use gomp_barrier_wait.
4759 (initialize_team): Update for gomp_thread changes.
4760 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4761 (gomp_work_share_end_nowait): Use atomic ops when available.
4762 * config/linux/bar.c, config/linux/bar.h: New files.
4763 * config/posix/bar.c, config/posix/bar.h: New files.
4765 2005-10-13 Jakub Jelinek <jakub@redhat.com>
4767 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4768 * testsuite/libgomp.dg/single-2.c: New test.
4770 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4771 lang_link_flags): Unset, so that they aren't inherited from previously
4774 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4776 2005-10-12 Richard Henderson <rth@redhat.com>
4778 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4779 (libgomp_init): Use lang_test_file, lang_library_path, and
4780 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
4782 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4783 (lang_test_file, lang_link_flags): New.
4784 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4786 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4787 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4788 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4789 testsuite/libgomp.c++/parallel-1.C,
4790 testsuite/libgomp.c++/reduction-1.C,
4791 testsuite/libgomp.c++/reduction-2.C,
4792 testsuite/libgomp.c++/reduction-3.C,
4793 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4794 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4795 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4796 New files, largely cribbed from the C testsuite.
4798 2005-10-12 Jakub Jelinek <jakub@redhat.com>
4800 * testsuite/libgomp.fortran/character1.f90: New test.
4801 * testsuite/libgomp.fortran/character2.f90: New test.
4803 * testsuite/libgomp.dg/nested-1.c: New test.
4804 * testsuite/libgomp.dg/nested-2.c: New test.
4805 * testsuite/libgomp.fortran/do1.f90: New test.
4806 * testsuite/libgomp.fortran/do2.f90: New test.
4808 * testsuite/libgomp.fortran/reference1.f90: New test.
4810 2005-10-11 Jakub Jelinek <jakub@redhat.com>
4812 * testsuite/libgomp.dg/reduction-1.c: New test.
4813 * testsuite/libgomp.dg/reduction-2.c: New test.
4814 * testsuite/libgomp.dg/reduction-3.c: New test.
4816 2005-10-10 Jakub Jelinek <jakub@redhat.com>
4818 * testsuite/libgomp.dg/atomic-1.c: New test.
4819 * testsuite/libgomp.dg/atomic-2.c: New test.
4821 2005-10-09 Richard Henderson <rth@redhat.com>
4823 * critical.c (atomic_lock): New.
4824 (initialize_critical): Initialize it.
4825 (GOMP_atomic_start, GOMP_atomic_end): New.
4826 * libgomp.map: Export them.
4827 * libgomp_g.h: Declare them.
4829 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4831 2005-10-02 Richard Henderson <rth@redhat.com>
4833 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
4834 to XCFLAGS instead of CFLAGS.
4836 2005-09-30 Richard Henderson <rth@redhat.com>
4838 * configure.ac: Determine whether -pthread or -lpthread is needed.
4839 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4840 * Makefine.in, configure: Rebuild.
4842 2005-09-28 Richard Henderson <rth@redhat.com>
4844 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4845 * testsuite/libgomp.dg/omp-single-3.c: New test.
4847 2005-09-28 Diego Novillo <dnovillo@redhat.com>
4849 * testsuite/libgomp.dg/omp-single-2.c: New test.
4850 * testsuite/libgomp.dg/shared-2.c: Fix return code.
4852 2005-09-27 Richard Henderson <rth@redhat.com>
4854 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4855 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4857 2005-09-27 Jakub Jelinek <jakub@redhat.com>
4859 * testsuite/libgomp.dg/omp-loop03.c: New test.
4861 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4863 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4865 2005-09-27 Diego Novillo <dnovillo@redhat.com>
4867 * testsuite/libgomp.dg/omp-single-1.c: New test.
4868 * testsuite/libgomp.dg/shared-1.c: Return 0.
4869 Add prototype for abort.
4870 * testsuite/libgomp.dg/shared-2.c: Likewise.
4872 2005-09-26 Jakub Jelinek <jakub@redhat.com>
4874 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4877 2005-09-26 Diego Novillo <dnovillo@redhat.com>
4879 * testsuite/libgomp.dg/shared-1.c: New test.
4880 * testsuite/libgomp.dg/shared-2.c: New test.
4882 2005-09-24 Richard Henderson <rth@redhat.com>
4884 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4886 2005-09-24 Richard Henderson <rth@redhat.com>
4888 * iter.c (gomp_iter_static_next): Round up when computing number
4889 of iterations. Don't bother distributing a remainder equally.
4891 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4892 Don't call srand. Zero b before testing.
4895 2005-09-24 Jakub Jelinek <jakub@redhat.com>
4897 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4898 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4900 2005-09-23 Jakub Jelinek <jakub@redhat.com>
4902 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4903 without !$omp end do, followed immediately by subroutine end.
4905 2005-09-23 Diego Novillo <dnovillo@redhat.com>
4907 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4909 2005-09-22 Richard Henderson <rth@redhat.com>
4911 * critical.c (GOMP_critical_name_start): Change argument to void**.
4912 Reuse the pointer space if the mutex fits.
4913 (GOMP_critical_name_end): Likewise.
4914 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4915 * libgomp_g.h (GOMP_critical_name_start): Update decl.
4916 (GOMP_critical_name_end): Likewise.
4917 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4918 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4920 2005-09-20 Richard Henderson <rth@redhat.com>
4922 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4923 (create_lock_lock): New.
4924 (initialize_critical): Initialize it.
4925 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4926 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4928 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4930 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4932 2005-09-20 Diego Novillo <dnovillo@redhat.com>
4934 * testsuite/libgomp.dg/omp-loop01.c: New test.
4935 * testsuite/libgomp.dg/omp-loop02.c: New test.
4937 2005-09-20 Jakub Jelinek <jakub@redhat.com>
4939 * configure.ac (AC_PROG_FC): Add.
4940 (USE_FORTRAN): New automake conditional.
4941 * configure: Rebuilt.
4942 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4943 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4944 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4945 Add rules to build them.
4946 * Makefile.in: Rebuilt.
4947 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4949 * libgomp.map: Add Fortran wrappers.
4950 * libgomp_f.h.in: New file.
4951 * omp_lib.h.in: New file.
4952 * omp_lib.f90.in: New file.
4953 * fortran.c: New file.
4954 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4955 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4956 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4957 libgfortran has been built.
4958 * testsuite/libgomp.fortran/fortran.exp: New file.
4959 * testsuite/libgomp.fortran/omp_cond1.f: New test.
4960 * testsuite/libgomp.fortran/omp_cond2.f: New test.
4961 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4962 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4963 * testsuite/libgomp.fortran/omp_hello.f: New test.
4964 * testsuite/libgomp.fortran/omp_orphan.f: New test.
4965 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4966 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4967 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4968 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4969 * testsuite/libgomp.fortran/omp_reduction.f: New test.
4970 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4971 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4973 2005-08-30 Richard Henderson <rth@redhat.com>
4975 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4976 function for when aliases are not usable.
4977 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4978 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4979 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4980 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4981 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4982 GOMP_loop_ordered_guided_next): Likewise.
4983 * ordered.c (GOMP_ordered_start): Likewise.
4985 2005-08-01 Diego Novillo <dnovillo@redhat.com>
4987 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4988 * testsuite/libgomp.dg/omp_hello.c: Fix return code
4989 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4990 * testsuite/libgomp.dg/omp_orphan.c: Likewise
4991 * testsuite/libgomp.dg/omp_reduction.c: Likewise
4992 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4993 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4994 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4995 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4997 2005-07-07 Eric Christopher <echristo@redhat.com>
4998 Diego Novillo <dnovillo@redhat.com>
5000 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5001 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5003 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5004 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5005 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5006 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5007 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5008 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5009 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5011 2005-06-13 Diego Novillo <dnovillo@redhat.com>
5013 * TOPLEVEL.patch: Remove.
5015 2005-05-16 Richard Henderson <rth@redhat.com>
5017 * configure.ac: Test for clock_gettime.
5018 * config.h.in, configure: Rebuild.
5019 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5020 (omp_get_wtime): Use clock_gettime if available.
5021 (omp_get_wtick): Use clock_getres if available.
5023 2005-05-11 Richard Henderson <rth@redhat.com>
5025 * config/linux/ia64/futex.h: New file.
5026 * configure.tgt: Use it.
5028 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5030 2005-05-07 Richard Henderson <rth@redhat.com>
5032 * config/linux/powerpc/futex.h: New file.
5033 * configure.tgt: Use it.
5035 * config/linux/i486/futex.h: Merge ...
5036 * config/linux/x86_64/futex.h: ... into ...
5037 * config/linux/x86/futex.h: ... here.
5038 * configure.tgt: Update to match.
5040 2005-05-06 Richard Henderson <rth@redhat.com>
5042 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5043 * config/linux/i486/futex.h: Likewise.
5044 * config/linux/x86_64/futex.h: Likewise.
5046 * config/linux/lock.c: New file.
5047 * config/linux/omp-lock.h: New file.
5049 * critical.c, env.h: Don't include omp.h
5050 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5051 * config/posix/time.c: Likewise.
5052 * config/posix/omp-lock.h: New file.
5053 * libgomp.h: Include omp-lock.h and omp.h.
5054 * Makefile.am (nodist_include_HEADERS): New.
5056 * configure.ac (PERL): New.
5057 * mkomp_h.pl: New file.
5058 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5060 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5062 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5063 build directory. Re-add -march=i486 hack.
5065 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5066 (libgomp_link_flags): Remove.
5067 (libgomp_initialized): Remove.
5068 (libgomp_init): Don't protect from reinitialization. Copy code
5069 from libstdc++ for getting the multilib set correctly.
5071 2005-05-05 Richard Henderson <rth@redhat.com>
5073 * config/linux/alpha/futex.h: New file.
5074 * configure.tgt (alpha*-*-linux*): Use it.
5076 * config/posix/mutex.c: New file.
5077 * config/posix/sem.c: Use libgomp.h.
5079 * configure.tgt (x86_64-linux): Also test CC for -m32.
5080 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5082 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5085 * Makefile.am (SUBDIRS): New.
5086 (libgomp_la_LDFLAGS): Add -lpthread.
5087 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5088 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5090 * libgomp_g.h: New file.
5091 * libgomp.h: Split out all public declarations to libgomp_g.h.
5092 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5093 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5094 * config/linux/sem.h: Likewise.
5095 * config/posix/sem.h: Likewise.
5097 * Makefile.am (AM_LDFLAGS): New.
5098 (libgomp_version_script): Split out from ...
5099 (libgomp_la_LDFLAGS): ... here.
5100 (libgomp_version_info): New.
5101 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5102 (LIBGOMP_ENABLE): New.
5103 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5104 (LIBGOMP_ENABLE_SYMVERS): New.
5105 * configure.ac (AC_INIT): Version 1.0.
5106 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5107 (enable-linux-futex): Likewise. Rename from enable-futex.
5108 (libtool_VERSION): New.
5109 (LIBGOMP_ENABLE_SYMVERS): Use it.
5110 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5111 * Makefile.in, aclocal.m4, configure: Rebuild.
5113 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5114 (gomp_mutex_unlock_slow): Fix typo.
5115 * config/linux/sem.c: Similarly.
5116 (gomp_sem_post_slow): Fix typo.
5117 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5118 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5119 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5121 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5122 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5123 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5124 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5125 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5126 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5127 LDFLAGS. Pull enable_futex check to top-level.
5128 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5129 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5131 First attempt at real configury.
5132 * Makefile, config.h: Remove file.
5133 * Makefile.am, Makefile.in: New file.
5134 * acinclude.m4 aclocal.m4: New file.
5135 * configure.ac, configure.tgt, configure: New file.
5137 * config/posix/lock.c: Rename from sys-lock.c.
5138 * config/posix/mutex.h: Rename from sys-mutex.h.
5139 * config/posix/sem.c: Rename from sys-sem.c.
5140 * config/posix/sem.h: Rename from sys-sem.h.
5141 * config/posix/proc.c: Rename from sys-proc.c.
5142 * config/posix/time.c: Rename from sys-proc.c.
5144 * config/linux/mutex.c: New file.
5145 * config/linux/mutex.h: New file.
5146 * config/linux/sem.c: New file.
5147 * config/linux/sem.h: New file.
5148 * config/linux/i486/futex.h: New file.
5149 * config/linux/x86_64/futex.h: New file.
5151 2005-05-04 Richard Henderson <rth@redhat.com>
5153 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5154 * libgomp.h: Declare them.
5155 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5156 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5158 2005-05-04 Richard Henderson <rth@redhat.com>
5160 * libgomp-1 code drop
5162 2005-05-04 Richard Henderson <rth@redhat.com>
5164 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5165 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5166 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5167 (gomp_iter_static_next): Update.
5168 (gomp_ordered_static_next): Update.
5169 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5170 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5171 totally empty range.
5172 (gomp_loop_ordered_static_next): Refine test for calling
5173 gomp_ordered_static_next.
5174 * testsuite/ordered-1.c: Add case for more threads than iterations.
5176 * iter.c (gomp_iter_runtime_next_locked): Remove.
5177 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5178 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5179 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5180 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5181 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5182 gomp_loop_ordered_guided_next): Downcase name, make static, add
5183 an external alias with the old name.
5184 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5185 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5186 switch and call one of the above static functions.
5187 * libgomp.h: Update.
5189 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5190 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5191 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5192 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5193 GOMP_loop_ordered_guided_start): Update to match.
5194 * sections.c (GOMP_sections_start): Likewise.
5195 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5197 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5198 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5199 Use bounds check instead of modulus.
5200 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5201 (gomp_ordered_last): Don't sync with ordered_owner here.
5202 (gomp_ordered_next): Likewise.
5203 (gomp_ordered_static_loop_next): Likewise.
5204 * loop.c, libgomp.h: Update to match.
5206 * libgomp.h (GOMP_barrier): Declare.
5208 * testsuite/barrier-1.c: New file.
5209 * testsuite/critical-1.c: New file.
5210 * testsuite/ordered-2.c: New file.
5211 * testsuite/ordered-1.c: New file.
5212 * testsuite/sections-1.c: New file.
5213 * testsuite/single-1.c: New file.
5214 * testsuite/Makefile (TESTS): Add them.
5216 2005-05-04 Richard Henderson <rth@redhat.com>
5218 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5219 * loop.c (GOMP_loop_static_start): If not the startup thread,
5220 acquire the mutex to wait for initialization complete.
5221 (GOMP_loop_ordered_static_start): Likewise.
5222 (GOMP_loop_ordered_runtime_start): Likewise.
5223 (GOMP_loop_ordered_static_first): Remove.
5224 (GOMP_loop_ordered_dynamic_first): Remove.
5225 (GOMP_loop_ordered_guided_first): Remove.
5226 (GOMP_loop_ordered_runtime_first): Remove.
5227 * ordered.c (gomp_ordered_loop_first): Post to own release when
5228 we're the first thread.
5229 (gomp_ordered_loop_last): Wait on release if not owner.
5230 (gomp_ordered_loop_next): Likewise.
5231 (gomp_ordered_static_loop_init): New.
5232 (gomp_ordered_static_loop_next): Use ordered_owner.
5233 (GOMP_ordered_start): Likewise.
5234 * work.c (gomp_new_work_share): Initialize ordered_owner.
5236 2005-05-03 Richard Henderson <rth@redhat.com>
5238 * Makefile (OPT): New.
5241 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5242 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5243 * libgomp.h, libgomp.map, NOTES: Update to match.
5245 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5246 Add initialized and thr members.
5247 (gomp_thread_start): Pause when initially spawned to wait for
5248 the whole team to be created.
5249 (gomp_team_start): Release team members at the end.
5251 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5252 (f_foo_1): Use GOMP_loop_end.
5253 (f_foo_2): Use GOMP_loop_end_nowait.
5255 * testsuite/loop-2.c: New file.
5256 * testsuite/Makefile (TESTS): Add it.
5258 2005-05-03 Richard Henderson <rth@redhat.com>
5260 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5261 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5262 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5265 * testsuite/Makefile: New file.
5266 * testsuite/loop-1.c: New file.
5268 2005-05-03 Richard Henderson <rth@redhat.com>
5270 Initial implementation and checkin.