]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
re PR driver/68463 (Offloading fails when some objects are compiled with LTO and...
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
2
3 PR driver/68463
4 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5
6 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
7
8 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
9 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
10 dims.
11 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12 -ftree-parallelize-loops/-fopenacc changes.
13 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
14 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
15 Likewise.
16 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
17 Likewise.
18 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
19 Likewise.
20 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
21 Likewise.
22 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
23 Likewise.
24 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
25 Likewise.
26 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
27 Likewise.
28 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
29 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
30 Likewise.
31 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
32 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
33 Likewise.
34 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
35 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
36 Likewise.
37
38 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
39
40 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
41
42 2016-02-19 Jakub Jelinek <jakub@redhat.com>
43
44 PR driver/69805
45 * testsuite/libgomp.c/pr69805.c: New test.
46
47 2016-02-16 Tom de Vries <tom@codesourcery.com>
48
49 PR lto/67709
50 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
51
52 2016-02-09 Tom de Vries <tom@codesourcery.com>
53
54 PR tree-optimization/69599
55 * testsuite/libgomp.c/omp-nested-3.c: New test.
56 * testsuite/libgomp.c/pr46032-2.c: New test.
57 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
58 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
59
60 2016-02-09 Tom de Vries <tom@codesourcery.com>
61
62 PR lto/69707
63 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
64
65 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
66
67 * testsuite/libgomp.c/target-31.c: Fix testcase.
68
69 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
70
71 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
72 clause.
73 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
74 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
75 reduction and map clauses.
76 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
77
78 2016-02-02 James Norris <jnorris@codesourcery.com>
79
80 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
81
82 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
83
84 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
85 * oacc-parallel.c (GOACC_host_data): Remove function definition.
86
87 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
88 cases.
89
90 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
91 variables.
92 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
93 (hsa_kmt_lib): Set variables.
94 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
95 always_ld_library_path.
96 * Makefile.in: Regenerate.
97 * configure: Likewise.
98 * testsuite/Makefile.in: Likewise.
99
100 * plugin/configfrag.ac (offload_additional_options)
101 (offload_additional_lib_paths): Don't amend for hsa offloading.
102 * configure: Regenerate.
103
104 * plugin/configfrag.ac: Don't configure for offloading target if
105 we don't build the corresponding plugin.
106 * configure: Regenerate.
107
108 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
109
110 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
111 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
112
113 2016-01-26 Tom de Vries <tom@codesourcery.com>
114
115 PR tree-optimization/69110
116 * testsuite/libgomp.c/pr69110.c: New test.
117
118 2016-01-25 Richard Biener <rguenther@suse.de>
119
120 PR lto/69393
121 * testsuite/libgomp.c++/pr69393.C: New testcase.
122
123 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
124
125 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
126 function wasn't mapped to the device with non-shared memory.
127
128 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
129
130 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
131
132 2016-01-19 Martin Jambor <mjambor@suse.cz>
133 Martin Liska <mliska@suse.cz>
134
135 * plugin/Makefrag.am: Add HSA plugin requirements.
136 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
137 (HSA_RUNTIME_LIB): Likewise.
138 (HSA_RUNTIME_CPPFLAGS): Likewise.
139 (HSA_RUNTIME_INCLUDE): New substitution.
140 (HSA_RUNTIME_LIB): Likewise.
141 (HSA_RUNTIME_LDFLAGS): Likewise.
142 (hsa-runtime): New configure option.
143 (hsa-runtime-include): Likewise.
144 (hsa-runtime-lib): Likewise.
145 (PLUGIN_HSA): New substitution variable.
146 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
147 configure options.
148 (PLUGIN_HSA_CPPFLAGS): Likewise.
149 (PLUGIN_HSA_LDFLAGS): Likewise.
150 (PLUGIN_HSA_LIBS): Likewise.
151 Check that we have access to HSA run-time.
152 * libgomp-plugin.h (offload_target_type): New element
153 OFFLOAD_TARGET_TYPE_HSA.
154 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
155 args.
156 (bool gomp_create_target_task): Updated.
157 (gomp_device_descr): Extra parameter of run_func and async_run_func,
158 new field can_run_func.
159 * libgomp_g.h (GOMP_target_ext): Update prototype.
160 * oacc-host.c (host_run): Added a new parameter args.
161 * target.c (calculate_firstprivate_requirements): New function.
162 (copy_firstprivate_data): Likewise.
163 (gomp_target_fallback_firstprivate): Use them.
164 (gomp_target_unshare_firstprivate): New function.
165 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
166 devices.
167 (GOMP_target): Do host fallback for all shared memory devices. Do not
168 pass any args to plugins.
169 (GOMP_target_ext): Introduce device-specific argument parameter args.
170 Allow host fallback if device shares memory. Do not remap data if
171 device has shared memory.
172 (gomp_target_task_fn): Likewise. Also treat shared memory devices
173 like host fallback for mappings.
174 (GOMP_target_data): Treat shared memory devices like host fallback.
175 (GOMP_target_data_ext): Likewise.
176 (GOMP_target_update): Likewise.
177 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
178 gomp_create_target_task.
179 (GOMP_target_enter_exit_data): Likewise.
180 (omp_target_alloc): Treat shared memory devices like host fallback.
181 (omp_target_free): Likewise.
182 (omp_target_is_present): Likewise.
183 (omp_target_memcpy): Likewise.
184 (omp_target_memcpy_rect): Likewise.
185 (omp_target_associate_ptr): Likewise.
186 (gomp_load_plugin_for_device): Also load can_run.
187 * task.c (GOMP_PLUGIN_target_task_completion): Free
188 firstprivate_copies.
189 (gomp_create_target_task): Accept new argument args and store it to
190 ttask.
191 * plugin/plugin-hsa.c: New file.
192
193 2016-01-18 Tom de Vries <tom@codesourcery.com>
194
195 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
196 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
197 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
198 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
199 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
200 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
201 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
202 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
203 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
204 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
205 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
206 Same.
207 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
208 Same.
209 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
210 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
211 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
212 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
213 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
214 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
215 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
216 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
217 Same.
218 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
219
220 2016-01-15 Jakub Jelinek <jakub@redhat.com>
221
222 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
223
224 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
225
226 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
227
228 2016-01-12 James Norris <jnorris@codesourcery.com>
229
230 * libgomp.texi: Updates for OpenACC.
231
232 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
233
234 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
235
236 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
237
238 PR fortran/66680
239 * testsuite/libgomp.fortran/pr66680.f90: New test.
240
241 2016-01-07 Jakub Jelinek <jakub@redhat.com>
242
243 PR middle-end/68960
244 * testsuite/libgomp.c/pr68960.c: New test.
245
246 2016-01-06 Nathan Sidwell <nathan@acm.org>
247
248 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
249 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
250
251 2016-01-04 Jakub Jelinek <jakub@redhat.com>
252
253 Update copyright years.
254
255 * libgomp.texi: Bump @copying's copyright year.
256
257 2015-12-31 Nathan Sidwell <nathan@acm.org>
258
259 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
260 dg-additional-options syntax.
261 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
262 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
263 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
264 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
265 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
266 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
267 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
268 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
269 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
270 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
271 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
272 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
273 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
274 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
275 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
276 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
277 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
278 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
279
280 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
281
282 * libgomp.h (REFCOUNT_LINK): Define.
283 (struct splay_tree_key_s): Add link_key.
284 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
285 Replace target address of the pointer with target address of newly
286 mapped object in the splay tree. Set link pointer on target to the
287 device address of the mapped object.
288 (gomp_unmap_vars): Restore target address of the pointer in the splay
289 tree for REFCOUNT_LINK objects after unmapping.
290 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
291 declare target link" objects.
292 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
293 "omp declare target link" objects, which were mapped for the image.
294 (gomp_exit_data): Restore target address of the pointer in the splay
295 tree for REFCOUNT_LINK objects after unmapping.
296 * testsuite/libgomp.c/target-link-1.c: New file.
297
298 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
299
300 * libgomp.h (gomp_device_state): New enum.
301 (struct gomp_device_descr): Replace is_initialized with state.
302 (gomp_fini_device): Remove declaration.
303 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
304 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
305 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
306 (acc_set_device_type): Use state instead of is_initialized.
307 (acc_set_device_num): Likewise.
308 * target.c (resolve_device): Use state instead of is_initialized.
309 Do not initialize finalized device.
310 (gomp_map_vars): Do nothing if device is finalized.
311 (gomp_unmap_vars): Likewise.
312 (gomp_update): Likewise.
313 (GOMP_offload_register_ver): Use state instead of is_initialized.
314 (GOMP_offload_unregister_ver): Likewise.
315 (gomp_init_device): Likewise.
316 (gomp_unload_device): Likewise.
317 (gomp_fini_device): Remove.
318 (gomp_get_target_fn_addr): Do nothing if device is finalized.
319 (GOMP_target): Go to host fallback if device is finalized.
320 (GOMP_target_ext): Likewise.
321 (gomp_exit_data): Do nothing if device is finalized.
322 (gomp_target_task_fn): Go to host fallback if device is finalized.
323 (gomp_target_fini): New static function.
324 (gomp_target_init): Use state instead of is_initialized.
325 Call gomp_target_fini at exit.
326
327 2015-12-09 Tom de Vries <tom@codesourcery.com>
328
329 PR tree-optimization/68716
330 * testsuite/libgomp.c/omp-nested-2.c: New test.
331
332 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
333
334 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
335 target openacc_nvidia_accel_selected.
336 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
337 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
338 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
339 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
340
341 2015-12-01 Julian Brown <julian@codesourcery.com>
342 James Norris <James_Norris@mentor.com>
343
344 * oacc-parallel.c (GOACC_host_data): New function.
345 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
346 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
347 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
348 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
349 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
350 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
351 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
352
353 2015-11-30 James Norris <jnorris@codesourcery.com>
354 Cesar Philippidis <cesar@codesourcery.com>
355
356 libgomp/
357 * libgomp.oacc-fortran/routine-5.f90: New test.
358 * libgomp.oacc-fortran/routine-7.f90: New test.
359 * libgomp.oacc-fortran/routine-9.f90: New test.
360
361 2015-11-30 Tom de Vries <tom@codesourcery.com>
362
363 PR tree-optimization/46032
364 * testsuite/libgomp.c/pr46032.c: New test.
365
366 2015-11-27 Jakub Jelinek <jakub@redhat.com>
367
368 PR libgomp/68579
369 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
370 (gomp_create_target_task): Call it before freeing
371 GOMP_TARGET_TASK_DATA tasks.
372
373 PR c/63326
374 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
375 in between case label and OpenMP standalone directives.
376 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
377
378 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
379
380 * configure: Regenerate.
381
382 2015-11-26 Jakub Jelinek <jakub@redhat.com>
383
384 * testsuite/libgomp.c/target-35.c: New test.
385
386 2015-11-22 James Norris <jnorris@codesourcery.com>
387 Cesar Philippidis <cesar@codesourcery.com>
388
389 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
390 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
391 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
392 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
393 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
394
395 2015-11-20 Jakub Jelinek <jakub@redhat.com>
396
397 PR middle-end/68221
398 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
399 * testsuite/libgomp.c/reduction-12.c: Likewise.
400 * testsuite/libgomp.c++/reduction-11.C: Likewise.
401 * testsuite/libgomp.c++/reduction-12.C: Likewise.
402
403 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
404
405 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
406 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
407 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
408 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
409 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
410 and fix.
411 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
412 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
413
414 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
415
416 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
417 worker & gang cases.
418 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
419
420 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
421
422 * config/nvptx/priority_queue.c: New file.
423
424 2015-11-14 Jakub Jelinek <jakub@redhat.com>
425
426 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
427 sections.
428
429 2015-11-14 Jakub Jelinek <jakub@redhat.com>
430 Aldy Hernandez <aldyh@redhat.com>
431 Ilya Verbin <ilya.verbin@intel.com>
432
433 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
434 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
435 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
436 iterators or IV by chunk size.
437 * parallel.c (gomp_resolve_num_threads): Don't assume that
438 if thr->ts.team is non-NULL, then pool must be non-NULL.
439 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
440 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
441 GOMP_PLUGIN_target_task_completion.
442 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
443 * Makefile.in: Regenerate.
444 * libgomp.h: Shuffle prototypes and forward definitions around so
445 priority queues can be defined.
446 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
447 (enum gomp_target_task_state): New enum.
448 (struct gomp_target_task): Add state, tgt, task and team fields.
449 (gomp_create_target_task): Change return type to bool, add
450 state argument.
451 (gomp_target_task_fn): Change return type to bool.
452 (struct gomp_device_descr): Add async_run_func.
453 (struct gomp_task): Remove children, next_child, prev_child,
454 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
455 Add pnode field.
456 (struct gomp_taskgroup): Remove children.
457 Add taskgroup_queue.
458 (struct gomp_team): Change task_queue type to a priority queue.
459 (splay_compare): Define inline.
460 (priority_queue_offset): New.
461 (priority_node_to_task): New.
462 (task_to_priority_node): New.
463 * oacc-mem.c: Do not include splay-tree.h.
464 * priority_queue.c: New file.
465 * priority_queue.h: New file.
466 * splay-tree.c: Do not include splay-tree.h.
467 (splay_tree_foreach_internal): New.
468 (splay_tree_foreach): New.
469 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
470 (splay_tree_callback): Define typedef.
471 * target.c (splay_compare): Move to libgomp.h.
472 (GOMP_target): Don't adjust *thr in any way around running offloaded
473 task.
474 (GOMP_target_ext): Likewise. Handle target nowait.
475 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
476 return value from gomp_create_target_task, if false, fallthrough
477 as if no dependencies exist.
478 (gomp_target_task_fn): Change return type to bool, return true
479 if the task should have another part scheduled later. Handle
480 target nowait.
481 (gomp_load_plugin_for_device): Initialize async_run.
482 * task.c (gomp_init_task): Initialize children_queue.
483 (gomp_clear_parent_in_list): New.
484 (gomp_clear_parent_in_tree): New.
485 (gomp_clear_parent): Handle priorities.
486 (GOMP_task): Likewise.
487 (priority_queue_move_task_first,
488 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
489 New functions.
490 (gomp_create_target_task): Use priority queues. Change return type
491 to bool, add state argument, return false if for async
492 {{enter,exit} data,update} constructs no dependencies need to be
493 waited for, handle target nowait. Set task->fn to NULL instead of
494 gomp_target_task_fn.
495 (verify_children_queue): Remove.
496 (priority_list_upgrade_task): New.
497 (priority_queue_upgrade_task): New.
498 (verify_task_queue): Remove.
499 (priority_list_downgrade_task): New.
500 (priority_queue_downgrade_task): New.
501 (gomp_task_run_pre): Use priority queues.
502 Abstract code out to priority_queue_downgrade_task.
503 (gomp_task_run_post_handle_dependers): Use priority queues.
504 (gomp_task_run_post_remove_parent): Likewise.
505 (gomp_task_run_post_remove_taskgroup): Likewise.
506 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
507 tasks specially.
508 (GOMP_taskwait): Likewise.
509 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
510 priority-queue_upgrade_task.
511 (GOMP_taskgroup_start): Use priority queues.
512 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
513 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
514 barrier.
515 * taskloop.c (GOMP_taskloop): Handle priorities.
516 * team.c (gomp_new_team): Call priority_queue_init.
517 (free_team): Call priority_queue_free.
518 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
519 team created for target nowait in implicit parallel region.
520 (gomp_team_start): For nested check, test thr->ts.level instead of
521 thr->ts.team != NULL.
522 * testsuite/libgomp.c/doacross-3.c: New test.
523 * testsuite/libgomp.c/ordered-5.c: New test.
524 * testsuite/libgomp.c/priority.c: New test.
525 * testsuite/libgomp.c/target-31.c: New test.
526 * testsuite/libgomp.c/target-32.c: New test.
527 * testsuite/libgomp.c/target-33.c: New test.
528 * testsuite/libgomp.c/target-34.c: New test.
529
530 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
531
532 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
533
534 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
535 loop is sequential.
536
537 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
538
539 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
540 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
541
542 2015-11-12 James Norris <jnorris@codesourcery.com>
543 Joseph Myers <joseph@codesourcery.com>
544
545 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
546 * oacc-parallel.c (GOACC_declare): New function.
547 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
548 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
549 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
550 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
551 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
552
553 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
554
555 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
556
557 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
558
559 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
560 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
561
562 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
563
564 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
565 inadvertent commit.
566
567 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
568
569 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
570 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
571 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
572 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
573 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
574
575 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
576
577 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
578 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
579
580 2015-11-05 Jakub Jelinek <jakub@redhat.com>
581 Ilya Verbin <ilya.verbin@intel.com>
582
583 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
584 GOMP_loop_nonmonotonic_dynamic_start,
585 GOMP_loop_nonmonotonic_guided_next,
586 GOMP_loop_nonmonotonic_guided_start,
587 GOMP_loop_ull_nonmonotonic_dynamic_next,
588 GOMP_loop_ull_nonmonotonic_dynamic_start,
589 GOMP_loop_ull_nonmonotonic_guided_next,
590 GOMP_loop_ull_nonmonotonic_guided_start,
591 GOMP_parallel_loop_nonmonotonic_dynamic,
592 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
593 (GOMP_target_41): Renamed to ...
594 (GOMP_target_ext): ... this. Add num_teams and thread_limit
595 arguments.
596 (GOMP_target_data_41): Renamed to ...
597 (GOMP_target_data_ext): ... this.
598 (GOMP_target_update_41): Renamed to ...
599 (GOMP_target_update_ext): ... this.
600 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
601 GOMP_target_data_ext and GOMP_target_update_ext instead of
602 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
603 Export GOMP_loop_nonmonotonic_dynamic_next,
604 GOMP_loop_nonmonotonic_dynamic_start,
605 GOMP_loop_nonmonotonic_guided_next,
606 GOMP_loop_nonmonotonic_guided_start,
607 GOMP_loop_ull_nonmonotonic_dynamic_next,
608 GOMP_loop_ull_nonmonotonic_dynamic_start,
609 GOMP_loop_ull_nonmonotonic_guided_next,
610 GOMP_loop_ull_nonmonotonic_guided_start,
611 GOMP_parallel_loop_nonmonotonic_dynamic and
612 GOMP_parallel_loop_nonmonotonic_guided.
613 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
614 GOMP_parallel_loop_nonmonotonic_guided,
615 GOMP_loop_nonmonotonic_dynamic_start,
616 GOMP_loop_nonmonotonic_guided_start,
617 GOMP_loop_nonmonotonic_dynamic_next,
618 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
619 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
620 GOMP_loop_ull_nonmonotonic_guided_start,
621 GOMP_loop_ull_nonmonotonic_dynamic_next,
622 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
623 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
624 functions.
625 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
626 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
627 Use gomp_map_val function.
628 (gomp_target_fallback_firstprivate): New static function.
629 (GOMP_target_41): Renamed to ...
630 (GOMP_target_ext): ... this. Add num_teams and thread_limit
631 arguments. Move firstprivate fallback handling into a new
632 function.
633 (GOMP_target_data_41): Renamed to ...
634 (GOMP_target_data_ext): ... this.
635 (GOMP_target_update_41): Renamed to ...
636 (GOMP_target_update_ext): ... this.
637 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
638 gomp_map_0len_lookup instead of gomp_map_lookup.
639 (omp_target_is_present): Use gomp_map_0len_lookup instead of
640 gomp_map_lookup.
641 * testsuite/libgomp.c/target-28.c: Likewise.
642 * testsuite/libgomp.c/monotonic-1.c: New test.
643 * testsuite/libgomp.c/monotonic-2.c: New test.
644 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
645 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
646 * testsuite/libgomp.c/pr66199-5.c: New test.
647 * testsuite/libgomp.c/pr66199-6.c: New test.
648 * testsuite/libgomp.c/pr66199-7.c: New test.
649 * testsuite/libgomp.c/pr66199-8.c: New test.
650 * testsuite/libgomp.c/pr66199-9.c: New test.
651 * testsuite/libgomp.c/reduction-11.c: New test.
652 * testsuite/libgomp.c/reduction-12.c: New test.
653 * testsuite/libgomp.c/reduction-13.c: New test.
654 * testsuite/libgomp.c/reduction-14.c: New test.
655 * testsuite/libgomp.c/reduction-15.c: New test.
656 * testsuite/libgomp.c/target-12.c (main): Adjust for
657 omp_target_is_present change for one-past-last element.
658 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
659 the same var is both mapped and privatized.
660 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
661 handling of zero-length array sections.
662 * testsuite/libgomp.c/target-28.c: New test.
663 * testsuite/libgomp.c/target-29.c: New test.
664 * testsuite/libgomp.c/target-30.c: New test.
665 * testsuite/libgomp.c/target-teams-1.c: New test.
666 * testsuite/libgomp.c++/member-6.C: New test.
667 * testsuite/libgomp.c++/member-7.C: New test.
668 * testsuite/libgomp.c++/monotonic-1.C: New test.
669 * testsuite/libgomp.c++/monotonic-2.C: New test.
670 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
671 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
672 * testsuite/libgomp.c++/pr66199-3.C: New test.
673 * testsuite/libgomp.c++/pr66199-4.C: New test.
674 * testsuite/libgomp.c++/pr66199-5.C: New test.
675 * testsuite/libgomp.c++/pr66199-6.C: New test.
676 * testsuite/libgomp.c++/pr66199-7.C: New test.
677 * testsuite/libgomp.c++/pr66199-8.C: New test.
678 * testsuite/libgomp.c++/pr66199-9.C: New test.
679 * testsuite/libgomp.c++/reduction-11.C: New test.
680 * testsuite/libgomp.c++/reduction-12.C: New test.
681 * testsuite/libgomp.c++/target-13.C: New test.
682 * testsuite/libgomp.c++/target-14.C: New test.
683 * testsuite/libgomp.c++/target-15.C: New test.
684 * testsuite/libgomp.c++/target-16.C: New test.
685 * testsuite/libgomp.c++/target-17.C: New test.
686 * testsuite/libgomp.c++/target-18.C: New test.
687 * testsuite/libgomp.c++/target-19.C: New test.
688
689 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
690
691 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
692 and reduction copy.
693 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
694 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
695 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
696 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
697 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
698 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
699 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
700 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
701 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
702 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
703 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
704 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
705 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
706 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
707
708 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
709
710 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
711 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
712 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
713 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
714 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
715 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
716 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
717 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
718
719 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
720
721 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
722 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
723 (GOMP_OFFLOAD_openacc_parallel): Likewise.
724 * oacc-host.c (host_openacc_exec): Likewise.
725 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
726
727 2015-11-03 Julian Brown <julian@codesourcery.com>
728 Thomas Schwinge <thomas@codesourcery.com>
729
730 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
731 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
732 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
733 Likewise.
734 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
735 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
736
737 2015-11-03 James Norris <jnorris@codesourcery.com>
738
739 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
740 file.
741 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
742 Likewise.
743 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
744 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
745 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
746 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
747 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
748
749 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
750
751 * openacc.h (enum acc_device_t): Reformat. Ensure layout
752 compatibility.
753 (enum acc_async_t): Reformat.
754 (acc_on_device): Declare compatible with builtin and provide C++
755 wrapper.
756 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
757
758 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
759 Cesar Philippidis <cesar@codesourcery.com>
760
761 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
762 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
763 ... this. Add a description of the test at the top of the file.
764 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
765 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
766 ... this. Add a description of the test at the top of the file.
767
768 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
769
770 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
771 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
772 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
773 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
774 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
775 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
776
777 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
778
779 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
780 dimensions.
781
782 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
783
784 PR testsuite/68063
785 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
786
787 2015-10-27 James Norris <jnorris@codesourcery.com>
788
789 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
790 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
791
792 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
793
794 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
795 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
796
797 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
798 acc_device_nvidia usage.
799 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
800 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
801 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
802
803 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
804 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
805
806 PR libgomp/66518
807 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
808
809 PR libgomp/65437
810 PR libgomp/66518
811 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
812 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
813
814 2015-10-23 Tom de Vries <tom@codesourcery.com>
815
816 PR testsuite/68063
817 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
818
819 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
820
821 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
822 vector_length.
823 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
824
825 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
826 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
827
828 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
829 to 0 when mapnum is 0.
830
831 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
832
833 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
834 Cast to int from int32_t.
835
836 2015-10-13 Jakub Jelinek <jakub@redhat.com>
837 Aldy Hernandez <aldyh@redhat.com>
838 Ilya Verbin <ilya.verbin@intel.com>
839
840 * config/linux/affinity.c (omp_get_place_num_procs,
841 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
842 * config/linux/doacross.h: New file.
843 * config/posix/affinity.c (omp_get_place_num_procs,
844 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
845 * config/posix/doacross.h: New file.
846 * env.c: Include gomp-constants.h.
847 (struct gomp_task_icv): Rename run_sched_modifier to
848 run_sched_chunk_size.
849 (gomp_max_task_priority_var): New variable.
850 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
851 (handle_omp_display_env): Change _OPENMP value from 201307 to
852 201511. Print OMP_MAX_TASK_PRIORITY.
853 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
854 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
855 chunk_size and run_sched_modifier to run_sched_chunk_size.
856 (omp_get_max_task_priority, omp_get_initial_device,
857 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
858 omp_get_partition_place_nums): New functions.
859 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
860 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
861 to chunk_size.
862 (omp_get_num_places_, omp_get_place_num_procs_,
863 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
864 omp_get_place_proc_ids_8_, omp_get_place_num_,
865 omp_get_partition_num_places_, omp_get_partition_place_nums_,
866 omp_get_partition_place_nums_8_, omp_get_initial_device_,
867 omp_get_max_task_priority_): New functions.
868 * libgomp_g.h (GOMP_loop_doacross_static_start,
869 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
870 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
871 GOMP_loop_ull_doacross_dynamic_start,
872 GOMP_loop_ull_doacross_guided_start,
873 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
874 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
875 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
876 GOMP_target_data_41, GOMP_target_update_41,
877 GOMP_target_enter_exit_data): New prototypes.
878 (GOMP_task): Add prototype argument.
879 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
880 (struct gomp_doacross_work_share): New type.
881 (struct gomp_work_share): Add doacross field.
882 (struct gomp_task_icv): Rename run_sched_modifier to
883 run_sched_chunk_size.
884 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
885 GOMP_TASK_UNDEFERRED. Add comments.
886 (struct gomp_task_depend_entry): Add comments.
887 (struct gomp_task): Likewise.
888 (struct gomp_taskgroup): Likewise.
889 (struct gomp_target_task): New type.
890 (struct gomp_team): Add comment.
891 (gomp_get_place_proc_ids_8, gomp_doacross_init,
892 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
893 gomp_create_target_task, gomp_target_task_fn): New prototypes.
894 (struct target_var_desc): New type.
895 (struct target_mem_desc): Adjust comment. Use struct
896 target_var_desc instead of splay_tree_key for list.
897 (REFCOUNT_INFINITY): Define.
898 (struct splay_tree_key_s): Remove copy_from field.
899 (struct gomp_device_descr): Add dev2dev_func field.
900 (enum gomp_map_vars_kind): New enum.
901 (gomp_map_vars): Add one argument.
902 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
903 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
904 omp_get_place_num_procs, omp_get_place_num_procs_,
905 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
906 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
907 omp_get_place_num_, omp_get_partition_num_places,
908 omp_get_partition_num_places_, omp_get_partition_place_nums,
909 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
910 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
911 omp_target_free, omp_target_is_present, omp_target_memcpy,
912 omp_target_memcpy_rect, omp_target_associate_ptr and
913 omp_target_disassociate_ptr.
914 (GOMP_4.0.2): Renamed to ...
915 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
916 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
917 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
918 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
919 GOMP_loop_doacross_static_start, GOMP_doacross_post,
920 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
921 GOMP_loop_ull_doacross_guided_start,
922 GOMP_loop_ull_doacross_runtime_start,
923 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
924 GOMP_doacross_ull_wait.
925 * libgomp.texi: Document omp_get_max_task_priority.
926 Rename modifier argument to chunk_size for omp_set_schedule and
927 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
928 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
929 to run_sched_chunk_size renaming.
930 (GOMP_loop_ordered_runtime_start): Likewise.
931 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
932 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
933 GOMP_parallel_loop_runtime_start): New functions.
934 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
935 to run_sched_chunk_size renaming.
936 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
937 GOMP_loop_doacross_guided_start): New functions or aliases.
938 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
939 run_sched_modifier to run_sched_chunk_size renaming.
940 (GOMP_loop_ull_ordered_runtime_start): Likewise.
941 (gomp_loop_ull_doacross_static_start,
942 gomp_loop_ull_doacross_dynamic_start,
943 gomp_loop_ull_doacross_guided_start,
944 GOMP_loop_ull_doacross_runtime_start): New functions.
945 (GOMP_loop_ull_doacross_static_start,
946 GOMP_loop_ull_doacross_dynamic_start,
947 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
948 * oacc-mem.c (acc_map_data, present_create_copy,
949 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
950 to gomp_map_vars.
951 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
952 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
953 instead of false to gomp_map_vars.
954 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
955 * omp.h.in (omp_lock_hint_t): New type.
956 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
957 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
958 omp_get_place_num, omp_get_partition_num_places,
959 omp_get_partition_place_nums, omp_get_initial_device,
960 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
961 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
962 omp_target_associate_ptr, omp_target_disassociate_ptr): New
963 prototypes.
964 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
965 (omp_lock_hint_none, omp_lock_hint_uncontended,
966 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
967 omp_lock_hint_speculative): New parameters.
968 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
969 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
970 omp_get_place_num, omp_get_partition_num_places,
971 omp_get_partition_place_nums, omp_get_initial_device,
972 omp_get_max_task_priority): New interfaces.
973 (omp_set_schedule, omp_get_schedule): Rename modifier argument
974 to chunk_size.
975 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
976 (omp_lock_hint_none, omp_lock_hint_uncontended,
977 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
978 omp_lock_hint_speculative): New parameters.
979 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
980 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
981 omp_get_place_num, omp_get_partition_num_places,
982 omp_get_partition_place_nums, omp_get_initial_device,
983 omp_get_max_task_priority): New functions and subroutines.
984 * ordered.c: Include stdarg.h and string.h.
985 (MAX_COLLAPSED_BITS): Define.
986 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
987 gomp_doacross_ull_init, GOMP_doacross_ull_post,
988 GOMP_doacross_ull_wait): New functions.
989 * target.c: Include errno.h.
990 (resolve_device): If device is not initialized, call
991 gomp_init_device on it.
992 (gomp_map_lookup): New function.
993 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
994 Don't bump refcount if REFCOUNT_INFINITY. Handle
995 GOMP_MAP_ALWAYS_TO_P.
996 (get_kind): Rename is_openacc argument to short_mapkind.
997 (gomp_map_pointer): Use gomp_map_lookup.
998 (gomp_map_fields_existing): New function.
999 (gomp_map_vars): Rename is_openacc argument to short_mapkind
1000 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
1001 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
1002 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
1003 Adjust for tgt->list changed type and copy_from living in there.
1004 (gomp_copy_from_async): Adjust for tgt->list changed type and
1005 copy_from living in there.
1006 (gomp_unmap_vars): Likewise.
1007 (gomp_update): Likewise. Rename is_openacc argument to
1008 short_mapkind. Don't fail if object is not mapped.
1009 (gomp_load_image_to_device): Initialize refcount to
1010 REFCOUNT_INFINITY.
1011 (gomp_target_fallback): New function.
1012 (gomp_get_target_fn_addr): Likewise.
1013 (GOMP_target): Adjust gomp_map_vars caller, use
1014 gomp_get_target_fn_addr and gomp_target_fallback.
1015 (GOMP_target_41): New function.
1016 (gomp_target_data_fallback): New function.
1017 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
1018 (GOMP_target_data_41): New function.
1019 (GOMP_target_update): Adjust gomp_update caller.
1020 (GOMP_target_update_41): New function.
1021 (gomp_exit_data, GOMP_target_enter_exit_data,
1022 gomp_target_task_fn, omp_target_alloc, omp_target_free,
1023 omp_target_is_present, omp_target_memcpy,
1024 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
1025 omp_target_associate_ptr, omp_target_disassociate_ptr,
1026 gomp_load_plugin_for_device): New functions.
1027 * task.c: Include gomp-constants.h. Include taskloop.c
1028 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
1029 (gomp_task_handle_depend): New function.
1030 (GOMP_task): Use it. Add priority argument. Use
1031 gomp-constant.h constants instead of hardcoded numbers.
1032 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
1033 (gomp_create_target_task): New function.
1034 (verify_children_queue, verify_taskgroup_queue,
1035 verify_task_queue): New functions.
1036 (gomp_task_run_pre): Call verify_*_queue functions.
1037 If an upcoming tied task is about to leave the sibling or
1038 taskgroup queues in an invalid state, adjust appropriately.
1039 Remove taskgroup argument. Add comments.
1040 (gomp_task_run_post_handle_dependers): Add comments.
1041 (gomp_task_run_post_remove_parent): Likewise.
1042 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
1043 (GOMP_taskwait): Likewise. Add comments.
1044 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
1045 problem such that the first non parent_depends_on task does not
1046 end up at the end of the children queue.
1047 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
1048 GOMP_TASK_UNDEFERRED.
1049 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
1050 * taskloop.c: New file.
1051 * testsuite/lib/libgomp.exp
1052 (check_effective_target_offload_device_nonshared_as): New proc.
1053 * testsuite/libgomp.c/affinity-2.c: New test.
1054 * testsuite/libgomp.c/doacross-1.c: New test.
1055 * testsuite/libgomp.c/doacross-2.c: New test.
1056 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
1057 Add map clause to target.
1058 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
1059 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
1060 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
1061 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
1062 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
1063 Likewise.
1064 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
1065 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
1066 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
1067 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
1068 not defined. Use those where needed.
1069 * testsuite/libgomp.c/for-4.c: New test.
1070 * testsuite/libgomp.c/for-5.c: New test.
1071 * testsuite/libgomp.c/for-6.c: New test.
1072 * testsuite/libgomp.c/linear-1.c: New test.
1073 * testsuite/libgomp.c/ordered-4.c: New test.
1074 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
1075 only allowed on the loop iterator.
1076 * testsuite/libgomp.c/pr66199-3.c: New test.
1077 * testsuite/libgomp.c/pr66199-4.c: New test.
1078 * testsuite/libgomp.c/reduction-7.c: New test.
1079 * testsuite/libgomp.c/reduction-8.c: New test.
1080 * testsuite/libgomp.c/reduction-9.c: New test.
1081 * testsuite/libgomp.c/reduction-10.c: New test.
1082 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
1083 map(tofrom:s).
1084 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
1085 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
1086 * testsuite/libgomp.c/target-11.c: New test.
1087 * testsuite/libgomp.c/target-12.c: New test.
1088 * testsuite/libgomp.c/target-13.c: New test.
1089 * testsuite/libgomp.c/target-14.c: New test.
1090 * testsuite/libgomp.c/target-15.c: New test.
1091 * testsuite/libgomp.c/target-16.c: New test.
1092 * testsuite/libgomp.c/target-17.c: New test.
1093 * testsuite/libgomp.c/target-18.c: New test.
1094 * testsuite/libgomp.c/target-19.c: New test.
1095 * testsuite/libgomp.c/target-20.c: New test.
1096 * testsuite/libgomp.c/target-21.c: New test.
1097 * testsuite/libgomp.c/target-22.c: New test.
1098 * testsuite/libgomp.c/target-23.c: New test.
1099 * testsuite/libgomp.c/target-24.c: New test.
1100 * testsuite/libgomp.c/target-25.c: New test.
1101 * testsuite/libgomp.c/target-26.c: New test.
1102 * testsuite/libgomp.c/target-27.c: New test.
1103 * testsuite/libgomp.c/taskloop-1.c: New test.
1104 * testsuite/libgomp.c/taskloop-2.c: New test.
1105 * testsuite/libgomp.c/taskloop-3.c: New test.
1106 * testsuite/libgomp.c/taskloop-4.c: New test.
1107 * testsuite/libgomp.c++/ctor-13.C: New test.
1108 * testsuite/libgomp.c++/doacross-1.C: New test.
1109 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
1110 Replace offload_device with offload_device_nonshared_as.
1111 * testsuite/libgomp.c++/for-12.C: New test.
1112 * testsuite/libgomp.c++/for-13.C: New test.
1113 * testsuite/libgomp.c++/for-14.C: New test.
1114 * testsuite/libgomp.c++/linear-1.C: New test.
1115 * testsuite/libgomp.c++/member-1.C: New test.
1116 * testsuite/libgomp.c++/member-2.C: New test.
1117 * testsuite/libgomp.c++/member-3.C: New test.
1118 * testsuite/libgomp.c++/member-4.C: New test.
1119 * testsuite/libgomp.c++/member-5.C: New test.
1120 * testsuite/libgomp.c++/ordered-1.C: New test.
1121 * testsuite/libgomp.c++/reduction-5.C: New test.
1122 * testsuite/libgomp.c++/reduction-6.C: New test.
1123 * testsuite/libgomp.c++/reduction-7.C: New test.
1124 * testsuite/libgomp.c++/reduction-8.C: New test.
1125 * testsuite/libgomp.c++/reduction-9.C: New test.
1126 * testsuite/libgomp.c++/reduction-10.C: New test.
1127 * testsuite/libgomp.c++/reference-1.C: New test.
1128 * testsuite/libgomp.c++/simd14.C: New test.
1129 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
1130 * testsuite/libgomp.c++/target-5.C: New test.
1131 * testsuite/libgomp.c++/target-6.C: New test.
1132 * testsuite/libgomp.c++/target-7.C: New test.
1133 * testsuite/libgomp.c++/target-8.C: New test.
1134 * testsuite/libgomp.c++/target-9.C: New test.
1135 * testsuite/libgomp.c++/target-10.C: New test.
1136 * testsuite/libgomp.c++/target-11.C: New test.
1137 * testsuite/libgomp.c++/target-12.C: New test.
1138 * testsuite/libgomp.c++/taskloop-1.C: New test.
1139 * testsuite/libgomp.c++/taskloop-2.C: New test.
1140 * testsuite/libgomp.c++/taskloop-3.C: New test.
1141 * testsuite/libgomp.c++/taskloop-4.C: New test.
1142 * testsuite/libgomp.c++/taskloop-5.C: New test.
1143 * testsuite/libgomp.c++/taskloop-6.C: New test.
1144 * testsuite/libgomp.c++/taskloop-7.C: New test.
1145 * testsuite/libgomp.c++/taskloop-8.C: New test.
1146 * testsuite/libgomp.c++/taskloop-9.C: New test.
1147 * testsuite/libgomp.fortran/affinity1.f90: New test.
1148 * testsuite/libgomp.fortran/affinity2.f90: New test.
1149
1150 2015-10-13 Tom de Vries <tom@codesourcery.com>
1151
1152 PR tree-optimization/67476
1153 * testsuite/libgomp.c/autopar-3.c: New test.
1154 * testsuite/libgomp.c/autopar-4.c: New test.
1155 * testsuite/libgomp.c/autopar-5.c: New test.
1156 * testsuite/libgomp.c/autopar-6.c: New test.
1157 * testsuite/libgomp.c/autopar-7.c: New test.
1158 * testsuite/libgomp.c/autopar-8.c: New test.
1159
1160 2015-10-12 James Norris <jnorris@codesourcery.com>
1161
1162 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
1163 initializer.
1164
1165 2015-10-09 David Malcolm <dmalcolm@redhat.com>
1166
1167 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
1168 using load_gcc_lib.
1169
1170 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
1171
1172 * oacc-ptx.h: Remove file, moving its content into...
1173 * config/nvptx/fortran.c: ... here...
1174 * config/nvptx/oacc-init.c: ..., here...
1175 * config/nvptx/oacc-parallel.c: ..., and here.
1176 * config/nvptx/openacc.f90: New file.
1177 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
1178 (link_ptx): Don't link in predefined bits of PTX code.
1179
1180 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
1181 Bernd Schmidt <bernds@codesourcery.com>
1182
1183 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
1184 (struct targ_ptx_obj): New.
1185 (nvptx_tdata): Move earlier, change data format.
1186 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
1187 objects.
1188 (GOMP_OFFLOAD_load_image): Adjust.
1189
1190 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
1191
1192 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
1193 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1194 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1195 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1196 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1197 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1198 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1199 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1200 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1201 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1202 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1203 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1204 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1205 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1206 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1207 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1208 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1209 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1210 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1211 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1212 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1213 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1214 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1215 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1216 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1217 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1218 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1219 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1220 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1221 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1222 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1223 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1224 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1225 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1226 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1227 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1228 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1229 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1230 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1231 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1232 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1233 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1234 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1235 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1236 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1237 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1238 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1239 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1240 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1241 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1242 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1243 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1244 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1245 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1246 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1247 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1248 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1249 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1250 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1251 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1252 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1253 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1254 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1255
1256 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1257
1258 * oacc-init.c (acc_on_device): Force optimization level.
1259
1260 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
1261
1262 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
1263 (cuda_errlist): Delete.
1264 (cuda_error): Reimplement.
1265
1266 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1267
1268 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
1269 array.
1270 * libgomp.map (GOACC_parallel_keyed): New.
1271 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
1272 all callers.
1273 (GOACC_parallel_keyed): New interface. Lose geometry arguments
1274 and take keyed varargs list. Adjust call to exec_func.
1275 (GOACC_parallel): Force host fallback.
1276 * libgomp_g.h (GOACC_parallel): Remove.
1277 (GOACC_parallel_keyed): Declare.
1278 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
1279 (stuct targ_gn_descriptor): Replace name field with launch field.
1280 (nvptx_exec): Lose separate geometry args, take array. Process
1281 dynamic dimensions and adjust.
1282 (struct nvptx_tdata): Replace fn_names field with fn_descs.
1283 (GOMP_OFFLOAD_load_image): Adjust for change in function table
1284 data.
1285 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
1286 passing.
1287 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
1288 passing.
1289
1290 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1291
1292 PR libgomp/67141
1293 * oacc-int.h (goacc_host_init): Add declaration.
1294 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
1295 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
1296
1297 2015-09-08 Aditya Kumar <hiraditya@msn.com>
1298 Sebastian Pop <s.pop@samsung.com>
1299
1300 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
1301 match o/p.
1302 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
1303 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
1304 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
1305 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
1306 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
1307
1308 2015-09-03 Jakub Jelinek <jakub@redhat.com>
1309
1310 * configure.tgt: Add missing ;; in between nvptx and rtems
1311 snippets.
1312
1313 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1314
1315 * config/posix/pool.h (gomp_adjust_thread_attr): New.
1316 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
1317 (gomp_thread_pool_reservoir): Add priority member.
1318 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
1319 priority.
1320 (parse_thread_pools): Likewise.
1321 * team.c (gomp_team_start): Call configuration provided
1322 gomp_adjust_thread_attr(). Destroy thread attributes if
1323 necessary.
1324 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
1325
1326 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1327
1328 * config/posix/pool.h: New.
1329 * config/rtems/pool.h: Likewise.
1330 * config/rtems/proc.c: Likewise.
1331 * libgomp.h (gomp_thread_destructor): Declare.
1332 * team.c: Include configuration provided "pool.h".
1333 (gomp_get_thread_pool): Define in configuration.
1334 (gomp_team_end): Call configuration defined
1335 gomp_release_thread_pool().
1336
1337 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1338
1339 * config/rtems/bar.c: New.
1340 * config/rtems/bar.h: Likewise.
1341 * config/rtems/mutex.c: Likewise.
1342 * config/rtems/mutex.h: Likewise.
1343 * config/rtems/sem.c: Likewise.
1344 * config/rtems/sem.h: Likewise.
1345 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
1346 <sys/lock.h> header file.
1347 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
1348 supported by Newlib.
1349 * configure: Regenerate.
1350
1351 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1352
1353 * team.c (gomp_new_thread_pool): Delete and move content to ...
1354 (gomp_get_thread_pool): ... new function. Allocate and
1355 initialize thread pool on demand.
1356 (get_last_team): Use gomp_get_thread_pool().
1357 (gomp_team_start): Delete thread pool initialization.
1358
1359 2015-09-03 Tom de Vries <tom@codesourcery.com>
1360
1361 PR tree-optimization/65637
1362 * testsuite/libgomp.c/autopar-2.c: New test.
1363
1364 2015-08-29 Tom de Vries <tom@codesourcery.com>
1365
1366 PR tree-optimization/46193
1367 * testsuite/libgomp.c/pr46193.c: New test.
1368
1369 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
1370
1371 libgomp/
1372 * libgomp.map: Add 4.0.2 version.
1373 * target.c (offload_image_descr): Add version field.
1374 (gomp_load_image_to_device): Add version argument. Adjust plugin
1375 call. Improve load mismatch diagnostic.
1376 (gomp_unload_image_from_device): Add version argument. Adjust plugin
1377 call.
1378 (GOMP_offload_regster): Make stub function, move bulk to ...
1379 (GOMP_offload_register_ver): ... here. Process version argument.
1380 (GOMP_offload_unregister): Make stub function, move bulk to ...
1381 (GOMP_offload_unregister_ver): ... here. Process version argument.
1382 (gomp_init_device): Process version field.
1383 (gomp_unload_device): Process version field.
1384 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
1385 macros. Check plugin version.
1386 * libgomp.h (gomp_device_descr): Add version function field. Adjust
1387 loader and unloader types.
1388 * oacc-host.c: Include gomp-constants.h.
1389 (host_version): New.
1390 (host_load_image, host_unload_image): Adjust.
1391 (host_dispatch): Add host_version.
1392 * plugin/plugin-nvptx.c: Include gomp-constants.h.
1393 (GOMP_OFFLOAD_version): New.
1394 (GOMP_OFFLOAD_load_image): Add version arg and check it.
1395 (GOMP_OFFLOAD_unload_image): Likewise.
1396 * plugin/plugin-host.c: Include gomp-constants.h.
1397 (GOMP_OFFLOAD_version): New.
1398 (GOMP_OFFLOAD_load_image): Add version arg.
1399 (GOMP_OFFLOAD_unload_image): Likewise.
1400
1401 2015-08-24 Tom de Vries <tom@codesourcery.com>
1402
1403 PR tree-optimization/65468
1404 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
1405
1406 2015-08-24 Tom de Vries <tom@codesourcery.com>
1407
1408 PR tree-optimization/65468
1409 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
1410
1411 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
1412
1413 PR libgomp/66761
1414 PR libgomp/67303
1415 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
1416 (gomp_iter_guided_next): Idem.
1417 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
1418 (gomp_iter_ull_guided_next): Idem.
1419 * config/linux/wait.h (do_spin): Idem.
1420
1421 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1422
1423 * libgomp-plugin.h (enum offload_target_type): Remove
1424 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
1425 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
1426 * openacc.h (enum acc_device_t): Likewise.
1427 * openacc_lib.h: Likewise.
1428 * oacc-init.c (name_of_acc_device_t): Don't handle it.
1429 (acc_on_device): Just use __builtin_acc_on_device.
1430 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
1431 of acc_on_device builtin.
1432 * plugin/plugin-host.h: Remove file.
1433 * plugin/plugin-host.c: Likewise, but salvage some content into...
1434 * oacc-host.c: ... this file.
1435 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
1436 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
1437 * Makefile.in: Regenerate.
1438 * configure: Likewise.
1439 * testsuite/lib/libgomp.exp
1440 (check_effective_target_openacc_host_nonshm_selected): Remove.
1441 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
1442 ACC_DEVICE_TYPE=host_nonshm.
1443 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1444 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1445 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1446 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1447 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1448 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1449
1450 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1451 Jakub Jelinek <jakub@redhat.com>
1452
1453 * config/nvptx/affinity.c: New file.
1454 * config/nvptx/alloc.c: Likewise.
1455 * config/nvptx/bar.c: Likewise.
1456 * config/nvptx/barrier.c: Likewise.
1457 * config/nvptx/critical.c: Likewise.
1458 * config/nvptx/env.c: Likewise.
1459 * config/nvptx/error.c: Likewise.
1460 * config/nvptx/fortran.c: Likewise.
1461 * config/nvptx/iter.c: Likewise.
1462 * config/nvptx/iter_ull.c: Likewise.
1463 * config/nvptx/libgomp-plugin.c: Likewise.
1464 * config/nvptx/lock.c: Likewise.
1465 * config/nvptx/loop.c: Likewise.
1466 * config/nvptx/loop_ull.c: Likewise.
1467 * config/nvptx/mutex.c: Likewise.
1468 * config/nvptx/oacc-async.c: Likewise.
1469 * config/nvptx/oacc-cuda.c: Likewise.
1470 * config/nvptx/oacc-host.c: Likewise.
1471 * config/nvptx/oacc-init.c: Likewise.
1472 * config/nvptx/oacc-mem.c: Likewise.
1473 * config/nvptx/oacc-parallel.c: Likewise.
1474 * config/nvptx/oacc-plugin.c: Likewise.
1475 * config/nvptx/omp-lock.h: Likewise.
1476 * config/nvptx/ordered.c: Likewise.
1477 * config/nvptx/parallel.c: Likewise.
1478 * config/nvptx/proc.c: Likewise.
1479 * config/nvptx/ptrlock.c: Likewise.
1480 * config/nvptx/sections.c: Likewise.
1481 * config/nvptx/sem.c: Likewise.
1482 * config/nvptx/single.c: Likewise.
1483 * config/nvptx/splay-tree.c: Likewise.
1484 * config/nvptx/target.c: Likewise.
1485 * config/nvptx/task.c: Likewise.
1486 * config/nvptx/team.c: Likewise.
1487 * config/nvptx/time.c: Likewise.
1488 * config/nvptx/work.c: Likewise.
1489 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
1490 * configure: Regenerate.
1491 * configure.tgt (config_path): Set to "nvptx" for target
1492 nvptx*-*-*.
1493
1494 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
1495
1496 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
1497
1498 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
1499
1500 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
1501 (cuda_errlist): Constify.
1502 (errmsg): Move into ...
1503 (cuda_error): ... here. Make smaller.
1504 (_XSTR, _STR): Delete.
1505 (cuda_synames): Delete.
1506 (verify_device_library): Delete.
1507 (nvptx_init): Don't call it.
1508
1509 2015-07-28 Tom de Vries <tom@codesourcery.com>
1510
1511 * testsuite/libgomp.c/uns-outer-4.c: New test.
1512
1513 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
1514
1515 * testsuite/libgomp.c/pr66714.c: New test.
1516
1517 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
1518
1519 PR libgomp/66950
1520 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
1521 (fib_ref): New function.
1522 (fib): Correct corner cases in the recursion.
1523 (main): Replace the non-simd loop with fib_ref call.
1524 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
1525 subroutine.
1526 (fibonacci): Lower the parameter N to 30. Correct accordingly check
1527 for the last array element value. Replace the non-simd loop with
1528 fib_ref call. Remove redundant b_ref array. Remove the comparison
1529 of the last array element with according Fibonacci sequence element.
1530 (fib): Correct corner cases in the recursion.
1531
1532 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
1533
1534 * target.c (gomp_offload_image_to_device): Rename to ...
1535 (gomp_load_image_to_device): ... here.
1536 (GOMP_offload_register): Adjust call.
1537 (gomp_init_device): Likewise.
1538 (gomp_unload_image_from_device): New. Broken out of ...
1539 (GOMP_offload_unregister): ... here. Call it.
1540 (gomp_unload_device): New.
1541 * libgomp.h (gomp_unload_device): Declare.
1542 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
1543 mem maps.
1544
1545 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
1546
1547 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
1548 wait=-specific if.
1549 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
1550 !=0 condition.
1551 (goacc_waits): Move !num_waits handling to ...
1552 (GOACC_wait): ... here, the only caller that might have zero waits.
1553
1554 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
1555 (struct ptx_image_data): Move earlier, add fns field.
1556 (struct ptx_device): Add images and image_lock fields.
1557 (ptx_images, ptx_image_lock): Delete.
1558 (nvptx_open_device): Initialize images and image_lock fields.
1559 (nvptx_close_device): Destroy image_lock.
1560 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
1561 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
1562 fields.
1563
1564 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
1565
1566 * target.c (GOMP_offload_register): Use int for device type arg.
1567 (GOMP_offload_unregister): Likewise.
1568
1569 * target.c (struct_offload_image_descr): Constify host_table.
1570 (gomp_offload_image_to_device): Likewise.
1571 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
1572
1573 * libgomp.h (gomp_device_descr): Constify target data arguments.
1574 * target.c (struct offload_image_descr): Constify target_data.
1575 (gomp_offload_image_to_device): Likewise.
1576 (GOMP_offload_register): Likewise.
1577 (GOMP_offload_unrefister): Likewise.
1578 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
1579 GOMP_OFFLOAD_unload_image): Constify target data.
1580 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
1581 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
1582
1583 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
1584
1585 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
1586 Workaround driver library const error.
1587 (struct nvptx_tdata, nvptx_tdata_t): New.
1588 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
1589 type.
1590
1591 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
1592
1593 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
1594 of EPS parameter from integer to real.
1595 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
1596 type of EPS parameter from integer to real.
1597
1598 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
1599
1600 * team.c (get_last_team): New.
1601 (gomp_new_team): Recycle last non-nested team if possible.
1602 (gomp_team_end): Move team work share list free lock destruction
1603 to ...
1604 (free_team): ... here.
1605
1606 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
1607
1608 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
1609 and ref from int to double. Replaced their comparison with
1610 an inequality of their difference and EPS.
1611 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
1612 comparison of pri and a reference number with an inequality of their
1613 difference and EPS.
1614 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
1615 the comparison of sum and sum_ref with an inequality of their
1616 difference and EPS.
1617 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
1618 the comparison of pri and a reference number with an inequality of
1619 their difference and EPS.
1620
1621 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
1622
1623 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
1624 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
1625 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
1626 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
1627 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
1628 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
1629 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
1630 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
1631 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
1632 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
1633 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
1634 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
1635 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
1636 variables.
1637 (vec_mult): Likewise. Add #pragma omp taskwait.
1638 (main): Adjust caller.
1639 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
1640 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
1641 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
1642 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
1643 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
1644 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
1645 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
1646 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
1647 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
1648 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
1649 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
1650 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
1651 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
1652 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
1653 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
1654 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
1655 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
1656 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
1657 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
1658 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
1659 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
1660 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
1661 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
1662 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
1663 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
1664 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
1665 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
1666 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
1667 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
1668 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
1669 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
1670 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
1671 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
1672 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
1673 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
1674 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
1675 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
1676 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
1677 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
1678 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
1679 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
1680 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
1681 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
1682 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
1683 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
1684 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
1685 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
1686 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
1687 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
1688 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
1689 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
1690 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
1691 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
1692 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
1693 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
1694 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
1695 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
1696 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
1697 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
1698 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
1699 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
1700 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
1701 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
1702 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
1703 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
1704 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
1705 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
1706 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
1707 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
1708 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
1709 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
1710 (vec_mult): Add !$omp taskwait.
1711 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
1712 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
1713 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
1714 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
1715 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
1716 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
1717 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
1718 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
1719 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
1720 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
1721 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
1722 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
1723 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
1724 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
1725 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
1726 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
1727 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
1728 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
1729 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
1730 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
1731 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
1732 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
1733 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
1734 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
1735 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
1736 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
1737 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
1738 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
1739 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
1740 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
1741 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
1742 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
1743 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
1744 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
1745 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
1746 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
1747 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
1748 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
1749 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
1750 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
1751 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
1752 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
1753 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
1754 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
1755 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
1756 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
1757 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
1758 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
1759 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
1760 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
1761 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
1762 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
1763 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
1764 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
1765 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
1766 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
1767 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
1768 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
1769 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
1770 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
1771 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
1772 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
1773 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
1774 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
1775 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
1776 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
1777 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
1778
1779 2015-07-10 Tom de Vries <tom@codesourcery.com>
1780
1781 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
1782 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
1783
1784 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
1785
1786 PR libgomp/65099
1787 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
1788 in a 64-bit configuration.
1789 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
1790 offloading testing if no such device is available.
1791 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1792 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1793
1794 2015-07-08 Tom de Vries <tom@codesourcery.com>
1795
1796 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
1797 second call to f.
1798 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1799
1800 2015-07-07 Tom de Vries <tom@codesourcery.com>
1801
1802 PR tree-optimization/66642
1803 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
1804 iteration count case.
1805 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
1806 function, factor out of ...
1807 (main): ... here. Test low iteration count case.
1808
1809 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
1810
1811 * libgomp.h (gomp_thread_pool): Comment last_team field.
1812
1813 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
1814
1815 * testsuite/libgomp.c++/pr66702-1.C: Require
1816 vect_simd_clones effective target.
1817 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
1818
1819 2015-06-30 Tom de Vries <tom@codesourcery.com>
1820
1821 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
1822 already set. Use DEFAULT_CFLAGS in dg-runtest.
1823 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
1824 "-O2".
1825
1826 2015-06-30 Tom de Vries <tom@codesourcery.com>
1827
1828 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
1829 already set. Use DEFAULT_CFLAGS in dg-runtest.
1830 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
1831 * testsuite/libgomp.c++/pr64824.C: Same.
1832 * testsuite/libgomp.c++/pr64868.C: Same.
1833 * testsuite/libgomp.c++/pr66199-1.C: Same.
1834 * testsuite/libgomp.c++/pr66199-2.C: Same.
1835 * testsuite/libgomp.c++/target-2.C: Same.
1836 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
1837 -std=<standard> option.
1838 * testsuite/libgomp.c++/udr-11.C: Same.
1839 * testsuite/libgomp.c++/udr-12.C: Same.
1840 * testsuite/libgomp.c++/udr-13.C: Same.
1841 * testsuite/libgomp.c++/udr-14.C: Same.
1842 * testsuite/libgomp.c++/udr-15.C: Same.
1843 * testsuite/libgomp.c++/udr-16.C: Same.
1844 * testsuite/libgomp.c++/udr-17.C: Same.
1845 * testsuite/libgomp.c++/udr-18.C: Same.
1846 * testsuite/libgomp.c++/udr-19.C: Same.
1847 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
1848 * testsuite/libgomp.c++/simd-1.C: Same.
1849 * testsuite/libgomp.c++/simd-2.C: Same.
1850 * testsuite/libgomp.c++/simd-3.C: Same.
1851 * testsuite/libgomp.c++/simd-4.C: Same.
1852 * testsuite/libgomp.c++/simd-5.C: Same.
1853 * testsuite/libgomp.c++/simd-6.C: Same.
1854 * testsuite/libgomp.c++/simd-7.C: Same.
1855 * testsuite/libgomp.c++/simd-8.C: Same.
1856 * testsuite/libgomp.c++/simd-9.C: Same.
1857 * testsuite/libgomp.c++/simd10.C: Same.
1858 * testsuite/libgomp.c++/simd11.C: Same.
1859 * testsuite/libgomp.c++/simd12.C: Same.
1860 * testsuite/libgomp.c++/simd13.C: Same.
1861
1862 2015-06-30 Jakub Jelinek <jakub@redhat.com>
1863
1864 PR middle-end/66702
1865 * testsuite/libgomp.c++/pr66702-1.C: New test.
1866 * testsuite/libgomp.c++/pr66702-2.C: New test.
1867
1868 2015-06-30 Tom de Vries <tom@codesourcery.com>
1869
1870 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
1871 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
1872 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
1873 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
1874
1875 2015-06-30 Tom de Vries <tom@codesourcery.com>
1876
1877 PR tree-optimization/66652
1878 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
1879 using restrict pointers.
1880 (main): Add arguments to calls to f.
1881 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1882
1883 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
1884
1885 * configure.ac: Fix check for header <sys/sysctl.h>.
1886 * configure: Regenerate.
1887 * config.h.in: Likewise.
1888
1889 2015-06-23 Tom de Vries <tom@codesourcery.com>
1890
1891 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
1892 abort.
1893 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
1894
1895 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
1896
1897 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
1898 acc_device_nvidia.
1899
1900 PR libgomp/66518
1901 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
1902 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1903
1904 2015-06-15 Tom de Vries <tom@codesourcery.com>
1905
1906 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
1907 dg-additional-options for any remaining options.
1908 * testsuite/libgomp.c/atomic-2.c: Same.
1909 * testsuite/libgomp.c/atomic-4.c: Same.
1910 * testsuite/libgomp.c/atomic-5.c: Same.
1911 * testsuite/libgomp.c/atomic-6.c: Same.
1912 * testsuite/libgomp.c/autopar-1.c: Same.
1913 * testsuite/libgomp.c/copyin-1.c: Same.
1914 * testsuite/libgomp.c/copyin-2.c: Same.
1915 * testsuite/libgomp.c/copyin-3.c: Same.
1916 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
1917 * testsuite/libgomp.c/nestedfn-5.c: Same.
1918 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
1919 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
1920 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
1921 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1922 * testsuite/libgomp.c/pr32362-1.c: Same.
1923 * testsuite/libgomp.c/pr32362-2.c: Same.
1924 * testsuite/libgomp.c/pr32362-3.c: Same.
1925 * testsuite/libgomp.c/pr39591-1.c: Same.
1926 * testsuite/libgomp.c/pr39591-2.c: Same.
1927 * testsuite/libgomp.c/pr39591-3.c: Same.
1928 * testsuite/libgomp.c/pr58392.c: Same.
1929 * testsuite/libgomp.c/pr58756.c: Same.
1930 * testsuite/libgomp.c/simd-1.c: Same.
1931 * testsuite/libgomp.c/simd-10.c: Same.
1932 * testsuite/libgomp.c/simd-11.c: Same.
1933 * testsuite/libgomp.c/simd-12.c: Same.
1934 * testsuite/libgomp.c/simd-13.c: Same.
1935 * testsuite/libgomp.c/simd-14.c: Same.
1936 * testsuite/libgomp.c/simd-15.c: Same.
1937 * testsuite/libgomp.c/simd-2.c: Same.
1938 * testsuite/libgomp.c/simd-3.c: Same.
1939 * testsuite/libgomp.c/simd-4.c: Same.
1940 * testsuite/libgomp.c/simd-5.c: Same.
1941 * testsuite/libgomp.c/simd-6.c: Same.
1942 * testsuite/libgomp.c/simd-7.c: Same.
1943 * testsuite/libgomp.c/simd-8.c: Same.
1944 * testsuite/libgomp.c/simd-9.c: Same.
1945
1946 2015-06-15 Tom de Vries <tom@codesourcery.com>
1947
1948 * testsuite/libgomp.c/pr35625.c: Fix typo.
1949
1950 2015-06-15 Tom de Vries <tom@codesourcery.com>
1951
1952 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
1953 in dg-options.
1954 * testsuite/libgomp.c/atomic-3.c: Same.
1955 * testsuite/libgomp.c/debug-1.c: Same.
1956 * testsuite/libgomp.c/nqueens-1.c: Same.
1957 * testsuite/libgomp.c/pr26171.c: Same.
1958 * testsuite/libgomp.c/pr48591.c: Same.
1959 * testsuite/libgomp.c/pr64824.c: Same.
1960 * testsuite/libgomp.c/pr64868.c: Same.
1961 * testsuite/libgomp.c/pr66133.c: Same.
1962 * testsuite/libgomp.c/pr66199-1.c: Same.
1963 * testsuite/libgomp.c/pr66199-2.c: Same.
1964 * testsuite/libgomp.c/target-8.c: Same.
1965
1966 2015-06-15 Tom de Vries <tom@codesourcery.com>
1967
1968 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
1969 -std={gnu99,c99}.
1970 * testsuite/libgomp.c/for-1.c: Same.
1971 * testsuite/libgomp.c/for-2.c: Same.
1972 * testsuite/libgomp.c/for-3.c: Same.
1973 * testsuite/libgomp.c/pr35625.c: Same.
1974 * testsuite/libgomp.c/pr39154.c: Same.
1975 * testsuite/libgomp.c/simd-16.c: Same.
1976 * testsuite/libgomp.c/simd-17.c: Same.
1977
1978 2015-06-13 Tom de Vries <tom@codesourcery.com>
1979
1980 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
1981
1982 2015-06-13 Tom de Vries <tom@codesourcery.com>
1983
1984 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
1985 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
1986 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
1987 (N): Define.
1988 (main): Use N instead of hardcoded constants.
1989
1990 2015-06-05 Tom de Vries <tom@codesourcery.com>
1991
1992 merge from gomp4 branch:
1993 2015-05-28 Tom de Vries <tom@codesourcery.com>
1994
1995 PR tree-optimization/65443
1996 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
1997 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
1998 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
1999
2000 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2001
2002 * testsuite/libgomp.graphite/bounds.c: Adjust for
2003 cleanup-tree-dump removal.
2004 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
2005 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2006 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2007 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
2008 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2009 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2010 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2011 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2012 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2013 * testsuite/libgomp.graphite/pr41118.c: Likewise.
2014
2015 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
2016
2017 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
2018 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
2019 (futex_wake) [!__x86_64__]: Ditto.
2020
2021 2015-05-28 Julian Brown <julian@codesourcery.com>
2022
2023 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
2024 function comment. Only call gomp_fatal if new argument is true.
2025 (acc_dev_num_out_of_range): New function.
2026 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
2027 acc_dev_num_out_of_range as appropriate.
2028 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
2029 (acc_get_device_num, acc_set_device_num): Update calls to
2030 resolve_device.
2031 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
2032 output.
2033
2034 2015-05-28 Julian Brown <julian@codesourcery.com>
2035
2036 PR libgomp/65742
2037 * oacc-init.c (plugin/plugin-host.h): Include.
2038 (acc_on_device): Check whether we're in an offloaded region for
2039 host_nonshm
2040 plugin. Don't use __builtin_acc_on_device.
2041 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
2042 nonshm_exec flag in thread-local data.
2043 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
2044 data for host_nonshm plugin.
2045 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
2046 for host_nonshm plugin.
2047 * plugin/plugin-host.h: New.
2048
2049 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2050
2051 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
2052
2053 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2054
2055 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
2056 Declare as int.
2057 (FUTEX_PRIVATE_FLAG): Remove L suffix.
2058 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
2059 Declare as int.
2060
2061 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
2062
2063 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
2064
2065 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
2066
2067 * target.c (gomp_map_pointer): New function abstracting out
2068 GOMP_MAP_POINTER handling.
2069 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
2070 gomp_map_pointer().
2071
2072 2015-05-19 Jakub Jelinek <jakub@redhat.com>
2073
2074 PR middle-end/66199
2075 * testsuite/libgomp.c/pr66199-1.c: New test.
2076 * testsuite/libgomp.c/pr66199-2.c: New test.
2077 * testsuite/libgomp.c++/pr66199-1.C: New test.
2078 * testsuite/libgomp.c++/pr66199-2.C: New test.
2079 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
2080 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
2081
2082 2015-05-19 Julian Brown <julian@codesourcery.com>
2083
2084 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
2085 on cuInit failure.
2086
2087 2015-05-13 Jakub Jelinek <jakub@redhat.com>
2088
2089 PR middle-end/66133
2090 * testsuite/libgomp.c/pr66133.c: New test.
2091
2092 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2093
2094 * Makefile.in: Regenerated with automake-1.11.6.
2095 * aclocal.m4: Likewise.
2096 * config.h.in: Likewise.
2097 * configure: Likewise.
2098 * testsuite/Makefile.in: Likewise.
2099
2100 2015-05-08 Jason Merrill <jason@redhat.com>
2101
2102 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
2103 _Complex.
2104
2105 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
2106
2107 2015-05-06 Julian Brown <julian@codesourcery.com>
2108
2109 * oacc-init.c (acc_device_lock): Add explanatory comment.
2110 (resolve_device): Add comment about locking requirement.
2111 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
2112 gomp_init_device and gomp_fini_device calls.
2113 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
2114 (acc_get_device_num, acc_set_device_num): Add locking around
2115 resolve_device and gomp_init_device calls.
2116
2117 2015-05-06 Julian Brown <julian@codesourcery.com>
2118
2119 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
2120 goacc_thread_lock on error paths.
2121 * oacc-mem.c (lookup_host): Remove locking from function. Note
2122 locking requirement for caller in function comment.
2123 (lookup_dev): Likewise.
2124 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
2125 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
2126 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
2127 Add locking.
2128
2129 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
2130
2131 PR testsuite/65205
2132 PR libgomp/65993
2133 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
2134 don't expect "0x" prefix for "%p" format specifier, don't expect
2135 "(nil)" for NULL pointer.
2136 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2137 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2138 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2139 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2140 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2141 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2142 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2143 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2144 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2145 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2146 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2147 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2148 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2149 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2150 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2151 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2152 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2153 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2154 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2155 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2156 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2157 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2158 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2159 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2160 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2161 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2162 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2163 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2164 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
2165 accurately specify what we're looking for.
2166 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2167 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2168 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2169 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2170 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2171
2172 2015-04-30 James Norris <jnorris@codesourcery.com>
2173
2174 PR testsuite/65205
2175 * testsuite/lib/libgomp.exp
2176 (check_effective_target_openacc_host_selected)
2177 (check_effective_target_openacc_host_nonshm_selected): New
2178 procedures.
2179 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
2180 dg-shouldfail.
2181 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
2182 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
2183 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2184 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2185 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2186 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2187 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2188 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2189 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2190 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2191 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2192 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2193 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2194 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2195 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2196 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2197 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2198 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2199 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2200 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2201 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2202 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2203 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2204 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2205 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2206 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2207 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2208 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2209 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2210 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2211 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2212 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2213 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2214 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2215 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2216 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2217 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2218 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2219 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2220 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2221 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2222 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2223 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2224
2225 2015-04-08 Julian Brown <julian@codesourcery.com>
2226
2227 * libgomp.h (target_mem_desc: Remove mem_map field.
2228 (acc_dispatch_t): Remove open_device_func, close_device_func,
2229 get_device_num_func, set_device_num_func, target_data members.
2230 Change create_thread_data_func argument to device number instead of
2231 generic pointer.
2232 * oacc-async.c (assert.h): Include.
2233 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
2234 (acc_wait_all, acc_wait_all_async): Use current host thread's
2235 active device, not base_dev.
2236 * oacc-cuda.c (acc_get_current_cuda_device)
2237 (acc_get_current_cuda_context, acc_get_cuda_stream)
2238 (acc_set_cuda_stream): Likewise.
2239 * oacc-host.c (host_dispatch): Don't set open_device_func,
2240 close_device_func, get_device_num_func or set_device_num_func.
2241 * oacc-init.c (base_dev, init_key): Remove.
2242 (cached_base_dev): New.
2243 (name_of_acc_device_t): New.
2244 (acc_init_1): Initialise default-numbered device, not zeroth.
2245 (acc_shutdown_1): Close all devices of a given type.
2246 (goacc_destroy_thread): Don't use base_dev.
2247 (lazy_open, lazy_init, lazy_init_and_open): Remove.
2248 (goacc_attach_host_thread_to_device): New.
2249 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
2250 (acc_get_num_devices): Don't use base_dev.
2251 (acc_set_device_type): Reimplement.
2252 (acc_get_device_type): Don't use base_dev.
2253 (acc_get_device_num): Tweak logic.
2254 (acc_set_device_num): Likewise.
2255 (acc_on_device): Use acc_get_device_type.
2256 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
2257 (goacc_lazy_initialize): Reimplement with acc_init and
2258 goacc_attach_host_thread_to_device.
2259 * oacc-int.h (goacc_thread): Add base_dev field.
2260 (base_dev): Remove extern declaration.
2261 (goacc_attach_host_thread_to_device): Add prototype.
2262 * oacc-mem.c (acc_malloc): Use current thread's device instead of
2263 base_dev.
2264 (acc_free): Likewise.
2265 (acc_memcpy_to_device): Likewise.
2266 (acc_memcpy_from_device): Likewise.
2267 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
2268 goacc_lazy_initialize (throughout).
2269 (GOACC_parallel): Use tgt_offset to locate target functions.
2270 * target.c (gomp_map_vars): Don't set tgt->mem_map.
2271 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
2272 (gomp_load_plugin_for_device): Remove open_device, close_device,
2273 get_device_num, set_device_num openacc hook initialisation. Don't set
2274 openacc.target_data.
2275 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
2276 (GOMP_OFFLOAD_openacc_close_device)
2277 (GOMP_OFFLOAD_openacc_get_device_num)
2278 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
2279 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
2280 to int.
2281 * plugin/plugin-nvptx.c (ptx_inited): Remove.
2282 (instantiated_devices, ptx_dev_lock): New.
2283 (struct ptx_image_data): New.
2284 (ptx_devices, ptx_images, ptx_image_lock): New.
2285 (fini_streams_for_device): Reorder cuStreamDestroy call.
2286 (nvptx_get_num_devices): Remove forward declaration.
2287 (nvptx_init): Change return type to bool.
2288 (nvptx_fini): Remove.
2289 (nvptx_attach_host_thread_to_device): New.
2290 (nvptx_open_device): Return struct ptx_device* instead of void*.
2291 (nvptx_close_device): Change argument type to struct ptx_device*,
2292 return type to void.
2293 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
2294 (kernel_target_data, kernel_host_table): Remove static globals.
2295 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
2296 (GOMP_OFFLOAD_init_device): Reimplement.
2297 (GOMP_OFFLOAD_fini_device): Likewise.
2298 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
2299 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
2300 (GOMP_OFFLOAD_host2dev): Use ORD argument.
2301 (GOMP_OFFLOAD_openacc_open_device)
2302 (GOMP_OFFLOAD_openacc_close_device)
2303 (GOMP_OFFLOAD_openacc_set_device_num)
2304 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
2305 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
2306 (device number).
2307
2308 testsuite/
2309 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
2310
2311 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
2312
2313 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
2314 * libgomp.h (struct gomp_memory_mapping): Remove.
2315 (struct target_mem_desc): Change type of mem_map from
2316 gomp_memory_mapping * to splay_tree_s *.
2317 (struct gomp_device_descr): Remove register_image_func, get_table_func.
2318 Add load_image_func, unload_image_func.
2319 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
2320 Remove offload_regions_registered.
2321 (gomp_init_tables): Remove.
2322 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2323 to splay_tree_s *.
2324 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
2325 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
2326 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
2327 offload_regions_registered.
2328 Initialize load_image_func, unload_image_func, mem_map.root.
2329 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
2330 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
2331 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
2332 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
2333 gomp_memory_mapping *. Use dev's lock and splay_tree.
2334 (lookup_dev): Use dev's lock.
2335 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
2336 (acc_is_present): Likewise.
2337 (acc_map_data): Likewise.
2338 (acc_unmap_data): Likewise. Use dev's lock.
2339 (present_create_copy): Likewise.
2340 (delete_copyout): Pass dev to lookup_host instead of mem_map.
2341 (update_dev_host): Likewise.
2342 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
2343 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
2344 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
2345 (GOMP_OFFLOAD_get_table): Remove
2346 (GOMP_OFFLOAD_load_image): New function.
2347 (GOMP_OFFLOAD_unload_image): New function.
2348 * target.c (register_lock): New mutex for offload image registration.
2349 (num_devices): Do not guard with PLUGIN_SUPPORT.
2350 (gomp_realloc_unlock): New static function.
2351 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
2352 before gomp_fatal.
2353 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
2354 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
2355 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
2356 mem_map's.
2357 (gomp_unmap_vars): Likewise.
2358 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
2359 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
2360 (gomp_offload_image_to_device): New static function.
2361 (GOMP_offload_register): Add mutex lock.
2362 Call gomp_offload_image_to_device for all initialized devices.
2363 Replace gomp_realloc with gomp_realloc_unlock.
2364 (GOMP_offload_unregister): New function.
2365 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
2366 get_table_func from the plugin with calls to init_device_func and
2367 gomp_offload_image_to_device.
2368 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
2369 to splay_tree_s *.
2370 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
2371 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
2372 (GOMP_target_data): Do not call gomp_init_tables.
2373 (GOMP_target_update): Likewise. Remove argument from gomp_update.
2374 (gomp_load_plugin_for_device): Replace register_image and get_table
2375 with load_image and unload_image in DLSYM ().
2376 (gomp_register_images_for_device): Remove function.
2377 (gomp_target_init): Do not initialize current_device.mem_map.*,
2378 current_device.offload_regions_registered.
2379 Remove call to gomp_register_images_for_device.
2380 Do not free offload_images and num_offload_images.
2381
2382 2015-03-30 Jakub Jelinek <jakub@redhat.com>
2383
2384 PR fortran/65597
2385 * testsuite/libgomp.fortran/pr65597.f90: New test.
2386
2387 2015-03-27 Tom de Vries <tom@codesourcery.com>
2388
2389 PR testsuite/65594
2390 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
2391 (init, check): New function.
2392 (foo): Change return type to void.
2393 (main): Call init and check.
2394
2395 2015-03-27 Tom de Vries <tom@codesourcery.com>
2396
2397 PR testsuite/65594
2398 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
2399 (foo): Use M for non-inner loops to scale down test-case.
2400
2401 2015-03-25 Kai Tietz <ktietz@redhat.com>
2402
2403 PR libgomp/64972
2404 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
2405 (GOACC_data_start): Likewise.
2406 * target.c (gomp_map_vars): Likewise.
2407
2408 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
2409
2410 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
2411 hppa*-*-hpux*.
2412
2413 2015-03-19 Jakub Jelinek <jakub@redhat.com>
2414
2415 * testsuite/libgomp.c/target-10.c: New test.
2416 * testsuite/libgomp.c++/target-4.C: New test.
2417
2418 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
2419
2420 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
2421 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
2422
2423 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
2424
2425 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
2426 * configure.ac (*-*-rtems*): Assume Pthread is supported.
2427 (pthread.h): Check for this header file.
2428 * configure: Regenerate.
2429
2430 2015-02-25 Tom de Vries <tom@codesourcery.com>
2431
2432 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
2433 (check_reduction_op, check_reduction_macro, max, min):
2434 Declare.
2435 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
2436 function.
2437 (main): Use new functions.
2438
2439 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
2440
2441 * target.c (gomp_load_plugin_for_device): Use const char * instead of
2442 char * for variables holding dlerror return values.
2443 (DLSYM_OPT): Ditto.
2444
2445 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
2446
2447 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
2448
2449 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
2450 Cesar Philippidis <cesar@codesourcery.com>
2451
2452 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
2453 GOACC_ctaid, and GOACC_nctaid routines.
2454
2455 2015-02-11 Jakub Jelinek <jakub@redhat.com>
2456
2457 PR c/64824
2458 * testsuite/libgomp.c/atomic-18.c: New test.
2459 * testsuite/libgomp.c++/atomic-16.C: New test.
2460
2461 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2462
2463 PR c/64824
2464 PR c/64868
2465 * testsuite/libgomp.c/pr64824.c: New test.
2466 * testsuite/libgomp.c/pr64868.c: New test.
2467 * testsuite/libgomp.c++/pr64824.C: New test.
2468 * testsuite/libgomp.c++/pr64868.C: New test.
2469
2470 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
2471
2472 PR libgomp/64635
2473 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
2474 Link with -lpthread.
2475 * config/aix/plugin-suffix.h: Delete.
2476
2477 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
2478
2479 PR libgomp/64635
2480 * configure.tgt (*-*-aix*): Use config_path "aix posix".
2481 (*-*-darwin*): Use config_path "bsd darwin posix".
2482 (*-*-hpux*): Use config_path "hpux posix".
2483 * target.c: Add include of plugin-suffix.h and use
2484 SONAME_SUFFIX macro.
2485 * config/aix/plugin-suffix.h: New file.
2486 * config/darwin/plugin-suffix.h: New file.
2487 * config/hpux/plugin-suffix.h: New file.
2488 * config/posix/plugin-suffix.h: New file.
2489
2490 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2491
2492 PR middle-end/64734
2493 * libgomp.c/pr64734.c: New test.
2494
2495 2015-01-23 Tom de Vries <tom@codesourcery.com>
2496
2497 PR libgomp/64672
2498 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
2499
2500 2015-01-23 Tom de Vries <tom@codesourcery.com>
2501
2502 PR libgomp/64707
2503 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
2504 dg-options.
2505
2506 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2507
2508 PR libgomp/64625
2509 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
2510 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
2511 formal parameter. Update all users.
2512 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
2513 Document unused formal parameter.
2514
2515 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
2516
2517 * oacc-parallel.c: Don't include <alloca.h>.
2518 (GOACC_parallel): Use gomp_alloca instead of alloca.
2519
2520 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
2521
2522 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
2523
2524 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2525 James Norris <jnorris@codesourcery.com>
2526 Tom de Vries <tom@codesourcery.com>
2527 Julian Brown <julian@codesourcery.com>
2528 Cesar Philippidis <cesar@codesourcery.com>
2529 Nathan Sidwell <nathan@codesourcery.com>
2530 Tobias Burnus <burnus@net-b.de>
2531
2532 * Makefile.am (search_path): Add $(top_srcdir)/../include.
2533 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
2534 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
2535 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
2536 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
2537 Include $(top_srcdir)/plugin/Makefrag.am.
2538 (nodist_libsubinclude_HEADERS): Add openacc.h.
2539 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
2540 openacc.f90, openacc.mod, openacc_kinds.mod.
2541 (omp_lib.mod): Generalize into...
2542 (%.mod): ... this new rule.
2543 (openacc_kinds.mod, openacc.mod): New rules.
2544 * plugin/configfrag.ac: New file.
2545 * configure.ac: Move plugin/offloading support into it. Include
2546 it. Instantiate testsuite/libgomp-test-support.pt.exp.
2547 * plugin/Makefrag.am: New file.
2548 * testsuite/Makefile.am (OFFLOAD_TARGETS)
2549 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
2550 export.
2551 (libgomp-test-support.exp): New rule.
2552 (all-local): Depend on it.
2553 * Makefile.in: Regenerate.
2554 * testsuite/Makefile.in: Regenerate.
2555 * config.h.in: Likewise.
2556 * configure: Likewise.
2557 * configure.tgt: Harden shell syntax.
2558 * env.c: Include "oacc-int.h".
2559 (parse_acc_device_type): New function.
2560 (gomp_debug_var, goacc_device_type, goacc_device_num): New
2561 variables.
2562 (initialize_env): Initialize those. Call
2563 goacc_runtime_initialize.
2564 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
2565 (gomp_fatal): Call gomp_vfatal.
2566 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
2567 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
2568 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
2569 (splay_tree_node, splay_tree, splay_tree_key)
2570 (struct target_mem_desc, struct splay_tree_key_s)
2571 (struct gomp_memory_mapping, struct acc_dispatch_t)
2572 (struct gomp_device_descr, gomp_acc_insert_pointer)
2573 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
2574 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
2575 (gomp_free_memmap, gomp_fini_device): New declarations.
2576 (gomp_vdebug, gomp_debug): New macros.
2577 Include "splay-tree.h".
2578 * libgomp.map (OACC_2.0): New symbol version. Use for
2579 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
2580 acc_set_device_type_h_, acc_get_device_type,
2581 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
2582 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
2583 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
2584 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
2585 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
2586 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
2587 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
2588 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
2589 acc_copyin_array_h_, acc_present_or_copyin,
2590 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
2591 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
2592 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
2593 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
2594 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
2595 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
2596 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
2597 acc_update_device, acc_update_device_32_h_,
2598 acc_update_device_64_h_, acc_update_device_array_h_,
2599 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
2600 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
2601 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
2602 acc_is_present_64_h_, acc_is_present_array_h_,
2603 acc_memcpy_to_device, acc_memcpy_from_device,
2604 acc_get_current_cuda_device, acc_get_current_cuda_context,
2605 acc_get_cuda_stream, acc_set_cuda_stream.
2606 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
2607 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
2608 GOACC_update, GOACC_wait, GOACC_get_thread_num,
2609 GOACC_get_num_threads.
2610 (GOMP_PLUGIN_1.0): New symbol version. Use for
2611 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
2612 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
2613 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
2614 GOMP_PLUGIN_acc_thread.
2615 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
2616 environment variable.
2617 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
2618 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
2619 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
2620 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
2621 (splay_tree_remove): New declarations.
2622 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
2623 (splay_tree_remove, splay_tree_lookup): Move into...
2624 * splay-tree.c: ... this new file.
2625 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
2626 (splay_tree_node, splay_tree, splay_tree_key)
2627 (struct target_mem_desc, struct splay_tree_key_s)
2628 (struct gomp_device_descr): Don't declare.
2629 (num_devices_openmp): New variable.
2630 (gomp_get_num_devices ): Use it.
2631 (gomp_init_targets_once): New function.
2632 (gomp_get_num_devices ): Use it.
2633 (get_kind, gomp_copy_from_async, gomp_free_memmap)
2634 (gomp_fini_device, gomp_register_image_for_device): New functions.
2635 (gomp_map_vars): Add devaddrs parameter.
2636 (gomp_update): Add mm parameter.
2637 (gomp_init_device): Move most of it into...
2638 (gomp_init_tables): ... this new function.
2639 (gomp_register_images_for_device): Remove function.
2640 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
2641 Make them hidden instead of static.
2642 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
2643 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
2644 (GOMP_target_end_data, GOMP_target_update)
2645 (gomp_load_plugin_for_device, gomp_target_init): Update for
2646 OpenACC changes.
2647 * oacc-async.c: New file.
2648 * oacc-cuda.c: Likewise.
2649 * oacc-host.c: Likewise.
2650 * oacc-init.c: Likewise.
2651 * oacc-int.h: Likewise.
2652 * oacc-mem.c: Likewise.
2653 * oacc-parallel.c: Likewise.
2654 * oacc-plugin.c: Likewise.
2655 * oacc-plugin.h: Likewise.
2656 * oacc-ptx.h: Likewise.
2657 * openacc.f90: Likewise.
2658 * openacc.h: Likewise.
2659 * openacc_lib.h: Likewise.
2660 * plugin/plugin-host.c: Likewise.
2661 * plugin/plugin-nvptx.c: Likewise.
2662 * libgomp-plugin.c: Likewise.
2663 * libgomp-plugin.h: Likewise.
2664 * libgomp_target.h: Remove file after merging content into the
2665 former file. Update all users.
2666 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
2667 (offload_targets_s, offload_targets_s_openacc): New variables.
2668 (check_effective_target_openacc_nvidia_accel_present)
2669 (check_effective_target_openacc_nvidia_accel_selected): New
2670 procedures.
2671 (libgomp_init): Update for OpenACC changes.
2672 * testsuite/libgomp-test-support.exp.in: New file.
2673 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2674 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2675 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2676 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
2677 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
2678 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
2679 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
2680 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
2681 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
2682 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
2683 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
2684 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
2685 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
2686 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
2687 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
2688 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
2689 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
2690 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
2691 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
2692 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
2693 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
2694 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2695 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2696 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
2697 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2698 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2699 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2700 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2701 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2702 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2703 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2704 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
2705 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
2706 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
2707 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
2708 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
2709 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
2710 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
2711 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
2712 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2713 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2714 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2715 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2716 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2717 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2718 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
2719 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2720 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2721 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2722 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2723 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2724 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2725 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2726 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2727 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2728 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2729 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2730 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2731 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2732 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
2733 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
2734 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
2735 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2736 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2737 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2738 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
2739 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
2740 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2741 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2742 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2743 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
2744 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2745 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2746 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2747 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
2748 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
2749 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2750 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2751 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
2752 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
2753 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
2754 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
2755 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2756 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2757 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2758 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
2759 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
2760 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2761 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2762 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
2763 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
2764 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
2765 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
2766 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2767 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2768 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2769 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2770 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
2771 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2772 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2773 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
2774 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
2775 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
2776 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2777 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
2778 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
2779 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
2780 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
2781 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
2782 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2783 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
2784 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2785 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2786 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
2787 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2788 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2789 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
2790 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2791 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
2792 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
2793 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
2794 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
2795 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
2796 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
2797 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
2798 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
2799 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
2800 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
2801 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
2802 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
2803 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
2804 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
2805 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2806 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
2807 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
2808 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
2809 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
2810 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
2811 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
2812 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
2813 Likewise.
2814 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
2815 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
2816 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
2817 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
2818 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
2819 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2820 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2821 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2822 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2823 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2824 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2825 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2826 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2827 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2828 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2829 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2830 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2831 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2832 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2833 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2834 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2835 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2836 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2837 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2838 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2839 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2840 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2841 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2842 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2843 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2844 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2845 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2846 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2847 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2848 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2849 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2850 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2851 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2852 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2853 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2854 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2855 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2856 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2857 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2858 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2859 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2860 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2861 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2862 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2863 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2864 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2865 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2866 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2867 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2868 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2869 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2870 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2871 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2872 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2873 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2874
2875 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2876 Julian Brown <julian@codesourcery.com>
2877 David Malcolm <dmalcolm@redhat.com>
2878
2879 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
2880 to "GNU Offloading and Multi Processing Runtime Library". Change
2881 all users.
2882 * configure: Regenerate.
2883 * libgomp.texi: Update.
2884
2885 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
2886
2887 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
2888 "$tgt_dir/lib32".
2889 * configure: Regenerate.
2890
2891 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
2892 "intelmic" in $offload_targets.
2893
2894 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2895
2896 Update copyright years.
2897
2898 * libgomp.texi: Bump @copying's copyright year.
2899
2900 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2901
2902 * testsuite/lib/libgomp.exp: Load target-utils.exp.
2903 Move load of target-supportes.exp earlier.
2904
2905 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
2906
2907 * testsuite/libgomp.c/target-9.c: New test.
2908
2909 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
2910
2911 * config.h.in: Regenerate.
2912 * configure: Regenerate.
2913 * configure.ac: Add GCC_CHECK_EMUTLS.
2914 * libgomp.h: Add check for USE_EMUTLS: this case
2915 is equal to HAVE_TLS.
2916 * team.c: Likewise.
2917
2918 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
2919
2920 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
2921
2922 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2923 Ilya Verbin <ilya.verbin@intel.com>
2924
2925 * testsuite/libgomp.c/target-critical-1.c: New test.
2926
2927 2014-11-26 Jakub Jelinek <jakub@redhat.com>
2928
2929 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
2930 to dg-options unless expensive testing is on.
2931 (TESTITERS): Define to N if not defined.
2932 (main): Use TESTITERS instead of N.
2933 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
2934 dg-additional-options depending on whether expensive testing is on.
2935 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
2936 Decrease N to 100000 and CHUNKSZ to 10000.
2937
2938 2014-11-24 Jakub Jelinek <jakub@redhat.com>
2939
2940 PR fortran/63938
2941 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
2942 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
2943
2944 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
2945
2946 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
2947
2948 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
2949
2950 PR bootstrap/63784
2951 * configure: Regenerated.
2952
2953 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
2954
2955 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
2956 vect_simd_clones effective target.
2957 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
2958
2959 2014-11-14 Jakub Jelinek <jakub@redhat.com>
2960
2961 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
2962 of 32 as block_size.
2963 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
2964 instead of 32 as block_size.
2965
2966 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
2967 Ilya Verbin <ilya.verbin@intel.com>
2968
2969 * Makefile.in: Regenerate.
2970 * configure: Regenerate.
2971 * configure.ac: Set up offload_additional_options,
2972 offload_additional_lib_paths and offload_targets.
2973 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
2974 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
2975 * testsuite/Makefile.in: Regenerate.
2976 * testsuite/lib/libgomp.exp (libgomp_init): Append
2977 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
2978 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
2979 build directory to LD_LIBRARY_PATH for intelmic offload targets.
2980
2981 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
2982 Ilya Verbin <ilya.verbin@intel.com>
2983 Kirill Yukhin <kirill.yukhin@intel.com>
2984 Ilya Tocar <ilya.tocar@intel.com>
2985
2986 * testsuite/lib/libgomp.exp
2987 (check_effective_target_offload_device): New.
2988 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
2989 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
2990 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
2991 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
2992 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
2993 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
2994 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
2995 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
2996 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
2997 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
2998 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
2999 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
3000 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
3001 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
3002 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
3003 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
3004 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
3005 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
3006 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
3007 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
3008 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
3009 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
3010 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
3011 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
3012 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
3013 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
3014 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
3015 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
3016 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
3017 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
3018 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
3019 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
3020 * testsuite/libgomp.c/target-7.c: Fix test.
3021 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
3022 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
3023 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
3024 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
3025 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
3026 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
3027 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
3028 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
3029 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
3030 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
3031 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
3032 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
3033 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
3034 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
3035 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
3036 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
3037 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
3038 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
3039 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
3040 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
3041 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
3042 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
3043 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
3044 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
3045 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
3046 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
3047 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
3048 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
3049 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
3050 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
3051 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
3052
3053 2014-11-13 Jakub Jelinek <jakub@redhat.com>
3054 Ilya Verbin <ilya.verbin@intel.com>
3055 Thomas Schwinge <thomas@codesourcery.com>
3056 Andrey Turetskiy <andrey.turetskiy@intel.com>
3057
3058 * libgomp.map (GOMP_4.0.1): New symbol version.
3059 Add GOMP_offload_register.
3060 * libgomp_target.h: New file.
3061 * splay-tree.h: New file.
3062 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
3063 (gomp_target_init): New forward declaration.
3064 (gomp_is_initialized): New static variable.
3065 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
3066 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
3067 New structures.
3068 (offload_images, num_offload_images, devices, num_devices): New static
3069 variables.
3070 (splay_compare): New static function.
3071 (struct gomp_device_descr): New structure.
3072 (gomp_get_num_devices): Call gomp_target_init.
3073 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
3074 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
3075 (GOMP_offload_register): New function.
3076 (GOMP_target): Arrange for host callback to be performed in a separate
3077 initial thread and contention group, inheriting ICVs from
3078 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
3079 Add device initialization and lookup for target function in splay tree.
3080 (GOMP_target_data): Add device initialization and call gomp_map_vars.
3081 (GOMP_target_end_data): Call gomp_unmap_vars.
3082 (GOMP_target_update): Add device initialization and call gomp_update.
3083 (gomp_load_plugin_for_device, gomp_register_images_for_device)
3084 (gomp_target_init): New static functions.
3085
3086 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
3087 Thomas Schwinge <thomas@codesourcery.com>
3088 Ilya Verbin <ilya.verbin@intel.com>
3089 Andrey Turetskiy <andrey.turetskiy@intel.com>
3090
3091 * config.h.in: Regenerate.
3092 * configure: Regenerate.
3093 * configure.ac: Check for libdl, required for plugin support.
3094 (PLUGIN_SUPPORT): Define if plugins are supported.
3095 (enable_offload_targets): Support Intel MIC targets.
3096 (OFFLOAD_TARGETS): List of target names suitable for offloading.
3097
3098 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3099
3100 PR target/63610
3101 * configure: Regenerate.
3102
3103 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3104
3105 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
3106
3107 2014-10-06 Marek Polacek <polacek@redhat.com>
3108
3109 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
3110 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
3111 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
3112 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3113
3114 2014-10-06 Marek Polacek <polacek@redhat.com>
3115
3116 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
3117 * testsuite/libgomp.c/nqueens-1.c: Likewise.
3118 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3119 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3120 * testsuite/libgomp.c/pr36802-2.c: Likewise.
3121 * testsuite/libgomp.c/pr36802-3.c: Likewise.
3122 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
3123 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3124 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
3125 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
3126 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
3127 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
3128 * testsuite/libgomp.c/omp-single-1.c: Likewise.
3129 * testsuite/libgomp.c/omp-single-2.c: Likewise.
3130 * testsuite/libgomp.c/omp_matvec.c: Likewise.
3131 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
3132 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
3133 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
3134 declarations.
3135
3136 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3137
3138 PR libgomp/61200
3139 * testsuite/libgomp.c/pr61200.c: New test.
3140
3141 2014-09-18 Jakub Jelinek <jakub@redhat.com>
3142
3143 PR c++/63248
3144 * testsuite/libgomp.c++/pr63248.C: New test.
3145
3146 2014-08-04 Jakub Jelinek <jakub@redhat.com>
3147
3148 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
3149 is not zero, but taskgroup->children is NULL and there are
3150 any task->children, schedule those instead of waiting.
3151 * testsuite/libgomp.c/depend-6.c: New test.
3152 * testsuite/libgomp.c/depend-7.c: New test.
3153 * testsuite/libgomp.c/depend-8.c: New test.
3154 * testsuite/libgomp.c/depend-9.c: New test.
3155 * testsuite/libgomp.c/depend-10.c: New test.
3156
3157 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3158
3159 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
3160 (struct gomp_taskwait): New type.
3161 (struct gomp_task): Add taskwait and parent_depends_on, remove
3162 in_taskwait and taskwait_sem fields.
3163 (gomp_finish_task): Don't destroy taskwait_sem.
3164 * task.c (gomp_init_task): Don't init in_taskwait, instead init
3165 taskwait and parent_depends_on.
3166 (GOMP_task): For if (0) tasks with depend clause that depend on
3167 earlier tasks don't defer them, instead call
3168 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
3169 Initialize redundant_out field, for redundant out entries just
3170 move them at the end of linked list instead of removing them
3171 completely, and set redundant_out flag instead of redundant.
3172 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
3173 that task.
3174 (gomp_task_run_post_handle_dependers): If parent is in
3175 gomp_task_maybe_wait_for_dependencies and newly runnable task
3176 is not parent_depends_on, queue it in parent->children linked
3177 list after all runnable tasks with parent_depends_on set.
3178 Adjust for addition of taskwait indirection.
3179 (gomp_task_run_post_remove_parent): If parent is in
3180 gomp_task_maybe_wait_for_dependencies and task to be removed
3181 is parent_depends_on, decrement n_depend and if needed awake
3182 parent. Adjust for addition of taskwait indirection.
3183 (GOMP_taskwait): Adjust for addition of taskwait indirection.
3184 (gomp_task_maybe_wait_for_dependencies): New function.
3185 * testsuite/libgomp.c/depend-5.c: New test.
3186
3187 2014-07-13 Tobias Burnus <burnus@net-b.de>
3188
3189 * testsuite/libgomp.fortran/pr34020.f90: Make compile
3190 with TS 18508/Fortran 2015.
3191
3192 2014-07-06 Marek Polacek <polacek@redhat.com>
3193
3194 PR c/6940
3195 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
3196
3197 2014-07-03 Jakub Jelinek <jakub@redhat.com>
3198
3199 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
3200 matches regex $lang_source_re, add $lang_include_flags to options.
3201 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
3202 * testsuite/libgomp.c++/c++.exp: Likewise.
3203 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
3204 and lang_include_flags instead of adding -fintrinsic-modules-path= to
3205 ALWAYS_CFLAGS.
3206 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
3207
3208 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
3209
3210 * testsuite/libgomp.fortran/fortran.exp: Explain
3211 gfortran-dg-runtest usage.
3212
3213 2014-06-25 Jakub Jelinek <jakub@redhat.com>
3214
3215 * testsuite/libgomp.fortran/simd5.f90: New test.
3216 * testsuite/libgomp.fortran/simd6.f90: New test.
3217 * testsuite/libgomp.fortran/simd7.f90: New test.
3218
3219 2014-06-24 Jakub Jelinek <jakub@redhat.com>
3220
3221 * testsuite/libgomp.c/for-2.c: Define SC to static for
3222 #pragma omp for simd testing.
3223 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
3224 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
3225 SC macro.
3226 * testsuite/libgomp.c/simd-14.c: New test.
3227 * testsuite/libgomp.c/simd-15.c: New test.
3228 * testsuite/libgomp.c/simd-16.c: New test.
3229 * testsuite/libgomp.c/simd-17.c: New test.
3230 * testsuite/libgomp.c++/for-10.C: Define SC to static for
3231 #pragma omp for simd testing.
3232 * testsuite/libgomp.c++/simd10.C: New test.
3233 * testsuite/libgomp.c++/simd11.C: New test.
3234 * testsuite/libgomp.c++/simd12.C: New test.
3235 * testsuite/libgomp.c++/simd13.C: New test.
3236
3237 * testsuite/libgomp.fortran/aligned1.f03: New test.
3238 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
3239 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
3240 tasks with !$omp parallel !$omp single.
3241 * testsuite/libgomp.fortran/target8.f90: New test.
3242 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
3243 not to use trim in the combiner, instead call elemental function.
3244 (fn): New elemental function.
3245 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
3246 Make elemental.
3247 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
3248 omp_in): Likewise.
3249 * testsuite/libgomp.fortran/udr12.f90: New test.
3250 * testsuite/libgomp.fortran/udr13.f90: New test.
3251 * testsuite/libgomp.fortran/udr14.f90: New test.
3252 * testsuite/libgomp.fortran/udr15.f90: New test.
3253
3254 2014-06-18 Jakub Jelinek <jakub@redhat.com>
3255
3256 * omp_lib.f90.in (openmp_version): Set to 201307.
3257 * omp_lib.h.in (openmp_version): Likewise.
3258 * testsuite/libgomp.c/target-8.c: New test.
3259 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
3260 and inbranch clauses.
3261 * testsuite/libgomp.fortran/depend-3.f90: New test.
3262 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
3263 openmp_version.
3264 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3265 * testsuite/libgomp.fortran/target1.f90: New test.
3266 * testsuite/libgomp.fortran/target2.f90: New test.
3267 * testsuite/libgomp.fortran/target3.f90: New test.
3268 * testsuite/libgomp.fortran/target4.f90: New test.
3269 * testsuite/libgomp.fortran/target5.f90: New test.
3270 * testsuite/libgomp.fortran/target6.f90: New test.
3271 * testsuite/libgomp.fortran/target7.f90: New test.
3272
3273 2014-06-10 Jakub Jelinek <jakub@redhat.com>
3274
3275 PR fortran/60928
3276 * testsuite/libgomp.fortran/allocatable9.f90: New test.
3277 * testsuite/libgomp.fortran/allocatable10.f90: New test.
3278 * testsuite/libgomp.fortran/allocatable11.f90: New test.
3279 * testsuite/libgomp.fortran/allocatable12.f90: New test.
3280 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
3281 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
3282 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
3283 * testsuite/libgomp.fortran/associate1.f90: New test.
3284 * testsuite/libgomp.fortran/associate2.f90: New test.
3285 * testsuite/libgomp.fortran/procptr1.f90: New test.
3286
3287 2014-06-06 Jakub Jelinek <jakub@redhat.com>
3288
3289 * testsuite/libgomp.fortran/simd1.f90: New test.
3290 * testsuite/libgomp.fortran/udr1.f90: New test.
3291 * testsuite/libgomp.fortran/udr2.f90: New test.
3292 * testsuite/libgomp.fortran/udr3.f90: New test.
3293 * testsuite/libgomp.fortran/udr4.f90: New test.
3294 * testsuite/libgomp.fortran/udr5.f90: New test.
3295 * testsuite/libgomp.fortran/udr6.f90: New test.
3296 * testsuite/libgomp.fortran/udr7.f90: New test.
3297 * testsuite/libgomp.fortran/udr8.f90: New test.
3298 * testsuite/libgomp.fortran/udr9.f90: New test.
3299 * testsuite/libgomp.fortran/udr10.f90: New test.
3300 * testsuite/libgomp.fortran/udr11.f90: New test.
3301
3302 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
3303
3304 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
3305 vect_simd_clones effective target.
3306 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
3307
3308 2014-05-21 Jakub Jelinek <jakub@redhat.com>
3309
3310 PR middle-end/61252
3311 * testsuite/libgomp.c++/simd-9.C: New test.
3312
3313 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
3314
3315 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
3316 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
3317 texts according to their @menu entry positions.
3318
3319 2014-05-11 Jakub Jelinek <jakub@redhat.com>
3320
3321 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
3322 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
3323 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
3324 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
3325 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
3326 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
3327 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
3328 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
3329 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
3330 * testsuite/libgomp.fortran/depend-1.f90: New test.
3331 * testsuite/libgomp.fortran/depend-2.f90: New test.
3332 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
3333 * testsuite/libgomp.fortran/simd1.f90: New test.
3334 * testsuite/libgomp.fortran/simd2.f90: New test.
3335 * testsuite/libgomp.fortran/simd3.f90: New test.
3336 * testsuite/libgomp.fortran/simd4.f90: New test.
3337 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
3338
3339 2014-05-02 Jakub Jelinek <jakub@redhat.com>
3340
3341 * testsuite/libgomp.c/simd-10.c: New test.
3342 * testsuite/libgomp.c/simd-11.c: New test.
3343 * testsuite/libgomp.c/simd-12.c: New test.
3344 * testsuite/libgomp.c/simd-13.c: New test.
3345
3346 2014-04-24 Jakub Jelinek <jakub@redhat.com>
3347
3348 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
3349 atomic type clauses in any order and optional comma in between.
3350 * testsuite/libgomp.c++/atomic-15.C: Likewise.
3351 * testsuite/libgomp.c/atomic-17.c: Likewise.
3352
3353 * testsuite/libgomp.c/simd-7.c: New test.
3354 * testsuite/libgomp.c/simd-8.c: New test.
3355 * testsuite/libgomp.c/simd-9.c: New test.
3356 * testsuite/libgomp.c/loop-16.c: New test.
3357
3358 2014-04-02 Richard Henderson <rth@redhat.com>
3359
3360 * config/linux/futex.h (futex_wait): Get error value from errno.
3361 (futex_wake): Likewise.
3362
3363 2014-03-25 Jakub Jelinek <jakub@redhat.com>
3364
3365 PR c++/60331
3366 * testsuite/libgomp.c++/udr-11.C: New test.
3367 * testsuite/libgomp.c++/udr-12.C: New test.
3368 * testsuite/libgomp.c++/udr-13.C: New test.
3369 * testsuite/libgomp.c++/udr-14.C: New test.
3370 * testsuite/libgomp.c++/udr-15.C: New test.
3371 * testsuite/libgomp.c++/udr-16.C: New test.
3372 * testsuite/libgomp.c++/udr-17.C: New test.
3373 * testsuite/libgomp.c++/udr-18.C: New test.
3374 * testsuite/libgomp.c++/udr-19.C: New test.
3375
3376 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3377
3378 Update copyright years
3379
3380 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3381
3382 * hashtab.h: Use the standard form for the copyright notice.
3383
3384 2014-01-02 Tobias Burnus <burnus@net-b.de>
3385
3386 * libgomp.texi: Bump @copying's copyright year.
3387
3388 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
3389
3390 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
3391 alloca () with __builtin_alloca ().
3392 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
3393 * testsuite/libgomp.c/lock-3.c: Likewise.
3394 * testsuite/libgomp.c/pr48591.c: Likewise.
3395
3396 2013-12-17 Jakub Jelinek <jakub@redhat.com>
3397
3398 PR testsuite/59534
3399 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
3400 comparisons.
3401
3402 2013-12-16 Jakub Jelinek <jakub@redhat.com>
3403
3404 PR libgomp/58756
3405 * testsuite/libgomp.c/pr58756.c: New test.
3406
3407 2013-12-12 Jakub Jelinek <jakub@redhat.com>
3408
3409 PR libgomp/59467
3410 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
3411 !$omp parallel.
3412
3413 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
3414
3415 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
3416 ALWAYS_CFLAGS.
3417 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
3418 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
3419 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
3420 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
3421 Likewise.
3422
3423 * libgomp_g.h: Include <stddef.h> for size_t.
3424
3425 * libgomp.spec.in: Update comment about libgomp's dependencies.
3426 * configure.ac: Likewise.
3427 * configure: Regenerate.
3428
3429 2013-10-16 Tobias Burnus <burnus@net-b.de>
3430
3431 * libgomp.texi: (Runtime Library Routines): Update references for
3432 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
3433 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
3434 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
3435 (Environment Variables): Update references for OpenMP 4.0. Add
3436 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
3437 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
3438 order.
3439
3440 2013-10-14 Jakub Jelinek <jakub@redhat.com>
3441
3442 * env.c (parse_bind_var): Initialize value to avoid
3443 (false positive) warning.
3444
3445 2013-10-12 Jakub Jelinek <jakub@redhat.com>
3446
3447 PR libgomp/58691
3448 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
3449 to check variable.
3450 (gomp_init_num_threads): Move i variable declaration into
3451 #ifdef CPU_ALLOC_SIZE block.
3452 * config/linux/affinity.c (gomp_affinity_init_level): Test
3453 gomp_places_list_len == 0 rather than gomp_places_list == 0
3454 when checking for topology reading error.
3455 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
3456 * env.c (parse_affinity): Add ignore argument, if true, don't populate
3457 gomp_places_list, only parse env var and always return false.
3458 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
3459 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
3460 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
3461 and either of these variables were parsed correctly into a places
3462 list.
3463
3464 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
3465 Jakub Jelinek <jakub@redhat.com>
3466
3467 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
3468 of 5 loopfn matches.
3469 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3470 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3471 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
3472 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3473 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3474 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3475 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3476 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3477
3478 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
3479
3480 * Makefile.am (omp_lib.mod): Streamline rule.
3481 * Makefile.in: Regenerate.
3482
3483 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
3484 exceptions.
3485
3486 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
3487 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3488 * testsuite/libgomp.fortran/lib2.f: Likewise.
3489 * testsuite/libgomp.fortran/lib3.f: Likewise.
3490
3491 * configure.ac: Typo fix.
3492 * configure: Regenerate.
3493
3494 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
3495 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3496
3497 * omp.h.in: Don't touch the user's namespace.
3498
3499 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3500 Tobias Burnus <burnus@net-b.de>
3501 Richard Henderson <rth@redhat.com>
3502
3503 * target.c: New file.
3504 * Makefile.am (libgomp_la_SOURCES): Add target.c.
3505 * Makefile.in: Regenerated.
3506 * libgomp_g.h (GOMP_task): Add depend argument.
3507 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3508 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3509 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
3510 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
3511 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
3512 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
3513 GOMP_taskgroup_start, GOMP_taskgroup_end,
3514 GOMP_parallel_sections): New prototypes.
3515 * fortran.c (omp_is_initial_device): Add ialias_redirect.
3516 (omp_is_initial_device_): New function.
3517 (ULP, STR1, STR2, ialias_redirect): Removed.
3518 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
3519 omp_set_default_device_8_, omp_get_default_device_,
3520 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
3521 functions.
3522 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
3523 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
3524 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
3525 @@GOMP_4.0.
3526 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
3527 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
3528 omp_set_default_device, omp_set_default_device_,
3529 omp_set_default_device_8_, omp_get_default_device,
3530 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
3531 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
3532 omp_get_team_num_): Export @@OMP_4.0.
3533 * team.c (struct gomp_thread_start_data): Add place field.
3534 (gomp_thread_start): Clear thr->thread_pool and
3535 thr->task before returning. Use gomp_team_barrier_wait_final
3536 instead of gomp_team_barrier_wait. Initialize thr->place.
3537 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
3538 team_cancelled and task_queued_count fields.
3539 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
3540 before calling pthread_exit.
3541 (gomp_free_thread): No longer static. Use
3542 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
3543 (gomp_team_start): Add flags argument. Set
3544 thr->thread_pool->threads_busy to nthreads immediately after creating
3545 new pool. Use gomp_managed_threads_lock instead of
3546 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
3547 (gomp_team_end): Use gomp_managed_threads_lock instead of
3548 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
3549 of gomp_team_barrier_wait. If team->team_cancelled, call
3550 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
3551 rather than thr->ts.work_share.
3552 (initialize_team): Don't call gomp_sem_init here.
3553 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
3554 caller.
3555 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
3556 * env.c (gomp_global_icv): Add default_device_var, target_data and
3557 bind_var initializers.
3558 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
3559 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
3560 gomp_places_list_len): New variables.
3561 (parse_bind_var, parse_one_place, parse_places_var): New functions.
3562 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
3563 sized places.
3564 (gomp_cancel_var): New global variable.
3565 (parse_int): New function.
3566 (handle_omp_display_env): New function.
3567 (initialize_env): Use it. Initialize default_device_var.
3568 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
3569 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
3570 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
3571 been successfully parsed (and call gomp_init_affinity in that case).
3572 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3573 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3574 omp_get_team_num, omp_is_initial_device): New functions.
3575 * libgomp.h: Include stdlib.h.
3576 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
3577 Define.
3578 (struct target_mem_desc): Forward declare.
3579 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
3580 and thread_limit_var fields.
3581 (gomp_get_num_devices): New prototype.
3582 (gomp_cancel_var): New extern decl.
3583 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
3584 team_cancelled and task_queued_count fields. Add comments about
3585 task_{,queued_,running_}count.
3586 (gomp_cancel_kind): New enum.
3587 (gomp_work_share_end_cancel): New prototype.
3588 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
3589 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
3590 and depend fields.
3591 (struct gomp_taskgroup): New type.
3592 (struct gomp_task_depend_entry,
3593 struct gomp_dependers_vec): New types.
3594 (gomp_finish_task): Free depend_hash if non-NULL.
3595 (struct gomp_team_state): Add place_partition_off
3596 and place_partition_len fields.
3597 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
3598 gomp_places_list_len): New extern decls.
3599 (struct gomp_thread): Add place field.
3600 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
3601 (gomp_init_thread_affinity): Add place argument.
3602 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
3603 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
3604 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
3605 gomp_affinity_init_level, gomp_affinity_print_place): New
3606 prototypes.
3607 (gomp_team_start): Add flags argument.
3608 (gomp_thread_limit_var, gomp_remaining_threads_count,
3609 gomp_remaining_threads_lock): Remove.
3610 (gomp_managed_threads_lock): New variable.
3611 (struct gomp_thread_pool): Add threads_busy field.
3612 (gomp_free_thread): New prototype.
3613 * task.c: Include hashtab.h.
3614 (hash_entry_type): New typedef.
3615 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
3616 (gomp_init_task): Clear dependers, depend_hash, depend_count,
3617 copy_ctors_done and taskgroup fields.
3618 (GOMP_task): Add depend argument, handle depend clauses. If
3619 gomp_team_barrier_cancelled or if it's taskgroup has been
3620 cancelled, don't queue or start new tasks. Set copy_ctors_done
3621 field if needed. Initialize taskgroup field. If copy_ctors_done
3622 and already cancelled, don't discard the task. If taskgroup is
3623 non-NULL, enqueue the task into taskgroup queue. Increment
3624 num_children field in taskgroup. Increment task_queued_count.
3625 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
3626 gomp_task_run_post_remove_taskgroup): New inline functions.
3627 (gomp_task_run_post_handle_depend_hash,
3628 gomp_task_run_post_handle_dependers,
3629 gomp_task_run_post_handle_depend): New functions.
3630 (GOMP_taskwait): Use them. If more than one new tasks
3631 have been queued, wake other threads if needed.
3632 (gomp_barrier_handle_tasks): Likewise. If
3633 gomp_team_barrier_cancelled, don't start any new tasks, just free
3634 all tasks.
3635 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
3636 * omp_lib.f90.in
3637 (omp_proc_bind_kind, omp_proc_bind_false,
3638 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
3639 omp_proc_bind_spread): New params.
3640 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3641 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3642 omp_get_team_num, omp_is_initial_device): New interfaces.
3643 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
3644 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
3645 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
3646 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
3647 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
3648 useless use omp_lib_kinds.
3649 * omp.h.in (omp_proc_bind_t): New typedef.
3650 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3651 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3652 omp_get_team_num, omp_is_initial_device): New prototypes.
3653 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
3654 through to gomp_team_start.
3655 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
3656 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
3657 Adjust gomp_parallel_loop_start callers.
3658 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
3659 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
3660 GOMP_loop_end_cancel): New functions.
3661 (GOMP_parallel_end): Add ialias_redirect.
3662 * hashtab.h: New file.
3663 * libgomp.texi (Environment Variables): Minor cleanup,
3664 update section refs to OpenMP 4.0rc2.
3665 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
3666 environment variables.
3667 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
3668 team->work_shares_to_free to thr->ts.work_share before calling
3669 free_work_share.
3670 (gomp_work_share_end_cancel): New function.
3671 * config/linux/proc.c: Include errno.h.
3672 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
3673 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
3674 sizeof (cpu_set_t) to determine number of iterations. Fix up check
3675 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
3676 gomp_cpuset_size is sizeof (cpu_set_t).
3677 (gomp_init_num_threads): Initialize gomp_cpuset_size,
3678 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
3679 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
3680 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
3681 contain any logical CPUs.
3682 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
3683 is NULL. Use gomp_cpusetp instead of &cpuset and pass
3684 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
3685 pthread_getaffinity_np. Check gomp_places_list instead of
3686 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
3687 * config/linux/bar.c (gomp_barrier_wait_end,
3688 gomp_barrier_wait_last): Use BAR_* defines.
3689 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
3690 from state where needed. Set work_share_cancelled to 0 on last
3691 thread.
3692 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
3693 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
3694 functions.
3695 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
3696 Add cpusetsize argument.
3697 (gomp_cpuset_size, gomp_cpusetp): Declare.
3698 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
3699 (affinity_counter): Remove.
3700 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
3701 if CPU_ALLOC_SIZE isn't defined.
3702 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
3703 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
3704 bind current thread to the first place.
3705 (gomp_init_thread_affinity): Rewritten. Add place argument, just
3706 pthread_setaffinity_np to gomp_places_list[place].
3707 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
3708 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
3709 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
3710 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
3711 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
3712 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
3713 (gomp_barrier_t): Add awaited_final field.
3714 (gomp_barrier_init): Initialize awaited_final field.
3715 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
3716 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
3717 prototypes.
3718 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
3719 defines.
3720 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
3721 gomp_team_barrier_cancelled): New inline functions.
3722 (gomp_barrier_last_thread,
3723 gomp_team_barrier_set_task_pending,
3724 gomp_team_barrier_clear_task_pending,
3725 gomp_team_barrier_set_waiting_for_tasks,
3726 gomp_team_barrier_waiting_for_tasks,
3727 gomp_team_barrier_done): Use BAR_* defines.
3728 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
3729 (gomp_barrier_wait_end): Use BAR_* defines.
3730 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
3731 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
3732 Use BAR_* defines.
3733 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
3734 gomp_team_barrier_cancel): New functions.
3735 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
3736 argument.
3737 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
3738 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
3739 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
3740 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
3741 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
3742 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
3743 (gomp_barrier_t): Add cancellable field.
3744 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
3745 gomp_team_barrier_cancel): New prototypes.
3746 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
3747 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
3748 gomp_team_barrier_cancelled): New inline functions.
3749 (gomp_barrier_wait_start, gomp_barrier_last_thread,
3750 gomp_team_barrier_set_task_pending,
3751 gomp_team_barrier_clear_task_pending,
3752 gomp_team_barrier_set_waiting_for_tasks,
3753 gomp_team_barrier_waiting_for_tasks,
3754 gomp_team_barrier_done): Use BAR_* defines.
3755 * barrier.c (GOMP_barrier_cancel): New function.
3756 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
3757 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
3758 omp_proc_bind_spread): New params.
3759 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
3760 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
3761 omp_get_team_num, omp_is_initial_device): New externals.
3762 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
3763 New functions.
3764 (gomp_resolve_num_threads): Adjust for thread_limit now being in
3765 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
3766 infinity. If not nested, just return minimum of max_num_threads
3767 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
3768 to the returned value. Otherwise, don't update atomically
3769 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
3770 (GOMP_parallel_end): Adjust for thread_limit now being in
3771 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
3772 infinity. Adjust threads_busy in the pool rather than
3773 gomp_remaining_threads_count. Remember team->nthreads and call
3774 gomp_team_end before adjusting threads_busy, if not nested
3775 afterwards, just set it to 1 non-atomically. Add ialias.
3776 (GOMP_parallel_start): Adjust gomp_team_start caller.
3777 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
3778 * testsuite/libgomp.c/affinity-1.c: New test.
3779 * testsuite/libgomp.c/atomic-15.c: New test.
3780 * testsuite/libgomp.c/atomic-16.c: New test.
3781 * testsuite/libgomp.c/atomic-17.c: New test.
3782 * testsuite/libgomp.c/cancel-for-1.c: New test.
3783 * testsuite/libgomp.c/cancel-for-2.c: New test.
3784 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
3785 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
3786 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
3787 * testsuite/libgomp.c/cancel-sections-1.c: New test.
3788 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
3789 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
3790 * testsuite/libgomp.c/depend-1.c: New test.
3791 * testsuite/libgomp.c/depend-2.c: New test.
3792 * testsuite/libgomp.c/depend-3.c: New test.
3793 * testsuite/libgomp.c/depend-4.c: New test.
3794 * testsuite/libgomp.c/for-1.c: New test.
3795 * testsuite/libgomp.c/for-1.h: New file.
3796 * testsuite/libgomp.c/for-2.c: New test.
3797 * testsuite/libgomp.c/for-2.h: New file.
3798 * testsuite/libgomp.c/for-3.c: New test.
3799 * testsuite/libgomp.c/pr58392.c: New test.
3800 * testsuite/libgomp.c/simd-1.c: New test.
3801 * testsuite/libgomp.c/simd-2.c: New test.
3802 * testsuite/libgomp.c/simd-3.c: New test.
3803 * testsuite/libgomp.c/simd-4.c: New test.
3804 * testsuite/libgomp.c/simd-5.c: New test.
3805 * testsuite/libgomp.c/simd-6.c: New test.
3806 * testsuite/libgomp.c/target-1.c: New test.
3807 * testsuite/libgomp.c/target-2.c: New test.
3808 * testsuite/libgomp.c/target-3.c: New test.
3809 * testsuite/libgomp.c/target-4.c: New test.
3810 * testsuite/libgomp.c/target-5.c: New test.
3811 * testsuite/libgomp.c/target-6.c: New test.
3812 * testsuite/libgomp.c/target-7.c: New test.
3813 * testsuite/libgomp.c/taskgroup-1.c: New test.
3814 * testsuite/libgomp.c/thread-limit-1.c: New test.
3815 * testsuite/libgomp.c/thread-limit-2.c: New test.
3816 * testsuite/libgomp.c/thread-limit-3.c: New test.
3817 * testsuite/libgomp.c/udr-1.c: New test.
3818 * testsuite/libgomp.c/udr-2.c: New test.
3819 * testsuite/libgomp.c/udr-3.c: New test.
3820 * testsuite/libgomp.c++/affinity-1.C: New test.
3821 * testsuite/libgomp.c++/atomic-10.C: New test.
3822 * testsuite/libgomp.c++/atomic-11.C: New test.
3823 * testsuite/libgomp.c++/atomic-12.C: New test.
3824 * testsuite/libgomp.c++/atomic-13.C: New test.
3825 * testsuite/libgomp.c++/atomic-14.C: New test.
3826 * testsuite/libgomp.c++/atomic-15.C: New test.
3827 * testsuite/libgomp.c++/cancel-for-1.C: New test.
3828 * testsuite/libgomp.c++/cancel-for-2.C: New test.
3829 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
3830 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
3831 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
3832 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
3833 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
3834 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
3835 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
3836 * testsuite/libgomp.c++/cancel-test.h: New file.
3837 * testsuite/libgomp.c++/for-9.C: New test.
3838 * testsuite/libgomp.c++/for-10.C: New test.
3839 * testsuite/libgomp.c++/for-11.C: New test.
3840 * testsuite/libgomp.c++/simd-1.C: New test.
3841 * testsuite/libgomp.c++/simd-2.C: New test.
3842 * testsuite/libgomp.c++/simd-3.C: New test.
3843 * testsuite/libgomp.c++/simd-4.C: New test.
3844 * testsuite/libgomp.c++/simd-5.C: New test.
3845 * testsuite/libgomp.c++/simd-6.C: New test.
3846 * testsuite/libgomp.c++/simd-7.C: New test.
3847 * testsuite/libgomp.c++/simd-8.C: New test.
3848 * testsuite/libgomp.c++/target-1.C: New test.
3849 * testsuite/libgomp.c++/target-2.C: New test.
3850 * testsuite/libgomp.c++/target-2-aux.cc: New file.
3851 * testsuite/libgomp.c++/target-3.C: New test.
3852 * testsuite/libgomp.c++/taskgroup-1.C: New test.
3853 * testsuite/libgomp.c++/udr-1.C: New test.
3854 * testsuite/libgomp.c++/udr-2.C: New test.
3855 * testsuite/libgomp.c++/udr-3.C: New test.
3856 * testsuite/libgomp.c++/udr-4.C: New test.
3857 * testsuite/libgomp.c++/udr-5.C: New test.
3858 * testsuite/libgomp.c++/udr-6.C: New test.
3859 * testsuite/libgomp.c++/udr-7.C: New test.
3860 * testsuite/libgomp.c++/udr-8.C: New test.
3861 * testsuite/libgomp.c++/udr-9.C: New test.
3862
3863 2013-09-20 Jakub Jelinek <jakub@redhat.com>
3864
3865 PR testsuite/57605
3866 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
3867 ALWAYS_CFLAGS.
3868
3869 2013-09-20 Alan Modra <amodra@gmail.com>
3870
3871 * configure: Regenerate.
3872
3873 2013-09-19 Jakub Jelinek <jakub@redhat.com>
3874
3875 * testsuite/libgomp.c/sections-2.c: New test.
3876
3877 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
3878
3879 * testsuite/libgomp.fortran/strassen.f90:
3880 Add dg-skip-if aarch64_tiny.
3881
3882 2013-06-20 Iain Sandoe <iain@codesourcery.com>
3883 Cesar Philippidis <cesar@codesourcery.com>
3884
3885 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
3886 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
3887 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
3888 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3889 * testsuite/libgomp.graphite/graphite.exp: Likewise.
3890 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
3891 Use dg-runtest rather than gfortran-dg-runtest.
3892
3893 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
3894
3895 * testsuite/libgomp.c/icv-2.c: Extend current handling of
3896 Linux-based x86 systems to cover all GNU systems.
3897 * testsuite/libgomp.c/lock-3.c: Likewise.
3898 * testsuite/libgomp.c/pr48591.c: Likewise.
3899
3900 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
3901
3902 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
3903 GNU/Hurd, as done for Linux-based systems.
3904
3905 * config/posix/ptrlock.h: Fix comment.
3906
3907 2013-05-27 Tobias Burnus <burnus@net-b.de>
3908
3909 PR fortran/57423
3910 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
3911 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
3912 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
3913 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
3914 omp_destroy_nest_lock): Correct arguments to match the one in
3915 the OpenMP spec.
3916 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
3917 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
3918 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
3919 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
3920
3921 2013-05-16 Jakub Jelinek <jakub@redhat.com>
3922
3923 * testsuite/libgomp.c/loop-13.c: New test.
3924 * testsuite/libgomp.c/loop-14.c: New test.
3925 * testsuite/libgomp.c/loop-15.c: New test.
3926 * testsuite/libgomp.c++/loop-13.C: New test.
3927 * testsuite/libgomp.c++/loop-14.C: New test.
3928 * testsuite/libgomp.c++/loop-15.C: New test.
3929
3930 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3931
3932 PR middle-end/56217
3933 * testsuite/libgomp.c++/pr56217.C: New test.
3934
3935 2013-02-01 Alan Modra <amodra@gmail.com>
3936
3937 * task.c (GOMP_task, GOMP_taskwait): Comment.
3938
3939 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
3940 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
3941
3942 PR libgomp/55561
3943 * config/linux/wait.h (do_spin): Use atomic load for addr.
3944 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
3945 for intptr and ptrlock.
3946 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
3947 for ptrlock.
3948
3949 2013-01-22 Alan Modra <amodra@gmail.com>
3950
3951 PR libgomp/51376
3952 PR libgomp/56073
3953 * task.c (GOMP_task): Revert 2011-12-09 change.
3954 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
3955 barrier to read task->children..
3956 (gomp_barrier_handle_tasks): ..and matching atomic store with
3957 release barrier here when setting parent->children to NULL.
3958
3959 2013-01-16 Jakub Jelinek <jakub@redhat.com>
3960 Tobias Burnus <burnus@net-b.de>
3961
3962 PR driver/55884
3963 * testsuite/libgomp.fortran/fortran.exp: Use
3964 -fintrinsic-modules-path= instead of
3965 -fintrinsic-modules-path.
3966
3967 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
3968
3969 Update copyright years.
3970
3971 2012-12-19 Tobias Burnus <burnus@net-b.de>
3972
3973 * testsuite/libgomp.fortran/fortran.exp: Set
3974 -fintrinsic-modules-path.
3975
3976 2012-12-19 Tobias Burnus <burnus@net-b.de>
3977
3978 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
3979 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
3980
3981 2012-11-21 Jakub Jelinek <jakub@redhat.com>
3982
3983 PR libgomp/55411
3984 * team.c (gomp_free_thread): Decrease gomp_managed_threads
3985 if pool had any threads_used.
3986
3987 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
3988
3989 * testsuite/libgomp.c++/pr24455.C: Use
3990 -Wl,-undefined,dynamic_lookup on darwin.
3991
3992 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
3993
3994 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
3995
3996 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
3997
3998 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
3999
4000 2012-10-23 Ian Bolton <ian.bolton@arm.com>
4001 Jim MacArthur <jim.macarthur@arm.com>
4002 Marcus Shawcroft <marcus.shawcroft@arm.com>
4003 Nigel Stephens <nigel.stephens@arm.com>
4004 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4005 Richard Earnshaw <rearnsha@arm.com>
4006 Sofiane Naci <sofiane.naci@arm.com>
4007 Stephen Thomas <stephen.thomas@arm.com>
4008 Tejas Belagod <tejas.belagod@arm.com>
4009 Yufeng Zhang <yufeng.zhang@arm.com>
4010
4011 * configure.tgt: Add AArch64.
4012
4013 2012-10-04 Jason Merrill <jason@redhat.com>
4014
4015 * testsuite/libgomp.c++/tls-init1.C: New.
4016
4017 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
4018
4019 * configure: Regenerated.
4020
4021 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
4022
4023 * config/linux/mips/futex.h (sys_futex0): Change to static
4024 function with noinline, nomips16 attributes under MIPS16. Adjust
4025 asm statement to place 'li v0,SYS_futex' immediately before
4026 syscall insn.
4027
4028 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
4029
4030 * libgomp.texi (Library Index): Renamed from "Index" to prevent
4031 conflict with index.html on case-insensitive file systems.
4032
4033 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
4034
4035 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
4036 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
4037
4038 2012-07-02 Richard Guenther <rguenther@suse.de>
4039 Michael Matz <matz@suse.de>
4040 Tobias Grosser <tobias@grosser.es>
4041 Sebastian Pop <sebpop@gmail.com>
4042
4043 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4044 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
4045 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4046 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4047
4048 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
4049
4050 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
4051
4052 2012-06-22 Richard Guenther <rguenther@suse.de>
4053
4054 Merge from graphite branch
4055 2012-01-13 Tobias Grosser <tobias@grosser.es>
4056
4057 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4058 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
4059
4060 2012-06-07 Jakub Jelinek <jakub@redhat.com>
4061
4062 PR middle-end/53580
4063 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
4064 use GOMP_barrier () call instead.
4065 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4066 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4067 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
4068 call GOMP_barrier instead.
4069 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4070
4071 2012-06-06 Jakub Jelinek <jakub@redhat.com>
4072
4073 PR libgomp/52993
4074 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
4075 argument to memset call.
4076
4077 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
4078
4079 * configure: Regenerated.
4080
4081 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4082
4083 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
4084
4085 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
4086
4087 PR bootstrap/52812
4088 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
4089
4090 2012-03-22 Jakub Jelinek <jakub@redhat.com>
4091
4092 PR middle-end/52547
4093 * testsuite/libgomp.c/pr52547.c: New test.
4094
4095 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4096
4097 * testsuite/lib/libgomp.exp: load fortran-modules.exp
4098
4099 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4100
4101 * configure.tgt (mips-sgi-irix6*): Remove.
4102
4103 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4104
4105 * configure.tgt (alpha*-dec-osf*): Remove.
4106
4107 * config/osf/sem.h: Remove.
4108 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
4109
4110 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
4111
4112 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
4113
4114 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4115
4116 PR libstdc++/52188
4117 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
4118 Remove ENABLE_SYMVERS_SOL2.
4119 * configure: Regenerate.
4120 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
4121 (PREPROCESS): New variable.
4122 (libgomp.ver): New target.
4123 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
4124 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
4125 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
4126 Use libgomp.ver.
4127 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
4128 * Makefile.in: Regenerate.
4129
4130 2012-02-14 Walter Lee <walt@tilera.com>
4131
4132 * configure.tgt: Handle tilegx and tilepro.
4133 * config/linux/tile/futex.h: New file.
4134
4135 2012-02-08 Richard Guenther <rguenther@suse.de>
4136
4137 PR tree-optimization/46886
4138 * testsuite/libgomp.c/pr46886.c: New testcase.
4139
4140 2012-01-25 Matthias Klose <doko@ubuntu.com>
4141
4142 * config/linux/arm: Remove empty directory.
4143 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
4144
4145 2011-12-09 Alan Modra <amodra@gmail.com>
4146
4147 PR libgomp/51376
4148 * task.c (GOMP_taskwait): Don't access task->children outside of
4149 task_lock mutex region.
4150 (GOMP_task): Likewise.
4151
4152 2011-12-06 Jakub Jelinek <jakub@redhat.com>
4153
4154 PR libgomp/51132
4155 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
4156 to file scope.
4157 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
4158 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
4159 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4160 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4161 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
4162
4163 2011-12-02 Alan Modra <amodra@gmail.com>
4164
4165 * config/linux/affinity.c: Use atomic rather than sync builtin.
4166 * config/linux/lock.c: Likewise.
4167 * config/linux/ptrlock.h: Likewise.
4168 * config/linux/ptrlock.c: Likewise.
4169 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
4170 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
4171 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
4172 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
4173 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
4174 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
4175 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
4176 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
4177 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
4178 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
4179
4180 2011-11-30 Alan Modra <amodra@gmail.com>
4181
4182 PR libgomp/51298
4183 * config/linux/bar.h: Use atomic rather than sync builtins.
4184 * config/linux/bar.c: Likewise. Add missing acquire
4185 synchronisation on generation field.
4186 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
4187 double unlock.
4188
4189 2011-11-30 Alan Modra <amodra@gmail.com>
4190
4191 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
4192 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
4193 * config/linux/mutex.h: Use atomic rather than sync builtins.
4194 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
4195 * config/linux/omp-lock.h: Comment fix.
4196 * config/linux/arm/mutex.h: Delete.
4197 * config/linux/powerpc/mutex.h: Delete.
4198 * config/linux/ia64/mutex.h: Delete.
4199 * config/linux/mips/mutex.h: Delete.
4200
4201 2011-11-30 Alan Modra <amodra@gmail.com>
4202
4203 PR libgomp/51249
4204 * config/linux/sem.h: Rewrite.
4205 * config/linux/sem.c: Rewrite.
4206
4207 2011-11-28 Richard Henderson <rth@redhat.com>
4208
4209 * libgomp.h (enum memmodel): New.
4210
4211 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
4212
4213 * configure: Regenerate.
4214
4215 2011-10-10 Matthias Klose <doko@ubuntu.com>
4216
4217 * config/posix95: Remove empty directory.
4218
4219 2011-08-26 Jakub Jelinek <jakub@redhat.com>
4220
4221 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
4222
4223 2011-08-19 Jakub Jelinek <jakub@redhat.com>
4224
4225 PR fortran/49792
4226 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
4227 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
4228
4229 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4230
4231 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
4232
4233 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4234
4235 PR libgomp/49965
4236 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
4237
4238 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
4239
4240 * config/linux/proc.h: New.
4241 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
4242 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
4243 (gomp_init_num_threads): Update call to cpuset_popcount.
4244 (get_num_procs): Ditto.
4245 * config/linux/affinity.c (gomp_init_affinity): Call
4246 gomp_cpuset_popcount.
4247
4248 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4249
4250 PR fortran/42041
4251 PR fortran/46752
4252 * omp.h.in (omp_in_final): New prototype.
4253 * omp_lib.f90.in (omp_in_final): New interface.
4254 (omp_integer_kind, omp_logical_kind): Remove
4255 and replace all its uses in the module with 4.
4256 (openmp_version): Change to 201107.
4257 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
4258 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
4259 kind for the parameters.
4260 (omp_in_final): New external.
4261 (openmp_version): Change to 201107.
4262 * task.c (omp_in_final): New function.
4263 (gomp_init_task): Initialize final_task.
4264 (GOMP_task): Remove unused attribute from flags. Handle final
4265 tasks.
4266 (GOMP_taskyield): New function.
4267 (omp_in_final): Return true if if (false) or final (true) task
4268 or descendant of final (true).
4269 * fortran.c (omp_in_final_): New function.
4270 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
4271 (GOMP_3.0): Export GOMP_taskyield.
4272 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
4273 variables.
4274 (parse_unsigned_long_list): New function.
4275 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
4276 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
4277 even if parse_affinity returned false.
4278 * config/linux/affinity.c (gomp_init_affinity): Handle
4279 gomp_cpu_affinity_len == 0.
4280 * libgomp_g.h (GOMP_taskyield): New prototype.
4281 * libgomp.h (struct gomp_task): Add final_task field.
4282 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
4283 * team.c (gomp_team_start): Override new task's nthreads_var icv
4284 if list form OMP_NUM_THREADS has been used and it has value for
4285 the new nesting level.
4286
4287 * testsuite/libgomp.c/atomic-11.c: New test.
4288 * testsuite/libgomp.c/atomic-12.c: New test.
4289 * testsuite/libgomp.c/atomic-13.c: New test.
4290 * testsuite/libgomp.c/atomic-14.c: New test.
4291 * testsuite/libgomp.c/reduction-6.c: New test.
4292 * testsuite/libgomp.c/task-5.c: New test.
4293 * testsuite/libgomp.c++/atomic-2.C: New test.
4294 * testsuite/libgomp.c++/atomic-3.C: New test.
4295 * testsuite/libgomp.c++/atomic-4.C: New test.
4296 * testsuite/libgomp.c++/atomic-5.C: New test.
4297 * testsuite/libgomp.c++/atomic-6.C: New test.
4298 * testsuite/libgomp.c++/atomic-7.C: New test.
4299 * testsuite/libgomp.c++/atomic-8.C: New test.
4300 * testsuite/libgomp.c++/atomic-9.C: New test.
4301 * testsuite/libgomp.c++/task-8.C: New test.
4302 * testsuite/libgomp.c++/reduction-4.C: New test.
4303 * testsuite/libgomp.fortran/allocatable7.f90: New test.
4304 * testsuite/libgomp.fortran/allocatable8.f90: New test.
4305 * testsuite/libgomp.fortran/crayptr3.f90: New test.
4306 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
4307 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
4308 * testsuite/libgomp.fortran/pointer1.f90: New test.
4309 * testsuite/libgomp.fortran/pointer2.f90: New test.
4310 * testsuite/libgomp.fortran/task4.f90: New test.
4311
4312 2011-08-02 Tobias Burnus <burnus@net-b.de>
4313
4314 * libgomp.texi: Update OpenMP spec references to 3.1.
4315 (omp_in_final,OMP_PROC_BIND): New sections.
4316 (OMP_NUM_THREADS): Document that the value can be now a list.
4317 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
4318
4319 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4320
4321 * config/linux/x86/futex.h: Check __x86_64__ instead of
4322 __LP64__.
4323
4324 2011-07-29 Jakub Jelinek <jakub@redhat.com>
4325
4326 PR middle-end/49897
4327 PR middle-end/49898
4328 * testsuite/libgomp.c/pr49897-1.c: New test.
4329 * testsuite/libgomp.c/pr49897-2.c: New test.
4330 * testsuite/libgomp.c/pr49898-1.c: New test.
4331 * testsuite/libgomp.c/pr49898-2.c: New test.
4332
4333 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4334
4335 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
4336 for ia32 instead of ilp32.
4337
4338 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
4339 * testsuite/libgomp.c/atomic-6.c: Likewise.
4340
4341 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
4342
4343 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
4344 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
4345
4346 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4347
4348 PR libgomp/45351
4349 * config/osf/sem.h: New file.
4350 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
4351
4352 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4353
4354 PR target/49541
4355 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
4356 ldflags.
4357
4358 2011-07-15 Jakub Jelinek <jakub@redhat.com>
4359
4360 * config/linux/wait.h (do_spin): New inline, largely copied
4361 from do_wait, just don't do futex_wait here, instead return true if
4362 it should be done.
4363 (do_wait): Implement using do_spin.
4364 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
4365 to prototype.
4366 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4367 __sync_bool_compare_and_swap, pass the oldval to
4368 gomp_mutex_lock_slow.
4369 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
4370 If all mutex contenders are just spinning and not sleeping, don't
4371 change state to 2 unnecessarily. Optimize the loop when state has
4372 already become 2 to use just one atomic operation per loop instead
4373 of two.
4374 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
4375 to prototype.
4376 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
4377 __sync_bool_compare_and_swap, pass the oldval to
4378 gomp_mutex_lock_slow.
4379
4380 2011-06-22 Jakub Jelinek <jakub@redhat.com>
4381
4382 PR libgomp/49490
4383 * iter.c (gomp_iter_static_next): For chunk size 0
4384 only use n ceil/ nthreads size for the first
4385 n % nthreads threads in the team instead of
4386 all threads except for the last few ones which
4387 get less work or none at all.
4388 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
4389 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
4390 chunk argument, set run_sched_modifier to 0 for static
4391 resp. 1 for other kinds. If chunk argument is 0
4392 and not static, set value to 1.
4393
4394 2011-05-19 Jakub Jelinek <jakub@redhat.com>
4395
4396 PR c++/49043
4397 * testsuite/libgomp.c++/pr49043.C: New test.
4398
4399 PR c++/48869
4400 * testsuite/libgomp.c++/pr48869.C: New test.
4401
4402 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4403
4404 PR fortran/48894
4405 * fortran.c: Include limits.h.
4406 (TO_INT): Define.
4407 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
4408 *set.
4409 (omp_set_num_threads_8_, omp_set_schedule_8_,
4410 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
4411 omp_get_team_size_8_): Use TO_INT macro.
4412 * testsuite/libgomp.fortran/pr48894.f90: New test.
4413
4414 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4415
4416 PR middle-end/48591
4417 * testsuite/libgomp.c/pr48591.c: New test.
4418
4419 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4420
4421 PR bootstrap/48135
4422 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
4423 * configure: Regenerate.
4424
4425 2011-02-27 Jakub Jelinek <jakub@redhat.com>
4426
4427 PR fortran/47886
4428 * testsuite/libgomp.fortran/task3.f90: New test.
4429
4430 2011-02-24 Tobias Burnus <burnus@net-b.de>
4431
4432 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
4433
4434 2011-02-23 Jakub Jelinek <jakub@redhat.com>
4435
4436 PR libgomp/47854
4437 * libgomp.texi (omp_get_wtime): Don't say time in the past
4438 must be Unix Epoch.
4439
4440 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4441
4442 PR libgomp/47804
4443 * testsuite/libgomp.fortran/fortran.exp: Check for both
4444 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
4445 but $blddir != "", still append ${blddir}/${lang_library_path}
4446 to ld_library_path.
4447
4448 2011-02-16 Tobias Burnus <burnus@net-b.de>
4449
4450 PR libgomp/47758
4451 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
4452 of libquadmath.a before adding its libpath to ldflags.
4453
4454 2011-02-14 Jakub Jelinek <jakub@redhat.com>
4455
4456 PR libgomp/47731
4457 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
4458 to FUTEX_WAIT futex syscall.
4459 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
4460
4461 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4462
4463 * configure: Regenerate.
4464
4465 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
4466
4467 PR libstdc++/36104
4468 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
4469
4470 2011-01-16 Gerald Pfeifer
4471
4472 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
4473
4474 2010-12-14 Jakub Jelinek <jakub@redhat.com>
4475
4476 PR fortran/46874
4477 * libgomp.fortran/allocatable6.f90: New test.
4478
4479 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4480
4481 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
4482 * configure: Regenerate.
4483
4484 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
4485
4486 PR target/40125
4487 PR lto/46695
4488 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
4489 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
4490 * aclocal.m4: Regenerate.
4491 * configure: Regenerate.
4492 * Makefile.in: Regenerate.
4493 * testsuite/Makefile.in: Regenerate.
4494
4495 2010-12-02 Jakub Jelinek <jakub@redhat.com>
4496
4497 PR fortran/46753
4498 * libgomp.fortran/pr46753.f90: New test.
4499
4500 PR libgomp/43706
4501 * env.c (initialize_env): Default to spin count 300000
4502 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
4503 is specified.
4504
4505 PR libgomp/45240
4506 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
4507 at the end if sync builtins aren't supported.
4508
4509 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4510
4511 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
4512
4513 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4514
4515 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
4516
4517 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
4518
4519 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
4520
4521 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4522 Tobias Burnus <burnus@net-b.de>
4523
4524 PR fortran/32049
4525 * configure.ac:
4526 * configure: Regenerate.
4527
4528 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
4529
4530 * config/linux/futex.h: New.
4531 * config/linux/arm/mutex.h: New.
4532 * configure.tgt (arm*-*-linux*): Add config path.
4533
4534 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4535
4536 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4537
4538 2010-09-23 Tobias Burnus <burnus@net-b.de>
4539
4540 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
4541 Change Fortran datatype to LOGICAL.
4542 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
4543 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
4544
4545 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4546
4547 * configure: Regenerate.
4548
4549 2010-07-26 Jakub Jelinek <jakub@redhat.com>
4550
4551 * libgomp.texi: Add function keyword to a couple of Fortran
4552 interfaces, use integer instead of int for Fortran.
4553
4554 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
4555
4556 * libgomp.texi: Fix spelling and pasto problems throughout.
4557 Adjust prototypes to match code.
4558
4559 2010-07-24 Tobias Burnus <burnus@net-b.de>
4560
4561 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
4562 silence -fwhole-file warning.
4563
4564 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4565
4566 * configure.tgt (*-*-solaris2.[56]*): Removed.
4567
4568 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4569
4570 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
4571 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
4572 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
4573 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
4574 targetting solaris2*.
4575 * configure: Regenerate.
4576 * config.h.in: Regenerate.
4577
4578 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
4579 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
4580 Add libgomp_version_dep.
4581 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
4582 versioning.
4583 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
4584 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
4585 * Makefile.in: Regenerate.
4586
4587 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
4588 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
4589 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
4590 to common block, protected by
4591 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
4592
4593 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
4594
4595 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
4596
4597 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
4598
4599 PR bootstrap/43170
4600 * configure: Regenerate.
4601
4602 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4603
4604 PR other/43620
4605 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
4606 * configure: Regenerate.
4607 * Makefile.in: Regenerate.
4608 * testsuite/Makefile.in: Regenerate.
4609
4610 2010-04-26 Jakub Jelinek <jakub@redhat.com>
4611
4612 PR c/43893
4613 * testsuite/libgomp.c/pr43893.c: New test.
4614 * testsuite/libgomp.c++/pr43893.C: New test.
4615
4616 2010-04-21 Jakub Jelinek <jakub@redhat.com>
4617
4618 PR middle-end/43570
4619 * testsuite/libgomp.fortran/vla8.f90: New test.
4620
4621 2010-04-20 Jakub Jelinek <jakub@redhat.com>
4622
4623 PR libgomp/43706
4624 * config/linux/affinity.c (gomp_init_affinity): Decrease
4625 gomp_available_cpus if affinity mask confines the process to fewer
4626 CPUs.
4627 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
4628 non-NULL, just return gomp_available_cpus.
4629
4630 PR libgomp/43569
4631 * sections.c (gomp_sections_init): Initialize ws->mode.
4632
4633 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4634
4635 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
4636 not unused bar variable.
4637 * configure: Regenerate.
4638
4639 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4640
4641 * Makefile.in: Regenerate.
4642 * aclocal.m4: Regenerate.
4643 * testsuite/Makefile.in: Regenerate.
4644
4645 2010-03-22 Jakub Jelinek <jakub@redhat.com>
4646
4647 PR libgomp/42942
4648 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
4649 (initialize_env): Adjust callers.
4650 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
4651 when the argument is 0.
4652
4653 * testsuite/libgomp.c/pr42942.c: New test.
4654
4655 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
4656
4657 PR middle-end/42644
4658 PR middle-end/42130
4659 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
4660 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
4661
4662 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4663
4664 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
4665 * testsuite/libgomp.c++/task-6.C: Likewise.
4666
4667 2010-01-28 Steve Ellcey <sje@cup.hp.com>
4668
4669 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
4670
4671 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
4672
4673 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
4674 * configure: Regenerate.
4675
4676 2010-01-26 Jakub Jelinek <jakub@redhat.com>
4677
4678 PR fortran/42866
4679 * testsuite/libgomp.fortran/allocatable5.f90: New test.
4680
4681 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
4682
4683 * configure.ac: Test for executability of GFORTRAN.
4684 * configure: Regenerate.
4685
4686 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4687
4688 * configure: Regenerate.
4689
4690 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
4691
4692 PR libgomp/42602
4693 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
4694
4695 2010-01-03 Richard Guenther <rguenther@suse.de>
4696
4697 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
4698
4699 2009-12-23 Sebastian Pop <sebpop@gmail.com>
4700
4701 * testsuite/libgomp.graphite/pr4118.c: New.
4702
4703 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4704
4705 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
4706 for darwin, protect the test with require-effective-target tls_runtime.
4707 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4708
4709 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4710
4711 PR target/41605
4712 * testsuite/lib/libgomp.exp: Provide -B options to allow for
4713 link spec %s substitutions for static libraries.
4714
4715 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
4716
4717 PR testsuite/42135
4718 * libgomp.graphite/force-parallel-2.c: Reduce array size.
4719
4720 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4721
4722 * Makefile.in: Regenerate.
4723 * configure: Regenerate.
4724 * testsuite/Makefile.in: Regenerate.
4725
4726 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
4727
4728 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
4729 settings for LC_ALL and LANG.
4730
4731 2009-11-25 Jakub Jelinek <jakub@redhat.com>
4732
4733 PR fortran/42162
4734 * testsuite/libgomp.fortran/pr42162.f90: New test.
4735
4736 2009-11-13 Jakub Jelinek <jakub@redhat.com>
4737
4738 PR middle-end/42029
4739 * testsuite/libgomp.c/pr42029.c: New test.
4740
4741 2009-10-26 Jakub Jelinek <jakub@redhat.com>
4742
4743 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
4744 *s. Accept ld version without text in ()s.
4745 * configure: Regenerated.
4746
4747 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
4748
4749 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
4750
4751 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4752
4753 PR libgomp/41418
4754 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
4755 or a hyphen (happens with fortran language disabled).
4756 * configure: Regenerate.
4757
4758 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4759
4760 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
4761 use sed script portable to Solaris /bin/sed for extracting ld
4762 version.
4763 * configure: Regenerate.
4764
4765 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
4766
4767 * testsuite/libgomp.graphite/bounds.c: New test.
4768
4769 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4770
4771 * Makefile.am (libgomp_la_LINK): New.
4772 * Makefile.in: Regenerate.
4773
4774 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4775
4776 * configure.ac (AC_PREREQ): Bump to 2.64.
4777
4778 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4779
4780 * Makefile.am (install-html, install-pdf): Remove.
4781 * Makefile.in: Regenerate.
4782
4783 * Makefile.in: Regenerate.
4784 * aclocal.m4: Regenerate.
4785 * config.h.in: Regenerate.
4786 * configure: Regenerate.
4787 * testsuite/Makefile.in: Regenerate.
4788
4789 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4790
4791 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
4792 * Makefile.in: Regenerate.
4793
4794 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
4795
4796 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
4797 * Makefile.in: Regenerate.
4798
4799 2009-08-19 Tobias Burnus <burnus@net-b.de>
4800
4801 PR fortran/41102
4802 omp_lib.h.in: Fix -std=f95 errors.
4803
4804 2009-08-14 David Edelsohn <edelsohn@gnu.org>
4805
4806 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
4807 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
4808 * testsuite/libgomp.graphite/graphite.exp: New.
4809
4810 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
4811
4812 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
4813 only build.
4814
4815 2009-08-04 David Daney <ddaney@caviumnetworks.com>
4816
4817 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
4818 needed memory barrier semantics.
4819 * config/linux/mips/mutex.h: New file.
4820
4821 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4822
4823 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
4824
4825 2009-07-16 Joseph Myers <joseph@codesourcery.com>
4826
4827 * configure: Regenerate.
4828
4829 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
4830
4831 PR testsuite/40699
4832 PR testsuite/40707
4833 PR testsuite/40709
4834 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
4835 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
4836 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
4837
4838 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
4839
4840 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
4841 options when choosing a multilib.
4842
4843 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
4844
4845 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
4846 ld_library_path. Use add_path. Add just find_libgcc_s to
4847 ld_library_path, not every libgcc multilib directory.
4848 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
4849 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
4850 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
4851 Use add_path.
4852 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
4853
4854 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
4855
4856 * Makefile.am (LTLDFLAGS): Define.
4857 (LINK): Define.
4858 * Makefile.in: Regenerate.
4859
4860 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
4861
4862 PR fortran/39718
4863 * testsuite/libgomp.fortran/fortran.exp: Don't link with
4864 libgfortranbegin, check existence of libgfortran.a instead of
4865 libgfortranbegin.a.
4866
4867 2009-05-20 Jakub Jelinek <jakub@redhat.com>
4868
4869 PR libgomp/40174
4870 * team.c (gomp_thread_start): Destroy thr->release semaphore.
4871 (gomp_free_pool_helper): Likewise.
4872
4873 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
4874 Jakub Jelinek <jakub@redhat.com>
4875
4876 PR fortran/35423
4877 * testsuite/libgomp.fortran/workshare2.f90: New test.
4878
4879 2009-04-09 Nick Clifton <nickc@redhat.com>
4880
4881 * iter.c: Change copyright header to refer to version 3 of the
4882 GNU General Public License with version 3.1 of the GCC Runtime
4883 Library Exception and to point readers at the COPYING3 and
4884 COPYING3.RUNTIME files and the FSF's license web page.
4885 * alloc.c: Likewise.
4886 * barrier.c: Likewise.
4887 * config/bsd/proc.c: Likewise.
4888 * config/linux/affinity.c: Likewise.
4889 * config/linux/alpha/futex.h: Likewise.
4890 * config/linux/bar.c: Likewise.
4891 * config/linux/bar.h: Likewise.
4892 * config/linux/ia64/futex.h: Likewise.
4893 * config/linux/ia64/mutex.h: Likewise.
4894 * config/linux/lock.c: Likewise.
4895 * config/linux/mips/futex.h: Likewise.
4896 * config/linux/mutex.c: Likewise.
4897 * config/linux/mutex.h: Likewise.
4898 * config/linux/powerpc/futex.h: Likewise.
4899 * config/linux/proc.c: Likewise.
4900 * config/linux/ptrlock.c: Likewise.
4901 * config/linux/ptrlock.h: Likewise.
4902 * config/linux/s390/futex.h: Likewise.
4903 * config/linux/sem.c: Likewise.
4904 * config/linux/sem.h: Likewise.
4905 * config/linux/sparc/futex.h: Likewise.
4906 * config/linux/wait.h: Likewise.
4907 * config/linux/x86/futex.h: Likewise.
4908 * config/mingw32/proc.c: Likewise.
4909 * config/mingw32/time.c: Likewise.
4910 * config/posix/affinity.c: Likewise.
4911 * config/posix/bar.c: Likewise.
4912 * config/posix/bar.h: Likewise.
4913 * config/posix/lock.c: Likewise.
4914 * config/posix/mutex.h: Likewise.
4915 * config/posix/proc.c: Likewise.
4916 * config/posix/ptrlock.h: Likewise.
4917 * config/posix/sem.c: Likewise.
4918 * config/posix/sem.h: Likewise.
4919 * config/posix/time.c: Likewise.
4920 * config/posix95/lock.c: Likewise.
4921 * critical.c: Likewise.
4922 * env.c: Likewise.
4923 * error.c: Likewise.
4924 * fortran.c: Likewise.
4925 * iter_ull.c: Likewise.
4926 * libgomp.h: Likewise.
4927 * libgomp_f.h.in: Likewise.
4928 * libgomp_g.h: Likewise.
4929 * loop.c: Likewise.
4930 * loop_ull.c: Likewise.
4931 * omp.h.in: Likewise.
4932 * omp_lib.f90.in: Likewise.
4933 * omp_lib.h.in: Likewise.
4934 * ordered.c: Likewise.
4935 * parallel.c: Likewise.
4936 * sections.c: Likewise.
4937 * single.c: Likewise.
4938 * task.c: Likewise.
4939 * team.c: Likewise.
4940 * work.c: Likewise.
4941
4942 2009-04-09 Jakub Jelinek <jakub@redhat.com>
4943
4944 * testsuite/config/default.exp: Change copyright header to refer to
4945 version 3 of the GNU General Public License and to point readers
4946 at the COPYING3 file and the FSF's license web page.
4947
4948 2009-04-08 Jakub Jelinek <jakub@redhat.com>
4949
4950 PR middle-end/39573
4951 * libgomp.c++/pr39573.C: New test.
4952
4953 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4954
4955 PR other/39591
4956 * testsuite/libgomp.c/pr39591-1.c: New test.
4957 * testsuite/libgomp.c/pr39591-2.c: New test.
4958 * testsuite/libgomp.c/pr39591-3.c: New test.
4959
4960 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
4961
4962 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
4963 * testsuite/libgomp.c/atomic-6.c: Ditto.
4964
4965 2009-03-23 Jakub Jelinek <jakub@redhat.com>
4966
4967 PR c/39495
4968 * testsuite/libgomp.c/loop-12.c: New test.
4969 * testsuite/libgomp.c/loop-11.c: New test.
4970 * testsuite/libgomp.c++/loop-11.C: New test.
4971 * testsuite/libgomp.c++/loop-12.C: New test.
4972 * testsuite/libgomp.c++/for-8.C: New test.
4973
4974 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4975
4976 * configure: Regenerate.
4977
4978 2009-02-11 Jakub Jelinek <jakub@redhat.com>
4979
4980 PR middle-end/39154
4981 * testsuite/libgomp.c/pr39154.c: New test.
4982
4983 2009-01-30 Ian Lance Taylor <iant@google.com>
4984
4985 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
4986 libgomp_ld_is_gold. Get gold version number.
4987 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
4988 * configure: Rebuild.
4989
4990 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4991
4992 * testsuite/lib/libgomp.exp: Add -B option for targets that
4993 use libgfortran.a%s in their specs.
4994
4995 2009-01-07 Jakub Jelinek <jakub@redhat.com>
4996
4997 PR libgomp/38086
4998 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
4999 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
5000 HAVE_AS_SYMVER_DIRECTIVE is not defined.
5001 * configure: Regenerated.
5002 * config.h.in: Likewise.
5003
5004 2008-12-28 Jakub Jelinek <jakub@redhat.com>
5005
5006 PR c++/38650
5007 * testsuite/libgomp.c/pr38650.c: New test.
5008 * testsuite/libgomp.c++/pr38650.C: New test.
5009
5010 2008-12-27 Jakub Jelinek <jakub@redhat.com>
5011
5012 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
5013
5014 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
5015
5016 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
5017
5018 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5019
5020 * configure: Regenerate.
5021
5022 2008-12-08 Jakub Jelinek <jakub@redhat.com>
5023
5024 PR middle-end/36802
5025 * testsuite/libgomp.c/pr36802-1.c: New test.
5026 * testsuite/libgomp.c/pr36802-2.c: New test.
5027 * testsuite/libgomp.c/pr36802-3.c: New test.
5028
5029 2008-12-01 Janis Johnson <janis187@us.ibm.com>
5030
5031 PR libgomp/38270
5032 * config/linux/powerpc/mutex.h: New.
5033
5034 2008-12-01 Jakub Jelinek <jakub@redhat.com>
5035
5036 PR c++/38257
5037 * testsuite/libgomp.c++/for-7.C: New test.
5038
5039 PR c++/38348
5040 * testsuite/libgomp.c++/for-6.C: New test.
5041
5042 2008-11-26 Janis Johnson <janis187@us.ibm.com>
5043
5044 PR testsuite/28870
5045 * testsuite/lib/libgomp.exp: Include new timeout library files.
5046 (libgomp_target_compile): Set timeout value from new proc.
5047
5048 2008-11-13 Steve Ellcey <sje@cup.hp.com>
5049
5050 PR libgomp/37938
5051 * config/linux/ia64/mutex.h: New.
5052
5053 2008-11-04 Tobias Burnus <burnus@net-b.de>
5054
5055 PR libgomp/37935
5056 * libgomp.texi (Runtime library routines, environment variables):
5057 Update for OpenMP version 3.0.
5058
5059 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
5060 Steve Ellcey <sje@cup.hp.com>
5061
5062 * configure: Regenerate for new libtool.
5063 * Makefile.in: Ditto.
5064 * testsuite/Makefile.in: Ditto.
5065
5066 2008-09-19 Jakub Jelinek <jakub@redhat.com>
5067 Andreas Tobler <a.tobler@schweiz.org>
5068
5069 * config/bsd/proc.c: New file.
5070 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
5071 * configure.ac: Check for header <sys/sysctl.h>
5072 * configure: Regenerate.
5073 * config.h.in: Likewise.
5074
5075 2008-09-05 Janis Johnson <janis187@us.ibm.com>
5076
5077 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
5078
5079 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5080
5081 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
5082 * Makefile.in: Regenerated.
5083 * testsuite/Makefile.in: Regenerated.
5084
5085 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
5086
5087 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
5088 depend on blddir if blddir exists.
5089 (libgomp_target_compile): Likewise.
5090 * testsuite/libgomp.c++/c++.exp: Likewise.
5091 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5092
5093 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5094
5095 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
5096 Do not list GPL as Invariant Section.
5097
5098 2008-07-28 Ilie Garbacea <ilie@mips.com>
5099 Chao-ying Fu <fu@mips.com>
5100
5101 * configure.tgt: Enable futex for MIPS.
5102 * config/linux/mips/futex.h: New file.
5103
5104 2008-07-16 Jakub Jelinek <jakub@redhat.com>
5105
5106 * team.c (gomp_team_end): Free team immediately if it has
5107 just one thread.
5108
5109 2008-07-08 David Edelsohn <edelsohn@gnu.org>
5110
5111 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
5112 * testsuite/libgomp.fortran/fortran.exp: Same.
5113 * testsuite/libgomp.c/c.exp: Same.
5114 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
5115 directory to library path first.
5116
5117 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
5118
5119 * env.c (parse_stacksize): Add cast to avoid warning.
5120 (parse_spincount): Likewise.
5121
5122 2008-06-27 Jakub Jelinek <jakub@redhat.com>
5123
5124 * testsuite/libgomp.c/loop-10.c: New test.
5125 * libgomp.c/loop-3.c (main): Add lastprivate clause.
5126 * libgomp.c++/loop-6.C (main): Likewise.
5127
5128 PR debug/36617
5129 * testsuite/libgomp.c/debug-1.c: New test.
5130
5131 2008-06-19 Jakub Jelinek <jakub@redhat.com>
5132
5133 * testsuite/libgomp.c/nqueens-1.c: New test.
5134
5135 PR c++/36523
5136 * testsuite/libgomp.c++/task-7.C: New function.
5137
5138 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5139
5140 * configure: Regenerate.
5141
5142 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5143
5144 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
5145 mutex when HAVE_SYNC_BUILTINS isn't defined.
5146
5147 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5148
5149 * libgomp.texi (omp_test_lock): Fix typo.
5150
5151 2008-06-12 Tobias Burnus <burnus@net-b.de>
5152
5153 * omp_lib.f90.in: Add "implicit none".
5154
5155 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5156
5157 PR middle-end/36506
5158 * testsuite/libgomp.c/reduction-5.c: New test.
5159
5160 2008-06-11 Jakub Jelinek <jakub@redhat.com>
5161
5162 * libgomp.h (struct gomp_task): Add in_tied_task field.
5163 * task.c (gomp_init_task): Initialize it.
5164 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
5165 unconditionally. Don't call gomp_team_barrier_wake if
5166 current task is implicit or if(0) from implicit and number of
5167 running tasks is equal to nthreads - 1.
5168
5169 PR libgomp/36471
5170 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
5171 omp_get_team_size_8): Fix pastos.
5172
5173 PR libgomp/36469
5174 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
5175 * configure: Regenerated.
5176 * config.h.in: Regenerated.
5177 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
5178 defined.
5179
5180 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
5181
5182 PR bootstrap/36452
5183 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
5184 (GOMP_loop_ull_dynamic_start): Likewise.
5185 (GOMP_loop_ull_guided_start): Likewise.
5186 (GOMP_loop_ull_ordered_static_start): Likewise.
5187 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
5188 (GOMP_loop_ull_ordered_guided_start): Likewise.
5189
5190 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5191 Richard Henderson <rth@redhat.com>
5192 Ulrich Drepper <drepper@redhat.com>
5193 Jakob Blomer <jakob.blomer@ira.uka.de>
5194
5195 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
5196 Substitute also OMP_*LOCK_25*.
5197 * configure: Regenerated.
5198 * config.h.in: Regenerated.
5199 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
5200 ptrlock.c and task.c.
5201 * Makefile.in: Regenerated.
5202 * testsuite/Makefile.in: Regenerated.
5203 * task.c: New file.
5204 * loop_ull.c: New file.
5205 * iter_ull.c: New file.
5206 * libgomp.h: Include ptrlock.h.
5207 (enum gomp_task_kind): New type.
5208 (struct gomp_team): Add task_lock, task_queue, task_count,
5209 task_running_count, single_count fields. Add
5210 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
5211 Remove work_share_lock, generation_mask,
5212 oldest_live_gen, num_live_gen and init_work_shares fields, add
5213 work work_share_list_alloc, work_share_list_free and work_share_chunk
5214 fields. Change work_shares from pointer to pointers into an array.
5215 Change ordered_release field into gomp_sem_t ** from flexible array
5216 member. Add implicit_task and initial_work_shares fields.
5217 Move close to the end of the struct.
5218 (struct gomp_team_state): Add single_count, last_work_share,
5219 active_level and level fields, remove work_share_generation.
5220 (gomp_barrier_handle_tasks): New prototype.
5221 (gomp_finish_task): New inline function.
5222 (struct gomp_work_share): Move chunk_size, end, incr into
5223 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
5224 next_ll fields. Reshuffle fields. Add next_alloc,
5225 next_ws, next_free and inline_ordered_team_ids fields, change
5226 ordered_team_ids into pointer from flexible array member.
5227 Add mode field. Put lock and next into a different cache line
5228 from most of the write-once fields.
5229 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
5230 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
5231 gomp_iter_ull_guided_next): New prototypes.
5232 (gomp_new_icv): New prototype.
5233 (struct gomp_thread): Add thread_pool and task fields.
5234 (struct gomp_thread_pool): New type.
5235 (gomp_new_team): New prototype.
5236 (gomp_team_start): Change type of last argument.
5237 (gomp_new_work_share): Removed.
5238 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
5239 (gomp_work_share_init_done): New static inline.
5240 (gomp_throttled_spin_count_var, gomp_available_cpus,
5241 gomp_managed_threads): New extern decls.
5242 (gomp_init_task): New prototype.
5243 (gomp_spin_count_var): New extern var decl.
5244 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
5245 or no alias support, or if not PIC.
5246 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
5247 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
5248 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
5249 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
5250 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
5251 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
5252 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
5253 gomp_test_nest_lock_25): New prototypes.
5254 (omp_lock_symver, strong_alias): Define.
5255 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
5256 decls.
5257 (gomp_end_task): New.
5258 (struct gomp_task_icv, gomp_global_icv): New.
5259 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
5260 (struct gomp_task): New.
5261 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5262 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5263 (gomp_icv): New.
5264 (gomp_schedule_type): Reorder enum to match
5265 omp_sched_t.
5266 * team.c (struct gomp_thread_start_data): Add thread_pool and task
5267 fields.
5268 (gomp_thread_start): Add gomp_team_barrier_wait call.
5269 For non-nested case remove clearing of docked thread thr fields.
5270 Use pool fields instead of global gomp_* variables. Use
5271 gomp_barrier_wait_last when needed. Initialize ts.active_level.
5272 Create tasks for each member thread.
5273 (free_team): Only destroy team barrier, task_lock here and free it.
5274 (gomp_free_thread): Free last_team if non-NULL.
5275 (gomp_team_end): Call gomp_team_barrier_wait instead of
5276 gomp_barrier_wait. For nested case call one extra
5277 gomp_barrier_wait. Move here some destruction from free_team.
5278 Call free_team on pool->last_team if any, rather than freeing
5279 current team. Destroy work_share_list_free_lock ifndef
5280 HAVE_SYNC_BUILTINS.
5281 (gomp_new_icv): New function.
5282 (gomp_threads, gomp_threads_size, gomp_threads_used,
5283 gomp_threads_dock): Removed.
5284 (gomp_thread_destructor): New variable.
5285 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
5286 functions.
5287 (gomp_team_start): Create new pool if current thread doesn't have
5288 one. Use pool fields instead of global gomp_* variables.
5289 Initialize thread_pool field for new threads. Clear single_count.
5290 Change last argument from ws to team, don't create
5291 new team, set ts.work_share to &team->work_shares[0] and clear
5292 ts.last_work_share. Don't clear ts.work_share_generation.
5293 If number of threads changed, adjust atomically gomp_managed_threads.
5294 Use gomp_init_task instead of gomp_new_task,
5295 set thr->task to the corresponding implicit_task array entry.
5296 Create tasks for each member thread. Initialize ts.level.
5297 (initialize_team): Call pthread_key_create on
5298 gomp_thread_destructor.
5299 (team_destructor): New function.
5300 (new_team): Removed.
5301 (gomp_new_team): New function.
5302 (free_team): Free gomp_work_share blocks chained through next_alloc,
5303 instead of freeing work_shares and destroying work_share_lock.
5304 (gomp_team_end): Call gomp_fini_work_share. If number of threads
5305 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
5306 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
5307 of gomp_barrier_wait.
5308 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
5309 instead of gomp_barrier_wait. Call gomp_work_share_init_done
5310 if gomp_work_share_start returned true. Don't unlock ws->lock.
5311 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
5312 of gomp_barrier_wait.
5313 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
5314 gomp_work_share_init_done if gomp_work_share_start returned true.
5315 Don't unlock ws->lock.
5316 * work.c: Include stddef.h.
5317 (free_work_share): Use work_share_list_free_lock instead
5318 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
5319 Call gomp_fini_work_share and then either free ws if orphaned, or
5320 put it into work_share_list_free list of the current team.
5321 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
5322 functions.
5323 (gomp_work_share_start, gomp_work_share_end,
5324 gomp_work_share_end_nowait): Rewritten.
5325 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
5326 (openmp_version): Set to 200805.
5327 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5328 omp_sched_guided, omp_sched_auto): New parameters.
5329 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5330 omp_set_max_active_levels, omp_get_max_active_levels,
5331 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5332 omp_get_active_level): New interfaces.
5333 * omp_lib.h.in (openmp_version): Set to 200805.
5334 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
5335 omp_sched_guided, omp_sched_auto): New parameters.
5336 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5337 omp_set_max_active_levels, omp_get_max_active_levels,
5338 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5339 omp_get_active_level): New externals.
5340 * loop.c: Include limits.h.
5341 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
5342 GFS_AUTO.
5343 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
5344 Likewise. Use gomp_icv.
5345 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
5346 ts.static_trip here.
5347 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
5348 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
5349 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
5350 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
5351 don't unlock ws->lock, otherwise lock it.
5352 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
5353 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
5354 (gomp_parallel_loop_start): Call gomp_new_team instead of
5355 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
5356 Adjust gomp_team_start caller. Pass 0 as second argument to
5357 gomp_resolve_num_threads.
5358 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
5359 If adding ws->chunk_size nthreads + 1 times after end won't
5360 overflow, set ws->mode to 1.
5361 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
5362 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
5363 GOMP_loop_ull_ordered_static_start,
5364 GOMP_loop_ull_ordered_dynamic_start,
5365 GOMP_loop_ull_ordered_guided_start,
5366 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
5367 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
5368 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
5369 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
5370 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
5371 prototypes.
5372 * libgomp.map: Export lock routines also @@OMP_2.0.
5373 (GOMP_loop_ordered_dynamic_first,
5374 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
5375 GOMP_loop_ordered_static_first): Remove.
5376 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
5377 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
5378 GOMP_loop_ull_ordered_dynamic_next,
5379 GOMP_loop_ull_ordered_dynamic_start,
5380 GOMP_loop_ull_ordered_guided_next,
5381 GOMP_loop_ull_ordered_guided_start,
5382 GOMP_loop_ull_ordered_runtime_next,
5383 GOMP_loop_ull_ordered_runtime_start,
5384 GOMP_loop_ull_ordered_static_next,
5385 GOMP_loop_ull_ordered_static_start,
5386 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
5387 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
5388 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
5389 (omp_set_schedule, omp_get_schedule,
5390 omp_get_thread_limit, omp_set_max_active_levels,
5391 omp_get_max_active_levels, omp_get_level,
5392 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
5393 omp_set_schedule_, omp_set_schedule_8_,
5394 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5395 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5396 omp_get_max_active_levels_, omp_get_level_,
5397 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5398 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5399 New exports @@OMP_3.0.
5400 * omp.h.in (omp_sched_t): New type.
5401 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5402 omp_set_max_active_levels, omp_get_max_active_levels,
5403 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
5404 omp_get_active_level): New prototypes.
5405 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
5406 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
5407 gomp_thread_limit_var, gomp_remaining_threads_count,
5408 gomp_remaining_threads_lock): New variables.
5409 (parse_spincount): New function.
5410 (initialize_env): Call gomp_init_num_threads unconditionally.
5411 Initialize gomp_available_cpus. Call parse_spincount,
5412 initialize gomp_{,throttled_}spin_count_var
5413 depending on presence and value of OMP_WAIT_POLICY and
5414 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
5415 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
5416 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
5417 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
5418 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
5419 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
5420 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
5421 (gomp_global_icv): New.
5422 (parse_schedule): Use it. Parse "auto".
5423 (omp_set_num_threads): Use gomp_icv.
5424 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
5425 Likewise.
5426 (omp_get_max_threads): Move from parallel.c.
5427 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
5428 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
5429 add ialias.
5430 (parse_stacksize, parse_wait_policy): New functions.
5431 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
5432 both wrappers for compatibility and new locks.
5433 (omp_set_schedule, omp_get_schedule,
5434 omp_get_thread_limit, omp_set_max_active_levels,
5435 omp_get_max_active_levels, omp_get_level,
5436 omp_get_ancestor_thread_num, omp_get_team_size,
5437 omp_get_active_level): New ialias_redirect.
5438 (omp_set_schedule_, omp_set_schedule_8_,
5439 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
5440 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
5441 omp_get_max_active_levels_, omp_get_level_,
5442 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
5443 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
5444 New functions.
5445 * parallel.c: Include limits.h.
5446 (gomp_resolve_num_threads): Add count argument. Rewritten.
5447 (GOMP_parallel_start): Call gomp_new_team and pass that as last
5448 argument to gomp_team_start. Pass 0 as second argument to
5449 gomp_resolve_num_threads.
5450 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
5451 if gomp_thread_limit_var != ULONG_MAX.
5452 (omp_in_parallel): Implement using ts.active_level.
5453 (omp_get_max_threads): Move to env.c.
5454 (omp_get_level, omp_get_ancestor_thread_num,
5455 omp_get_team_size, omp_get_active_level): New functions,
5456 add ialias.
5457 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
5458 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
5459 gomp_iter_dynamic_next instead of the _locked variant and don't take
5460 lock around it, otherwise acquire it before calling
5461 gomp_iter_dynamic_next_locked.
5462 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
5463 gomp_iter_dynamic_next instead of the _locked variant and don't take
5464 lock around it.
5465 (GOMP_parallel_sections_start): Call gomp_new_team instead of
5466 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
5467 Adjust gomp_team_start caller. Pass count as second argument to
5468 gomp_resolve_num_threads, don't adjust num_threads after the call.
5469 Use gomp_icv.
5470 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
5471 ws->chunk_size by incr.
5472 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
5473 code.
5474 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
5475 types.
5476 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
5477 (omp_check_defines): Check even the compat defines.
5478 * config/linux/ptrlock.c: New file.
5479 * config/linux/ptrlock.h: New file.
5480 * config/linux/wait.h: New file.
5481 * config/posix/ptrlock.c: New file.
5482 * config/posix/ptrlock.h: New file.
5483 * config/linux/bar.h (gomp_team_barrier_wait,
5484 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5485 (gomp_team_barrier_set_task_pending,
5486 gomp_team_barrier_clear_task_pending,
5487 gomp_team_barrier_set_waiting_for_tasks,
5488 gomp_team_barrier_waiting_for_tasks,
5489 gomp_team_barrier_done): New inlines.
5490 (gomp_barrier_t): Rewritten.
5491 (gomp_barrier_state_t): New typedef.
5492 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
5493 gomp_barrier_wait_start): Rewritten.
5494 (gomp_barrier_wait_end): Change second argument to
5495 gomp_barrier_state_t.
5496 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5497 inlines.
5498 * config/linux/bar.c: Include wait.h instead of libgomp.h and
5499 futex.h.
5500 (gomp_barrier_wait_end): Rewritten.
5501 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5502 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
5503 * config/posix/bar.h (gomp_barrier_t): Add generation field.
5504 (gomp_barrier_state_t): New typedef.
5505 (gomp_team_barrier_wait,
5506 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
5507 (gomp_barrier_wait_start): Or all but low 2 bits from generation
5508 into the return value. Return gomp_barrier_state_t.
5509 (gomp_team_barrier_set_task_pending,
5510 gomp_team_barrier_clear_task_pending,
5511 gomp_team_barrier_set_waiting_for_tasks,
5512 gomp_team_barrier_waiting_for_tasks,
5513 gomp_team_barrier_done): New inlines.
5514 (gomp_barrier_wait_end): Change second argument to
5515 gomp_barrier_state_t.
5516 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
5517 inlines.
5518 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
5519 (gomp_barrier_wait_end): Change second argument to
5520 gomp_barrier_state_t.
5521 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
5522 gomp_team_barrier_wake): New functions.
5523 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
5524 futex.h.
5525 (gomp_futex_wake, gomp_futex_wait): New variables.
5526 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
5527 * config/linux/lock.c: Rewrite to make locks task owned,
5528 for backwards compatibility provide the old entrypoints
5529 if symbol versioning. Include wait.h instead of libgomp.h and
5530 futex.h.
5531 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
5532 * config/posix95/lock.c: Rewrite to make locks task owned,
5533 for backwards compatibility provide the old entrypoints
5534 if symbol versioning.
5535 * config/posix/lock.c: Rewrite to make locks task owned,
5536 for backwards compatibility provide the old entrypoints
5537 if symbol versioning.
5538 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
5539 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
5540 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
5541 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5542 (sys_futex0): Return error code.
5543 (futex_wake, futex_wait): If ENOSYS was returned, clear
5544 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5545 (cpu_relax, atomic_write_barrier): New static inlines.
5546 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5547 (futex_wake, futex_wait): If ENOSYS was returned, clear
5548 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5549 (cpu_relax, atomic_write_barrier): New static inlines.
5550 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5551 (sys_futex0): Return error code.
5552 (futex_wake, futex_wait): If ENOSYS was returned, clear
5553 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5554 (cpu_relax, atomic_write_barrier): New static inlines.
5555 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5556 (sys_futex0): Return error code.
5557 (futex_wake, futex_wait): If ENOSYS was returned, clear
5558 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5559 (cpu_relax, atomic_write_barrier): New static inlines.
5560 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5561 (sys_futex0): Return error code.
5562 (futex_wake, futex_wait): If ENOSYS was returned, clear
5563 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5564 (cpu_relax, atomic_write_barrier): New static inlines.
5565 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
5566 (sys_futex0): Return error code.
5567 (futex_wake, futex_wait): If ENOSYS was returned, clear
5568 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
5569 (cpu_relax, atomic_write_barrier): New static inlines.
5570 * config/linux/sem.c: Include wait.h instead of libgomp.h and
5571 futex.h.
5572 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
5573 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
5574 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
5575 types.
5576 (omp_nest_lock_t): Change owner into void *, add lock field.
5577 * config/posix95/omp-lock.h: Include semaphore.h.
5578 (omp_lock_25_t, omp_nest_lock_25_t): New types.
5579 (omp_lock_t): Use sem_t instead of mutex if semaphores
5580 aren't broken.
5581 (omp_nest_lock_t): Likewise. Change owner to void *.
5582 * config/posix/omp-lock.h: Include semaphore.h.
5583 (omp_lock_25_t, omp_nest_lock_25_t): New types.
5584 (omp_lock_t): Use sem_t instead of mutex if semaphores
5585 aren't broken.
5586 (omp_nest_lock_t): Likewise. Add owner field.
5587
5588 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5589
5590 * testsuite/libgomp.c/collapse-1.c: New test.
5591 * testsuite/libgomp.c/collapse-2.c: New test.
5592 * testsuite/libgomp.c/collapse-3.c: New test.
5593 * testsuite/libgomp.c/icv-1.c: New test.
5594 * testsuite/libgomp.c/icv-2.c: New test.
5595 * testsuite/libgomp.c/lib-2.c: New test.
5596 * testsuite/libgomp.c/lock-1.c: New test.
5597 * testsuite/libgomp.c/lock-2.c: New test.
5598 * testsuite/libgomp.c/lock-3.c: New test.
5599 * testsuite/libgomp.c/loop-4.c: New test.
5600 * testsuite/libgomp.c/loop-5.c: New test.
5601 * testsuite/libgomp.c/loop-6.c: New test.
5602 * testsuite/libgomp.c/loop-7.c: New test.
5603 * testsuite/libgomp.c/loop-8.c: New test.
5604 * testsuite/libgomp.c/loop-9.c: New test.
5605 * testsuite/libgomp.c/nested-3.c: New test.
5606 * testsuite/libgomp.c/nestedfn-6.c: New test.
5607 * testsuite/libgomp.c/sort-1.c: New test.
5608 * testsuite/libgomp.c/task-1.c: New test.
5609 * testsuite/libgomp.c/task-2.c: New test.
5610 * testsuite/libgomp.c/task-3.c: New test.
5611 * testsuite/libgomp.c/task-4.c: New test.
5612 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
5613 to C++ testsuite default compiler options.
5614 * testsuite/libgomp.c++/collapse-1.C: New test.
5615 * testsuite/libgomp.c++/collapse-2.C: New test.
5616 * testsuite/libgomp.c++/ctor-10.C: New test.
5617 * testsuite/libgomp.c++/for-1.C: New test.
5618 * testsuite/libgomp.c++/for-2.C: New test.
5619 * testsuite/libgomp.c++/for-3.C: New test.
5620 * testsuite/libgomp.c++/for-4.C: New test.
5621 * testsuite/libgomp.c++/for-5.C: New test.
5622 * testsuite/libgomp.c++/loop-8.C: New test.
5623 * testsuite/libgomp.c++/loop-9.C: New test.
5624 * testsuite/libgomp.c++/loop-10.C: New test.
5625 * testsuite/libgomp.c++/task-1.C: New test.
5626 * testsuite/libgomp.c++/task-2.C: New test.
5627 * testsuite/libgomp.c++/task-3.C: New test.
5628 * testsuite/libgomp.c++/task-4.C: New test.
5629 * testsuite/libgomp.c++/task-5.C: New test.
5630 * testsuite/libgomp.c++/task-6.C: New test.
5631 * testsuite/libgomp.fortran/allocatable1.f90: New test.
5632 * testsuite/libgomp.fortran/allocatable2.f90: New test.
5633 * testsuite/libgomp.fortran/allocatable3.f90: New test.
5634 * testsuite/libgomp.fortran/allocatable4.f90: New test.
5635 * testsuite/libgomp.fortran/collapse1.f90: New test.
5636 * testsuite/libgomp.fortran/collapse2.f90: New test.
5637 * testsuite/libgomp.fortran/collapse3.f90: New test.
5638 * testsuite/libgomp.fortran/collapse4.f90: New test.
5639 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
5640 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
5641 * testsuite/libgomp.fortran/lib4.f90: New test.
5642 * testsuite/libgomp.fortran/lock-1.f90: New test.
5643 * testsuite/libgomp.fortran/lock-2.f90: New test.
5644 * testsuite/libgomp.fortran/nested1.f90: New test.
5645 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
5646 * testsuite/libgomp.fortran/strassen.f90: New test.
5647 * testsuite/libgomp.fortran/tabs1.f90: New test.
5648 * testsuite/libgomp.fortran/tabs2.f: New test.
5649 * testsuite/libgomp.fortran/task1.f90: New test.
5650 * testsuite/libgomp.fortran/task2.f90: New test.
5651 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
5652 * testsuite/libgomp.fortran/vla5.f90: Likewise.
5653 * testsuite/libgomp.c/pr26943-2.c: Likewise.
5654 * testsuite/libgomp.c/pr26943-3.c: Likewise.
5655 * testsuite/libgomp.c/pr26943-4.c: Likewise.
5656
5657 2008-05-23 Jakub Jelinek <jakub@redhat.com>
5658
5659 PR c++/36308
5660 * testsuite/libgomp.c++/ctor-11.C: New test.
5661 * testsuite/libgomp.c++/ctor-12.C: New test.
5662
5663 2008-05-15 Janis Johnson <janis187@us.ibm.com>
5664
5665 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
5666
5667 2008-05-07 Jakub Jelinek <jakub@redhat.com>
5668
5669 PR middle-end/36106
5670 * testsuite/libgomp.c/atomic-5.c: New test.
5671 * testsuite/libgomp.c/atomic-6.c: New test.
5672 * testsuite/libgomp.c/autopar-1.c: New test.
5673
5674 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5675
5676 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
5677 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
5678 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
5679 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
5680 * configure: Regenerate.
5681 * Makefile.in, testsuite/Makefile.in: Likewise.
5682
5683 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
5684
5685 PR bootstrap/35457
5686 * aclocal.m4: Regenerate.
5687 * configure: Regenerate.
5688
5689 2008-03-18 Jakub Jelinek <jakub@redhat.com>
5690
5691 PR middle-end/35611
5692 * testsuite/libgomp.c/atomic-4.c: New test.
5693
5694 PR libgomp/35625
5695 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
5696 (gomp_iter_guided_next): Likewise.
5697 * testsuite/libgomp.c/pr35625.c: New test.
5698
5699 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5700
5701 * aclocal.m4: Regenerate.
5702 * configure: Likewise.
5703 * Makefile.in: Likewise.
5704 * testsuite/Makefile.in: Likewise.
5705
5706 2008-03-13 Jakub Jelinek <jakub@redhat.com>
5707
5708 PR middle-end/35185
5709 * testsuite/libgomp.c++/pr35185.C: New test.
5710
5711 2008-03-12 Jakub Jelinek <jakub@redhat.com>
5712
5713 PR middle-end/35549
5714 * testsuite/libgomp.c/pr35549.c: New test.
5715
5716 2008-03-06 Jakub Jelinek <jakub@redhat.com>
5717
5718 * testsuite/libgomp.c/atomic-3.c: New test.
5719
5720 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5721
5722 PR fortran/33197
5723 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
5724 .F08 file suffixes.
5725
5726 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
5727
5728 PR libgomp/33131
5729 * configure.ac: Add ACX_HEADER_STRING.
5730 * env.c: Include strings.h.
5731 * aclocal.m4: Regenerate.
5732 * config.h.in: Regenerate.
5733 * configure: Regenerate.
5734 * Makefile.in: Regenerate.
5735 * testsuite/Makefile.in: Regenerate.
5736
5737 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5738
5739 PR middle-end/35196
5740 * testsuite/libgomp.c/pr35196.c: New test.
5741
5742 PR middle-end/35130
5743 * testsuite/libgomp.fortran/pr35130.f90: New test.
5744 * testsuite/libgomp.c/pr35130.c: New test.
5745
5746 2008-01-25 Jakub Jelinek <jakub@redhat.com>
5747
5748 PR middle-end/33880
5749 * testsuite/libgomp.c/pr33880.c: New test.
5750 * testsuite/libgomp.fortran/pr33880.f90: New test.
5751
5752 2008-01-24 David Edelsohn <edelsohn@gnu.org>
5753
5754 * configure: Regenerate.
5755
5756 2008-01-08 Jakub Jelinek <jakub@redhat.com>
5757
5758 * configure.ac: Move futex checking into ../config/futex.m4.
5759 * configure: Rebuilt.
5760 * aclocal.m4: Rebuilt.
5761 * Makefile.in: Rebuilt.
5762
5763 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
5764 2007-10-15 ../config/tls.m4 change.
5765
5766 2007-12-19 Jakub Jelinek <jakub@redhat.com>
5767
5768 PR c++/34513
5769 * testsuite/libgomp.c/pr34513.c: New test.
5770 * testsuite/libgomp.c++/pr34513.C: New test.
5771
5772 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
5773
5774 PR target/32765
5775 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
5776
5777 2007-12-04 Jakub Jelinek <jakub@redhat.com>
5778
5779 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
5780
5781 2007-12-03 Jakub Jelinek <jakub@redhat.com>
5782
5783 * testsuite/libgomp.c/private-1.c: New test.
5784
5785 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
5786 Paolo Bonzini <bonzini@gnu.org>
5787
5788 * Makefile.am: Use space as vpath separator. Use 'vpath %'
5789 instead of 'VPATH ='.
5790 * Makefile.in: Regenerate.
5791
5792 2007-11-23 Matthias Klose <doko@ubuntu.com>
5793
5794 * configure.ac: Adjust makeinfo version check.
5795 * configure: Regenerate.
5796
5797 2007-11-10 Jakub Jelinek <jakub@redhat.com>
5798
5799 PR fortran/34020
5800 * testsuite/libgomp.fortran/pr34020.f90: New test.
5801
5802 2007-11-06 Jakub Jelinek <jakub@redhat.com>
5803
5804 PR c++/33894
5805 * testsuite/libgomp.c++/atomic-1.C: New test.
5806
5807 2007-10-25 Jakub Jelinek <jakub@redhat.com>
5808
5809 PR libgomp/33275
5810 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
5811 Make x and y integers rather than (implicit) reals. Add private (j)
5812 clause to the last omp parallel.
5813
5814 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
5815
5816 * configure: Regenerate following changes to ../config/tls.m4.
5817
5818 2007-09-28 Jakub Jelinek <jakub@redhat.com>
5819
5820 * testsuite/libgomp.fortran/stack.f90: New test.
5821
5822 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
5823
5824 * config/mingw32/proc.c: New file.
5825
5826 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
5827
5828 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
5829 (main): Use __get_cpuid to get i386 target fetaures.
5830 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
5831 (main): Use __get_cpuid to get x86_64 target fetaures.
5832
5833 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
5834
5835 PR target/32765
5836 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
5837 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
5838
5839 2007-07-12 Jakub Jelinek <jakub@redhat.com>
5840
5841 PR fortran/32550
5842 * testsuite/libgomp.fortran/pr32550.f90: New test.
5843 * testsuite/libgomp.fortran/crayptr2.f90: New test.
5844
5845 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
5846
5847 * aclocal.m4: Regenerated.
5848
5849 2007-07-05 Tobias Burnus <burnus@net-b.de>
5850
5851 PR fortran/32359
5852 * testsuite/libgomp.fortran/pr32359.f90: New.
5853
5854 2007-07-02 Jakub Jelinek <jakub@redhat.com>
5855
5856 PR libgomp/32468
5857 * sections.c (GOMP_parallel_sections_start): Only decrease
5858 number of threads to COUNT if dyn_var is true.
5859 * testsuite/libgomp.c/pr32468.c: New test.
5860
5861 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5862
5863 PR libgomp/26308
5864 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
5865
5866 2007-06-21 Jakub Jelinek <jakub@redhat.com>
5867
5868 PR middle-end/32362
5869 * testsuite/libgomp.c/pr32362-1.c: New test.
5870 * testsuite/libgomp.c/pr32362-2.c: New test.
5871 * testsuite/libgomp.c/pr32362-3.c: New test.
5872
5873 2007-06-07 Jakub Jelinek <jakub@redhat.com>
5874
5875 * team.c (gomp_team_start): Fix setting up thread_attr
5876 stack size.
5877
5878 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
5879
5880 * configure: Regenerate.
5881
5882 2007-05-23 Steve Ellcey <sje@cup.hp.com>
5883
5884 * Makefile.in: Regenerate.
5885 * configure: Regenerate.
5886 * aclocal.m4: Regenerate.
5887 * testsuite/Makefile.in: Regenerate.
5888
5889 2007-05-04 Jakub Jelinek <jakub@redhat.com>
5890
5891 * config/linux/proc.c: New file.
5892
5893 PR libgomp/28482
5894 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
5895
5896 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
5897
5898 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
5899
5900 2007-04-16 Matthias Klose <doko@debian.org>
5901
5902 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
5903 flags if not building with -m64.
5904 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
5905 flag for i?86-*-* targets, if current target matches -m64.
5906
5907 2007-04-14 Steve Ellcey <sje@cup.hp.com>
5908
5909 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
5910 * Makefile.in: Regenerate.
5911
5912 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5913
5914 PR testsuite/31369
5915 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
5916 ld_library_path.
5917 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5918
5919 2007-04-04 Jakub Jelinek <jakub@redhat.com>
5920
5921 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
5922 decls.
5923 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
5924 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
5925 (parse_affinity): New function.
5926 (initialize_env): Call it and gomp_init_affinity.
5927 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
5928 create new pthread_attr_t and call gomp_init_thread_affinity
5929 on it for each thread before passing the attribute to pthread_create.
5930 * config/linux/affinity.c: New file.
5931 * config/posix/affinity.c: New file.
5932 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
5933 * configure: Rebuilt.
5934 * config.h.in: Rebuilt.
5935 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
5936 * Makefile.in: Rebuilt.
5937
5938 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
5939
5940 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
5941 *-*-darwin*.
5942 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
5943 and use it if found.
5944
5945 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
5946
5947 * testsuite/config/default.exp: New file.
5948 * testsuite/lib/libgomp.exp: New file.
5949 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
5950 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
5951 load_lib *, load_gcc_lib *): Move to libgomp.exp.
5952 (libgomp_load): Remove.
5953 * testsuite/lib/libgomp.exp (libgomp_init): Compute
5954 always_ld_library_path, not ld_library_path. Set additional_flags
5955 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
5956 (target_compile): Do not call libgomp_init. Append lang_library_path
5957 and lang_link_flags to options.
5958 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
5959 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
5960 here.
5961 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
5962 always_ld_library_path. Set LD_LIBRARY_PATH here.
5963 * testsuite/libgomp.fortran/fortran.exp: Ditto.
5964 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
5965 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
5966 CX8 flag.
5967 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
5968 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
5969 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
5970 * testsuite/libgomp.c/pr29947-1.c: Ditto.
5971 * testsuite/libgomp.c/atomic-10.c: Ditto.
5972
5973 2007-03-21 Jakub Jelinek <jakub@redhat.com>
5974
5975 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
5976 dg-final cleanup-modules line.
5977 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
5978 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
5979 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
5980 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
5981 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
5982 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
5983 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
5984
5985 2007-03-18 Andreas Schwab <schwab@suse.de>
5986
5987 * acinclude.m4: Adjust regular expression for ld version
5988 extraction.
5989 * configure: Regenerate.
5990
5991 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
5992
5993 * Makefile.am: Add install-pdf target as copied from
5994 automake v1.10 rules.
5995 * Makefile.in: Regenerate
5996
5997 2007-02-07 Jakub Jelinek <jakub@redhat.com>
5998
5999 PR libgomp/28486
6000 * configure: Regenerate.
6001
6002 PR c++/30703
6003 * testsuite/libgomp.c++/pr30703.C: New test.
6004
6005 2007-02-02 Jakub Jelinek <jakub@redhat.com>
6006
6007 Revert:
6008 2006-07-05 Eric Christopher <echristo@apple.com>
6009 * configure.ac: Depend addition of -pthread on host OS.
6010 * configure: Regenerate.
6011
6012 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6013
6014 * libgomp.texi: Fix spacing after abbreviations.
6015
6016 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
6017
6018 PR libgomp/30546
6019 * configure.ac: Add check for makeinfo
6020 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
6021 if an appropiate version of makeinfo is found.
6022 * aclocal.m4: Regenerated.
6023 * configure: Regenerated.
6024 * Makefile.in: Regenerated.
6025 * testsuite/Makefile.in: Regenerated.
6026
6027 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
6028
6029 PR libgomp/30540
6030 * libgomp.texi: More about implementation-dependent settings.
6031
6032 2007-01-26 Tobias Burnus <burnus@net-b.de>
6033
6034 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
6035
6036 2007-01-24 Jakub Jelinek <jakub@redhat.com>
6037
6038 PR middle-end/30494
6039 * testsuite/libgomp.c/pr30494.c: New test.
6040
6041 2007-01-15 Tom Tromey <tromey@redhat.com>
6042
6043 * configure: Rebuilt.
6044 * configure.ac: Fixed comment.
6045
6046 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
6047
6048 * libgomp.texi: Document implementation specific default values of
6049 environment variables.
6050
6051 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
6052
6053 PR libgomp/28209
6054 * libgomp.texi: New file.
6055 * configure.ac: Add --enable-generated-files-in-srcdir option.
6056 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
6057 files to srcdir.
6058 * Makefile.in: Regenerated.
6059 * config.h.in: Regenerated.
6060 * testsuite/Makefile.in: Regenerated.
6061 * NOTES: Removed.
6062
6063 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
6064
6065 PR libgomp/29949
6066 * env.c (omp_set_num_threads): Set illegal thread count to 1.
6067
6068 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6069
6070 * configure: Regenerate.
6071
6072 2006-12-04 Jakub Jelinek <jakub@redhat.com>
6073
6074 PR libgomp/29947
6075 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
6076 start if there shouldn't be any loop iterations.
6077 (gomp_loop_ordered_static_start): Remove start == end test.
6078 * testsuite/libgomp.c/pr29947-1.c: New test.
6079 * testsuite/libgomp.c/pr29947-2.c: New test.
6080
6081 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
6082
6083 * configure.tgt: Force initial-exec TLS model on Linux only.
6084
6085 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
6086
6087 * configure: Regenerated.
6088
6089 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
6090
6091 * env.c (parse_schedule): Reject out of range values.
6092 (parse_unsigned_long): Reject out of range, negative or zero values.
6093
6094 2006-10-29 Jakub Jelinek <jakub@redhat.com>
6095
6096 PR fortran/29629
6097 * testsuite/libgomp.fortran/pr29629.f90: New test.
6098
6099 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
6100
6101 PR libgomp/29494
6102 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
6103 * config/posix95: New directory.
6104 * config/posix95/omp-lock.h: New file.
6105 * config/posix95/lock.c: Likewise.
6106
6107 2006-10-14 Geoffrey Keating <geoffk@apple.com>
6108
6109 * aclocal.m4: Regenerate.
6110 * configure: Regenerate.
6111
6112 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6113
6114 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
6115 '<' to '<='.
6116
6117 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
6118
6119 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
6120 test.
6121 * configure: Regenerate.
6122 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
6123
6124 2006-09-26 Jakub Jelinek <jakub@redhat.com>
6125
6126 PR middle-end/25261
6127 PR middle-end/28790
6128 * testsuite/libgomp.c/nestedfn-4.c: New test.
6129 * testsuite/libgomp.c/nestedfn-5.c: New test.
6130 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
6131
6132 PR fortran/29097
6133 * testsuite/libgomp.fortran/condinc1.f: New test.
6134 * testsuite/libgomp.fortran/condinc2.f: New test.
6135 * testsuite/libgomp.fortran/condinc3.f90: New test.
6136 * testsuite/libgomp.fortran/condinc4.f90: New test.
6137 * testsuite/libgomp.fortran/condinc1.inc: New file.
6138
6139 2006-09-18 Tom Tromey <tromey@redhat.com>
6140
6141 * configure: Rebuilt.
6142
6143 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
6144
6145 PR c/28768
6146 PR preprocessor/14634
6147 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
6148 to AC_DEFINE.
6149 * configure: Regenerate.
6150
6151 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
6152
6153 * testsuite/libgomp.fortran/reduction3.f90: Change
6154 -2147483648 to -huge(i)-1 to avoid overflow.
6155 * testsuite/libgomp.fortran/reduction4.f90: Change
6156 Z'ffffffff' to not(0) to avoid overflow.
6157
6158 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
6159
6160 PR libgomp/25938
6161 * Makefile.am (libsubincludedir): New.
6162 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
6163 * Makefile.in: Regenerate.
6164
6165 2006-08-17 Jakub Jelinek <jakub@redhat.com>
6166
6167 PR libgomp/28725
6168 * env.c: Include ctype.h.
6169 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
6170 leading and/or trailing whitespace and compare strings case
6171 insensitively.
6172
6173 2006-07-16 Jakub Jelinek <jakub@redhat.com>
6174
6175 PR fortran/28390
6176 * testsuite/libgomp.fortran/pr28390.f: New test.
6177
6178 2006-07-05 Eric Christopher <echristo@apple.com>
6179
6180 * configure.ac: Depend addition of -pthread on host OS.
6181 * configure: Regenerate.
6182
6183 2006-06-21 Jakub Jelinek <jakub@redhat.com>
6184
6185 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
6186 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
6187 defined.
6188
6189 2006-06-20 Jakub Jelinek <jakub@redhat.com>
6190
6191 PR libgomp/26175
6192 PR libgomp/26477
6193 * configure.ac: If neither --enable-linux-futex nor
6194 --disable-linux-futex is passed, determine the default by checking
6195 for compiling and/or running against NPTL. With --enable-linux-futex,
6196 check if SYS_gettid and SYS_futex are defined.
6197 * configure: Rebuilt.
6198
6199 2006-06-14 Richard Henderson <rth@redhat.com>
6200
6201 PR libgomp/28008
6202 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
6203 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
6204
6205 2006-06-09 Richard Henderson <rth@redhat.com>
6206
6207 * env.c (gomp_nthreads_var): Change to unsigned long.
6208 (gomp_run_sched_chunk): Likewise.
6209 (parse_unsigned_long): Rename from parse_num_threads and generalize.
6210 (initialize_env): Initialize gomp_thread_attr.
6211 * libgomp.h (gomp_nthreads_var): Update decl.
6212 (gomp_run_sched_chunk): Likewise.
6213 (gomp_thread_attr): Declare.
6214 * team.c (gomp_thread_attr): Export.
6215 (initialize_team): Don't initialize it.
6216
6217 2006-06-09 Jakub Jelinek <jakub@redhat.com>
6218
6219 PR fortran/27916
6220 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
6221 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
6222
6223 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6224
6225 * config/mingw32/time.c: New file.
6226 * configure.tgt: Use it.
6227
6228 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
6229
6230 * Makefile.am: Add install-html target. Add install-html to .PHONY
6231 * Makefile.in: Regenerate.
6232
6233 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6234
6235 PR libgomp/27612
6236 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
6237 * testsuite/libgomp.c/critical-1.c: Likewise.
6238 * testsuite/libgomp.c/loop-1.c: Likewise.
6239 * testsuite/libgomp.c/loop-2.c: Likewise.
6240 * testsuite/libgomp.c/single-1.c: Likewise.
6241 * testsuite/libgomp.c/ordered-1.c: Likewise.
6242 * testsuite/libgomp.c/ordered-2.c: Likewise.
6243
6244 2006-05-15 Jakub Jelinek <jakub@redhat.com>
6245
6246 PR middle-end/27416
6247 * libgomp.fortran/pr27416-1.f90: New test.
6248
6249 2006-05-03 Jakub Jelinek <jakub@redhat.com>
6250
6251 PR fortran/27395
6252 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
6253 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
6254
6255 2006-05-02 Jakub Jelinek <jakub@redhat.com>
6256
6257 PR c++/26943
6258 * testsuite/libgomp.c/pr26943-1.c: New test.
6259 * testsuite/libgomp.c/pr26943-2.c: New test.
6260 * testsuite/libgomp.c/pr26943-3.c: New test.
6261 * testsuite/libgomp.c/pr26943-4.c: New test.
6262 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
6263 * testsuite/libgomp.c++/pr26943.C: New test.
6264
6265 2006-05-02 Jakub Jelinek <jakub@redhat.com>
6266
6267 PR middle-end/27337
6268 * testsuite/libgomp.c++/pr27337.C: New test.
6269
6270 2006-04-26 Jakub Jelinek <jakub@redhat.com>
6271
6272 PR c/26171
6273 * testsuite/libgomp.c/pr26171.c: New test.
6274
6275 2006-04-25 Richard Henderson <rth@redhat.com>
6276
6277 PR libgomp/25865
6278 * configure.ac: Use GCC_CHECK_TLS.
6279 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
6280 * Makefile.in, aclocal.m4, configure: Regenerate.
6281
6282 2006-04-10 Matthias Klose <doko@debian.org>
6283
6284 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
6285 directory names containing underscores.
6286
6287 2006-03-21 Jakub Jelinek <jakub@redhat.com>
6288
6289 PR c++/26691
6290 * testsuite/libgomp.c++/pr26691.C: New test.
6291
6292 2006-03-13 Jakub Jelinek <jakub@redhat.com>
6293
6294 * testsuite/libgomp.fortran/retval2.f90: New test.
6295
6296 2006-03-09 Diego Novillo <dnovillo@redhat.com>
6297
6298 * testsuite/libgomp.c++: New directory.
6299
6300 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
6301
6302 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
6303 * config/posix/sem.c: Implement the above.
6304
6305 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
6306
6307 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
6308 define HAVE_BROKEN_POSIX_SEMAPHORES.
6309 * configure: Rebuilt.
6310 * config.h.in: Rebuilt.
6311
6312 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
6313
6314 PR bootstrap/26161
6315 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
6316 for the other pthread check.
6317 * configure: Regenerate.
6318 * config.h.in: Regenerate.
6319
6320 2006-02-15 Jakub Jelinek <jakub@redhat.com>
6321
6322 PR libgomp/25938
6323 PR libgomp/25984
6324 * Makefile.am (fincludedir): New variable.
6325 (nodist_include_HEADERS): Remove Fortran files.
6326 (nodist_finclude_HEADERS): New variable.
6327 * Makefile.in: Regenerated.
6328
6329 2006-02-13 Jakub Jelinek <jakub@redhat.com>
6330
6331 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
6332 Remove tests for returning assumed character length arrays.
6333
6334 2006-02-12 Roger Sayle <roger@eyesopen.com>
6335 John David Anglin <dave@hiauly1.hia.nrc.ca>
6336
6337 PR libgomp/25936
6338 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
6339
6340 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6341
6342 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
6343
6344 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6345
6346 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
6347 part of LD_LIBRARY_PATH manually.
6348
6349 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
6350
6351 PR libgomp/25852
6352 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
6353 libgomp_init.
6354
6355 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
6356
6357 PR libgomp/25884
6358 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
6359 * configure.ac (PERL): Don't set.
6360 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
6361 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
6362 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
6363 * omp.h.in: Wrap the new configure substitutions with @ characters.
6364 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
6365 * aclocal.m4, configure, Makefile.in: Regenerate.
6366 * mkomp_h.pl: Delete.
6367
6368 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
6369
6370 PR libgomp/25259
6371 * configure.ac: Use GCC_HEADER_STDINT.
6372 * libgomp.h: Include gstdint.h.
6373 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
6374 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
6375
6376 2006-01-24 Richard Henderson <rth@redhat.com>
6377
6378 PR libgomp/25942
6379 * configure.ac: Add AM_MAINTAINER_MODE.
6380 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
6381
6382 2006-01-24 Diego Novillo <dnovillo@redhat.com>
6383
6384 * Makefile.in: Regenerate.
6385 * testsuite/Makefile.in: Regenerate.
6386 * aclocal.m4: Regenerate.
6387
6388 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
6389
6390 * config/posix/proc.c: Conditional include of sys/loadavg.h for
6391 Solaris.
6392 * configure.ac: Add check for loadavg.h.
6393 (link_gomp): Adjust comment.
6394 * configure: Regenerate.
6395 * config.h.in: Regenerate.
6396
6397 2006-01-21 Steve Ellcey <sje@cup.hp.com>
6398
6399 PR libgomp/25877
6400 * configure.ac: Remove check for alloca.h.
6401 * configure: Regenerate.
6402 * config.h.in: Regenerate.
6403 * libgomp.h: define gomp_alloca to be __builtin_alloca.
6404 * team.c: Remove use of alloca.h.
6405 Call gomp_alloca instead of alloca.
6406
6407 2006-01-20 Steve Ellcey <sje@cup.hp.com>
6408
6409 PR libgomp/25877
6410 * team.c: Add include of alloca.h.
6411 * configure.ac: Add check for alloca.h.
6412 * configure: Regenerate.
6413 * config.h.in: Regenerate.
6414
6415 2006-01-17 Jakub Jelinek <jakub@redhat.com>
6416
6417 PR fortran/25219
6418 * testsuite/libgomp.fortran/pr25219.f90: New test.
6419
6420 2005-12-05 Uros Bizjak <uros@kss-loka.si>
6421
6422 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
6423 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
6424 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
6425 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
6426 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
6427 testsuite/libgomp.fortran/threadprivate1.f90,
6428 testsuite/libgomp.fortran/threadprivate2.f90,
6429 testsuite/libgomp.fortran/threadprivate3.f90,
6430 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6431 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6432 testsuite/libgomp.fortran/omp_parse3.f90: Change required
6433 effective-target to TLS runtime.
6434
6435 * testsuite/libgomp.fortran/pr25162.f: Require
6436 effective-target TLS runtime.
6437
6438 2005-12-01 Jakub Jelinek <jakub@redhat.com>
6439
6440 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
6441 * testsuite/libgomp.c/nestedfn-3.c: New test.
6442
6443 2005-11-30 Jakub Jelinek <jakub@redhat.com>
6444
6445 PR fortran/25162
6446 * testsuite/libgomp.fortran/pr25162.f: New test.
6447
6448 2005-11-28 Jakub Jelinek <jakub@redhat.com>
6449
6450 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
6451 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
6452
6453 2005-11-25 Jakub Jelinek <jakub@redhat.com>
6454
6455 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
6456 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
6457 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
6458 single.c, team.c, work.c, config/linux/alpha/futex.h,
6459 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
6460 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
6461 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
6462 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
6463 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
6464 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
6465 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
6466 FSF address.
6467
6468 2005-11-18 Jakub Jelinek <jakub@redhat.com>
6469
6470 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
6471 to nodist_noinst_HEADERS.
6472 * Makefile.in: Rebuilt.
6473
6474 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
6475 add integer count field.
6476 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
6477 omp_nest_lock_t type change.
6478 (omp_init_nest_lock): Likewise. Initialize count to 0.
6479 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
6480 Increment count.
6481 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
6482 Decrement count.
6483 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
6484 Increment count if successful and return the new nesting level.
6485 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
6486 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
6487 * testsuite/libgomp.c/lib-1.c: New test.
6488 * testsuite/libgomp.fortran/lib1.f90: New test.
6489 * testsuite/libgomp.fortran/lib2.f: New test.
6490 * testsuite/libgomp.fortran/lib3.f: New test.
6491
6492 2005-11-17 Richard Henderson <rth@redhat.com>
6493
6494 PR 24845
6495 * Makefile.am (nodist_toolexeclib_HEADERS): New.
6496 * configure.ac (link_gomp): New. Substitute it.
6497 (AC_CONFIG_FILES): Add libgomp.spec.
6498 * libgomp.spec.in: New file.
6499 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
6500 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
6501
6502 2005-11-18 Jakub Jelinek <jakub@redhat.com>
6503
6504 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
6505 reduction(-:var) behaving the same as reduction(+:var).
6506 * testsuite/libgomp.c/reduction-4.c: New test.
6507
6508 2005-11-15 Uros Bizjak <uros@kss-loka.si>
6509
6510 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
6511 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
6512 testsuite/libgomp.c/copyin-3.c,
6513 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
6514 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
6515 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
6516 testsuite/libgomp.c++/pr24455.C,
6517 testsuite/libgomp.fortran/threadprivate1.f90,
6518 testsuite/libgomp.fortran/threadprivate2.f90,
6519 testsuite/libgomp.fortran/threadprivate3.f90,
6520 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
6521 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
6522 testsuite/libgomp.fortran/omp_parse3.f90: Require
6523 effective-target TLS.
6524
6525 2005-11-14 Diego Novillo <dnovillo@redhat.com>
6526
6527 * HEADER: Remove.
6528
6529 2005-11-13 Jakub Jelinek <jakub@redhat.com>
6530
6531 PR libgomp/24797
6532 * team.c (initialize_team): Pass NULL rather than free as
6533 pthread_key_create destructor. Initialize thread specific data
6534 pointer in initial thread to a static local variable rather than
6535 malloced memory.
6536
6537 2005-11-11 Uros Bizjak <uros@kss-loka.si>
6538
6539 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
6540 its location to ld_library_path.
6541
6542 2005-11-10 Diego Novillo <dnovillo@redhat.com>
6543
6544 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
6545
6546 2005-11-10 Diego Novillo <dnovillo@redhat.com>
6547
6548 * testsuite/libgomp.c: Rename from libgomp.dg.
6549
6550 2005-11-09 Diego Novillo <dnovillo@redhat.com>
6551
6552 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
6553 threadprivate variable 'i'.
6554
6555 2005-11-09 Jakub Jelinek <jakub@redhat.com>
6556
6557 * config/linux/s390/futex.h: New file.
6558 * configure.tgt: Use it.
6559
6560 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
6561 before the parallel.
6562
6563 2005-11-08 Jakub Jelinek <jakub@redhat.com>
6564
6565 PR c++/24734
6566 * testsuite/libgomp.c++/master-1.C: New test.
6567
6568 2005-11-07 Jakub Jelinek <jakub@redhat.com>
6569
6570 * testsuite/libgomp.dg/copyin-3.c: New test.
6571
6572 2005-11-07 Jakub Jelinek <jakub@redhat.com>
6573
6574 * testsuite/libgomp.fortran/retval1.f90: New test.
6575 * testsuite/libgomp.fortran/vla7.f90: New test.
6576
6577 2005-11-06 Jakub Jelinek <jakub@redhat.com>
6578
6579 * testsuite/libgomp.fortran/vla2.f90: New test.
6580 * testsuite/libgomp.fortran/vla3.f90: New test.
6581 * testsuite/libgomp.fortran/vla4.f90: New test.
6582 * testsuite/libgomp.fortran/vla5.f90: New test.
6583 * testsuite/libgomp.fortran/vla6.f90: New test.
6584
6585 2005-11-01 Jakub Jelinek <jakub@redhat.com>
6586
6587 * config/linux/sparc/futex.h: New file.
6588 * configure.tgt: Use it.
6589 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
6590
6591 * critical.c: Include stdlib.h.
6592 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
6593 ignoring return value.
6594 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
6595 LIBGOMP_CHECK_SYNC_BUILTINS check.
6596 * configure: Rebuilt.
6597
6598 2005-10-31 Jakub Jelinek <jakub@redhat.com>
6599
6600 * testsuite/libgomp.fortran/vla1.f90: New test.
6601
6602 2005-10-31 Richard Henderson <rth@redhat.com>
6603
6604 * testsuite/libgomp.fortran/character2.f90: Fix race condition
6605 setting 's' in different threads.
6606
6607 2005-10-31 Jakub Jelinek <jakub@redhat.com>
6608
6609 * libgomp.h (attribute_hidden, ialias): Define.
6610 * config/posix/proc.c (omp_get_num_procs): Add ialias.
6611 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
6612 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
6613 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
6614 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
6615 omp_test_lock, omp_test_nest_lock): Likewise.
6616 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
6617 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
6618 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
6619 omp_test_lock, omp_test_nest_lock): Likewise.
6620 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
6621 omp_get_dynamic, omp_get_nested): Likewise.
6622 * parallel.c (omp_get_num_threads, omp_get_max_threads,
6623 omp_get_thread_num, omp_in_parallel): Likewise.
6624 * fortran.c (ialias_redirect): Define.
6625 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
6626 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
6627 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
6628 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
6629 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
6630 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
6631 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
6632 omp_get_wtime): Add ialias_redirect.
6633
6634 2005-10-30 Jakub Jelinek <jakub@redhat.com>
6635
6636 * fortran.c: Include stdlib.h.
6637
6638 2005-10-29 Jakub Jelinek <jakub@redhat.com>
6639
6640 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
6641 * Makefile.in: Regenerated.
6642
6643 2005-10-28 Jakub Jelinek <jakub@redhat.com>
6644
6645 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
6646 * libgomp_f.h.in (omp_check_defines): New function.
6647 * env.c: Include libgomp_f.h.
6648 (initialize_env): Call omp_check_defines.
6649
6650 * testsuite/libgomp.dg/copyin-2.c: New test.
6651 * testsuite/libgomp.c++/copyin-2.C: New test.
6652 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
6653
6654 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
6655 * testsuite/libgomp.fortran/sharing2.f90: New test.
6656
6657 * testsuite/libgomp.dg/copyin-1.c: New test.
6658 * testsuite/libgomp.c++/copyin-1.C: New test.
6659
6660 2005-10-26 Jakub Jelinek <jakub@redhat.com>
6661
6662 * testsuite/libgomp.fortran/crayptr1.f90: New test.
6663
6664 * testsuite/libgomp.fortran/workshare1.f90: New test.
6665
6666 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
6667 only test.
6668 * libgomp.fortran/sharing1.f90: New test.
6669
6670 2005-10-24 Jakub Jelinek <jakub@redhat.com>
6671
6672 PR c++/24502
6673 * testsuite/libgomp.c++/loop-7.C: New test.
6674
6675 * testsuite/libgomp.dg/nestedfn-2.c: New test.
6676
6677 * testsuite/libgomp.dg/nestedfn-1.c: New test.
6678 * testsuite/libgomp.fortran/reduction6.f90: New test.
6679 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
6680
6681 2005-10-23 Richard Henderson <rth@redhat.com>
6682
6683 * testsuite/libgomp.c++/ctor-1.C: New.
6684 * testsuite/libgomp.c++/ctor-2.C: New.
6685 * testsuite/libgomp.c++/ctor-3.C: New.
6686 * testsuite/libgomp.c++/ctor-4.C: New.
6687 * testsuite/libgomp.c++/ctor-5.C: New.
6688 * testsuite/libgomp.c++/ctor-6.C: New.
6689 * testsuite/libgomp.c++/ctor-7.C: New.
6690 * testsuite/libgomp.c++/ctor-8.C: New.
6691 * testsuite/libgomp.c++/ctor-9.C: New.
6692
6693 2005-10-21 Diego Novillo <dnovillo@redhat.com>
6694
6695 PR 24455
6696 * testsuite/libgomp.c++/pr24455-1.C: New test.
6697 * testsuite/libgomp.c++/pr24455.C: New test.
6698 * testsuite/libgomp.dg/pr24455-1.c: New test.
6699 * testsuite/libgomp.dg/pr24455.c: New test.
6700
6701 2005-10-20 Richard Henderson <rth@redhat.com>
6702
6703 * testsuite/libgomp.c++/loop-6.C: New.
6704 * testsuite/libgomp.dg/loop-3.c: New.
6705
6706 2005-10-20 Jakub Jelinek <jakub@redhat.com>
6707
6708 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
6709 explicitly private.
6710 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
6711 explicitly shared.
6712
6713 2005-10-19 Diego Novillo <dnovillo@redhat.com>
6714
6715 * testsuite/libgomp.fortran/jacobi.f: New test.
6716
6717 2005-10-19 Richard Henderson <rth@redhat.com>
6718
6719 * configure.tgt (i?86-linux): Default to with_arch instead of
6720 CFLAGS. Add -mtune to match target_cpu.
6721 (x86_64-linux): Tune to i686.
6722
6723 * fortran.c (omp_test_nest_lock_): Fix typo.
6724
6725 2005-10-19 Jakub Jelinek <jakub@redhat.com>
6726
6727 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
6728 gomp_ordered_sync): Do nothing if team->nthreads == 1.
6729 * testsuite/libgomp.dg/ordered-3.c: New test.
6730
6731 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
6732 Remove volatile keyword.
6733
6734 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
6735 in COMMON block to avoid warnings on 64-bit targets.
6736
6737 2005-10-18 Diego Novillo <dnovillo@redhat.com>
6738
6739 * testsuite/libgomp.dg/shared-3.c: New test.
6740
6741 2005-10-18 Jakub Jelinek <jakub@redhat.com>
6742
6743 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
6744 * testsuite/libgomp.fortran/reduction5.f90: New test.
6745
6746 2005-10-18 Jakub Jelinek <jakub@redhat.com>
6747
6748 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
6749 dg-options.
6750 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
6751 flush loop now that __sync_synchronize has proper memory barrier.
6752 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
6753 Add -ffixed-form to dg-options.
6754
6755 2005-10-17 Diego Novillo <dnovillo@redhat.com>
6756
6757 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
6758 from subdirectories.
6759 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
6760 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
6761 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
6762 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
6763 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
6764 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
6765 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
6766 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
6767 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
6768 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
6769 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
6770 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
6771 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
6772 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
6773 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
6774 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
6775 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
6776 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
6777 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
6778 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
6779 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
6780 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
6781 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
6782 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
6783 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
6784
6785 2005-10-17 Jakub Jelinek <jakub@redhat.com>
6786
6787 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
6788 lang_library_path exists. Use find instead of glob to gather tests.
6789 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
6790
6791 2005-10-17 Diego Novillo <dnovillo@redhat.com>
6792
6793 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
6794 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
6795 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
6796 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
6797 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
6798 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
6799 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
6800 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
6801 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
6802 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
6803 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
6804 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
6805 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
6806
6807 2005-10-15 Jakub Jelinek <jakub@redhat.com>
6808
6809 * testsuite/libgomp.dg/vla-1.c: New test.
6810
6811 * testsuite/libgomp.fortran/reference2.f90: New test.
6812
6813 * testsuite/libgomp.fortran/character2.f90: Remove explicit
6814 declaration of omp_get_thread_num.
6815 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
6816 use omp_lib.
6817
6818 * testsuite/libgomp.fortran/reduction1.f90: New test.
6819 * testsuite/libgomp.fortran/reduction2.f90: New test.
6820 * testsuite/libgomp.fortran/reduction3.f90: New test.
6821 * testsuite/libgomp.fortran/reduction4.f90: New test.
6822
6823 2005-10-13 Richard Henderson <rth@redhat.com>
6824
6825 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
6826 * Makefile.in: Regenerate.
6827 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
6828 * libgomp.h: Include bar.h.
6829 (struct gomp_barrier): Remove.
6830 (struct gomp_team): Add barrier. Replace master_barrier with
6831 master_release. Replace threads with ordered_release.
6832 (struct gomp_thread): Replace barrier with release.
6833 * ordered.c (gomp_ordered_first): Update for ordered_release change.
6834 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
6835 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
6836 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
6837 (GOMP_single_copy_end): Likewise.
6838 * team.c (gomp_threads_dock): New.
6839 (gomp_barrier_init, gomp_barrier_destroy): Remove.
6840 (gomp_thread_start): Use gomp_barrier_wait.
6841 (new_team, free_team): Update for gomp_team changes.
6842 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
6843 (gomp_team_end): Use gomp_barrier_wait.
6844 (initialize_team): Update for gomp_thread changes.
6845 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
6846 (gomp_work_share_end_nowait): Use atomic ops when available.
6847 * config/linux/bar.c, config/linux/bar.h: New files.
6848 * config/posix/bar.c, config/posix/bar.h: New files.
6849
6850 2005-10-13 Jakub Jelinek <jakub@redhat.com>
6851
6852 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
6853 * testsuite/libgomp.dg/single-2.c: New test.
6854
6855 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
6856 lang_link_flags): Unset, so that they aren't inherited from previously
6857 sourced *.exp.
6858
6859 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
6860
6861 2005-10-12 Richard Henderson <rth@redhat.com>
6862
6863 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
6864 (libgomp_init): Use lang_test_file, lang_library_path, and
6865 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
6866
6867 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
6868 (lang_test_file, lang_link_flags): New.
6869 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
6870
6871 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
6872 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
6873 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
6874 testsuite/libgomp.c++/parallel-1.C,
6875 testsuite/libgomp.c++/reduction-1.C,
6876 testsuite/libgomp.c++/reduction-2.C,
6877 testsuite/libgomp.c++/reduction-3.C,
6878 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
6879 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
6880 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
6881 New files, largely cribbed from the C testsuite.
6882
6883 2005-10-12 Jakub Jelinek <jakub@redhat.com>
6884
6885 * testsuite/libgomp.fortran/character1.f90: New test.
6886 * testsuite/libgomp.fortran/character2.f90: New test.
6887
6888 * testsuite/libgomp.dg/nested-1.c: New test.
6889 * testsuite/libgomp.dg/nested-2.c: New test.
6890 * testsuite/libgomp.fortran/do1.f90: New test.
6891 * testsuite/libgomp.fortran/do2.f90: New test.
6892
6893 * testsuite/libgomp.fortran/reference1.f90: New test.
6894
6895 2005-10-11 Jakub Jelinek <jakub@redhat.com>
6896
6897 * testsuite/libgomp.dg/reduction-1.c: New test.
6898 * testsuite/libgomp.dg/reduction-2.c: New test.
6899 * testsuite/libgomp.dg/reduction-3.c: New test.
6900
6901 2005-10-10 Jakub Jelinek <jakub@redhat.com>
6902
6903 * testsuite/libgomp.dg/atomic-1.c: New test.
6904 * testsuite/libgomp.dg/atomic-2.c: New test.
6905
6906 2005-10-09 Richard Henderson <rth@redhat.com>
6907
6908 * critical.c (atomic_lock): New.
6909 (initialize_critical): Initialize it.
6910 (GOMP_atomic_start, GOMP_atomic_end): New.
6911 * libgomp.map: Export them.
6912 * libgomp_g.h: Declare them.
6913
6914 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
6915
6916 2005-10-02 Richard Henderson <rth@redhat.com>
6917
6918 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
6919 to XCFLAGS instead of CFLAGS.
6920
6921 2005-09-30 Richard Henderson <rth@redhat.com>
6922
6923 * configure.ac: Determine whether -pthread or -lpthread is needed.
6924 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
6925 * Makefine.in, configure: Rebuild.
6926
6927 2005-09-28 Richard Henderson <rth@redhat.com>
6928
6929 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
6930 * testsuite/libgomp.dg/omp-single-3.c: New test.
6931
6932 2005-09-28 Diego Novillo <dnovillo@redhat.com>
6933
6934 * testsuite/libgomp.dg/omp-single-2.c: New test.
6935 * testsuite/libgomp.dg/shared-2.c: Fix return code.
6936
6937 2005-09-27 Richard Henderson <rth@redhat.com>
6938
6939 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
6940 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
6941
6942 2005-09-27 Jakub Jelinek <jakub@redhat.com>
6943
6944 * testsuite/libgomp.dg/omp-loop03.c: New test.
6945
6946 2005-09-27 Diego Novillo <dnovillo@redhat.com>
6947
6948 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
6949
6950 2005-09-27 Diego Novillo <dnovillo@redhat.com>
6951
6952 * testsuite/libgomp.dg/omp-single-1.c: New test.
6953 * testsuite/libgomp.dg/shared-1.c: Return 0.
6954 Add prototype for abort.
6955 * testsuite/libgomp.dg/shared-2.c: Likewise.
6956
6957 2005-09-26 Jakub Jelinek <jakub@redhat.com>
6958
6959 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
6960 constructs.
6961
6962 2005-09-26 Diego Novillo <dnovillo@redhat.com>
6963
6964 * testsuite/libgomp.dg/shared-1.c: New test.
6965 * testsuite/libgomp.dg/shared-2.c: New test.
6966
6967 2005-09-24 Richard Henderson <rth@redhat.com>
6968
6969 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
6970
6971 2005-09-24 Richard Henderson <rth@redhat.com>
6972
6973 * iter.c (gomp_iter_static_next): Round up when computing number
6974 of iterations. Don't bother distributing a remainder equally.
6975
6976 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
6977 Don't call srand. Zero b before testing.
6978 (main): New.
6979
6980 2005-09-24 Jakub Jelinek <jakub@redhat.com>
6981
6982 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
6983 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
6984
6985 2005-09-23 Jakub Jelinek <jakub@redhat.com>
6986
6987 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
6988 without !$omp end do, followed immediately by subroutine end.
6989
6990 2005-09-23 Diego Novillo <dnovillo@redhat.com>
6991
6992 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
6993
6994 2005-09-22 Richard Henderson <rth@redhat.com>
6995
6996 * critical.c (GOMP_critical_name_start): Change argument to void**.
6997 Reuse the pointer space if the mutex fits.
6998 (GOMP_critical_name_end): Likewise.
6999 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
7000 * libgomp_g.h (GOMP_critical_name_start): Update decl.
7001 (GOMP_critical_name_end): Likewise.
7002 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
7003 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
7004
7005 2005-09-20 Richard Henderson <rth@redhat.com>
7006
7007 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
7008 (create_lock_lock): New.
7009 (initialize_critical): Initialize it.
7010 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
7011 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
7012
7013 2005-09-20 Diego Novillo <dnovillo@redhat.com>
7014
7015 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
7016
7017 2005-09-20 Diego Novillo <dnovillo@redhat.com>
7018
7019 * testsuite/libgomp.dg/omp-loop01.c: New test.
7020 * testsuite/libgomp.dg/omp-loop02.c: New test.
7021
7022 2005-09-20 Jakub Jelinek <jakub@redhat.com>
7023
7024 * configure.ac (AC_PROG_FC): Add.
7025 (USE_FORTRAN): New automake conditional.
7026 * configure: Rebuilt.
7027 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
7028 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
7029 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
7030 Add rules to build them.
7031 * Makefile.in: Rebuilt.
7032 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
7033 OMP_NEST_LOCK_KIND.
7034 * libgomp.map: Add Fortran wrappers.
7035 * libgomp_f.h.in: New file.
7036 * omp_lib.h.in: New file.
7037 * omp_lib.f90.in: New file.
7038 * fortran.c: New file.
7039 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
7040 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
7041 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
7042 libgfortran has been built.
7043 * testsuite/libgomp.fortran/fortran.exp: New file.
7044 * testsuite/libgomp.fortran/omp_cond1.f: New test.
7045 * testsuite/libgomp.fortran/omp_cond2.f: New test.
7046 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
7047 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
7048 * testsuite/libgomp.fortran/omp_hello.f: New test.
7049 * testsuite/libgomp.fortran/omp_orphan.f: New test.
7050 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
7051 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
7052 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
7053 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
7054 * testsuite/libgomp.fortran/omp_reduction.f: New test.
7055 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
7056 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
7057
7058 2005-08-30 Richard Henderson <rth@redhat.com>
7059
7060 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
7061 function for when aliases are not usable.
7062 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
7063 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7064 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
7065 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
7066 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
7067 GOMP_loop_ordered_guided_next): Likewise.
7068 * ordered.c (GOMP_ordered_start): Likewise.
7069
7070 2005-08-01 Diego Novillo <dnovillo@redhat.com>
7071
7072 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
7073 * testsuite/libgomp.dg/omp_hello.c: Fix return code
7074 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
7075 * testsuite/libgomp.dg/omp_orphan.c: Likewise
7076 * testsuite/libgomp.dg/omp_reduction.c: Likewise
7077 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
7078 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
7079 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
7080 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
7081
7082 2005-07-07 Eric Christopher <echristo@redhat.com>
7083 Diego Novillo <dnovillo@redhat.com>
7084
7085 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
7086 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
7087 up code.
7088 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
7089 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
7090 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
7091 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
7092 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
7093 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
7094 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
7095
7096 2005-06-13 Diego Novillo <dnovillo@redhat.com>
7097
7098 * TOPLEVEL.patch: Remove.
7099
7100 2005-05-16 Richard Henderson <rth@redhat.com>
7101
7102 * configure.ac: Test for clock_gettime.
7103 * config.h.in, configure: Rebuild.
7104 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
7105 (omp_get_wtime): Use clock_gettime if available.
7106 (omp_get_wtick): Use clock_getres if available.
7107
7108 2005-05-11 Richard Henderson <rth@redhat.com>
7109
7110 * config/linux/ia64/futex.h: New file.
7111 * configure.tgt: Use it.
7112
7113 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
7114
7115 2005-05-07 Richard Henderson <rth@redhat.com>
7116
7117 * config/linux/powerpc/futex.h: New file.
7118 * configure.tgt: Use it.
7119
7120 * config/linux/i486/futex.h: Merge ...
7121 * config/linux/x86_64/futex.h: ... into ...
7122 * config/linux/x86/futex.h: ... here.
7123 * configure.tgt: Update to match.
7124
7125 2005-05-06 Richard Henderson <rth@redhat.com>
7126
7127 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
7128 * config/linux/i486/futex.h: Likewise.
7129 * config/linux/x86_64/futex.h: Likewise.
7130
7131 * config/linux/lock.c: New file.
7132 * config/linux/omp-lock.h: New file.
7133
7134 * critical.c, env.h: Don't include omp.h
7135 * config/posix/lock.c: Include libgomp.h instead of omp.h.
7136 * config/posix/time.c: Likewise.
7137 * config/posix/omp-lock.h: New file.
7138 * libgomp.h: Include omp-lock.h and omp.h.
7139 * Makefile.am (nodist_include_HEADERS): New.
7140 (omp.h): New rule.
7141 * configure.ac (PERL): New.
7142 * mkomp_h.pl: New file.
7143 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
7144 with templates.
7145 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
7146
7147 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
7148 build directory. Re-add -march=i486 hack.
7149
7150 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
7151 (libgomp_link_flags): Remove.
7152 (libgomp_initialized): Remove.
7153 (libgomp_init): Don't protect from reinitialization. Copy code
7154 from libstdc++ for getting the multilib set correctly.
7155
7156 2005-05-05 Richard Henderson <rth@redhat.com>
7157
7158 * config/linux/alpha/futex.h: New file.
7159 * configure.tgt (alpha*-*-linux*): Use it.
7160
7161 * config/posix/mutex.c: New file.
7162 * config/posix/sem.c: Use libgomp.h.
7163
7164 * configure.tgt (x86_64-linux): Also test CC for -m32.
7165 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
7166
7167 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
7168 after $gccpath.
7169
7170 * Makefile.am (SUBDIRS): New.
7171 (libgomp_la_LDFLAGS): Add -lpthread.
7172 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
7173 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
7174
7175 * libgomp_g.h: New file.
7176 * libgomp.h: Split out all public declarations to libgomp_g.h.
7177 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
7178 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
7179 * config/linux/sem.h: Likewise.
7180 * config/posix/sem.h: Likewise.
7181
7182 * Makefile.am (AM_LDFLAGS): New.
7183 (libgomp_version_script): Split out from ...
7184 (libgomp_la_LDFLAGS): ... here.
7185 (libgomp_version_info): New.
7186 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
7187 (LIBGOMP_ENABLE): New.
7188 (LIBGOMP_CHECK_LINKER_FEATURES): New.
7189 (LIBGOMP_ENABLE_SYMVERS): New.
7190 * configure.ac (AC_INIT): Version 1.0.
7191 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
7192 (enable-linux-futex): Likewise. Rename from enable-futex.
7193 (libtool_VERSION): New.
7194 (LIBGOMP_ENABLE_SYMVERS): Use it.
7195 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
7196 * Makefile.in, aclocal.m4, configure: Rebuild.
7197
7198 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
7199 (gomp_mutex_unlock_slow): Fix typo.
7200 * config/linux/sem.c: Similarly.
7201 (gomp_sem_post_slow): Fix typo.
7202 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
7203 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
7204 [__PIC__] (sys_futex0): Don't use tmp output in asm.
7205
7206 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
7207 (libgomp_la_LDFLAGS): Add top_srcdir to path.
7208 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
7209 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
7210 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
7211 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
7212 LDFLAGS. Pull enable_futex check to top-level.
7213 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
7214 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
7215
7216 First attempt at real configury.
7217 * Makefile, config.h: Remove file.
7218 * Makefile.am, Makefile.in: New file.
7219 * acinclude.m4 aclocal.m4: New file.
7220 * configure.ac, configure.tgt, configure: New file.
7221
7222 * config/posix/lock.c: Rename from sys-lock.c.
7223 * config/posix/mutex.h: Rename from sys-mutex.h.
7224 * config/posix/sem.c: Rename from sys-sem.c.
7225 * config/posix/sem.h: Rename from sys-sem.h.
7226 * config/posix/proc.c: Rename from sys-proc.c.
7227 * config/posix/time.c: Rename from sys-proc.c.
7228
7229 * config/linux/mutex.c: New file.
7230 * config/linux/mutex.h: New file.
7231 * config/linux/sem.c: New file.
7232 * config/linux/sem.h: New file.
7233 * config/linux/i486/futex.h: New file.
7234 * config/linux/x86_64/futex.h: New file.
7235
7236 2005-05-04 Richard Henderson <rth@redhat.com>
7237
7238 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
7239 * libgomp.h: Declare them.
7240 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
7241 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
7242
7243 2005-05-04 Richard Henderson <rth@redhat.com>
7244
7245 * libgomp-1 code drop
7246
7247 2005-05-04 Richard Henderson <rth@redhat.com>
7248
7249 * iter.c (gomp_iter_static_next): Return tri-state on 0.
7250 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
7251 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
7252 (gomp_iter_static_next): Update.
7253 (gomp_ordered_static_next): Update.
7254 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
7255 (gomp_loop_ordered_static_start): Likewise. Exit early for a
7256 totally empty range.
7257 (gomp_loop_ordered_static_next): Refine test for calling
7258 gomp_ordered_static_next.
7259 * testsuite/ordered-1.c: Add case for more threads than iterations.
7260
7261 * iter.c (gomp_iter_runtime_next_locked): Remove.
7262 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
7263 gomp_loop_guided_start, gomp_loop_ordered_static_start,
7264 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
7265 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
7266 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
7267 gomp_loop_ordered_guided_next): Downcase name, make static, add
7268 an external alias with the old name.
7269 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
7270 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
7271 switch and call one of the above static functions.
7272 * libgomp.h: Update.
7273
7274 * work.c (gomp_work_share_start): Lock the mutex for !first too.
7275 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
7276 GOMP_loop_guided_start, GOMP_loop_runtime_start,
7277 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
7278 GOMP_loop_ordered_guided_start): Update to match.
7279 * sections.c (GOMP_sections_start): Likewise.
7280 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
7281
7282 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
7283 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
7284 Use bounds check instead of modulus.
7285 (gomp_ordered_sync): Split out of GOMP_ordered_start.
7286 (gomp_ordered_last): Don't sync with ordered_owner here.
7287 (gomp_ordered_next): Likewise.
7288 (gomp_ordered_static_loop_next): Likewise.
7289 * loop.c, libgomp.h: Update to match.
7290
7291 * libgomp.h (GOMP_barrier): Declare.
7292
7293 * testsuite/barrier-1.c: New file.
7294 * testsuite/critical-1.c: New file.
7295 * testsuite/ordered-2.c: New file.
7296 * testsuite/ordered-1.c: New file.
7297 * testsuite/sections-1.c: New file.
7298 * testsuite/single-1.c: New file.
7299 * testsuite/Makefile (TESTS): Add them.
7300
7301 2005-05-04 Richard Henderson <rth@redhat.com>
7302
7303 * libgomp.h (struct gomp_work_share): Add ordered_owner.
7304 * loop.c (GOMP_loop_static_start): If not the startup thread,
7305 acquire the mutex to wait for initialization complete.
7306 (GOMP_loop_ordered_static_start): Likewise.
7307 (GOMP_loop_ordered_runtime_start): Likewise.
7308 (GOMP_loop_ordered_static_first): Remove.
7309 (GOMP_loop_ordered_dynamic_first): Remove.
7310 (GOMP_loop_ordered_guided_first): Remove.
7311 (GOMP_loop_ordered_runtime_first): Remove.
7312 * ordered.c (gomp_ordered_loop_first): Post to own release when
7313 we're the first thread.
7314 (gomp_ordered_loop_last): Wait on release if not owner.
7315 (gomp_ordered_loop_next): Likewise.
7316 (gomp_ordered_static_loop_init): New.
7317 (gomp_ordered_static_loop_next): Use ordered_owner.
7318 (GOMP_ordered_start): Likewise.
7319 * work.c (gomp_new_work_share): Initialize ordered_owner.
7320
7321 2005-05-03 Richard Henderson <rth@redhat.com>
7322
7323 * Makefile (OPT): New.
7324 (CFLAGS): Use it.
7325
7326 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
7327 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
7328 * libgomp.h, libgomp.map, NOTES: Update to match.
7329
7330 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
7331 Add initialized and thr members.
7332 (gomp_thread_start): Pause when initially spawned to wait for
7333 the whole team to be created.
7334 (gomp_team_start): Release team members at the end.
7335
7336 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
7337 (f_foo_1): Use GOMP_loop_end.
7338 (f_foo_2): Use GOMP_loop_end_nowait.
7339
7340 * testsuite/loop-2.c: New file.
7341 * testsuite/Makefile (TESTS): Add it.
7342
7343 2005-05-03 Richard Henderson <rth@redhat.com>
7344
7345 * iter.c (gomp_iter_static_next): Fix overflow check typo.
7346 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
7347 * team.c (new_team): Initialize oldest_live_gen to 1 if no
7348 initial work_share.
7349
7350 * testsuite/Makefile: New file.
7351 * testsuite/loop-1.c: New file.
7352
7353 2005-05-03 Richard Henderson <rth@redhat.com>
7354
7355 Initial implementation and checkin.
7356 \f
7357 Copyright (C) 2005-2016 Free Software Foundation, Inc.
7358
7359 Copying and distribution of this file, with or without modification,
7360 are permitted in any medium without royalty provided the copyright
7361 notice and this notice are preserved.