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