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