1 2014-04-02 Richard Henderson <rth@redhat.com>
3 * config/linux/futex.h (futex_wait): Get error value from errno.
4 (futex_wake): Likewise.
6 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9 * testsuite/libgomp.c++/udr-11.C: New test.
10 * testsuite/libgomp.c++/udr-12.C: New test.
11 * testsuite/libgomp.c++/udr-13.C: New test.
12 * testsuite/libgomp.c++/udr-14.C: New test.
13 * testsuite/libgomp.c++/udr-15.C: New test.
14 * testsuite/libgomp.c++/udr-16.C: New test.
15 * testsuite/libgomp.c++/udr-17.C: New test.
16 * testsuite/libgomp.c++/udr-18.C: New test.
17 * testsuite/libgomp.c++/udr-19.C: New test.
19 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21 Update copyright years
23 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25 * hashtab.h: Use the standard form for the copyright notice.
27 2014-01-02 Tobias Burnus <burnus@net-b.de>
29 * libgomp.texi: Bump @copying's copyright year.
31 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
33 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
34 alloca () with __builtin_alloca ().
35 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
36 * testsuite/libgomp.c/lock-3.c: Likewise.
37 * testsuite/libgomp.c/pr48591.c: Likewise.
39 2013-12-17 Jakub Jelinek <jakub@redhat.com>
42 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
45 2013-12-16 Jakub Jelinek <jakub@redhat.com>
48 * testsuite/libgomp.c/pr58756.c: New test.
50 2013-12-12 Jakub Jelinek <jakub@redhat.com>
53 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
56 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
58 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
60 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
61 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
62 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
63 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
66 * libgomp_g.h: Include <stddef.h> for size_t.
68 * libgomp.spec.in: Update comment about libgomp's dependencies.
69 * configure.ac: Likewise.
70 * configure: Regenerate.
72 2013-10-16 Tobias Burnus <burnus@net-b.de>
74 * libgomp.texi: (Runtime Library Routines): Update references for
75 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
76 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
77 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
78 (Environment Variables): Update references for OpenMP 4.0. Add
79 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
80 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
83 2013-10-14 Jakub Jelinek <jakub@redhat.com>
85 * env.c (parse_bind_var): Initialize value to avoid
86 (false positive) warning.
88 2013-10-12 Jakub Jelinek <jakub@redhat.com>
91 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
93 (gomp_init_num_threads): Move i variable declaration into
94 #ifdef CPU_ALLOC_SIZE block.
95 * config/linux/affinity.c (gomp_affinity_init_level): Test
96 gomp_places_list_len == 0 rather than gomp_places_list == 0
97 when checking for topology reading error.
98 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
99 * env.c (parse_affinity): Add ignore argument, if true, don't populate
100 gomp_places_list, only parse env var and always return false.
101 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
102 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
103 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
104 and either of these variables were parsed correctly into a places
107 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
108 Jakub Jelinek <jakub@redhat.com>
110 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
112 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
113 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
114 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
115 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
116 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
117 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
118 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
119 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
121 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
123 * Makefile.am (omp_lib.mod): Streamline rule.
124 * Makefile.in: Regenerate.
126 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
129 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
130 * testsuite/libgomp.fortran/lib1.f90: Likewise.
131 * testsuite/libgomp.fortran/lib2.f: Likewise.
132 * testsuite/libgomp.fortran/lib3.f: Likewise.
134 * configure.ac: Typo fix.
135 * configure: Regenerate.
137 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
138 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
140 * omp.h.in: Don't touch the user's namespace.
142 2013-10-11 Jakub Jelinek <jakub@redhat.com>
143 Tobias Burnus <burnus@net-b.de>
144 Richard Henderson <rth@redhat.com>
146 * target.c: New file.
147 * Makefile.am (libgomp_la_SOURCES): Add target.c.
148 * Makefile.in: Regenerated.
149 * libgomp_g.h (GOMP_task): Add depend argument.
150 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
151 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
152 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
153 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
154 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
155 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
156 GOMP_taskgroup_start, GOMP_taskgroup_end,
157 GOMP_parallel_sections): New prototypes.
158 * fortran.c (omp_is_initial_device): Add ialias_redirect.
159 (omp_is_initial_device_): New function.
160 (ULP, STR1, STR2, ialias_redirect): Removed.
161 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
162 omp_set_default_device_8_, omp_get_default_device_,
163 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
165 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
166 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
167 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
169 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
170 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
171 omp_set_default_device, omp_set_default_device_,
172 omp_set_default_device_8_, omp_get_default_device,
173 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
174 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
175 omp_get_team_num_): Export @@OMP_4.0.
176 * team.c (struct gomp_thread_start_data): Add place field.
177 (gomp_thread_start): Clear thr->thread_pool and
178 thr->task before returning. Use gomp_team_barrier_wait_final
179 instead of gomp_team_barrier_wait. Initialize thr->place.
180 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
181 team_cancelled and task_queued_count fields.
182 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
183 before calling pthread_exit.
184 (gomp_free_thread): No longer static. Use
185 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
186 (gomp_team_start): Add flags argument. Set
187 thr->thread_pool->threads_busy to nthreads immediately after creating
188 new pool. Use gomp_managed_threads_lock instead of
189 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
190 (gomp_team_end): Use gomp_managed_threads_lock instead of
191 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
192 of gomp_team_barrier_wait. If team->team_cancelled, call
193 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
194 rather than thr->ts.work_share.
195 (initialize_team): Don't call gomp_sem_init here.
196 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
198 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
199 * env.c (gomp_global_icv): Add default_device_var, target_data and
200 bind_var initializers.
201 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
202 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
203 gomp_places_list_len): New variables.
204 (parse_bind_var, parse_one_place, parse_places_var): New functions.
205 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
207 (gomp_cancel_var): New global variable.
208 (parse_int): New function.
209 (handle_omp_display_env): New function.
210 (initialize_env): Use it. Initialize default_device_var.
211 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
212 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
213 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
214 been successfully parsed (and call gomp_init_affinity in that case).
215 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
216 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
217 omp_get_team_num, omp_is_initial_device): New functions.
218 * libgomp.h: Include stdlib.h.
219 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
221 (struct target_mem_desc): Forward declare.
222 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
223 and thread_limit_var fields.
224 (gomp_get_num_devices): New prototype.
225 (gomp_cancel_var): New extern decl.
226 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
227 team_cancelled and task_queued_count fields. Add comments about
228 task_{,queued_,running_}count.
229 (gomp_cancel_kind): New enum.
230 (gomp_work_share_end_cancel): New prototype.
231 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
232 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
234 (struct gomp_taskgroup): New type.
235 (struct gomp_task_depend_entry,
236 struct gomp_dependers_vec): New types.
237 (gomp_finish_task): Free depend_hash if non-NULL.
238 (struct gomp_team_state): Add place_partition_off
239 and place_partition_len fields.
240 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
241 gomp_places_list_len): New extern decls.
242 (struct gomp_thread): Add place field.
243 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
244 (gomp_init_thread_affinity): Add place argument.
245 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
246 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
247 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
248 gomp_affinity_init_level, gomp_affinity_print_place): New
250 (gomp_team_start): Add flags argument.
251 (gomp_thread_limit_var, gomp_remaining_threads_count,
252 gomp_remaining_threads_lock): Remove.
253 (gomp_managed_threads_lock): New variable.
254 (struct gomp_thread_pool): Add threads_busy field.
255 (gomp_free_thread): New prototype.
256 * task.c: Include hashtab.h.
257 (hash_entry_type): New typedef.
258 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
259 (gomp_init_task): Clear dependers, depend_hash, depend_count,
260 copy_ctors_done and taskgroup fields.
261 (GOMP_task): Add depend argument, handle depend clauses. If
262 gomp_team_barrier_cancelled or if it's taskgroup has been
263 cancelled, don't queue or start new tasks. Set copy_ctors_done
264 field if needed. Initialize taskgroup field. If copy_ctors_done
265 and already cancelled, don't discard the task. If taskgroup is
266 non-NULL, enqueue the task into taskgroup queue. Increment
267 num_children field in taskgroup. Increment task_queued_count.
268 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
269 gomp_task_run_post_remove_taskgroup): New inline functions.
270 (gomp_task_run_post_handle_depend_hash,
271 gomp_task_run_post_handle_dependers,
272 gomp_task_run_post_handle_depend): New functions.
273 (GOMP_taskwait): Use them. If more than one new tasks
274 have been queued, wake other threads if needed.
275 (gomp_barrier_handle_tasks): Likewise. If
276 gomp_team_barrier_cancelled, don't start any new tasks, just free
278 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
280 (omp_proc_bind_kind, omp_proc_bind_false,
281 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
282 omp_proc_bind_spread): New params.
283 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
284 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
285 omp_get_team_num, omp_is_initial_device): New interfaces.
286 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
287 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
288 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
289 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
290 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
291 useless use omp_lib_kinds.
292 * omp.h.in (omp_proc_bind_t): New typedef.
293 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
294 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
295 omp_get_team_num, omp_is_initial_device): New prototypes.
296 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
297 through to gomp_team_start.
298 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
299 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
300 Adjust gomp_parallel_loop_start callers.
301 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
302 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
303 GOMP_loop_end_cancel): New functions.
304 (GOMP_parallel_end): Add ialias_redirect.
305 * hashtab.h: New file.
306 * libgomp.texi (Environment Variables): Minor cleanup,
307 update section refs to OpenMP 4.0rc2.
308 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
309 environment variables.
310 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
311 team->work_shares_to_free to thr->ts.work_share before calling
313 (gomp_work_share_end_cancel): New function.
314 * config/linux/proc.c: Include errno.h.
315 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
316 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
317 sizeof (cpu_set_t) to determine number of iterations. Fix up check
318 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
319 gomp_cpuset_size is sizeof (cpu_set_t).
320 (gomp_init_num_threads): Initialize gomp_cpuset_size,
321 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
322 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
323 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
324 contain any logical CPUs.
325 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
326 is NULL. Use gomp_cpusetp instead of &cpuset and pass
327 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
328 pthread_getaffinity_np. Check gomp_places_list instead of
329 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
330 * config/linux/bar.c (gomp_barrier_wait_end,
331 gomp_barrier_wait_last): Use BAR_* defines.
332 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
333 from state where needed. Set work_share_cancelled to 0 on last
335 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
336 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
338 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
339 Add cpusetsize argument.
340 (gomp_cpuset_size, gomp_cpusetp): Declare.
341 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
342 (affinity_counter): Remove.
343 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
344 if CPU_ALLOC_SIZE isn't defined.
345 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
346 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
347 bind current thread to the first place.
348 (gomp_init_thread_affinity): Rewritten. Add place argument, just
349 pthread_setaffinity_np to gomp_places_list[place].
350 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
351 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
352 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
353 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
354 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
355 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
356 (gomp_barrier_t): Add awaited_final field.
357 (gomp_barrier_init): Initialize awaited_final field.
358 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
359 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
361 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
363 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
364 gomp_team_barrier_cancelled): New inline functions.
365 (gomp_barrier_last_thread,
366 gomp_team_barrier_set_task_pending,
367 gomp_team_barrier_clear_task_pending,
368 gomp_team_barrier_set_waiting_for_tasks,
369 gomp_team_barrier_waiting_for_tasks,
370 gomp_team_barrier_done): Use BAR_* defines.
371 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
372 (gomp_barrier_wait_end): Use BAR_* defines.
373 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
374 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
376 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
377 gomp_team_barrier_cancel): New functions.
378 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
380 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
381 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
382 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
383 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
384 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
385 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
386 (gomp_barrier_t): Add cancellable field.
387 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
388 gomp_team_barrier_cancel): New prototypes.
389 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
390 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
391 gomp_team_barrier_cancelled): New inline functions.
392 (gomp_barrier_wait_start, gomp_barrier_last_thread,
393 gomp_team_barrier_set_task_pending,
394 gomp_team_barrier_clear_task_pending,
395 gomp_team_barrier_set_waiting_for_tasks,
396 gomp_team_barrier_waiting_for_tasks,
397 gomp_team_barrier_done): Use BAR_* defines.
398 * barrier.c (GOMP_barrier_cancel): New function.
399 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
400 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
401 omp_proc_bind_spread): New params.
402 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
403 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
404 omp_get_team_num, omp_is_initial_device): New externals.
405 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
407 (gomp_resolve_num_threads): Adjust for thread_limit now being in
408 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
409 infinity. If not nested, just return minimum of max_num_threads
410 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
411 to the returned value. Otherwise, don't update atomically
412 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
413 (GOMP_parallel_end): Adjust for thread_limit now being in
414 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
415 infinity. Adjust threads_busy in the pool rather than
416 gomp_remaining_threads_count. Remember team->nthreads and call
417 gomp_team_end before adjusting threads_busy, if not nested
418 afterwards, just set it to 1 non-atomically. Add ialias.
419 (GOMP_parallel_start): Adjust gomp_team_start caller.
420 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
421 * testsuite/libgomp.c/affinity-1.c: New test.
422 * testsuite/libgomp.c/atomic-15.c: New test.
423 * testsuite/libgomp.c/atomic-16.c: New test.
424 * testsuite/libgomp.c/atomic-17.c: New test.
425 * testsuite/libgomp.c/cancel-for-1.c: New test.
426 * testsuite/libgomp.c/cancel-for-2.c: New test.
427 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
428 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
429 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
430 * testsuite/libgomp.c/cancel-sections-1.c: New test.
431 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
432 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
433 * testsuite/libgomp.c/depend-1.c: New test.
434 * testsuite/libgomp.c/depend-2.c: New test.
435 * testsuite/libgomp.c/depend-3.c: New test.
436 * testsuite/libgomp.c/depend-4.c: New test.
437 * testsuite/libgomp.c/for-1.c: New test.
438 * testsuite/libgomp.c/for-1.h: New file.
439 * testsuite/libgomp.c/for-2.c: New test.
440 * testsuite/libgomp.c/for-2.h: New file.
441 * testsuite/libgomp.c/for-3.c: New test.
442 * testsuite/libgomp.c/pr58392.c: New test.
443 * testsuite/libgomp.c/simd-1.c: New test.
444 * testsuite/libgomp.c/simd-2.c: New test.
445 * testsuite/libgomp.c/simd-3.c: New test.
446 * testsuite/libgomp.c/simd-4.c: New test.
447 * testsuite/libgomp.c/simd-5.c: New test.
448 * testsuite/libgomp.c/simd-6.c: New test.
449 * testsuite/libgomp.c/target-1.c: New test.
450 * testsuite/libgomp.c/target-2.c: New test.
451 * testsuite/libgomp.c/target-3.c: New test.
452 * testsuite/libgomp.c/target-4.c: New test.
453 * testsuite/libgomp.c/target-5.c: New test.
454 * testsuite/libgomp.c/target-6.c: New test.
455 * testsuite/libgomp.c/target-7.c: New test.
456 * testsuite/libgomp.c/taskgroup-1.c: New test.
457 * testsuite/libgomp.c/thread-limit-1.c: New test.
458 * testsuite/libgomp.c/thread-limit-2.c: New test.
459 * testsuite/libgomp.c/thread-limit-3.c: New test.
460 * testsuite/libgomp.c/udr-1.c: New test.
461 * testsuite/libgomp.c/udr-2.c: New test.
462 * testsuite/libgomp.c/udr-3.c: New test.
463 * testsuite/libgomp.c++/affinity-1.C: New test.
464 * testsuite/libgomp.c++/atomic-10.C: New test.
465 * testsuite/libgomp.c++/atomic-11.C: New test.
466 * testsuite/libgomp.c++/atomic-12.C: New test.
467 * testsuite/libgomp.c++/atomic-13.C: New test.
468 * testsuite/libgomp.c++/atomic-14.C: New test.
469 * testsuite/libgomp.c++/atomic-15.C: New test.
470 * testsuite/libgomp.c++/cancel-for-1.C: New test.
471 * testsuite/libgomp.c++/cancel-for-2.C: New test.
472 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
473 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
474 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
475 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
476 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
477 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
478 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
479 * testsuite/libgomp.c++/cancel-test.h: New file.
480 * testsuite/libgomp.c++/for-9.C: New test.
481 * testsuite/libgomp.c++/for-10.C: New test.
482 * testsuite/libgomp.c++/for-11.C: New test.
483 * testsuite/libgomp.c++/simd-1.C: New test.
484 * testsuite/libgomp.c++/simd-2.C: New test.
485 * testsuite/libgomp.c++/simd-3.C: New test.
486 * testsuite/libgomp.c++/simd-4.C: New test.
487 * testsuite/libgomp.c++/simd-5.C: New test.
488 * testsuite/libgomp.c++/simd-6.C: New test.
489 * testsuite/libgomp.c++/simd-7.C: New test.
490 * testsuite/libgomp.c++/simd-8.C: New test.
491 * testsuite/libgomp.c++/target-1.C: New test.
492 * testsuite/libgomp.c++/target-2.C: New test.
493 * testsuite/libgomp.c++/target-2-aux.cc: New file.
494 * testsuite/libgomp.c++/target-3.C: New test.
495 * testsuite/libgomp.c++/taskgroup-1.C: New test.
496 * testsuite/libgomp.c++/udr-1.C: New test.
497 * testsuite/libgomp.c++/udr-2.C: New test.
498 * testsuite/libgomp.c++/udr-3.C: New test.
499 * testsuite/libgomp.c++/udr-4.C: New test.
500 * testsuite/libgomp.c++/udr-5.C: New test.
501 * testsuite/libgomp.c++/udr-6.C: New test.
502 * testsuite/libgomp.c++/udr-7.C: New test.
503 * testsuite/libgomp.c++/udr-8.C: New test.
504 * testsuite/libgomp.c++/udr-9.C: New test.
506 2013-09-20 Jakub Jelinek <jakub@redhat.com>
509 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
512 2013-09-20 Alan Modra <amodra@gmail.com>
514 * configure: Regenerate.
516 2013-09-19 Jakub Jelinek <jakub@redhat.com>
518 * testsuite/libgomp.c/sections-2.c: New test.
520 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
522 * testsuite/libgomp.fortran/strassen.f90:
523 Add dg-skip-if aarch64_tiny.
525 2013-06-20 Iain Sandoe <iain@codesourcery.com>
526 Cesar Philippidis <cesar@codesourcery.com>
528 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
529 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
530 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
531 * testsuite/libgomp.fortran/fortran.exp: Likewise.
532 * testsuite/libgomp.graphite/graphite.exp: Likewise.
533 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
534 Use dg-runtest rather than gfortran-dg-runtest.
536 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
538 * testsuite/libgomp.c/icv-2.c: Extend current handling of
539 Linux-based x86 systems to cover all GNU systems.
540 * testsuite/libgomp.c/lock-3.c: Likewise.
541 * testsuite/libgomp.c/pr48591.c: Likewise.
543 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
545 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
546 GNU/Hurd, as done for Linux-based systems.
548 * config/posix/ptrlock.h: Fix comment.
550 2013-05-27 Tobias Burnus <burnus@net-b.de>
553 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
554 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
555 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
556 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
557 omp_destroy_nest_lock): Correct arguments to match the one in
559 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
560 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
561 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
562 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
564 2013-05-16 Jakub Jelinek <jakub@redhat.com>
566 * testsuite/libgomp.c/loop-13.c: New test.
567 * testsuite/libgomp.c/loop-14.c: New test.
568 * testsuite/libgomp.c/loop-15.c: New test.
569 * testsuite/libgomp.c++/loop-13.C: New test.
570 * testsuite/libgomp.c++/loop-14.C: New test.
571 * testsuite/libgomp.c++/loop-15.C: New test.
573 2013-02-06 Jakub Jelinek <jakub@redhat.com>
576 * testsuite/libgomp.c++/pr56217.C: New test.
578 2013-02-01 Alan Modra <amodra@gmail.com>
580 * task.c (GOMP_task, GOMP_taskwait): Comment.
582 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
583 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
586 * config/linux/wait.h (do_spin): Use atomic load for addr.
587 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
588 for intptr and ptrlock.
589 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
592 2013-01-22 Alan Modra <amodra@gmail.com>
596 * task.c (GOMP_task): Revert 2011-12-09 change.
597 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
598 barrier to read task->children..
599 (gomp_barrier_handle_tasks): ..and matching atomic store with
600 release barrier here when setting parent->children to NULL.
602 2013-01-16 Jakub Jelinek <jakub@redhat.com>
603 Tobias Burnus <burnus@net-b.de>
606 * testsuite/libgomp.fortran/fortran.exp: Use
607 -fintrinsic-modules-path= instead of
608 -fintrinsic-modules-path.
610 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
612 Update copyright years.
614 2012-12-19 Tobias Burnus <burnus@net-b.de>
616 * testsuite/libgomp.fortran/fortran.exp: Set
617 -fintrinsic-modules-path.
619 2012-12-19 Tobias Burnus <burnus@net-b.de>
621 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
622 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
624 2012-11-21 Jakub Jelinek <jakub@redhat.com>
627 * team.c (gomp_free_thread): Decrease gomp_managed_threads
628 if pool had any threads_used.
630 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
632 * testsuite/libgomp.c++/pr24455.C: Use
633 -Wl,-undefined,dynamic_lookup on darwin.
635 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
637 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
639 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
641 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
643 2012-10-23 Ian Bolton <ian.bolton@arm.com>
644 Jim MacArthur <jim.macarthur@arm.com>
645 Marcus Shawcroft <marcus.shawcroft@arm.com>
646 Nigel Stephens <nigel.stephens@arm.com>
647 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
648 Richard Earnshaw <rearnsha@arm.com>
649 Sofiane Naci <sofiane.naci@arm.com>
650 Stephen Thomas <stephen.thomas@arm.com>
651 Tejas Belagod <tejas.belagod@arm.com>
652 Yufeng Zhang <yufeng.zhang@arm.com>
654 * configure.tgt: Add AArch64.
656 2012-10-04 Jason Merrill <jason@redhat.com>
658 * testsuite/libgomp.c++/tls-init1.C: New.
660 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
662 * configure: Regenerated.
664 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
666 * config/linux/mips/futex.h (sys_futex0): Change to static
667 function with noinline, nomips16 attributes under MIPS16. Adjust
668 asm statement to place 'li v0,SYS_futex' immediately before
671 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
673 * libgomp.texi (Library Index): Renamed from "Index" to prevent
674 conflict with index.html on case-insensitive file systems.
676 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
678 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
679 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
681 2012-07-02 Richard Guenther <rguenther@suse.de>
682 Michael Matz <matz@suse.de>
683 Tobias Grosser <tobias@grosser.es>
684 Sebastian Pop <sebpop@gmail.com>
686 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
687 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
688 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
689 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
691 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
693 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
695 2012-06-22 Richard Guenther <rguenther@suse.de>
697 Merge from graphite branch
698 2012-01-13 Tobias Grosser <tobias@grosser.es>
700 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
701 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
703 2012-06-07 Jakub Jelinek <jakub@redhat.com>
706 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
707 use GOMP_barrier () call instead.
708 * testsuite/libgomp.c/pr26943-3.c: Likewise.
709 * testsuite/libgomp.c/pr26943-4.c: Likewise.
710 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
711 call GOMP_barrier instead.
712 * testsuite/libgomp.fortran/vla5.f90: Likewise.
714 2012-06-06 Jakub Jelinek <jakub@redhat.com>
717 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
718 argument to memset call.
720 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
722 * configure: Regenerated.
724 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
726 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
728 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
731 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
733 2012-03-22 Jakub Jelinek <jakub@redhat.com>
736 * testsuite/libgomp.c/pr52547.c: New test.
738 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
740 * testsuite/lib/libgomp.exp: load fortran-modules.exp
742 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
744 * configure.tgt (mips-sgi-irix6*): Remove.
746 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
748 * configure.tgt (alpha*-dec-osf*): Remove.
750 * config/osf/sem.h: Remove.
751 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
753 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
755 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
757 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
760 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
761 Remove ENABLE_SYMVERS_SOL2.
762 * configure: Regenerate.
763 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
764 (PREPROCESS): New variable.
765 (libgomp.ver): New target.
766 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
767 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
768 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
770 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
771 * Makefile.in: Regenerate.
773 2012-02-14 Walter Lee <walt@tilera.com>
775 * configure.tgt: Handle tilegx and tilepro.
776 * config/linux/tile/futex.h: New file.
778 2012-02-08 Richard Guenther <rguenther@suse.de>
780 PR tree-optimization/46886
781 * testsuite/libgomp.c/pr46886.c: New testcase.
783 2012-01-25 Matthias Klose <doko@ubuntu.com>
785 * config/linux/arm: Remove empty directory.
786 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
788 2011-12-09 Alan Modra <amodra@gmail.com>
791 * task.c (GOMP_taskwait): Don't access task->children outside of
792 task_lock mutex region.
793 (GOMP_task): Likewise.
795 2011-12-06 Jakub Jelinek <jakub@redhat.com>
798 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
800 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
801 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
802 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
803 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
804 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
806 2011-12-02 Alan Modra <amodra@gmail.com>
808 * config/linux/affinity.c: Use atomic rather than sync builtin.
809 * config/linux/lock.c: Likewise.
810 * config/linux/ptrlock.h: Likewise.
811 * config/linux/ptrlock.c: Likewise.
812 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
813 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
814 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
815 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
816 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
817 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
818 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
819 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
820 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
821 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
823 2011-11-30 Alan Modra <amodra@gmail.com>
826 * config/linux/bar.h: Use atomic rather than sync builtins.
827 * config/linux/bar.c: Likewise. Add missing acquire
828 synchronisation on generation field.
829 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
832 2011-11-30 Alan Modra <amodra@gmail.com>
834 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
835 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
836 * config/linux/mutex.h: Use atomic rather than sync builtins.
837 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
838 * config/linux/omp-lock.h: Comment fix.
839 * config/linux/arm/mutex.h: Delete.
840 * config/linux/powerpc/mutex.h: Delete.
841 * config/linux/ia64/mutex.h: Delete.
842 * config/linux/mips/mutex.h: Delete.
844 2011-11-30 Alan Modra <amodra@gmail.com>
847 * config/linux/sem.h: Rewrite.
848 * config/linux/sem.c: Rewrite.
850 2011-11-28 Richard Henderson <rth@redhat.com>
852 * libgomp.h (enum memmodel): New.
854 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
856 * configure: Regenerate.
858 2011-10-10 Matthias Klose <doko@ubuntu.com>
860 * config/posix95: Remove empty directory.
862 2011-08-26 Jakub Jelinek <jakub@redhat.com>
864 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
866 2011-08-19 Jakub Jelinek <jakub@redhat.com>
869 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
870 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
872 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
874 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
876 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
879 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
881 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
883 * config/linux/proc.h: New.
884 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
885 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
886 (gomp_init_num_threads): Update call to cpuset_popcount.
887 (get_num_procs): Ditto.
888 * config/linux/affinity.c (gomp_init_affinity): Call
889 gomp_cpuset_popcount.
891 2011-08-02 Jakub Jelinek <jakub@redhat.com>
895 * omp.h.in (omp_in_final): New prototype.
896 * omp_lib.f90.in (omp_in_final): New interface.
897 (omp_integer_kind, omp_logical_kind): Remove
898 and replace all its uses in the module with 4.
899 (openmp_version): Change to 201107.
900 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
901 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
902 kind for the parameters.
903 (omp_in_final): New external.
904 (openmp_version): Change to 201107.
905 * task.c (omp_in_final): New function.
906 (gomp_init_task): Initialize final_task.
907 (GOMP_task): Remove unused attribute from flags. Handle final
909 (GOMP_taskyield): New function.
910 (omp_in_final): Return true if if (false) or final (true) task
911 or descendant of final (true).
912 * fortran.c (omp_in_final_): New function.
913 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
914 (GOMP_3.0): Export GOMP_taskyield.
915 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
917 (parse_unsigned_long_list): New function.
918 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
919 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
920 even if parse_affinity returned false.
921 * config/linux/affinity.c (gomp_init_affinity): Handle
922 gomp_cpu_affinity_len == 0.
923 * libgomp_g.h (GOMP_taskyield): New prototype.
924 * libgomp.h (struct gomp_task): Add final_task field.
925 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
926 * team.c (gomp_team_start): Override new task's nthreads_var icv
927 if list form OMP_NUM_THREADS has been used and it has value for
928 the new nesting level.
930 * testsuite/libgomp.c/atomic-11.c: New test.
931 * testsuite/libgomp.c/atomic-12.c: New test.
932 * testsuite/libgomp.c/atomic-13.c: New test.
933 * testsuite/libgomp.c/atomic-14.c: New test.
934 * testsuite/libgomp.c/reduction-6.c: New test.
935 * testsuite/libgomp.c/task-5.c: New test.
936 * testsuite/libgomp.c++/atomic-2.C: New test.
937 * testsuite/libgomp.c++/atomic-3.C: New test.
938 * testsuite/libgomp.c++/atomic-4.C: New test.
939 * testsuite/libgomp.c++/atomic-5.C: New test.
940 * testsuite/libgomp.c++/atomic-6.C: New test.
941 * testsuite/libgomp.c++/atomic-7.C: New test.
942 * testsuite/libgomp.c++/atomic-8.C: New test.
943 * testsuite/libgomp.c++/atomic-9.C: New test.
944 * testsuite/libgomp.c++/task-8.C: New test.
945 * testsuite/libgomp.c++/reduction-4.C: New test.
946 * testsuite/libgomp.fortran/allocatable7.f90: New test.
947 * testsuite/libgomp.fortran/allocatable8.f90: New test.
948 * testsuite/libgomp.fortran/crayptr3.f90: New test.
949 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
950 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
951 * testsuite/libgomp.fortran/pointer1.f90: New test.
952 * testsuite/libgomp.fortran/pointer2.f90: New test.
953 * testsuite/libgomp.fortran/task4.f90: New test.
955 2011-08-02 Tobias Burnus <burnus@net-b.de>
957 * libgomp.texi: Update OpenMP spec references to 3.1.
958 (omp_in_final,OMP_PROC_BIND): New sections.
959 (OMP_NUM_THREADS): Document that the value can be now a list.
960 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
962 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
964 * config/linux/x86/futex.h: Check __x86_64__ instead of
967 2011-07-29 Jakub Jelinek <jakub@redhat.com>
971 * testsuite/libgomp.c/pr49897-1.c: New test.
972 * testsuite/libgomp.c/pr49897-2.c: New test.
973 * testsuite/libgomp.c/pr49898-1.c: New test.
974 * testsuite/libgomp.c/pr49898-2.c: New test.
976 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
978 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
979 for ia32 instead of ilp32.
981 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
982 * testsuite/libgomp.c/atomic-6.c: Likewise.
984 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
986 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
987 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
989 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
992 * config/osf/sem.h: New file.
993 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
995 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
998 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1001 2011-07-15 Jakub Jelinek <jakub@redhat.com>
1003 * config/linux/wait.h (do_spin): New inline, largely copied
1004 from do_wait, just don't do futex_wait here, instead return true if
1006 (do_wait): Implement using do_spin.
1007 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1009 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1010 __sync_bool_compare_and_swap, pass the oldval to
1011 gomp_mutex_lock_slow.
1012 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1013 If all mutex contenders are just spinning and not sleeping, don't
1014 change state to 2 unnecessarily. Optimize the loop when state has
1015 already become 2 to use just one atomic operation per loop instead
1017 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1019 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1020 __sync_bool_compare_and_swap, pass the oldval to
1021 gomp_mutex_lock_slow.
1023 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1026 * iter.c (gomp_iter_static_next): For chunk size 0
1027 only use n ceil/ nthreads size for the first
1028 n % nthreads threads in the team instead of
1029 all threads except for the last few ones which
1030 get less work or none at all.
1031 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1032 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1033 chunk argument, set run_sched_modifier to 0 for static
1034 resp. 1 for other kinds. If chunk argument is 0
1035 and not static, set value to 1.
1037 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1040 * testsuite/libgomp.c++/pr49043.C: New test.
1043 * testsuite/libgomp.c++/pr48869.C: New test.
1045 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1048 * fortran.c: Include limits.h.
1050 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1052 (omp_set_num_threads_8_, omp_set_schedule_8_,
1053 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1054 omp_get_team_size_8_): Use TO_INT macro.
1055 * testsuite/libgomp.fortran/pr48894.f90: New test.
1057 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1060 * testsuite/libgomp.c/pr48591.c: New test.
1062 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1065 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1066 * configure: Regenerate.
1068 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1071 * testsuite/libgomp.fortran/task3.f90: New test.
1073 2011-02-24 Tobias Burnus <burnus@net-b.de>
1075 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1077 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1080 * libgomp.texi (omp_get_wtime): Don't say time in the past
1083 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1086 * testsuite/libgomp.fortran/fortran.exp: Check for both
1087 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1088 but $blddir != "", still append ${blddir}/${lang_library_path}
1091 2011-02-16 Tobias Burnus <burnus@net-b.de>
1094 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1095 of libquadmath.a before adding its libpath to ldflags.
1097 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1100 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1101 to FUTEX_WAIT futex syscall.
1102 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1104 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1106 * configure: Regenerate.
1108 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1111 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1113 2011-01-16 Gerald Pfeifer
1115 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1117 2010-12-14 Jakub Jelinek <jakub@redhat.com>
1120 * libgomp.fortran/allocatable6.f90: New test.
1122 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1124 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1125 * configure: Regenerate.
1127 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1131 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1132 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1133 * aclocal.m4: Regenerate.
1134 * configure: Regenerate.
1135 * Makefile.in: Regenerate.
1136 * testsuite/Makefile.in: Regenerate.
1138 2010-12-02 Jakub Jelinek <jakub@redhat.com>
1141 * libgomp.fortran/pr46753.f90: New test.
1144 * env.c (initialize_env): Default to spin count 300000
1145 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1149 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1150 at the end if sync builtins aren't supported.
1152 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1154 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1156 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1158 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1160 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
1162 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1164 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1165 Tobias Burnus <burnus@net-b.de>
1169 * configure: Regenerate.
1171 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
1173 * config/linux/futex.h: New.
1174 * config/linux/arm/mutex.h: New.
1175 * configure.tgt (arm*-*-linux*): Add config path.
1177 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
1179 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1181 2010-09-23 Tobias Burnus <burnus@net-b.de>
1183 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1184 Change Fortran datatype to LOGICAL.
1185 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1186 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1188 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1190 * configure: Regenerate.
1192 2010-07-26 Jakub Jelinek <jakub@redhat.com>
1194 * libgomp.texi: Add function keyword to a couple of Fortran
1195 interfaces, use integer instead of int for Fortran.
1197 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
1199 * libgomp.texi: Fix spelling and pasto problems throughout.
1200 Adjust prototypes to match code.
1202 2010-07-24 Tobias Burnus <burnus@net-b.de>
1204 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1205 silence -fwhole-file warning.
1207 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1209 * configure.tgt (*-*-solaris2.[56]*): Removed.
1211 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1213 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1214 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1215 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1216 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1217 targetting solaris2*.
1218 * configure: Regenerate.
1219 * config.h.in: Regenerate.
1221 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1222 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1223 Add libgomp_version_dep.
1224 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1226 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1227 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1228 * Makefile.in: Regenerate.
1230 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1231 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1232 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1233 to common block, protected by
1234 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1236 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1238 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
1240 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
1243 * configure: Regenerate.
1245 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1248 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1249 * configure: Regenerate.
1250 * Makefile.in: Regenerate.
1251 * testsuite/Makefile.in: Regenerate.
1253 2010-04-26 Jakub Jelinek <jakub@redhat.com>
1256 * testsuite/libgomp.c/pr43893.c: New test.
1257 * testsuite/libgomp.c++/pr43893.C: New test.
1259 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1262 * testsuite/libgomp.fortran/vla8.f90: New test.
1264 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1267 * config/linux/affinity.c (gomp_init_affinity): Decrease
1268 gomp_available_cpus if affinity mask confines the process to fewer
1270 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1271 non-NULL, just return gomp_available_cpus.
1274 * sections.c (gomp_sections_init): Initialize ws->mode.
1276 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
1278 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1279 not unused bar variable.
1280 * configure: Regenerate.
1282 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1284 * Makefile.in: Regenerate.
1285 * aclocal.m4: Regenerate.
1286 * testsuite/Makefile.in: Regenerate.
1288 2010-03-22 Jakub Jelinek <jakub@redhat.com>
1291 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1292 (initialize_env): Adjust callers.
1293 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1294 when the argument is 0.
1296 * testsuite/libgomp.c/pr42942.c: New test.
1298 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1302 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1303 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1305 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1307 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1308 * testsuite/libgomp.c++/task-6.C: Likewise.
1310 2010-01-28 Steve Ellcey <sje@cup.hp.com>
1312 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1314 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
1316 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1317 * configure: Regenerate.
1319 2010-01-26 Jakub Jelinek <jakub@redhat.com>
1322 * testsuite/libgomp.fortran/allocatable5.f90: New test.
1324 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
1326 * configure.ac: Test for executability of GFORTRAN.
1327 * configure: Regenerate.
1329 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1331 * configure: Regenerate.
1333 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
1336 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1338 2010-01-03 Richard Guenther <rguenther@suse.de>
1340 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1342 2009-12-23 Sebastian Pop <sebpop@gmail.com>
1344 * testsuite/libgomp.graphite/pr4118.c: New.
1346 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1348 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1349 for darwin, protect the test with require-effective-target tls_runtime.
1350 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1352 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1355 * testsuite/lib/libgomp.exp: Provide -B options to allow for
1356 link spec %s substitutions for static libraries.
1358 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
1361 * libgomp.graphite/force-parallel-2.c: Reduce array size.
1363 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1365 * Makefile.in: Regenerate.
1366 * configure: Regenerate.
1367 * testsuite/Makefile.in: Regenerate.
1369 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1371 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1372 settings for LC_ALL and LANG.
1374 2009-11-25 Jakub Jelinek <jakub@redhat.com>
1377 * testsuite/libgomp.fortran/pr42162.f90: New test.
1379 2009-11-13 Jakub Jelinek <jakub@redhat.com>
1382 * testsuite/libgomp.c/pr42029.c: New test.
1384 2009-10-26 Jakub Jelinek <jakub@redhat.com>
1386 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1387 *s. Accept ld version without text in ()s.
1388 * configure: Regenerated.
1390 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1392 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1394 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1397 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1398 or a hyphen (happens with fortran language disabled).
1399 * configure: Regenerate.
1401 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1403 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1404 use sed script portable to Solaris /bin/sed for extracting ld
1406 * configure: Regenerate.
1408 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1410 * testsuite/libgomp.graphite/bounds.c: New test.
1412 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1414 * Makefile.am (libgomp_la_LINK): New.
1415 * Makefile.in: Regenerate.
1417 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1419 * configure.ac (AC_PREREQ): Bump to 2.64.
1421 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1423 * Makefile.am (install-html, install-pdf): Remove.
1424 * Makefile.in: Regenerate.
1426 * Makefile.in: Regenerate.
1427 * aclocal.m4: Regenerate.
1428 * config.h.in: Regenerate.
1429 * configure: Regenerate.
1430 * testsuite/Makefile.in: Regenerate.
1432 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1434 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1435 * Makefile.in: Regenerate.
1437 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
1439 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1440 * Makefile.in: Regenerate.
1442 2009-08-19 Tobias Burnus <burnus@net-b.de>
1445 omp_lib.h.in: Fix -std=f95 errors.
1448 2009-08-14 David Edelsohn <edelsohn@gnu.org>
1450 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1451 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1452 * testsuite/libgomp.graphite/graphite.exp: New.
1454 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
1456 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1459 2009-08-04 David Daney <ddaney@caviumnetworks.com>
1461 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1462 needed memory barrier semantics.
1463 * config/linux/mips/mutex.h: New file.
1465 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1467 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1469 2009-07-16 Joseph Myers <joseph@codesourcery.com>
1471 * configure: Regenerate.
1473 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
1478 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1479 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1480 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1482 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1484 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1485 options when choosing a multilib.
1487 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
1489 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1490 ld_library_path. Use add_path. Add just find_libgcc_s to
1491 ld_library_path, not every libgcc multilib directory.
1492 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1493 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1494 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1496 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1498 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
1500 * Makefile.am (LTLDFLAGS): Define.
1502 * Makefile.in: Regenerate.
1504 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1507 * testsuite/libgomp.fortran/fortran.exp: Don't link with
1508 libgfortranbegin, check existence of libgfortran.a instead of
1511 2009-05-20 Jakub Jelinek <jakub@redhat.com>
1514 * team.c (gomp_thread_start): Destroy thr->release semaphore.
1515 (gomp_free_pool_helper): Likewise.
1517 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
1518 Jakub Jelinek <jakub@redhat.com>
1521 * testsuite/libgomp.fortran/workshare2.f90: New test.
1523 2009-04-09 Nick Clifton <nickc@redhat.com>
1525 * iter.c: Change copyright header to refer to version 3 of the
1526 GNU General Public License with version 3.1 of the GCC Runtime
1527 Library Exception and to point readers at the COPYING3 and
1528 COPYING3.RUNTIME files and the FSF's license web page.
1529 * alloc.c: Likewise.
1530 * barrier.c: Likewise.
1531 * config/bsd/proc.c: Likewise.
1532 * config/linux/affinity.c: Likewise.
1533 * config/linux/alpha/futex.h: Likewise.
1534 * config/linux/bar.c: Likewise.
1535 * config/linux/bar.h: Likewise.
1536 * config/linux/ia64/futex.h: Likewise.
1537 * config/linux/ia64/mutex.h: Likewise.
1538 * config/linux/lock.c: Likewise.
1539 * config/linux/mips/futex.h: Likewise.
1540 * config/linux/mutex.c: Likewise.
1541 * config/linux/mutex.h: Likewise.
1542 * config/linux/powerpc/futex.h: Likewise.
1543 * config/linux/proc.c: Likewise.
1544 * config/linux/ptrlock.c: Likewise.
1545 * config/linux/ptrlock.h: Likewise.
1546 * config/linux/s390/futex.h: Likewise.
1547 * config/linux/sem.c: Likewise.
1548 * config/linux/sem.h: Likewise.
1549 * config/linux/sparc/futex.h: Likewise.
1550 * config/linux/wait.h: Likewise.
1551 * config/linux/x86/futex.h: Likewise.
1552 * config/mingw32/proc.c: Likewise.
1553 * config/mingw32/time.c: Likewise.
1554 * config/posix/affinity.c: Likewise.
1555 * config/posix/bar.c: Likewise.
1556 * config/posix/bar.h: Likewise.
1557 * config/posix/lock.c: Likewise.
1558 * config/posix/mutex.h: Likewise.
1559 * config/posix/proc.c: Likewise.
1560 * config/posix/ptrlock.h: Likewise.
1561 * config/posix/sem.c: Likewise.
1562 * config/posix/sem.h: Likewise.
1563 * config/posix/time.c: Likewise.
1564 * config/posix95/lock.c: Likewise.
1565 * critical.c: Likewise.
1567 * error.c: Likewise.
1568 * fortran.c: Likewise.
1569 * iter_ull.c: Likewise.
1570 * libgomp.h: Likewise.
1571 * libgomp_f.h.in: Likewise.
1572 * libgomp_g.h: Likewise.
1574 * loop_ull.c: Likewise.
1575 * omp.h.in: Likewise.
1576 * omp_lib.f90.in: Likewise.
1577 * omp_lib.h.in: Likewise.
1578 * ordered.c: Likewise.
1579 * parallel.c: Likewise.
1580 * sections.c: Likewise.
1581 * single.c: Likewise.
1586 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1588 * testsuite/config/default.exp: Change copyright header to refer to
1589 version 3 of the GNU General Public License and to point readers
1590 at the COPYING3 file and the FSF's license web page.
1592 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1595 * libgomp.c++/pr39573.C: New test.
1597 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1600 * testsuite/libgomp.c/pr39591-1.c: New test.
1601 * testsuite/libgomp.c/pr39591-2.c: New test.
1602 * testsuite/libgomp.c/pr39591-3.c: New test.
1604 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1606 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1607 * testsuite/libgomp.c/atomic-6.c: Ditto.
1609 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1612 * testsuite/libgomp.c/loop-12.c: New test.
1613 * testsuite/libgomp.c/loop-11.c: New test.
1614 * testsuite/libgomp.c++/loop-11.C: New test.
1615 * testsuite/libgomp.c++/loop-12.C: New test.
1616 * testsuite/libgomp.c++/for-8.C: New test.
1618 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1620 * configure: Regenerate.
1622 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1625 * testsuite/libgomp.c/pr39154.c: New test.
1627 2009-01-30 Ian Lance Taylor <iant@google.com>
1629 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1630 libgomp_ld_is_gold. Get gold version number.
1631 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1632 * configure: Rebuild.
1634 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1636 * testsuite/lib/libgomp.exp: Add -B option for targets that
1637 use libgfortran.a%s in their specs.
1639 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1642 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1643 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1644 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1645 * configure: Regenerated.
1646 * config.h.in: Likewise.
1648 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1651 * testsuite/libgomp.c/pr38650.c: New test.
1652 * testsuite/libgomp.c++/pr38650.C: New test.
1654 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1656 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1658 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1660 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1662 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1664 * configure: Regenerate.
1666 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1669 * testsuite/libgomp.c/pr36802-1.c: New test.
1670 * testsuite/libgomp.c/pr36802-2.c: New test.
1671 * testsuite/libgomp.c/pr36802-3.c: New test.
1673 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1676 * config/linux/powerpc/mutex.h: New.
1678 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1681 * testsuite/libgomp.c++/for-7.C: New test.
1684 * testsuite/libgomp.c++/for-6.C: New test.
1686 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1689 * testsuite/lib/libgomp.exp: Include new timeout library files.
1690 (libgomp_target_compile): Set timeout value from new proc.
1692 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1695 * config/linux/ia64/mutex.h: New.
1697 2008-11-04 Tobias Burnus <burnus@net-b.de>
1700 * libgomp.texi (Runtime library routines, environment variables):
1701 Update for OpenMP version 3.0.
1703 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1704 Steve Ellcey <sje@cup.hp.com>
1706 * configure: Regenerate for new libtool.
1707 * Makefile.in: Ditto.
1708 * testsuite/Makefile.in: Ditto.
1710 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1711 Andreas Tobler <a.tobler@schweiz.org>
1713 * config/bsd/proc.c: New file.
1714 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1715 * configure.ac: Check for header <sys/sysctl.h>
1716 * configure: Regenerate.
1717 * config.h.in: Likewise.
1719 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1721 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1723 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1725 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1726 * Makefile.in: Regenerated.
1727 * testsuite/Makefile.in: Regenerated.
1729 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1731 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1732 depend on blddir if blddir exists.
1733 (libgomp_target_compile): Likewise.
1734 * testsuite/libgomp.c++/c++.exp: Likewise.
1735 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1737 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1739 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1740 Do not list GPL as Invariant Section.
1742 2008-07-28 Ilie Garbacea <ilie@mips.com>
1743 Chao-ying Fu <fu@mips.com>
1745 * configure.tgt: Enable futex for MIPS.
1746 * config/linux/mips/futex.h: New file.
1748 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1750 * team.c (gomp_team_end): Free team immediately if it has
1753 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1755 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1756 * testsuite/libgomp.fortran/fortran.exp: Same.
1757 * testsuite/libgomp.c/c.exp: Same.
1758 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1759 directory to library path first.
1761 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1763 * env.c (parse_stacksize): Add cast to avoid warning.
1764 (parse_spincount): Likewise.
1766 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1768 * testsuite/libgomp.c/loop-10.c: New test.
1769 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1770 * libgomp.c++/loop-6.C (main): Likewise.
1773 * testsuite/libgomp.c/debug-1.c: New test.
1775 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1777 * testsuite/libgomp.c/nqueens-1.c: New test.
1780 * testsuite/libgomp.c++/task-7.C: New function.
1782 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1784 * configure: Regenerate.
1786 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1788 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1789 mutex when HAVE_SYNC_BUILTINS isn't defined.
1791 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1793 * libgomp.texi (omp_test_lock): Fix typo.
1795 2008-06-12 Tobias Burnus <burnus@net-b.de>
1797 * omp_lib.f90.in: Add "implicit none".
1799 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1802 * testsuite/libgomp.c/reduction-5.c: New test.
1804 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1806 * libgomp.h (struct gomp_task): Add in_tied_task field.
1807 * task.c (gomp_init_task): Initialize it.
1808 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1809 unconditionally. Don't call gomp_team_barrier_wake if
1810 current task is implicit or if(0) from implicit and number of
1811 running tasks is equal to nthreads - 1.
1814 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1815 omp_get_team_size_8): Fix pastos.
1818 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1819 * configure: Regenerated.
1820 * config.h.in: Regenerated.
1821 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1824 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1827 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1828 (GOMP_loop_ull_dynamic_start): Likewise.
1829 (GOMP_loop_ull_guided_start): Likewise.
1830 (GOMP_loop_ull_ordered_static_start): Likewise.
1831 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1832 (GOMP_loop_ull_ordered_guided_start): Likewise.
1834 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1835 Richard Henderson <rth@redhat.com>
1836 Ulrich Drepper <drepper@redhat.com>
1837 Jakob Blomer <jakob.blomer@ira.uka.de>
1839 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1840 Substitute also OMP_*LOCK_25*.
1841 * configure: Regenerated.
1842 * config.h.in: Regenerated.
1843 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1844 ptrlock.c and task.c.
1845 * Makefile.in: Regenerated.
1846 * testsuite/Makefile.in: Regenerated.
1848 * loop_ull.c: New file.
1849 * iter_ull.c: New file.
1850 * libgomp.h: Include ptrlock.h.
1851 (enum gomp_task_kind): New type.
1852 (struct gomp_team): Add task_lock, task_queue, task_count,
1853 task_running_count, single_count fields. Add
1854 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1855 Remove work_share_lock, generation_mask,
1856 oldest_live_gen, num_live_gen and init_work_shares fields, add
1857 work work_share_list_alloc, work_share_list_free and work_share_chunk
1858 fields. Change work_shares from pointer to pointers into an array.
1859 Change ordered_release field into gomp_sem_t ** from flexible array
1860 member. Add implicit_task and initial_work_shares fields.
1861 Move close to the end of the struct.
1862 (struct gomp_team_state): Add single_count, last_work_share,
1863 active_level and level fields, remove work_share_generation.
1864 (gomp_barrier_handle_tasks): New prototype.
1865 (gomp_finish_task): New inline function.
1866 (struct gomp_work_share): Move chunk_size, end, incr into
1867 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1868 next_ll fields. Reshuffle fields. Add next_alloc,
1869 next_ws, next_free and inline_ordered_team_ids fields, change
1870 ordered_team_ids into pointer from flexible array member.
1871 Add mode field. Put lock and next into a different cache line
1872 from most of the write-once fields.
1873 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1874 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1875 gomp_iter_ull_guided_next): New prototypes.
1876 (gomp_new_icv): New prototype.
1877 (struct gomp_thread): Add thread_pool and task fields.
1878 (struct gomp_thread_pool): New type.
1879 (gomp_new_team): New prototype.
1880 (gomp_team_start): Change type of last argument.
1881 (gomp_new_work_share): Removed.
1882 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1883 (gomp_work_share_init_done): New static inline.
1884 (gomp_throttled_spin_count_var, gomp_available_cpus,
1885 gomp_managed_threads): New extern decls.
1886 (gomp_init_task): New prototype.
1887 (gomp_spin_count_var): New extern var decl.
1888 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1889 or no alias support, or if not PIC.
1890 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1891 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1892 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1893 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1894 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1895 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1896 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1897 gomp_test_nest_lock_25): New prototypes.
1898 (omp_lock_symver, strong_alias): Define.
1899 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1901 (gomp_end_task): New.
1902 (struct gomp_task_icv, gomp_global_icv): New.
1903 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1904 (struct gomp_task): New.
1905 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1906 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1908 (gomp_schedule_type): Reorder enum to match
1910 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1912 (gomp_thread_start): Add gomp_team_barrier_wait call.
1913 For non-nested case remove clearing of docked thread thr fields.
1914 Use pool fields instead of global gomp_* variables. Use
1915 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1916 Create tasks for each member thread.
1917 (free_team): Only destroy team barrier, task_lock here and free it.
1918 (gomp_free_thread): Free last_team if non-NULL.
1919 (gomp_team_end): Call gomp_team_barrier_wait instead of
1920 gomp_barrier_wait. For nested case call one extra
1921 gomp_barrier_wait. Move here some destruction from free_team.
1922 Call free_team on pool->last_team if any, rather than freeing
1923 current team. Destroy work_share_list_free_lock ifndef
1925 (gomp_new_icv): New function.
1926 (gomp_threads, gomp_threads_size, gomp_threads_used,
1927 gomp_threads_dock): Removed.
1928 (gomp_thread_destructor): New variable.
1929 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1931 (gomp_team_start): Create new pool if current thread doesn't have
1932 one. Use pool fields instead of global gomp_* variables.
1933 Initialize thread_pool field for new threads. Clear single_count.
1934 Change last argument from ws to team, don't create
1935 new team, set ts.work_share to &team->work_shares[0] and clear
1936 ts.last_work_share. Don't clear ts.work_share_generation.
1937 If number of threads changed, adjust atomically gomp_managed_threads.
1938 Use gomp_init_task instead of gomp_new_task,
1939 set thr->task to the corresponding implicit_task array entry.
1940 Create tasks for each member thread. Initialize ts.level.
1941 (initialize_team): Call pthread_key_create on
1942 gomp_thread_destructor.
1943 (team_destructor): New function.
1944 (new_team): Removed.
1945 (gomp_new_team): New function.
1946 (free_team): Free gomp_work_share blocks chained through next_alloc,
1947 instead of freeing work_shares and destroying work_share_lock.
1948 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1949 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1950 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1951 of gomp_barrier_wait.
1952 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1953 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1954 if gomp_work_share_start returned true. Don't unlock ws->lock.
1955 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1956 of gomp_barrier_wait.
1957 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1958 gomp_work_share_init_done if gomp_work_share_start returned true.
1959 Don't unlock ws->lock.
1960 * work.c: Include stddef.h.
1961 (free_work_share): Use work_share_list_free_lock instead
1962 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1963 Call gomp_fini_work_share and then either free ws if orphaned, or
1964 put it into work_share_list_free list of the current team.
1965 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1967 (gomp_work_share_start, gomp_work_share_end,
1968 gomp_work_share_end_nowait): Rewritten.
1969 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1970 (openmp_version): Set to 200805.
1971 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1972 omp_sched_guided, omp_sched_auto): New parameters.
1973 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1974 omp_set_max_active_levels, omp_get_max_active_levels,
1975 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1976 omp_get_active_level): New interfaces.
1977 * omp_lib.h.in (openmp_version): Set to 200805.
1978 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1979 omp_sched_guided, omp_sched_auto): New parameters.
1980 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1981 omp_set_max_active_levels, omp_get_max_active_levels,
1982 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1983 omp_get_active_level): New externals.
1984 * loop.c: Include limits.h.
1985 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1987 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1988 Likewise. Use gomp_icv.
1989 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1990 ts.static_trip here.
1991 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1992 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1993 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1994 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1995 don't unlock ws->lock, otherwise lock it.
1996 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1997 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1998 (gomp_parallel_loop_start): Call gomp_new_team instead of
1999 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2000 Adjust gomp_team_start caller. Pass 0 as second argument to
2001 gomp_resolve_num_threads.
2002 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2003 If adding ws->chunk_size nthreads + 1 times after end won't
2004 overflow, set ws->mode to 1.
2005 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2006 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2007 GOMP_loop_ull_ordered_static_start,
2008 GOMP_loop_ull_ordered_dynamic_start,
2009 GOMP_loop_ull_ordered_guided_start,
2010 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2011 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2012 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2013 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2014 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2016 * libgomp.map: Export lock routines also @@OMP_2.0.
2017 (GOMP_loop_ordered_dynamic_first,
2018 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2019 GOMP_loop_ordered_static_first): Remove.
2020 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2021 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2022 GOMP_loop_ull_ordered_dynamic_next,
2023 GOMP_loop_ull_ordered_dynamic_start,
2024 GOMP_loop_ull_ordered_guided_next,
2025 GOMP_loop_ull_ordered_guided_start,
2026 GOMP_loop_ull_ordered_runtime_next,
2027 GOMP_loop_ull_ordered_runtime_start,
2028 GOMP_loop_ull_ordered_static_next,
2029 GOMP_loop_ull_ordered_static_start,
2030 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2031 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2032 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2033 (omp_set_schedule, omp_get_schedule,
2034 omp_get_thread_limit, omp_set_max_active_levels,
2035 omp_get_max_active_levels, omp_get_level,
2036 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2037 omp_set_schedule_, omp_set_schedule_8_,
2038 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2039 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2040 omp_get_max_active_levels_, omp_get_level_,
2041 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2042 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2043 New exports @@OMP_3.0.
2044 * omp.h.in (omp_sched_t): New type.
2045 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2046 omp_set_max_active_levels, omp_get_max_active_levels,
2047 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2048 omp_get_active_level): New prototypes.
2049 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2050 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2051 gomp_thread_limit_var, gomp_remaining_threads_count,
2052 gomp_remaining_threads_lock): New variables.
2053 (parse_spincount): New function.
2054 (initialize_env): Call gomp_init_num_threads unconditionally.
2055 Initialize gomp_available_cpus. Call parse_spincount,
2056 initialize gomp_{,throttled_}spin_count_var
2057 depending on presence and value of OMP_WAIT_POLICY and
2058 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2059 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2060 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2061 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2062 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2063 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2064 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2065 (gomp_global_icv): New.
2066 (parse_schedule): Use it. Parse "auto".
2067 (omp_set_num_threads): Use gomp_icv.
2068 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2070 (omp_get_max_threads): Move from parallel.c.
2071 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2072 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2074 (parse_stacksize, parse_wait_policy): New functions.
2075 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2076 both wrappers for compatibility and new locks.
2077 (omp_set_schedule, omp_get_schedule,
2078 omp_get_thread_limit, omp_set_max_active_levels,
2079 omp_get_max_active_levels, omp_get_level,
2080 omp_get_ancestor_thread_num, omp_get_team_size,
2081 omp_get_active_level): New ialias_redirect.
2082 (omp_set_schedule_, omp_set_schedule_8_,
2083 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2084 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2085 omp_get_max_active_levels_, omp_get_level_,
2086 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2087 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2089 * parallel.c: Include limits.h.
2090 (gomp_resolve_num_threads): Add count argument. Rewritten.
2091 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2092 argument to gomp_team_start. Pass 0 as second argument to
2093 gomp_resolve_num_threads.
2094 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2095 if gomp_thread_limit_var != ULONG_MAX.
2096 (omp_in_parallel): Implement using ts.active_level.
2097 (omp_get_max_threads): Move to env.c.
2098 (omp_get_level, omp_get_ancestor_thread_num,
2099 omp_get_team_size, omp_get_active_level): New functions,
2101 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2102 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2103 gomp_iter_dynamic_next instead of the _locked variant and don't take
2104 lock around it, otherwise acquire it before calling
2105 gomp_iter_dynamic_next_locked.
2106 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2107 gomp_iter_dynamic_next instead of the _locked variant and don't take
2109 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2110 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2111 Adjust gomp_team_start caller. Pass count as second argument to
2112 gomp_resolve_num_threads, don't adjust num_threads after the call.
2114 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2115 ws->chunk_size by incr.
2116 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2118 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2120 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2121 (omp_check_defines): Check even the compat defines.
2122 * config/linux/ptrlock.c: New file.
2123 * config/linux/ptrlock.h: New file.
2124 * config/linux/wait.h: New file.
2125 * config/posix/ptrlock.c: New file.
2126 * config/posix/ptrlock.h: New file.
2127 * config/linux/bar.h (gomp_team_barrier_wait,
2128 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2129 (gomp_team_barrier_set_task_pending,
2130 gomp_team_barrier_clear_task_pending,
2131 gomp_team_barrier_set_waiting_for_tasks,
2132 gomp_team_barrier_waiting_for_tasks,
2133 gomp_team_barrier_done): New inlines.
2134 (gomp_barrier_t): Rewritten.
2135 (gomp_barrier_state_t): New typedef.
2136 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2137 gomp_barrier_wait_start): Rewritten.
2138 (gomp_barrier_wait_end): Change second argument to
2139 gomp_barrier_state_t.
2140 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2142 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2144 (gomp_barrier_wait_end): Rewritten.
2145 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2146 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2147 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2148 (gomp_barrier_state_t): New typedef.
2149 (gomp_team_barrier_wait,
2150 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2151 (gomp_barrier_wait_start): Or all but low 2 bits from generation
2152 into the return value. Return gomp_barrier_state_t.
2153 (gomp_team_barrier_set_task_pending,
2154 gomp_team_barrier_clear_task_pending,
2155 gomp_team_barrier_set_waiting_for_tasks,
2156 gomp_team_barrier_waiting_for_tasks,
2157 gomp_team_barrier_done): New inlines.
2158 (gomp_barrier_wait_end): Change second argument to
2159 gomp_barrier_state_t.
2160 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2162 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2163 (gomp_barrier_wait_end): Change second argument to
2164 gomp_barrier_state_t.
2165 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2166 gomp_team_barrier_wake): New functions.
2167 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2169 (gomp_futex_wake, gomp_futex_wait): New variables.
2170 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2171 * config/linux/lock.c: Rewrite to make locks task owned,
2172 for backwards compatibility provide the old entrypoints
2173 if symbol versioning. Include wait.h instead of libgomp.h and
2175 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2176 * config/posix95/lock.c: Rewrite to make locks task owned,
2177 for backwards compatibility provide the old entrypoints
2178 if symbol versioning.
2179 * config/posix/lock.c: Rewrite to make locks task owned,
2180 for backwards compatibility provide the old entrypoints
2181 if symbol versioning.
2182 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2183 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2184 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2185 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2186 (sys_futex0): Return error code.
2187 (futex_wake, futex_wait): If ENOSYS was returned, clear
2188 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2189 (cpu_relax, atomic_write_barrier): New static inlines.
2190 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2191 (futex_wake, futex_wait): If ENOSYS was returned, clear
2192 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2193 (cpu_relax, atomic_write_barrier): New static inlines.
2194 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2195 (sys_futex0): Return error code.
2196 (futex_wake, futex_wait): If ENOSYS was returned, clear
2197 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2198 (cpu_relax, atomic_write_barrier): New static inlines.
2199 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2200 (sys_futex0): Return error code.
2201 (futex_wake, futex_wait): If ENOSYS was returned, clear
2202 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2203 (cpu_relax, atomic_write_barrier): New static inlines.
2204 * config/linux/ia64/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/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2210 (sys_futex0): Return error code.
2211 (futex_wake, futex_wait): If ENOSYS was returned, clear
2212 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2213 (cpu_relax, atomic_write_barrier): New static inlines.
2214 * config/linux/sem.c: Include wait.h instead of libgomp.h and
2216 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2217 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2218 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2220 (omp_nest_lock_t): Change owner into void *, add lock field.
2221 * config/posix95/omp-lock.h: Include semaphore.h.
2222 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2223 (omp_lock_t): Use sem_t instead of mutex if semaphores
2225 (omp_nest_lock_t): Likewise. Change owner to void *.
2226 * config/posix/omp-lock.h: Include semaphore.h.
2227 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2228 (omp_lock_t): Use sem_t instead of mutex if semaphores
2230 (omp_nest_lock_t): Likewise. Add owner field.
2232 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2234 * testsuite/libgomp.c/collapse-1.c: New test.
2235 * testsuite/libgomp.c/collapse-2.c: New test.
2236 * testsuite/libgomp.c/collapse-3.c: New test.
2237 * testsuite/libgomp.c/icv-1.c: New test.
2238 * testsuite/libgomp.c/icv-2.c: New test.
2239 * testsuite/libgomp.c/lib-2.c: New test.
2240 * testsuite/libgomp.c/lock-1.c: New test.
2241 * testsuite/libgomp.c/lock-2.c: New test.
2242 * testsuite/libgomp.c/lock-3.c: New test.
2243 * testsuite/libgomp.c/loop-4.c: New test.
2244 * testsuite/libgomp.c/loop-5.c: New test.
2245 * testsuite/libgomp.c/loop-6.c: New test.
2246 * testsuite/libgomp.c/loop-7.c: New test.
2247 * testsuite/libgomp.c/loop-8.c: New test.
2248 * testsuite/libgomp.c/loop-9.c: New test.
2249 * testsuite/libgomp.c/nested-3.c: New test.
2250 * testsuite/libgomp.c/nestedfn-6.c: New test.
2251 * testsuite/libgomp.c/sort-1.c: New test.
2252 * testsuite/libgomp.c/task-1.c: New test.
2253 * testsuite/libgomp.c/task-2.c: New test.
2254 * testsuite/libgomp.c/task-3.c: New test.
2255 * testsuite/libgomp.c/task-4.c: New test.
2256 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2257 to C++ testsuite default compiler options.
2258 * testsuite/libgomp.c++/collapse-1.C: New test.
2259 * testsuite/libgomp.c++/collapse-2.C: New test.
2260 * testsuite/libgomp.c++/ctor-10.C: New test.
2261 * testsuite/libgomp.c++/for-1.C: New test.
2262 * testsuite/libgomp.c++/for-2.C: New test.
2263 * testsuite/libgomp.c++/for-3.C: New test.
2264 * testsuite/libgomp.c++/for-4.C: New test.
2265 * testsuite/libgomp.c++/for-5.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++/loop-10.C: New test.
2269 * testsuite/libgomp.c++/task-1.C: New test.
2270 * testsuite/libgomp.c++/task-2.C: New test.
2271 * testsuite/libgomp.c++/task-3.C: New test.
2272 * testsuite/libgomp.c++/task-4.C: New test.
2273 * testsuite/libgomp.c++/task-5.C: New test.
2274 * testsuite/libgomp.c++/task-6.C: New test.
2275 * testsuite/libgomp.fortran/allocatable1.f90: New test.
2276 * testsuite/libgomp.fortran/allocatable2.f90: New test.
2277 * testsuite/libgomp.fortran/allocatable3.f90: New test.
2278 * testsuite/libgomp.fortran/allocatable4.f90: New test.
2279 * testsuite/libgomp.fortran/collapse1.f90: New test.
2280 * testsuite/libgomp.fortran/collapse2.f90: New test.
2281 * testsuite/libgomp.fortran/collapse3.f90: New test.
2282 * testsuite/libgomp.fortran/collapse4.f90: New test.
2283 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2284 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2285 * testsuite/libgomp.fortran/lib4.f90: New test.
2286 * testsuite/libgomp.fortran/lock-1.f90: New test.
2287 * testsuite/libgomp.fortran/lock-2.f90: New test.
2288 * testsuite/libgomp.fortran/nested1.f90: New test.
2289 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2290 * testsuite/libgomp.fortran/strassen.f90: New test.
2291 * testsuite/libgomp.fortran/tabs1.f90: New test.
2292 * testsuite/libgomp.fortran/tabs2.f: New test.
2293 * testsuite/libgomp.fortran/task1.f90: New test.
2294 * testsuite/libgomp.fortran/task2.f90: New test.
2295 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2296 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2297 * testsuite/libgomp.c/pr26943-2.c: Likewise.
2298 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2299 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2301 2008-05-23 Jakub Jelinek <jakub@redhat.com>
2304 * testsuite/libgomp.c++/ctor-11.C: New test.
2305 * testsuite/libgomp.c++/ctor-12.C: New test.
2307 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2309 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2311 2008-05-07 Jakub Jelinek <jakub@redhat.com>
2314 * testsuite/libgomp.c/atomic-5.c: New test.
2315 * testsuite/libgomp.c/atomic-6.c: New test.
2316 * testsuite/libgomp.c/autopar-1.c: New test.
2318 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2320 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2321 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2322 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2323 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2324 * configure: Regenerate.
2325 * Makefile.in, testsuite/Makefile.in: Likewise.
2327 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2330 * aclocal.m4: Regenerate.
2331 * configure: Regenerate.
2333 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2336 * testsuite/libgomp.c/atomic-4.c: New test.
2339 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2340 (gomp_iter_guided_next): Likewise.
2341 * testsuite/libgomp.c/pr35625.c: New test.
2343 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2345 * aclocal.m4: Regenerate.
2346 * configure: Likewise.
2347 * Makefile.in: Likewise.
2348 * testsuite/Makefile.in: Likewise.
2350 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2353 * testsuite/libgomp.c++/pr35185.C: New test.
2355 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2358 * testsuite/libgomp.c/pr35549.c: New test.
2360 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2362 * testsuite/libgomp.c/atomic-3.c: New test.
2364 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2367 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2370 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
2373 * configure.ac: Add ACX_HEADER_STRING.
2374 * env.c: Include strings.h.
2375 * aclocal.m4: Regenerate.
2376 * config.h.in: Regenerate.
2377 * configure: Regenerate.
2378 * Makefile.in: Regenerate.
2379 * testsuite/Makefile.in: Regenerate.
2381 2008-02-15 Jakub Jelinek <jakub@redhat.com>
2384 * testsuite/libgomp.c/pr35196.c: New test.
2387 * testsuite/libgomp.fortran/pr35130.f90: New test.
2388 * testsuite/libgomp.c/pr35130.c: New test.
2390 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2393 * testsuite/libgomp.c/pr33880.c: New test.
2394 * testsuite/libgomp.fortran/pr33880.f90: New test.
2396 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2398 * configure: Regenerate.
2400 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2402 * configure.ac: Move futex checking into ../config/futex.m4.
2403 * configure: Rebuilt.
2404 * aclocal.m4: Rebuilt.
2405 * Makefile.in: Rebuilt.
2407 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2408 2007-10-15 ../config/tls.m4 change.
2410 2007-12-19 Jakub Jelinek <jakub@redhat.com>
2413 * testsuite/libgomp.c/pr34513.c: New test.
2414 * testsuite/libgomp.c++/pr34513.C: New test.
2416 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
2419 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2421 2007-12-04 Jakub Jelinek <jakub@redhat.com>
2423 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
2425 2007-12-03 Jakub Jelinek <jakub@redhat.com>
2427 * testsuite/libgomp.c/private-1.c: New test.
2429 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
2430 Paolo Bonzini <bonzini@gnu.org>
2432 * Makefile.am: Use space as vpath separator. Use 'vpath %'
2433 instead of 'VPATH ='.
2434 * Makefile.in: Regenerate.
2436 2007-11-23 Matthias Klose <doko@ubuntu.com>
2438 * configure.ac: Adjust makeinfo version check.
2439 * configure: Regenerate.
2441 2007-11-10 Jakub Jelinek <jakub@redhat.com>
2444 * testsuite/libgomp.fortran/pr34020.f90: New test.
2446 2007-11-06 Jakub Jelinek <jakub@redhat.com>
2449 * testsuite/libgomp.c++/atomic-1.C: New test.
2451 2007-10-25 Jakub Jelinek <jakub@redhat.com>
2454 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2455 Make x and y integers rather than (implicit) reals. Add private (j)
2456 clause to the last omp parallel.
2458 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
2460 * configure: Regenerate following changes to ../config/tls.m4.
2462 2007-09-28 Jakub Jelinek <jakub@redhat.com>
2464 * testsuite/libgomp.fortran/stack.f90: New test.
2466 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2468 * config/mingw32/proc.c: New file.
2470 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
2472 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2473 (main): Use __get_cpuid to get i386 target fetaures.
2474 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2475 (main): Use __get_cpuid to get x86_64 target fetaures.
2477 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
2480 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2481 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2483 2007-07-12 Jakub Jelinek <jakub@redhat.com>
2486 * testsuite/libgomp.fortran/pr32550.f90: New test.
2487 * testsuite/libgomp.fortran/crayptr2.f90: New test.
2489 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2491 * aclocal.m4: Regenerated.
2493 2007-07-05 Tobias Burnus <burnus@net-b.de>
2496 * testsuite/libgomp.fortran/pr32359.f90: New.
2498 2007-07-02 Jakub Jelinek <jakub@redhat.com>
2501 * sections.c (GOMP_parallel_sections_start): Only decrease
2502 number of threads to COUNT if dyn_var is true.
2503 * testsuite/libgomp.c/pr32468.c: New test.
2505 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2508 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2510 2007-06-21 Jakub Jelinek <jakub@redhat.com>
2513 * testsuite/libgomp.c/pr32362-1.c: New test.
2514 * testsuite/libgomp.c/pr32362-2.c: New test.
2515 * testsuite/libgomp.c/pr32362-3.c: New test.
2517 2007-06-07 Jakub Jelinek <jakub@redhat.com>
2519 * team.c (gomp_team_start): Fix setting up thread_attr
2522 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2524 * configure: Regenerate.
2526 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2528 * Makefile.in: Regenerate.
2529 * configure: Regenerate.
2530 * aclocal.m4: Regenerate.
2531 * testsuite/Makefile.in: Regenerate.
2533 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2535 * config/linux/proc.c: New file.
2538 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2540 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2542 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2544 2007-04-16 Matthias Klose <doko@debian.org>
2546 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2547 flags if not building with -m64.
2548 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2549 flag for i?86-*-* targets, if current target matches -m64.
2551 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2553 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2554 * Makefile.in: Regenerate.
2556 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2559 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2561 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2563 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2565 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2567 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2568 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2569 (parse_affinity): New function.
2570 (initialize_env): Call it and gomp_init_affinity.
2571 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2572 create new pthread_attr_t and call gomp_init_thread_affinity
2573 on it for each thread before passing the attribute to pthread_create.
2574 * config/linux/affinity.c: New file.
2575 * config/posix/affinity.c: New file.
2576 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2577 * configure: Rebuilt.
2578 * config.h.in: Rebuilt.
2579 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2580 * Makefile.in: Rebuilt.
2582 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2584 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2586 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2587 and use it if found.
2589 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2591 * testsuite/config/default.exp: New file.
2592 * testsuite/lib/libgomp.exp: New file.
2593 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2594 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2595 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2596 (libgomp_load): Remove.
2597 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2598 always_ld_library_path, not ld_library_path. Set additional_flags
2599 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2600 (target_compile): Do not call libgomp_init. Append lang_library_path
2601 and lang_link_flags to options.
2602 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2603 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2605 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2606 always_ld_library_path. Set LD_LIBRARY_PATH here.
2607 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2608 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2609 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2611 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2612 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2613 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2614 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2615 * testsuite/libgomp.c/atomic-10.c: Ditto.
2617 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2619 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2620 dg-final cleanup-modules line.
2621 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2622 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2623 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2624 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2625 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2626 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2627 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2629 2007-03-18 Andreas Schwab <schwab@suse.de>
2631 * acinclude.m4: Adjust regular expression for ld version
2633 * configure: Regenerate.
2635 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2637 * Makefile.am: Add install-pdf target as copied from
2638 automake v1.10 rules.
2639 * Makefile.in: Regenerate
2641 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2644 * configure: Regenerate.
2647 * testsuite/libgomp.c++/pr30703.C: New test.
2649 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2652 2006-07-05 Eric Christopher <echristo@apple.com>
2653 * configure.ac: Depend addition of -pthread on host OS.
2654 * configure: Regenerate.
2656 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2658 * libgomp.texi: Fix spacing after abbreviations.
2660 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2663 * configure.ac: Add check for makeinfo
2664 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2665 if an appropiate version of makeinfo is found.
2666 * aclocal.m4: Regenerated.
2667 * configure: Regenerated.
2668 * Makefile.in: Regenerated.
2669 * testsuite/Makefile.in: Regenerated.
2671 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2674 * libgomp.texi: More about implementation-dependent settings.
2676 2007-01-26 Tobias Burnus <burnus@net-b.de>
2678 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2680 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2683 * testsuite/libgomp.c/pr30494.c: New test.
2685 2007-01-15 Tom Tromey <tromey@redhat.com>
2687 * configure: Rebuilt.
2688 * configure.ac: Fixed comment.
2690 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2692 * libgomp.texi: Document implementation specific default values of
2693 environment variables.
2695 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2698 * libgomp.texi: New file.
2699 * configure.ac: Add --enable-generated-files-in-srcdir option.
2700 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2702 * Makefile.in: Regenerated.
2703 * config.h.in: Regenerated.
2704 * testsuite/Makefile.in: Regenerated.
2707 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2710 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2712 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2714 * configure: Regenerate.
2716 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2719 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2720 start if there shouldn't be any loop iterations.
2721 (gomp_loop_ordered_static_start): Remove start == end test.
2722 * testsuite/libgomp.c/pr29947-1.c: New test.
2723 * testsuite/libgomp.c/pr29947-2.c: New test.
2725 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2727 * configure.tgt: Force initial-exec TLS model on Linux only.
2729 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2731 * configure: Regenerated.
2733 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2735 * env.c (parse_schedule): Reject out of range values.
2736 (parse_unsigned_long): Reject out of range, negative or zero values.
2738 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2741 * testsuite/libgomp.fortran/pr29629.f90: New test.
2743 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2746 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2747 * config/posix95: New directory.
2748 * config/posix95/omp-lock.h: New file.
2749 * config/posix95/lock.c: Likewise.
2751 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2753 * aclocal.m4: Regenerate.
2754 * configure: Regenerate.
2756 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2758 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2761 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2763 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2765 * configure: Regenerate.
2766 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2768 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2772 * testsuite/libgomp.c/nestedfn-4.c: New test.
2773 * testsuite/libgomp.c/nestedfn-5.c: New test.
2774 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2777 * testsuite/libgomp.fortran/condinc1.f: New test.
2778 * testsuite/libgomp.fortran/condinc2.f: New test.
2779 * testsuite/libgomp.fortran/condinc3.f90: New test.
2780 * testsuite/libgomp.fortran/condinc4.f90: New test.
2781 * testsuite/libgomp.fortran/condinc1.inc: New file.
2783 2006-09-18 Tom Tromey <tromey@redhat.com>
2785 * configure: Rebuilt.
2787 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2790 PR preprocessor/14634
2791 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2793 * configure: Regenerate.
2795 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2797 * testsuite/libgomp.fortran/reduction3.f90: Change
2798 -2147483648 to -huge(i)-1 to avoid overflow.
2799 * testsuite/libgomp.fortran/reduction4.f90: Change
2800 Z'ffffffff' to not(0) to avoid overflow.
2802 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2805 * Makefile.am (libsubincludedir): New.
2806 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2807 * Makefile.in: Regenerate.
2809 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2812 * env.c: Include ctype.h.
2813 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2814 leading and/or trailing whitespace and compare strings case
2817 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2820 * testsuite/libgomp.fortran/pr28390.f: New test.
2822 2006-07-05 Eric Christopher <echristo@apple.com>
2824 * configure.ac: Depend addition of -pthread on host OS.
2825 * configure: Regenerate.
2827 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2829 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2830 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2833 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2837 * configure.ac: If neither --enable-linux-futex nor
2838 --disable-linux-futex is passed, determine the default by checking
2839 for compiling and/or running against NPTL. With --enable-linux-futex,
2840 check if SYS_gettid and SYS_futex are defined.
2841 * configure: Rebuilt.
2843 2006-06-14 Richard Henderson <rth@redhat.com>
2846 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2847 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2849 2006-06-09 Richard Henderson <rth@redhat.com>
2851 * env.c (gomp_nthreads_var): Change to unsigned long.
2852 (gomp_run_sched_chunk): Likewise.
2853 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2854 (initialize_env): Initialize gomp_thread_attr.
2855 * libgomp.h (gomp_nthreads_var): Update decl.
2856 (gomp_run_sched_chunk): Likewise.
2857 (gomp_thread_attr): Declare.
2858 * team.c (gomp_thread_attr): Export.
2859 (initialize_team): Don't initialize it.
2861 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2864 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2865 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2867 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2869 * config/mingw32/time.c: New file.
2870 * configure.tgt: Use it.
2872 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2874 * Makefile.am: Add install-html target. Add install-html to .PHONY
2875 * Makefile.in: Regenerate.
2877 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2880 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2881 * testsuite/libgomp.c/critical-1.c: Likewise.
2882 * testsuite/libgomp.c/loop-1.c: Likewise.
2883 * testsuite/libgomp.c/loop-2.c: Likewise.
2884 * testsuite/libgomp.c/single-1.c: Likewise.
2885 * testsuite/libgomp.c/ordered-1.c: Likewise.
2886 * testsuite/libgomp.c/ordered-2.c: Likewise.
2888 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2891 * libgomp.fortran/pr27416-1.f90: New test.
2893 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2896 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2897 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2899 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2902 * testsuite/libgomp.c/pr26943-1.c: New test.
2903 * testsuite/libgomp.c/pr26943-2.c: New test.
2904 * testsuite/libgomp.c/pr26943-3.c: New test.
2905 * testsuite/libgomp.c/pr26943-4.c: New test.
2906 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2907 * testsuite/libgomp.c++/pr26943.C: New test.
2909 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2912 * testsuite/libgomp.c++/pr27337.C: New test.
2914 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2917 * testsuite/libgomp.c/pr26171.c: New test.
2919 2006-04-25 Richard Henderson <rth@redhat.com>
2922 * configure.ac: Use GCC_CHECK_TLS.
2923 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2924 * Makefile.in, aclocal.m4, configure: Regenerate.
2926 2006-04-10 Matthias Klose <doko@debian.org>
2928 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2929 directory names containing underscores.
2931 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2934 * testsuite/libgomp.c++/pr26691.C: New test.
2936 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2938 * testsuite/libgomp.fortran/retval2.f90: New test.
2940 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2942 * testsuite/libgomp.c++: New directory.
2944 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2946 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2947 * config/posix/sem.c: Implement the above.
2949 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2951 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2952 define HAVE_BROKEN_POSIX_SEMAPHORES.
2953 * configure: Rebuilt.
2954 * config.h.in: Rebuilt.
2956 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2959 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2960 for the other pthread check.
2961 * configure: Regenerate.
2962 * config.h.in: Regenerate.
2964 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2968 * Makefile.am (fincludedir): New variable.
2969 (nodist_include_HEADERS): Remove Fortran files.
2970 (nodist_finclude_HEADERS): New variable.
2971 * Makefile.in: Regenerated.
2973 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2975 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2976 Remove tests for returning assumed character length arrays.
2978 2006-02-12 Roger Sayle <roger@eyesopen.com>
2979 John David Anglin <dave@hiauly1.hia.nrc.ca>
2982 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2984 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2986 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2988 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2990 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2991 part of LD_LIBRARY_PATH manually.
2993 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2996 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2999 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
3002 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3003 * configure.ac (PERL): Don't set.
3004 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3005 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3006 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3007 * omp.h.in: Wrap the new configure substitutions with @ characters.
3008 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3009 * aclocal.m4, configure, Makefile.in: Regenerate.
3010 * mkomp_h.pl: Delete.
3012 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3015 * configure.ac: Use GCC_HEADER_STDINT.
3016 * libgomp.h: Include gstdint.h.
3017 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3018 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3020 2006-01-24 Richard Henderson <rth@redhat.com>
3023 * configure.ac: Add AM_MAINTAINER_MODE.
3024 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3026 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3028 * Makefile.in: Regenerate.
3029 * testsuite/Makefile.in: Regenerate.
3030 * aclocal.m4: Regenerate.
3032 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3034 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3036 * configure.ac: Add check for loadavg.h.
3037 (link_gomp): Adjust comment.
3038 * configure: Regenerate.
3039 * config.h.in: Regenerate.
3041 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3044 * configure.ac: Remove check for alloca.h.
3045 * configure: Regenerate.
3046 * config.h.in: Regenerate.
3047 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3048 * team.c: Remove use of alloca.h.
3049 Call gomp_alloca instead of alloca.
3051 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3054 * team.c: Add include of alloca.h.
3055 * configure.ac: Add check for alloca.h.
3056 * configure: Regenerate.
3057 * config.h.in: Regenerate.
3059 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3062 * testsuite/libgomp.fortran/pr25219.f90: New test.
3064 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3066 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3067 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3068 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3069 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3070 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3071 testsuite/libgomp.fortran/threadprivate1.f90,
3072 testsuite/libgomp.fortran/threadprivate2.f90,
3073 testsuite/libgomp.fortran/threadprivate3.f90,
3074 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3075 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3076 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3077 effective-target to TLS runtime.
3079 * testsuite/libgomp.fortran/pr25162.f: Require
3080 effective-target TLS runtime.
3082 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3084 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3085 * testsuite/libgomp.c/nestedfn-3.c: New test.
3087 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3090 * testsuite/libgomp.fortran/pr25162.f: New test.
3092 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3094 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3095 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3097 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3099 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3100 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3101 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3102 single.c, team.c, work.c, config/linux/alpha/futex.h,
3103 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3104 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3105 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3106 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3107 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3108 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3109 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3112 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3114 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3115 to nodist_noinst_HEADERS.
3116 * Makefile.in: Rebuilt.
3118 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3119 add integer count field.
3120 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3121 omp_nest_lock_t type change.
3122 (omp_init_nest_lock): Likewise. Initialize count to 0.
3123 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3125 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3127 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3128 Increment count if successful and return the new nesting level.
3129 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3130 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3131 * testsuite/libgomp.c/lib-1.c: New test.
3132 * testsuite/libgomp.fortran/lib1.f90: New test.
3133 * testsuite/libgomp.fortran/lib2.f: New test.
3134 * testsuite/libgomp.fortran/lib3.f: New test.
3136 2005-11-17 Richard Henderson <rth@redhat.com>
3139 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3140 * configure.ac (link_gomp): New. Substitute it.
3141 (AC_CONFIG_FILES): Add libgomp.spec.
3142 * libgomp.spec.in: New file.
3143 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3144 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3146 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3148 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3149 reduction(-:var) behaving the same as reduction(+:var).
3150 * testsuite/libgomp.c/reduction-4.c: New test.
3152 2005-11-15 Uros Bizjak <uros@kss-loka.si>
3154 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3155 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3156 testsuite/libgomp.c/copyin-3.c,
3157 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3158 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3159 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3160 testsuite/libgomp.c++/pr24455.C,
3161 testsuite/libgomp.fortran/threadprivate1.f90,
3162 testsuite/libgomp.fortran/threadprivate2.f90,
3163 testsuite/libgomp.fortran/threadprivate3.f90,
3164 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3165 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3166 testsuite/libgomp.fortran/omp_parse3.f90: Require
3167 effective-target TLS.
3169 2005-11-14 Diego Novillo <dnovillo@redhat.com>
3173 2005-11-13 Jakub Jelinek <jakub@redhat.com>
3176 * team.c (initialize_team): Pass NULL rather than free as
3177 pthread_key_create destructor. Initialize thread specific data
3178 pointer in initial thread to a static local variable rather than
3181 2005-11-11 Uros Bizjak <uros@kss-loka.si>
3183 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3184 its location to ld_library_path.
3186 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3188 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3190 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3192 * testsuite/libgomp.c: Rename from libgomp.dg.
3194 2005-11-09 Diego Novillo <dnovillo@redhat.com>
3196 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3197 threadprivate variable 'i'.
3199 2005-11-09 Jakub Jelinek <jakub@redhat.com>
3201 * config/linux/s390/futex.h: New file.
3202 * configure.tgt: Use it.
3204 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3205 before the parallel.
3207 2005-11-08 Jakub Jelinek <jakub@redhat.com>
3210 * testsuite/libgomp.c++/master-1.C: New test.
3212 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3214 * testsuite/libgomp.dg/copyin-3.c: New test.
3216 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3218 * testsuite/libgomp.fortran/retval1.f90: New test.
3219 * testsuite/libgomp.fortran/vla7.f90: New test.
3221 2005-11-06 Jakub Jelinek <jakub@redhat.com>
3223 * testsuite/libgomp.fortran/vla2.f90: New test.
3224 * testsuite/libgomp.fortran/vla3.f90: New test.
3225 * testsuite/libgomp.fortran/vla4.f90: New test.
3226 * testsuite/libgomp.fortran/vla5.f90: New test.
3227 * testsuite/libgomp.fortran/vla6.f90: New test.
3229 2005-11-01 Jakub Jelinek <jakub@redhat.com>
3231 * config/linux/sparc/futex.h: New file.
3232 * configure.tgt: Use it.
3233 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3235 * critical.c: Include stdlib.h.
3236 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3237 ignoring return value.
3238 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3239 LIBGOMP_CHECK_SYNC_BUILTINS check.
3240 * configure: Rebuilt.
3242 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3244 * testsuite/libgomp.fortran/vla1.f90: New test.
3246 2005-10-31 Richard Henderson <rth@redhat.com>
3248 * testsuite/libgomp.fortran/character2.f90: Fix race condition
3249 setting 's' in different threads.
3251 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3253 * libgomp.h (attribute_hidden, ialias): Define.
3254 * config/posix/proc.c (omp_get_num_procs): Add ialias.
3255 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3256 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3257 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3258 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3259 omp_test_lock, omp_test_nest_lock): Likewise.
3260 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3261 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3262 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3263 omp_test_lock, omp_test_nest_lock): Likewise.
3264 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3265 omp_get_dynamic, omp_get_nested): Likewise.
3266 * parallel.c (omp_get_num_threads, omp_get_max_threads,
3267 omp_get_thread_num, omp_in_parallel): Likewise.
3268 * fortran.c (ialias_redirect): Define.
3269 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3270 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3271 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3272 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3273 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3274 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3275 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3276 omp_get_wtime): Add ialias_redirect.
3278 2005-10-30 Jakub Jelinek <jakub@redhat.com>
3280 * fortran.c: Include stdlib.h.
3282 2005-10-29 Jakub Jelinek <jakub@redhat.com>
3284 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3285 * Makefile.in: Regenerated.
3287 2005-10-28 Jakub Jelinek <jakub@redhat.com>
3289 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3290 * libgomp_f.h.in (omp_check_defines): New function.
3291 * env.c: Include libgomp_f.h.
3292 (initialize_env): Call omp_check_defines.
3294 * testsuite/libgomp.dg/copyin-2.c: New test.
3295 * testsuite/libgomp.c++/copyin-2.C: New test.
3296 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3298 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3299 * testsuite/libgomp.fortran/sharing2.f90: New test.
3301 * testsuite/libgomp.dg/copyin-1.c: New test.
3302 * testsuite/libgomp.c++/copyin-1.C: New test.
3304 2005-10-26 Jakub Jelinek <jakub@redhat.com>
3306 * testsuite/libgomp.fortran/crayptr1.f90: New test.
3308 * testsuite/libgomp.fortran/workshare1.f90: New test.
3310 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3312 * libgomp.fortran/sharing1.f90: New test.
3314 2005-10-24 Jakub Jelinek <jakub@redhat.com>
3317 * testsuite/libgomp.c++/loop-7.C: New test.
3319 * testsuite/libgomp.dg/nestedfn-2.c: New test.
3321 * testsuite/libgomp.dg/nestedfn-1.c: New test.
3322 * testsuite/libgomp.fortran/reduction6.f90: New test.
3323 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3325 2005-10-23 Richard Henderson <rth@redhat.com>
3327 * testsuite/libgomp.c++/ctor-1.C: New.
3328 * testsuite/libgomp.c++/ctor-2.C: New.
3329 * testsuite/libgomp.c++/ctor-3.C: New.
3330 * testsuite/libgomp.c++/ctor-4.C: New.
3331 * testsuite/libgomp.c++/ctor-5.C: New.
3332 * testsuite/libgomp.c++/ctor-6.C: New.
3333 * testsuite/libgomp.c++/ctor-7.C: New.
3334 * testsuite/libgomp.c++/ctor-8.C: New.
3335 * testsuite/libgomp.c++/ctor-9.C: New.
3337 2005-10-21 Diego Novillo <dnovillo@redhat.com>
3340 * testsuite/libgomp.c++/pr24455-1.C: New test.
3341 * testsuite/libgomp.c++/pr24455.C: New test.
3342 * testsuite/libgomp.dg/pr24455-1.c: New test.
3343 * testsuite/libgomp.dg/pr24455.c: New test.
3345 2005-10-20 Richard Henderson <rth@redhat.com>
3347 * testsuite/libgomp.c++/loop-6.C: New.
3348 * testsuite/libgomp.dg/loop-3.c: New.
3350 2005-10-20 Jakub Jelinek <jakub@redhat.com>
3352 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3354 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3357 2005-10-19 Diego Novillo <dnovillo@redhat.com>
3359 * testsuite/libgomp.fortran/jacobi.f: New test.
3361 2005-10-19 Richard Henderson <rth@redhat.com>
3363 * configure.tgt (i?86-linux): Default to with_arch instead of
3364 CFLAGS. Add -mtune to match target_cpu.
3365 (x86_64-linux): Tune to i686.
3367 * fortran.c (omp_test_nest_lock_): Fix typo.
3369 2005-10-19 Jakub Jelinek <jakub@redhat.com>
3371 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3372 gomp_ordered_sync): Do nothing if team->nthreads == 1.
3373 * testsuite/libgomp.dg/ordered-3.c: New test.
3375 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3376 Remove volatile keyword.
3378 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3379 in COMMON block to avoid warnings on 64-bit targets.
3381 2005-10-18 Diego Novillo <dnovillo@redhat.com>
3383 * testsuite/libgomp.dg/shared-3.c: New test.
3385 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3387 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3388 * testsuite/libgomp.fortran/reduction5.f90: New test.
3390 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3392 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3394 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
3395 flush loop now that __sync_synchronize has proper memory barrier.
3396 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3397 Add -ffixed-form to dg-options.
3399 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3401 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3402 from subdirectories.
3403 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3404 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3405 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3406 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3407 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3408 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3409 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3410 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3411 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3412 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3413 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3414 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3415 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3416 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3417 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3418 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3419 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3420 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3421 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3422 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3423 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3424 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3425 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3426 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3427 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3429 2005-10-17 Jakub Jelinek <jakub@redhat.com>
3431 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3432 lang_library_path exists. Use find instead of glob to gather tests.
3433 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3435 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3437 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3438 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3439 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3440 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3441 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3442 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3443 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3444 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3445 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3446 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3447 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3448 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3449 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3451 2005-10-15 Jakub Jelinek <jakub@redhat.com>
3453 * testsuite/libgomp.dg/vla-1.c: New test.
3455 * testsuite/libgomp.fortran/reference2.f90: New test.
3457 * testsuite/libgomp.fortran/character2.f90: Remove explicit
3458 declaration of omp_get_thread_num.
3459 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
3462 * testsuite/libgomp.fortran/reduction1.f90: New test.
3463 * testsuite/libgomp.fortran/reduction2.f90: New test.
3464 * testsuite/libgomp.fortran/reduction3.f90: New test.
3465 * testsuite/libgomp.fortran/reduction4.f90: New test.
3467 2005-10-13 Richard Henderson <rth@redhat.com>
3469 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3470 * Makefile.in: Regenerate.
3471 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3472 * libgomp.h: Include bar.h.
3473 (struct gomp_barrier): Remove.
3474 (struct gomp_team): Add barrier. Replace master_barrier with
3475 master_release. Replace threads with ordered_release.
3476 (struct gomp_thread): Replace barrier with release.
3477 * ordered.c (gomp_ordered_first): Update for ordered_release change.
3478 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3479 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3480 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3481 (GOMP_single_copy_end): Likewise.
3482 * team.c (gomp_threads_dock): New.
3483 (gomp_barrier_init, gomp_barrier_destroy): Remove.
3484 (gomp_thread_start): Use gomp_barrier_wait.
3485 (new_team, free_team): Update for gomp_team changes.
3486 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3487 (gomp_team_end): Use gomp_barrier_wait.
3488 (initialize_team): Update for gomp_thread changes.
3489 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3490 (gomp_work_share_end_nowait): Use atomic ops when available.
3491 * config/linux/bar.c, config/linux/bar.h: New files.
3492 * config/posix/bar.c, config/posix/bar.h: New files.
3494 2005-10-13 Jakub Jelinek <jakub@redhat.com>
3496 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3497 * testsuite/libgomp.dg/single-2.c: New test.
3499 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3500 lang_link_flags): Unset, so that they aren't inherited from previously
3503 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3505 2005-10-12 Richard Henderson <rth@redhat.com>
3507 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3508 (libgomp_init): Use lang_test_file, lang_library_path, and
3509 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
3511 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3512 (lang_test_file, lang_link_flags): New.
3513 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3515 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3516 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3517 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3518 testsuite/libgomp.c++/parallel-1.C,
3519 testsuite/libgomp.c++/reduction-1.C,
3520 testsuite/libgomp.c++/reduction-2.C,
3521 testsuite/libgomp.c++/reduction-3.C,
3522 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3523 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3524 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3525 New files, largely cribbed from the C testsuite.
3527 2005-10-12 Jakub Jelinek <jakub@redhat.com>
3529 * testsuite/libgomp.fortran/character1.f90: New test.
3530 * testsuite/libgomp.fortran/character2.f90: New test.
3532 * testsuite/libgomp.dg/nested-1.c: New test.
3533 * testsuite/libgomp.dg/nested-2.c: New test.
3534 * testsuite/libgomp.fortran/do1.f90: New test.
3535 * testsuite/libgomp.fortran/do2.f90: New test.
3537 * testsuite/libgomp.fortran/reference1.f90: New test.
3539 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3541 * testsuite/libgomp.dg/reduction-1.c: New test.
3542 * testsuite/libgomp.dg/reduction-2.c: New test.
3543 * testsuite/libgomp.dg/reduction-3.c: New test.
3545 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3547 * testsuite/libgomp.dg/atomic-1.c: New test.
3548 * testsuite/libgomp.dg/atomic-2.c: New test.
3550 2005-10-09 Richard Henderson <rth@redhat.com>
3552 * critical.c (atomic_lock): New.
3553 (initialize_critical): Initialize it.
3554 (GOMP_atomic_start, GOMP_atomic_end): New.
3555 * libgomp.map: Export them.
3556 * libgomp_g.h: Declare them.
3558 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3560 2005-10-02 Richard Henderson <rth@redhat.com>
3562 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3563 to XCFLAGS instead of CFLAGS.
3565 2005-09-30 Richard Henderson <rth@redhat.com>
3567 * configure.ac: Determine whether -pthread or -lpthread is needed.
3568 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3569 * Makefine.in, configure: Rebuild.
3571 2005-09-28 Richard Henderson <rth@redhat.com>
3573 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3574 * testsuite/libgomp.dg/omp-single-3.c: New test.
3576 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3578 * testsuite/libgomp.dg/omp-single-2.c: New test.
3579 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3581 2005-09-27 Richard Henderson <rth@redhat.com>
3583 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3584 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3586 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3588 * testsuite/libgomp.dg/omp-loop03.c: New test.
3590 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3592 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3594 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3596 * testsuite/libgomp.dg/omp-single-1.c: New test.
3597 * testsuite/libgomp.dg/shared-1.c: Return 0.
3598 Add prototype for abort.
3599 * testsuite/libgomp.dg/shared-2.c: Likewise.
3601 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3603 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3606 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3608 * testsuite/libgomp.dg/shared-1.c: New test.
3609 * testsuite/libgomp.dg/shared-2.c: New test.
3611 2005-09-24 Richard Henderson <rth@redhat.com>
3613 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3615 2005-09-24 Richard Henderson <rth@redhat.com>
3617 * iter.c (gomp_iter_static_next): Round up when computing number
3618 of iterations. Don't bother distributing a remainder equally.
3620 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3621 Don't call srand. Zero b before testing.
3624 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3626 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3627 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3629 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3631 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3632 without !$omp end do, followed immediately by subroutine end.
3634 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3636 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3638 2005-09-22 Richard Henderson <rth@redhat.com>
3640 * critical.c (GOMP_critical_name_start): Change argument to void**.
3641 Reuse the pointer space if the mutex fits.
3642 (GOMP_critical_name_end): Likewise.
3643 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3644 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3645 (GOMP_critical_name_end): Likewise.
3646 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3647 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3649 2005-09-20 Richard Henderson <rth@redhat.com>
3651 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3652 (create_lock_lock): New.
3653 (initialize_critical): Initialize it.
3654 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3655 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3657 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3659 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3661 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3663 * testsuite/libgomp.dg/omp-loop01.c: New test.
3664 * testsuite/libgomp.dg/omp-loop02.c: New test.
3666 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3668 * configure.ac (AC_PROG_FC): Add.
3669 (USE_FORTRAN): New automake conditional.
3670 * configure: Rebuilt.
3671 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3672 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3673 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3674 Add rules to build them.
3675 * Makefile.in: Rebuilt.
3676 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3678 * libgomp.map: Add Fortran wrappers.
3679 * libgomp_f.h.in: New file.
3680 * omp_lib.h.in: New file.
3681 * omp_lib.f90.in: New file.
3682 * fortran.c: New file.
3683 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3684 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3685 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3686 libgfortran has been built.
3687 * testsuite/libgomp.fortran/fortran.exp: New file.
3688 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3689 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3690 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3691 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3692 * testsuite/libgomp.fortran/omp_hello.f: New test.
3693 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3694 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3695 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3696 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3697 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3698 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3699 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3700 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3702 2005-08-30 Richard Henderson <rth@redhat.com>
3704 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3705 function for when aliases are not usable.
3706 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3707 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3708 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3709 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3710 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3711 GOMP_loop_ordered_guided_next): Likewise.
3712 * ordered.c (GOMP_ordered_start): Likewise.
3714 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3716 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3717 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3718 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3719 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3720 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3721 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3722 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3723 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3724 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3726 2005-07-07 Eric Christopher <echristo@redhat.com>
3727 Diego Novillo <dnovillo@redhat.com>
3729 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3730 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3732 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3733 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3734 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3735 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3736 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3737 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3738 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3740 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3742 * TOPLEVEL.patch: Remove.
3744 2005-05-16 Richard Henderson <rth@redhat.com>
3746 * configure.ac: Test for clock_gettime.
3747 * config.h.in, configure: Rebuild.
3748 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3749 (omp_get_wtime): Use clock_gettime if available.
3750 (omp_get_wtick): Use clock_getres if available.
3752 2005-05-11 Richard Henderson <rth@redhat.com>
3754 * config/linux/ia64/futex.h: New file.
3755 * configure.tgt: Use it.
3757 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3759 2005-05-07 Richard Henderson <rth@redhat.com>
3761 * config/linux/powerpc/futex.h: New file.
3762 * configure.tgt: Use it.
3764 * config/linux/i486/futex.h: Merge ...
3765 * config/linux/x86_64/futex.h: ... into ...
3766 * config/linux/x86/futex.h: ... here.
3767 * configure.tgt: Update to match.
3769 2005-05-06 Richard Henderson <rth@redhat.com>
3771 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3772 * config/linux/i486/futex.h: Likewise.
3773 * config/linux/x86_64/futex.h: Likewise.
3775 * config/linux/lock.c: New file.
3776 * config/linux/omp-lock.h: New file.
3778 * critical.c, env.h: Don't include omp.h
3779 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3780 * config/posix/time.c: Likewise.
3781 * config/posix/omp-lock.h: New file.
3782 * libgomp.h: Include omp-lock.h and omp.h.
3783 * Makefile.am (nodist_include_HEADERS): New.
3785 * configure.ac (PERL): New.
3786 * mkomp_h.pl: New file.
3787 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3789 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3791 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3792 build directory. Re-add -march=i486 hack.
3794 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3795 (libgomp_link_flags): Remove.
3796 (libgomp_initialized): Remove.
3797 (libgomp_init): Don't protect from reinitialization. Copy code
3798 from libstdc++ for getting the multilib set correctly.
3800 2005-05-05 Richard Henderson <rth@redhat.com>
3802 * config/linux/alpha/futex.h: New file.
3803 * configure.tgt (alpha*-*-linux*): Use it.
3805 * config/posix/mutex.c: New file.
3806 * config/posix/sem.c: Use libgomp.h.
3808 * configure.tgt (x86_64-linux): Also test CC for -m32.
3809 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3811 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3814 * Makefile.am (SUBDIRS): New.
3815 (libgomp_la_LDFLAGS): Add -lpthread.
3816 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3817 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3819 * libgomp_g.h: New file.
3820 * libgomp.h: Split out all public declarations to libgomp_g.h.
3821 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3822 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3823 * config/linux/sem.h: Likewise.
3824 * config/posix/sem.h: Likewise.
3826 * Makefile.am (AM_LDFLAGS): New.
3827 (libgomp_version_script): Split out from ...
3828 (libgomp_la_LDFLAGS): ... here.
3829 (libgomp_version_info): New.
3830 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3831 (LIBGOMP_ENABLE): New.
3832 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3833 (LIBGOMP_ENABLE_SYMVERS): New.
3834 * configure.ac (AC_INIT): Version 1.0.
3835 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3836 (enable-linux-futex): Likewise. Rename from enable-futex.
3837 (libtool_VERSION): New.
3838 (LIBGOMP_ENABLE_SYMVERS): Use it.
3839 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3840 * Makefile.in, aclocal.m4, configure: Rebuild.
3842 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3843 (gomp_mutex_unlock_slow): Fix typo.
3844 * config/linux/sem.c: Similarly.
3845 (gomp_sem_post_slow): Fix typo.
3846 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3847 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3848 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3850 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3851 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3852 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3853 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3854 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3855 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3856 LDFLAGS. Pull enable_futex check to top-level.
3857 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3858 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3860 First attempt at real configury.
3861 * Makefile, config.h: Remove file.
3862 * Makefile.am, Makefile.in: New file.
3863 * acinclude.m4 aclocal.m4: New file.
3864 * configure.ac, configure.tgt, configure: New file.
3866 * config/posix/lock.c: Rename from sys-lock.c.
3867 * config/posix/mutex.h: Rename from sys-mutex.h.
3868 * config/posix/sem.c: Rename from sys-sem.c.
3869 * config/posix/sem.h: Rename from sys-sem.h.
3870 * config/posix/proc.c: Rename from sys-proc.c.
3871 * config/posix/time.c: Rename from sys-proc.c.
3873 * config/linux/mutex.c: New file.
3874 * config/linux/mutex.h: New file.
3875 * config/linux/sem.c: New file.
3876 * config/linux/sem.h: New file.
3877 * config/linux/i486/futex.h: New file.
3878 * config/linux/x86_64/futex.h: New file.
3880 2005-05-04 Richard Henderson <rth@redhat.com>
3882 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3883 * libgomp.h: Declare them.
3884 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3885 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3887 2005-05-04 Richard Henderson <rth@redhat.com>
3889 * libgomp-1 code drop
3891 2005-05-04 Richard Henderson <rth@redhat.com>
3893 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3894 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3895 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3896 (gomp_iter_static_next): Update.
3897 (gomp_ordered_static_next): Update.
3898 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3899 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3900 totally empty range.
3901 (gomp_loop_ordered_static_next): Refine test for calling
3902 gomp_ordered_static_next.
3903 * testsuite/ordered-1.c: Add case for more threads than iterations.
3905 * iter.c (gomp_iter_runtime_next_locked): Remove.
3906 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3907 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3908 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3909 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3910 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3911 gomp_loop_ordered_guided_next): Downcase name, make static, add
3912 an external alias with the old name.
3913 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3914 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3915 switch and call one of the above static functions.
3916 * libgomp.h: Update.
3918 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3919 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3920 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3921 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3922 GOMP_loop_ordered_guided_start): Update to match.
3923 * sections.c (GOMP_sections_start): Likewise.
3924 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3926 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3927 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3928 Use bounds check instead of modulus.
3929 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3930 (gomp_ordered_last): Don't sync with ordered_owner here.
3931 (gomp_ordered_next): Likewise.
3932 (gomp_ordered_static_loop_next): Likewise.
3933 * loop.c, libgomp.h: Update to match.
3935 * libgomp.h (GOMP_barrier): Declare.
3937 * testsuite/barrier-1.c: New file.
3938 * testsuite/critical-1.c: New file.
3939 * testsuite/ordered-2.c: New file.
3940 * testsuite/ordered-1.c: New file.
3941 * testsuite/sections-1.c: New file.
3942 * testsuite/single-1.c: New file.
3943 * testsuite/Makefile (TESTS): Add them.
3945 2005-05-04 Richard Henderson <rth@redhat.com>
3947 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3948 * loop.c (GOMP_loop_static_start): If not the startup thread,
3949 acquire the mutex to wait for initialization complete.
3950 (GOMP_loop_ordered_static_start): Likewise.
3951 (GOMP_loop_ordered_runtime_start): Likewise.
3952 (GOMP_loop_ordered_static_first): Remove.
3953 (GOMP_loop_ordered_dynamic_first): Remove.
3954 (GOMP_loop_ordered_guided_first): Remove.
3955 (GOMP_loop_ordered_runtime_first): Remove.
3956 * ordered.c (gomp_ordered_loop_first): Post to own release when
3957 we're the first thread.
3958 (gomp_ordered_loop_last): Wait on release if not owner.
3959 (gomp_ordered_loop_next): Likewise.
3960 (gomp_ordered_static_loop_init): New.
3961 (gomp_ordered_static_loop_next): Use ordered_owner.
3962 (GOMP_ordered_start): Likewise.
3963 * work.c (gomp_new_work_share): Initialize ordered_owner.
3965 2005-05-03 Richard Henderson <rth@redhat.com>
3967 * Makefile (OPT): New.
3970 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3971 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3972 * libgomp.h, libgomp.map, NOTES: Update to match.
3974 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3975 Add initialized and thr members.
3976 (gomp_thread_start): Pause when initially spawned to wait for
3977 the whole team to be created.
3978 (gomp_team_start): Release team members at the end.
3980 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3981 (f_foo_1): Use GOMP_loop_end.
3982 (f_foo_2): Use GOMP_loop_end_nowait.
3984 * testsuite/loop-2.c: New file.
3985 * testsuite/Makefile (TESTS): Add it.
3987 2005-05-03 Richard Henderson <rth@redhat.com>
3989 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3990 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3991 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3994 * testsuite/Makefile: New file.
3995 * testsuite/loop-1.c: New file.
3997 2005-05-03 Richard Henderson <rth@redhat.com>
3999 Initial implementation and checkin.