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