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