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