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