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