Fix dot dump bug
[official-gcc.git] / libgomp / ChangeLog
blob8e6d37ae96169de60f339101f4b5c8f6d7831d6c
1 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
3         PR fortran/60928
4         * testsuite/libgomp.fortran/allocatable9.f90: New test.
5         * testsuite/libgomp.fortran/allocatable10.f90: New test.
6         * testsuite/libgomp.fortran/allocatable11.f90: New test.
7         * testsuite/libgomp.fortran/allocatable12.f90: New test.
8         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
10         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
11         * testsuite/libgomp.fortran/associate1.f90: New test.
12         * testsuite/libgomp.fortran/associate2.f90: New test.
13         * testsuite/libgomp.fortran/procptr1.f90: New test.
15 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
17         * testsuite/libgomp.fortran/simd1.f90: New test.
18         * testsuite/libgomp.fortran/udr1.f90: New test.
19         * testsuite/libgomp.fortran/udr2.f90: New test.
20         * testsuite/libgomp.fortran/udr3.f90: New test.
21         * testsuite/libgomp.fortran/udr4.f90: New test.
22         * testsuite/libgomp.fortran/udr5.f90: New test.
23         * testsuite/libgomp.fortran/udr6.f90: New test.
24         * testsuite/libgomp.fortran/udr7.f90: New test.
25         * testsuite/libgomp.fortran/udr8.f90: New test.
26         * testsuite/libgomp.fortran/udr9.f90: New test.
27         * testsuite/libgomp.fortran/udr10.f90: New test.
28         * testsuite/libgomp.fortran/udr11.f90: New test.
30 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
32         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
33         vect_simd_clones effective target.
34         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
36 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
38         PR middle-end/61252
39         * testsuite/libgomp.c++/simd-9.C: New test.
41 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
43         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
44         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
45         texts according to their @menu entry positions.
47 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
49         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
50         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
51         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
52         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
53         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
54         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
55         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
56         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
57         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
58         * testsuite/libgomp.fortran/depend-1.f90: New test.
59         * testsuite/libgomp.fortran/depend-2.f90: New test.
60         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
61         * testsuite/libgomp.fortran/simd1.f90: New test.
62         * testsuite/libgomp.fortran/simd2.f90: New test.
63         * testsuite/libgomp.fortran/simd3.f90: New test.
64         * testsuite/libgomp.fortran/simd4.f90: New test.
65         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
67 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
69         * testsuite/libgomp.c/simd-10.c: New test.
70         * testsuite/libgomp.c/simd-11.c: New test.
71         * testsuite/libgomp.c/simd-12.c: New test.
72         * testsuite/libgomp.c/simd-13.c: New test.
74 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
76         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
77         atomic type clauses in any order and optional comma in between.
78         * testsuite/libgomp.c++/atomic-15.C: Likewise.
79         * testsuite/libgomp.c/atomic-17.c: Likewise.
81         * testsuite/libgomp.c/simd-7.c: New test.
82         * testsuite/libgomp.c/simd-8.c: New test.
83         * testsuite/libgomp.c/simd-9.c: New test.
84         * testsuite/libgomp.c/loop-16.c: New test.
86 2014-04-02  Richard Henderson  <rth@redhat.com>
88         * config/linux/futex.h (futex_wait): Get error value from errno.
89         (futex_wake): Likewise.
91 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
93         PR c++/60331
94         * testsuite/libgomp.c++/udr-11.C: New test.
95         * testsuite/libgomp.c++/udr-12.C: New test.
96         * testsuite/libgomp.c++/udr-13.C: New test.
97         * testsuite/libgomp.c++/udr-14.C: New test.
98         * testsuite/libgomp.c++/udr-15.C: New test.
99         * testsuite/libgomp.c++/udr-16.C: New test.
100         * testsuite/libgomp.c++/udr-17.C: New test.
101         * testsuite/libgomp.c++/udr-18.C: New test.
102         * testsuite/libgomp.c++/udr-19.C: New test.
104 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
106         Update copyright years
108 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
110         * hashtab.h: Use the standard form for the copyright notice.
112 2014-01-02  Tobias Burnus  <burnus@net-b.de>
114         * libgomp.texi: Bump @copying's copyright year.
116 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
118         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
119         alloca () with __builtin_alloca ().
120         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
121         * testsuite/libgomp.c/lock-3.c: Likewise.
122         * testsuite/libgomp.c/pr48591.c: Likewise.
124 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
126         PR testsuite/59534
127         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
128         comparisons.
130 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
132         PR libgomp/58756
133         * testsuite/libgomp.c/pr58756.c: New test.
135 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
137         PR libgomp/59467
138         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
139         !$omp parallel.
141 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
143         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
144         ALWAYS_CFLAGS.
145         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
146         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
147         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
148         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
149         Likewise.
151         * libgomp_g.h: Include <stddef.h> for size_t.
153         * libgomp.spec.in: Update comment about libgomp's dependencies.
154         * configure.ac: Likewise.
155         * configure: Regenerate.
157 2013-10-16  Tobias Burnus  <burnus@net-b.de>
159         * libgomp.texi: (Runtime Library Routines): Update references for
160         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
161         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
162         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
163         (Environment Variables): Update references for OpenMP 4.0. Add
164         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
165         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
166         order.
168 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
170         * env.c (parse_bind_var): Initialize value to avoid
171         (false positive) warning.
173 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
175         PR libgomp/58691
176         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
177         to check variable.
178         (gomp_init_num_threads): Move i variable declaration into
179         #ifdef CPU_ALLOC_SIZE block.
180         * config/linux/affinity.c (gomp_affinity_init_level): Test
181         gomp_places_list_len == 0 rather than gomp_places_list == 0
182         when checking for topology reading error.
183         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
184         * env.c (parse_affinity): Add ignore argument, if true, don't populate
185         gomp_places_list, only parse env var and always return false.
186         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
187         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
188         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
189         and either of these variables were parsed correctly into a places
190         list.
192 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
193             Jakub Jelinek  <jakub@redhat.com>
195         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
196         of 5 loopfn matches.
197         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
198         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
199         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
200         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
201         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
202         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
203         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
204         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
206 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
208         * Makefile.am (omp_lib.mod): Streamline rule.
209         * Makefile.in: Regenerate.
211         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
212         exceptions.
214         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
215         * testsuite/libgomp.fortran/lib1.f90: Likewise.
216         * testsuite/libgomp.fortran/lib2.f: Likewise.
217         * testsuite/libgomp.fortran/lib3.f: Likewise.
219         * configure.ac: Typo fix.
220         * configure: Regenerate.
222         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
223         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
225         * omp.h.in: Don't touch the user's namespace.
227 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
228             Tobias Burnus  <burnus@net-b.de>
229             Richard Henderson  <rth@redhat.com>
231         * target.c: New file.
232         * Makefile.am (libgomp_la_SOURCES): Add target.c.
233         * Makefile.in: Regenerated.
234         * libgomp_g.h (GOMP_task): Add depend argument.
235         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
236         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
237         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
238         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
239         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
240         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
241         GOMP_taskgroup_start, GOMP_taskgroup_end,
242         GOMP_parallel_sections): New prototypes.
243         * fortran.c (omp_is_initial_device): Add ialias_redirect.
244         (omp_is_initial_device_): New function.
245         (ULP, STR1, STR2, ialias_redirect): Removed.
246         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
247         omp_set_default_device_8_, omp_get_default_device_,
248         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
249         functions.
250         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
251         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
252         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
253         @@GOMP_4.0.
254         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
255         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
256         omp_set_default_device, omp_set_default_device_,
257         omp_set_default_device_8_, omp_get_default_device,
258         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
259         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
260         omp_get_team_num_): Export @@OMP_4.0.
261         * team.c (struct gomp_thread_start_data): Add place field.
262         (gomp_thread_start): Clear thr->thread_pool and
263         thr->task before returning.  Use gomp_team_barrier_wait_final
264         instead of gomp_team_barrier_wait.  Initialize thr->place.
265         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
266         team_cancelled and task_queued_count fields.
267         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
268         before calling pthread_exit.
269         (gomp_free_thread): No longer static.  Use
270         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
271         (gomp_team_start): Add flags argument.  Set
272         thr->thread_pool->threads_busy to nthreads immediately after creating
273         new pool.  Use gomp_managed_threads_lock instead of
274         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
275         (gomp_team_end): Use gomp_managed_threads_lock instead of
276         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
277         of gomp_team_barrier_wait.  If team->team_cancelled, call
278         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
279         rather than thr->ts.work_share.
280         (initialize_team): Don't call gomp_sem_init here.
281         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
282         caller.
283         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
284         * env.c (gomp_global_icv): Add default_device_var, target_data and
285         bind_var initializers.
286         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
287         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
288         gomp_places_list_len): New variables.
289         (parse_bind_var, parse_one_place, parse_places_var): New functions.
290         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
291         sized places.
292         (gomp_cancel_var): New global variable.
293         (parse_int): New function.
294         (handle_omp_display_env): New function.
295         (initialize_env): Use it.  Initialize default_device_var.
296         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
297         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
298         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
299         been successfully parsed (and call gomp_init_affinity in that case).
300         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
301         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
302         omp_get_team_num, omp_is_initial_device): New functions.
303         * libgomp.h: Include stdlib.h.
304         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
305         Define.
306         (struct target_mem_desc): Forward declare.
307         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
308         and thread_limit_var fields.
309         (gomp_get_num_devices): New prototype.
310         (gomp_cancel_var): New extern decl.
311         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
312         team_cancelled and task_queued_count fields.  Add comments about
313         task_{,queued_,running_}count.
314         (gomp_cancel_kind): New enum.
315         (gomp_work_share_end_cancel): New prototype.
316         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
317         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
318         and depend fields.
319         (struct gomp_taskgroup): New type.
320         (struct gomp_task_depend_entry,
321         struct gomp_dependers_vec): New types.
322         (gomp_finish_task): Free depend_hash if non-NULL.
323         (struct gomp_team_state): Add place_partition_off
324         and place_partition_len fields.
325         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
326         gomp_places_list_len): New extern decls.
327         (struct gomp_thread): Add place field.
328         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
329         (gomp_init_thread_affinity): Add place argument.
330         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
331         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
332         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
333         gomp_affinity_init_level, gomp_affinity_print_place): New
334         prototypes.
335         (gomp_team_start): Add flags argument.
336         (gomp_thread_limit_var, gomp_remaining_threads_count,
337         gomp_remaining_threads_lock): Remove.
338         (gomp_managed_threads_lock): New variable.
339         (struct gomp_thread_pool): Add threads_busy field.
340         (gomp_free_thread): New prototype.
341         * task.c: Include hashtab.h.
342         (hash_entry_type): New typedef.
343         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
344         (gomp_init_task): Clear dependers, depend_hash, depend_count,
345         copy_ctors_done and taskgroup fields.
346         (GOMP_task): Add depend argument, handle depend clauses.  If
347         gomp_team_barrier_cancelled or if it's taskgroup has been
348         cancelled, don't queue or start new tasks.  Set copy_ctors_done
349         field if needed.  Initialize taskgroup field.  If copy_ctors_done
350         and already cancelled, don't discard the task.  If taskgroup is
351         non-NULL, enqueue the task into taskgroup queue.  Increment
352         num_children field in taskgroup.  Increment task_queued_count.
353         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
354         gomp_task_run_post_remove_taskgroup): New inline functions.
355         (gomp_task_run_post_handle_depend_hash,
356         gomp_task_run_post_handle_dependers,
357         gomp_task_run_post_handle_depend): New functions.
358         (GOMP_taskwait): Use them.  If more than one new tasks
359         have been queued, wake other threads if needed.
360         (gomp_barrier_handle_tasks): Likewise.  If
361         gomp_team_barrier_cancelled, don't start any new tasks, just free
362         all tasks.
363         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
364         * omp_lib.f90.in
365         (omp_proc_bind_kind, omp_proc_bind_false,
366         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
367         omp_proc_bind_spread): New params.
368         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
369         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
370         omp_get_team_num, omp_is_initial_device): New interfaces.
371         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
372         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
373         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
374         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
375         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
376         useless use omp_lib_kinds.
377         * omp.h.in (omp_proc_bind_t): New typedef.
378         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
379         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
380         omp_get_team_num, omp_is_initial_device): New prototypes.
381         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
382         through to gomp_team_start.
383         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
384         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
385         Adjust gomp_parallel_loop_start callers.
386         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
387         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
388         GOMP_loop_end_cancel): New functions.
389         (GOMP_parallel_end): Add ialias_redirect.
390         * hashtab.h: New file.
391         * libgomp.texi (Environment Variables): Minor cleanup,
392         update section refs to OpenMP 4.0rc2.
393         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
394         environment variables.
395         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
396         team->work_shares_to_free to thr->ts.work_share before calling
397         free_work_share.
398         (gomp_work_share_end_cancel): New function.
399         * config/linux/proc.c: Include errno.h.
400         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
401         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
402         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
403         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
404         gomp_cpuset_size is sizeof (cpu_set_t).
405         (gomp_init_num_threads): Initialize gomp_cpuset_size,
406         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
407         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
408         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
409         contain any logical CPUs.
410         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
411         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
412         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
413         pthread_getaffinity_np.  Check gomp_places_list instead of
414         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
415         * config/linux/bar.c (gomp_barrier_wait_end,
416         gomp_barrier_wait_last): Use BAR_* defines.
417         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
418         from state where needed.  Set work_share_cancelled to 0 on last
419         thread.
420         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
421         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
422         functions.
423         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
424         Add cpusetsize argument.
425         (gomp_cpuset_size, gomp_cpusetp): Declare.
426         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
427         (affinity_counter): Remove.
428         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
429         if CPU_ALLOC_SIZE isn't defined.
430         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
431         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
432         bind current thread to the first place.
433         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
434         pthread_setaffinity_np to gomp_places_list[place].
435         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
436         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
437         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
438         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
439         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
440         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
441         (gomp_barrier_t): Add awaited_final field.
442         (gomp_barrier_init): Initialize awaited_final field.
443         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
444         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
445         prototypes.
446         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
447         defines.
448         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
449         gomp_team_barrier_cancelled): New inline functions.
450         (gomp_barrier_last_thread,
451         gomp_team_barrier_set_task_pending,
452         gomp_team_barrier_clear_task_pending,
453         gomp_team_barrier_set_waiting_for_tasks,
454         gomp_team_barrier_waiting_for_tasks,
455         gomp_team_barrier_done): Use BAR_* defines.
456         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
457         (gomp_barrier_wait_end): Use BAR_* defines.
458         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
459         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
460         Use BAR_* defines.
461         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
462         gomp_team_barrier_cancel): New functions.
463         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
464         argument.
465         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
466         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
467         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
468         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
469         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
470         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
471         (gomp_barrier_t): Add cancellable field.
472         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
473         gomp_team_barrier_cancel): New prototypes.
474         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
475         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
476         gomp_team_barrier_cancelled): New inline functions.
477         (gomp_barrier_wait_start, gomp_barrier_last_thread,
478         gomp_team_barrier_set_task_pending,
479         gomp_team_barrier_clear_task_pending,
480         gomp_team_barrier_set_waiting_for_tasks,
481         gomp_team_barrier_waiting_for_tasks,
482         gomp_team_barrier_done): Use BAR_* defines.
483         * barrier.c (GOMP_barrier_cancel): New function.
484         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
485         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
486         omp_proc_bind_spread): New params.
487         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
488         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
489         omp_get_team_num, omp_is_initial_device): New externals.
490         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
491         New functions.
492         (gomp_resolve_num_threads): Adjust for thread_limit now being in
493         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
494         infinity.  If not nested, just return minimum of max_num_threads
495         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
496         to the returned value.  Otherwise, don't update atomically
497         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
498         (GOMP_parallel_end): Adjust for thread_limit now being in
499         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
500         infinity.  Adjust threads_busy in the pool rather than
501         gomp_remaining_threads_count.  Remember team->nthreads and call
502         gomp_team_end before adjusting threads_busy, if not nested
503         afterwards, just set it to 1 non-atomically.  Add ialias.
504         (GOMP_parallel_start): Adjust gomp_team_start caller.
505         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
506         * testsuite/libgomp.c/affinity-1.c: New test.
507         * testsuite/libgomp.c/atomic-15.c: New test.
508         * testsuite/libgomp.c/atomic-16.c: New test.
509         * testsuite/libgomp.c/atomic-17.c: New test.
510         * testsuite/libgomp.c/cancel-for-1.c: New test.
511         * testsuite/libgomp.c/cancel-for-2.c: New test.
512         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
513         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
514         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
515         * testsuite/libgomp.c/cancel-sections-1.c: New test.
516         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
517         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
518         * testsuite/libgomp.c/depend-1.c: New test.
519         * testsuite/libgomp.c/depend-2.c: New test.
520         * testsuite/libgomp.c/depend-3.c: New test.
521         * testsuite/libgomp.c/depend-4.c: New test.
522         * testsuite/libgomp.c/for-1.c: New test.
523         * testsuite/libgomp.c/for-1.h: New file.
524         * testsuite/libgomp.c/for-2.c: New test.
525         * testsuite/libgomp.c/for-2.h: New file.
526         * testsuite/libgomp.c/for-3.c: New test.
527         * testsuite/libgomp.c/pr58392.c: New test.
528         * testsuite/libgomp.c/simd-1.c: New test.
529         * testsuite/libgomp.c/simd-2.c: New test.
530         * testsuite/libgomp.c/simd-3.c: New test.
531         * testsuite/libgomp.c/simd-4.c: New test.
532         * testsuite/libgomp.c/simd-5.c: New test.
533         * testsuite/libgomp.c/simd-6.c: New test.
534         * testsuite/libgomp.c/target-1.c: New test.
535         * testsuite/libgomp.c/target-2.c: New test.
536         * testsuite/libgomp.c/target-3.c: New test.
537         * testsuite/libgomp.c/target-4.c: New test.
538         * testsuite/libgomp.c/target-5.c: New test.
539         * testsuite/libgomp.c/target-6.c: New test.
540         * testsuite/libgomp.c/target-7.c: New test.
541         * testsuite/libgomp.c/taskgroup-1.c: New test.
542         * testsuite/libgomp.c/thread-limit-1.c: New test.
543         * testsuite/libgomp.c/thread-limit-2.c: New test.
544         * testsuite/libgomp.c/thread-limit-3.c: New test.
545         * testsuite/libgomp.c/udr-1.c: New test.
546         * testsuite/libgomp.c/udr-2.c: New test.
547         * testsuite/libgomp.c/udr-3.c: New test.
548         * testsuite/libgomp.c++/affinity-1.C: New test.
549         * testsuite/libgomp.c++/atomic-10.C: New test.
550         * testsuite/libgomp.c++/atomic-11.C: New test.
551         * testsuite/libgomp.c++/atomic-12.C: New test.
552         * testsuite/libgomp.c++/atomic-13.C: New test.
553         * testsuite/libgomp.c++/atomic-14.C: New test.
554         * testsuite/libgomp.c++/atomic-15.C: New test.
555         * testsuite/libgomp.c++/cancel-for-1.C: New test.
556         * testsuite/libgomp.c++/cancel-for-2.C: New test.
557         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
558         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
559         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
560         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
561         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
562         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
563         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
564         * testsuite/libgomp.c++/cancel-test.h: New file.
565         * testsuite/libgomp.c++/for-9.C: New test.
566         * testsuite/libgomp.c++/for-10.C: New test.
567         * testsuite/libgomp.c++/for-11.C: New test.
568         * testsuite/libgomp.c++/simd-1.C: New test.
569         * testsuite/libgomp.c++/simd-2.C: New test.
570         * testsuite/libgomp.c++/simd-3.C: New test.
571         * testsuite/libgomp.c++/simd-4.C: New test.
572         * testsuite/libgomp.c++/simd-5.C: New test.
573         * testsuite/libgomp.c++/simd-6.C: New test.
574         * testsuite/libgomp.c++/simd-7.C: New test.
575         * testsuite/libgomp.c++/simd-8.C: New test.
576         * testsuite/libgomp.c++/target-1.C: New test.
577         * testsuite/libgomp.c++/target-2.C: New test.
578         * testsuite/libgomp.c++/target-2-aux.cc: New file.
579         * testsuite/libgomp.c++/target-3.C: New test.
580         * testsuite/libgomp.c++/taskgroup-1.C: New test.
581         * testsuite/libgomp.c++/udr-1.C: New test.
582         * testsuite/libgomp.c++/udr-2.C: New test.
583         * testsuite/libgomp.c++/udr-3.C: New test.
584         * testsuite/libgomp.c++/udr-4.C: New test.
585         * testsuite/libgomp.c++/udr-5.C: New test.
586         * testsuite/libgomp.c++/udr-6.C: New test.
587         * testsuite/libgomp.c++/udr-7.C: New test.
588         * testsuite/libgomp.c++/udr-8.C: New test.
589         * testsuite/libgomp.c++/udr-9.C: New test.
591 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
593         PR testsuite/57605
594         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
595         ALWAYS_CFLAGS.
597 2013-09-20  Alan Modra  <amodra@gmail.com>
599         * configure: Regenerate.
601 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
603         * testsuite/libgomp.c/sections-2.c: New test.
605 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
607         * testsuite/libgomp.fortran/strassen.f90:
608         Add dg-skip-if aarch64_tiny.
610 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
611             Cesar Philippidis  <cesar@codesourcery.com>
613         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
614         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
615         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
616         * testsuite/libgomp.fortran/fortran.exp: Likewise.
617         * testsuite/libgomp.graphite/graphite.exp: Likewise.
618         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
619         Use dg-runtest rather than gfortran-dg-runtest.
621 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
623         * testsuite/libgomp.c/icv-2.c: Extend current handling of
624         Linux-based x86 systems to cover all GNU systems.
625         * testsuite/libgomp.c/lock-3.c: Likewise.
626         * testsuite/libgomp.c/pr48591.c: Likewise.
628 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
630         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
631         GNU/Hurd, as done for Linux-based systems.
633         * config/posix/ptrlock.h: Fix comment.
635 2013-05-27  Tobias Burnus  <burnus@net-b.de>
637         PR fortran/57423
638         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
639         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
640         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
641         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
642         omp_destroy_nest_lock): Correct arguments to match the one in
643         the OpenMP spec.
644         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
645         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
646         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
647         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
649 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
651         * testsuite/libgomp.c/loop-13.c: New test.
652         * testsuite/libgomp.c/loop-14.c: New test.
653         * testsuite/libgomp.c/loop-15.c: New test.
654         * testsuite/libgomp.c++/loop-13.C: New test.
655         * testsuite/libgomp.c++/loop-14.C: New test.
656         * testsuite/libgomp.c++/loop-15.C: New test.
658 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
660         PR middle-end/56217
661         * testsuite/libgomp.c++/pr56217.C: New test.
663 2013-02-01  Alan Modra  <amodra@gmail.com>
665         * task.c (GOMP_task, GOMP_taskwait): Comment.
667 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
668             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
670         PR libgomp/55561
671         * config/linux/wait.h (do_spin): Use atomic load for addr.
672         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
673         for intptr and ptrlock.
674         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
675         for ptrlock.
677 2013-01-22  Alan Modra  <amodra@gmail.com>
679         PR libgomp/51376
680         PR libgomp/56073
681         * task.c (GOMP_task): Revert 2011-12-09 change.
682         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
683         barrier to read task->children..
684         (gomp_barrier_handle_tasks): ..and matching atomic store with
685         release barrier here when setting parent->children to NULL.
687 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
688             Tobias Burnus  <burnus@net-b.de>
690         PR driver/55884
691         * testsuite/libgomp.fortran/fortran.exp: Use
692         -fintrinsic-modules-path= instead of
693         -fintrinsic-modules-path.
695 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
697         Update copyright years.
699 2012-12-19  Tobias Burnus  <burnus@net-b.de>
701         * testsuite/libgomp.fortran/fortran.exp: Set
702         -fintrinsic-modules-path.
704 2012-12-19  Tobias Burnus  <burnus@net-b.de>
706         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
707         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
709 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
711         PR libgomp/55411
712         * team.c (gomp_free_thread): Decrease gomp_managed_threads
713         if pool had any threads_used.
715 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
717         * testsuite/libgomp.c++/pr24455.C: Use
718         -Wl,-undefined,dynamic_lookup on darwin.
720 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
722         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
724 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
726         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
728 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
729             Jim MacArthur  <jim.macarthur@arm.com>
730             Marcus Shawcroft  <marcus.shawcroft@arm.com>
731             Nigel Stephens  <nigel.stephens@arm.com>
732             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
733             Richard Earnshaw  <rearnsha@arm.com>
734             Sofiane Naci  <sofiane.naci@arm.com>
735             Stephen Thomas  <stephen.thomas@arm.com>
736             Tejas Belagod  <tejas.belagod@arm.com>
737             Yufeng Zhang  <yufeng.zhang@arm.com>
739         * configure.tgt: Add AArch64.
741 2012-10-04  Jason Merrill  <jason@redhat.com>
743         * testsuite/libgomp.c++/tls-init1.C: New.
745 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
747         * configure: Regenerated.
749 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
751         * config/linux/mips/futex.h (sys_futex0): Change to static
752         function with noinline, nomips16 attributes under MIPS16. Adjust
753         asm statement to place 'li v0,SYS_futex' immediately before
754         syscall insn.
756 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
758         * libgomp.texi (Library Index): Renamed from "Index" to prevent
759         conflict with index.html on case-insensitive file systems.
761 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
763         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
764         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
766 2012-07-02  Richard Guenther  <rguenther@suse.de>
767             Michael Matz  <matz@suse.de>
768             Tobias Grosser <tobias@grosser.es>
769             Sebastian Pop <sebpop@gmail.com>
771         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
772         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
773         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
774         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
776 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
778         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
780 2012-06-22  Richard Guenther  <rguenther@suse.de>
782         Merge from graphite branch
783         2012-01-13  Tobias Grosser  <tobias@grosser.es>
785         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
786         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
788 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
790         PR middle-end/53580
791         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
792         use GOMP_barrier () call instead.
793         * testsuite/libgomp.c/pr26943-3.c: Likewise.
794         * testsuite/libgomp.c/pr26943-4.c: Likewise.
795         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
796         call GOMP_barrier instead.
797         * testsuite/libgomp.fortran/vla5.f90: Likewise.
799 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
801         PR libgomp/52993
802         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
803         argument to memset call.
805 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
807         * configure: Regenerated.
809 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
811         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
813 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
815         PR bootstrap/52812
816         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
818 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
820         PR middle-end/52547
821         * testsuite/libgomp.c/pr52547.c: New test.
823 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
825         * testsuite/lib/libgomp.exp: load fortran-modules.exp
827 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
829         * configure.tgt (mips-sgi-irix6*): Remove.
831 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
833         * configure.tgt (alpha*-dec-osf*): Remove.
835         * config/osf/sem.h: Remove.
836         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
838 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
840         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
842 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
844         PR libstdc++/52188
845         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
846         Remove ENABLE_SYMVERS_SOL2.
847         * configure: Regenerate.
848         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
849         (PREPROCESS): New variable.
850         (libgomp.ver): New target.
851         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
852         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
853         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
854         Use libgomp.ver.
855         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
856         * Makefile.in: Regenerate.
858 2012-02-14  Walter Lee  <walt@tilera.com>
860         * configure.tgt: Handle tilegx and tilepro.
861         * config/linux/tile/futex.h: New file.
863 2012-02-08  Richard Guenther  <rguenther@suse.de>
865         PR tree-optimization/46886
866         * testsuite/libgomp.c/pr46886.c: New testcase.
868 2012-01-25  Matthias Klose  <doko@ubuntu.com>
870         * config/linux/arm: Remove empty directory.
871         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
873 2011-12-09  Alan Modra  <amodra@gmail.com>
875         PR libgomp/51376
876         * task.c (GOMP_taskwait): Don't access task->children outside of
877         task_lock mutex region.
878         (GOMP_task): Likewise.
880 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
882         PR libgomp/51132
883         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
884         to file scope.
885         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
886         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
887         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
888         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
889         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
891 2011-12-02  Alan Modra  <amodra@gmail.com>
893         * config/linux/affinity.c: Use atomic rather than sync builtin.
894         * config/linux/lock.c: Likewise.
895         * config/linux/ptrlock.h: Likewise.
896         * config/linux/ptrlock.c: Likewise.
897         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
898         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
899         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
900         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
901         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
902         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
903         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
904         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
905         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
906         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
908 2011-11-30  Alan Modra  <amodra@gmail.com>
910         PR libgomp/51298
911         * config/linux/bar.h: Use atomic rather than sync builtins.
912         * config/linux/bar.c: Likewise.  Add missing acquire
913         synchronisation on generation field.
914         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
915         double unlock.
917 2011-11-30  Alan Modra  <amodra@gmail.com>
919         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
920         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
921         * config/linux/mutex.h: Use atomic rather than sync builtins.
922         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
923         * config/linux/omp-lock.h: Comment fix.
924         * config/linux/arm/mutex.h: Delete.
925         * config/linux/powerpc/mutex.h: Delete.
926         * config/linux/ia64/mutex.h: Delete.
927         * config/linux/mips/mutex.h: Delete.
929 2011-11-30  Alan Modra  <amodra@gmail.com>
931         PR libgomp/51249
932         * config/linux/sem.h: Rewrite.
933         * config/linux/sem.c: Rewrite.
935 2011-11-28  Richard Henderson  <rth@redhat.com>
937         * libgomp.h (enum memmodel): New.
939 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
941         * configure: Regenerate.
943 2011-10-10  Matthias Klose  <doko@ubuntu.com>
945         * config/posix95: Remove empty directory.
947 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
949         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
951 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
953         PR fortran/49792
954         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
955         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
957 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
959         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
961 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
963         PR libgomp/49965
964         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
966 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
968         * config/linux/proc.h: New.
969         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
970         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
971         (gomp_init_num_threads): Update call to cpuset_popcount.
972         (get_num_procs): Ditto.
973         * config/linux/affinity.c (gomp_init_affinity): Call
974         gomp_cpuset_popcount.
976 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
978         PR fortran/42041
979         PR fortran/46752
980         * omp.h.in (omp_in_final): New prototype.
981         * omp_lib.f90.in (omp_in_final): New interface.
982         (omp_integer_kind, omp_logical_kind): Remove
983         and replace all its uses in the module with 4.
984         (openmp_version): Change to 201107.
985         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
986         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
987         kind for the parameters.
988         (omp_in_final): New external.
989         (openmp_version): Change to 201107.
990         * task.c (omp_in_final): New function.
991         (gomp_init_task): Initialize final_task.
992         (GOMP_task): Remove unused attribute from flags.  Handle final
993         tasks.
994         (GOMP_taskyield): New function.
995         (omp_in_final): Return true if if (false) or final (true) task
996         or descendant of final (true).
997         * fortran.c (omp_in_final_): New function.
998         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
999         (GOMP_3.0): Export GOMP_taskyield.
1000         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1001         variables.
1002         (parse_unsigned_long_list): New function.
1003         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
1004         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
1005         even if parse_affinity returned false.
1006         * config/linux/affinity.c (gomp_init_affinity): Handle
1007         gomp_cpu_affinity_len == 0.
1008         * libgomp_g.h (GOMP_taskyield): New prototype.
1009         * libgomp.h (struct gomp_task): Add final_task field.
1010         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1011         * team.c (gomp_team_start): Override new task's nthreads_var icv
1012         if list form OMP_NUM_THREADS has been used and it has value for
1013         the new nesting level.
1015         * testsuite/libgomp.c/atomic-11.c: New test.
1016         * testsuite/libgomp.c/atomic-12.c: New test.
1017         * testsuite/libgomp.c/atomic-13.c: New test.
1018         * testsuite/libgomp.c/atomic-14.c: New test.
1019         * testsuite/libgomp.c/reduction-6.c: New test.
1020         * testsuite/libgomp.c/task-5.c: New test.
1021         * testsuite/libgomp.c++/atomic-2.C: New test.
1022         * testsuite/libgomp.c++/atomic-3.C: New test.
1023         * testsuite/libgomp.c++/atomic-4.C: New test.
1024         * testsuite/libgomp.c++/atomic-5.C: New test.
1025         * testsuite/libgomp.c++/atomic-6.C: New test.
1026         * testsuite/libgomp.c++/atomic-7.C: New test.
1027         * testsuite/libgomp.c++/atomic-8.C: New test.
1028         * testsuite/libgomp.c++/atomic-9.C: New test.
1029         * testsuite/libgomp.c++/task-8.C: New test.
1030         * testsuite/libgomp.c++/reduction-4.C: New test.
1031         * testsuite/libgomp.fortran/allocatable7.f90: New test.
1032         * testsuite/libgomp.fortran/allocatable8.f90: New test.
1033         * testsuite/libgomp.fortran/crayptr3.f90: New test.
1034         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1035         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1036         * testsuite/libgomp.fortran/pointer1.f90: New test.
1037         * testsuite/libgomp.fortran/pointer2.f90: New test.
1038         * testsuite/libgomp.fortran/task4.f90: New test.
1040 2011-08-02  Tobias Burnus  <burnus@net-b.de>
1042         * libgomp.texi: Update OpenMP spec references to 3.1.
1043         (omp_in_final,OMP_PROC_BIND): New sections.
1044         (OMP_NUM_THREADS): Document that the value can be now a list.
1045         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1047 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1049         * config/linux/x86/futex.h: Check __x86_64__ instead of
1050         __LP64__.
1052 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1054         PR middle-end/49897
1055         PR middle-end/49898
1056         * testsuite/libgomp.c/pr49897-1.c: New test.
1057         * testsuite/libgomp.c/pr49897-2.c: New test.
1058         * testsuite/libgomp.c/pr49898-1.c: New test.
1059         * testsuite/libgomp.c/pr49898-2.c: New test.
1061 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1063         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1064         for ia32 instead of ilp32.
1066         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1067         * testsuite/libgomp.c/atomic-6.c: Likewise.
1069 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
1071         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1072         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1074 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1076         PR libgomp/45351
1077         * config/osf/sem.h: New file.
1078         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1080 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1082         PR target/49541
1083         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1084         ldflags.
1086 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
1088         * config/linux/wait.h (do_spin): New inline, largely copied
1089         from do_wait, just don't do futex_wait here, instead return true if
1090         it should be done.
1091         (do_wait): Implement using do_spin.
1092         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1093         to prototype.
1094         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1095         __sync_bool_compare_and_swap, pass the oldval to
1096         gomp_mutex_lock_slow.
1097         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1098         If all mutex contenders are just spinning and not sleeping, don't
1099         change state to 2 unnecessarily.  Optimize the loop when state has
1100         already become 2 to use just one atomic operation per loop instead
1101         of two.
1102         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1103         to prototype.
1104         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1105         __sync_bool_compare_and_swap, pass the oldval to
1106         gomp_mutex_lock_slow.
1108 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1110         PR libgomp/49490
1111         * iter.c (gomp_iter_static_next): For chunk size 0
1112         only use n ceil/ nthreads size for the first
1113         n % nthreads threads in the team instead of
1114         all threads except for the last few ones which
1115         get less work or none at all.
1116         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1117         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1118         chunk argument, set run_sched_modifier to 0 for static
1119         resp. 1 for other kinds.  If chunk argument is 0
1120         and not static, set value to 1.
1122 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
1124         PR c++/49043
1125         * testsuite/libgomp.c++/pr49043.C: New test.
1127         PR c++/48869
1128         * testsuite/libgomp.c++/pr48869.C: New test.
1130 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1132         PR fortran/48894
1133         * fortran.c: Include limits.h.
1134         (TO_INT): Define.
1135         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1136         *set.
1137         (omp_set_num_threads_8_, omp_set_schedule_8_,
1138         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1139         omp_get_team_size_8_): Use TO_INT macro.
1140         * testsuite/libgomp.fortran/pr48894.f90: New test.
1142 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1144         PR middle-end/48591
1145         * testsuite/libgomp.c/pr48591.c: New test.
1147 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1149         PR bootstrap/48135
1150         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1151         * configure: Regenerate.
1153 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1155         PR fortran/47886
1156         * testsuite/libgomp.fortran/task3.f90: New test.
1158 2011-02-24  Tobias Burnus  <burnus@net-b.de>
1160         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1162 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
1164         PR libgomp/47854
1165         * libgomp.texi (omp_get_wtime): Don't say time in the past
1166         must be Unix Epoch.
1168 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1170         PR libgomp/47804
1171         * testsuite/libgomp.fortran/fortran.exp: Check for both
1172         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
1173         but $blddir != "", still append ${blddir}/${lang_library_path}
1174         to ld_library_path.
1176 2011-02-16  Tobias Burnus  <burnus@net-b.de>
1178         PR libgomp/47758
1179         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1180         of libquadmath.a before adding its libpath to ldflags.
1182 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1184         PR libgomp/47731
1185         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1186         to FUTEX_WAIT futex syscall.
1187         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1189 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1191         * configure: Regenerate.
1193 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1195         PR libstdc++/36104
1196         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1198 2011-01-16  Gerald Pfeifer
1200         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1202 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1204         PR fortran/46874
1205         * libgomp.fortran/allocatable6.f90: New test.
1207 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1209         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1210         * configure: Regenerate.
1212 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1214         PR target/40125
1215         PR lto/46695
1216         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1217         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1218         * aclocal.m4: Regenerate.
1219         * configure: Regenerate.
1220         * Makefile.in: Regenerate.
1221         * testsuite/Makefile.in: Regenerate.
1223 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
1225         PR fortran/46753
1226         * libgomp.fortran/pr46753.f90: New test.
1228         PR libgomp/43706
1229         * env.c (initialize_env): Default to spin count 300000
1230         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1231         is specified.
1233         PR libgomp/45240
1234         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1235         at the end if sync builtins aren't supported.
1237 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1239         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1241 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1243         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1245 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
1247         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1249 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1250             Tobias Burnus  <burnus@net-b.de>
1252         PR fortran/32049
1253         * configure.ac:
1254         * configure: Regenerate.
1256 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1258         * config/linux/futex.h: New.
1259         * config/linux/arm/mutex.h: New.
1260         * configure.tgt (arm*-*-linux*): Add config path.
1262 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1264         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1266 2010-09-23  Tobias Burnus  <burnus@net-b.de>
1268         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1269         Change Fortran datatype to LOGICAL.
1270         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1271         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1273 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1275         * configure: Regenerate.
1277 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
1279         * libgomp.texi: Add function keyword to a couple of Fortran
1280         interfaces, use integer instead of int for Fortran.
1282 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
1284         * libgomp.texi: Fix spelling and pasto problems throughout.
1285         Adjust prototypes to match code.
1287 2010-07-24  Tobias Burnus  <burnus@net-b.de>
1289         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1290         silence -fwhole-file warning.
1292 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1294         * configure.tgt (*-*-solaris2.[56]*): Removed.
1296 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1298         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1299         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1300         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1301         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1302         targetting solaris2*.
1303         * configure: Regenerate.
1304         * config.h.in: Regenerate.
1306         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1307         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1308         Add libgomp_version_dep.
1309         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1310         versioning.
1311         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1312         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1313         * Makefile.in: Regenerate.
1315         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1316         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1317         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1318         to common block, protected by
1319         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1321 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1323         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
1325 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
1327         PR bootstrap/43170
1328         * configure: Regenerate.
1330 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1332         PR other/43620
1333         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1334         * configure: Regenerate.
1335         * Makefile.in: Regenerate.
1336         * testsuite/Makefile.in: Regenerate.
1338 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1340         PR c/43893
1341         * testsuite/libgomp.c/pr43893.c: New test.
1342         * testsuite/libgomp.c++/pr43893.C: New test.
1344 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1346         PR middle-end/43570
1347         * testsuite/libgomp.fortran/vla8.f90: New test.
1349 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1351         PR libgomp/43706
1352         * config/linux/affinity.c (gomp_init_affinity): Decrease
1353         gomp_available_cpus if affinity mask confines the process to fewer
1354         CPUs.
1355         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1356         non-NULL, just return gomp_available_cpus.
1358         PR libgomp/43569
1359         * sections.c (gomp_sections_init): Initialize ws->mode.
1361 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1363         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1364         not unused bar variable.
1365         * configure: Regenerate.
1367 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1369         * Makefile.in: Regenerate.
1370         * aclocal.m4: Regenerate.
1371         * testsuite/Makefile.in: Regenerate.
1373 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
1375         PR libgomp/42942
1376         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1377         (initialize_env): Adjust callers.
1378         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1379         when the argument is 0.
1381         * testsuite/libgomp.c/pr42942.c: New test.
1383 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
1385         PR middle-end/42644
1386         PR middle-end/42130
1387         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1388         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1390 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1392         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1393         * testsuite/libgomp.c++/task-6.C: Likewise.
1395 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
1397         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1399 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
1401         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1402         * configure: Regenerate.
1404 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
1406         PR fortran/42866
1407         * testsuite/libgomp.fortran/allocatable5.f90: New test.
1409 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1411         * configure.ac: Test for executability of GFORTRAN.
1412         * configure: Regenerate.
1414 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1416         * configure: Regenerate.
1418 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1420         PR libgomp/42602
1421         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1423 2010-01-03  Richard Guenther  <rguenther@suse.de>
1425         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1427 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
1429         * testsuite/libgomp.graphite/pr4118.c: New.
1431 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1433         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1434         for darwin, protect the test with require-effective-target tls_runtime.
1435         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1437 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1439         PR target/41605
1440         * testsuite/lib/libgomp.exp: Provide -B options to allow for
1441         link spec %s substitutions for static libraries.
1443 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
1445         PR testsuite/42135
1446         * libgomp.graphite/force-parallel-2.c: Reduce array size.
1448 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1450         * Makefile.in: Regenerate.
1451         * configure: Regenerate.
1452         * testsuite/Makefile.in: Regenerate.
1454 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1456         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1457         settings for LC_ALL and LANG.
1459 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1461         PR fortran/42162
1462         * testsuite/libgomp.fortran/pr42162.f90: New test.
1464 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1466         PR middle-end/42029
1467         * testsuite/libgomp.c/pr42029.c: New test.
1469 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1471         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1472         *s.  Accept ld version without text in ()s.
1473         * configure: Regenerated.
1475 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1477         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1479 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1481         PR libgomp/41418
1482         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1483         or a hyphen (happens with fortran language disabled).
1484         * configure: Regenerate.
1486 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1488         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1489         use sed script portable to Solaris /bin/sed for extracting ld
1490         version.
1491         * configure: Regenerate.
1493 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1495         * testsuite/libgomp.graphite/bounds.c: New test.
1497 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1499         * Makefile.am (libgomp_la_LINK): New.
1500         * Makefile.in: Regenerate.
1502 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1504         * configure.ac (AC_PREREQ): Bump to 2.64.
1506 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1508         * Makefile.am (install-html, install-pdf): Remove.
1509         * Makefile.in: Regenerate.
1511         * Makefile.in: Regenerate.
1512         * aclocal.m4: Regenerate.
1513         * config.h.in: Regenerate.
1514         * configure: Regenerate.
1515         * testsuite/Makefile.in: Regenerate.
1517 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1519         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1520         * Makefile.in: Regenerate.
1522 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1524         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1525         * Makefile.in: Regenerate.
1527 2009-08-19  Tobias Burnus  <burnus@net-b.de>
1529         PR fortran/41102
1530         omp_lib.h.in: Fix -std=f95 errors.
1533 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
1535         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1536         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1537         * testsuite/libgomp.graphite/graphite.exp: New.
1539 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
1541         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1542         only build.
1544 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1546         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1547         needed memory barrier semantics.
1548         * config/linux/mips/mutex.h: New file.
1550 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1552         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1554 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
1556         * configure: Regenerate.
1558 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
1560         PR testsuite/40699
1561         PR testsuite/40707
1562         PR testsuite/40709
1563         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1564         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1565         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1567 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1569         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1570         options when choosing a multilib.
1572 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
1574         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1575         ld_library_path.  Use add_path.  Add just find_libgcc_s to
1576         ld_library_path, not every libgcc multilib directory.
1577         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1578         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1579         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1580         Use add_path.
1581         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1583 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
1585         * Makefile.am (LTLDFLAGS): Define.
1586         (LINK): Define.
1587         * Makefile.in: Regenerate.
1589 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1591         PR fortran/39718
1592         * testsuite/libgomp.fortran/fortran.exp: Don't link with
1593         libgfortranbegin, check existence of libgfortran.a instead of
1594         libgfortranbegin.a.
1596 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
1598         PR libgomp/40174
1599         * team.c (gomp_thread_start): Destroy thr->release semaphore.
1600         (gomp_free_pool_helper): Likewise.
1602 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
1603             Jakub Jelinek  <jakub@redhat.com>
1605         PR fortran/35423
1606         * testsuite/libgomp.fortran/workshare2.f90: New test.
1608 2009-04-09  Nick Clifton  <nickc@redhat.com>
1610         * iter.c: Change copyright header to refer to version 3 of the
1611         GNU General Public License with version 3.1 of the GCC Runtime
1612         Library Exception and to point readers at the COPYING3 and
1613         COPYING3.RUNTIME files and the FSF's license web page.
1614         * alloc.c: Likewise.
1615         * barrier.c: Likewise.
1616         * config/bsd/proc.c: Likewise.
1617         * config/linux/affinity.c: Likewise.
1618         * config/linux/alpha/futex.h: Likewise.
1619         * config/linux/bar.c: Likewise.
1620         * config/linux/bar.h: Likewise.
1621         * config/linux/ia64/futex.h: Likewise.
1622         * config/linux/ia64/mutex.h: Likewise.
1623         * config/linux/lock.c: Likewise.
1624         * config/linux/mips/futex.h: Likewise.
1625         * config/linux/mutex.c: Likewise.
1626         * config/linux/mutex.h: Likewise.
1627         * config/linux/powerpc/futex.h: Likewise.
1628         * config/linux/proc.c: Likewise.
1629         * config/linux/ptrlock.c: Likewise.
1630         * config/linux/ptrlock.h: Likewise.
1631         * config/linux/s390/futex.h: Likewise.
1632         * config/linux/sem.c: Likewise.
1633         * config/linux/sem.h: Likewise.
1634         * config/linux/sparc/futex.h: Likewise.
1635         * config/linux/wait.h: Likewise.
1636         * config/linux/x86/futex.h: Likewise.
1637         * config/mingw32/proc.c: Likewise.
1638         * config/mingw32/time.c: Likewise.
1639         * config/posix/affinity.c: Likewise.
1640         * config/posix/bar.c: Likewise.
1641         * config/posix/bar.h: Likewise.
1642         * config/posix/lock.c: Likewise.
1643         * config/posix/mutex.h: Likewise.
1644         * config/posix/proc.c: Likewise.
1645         * config/posix/ptrlock.h: Likewise.
1646         * config/posix/sem.c: Likewise.
1647         * config/posix/sem.h: Likewise.
1648         * config/posix/time.c: Likewise.
1649         * config/posix95/lock.c: Likewise.
1650         * critical.c: Likewise.
1651         * env.c: Likewise.
1652         * error.c: Likewise.
1653         * fortran.c: Likewise.
1654         * iter_ull.c: Likewise.
1655         * libgomp.h: Likewise.
1656         * libgomp_f.h.in: Likewise.
1657         * libgomp_g.h: Likewise.
1658         * loop.c: Likewise.
1659         * loop_ull.c: Likewise.
1660         * omp.h.in: Likewise.
1661         * omp_lib.f90.in: Likewise.
1662         * omp_lib.h.in: Likewise.
1663         * ordered.c: Likewise.
1664         * parallel.c: Likewise.
1665         * sections.c: Likewise.
1666         * single.c: Likewise.
1667         * task.c: Likewise.
1668         * team.c: Likewise.
1669         * work.c: Likewise.
1671 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1673         * testsuite/config/default.exp: Change copyright header to refer to
1674         version 3 of the GNU General Public License and to point readers
1675         at the COPYING3 file and the FSF's license web page.
1677 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1679         PR middle-end/39573
1680         * libgomp.c++/pr39573.C: New test.
1682 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1684         PR other/39591
1685         * testsuite/libgomp.c/pr39591-1.c: New test.
1686         * testsuite/libgomp.c/pr39591-2.c: New test.
1687         * testsuite/libgomp.c/pr39591-3.c: New test.
1689 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1691         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1692         * testsuite/libgomp.c/atomic-6.c: Ditto.
1694 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1696         PR c/39495
1697         * testsuite/libgomp.c/loop-12.c: New test.
1698         * testsuite/libgomp.c/loop-11.c: New test.
1699         * testsuite/libgomp.c++/loop-11.C: New test.
1700         * testsuite/libgomp.c++/loop-12.C: New test.
1701         * testsuite/libgomp.c++/for-8.C: New test.
1703 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1705         * configure: Regenerate.
1707 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1709         PR middle-end/39154
1710         * testsuite/libgomp.c/pr39154.c: New test.
1712 2009-01-30  Ian Lance Taylor  <iant@google.com>
1714         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1715         libgomp_ld_is_gold.  Get gold version number.
1716         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1717         * configure: Rebuild.
1719 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1721         * testsuite/lib/libgomp.exp: Add -B option for targets that
1722         use libgfortran.a%s in their specs.
1724 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1726         PR libgomp/38086
1727         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1728         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1729         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1730         * configure: Regenerated.
1731         * config.h.in: Likewise.
1733 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1735         PR c++/38650
1736         * testsuite/libgomp.c/pr38650.c: New test.
1737         * testsuite/libgomp.c++/pr38650.C: New test.
1739 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1741         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1743 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1745         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1747 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1749         * configure: Regenerate.
1751 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1753         PR middle-end/36802
1754         * testsuite/libgomp.c/pr36802-1.c: New test.
1755         * testsuite/libgomp.c/pr36802-2.c: New test.
1756         * testsuite/libgomp.c/pr36802-3.c: New test.
1758 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1760         PR libgomp/38270
1761         * config/linux/powerpc/mutex.h: New.
1763 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1765         PR c++/38257
1766         * testsuite/libgomp.c++/for-7.C: New test.
1768         PR c++/38348
1769         * testsuite/libgomp.c++/for-6.C: New test.
1771 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1773         PR testsuite/28870
1774         * testsuite/lib/libgomp.exp: Include new timeout library files.
1775         (libgomp_target_compile): Set timeout value from new proc.
1777 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1779         PR libgomp/37938
1780         * config/linux/ia64/mutex.h: New.
1782 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1784         PR libgomp/37935
1785         * libgomp.texi (Runtime library routines, environment variables):
1786         Update for OpenMP version 3.0.
1788 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1789             Steve Ellcey  <sje@cup.hp.com>
1791         * configure: Regenerate for new libtool.
1792         * Makefile.in: Ditto.
1793         * testsuite/Makefile.in: Ditto.
1795 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1796             Andreas Tobler  <a.tobler@schweiz.org>
1798         * config/bsd/proc.c: New file.
1799         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1800         * configure.ac: Check for header <sys/sysctl.h>
1801         * configure: Regenerate.
1802         * config.h.in: Likewise.
1804 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1806         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1808 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1810         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1811         * Makefile.in: Regenerated.
1812         * testsuite/Makefile.in: Regenerated.
1814 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1816         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1817         depend on blddir if blddir exists.
1818         (libgomp_target_compile): Likewise.
1819         * testsuite/libgomp.c++/c++.exp: Likewise.
1820         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1822 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1824         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1825         Do not list GPL as Invariant Section.
1827 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1828             Chao-ying Fu  <fu@mips.com>
1830         * configure.tgt: Enable futex for MIPS.
1831         * config/linux/mips/futex.h: New file.
1833 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1835         * team.c (gomp_team_end): Free team immediately if it has
1836         just one thread.
1838 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1840         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1841         * testsuite/libgomp.fortran/fortran.exp: Same.
1842         * testsuite/libgomp.c/c.exp: Same.
1843         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1844         directory to library path first.
1846 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1848         * env.c (parse_stacksize): Add cast to avoid warning.
1849         (parse_spincount): Likewise.
1851 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1853         * testsuite/libgomp.c/loop-10.c: New test.
1854         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1855         * libgomp.c++/loop-6.C (main): Likewise.
1857         PR debug/36617
1858         * testsuite/libgomp.c/debug-1.c: New test.
1860 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1862         * testsuite/libgomp.c/nqueens-1.c: New test.
1864         PR c++/36523
1865         * testsuite/libgomp.c++/task-7.C: New function.
1867 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1869         * configure: Regenerate.
1871 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1873         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1874         mutex when HAVE_SYNC_BUILTINS isn't defined.
1876 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1878         * libgomp.texi (omp_test_lock): Fix typo.
1880 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1882         * omp_lib.f90.in: Add "implicit none".
1884 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1886         PR middle-end/36506
1887         * testsuite/libgomp.c/reduction-5.c: New test.
1889 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1891         * libgomp.h (struct gomp_task): Add in_tied_task field.
1892         * task.c (gomp_init_task): Initialize it.
1893         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1894         unconditionally.  Don't call gomp_team_barrier_wake if
1895         current task is implicit or if(0) from implicit and number of
1896         running tasks is equal to nthreads - 1.
1898         PR libgomp/36471
1899         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1900         omp_get_team_size_8): Fix pastos.
1902         PR libgomp/36469
1903         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1904         * configure: Regenerated.
1905         * config.h.in: Regenerated.
1906         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1907         defined.
1909 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1911         PR bootstrap/36452
1912         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1913         (GOMP_loop_ull_dynamic_start): Likewise.
1914         (GOMP_loop_ull_guided_start): Likewise.
1915         (GOMP_loop_ull_ordered_static_start): Likewise.
1916         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1917         (GOMP_loop_ull_ordered_guided_start): Likewise.
1919 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1920             Richard Henderson  <rth@redhat.com>
1921             Ulrich Drepper  <drepper@redhat.com>
1922             Jakob Blomer  <jakob.blomer@ira.uka.de>
1924         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1925         Substitute also OMP_*LOCK_25*.
1926         * configure: Regenerated.
1927         * config.h.in: Regenerated.
1928         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1929         ptrlock.c and task.c.
1930         * Makefile.in: Regenerated.
1931         * testsuite/Makefile.in: Regenerated.
1932         * task.c: New file.
1933         * loop_ull.c: New file.
1934         * iter_ull.c: New file.
1935         * libgomp.h: Include ptrlock.h.
1936         (enum gomp_task_kind): New type.
1937         (struct gomp_team): Add task_lock, task_queue, task_count,
1938         task_running_count, single_count fields.  Add
1939         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1940         Remove work_share_lock, generation_mask,
1941         oldest_live_gen, num_live_gen and init_work_shares fields, add
1942         work work_share_list_alloc, work_share_list_free and work_share_chunk
1943         fields.  Change work_shares from pointer to pointers into an array.
1944         Change ordered_release field into gomp_sem_t ** from flexible array
1945         member.  Add implicit_task and initial_work_shares fields.
1946         Move close to the end of the struct.
1947         (struct gomp_team_state): Add single_count, last_work_share,
1948         active_level and level fields, remove work_share_generation.
1949         (gomp_barrier_handle_tasks): New prototype.
1950         (gomp_finish_task): New inline function.
1951         (struct gomp_work_share): Move chunk_size, end, incr into
1952         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1953         next_ll fields.  Reshuffle fields.  Add next_alloc,
1954         next_ws, next_free and inline_ordered_team_ids fields, change
1955         ordered_team_ids into pointer from flexible array member.
1956         Add mode field.  Put lock and next into a different cache line
1957         from most of the write-once fields.
1958         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1959         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1960         gomp_iter_ull_guided_next): New prototypes.
1961         (gomp_new_icv): New prototype.
1962         (struct gomp_thread): Add thread_pool and task fields.
1963         (struct gomp_thread_pool): New type.
1964         (gomp_new_team): New prototype.
1965         (gomp_team_start): Change type of last argument.
1966         (gomp_new_work_share): Removed.
1967         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1968         (gomp_work_share_init_done): New static inline.
1969         (gomp_throttled_spin_count_var, gomp_available_cpus,
1970         gomp_managed_threads): New extern decls.
1971         (gomp_init_task): New prototype.
1972         (gomp_spin_count_var): New extern var decl.
1973         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1974         or no alias support, or if not PIC.
1975         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1976         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1977         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1978         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1979         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1980         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1981         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1982         gomp_test_nest_lock_25): New prototypes.
1983         (omp_lock_symver, strong_alias): Define.
1984         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1985         decls.
1986         (gomp_end_task): New.
1987         (struct gomp_task_icv, gomp_global_icv): New.
1988         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1989         (struct gomp_task): New.
1990         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1991         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1992         (gomp_icv): New.
1993         (gomp_schedule_type): Reorder enum to match
1994         omp_sched_t.
1995         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1996         fields.
1997         (gomp_thread_start): Add gomp_team_barrier_wait call.
1998         For non-nested case remove clearing of docked thread thr fields.
1999         Use pool fields instead of global gomp_* variables.  Use
2000         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
2001         Create tasks for each member thread.
2002         (free_team): Only destroy team barrier, task_lock here and free it.
2003         (gomp_free_thread): Free last_team if non-NULL.
2004         (gomp_team_end): Call gomp_team_barrier_wait instead of
2005         gomp_barrier_wait.  For nested case call one extra
2006         gomp_barrier_wait.  Move here some destruction from free_team.
2007         Call free_team on pool->last_team if any, rather than freeing
2008         current team.  Destroy work_share_list_free_lock ifndef
2009         HAVE_SYNC_BUILTINS.
2010         (gomp_new_icv): New function.
2011         (gomp_threads, gomp_threads_size, gomp_threads_used,
2012         gomp_threads_dock): Removed.
2013         (gomp_thread_destructor): New variable.
2014         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2015         functions.
2016         (gomp_team_start): Create new pool if current thread doesn't have
2017         one.  Use pool fields instead of global gomp_* variables.
2018         Initialize thread_pool field for new threads.  Clear single_count.
2019         Change last argument from ws to team, don't create
2020         new team, set ts.work_share to &team->work_shares[0] and clear
2021         ts.last_work_share.  Don't clear ts.work_share_generation.
2022         If number of threads changed, adjust atomically gomp_managed_threads.
2023         Use gomp_init_task instead of gomp_new_task,
2024         set thr->task to the corresponding implicit_task array entry.
2025         Create tasks for each member thread.  Initialize ts.level.
2026         (initialize_team): Call pthread_key_create on
2027         gomp_thread_destructor.
2028         (team_destructor): New function.
2029         (new_team): Removed.
2030         (gomp_new_team): New function.
2031         (free_team): Free gomp_work_share blocks chained through next_alloc,
2032         instead of freeing work_shares and destroying work_share_lock.
2033         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
2034         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
2035         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2036         of gomp_barrier_wait.
2037         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2038         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
2039         if gomp_work_share_start returned true.  Don't unlock ws->lock.
2040         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2041         of gomp_barrier_wait.
2042         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
2043         gomp_work_share_init_done if gomp_work_share_start returned true.
2044         Don't unlock ws->lock.
2045         * work.c: Include stddef.h.
2046         (free_work_share): Use work_share_list_free_lock instead
2047         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
2048         Call gomp_fini_work_share and then either free ws if orphaned, or
2049         put it into work_share_list_free list of the current team.
2050         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2051         functions.
2052         (gomp_work_share_start, gomp_work_share_end,
2053         gomp_work_share_end_nowait): Rewritten.
2054         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2055         (openmp_version): Set to 200805.
2056         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2057         omp_sched_guided, omp_sched_auto): New parameters.
2058         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2059         omp_set_max_active_levels, omp_get_max_active_levels,
2060         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2061         omp_get_active_level): New interfaces.
2062         * omp_lib.h.in (openmp_version): Set to 200805.
2063         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2064         omp_sched_guided, omp_sched_auto): New parameters.
2065         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2066         omp_set_max_active_levels, omp_get_max_active_levels,
2067         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2068         omp_get_active_level): New externals.
2069         * loop.c: Include limits.h.
2070         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2071         GFS_AUTO.
2072         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2073         Likewise.  Use gomp_icv.
2074         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2075         ts.static_trip here.
2076         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2077         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
2078         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2079         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
2080         don't unlock ws->lock, otherwise lock it.
2081         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2082         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
2083         (gomp_parallel_loop_start): Call gomp_new_team instead of
2084         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
2085         Adjust gomp_team_start caller.  Pass 0 as second argument to
2086         gomp_resolve_num_threads.
2087         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2088         If adding ws->chunk_size nthreads + 1 times after end won't
2089         overflow, set ws->mode to 1.
2090         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2091         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2092         GOMP_loop_ull_ordered_static_start,
2093         GOMP_loop_ull_ordered_dynamic_start,
2094         GOMP_loop_ull_ordered_guided_start,
2095         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2096         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2097         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2098         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2099         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2100         prototypes.
2101         * libgomp.map: Export lock routines also @@OMP_2.0.
2102         (GOMP_loop_ordered_dynamic_first,
2103         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2104         GOMP_loop_ordered_static_first): Remove.
2105         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2106         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2107         GOMP_loop_ull_ordered_dynamic_next,
2108         GOMP_loop_ull_ordered_dynamic_start,
2109         GOMP_loop_ull_ordered_guided_next,
2110         GOMP_loop_ull_ordered_guided_start,
2111         GOMP_loop_ull_ordered_runtime_next,
2112         GOMP_loop_ull_ordered_runtime_start,
2113         GOMP_loop_ull_ordered_static_next,
2114         GOMP_loop_ull_ordered_static_start,
2115         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2116         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2117         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2118         (omp_set_schedule, omp_get_schedule,
2119         omp_get_thread_limit, omp_set_max_active_levels,
2120         omp_get_max_active_levels, omp_get_level,
2121         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2122         omp_set_schedule_, omp_set_schedule_8_,
2123         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2124         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2125         omp_get_max_active_levels_, omp_get_level_,
2126         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2127         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2128         New exports @@OMP_3.0.
2129         * omp.h.in (omp_sched_t): New type.
2130         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2131         omp_set_max_active_levels, omp_get_max_active_levels,
2132         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2133         omp_get_active_level): New prototypes.
2134         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2135         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2136         gomp_thread_limit_var, gomp_remaining_threads_count,
2137         gomp_remaining_threads_lock): New variables.
2138         (parse_spincount): New function.
2139         (initialize_env): Call gomp_init_num_threads unconditionally.
2140         Initialize gomp_available_cpus.  Call parse_spincount,
2141         initialize gomp_{,throttled_}spin_count_var
2142         depending on presence and value of OMP_WAIT_POLICY and
2143         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
2144         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2145         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
2146         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
2147         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
2148         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2149         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2150         (gomp_global_icv): New.
2151         (parse_schedule): Use it.  Parse "auto".
2152         (omp_set_num_threads): Use gomp_icv.
2153         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2154         Likewise.
2155         (omp_get_max_threads): Move from parallel.c.
2156         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2157         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2158         add ialias.
2159         (parse_stacksize, parse_wait_policy): New functions.
2160         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2161         both wrappers for compatibility and new locks.
2162         (omp_set_schedule, omp_get_schedule,
2163         omp_get_thread_limit, omp_set_max_active_levels,
2164         omp_get_max_active_levels, omp_get_level,
2165         omp_get_ancestor_thread_num, omp_get_team_size,
2166         omp_get_active_level): New ialias_redirect.
2167         (omp_set_schedule_, omp_set_schedule_8_,
2168         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2169         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2170         omp_get_max_active_levels_, omp_get_level_,
2171         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2172         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2173         New functions.
2174         * parallel.c: Include limits.h.
2175         (gomp_resolve_num_threads): Add count argument.  Rewritten.
2176         (GOMP_parallel_start): Call gomp_new_team and pass that as last
2177         argument to gomp_team_start.  Pass 0 as second argument to
2178         gomp_resolve_num_threads.
2179         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2180         if gomp_thread_limit_var != ULONG_MAX.
2181         (omp_in_parallel): Implement using ts.active_level.
2182         (omp_get_max_threads): Move to env.c.
2183         (omp_get_level, omp_get_ancestor_thread_num,
2184         omp_get_team_size, omp_get_active_level): New functions,
2185         add ialias.
2186         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2187         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
2188         gomp_iter_dynamic_next instead of the _locked variant and don't take
2189         lock around it, otherwise acquire it before calling
2190         gomp_iter_dynamic_next_locked.
2191         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2192         gomp_iter_dynamic_next instead of the _locked variant and don't take
2193         lock around it.
2194         (GOMP_parallel_sections_start): Call gomp_new_team instead of
2195         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
2196         Adjust gomp_team_start caller.  Pass count as second argument to
2197         gomp_resolve_num_threads, don't adjust num_threads after the call.
2198         Use gomp_icv.
2199         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2200         ws->chunk_size by incr.
2201         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
2202         code.
2203         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2204         types.
2205         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2206         (omp_check_defines): Check even the compat defines.
2207         * config/linux/ptrlock.c: New file.
2208         * config/linux/ptrlock.h: New file.
2209         * config/linux/wait.h: New file.
2210         * config/posix/ptrlock.c: New file.
2211         * config/posix/ptrlock.h: New file.
2212         * config/linux/bar.h (gomp_team_barrier_wait,
2213         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2214         (gomp_team_barrier_set_task_pending,
2215         gomp_team_barrier_clear_task_pending,
2216         gomp_team_barrier_set_waiting_for_tasks,
2217         gomp_team_barrier_waiting_for_tasks,
2218         gomp_team_barrier_done): New inlines.
2219         (gomp_barrier_t): Rewritten.
2220         (gomp_barrier_state_t): New typedef.
2221         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2222         gomp_barrier_wait_start): Rewritten.
2223         (gomp_barrier_wait_end): Change second argument to
2224         gomp_barrier_state_t.
2225         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2226         inlines.
2227         * config/linux/bar.c: Include wait.h instead of libgomp.h and
2228         futex.h.
2229         (gomp_barrier_wait_end): Rewritten.
2230         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2231         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2232         * config/posix/bar.h (gomp_barrier_t): Add generation field.
2233         (gomp_barrier_state_t): New typedef.
2234         (gomp_team_barrier_wait,
2235         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2236         (gomp_barrier_wait_start): Or all but low 2 bits from generation
2237         into the return value.  Return gomp_barrier_state_t.
2238         (gomp_team_barrier_set_task_pending,
2239         gomp_team_barrier_clear_task_pending,
2240         gomp_team_barrier_set_waiting_for_tasks,
2241         gomp_team_barrier_waiting_for_tasks,
2242         gomp_team_barrier_done): New inlines.
2243         (gomp_barrier_wait_end): Change second argument to
2244         gomp_barrier_state_t.
2245         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2246         inlines.
2247         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2248         (gomp_barrier_wait_end): Change second argument to
2249         gomp_barrier_state_t.
2250         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2251         gomp_team_barrier_wake): New functions.
2252         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2253         futex.h.
2254         (gomp_futex_wake, gomp_futex_wait): New variables.
2255         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2256         * config/linux/lock.c: Rewrite to make locks task owned,
2257         for backwards compatibility provide the old entrypoints
2258         if symbol versioning.  Include wait.h instead of libgomp.h and
2259         futex.h.
2260         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2261         * config/posix95/lock.c: Rewrite to make locks task owned,
2262         for backwards compatibility provide the old entrypoints
2263         if symbol versioning.
2264         * config/posix/lock.c: Rewrite to make locks task owned,
2265         for backwards compatibility provide the old entrypoints
2266         if symbol versioning.
2267         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2268         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2269         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2270         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2271         (sys_futex0): Return error code.
2272         (futex_wake, futex_wait): If ENOSYS was returned, clear
2273         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2274         (cpu_relax, atomic_write_barrier): New static inlines.
2275         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2276         (futex_wake, futex_wait): If ENOSYS was returned, clear
2277         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2278         (cpu_relax, atomic_write_barrier): New static inlines.
2279         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2280         (sys_futex0): Return error code.
2281         (futex_wake, futex_wait): If ENOSYS was returned, clear
2282         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2283         (cpu_relax, atomic_write_barrier): New static inlines.
2284         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2285         (sys_futex0): Return error code.
2286         (futex_wake, futex_wait): If ENOSYS was returned, clear
2287         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2288         (cpu_relax, atomic_write_barrier): New static inlines.
2289         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2290         (sys_futex0): Return error code.
2291         (futex_wake, futex_wait): If ENOSYS was returned, clear
2292         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2293         (cpu_relax, atomic_write_barrier): New static inlines.
2294         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2295         (sys_futex0): Return error code.
2296         (futex_wake, futex_wait): If ENOSYS was returned, clear
2297         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2298         (cpu_relax, atomic_write_barrier): New static inlines.
2299         * config/linux/sem.c: Include wait.h instead of libgomp.h and
2300         futex.h.
2301         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2302         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2303         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2304         types.
2305         (omp_nest_lock_t): Change owner into void *, add lock field.
2306         * config/posix95/omp-lock.h: Include semaphore.h.
2307         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2308         (omp_lock_t): Use sem_t instead of mutex if semaphores
2309         aren't broken.
2310         (omp_nest_lock_t): Likewise.  Change owner to void *.
2311         * config/posix/omp-lock.h: Include semaphore.h.
2312         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2313         (omp_lock_t): Use sem_t instead of mutex if semaphores
2314         aren't broken.
2315         (omp_nest_lock_t): Likewise.  Add owner field.
2317 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2319         * testsuite/libgomp.c/collapse-1.c: New test.
2320         * testsuite/libgomp.c/collapse-2.c: New test.
2321         * testsuite/libgomp.c/collapse-3.c: New test.
2322         * testsuite/libgomp.c/icv-1.c: New test.
2323         * testsuite/libgomp.c/icv-2.c: New test.
2324         * testsuite/libgomp.c/lib-2.c: New test.
2325         * testsuite/libgomp.c/lock-1.c: New test.
2326         * testsuite/libgomp.c/lock-2.c: New test.
2327         * testsuite/libgomp.c/lock-3.c: New test.
2328         * testsuite/libgomp.c/loop-4.c: New test.
2329         * testsuite/libgomp.c/loop-5.c: New test.
2330         * testsuite/libgomp.c/loop-6.c: New test.
2331         * testsuite/libgomp.c/loop-7.c: New test.
2332         * testsuite/libgomp.c/loop-8.c: New test.
2333         * testsuite/libgomp.c/loop-9.c: New test.
2334         * testsuite/libgomp.c/nested-3.c: New test.
2335         * testsuite/libgomp.c/nestedfn-6.c: New test.
2336         * testsuite/libgomp.c/sort-1.c: New test.
2337         * testsuite/libgomp.c/task-1.c: New test.
2338         * testsuite/libgomp.c/task-2.c: New test.
2339         * testsuite/libgomp.c/task-3.c: New test.
2340         * testsuite/libgomp.c/task-4.c: New test.
2341         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2342         to C++ testsuite default compiler options.
2343         * testsuite/libgomp.c++/collapse-1.C: New test.
2344         * testsuite/libgomp.c++/collapse-2.C: New test.
2345         * testsuite/libgomp.c++/ctor-10.C: New test.
2346         * testsuite/libgomp.c++/for-1.C: New test.
2347         * testsuite/libgomp.c++/for-2.C: New test.
2348         * testsuite/libgomp.c++/for-3.C: New test.
2349         * testsuite/libgomp.c++/for-4.C: New test.
2350         * testsuite/libgomp.c++/for-5.C: New test.
2351         * testsuite/libgomp.c++/loop-8.C: New test.
2352         * testsuite/libgomp.c++/loop-9.C: New test.
2353         * testsuite/libgomp.c++/loop-10.C: New test.
2354         * testsuite/libgomp.c++/task-1.C: New test.
2355         * testsuite/libgomp.c++/task-2.C: New test.
2356         * testsuite/libgomp.c++/task-3.C: New test.
2357         * testsuite/libgomp.c++/task-4.C: New test.
2358         * testsuite/libgomp.c++/task-5.C: New test.
2359         * testsuite/libgomp.c++/task-6.C: New test.
2360         * testsuite/libgomp.fortran/allocatable1.f90: New test.
2361         * testsuite/libgomp.fortran/allocatable2.f90: New test.
2362         * testsuite/libgomp.fortran/allocatable3.f90: New test.
2363         * testsuite/libgomp.fortran/allocatable4.f90: New test.
2364         * testsuite/libgomp.fortran/collapse1.f90: New test.
2365         * testsuite/libgomp.fortran/collapse2.f90: New test.
2366         * testsuite/libgomp.fortran/collapse3.f90: New test.
2367         * testsuite/libgomp.fortran/collapse4.f90: New test.
2368         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2369         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2370         * testsuite/libgomp.fortran/lib4.f90: New test.
2371         * testsuite/libgomp.fortran/lock-1.f90: New test.
2372         * testsuite/libgomp.fortran/lock-2.f90: New test.
2373         * testsuite/libgomp.fortran/nested1.f90: New test.
2374         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2375         * testsuite/libgomp.fortran/strassen.f90: New test.
2376         * testsuite/libgomp.fortran/tabs1.f90: New test.
2377         * testsuite/libgomp.fortran/tabs2.f: New test.
2378         * testsuite/libgomp.fortran/task1.f90: New test.
2379         * testsuite/libgomp.fortran/task2.f90: New test.
2380         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2381         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2382         * testsuite/libgomp.c/pr26943-2.c: Likewise.
2383         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2384         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2386 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
2388         PR c++/36308
2389         * testsuite/libgomp.c++/ctor-11.C: New test.
2390         * testsuite/libgomp.c++/ctor-12.C: New test.
2392 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2394         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2396 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2398         PR middle-end/36106
2399         * testsuite/libgomp.c/atomic-5.c: New test.
2400         * testsuite/libgomp.c/atomic-6.c: New test.
2401         * testsuite/libgomp.c/autopar-1.c: New test.
2403 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2405         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2406         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2407         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2408         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2409         * configure: Regenerate.
2410         * Makefile.in, testsuite/Makefile.in: Likewise.
2412 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2414         PR bootstrap/35457
2415         * aclocal.m4: Regenerate.
2416         * configure: Regenerate.
2418 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2420         PR middle-end/35611
2421         * testsuite/libgomp.c/atomic-4.c: New test.
2423         PR libgomp/35625
2424         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2425         (gomp_iter_guided_next): Likewise.
2426         * testsuite/libgomp.c/pr35625.c: New test.
2428 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2430         * aclocal.m4: Regenerate.
2431         * configure: Likewise.
2432         * Makefile.in: Likewise.
2433         * testsuite/Makefile.in: Likewise.
2435 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2437         PR middle-end/35185
2438         * testsuite/libgomp.c++/pr35185.C: New test.
2440 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2442         PR middle-end/35549
2443         * testsuite/libgomp.c/pr35549.c: New test.
2445 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2447         * testsuite/libgomp.c/atomic-3.c: New test.
2449 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2451         PR fortran/33197
2452         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2453         .F08 file suffixes.
2455 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
2457         PR libgomp/33131
2458         * configure.ac: Add ACX_HEADER_STRING.
2459         * env.c: Include strings.h.
2460         * aclocal.m4: Regenerate.
2461         * config.h.in: Regenerate.
2462         * configure: Regenerate.
2463         * Makefile.in: Regenerate.
2464         * testsuite/Makefile.in: Regenerate.
2466 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2468         PR middle-end/35196
2469         * testsuite/libgomp.c/pr35196.c: New test.
2471         PR middle-end/35130
2472         * testsuite/libgomp.fortran/pr35130.f90: New test.
2473         * testsuite/libgomp.c/pr35130.c: New test.
2475 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2477         PR middle-end/33880
2478         * testsuite/libgomp.c/pr33880.c: New test.
2479         * testsuite/libgomp.fortran/pr33880.f90: New test.
2481 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2483         * configure: Regenerate.
2485 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2487         * configure.ac: Move futex checking into ../config/futex.m4.
2488         * configure: Rebuilt.
2489         * aclocal.m4: Rebuilt.
2490         * Makefile.in: Rebuilt.
2492         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2493         2007-10-15 ../config/tls.m4 change.
2495 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
2497         PR c++/34513
2498         * testsuite/libgomp.c/pr34513.c: New test.
2499         * testsuite/libgomp.c++/pr34513.C: New test.
2501 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
2503         PR target/32765
2504         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2506 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
2508         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
2510 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
2512         * testsuite/libgomp.c/private-1.c: New test.
2514 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
2515             Paolo Bonzini  <bonzini@gnu.org>
2517         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
2518         instead of 'VPATH ='.
2519         * Makefile.in: Regenerate.
2521 2007-11-23  Matthias Klose  <doko@ubuntu.com>
2523         * configure.ac: Adjust makeinfo version check.
2524         * configure: Regenerate.
2526 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
2528         PR fortran/34020
2529         * testsuite/libgomp.fortran/pr34020.f90: New test.
2531 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
2533         PR c++/33894
2534         * testsuite/libgomp.c++/atomic-1.C: New test.
2536 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
2538         PR libgomp/33275
2539         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2540         Make x and y integers rather than (implicit) reals.  Add private (j)
2541         clause to the last omp parallel.
2543 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
2545         * configure: Regenerate following changes to ../config/tls.m4.
2547 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
2549         * testsuite/libgomp.fortran/stack.f90: New test.
2551 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
2553         * config/mingw32/proc.c: New file.
2555 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
2557         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2558         (main): Use __get_cpuid to get i386 target fetaures.
2559         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2560         (main): Use __get_cpuid to get x86_64 target fetaures.
2562 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
2564         PR target/32765
2565         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2566         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2568 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2570         PR fortran/32550
2571         * testsuite/libgomp.fortran/pr32550.f90: New test.
2572         * testsuite/libgomp.fortran/crayptr2.f90: New test.
2574 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2576         * aclocal.m4: Regenerated.
2578 2007-07-05  Tobias Burnus  <burnus@net-b.de>
2580         PR fortran/32359
2581         * testsuite/libgomp.fortran/pr32359.f90: New.
2583 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2585         PR libgomp/32468
2586         * sections.c (GOMP_parallel_sections_start): Only decrease
2587         number of threads to COUNT if dyn_var is true.
2588         * testsuite/libgomp.c/pr32468.c: New test.
2590 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2592         PR libgomp/26308
2593         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2595 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2597         PR middle-end/32362
2598         * testsuite/libgomp.c/pr32362-1.c: New test.
2599         * testsuite/libgomp.c/pr32362-2.c: New test.
2600         * testsuite/libgomp.c/pr32362-3.c: New test.
2602 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2604         * team.c (gomp_team_start): Fix setting up thread_attr
2605         stack size.
2607 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2609         * configure: Regenerate.
2611 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2613         * Makefile.in: Regenerate.
2614         * configure: Regenerate.
2615         * aclocal.m4: Regenerate.
2616         * testsuite/Makefile.in: Regenerate.
2618 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2620         * config/linux/proc.c: New file.
2622         PR libgomp/28482
2623         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2625 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
2627         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2629 2007-04-16  Matthias Klose  <doko@debian.org>
2631         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2632         flags if not building with -m64.
2633         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2634         flag for i?86-*-* targets, if current target matches -m64.
2636 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2638         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2639         * Makefile.in: Regenerate.
2641 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2643         PR testsuite/31369
2644         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2645         ld_library_path.
2646         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2648 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2650         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2651         decls.
2652         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2653         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2654         (parse_affinity): New function.
2655         (initialize_env): Call it and gomp_init_affinity.
2656         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2657         create new pthread_attr_t and call gomp_init_thread_affinity
2658         on it for each thread before passing the attribute to pthread_create.
2659         * config/linux/affinity.c: New file.
2660         * config/posix/affinity.c: New file.
2661         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2662         * configure: Rebuilt.
2663         * config.h.in: Rebuilt.
2664         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2665         * Makefile.in: Rebuilt.
2667 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2669         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2670         *-*-darwin*.
2671         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2672         and use it if found.
2674 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2676         * testsuite/config/default.exp: New file.
2677         * testsuite/lib/libgomp.exp: New file.
2678         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2679         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2680         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2681         (libgomp_load): Remove.
2682         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2683         always_ld_library_path, not ld_library_path.  Set additional_flags
2684         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2685         (target_compile): Do not call libgomp_init.  Append lang_library_path
2686         and lang_link_flags to options.
2687         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2688         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2689         here.
2690         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2691         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2692         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2693         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2694         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2695         CX8 flag.
2696         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2697         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2698         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2699         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2700         * testsuite/libgomp.c/atomic-10.c: Ditto.
2702 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2704         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2705         dg-final cleanup-modules line.
2706         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2707         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2708         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2709         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2710         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2711         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2712         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2714 2007-03-18  Andreas Schwab  <schwab@suse.de>
2716         * acinclude.m4: Adjust regular expression for ld version
2717         extraction.
2718         * configure: Regenerate.
2720 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2722         * Makefile.am: Add install-pdf target as copied from
2723         automake v1.10 rules.
2724         * Makefile.in: Regenerate
2726 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2728         PR libgomp/28486
2729         * configure: Regenerate.
2731         PR c++/30703
2732         * testsuite/libgomp.c++/pr30703.C: New test.
2734 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2736         Revert:
2737         2006-07-05  Eric Christopher  <echristo@apple.com>
2738         * configure.ac: Depend addition of -pthread on host OS.
2739         * configure: Regenerate.
2741 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2743         * libgomp.texi: Fix spacing after abbreviations.
2745 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2747         PR libgomp/30546
2748         * configure.ac: Add check for makeinfo
2749         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2750         if an appropiate version of makeinfo is found.
2751         * aclocal.m4: Regenerated.
2752         * configure: Regenerated.
2753         * Makefile.in: Regenerated.
2754         * testsuite/Makefile.in: Regenerated.
2756 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2758         PR libgomp/30540
2759         * libgomp.texi: More about implementation-dependent settings.
2761 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2763         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2765 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2767         PR middle-end/30494
2768         * testsuite/libgomp.c/pr30494.c: New test.
2770 2007-01-15  Tom Tromey  <tromey@redhat.com>
2772         * configure: Rebuilt.
2773         * configure.ac: Fixed comment.
2775 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2777         * libgomp.texi: Document implementation specific default values of
2778         environment variables.
2780 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2782         PR libgomp/28209
2783         * libgomp.texi: New file.
2784         * configure.ac: Add --enable-generated-files-in-srcdir option.
2785         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2786         files to srcdir.
2787         * Makefile.in: Regenerated.
2788         * config.h.in: Regenerated.
2789         * testsuite/Makefile.in: Regenerated.
2790         * NOTES: Removed.
2792 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2794         PR libgomp/29949
2795         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2797 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2799         * configure: Regenerate.
2801 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2803         PR libgomp/29947
2804         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2805         start if there shouldn't be any loop iterations.
2806         (gomp_loop_ordered_static_start): Remove start == end test.
2807         * testsuite/libgomp.c/pr29947-1.c: New test.
2808         * testsuite/libgomp.c/pr29947-2.c: New test.
2810 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2812         * configure.tgt: Force initial-exec TLS model on Linux only.
2814 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2816         * configure: Regenerated.
2818 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2820         * env.c (parse_schedule): Reject out of range values.
2821         (parse_unsigned_long): Reject out of range, negative or zero values.
2823 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2825         PR fortran/29629
2826         * testsuite/libgomp.fortran/pr29629.f90: New test.
2828 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2830         PR libgomp/29494
2831         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2832         * config/posix95: New directory.
2833         * config/posix95/omp-lock.h: New file.
2834         * config/posix95/lock.c: Likewise.
2836 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2838         * aclocal.m4: Regenerate.
2839         * configure: Regenerate.
2841 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2843         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2844         '<' to '<='.
2846 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2848         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2849         test.
2850         * configure: Regenerate.
2851         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2853 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2855         PR middle-end/25261
2856         PR middle-end/28790
2857         * testsuite/libgomp.c/nestedfn-4.c: New test.
2858         * testsuite/libgomp.c/nestedfn-5.c: New test.
2859         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2861         PR fortran/29097
2862         * testsuite/libgomp.fortran/condinc1.f: New test.
2863         * testsuite/libgomp.fortran/condinc2.f: New test.
2864         * testsuite/libgomp.fortran/condinc3.f90: New test.
2865         * testsuite/libgomp.fortran/condinc4.f90: New test.
2866         * testsuite/libgomp.fortran/condinc1.inc: New file.
2868 2006-09-18  Tom Tromey  <tromey@redhat.com>
2870         * configure: Rebuilt.
2872 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2874         PR c/28768
2875         PR preprocessor/14634
2876         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2877         to AC_DEFINE.
2878         * configure: Regenerate.
2880 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2882         * testsuite/libgomp.fortran/reduction3.f90: Change
2883         -2147483648 to -huge(i)-1 to avoid overflow.
2884         * testsuite/libgomp.fortran/reduction4.f90: Change
2885         Z'ffffffff' to not(0) to avoid overflow.
2887 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2889         PR libgomp/25938
2890         * Makefile.am (libsubincludedir): New.
2891         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2892         * Makefile.in: Regenerate.
2894 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2896         PR libgomp/28725
2897         * env.c: Include ctype.h.
2898         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2899         leading and/or trailing whitespace and compare strings case
2900         insensitively.
2902 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2904         PR fortran/28390
2905         * testsuite/libgomp.fortran/pr28390.f: New test.
2907 2006-07-05  Eric Christopher  <echristo@apple.com>
2909         * configure.ac: Depend addition of -pthread on host OS.
2910         * configure: Regenerate.
2912 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2914         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2915         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2916         defined.
2918 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2920         PR libgomp/26175
2921         PR libgomp/26477
2922         * configure.ac: If neither --enable-linux-futex nor
2923         --disable-linux-futex is passed, determine the default by checking
2924         for compiling and/or running against NPTL.  With --enable-linux-futex,
2925         check if SYS_gettid and SYS_futex are defined.
2926         * configure: Rebuilt.
2928 2006-06-14  Richard Henderson  <rth@redhat.com>
2930         PR libgomp/28008
2931         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2932         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2934 2006-06-09  Richard Henderson  <rth@redhat.com>
2936         * env.c (gomp_nthreads_var): Change to unsigned long.
2937         (gomp_run_sched_chunk): Likewise.
2938         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2939         (initialize_env): Initialize gomp_thread_attr.
2940         * libgomp.h (gomp_nthreads_var): Update decl.
2941         (gomp_run_sched_chunk): Likewise.
2942         (gomp_thread_attr): Declare.
2943         * team.c (gomp_thread_attr): Export.
2944         (initialize_team): Don't initialize it.
2946 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2948         PR fortran/27916
2949         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2950         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2952 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2954         * config/mingw32/time.c: New file.
2955         * configure.tgt: Use it.
2957 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2959         * Makefile.am: Add install-html target. Add install-html to .PHONY
2960         * Makefile.in: Regenerate.
2962 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2964         PR libgomp/27612
2965         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2966         * testsuite/libgomp.c/critical-1.c: Likewise.
2967         * testsuite/libgomp.c/loop-1.c: Likewise.
2968         * testsuite/libgomp.c/loop-2.c: Likewise.
2969         * testsuite/libgomp.c/single-1.c: Likewise.
2970         * testsuite/libgomp.c/ordered-1.c: Likewise.
2971         * testsuite/libgomp.c/ordered-2.c: Likewise.
2973 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2975         PR middle-end/27416
2976         * libgomp.fortran/pr27416-1.f90: New test.
2978 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2980         PR fortran/27395
2981         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2982         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2984 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2986         PR c++/26943
2987         * testsuite/libgomp.c/pr26943-1.c: New test.
2988         * testsuite/libgomp.c/pr26943-2.c: New test.
2989         * testsuite/libgomp.c/pr26943-3.c: New test.
2990         * testsuite/libgomp.c/pr26943-4.c: New test.
2991         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2992         * testsuite/libgomp.c++/pr26943.C: New test.
2994 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2996         PR middle-end/27337
2997         * testsuite/libgomp.c++/pr27337.C: New test.
2999 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
3001         PR c/26171
3002         * testsuite/libgomp.c/pr26171.c: New test.
3004 2006-04-25  Richard Henderson  <rth@redhat.com>
3006         PR libgomp/25865
3007         * configure.ac: Use GCC_CHECK_TLS.
3008         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3009         * Makefile.in, aclocal.m4, configure: Regenerate.
3011 2006-04-10  Matthias Klose  <doko@debian.org>
3013         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3014         directory names containing underscores.
3016 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
3018         PR c++/26691
3019         * testsuite/libgomp.c++/pr26691.C: New test.
3021 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
3023         * testsuite/libgomp.fortran/retval2.f90: New test.
3025 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
3027         * testsuite/libgomp.c++: New directory.
3029 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
3031         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3032         * config/posix/sem.c: Implement the above.
3034 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
3036         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3037         define HAVE_BROKEN_POSIX_SEMAPHORES.
3038         * configure: Rebuilt.
3039         * config.h.in: Rebuilt.
3041 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3043         PR bootstrap/26161
3044         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3045         for the other pthread check.
3046         * configure: Regenerate.
3047         * config.h.in: Regenerate.
3049 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
3051         PR libgomp/25938
3052         PR libgomp/25984
3053         * Makefile.am (fincludedir): New variable.
3054         (nodist_include_HEADERS): Remove Fortran files.
3055         (nodist_finclude_HEADERS): New variable.
3056         * Makefile.in: Regenerated.
3058 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
3060         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3061         Remove tests for returning assumed character length arrays.
3063 2006-02-12  Roger Sayle  <roger@eyesopen.com>
3064             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3066         PR libgomp/25936
3067         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3069 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3071         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3073 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3075         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3076         part of LD_LIBRARY_PATH manually.
3078 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3080         PR libgomp/25852
3081         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3082         libgomp_init.
3084 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
3086         PR libgomp/25884
3087         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3088         * configure.ac (PERL): Don't set.
3089         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3090         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3091         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3092         * omp.h.in: Wrap the new configure substitutions with @ characters.
3093         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3094         * aclocal.m4, configure, Makefile.in: Regenerate.
3095         * mkomp_h.pl: Delete.
3097 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
3099         PR libgomp/25259
3100         * configure.ac: Use GCC_HEADER_STDINT.
3101         * libgomp.h: Include gstdint.h.
3102         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3103         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3105 2006-01-24  Richard Henderson  <rth@redhat.com>
3107         PR libgomp/25942
3108         * configure.ac: Add AM_MAINTAINER_MODE.
3109         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3111 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
3113         * Makefile.in: Regenerate.
3114         * testsuite/Makefile.in: Regenerate.
3115         * aclocal.m4: Regenerate.
3117 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
3119         * config/posix/proc.c: Conditional include of sys/loadavg.h for
3120         Solaris.
3121         * configure.ac: Add check for loadavg.h.
3122         (link_gomp): Adjust comment.
3123         * configure: Regenerate.
3124         * config.h.in: Regenerate.
3126 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
3128         PR libgomp/25877
3129         * configure.ac: Remove check for alloca.h.
3130         * configure: Regenerate.
3131         * config.h.in: Regenerate.
3132         * libgomp.h: define gomp_alloca to be __builtin_alloca.
3133         * team.c: Remove use of alloca.h.
3134         Call gomp_alloca instead of alloca.
3136 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
3138         PR libgomp/25877
3139         * team.c: Add include of alloca.h.
3140         * configure.ac: Add check for alloca.h.
3141         * configure: Regenerate.
3142         * config.h.in: Regenerate.
3144 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
3146         PR fortran/25219
3147         * testsuite/libgomp.fortran/pr25219.f90: New test.
3149 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
3151         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3152         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3153         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3154         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3155         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3156         testsuite/libgomp.fortran/threadprivate1.f90,
3157         testsuite/libgomp.fortran/threadprivate2.f90,
3158         testsuite/libgomp.fortran/threadprivate3.f90,
3159         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3160         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3161         testsuite/libgomp.fortran/omp_parse3.f90: Change required
3162         effective-target to TLS runtime.
3164         * testsuite/libgomp.fortran/pr25162.f: Require
3165         effective-target TLS runtime.
3167 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
3169         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3170         * testsuite/libgomp.c/nestedfn-3.c: New test.
3172 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3174         PR fortran/25162
3175         * testsuite/libgomp.fortran/pr25162.f: New test.
3177 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
3179         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3180         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3182 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
3184         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3185         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3186         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3187         single.c, team.c, work.c, config/linux/alpha/futex.h,
3188         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3189         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3190         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3191         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3192         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3193         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3194         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3195         FSF address.
3197 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3199         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3200         to nodist_noinst_HEADERS.
3201         * Makefile.in: Rebuilt.
3203         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3204         add integer count field.
3205         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3206         omp_nest_lock_t type change.
3207         (omp_init_nest_lock): Likewise.  Initialize count to 0.
3208         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3209         Increment count.
3210         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3211         Decrement count.
3212         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3213         Increment count if successful and return the new nesting level.
3214         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3215         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3216         * testsuite/libgomp.c/lib-1.c: New test.
3217         * testsuite/libgomp.fortran/lib1.f90: New test.
3218         * testsuite/libgomp.fortran/lib2.f: New test.
3219         * testsuite/libgomp.fortran/lib3.f: New test.
3221 2005-11-17  Richard Henderson  <rth@redhat.com>
3223         PR 24845
3224         * Makefile.am (nodist_toolexeclib_HEADERS): New.
3225         * configure.ac (link_gomp): New.  Substitute it.
3226         (AC_CONFIG_FILES): Add libgomp.spec.
3227         * libgomp.spec.in: New file.
3228         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3229         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3231 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3233         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3234         reduction(-:var) behaving the same as reduction(+:var).
3235         * testsuite/libgomp.c/reduction-4.c: New test.
3237 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
3239         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3240         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3241         testsuite/libgomp.c/copyin-3.c,
3242         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3243         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3244         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3245         testsuite/libgomp.c++/pr24455.C,
3246         testsuite/libgomp.fortran/threadprivate1.f90,
3247         testsuite/libgomp.fortran/threadprivate2.f90,
3248         testsuite/libgomp.fortran/threadprivate3.f90,
3249         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3250         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3251         testsuite/libgomp.fortran/omp_parse3.f90: Require
3252         effective-target TLS.
3254 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3256         * HEADER: Remove.
3258 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
3260         PR libgomp/24797
3261         * team.c (initialize_team): Pass NULL rather than free as
3262         pthread_key_create destructor.  Initialize thread specific data
3263         pointer in initial thread to a static local variable rather than
3264         malloced memory.
3266 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
3268         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3269         its location to ld_library_path.
3271 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3273         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3275 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3277         * testsuite/libgomp.c: Rename from libgomp.dg.
3279 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
3281         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3282         threadprivate variable 'i'.
3284 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3286         * config/linux/s390/futex.h: New file.
3287         * configure.tgt: Use it.
3289         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3290         before the parallel.
3292 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3294         PR c++/24734
3295         * testsuite/libgomp.c++/master-1.C: New test.
3297 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3299         * testsuite/libgomp.dg/copyin-3.c: New test.
3301 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3303         * testsuite/libgomp.fortran/retval1.f90: New test.
3304         * testsuite/libgomp.fortran/vla7.f90: New test.
3306 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
3308         * testsuite/libgomp.fortran/vla2.f90: New test.
3309         * testsuite/libgomp.fortran/vla3.f90: New test.
3310         * testsuite/libgomp.fortran/vla4.f90: New test.
3311         * testsuite/libgomp.fortran/vla5.f90: New test.
3312         * testsuite/libgomp.fortran/vla6.f90: New test.
3314 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
3316         * config/linux/sparc/futex.h: New file.
3317         * configure.tgt: Use it.
3318         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3320         * critical.c: Include stdlib.h.
3321         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3322         ignoring return value.
3323         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3324         LIBGOMP_CHECK_SYNC_BUILTINS check.
3325         * configure: Rebuilt.
3327 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3329         * testsuite/libgomp.fortran/vla1.f90: New test.
3331 2005-10-31  Richard Henderson  <rth@redhat.com>
3333         * testsuite/libgomp.fortran/character2.f90: Fix race condition
3334         setting 's' in different threads.
3336 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3338         * libgomp.h (attribute_hidden, ialias): Define.
3339         * config/posix/proc.c (omp_get_num_procs): Add ialias.
3340         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3341         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3342         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3343         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3344         omp_test_lock, omp_test_nest_lock): Likewise.
3345         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3346         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3347         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3348         omp_test_lock, omp_test_nest_lock): Likewise.
3349         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3350         omp_get_dynamic, omp_get_nested): Likewise.
3351         * parallel.c (omp_get_num_threads, omp_get_max_threads,
3352         omp_get_thread_num, omp_in_parallel): Likewise.
3353         * fortran.c (ialias_redirect): Define.
3354         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3355         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3356         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3357         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3358         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3359         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3360         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3361         omp_get_wtime): Add ialias_redirect.
3363 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
3365         * fortran.c: Include stdlib.h.
3367 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
3369         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3370         * Makefile.in: Regenerated.
3372 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
3374         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3375         * libgomp_f.h.in (omp_check_defines): New function.
3376         * env.c: Include libgomp_f.h.
3377         (initialize_env): Call omp_check_defines.
3379         * testsuite/libgomp.dg/copyin-2.c: New test.
3380         * testsuite/libgomp.c++/copyin-2.C: New test.
3381         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3383         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3384         * testsuite/libgomp.fortran/sharing2.f90: New test.
3386         * testsuite/libgomp.dg/copyin-1.c: New test.
3387         * testsuite/libgomp.c++/copyin-1.C: New test.
3389 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
3391         * testsuite/libgomp.fortran/crayptr1.f90: New test.
3393         * testsuite/libgomp.fortran/workshare1.f90: New test.
3395         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3396         only test.
3397         * libgomp.fortran/sharing1.f90: New test.
3399 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
3401         PR c++/24502
3402         * testsuite/libgomp.c++/loop-7.C: New test.
3404         * testsuite/libgomp.dg/nestedfn-2.c: New test.
3406         * testsuite/libgomp.dg/nestedfn-1.c: New test.
3407         * testsuite/libgomp.fortran/reduction6.f90: New test.
3408         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3410 2005-10-23  Richard Henderson  <rth@redhat.com>
3412         * testsuite/libgomp.c++/ctor-1.C: New.
3413         * testsuite/libgomp.c++/ctor-2.C: New.
3414         * testsuite/libgomp.c++/ctor-3.C: New.
3415         * testsuite/libgomp.c++/ctor-4.C: New.
3416         * testsuite/libgomp.c++/ctor-5.C: New.
3417         * testsuite/libgomp.c++/ctor-6.C: New.
3418         * testsuite/libgomp.c++/ctor-7.C: New.
3419         * testsuite/libgomp.c++/ctor-8.C: New.
3420         * testsuite/libgomp.c++/ctor-9.C: New.
3422 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
3424         PR 24455
3425         * testsuite/libgomp.c++/pr24455-1.C: New test.
3426         * testsuite/libgomp.c++/pr24455.C: New test.
3427         * testsuite/libgomp.dg/pr24455-1.c: New test.
3428         * testsuite/libgomp.dg/pr24455.c: New test.
3430 2005-10-20  Richard Henderson  <rth@redhat.com>
3432         * testsuite/libgomp.c++/loop-6.C: New.
3433         * testsuite/libgomp.dg/loop-3.c: New.
3435 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
3437         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3438         explicitly private.
3439         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3440         explicitly shared.
3442 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
3444         * testsuite/libgomp.fortran/jacobi.f: New test.
3446 2005-10-19  Richard Henderson  <rth@redhat.com>
3448         * configure.tgt (i?86-linux): Default to with_arch instead of
3449         CFLAGS.  Add -mtune to match target_cpu.
3450         (x86_64-linux): Tune to i686.
3452         * fortran.c (omp_test_nest_lock_): Fix typo.
3454 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
3456         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3457         gomp_ordered_sync): Do nothing if team->nthreads == 1.
3458         * testsuite/libgomp.dg/ordered-3.c: New test.
3460         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3461         Remove volatile keyword.
3463         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3464         in COMMON block to avoid warnings on 64-bit targets.
3466 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
3468         * testsuite/libgomp.dg/shared-3.c: New test.
3470 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3472         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3473         * testsuite/libgomp.fortran/reduction5.f90: New test.
3475 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3477         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3478         dg-options.
3479         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
3480         flush loop now that __sync_synchronize has proper memory barrier.
3481         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3482         Add -ffixed-form to dg-options.
3484 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3486         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3487         from subdirectories.
3488         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3489         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3490         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3491         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3492         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3493         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3494         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3495         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3496         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3497         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3498         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3499         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3500         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3501         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3502         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3503         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3504         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3505         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3506         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3507         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3508         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3509         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3510         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3511         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3512         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3514 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
3516         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3517         lang_library_path exists.  Use find instead of glob to gather tests.
3518         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3520 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3522         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3523         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3524         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3525         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3526         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3527         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3528         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3529         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3530         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3531         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3532         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3533         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3534         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3536 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
3538         * testsuite/libgomp.dg/vla-1.c: New test.
3540         * testsuite/libgomp.fortran/reference2.f90: New test.
3542         * testsuite/libgomp.fortran/character2.f90: Remove explicit
3543         declaration of omp_get_thread_num.
3544         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
3545         use omp_lib.
3547         * testsuite/libgomp.fortran/reduction1.f90: New test.
3548         * testsuite/libgomp.fortran/reduction2.f90: New test.
3549         * testsuite/libgomp.fortran/reduction3.f90: New test.
3550         * testsuite/libgomp.fortran/reduction4.f90: New test.
3552 2005-10-13  Richard Henderson  <rth@redhat.com>
3554         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3555         * Makefile.in: Regenerate.
3556         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3557         * libgomp.h: Include bar.h.
3558         (struct gomp_barrier): Remove.
3559         (struct gomp_team): Add barrier.  Replace master_barrier with
3560         master_release.  Replace threads with ordered_release.
3561         (struct gomp_thread): Replace barrier with release.
3562         * ordered.c (gomp_ordered_first): Update for ordered_release change.
3563         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3564         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3565         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3566         (GOMP_single_copy_end): Likewise.
3567         * team.c (gomp_threads_dock): New.
3568         (gomp_barrier_init, gomp_barrier_destroy): Remove.
3569         (gomp_thread_start): Use gomp_barrier_wait.
3570         (new_team, free_team): Update for gomp_team changes.
3571         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3572         (gomp_team_end): Use gomp_barrier_wait.
3573         (initialize_team): Update for gomp_thread changes.
3574         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3575         (gomp_work_share_end_nowait): Use atomic ops when available.
3576         * config/linux/bar.c, config/linux/bar.h: New files.
3577         * config/posix/bar.c, config/posix/bar.h: New files.
3579 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
3581         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3582         * testsuite/libgomp.dg/single-2.c: New test.
3584         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3585         lang_link_flags): Unset, so that they aren't inherited from previously
3586         sourced *.exp.
3588         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3590 2005-10-12  Richard Henderson  <rth@redhat.com>
3592         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3593         (libgomp_init): Use lang_test_file, lang_library_path, and
3594         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
3596         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3597         (lang_test_file, lang_link_flags): New.
3598         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3600         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3601         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3602         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3603         testsuite/libgomp.c++/parallel-1.C,
3604         testsuite/libgomp.c++/reduction-1.C,
3605         testsuite/libgomp.c++/reduction-2.C,
3606         testsuite/libgomp.c++/reduction-3.C,
3607         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3608         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3609         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3610         New files, largely cribbed from the C testsuite.
3612 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3614         * testsuite/libgomp.fortran/character1.f90: New test.
3615         * testsuite/libgomp.fortran/character2.f90: New test.
3617         * testsuite/libgomp.dg/nested-1.c: New test.
3618         * testsuite/libgomp.dg/nested-2.c: New test.
3619         * testsuite/libgomp.fortran/do1.f90: New test.
3620         * testsuite/libgomp.fortran/do2.f90: New test.
3622         * testsuite/libgomp.fortran/reference1.f90: New test.
3624 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3626         * testsuite/libgomp.dg/reduction-1.c: New test.
3627         * testsuite/libgomp.dg/reduction-2.c: New test.
3628         * testsuite/libgomp.dg/reduction-3.c: New test.
3630 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3632         * testsuite/libgomp.dg/atomic-1.c: New test.
3633         * testsuite/libgomp.dg/atomic-2.c: New test.
3635 2005-10-09  Richard Henderson  <rth@redhat.com>
3637         * critical.c (atomic_lock): New.
3638         (initialize_critical): Initialize it.
3639         (GOMP_atomic_start, GOMP_atomic_end): New.
3640         * libgomp.map: Export them.
3641         * libgomp_g.h: Declare them.
3643         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3645 2005-10-02  Richard Henderson  <rth@redhat.com>
3647         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3648         to XCFLAGS instead of CFLAGS.
3650 2005-09-30  Richard Henderson  <rth@redhat.com>
3652         * configure.ac: Determine whether -pthread or -lpthread is needed.
3653         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3654         * Makefine.in, configure: Rebuild.
3656 2005-09-28  Richard Henderson  <rth@redhat.com>
3658         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3659         * testsuite/libgomp.dg/omp-single-3.c: New test.
3661 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3663         * testsuite/libgomp.dg/omp-single-2.c: New test.
3664         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3666 2005-09-27  Richard Henderson  <rth@redhat.com>
3668         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3669         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3671 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3673         * testsuite/libgomp.dg/omp-loop03.c: New test.
3675 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3677         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3679 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3681         * testsuite/libgomp.dg/omp-single-1.c: New test.
3682         * testsuite/libgomp.dg/shared-1.c: Return 0.
3683         Add prototype for abort.
3684         * testsuite/libgomp.dg/shared-2.c: Likewise.
3686 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3688         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3689         constructs.
3691 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3693         * testsuite/libgomp.dg/shared-1.c: New test.
3694         * testsuite/libgomp.dg/shared-2.c: New test.
3696 2005-09-24  Richard Henderson  <rth@redhat.com>
3698         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3700 2005-09-24  Richard Henderson  <rth@redhat.com>
3702         * iter.c (gomp_iter_static_next): Round up when computing number
3703         of iterations.  Don't bother distributing a remainder equally.
3705         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3706         Don't call srand.  Zero b before testing.
3707         (main): New.
3709 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3711         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3712         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3714 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3716         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3717         without !$omp end do, followed immediately by subroutine end.
3719 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3721         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3723 2005-09-22  Richard Henderson  <rth@redhat.com>
3725         * critical.c (GOMP_critical_name_start): Change argument to void**.
3726         Reuse the pointer space if the mutex fits.
3727         (GOMP_critical_name_end): Likewise.
3728         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3729         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3730         (GOMP_critical_name_end): Likewise.
3731         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3732         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3734 2005-09-20  Richard Henderson  <rth@redhat.com>
3736         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3737         (create_lock_lock): New.
3738         (initialize_critical): Initialize it.
3739         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3740         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3742 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3744         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3746 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3748         * testsuite/libgomp.dg/omp-loop01.c: New test.
3749         * testsuite/libgomp.dg/omp-loop02.c: New test.
3751 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3753         * configure.ac (AC_PROG_FC): Add.
3754         (USE_FORTRAN): New automake conditional.
3755         * configure: Rebuilt.
3756         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3757         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3758         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3759         Add rules to build them.
3760         * Makefile.in: Rebuilt.
3761         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3762         OMP_NEST_LOCK_KIND.
3763         * libgomp.map: Add Fortran wrappers.
3764         * libgomp_f.h.in: New file.
3765         * omp_lib.h.in: New file.
3766         * omp_lib.f90.in: New file.
3767         * fortran.c: New file.
3768         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3769         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3770         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3771         libgfortran has been built.
3772         * testsuite/libgomp.fortran/fortran.exp: New file.
3773         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3774         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3775         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3776         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3777         * testsuite/libgomp.fortran/omp_hello.f: New test.
3778         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3779         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3780         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3781         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3782         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3783         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3784         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3785         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3787 2005-08-30  Richard Henderson  <rth@redhat.com>
3789         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3790         function for when aliases are not usable.
3791         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3792         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3793         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3794         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3795         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3796         GOMP_loop_ordered_guided_next): Likewise.
3797         * ordered.c (GOMP_ordered_start): Likewise.
3799 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3801         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3802         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3803         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3804         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3805         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3806         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3807         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3808         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3809         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3811 2005-07-07  Eric Christopher  <echristo@redhat.com>
3812             Diego Novillo  <dnovillo@redhat.com>
3814         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3815         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3816         up code.
3817         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3818         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3819         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3820         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3821         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3822         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3823         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3825 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3827         * TOPLEVEL.patch: Remove.
3829 2005-05-16  Richard Henderson  <rth@redhat.com>
3831         * configure.ac: Test for clock_gettime.
3832         * config.h.in, configure: Rebuild.
3833         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3834         (omp_get_wtime): Use clock_gettime if available.
3835         (omp_get_wtick): Use clock_getres if available.
3837 2005-05-11  Richard Henderson  <rth@redhat.com>
3839         * config/linux/ia64/futex.h: New file.
3840         * configure.tgt: Use it.
3842         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3844 2005-05-07  Richard Henderson  <rth@redhat.com>
3846         * config/linux/powerpc/futex.h: New file.
3847         * configure.tgt: Use it.
3849         * config/linux/i486/futex.h: Merge ...
3850         * config/linux/x86_64/futex.h: ... into ...
3851         * config/linux/x86/futex.h: ... here.
3852         * configure.tgt: Update to match.
3854 2005-05-06  Richard Henderson  <rth@redhat.com>
3856         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3857         * config/linux/i486/futex.h: Likewise.
3858         * config/linux/x86_64/futex.h: Likewise.
3860         * config/linux/lock.c: New file.
3861         * config/linux/omp-lock.h: New file.
3863         * critical.c, env.h: Don't include omp.h
3864         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3865         * config/posix/time.c: Likewise.
3866         * config/posix/omp-lock.h: New file.
3867         * libgomp.h: Include omp-lock.h and omp.h.
3868         * Makefile.am (nodist_include_HEADERS): New.
3869         (omp.h): New rule.
3870         * configure.ac (PERL): New.
3871         * mkomp_h.pl: New file.
3872         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3873         with templates.
3874         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3876         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3877         build directory.  Re-add -march=i486 hack.
3879         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3880         (libgomp_link_flags): Remove.
3881         (libgomp_initialized): Remove.
3882         (libgomp_init): Don't protect from reinitialization.  Copy code
3883         from libstdc++ for getting the multilib set correctly.
3885 2005-05-05  Richard Henderson  <rth@redhat.com>
3887         * config/linux/alpha/futex.h: New file.
3888         * configure.tgt (alpha*-*-linux*): Use it.
3890         * config/posix/mutex.c: New file.
3891         * config/posix/sem.c: Use libgomp.h.
3893         * configure.tgt (x86_64-linux): Also test CC for -m32.
3894         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3896         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3897         after $gccpath.
3899         * Makefile.am (SUBDIRS): New.
3900         (libgomp_la_LDFLAGS): Add -lpthread.
3901         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3902         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3904         * libgomp_g.h: New file.
3905         * libgomp.h: Split out all public declarations to libgomp_g.h.
3906         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3907         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3908         * config/linux/sem.h: Likewise.
3909         * config/posix/sem.h: Likewise.
3911         * Makefile.am (AM_LDFLAGS): New.
3912         (libgomp_version_script): Split out from ...
3913         (libgomp_la_LDFLAGS): ... here.
3914         (libgomp_version_info): New.
3915         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3916         (LIBGOMP_ENABLE): New.
3917         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3918         (LIBGOMP_ENABLE_SYMVERS): New.
3919         * configure.ac (AC_INIT): Version 1.0.
3920         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3921         (enable-linux-futex): Likewise.  Rename from enable-futex.
3922         (libtool_VERSION): New.
3923         (LIBGOMP_ENABLE_SYMVERS): Use it.
3924         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3925         * Makefile.in, aclocal.m4, configure: Rebuild.
3927         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3928         (gomp_mutex_unlock_slow): Fix typo.
3929         * config/linux/sem.c: Similarly.
3930         (gomp_sem_post_slow): Fix typo.
3931         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3932         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3933         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3935         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3936         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3937         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3938         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3939         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3940         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3941         LDFLAGS.  Pull enable_futex check to top-level.
3942         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3943         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3945         First attempt at real configury.
3946         * Makefile, config.h: Remove file.
3947         * Makefile.am, Makefile.in: New file.
3948         * acinclude.m4 aclocal.m4: New file.
3949         * configure.ac, configure.tgt, configure: New file.
3951         * config/posix/lock.c: Rename from sys-lock.c.
3952         * config/posix/mutex.h: Rename from sys-mutex.h.
3953         * config/posix/sem.c: Rename from sys-sem.c.
3954         * config/posix/sem.h: Rename from sys-sem.h.
3955         * config/posix/proc.c: Rename from sys-proc.c.
3956         * config/posix/time.c: Rename from sys-proc.c.
3958         * config/linux/mutex.c: New file.
3959         * config/linux/mutex.h: New file.
3960         * config/linux/sem.c: New file.
3961         * config/linux/sem.h: New file.
3962         * config/linux/i486/futex.h: New file.
3963         * config/linux/x86_64/futex.h: New file.
3965 2005-05-04  Richard Henderson  <rth@redhat.com>
3967         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3968         * libgomp.h: Declare them.
3969         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3970         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3972 2005-05-04  Richard Henderson  <rth@redhat.com>
3974         * libgomp-1 code drop
3976 2005-05-04  Richard Henderson  <rth@redhat.com>
3978         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3979         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3980         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3981         (gomp_iter_static_next): Update.
3982         (gomp_ordered_static_next): Update.
3983         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3984         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3985         totally empty range.
3986         (gomp_loop_ordered_static_next): Refine test for calling
3987         gomp_ordered_static_next.
3988         * testsuite/ordered-1.c: Add case for more threads than iterations.
3990         * iter.c (gomp_iter_runtime_next_locked): Remove.
3991         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3992         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3993         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3994         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3995         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3996         gomp_loop_ordered_guided_next): Downcase name, make static, add
3997         an external alias with the old name.
3998         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3999         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4000         switch and call one of the above static functions.
4001         * libgomp.h: Update.
4003         * work.c (gomp_work_share_start): Lock the mutex for !first too.
4004         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4005         GOMP_loop_guided_start, GOMP_loop_runtime_start,
4006         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4007         GOMP_loop_ordered_guided_start): Update to match.
4008         * sections.c (GOMP_sections_start): Likewise.
4009         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4011         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4012         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4013         Use bounds check instead of modulus.
4014         (gomp_ordered_sync): Split out of GOMP_ordered_start.
4015         (gomp_ordered_last): Don't sync with ordered_owner here.
4016         (gomp_ordered_next): Likewise.
4017         (gomp_ordered_static_loop_next): Likewise.
4018         * loop.c, libgomp.h: Update to match.
4020         * libgomp.h (GOMP_barrier): Declare.
4022         * testsuite/barrier-1.c: New file.
4023         * testsuite/critical-1.c: New file.
4024         * testsuite/ordered-2.c: New file.
4025         * testsuite/ordered-1.c: New file.
4026         * testsuite/sections-1.c: New file.
4027         * testsuite/single-1.c: New file.
4028         * testsuite/Makefile (TESTS): Add them.
4030 2005-05-04  Richard Henderson  <rth@redhat.com>
4032         * libgomp.h (struct gomp_work_share): Add ordered_owner.
4033         * loop.c (GOMP_loop_static_start): If not the startup thread,
4034         acquire the mutex to wait for initialization complete.
4035         (GOMP_loop_ordered_static_start): Likewise.
4036         (GOMP_loop_ordered_runtime_start): Likewise.
4037         (GOMP_loop_ordered_static_first): Remove.
4038         (GOMP_loop_ordered_dynamic_first): Remove.
4039         (GOMP_loop_ordered_guided_first): Remove.
4040         (GOMP_loop_ordered_runtime_first): Remove.
4041         * ordered.c (gomp_ordered_loop_first): Post to own release when
4042         we're the first thread.
4043         (gomp_ordered_loop_last): Wait on release if not owner.
4044         (gomp_ordered_loop_next): Likewise.
4045         (gomp_ordered_static_loop_init): New.
4046         (gomp_ordered_static_loop_next): Use ordered_owner.
4047         (GOMP_ordered_start): Likewise.
4048         * work.c (gomp_new_work_share): Initialize ordered_owner.
4050 2005-05-03  Richard Henderson  <rth@redhat.com>
4052         * Makefile (OPT): New.
4053         (CFLAGS): Use it.
4055         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4056         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4057         * libgomp.h, libgomp.map, NOTES: Update to match.
4059         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4060         Add initialized and thr members.
4061         (gomp_thread_start): Pause when initially spawned to wait for
4062         the whole team to be created.
4063         (gomp_team_start): Release team members at the end.
4065         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
4066         (f_foo_1): Use GOMP_loop_end.
4067         (f_foo_2): Use GOMP_loop_end_nowait.
4069         * testsuite/loop-2.c: New file.
4070         * testsuite/Makefile (TESTS): Add it.
4072 2005-05-03  Richard Henderson  <rth@redhat.com>
4074         * iter.c (gomp_iter_static_next): Fix overflow check typo.
4075         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4076         * team.c (new_team): Initialize oldest_live_gen to 1 if no
4077         initial work_share.
4079         * testsuite/Makefile: New file.
4080         * testsuite/loop-1.c: New file.
4082 2005-05-03  Richard Henderson  <rth@redhat.com>
4084         Initial implementation and checkin.