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