Fix Solaris bootstrap with GNU ld/LTO
[official-gcc.git] / libgomp / ChangeLog
blobe61756158a5875239830d67a7b2bed38253141fa
1 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
3         Update copyright years
5 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7         * hashtab.h: Use the standard form for the copyright notice.
9 2014-01-02  Tobias Burnus  <burnus@net-b.de>
11         * libgomp.texi: Bump @copying's copyright year.
13 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
15         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
16         alloca () with __builtin_alloca ().
17         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
18         * testsuite/libgomp.c/lock-3.c: Likewise.
19         * testsuite/libgomp.c/pr48591.c: Likewise.
21 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
23         PR testsuite/59534
24         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
25         comparisons.
27 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
29         PR libgomp/58756
30         * testsuite/libgomp.c/pr58756.c: New test.
32 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
34         PR libgomp/59467
35         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
36         !$omp parallel.
38 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
40         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
41         ALWAYS_CFLAGS.
42         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
43         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
44         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
45         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
46         Likewise.
48         * libgomp_g.h: Include <stddef.h> for size_t.
50         * libgomp.spec.in: Update comment about libgomp's dependencies.
51         * configure.ac: Likewise.
52         * configure: Regenerate.
54 2013-10-16  Tobias Burnus  <burnus@net-b.de>
56         * libgomp.texi: (Runtime Library Routines): Update references for
57         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
58         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
59         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
60         (Environment Variables): Update references for OpenMP 4.0. Add
61         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
62         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
63         order.
65 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
67         * env.c (parse_bind_var): Initialize value to avoid
68         (false positive) warning.
70 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
72         PR libgomp/58691
73         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
74         to check variable.
75         (gomp_init_num_threads): Move i variable declaration into
76         #ifdef CPU_ALLOC_SIZE block.
77         * config/linux/affinity.c (gomp_affinity_init_level): Test
78         gomp_places_list_len == 0 rather than gomp_places_list == 0
79         when checking for topology reading error.
80         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
81         * env.c (parse_affinity): Add ignore argument, if true, don't populate
82         gomp_places_list, only parse env var and always return false.
83         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
84         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
85         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
86         and either of these variables were parsed correctly into a places
87         list.
89 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
90             Jakub Jelinek  <jakub@redhat.com>
92         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
93         of 5 loopfn matches.
94         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
95         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
96         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
97         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
98         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
99         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
100         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
101         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
103 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
105         * Makefile.am (omp_lib.mod): Streamline rule.
106         * Makefile.in: Regenerate.
108         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
109         exceptions.
111         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
112         * testsuite/libgomp.fortran/lib1.f90: Likewise.
113         * testsuite/libgomp.fortran/lib2.f: Likewise.
114         * testsuite/libgomp.fortran/lib3.f: Likewise.
116         * configure.ac: Typo fix.
117         * configure: Regenerate.
119         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
120         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
122         * omp.h.in: Don't touch the user's namespace.
124 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
125             Tobias Burnus  <burnus@net-b.de>
126             Richard Henderson  <rth@redhat.com>
128         * target.c: New file.
129         * Makefile.am (libgomp_la_SOURCES): Add target.c.
130         * Makefile.in: Regenerated.
131         * libgomp_g.h (GOMP_task): Add depend argument.
132         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
133         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
134         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
135         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
136         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
137         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
138         GOMP_taskgroup_start, GOMP_taskgroup_end,
139         GOMP_parallel_sections): New prototypes.
140         * fortran.c (omp_is_initial_device): Add ialias_redirect.
141         (omp_is_initial_device_): New function.
142         (ULP, STR1, STR2, ialias_redirect): Removed.
143         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
144         omp_set_default_device_8_, omp_get_default_device_,
145         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
146         functions.
147         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
148         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
149         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
150         @@GOMP_4.0.
151         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
152         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
153         omp_set_default_device, omp_set_default_device_,
154         omp_set_default_device_8_, omp_get_default_device,
155         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
156         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
157         omp_get_team_num_): Export @@OMP_4.0.
158         * team.c (struct gomp_thread_start_data): Add place field.
159         (gomp_thread_start): Clear thr->thread_pool and
160         thr->task before returning.  Use gomp_team_barrier_wait_final
161         instead of gomp_team_barrier_wait.  Initialize thr->place.
162         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
163         team_cancelled and task_queued_count fields.
164         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
165         before calling pthread_exit.
166         (gomp_free_thread): No longer static.  Use
167         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
168         (gomp_team_start): Add flags argument.  Set
169         thr->thread_pool->threads_busy to nthreads immediately after creating
170         new pool.  Use gomp_managed_threads_lock instead of
171         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
172         (gomp_team_end): Use gomp_managed_threads_lock instead of
173         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
174         of gomp_team_barrier_wait.  If team->team_cancelled, call
175         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
176         rather than thr->ts.work_share.
177         (initialize_team): Don't call gomp_sem_init here.
178         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
179         caller.
180         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
181         * env.c (gomp_global_icv): Add default_device_var, target_data and
182         bind_var initializers.
183         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
184         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
185         gomp_places_list_len): New variables.
186         (parse_bind_var, parse_one_place, parse_places_var): New functions.
187         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
188         sized places.
189         (gomp_cancel_var): New global variable.
190         (parse_int): New function.
191         (handle_omp_display_env): New function.
192         (initialize_env): Use it.  Initialize default_device_var.
193         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
194         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
195         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
196         been successfully parsed (and call gomp_init_affinity in that case).
197         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
198         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
199         omp_get_team_num, omp_is_initial_device): New functions.
200         * libgomp.h: Include stdlib.h.
201         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
202         Define.
203         (struct target_mem_desc): Forward declare.
204         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
205         and thread_limit_var fields.
206         (gomp_get_num_devices): New prototype.
207         (gomp_cancel_var): New extern decl.
208         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
209         team_cancelled and task_queued_count fields.  Add comments about
210         task_{,queued_,running_}count.
211         (gomp_cancel_kind): New enum.
212         (gomp_work_share_end_cancel): New prototype.
213         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
214         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
215         and depend fields.
216         (struct gomp_taskgroup): New type.
217         (struct gomp_task_depend_entry,
218         struct gomp_dependers_vec): New types.
219         (gomp_finish_task): Free depend_hash if non-NULL.
220         (struct gomp_team_state): Add place_partition_off
221         and place_partition_len fields.
222         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
223         gomp_places_list_len): New extern decls.
224         (struct gomp_thread): Add place field.
225         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
226         (gomp_init_thread_affinity): Add place argument.
227         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
228         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
229         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
230         gomp_affinity_init_level, gomp_affinity_print_place): New
231         prototypes.
232         (gomp_team_start): Add flags argument.
233         (gomp_thread_limit_var, gomp_remaining_threads_count,
234         gomp_remaining_threads_lock): Remove.
235         (gomp_managed_threads_lock): New variable.
236         (struct gomp_thread_pool): Add threads_busy field.
237         (gomp_free_thread): New prototype.
238         * task.c: Include hashtab.h.
239         (hash_entry_type): New typedef.
240         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
241         (gomp_init_task): Clear dependers, depend_hash, depend_count,
242         copy_ctors_done and taskgroup fields.
243         (GOMP_task): Add depend argument, handle depend clauses.  If
244         gomp_team_barrier_cancelled or if it's taskgroup has been
245         cancelled, don't queue or start new tasks.  Set copy_ctors_done
246         field if needed.  Initialize taskgroup field.  If copy_ctors_done
247         and already cancelled, don't discard the task.  If taskgroup is
248         non-NULL, enqueue the task into taskgroup queue.  Increment
249         num_children field in taskgroup.  Increment task_queued_count.
250         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
251         gomp_task_run_post_remove_taskgroup): New inline functions.
252         (gomp_task_run_post_handle_depend_hash,
253         gomp_task_run_post_handle_dependers,
254         gomp_task_run_post_handle_depend): New functions.
255         (GOMP_taskwait): Use them.  If more than one new tasks
256         have been queued, wake other threads if needed.
257         (gomp_barrier_handle_tasks): Likewise.  If
258         gomp_team_barrier_cancelled, don't start any new tasks, just free
259         all tasks.
260         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
261         * omp_lib.f90.in
262         (omp_proc_bind_kind, omp_proc_bind_false,
263         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
264         omp_proc_bind_spread): New params.
265         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
266         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
267         omp_get_team_num, omp_is_initial_device): New interfaces.
268         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
269         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
270         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
271         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
272         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
273         useless use omp_lib_kinds.
274         * omp.h.in (omp_proc_bind_t): New typedef.
275         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
276         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
277         omp_get_team_num, omp_is_initial_device): New prototypes.
278         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
279         through to gomp_team_start.
280         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
281         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
282         Adjust gomp_parallel_loop_start callers.
283         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
284         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
285         GOMP_loop_end_cancel): New functions.
286         (GOMP_parallel_end): Add ialias_redirect.
287         * hashtab.h: New file.
288         * libgomp.texi (Environment Variables): Minor cleanup,
289         update section refs to OpenMP 4.0rc2.
290         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
291         environment variables.
292         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
293         team->work_shares_to_free to thr->ts.work_share before calling
294         free_work_share.
295         (gomp_work_share_end_cancel): New function.
296         * config/linux/proc.c: Include errno.h.
297         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
298         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
299         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
300         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
301         gomp_cpuset_size is sizeof (cpu_set_t).
302         (gomp_init_num_threads): Initialize gomp_cpuset_size,
303         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
304         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
305         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
306         contain any logical CPUs.
307         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
308         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
309         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
310         pthread_getaffinity_np.  Check gomp_places_list instead of
311         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
312         * config/linux/bar.c (gomp_barrier_wait_end,
313         gomp_barrier_wait_last): Use BAR_* defines.
314         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
315         from state where needed.  Set work_share_cancelled to 0 on last
316         thread.
317         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
318         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
319         functions.
320         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
321         Add cpusetsize argument.
322         (gomp_cpuset_size, gomp_cpusetp): Declare.
323         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
324         (affinity_counter): Remove.
325         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
326         if CPU_ALLOC_SIZE isn't defined.
327         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
328         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
329         bind current thread to the first place.
330         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
331         pthread_setaffinity_np to gomp_places_list[place].
332         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
333         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
334         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
335         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
336         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
337         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
338         (gomp_barrier_t): Add awaited_final field.
339         (gomp_barrier_init): Initialize awaited_final field.
340         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
341         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
342         prototypes.
343         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
344         defines.
345         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
346         gomp_team_barrier_cancelled): New inline functions.
347         (gomp_barrier_last_thread,
348         gomp_team_barrier_set_task_pending,
349         gomp_team_barrier_clear_task_pending,
350         gomp_team_barrier_set_waiting_for_tasks,
351         gomp_team_barrier_waiting_for_tasks,
352         gomp_team_barrier_done): Use BAR_* defines.
353         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
354         (gomp_barrier_wait_end): Use BAR_* defines.
355         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
356         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
357         Use BAR_* defines.
358         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
359         gomp_team_barrier_cancel): New functions.
360         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
361         argument.
362         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
363         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
364         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
365         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
366         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
367         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
368         (gomp_barrier_t): Add cancellable field.
369         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
370         gomp_team_barrier_cancel): New prototypes.
371         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
372         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
373         gomp_team_barrier_cancelled): New inline functions.
374         (gomp_barrier_wait_start, gomp_barrier_last_thread,
375         gomp_team_barrier_set_task_pending,
376         gomp_team_barrier_clear_task_pending,
377         gomp_team_barrier_set_waiting_for_tasks,
378         gomp_team_barrier_waiting_for_tasks,
379         gomp_team_barrier_done): Use BAR_* defines.
380         * barrier.c (GOMP_barrier_cancel): New function.
381         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
382         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
383         omp_proc_bind_spread): New params.
384         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
385         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
386         omp_get_team_num, omp_is_initial_device): New externals.
387         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
388         New functions.
389         (gomp_resolve_num_threads): Adjust for thread_limit now being in
390         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
391         infinity.  If not nested, just return minimum of max_num_threads
392         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
393         to the returned value.  Otherwise, don't update atomically
394         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
395         (GOMP_parallel_end): Adjust for thread_limit now being in
396         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
397         infinity.  Adjust threads_busy in the pool rather than
398         gomp_remaining_threads_count.  Remember team->nthreads and call
399         gomp_team_end before adjusting threads_busy, if not nested
400         afterwards, just set it to 1 non-atomically.  Add ialias.
401         (GOMP_parallel_start): Adjust gomp_team_start caller.
402         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
403         * testsuite/libgomp.c/affinity-1.c: New test.
404         * testsuite/libgomp.c/atomic-15.c: New test.
405         * testsuite/libgomp.c/atomic-16.c: New test.
406         * testsuite/libgomp.c/atomic-17.c: New test.
407         * testsuite/libgomp.c/cancel-for-1.c: New test.
408         * testsuite/libgomp.c/cancel-for-2.c: New test.
409         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
410         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
411         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
412         * testsuite/libgomp.c/cancel-sections-1.c: New test.
413         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
414         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
415         * testsuite/libgomp.c/depend-1.c: New test.
416         * testsuite/libgomp.c/depend-2.c: New test.
417         * testsuite/libgomp.c/depend-3.c: New test.
418         * testsuite/libgomp.c/depend-4.c: New test.
419         * testsuite/libgomp.c/for-1.c: New test.
420         * testsuite/libgomp.c/for-1.h: New file.
421         * testsuite/libgomp.c/for-2.c: New test.
422         * testsuite/libgomp.c/for-2.h: New file.
423         * testsuite/libgomp.c/for-3.c: New test.
424         * testsuite/libgomp.c/pr58392.c: New test.
425         * testsuite/libgomp.c/simd-1.c: New test.
426         * testsuite/libgomp.c/simd-2.c: New test.
427         * testsuite/libgomp.c/simd-3.c: New test.
428         * testsuite/libgomp.c/simd-4.c: New test.
429         * testsuite/libgomp.c/simd-5.c: New test.
430         * testsuite/libgomp.c/simd-6.c: New test.
431         * testsuite/libgomp.c/target-1.c: New test.
432         * testsuite/libgomp.c/target-2.c: New test.
433         * testsuite/libgomp.c/target-3.c: New test.
434         * testsuite/libgomp.c/target-4.c: New test.
435         * testsuite/libgomp.c/target-5.c: New test.
436         * testsuite/libgomp.c/target-6.c: New test.
437         * testsuite/libgomp.c/target-7.c: New test.
438         * testsuite/libgomp.c/taskgroup-1.c: New test.
439         * testsuite/libgomp.c/thread-limit-1.c: New test.
440         * testsuite/libgomp.c/thread-limit-2.c: New test.
441         * testsuite/libgomp.c/thread-limit-3.c: New test.
442         * testsuite/libgomp.c/udr-1.c: New test.
443         * testsuite/libgomp.c/udr-2.c: New test.
444         * testsuite/libgomp.c/udr-3.c: New test.
445         * testsuite/libgomp.c++/affinity-1.C: New test.
446         * testsuite/libgomp.c++/atomic-10.C: New test.
447         * testsuite/libgomp.c++/atomic-11.C: New test.
448         * testsuite/libgomp.c++/atomic-12.C: New test.
449         * testsuite/libgomp.c++/atomic-13.C: New test.
450         * testsuite/libgomp.c++/atomic-14.C: New test.
451         * testsuite/libgomp.c++/atomic-15.C: New test.
452         * testsuite/libgomp.c++/cancel-for-1.C: New test.
453         * testsuite/libgomp.c++/cancel-for-2.C: New test.
454         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
455         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
456         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
457         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
458         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
459         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
460         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
461         * testsuite/libgomp.c++/cancel-test.h: New file.
462         * testsuite/libgomp.c++/for-9.C: New test.
463         * testsuite/libgomp.c++/for-10.C: New test.
464         * testsuite/libgomp.c++/for-11.C: New test.
465         * testsuite/libgomp.c++/simd-1.C: New test.
466         * testsuite/libgomp.c++/simd-2.C: New test.
467         * testsuite/libgomp.c++/simd-3.C: New test.
468         * testsuite/libgomp.c++/simd-4.C: New test.
469         * testsuite/libgomp.c++/simd-5.C: New test.
470         * testsuite/libgomp.c++/simd-6.C: New test.
471         * testsuite/libgomp.c++/simd-7.C: New test.
472         * testsuite/libgomp.c++/simd-8.C: New test.
473         * testsuite/libgomp.c++/target-1.C: New test.
474         * testsuite/libgomp.c++/target-2.C: New test.
475         * testsuite/libgomp.c++/target-2-aux.cc: New file.
476         * testsuite/libgomp.c++/target-3.C: New test.
477         * testsuite/libgomp.c++/taskgroup-1.C: New test.
478         * testsuite/libgomp.c++/udr-1.C: New test.
479         * testsuite/libgomp.c++/udr-2.C: New test.
480         * testsuite/libgomp.c++/udr-3.C: New test.
481         * testsuite/libgomp.c++/udr-4.C: New test.
482         * testsuite/libgomp.c++/udr-5.C: New test.
483         * testsuite/libgomp.c++/udr-6.C: New test.
484         * testsuite/libgomp.c++/udr-7.C: New test.
485         * testsuite/libgomp.c++/udr-8.C: New test.
486         * testsuite/libgomp.c++/udr-9.C: New test.
488 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
490         PR testsuite/57605
491         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
492         ALWAYS_CFLAGS.
494 2013-09-20  Alan Modra  <amodra@gmail.com>
496         * configure: Regenerate.
498 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
500         * testsuite/libgomp.c/sections-2.c: New test.
502 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
504         * testsuite/libgomp.fortran/strassen.f90:
505         Add dg-skip-if aarch64_tiny.
507 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
508             Cesar Philippidis  <cesar@codesourcery.com>
510         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
511         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
512         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
513         * testsuite/libgomp.fortran/fortran.exp: Likewise.
514         * testsuite/libgomp.graphite/graphite.exp: Likewise.
515         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
516         Use dg-runtest rather than gfortran-dg-runtest.
518 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
520         * testsuite/libgomp.c/icv-2.c: Extend current handling of
521         Linux-based x86 systems to cover all GNU systems.
522         * testsuite/libgomp.c/lock-3.c: Likewise.
523         * testsuite/libgomp.c/pr48591.c: Likewise.
525 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
527         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
528         GNU/Hurd, as done for Linux-based systems.
530         * config/posix/ptrlock.h: Fix comment.
532 2013-05-27  Tobias Burnus  <burnus@net-b.de>
534         PR fortran/57423
535         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
536         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
537         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
538         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
539         omp_destroy_nest_lock): Correct arguments to match the one in
540         the OpenMP spec.
541         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
542         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
543         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
544         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
546 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
548         * testsuite/libgomp.c/loop-13.c: New test.
549         * testsuite/libgomp.c/loop-14.c: New test.
550         * testsuite/libgomp.c/loop-15.c: New test.
551         * testsuite/libgomp.c++/loop-13.C: New test.
552         * testsuite/libgomp.c++/loop-14.C: New test.
553         * testsuite/libgomp.c++/loop-15.C: New test.
555 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
557         PR middle-end/56217
558         * testsuite/libgomp.c++/pr56217.C: New test.
560 2013-02-01  Alan Modra  <amodra@gmail.com>
562         * task.c (GOMP_task, GOMP_taskwait): Comment.
564 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
565             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
567         PR libgomp/55561
568         * config/linux/wait.h (do_spin): Use atomic load for addr.
569         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
570         for intptr and ptrlock.
571         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
572         for ptrlock.
574 2013-01-22  Alan Modra  <amodra@gmail.com>
576         PR libgomp/51376
577         PR libgomp/56073
578         * task.c (GOMP_task): Revert 2011-12-09 change.
579         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
580         barrier to read task->children..
581         (gomp_barrier_handle_tasks): ..and matching atomic store with
582         release barrier here when setting parent->children to NULL.
584 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
585             Tobias Burnus  <burnus@net-b.de>
587         PR driver/55884
588         * testsuite/libgomp.fortran/fortran.exp: Use
589         -fintrinsic-modules-path= instead of
590         -fintrinsic-modules-path.
592 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
594         Update copyright years.
596 2012-12-19  Tobias Burnus  <burnus@net-b.de>
598         * testsuite/libgomp.fortran/fortran.exp: Set
599         -fintrinsic-modules-path.
601 2012-12-19  Tobias Burnus  <burnus@net-b.de>
603         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
604         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
606 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
608         PR libgomp/55411
609         * team.c (gomp_free_thread): Decrease gomp_managed_threads
610         if pool had any threads_used.
612 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
614         * testsuite/libgomp.c++/pr24455.C: Use
615         -Wl,-undefined,dynamic_lookup on darwin.
617 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
619         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
621 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
623         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
625 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
626             Jim MacArthur  <jim.macarthur@arm.com>
627             Marcus Shawcroft  <marcus.shawcroft@arm.com>
628             Nigel Stephens  <nigel.stephens@arm.com>
629             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
630             Richard Earnshaw  <rearnsha@arm.com>
631             Sofiane Naci  <sofiane.naci@arm.com>
632             Stephen Thomas  <stephen.thomas@arm.com>
633             Tejas Belagod  <tejas.belagod@arm.com>
634             Yufeng Zhang  <yufeng.zhang@arm.com>
636         * configure.tgt: Add AArch64.
638 2012-10-04  Jason Merrill  <jason@redhat.com>
640         * testsuite/libgomp.c++/tls-init1.C: New.
642 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
644         * configure: Regenerated.
646 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
648         * config/linux/mips/futex.h (sys_futex0): Change to static
649         function with noinline, nomips16 attributes under MIPS16. Adjust
650         asm statement to place 'li v0,SYS_futex' immediately before
651         syscall insn.
653 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
655         * libgomp.texi (Library Index): Renamed from "Index" to prevent
656         conflict with index.html on case-insensitive file systems.
658 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
660         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
661         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
663 2012-07-02  Richard Guenther  <rguenther@suse.de>
664             Michael Matz  <matz@suse.de>
665             Tobias Grosser <tobias@grosser.es>
666             Sebastian Pop <sebpop@gmail.com>
668         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
669         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
670         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
671         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
673 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
675         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
677 2012-06-22  Richard Guenther  <rguenther@suse.de>
679         Merge from graphite branch
680         2012-01-13  Tobias Grosser  <tobias@grosser.es>
682         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
683         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
685 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
687         PR middle-end/53580
688         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
689         use GOMP_barrier () call instead.
690         * testsuite/libgomp.c/pr26943-3.c: Likewise.
691         * testsuite/libgomp.c/pr26943-4.c: Likewise.
692         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
693         call GOMP_barrier instead.
694         * testsuite/libgomp.fortran/vla5.f90: Likewise.
696 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
698         PR libgomp/52993
699         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
700         argument to memset call.
702 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
704         * configure: Regenerated.
706 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
708         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
710 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
712         PR bootstrap/52812
713         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
715 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
717         PR middle-end/52547
718         * testsuite/libgomp.c/pr52547.c: New test.
720 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
722         * testsuite/lib/libgomp.exp: load fortran-modules.exp
724 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
726         * configure.tgt (mips-sgi-irix6*): Remove.
728 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
730         * configure.tgt (alpha*-dec-osf*): Remove.
732         * config/osf/sem.h: Remove.
733         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
735 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
737         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
739 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
741         PR libstdc++/52188
742         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
743         Remove ENABLE_SYMVERS_SOL2.
744         * configure: Regenerate.
745         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
746         (PREPROCESS): New variable.
747         (libgomp.ver): New target.
748         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
749         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
750         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
751         Use libgomp.ver.
752         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
753         * Makefile.in: Regenerate.
755 2012-02-14  Walter Lee  <walt@tilera.com>
757         * configure.tgt: Handle tilegx and tilepro.
758         * config/linux/tile/futex.h: New file.
760 2012-02-08  Richard Guenther  <rguenther@suse.de>
762         PR tree-optimization/46886
763         * testsuite/libgomp.c/pr46886.c: New testcase.
765 2012-01-25  Matthias Klose  <doko@ubuntu.com>
767         * config/linux/arm: Remove empty directory.
768         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
770 2011-12-09  Alan Modra  <amodra@gmail.com>
772         PR libgomp/51376
773         * task.c (GOMP_taskwait): Don't access task->children outside of
774         task_lock mutex region.
775         (GOMP_task): Likewise.
777 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
779         PR libgomp/51132
780         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
781         to file scope.
782         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
783         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
784         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
785         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
786         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
788 2011-12-02  Alan Modra  <amodra@gmail.com>
790         * config/linux/affinity.c: Use atomic rather than sync builtin.
791         * config/linux/lock.c: Likewise.
792         * config/linux/ptrlock.h: Likewise.
793         * config/linux/ptrlock.c: Likewise.
794         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
795         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
796         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
797         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
798         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
799         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
800         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
801         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
802         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
803         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
805 2011-11-30  Alan Modra  <amodra@gmail.com>
807         PR libgomp/51298
808         * config/linux/bar.h: Use atomic rather than sync builtins.
809         * config/linux/bar.c: Likewise.  Add missing acquire
810         synchronisation on generation field.
811         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
812         double unlock.
814 2011-11-30  Alan Modra  <amodra@gmail.com>
816         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
817         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
818         * config/linux/mutex.h: Use atomic rather than sync builtins.
819         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
820         * config/linux/omp-lock.h: Comment fix.
821         * config/linux/arm/mutex.h: Delete.
822         * config/linux/powerpc/mutex.h: Delete.
823         * config/linux/ia64/mutex.h: Delete.
824         * config/linux/mips/mutex.h: Delete.
826 2011-11-30  Alan Modra  <amodra@gmail.com>
828         PR libgomp/51249
829         * config/linux/sem.h: Rewrite.
830         * config/linux/sem.c: Rewrite.
832 2011-11-28  Richard Henderson  <rth@redhat.com>
834         * libgomp.h (enum memmodel): New.
836 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
838         * configure: Regenerate.
840 2011-10-10  Matthias Klose  <doko@ubuntu.com>
842         * config/posix95: Remove empty directory.
844 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
846         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
848 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
850         PR fortran/49792
851         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
852         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
854 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
856         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
858 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
860         PR libgomp/49965
861         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
863 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
865         * config/linux/proc.h: New.
866         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
867         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
868         (gomp_init_num_threads): Update call to cpuset_popcount.
869         (get_num_procs): Ditto.
870         * config/linux/affinity.c (gomp_init_affinity): Call
871         gomp_cpuset_popcount.
873 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
875         PR fortran/42041
876         PR fortran/46752
877         * omp.h.in (omp_in_final): New prototype.
878         * omp_lib.f90.in (omp_in_final): New interface.
879         (omp_integer_kind, omp_logical_kind): Remove
880         and replace all its uses in the module with 4.
881         (openmp_version): Change to 201107.
882         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
883         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
884         kind for the parameters.
885         (omp_in_final): New external.
886         (openmp_version): Change to 201107.
887         * task.c (omp_in_final): New function.
888         (gomp_init_task): Initialize final_task.
889         (GOMP_task): Remove unused attribute from flags.  Handle final
890         tasks.
891         (GOMP_taskyield): New function.
892         (omp_in_final): Return true if if (false) or final (true) task
893         or descendant of final (true).
894         * fortran.c (omp_in_final_): New function.
895         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
896         (GOMP_3.0): Export GOMP_taskyield.
897         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
898         variables.
899         (parse_unsigned_long_list): New function.
900         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
901         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
902         even if parse_affinity returned false.
903         * config/linux/affinity.c (gomp_init_affinity): Handle
904         gomp_cpu_affinity_len == 0.
905         * libgomp_g.h (GOMP_taskyield): New prototype.
906         * libgomp.h (struct gomp_task): Add final_task field.
907         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
908         * team.c (gomp_team_start): Override new task's nthreads_var icv
909         if list form OMP_NUM_THREADS has been used and it has value for
910         the new nesting level.
912         * testsuite/libgomp.c/atomic-11.c: New test.
913         * testsuite/libgomp.c/atomic-12.c: New test.
914         * testsuite/libgomp.c/atomic-13.c: New test.
915         * testsuite/libgomp.c/atomic-14.c: New test.
916         * testsuite/libgomp.c/reduction-6.c: New test.
917         * testsuite/libgomp.c/task-5.c: New test.
918         * testsuite/libgomp.c++/atomic-2.C: New test.
919         * testsuite/libgomp.c++/atomic-3.C: New test.
920         * testsuite/libgomp.c++/atomic-4.C: New test.
921         * testsuite/libgomp.c++/atomic-5.C: New test.
922         * testsuite/libgomp.c++/atomic-6.C: New test.
923         * testsuite/libgomp.c++/atomic-7.C: New test.
924         * testsuite/libgomp.c++/atomic-8.C: New test.
925         * testsuite/libgomp.c++/atomic-9.C: New test.
926         * testsuite/libgomp.c++/task-8.C: New test.
927         * testsuite/libgomp.c++/reduction-4.C: New test.
928         * testsuite/libgomp.fortran/allocatable7.f90: New test.
929         * testsuite/libgomp.fortran/allocatable8.f90: New test.
930         * testsuite/libgomp.fortran/crayptr3.f90: New test.
931         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
932         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
933         * testsuite/libgomp.fortran/pointer1.f90: New test.
934         * testsuite/libgomp.fortran/pointer2.f90: New test.
935         * testsuite/libgomp.fortran/task4.f90: New test.
937 2011-08-02  Tobias Burnus  <burnus@net-b.de>
939         * libgomp.texi: Update OpenMP spec references to 3.1.
940         (omp_in_final,OMP_PROC_BIND): New sections.
941         (OMP_NUM_THREADS): Document that the value can be now a list.
942         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
944 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
946         * config/linux/x86/futex.h: Check __x86_64__ instead of
947         __LP64__.
949 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
951         PR middle-end/49897
952         PR middle-end/49898
953         * testsuite/libgomp.c/pr49897-1.c: New test.
954         * testsuite/libgomp.c/pr49897-2.c: New test.
955         * testsuite/libgomp.c/pr49898-1.c: New test.
956         * testsuite/libgomp.c/pr49898-2.c: New test.
958 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
960         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
961         for ia32 instead of ilp32.
963         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
964         * testsuite/libgomp.c/atomic-6.c: Likewise.
966 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
968         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
969         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
971 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
973         PR libgomp/45351
974         * config/osf/sem.h: New file.
975         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
977 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
979         PR target/49541
980         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
981         ldflags.
983 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
985         * config/linux/wait.h (do_spin): New inline, largely copied
986         from do_wait, just don't do futex_wait here, instead return true if
987         it should be done.
988         (do_wait): Implement using do_spin.
989         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
990         to prototype.
991         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
992         __sync_bool_compare_and_swap, pass the oldval to
993         gomp_mutex_lock_slow.
994         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
995         If all mutex contenders are just spinning and not sleeping, don't
996         change state to 2 unnecessarily.  Optimize the loop when state has
997         already become 2 to use just one atomic operation per loop instead
998         of two.
999         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1000         to prototype.
1001         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1002         __sync_bool_compare_and_swap, pass the oldval to
1003         gomp_mutex_lock_slow.
1005 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1007         PR libgomp/49490
1008         * iter.c (gomp_iter_static_next): For chunk size 0
1009         only use n ceil/ nthreads size for the first
1010         n % nthreads threads in the team instead of
1011         all threads except for the last few ones which
1012         get less work or none at all.
1013         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1014         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1015         chunk argument, set run_sched_modifier to 0 for static
1016         resp. 1 for other kinds.  If chunk argument is 0
1017         and not static, set value to 1.
1019 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
1021         PR c++/49043
1022         * testsuite/libgomp.c++/pr49043.C: New test.
1024         PR c++/48869
1025         * testsuite/libgomp.c++/pr48869.C: New test.
1027 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1029         PR fortran/48894
1030         * fortran.c: Include limits.h.
1031         (TO_INT): Define.
1032         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1033         *set.
1034         (omp_set_num_threads_8_, omp_set_schedule_8_,
1035         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1036         omp_get_team_size_8_): Use TO_INT macro.
1037         * testsuite/libgomp.fortran/pr48894.f90: New test.
1039 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1041         PR middle-end/48591
1042         * testsuite/libgomp.c/pr48591.c: New test.
1044 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1046         PR bootstrap/48135
1047         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1048         * configure: Regenerate.
1050 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1052         PR fortran/47886
1053         * testsuite/libgomp.fortran/task3.f90: New test.
1055 2011-02-24  Tobias Burnus  <burnus@net-b.de>
1057         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1059 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
1061         PR libgomp/47854
1062         * libgomp.texi (omp_get_wtime): Don't say time in the past
1063         must be Unix Epoch.
1065 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1067         PR libgomp/47804
1068         * testsuite/libgomp.fortran/fortran.exp: Check for both
1069         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
1070         but $blddir != "", still append ${blddir}/${lang_library_path}
1071         to ld_library_path.
1073 2011-02-16  Tobias Burnus  <burnus@net-b.de>
1075         PR libgomp/47758
1076         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1077         of libquadmath.a before adding its libpath to ldflags.
1079 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1081         PR libgomp/47731
1082         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1083         to FUTEX_WAIT futex syscall.
1084         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1086 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1088         * configure: Regenerate.
1090 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1092         PR libstdc++/36104
1093         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1095 2011-01-16  Gerald Pfeifer
1097         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1099 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1101         PR fortran/46874
1102         * libgomp.fortran/allocatable6.f90: New test.
1104 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1106         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1107         * configure: Regenerate.
1109 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1111         PR target/40125
1112         PR lto/46695
1113         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1114         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1115         * aclocal.m4: Regenerate.
1116         * configure: Regenerate.
1117         * Makefile.in: Regenerate.
1118         * testsuite/Makefile.in: Regenerate.
1120 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
1122         PR fortran/46753
1123         * libgomp.fortran/pr46753.f90: New test.
1125         PR libgomp/43706
1126         * env.c (initialize_env): Default to spin count 300000
1127         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1128         is specified.
1130         PR libgomp/45240
1131         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1132         at the end if sync builtins aren't supported.
1134 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1136         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1138 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1140         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1142 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
1144         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1146 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1147             Tobias Burnus  <burnus@net-b.de>
1149         PR fortran/32049
1150         * configure.ac:
1151         * configure: Regenerate.
1153 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1155         * config/linux/futex.h: New.
1156         * config/linux/arm/mutex.h: New.
1157         * configure.tgt (arm*-*-linux*): Add config path.
1159 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1161         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1163 2010-09-23  Tobias Burnus  <burnus@net-b.de>
1165         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1166         Change Fortran datatype to LOGICAL.
1167         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1168         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1170 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1172         * configure: Regenerate.
1174 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
1176         * libgomp.texi: Add function keyword to a couple of Fortran
1177         interfaces, use integer instead of int for Fortran.
1179 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
1181         * libgomp.texi: Fix spelling and pasto problems throughout.
1182         Adjust prototypes to match code.
1184 2010-07-24  Tobias Burnus  <burnus@net-b.de>
1186         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1187         silence -fwhole-file warning.
1189 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1191         * configure.tgt (*-*-solaris2.[56]*): Removed.
1193 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1195         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1196         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1197         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1198         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1199         targetting solaris2*.
1200         * configure: Regenerate.
1201         * config.h.in: Regenerate.
1203         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1204         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1205         Add libgomp_version_dep.
1206         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1207         versioning.
1208         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1209         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1210         * Makefile.in: Regenerate.
1212         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1213         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1214         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1215         to common block, protected by
1216         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1218 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1220         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
1222 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
1224         PR bootstrap/43170
1225         * configure: Regenerate.
1227 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1229         PR other/43620
1230         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1231         * configure: Regenerate.
1232         * Makefile.in: Regenerate.
1233         * testsuite/Makefile.in: Regenerate.
1235 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1237         PR c/43893
1238         * testsuite/libgomp.c/pr43893.c: New test.
1239         * testsuite/libgomp.c++/pr43893.C: New test.
1241 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1243         PR middle-end/43570
1244         * testsuite/libgomp.fortran/vla8.f90: New test.
1246 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1248         PR libgomp/43706
1249         * config/linux/affinity.c (gomp_init_affinity): Decrease
1250         gomp_available_cpus if affinity mask confines the process to fewer
1251         CPUs.
1252         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1253         non-NULL, just return gomp_available_cpus.
1255         PR libgomp/43569
1256         * sections.c (gomp_sections_init): Initialize ws->mode.
1258 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1260         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1261         not unused bar variable.
1262         * configure: Regenerate.
1264 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1266         * Makefile.in: Regenerate.
1267         * aclocal.m4: Regenerate.
1268         * testsuite/Makefile.in: Regenerate.
1270 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
1272         PR libgomp/42942
1273         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1274         (initialize_env): Adjust callers.
1275         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1276         when the argument is 0.
1278         * testsuite/libgomp.c/pr42942.c: New test.
1280 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
1282         PR middle-end/42644
1283         PR middle-end/42130
1284         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1285         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1287 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1289         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1290         * testsuite/libgomp.c++/task-6.C: Likewise.
1292 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
1294         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1296 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
1298         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1299         * configure: Regenerate.
1301 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
1303         PR fortran/42866
1304         * testsuite/libgomp.fortran/allocatable5.f90: New test.
1306 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1308         * configure.ac: Test for executability of GFORTRAN.
1309         * configure: Regenerate.
1311 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1313         * configure: Regenerate.
1315 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1317         PR libgomp/42602
1318         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1320 2010-01-03  Richard Guenther  <rguenther@suse.de>
1322         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1324 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
1326         * testsuite/libgomp.graphite/pr4118.c: New.
1328 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1330         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1331         for darwin, protect the test with require-effective-target tls_runtime.
1332         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1334 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1336         PR target/41605
1337         * testsuite/lib/libgomp.exp: Provide -B options to allow for
1338         link spec %s substitutions for static libraries.
1340 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
1342         PR testsuite/42135
1343         * libgomp.graphite/force-parallel-2.c: Reduce array size.
1345 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1347         * Makefile.in: Regenerate.
1348         * configure: Regenerate.
1349         * testsuite/Makefile.in: Regenerate.
1351 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1353         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1354         settings for LC_ALL and LANG.
1356 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1358         PR fortran/42162
1359         * testsuite/libgomp.fortran/pr42162.f90: New test.
1361 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1363         PR middle-end/42029
1364         * testsuite/libgomp.c/pr42029.c: New test.
1366 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1368         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1369         *s.  Accept ld version without text in ()s.
1370         * configure: Regenerated.
1372 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1374         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1376 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1378         PR libgomp/41418
1379         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1380         or a hyphen (happens with fortran language disabled).
1381         * configure: Regenerate.
1383 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1385         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1386         use sed script portable to Solaris /bin/sed for extracting ld
1387         version.
1388         * configure: Regenerate.
1390 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1392         * testsuite/libgomp.graphite/bounds.c: New test.
1394 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1396         * Makefile.am (libgomp_la_LINK): New.
1397         * Makefile.in: Regenerate.
1399 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1401         * configure.ac (AC_PREREQ): Bump to 2.64.
1403 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1405         * Makefile.am (install-html, install-pdf): Remove.
1406         * Makefile.in: Regenerate.
1408         * Makefile.in: Regenerate.
1409         * aclocal.m4: Regenerate.
1410         * config.h.in: Regenerate.
1411         * configure: Regenerate.
1412         * testsuite/Makefile.in: Regenerate.
1414 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1416         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1417         * Makefile.in: Regenerate.
1419 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1421         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1422         * Makefile.in: Regenerate.
1424 2009-08-19  Tobias Burnus  <burnus@net-b.de>
1426         PR fortran/41102
1427         omp_lib.h.in: Fix -std=f95 errors.
1430 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
1432         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1433         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1434         * testsuite/libgomp.graphite/graphite.exp: New.
1436 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
1438         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1439         only build.
1441 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1443         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1444         needed memory barrier semantics.
1445         * config/linux/mips/mutex.h: New file.
1447 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1449         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1451 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
1453         * configure: Regenerate.
1455 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
1457         PR testsuite/40699
1458         PR testsuite/40707
1459         PR testsuite/40709
1460         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1461         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1462         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1464 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1466         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1467         options when choosing a multilib.
1469 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
1471         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1472         ld_library_path.  Use add_path.  Add just find_libgcc_s to
1473         ld_library_path, not every libgcc multilib directory.
1474         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1475         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1476         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1477         Use add_path.
1478         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1480 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
1482         * Makefile.am (LTLDFLAGS): Define.
1483         (LINK): Define.
1484         * Makefile.in: Regenerate.
1486 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1488         PR fortran/39718
1489         * testsuite/libgomp.fortran/fortran.exp: Don't link with
1490         libgfortranbegin, check existence of libgfortran.a instead of
1491         libgfortranbegin.a.
1493 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
1495         PR libgomp/40174
1496         * team.c (gomp_thread_start): Destroy thr->release semaphore.
1497         (gomp_free_pool_helper): Likewise.
1499 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
1500             Jakub Jelinek  <jakub@redhat.com>
1502         PR fortran/35423
1503         * testsuite/libgomp.fortran/workshare2.f90: New test.
1505 2009-04-09  Nick Clifton  <nickc@redhat.com>
1507         * iter.c: Change copyright header to refer to version 3 of the
1508         GNU General Public License with version 3.1 of the GCC Runtime
1509         Library Exception and to point readers at the COPYING3 and
1510         COPYING3.RUNTIME files and the FSF's license web page.
1511         * alloc.c: Likewise.
1512         * barrier.c: Likewise.
1513         * config/bsd/proc.c: Likewise.
1514         * config/linux/affinity.c: Likewise.
1515         * config/linux/alpha/futex.h: Likewise.
1516         * config/linux/bar.c: Likewise.
1517         * config/linux/bar.h: Likewise.
1518         * config/linux/ia64/futex.h: Likewise.
1519         * config/linux/ia64/mutex.h: Likewise.
1520         * config/linux/lock.c: Likewise.
1521         * config/linux/mips/futex.h: Likewise.
1522         * config/linux/mutex.c: Likewise.
1523         * config/linux/mutex.h: Likewise.
1524         * config/linux/powerpc/futex.h: Likewise.
1525         * config/linux/proc.c: Likewise.
1526         * config/linux/ptrlock.c: Likewise.
1527         * config/linux/ptrlock.h: Likewise.
1528         * config/linux/s390/futex.h: Likewise.
1529         * config/linux/sem.c: Likewise.
1530         * config/linux/sem.h: Likewise.
1531         * config/linux/sparc/futex.h: Likewise.
1532         * config/linux/wait.h: Likewise.
1533         * config/linux/x86/futex.h: Likewise.
1534         * config/mingw32/proc.c: Likewise.
1535         * config/mingw32/time.c: Likewise.
1536         * config/posix/affinity.c: Likewise.
1537         * config/posix/bar.c: Likewise.
1538         * config/posix/bar.h: Likewise.
1539         * config/posix/lock.c: Likewise.
1540         * config/posix/mutex.h: Likewise.
1541         * config/posix/proc.c: Likewise.
1542         * config/posix/ptrlock.h: Likewise.
1543         * config/posix/sem.c: Likewise.
1544         * config/posix/sem.h: Likewise.
1545         * config/posix/time.c: Likewise.
1546         * config/posix95/lock.c: Likewise.
1547         * critical.c: Likewise.
1548         * env.c: Likewise.
1549         * error.c: Likewise.
1550         * fortran.c: Likewise.
1551         * iter_ull.c: Likewise.
1552         * libgomp.h: Likewise.
1553         * libgomp_f.h.in: Likewise.
1554         * libgomp_g.h: Likewise.
1555         * loop.c: Likewise.
1556         * loop_ull.c: Likewise.
1557         * omp.h.in: Likewise.
1558         * omp_lib.f90.in: Likewise.
1559         * omp_lib.h.in: Likewise.
1560         * ordered.c: Likewise.
1561         * parallel.c: Likewise.
1562         * sections.c: Likewise.
1563         * single.c: Likewise.
1564         * task.c: Likewise.
1565         * team.c: Likewise.
1566         * work.c: Likewise.
1568 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1570         * testsuite/config/default.exp: Change copyright header to refer to
1571         version 3 of the GNU General Public License and to point readers
1572         at the COPYING3 file and the FSF's license web page.
1574 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1576         PR middle-end/39573
1577         * libgomp.c++/pr39573.C: New test.
1579 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1581         PR other/39591
1582         * testsuite/libgomp.c/pr39591-1.c: New test.
1583         * testsuite/libgomp.c/pr39591-2.c: New test.
1584         * testsuite/libgomp.c/pr39591-3.c: New test.
1586 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
1588         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1589         * testsuite/libgomp.c/atomic-6.c: Ditto.
1591 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
1593         PR c/39495
1594         * testsuite/libgomp.c/loop-12.c: New test.
1595         * testsuite/libgomp.c/loop-11.c: New test.
1596         * testsuite/libgomp.c++/loop-11.C: New test.
1597         * testsuite/libgomp.c++/loop-12.C: New test.
1598         * testsuite/libgomp.c++/for-8.C: New test.
1600 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1602         * configure: Regenerate.
1604 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
1606         PR middle-end/39154
1607         * testsuite/libgomp.c/pr39154.c: New test.
1609 2009-01-30  Ian Lance Taylor  <iant@google.com>
1611         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1612         libgomp_ld_is_gold.  Get gold version number.
1613         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1614         * configure: Rebuild.
1616 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1618         * testsuite/lib/libgomp.exp: Add -B option for targets that
1619         use libgfortran.a%s in their specs.
1621 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
1623         PR libgomp/38086
1624         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1625         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1626         HAVE_AS_SYMVER_DIRECTIVE is not defined.
1627         * configure: Regenerated.
1628         * config.h.in: Likewise.
1630 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
1632         PR c++/38650
1633         * testsuite/libgomp.c/pr38650.c: New test.
1634         * testsuite/libgomp.c++/pr38650.C: New test.
1636 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
1638         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1640 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
1642         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1644 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1646         * configure: Regenerate.
1648 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
1650         PR middle-end/36802
1651         * testsuite/libgomp.c/pr36802-1.c: New test.
1652         * testsuite/libgomp.c/pr36802-2.c: New test.
1653         * testsuite/libgomp.c/pr36802-3.c: New test.
1655 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
1657         PR libgomp/38270
1658         * config/linux/powerpc/mutex.h: New.
1660 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
1662         PR c++/38257
1663         * testsuite/libgomp.c++/for-7.C: New test.
1665         PR c++/38348
1666         * testsuite/libgomp.c++/for-6.C: New test.
1668 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1670         PR testsuite/28870
1671         * testsuite/lib/libgomp.exp: Include new timeout library files.
1672         (libgomp_target_compile): Set timeout value from new proc.
1674 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
1676         PR libgomp/37938
1677         * config/linux/ia64/mutex.h: New.
1679 2008-11-04  Tobias Burnus  <burnus@net-b.de>
1681         PR libgomp/37935
1682         * libgomp.texi (Runtime library routines, environment variables):
1683         Update for OpenMP version 3.0.
1685 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1686             Steve Ellcey  <sje@cup.hp.com>
1688         * configure: Regenerate for new libtool.
1689         * Makefile.in: Ditto.
1690         * testsuite/Makefile.in: Ditto.
1692 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
1693             Andreas Tobler  <a.tobler@schweiz.org>
1695         * config/bsd/proc.c: New file.
1696         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1697         * configure.ac: Check for header <sys/sysctl.h>
1698         * configure: Regenerate.
1699         * config.h.in: Likewise.
1701 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1703         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1705 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1707         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1708         * Makefile.in: Regenerated.
1709         * testsuite/Makefile.in: Regenerated.
1711 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
1713         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1714         depend on blddir if blddir exists.
1715         (libgomp_target_compile): Likewise.
1716         * testsuite/libgomp.c++/c++.exp: Likewise.
1717         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1719 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1721         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
1722         Do not list GPL as Invariant Section.
1724 2008-07-28  Ilie Garbacea  <ilie@mips.com>
1725             Chao-ying Fu  <fu@mips.com>
1727         * configure.tgt: Enable futex for MIPS.
1728         * config/linux/mips/futex.h: New file.
1730 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
1732         * team.c (gomp_team_end): Free team immediately if it has
1733         just one thread.
1735 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
1737         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1738         * testsuite/libgomp.fortran/fortran.exp: Same.
1739         * testsuite/libgomp.c/c.exp: Same.
1740         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1741         directory to library path first.
1743 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
1745         * env.c (parse_stacksize): Add cast to avoid warning.
1746         (parse_spincount): Likewise.
1748 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1750         * testsuite/libgomp.c/loop-10.c: New test.
1751         * libgomp.c/loop-3.c (main): Add lastprivate clause.
1752         * libgomp.c++/loop-6.C (main): Likewise.
1754         PR debug/36617
1755         * testsuite/libgomp.c/debug-1.c: New test.
1757 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1759         * testsuite/libgomp.c/nqueens-1.c: New test.
1761         PR c++/36523
1762         * testsuite/libgomp.c++/task-7.C: New function.
1764 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1766         * configure: Regenerate.
1768 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1770         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1771         mutex when HAVE_SYNC_BUILTINS isn't defined.
1773 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1775         * libgomp.texi (omp_test_lock): Fix typo.
1777 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1779         * omp_lib.f90.in: Add "implicit none".
1781 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1783         PR middle-end/36506
1784         * testsuite/libgomp.c/reduction-5.c: New test.
1786 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1788         * libgomp.h (struct gomp_task): Add in_tied_task field.
1789         * task.c (gomp_init_task): Initialize it.
1790         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1791         unconditionally.  Don't call gomp_team_barrier_wake if
1792         current task is implicit or if(0) from implicit and number of
1793         running tasks is equal to nthreads - 1.
1795         PR libgomp/36471
1796         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1797         omp_get_team_size_8): Fix pastos.
1799         PR libgomp/36469
1800         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1801         * configure: Regenerated.
1802         * config.h.in: Regenerated.
1803         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1804         defined.
1806 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1808         PR bootstrap/36452
1809         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1810         (GOMP_loop_ull_dynamic_start): Likewise.
1811         (GOMP_loop_ull_guided_start): Likewise.
1812         (GOMP_loop_ull_ordered_static_start): Likewise.
1813         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1814         (GOMP_loop_ull_ordered_guided_start): Likewise.
1816 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1817             Richard Henderson  <rth@redhat.com>
1818             Ulrich Drepper  <drepper@redhat.com>
1819             Jakob Blomer  <jakob.blomer@ira.uka.de>
1821         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1822         Substitute also OMP_*LOCK_25*.
1823         * configure: Regenerated.
1824         * config.h.in: Regenerated.
1825         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1826         ptrlock.c and task.c.
1827         * Makefile.in: Regenerated.
1828         * testsuite/Makefile.in: Regenerated.
1829         * task.c: New file.
1830         * loop_ull.c: New file.
1831         * iter_ull.c: New file.
1832         * libgomp.h: Include ptrlock.h.
1833         (enum gomp_task_kind): New type.
1834         (struct gomp_team): Add task_lock, task_queue, task_count,
1835         task_running_count, single_count fields.  Add
1836         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1837         Remove work_share_lock, generation_mask,
1838         oldest_live_gen, num_live_gen and init_work_shares fields, add
1839         work work_share_list_alloc, work_share_list_free and work_share_chunk
1840         fields.  Change work_shares from pointer to pointers into an array.
1841         Change ordered_release field into gomp_sem_t ** from flexible array
1842         member.  Add implicit_task and initial_work_shares fields.
1843         Move close to the end of the struct.
1844         (struct gomp_team_state): Add single_count, last_work_share,
1845         active_level and level fields, remove work_share_generation.
1846         (gomp_barrier_handle_tasks): New prototype.
1847         (gomp_finish_task): New inline function.
1848         (struct gomp_work_share): Move chunk_size, end, incr into
1849         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1850         next_ll fields.  Reshuffle fields.  Add next_alloc,
1851         next_ws, next_free and inline_ordered_team_ids fields, change
1852         ordered_team_ids into pointer from flexible array member.
1853         Add mode field.  Put lock and next into a different cache line
1854         from most of the write-once fields.
1855         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1856         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1857         gomp_iter_ull_guided_next): New prototypes.
1858         (gomp_new_icv): New prototype.
1859         (struct gomp_thread): Add thread_pool and task fields.
1860         (struct gomp_thread_pool): New type.
1861         (gomp_new_team): New prototype.
1862         (gomp_team_start): Change type of last argument.
1863         (gomp_new_work_share): Removed.
1864         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1865         (gomp_work_share_init_done): New static inline.
1866         (gomp_throttled_spin_count_var, gomp_available_cpus,
1867         gomp_managed_threads): New extern decls.
1868         (gomp_init_task): New prototype.
1869         (gomp_spin_count_var): New extern var decl.
1870         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1871         or no alias support, or if not PIC.
1872         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1873         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1874         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1875         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1876         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1877         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1878         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1879         gomp_test_nest_lock_25): New prototypes.
1880         (omp_lock_symver, strong_alias): Define.
1881         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1882         decls.
1883         (gomp_end_task): New.
1884         (struct gomp_task_icv, gomp_global_icv): New.
1885         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1886         (struct gomp_task): New.
1887         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1888         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1889         (gomp_icv): New.
1890         (gomp_schedule_type): Reorder enum to match
1891         omp_sched_t.
1892         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1893         fields.
1894         (gomp_thread_start): Add gomp_team_barrier_wait call.
1895         For non-nested case remove clearing of docked thread thr fields.
1896         Use pool fields instead of global gomp_* variables.  Use
1897         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1898         Create tasks for each member thread.
1899         (free_team): Only destroy team barrier, task_lock here and free it.
1900         (gomp_free_thread): Free last_team if non-NULL.
1901         (gomp_team_end): Call gomp_team_barrier_wait instead of
1902         gomp_barrier_wait.  For nested case call one extra
1903         gomp_barrier_wait.  Move here some destruction from free_team.
1904         Call free_team on pool->last_team if any, rather than freeing
1905         current team.  Destroy work_share_list_free_lock ifndef
1906         HAVE_SYNC_BUILTINS.
1907         (gomp_new_icv): New function.
1908         (gomp_threads, gomp_threads_size, gomp_threads_used,
1909         gomp_threads_dock): Removed.
1910         (gomp_thread_destructor): New variable.
1911         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1912         functions.
1913         (gomp_team_start): Create new pool if current thread doesn't have
1914         one.  Use pool fields instead of global gomp_* variables.
1915         Initialize thread_pool field for new threads.  Clear single_count.
1916         Change last argument from ws to team, don't create
1917         new team, set ts.work_share to &team->work_shares[0] and clear
1918         ts.last_work_share.  Don't clear ts.work_share_generation.
1919         If number of threads changed, adjust atomically gomp_managed_threads.
1920         Use gomp_init_task instead of gomp_new_task,
1921         set thr->task to the corresponding implicit_task array entry.
1922         Create tasks for each member thread.  Initialize ts.level.
1923         (initialize_team): Call pthread_key_create on
1924         gomp_thread_destructor.
1925         (team_destructor): New function.
1926         (new_team): Removed.
1927         (gomp_new_team): New function.
1928         (free_team): Free gomp_work_share blocks chained through next_alloc,
1929         instead of freeing work_shares and destroying work_share_lock.
1930         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1931         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1932         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1933         of gomp_barrier_wait.
1934         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1935         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1936         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1937         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1938         of gomp_barrier_wait.
1939         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1940         gomp_work_share_init_done if gomp_work_share_start returned true.
1941         Don't unlock ws->lock.
1942         * work.c: Include stddef.h.
1943         (free_work_share): Use work_share_list_free_lock instead
1944         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1945         Call gomp_fini_work_share and then either free ws if orphaned, or
1946         put it into work_share_list_free list of the current team.
1947         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1948         functions.
1949         (gomp_work_share_start, gomp_work_share_end,
1950         gomp_work_share_end_nowait): Rewritten.
1951         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1952         (openmp_version): Set to 200805.
1953         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1954         omp_sched_guided, omp_sched_auto): New parameters.
1955         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1956         omp_set_max_active_levels, omp_get_max_active_levels,
1957         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1958         omp_get_active_level): New interfaces.
1959         * omp_lib.h.in (openmp_version): Set to 200805.
1960         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1961         omp_sched_guided, omp_sched_auto): New parameters.
1962         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1963         omp_set_max_active_levels, omp_get_max_active_levels,
1964         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1965         omp_get_active_level): New externals.
1966         * loop.c: Include limits.h.
1967         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1968         GFS_AUTO.
1969         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1970         Likewise.  Use gomp_icv.
1971         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1972         ts.static_trip here.
1973         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1974         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1975         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1976         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1977         don't unlock ws->lock, otherwise lock it.
1978         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1979         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1980         (gomp_parallel_loop_start): Call gomp_new_team instead of
1981         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1982         Adjust gomp_team_start caller.  Pass 0 as second argument to
1983         gomp_resolve_num_threads.
1984         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1985         If adding ws->chunk_size nthreads + 1 times after end won't
1986         overflow, set ws->mode to 1.
1987         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1988         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1989         GOMP_loop_ull_ordered_static_start,
1990         GOMP_loop_ull_ordered_dynamic_start,
1991         GOMP_loop_ull_ordered_guided_start,
1992         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1993         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1994         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1995         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1996         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1997         prototypes.
1998         * libgomp.map: Export lock routines also @@OMP_2.0.
1999         (GOMP_loop_ordered_dynamic_first,
2000         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2001         GOMP_loop_ordered_static_first): Remove.
2002         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2003         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2004         GOMP_loop_ull_ordered_dynamic_next,
2005         GOMP_loop_ull_ordered_dynamic_start,
2006         GOMP_loop_ull_ordered_guided_next,
2007         GOMP_loop_ull_ordered_guided_start,
2008         GOMP_loop_ull_ordered_runtime_next,
2009         GOMP_loop_ull_ordered_runtime_start,
2010         GOMP_loop_ull_ordered_static_next,
2011         GOMP_loop_ull_ordered_static_start,
2012         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2013         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2014         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2015         (omp_set_schedule, omp_get_schedule,
2016         omp_get_thread_limit, omp_set_max_active_levels,
2017         omp_get_max_active_levels, omp_get_level,
2018         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2019         omp_set_schedule_, omp_set_schedule_8_,
2020         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2021         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2022         omp_get_max_active_levels_, omp_get_level_,
2023         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2024         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2025         New exports @@OMP_3.0.
2026         * omp.h.in (omp_sched_t): New type.
2027         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2028         omp_set_max_active_levels, omp_get_max_active_levels,
2029         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2030         omp_get_active_level): New prototypes.
2031         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2032         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2033         gomp_thread_limit_var, gomp_remaining_threads_count,
2034         gomp_remaining_threads_lock): New variables.
2035         (parse_spincount): New function.
2036         (initialize_env): Call gomp_init_num_threads unconditionally.
2037         Initialize gomp_available_cpus.  Call parse_spincount,
2038         initialize gomp_{,throttled_}spin_count_var
2039         depending on presence and value of OMP_WAIT_POLICY and
2040         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
2041         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2042         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
2043         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
2044         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
2045         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2046         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2047         (gomp_global_icv): New.
2048         (parse_schedule): Use it.  Parse "auto".
2049         (omp_set_num_threads): Use gomp_icv.
2050         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2051         Likewise.
2052         (omp_get_max_threads): Move from parallel.c.
2053         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2054         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2055         add ialias.
2056         (parse_stacksize, parse_wait_policy): New functions.
2057         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2058         both wrappers for compatibility and new locks.
2059         (omp_set_schedule, omp_get_schedule,
2060         omp_get_thread_limit, omp_set_max_active_levels,
2061         omp_get_max_active_levels, omp_get_level,
2062         omp_get_ancestor_thread_num, omp_get_team_size,
2063         omp_get_active_level): New ialias_redirect.
2064         (omp_set_schedule_, omp_set_schedule_8_,
2065         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2066         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2067         omp_get_max_active_levels_, omp_get_level_,
2068         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2069         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2070         New functions.
2071         * parallel.c: Include limits.h.
2072         (gomp_resolve_num_threads): Add count argument.  Rewritten.
2073         (GOMP_parallel_start): Call gomp_new_team and pass that as last
2074         argument to gomp_team_start.  Pass 0 as second argument to
2075         gomp_resolve_num_threads.
2076         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2077         if gomp_thread_limit_var != ULONG_MAX.
2078         (omp_in_parallel): Implement using ts.active_level.
2079         (omp_get_max_threads): Move to env.c.
2080         (omp_get_level, omp_get_ancestor_thread_num,
2081         omp_get_team_size, omp_get_active_level): New functions,
2082         add ialias.
2083         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2084         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
2085         gomp_iter_dynamic_next instead of the _locked variant and don't take
2086         lock around it, otherwise acquire it before calling
2087         gomp_iter_dynamic_next_locked.
2088         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2089         gomp_iter_dynamic_next instead of the _locked variant and don't take
2090         lock around it.
2091         (GOMP_parallel_sections_start): Call gomp_new_team instead of
2092         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
2093         Adjust gomp_team_start caller.  Pass count as second argument to
2094         gomp_resolve_num_threads, don't adjust num_threads after the call.
2095         Use gomp_icv.
2096         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2097         ws->chunk_size by incr.
2098         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
2099         code.
2100         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2101         types.
2102         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2103         (omp_check_defines): Check even the compat defines.
2104         * config/linux/ptrlock.c: New file.
2105         * config/linux/ptrlock.h: New file.
2106         * config/linux/wait.h: New file.
2107         * config/posix/ptrlock.c: New file.
2108         * config/posix/ptrlock.h: New file.
2109         * config/linux/bar.h (gomp_team_barrier_wait,
2110         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2111         (gomp_team_barrier_set_task_pending,
2112         gomp_team_barrier_clear_task_pending,
2113         gomp_team_barrier_set_waiting_for_tasks,
2114         gomp_team_barrier_waiting_for_tasks,
2115         gomp_team_barrier_done): New inlines.
2116         (gomp_barrier_t): Rewritten.
2117         (gomp_barrier_state_t): New typedef.
2118         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2119         gomp_barrier_wait_start): Rewritten.
2120         (gomp_barrier_wait_end): Change second argument to
2121         gomp_barrier_state_t.
2122         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2123         inlines.
2124         * config/linux/bar.c: Include wait.h instead of libgomp.h and
2125         futex.h.
2126         (gomp_barrier_wait_end): Rewritten.
2127         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2128         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2129         * config/posix/bar.h (gomp_barrier_t): Add generation field.
2130         (gomp_barrier_state_t): New typedef.
2131         (gomp_team_barrier_wait,
2132         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2133         (gomp_barrier_wait_start): Or all but low 2 bits from generation
2134         into the return value.  Return gomp_barrier_state_t.
2135         (gomp_team_barrier_set_task_pending,
2136         gomp_team_barrier_clear_task_pending,
2137         gomp_team_barrier_set_waiting_for_tasks,
2138         gomp_team_barrier_waiting_for_tasks,
2139         gomp_team_barrier_done): New inlines.
2140         (gomp_barrier_wait_end): Change second argument to
2141         gomp_barrier_state_t.
2142         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2143         inlines.
2144         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2145         (gomp_barrier_wait_end): Change second argument to
2146         gomp_barrier_state_t.
2147         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2148         gomp_team_barrier_wake): New functions.
2149         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2150         futex.h.
2151         (gomp_futex_wake, gomp_futex_wait): New variables.
2152         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2153         * config/linux/lock.c: Rewrite to make locks task owned,
2154         for backwards compatibility provide the old entrypoints
2155         if symbol versioning.  Include wait.h instead of libgomp.h and
2156         futex.h.
2157         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2158         * config/posix95/lock.c: Rewrite to make locks task owned,
2159         for backwards compatibility provide the old entrypoints
2160         if symbol versioning.
2161         * config/posix/lock.c: Rewrite to make locks task owned,
2162         for backwards compatibility provide the old entrypoints
2163         if symbol versioning.
2164         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2165         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2166         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2167         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2168         (sys_futex0): Return error code.
2169         (futex_wake, futex_wait): If ENOSYS was returned, clear
2170         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2171         (cpu_relax, atomic_write_barrier): New static inlines.
2172         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2173         (futex_wake, futex_wait): If ENOSYS was returned, clear
2174         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2175         (cpu_relax, atomic_write_barrier): New static inlines.
2176         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2177         (sys_futex0): Return error code.
2178         (futex_wake, futex_wait): If ENOSYS was returned, clear
2179         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2180         (cpu_relax, atomic_write_barrier): New static inlines.
2181         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2182         (sys_futex0): Return error code.
2183         (futex_wake, futex_wait): If ENOSYS was returned, clear
2184         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2185         (cpu_relax, atomic_write_barrier): New static inlines.
2186         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2187         (sys_futex0): Return error code.
2188         (futex_wake, futex_wait): If ENOSYS was returned, clear
2189         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2190         (cpu_relax, atomic_write_barrier): New static inlines.
2191         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2192         (sys_futex0): Return error code.
2193         (futex_wake, futex_wait): If ENOSYS was returned, clear
2194         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2195         (cpu_relax, atomic_write_barrier): New static inlines.
2196         * config/linux/sem.c: Include wait.h instead of libgomp.h and
2197         futex.h.
2198         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2199         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2200         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2201         types.
2202         (omp_nest_lock_t): Change owner into void *, add lock field.
2203         * config/posix95/omp-lock.h: Include semaphore.h.
2204         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2205         (omp_lock_t): Use sem_t instead of mutex if semaphores
2206         aren't broken.
2207         (omp_nest_lock_t): Likewise.  Change owner to void *.
2208         * config/posix/omp-lock.h: Include semaphore.h.
2209         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2210         (omp_lock_t): Use sem_t instead of mutex if semaphores
2211         aren't broken.
2212         (omp_nest_lock_t): Likewise.  Add owner field.
2214 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2216         * testsuite/libgomp.c/collapse-1.c: New test.
2217         * testsuite/libgomp.c/collapse-2.c: New test.
2218         * testsuite/libgomp.c/collapse-3.c: New test.
2219         * testsuite/libgomp.c/icv-1.c: New test.
2220         * testsuite/libgomp.c/icv-2.c: New test.
2221         * testsuite/libgomp.c/lib-2.c: New test.
2222         * testsuite/libgomp.c/lock-1.c: New test.
2223         * testsuite/libgomp.c/lock-2.c: New test.
2224         * testsuite/libgomp.c/lock-3.c: New test.
2225         * testsuite/libgomp.c/loop-4.c: New test.
2226         * testsuite/libgomp.c/loop-5.c: New test.
2227         * testsuite/libgomp.c/loop-6.c: New test.
2228         * testsuite/libgomp.c/loop-7.c: New test.
2229         * testsuite/libgomp.c/loop-8.c: New test.
2230         * testsuite/libgomp.c/loop-9.c: New test.
2231         * testsuite/libgomp.c/nested-3.c: New test.
2232         * testsuite/libgomp.c/nestedfn-6.c: New test.
2233         * testsuite/libgomp.c/sort-1.c: New test.
2234         * testsuite/libgomp.c/task-1.c: New test.
2235         * testsuite/libgomp.c/task-2.c: New test.
2236         * testsuite/libgomp.c/task-3.c: New test.
2237         * testsuite/libgomp.c/task-4.c: New test.
2238         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2239         to C++ testsuite default compiler options.
2240         * testsuite/libgomp.c++/collapse-1.C: New test.
2241         * testsuite/libgomp.c++/collapse-2.C: New test.
2242         * testsuite/libgomp.c++/ctor-10.C: New test.
2243         * testsuite/libgomp.c++/for-1.C: New test.
2244         * testsuite/libgomp.c++/for-2.C: New test.
2245         * testsuite/libgomp.c++/for-3.C: New test.
2246         * testsuite/libgomp.c++/for-4.C: New test.
2247         * testsuite/libgomp.c++/for-5.C: New test.
2248         * testsuite/libgomp.c++/loop-8.C: New test.
2249         * testsuite/libgomp.c++/loop-9.C: New test.
2250         * testsuite/libgomp.c++/loop-10.C: New test.
2251         * testsuite/libgomp.c++/task-1.C: New test.
2252         * testsuite/libgomp.c++/task-2.C: New test.
2253         * testsuite/libgomp.c++/task-3.C: New test.
2254         * testsuite/libgomp.c++/task-4.C: New test.
2255         * testsuite/libgomp.c++/task-5.C: New test.
2256         * testsuite/libgomp.c++/task-6.C: New test.
2257         * testsuite/libgomp.fortran/allocatable1.f90: New test.
2258         * testsuite/libgomp.fortran/allocatable2.f90: New test.
2259         * testsuite/libgomp.fortran/allocatable3.f90: New test.
2260         * testsuite/libgomp.fortran/allocatable4.f90: New test.
2261         * testsuite/libgomp.fortran/collapse1.f90: New test.
2262         * testsuite/libgomp.fortran/collapse2.f90: New test.
2263         * testsuite/libgomp.fortran/collapse3.f90: New test.
2264         * testsuite/libgomp.fortran/collapse4.f90: New test.
2265         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2266         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2267         * testsuite/libgomp.fortran/lib4.f90: New test.
2268         * testsuite/libgomp.fortran/lock-1.f90: New test.
2269         * testsuite/libgomp.fortran/lock-2.f90: New test.
2270         * testsuite/libgomp.fortran/nested1.f90: New test.
2271         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2272         * testsuite/libgomp.fortran/strassen.f90: New test.
2273         * testsuite/libgomp.fortran/tabs1.f90: New test.
2274         * testsuite/libgomp.fortran/tabs2.f: New test.
2275         * testsuite/libgomp.fortran/task1.f90: New test.
2276         * testsuite/libgomp.fortran/task2.f90: New test.
2277         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2278         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2279         * testsuite/libgomp.c/pr26943-2.c: Likewise.
2280         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2281         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2283 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
2285         PR c++/36308
2286         * testsuite/libgomp.c++/ctor-11.C: New test.
2287         * testsuite/libgomp.c++/ctor-12.C: New test.
2289 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2291         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2293 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2295         PR middle-end/36106
2296         * testsuite/libgomp.c/atomic-5.c: New test.
2297         * testsuite/libgomp.c/atomic-6.c: New test.
2298         * testsuite/libgomp.c/autopar-1.c: New test.
2300 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2302         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2303         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2304         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2305         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2306         * configure: Regenerate.
2307         * Makefile.in, testsuite/Makefile.in: Likewise.
2309 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2311         PR bootstrap/35457
2312         * aclocal.m4: Regenerate.
2313         * configure: Regenerate.
2315 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2317         PR middle-end/35611
2318         * testsuite/libgomp.c/atomic-4.c: New test.
2320         PR libgomp/35625
2321         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2322         (gomp_iter_guided_next): Likewise.
2323         * testsuite/libgomp.c/pr35625.c: New test.
2325 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2327         * aclocal.m4: Regenerate.
2328         * configure: Likewise.
2329         * Makefile.in: Likewise.
2330         * testsuite/Makefile.in: Likewise.
2332 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2334         PR middle-end/35185
2335         * testsuite/libgomp.c++/pr35185.C: New test.
2337 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2339         PR middle-end/35549
2340         * testsuite/libgomp.c/pr35549.c: New test.
2342 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2344         * testsuite/libgomp.c/atomic-3.c: New test.
2346 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2348         PR fortran/33197
2349         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2350         .F08 file suffixes.
2352 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
2354         PR libgomp/33131
2355         * configure.ac: Add ACX_HEADER_STRING.
2356         * env.c: Include strings.h.
2357         * aclocal.m4: Regenerate.
2358         * config.h.in: Regenerate.
2359         * configure: Regenerate.
2360         * Makefile.in: Regenerate.
2361         * testsuite/Makefile.in: Regenerate.
2363 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2365         PR middle-end/35196
2366         * testsuite/libgomp.c/pr35196.c: New test.
2368         PR middle-end/35130
2369         * testsuite/libgomp.fortran/pr35130.f90: New test.
2370         * testsuite/libgomp.c/pr35130.c: New test.
2372 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2374         PR middle-end/33880
2375         * testsuite/libgomp.c/pr33880.c: New test.
2376         * testsuite/libgomp.fortran/pr33880.f90: New test.
2378 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2380         * configure: Regenerate.
2382 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2384         * configure.ac: Move futex checking into ../config/futex.m4.
2385         * configure: Rebuilt.
2386         * aclocal.m4: Rebuilt.
2387         * Makefile.in: Rebuilt.
2389         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2390         2007-10-15 ../config/tls.m4 change.
2392 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
2394         PR c++/34513
2395         * testsuite/libgomp.c/pr34513.c: New test.
2396         * testsuite/libgomp.c++/pr34513.C: New test.
2398 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
2400         PR target/32765
2401         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2403 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
2405         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
2407 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
2409         * testsuite/libgomp.c/private-1.c: New test.
2411 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
2412             Paolo Bonzini  <bonzini@gnu.org>
2414         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
2415         instead of 'VPATH ='.
2416         * Makefile.in: Regenerate.
2418 2007-11-23  Matthias Klose  <doko@ubuntu.com>
2420         * configure.ac: Adjust makeinfo version check.
2421         * configure: Regenerate.
2423 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
2425         PR fortran/34020
2426         * testsuite/libgomp.fortran/pr34020.f90: New test.
2428 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
2430         PR c++/33894
2431         * testsuite/libgomp.c++/atomic-1.C: New test.
2433 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
2435         PR libgomp/33275
2436         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2437         Make x and y integers rather than (implicit) reals.  Add private (j)
2438         clause to the last omp parallel.
2440 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
2442         * configure: Regenerate following changes to ../config/tls.m4.
2444 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
2446         * testsuite/libgomp.fortran/stack.f90: New test.
2448 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
2450         * config/mingw32/proc.c: New file.
2452 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
2454         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2455         (main): Use __get_cpuid to get i386 target fetaures.
2456         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2457         (main): Use __get_cpuid to get x86_64 target fetaures.
2459 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
2461         PR target/32765
2462         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2463         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2465 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2467         PR fortran/32550
2468         * testsuite/libgomp.fortran/pr32550.f90: New test.
2469         * testsuite/libgomp.fortran/crayptr2.f90: New test.
2471 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2473         * aclocal.m4: Regenerated.
2475 2007-07-05  Tobias Burnus  <burnus@net-b.de>
2477         PR fortran/32359
2478         * testsuite/libgomp.fortran/pr32359.f90: New.
2480 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2482         PR libgomp/32468
2483         * sections.c (GOMP_parallel_sections_start): Only decrease
2484         number of threads to COUNT if dyn_var is true.
2485         * testsuite/libgomp.c/pr32468.c: New test.
2487 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2489         PR libgomp/26308
2490         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2492 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2494         PR middle-end/32362
2495         * testsuite/libgomp.c/pr32362-1.c: New test.
2496         * testsuite/libgomp.c/pr32362-2.c: New test.
2497         * testsuite/libgomp.c/pr32362-3.c: New test.
2499 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2501         * team.c (gomp_team_start): Fix setting up thread_attr
2502         stack size.
2504 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2506         * configure: Regenerate.
2508 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2510         * Makefile.in: Regenerate.
2511         * configure: Regenerate.
2512         * aclocal.m4: Regenerate.
2513         * testsuite/Makefile.in: Regenerate.
2515 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2517         * config/linux/proc.c: New file.
2519         PR libgomp/28482
2520         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2522 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
2524         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2526 2007-04-16  Matthias Klose  <doko@debian.org>
2528         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2529         flags if not building with -m64.
2530         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2531         flag for i?86-*-* targets, if current target matches -m64.
2533 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2535         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2536         * Makefile.in: Regenerate.
2538 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2540         PR testsuite/31369
2541         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2542         ld_library_path.
2543         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2545 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2547         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2548         decls.
2549         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2550         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2551         (parse_affinity): New function.
2552         (initialize_env): Call it and gomp_init_affinity.
2553         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2554         create new pthread_attr_t and call gomp_init_thread_affinity
2555         on it for each thread before passing the attribute to pthread_create.
2556         * config/linux/affinity.c: New file.
2557         * config/posix/affinity.c: New file.
2558         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2559         * configure: Rebuilt.
2560         * config.h.in: Rebuilt.
2561         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2562         * Makefile.in: Rebuilt.
2564 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2566         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2567         *-*-darwin*.
2568         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2569         and use it if found.
2571 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2573         * testsuite/config/default.exp: New file.
2574         * testsuite/lib/libgomp.exp: New file.
2575         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2576         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2577         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2578         (libgomp_load): Remove.
2579         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2580         always_ld_library_path, not ld_library_path.  Set additional_flags
2581         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2582         (target_compile): Do not call libgomp_init.  Append lang_library_path
2583         and lang_link_flags to options.
2584         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
2585         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
2586         here.
2587         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2588         always_ld_library_path.  Set LD_LIBRARY_PATH here.
2589         * testsuite/libgomp.fortran/fortran.exp: Ditto.
2590         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2591         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2592         CX8 flag.
2593         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2594         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2595         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2596         * testsuite/libgomp.c/pr29947-1.c: Ditto.
2597         * testsuite/libgomp.c/atomic-10.c: Ditto.
2599 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2601         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2602         dg-final cleanup-modules line.
2603         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2604         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2605         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2606         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2607         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2608         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2609         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2611 2007-03-18  Andreas Schwab  <schwab@suse.de>
2613         * acinclude.m4: Adjust regular expression for ld version
2614         extraction.
2615         * configure: Regenerate.
2617 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2619         * Makefile.am: Add install-pdf target as copied from
2620         automake v1.10 rules.
2621         * Makefile.in: Regenerate
2623 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
2625         PR libgomp/28486
2626         * configure: Regenerate.
2628         PR c++/30703
2629         * testsuite/libgomp.c++/pr30703.C: New test.
2631 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2633         Revert:
2634         2006-07-05  Eric Christopher  <echristo@apple.com>
2635         * configure.ac: Depend addition of -pthread on host OS.
2636         * configure: Regenerate.
2638 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2640         * libgomp.texi: Fix spacing after abbreviations.
2642 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
2644         PR libgomp/30546
2645         * configure.ac: Add check for makeinfo
2646         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2647         if an appropiate version of makeinfo is found.
2648         * aclocal.m4: Regenerated.
2649         * configure: Regenerated.
2650         * Makefile.in: Regenerated.
2651         * testsuite/Makefile.in: Regenerated.
2653 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
2655         PR libgomp/30540
2656         * libgomp.texi: More about implementation-dependent settings.
2658 2007-01-26  Tobias Burnus  <burnus@net-b.de>
2660         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2662 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2664         PR middle-end/30494
2665         * testsuite/libgomp.c/pr30494.c: New test.
2667 2007-01-15  Tom Tromey  <tromey@redhat.com>
2669         * configure: Rebuilt.
2670         * configure.ac: Fixed comment.
2672 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
2674         * libgomp.texi: Document implementation specific default values of
2675         environment variables.
2677 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
2679         PR libgomp/28209
2680         * libgomp.texi: New file.
2681         * configure.ac: Add --enable-generated-files-in-srcdir option.
2682         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2683         files to srcdir.
2684         * Makefile.in: Regenerated.
2685         * config.h.in: Regenerated.
2686         * testsuite/Makefile.in: Regenerated.
2687         * NOTES: Removed.
2689 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
2691         PR libgomp/29949
2692         * env.c (omp_set_num_threads): Set illegal thread count to 1.
2694 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2696         * configure: Regenerate.
2698 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2700         PR libgomp/29947
2701         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
2702         start if there shouldn't be any loop iterations.
2703         (gomp_loop_ordered_static_start): Remove start == end test.
2704         * testsuite/libgomp.c/pr29947-1.c: New test.
2705         * testsuite/libgomp.c/pr29947-2.c: New test.
2707 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2709         * configure.tgt: Force initial-exec TLS model on Linux only.
2711 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
2713         * configure: Regenerated.
2715 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
2717         * env.c (parse_schedule): Reject out of range values.
2718         (parse_unsigned_long): Reject out of range, negative or zero values.
2720 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2722         PR fortran/29629
2723         * testsuite/libgomp.fortran/pr29629.f90: New test.
2725 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2727         PR libgomp/29494
2728         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2729         * config/posix95: New directory.
2730         * config/posix95/omp-lock.h: New file.
2731         * config/posix95/lock.c: Likewise.
2733 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
2735         * aclocal.m4: Regenerate.
2736         * configure: Regenerate.
2738 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2740         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2741         '<' to '<='.
2743 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
2745         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2746         test.
2747         * configure: Regenerate.
2748         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2750 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
2752         PR middle-end/25261
2753         PR middle-end/28790
2754         * testsuite/libgomp.c/nestedfn-4.c: New test.
2755         * testsuite/libgomp.c/nestedfn-5.c: New test.
2756         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2758         PR fortran/29097
2759         * testsuite/libgomp.fortran/condinc1.f: New test.
2760         * testsuite/libgomp.fortran/condinc2.f: New test.
2761         * testsuite/libgomp.fortran/condinc3.f90: New test.
2762         * testsuite/libgomp.fortran/condinc4.f90: New test.
2763         * testsuite/libgomp.fortran/condinc1.inc: New file.
2765 2006-09-18  Tom Tromey  <tromey@redhat.com>
2767         * configure: Rebuilt.
2769 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2771         PR c/28768
2772         PR preprocessor/14634
2773         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2774         to AC_DEFINE.
2775         * configure: Regenerate.
2777 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2779         * testsuite/libgomp.fortran/reduction3.f90: Change
2780         -2147483648 to -huge(i)-1 to avoid overflow.
2781         * testsuite/libgomp.fortran/reduction4.f90: Change
2782         Z'ffffffff' to not(0) to avoid overflow.
2784 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2786         PR libgomp/25938
2787         * Makefile.am (libsubincludedir): New.
2788         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2789         * Makefile.in: Regenerate.
2791 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2793         PR libgomp/28725
2794         * env.c: Include ctype.h.
2795         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2796         leading and/or trailing whitespace and compare strings case
2797         insensitively.
2799 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2801         PR fortran/28390
2802         * testsuite/libgomp.fortran/pr28390.f: New test.
2804 2006-07-05  Eric Christopher  <echristo@apple.com>
2806         * configure.ac: Depend addition of -pthread on host OS.
2807         * configure: Regenerate.
2809 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2811         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2812         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2813         defined.
2815 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2817         PR libgomp/26175
2818         PR libgomp/26477
2819         * configure.ac: If neither --enable-linux-futex nor
2820         --disable-linux-futex is passed, determine the default by checking
2821         for compiling and/or running against NPTL.  With --enable-linux-futex,
2822         check if SYS_gettid and SYS_futex are defined.
2823         * configure: Rebuilt.
2825 2006-06-14  Richard Henderson  <rth@redhat.com>
2827         PR libgomp/28008
2828         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2829         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2831 2006-06-09  Richard Henderson  <rth@redhat.com>
2833         * env.c (gomp_nthreads_var): Change to unsigned long.
2834         (gomp_run_sched_chunk): Likewise.
2835         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2836         (initialize_env): Initialize gomp_thread_attr.
2837         * libgomp.h (gomp_nthreads_var): Update decl.
2838         (gomp_run_sched_chunk): Likewise.
2839         (gomp_thread_attr): Declare.
2840         * team.c (gomp_thread_attr): Export.
2841         (initialize_team): Don't initialize it.
2843 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2845         PR fortran/27916
2846         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2847         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2849 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2851         * config/mingw32/time.c: New file.
2852         * configure.tgt: Use it.
2854 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2856         * Makefile.am: Add install-html target. Add install-html to .PHONY
2857         * Makefile.in: Regenerate.
2859 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2861         PR libgomp/27612
2862         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2863         * testsuite/libgomp.c/critical-1.c: Likewise.
2864         * testsuite/libgomp.c/loop-1.c: Likewise.
2865         * testsuite/libgomp.c/loop-2.c: Likewise.
2866         * testsuite/libgomp.c/single-1.c: Likewise.
2867         * testsuite/libgomp.c/ordered-1.c: Likewise.
2868         * testsuite/libgomp.c/ordered-2.c: Likewise.
2870 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2872         PR middle-end/27416
2873         * libgomp.fortran/pr27416-1.f90: New test.
2875 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2877         PR fortran/27395
2878         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2879         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2881 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2883         PR c++/26943
2884         * testsuite/libgomp.c/pr26943-1.c: New test.
2885         * testsuite/libgomp.c/pr26943-2.c: New test.
2886         * testsuite/libgomp.c/pr26943-3.c: New test.
2887         * testsuite/libgomp.c/pr26943-4.c: New test.
2888         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2889         * testsuite/libgomp.c++/pr26943.C: New test.
2891 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2893         PR middle-end/27337
2894         * testsuite/libgomp.c++/pr27337.C: New test.
2896 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2898         PR c/26171
2899         * testsuite/libgomp.c/pr26171.c: New test.
2901 2006-04-25  Richard Henderson  <rth@redhat.com>
2903         PR libgomp/25865
2904         * configure.ac: Use GCC_CHECK_TLS.
2905         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2906         * Makefile.in, aclocal.m4, configure: Regenerate.
2908 2006-04-10  Matthias Klose  <doko@debian.org>
2910         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2911         directory names containing underscores.
2913 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2915         PR c++/26691
2916         * testsuite/libgomp.c++/pr26691.C: New test.
2918 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2920         * testsuite/libgomp.fortran/retval2.f90: New test.
2922 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2924         * testsuite/libgomp.c++: New directory.
2926 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2928         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2929         * config/posix/sem.c: Implement the above.
2931 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2933         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2934         define HAVE_BROKEN_POSIX_SEMAPHORES.
2935         * configure: Rebuilt.
2936         * config.h.in: Rebuilt.
2938 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2940         PR bootstrap/26161
2941         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2942         for the other pthread check.
2943         * configure: Regenerate.
2944         * config.h.in: Regenerate.
2946 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2948         PR libgomp/25938
2949         PR libgomp/25984
2950         * Makefile.am (fincludedir): New variable.
2951         (nodist_include_HEADERS): Remove Fortran files.
2952         (nodist_finclude_HEADERS): New variable.
2953         * Makefile.in: Regenerated.
2955 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2957         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2958         Remove tests for returning assumed character length arrays.
2960 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2961             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2963         PR libgomp/25936
2964         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2966 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2968         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2970 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2972         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2973         part of LD_LIBRARY_PATH manually.
2975 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2977         PR libgomp/25852
2978         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2979         libgomp_init.
2981 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2983         PR libgomp/25884
2984         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2985         * configure.ac (PERL): Don't set.
2986         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2987         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2988         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2989         * omp.h.in: Wrap the new configure substitutions with @ characters.
2990         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2991         * aclocal.m4, configure, Makefile.in: Regenerate.
2992         * mkomp_h.pl: Delete.
2994 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2996         PR libgomp/25259
2997         * configure.ac: Use GCC_HEADER_STDINT.
2998         * libgomp.h: Include gstdint.h.
2999         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3000         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3002 2006-01-24  Richard Henderson  <rth@redhat.com>
3004         PR libgomp/25942
3005         * configure.ac: Add AM_MAINTAINER_MODE.
3006         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3008 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
3010         * Makefile.in: Regenerate.
3011         * testsuite/Makefile.in: Regenerate.
3012         * aclocal.m4: Regenerate.
3014 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
3016         * config/posix/proc.c: Conditional include of sys/loadavg.h for
3017         Solaris.
3018         * configure.ac: Add check for loadavg.h.
3019         (link_gomp): Adjust comment.
3020         * configure: Regenerate.
3021         * config.h.in: Regenerate.
3023 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
3025         PR libgomp/25877
3026         * configure.ac: Remove check for alloca.h.
3027         * configure: Regenerate.
3028         * config.h.in: Regenerate.
3029         * libgomp.h: define gomp_alloca to be __builtin_alloca.
3030         * team.c: Remove use of alloca.h.
3031         Call gomp_alloca instead of alloca.
3033 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
3035         PR libgomp/25877
3036         * team.c: Add include of alloca.h.
3037         * configure.ac: Add check for alloca.h.
3038         * configure: Regenerate.
3039         * config.h.in: Regenerate.
3041 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
3043         PR fortran/25219
3044         * testsuite/libgomp.fortran/pr25219.f90: New test.
3046 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
3048         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3049         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3050         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3051         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3052         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3053         testsuite/libgomp.fortran/threadprivate1.f90,
3054         testsuite/libgomp.fortran/threadprivate2.f90,
3055         testsuite/libgomp.fortran/threadprivate3.f90,
3056         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3057         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3058         testsuite/libgomp.fortran/omp_parse3.f90: Change required
3059         effective-target to TLS runtime.
3061         * testsuite/libgomp.fortran/pr25162.f: Require
3062         effective-target TLS runtime.
3064 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
3066         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3067         * testsuite/libgomp.c/nestedfn-3.c: New test.
3069 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3071         PR fortran/25162
3072         * testsuite/libgomp.fortran/pr25162.f: New test.
3074 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
3076         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3077         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3079 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
3081         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3082         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3083         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3084         single.c, team.c, work.c, config/linux/alpha/futex.h,
3085         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3086         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3087         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3088         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3089         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3090         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3091         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3092         FSF address.
3094 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3096         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3097         to nodist_noinst_HEADERS.
3098         * Makefile.in: Rebuilt.
3100         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3101         add integer count field.
3102         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3103         omp_nest_lock_t type change.
3104         (omp_init_nest_lock): Likewise.  Initialize count to 0.
3105         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3106         Increment count.
3107         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3108         Decrement count.
3109         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3110         Increment count if successful and return the new nesting level.
3111         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3112         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3113         * testsuite/libgomp.c/lib-1.c: New test.
3114         * testsuite/libgomp.fortran/lib1.f90: New test.
3115         * testsuite/libgomp.fortran/lib2.f: New test.
3116         * testsuite/libgomp.fortran/lib3.f: New test.
3118 2005-11-17  Richard Henderson  <rth@redhat.com>
3120         PR 24845
3121         * Makefile.am (nodist_toolexeclib_HEADERS): New.
3122         * configure.ac (link_gomp): New.  Substitute it.
3123         (AC_CONFIG_FILES): Add libgomp.spec.
3124         * libgomp.spec.in: New file.
3125         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3126         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3128 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3130         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3131         reduction(-:var) behaving the same as reduction(+:var).
3132         * testsuite/libgomp.c/reduction-4.c: New test.
3134 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
3136         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3137         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3138         testsuite/libgomp.c/copyin-3.c,
3139         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3140         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3141         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3142         testsuite/libgomp.c++/pr24455.C,
3143         testsuite/libgomp.fortran/threadprivate1.f90,
3144         testsuite/libgomp.fortran/threadprivate2.f90,
3145         testsuite/libgomp.fortran/threadprivate3.f90,
3146         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3147         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3148         testsuite/libgomp.fortran/omp_parse3.f90: Require
3149         effective-target TLS.
3151 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3153         * HEADER: Remove.
3155 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
3157         PR libgomp/24797
3158         * team.c (initialize_team): Pass NULL rather than free as
3159         pthread_key_create destructor.  Initialize thread specific data
3160         pointer in initial thread to a static local variable rather than
3161         malloced memory.
3163 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
3165         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3166         its location to ld_library_path.
3168 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3170         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3172 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3174         * testsuite/libgomp.c: Rename from libgomp.dg.
3176 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
3178         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3179         threadprivate variable 'i'.
3181 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3183         * config/linux/s390/futex.h: New file.
3184         * configure.tgt: Use it.
3186         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3187         before the parallel.
3189 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3191         PR c++/24734
3192         * testsuite/libgomp.c++/master-1.C: New test.
3194 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3196         * testsuite/libgomp.dg/copyin-3.c: New test.
3198 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3200         * testsuite/libgomp.fortran/retval1.f90: New test.
3201         * testsuite/libgomp.fortran/vla7.f90: New test.
3203 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
3205         * testsuite/libgomp.fortran/vla2.f90: New test.
3206         * testsuite/libgomp.fortran/vla3.f90: New test.
3207         * testsuite/libgomp.fortran/vla4.f90: New test.
3208         * testsuite/libgomp.fortran/vla5.f90: New test.
3209         * testsuite/libgomp.fortran/vla6.f90: New test.
3211 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
3213         * config/linux/sparc/futex.h: New file.
3214         * configure.tgt: Use it.
3215         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3217         * critical.c: Include stdlib.h.
3218         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3219         ignoring return value.
3220         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3221         LIBGOMP_CHECK_SYNC_BUILTINS check.
3222         * configure: Rebuilt.
3224 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3226         * testsuite/libgomp.fortran/vla1.f90: New test.
3228 2005-10-31  Richard Henderson  <rth@redhat.com>
3230         * testsuite/libgomp.fortran/character2.f90: Fix race condition
3231         setting 's' in different threads.
3233 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3235         * libgomp.h (attribute_hidden, ialias): Define.
3236         * config/posix/proc.c (omp_get_num_procs): Add ialias.
3237         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3238         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3239         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3240         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3241         omp_test_lock, omp_test_nest_lock): Likewise.
3242         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3243         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3244         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3245         omp_test_lock, omp_test_nest_lock): Likewise.
3246         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3247         omp_get_dynamic, omp_get_nested): Likewise.
3248         * parallel.c (omp_get_num_threads, omp_get_max_threads,
3249         omp_get_thread_num, omp_in_parallel): Likewise.
3250         * fortran.c (ialias_redirect): Define.
3251         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3252         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3253         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3254         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3255         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3256         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3257         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3258         omp_get_wtime): Add ialias_redirect.
3260 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
3262         * fortran.c: Include stdlib.h.
3264 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
3266         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3267         * Makefile.in: Regenerated.
3269 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
3271         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3272         * libgomp_f.h.in (omp_check_defines): New function.
3273         * env.c: Include libgomp_f.h.
3274         (initialize_env): Call omp_check_defines.
3276         * testsuite/libgomp.dg/copyin-2.c: New test.
3277         * testsuite/libgomp.c++/copyin-2.C: New test.
3278         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3280         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3281         * testsuite/libgomp.fortran/sharing2.f90: New test.
3283         * testsuite/libgomp.dg/copyin-1.c: New test.
3284         * testsuite/libgomp.c++/copyin-1.C: New test.
3286 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
3288         * testsuite/libgomp.fortran/crayptr1.f90: New test.
3290         * testsuite/libgomp.fortran/workshare1.f90: New test.
3292         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3293         only test.
3294         * libgomp.fortran/sharing1.f90: New test.
3296 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
3298         PR c++/24502
3299         * testsuite/libgomp.c++/loop-7.C: New test.
3301         * testsuite/libgomp.dg/nestedfn-2.c: New test.
3303         * testsuite/libgomp.dg/nestedfn-1.c: New test.
3304         * testsuite/libgomp.fortran/reduction6.f90: New test.
3305         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3307 2005-10-23  Richard Henderson  <rth@redhat.com>
3309         * testsuite/libgomp.c++/ctor-1.C: New.
3310         * testsuite/libgomp.c++/ctor-2.C: New.
3311         * testsuite/libgomp.c++/ctor-3.C: New.
3312         * testsuite/libgomp.c++/ctor-4.C: New.
3313         * testsuite/libgomp.c++/ctor-5.C: New.
3314         * testsuite/libgomp.c++/ctor-6.C: New.
3315         * testsuite/libgomp.c++/ctor-7.C: New.
3316         * testsuite/libgomp.c++/ctor-8.C: New.
3317         * testsuite/libgomp.c++/ctor-9.C: New.
3319 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
3321         PR 24455
3322         * testsuite/libgomp.c++/pr24455-1.C: New test.
3323         * testsuite/libgomp.c++/pr24455.C: New test.
3324         * testsuite/libgomp.dg/pr24455-1.c: New test.
3325         * testsuite/libgomp.dg/pr24455.c: New test.
3327 2005-10-20  Richard Henderson  <rth@redhat.com>
3329         * testsuite/libgomp.c++/loop-6.C: New.
3330         * testsuite/libgomp.dg/loop-3.c: New.
3332 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
3334         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3335         explicitly private.
3336         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3337         explicitly shared.
3339 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
3341         * testsuite/libgomp.fortran/jacobi.f: New test.
3343 2005-10-19  Richard Henderson  <rth@redhat.com>
3345         * configure.tgt (i?86-linux): Default to with_arch instead of
3346         CFLAGS.  Add -mtune to match target_cpu.
3347         (x86_64-linux): Tune to i686.
3349         * fortran.c (omp_test_nest_lock_): Fix typo.
3351 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
3353         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3354         gomp_ordered_sync): Do nothing if team->nthreads == 1.
3355         * testsuite/libgomp.dg/ordered-3.c: New test.
3357         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3358         Remove volatile keyword.
3360         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3361         in COMMON block to avoid warnings on 64-bit targets.
3363 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
3365         * testsuite/libgomp.dg/shared-3.c: New test.
3367 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3369         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3370         * testsuite/libgomp.fortran/reduction5.f90: New test.
3372 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3374         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3375         dg-options.
3376         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
3377         flush loop now that __sync_synchronize has proper memory barrier.
3378         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3379         Add -ffixed-form to dg-options.
3381 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3383         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3384         from subdirectories.
3385         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3386         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3387         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3388         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3389         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3390         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3391         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3392         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3393         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3394         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3395         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3396         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3397         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3398         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3399         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3400         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3401         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3402         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3403         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3404         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3405         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3406         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3407         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3408         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3409         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3411 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
3413         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3414         lang_library_path exists.  Use find instead of glob to gather tests.
3415         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3417 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3419         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3420         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3421         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3422         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3423         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3424         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3425         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3426         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3427         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3428         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3429         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3430         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3431         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3433 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
3435         * testsuite/libgomp.dg/vla-1.c: New test.
3437         * testsuite/libgomp.fortran/reference2.f90: New test.
3439         * testsuite/libgomp.fortran/character2.f90: Remove explicit
3440         declaration of omp_get_thread_num.
3441         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
3442         use omp_lib.
3444         * testsuite/libgomp.fortran/reduction1.f90: New test.
3445         * testsuite/libgomp.fortran/reduction2.f90: New test.
3446         * testsuite/libgomp.fortran/reduction3.f90: New test.
3447         * testsuite/libgomp.fortran/reduction4.f90: New test.
3449 2005-10-13  Richard Henderson  <rth@redhat.com>
3451         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3452         * Makefile.in: Regenerate.
3453         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3454         * libgomp.h: Include bar.h.
3455         (struct gomp_barrier): Remove.
3456         (struct gomp_team): Add barrier.  Replace master_barrier with
3457         master_release.  Replace threads with ordered_release.
3458         (struct gomp_thread): Replace barrier with release.
3459         * ordered.c (gomp_ordered_first): Update for ordered_release change.
3460         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3461         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3462         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3463         (GOMP_single_copy_end): Likewise.
3464         * team.c (gomp_threads_dock): New.
3465         (gomp_barrier_init, gomp_barrier_destroy): Remove.
3466         (gomp_thread_start): Use gomp_barrier_wait.
3467         (new_team, free_team): Update for gomp_team changes.
3468         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3469         (gomp_team_end): Use gomp_barrier_wait.
3470         (initialize_team): Update for gomp_thread changes.
3471         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3472         (gomp_work_share_end_nowait): Use atomic ops when available.
3473         * config/linux/bar.c, config/linux/bar.h: New files.
3474         * config/posix/bar.c, config/posix/bar.h: New files.
3476 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
3478         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3479         * testsuite/libgomp.dg/single-2.c: New test.
3481         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3482         lang_link_flags): Unset, so that they aren't inherited from previously
3483         sourced *.exp.
3485         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3487 2005-10-12  Richard Henderson  <rth@redhat.com>
3489         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3490         (libgomp_init): Use lang_test_file, lang_library_path, and
3491         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
3493         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3494         (lang_test_file, lang_link_flags): New.
3495         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3497         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3498         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3499         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3500         testsuite/libgomp.c++/parallel-1.C,
3501         testsuite/libgomp.c++/reduction-1.C,
3502         testsuite/libgomp.c++/reduction-2.C,
3503         testsuite/libgomp.c++/reduction-3.C,
3504         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3505         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3506         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3507         New files, largely cribbed from the C testsuite.
3509 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3511         * testsuite/libgomp.fortran/character1.f90: New test.
3512         * testsuite/libgomp.fortran/character2.f90: New test.
3514         * testsuite/libgomp.dg/nested-1.c: New test.
3515         * testsuite/libgomp.dg/nested-2.c: New test.
3516         * testsuite/libgomp.fortran/do1.f90: New test.
3517         * testsuite/libgomp.fortran/do2.f90: New test.
3519         * testsuite/libgomp.fortran/reference1.f90: New test.
3521 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3523         * testsuite/libgomp.dg/reduction-1.c: New test.
3524         * testsuite/libgomp.dg/reduction-2.c: New test.
3525         * testsuite/libgomp.dg/reduction-3.c: New test.
3527 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3529         * testsuite/libgomp.dg/atomic-1.c: New test.
3530         * testsuite/libgomp.dg/atomic-2.c: New test.
3532 2005-10-09  Richard Henderson  <rth@redhat.com>
3534         * critical.c (atomic_lock): New.
3535         (initialize_critical): Initialize it.
3536         (GOMP_atomic_start, GOMP_atomic_end): New.
3537         * libgomp.map: Export them.
3538         * libgomp_g.h: Declare them.
3540         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3542 2005-10-02  Richard Henderson  <rth@redhat.com>
3544         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3545         to XCFLAGS instead of CFLAGS.
3547 2005-09-30  Richard Henderson  <rth@redhat.com>
3549         * configure.ac: Determine whether -pthread or -lpthread is needed.
3550         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3551         * Makefine.in, configure: Rebuild.
3553 2005-09-28  Richard Henderson  <rth@redhat.com>
3555         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3556         * testsuite/libgomp.dg/omp-single-3.c: New test.
3558 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3560         * testsuite/libgomp.dg/omp-single-2.c: New test.
3561         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3563 2005-09-27  Richard Henderson  <rth@redhat.com>
3565         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3566         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3568 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3570         * testsuite/libgomp.dg/omp-loop03.c: New test.
3572 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3574         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3576 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3578         * testsuite/libgomp.dg/omp-single-1.c: New test.
3579         * testsuite/libgomp.dg/shared-1.c: Return 0.
3580         Add prototype for abort.
3581         * testsuite/libgomp.dg/shared-2.c: Likewise.
3583 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
3585         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3586         constructs.
3588 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
3590         * testsuite/libgomp.dg/shared-1.c: New test.
3591         * testsuite/libgomp.dg/shared-2.c: New test.
3593 2005-09-24  Richard Henderson  <rth@redhat.com>
3595         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3597 2005-09-24  Richard Henderson  <rth@redhat.com>
3599         * iter.c (gomp_iter_static_next): Round up when computing number
3600         of iterations.  Don't bother distributing a remainder equally.
3602         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3603         Don't call srand.  Zero b before testing.
3604         (main): New.
3606 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
3608         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3609         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3611 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
3613         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3614         without !$omp end do, followed immediately by subroutine end.
3616 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
3618         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3620 2005-09-22  Richard Henderson  <rth@redhat.com>
3622         * critical.c (GOMP_critical_name_start): Change argument to void**.
3623         Reuse the pointer space if the mutex fits.
3624         (GOMP_critical_name_end): Likewise.
3625         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3626         * libgomp_g.h (GOMP_critical_name_start): Update decl.
3627         (GOMP_critical_name_end): Likewise.
3628         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3629         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3631 2005-09-20  Richard Henderson  <rth@redhat.com>
3633         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3634         (create_lock_lock): New.
3635         (initialize_critical): Initialize it.
3636         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3637         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3639 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3641         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3643 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
3645         * testsuite/libgomp.dg/omp-loop01.c: New test.
3646         * testsuite/libgomp.dg/omp-loop02.c: New test.
3648 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
3650         * configure.ac (AC_PROG_FC): Add.
3651         (USE_FORTRAN): New automake conditional.
3652         * configure: Rebuilt.
3653         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3654         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3655         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3656         Add rules to build them.
3657         * Makefile.in: Rebuilt.
3658         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3659         OMP_NEST_LOCK_KIND.
3660         * libgomp.map: Add Fortran wrappers.
3661         * libgomp_f.h.in: New file.
3662         * omp_lib.h.in: New file.
3663         * omp_lib.f90.in: New file.
3664         * fortran.c: New file.
3665         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3666         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3667         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3668         libgfortran has been built.
3669         * testsuite/libgomp.fortran/fortran.exp: New file.
3670         * testsuite/libgomp.fortran/omp_cond1.f: New test.
3671         * testsuite/libgomp.fortran/omp_cond2.f: New test.
3672         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3673         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3674         * testsuite/libgomp.fortran/omp_hello.f: New test.
3675         * testsuite/libgomp.fortran/omp_orphan.f: New test.
3676         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3677         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3678         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3679         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3680         * testsuite/libgomp.fortran/omp_reduction.f: New test.
3681         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3682         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3684 2005-08-30  Richard Henderson  <rth@redhat.com>
3686         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3687         function for when aliases are not usable.
3688         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3689         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3690         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3691         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3692         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3693         GOMP_loop_ordered_guided_next): Likewise.
3694         * ordered.c (GOMP_ordered_start): Likewise.
3696 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
3698         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3699         * testsuite/libgomp.dg/omp_hello.c: Fix return code
3700         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3701         * testsuite/libgomp.dg/omp_orphan.c: Likewise
3702         * testsuite/libgomp.dg/omp_reduction.c: Likewise
3703         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3704         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3705         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3706         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3708 2005-07-07  Eric Christopher  <echristo@redhat.com>
3709             Diego Novillo  <dnovillo@redhat.com>
3711         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3712         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3713         up code.
3714         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3715         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3716         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3717         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3718         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3719         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3720         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3722 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
3724         * TOPLEVEL.patch: Remove.
3726 2005-05-16  Richard Henderson  <rth@redhat.com>
3728         * configure.ac: Test for clock_gettime.
3729         * config.h.in, configure: Rebuild.
3730         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3731         (omp_get_wtime): Use clock_gettime if available.
3732         (omp_get_wtick): Use clock_getres if available.
3734 2005-05-11  Richard Henderson  <rth@redhat.com>
3736         * config/linux/ia64/futex.h: New file.
3737         * configure.tgt: Use it.
3739         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3741 2005-05-07  Richard Henderson  <rth@redhat.com>
3743         * config/linux/powerpc/futex.h: New file.
3744         * configure.tgt: Use it.
3746         * config/linux/i486/futex.h: Merge ...
3747         * config/linux/x86_64/futex.h: ... into ...
3748         * config/linux/x86/futex.h: ... here.
3749         * configure.tgt: Update to match.
3751 2005-05-06  Richard Henderson  <rth@redhat.com>
3753         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3754         * config/linux/i486/futex.h: Likewise.
3755         * config/linux/x86_64/futex.h: Likewise.
3757         * config/linux/lock.c: New file.
3758         * config/linux/omp-lock.h: New file.
3760         * critical.c, env.h: Don't include omp.h
3761         * config/posix/lock.c: Include libgomp.h instead of omp.h.
3762         * config/posix/time.c: Likewise.
3763         * config/posix/omp-lock.h: New file.
3764         * libgomp.h: Include omp-lock.h and omp.h.
3765         * Makefile.am (nodist_include_HEADERS): New.
3766         (omp.h): New rule.
3767         * configure.ac (PERL): New.
3768         * mkomp_h.pl: New file.
3769         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3770         with templates.
3771         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3773         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3774         build directory.  Re-add -march=i486 hack.
3776         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3777         (libgomp_link_flags): Remove.
3778         (libgomp_initialized): Remove.
3779         (libgomp_init): Don't protect from reinitialization.  Copy code
3780         from libstdc++ for getting the multilib set correctly.
3782 2005-05-05  Richard Henderson  <rth@redhat.com>
3784         * config/linux/alpha/futex.h: New file.
3785         * configure.tgt (alpha*-*-linux*): Use it.
3787         * config/posix/mutex.c: New file.
3788         * config/posix/sem.c: Use libgomp.h.
3790         * configure.tgt (x86_64-linux): Also test CC for -m32.
3791         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3793         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3794         after $gccpath.
3796         * Makefile.am (SUBDIRS): New.
3797         (libgomp_la_LDFLAGS): Add -lpthread.
3798         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3799         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3801         * libgomp_g.h: New file.
3802         * libgomp.h: Split out all public declarations to libgomp_g.h.
3803         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3804         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3805         * config/linux/sem.h: Likewise.
3806         * config/posix/sem.h: Likewise.
3808         * Makefile.am (AM_LDFLAGS): New.
3809         (libgomp_version_script): Split out from ...
3810         (libgomp_la_LDFLAGS): ... here.
3811         (libgomp_version_info): New.
3812         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3813         (LIBGOMP_ENABLE): New.
3814         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3815         (LIBGOMP_ENABLE_SYMVERS): New.
3816         * configure.ac (AC_INIT): Version 1.0.
3817         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3818         (enable-linux-futex): Likewise.  Rename from enable-futex.
3819         (libtool_VERSION): New.
3820         (LIBGOMP_ENABLE_SYMVERS): Use it.
3821         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3822         * Makefile.in, aclocal.m4, configure: Rebuild.
3824         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3825         (gomp_mutex_unlock_slow): Fix typo.
3826         * config/linux/sem.c: Similarly.
3827         (gomp_sem_post_slow): Fix typo.
3828         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3829         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3830         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3832         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3833         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3834         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3835         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3836         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3837         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3838         LDFLAGS.  Pull enable_futex check to top-level.
3839         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3840         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3842         First attempt at real configury.
3843         * Makefile, config.h: Remove file.
3844         * Makefile.am, Makefile.in: New file.
3845         * acinclude.m4 aclocal.m4: New file.
3846         * configure.ac, configure.tgt, configure: New file.
3848         * config/posix/lock.c: Rename from sys-lock.c.
3849         * config/posix/mutex.h: Rename from sys-mutex.h.
3850         * config/posix/sem.c: Rename from sys-sem.c.
3851         * config/posix/sem.h: Rename from sys-sem.h.
3852         * config/posix/proc.c: Rename from sys-proc.c.
3853         * config/posix/time.c: Rename from sys-proc.c.
3855         * config/linux/mutex.c: New file.
3856         * config/linux/mutex.h: New file.
3857         * config/linux/sem.c: New file.
3858         * config/linux/sem.h: New file.
3859         * config/linux/i486/futex.h: New file.
3860         * config/linux/x86_64/futex.h: New file.
3862 2005-05-04  Richard Henderson  <rth@redhat.com>
3864         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3865         * libgomp.h: Declare them.
3866         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3867         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3869 2005-05-04  Richard Henderson  <rth@redhat.com>
3871         * libgomp-1 code drop
3873 2005-05-04  Richard Henderson  <rth@redhat.com>
3875         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3876         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3877         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3878         (gomp_iter_static_next): Update.
3879         (gomp_ordered_static_next): Update.
3880         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3881         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3882         totally empty range.
3883         (gomp_loop_ordered_static_next): Refine test for calling
3884         gomp_ordered_static_next.
3885         * testsuite/ordered-1.c: Add case for more threads than iterations.
3887         * iter.c (gomp_iter_runtime_next_locked): Remove.
3888         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3889         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3890         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3891         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3892         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3893         gomp_loop_ordered_guided_next): Downcase name, make static, add
3894         an external alias with the old name.
3895         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3896         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3897         switch and call one of the above static functions.
3898         * libgomp.h: Update.
3900         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3901         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3902         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3903         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3904         GOMP_loop_ordered_guided_start): Update to match.
3905         * sections.c (GOMP_sections_start): Likewise.
3906         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3908         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3909         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3910         Use bounds check instead of modulus.
3911         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3912         (gomp_ordered_last): Don't sync with ordered_owner here.
3913         (gomp_ordered_next): Likewise.
3914         (gomp_ordered_static_loop_next): Likewise.
3915         * loop.c, libgomp.h: Update to match.
3917         * libgomp.h (GOMP_barrier): Declare.
3919         * testsuite/barrier-1.c: New file.
3920         * testsuite/critical-1.c: New file.
3921         * testsuite/ordered-2.c: New file.
3922         * testsuite/ordered-1.c: New file.
3923         * testsuite/sections-1.c: New file.
3924         * testsuite/single-1.c: New file.
3925         * testsuite/Makefile (TESTS): Add them.
3927 2005-05-04  Richard Henderson  <rth@redhat.com>
3929         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3930         * loop.c (GOMP_loop_static_start): If not the startup thread,
3931         acquire the mutex to wait for initialization complete.
3932         (GOMP_loop_ordered_static_start): Likewise.
3933         (GOMP_loop_ordered_runtime_start): Likewise.
3934         (GOMP_loop_ordered_static_first): Remove.
3935         (GOMP_loop_ordered_dynamic_first): Remove.
3936         (GOMP_loop_ordered_guided_first): Remove.
3937         (GOMP_loop_ordered_runtime_first): Remove.
3938         * ordered.c (gomp_ordered_loop_first): Post to own release when
3939         we're the first thread.
3940         (gomp_ordered_loop_last): Wait on release if not owner.
3941         (gomp_ordered_loop_next): Likewise.
3942         (gomp_ordered_static_loop_init): New.
3943         (gomp_ordered_static_loop_next): Use ordered_owner.
3944         (GOMP_ordered_start): Likewise.
3945         * work.c (gomp_new_work_share): Initialize ordered_owner.
3947 2005-05-03  Richard Henderson  <rth@redhat.com>
3949         * Makefile (OPT): New.
3950         (CFLAGS): Use it.
3952         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3953         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3954         * libgomp.h, libgomp.map, NOTES: Update to match.
3956         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3957         Add initialized and thr members.
3958         (gomp_thread_start): Pause when initially spawned to wait for
3959         the whole team to be created.
3960         (gomp_team_start): Release team members at the end.
3962         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3963         (f_foo_1): Use GOMP_loop_end.
3964         (f_foo_2): Use GOMP_loop_end_nowait.
3966         * testsuite/loop-2.c: New file.
3967         * testsuite/Makefile (TESTS): Add it.
3969 2005-05-03  Richard Henderson  <rth@redhat.com>
3971         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3972         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3973         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3974         initial work_share.
3976         * testsuite/Makefile: New file.
3977         * testsuite/loop-1.c: New file.
3979 2005-05-03  Richard Henderson  <rth@redhat.com>
3981         Initial implementation and checkin.