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