1 2014-05-02 Jakub Jelinek <jakub@redhat.com>
3 * testsuite/libgomp.c/simd-10.c: New test.
4 * testsuite/libgomp.c/simd-11.c: New test.
5 * testsuite/libgomp.c/simd-12.c: New test.
6 * testsuite/libgomp.c/simd-13.c: New test.
8 2014-04-24 Jakub Jelinek <jakub@redhat.com>
10 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
11 atomic type clauses in any order and optional comma in between.
12 * testsuite/libgomp.c++/atomic-15.C: Likewise.
13 * testsuite/libgomp.c/atomic-17.c: Likewise.
15 * testsuite/libgomp.c/simd-7.c: New test.
16 * testsuite/libgomp.c/simd-8.c: New test.
17 * testsuite/libgomp.c/simd-9.c: New test.
18 * testsuite/libgomp.c/loop-16.c: New test.
20 2014-04-02 Richard Henderson <rth@redhat.com>
22 * config/linux/futex.h (futex_wait): Get error value from errno.
23 (futex_wake): Likewise.
25 2014-03-25 Jakub Jelinek <jakub@redhat.com>
28 * testsuite/libgomp.c++/udr-11.C: New test.
29 * testsuite/libgomp.c++/udr-12.C: New test.
30 * testsuite/libgomp.c++/udr-13.C: New test.
31 * testsuite/libgomp.c++/udr-14.C: New test.
32 * testsuite/libgomp.c++/udr-15.C: New test.
33 * testsuite/libgomp.c++/udr-16.C: New test.
34 * testsuite/libgomp.c++/udr-17.C: New test.
35 * testsuite/libgomp.c++/udr-18.C: New test.
36 * testsuite/libgomp.c++/udr-19.C: New test.
38 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
40 Update copyright years
42 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
44 * hashtab.h: Use the standard form for the copyright notice.
46 2014-01-02 Tobias Burnus <burnus@net-b.de>
48 * libgomp.texi: Bump @copying's copyright year.
50 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
52 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
53 alloca () with __builtin_alloca ().
54 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
55 * testsuite/libgomp.c/lock-3.c: Likewise.
56 * testsuite/libgomp.c/pr48591.c: Likewise.
58 2013-12-17 Jakub Jelinek <jakub@redhat.com>
61 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
64 2013-12-16 Jakub Jelinek <jakub@redhat.com>
67 * testsuite/libgomp.c/pr58756.c: New test.
69 2013-12-12 Jakub Jelinek <jakub@redhat.com>
72 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
75 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
77 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
79 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
80 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
81 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
82 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
85 * libgomp_g.h: Include <stddef.h> for size_t.
87 * libgomp.spec.in: Update comment about libgomp's dependencies.
88 * configure.ac: Likewise.
89 * configure: Regenerate.
91 2013-10-16 Tobias Burnus <burnus@net-b.de>
93 * libgomp.texi: (Runtime Library Routines): Update references for
94 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
95 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
96 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
97 (Environment Variables): Update references for OpenMP 4.0. Add
98 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
99 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
102 2013-10-14 Jakub Jelinek <jakub@redhat.com>
104 * env.c (parse_bind_var): Initialize value to avoid
105 (false positive) warning.
107 2013-10-12 Jakub Jelinek <jakub@redhat.com>
110 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
112 (gomp_init_num_threads): Move i variable declaration into
113 #ifdef CPU_ALLOC_SIZE block.
114 * config/linux/affinity.c (gomp_affinity_init_level): Test
115 gomp_places_list_len == 0 rather than gomp_places_list == 0
116 when checking for topology reading error.
117 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
118 * env.c (parse_affinity): Add ignore argument, if true, don't populate
119 gomp_places_list, only parse env var and always return false.
120 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
121 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
122 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
123 and either of these variables were parsed correctly into a places
126 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
127 Jakub Jelinek <jakub@redhat.com>
129 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
131 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
132 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
133 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
134 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
135 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
136 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
137 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
138 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
140 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
142 * Makefile.am (omp_lib.mod): Streamline rule.
143 * Makefile.in: Regenerate.
145 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
148 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
149 * testsuite/libgomp.fortran/lib1.f90: Likewise.
150 * testsuite/libgomp.fortran/lib2.f: Likewise.
151 * testsuite/libgomp.fortran/lib3.f: Likewise.
153 * configure.ac: Typo fix.
154 * configure: Regenerate.
156 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
157 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
159 * omp.h.in: Don't touch the user's namespace.
161 2013-10-11 Jakub Jelinek <jakub@redhat.com>
162 Tobias Burnus <burnus@net-b.de>
163 Richard Henderson <rth@redhat.com>
165 * target.c: New file.
166 * Makefile.am (libgomp_la_SOURCES): Add target.c.
167 * Makefile.in: Regenerated.
168 * libgomp_g.h (GOMP_task): Add depend argument.
169 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
170 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
171 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
172 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
173 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
174 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
175 GOMP_taskgroup_start, GOMP_taskgroup_end,
176 GOMP_parallel_sections): New prototypes.
177 * fortran.c (omp_is_initial_device): Add ialias_redirect.
178 (omp_is_initial_device_): New function.
179 (ULP, STR1, STR2, ialias_redirect): Removed.
180 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
181 omp_set_default_device_8_, omp_get_default_device_,
182 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
184 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
185 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
186 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
188 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
189 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
190 omp_set_default_device, omp_set_default_device_,
191 omp_set_default_device_8_, omp_get_default_device,
192 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
193 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
194 omp_get_team_num_): Export @@OMP_4.0.
195 * team.c (struct gomp_thread_start_data): Add place field.
196 (gomp_thread_start): Clear thr->thread_pool and
197 thr->task before returning. Use gomp_team_barrier_wait_final
198 instead of gomp_team_barrier_wait. Initialize thr->place.
199 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
200 team_cancelled and task_queued_count fields.
201 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
202 before calling pthread_exit.
203 (gomp_free_thread): No longer static. Use
204 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
205 (gomp_team_start): Add flags argument. Set
206 thr->thread_pool->threads_busy to nthreads immediately after creating
207 new pool. Use gomp_managed_threads_lock instead of
208 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
209 (gomp_team_end): Use gomp_managed_threads_lock instead of
210 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
211 of gomp_team_barrier_wait. If team->team_cancelled, call
212 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
213 rather than thr->ts.work_share.
214 (initialize_team): Don't call gomp_sem_init here.
215 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
217 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
218 * env.c (gomp_global_icv): Add default_device_var, target_data and
219 bind_var initializers.
220 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
221 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
222 gomp_places_list_len): New variables.
223 (parse_bind_var, parse_one_place, parse_places_var): New functions.
224 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
226 (gomp_cancel_var): New global variable.
227 (parse_int): New function.
228 (handle_omp_display_env): New function.
229 (initialize_env): Use it. Initialize default_device_var.
230 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
231 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
232 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
233 been successfully parsed (and call gomp_init_affinity in that case).
234 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
235 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
236 omp_get_team_num, omp_is_initial_device): New functions.
237 * libgomp.h: Include stdlib.h.
238 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
240 (struct target_mem_desc): Forward declare.
241 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
242 and thread_limit_var fields.
243 (gomp_get_num_devices): New prototype.
244 (gomp_cancel_var): New extern decl.
245 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
246 team_cancelled and task_queued_count fields. Add comments about
247 task_{,queued_,running_}count.
248 (gomp_cancel_kind): New enum.
249 (gomp_work_share_end_cancel): New prototype.
250 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
251 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
253 (struct gomp_taskgroup): New type.
254 (struct gomp_task_depend_entry,
255 struct gomp_dependers_vec): New types.
256 (gomp_finish_task): Free depend_hash if non-NULL.
257 (struct gomp_team_state): Add place_partition_off
258 and place_partition_len fields.
259 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
260 gomp_places_list_len): New extern decls.
261 (struct gomp_thread): Add place field.
262 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
263 (gomp_init_thread_affinity): Add place argument.
264 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
265 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
266 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
267 gomp_affinity_init_level, gomp_affinity_print_place): New
269 (gomp_team_start): Add flags argument.
270 (gomp_thread_limit_var, gomp_remaining_threads_count,
271 gomp_remaining_threads_lock): Remove.
272 (gomp_managed_threads_lock): New variable.
273 (struct gomp_thread_pool): Add threads_busy field.
274 (gomp_free_thread): New prototype.
275 * task.c: Include hashtab.h.
276 (hash_entry_type): New typedef.
277 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
278 (gomp_init_task): Clear dependers, depend_hash, depend_count,
279 copy_ctors_done and taskgroup fields.
280 (GOMP_task): Add depend argument, handle depend clauses. If
281 gomp_team_barrier_cancelled or if it's taskgroup has been
282 cancelled, don't queue or start new tasks. Set copy_ctors_done
283 field if needed. Initialize taskgroup field. If copy_ctors_done
284 and already cancelled, don't discard the task. If taskgroup is
285 non-NULL, enqueue the task into taskgroup queue. Increment
286 num_children field in taskgroup. Increment task_queued_count.
287 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
288 gomp_task_run_post_remove_taskgroup): New inline functions.
289 (gomp_task_run_post_handle_depend_hash,
290 gomp_task_run_post_handle_dependers,
291 gomp_task_run_post_handle_depend): New functions.
292 (GOMP_taskwait): Use them. If more than one new tasks
293 have been queued, wake other threads if needed.
294 (gomp_barrier_handle_tasks): Likewise. If
295 gomp_team_barrier_cancelled, don't start any new tasks, just free
297 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
299 (omp_proc_bind_kind, omp_proc_bind_false,
300 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
301 omp_proc_bind_spread): New params.
302 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
303 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
304 omp_get_team_num, omp_is_initial_device): New interfaces.
305 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
306 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
307 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
308 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
309 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
310 useless use omp_lib_kinds.
311 * omp.h.in (omp_proc_bind_t): New typedef.
312 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
313 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
314 omp_get_team_num, omp_is_initial_device): New prototypes.
315 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
316 through to gomp_team_start.
317 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
318 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
319 Adjust gomp_parallel_loop_start callers.
320 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
321 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
322 GOMP_loop_end_cancel): New functions.
323 (GOMP_parallel_end): Add ialias_redirect.
324 * hashtab.h: New file.
325 * libgomp.texi (Environment Variables): Minor cleanup,
326 update section refs to OpenMP 4.0rc2.
327 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
328 environment variables.
329 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
330 team->work_shares_to_free to thr->ts.work_share before calling
332 (gomp_work_share_end_cancel): New function.
333 * config/linux/proc.c: Include errno.h.
334 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
335 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
336 sizeof (cpu_set_t) to determine number of iterations. Fix up check
337 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
338 gomp_cpuset_size is sizeof (cpu_set_t).
339 (gomp_init_num_threads): Initialize gomp_cpuset_size,
340 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
341 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
342 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
343 contain any logical CPUs.
344 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
345 is NULL. Use gomp_cpusetp instead of &cpuset and pass
346 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
347 pthread_getaffinity_np. Check gomp_places_list instead of
348 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
349 * config/linux/bar.c (gomp_barrier_wait_end,
350 gomp_barrier_wait_last): Use BAR_* defines.
351 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
352 from state where needed. Set work_share_cancelled to 0 on last
354 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
355 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
357 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
358 Add cpusetsize argument.
359 (gomp_cpuset_size, gomp_cpusetp): Declare.
360 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
361 (affinity_counter): Remove.
362 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
363 if CPU_ALLOC_SIZE isn't defined.
364 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
365 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
366 bind current thread to the first place.
367 (gomp_init_thread_affinity): Rewritten. Add place argument, just
368 pthread_setaffinity_np to gomp_places_list[place].
369 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
370 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
371 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
372 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
373 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
374 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
375 (gomp_barrier_t): Add awaited_final field.
376 (gomp_barrier_init): Initialize awaited_final field.
377 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
378 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
380 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
382 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
383 gomp_team_barrier_cancelled): New inline functions.
384 (gomp_barrier_last_thread,
385 gomp_team_barrier_set_task_pending,
386 gomp_team_barrier_clear_task_pending,
387 gomp_team_barrier_set_waiting_for_tasks,
388 gomp_team_barrier_waiting_for_tasks,
389 gomp_team_barrier_done): Use BAR_* defines.
390 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
391 (gomp_barrier_wait_end): Use BAR_* defines.
392 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
393 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
395 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
396 gomp_team_barrier_cancel): New functions.
397 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
399 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
400 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
401 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
402 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
403 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
404 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
405 (gomp_barrier_t): Add cancellable field.
406 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
407 gomp_team_barrier_cancel): New prototypes.
408 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
409 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
410 gomp_team_barrier_cancelled): New inline functions.
411 (gomp_barrier_wait_start, gomp_barrier_last_thread,
412 gomp_team_barrier_set_task_pending,
413 gomp_team_barrier_clear_task_pending,
414 gomp_team_barrier_set_waiting_for_tasks,
415 gomp_team_barrier_waiting_for_tasks,
416 gomp_team_barrier_done): Use BAR_* defines.
417 * barrier.c (GOMP_barrier_cancel): New function.
418 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
419 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
420 omp_proc_bind_spread): New params.
421 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
422 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
423 omp_get_team_num, omp_is_initial_device): New externals.
424 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
426 (gomp_resolve_num_threads): Adjust for thread_limit now being in
427 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
428 infinity. If not nested, just return minimum of max_num_threads
429 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
430 to the returned value. Otherwise, don't update atomically
431 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
432 (GOMP_parallel_end): Adjust for thread_limit now being in
433 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
434 infinity. Adjust threads_busy in the pool rather than
435 gomp_remaining_threads_count. Remember team->nthreads and call
436 gomp_team_end before adjusting threads_busy, if not nested
437 afterwards, just set it to 1 non-atomically. Add ialias.
438 (GOMP_parallel_start): Adjust gomp_team_start caller.
439 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
440 * testsuite/libgomp.c/affinity-1.c: New test.
441 * testsuite/libgomp.c/atomic-15.c: New test.
442 * testsuite/libgomp.c/atomic-16.c: New test.
443 * testsuite/libgomp.c/atomic-17.c: New test.
444 * testsuite/libgomp.c/cancel-for-1.c: New test.
445 * testsuite/libgomp.c/cancel-for-2.c: New test.
446 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
447 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
448 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
449 * testsuite/libgomp.c/cancel-sections-1.c: New test.
450 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
451 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
452 * testsuite/libgomp.c/depend-1.c: New test.
453 * testsuite/libgomp.c/depend-2.c: New test.
454 * testsuite/libgomp.c/depend-3.c: New test.
455 * testsuite/libgomp.c/depend-4.c: New test.
456 * testsuite/libgomp.c/for-1.c: New test.
457 * testsuite/libgomp.c/for-1.h: New file.
458 * testsuite/libgomp.c/for-2.c: New test.
459 * testsuite/libgomp.c/for-2.h: New file.
460 * testsuite/libgomp.c/for-3.c: New test.
461 * testsuite/libgomp.c/pr58392.c: New test.
462 * testsuite/libgomp.c/simd-1.c: New test.
463 * testsuite/libgomp.c/simd-2.c: New test.
464 * testsuite/libgomp.c/simd-3.c: New test.
465 * testsuite/libgomp.c/simd-4.c: New test.
466 * testsuite/libgomp.c/simd-5.c: New test.
467 * testsuite/libgomp.c/simd-6.c: New test.
468 * testsuite/libgomp.c/target-1.c: New test.
469 * testsuite/libgomp.c/target-2.c: New test.
470 * testsuite/libgomp.c/target-3.c: New test.
471 * testsuite/libgomp.c/target-4.c: New test.
472 * testsuite/libgomp.c/target-5.c: New test.
473 * testsuite/libgomp.c/target-6.c: New test.
474 * testsuite/libgomp.c/target-7.c: New test.
475 * testsuite/libgomp.c/taskgroup-1.c: New test.
476 * testsuite/libgomp.c/thread-limit-1.c: New test.
477 * testsuite/libgomp.c/thread-limit-2.c: New test.
478 * testsuite/libgomp.c/thread-limit-3.c: New test.
479 * testsuite/libgomp.c/udr-1.c: New test.
480 * testsuite/libgomp.c/udr-2.c: New test.
481 * testsuite/libgomp.c/udr-3.c: New test.
482 * testsuite/libgomp.c++/affinity-1.C: New test.
483 * testsuite/libgomp.c++/atomic-10.C: New test.
484 * testsuite/libgomp.c++/atomic-11.C: New test.
485 * testsuite/libgomp.c++/atomic-12.C: New test.
486 * testsuite/libgomp.c++/atomic-13.C: New test.
487 * testsuite/libgomp.c++/atomic-14.C: New test.
488 * testsuite/libgomp.c++/atomic-15.C: New test.
489 * testsuite/libgomp.c++/cancel-for-1.C: New test.
490 * testsuite/libgomp.c++/cancel-for-2.C: New test.
491 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
492 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
493 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
494 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
495 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
496 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
497 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
498 * testsuite/libgomp.c++/cancel-test.h: New file.
499 * testsuite/libgomp.c++/for-9.C: New test.
500 * testsuite/libgomp.c++/for-10.C: New test.
501 * testsuite/libgomp.c++/for-11.C: New test.
502 * testsuite/libgomp.c++/simd-1.C: New test.
503 * testsuite/libgomp.c++/simd-2.C: New test.
504 * testsuite/libgomp.c++/simd-3.C: New test.
505 * testsuite/libgomp.c++/simd-4.C: New test.
506 * testsuite/libgomp.c++/simd-5.C: New test.
507 * testsuite/libgomp.c++/simd-6.C: New test.
508 * testsuite/libgomp.c++/simd-7.C: New test.
509 * testsuite/libgomp.c++/simd-8.C: New test.
510 * testsuite/libgomp.c++/target-1.C: New test.
511 * testsuite/libgomp.c++/target-2.C: New test.
512 * testsuite/libgomp.c++/target-2-aux.cc: New file.
513 * testsuite/libgomp.c++/target-3.C: New test.
514 * testsuite/libgomp.c++/taskgroup-1.C: New test.
515 * testsuite/libgomp.c++/udr-1.C: New test.
516 * testsuite/libgomp.c++/udr-2.C: New test.
517 * testsuite/libgomp.c++/udr-3.C: New test.
518 * testsuite/libgomp.c++/udr-4.C: New test.
519 * testsuite/libgomp.c++/udr-5.C: New test.
520 * testsuite/libgomp.c++/udr-6.C: New test.
521 * testsuite/libgomp.c++/udr-7.C: New test.
522 * testsuite/libgomp.c++/udr-8.C: New test.
523 * testsuite/libgomp.c++/udr-9.C: New test.
525 2013-09-20 Jakub Jelinek <jakub@redhat.com>
528 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
531 2013-09-20 Alan Modra <amodra@gmail.com>
533 * configure: Regenerate.
535 2013-09-19 Jakub Jelinek <jakub@redhat.com>
537 * testsuite/libgomp.c/sections-2.c: New test.
539 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
541 * testsuite/libgomp.fortran/strassen.f90:
542 Add dg-skip-if aarch64_tiny.
544 2013-06-20 Iain Sandoe <iain@codesourcery.com>
545 Cesar Philippidis <cesar@codesourcery.com>
547 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
548 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
549 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
550 * testsuite/libgomp.fortran/fortran.exp: Likewise.
551 * testsuite/libgomp.graphite/graphite.exp: Likewise.
552 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
553 Use dg-runtest rather than gfortran-dg-runtest.
555 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
557 * testsuite/libgomp.c/icv-2.c: Extend current handling of
558 Linux-based x86 systems to cover all GNU systems.
559 * testsuite/libgomp.c/lock-3.c: Likewise.
560 * testsuite/libgomp.c/pr48591.c: Likewise.
562 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
564 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
565 GNU/Hurd, as done for Linux-based systems.
567 * config/posix/ptrlock.h: Fix comment.
569 2013-05-27 Tobias Burnus <burnus@net-b.de>
572 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
573 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
574 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
575 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
576 omp_destroy_nest_lock): Correct arguments to match the one in
578 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
579 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
580 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
581 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
583 2013-05-16 Jakub Jelinek <jakub@redhat.com>
585 * testsuite/libgomp.c/loop-13.c: New test.
586 * testsuite/libgomp.c/loop-14.c: New test.
587 * testsuite/libgomp.c/loop-15.c: New test.
588 * testsuite/libgomp.c++/loop-13.C: New test.
589 * testsuite/libgomp.c++/loop-14.C: New test.
590 * testsuite/libgomp.c++/loop-15.C: New test.
592 2013-02-06 Jakub Jelinek <jakub@redhat.com>
595 * testsuite/libgomp.c++/pr56217.C: New test.
597 2013-02-01 Alan Modra <amodra@gmail.com>
599 * task.c (GOMP_task, GOMP_taskwait): Comment.
601 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
602 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
605 * config/linux/wait.h (do_spin): Use atomic load for addr.
606 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
607 for intptr and ptrlock.
608 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
611 2013-01-22 Alan Modra <amodra@gmail.com>
615 * task.c (GOMP_task): Revert 2011-12-09 change.
616 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
617 barrier to read task->children..
618 (gomp_barrier_handle_tasks): ..and matching atomic store with
619 release barrier here when setting parent->children to NULL.
621 2013-01-16 Jakub Jelinek <jakub@redhat.com>
622 Tobias Burnus <burnus@net-b.de>
625 * testsuite/libgomp.fortran/fortran.exp: Use
626 -fintrinsic-modules-path= instead of
627 -fintrinsic-modules-path.
629 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
631 Update copyright years.
633 2012-12-19 Tobias Burnus <burnus@net-b.de>
635 * testsuite/libgomp.fortran/fortran.exp: Set
636 -fintrinsic-modules-path.
638 2012-12-19 Tobias Burnus <burnus@net-b.de>
640 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
641 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
643 2012-11-21 Jakub Jelinek <jakub@redhat.com>
646 * team.c (gomp_free_thread): Decrease gomp_managed_threads
647 if pool had any threads_used.
649 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
651 * testsuite/libgomp.c++/pr24455.C: Use
652 -Wl,-undefined,dynamic_lookup on darwin.
654 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
656 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
658 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
660 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
662 2012-10-23 Ian Bolton <ian.bolton@arm.com>
663 Jim MacArthur <jim.macarthur@arm.com>
664 Marcus Shawcroft <marcus.shawcroft@arm.com>
665 Nigel Stephens <nigel.stephens@arm.com>
666 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
667 Richard Earnshaw <rearnsha@arm.com>
668 Sofiane Naci <sofiane.naci@arm.com>
669 Stephen Thomas <stephen.thomas@arm.com>
670 Tejas Belagod <tejas.belagod@arm.com>
671 Yufeng Zhang <yufeng.zhang@arm.com>
673 * configure.tgt: Add AArch64.
675 2012-10-04 Jason Merrill <jason@redhat.com>
677 * testsuite/libgomp.c++/tls-init1.C: New.
679 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
681 * configure: Regenerated.
683 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
685 * config/linux/mips/futex.h (sys_futex0): Change to static
686 function with noinline, nomips16 attributes under MIPS16. Adjust
687 asm statement to place 'li v0,SYS_futex' immediately before
690 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
692 * libgomp.texi (Library Index): Renamed from "Index" to prevent
693 conflict with index.html on case-insensitive file systems.
695 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
697 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
698 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
700 2012-07-02 Richard Guenther <rguenther@suse.de>
701 Michael Matz <matz@suse.de>
702 Tobias Grosser <tobias@grosser.es>
703 Sebastian Pop <sebpop@gmail.com>
705 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
706 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
707 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
708 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
710 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
712 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
714 2012-06-22 Richard Guenther <rguenther@suse.de>
716 Merge from graphite branch
717 2012-01-13 Tobias Grosser <tobias@grosser.es>
719 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
720 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
722 2012-06-07 Jakub Jelinek <jakub@redhat.com>
725 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
726 use GOMP_barrier () call instead.
727 * testsuite/libgomp.c/pr26943-3.c: Likewise.
728 * testsuite/libgomp.c/pr26943-4.c: Likewise.
729 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
730 call GOMP_barrier instead.
731 * testsuite/libgomp.fortran/vla5.f90: Likewise.
733 2012-06-06 Jakub Jelinek <jakub@redhat.com>
736 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
737 argument to memset call.
739 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
741 * configure: Regenerated.
743 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
745 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
747 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
750 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
752 2012-03-22 Jakub Jelinek <jakub@redhat.com>
755 * testsuite/libgomp.c/pr52547.c: New test.
757 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
759 * testsuite/lib/libgomp.exp: load fortran-modules.exp
761 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
763 * configure.tgt (mips-sgi-irix6*): Remove.
765 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
767 * configure.tgt (alpha*-dec-osf*): Remove.
769 * config/osf/sem.h: Remove.
770 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
772 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
774 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
776 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
779 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
780 Remove ENABLE_SYMVERS_SOL2.
781 * configure: Regenerate.
782 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
783 (PREPROCESS): New variable.
784 (libgomp.ver): New target.
785 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
786 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
787 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
789 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
790 * Makefile.in: Regenerate.
792 2012-02-14 Walter Lee <walt@tilera.com>
794 * configure.tgt: Handle tilegx and tilepro.
795 * config/linux/tile/futex.h: New file.
797 2012-02-08 Richard Guenther <rguenther@suse.de>
799 PR tree-optimization/46886
800 * testsuite/libgomp.c/pr46886.c: New testcase.
802 2012-01-25 Matthias Klose <doko@ubuntu.com>
804 * config/linux/arm: Remove empty directory.
805 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
807 2011-12-09 Alan Modra <amodra@gmail.com>
810 * task.c (GOMP_taskwait): Don't access task->children outside of
811 task_lock mutex region.
812 (GOMP_task): Likewise.
814 2011-12-06 Jakub Jelinek <jakub@redhat.com>
817 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
819 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
820 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
821 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
822 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
823 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
825 2011-12-02 Alan Modra <amodra@gmail.com>
827 * config/linux/affinity.c: Use atomic rather than sync builtin.
828 * config/linux/lock.c: Likewise.
829 * config/linux/ptrlock.h: Likewise.
830 * config/linux/ptrlock.c: Likewise.
831 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
832 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
833 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
834 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
835 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
836 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
837 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
838 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
839 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
840 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
842 2011-11-30 Alan Modra <amodra@gmail.com>
845 * config/linux/bar.h: Use atomic rather than sync builtins.
846 * config/linux/bar.c: Likewise. Add missing acquire
847 synchronisation on generation field.
848 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
851 2011-11-30 Alan Modra <amodra@gmail.com>
853 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
854 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
855 * config/linux/mutex.h: Use atomic rather than sync builtins.
856 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
857 * config/linux/omp-lock.h: Comment fix.
858 * config/linux/arm/mutex.h: Delete.
859 * config/linux/powerpc/mutex.h: Delete.
860 * config/linux/ia64/mutex.h: Delete.
861 * config/linux/mips/mutex.h: Delete.
863 2011-11-30 Alan Modra <amodra@gmail.com>
866 * config/linux/sem.h: Rewrite.
867 * config/linux/sem.c: Rewrite.
869 2011-11-28 Richard Henderson <rth@redhat.com>
871 * libgomp.h (enum memmodel): New.
873 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
875 * configure: Regenerate.
877 2011-10-10 Matthias Klose <doko@ubuntu.com>
879 * config/posix95: Remove empty directory.
881 2011-08-26 Jakub Jelinek <jakub@redhat.com>
883 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
885 2011-08-19 Jakub Jelinek <jakub@redhat.com>
888 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
889 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
891 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
893 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
895 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
898 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
900 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
902 * config/linux/proc.h: New.
903 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
904 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
905 (gomp_init_num_threads): Update call to cpuset_popcount.
906 (get_num_procs): Ditto.
907 * config/linux/affinity.c (gomp_init_affinity): Call
908 gomp_cpuset_popcount.
910 2011-08-02 Jakub Jelinek <jakub@redhat.com>
914 * omp.h.in (omp_in_final): New prototype.
915 * omp_lib.f90.in (omp_in_final): New interface.
916 (omp_integer_kind, omp_logical_kind): Remove
917 and replace all its uses in the module with 4.
918 (openmp_version): Change to 201107.
919 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
920 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
921 kind for the parameters.
922 (omp_in_final): New external.
923 (openmp_version): Change to 201107.
924 * task.c (omp_in_final): New function.
925 (gomp_init_task): Initialize final_task.
926 (GOMP_task): Remove unused attribute from flags. Handle final
928 (GOMP_taskyield): New function.
929 (omp_in_final): Return true if if (false) or final (true) task
930 or descendant of final (true).
931 * fortran.c (omp_in_final_): New function.
932 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
933 (GOMP_3.0): Export GOMP_taskyield.
934 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
936 (parse_unsigned_long_list): New function.
937 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
938 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
939 even if parse_affinity returned false.
940 * config/linux/affinity.c (gomp_init_affinity): Handle
941 gomp_cpu_affinity_len == 0.
942 * libgomp_g.h (GOMP_taskyield): New prototype.
943 * libgomp.h (struct gomp_task): Add final_task field.
944 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
945 * team.c (gomp_team_start): Override new task's nthreads_var icv
946 if list form OMP_NUM_THREADS has been used and it has value for
947 the new nesting level.
949 * testsuite/libgomp.c/atomic-11.c: New test.
950 * testsuite/libgomp.c/atomic-12.c: New test.
951 * testsuite/libgomp.c/atomic-13.c: New test.
952 * testsuite/libgomp.c/atomic-14.c: New test.
953 * testsuite/libgomp.c/reduction-6.c: New test.
954 * testsuite/libgomp.c/task-5.c: New test.
955 * testsuite/libgomp.c++/atomic-2.C: New test.
956 * testsuite/libgomp.c++/atomic-3.C: New test.
957 * testsuite/libgomp.c++/atomic-4.C: New test.
958 * testsuite/libgomp.c++/atomic-5.C: New test.
959 * testsuite/libgomp.c++/atomic-6.C: New test.
960 * testsuite/libgomp.c++/atomic-7.C: New test.
961 * testsuite/libgomp.c++/atomic-8.C: New test.
962 * testsuite/libgomp.c++/atomic-9.C: New test.
963 * testsuite/libgomp.c++/task-8.C: New test.
964 * testsuite/libgomp.c++/reduction-4.C: New test.
965 * testsuite/libgomp.fortran/allocatable7.f90: New test.
966 * testsuite/libgomp.fortran/allocatable8.f90: New test.
967 * testsuite/libgomp.fortran/crayptr3.f90: New test.
968 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
969 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
970 * testsuite/libgomp.fortran/pointer1.f90: New test.
971 * testsuite/libgomp.fortran/pointer2.f90: New test.
972 * testsuite/libgomp.fortran/task4.f90: New test.
974 2011-08-02 Tobias Burnus <burnus@net-b.de>
976 * libgomp.texi: Update OpenMP spec references to 3.1.
977 (omp_in_final,OMP_PROC_BIND): New sections.
978 (OMP_NUM_THREADS): Document that the value can be now a list.
979 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
981 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
983 * config/linux/x86/futex.h: Check __x86_64__ instead of
986 2011-07-29 Jakub Jelinek <jakub@redhat.com>
990 * testsuite/libgomp.c/pr49897-1.c: New test.
991 * testsuite/libgomp.c/pr49897-2.c: New test.
992 * testsuite/libgomp.c/pr49898-1.c: New test.
993 * testsuite/libgomp.c/pr49898-2.c: New test.
995 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
997 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
998 for ia32 instead of ilp32.
1000 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1001 * testsuite/libgomp.c/atomic-6.c: Likewise.
1003 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
1005 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1006 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1008 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1011 * config/osf/sem.h: New file.
1012 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1014 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1017 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1020 2011-07-15 Jakub Jelinek <jakub@redhat.com>
1022 * config/linux/wait.h (do_spin): New inline, largely copied
1023 from do_wait, just don't do futex_wait here, instead return true if
1025 (do_wait): Implement using do_spin.
1026 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1028 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1029 __sync_bool_compare_and_swap, pass the oldval to
1030 gomp_mutex_lock_slow.
1031 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1032 If all mutex contenders are just spinning and not sleeping, don't
1033 change state to 2 unnecessarily. Optimize the loop when state has
1034 already become 2 to use just one atomic operation per loop instead
1036 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1038 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1039 __sync_bool_compare_and_swap, pass the oldval to
1040 gomp_mutex_lock_slow.
1042 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1045 * iter.c (gomp_iter_static_next): For chunk size 0
1046 only use n ceil/ nthreads size for the first
1047 n % nthreads threads in the team instead of
1048 all threads except for the last few ones which
1049 get less work or none at all.
1050 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1051 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1052 chunk argument, set run_sched_modifier to 0 for static
1053 resp. 1 for other kinds. If chunk argument is 0
1054 and not static, set value to 1.
1056 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1059 * testsuite/libgomp.c++/pr49043.C: New test.
1062 * testsuite/libgomp.c++/pr48869.C: New test.
1064 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1067 * fortran.c: Include limits.h.
1069 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1071 (omp_set_num_threads_8_, omp_set_schedule_8_,
1072 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1073 omp_get_team_size_8_): Use TO_INT macro.
1074 * testsuite/libgomp.fortran/pr48894.f90: New test.
1076 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1079 * testsuite/libgomp.c/pr48591.c: New test.
1081 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1084 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1085 * configure: Regenerate.
1087 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1090 * testsuite/libgomp.fortran/task3.f90: New test.
1092 2011-02-24 Tobias Burnus <burnus@net-b.de>
1094 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1096 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1099 * libgomp.texi (omp_get_wtime): Don't say time in the past
1102 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1105 * testsuite/libgomp.fortran/fortran.exp: Check for both
1106 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1107 but $blddir != "", still append ${blddir}/${lang_library_path}
1110 2011-02-16 Tobias Burnus <burnus@net-b.de>
1113 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1114 of libquadmath.a before adding its libpath to ldflags.
1116 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1119 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1120 to FUTEX_WAIT futex syscall.
1121 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1123 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1125 * configure: Regenerate.
1127 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1130 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1132 2011-01-16 Gerald Pfeifer
1134 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1136 2010-12-14 Jakub Jelinek <jakub@redhat.com>
1139 * libgomp.fortran/allocatable6.f90: New test.
1141 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1143 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1144 * configure: Regenerate.
1146 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1150 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1151 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1152 * aclocal.m4: Regenerate.
1153 * configure: Regenerate.
1154 * Makefile.in: Regenerate.
1155 * testsuite/Makefile.in: Regenerate.
1157 2010-12-02 Jakub Jelinek <jakub@redhat.com>
1160 * libgomp.fortran/pr46753.f90: New test.
1163 * env.c (initialize_env): Default to spin count 300000
1164 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1168 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1169 at the end if sync builtins aren't supported.
1171 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1173 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1175 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1177 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1179 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
1181 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1183 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1184 Tobias Burnus <burnus@net-b.de>
1188 * configure: Regenerate.
1190 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
1192 * config/linux/futex.h: New.
1193 * config/linux/arm/mutex.h: New.
1194 * configure.tgt (arm*-*-linux*): Add config path.
1196 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
1198 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1200 2010-09-23 Tobias Burnus <burnus@net-b.de>
1202 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1203 Change Fortran datatype to LOGICAL.
1204 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1205 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1207 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1209 * configure: Regenerate.
1211 2010-07-26 Jakub Jelinek <jakub@redhat.com>
1213 * libgomp.texi: Add function keyword to a couple of Fortran
1214 interfaces, use integer instead of int for Fortran.
1216 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
1218 * libgomp.texi: Fix spelling and pasto problems throughout.
1219 Adjust prototypes to match code.
1221 2010-07-24 Tobias Burnus <burnus@net-b.de>
1223 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1224 silence -fwhole-file warning.
1226 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1228 * configure.tgt (*-*-solaris2.[56]*): Removed.
1230 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1232 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1233 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1234 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1235 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1236 targetting solaris2*.
1237 * configure: Regenerate.
1238 * config.h.in: Regenerate.
1240 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1241 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1242 Add libgomp_version_dep.
1243 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1245 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1246 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1247 * Makefile.in: Regenerate.
1249 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1250 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1251 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1252 to common block, protected by
1253 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1255 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1257 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
1259 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
1262 * configure: Regenerate.
1264 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1267 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1268 * configure: Regenerate.
1269 * Makefile.in: Regenerate.
1270 * testsuite/Makefile.in: Regenerate.
1272 2010-04-26 Jakub Jelinek <jakub@redhat.com>
1275 * testsuite/libgomp.c/pr43893.c: New test.
1276 * testsuite/libgomp.c++/pr43893.C: New test.
1278 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1281 * testsuite/libgomp.fortran/vla8.f90: New test.
1283 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1286 * config/linux/affinity.c (gomp_init_affinity): Decrease
1287 gomp_available_cpus if affinity mask confines the process to fewer
1289 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1290 non-NULL, just return gomp_available_cpus.
1293 * sections.c (gomp_sections_init): Initialize ws->mode.
1295 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
1297 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1298 not unused bar variable.
1299 * configure: Regenerate.
1301 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1303 * Makefile.in: Regenerate.
1304 * aclocal.m4: Regenerate.
1305 * testsuite/Makefile.in: Regenerate.
1307 2010-03-22 Jakub Jelinek <jakub@redhat.com>
1310 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1311 (initialize_env): Adjust callers.
1312 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1313 when the argument is 0.
1315 * testsuite/libgomp.c/pr42942.c: New test.
1317 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1321 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1322 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1324 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1326 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1327 * testsuite/libgomp.c++/task-6.C: Likewise.
1329 2010-01-28 Steve Ellcey <sje@cup.hp.com>
1331 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1333 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
1335 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1336 * configure: Regenerate.
1338 2010-01-26 Jakub Jelinek <jakub@redhat.com>
1341 * testsuite/libgomp.fortran/allocatable5.f90: New test.
1343 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
1345 * configure.ac: Test for executability of GFORTRAN.
1346 * configure: Regenerate.
1348 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1350 * configure: Regenerate.
1352 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
1355 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1357 2010-01-03 Richard Guenther <rguenther@suse.de>
1359 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1361 2009-12-23 Sebastian Pop <sebpop@gmail.com>
1363 * testsuite/libgomp.graphite/pr4118.c: New.
1365 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1367 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1368 for darwin, protect the test with require-effective-target tls_runtime.
1369 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1371 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1374 * testsuite/lib/libgomp.exp: Provide -B options to allow for
1375 link spec %s substitutions for static libraries.
1377 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
1380 * libgomp.graphite/force-parallel-2.c: Reduce array size.
1382 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1384 * Makefile.in: Regenerate.
1385 * configure: Regenerate.
1386 * testsuite/Makefile.in: Regenerate.
1388 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1390 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1391 settings for LC_ALL and LANG.
1393 2009-11-25 Jakub Jelinek <jakub@redhat.com>
1396 * testsuite/libgomp.fortran/pr42162.f90: New test.
1398 2009-11-13 Jakub Jelinek <jakub@redhat.com>
1401 * testsuite/libgomp.c/pr42029.c: New test.
1403 2009-10-26 Jakub Jelinek <jakub@redhat.com>
1405 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1406 *s. Accept ld version without text in ()s.
1407 * configure: Regenerated.
1409 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1411 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1413 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1416 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1417 or a hyphen (happens with fortran language disabled).
1418 * configure: Regenerate.
1420 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1422 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1423 use sed script portable to Solaris /bin/sed for extracting ld
1425 * configure: Regenerate.
1427 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1429 * testsuite/libgomp.graphite/bounds.c: New test.
1431 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1433 * Makefile.am (libgomp_la_LINK): New.
1434 * Makefile.in: Regenerate.
1436 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1438 * configure.ac (AC_PREREQ): Bump to 2.64.
1440 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1442 * Makefile.am (install-html, install-pdf): Remove.
1443 * Makefile.in: Regenerate.
1445 * Makefile.in: Regenerate.
1446 * aclocal.m4: Regenerate.
1447 * config.h.in: Regenerate.
1448 * configure: Regenerate.
1449 * testsuite/Makefile.in: Regenerate.
1451 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1453 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1454 * Makefile.in: Regenerate.
1456 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
1458 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1459 * Makefile.in: Regenerate.
1461 2009-08-19 Tobias Burnus <burnus@net-b.de>
1464 omp_lib.h.in: Fix -std=f95 errors.
1467 2009-08-14 David Edelsohn <edelsohn@gnu.org>
1469 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1470 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1471 * testsuite/libgomp.graphite/graphite.exp: New.
1473 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
1475 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1478 2009-08-04 David Daney <ddaney@caviumnetworks.com>
1480 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1481 needed memory barrier semantics.
1482 * config/linux/mips/mutex.h: New file.
1484 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1486 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1488 2009-07-16 Joseph Myers <joseph@codesourcery.com>
1490 * configure: Regenerate.
1492 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
1497 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1498 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1499 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1501 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1503 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1504 options when choosing a multilib.
1506 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
1508 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1509 ld_library_path. Use add_path. Add just find_libgcc_s to
1510 ld_library_path, not every libgcc multilib directory.
1511 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1512 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1513 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1515 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1517 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
1519 * Makefile.am (LTLDFLAGS): Define.
1521 * Makefile.in: Regenerate.
1523 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1526 * testsuite/libgomp.fortran/fortran.exp: Don't link with
1527 libgfortranbegin, check existence of libgfortran.a instead of
1530 2009-05-20 Jakub Jelinek <jakub@redhat.com>
1533 * team.c (gomp_thread_start): Destroy thr->release semaphore.
1534 (gomp_free_pool_helper): Likewise.
1536 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
1537 Jakub Jelinek <jakub@redhat.com>
1540 * testsuite/libgomp.fortran/workshare2.f90: New test.
1542 2009-04-09 Nick Clifton <nickc@redhat.com>
1544 * iter.c: Change copyright header to refer to version 3 of the
1545 GNU General Public License with version 3.1 of the GCC Runtime
1546 Library Exception and to point readers at the COPYING3 and
1547 COPYING3.RUNTIME files and the FSF's license web page.
1548 * alloc.c: Likewise.
1549 * barrier.c: Likewise.
1550 * config/bsd/proc.c: Likewise.
1551 * config/linux/affinity.c: Likewise.
1552 * config/linux/alpha/futex.h: Likewise.
1553 * config/linux/bar.c: Likewise.
1554 * config/linux/bar.h: Likewise.
1555 * config/linux/ia64/futex.h: Likewise.
1556 * config/linux/ia64/mutex.h: Likewise.
1557 * config/linux/lock.c: Likewise.
1558 * config/linux/mips/futex.h: Likewise.
1559 * config/linux/mutex.c: Likewise.
1560 * config/linux/mutex.h: Likewise.
1561 * config/linux/powerpc/futex.h: Likewise.
1562 * config/linux/proc.c: Likewise.
1563 * config/linux/ptrlock.c: Likewise.
1564 * config/linux/ptrlock.h: Likewise.
1565 * config/linux/s390/futex.h: Likewise.
1566 * config/linux/sem.c: Likewise.
1567 * config/linux/sem.h: Likewise.
1568 * config/linux/sparc/futex.h: Likewise.
1569 * config/linux/wait.h: Likewise.
1570 * config/linux/x86/futex.h: Likewise.
1571 * config/mingw32/proc.c: Likewise.
1572 * config/mingw32/time.c: Likewise.
1573 * config/posix/affinity.c: Likewise.
1574 * config/posix/bar.c: Likewise.
1575 * config/posix/bar.h: Likewise.
1576 * config/posix/lock.c: Likewise.
1577 * config/posix/mutex.h: Likewise.
1578 * config/posix/proc.c: Likewise.
1579 * config/posix/ptrlock.h: Likewise.
1580 * config/posix/sem.c: Likewise.
1581 * config/posix/sem.h: Likewise.
1582 * config/posix/time.c: Likewise.
1583 * config/posix95/lock.c: Likewise.
1584 * critical.c: Likewise.
1586 * error.c: Likewise.
1587 * fortran.c: Likewise.
1588 * iter_ull.c: Likewise.
1589 * libgomp.h: Likewise.
1590 * libgomp_f.h.in: Likewise.
1591 * libgomp_g.h: Likewise.
1593 * loop_ull.c: Likewise.
1594 * omp.h.in: Likewise.
1595 * omp_lib.f90.in: Likewise.
1596 * omp_lib.h.in: Likewise.
1597 * ordered.c: Likewise.
1598 * parallel.c: Likewise.
1599 * sections.c: Likewise.
1600 * single.c: Likewise.
1605 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1607 * testsuite/config/default.exp: Change copyright header to refer to
1608 version 3 of the GNU General Public License and to point readers
1609 at the COPYING3 file and the FSF's license web page.
1611 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1614 * libgomp.c++/pr39573.C: New test.
1616 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1619 * testsuite/libgomp.c/pr39591-1.c: New test.
1620 * testsuite/libgomp.c/pr39591-2.c: New test.
1621 * testsuite/libgomp.c/pr39591-3.c: New test.
1623 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1625 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1626 * testsuite/libgomp.c/atomic-6.c: Ditto.
1628 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1631 * testsuite/libgomp.c/loop-12.c: New test.
1632 * testsuite/libgomp.c/loop-11.c: New test.
1633 * testsuite/libgomp.c++/loop-11.C: New test.
1634 * testsuite/libgomp.c++/loop-12.C: New test.
1635 * testsuite/libgomp.c++/for-8.C: New test.
1637 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1639 * configure: Regenerate.
1641 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1644 * testsuite/libgomp.c/pr39154.c: New test.
1646 2009-01-30 Ian Lance Taylor <iant@google.com>
1648 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1649 libgomp_ld_is_gold. Get gold version number.
1650 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1651 * configure: Rebuild.
1653 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1655 * testsuite/lib/libgomp.exp: Add -B option for targets that
1656 use libgfortran.a%s in their specs.
1658 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1661 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1662 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1663 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1664 * configure: Regenerated.
1665 * config.h.in: Likewise.
1667 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1670 * testsuite/libgomp.c/pr38650.c: New test.
1671 * testsuite/libgomp.c++/pr38650.C: New test.
1673 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1675 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1677 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1679 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1681 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1683 * configure: Regenerate.
1685 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1688 * testsuite/libgomp.c/pr36802-1.c: New test.
1689 * testsuite/libgomp.c/pr36802-2.c: New test.
1690 * testsuite/libgomp.c/pr36802-3.c: New test.
1692 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1695 * config/linux/powerpc/mutex.h: New.
1697 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1700 * testsuite/libgomp.c++/for-7.C: New test.
1703 * testsuite/libgomp.c++/for-6.C: New test.
1705 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1708 * testsuite/lib/libgomp.exp: Include new timeout library files.
1709 (libgomp_target_compile): Set timeout value from new proc.
1711 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1714 * config/linux/ia64/mutex.h: New.
1716 2008-11-04 Tobias Burnus <burnus@net-b.de>
1719 * libgomp.texi (Runtime library routines, environment variables):
1720 Update for OpenMP version 3.0.
1722 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1723 Steve Ellcey <sje@cup.hp.com>
1725 * configure: Regenerate for new libtool.
1726 * Makefile.in: Ditto.
1727 * testsuite/Makefile.in: Ditto.
1729 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1730 Andreas Tobler <a.tobler@schweiz.org>
1732 * config/bsd/proc.c: New file.
1733 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1734 * configure.ac: Check for header <sys/sysctl.h>
1735 * configure: Regenerate.
1736 * config.h.in: Likewise.
1738 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1740 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1742 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1744 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1745 * Makefile.in: Regenerated.
1746 * testsuite/Makefile.in: Regenerated.
1748 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1750 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1751 depend on blddir if blddir exists.
1752 (libgomp_target_compile): Likewise.
1753 * testsuite/libgomp.c++/c++.exp: Likewise.
1754 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1756 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1758 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1759 Do not list GPL as Invariant Section.
1761 2008-07-28 Ilie Garbacea <ilie@mips.com>
1762 Chao-ying Fu <fu@mips.com>
1764 * configure.tgt: Enable futex for MIPS.
1765 * config/linux/mips/futex.h: New file.
1767 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1769 * team.c (gomp_team_end): Free team immediately if it has
1772 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1774 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1775 * testsuite/libgomp.fortran/fortran.exp: Same.
1776 * testsuite/libgomp.c/c.exp: Same.
1777 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1778 directory to library path first.
1780 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1782 * env.c (parse_stacksize): Add cast to avoid warning.
1783 (parse_spincount): Likewise.
1785 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1787 * testsuite/libgomp.c/loop-10.c: New test.
1788 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1789 * libgomp.c++/loop-6.C (main): Likewise.
1792 * testsuite/libgomp.c/debug-1.c: New test.
1794 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1796 * testsuite/libgomp.c/nqueens-1.c: New test.
1799 * testsuite/libgomp.c++/task-7.C: New function.
1801 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1803 * configure: Regenerate.
1805 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1807 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1808 mutex when HAVE_SYNC_BUILTINS isn't defined.
1810 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1812 * libgomp.texi (omp_test_lock): Fix typo.
1814 2008-06-12 Tobias Burnus <burnus@net-b.de>
1816 * omp_lib.f90.in: Add "implicit none".
1818 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1821 * testsuite/libgomp.c/reduction-5.c: New test.
1823 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1825 * libgomp.h (struct gomp_task): Add in_tied_task field.
1826 * task.c (gomp_init_task): Initialize it.
1827 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1828 unconditionally. Don't call gomp_team_barrier_wake if
1829 current task is implicit or if(0) from implicit and number of
1830 running tasks is equal to nthreads - 1.
1833 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1834 omp_get_team_size_8): Fix pastos.
1837 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1838 * configure: Regenerated.
1839 * config.h.in: Regenerated.
1840 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1843 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1846 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1847 (GOMP_loop_ull_dynamic_start): Likewise.
1848 (GOMP_loop_ull_guided_start): Likewise.
1849 (GOMP_loop_ull_ordered_static_start): Likewise.
1850 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1851 (GOMP_loop_ull_ordered_guided_start): Likewise.
1853 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1854 Richard Henderson <rth@redhat.com>
1855 Ulrich Drepper <drepper@redhat.com>
1856 Jakob Blomer <jakob.blomer@ira.uka.de>
1858 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1859 Substitute also OMP_*LOCK_25*.
1860 * configure: Regenerated.
1861 * config.h.in: Regenerated.
1862 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1863 ptrlock.c and task.c.
1864 * Makefile.in: Regenerated.
1865 * testsuite/Makefile.in: Regenerated.
1867 * loop_ull.c: New file.
1868 * iter_ull.c: New file.
1869 * libgomp.h: Include ptrlock.h.
1870 (enum gomp_task_kind): New type.
1871 (struct gomp_team): Add task_lock, task_queue, task_count,
1872 task_running_count, single_count fields. Add
1873 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1874 Remove work_share_lock, generation_mask,
1875 oldest_live_gen, num_live_gen and init_work_shares fields, add
1876 work work_share_list_alloc, work_share_list_free and work_share_chunk
1877 fields. Change work_shares from pointer to pointers into an array.
1878 Change ordered_release field into gomp_sem_t ** from flexible array
1879 member. Add implicit_task and initial_work_shares fields.
1880 Move close to the end of the struct.
1881 (struct gomp_team_state): Add single_count, last_work_share,
1882 active_level and level fields, remove work_share_generation.
1883 (gomp_barrier_handle_tasks): New prototype.
1884 (gomp_finish_task): New inline function.
1885 (struct gomp_work_share): Move chunk_size, end, incr into
1886 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1887 next_ll fields. Reshuffle fields. Add next_alloc,
1888 next_ws, next_free and inline_ordered_team_ids fields, change
1889 ordered_team_ids into pointer from flexible array member.
1890 Add mode field. Put lock and next into a different cache line
1891 from most of the write-once fields.
1892 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1893 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1894 gomp_iter_ull_guided_next): New prototypes.
1895 (gomp_new_icv): New prototype.
1896 (struct gomp_thread): Add thread_pool and task fields.
1897 (struct gomp_thread_pool): New type.
1898 (gomp_new_team): New prototype.
1899 (gomp_team_start): Change type of last argument.
1900 (gomp_new_work_share): Removed.
1901 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1902 (gomp_work_share_init_done): New static inline.
1903 (gomp_throttled_spin_count_var, gomp_available_cpus,
1904 gomp_managed_threads): New extern decls.
1905 (gomp_init_task): New prototype.
1906 (gomp_spin_count_var): New extern var decl.
1907 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1908 or no alias support, or if not PIC.
1909 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1910 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1911 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1912 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1913 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1914 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1915 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1916 gomp_test_nest_lock_25): New prototypes.
1917 (omp_lock_symver, strong_alias): Define.
1918 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1920 (gomp_end_task): New.
1921 (struct gomp_task_icv, gomp_global_icv): New.
1922 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1923 (struct gomp_task): New.
1924 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1925 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1927 (gomp_schedule_type): Reorder enum to match
1929 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1931 (gomp_thread_start): Add gomp_team_barrier_wait call.
1932 For non-nested case remove clearing of docked thread thr fields.
1933 Use pool fields instead of global gomp_* variables. Use
1934 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1935 Create tasks for each member thread.
1936 (free_team): Only destroy team barrier, task_lock here and free it.
1937 (gomp_free_thread): Free last_team if non-NULL.
1938 (gomp_team_end): Call gomp_team_barrier_wait instead of
1939 gomp_barrier_wait. For nested case call one extra
1940 gomp_barrier_wait. Move here some destruction from free_team.
1941 Call free_team on pool->last_team if any, rather than freeing
1942 current team. Destroy work_share_list_free_lock ifndef
1944 (gomp_new_icv): New function.
1945 (gomp_threads, gomp_threads_size, gomp_threads_used,
1946 gomp_threads_dock): Removed.
1947 (gomp_thread_destructor): New variable.
1948 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1950 (gomp_team_start): Create new pool if current thread doesn't have
1951 one. Use pool fields instead of global gomp_* variables.
1952 Initialize thread_pool field for new threads. Clear single_count.
1953 Change last argument from ws to team, don't create
1954 new team, set ts.work_share to &team->work_shares[0] and clear
1955 ts.last_work_share. Don't clear ts.work_share_generation.
1956 If number of threads changed, adjust atomically gomp_managed_threads.
1957 Use gomp_init_task instead of gomp_new_task,
1958 set thr->task to the corresponding implicit_task array entry.
1959 Create tasks for each member thread. Initialize ts.level.
1960 (initialize_team): Call pthread_key_create on
1961 gomp_thread_destructor.
1962 (team_destructor): New function.
1963 (new_team): Removed.
1964 (gomp_new_team): New function.
1965 (free_team): Free gomp_work_share blocks chained through next_alloc,
1966 instead of freeing work_shares and destroying work_share_lock.
1967 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1968 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1969 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1970 of gomp_barrier_wait.
1971 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1972 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1973 if gomp_work_share_start returned true. Don't unlock ws->lock.
1974 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1975 of gomp_barrier_wait.
1976 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1977 gomp_work_share_init_done if gomp_work_share_start returned true.
1978 Don't unlock ws->lock.
1979 * work.c: Include stddef.h.
1980 (free_work_share): Use work_share_list_free_lock instead
1981 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1982 Call gomp_fini_work_share and then either free ws if orphaned, or
1983 put it into work_share_list_free list of the current team.
1984 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1986 (gomp_work_share_start, gomp_work_share_end,
1987 gomp_work_share_end_nowait): Rewritten.
1988 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1989 (openmp_version): Set to 200805.
1990 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1991 omp_sched_guided, omp_sched_auto): New parameters.
1992 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1993 omp_set_max_active_levels, omp_get_max_active_levels,
1994 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1995 omp_get_active_level): New interfaces.
1996 * omp_lib.h.in (openmp_version): Set to 200805.
1997 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1998 omp_sched_guided, omp_sched_auto): New parameters.
1999 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2000 omp_set_max_active_levels, omp_get_max_active_levels,
2001 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2002 omp_get_active_level): New externals.
2003 * loop.c: Include limits.h.
2004 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2006 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2007 Likewise. Use gomp_icv.
2008 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2009 ts.static_trip here.
2010 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2011 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
2012 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2013 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
2014 don't unlock ws->lock, otherwise lock it.
2015 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2016 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
2017 (gomp_parallel_loop_start): Call gomp_new_team instead of
2018 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2019 Adjust gomp_team_start caller. Pass 0 as second argument to
2020 gomp_resolve_num_threads.
2021 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2022 If adding ws->chunk_size nthreads + 1 times after end won't
2023 overflow, set ws->mode to 1.
2024 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2025 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2026 GOMP_loop_ull_ordered_static_start,
2027 GOMP_loop_ull_ordered_dynamic_start,
2028 GOMP_loop_ull_ordered_guided_start,
2029 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2030 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2031 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2032 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2033 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2035 * libgomp.map: Export lock routines also @@OMP_2.0.
2036 (GOMP_loop_ordered_dynamic_first,
2037 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2038 GOMP_loop_ordered_static_first): Remove.
2039 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2040 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2041 GOMP_loop_ull_ordered_dynamic_next,
2042 GOMP_loop_ull_ordered_dynamic_start,
2043 GOMP_loop_ull_ordered_guided_next,
2044 GOMP_loop_ull_ordered_guided_start,
2045 GOMP_loop_ull_ordered_runtime_next,
2046 GOMP_loop_ull_ordered_runtime_start,
2047 GOMP_loop_ull_ordered_static_next,
2048 GOMP_loop_ull_ordered_static_start,
2049 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2050 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2051 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2052 (omp_set_schedule, omp_get_schedule,
2053 omp_get_thread_limit, omp_set_max_active_levels,
2054 omp_get_max_active_levels, omp_get_level,
2055 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2056 omp_set_schedule_, omp_set_schedule_8_,
2057 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2058 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2059 omp_get_max_active_levels_, omp_get_level_,
2060 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2061 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2062 New exports @@OMP_3.0.
2063 * omp.h.in (omp_sched_t): New type.
2064 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2065 omp_set_max_active_levels, omp_get_max_active_levels,
2066 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2067 omp_get_active_level): New prototypes.
2068 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2069 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2070 gomp_thread_limit_var, gomp_remaining_threads_count,
2071 gomp_remaining_threads_lock): New variables.
2072 (parse_spincount): New function.
2073 (initialize_env): Call gomp_init_num_threads unconditionally.
2074 Initialize gomp_available_cpus. Call parse_spincount,
2075 initialize gomp_{,throttled_}spin_count_var
2076 depending on presence and value of OMP_WAIT_POLICY and
2077 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2078 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2079 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2080 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2081 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2082 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2083 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2084 (gomp_global_icv): New.
2085 (parse_schedule): Use it. Parse "auto".
2086 (omp_set_num_threads): Use gomp_icv.
2087 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2089 (omp_get_max_threads): Move from parallel.c.
2090 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2091 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2093 (parse_stacksize, parse_wait_policy): New functions.
2094 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2095 both wrappers for compatibility and new locks.
2096 (omp_set_schedule, omp_get_schedule,
2097 omp_get_thread_limit, omp_set_max_active_levels,
2098 omp_get_max_active_levels, omp_get_level,
2099 omp_get_ancestor_thread_num, omp_get_team_size,
2100 omp_get_active_level): New ialias_redirect.
2101 (omp_set_schedule_, omp_set_schedule_8_,
2102 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2103 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2104 omp_get_max_active_levels_, omp_get_level_,
2105 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2106 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2108 * parallel.c: Include limits.h.
2109 (gomp_resolve_num_threads): Add count argument. Rewritten.
2110 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2111 argument to gomp_team_start. Pass 0 as second argument to
2112 gomp_resolve_num_threads.
2113 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2114 if gomp_thread_limit_var != ULONG_MAX.
2115 (omp_in_parallel): Implement using ts.active_level.
2116 (omp_get_max_threads): Move to env.c.
2117 (omp_get_level, omp_get_ancestor_thread_num,
2118 omp_get_team_size, omp_get_active_level): New functions,
2120 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2121 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2122 gomp_iter_dynamic_next instead of the _locked variant and don't take
2123 lock around it, otherwise acquire it before calling
2124 gomp_iter_dynamic_next_locked.
2125 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2126 gomp_iter_dynamic_next instead of the _locked variant and don't take
2128 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2129 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2130 Adjust gomp_team_start caller. Pass count as second argument to
2131 gomp_resolve_num_threads, don't adjust num_threads after the call.
2133 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2134 ws->chunk_size by incr.
2135 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2137 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2139 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2140 (omp_check_defines): Check even the compat defines.
2141 * config/linux/ptrlock.c: New file.
2142 * config/linux/ptrlock.h: New file.
2143 * config/linux/wait.h: New file.
2144 * config/posix/ptrlock.c: New file.
2145 * config/posix/ptrlock.h: New file.
2146 * config/linux/bar.h (gomp_team_barrier_wait,
2147 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2148 (gomp_team_barrier_set_task_pending,
2149 gomp_team_barrier_clear_task_pending,
2150 gomp_team_barrier_set_waiting_for_tasks,
2151 gomp_team_barrier_waiting_for_tasks,
2152 gomp_team_barrier_done): New inlines.
2153 (gomp_barrier_t): Rewritten.
2154 (gomp_barrier_state_t): New typedef.
2155 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2156 gomp_barrier_wait_start): Rewritten.
2157 (gomp_barrier_wait_end): Change second argument to
2158 gomp_barrier_state_t.
2159 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2161 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2163 (gomp_barrier_wait_end): Rewritten.
2164 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2165 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2166 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2167 (gomp_barrier_state_t): New typedef.
2168 (gomp_team_barrier_wait,
2169 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2170 (gomp_barrier_wait_start): Or all but low 2 bits from generation
2171 into the return value. Return gomp_barrier_state_t.
2172 (gomp_team_barrier_set_task_pending,
2173 gomp_team_barrier_clear_task_pending,
2174 gomp_team_barrier_set_waiting_for_tasks,
2175 gomp_team_barrier_waiting_for_tasks,
2176 gomp_team_barrier_done): New inlines.
2177 (gomp_barrier_wait_end): Change second argument to
2178 gomp_barrier_state_t.
2179 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2181 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2182 (gomp_barrier_wait_end): Change second argument to
2183 gomp_barrier_state_t.
2184 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2185 gomp_team_barrier_wake): New functions.
2186 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2188 (gomp_futex_wake, gomp_futex_wait): New variables.
2189 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2190 * config/linux/lock.c: Rewrite to make locks task owned,
2191 for backwards compatibility provide the old entrypoints
2192 if symbol versioning. Include wait.h instead of libgomp.h and
2194 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2195 * config/posix95/lock.c: Rewrite to make locks task owned,
2196 for backwards compatibility provide the old entrypoints
2197 if symbol versioning.
2198 * config/posix/lock.c: Rewrite to make locks task owned,
2199 for backwards compatibility provide the old entrypoints
2200 if symbol versioning.
2201 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2202 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2203 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2204 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2205 (sys_futex0): Return error code.
2206 (futex_wake, futex_wait): If ENOSYS was returned, clear
2207 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2208 (cpu_relax, atomic_write_barrier): New static inlines.
2209 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2210 (futex_wake, futex_wait): If ENOSYS was returned, clear
2211 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2212 (cpu_relax, atomic_write_barrier): New static inlines.
2213 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2214 (sys_futex0): Return error code.
2215 (futex_wake, futex_wait): If ENOSYS was returned, clear
2216 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2217 (cpu_relax, atomic_write_barrier): New static inlines.
2218 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2219 (sys_futex0): Return error code.
2220 (futex_wake, futex_wait): If ENOSYS was returned, clear
2221 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2222 (cpu_relax, atomic_write_barrier): New static inlines.
2223 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2224 (sys_futex0): Return error code.
2225 (futex_wake, futex_wait): If ENOSYS was returned, clear
2226 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2227 (cpu_relax, atomic_write_barrier): New static inlines.
2228 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2229 (sys_futex0): Return error code.
2230 (futex_wake, futex_wait): If ENOSYS was returned, clear
2231 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2232 (cpu_relax, atomic_write_barrier): New static inlines.
2233 * config/linux/sem.c: Include wait.h instead of libgomp.h and
2235 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2236 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2237 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2239 (omp_nest_lock_t): Change owner into void *, add lock field.
2240 * config/posix95/omp-lock.h: Include semaphore.h.
2241 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2242 (omp_lock_t): Use sem_t instead of mutex if semaphores
2244 (omp_nest_lock_t): Likewise. Change owner to void *.
2245 * config/posix/omp-lock.h: Include semaphore.h.
2246 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2247 (omp_lock_t): Use sem_t instead of mutex if semaphores
2249 (omp_nest_lock_t): Likewise. Add owner field.
2251 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2253 * testsuite/libgomp.c/collapse-1.c: New test.
2254 * testsuite/libgomp.c/collapse-2.c: New test.
2255 * testsuite/libgomp.c/collapse-3.c: New test.
2256 * testsuite/libgomp.c/icv-1.c: New test.
2257 * testsuite/libgomp.c/icv-2.c: New test.
2258 * testsuite/libgomp.c/lib-2.c: New test.
2259 * testsuite/libgomp.c/lock-1.c: New test.
2260 * testsuite/libgomp.c/lock-2.c: New test.
2261 * testsuite/libgomp.c/lock-3.c: New test.
2262 * testsuite/libgomp.c/loop-4.c: New test.
2263 * testsuite/libgomp.c/loop-5.c: New test.
2264 * testsuite/libgomp.c/loop-6.c: New test.
2265 * testsuite/libgomp.c/loop-7.c: New test.
2266 * testsuite/libgomp.c/loop-8.c: New test.
2267 * testsuite/libgomp.c/loop-9.c: New test.
2268 * testsuite/libgomp.c/nested-3.c: New test.
2269 * testsuite/libgomp.c/nestedfn-6.c: New test.
2270 * testsuite/libgomp.c/sort-1.c: New test.
2271 * testsuite/libgomp.c/task-1.c: New test.
2272 * testsuite/libgomp.c/task-2.c: New test.
2273 * testsuite/libgomp.c/task-3.c: New test.
2274 * testsuite/libgomp.c/task-4.c: New test.
2275 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2276 to C++ testsuite default compiler options.
2277 * testsuite/libgomp.c++/collapse-1.C: New test.
2278 * testsuite/libgomp.c++/collapse-2.C: New test.
2279 * testsuite/libgomp.c++/ctor-10.C: New test.
2280 * testsuite/libgomp.c++/for-1.C: New test.
2281 * testsuite/libgomp.c++/for-2.C: New test.
2282 * testsuite/libgomp.c++/for-3.C: New test.
2283 * testsuite/libgomp.c++/for-4.C: New test.
2284 * testsuite/libgomp.c++/for-5.C: New test.
2285 * testsuite/libgomp.c++/loop-8.C: New test.
2286 * testsuite/libgomp.c++/loop-9.C: New test.
2287 * testsuite/libgomp.c++/loop-10.C: New test.
2288 * testsuite/libgomp.c++/task-1.C: New test.
2289 * testsuite/libgomp.c++/task-2.C: New test.
2290 * testsuite/libgomp.c++/task-3.C: New test.
2291 * testsuite/libgomp.c++/task-4.C: New test.
2292 * testsuite/libgomp.c++/task-5.C: New test.
2293 * testsuite/libgomp.c++/task-6.C: New test.
2294 * testsuite/libgomp.fortran/allocatable1.f90: New test.
2295 * testsuite/libgomp.fortran/allocatable2.f90: New test.
2296 * testsuite/libgomp.fortran/allocatable3.f90: New test.
2297 * testsuite/libgomp.fortran/allocatable4.f90: New test.
2298 * testsuite/libgomp.fortran/collapse1.f90: New test.
2299 * testsuite/libgomp.fortran/collapse2.f90: New test.
2300 * testsuite/libgomp.fortran/collapse3.f90: New test.
2301 * testsuite/libgomp.fortran/collapse4.f90: New test.
2302 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2303 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2304 * testsuite/libgomp.fortran/lib4.f90: New test.
2305 * testsuite/libgomp.fortran/lock-1.f90: New test.
2306 * testsuite/libgomp.fortran/lock-2.f90: New test.
2307 * testsuite/libgomp.fortran/nested1.f90: New test.
2308 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2309 * testsuite/libgomp.fortran/strassen.f90: New test.
2310 * testsuite/libgomp.fortran/tabs1.f90: New test.
2311 * testsuite/libgomp.fortran/tabs2.f: New test.
2312 * testsuite/libgomp.fortran/task1.f90: New test.
2313 * testsuite/libgomp.fortran/task2.f90: New test.
2314 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2315 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2316 * testsuite/libgomp.c/pr26943-2.c: Likewise.
2317 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2318 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2320 2008-05-23 Jakub Jelinek <jakub@redhat.com>
2323 * testsuite/libgomp.c++/ctor-11.C: New test.
2324 * testsuite/libgomp.c++/ctor-12.C: New test.
2326 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2328 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2330 2008-05-07 Jakub Jelinek <jakub@redhat.com>
2333 * testsuite/libgomp.c/atomic-5.c: New test.
2334 * testsuite/libgomp.c/atomic-6.c: New test.
2335 * testsuite/libgomp.c/autopar-1.c: New test.
2337 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2339 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2340 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2341 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2342 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2343 * configure: Regenerate.
2344 * Makefile.in, testsuite/Makefile.in: Likewise.
2346 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2349 * aclocal.m4: Regenerate.
2350 * configure: Regenerate.
2352 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2355 * testsuite/libgomp.c/atomic-4.c: New test.
2358 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2359 (gomp_iter_guided_next): Likewise.
2360 * testsuite/libgomp.c/pr35625.c: New test.
2362 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2364 * aclocal.m4: Regenerate.
2365 * configure: Likewise.
2366 * Makefile.in: Likewise.
2367 * testsuite/Makefile.in: Likewise.
2369 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2372 * testsuite/libgomp.c++/pr35185.C: New test.
2374 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2377 * testsuite/libgomp.c/pr35549.c: New test.
2379 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2381 * testsuite/libgomp.c/atomic-3.c: New test.
2383 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2386 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2389 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
2392 * configure.ac: Add ACX_HEADER_STRING.
2393 * env.c: Include strings.h.
2394 * aclocal.m4: Regenerate.
2395 * config.h.in: Regenerate.
2396 * configure: Regenerate.
2397 * Makefile.in: Regenerate.
2398 * testsuite/Makefile.in: Regenerate.
2400 2008-02-15 Jakub Jelinek <jakub@redhat.com>
2403 * testsuite/libgomp.c/pr35196.c: New test.
2406 * testsuite/libgomp.fortran/pr35130.f90: New test.
2407 * testsuite/libgomp.c/pr35130.c: New test.
2409 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2412 * testsuite/libgomp.c/pr33880.c: New test.
2413 * testsuite/libgomp.fortran/pr33880.f90: New test.
2415 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2417 * configure: Regenerate.
2419 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2421 * configure.ac: Move futex checking into ../config/futex.m4.
2422 * configure: Rebuilt.
2423 * aclocal.m4: Rebuilt.
2424 * Makefile.in: Rebuilt.
2426 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2427 2007-10-15 ../config/tls.m4 change.
2429 2007-12-19 Jakub Jelinek <jakub@redhat.com>
2432 * testsuite/libgomp.c/pr34513.c: New test.
2433 * testsuite/libgomp.c++/pr34513.C: New test.
2435 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
2438 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2440 2007-12-04 Jakub Jelinek <jakub@redhat.com>
2442 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
2444 2007-12-03 Jakub Jelinek <jakub@redhat.com>
2446 * testsuite/libgomp.c/private-1.c: New test.
2448 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
2449 Paolo Bonzini <bonzini@gnu.org>
2451 * Makefile.am: Use space as vpath separator. Use 'vpath %'
2452 instead of 'VPATH ='.
2453 * Makefile.in: Regenerate.
2455 2007-11-23 Matthias Klose <doko@ubuntu.com>
2457 * configure.ac: Adjust makeinfo version check.
2458 * configure: Regenerate.
2460 2007-11-10 Jakub Jelinek <jakub@redhat.com>
2463 * testsuite/libgomp.fortran/pr34020.f90: New test.
2465 2007-11-06 Jakub Jelinek <jakub@redhat.com>
2468 * testsuite/libgomp.c++/atomic-1.C: New test.
2470 2007-10-25 Jakub Jelinek <jakub@redhat.com>
2473 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2474 Make x and y integers rather than (implicit) reals. Add private (j)
2475 clause to the last omp parallel.
2477 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
2479 * configure: Regenerate following changes to ../config/tls.m4.
2481 2007-09-28 Jakub Jelinek <jakub@redhat.com>
2483 * testsuite/libgomp.fortran/stack.f90: New test.
2485 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2487 * config/mingw32/proc.c: New file.
2489 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
2491 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2492 (main): Use __get_cpuid to get i386 target fetaures.
2493 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2494 (main): Use __get_cpuid to get x86_64 target fetaures.
2496 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
2499 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2500 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2502 2007-07-12 Jakub Jelinek <jakub@redhat.com>
2505 * testsuite/libgomp.fortran/pr32550.f90: New test.
2506 * testsuite/libgomp.fortran/crayptr2.f90: New test.
2508 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2510 * aclocal.m4: Regenerated.
2512 2007-07-05 Tobias Burnus <burnus@net-b.de>
2515 * testsuite/libgomp.fortran/pr32359.f90: New.
2517 2007-07-02 Jakub Jelinek <jakub@redhat.com>
2520 * sections.c (GOMP_parallel_sections_start): Only decrease
2521 number of threads to COUNT if dyn_var is true.
2522 * testsuite/libgomp.c/pr32468.c: New test.
2524 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2527 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2529 2007-06-21 Jakub Jelinek <jakub@redhat.com>
2532 * testsuite/libgomp.c/pr32362-1.c: New test.
2533 * testsuite/libgomp.c/pr32362-2.c: New test.
2534 * testsuite/libgomp.c/pr32362-3.c: New test.
2536 2007-06-07 Jakub Jelinek <jakub@redhat.com>
2538 * team.c (gomp_team_start): Fix setting up thread_attr
2541 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2543 * configure: Regenerate.
2545 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2547 * Makefile.in: Regenerate.
2548 * configure: Regenerate.
2549 * aclocal.m4: Regenerate.
2550 * testsuite/Makefile.in: Regenerate.
2552 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2554 * config/linux/proc.c: New file.
2557 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2559 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2561 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2563 2007-04-16 Matthias Klose <doko@debian.org>
2565 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2566 flags if not building with -m64.
2567 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2568 flag for i?86-*-* targets, if current target matches -m64.
2570 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2572 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2573 * Makefile.in: Regenerate.
2575 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2578 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2580 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2582 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2584 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2586 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2587 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2588 (parse_affinity): New function.
2589 (initialize_env): Call it and gomp_init_affinity.
2590 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2591 create new pthread_attr_t and call gomp_init_thread_affinity
2592 on it for each thread before passing the attribute to pthread_create.
2593 * config/linux/affinity.c: New file.
2594 * config/posix/affinity.c: New file.
2595 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2596 * configure: Rebuilt.
2597 * config.h.in: Rebuilt.
2598 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2599 * Makefile.in: Rebuilt.
2601 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2603 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2605 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2606 and use it if found.
2608 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2610 * testsuite/config/default.exp: New file.
2611 * testsuite/lib/libgomp.exp: New file.
2612 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2613 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2614 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2615 (libgomp_load): Remove.
2616 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2617 always_ld_library_path, not ld_library_path. Set additional_flags
2618 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2619 (target_compile): Do not call libgomp_init. Append lang_library_path
2620 and lang_link_flags to options.
2621 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2622 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2624 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2625 always_ld_library_path. Set LD_LIBRARY_PATH here.
2626 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2627 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2628 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2630 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2631 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2632 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2633 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2634 * testsuite/libgomp.c/atomic-10.c: Ditto.
2636 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2638 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2639 dg-final cleanup-modules line.
2640 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2641 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2642 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2643 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2644 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2645 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2646 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2648 2007-03-18 Andreas Schwab <schwab@suse.de>
2650 * acinclude.m4: Adjust regular expression for ld version
2652 * configure: Regenerate.
2654 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2656 * Makefile.am: Add install-pdf target as copied from
2657 automake v1.10 rules.
2658 * Makefile.in: Regenerate
2660 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2663 * configure: Regenerate.
2666 * testsuite/libgomp.c++/pr30703.C: New test.
2668 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2671 2006-07-05 Eric Christopher <echristo@apple.com>
2672 * configure.ac: Depend addition of -pthread on host OS.
2673 * configure: Regenerate.
2675 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2677 * libgomp.texi: Fix spacing after abbreviations.
2679 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2682 * configure.ac: Add check for makeinfo
2683 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2684 if an appropiate version of makeinfo is found.
2685 * aclocal.m4: Regenerated.
2686 * configure: Regenerated.
2687 * Makefile.in: Regenerated.
2688 * testsuite/Makefile.in: Regenerated.
2690 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2693 * libgomp.texi: More about implementation-dependent settings.
2695 2007-01-26 Tobias Burnus <burnus@net-b.de>
2697 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2699 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2702 * testsuite/libgomp.c/pr30494.c: New test.
2704 2007-01-15 Tom Tromey <tromey@redhat.com>
2706 * configure: Rebuilt.
2707 * configure.ac: Fixed comment.
2709 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2711 * libgomp.texi: Document implementation specific default values of
2712 environment variables.
2714 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2717 * libgomp.texi: New file.
2718 * configure.ac: Add --enable-generated-files-in-srcdir option.
2719 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2721 * Makefile.in: Regenerated.
2722 * config.h.in: Regenerated.
2723 * testsuite/Makefile.in: Regenerated.
2726 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2729 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2731 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2733 * configure: Regenerate.
2735 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2738 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2739 start if there shouldn't be any loop iterations.
2740 (gomp_loop_ordered_static_start): Remove start == end test.
2741 * testsuite/libgomp.c/pr29947-1.c: New test.
2742 * testsuite/libgomp.c/pr29947-2.c: New test.
2744 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2746 * configure.tgt: Force initial-exec TLS model on Linux only.
2748 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2750 * configure: Regenerated.
2752 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2754 * env.c (parse_schedule): Reject out of range values.
2755 (parse_unsigned_long): Reject out of range, negative or zero values.
2757 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2760 * testsuite/libgomp.fortran/pr29629.f90: New test.
2762 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2765 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2766 * config/posix95: New directory.
2767 * config/posix95/omp-lock.h: New file.
2768 * config/posix95/lock.c: Likewise.
2770 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2772 * aclocal.m4: Regenerate.
2773 * configure: Regenerate.
2775 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2777 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2780 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2782 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2784 * configure: Regenerate.
2785 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2787 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2791 * testsuite/libgomp.c/nestedfn-4.c: New test.
2792 * testsuite/libgomp.c/nestedfn-5.c: New test.
2793 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2796 * testsuite/libgomp.fortran/condinc1.f: New test.
2797 * testsuite/libgomp.fortran/condinc2.f: New test.
2798 * testsuite/libgomp.fortran/condinc3.f90: New test.
2799 * testsuite/libgomp.fortran/condinc4.f90: New test.
2800 * testsuite/libgomp.fortran/condinc1.inc: New file.
2802 2006-09-18 Tom Tromey <tromey@redhat.com>
2804 * configure: Rebuilt.
2806 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2809 PR preprocessor/14634
2810 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2812 * configure: Regenerate.
2814 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2816 * testsuite/libgomp.fortran/reduction3.f90: Change
2817 -2147483648 to -huge(i)-1 to avoid overflow.
2818 * testsuite/libgomp.fortran/reduction4.f90: Change
2819 Z'ffffffff' to not(0) to avoid overflow.
2821 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2824 * Makefile.am (libsubincludedir): New.
2825 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2826 * Makefile.in: Regenerate.
2828 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2831 * env.c: Include ctype.h.
2832 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2833 leading and/or trailing whitespace and compare strings case
2836 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2839 * testsuite/libgomp.fortran/pr28390.f: New test.
2841 2006-07-05 Eric Christopher <echristo@apple.com>
2843 * configure.ac: Depend addition of -pthread on host OS.
2844 * configure: Regenerate.
2846 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2848 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2849 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2852 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2856 * configure.ac: If neither --enable-linux-futex nor
2857 --disable-linux-futex is passed, determine the default by checking
2858 for compiling and/or running against NPTL. With --enable-linux-futex,
2859 check if SYS_gettid and SYS_futex are defined.
2860 * configure: Rebuilt.
2862 2006-06-14 Richard Henderson <rth@redhat.com>
2865 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2866 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2868 2006-06-09 Richard Henderson <rth@redhat.com>
2870 * env.c (gomp_nthreads_var): Change to unsigned long.
2871 (gomp_run_sched_chunk): Likewise.
2872 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2873 (initialize_env): Initialize gomp_thread_attr.
2874 * libgomp.h (gomp_nthreads_var): Update decl.
2875 (gomp_run_sched_chunk): Likewise.
2876 (gomp_thread_attr): Declare.
2877 * team.c (gomp_thread_attr): Export.
2878 (initialize_team): Don't initialize it.
2880 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2883 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2884 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2886 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2888 * config/mingw32/time.c: New file.
2889 * configure.tgt: Use it.
2891 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2893 * Makefile.am: Add install-html target. Add install-html to .PHONY
2894 * Makefile.in: Regenerate.
2896 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2899 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2900 * testsuite/libgomp.c/critical-1.c: Likewise.
2901 * testsuite/libgomp.c/loop-1.c: Likewise.
2902 * testsuite/libgomp.c/loop-2.c: Likewise.
2903 * testsuite/libgomp.c/single-1.c: Likewise.
2904 * testsuite/libgomp.c/ordered-1.c: Likewise.
2905 * testsuite/libgomp.c/ordered-2.c: Likewise.
2907 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2910 * libgomp.fortran/pr27416-1.f90: New test.
2912 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2915 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2916 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2918 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2921 * testsuite/libgomp.c/pr26943-1.c: New test.
2922 * testsuite/libgomp.c/pr26943-2.c: New test.
2923 * testsuite/libgomp.c/pr26943-3.c: New test.
2924 * testsuite/libgomp.c/pr26943-4.c: New test.
2925 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2926 * testsuite/libgomp.c++/pr26943.C: New test.
2928 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2931 * testsuite/libgomp.c++/pr27337.C: New test.
2933 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2936 * testsuite/libgomp.c/pr26171.c: New test.
2938 2006-04-25 Richard Henderson <rth@redhat.com>
2941 * configure.ac: Use GCC_CHECK_TLS.
2942 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2943 * Makefile.in, aclocal.m4, configure: Regenerate.
2945 2006-04-10 Matthias Klose <doko@debian.org>
2947 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2948 directory names containing underscores.
2950 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2953 * testsuite/libgomp.c++/pr26691.C: New test.
2955 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2957 * testsuite/libgomp.fortran/retval2.f90: New test.
2959 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2961 * testsuite/libgomp.c++: New directory.
2963 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2965 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2966 * config/posix/sem.c: Implement the above.
2968 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2970 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2971 define HAVE_BROKEN_POSIX_SEMAPHORES.
2972 * configure: Rebuilt.
2973 * config.h.in: Rebuilt.
2975 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2978 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2979 for the other pthread check.
2980 * configure: Regenerate.
2981 * config.h.in: Regenerate.
2983 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2987 * Makefile.am (fincludedir): New variable.
2988 (nodist_include_HEADERS): Remove Fortran files.
2989 (nodist_finclude_HEADERS): New variable.
2990 * Makefile.in: Regenerated.
2992 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2994 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2995 Remove tests for returning assumed character length arrays.
2997 2006-02-12 Roger Sayle <roger@eyesopen.com>
2998 John David Anglin <dave@hiauly1.hia.nrc.ca>
3001 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3003 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3005 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3007 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3009 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3010 part of LD_LIBRARY_PATH manually.
3012 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
3015 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3018 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
3021 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3022 * configure.ac (PERL): Don't set.
3023 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3024 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3025 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3026 * omp.h.in: Wrap the new configure substitutions with @ characters.
3027 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3028 * aclocal.m4, configure, Makefile.in: Regenerate.
3029 * mkomp_h.pl: Delete.
3031 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3034 * configure.ac: Use GCC_HEADER_STDINT.
3035 * libgomp.h: Include gstdint.h.
3036 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3037 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3039 2006-01-24 Richard Henderson <rth@redhat.com>
3042 * configure.ac: Add AM_MAINTAINER_MODE.
3043 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3045 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3047 * Makefile.in: Regenerate.
3048 * testsuite/Makefile.in: Regenerate.
3049 * aclocal.m4: Regenerate.
3051 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3053 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3055 * configure.ac: Add check for loadavg.h.
3056 (link_gomp): Adjust comment.
3057 * configure: Regenerate.
3058 * config.h.in: Regenerate.
3060 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3063 * configure.ac: Remove check for alloca.h.
3064 * configure: Regenerate.
3065 * config.h.in: Regenerate.
3066 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3067 * team.c: Remove use of alloca.h.
3068 Call gomp_alloca instead of alloca.
3070 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3073 * team.c: Add include of alloca.h.
3074 * configure.ac: Add check for alloca.h.
3075 * configure: Regenerate.
3076 * config.h.in: Regenerate.
3078 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3081 * testsuite/libgomp.fortran/pr25219.f90: New test.
3083 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3085 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3086 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3087 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3088 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3089 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3090 testsuite/libgomp.fortran/threadprivate1.f90,
3091 testsuite/libgomp.fortran/threadprivate2.f90,
3092 testsuite/libgomp.fortran/threadprivate3.f90,
3093 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3094 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3095 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3096 effective-target to TLS runtime.
3098 * testsuite/libgomp.fortran/pr25162.f: Require
3099 effective-target TLS runtime.
3101 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3103 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3104 * testsuite/libgomp.c/nestedfn-3.c: New test.
3106 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3109 * testsuite/libgomp.fortran/pr25162.f: New test.
3111 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3113 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3114 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3116 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3118 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3119 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3120 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3121 single.c, team.c, work.c, config/linux/alpha/futex.h,
3122 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3123 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3124 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3125 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3126 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3127 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3128 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3131 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3133 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3134 to nodist_noinst_HEADERS.
3135 * Makefile.in: Rebuilt.
3137 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3138 add integer count field.
3139 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3140 omp_nest_lock_t type change.
3141 (omp_init_nest_lock): Likewise. Initialize count to 0.
3142 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3144 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3146 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3147 Increment count if successful and return the new nesting level.
3148 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3149 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3150 * testsuite/libgomp.c/lib-1.c: New test.
3151 * testsuite/libgomp.fortran/lib1.f90: New test.
3152 * testsuite/libgomp.fortran/lib2.f: New test.
3153 * testsuite/libgomp.fortran/lib3.f: New test.
3155 2005-11-17 Richard Henderson <rth@redhat.com>
3158 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3159 * configure.ac (link_gomp): New. Substitute it.
3160 (AC_CONFIG_FILES): Add libgomp.spec.
3161 * libgomp.spec.in: New file.
3162 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3163 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3165 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3167 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3168 reduction(-:var) behaving the same as reduction(+:var).
3169 * testsuite/libgomp.c/reduction-4.c: New test.
3171 2005-11-15 Uros Bizjak <uros@kss-loka.si>
3173 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3174 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3175 testsuite/libgomp.c/copyin-3.c,
3176 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3177 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3178 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3179 testsuite/libgomp.c++/pr24455.C,
3180 testsuite/libgomp.fortran/threadprivate1.f90,
3181 testsuite/libgomp.fortran/threadprivate2.f90,
3182 testsuite/libgomp.fortran/threadprivate3.f90,
3183 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3184 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3185 testsuite/libgomp.fortran/omp_parse3.f90: Require
3186 effective-target TLS.
3188 2005-11-14 Diego Novillo <dnovillo@redhat.com>
3192 2005-11-13 Jakub Jelinek <jakub@redhat.com>
3195 * team.c (initialize_team): Pass NULL rather than free as
3196 pthread_key_create destructor. Initialize thread specific data
3197 pointer in initial thread to a static local variable rather than
3200 2005-11-11 Uros Bizjak <uros@kss-loka.si>
3202 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3203 its location to ld_library_path.
3205 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3207 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3209 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3211 * testsuite/libgomp.c: Rename from libgomp.dg.
3213 2005-11-09 Diego Novillo <dnovillo@redhat.com>
3215 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3216 threadprivate variable 'i'.
3218 2005-11-09 Jakub Jelinek <jakub@redhat.com>
3220 * config/linux/s390/futex.h: New file.
3221 * configure.tgt: Use it.
3223 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3224 before the parallel.
3226 2005-11-08 Jakub Jelinek <jakub@redhat.com>
3229 * testsuite/libgomp.c++/master-1.C: New test.
3231 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3233 * testsuite/libgomp.dg/copyin-3.c: New test.
3235 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3237 * testsuite/libgomp.fortran/retval1.f90: New test.
3238 * testsuite/libgomp.fortran/vla7.f90: New test.
3240 2005-11-06 Jakub Jelinek <jakub@redhat.com>
3242 * testsuite/libgomp.fortran/vla2.f90: New test.
3243 * testsuite/libgomp.fortran/vla3.f90: New test.
3244 * testsuite/libgomp.fortran/vla4.f90: New test.
3245 * testsuite/libgomp.fortran/vla5.f90: New test.
3246 * testsuite/libgomp.fortran/vla6.f90: New test.
3248 2005-11-01 Jakub Jelinek <jakub@redhat.com>
3250 * config/linux/sparc/futex.h: New file.
3251 * configure.tgt: Use it.
3252 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3254 * critical.c: Include stdlib.h.
3255 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3256 ignoring return value.
3257 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3258 LIBGOMP_CHECK_SYNC_BUILTINS check.
3259 * configure: Rebuilt.
3261 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3263 * testsuite/libgomp.fortran/vla1.f90: New test.
3265 2005-10-31 Richard Henderson <rth@redhat.com>
3267 * testsuite/libgomp.fortran/character2.f90: Fix race condition
3268 setting 's' in different threads.
3270 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3272 * libgomp.h (attribute_hidden, ialias): Define.
3273 * config/posix/proc.c (omp_get_num_procs): Add ialias.
3274 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3275 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3276 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3277 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3278 omp_test_lock, omp_test_nest_lock): Likewise.
3279 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3280 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3281 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3282 omp_test_lock, omp_test_nest_lock): Likewise.
3283 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3284 omp_get_dynamic, omp_get_nested): Likewise.
3285 * parallel.c (omp_get_num_threads, omp_get_max_threads,
3286 omp_get_thread_num, omp_in_parallel): Likewise.
3287 * fortran.c (ialias_redirect): Define.
3288 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3289 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3290 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3291 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3292 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3293 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3294 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3295 omp_get_wtime): Add ialias_redirect.
3297 2005-10-30 Jakub Jelinek <jakub@redhat.com>
3299 * fortran.c: Include stdlib.h.
3301 2005-10-29 Jakub Jelinek <jakub@redhat.com>
3303 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3304 * Makefile.in: Regenerated.
3306 2005-10-28 Jakub Jelinek <jakub@redhat.com>
3308 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3309 * libgomp_f.h.in (omp_check_defines): New function.
3310 * env.c: Include libgomp_f.h.
3311 (initialize_env): Call omp_check_defines.
3313 * testsuite/libgomp.dg/copyin-2.c: New test.
3314 * testsuite/libgomp.c++/copyin-2.C: New test.
3315 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3317 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3318 * testsuite/libgomp.fortran/sharing2.f90: New test.
3320 * testsuite/libgomp.dg/copyin-1.c: New test.
3321 * testsuite/libgomp.c++/copyin-1.C: New test.
3323 2005-10-26 Jakub Jelinek <jakub@redhat.com>
3325 * testsuite/libgomp.fortran/crayptr1.f90: New test.
3327 * testsuite/libgomp.fortran/workshare1.f90: New test.
3329 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3331 * libgomp.fortran/sharing1.f90: New test.
3333 2005-10-24 Jakub Jelinek <jakub@redhat.com>
3336 * testsuite/libgomp.c++/loop-7.C: New test.
3338 * testsuite/libgomp.dg/nestedfn-2.c: New test.
3340 * testsuite/libgomp.dg/nestedfn-1.c: New test.
3341 * testsuite/libgomp.fortran/reduction6.f90: New test.
3342 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3344 2005-10-23 Richard Henderson <rth@redhat.com>
3346 * testsuite/libgomp.c++/ctor-1.C: New.
3347 * testsuite/libgomp.c++/ctor-2.C: New.
3348 * testsuite/libgomp.c++/ctor-3.C: New.
3349 * testsuite/libgomp.c++/ctor-4.C: New.
3350 * testsuite/libgomp.c++/ctor-5.C: New.
3351 * testsuite/libgomp.c++/ctor-6.C: New.
3352 * testsuite/libgomp.c++/ctor-7.C: New.
3353 * testsuite/libgomp.c++/ctor-8.C: New.
3354 * testsuite/libgomp.c++/ctor-9.C: New.
3356 2005-10-21 Diego Novillo <dnovillo@redhat.com>
3359 * testsuite/libgomp.c++/pr24455-1.C: New test.
3360 * testsuite/libgomp.c++/pr24455.C: New test.
3361 * testsuite/libgomp.dg/pr24455-1.c: New test.
3362 * testsuite/libgomp.dg/pr24455.c: New test.
3364 2005-10-20 Richard Henderson <rth@redhat.com>
3366 * testsuite/libgomp.c++/loop-6.C: New.
3367 * testsuite/libgomp.dg/loop-3.c: New.
3369 2005-10-20 Jakub Jelinek <jakub@redhat.com>
3371 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3373 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3376 2005-10-19 Diego Novillo <dnovillo@redhat.com>
3378 * testsuite/libgomp.fortran/jacobi.f: New test.
3380 2005-10-19 Richard Henderson <rth@redhat.com>
3382 * configure.tgt (i?86-linux): Default to with_arch instead of
3383 CFLAGS. Add -mtune to match target_cpu.
3384 (x86_64-linux): Tune to i686.
3386 * fortran.c (omp_test_nest_lock_): Fix typo.
3388 2005-10-19 Jakub Jelinek <jakub@redhat.com>
3390 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3391 gomp_ordered_sync): Do nothing if team->nthreads == 1.
3392 * testsuite/libgomp.dg/ordered-3.c: New test.
3394 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3395 Remove volatile keyword.
3397 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3398 in COMMON block to avoid warnings on 64-bit targets.
3400 2005-10-18 Diego Novillo <dnovillo@redhat.com>
3402 * testsuite/libgomp.dg/shared-3.c: New test.
3404 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3406 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3407 * testsuite/libgomp.fortran/reduction5.f90: New test.
3409 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3411 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3413 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
3414 flush loop now that __sync_synchronize has proper memory barrier.
3415 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3416 Add -ffixed-form to dg-options.
3418 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3420 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3421 from subdirectories.
3422 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3423 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3424 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3425 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3426 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3427 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3428 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3429 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3430 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3431 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3432 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3433 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3434 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3435 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3436 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3437 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3438 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3439 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3440 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3441 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3442 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3443 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3444 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3445 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3446 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3448 2005-10-17 Jakub Jelinek <jakub@redhat.com>
3450 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3451 lang_library_path exists. Use find instead of glob to gather tests.
3452 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3454 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3456 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3457 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3458 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3459 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3460 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3461 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3462 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3463 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3464 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3465 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3466 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3467 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3468 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3470 2005-10-15 Jakub Jelinek <jakub@redhat.com>
3472 * testsuite/libgomp.dg/vla-1.c: New test.
3474 * testsuite/libgomp.fortran/reference2.f90: New test.
3476 * testsuite/libgomp.fortran/character2.f90: Remove explicit
3477 declaration of omp_get_thread_num.
3478 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
3481 * testsuite/libgomp.fortran/reduction1.f90: New test.
3482 * testsuite/libgomp.fortran/reduction2.f90: New test.
3483 * testsuite/libgomp.fortran/reduction3.f90: New test.
3484 * testsuite/libgomp.fortran/reduction4.f90: New test.
3486 2005-10-13 Richard Henderson <rth@redhat.com>
3488 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3489 * Makefile.in: Regenerate.
3490 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3491 * libgomp.h: Include bar.h.
3492 (struct gomp_barrier): Remove.
3493 (struct gomp_team): Add barrier. Replace master_barrier with
3494 master_release. Replace threads with ordered_release.
3495 (struct gomp_thread): Replace barrier with release.
3496 * ordered.c (gomp_ordered_first): Update for ordered_release change.
3497 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3498 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3499 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3500 (GOMP_single_copy_end): Likewise.
3501 * team.c (gomp_threads_dock): New.
3502 (gomp_barrier_init, gomp_barrier_destroy): Remove.
3503 (gomp_thread_start): Use gomp_barrier_wait.
3504 (new_team, free_team): Update for gomp_team changes.
3505 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3506 (gomp_team_end): Use gomp_barrier_wait.
3507 (initialize_team): Update for gomp_thread changes.
3508 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3509 (gomp_work_share_end_nowait): Use atomic ops when available.
3510 * config/linux/bar.c, config/linux/bar.h: New files.
3511 * config/posix/bar.c, config/posix/bar.h: New files.
3513 2005-10-13 Jakub Jelinek <jakub@redhat.com>
3515 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3516 * testsuite/libgomp.dg/single-2.c: New test.
3518 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3519 lang_link_flags): Unset, so that they aren't inherited from previously
3522 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3524 2005-10-12 Richard Henderson <rth@redhat.com>
3526 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3527 (libgomp_init): Use lang_test_file, lang_library_path, and
3528 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
3530 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3531 (lang_test_file, lang_link_flags): New.
3532 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3534 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3535 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3536 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3537 testsuite/libgomp.c++/parallel-1.C,
3538 testsuite/libgomp.c++/reduction-1.C,
3539 testsuite/libgomp.c++/reduction-2.C,
3540 testsuite/libgomp.c++/reduction-3.C,
3541 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3542 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3543 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3544 New files, largely cribbed from the C testsuite.
3546 2005-10-12 Jakub Jelinek <jakub@redhat.com>
3548 * testsuite/libgomp.fortran/character1.f90: New test.
3549 * testsuite/libgomp.fortran/character2.f90: New test.
3551 * testsuite/libgomp.dg/nested-1.c: New test.
3552 * testsuite/libgomp.dg/nested-2.c: New test.
3553 * testsuite/libgomp.fortran/do1.f90: New test.
3554 * testsuite/libgomp.fortran/do2.f90: New test.
3556 * testsuite/libgomp.fortran/reference1.f90: New test.
3558 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3560 * testsuite/libgomp.dg/reduction-1.c: New test.
3561 * testsuite/libgomp.dg/reduction-2.c: New test.
3562 * testsuite/libgomp.dg/reduction-3.c: New test.
3564 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3566 * testsuite/libgomp.dg/atomic-1.c: New test.
3567 * testsuite/libgomp.dg/atomic-2.c: New test.
3569 2005-10-09 Richard Henderson <rth@redhat.com>
3571 * critical.c (atomic_lock): New.
3572 (initialize_critical): Initialize it.
3573 (GOMP_atomic_start, GOMP_atomic_end): New.
3574 * libgomp.map: Export them.
3575 * libgomp_g.h: Declare them.
3577 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3579 2005-10-02 Richard Henderson <rth@redhat.com>
3581 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3582 to XCFLAGS instead of CFLAGS.
3584 2005-09-30 Richard Henderson <rth@redhat.com>
3586 * configure.ac: Determine whether -pthread or -lpthread is needed.
3587 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3588 * Makefine.in, configure: Rebuild.
3590 2005-09-28 Richard Henderson <rth@redhat.com>
3592 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3593 * testsuite/libgomp.dg/omp-single-3.c: New test.
3595 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3597 * testsuite/libgomp.dg/omp-single-2.c: New test.
3598 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3600 2005-09-27 Richard Henderson <rth@redhat.com>
3602 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3603 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3605 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3607 * testsuite/libgomp.dg/omp-loop03.c: New test.
3609 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3611 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3613 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3615 * testsuite/libgomp.dg/omp-single-1.c: New test.
3616 * testsuite/libgomp.dg/shared-1.c: Return 0.
3617 Add prototype for abort.
3618 * testsuite/libgomp.dg/shared-2.c: Likewise.
3620 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3622 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3625 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3627 * testsuite/libgomp.dg/shared-1.c: New test.
3628 * testsuite/libgomp.dg/shared-2.c: New test.
3630 2005-09-24 Richard Henderson <rth@redhat.com>
3632 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3634 2005-09-24 Richard Henderson <rth@redhat.com>
3636 * iter.c (gomp_iter_static_next): Round up when computing number
3637 of iterations. Don't bother distributing a remainder equally.
3639 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3640 Don't call srand. Zero b before testing.
3643 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3645 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3646 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3648 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3650 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3651 without !$omp end do, followed immediately by subroutine end.
3653 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3655 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3657 2005-09-22 Richard Henderson <rth@redhat.com>
3659 * critical.c (GOMP_critical_name_start): Change argument to void**.
3660 Reuse the pointer space if the mutex fits.
3661 (GOMP_critical_name_end): Likewise.
3662 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3663 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3664 (GOMP_critical_name_end): Likewise.
3665 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3666 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3668 2005-09-20 Richard Henderson <rth@redhat.com>
3670 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3671 (create_lock_lock): New.
3672 (initialize_critical): Initialize it.
3673 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3674 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3676 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3678 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3680 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3682 * testsuite/libgomp.dg/omp-loop01.c: New test.
3683 * testsuite/libgomp.dg/omp-loop02.c: New test.
3685 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3687 * configure.ac (AC_PROG_FC): Add.
3688 (USE_FORTRAN): New automake conditional.
3689 * configure: Rebuilt.
3690 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3691 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3692 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3693 Add rules to build them.
3694 * Makefile.in: Rebuilt.
3695 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3697 * libgomp.map: Add Fortran wrappers.
3698 * libgomp_f.h.in: New file.
3699 * omp_lib.h.in: New file.
3700 * omp_lib.f90.in: New file.
3701 * fortran.c: New file.
3702 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3703 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3704 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3705 libgfortran has been built.
3706 * testsuite/libgomp.fortran/fortran.exp: New file.
3707 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3708 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3709 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3710 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3711 * testsuite/libgomp.fortran/omp_hello.f: New test.
3712 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3713 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3714 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3715 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3716 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3717 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3718 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3719 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3721 2005-08-30 Richard Henderson <rth@redhat.com>
3723 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3724 function for when aliases are not usable.
3725 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3726 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3727 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3728 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3729 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3730 GOMP_loop_ordered_guided_next): Likewise.
3731 * ordered.c (GOMP_ordered_start): Likewise.
3733 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3735 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3736 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3737 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3738 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3739 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3740 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3741 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3742 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3743 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3745 2005-07-07 Eric Christopher <echristo@redhat.com>
3746 Diego Novillo <dnovillo@redhat.com>
3748 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3749 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3751 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3752 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3753 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3754 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3755 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3756 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3757 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3759 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3761 * TOPLEVEL.patch: Remove.
3763 2005-05-16 Richard Henderson <rth@redhat.com>
3765 * configure.ac: Test for clock_gettime.
3766 * config.h.in, configure: Rebuild.
3767 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3768 (omp_get_wtime): Use clock_gettime if available.
3769 (omp_get_wtick): Use clock_getres if available.
3771 2005-05-11 Richard Henderson <rth@redhat.com>
3773 * config/linux/ia64/futex.h: New file.
3774 * configure.tgt: Use it.
3776 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3778 2005-05-07 Richard Henderson <rth@redhat.com>
3780 * config/linux/powerpc/futex.h: New file.
3781 * configure.tgt: Use it.
3783 * config/linux/i486/futex.h: Merge ...
3784 * config/linux/x86_64/futex.h: ... into ...
3785 * config/linux/x86/futex.h: ... here.
3786 * configure.tgt: Update to match.
3788 2005-05-06 Richard Henderson <rth@redhat.com>
3790 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3791 * config/linux/i486/futex.h: Likewise.
3792 * config/linux/x86_64/futex.h: Likewise.
3794 * config/linux/lock.c: New file.
3795 * config/linux/omp-lock.h: New file.
3797 * critical.c, env.h: Don't include omp.h
3798 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3799 * config/posix/time.c: Likewise.
3800 * config/posix/omp-lock.h: New file.
3801 * libgomp.h: Include omp-lock.h and omp.h.
3802 * Makefile.am (nodist_include_HEADERS): New.
3804 * configure.ac (PERL): New.
3805 * mkomp_h.pl: New file.
3806 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3808 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3810 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3811 build directory. Re-add -march=i486 hack.
3813 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3814 (libgomp_link_flags): Remove.
3815 (libgomp_initialized): Remove.
3816 (libgomp_init): Don't protect from reinitialization. Copy code
3817 from libstdc++ for getting the multilib set correctly.
3819 2005-05-05 Richard Henderson <rth@redhat.com>
3821 * config/linux/alpha/futex.h: New file.
3822 * configure.tgt (alpha*-*-linux*): Use it.
3824 * config/posix/mutex.c: New file.
3825 * config/posix/sem.c: Use libgomp.h.
3827 * configure.tgt (x86_64-linux): Also test CC for -m32.
3828 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3830 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3833 * Makefile.am (SUBDIRS): New.
3834 (libgomp_la_LDFLAGS): Add -lpthread.
3835 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3836 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3838 * libgomp_g.h: New file.
3839 * libgomp.h: Split out all public declarations to libgomp_g.h.
3840 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3841 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3842 * config/linux/sem.h: Likewise.
3843 * config/posix/sem.h: Likewise.
3845 * Makefile.am (AM_LDFLAGS): New.
3846 (libgomp_version_script): Split out from ...
3847 (libgomp_la_LDFLAGS): ... here.
3848 (libgomp_version_info): New.
3849 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3850 (LIBGOMP_ENABLE): New.
3851 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3852 (LIBGOMP_ENABLE_SYMVERS): New.
3853 * configure.ac (AC_INIT): Version 1.0.
3854 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3855 (enable-linux-futex): Likewise. Rename from enable-futex.
3856 (libtool_VERSION): New.
3857 (LIBGOMP_ENABLE_SYMVERS): Use it.
3858 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3859 * Makefile.in, aclocal.m4, configure: Rebuild.
3861 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3862 (gomp_mutex_unlock_slow): Fix typo.
3863 * config/linux/sem.c: Similarly.
3864 (gomp_sem_post_slow): Fix typo.
3865 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3866 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3867 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3869 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3870 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3871 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3872 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3873 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3874 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3875 LDFLAGS. Pull enable_futex check to top-level.
3876 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3877 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3879 First attempt at real configury.
3880 * Makefile, config.h: Remove file.
3881 * Makefile.am, Makefile.in: New file.
3882 * acinclude.m4 aclocal.m4: New file.
3883 * configure.ac, configure.tgt, configure: New file.
3885 * config/posix/lock.c: Rename from sys-lock.c.
3886 * config/posix/mutex.h: Rename from sys-mutex.h.
3887 * config/posix/sem.c: Rename from sys-sem.c.
3888 * config/posix/sem.h: Rename from sys-sem.h.
3889 * config/posix/proc.c: Rename from sys-proc.c.
3890 * config/posix/time.c: Rename from sys-proc.c.
3892 * config/linux/mutex.c: New file.
3893 * config/linux/mutex.h: New file.
3894 * config/linux/sem.c: New file.
3895 * config/linux/sem.h: New file.
3896 * config/linux/i486/futex.h: New file.
3897 * config/linux/x86_64/futex.h: New file.
3899 2005-05-04 Richard Henderson <rth@redhat.com>
3901 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3902 * libgomp.h: Declare them.
3903 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3904 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3906 2005-05-04 Richard Henderson <rth@redhat.com>
3908 * libgomp-1 code drop
3910 2005-05-04 Richard Henderson <rth@redhat.com>
3912 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3913 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3914 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3915 (gomp_iter_static_next): Update.
3916 (gomp_ordered_static_next): Update.
3917 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3918 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3919 totally empty range.
3920 (gomp_loop_ordered_static_next): Refine test for calling
3921 gomp_ordered_static_next.
3922 * testsuite/ordered-1.c: Add case for more threads than iterations.
3924 * iter.c (gomp_iter_runtime_next_locked): Remove.
3925 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3926 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3927 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3928 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3929 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3930 gomp_loop_ordered_guided_next): Downcase name, make static, add
3931 an external alias with the old name.
3932 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3933 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3934 switch and call one of the above static functions.
3935 * libgomp.h: Update.
3937 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3938 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3939 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3940 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3941 GOMP_loop_ordered_guided_start): Update to match.
3942 * sections.c (GOMP_sections_start): Likewise.
3943 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3945 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3946 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3947 Use bounds check instead of modulus.
3948 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3949 (gomp_ordered_last): Don't sync with ordered_owner here.
3950 (gomp_ordered_next): Likewise.
3951 (gomp_ordered_static_loop_next): Likewise.
3952 * loop.c, libgomp.h: Update to match.
3954 * libgomp.h (GOMP_barrier): Declare.
3956 * testsuite/barrier-1.c: New file.
3957 * testsuite/critical-1.c: New file.
3958 * testsuite/ordered-2.c: New file.
3959 * testsuite/ordered-1.c: New file.
3960 * testsuite/sections-1.c: New file.
3961 * testsuite/single-1.c: New file.
3962 * testsuite/Makefile (TESTS): Add them.
3964 2005-05-04 Richard Henderson <rth@redhat.com>
3966 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3967 * loop.c (GOMP_loop_static_start): If not the startup thread,
3968 acquire the mutex to wait for initialization complete.
3969 (GOMP_loop_ordered_static_start): Likewise.
3970 (GOMP_loop_ordered_runtime_start): Likewise.
3971 (GOMP_loop_ordered_static_first): Remove.
3972 (GOMP_loop_ordered_dynamic_first): Remove.
3973 (GOMP_loop_ordered_guided_first): Remove.
3974 (GOMP_loop_ordered_runtime_first): Remove.
3975 * ordered.c (gomp_ordered_loop_first): Post to own release when
3976 we're the first thread.
3977 (gomp_ordered_loop_last): Wait on release if not owner.
3978 (gomp_ordered_loop_next): Likewise.
3979 (gomp_ordered_static_loop_init): New.
3980 (gomp_ordered_static_loop_next): Use ordered_owner.
3981 (GOMP_ordered_start): Likewise.
3982 * work.c (gomp_new_work_share): Initialize ordered_owner.
3984 2005-05-03 Richard Henderson <rth@redhat.com>
3986 * Makefile (OPT): New.
3989 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3990 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3991 * libgomp.h, libgomp.map, NOTES: Update to match.
3993 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3994 Add initialized and thr members.
3995 (gomp_thread_start): Pause when initially spawned to wait for
3996 the whole team to be created.
3997 (gomp_team_start): Release team members at the end.
3999 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
4000 (f_foo_1): Use GOMP_loop_end.
4001 (f_foo_2): Use GOMP_loop_end_nowait.
4003 * testsuite/loop-2.c: New file.
4004 * testsuite/Makefile (TESTS): Add it.
4006 2005-05-03 Richard Henderson <rth@redhat.com>
4008 * iter.c (gomp_iter_static_next): Fix overflow check typo.
4009 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4010 * team.c (new_team): Initialize oldest_live_gen to 1 if no
4013 * testsuite/Makefile: New file.
4014 * testsuite/loop-1.c: New file.
4016 2005-05-03 Richard Henderson <rth@redhat.com>
4018 Initial implementation and checkin.