1 2014-03-25 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c++/udr-11.C: New test.
5 * testsuite/libgomp.c++/udr-12.C: New test.
6 * testsuite/libgomp.c++/udr-13.C: New test.
7 * testsuite/libgomp.c++/udr-14.C: New test.
8 * testsuite/libgomp.c++/udr-15.C: New test.
9 * testsuite/libgomp.c++/udr-16.C: New test.
10 * testsuite/libgomp.c++/udr-17.C: New test.
11 * testsuite/libgomp.c++/udr-18.C: New test.
12 * testsuite/libgomp.c++/udr-19.C: New test.
14 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16 Update copyright years
18 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
20 * hashtab.h: Use the standard form for the copyright notice.
22 2014-01-02 Tobias Burnus <burnus@net-b.de>
24 * libgomp.texi: Bump @copying's copyright year.
26 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
28 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
29 alloca () with __builtin_alloca ().
30 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
31 * testsuite/libgomp.c/lock-3.c: Likewise.
32 * testsuite/libgomp.c/pr48591.c: Likewise.
34 2013-12-17 Jakub Jelinek <jakub@redhat.com>
37 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
40 2013-12-16 Jakub Jelinek <jakub@redhat.com>
43 * testsuite/libgomp.c/pr58756.c: New test.
45 2013-12-12 Jakub Jelinek <jakub@redhat.com>
48 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
51 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
53 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
55 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
56 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
57 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
58 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
61 * libgomp_g.h: Include <stddef.h> for size_t.
63 * libgomp.spec.in: Update comment about libgomp's dependencies.
64 * configure.ac: Likewise.
65 * configure: Regenerate.
67 2013-10-16 Tobias Burnus <burnus@net-b.de>
69 * libgomp.texi: (Runtime Library Routines): Update references for
70 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
71 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
72 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
73 (Environment Variables): Update references for OpenMP 4.0. Add
74 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
75 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
78 2013-10-14 Jakub Jelinek <jakub@redhat.com>
80 * env.c (parse_bind_var): Initialize value to avoid
81 (false positive) warning.
83 2013-10-12 Jakub Jelinek <jakub@redhat.com>
86 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
88 (gomp_init_num_threads): Move i variable declaration into
89 #ifdef CPU_ALLOC_SIZE block.
90 * config/linux/affinity.c (gomp_affinity_init_level): Test
91 gomp_places_list_len == 0 rather than gomp_places_list == 0
92 when checking for topology reading error.
93 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
94 * env.c (parse_affinity): Add ignore argument, if true, don't populate
95 gomp_places_list, only parse env var and always return false.
96 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
97 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
98 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
99 and either of these variables were parsed correctly into a places
102 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
103 Jakub Jelinek <jakub@redhat.com>
105 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
107 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
108 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
109 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
110 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
111 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
112 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
113 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
114 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
116 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
118 * Makefile.am (omp_lib.mod): Streamline rule.
119 * Makefile.in: Regenerate.
121 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
124 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
125 * testsuite/libgomp.fortran/lib1.f90: Likewise.
126 * testsuite/libgomp.fortran/lib2.f: Likewise.
127 * testsuite/libgomp.fortran/lib3.f: Likewise.
129 * configure.ac: Typo fix.
130 * configure: Regenerate.
132 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
133 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
135 * omp.h.in: Don't touch the user's namespace.
137 2013-10-11 Jakub Jelinek <jakub@redhat.com>
138 Tobias Burnus <burnus@net-b.de>
139 Richard Henderson <rth@redhat.com>
141 * target.c: New file.
142 * Makefile.am (libgomp_la_SOURCES): Add target.c.
143 * Makefile.in: Regenerated.
144 * libgomp_g.h (GOMP_task): Add depend argument.
145 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
146 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
147 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
148 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
149 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
150 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
151 GOMP_taskgroup_start, GOMP_taskgroup_end,
152 GOMP_parallel_sections): New prototypes.
153 * fortran.c (omp_is_initial_device): Add ialias_redirect.
154 (omp_is_initial_device_): New function.
155 (ULP, STR1, STR2, ialias_redirect): Removed.
156 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
157 omp_set_default_device_8_, omp_get_default_device_,
158 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
160 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
161 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
162 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
164 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
165 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
166 omp_set_default_device, omp_set_default_device_,
167 omp_set_default_device_8_, omp_get_default_device,
168 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
169 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
170 omp_get_team_num_): Export @@OMP_4.0.
171 * team.c (struct gomp_thread_start_data): Add place field.
172 (gomp_thread_start): Clear thr->thread_pool and
173 thr->task before returning. Use gomp_team_barrier_wait_final
174 instead of gomp_team_barrier_wait. Initialize thr->place.
175 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
176 team_cancelled and task_queued_count fields.
177 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
178 before calling pthread_exit.
179 (gomp_free_thread): No longer static. Use
180 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
181 (gomp_team_start): Add flags argument. Set
182 thr->thread_pool->threads_busy to nthreads immediately after creating
183 new pool. Use gomp_managed_threads_lock instead of
184 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
185 (gomp_team_end): Use gomp_managed_threads_lock instead of
186 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
187 of gomp_team_barrier_wait. If team->team_cancelled, call
188 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
189 rather than thr->ts.work_share.
190 (initialize_team): Don't call gomp_sem_init here.
191 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
193 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
194 * env.c (gomp_global_icv): Add default_device_var, target_data and
195 bind_var initializers.
196 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
197 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
198 gomp_places_list_len): New variables.
199 (parse_bind_var, parse_one_place, parse_places_var): New functions.
200 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
202 (gomp_cancel_var): New global variable.
203 (parse_int): New function.
204 (handle_omp_display_env): New function.
205 (initialize_env): Use it. Initialize default_device_var.
206 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
207 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
208 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
209 been successfully parsed (and call gomp_init_affinity in that case).
210 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
211 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
212 omp_get_team_num, omp_is_initial_device): New functions.
213 * libgomp.h: Include stdlib.h.
214 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
216 (struct target_mem_desc): Forward declare.
217 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
218 and thread_limit_var fields.
219 (gomp_get_num_devices): New prototype.
220 (gomp_cancel_var): New extern decl.
221 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
222 team_cancelled and task_queued_count fields. Add comments about
223 task_{,queued_,running_}count.
224 (gomp_cancel_kind): New enum.
225 (gomp_work_share_end_cancel): New prototype.
226 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
227 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
229 (struct gomp_taskgroup): New type.
230 (struct gomp_task_depend_entry,
231 struct gomp_dependers_vec): New types.
232 (gomp_finish_task): Free depend_hash if non-NULL.
233 (struct gomp_team_state): Add place_partition_off
234 and place_partition_len fields.
235 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
236 gomp_places_list_len): New extern decls.
237 (struct gomp_thread): Add place field.
238 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
239 (gomp_init_thread_affinity): Add place argument.
240 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
241 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
242 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
243 gomp_affinity_init_level, gomp_affinity_print_place): New
245 (gomp_team_start): Add flags argument.
246 (gomp_thread_limit_var, gomp_remaining_threads_count,
247 gomp_remaining_threads_lock): Remove.
248 (gomp_managed_threads_lock): New variable.
249 (struct gomp_thread_pool): Add threads_busy field.
250 (gomp_free_thread): New prototype.
251 * task.c: Include hashtab.h.
252 (hash_entry_type): New typedef.
253 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
254 (gomp_init_task): Clear dependers, depend_hash, depend_count,
255 copy_ctors_done and taskgroup fields.
256 (GOMP_task): Add depend argument, handle depend clauses. If
257 gomp_team_barrier_cancelled or if it's taskgroup has been
258 cancelled, don't queue or start new tasks. Set copy_ctors_done
259 field if needed. Initialize taskgroup field. If copy_ctors_done
260 and already cancelled, don't discard the task. If taskgroup is
261 non-NULL, enqueue the task into taskgroup queue. Increment
262 num_children field in taskgroup. Increment task_queued_count.
263 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
264 gomp_task_run_post_remove_taskgroup): New inline functions.
265 (gomp_task_run_post_handle_depend_hash,
266 gomp_task_run_post_handle_dependers,
267 gomp_task_run_post_handle_depend): New functions.
268 (GOMP_taskwait): Use them. If more than one new tasks
269 have been queued, wake other threads if needed.
270 (gomp_barrier_handle_tasks): Likewise. If
271 gomp_team_barrier_cancelled, don't start any new tasks, just free
273 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
275 (omp_proc_bind_kind, omp_proc_bind_false,
276 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
277 omp_proc_bind_spread): New params.
278 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
279 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
280 omp_get_team_num, omp_is_initial_device): New interfaces.
281 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
282 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
283 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
284 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
285 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
286 useless use omp_lib_kinds.
287 * omp.h.in (omp_proc_bind_t): New typedef.
288 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
289 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
290 omp_get_team_num, omp_is_initial_device): New prototypes.
291 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
292 through to gomp_team_start.
293 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
294 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
295 Adjust gomp_parallel_loop_start callers.
296 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
297 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
298 GOMP_loop_end_cancel): New functions.
299 (GOMP_parallel_end): Add ialias_redirect.
300 * hashtab.h: New file.
301 * libgomp.texi (Environment Variables): Minor cleanup,
302 update section refs to OpenMP 4.0rc2.
303 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
304 environment variables.
305 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
306 team->work_shares_to_free to thr->ts.work_share before calling
308 (gomp_work_share_end_cancel): New function.
309 * config/linux/proc.c: Include errno.h.
310 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
311 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
312 sizeof (cpu_set_t) to determine number of iterations. Fix up check
313 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
314 gomp_cpuset_size is sizeof (cpu_set_t).
315 (gomp_init_num_threads): Initialize gomp_cpuset_size,
316 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
317 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
318 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
319 contain any logical CPUs.
320 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
321 is NULL. Use gomp_cpusetp instead of &cpuset and pass
322 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
323 pthread_getaffinity_np. Check gomp_places_list instead of
324 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
325 * config/linux/bar.c (gomp_barrier_wait_end,
326 gomp_barrier_wait_last): Use BAR_* defines.
327 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
328 from state where needed. Set work_share_cancelled to 0 on last
330 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
331 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
333 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
334 Add cpusetsize argument.
335 (gomp_cpuset_size, gomp_cpusetp): Declare.
336 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
337 (affinity_counter): Remove.
338 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
339 if CPU_ALLOC_SIZE isn't defined.
340 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
341 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
342 bind current thread to the first place.
343 (gomp_init_thread_affinity): Rewritten. Add place argument, just
344 pthread_setaffinity_np to gomp_places_list[place].
345 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
346 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
347 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
348 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
349 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
350 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
351 (gomp_barrier_t): Add awaited_final field.
352 (gomp_barrier_init): Initialize awaited_final field.
353 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
354 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
356 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
358 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
359 gomp_team_barrier_cancelled): New inline functions.
360 (gomp_barrier_last_thread,
361 gomp_team_barrier_set_task_pending,
362 gomp_team_barrier_clear_task_pending,
363 gomp_team_barrier_set_waiting_for_tasks,
364 gomp_team_barrier_waiting_for_tasks,
365 gomp_team_barrier_done): Use BAR_* defines.
366 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
367 (gomp_barrier_wait_end): Use BAR_* defines.
368 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
369 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
371 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
372 gomp_team_barrier_cancel): New functions.
373 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
375 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
376 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
377 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
378 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
379 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
380 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
381 (gomp_barrier_t): Add cancellable field.
382 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
383 gomp_team_barrier_cancel): New prototypes.
384 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
385 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
386 gomp_team_barrier_cancelled): New inline functions.
387 (gomp_barrier_wait_start, gomp_barrier_last_thread,
388 gomp_team_barrier_set_task_pending,
389 gomp_team_barrier_clear_task_pending,
390 gomp_team_barrier_set_waiting_for_tasks,
391 gomp_team_barrier_waiting_for_tasks,
392 gomp_team_barrier_done): Use BAR_* defines.
393 * barrier.c (GOMP_barrier_cancel): New function.
394 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
395 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
396 omp_proc_bind_spread): New params.
397 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
398 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
399 omp_get_team_num, omp_is_initial_device): New externals.
400 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
402 (gomp_resolve_num_threads): Adjust for thread_limit now being in
403 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
404 infinity. If not nested, just return minimum of max_num_threads
405 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
406 to the returned value. Otherwise, don't update atomically
407 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
408 (GOMP_parallel_end): Adjust for thread_limit now being in
409 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
410 infinity. Adjust threads_busy in the pool rather than
411 gomp_remaining_threads_count. Remember team->nthreads and call
412 gomp_team_end before adjusting threads_busy, if not nested
413 afterwards, just set it to 1 non-atomically. Add ialias.
414 (GOMP_parallel_start): Adjust gomp_team_start caller.
415 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
416 * testsuite/libgomp.c/affinity-1.c: New test.
417 * testsuite/libgomp.c/atomic-15.c: New test.
418 * testsuite/libgomp.c/atomic-16.c: New test.
419 * testsuite/libgomp.c/atomic-17.c: New test.
420 * testsuite/libgomp.c/cancel-for-1.c: New test.
421 * testsuite/libgomp.c/cancel-for-2.c: New test.
422 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
423 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
424 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
425 * testsuite/libgomp.c/cancel-sections-1.c: New test.
426 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
427 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
428 * testsuite/libgomp.c/depend-1.c: New test.
429 * testsuite/libgomp.c/depend-2.c: New test.
430 * testsuite/libgomp.c/depend-3.c: New test.
431 * testsuite/libgomp.c/depend-4.c: New test.
432 * testsuite/libgomp.c/for-1.c: New test.
433 * testsuite/libgomp.c/for-1.h: New file.
434 * testsuite/libgomp.c/for-2.c: New test.
435 * testsuite/libgomp.c/for-2.h: New file.
436 * testsuite/libgomp.c/for-3.c: New test.
437 * testsuite/libgomp.c/pr58392.c: New test.
438 * testsuite/libgomp.c/simd-1.c: New test.
439 * testsuite/libgomp.c/simd-2.c: New test.
440 * testsuite/libgomp.c/simd-3.c: New test.
441 * testsuite/libgomp.c/simd-4.c: New test.
442 * testsuite/libgomp.c/simd-5.c: New test.
443 * testsuite/libgomp.c/simd-6.c: New test.
444 * testsuite/libgomp.c/target-1.c: New test.
445 * testsuite/libgomp.c/target-2.c: New test.
446 * testsuite/libgomp.c/target-3.c: New test.
447 * testsuite/libgomp.c/target-4.c: New test.
448 * testsuite/libgomp.c/target-5.c: New test.
449 * testsuite/libgomp.c/target-6.c: New test.
450 * testsuite/libgomp.c/target-7.c: New test.
451 * testsuite/libgomp.c/taskgroup-1.c: New test.
452 * testsuite/libgomp.c/thread-limit-1.c: New test.
453 * testsuite/libgomp.c/thread-limit-2.c: New test.
454 * testsuite/libgomp.c/thread-limit-3.c: New test.
455 * testsuite/libgomp.c/udr-1.c: New test.
456 * testsuite/libgomp.c/udr-2.c: New test.
457 * testsuite/libgomp.c/udr-3.c: New test.
458 * testsuite/libgomp.c++/affinity-1.C: New test.
459 * testsuite/libgomp.c++/atomic-10.C: New test.
460 * testsuite/libgomp.c++/atomic-11.C: New test.
461 * testsuite/libgomp.c++/atomic-12.C: New test.
462 * testsuite/libgomp.c++/atomic-13.C: New test.
463 * testsuite/libgomp.c++/atomic-14.C: New test.
464 * testsuite/libgomp.c++/atomic-15.C: New test.
465 * testsuite/libgomp.c++/cancel-for-1.C: New test.
466 * testsuite/libgomp.c++/cancel-for-2.C: New test.
467 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
468 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
469 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
470 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
471 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
472 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
473 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
474 * testsuite/libgomp.c++/cancel-test.h: New file.
475 * testsuite/libgomp.c++/for-9.C: New test.
476 * testsuite/libgomp.c++/for-10.C: New test.
477 * testsuite/libgomp.c++/for-11.C: New test.
478 * testsuite/libgomp.c++/simd-1.C: New test.
479 * testsuite/libgomp.c++/simd-2.C: New test.
480 * testsuite/libgomp.c++/simd-3.C: New test.
481 * testsuite/libgomp.c++/simd-4.C: New test.
482 * testsuite/libgomp.c++/simd-5.C: New test.
483 * testsuite/libgomp.c++/simd-6.C: New test.
484 * testsuite/libgomp.c++/simd-7.C: New test.
485 * testsuite/libgomp.c++/simd-8.C: New test.
486 * testsuite/libgomp.c++/target-1.C: New test.
487 * testsuite/libgomp.c++/target-2.C: New test.
488 * testsuite/libgomp.c++/target-2-aux.cc: New file.
489 * testsuite/libgomp.c++/target-3.C: New test.
490 * testsuite/libgomp.c++/taskgroup-1.C: New test.
491 * testsuite/libgomp.c++/udr-1.C: New test.
492 * testsuite/libgomp.c++/udr-2.C: New test.
493 * testsuite/libgomp.c++/udr-3.C: New test.
494 * testsuite/libgomp.c++/udr-4.C: New test.
495 * testsuite/libgomp.c++/udr-5.C: New test.
496 * testsuite/libgomp.c++/udr-6.C: New test.
497 * testsuite/libgomp.c++/udr-7.C: New test.
498 * testsuite/libgomp.c++/udr-8.C: New test.
499 * testsuite/libgomp.c++/udr-9.C: New test.
501 2013-09-20 Jakub Jelinek <jakub@redhat.com>
504 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
507 2013-09-20 Alan Modra <amodra@gmail.com>
509 * configure: Regenerate.
511 2013-09-19 Jakub Jelinek <jakub@redhat.com>
513 * testsuite/libgomp.c/sections-2.c: New test.
515 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
517 * testsuite/libgomp.fortran/strassen.f90:
518 Add dg-skip-if aarch64_tiny.
520 2013-06-20 Iain Sandoe <iain@codesourcery.com>
521 Cesar Philippidis <cesar@codesourcery.com>
523 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
524 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
525 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
526 * testsuite/libgomp.fortran/fortran.exp: Likewise.
527 * testsuite/libgomp.graphite/graphite.exp: Likewise.
528 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
529 Use dg-runtest rather than gfortran-dg-runtest.
531 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
533 * testsuite/libgomp.c/icv-2.c: Extend current handling of
534 Linux-based x86 systems to cover all GNU systems.
535 * testsuite/libgomp.c/lock-3.c: Likewise.
536 * testsuite/libgomp.c/pr48591.c: Likewise.
538 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
540 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
541 GNU/Hurd, as done for Linux-based systems.
543 * config/posix/ptrlock.h: Fix comment.
545 2013-05-27 Tobias Burnus <burnus@net-b.de>
548 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
549 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
550 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
551 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
552 omp_destroy_nest_lock): Correct arguments to match the one in
554 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
555 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
556 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
557 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
559 2013-05-16 Jakub Jelinek <jakub@redhat.com>
561 * testsuite/libgomp.c/loop-13.c: New test.
562 * testsuite/libgomp.c/loop-14.c: New test.
563 * testsuite/libgomp.c/loop-15.c: New test.
564 * testsuite/libgomp.c++/loop-13.C: New test.
565 * testsuite/libgomp.c++/loop-14.C: New test.
566 * testsuite/libgomp.c++/loop-15.C: New test.
568 2013-02-06 Jakub Jelinek <jakub@redhat.com>
571 * testsuite/libgomp.c++/pr56217.C: New test.
573 2013-02-01 Alan Modra <amodra@gmail.com>
575 * task.c (GOMP_task, GOMP_taskwait): Comment.
577 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
578 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
581 * config/linux/wait.h (do_spin): Use atomic load for addr.
582 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
583 for intptr and ptrlock.
584 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
587 2013-01-22 Alan Modra <amodra@gmail.com>
591 * task.c (GOMP_task): Revert 2011-12-09 change.
592 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
593 barrier to read task->children..
594 (gomp_barrier_handle_tasks): ..and matching atomic store with
595 release barrier here when setting parent->children to NULL.
597 2013-01-16 Jakub Jelinek <jakub@redhat.com>
598 Tobias Burnus <burnus@net-b.de>
601 * testsuite/libgomp.fortran/fortran.exp: Use
602 -fintrinsic-modules-path= instead of
603 -fintrinsic-modules-path.
605 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
607 Update copyright years.
609 2012-12-19 Tobias Burnus <burnus@net-b.de>
611 * testsuite/libgomp.fortran/fortran.exp: Set
612 -fintrinsic-modules-path.
614 2012-12-19 Tobias Burnus <burnus@net-b.de>
616 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
617 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
619 2012-11-21 Jakub Jelinek <jakub@redhat.com>
622 * team.c (gomp_free_thread): Decrease gomp_managed_threads
623 if pool had any threads_used.
625 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
627 * testsuite/libgomp.c++/pr24455.C: Use
628 -Wl,-undefined,dynamic_lookup on darwin.
630 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
632 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
634 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
636 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
638 2012-10-23 Ian Bolton <ian.bolton@arm.com>
639 Jim MacArthur <jim.macarthur@arm.com>
640 Marcus Shawcroft <marcus.shawcroft@arm.com>
641 Nigel Stephens <nigel.stephens@arm.com>
642 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
643 Richard Earnshaw <rearnsha@arm.com>
644 Sofiane Naci <sofiane.naci@arm.com>
645 Stephen Thomas <stephen.thomas@arm.com>
646 Tejas Belagod <tejas.belagod@arm.com>
647 Yufeng Zhang <yufeng.zhang@arm.com>
649 * configure.tgt: Add AArch64.
651 2012-10-04 Jason Merrill <jason@redhat.com>
653 * testsuite/libgomp.c++/tls-init1.C: New.
655 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
657 * configure: Regenerated.
659 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
661 * config/linux/mips/futex.h (sys_futex0): Change to static
662 function with noinline, nomips16 attributes under MIPS16. Adjust
663 asm statement to place 'li v0,SYS_futex' immediately before
666 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
668 * libgomp.texi (Library Index): Renamed from "Index" to prevent
669 conflict with index.html on case-insensitive file systems.
671 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
673 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
674 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
676 2012-07-02 Richard Guenther <rguenther@suse.de>
677 Michael Matz <matz@suse.de>
678 Tobias Grosser <tobias@grosser.es>
679 Sebastian Pop <sebpop@gmail.com>
681 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
682 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
683 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
684 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
686 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
688 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
690 2012-06-22 Richard Guenther <rguenther@suse.de>
692 Merge from graphite branch
693 2012-01-13 Tobias Grosser <tobias@grosser.es>
695 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
696 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
698 2012-06-07 Jakub Jelinek <jakub@redhat.com>
701 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
702 use GOMP_barrier () call instead.
703 * testsuite/libgomp.c/pr26943-3.c: Likewise.
704 * testsuite/libgomp.c/pr26943-4.c: Likewise.
705 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
706 call GOMP_barrier instead.
707 * testsuite/libgomp.fortran/vla5.f90: Likewise.
709 2012-06-06 Jakub Jelinek <jakub@redhat.com>
712 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
713 argument to memset call.
715 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
717 * configure: Regenerated.
719 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
721 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
723 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
726 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
728 2012-03-22 Jakub Jelinek <jakub@redhat.com>
731 * testsuite/libgomp.c/pr52547.c: New test.
733 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
735 * testsuite/lib/libgomp.exp: load fortran-modules.exp
737 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
739 * configure.tgt (mips-sgi-irix6*): Remove.
741 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
743 * configure.tgt (alpha*-dec-osf*): Remove.
745 * config/osf/sem.h: Remove.
746 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
748 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
750 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
752 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
755 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
756 Remove ENABLE_SYMVERS_SOL2.
757 * configure: Regenerate.
758 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
759 (PREPROCESS): New variable.
760 (libgomp.ver): New target.
761 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
762 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
763 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
765 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
766 * Makefile.in: Regenerate.
768 2012-02-14 Walter Lee <walt@tilera.com>
770 * configure.tgt: Handle tilegx and tilepro.
771 * config/linux/tile/futex.h: New file.
773 2012-02-08 Richard Guenther <rguenther@suse.de>
775 PR tree-optimization/46886
776 * testsuite/libgomp.c/pr46886.c: New testcase.
778 2012-01-25 Matthias Klose <doko@ubuntu.com>
780 * config/linux/arm: Remove empty directory.
781 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
783 2011-12-09 Alan Modra <amodra@gmail.com>
786 * task.c (GOMP_taskwait): Don't access task->children outside of
787 task_lock mutex region.
788 (GOMP_task): Likewise.
790 2011-12-06 Jakub Jelinek <jakub@redhat.com>
793 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
795 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
796 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
797 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
798 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
799 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
801 2011-12-02 Alan Modra <amodra@gmail.com>
803 * config/linux/affinity.c: Use atomic rather than sync builtin.
804 * config/linux/lock.c: Likewise.
805 * config/linux/ptrlock.h: Likewise.
806 * config/linux/ptrlock.c: Likewise.
807 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
808 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
809 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
810 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
811 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
812 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
813 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
814 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
815 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
816 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
818 2011-11-30 Alan Modra <amodra@gmail.com>
821 * config/linux/bar.h: Use atomic rather than sync builtins.
822 * config/linux/bar.c: Likewise. Add missing acquire
823 synchronisation on generation field.
824 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
827 2011-11-30 Alan Modra <amodra@gmail.com>
829 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
830 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
831 * config/linux/mutex.h: Use atomic rather than sync builtins.
832 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
833 * config/linux/omp-lock.h: Comment fix.
834 * config/linux/arm/mutex.h: Delete.
835 * config/linux/powerpc/mutex.h: Delete.
836 * config/linux/ia64/mutex.h: Delete.
837 * config/linux/mips/mutex.h: Delete.
839 2011-11-30 Alan Modra <amodra@gmail.com>
842 * config/linux/sem.h: Rewrite.
843 * config/linux/sem.c: Rewrite.
845 2011-11-28 Richard Henderson <rth@redhat.com>
847 * libgomp.h (enum memmodel): New.
849 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
851 * configure: Regenerate.
853 2011-10-10 Matthias Klose <doko@ubuntu.com>
855 * config/posix95: Remove empty directory.
857 2011-08-26 Jakub Jelinek <jakub@redhat.com>
859 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
861 2011-08-19 Jakub Jelinek <jakub@redhat.com>
864 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
865 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
867 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
869 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
871 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
874 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
876 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
878 * config/linux/proc.h: New.
879 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
880 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
881 (gomp_init_num_threads): Update call to cpuset_popcount.
882 (get_num_procs): Ditto.
883 * config/linux/affinity.c (gomp_init_affinity): Call
884 gomp_cpuset_popcount.
886 2011-08-02 Jakub Jelinek <jakub@redhat.com>
890 * omp.h.in (omp_in_final): New prototype.
891 * omp_lib.f90.in (omp_in_final): New interface.
892 (omp_integer_kind, omp_logical_kind): Remove
893 and replace all its uses in the module with 4.
894 (openmp_version): Change to 201107.
895 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
896 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
897 kind for the parameters.
898 (omp_in_final): New external.
899 (openmp_version): Change to 201107.
900 * task.c (omp_in_final): New function.
901 (gomp_init_task): Initialize final_task.
902 (GOMP_task): Remove unused attribute from flags. Handle final
904 (GOMP_taskyield): New function.
905 (omp_in_final): Return true if if (false) or final (true) task
906 or descendant of final (true).
907 * fortran.c (omp_in_final_): New function.
908 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
909 (GOMP_3.0): Export GOMP_taskyield.
910 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
912 (parse_unsigned_long_list): New function.
913 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
914 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
915 even if parse_affinity returned false.
916 * config/linux/affinity.c (gomp_init_affinity): Handle
917 gomp_cpu_affinity_len == 0.
918 * libgomp_g.h (GOMP_taskyield): New prototype.
919 * libgomp.h (struct gomp_task): Add final_task field.
920 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
921 * team.c (gomp_team_start): Override new task's nthreads_var icv
922 if list form OMP_NUM_THREADS has been used and it has value for
923 the new nesting level.
925 * testsuite/libgomp.c/atomic-11.c: New test.
926 * testsuite/libgomp.c/atomic-12.c: New test.
927 * testsuite/libgomp.c/atomic-13.c: New test.
928 * testsuite/libgomp.c/atomic-14.c: New test.
929 * testsuite/libgomp.c/reduction-6.c: New test.
930 * testsuite/libgomp.c/task-5.c: New test.
931 * testsuite/libgomp.c++/atomic-2.C: New test.
932 * testsuite/libgomp.c++/atomic-3.C: New test.
933 * testsuite/libgomp.c++/atomic-4.C: New test.
934 * testsuite/libgomp.c++/atomic-5.C: New test.
935 * testsuite/libgomp.c++/atomic-6.C: New test.
936 * testsuite/libgomp.c++/atomic-7.C: New test.
937 * testsuite/libgomp.c++/atomic-8.C: New test.
938 * testsuite/libgomp.c++/atomic-9.C: New test.
939 * testsuite/libgomp.c++/task-8.C: New test.
940 * testsuite/libgomp.c++/reduction-4.C: New test.
941 * testsuite/libgomp.fortran/allocatable7.f90: New test.
942 * testsuite/libgomp.fortran/allocatable8.f90: New test.
943 * testsuite/libgomp.fortran/crayptr3.f90: New test.
944 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
945 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
946 * testsuite/libgomp.fortran/pointer1.f90: New test.
947 * testsuite/libgomp.fortran/pointer2.f90: New test.
948 * testsuite/libgomp.fortran/task4.f90: New test.
950 2011-08-02 Tobias Burnus <burnus@net-b.de>
952 * libgomp.texi: Update OpenMP spec references to 3.1.
953 (omp_in_final,OMP_PROC_BIND): New sections.
954 (OMP_NUM_THREADS): Document that the value can be now a list.
955 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
957 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
959 * config/linux/x86/futex.h: Check __x86_64__ instead of
962 2011-07-29 Jakub Jelinek <jakub@redhat.com>
966 * testsuite/libgomp.c/pr49897-1.c: New test.
967 * testsuite/libgomp.c/pr49897-2.c: New test.
968 * testsuite/libgomp.c/pr49898-1.c: New test.
969 * testsuite/libgomp.c/pr49898-2.c: New test.
971 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
973 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
974 for ia32 instead of ilp32.
976 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
977 * testsuite/libgomp.c/atomic-6.c: Likewise.
979 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
981 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
982 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
984 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
987 * config/osf/sem.h: New file.
988 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
990 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
993 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
996 2011-07-15 Jakub Jelinek <jakub@redhat.com>
998 * config/linux/wait.h (do_spin): New inline, largely copied
999 from do_wait, just don't do futex_wait here, instead return true if
1001 (do_wait): Implement using do_spin.
1002 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1004 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1005 __sync_bool_compare_and_swap, pass the oldval to
1006 gomp_mutex_lock_slow.
1007 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1008 If all mutex contenders are just spinning and not sleeping, don't
1009 change state to 2 unnecessarily. Optimize the loop when state has
1010 already become 2 to use just one atomic operation per loop instead
1012 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1014 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1015 __sync_bool_compare_and_swap, pass the oldval to
1016 gomp_mutex_lock_slow.
1018 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1021 * iter.c (gomp_iter_static_next): For chunk size 0
1022 only use n ceil/ nthreads size for the first
1023 n % nthreads threads in the team instead of
1024 all threads except for the last few ones which
1025 get less work or none at all.
1026 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1027 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1028 chunk argument, set run_sched_modifier to 0 for static
1029 resp. 1 for other kinds. If chunk argument is 0
1030 and not static, set value to 1.
1032 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1035 * testsuite/libgomp.c++/pr49043.C: New test.
1038 * testsuite/libgomp.c++/pr48869.C: New test.
1040 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1043 * fortran.c: Include limits.h.
1045 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1047 (omp_set_num_threads_8_, omp_set_schedule_8_,
1048 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1049 omp_get_team_size_8_): Use TO_INT macro.
1050 * testsuite/libgomp.fortran/pr48894.f90: New test.
1052 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1055 * testsuite/libgomp.c/pr48591.c: New test.
1057 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1060 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1061 * configure: Regenerate.
1063 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1066 * testsuite/libgomp.fortran/task3.f90: New test.
1068 2011-02-24 Tobias Burnus <burnus@net-b.de>
1070 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1072 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1075 * libgomp.texi (omp_get_wtime): Don't say time in the past
1078 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1081 * testsuite/libgomp.fortran/fortran.exp: Check for both
1082 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1083 but $blddir != "", still append ${blddir}/${lang_library_path}
1086 2011-02-16 Tobias Burnus <burnus@net-b.de>
1089 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1090 of libquadmath.a before adding its libpath to ldflags.
1092 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1095 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1096 to FUTEX_WAIT futex syscall.
1097 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1099 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1101 * configure: Regenerate.
1103 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1106 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1108 2011-01-16 Gerald Pfeifer
1110 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1112 2010-12-14 Jakub Jelinek <jakub@redhat.com>
1115 * libgomp.fortran/allocatable6.f90: New test.
1117 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1119 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1120 * configure: Regenerate.
1122 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1126 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1127 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1128 * aclocal.m4: Regenerate.
1129 * configure: Regenerate.
1130 * Makefile.in: Regenerate.
1131 * testsuite/Makefile.in: Regenerate.
1133 2010-12-02 Jakub Jelinek <jakub@redhat.com>
1136 * libgomp.fortran/pr46753.f90: New test.
1139 * env.c (initialize_env): Default to spin count 300000
1140 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1144 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1145 at the end if sync builtins aren't supported.
1147 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1149 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1151 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1153 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1155 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
1157 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1159 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1160 Tobias Burnus <burnus@net-b.de>
1164 * configure: Regenerate.
1166 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
1168 * config/linux/futex.h: New.
1169 * config/linux/arm/mutex.h: New.
1170 * configure.tgt (arm*-*-linux*): Add config path.
1172 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
1174 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1176 2010-09-23 Tobias Burnus <burnus@net-b.de>
1178 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1179 Change Fortran datatype to LOGICAL.
1180 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1181 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1183 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1185 * configure: Regenerate.
1187 2010-07-26 Jakub Jelinek <jakub@redhat.com>
1189 * libgomp.texi: Add function keyword to a couple of Fortran
1190 interfaces, use integer instead of int for Fortran.
1192 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
1194 * libgomp.texi: Fix spelling and pasto problems throughout.
1195 Adjust prototypes to match code.
1197 2010-07-24 Tobias Burnus <burnus@net-b.de>
1199 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1200 silence -fwhole-file warning.
1202 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1204 * configure.tgt (*-*-solaris2.[56]*): Removed.
1206 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1208 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1209 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1210 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1211 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1212 targetting solaris2*.
1213 * configure: Regenerate.
1214 * config.h.in: Regenerate.
1216 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1217 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1218 Add libgomp_version_dep.
1219 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1221 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1222 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1223 * Makefile.in: Regenerate.
1225 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1226 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1227 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1228 to common block, protected by
1229 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1231 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1233 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
1235 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
1238 * configure: Regenerate.
1240 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1243 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1244 * configure: Regenerate.
1245 * Makefile.in: Regenerate.
1246 * testsuite/Makefile.in: Regenerate.
1248 2010-04-26 Jakub Jelinek <jakub@redhat.com>
1251 * testsuite/libgomp.c/pr43893.c: New test.
1252 * testsuite/libgomp.c++/pr43893.C: New test.
1254 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1257 * testsuite/libgomp.fortran/vla8.f90: New test.
1259 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1262 * config/linux/affinity.c (gomp_init_affinity): Decrease
1263 gomp_available_cpus if affinity mask confines the process to fewer
1265 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1266 non-NULL, just return gomp_available_cpus.
1269 * sections.c (gomp_sections_init): Initialize ws->mode.
1271 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
1273 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1274 not unused bar variable.
1275 * configure: Regenerate.
1277 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1279 * Makefile.in: Regenerate.
1280 * aclocal.m4: Regenerate.
1281 * testsuite/Makefile.in: Regenerate.
1283 2010-03-22 Jakub Jelinek <jakub@redhat.com>
1286 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1287 (initialize_env): Adjust callers.
1288 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1289 when the argument is 0.
1291 * testsuite/libgomp.c/pr42942.c: New test.
1293 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1297 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1298 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1300 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1302 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1303 * testsuite/libgomp.c++/task-6.C: Likewise.
1305 2010-01-28 Steve Ellcey <sje@cup.hp.com>
1307 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1309 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
1311 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1312 * configure: Regenerate.
1314 2010-01-26 Jakub Jelinek <jakub@redhat.com>
1317 * testsuite/libgomp.fortran/allocatable5.f90: New test.
1319 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
1321 * configure.ac: Test for executability of GFORTRAN.
1322 * configure: Regenerate.
1324 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1326 * configure: Regenerate.
1328 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
1331 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1333 2010-01-03 Richard Guenther <rguenther@suse.de>
1335 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1337 2009-12-23 Sebastian Pop <sebpop@gmail.com>
1339 * testsuite/libgomp.graphite/pr4118.c: New.
1341 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1343 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1344 for darwin, protect the test with require-effective-target tls_runtime.
1345 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1347 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1350 * testsuite/lib/libgomp.exp: Provide -B options to allow for
1351 link spec %s substitutions for static libraries.
1353 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
1356 * libgomp.graphite/force-parallel-2.c: Reduce array size.
1358 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1360 * Makefile.in: Regenerate.
1361 * configure: Regenerate.
1362 * testsuite/Makefile.in: Regenerate.
1364 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1366 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1367 settings for LC_ALL and LANG.
1369 2009-11-25 Jakub Jelinek <jakub@redhat.com>
1372 * testsuite/libgomp.fortran/pr42162.f90: New test.
1374 2009-11-13 Jakub Jelinek <jakub@redhat.com>
1377 * testsuite/libgomp.c/pr42029.c: New test.
1379 2009-10-26 Jakub Jelinek <jakub@redhat.com>
1381 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1382 *s. Accept ld version without text in ()s.
1383 * configure: Regenerated.
1385 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1387 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1389 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1392 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1393 or a hyphen (happens with fortran language disabled).
1394 * configure: Regenerate.
1396 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1398 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1399 use sed script portable to Solaris /bin/sed for extracting ld
1401 * configure: Regenerate.
1403 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1405 * testsuite/libgomp.graphite/bounds.c: New test.
1407 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1409 * Makefile.am (libgomp_la_LINK): New.
1410 * Makefile.in: Regenerate.
1412 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1414 * configure.ac (AC_PREREQ): Bump to 2.64.
1416 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1418 * Makefile.am (install-html, install-pdf): Remove.
1419 * Makefile.in: Regenerate.
1421 * Makefile.in: Regenerate.
1422 * aclocal.m4: Regenerate.
1423 * config.h.in: Regenerate.
1424 * configure: Regenerate.
1425 * testsuite/Makefile.in: Regenerate.
1427 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1429 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1430 * Makefile.in: Regenerate.
1432 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
1434 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1435 * Makefile.in: Regenerate.
1437 2009-08-19 Tobias Burnus <burnus@net-b.de>
1440 omp_lib.h.in: Fix -std=f95 errors.
1443 2009-08-14 David Edelsohn <edelsohn@gnu.org>
1445 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1446 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1447 * testsuite/libgomp.graphite/graphite.exp: New.
1449 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
1451 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1454 2009-08-04 David Daney <ddaney@caviumnetworks.com>
1456 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1457 needed memory barrier semantics.
1458 * config/linux/mips/mutex.h: New file.
1460 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1462 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1464 2009-07-16 Joseph Myers <joseph@codesourcery.com>
1466 * configure: Regenerate.
1468 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
1473 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1474 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1475 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1477 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1479 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1480 options when choosing a multilib.
1482 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
1484 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1485 ld_library_path. Use add_path. Add just find_libgcc_s to
1486 ld_library_path, not every libgcc multilib directory.
1487 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1488 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1489 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1491 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1493 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
1495 * Makefile.am (LTLDFLAGS): Define.
1497 * Makefile.in: Regenerate.
1499 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1502 * testsuite/libgomp.fortran/fortran.exp: Don't link with
1503 libgfortranbegin, check existence of libgfortran.a instead of
1506 2009-05-20 Jakub Jelinek <jakub@redhat.com>
1509 * team.c (gomp_thread_start): Destroy thr->release semaphore.
1510 (gomp_free_pool_helper): Likewise.
1512 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
1513 Jakub Jelinek <jakub@redhat.com>
1516 * testsuite/libgomp.fortran/workshare2.f90: New test.
1518 2009-04-09 Nick Clifton <nickc@redhat.com>
1520 * iter.c: Change copyright header to refer to version 3 of the
1521 GNU General Public License with version 3.1 of the GCC Runtime
1522 Library Exception and to point readers at the COPYING3 and
1523 COPYING3.RUNTIME files and the FSF's license web page.
1524 * alloc.c: Likewise.
1525 * barrier.c: Likewise.
1526 * config/bsd/proc.c: Likewise.
1527 * config/linux/affinity.c: Likewise.
1528 * config/linux/alpha/futex.h: Likewise.
1529 * config/linux/bar.c: Likewise.
1530 * config/linux/bar.h: Likewise.
1531 * config/linux/ia64/futex.h: Likewise.
1532 * config/linux/ia64/mutex.h: Likewise.
1533 * config/linux/lock.c: Likewise.
1534 * config/linux/mips/futex.h: Likewise.
1535 * config/linux/mutex.c: Likewise.
1536 * config/linux/mutex.h: Likewise.
1537 * config/linux/powerpc/futex.h: Likewise.
1538 * config/linux/proc.c: Likewise.
1539 * config/linux/ptrlock.c: Likewise.
1540 * config/linux/ptrlock.h: Likewise.
1541 * config/linux/s390/futex.h: Likewise.
1542 * config/linux/sem.c: Likewise.
1543 * config/linux/sem.h: Likewise.
1544 * config/linux/sparc/futex.h: Likewise.
1545 * config/linux/wait.h: Likewise.
1546 * config/linux/x86/futex.h: Likewise.
1547 * config/mingw32/proc.c: Likewise.
1548 * config/mingw32/time.c: Likewise.
1549 * config/posix/affinity.c: Likewise.
1550 * config/posix/bar.c: Likewise.
1551 * config/posix/bar.h: Likewise.
1552 * config/posix/lock.c: Likewise.
1553 * config/posix/mutex.h: Likewise.
1554 * config/posix/proc.c: Likewise.
1555 * config/posix/ptrlock.h: Likewise.
1556 * config/posix/sem.c: Likewise.
1557 * config/posix/sem.h: Likewise.
1558 * config/posix/time.c: Likewise.
1559 * config/posix95/lock.c: Likewise.
1560 * critical.c: Likewise.
1562 * error.c: Likewise.
1563 * fortran.c: Likewise.
1564 * iter_ull.c: Likewise.
1565 * libgomp.h: Likewise.
1566 * libgomp_f.h.in: Likewise.
1567 * libgomp_g.h: Likewise.
1569 * loop_ull.c: Likewise.
1570 * omp.h.in: Likewise.
1571 * omp_lib.f90.in: Likewise.
1572 * omp_lib.h.in: Likewise.
1573 * ordered.c: Likewise.
1574 * parallel.c: Likewise.
1575 * sections.c: Likewise.
1576 * single.c: Likewise.
1581 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1583 * testsuite/config/default.exp: Change copyright header to refer to
1584 version 3 of the GNU General Public License and to point readers
1585 at the COPYING3 file and the FSF's license web page.
1587 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1590 * libgomp.c++/pr39573.C: New test.
1592 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1595 * testsuite/libgomp.c/pr39591-1.c: New test.
1596 * testsuite/libgomp.c/pr39591-2.c: New test.
1597 * testsuite/libgomp.c/pr39591-3.c: New test.
1599 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1601 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1602 * testsuite/libgomp.c/atomic-6.c: Ditto.
1604 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1607 * testsuite/libgomp.c/loop-12.c: New test.
1608 * testsuite/libgomp.c/loop-11.c: New test.
1609 * testsuite/libgomp.c++/loop-11.C: New test.
1610 * testsuite/libgomp.c++/loop-12.C: New test.
1611 * testsuite/libgomp.c++/for-8.C: New test.
1613 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1615 * configure: Regenerate.
1617 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1620 * testsuite/libgomp.c/pr39154.c: New test.
1622 2009-01-30 Ian Lance Taylor <iant@google.com>
1624 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1625 libgomp_ld_is_gold. Get gold version number.
1626 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1627 * configure: Rebuild.
1629 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1631 * testsuite/lib/libgomp.exp: Add -B option for targets that
1632 use libgfortran.a%s in their specs.
1634 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1637 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1638 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1639 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1640 * configure: Regenerated.
1641 * config.h.in: Likewise.
1643 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1646 * testsuite/libgomp.c/pr38650.c: New test.
1647 * testsuite/libgomp.c++/pr38650.C: New test.
1649 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1651 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1653 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1655 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1657 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1659 * configure: Regenerate.
1661 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1664 * testsuite/libgomp.c/pr36802-1.c: New test.
1665 * testsuite/libgomp.c/pr36802-2.c: New test.
1666 * testsuite/libgomp.c/pr36802-3.c: New test.
1668 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1671 * config/linux/powerpc/mutex.h: New.
1673 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1676 * testsuite/libgomp.c++/for-7.C: New test.
1679 * testsuite/libgomp.c++/for-6.C: New test.
1681 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1684 * testsuite/lib/libgomp.exp: Include new timeout library files.
1685 (libgomp_target_compile): Set timeout value from new proc.
1687 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1690 * config/linux/ia64/mutex.h: New.
1692 2008-11-04 Tobias Burnus <burnus@net-b.de>
1695 * libgomp.texi (Runtime library routines, environment variables):
1696 Update for OpenMP version 3.0.
1698 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1699 Steve Ellcey <sje@cup.hp.com>
1701 * configure: Regenerate for new libtool.
1702 * Makefile.in: Ditto.
1703 * testsuite/Makefile.in: Ditto.
1705 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1706 Andreas Tobler <a.tobler@schweiz.org>
1708 * config/bsd/proc.c: New file.
1709 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1710 * configure.ac: Check for header <sys/sysctl.h>
1711 * configure: Regenerate.
1712 * config.h.in: Likewise.
1714 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1716 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1718 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1720 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1721 * Makefile.in: Regenerated.
1722 * testsuite/Makefile.in: Regenerated.
1724 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1726 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1727 depend on blddir if blddir exists.
1728 (libgomp_target_compile): Likewise.
1729 * testsuite/libgomp.c++/c++.exp: Likewise.
1730 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1732 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1734 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1735 Do not list GPL as Invariant Section.
1737 2008-07-28 Ilie Garbacea <ilie@mips.com>
1738 Chao-ying Fu <fu@mips.com>
1740 * configure.tgt: Enable futex for MIPS.
1741 * config/linux/mips/futex.h: New file.
1743 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1745 * team.c (gomp_team_end): Free team immediately if it has
1748 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1750 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1751 * testsuite/libgomp.fortran/fortran.exp: Same.
1752 * testsuite/libgomp.c/c.exp: Same.
1753 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1754 directory to library path first.
1756 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1758 * env.c (parse_stacksize): Add cast to avoid warning.
1759 (parse_spincount): Likewise.
1761 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1763 * testsuite/libgomp.c/loop-10.c: New test.
1764 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1765 * libgomp.c++/loop-6.C (main): Likewise.
1768 * testsuite/libgomp.c/debug-1.c: New test.
1770 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1772 * testsuite/libgomp.c/nqueens-1.c: New test.
1775 * testsuite/libgomp.c++/task-7.C: New function.
1777 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1779 * configure: Regenerate.
1781 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1783 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1784 mutex when HAVE_SYNC_BUILTINS isn't defined.
1786 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1788 * libgomp.texi (omp_test_lock): Fix typo.
1790 2008-06-12 Tobias Burnus <burnus@net-b.de>
1792 * omp_lib.f90.in: Add "implicit none".
1794 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1797 * testsuite/libgomp.c/reduction-5.c: New test.
1799 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1801 * libgomp.h (struct gomp_task): Add in_tied_task field.
1802 * task.c (gomp_init_task): Initialize it.
1803 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1804 unconditionally. Don't call gomp_team_barrier_wake if
1805 current task is implicit or if(0) from implicit and number of
1806 running tasks is equal to nthreads - 1.
1809 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1810 omp_get_team_size_8): Fix pastos.
1813 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1814 * configure: Regenerated.
1815 * config.h.in: Regenerated.
1816 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1819 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1822 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1823 (GOMP_loop_ull_dynamic_start): Likewise.
1824 (GOMP_loop_ull_guided_start): Likewise.
1825 (GOMP_loop_ull_ordered_static_start): Likewise.
1826 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1827 (GOMP_loop_ull_ordered_guided_start): Likewise.
1829 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1830 Richard Henderson <rth@redhat.com>
1831 Ulrich Drepper <drepper@redhat.com>
1832 Jakob Blomer <jakob.blomer@ira.uka.de>
1834 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1835 Substitute also OMP_*LOCK_25*.
1836 * configure: Regenerated.
1837 * config.h.in: Regenerated.
1838 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1839 ptrlock.c and task.c.
1840 * Makefile.in: Regenerated.
1841 * testsuite/Makefile.in: Regenerated.
1843 * loop_ull.c: New file.
1844 * iter_ull.c: New file.
1845 * libgomp.h: Include ptrlock.h.
1846 (enum gomp_task_kind): New type.
1847 (struct gomp_team): Add task_lock, task_queue, task_count,
1848 task_running_count, single_count fields. Add
1849 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1850 Remove work_share_lock, generation_mask,
1851 oldest_live_gen, num_live_gen and init_work_shares fields, add
1852 work work_share_list_alloc, work_share_list_free and work_share_chunk
1853 fields. Change work_shares from pointer to pointers into an array.
1854 Change ordered_release field into gomp_sem_t ** from flexible array
1855 member. Add implicit_task and initial_work_shares fields.
1856 Move close to the end of the struct.
1857 (struct gomp_team_state): Add single_count, last_work_share,
1858 active_level and level fields, remove work_share_generation.
1859 (gomp_barrier_handle_tasks): New prototype.
1860 (gomp_finish_task): New inline function.
1861 (struct gomp_work_share): Move chunk_size, end, incr into
1862 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1863 next_ll fields. Reshuffle fields. Add next_alloc,
1864 next_ws, next_free and inline_ordered_team_ids fields, change
1865 ordered_team_ids into pointer from flexible array member.
1866 Add mode field. Put lock and next into a different cache line
1867 from most of the write-once fields.
1868 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1869 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1870 gomp_iter_ull_guided_next): New prototypes.
1871 (gomp_new_icv): New prototype.
1872 (struct gomp_thread): Add thread_pool and task fields.
1873 (struct gomp_thread_pool): New type.
1874 (gomp_new_team): New prototype.
1875 (gomp_team_start): Change type of last argument.
1876 (gomp_new_work_share): Removed.
1877 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1878 (gomp_work_share_init_done): New static inline.
1879 (gomp_throttled_spin_count_var, gomp_available_cpus,
1880 gomp_managed_threads): New extern decls.
1881 (gomp_init_task): New prototype.
1882 (gomp_spin_count_var): New extern var decl.
1883 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1884 or no alias support, or if not PIC.
1885 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1886 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1887 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1888 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1889 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1890 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1891 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1892 gomp_test_nest_lock_25): New prototypes.
1893 (omp_lock_symver, strong_alias): Define.
1894 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1896 (gomp_end_task): New.
1897 (struct gomp_task_icv, gomp_global_icv): New.
1898 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1899 (struct gomp_task): New.
1900 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1901 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1903 (gomp_schedule_type): Reorder enum to match
1905 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1907 (gomp_thread_start): Add gomp_team_barrier_wait call.
1908 For non-nested case remove clearing of docked thread thr fields.
1909 Use pool fields instead of global gomp_* variables. Use
1910 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1911 Create tasks for each member thread.
1912 (free_team): Only destroy team barrier, task_lock here and free it.
1913 (gomp_free_thread): Free last_team if non-NULL.
1914 (gomp_team_end): Call gomp_team_barrier_wait instead of
1915 gomp_barrier_wait. For nested case call one extra
1916 gomp_barrier_wait. Move here some destruction from free_team.
1917 Call free_team on pool->last_team if any, rather than freeing
1918 current team. Destroy work_share_list_free_lock ifndef
1920 (gomp_new_icv): New function.
1921 (gomp_threads, gomp_threads_size, gomp_threads_used,
1922 gomp_threads_dock): Removed.
1923 (gomp_thread_destructor): New variable.
1924 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1926 (gomp_team_start): Create new pool if current thread doesn't have
1927 one. Use pool fields instead of global gomp_* variables.
1928 Initialize thread_pool field for new threads. Clear single_count.
1929 Change last argument from ws to team, don't create
1930 new team, set ts.work_share to &team->work_shares[0] and clear
1931 ts.last_work_share. Don't clear ts.work_share_generation.
1932 If number of threads changed, adjust atomically gomp_managed_threads.
1933 Use gomp_init_task instead of gomp_new_task,
1934 set thr->task to the corresponding implicit_task array entry.
1935 Create tasks for each member thread. Initialize ts.level.
1936 (initialize_team): Call pthread_key_create on
1937 gomp_thread_destructor.
1938 (team_destructor): New function.
1939 (new_team): Removed.
1940 (gomp_new_team): New function.
1941 (free_team): Free gomp_work_share blocks chained through next_alloc,
1942 instead of freeing work_shares and destroying work_share_lock.
1943 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1944 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1945 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1946 of gomp_barrier_wait.
1947 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1948 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1949 if gomp_work_share_start returned true. Don't unlock ws->lock.
1950 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1951 of gomp_barrier_wait.
1952 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1953 gomp_work_share_init_done if gomp_work_share_start returned true.
1954 Don't unlock ws->lock.
1955 * work.c: Include stddef.h.
1956 (free_work_share): Use work_share_list_free_lock instead
1957 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1958 Call gomp_fini_work_share and then either free ws if orphaned, or
1959 put it into work_share_list_free list of the current team.
1960 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1962 (gomp_work_share_start, gomp_work_share_end,
1963 gomp_work_share_end_nowait): Rewritten.
1964 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1965 (openmp_version): Set to 200805.
1966 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1967 omp_sched_guided, omp_sched_auto): New parameters.
1968 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1969 omp_set_max_active_levels, omp_get_max_active_levels,
1970 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1971 omp_get_active_level): New interfaces.
1972 * omp_lib.h.in (openmp_version): Set to 200805.
1973 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1974 omp_sched_guided, omp_sched_auto): New parameters.
1975 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1976 omp_set_max_active_levels, omp_get_max_active_levels,
1977 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1978 omp_get_active_level): New externals.
1979 * loop.c: Include limits.h.
1980 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1982 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1983 Likewise. Use gomp_icv.
1984 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1985 ts.static_trip here.
1986 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1987 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1988 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1989 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1990 don't unlock ws->lock, otherwise lock it.
1991 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1992 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1993 (gomp_parallel_loop_start): Call gomp_new_team instead of
1994 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1995 Adjust gomp_team_start caller. Pass 0 as second argument to
1996 gomp_resolve_num_threads.
1997 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1998 If adding ws->chunk_size nthreads + 1 times after end won't
1999 overflow, set ws->mode to 1.
2000 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2001 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2002 GOMP_loop_ull_ordered_static_start,
2003 GOMP_loop_ull_ordered_dynamic_start,
2004 GOMP_loop_ull_ordered_guided_start,
2005 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2006 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2007 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2008 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2009 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2011 * libgomp.map: Export lock routines also @@OMP_2.0.
2012 (GOMP_loop_ordered_dynamic_first,
2013 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2014 GOMP_loop_ordered_static_first): Remove.
2015 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2016 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2017 GOMP_loop_ull_ordered_dynamic_next,
2018 GOMP_loop_ull_ordered_dynamic_start,
2019 GOMP_loop_ull_ordered_guided_next,
2020 GOMP_loop_ull_ordered_guided_start,
2021 GOMP_loop_ull_ordered_runtime_next,
2022 GOMP_loop_ull_ordered_runtime_start,
2023 GOMP_loop_ull_ordered_static_next,
2024 GOMP_loop_ull_ordered_static_start,
2025 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2026 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2027 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2028 (omp_set_schedule, omp_get_schedule,
2029 omp_get_thread_limit, omp_set_max_active_levels,
2030 omp_get_max_active_levels, omp_get_level,
2031 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2032 omp_set_schedule_, omp_set_schedule_8_,
2033 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2034 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2035 omp_get_max_active_levels_, omp_get_level_,
2036 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2037 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2038 New exports @@OMP_3.0.
2039 * omp.h.in (omp_sched_t): New type.
2040 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2041 omp_set_max_active_levels, omp_get_max_active_levels,
2042 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2043 omp_get_active_level): New prototypes.
2044 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2045 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2046 gomp_thread_limit_var, gomp_remaining_threads_count,
2047 gomp_remaining_threads_lock): New variables.
2048 (parse_spincount): New function.
2049 (initialize_env): Call gomp_init_num_threads unconditionally.
2050 Initialize gomp_available_cpus. Call parse_spincount,
2051 initialize gomp_{,throttled_}spin_count_var
2052 depending on presence and value of OMP_WAIT_POLICY and
2053 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2054 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2055 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2056 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2057 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2058 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2059 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2060 (gomp_global_icv): New.
2061 (parse_schedule): Use it. Parse "auto".
2062 (omp_set_num_threads): Use gomp_icv.
2063 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2065 (omp_get_max_threads): Move from parallel.c.
2066 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2067 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2069 (parse_stacksize, parse_wait_policy): New functions.
2070 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2071 both wrappers for compatibility and new locks.
2072 (omp_set_schedule, omp_get_schedule,
2073 omp_get_thread_limit, omp_set_max_active_levels,
2074 omp_get_max_active_levels, omp_get_level,
2075 omp_get_ancestor_thread_num, omp_get_team_size,
2076 omp_get_active_level): New ialias_redirect.
2077 (omp_set_schedule_, omp_set_schedule_8_,
2078 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2079 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2080 omp_get_max_active_levels_, omp_get_level_,
2081 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2082 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2084 * parallel.c: Include limits.h.
2085 (gomp_resolve_num_threads): Add count argument. Rewritten.
2086 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2087 argument to gomp_team_start. Pass 0 as second argument to
2088 gomp_resolve_num_threads.
2089 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2090 if gomp_thread_limit_var != ULONG_MAX.
2091 (omp_in_parallel): Implement using ts.active_level.
2092 (omp_get_max_threads): Move to env.c.
2093 (omp_get_level, omp_get_ancestor_thread_num,
2094 omp_get_team_size, omp_get_active_level): New functions,
2096 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2097 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2098 gomp_iter_dynamic_next instead of the _locked variant and don't take
2099 lock around it, otherwise acquire it before calling
2100 gomp_iter_dynamic_next_locked.
2101 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2102 gomp_iter_dynamic_next instead of the _locked variant and don't take
2104 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2105 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2106 Adjust gomp_team_start caller. Pass count as second argument to
2107 gomp_resolve_num_threads, don't adjust num_threads after the call.
2109 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2110 ws->chunk_size by incr.
2111 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2113 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2115 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2116 (omp_check_defines): Check even the compat defines.
2117 * config/linux/ptrlock.c: New file.
2118 * config/linux/ptrlock.h: New file.
2119 * config/linux/wait.h: New file.
2120 * config/posix/ptrlock.c: New file.
2121 * config/posix/ptrlock.h: New file.
2122 * config/linux/bar.h (gomp_team_barrier_wait,
2123 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2124 (gomp_team_barrier_set_task_pending,
2125 gomp_team_barrier_clear_task_pending,
2126 gomp_team_barrier_set_waiting_for_tasks,
2127 gomp_team_barrier_waiting_for_tasks,
2128 gomp_team_barrier_done): New inlines.
2129 (gomp_barrier_t): Rewritten.
2130 (gomp_barrier_state_t): New typedef.
2131 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2132 gomp_barrier_wait_start): Rewritten.
2133 (gomp_barrier_wait_end): Change second argument to
2134 gomp_barrier_state_t.
2135 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2137 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2139 (gomp_barrier_wait_end): Rewritten.
2140 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2141 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2142 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2143 (gomp_barrier_state_t): New typedef.
2144 (gomp_team_barrier_wait,
2145 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2146 (gomp_barrier_wait_start): Or all but low 2 bits from generation
2147 into the return value. Return gomp_barrier_state_t.
2148 (gomp_team_barrier_set_task_pending,
2149 gomp_team_barrier_clear_task_pending,
2150 gomp_team_barrier_set_waiting_for_tasks,
2151 gomp_team_barrier_waiting_for_tasks,
2152 gomp_team_barrier_done): New inlines.
2153 (gomp_barrier_wait_end): Change second argument to
2154 gomp_barrier_state_t.
2155 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2157 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2158 (gomp_barrier_wait_end): Change second argument to
2159 gomp_barrier_state_t.
2160 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2161 gomp_team_barrier_wake): New functions.
2162 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2164 (gomp_futex_wake, gomp_futex_wait): New variables.
2165 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2166 * config/linux/lock.c: Rewrite to make locks task owned,
2167 for backwards compatibility provide the old entrypoints
2168 if symbol versioning. Include wait.h instead of libgomp.h and
2170 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2171 * config/posix95/lock.c: Rewrite to make locks task owned,
2172 for backwards compatibility provide the old entrypoints
2173 if symbol versioning.
2174 * config/posix/lock.c: Rewrite to make locks task owned,
2175 for backwards compatibility provide the old entrypoints
2176 if symbol versioning.
2177 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2178 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2179 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2180 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2181 (sys_futex0): Return error code.
2182 (futex_wake, futex_wait): If ENOSYS was returned, clear
2183 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2184 (cpu_relax, atomic_write_barrier): New static inlines.
2185 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2186 (futex_wake, futex_wait): If ENOSYS was returned, clear
2187 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2188 (cpu_relax, atomic_write_barrier): New static inlines.
2189 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2190 (sys_futex0): Return error code.
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/s390/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/ia64/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/sparc/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/sem.c: Include wait.h instead of libgomp.h and
2211 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2212 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2213 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2215 (omp_nest_lock_t): Change owner into void *, add lock field.
2216 * config/posix95/omp-lock.h: Include semaphore.h.
2217 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2218 (omp_lock_t): Use sem_t instead of mutex if semaphores
2220 (omp_nest_lock_t): Likewise. Change owner to void *.
2221 * config/posix/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. Add owner field.
2227 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2229 * testsuite/libgomp.c/collapse-1.c: New test.
2230 * testsuite/libgomp.c/collapse-2.c: New test.
2231 * testsuite/libgomp.c/collapse-3.c: New test.
2232 * testsuite/libgomp.c/icv-1.c: New test.
2233 * testsuite/libgomp.c/icv-2.c: New test.
2234 * testsuite/libgomp.c/lib-2.c: New test.
2235 * testsuite/libgomp.c/lock-1.c: New test.
2236 * testsuite/libgomp.c/lock-2.c: New test.
2237 * testsuite/libgomp.c/lock-3.c: New test.
2238 * testsuite/libgomp.c/loop-4.c: New test.
2239 * testsuite/libgomp.c/loop-5.c: New test.
2240 * testsuite/libgomp.c/loop-6.c: New test.
2241 * testsuite/libgomp.c/loop-7.c: New test.
2242 * testsuite/libgomp.c/loop-8.c: New test.
2243 * testsuite/libgomp.c/loop-9.c: New test.
2244 * testsuite/libgomp.c/nested-3.c: New test.
2245 * testsuite/libgomp.c/nestedfn-6.c: New test.
2246 * testsuite/libgomp.c/sort-1.c: New test.
2247 * testsuite/libgomp.c/task-1.c: New test.
2248 * testsuite/libgomp.c/task-2.c: New test.
2249 * testsuite/libgomp.c/task-3.c: New test.
2250 * testsuite/libgomp.c/task-4.c: New test.
2251 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2252 to C++ testsuite default compiler options.
2253 * testsuite/libgomp.c++/collapse-1.C: New test.
2254 * testsuite/libgomp.c++/collapse-2.C: New test.
2255 * testsuite/libgomp.c++/ctor-10.C: New test.
2256 * testsuite/libgomp.c++/for-1.C: New test.
2257 * testsuite/libgomp.c++/for-2.C: New test.
2258 * testsuite/libgomp.c++/for-3.C: New test.
2259 * testsuite/libgomp.c++/for-4.C: New test.
2260 * testsuite/libgomp.c++/for-5.C: New test.
2261 * testsuite/libgomp.c++/loop-8.C: New test.
2262 * testsuite/libgomp.c++/loop-9.C: New test.
2263 * testsuite/libgomp.c++/loop-10.C: New test.
2264 * testsuite/libgomp.c++/task-1.C: New test.
2265 * testsuite/libgomp.c++/task-2.C: New test.
2266 * testsuite/libgomp.c++/task-3.C: New test.
2267 * testsuite/libgomp.c++/task-4.C: New test.
2268 * testsuite/libgomp.c++/task-5.C: New test.
2269 * testsuite/libgomp.c++/task-6.C: New test.
2270 * testsuite/libgomp.fortran/allocatable1.f90: New test.
2271 * testsuite/libgomp.fortran/allocatable2.f90: New test.
2272 * testsuite/libgomp.fortran/allocatable3.f90: New test.
2273 * testsuite/libgomp.fortran/allocatable4.f90: New test.
2274 * testsuite/libgomp.fortran/collapse1.f90: New test.
2275 * testsuite/libgomp.fortran/collapse2.f90: New test.
2276 * testsuite/libgomp.fortran/collapse3.f90: New test.
2277 * testsuite/libgomp.fortran/collapse4.f90: New test.
2278 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2279 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2280 * testsuite/libgomp.fortran/lib4.f90: New test.
2281 * testsuite/libgomp.fortran/lock-1.f90: New test.
2282 * testsuite/libgomp.fortran/lock-2.f90: New test.
2283 * testsuite/libgomp.fortran/nested1.f90: New test.
2284 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2285 * testsuite/libgomp.fortran/strassen.f90: New test.
2286 * testsuite/libgomp.fortran/tabs1.f90: New test.
2287 * testsuite/libgomp.fortran/tabs2.f: New test.
2288 * testsuite/libgomp.fortran/task1.f90: New test.
2289 * testsuite/libgomp.fortran/task2.f90: New test.
2290 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2291 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2292 * testsuite/libgomp.c/pr26943-2.c: Likewise.
2293 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2294 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2296 2008-05-23 Jakub Jelinek <jakub@redhat.com>
2299 * testsuite/libgomp.c++/ctor-11.C: New test.
2300 * testsuite/libgomp.c++/ctor-12.C: New test.
2302 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2304 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2306 2008-05-07 Jakub Jelinek <jakub@redhat.com>
2309 * testsuite/libgomp.c/atomic-5.c: New test.
2310 * testsuite/libgomp.c/atomic-6.c: New test.
2311 * testsuite/libgomp.c/autopar-1.c: New test.
2313 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2315 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2316 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2317 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2318 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2319 * configure: Regenerate.
2320 * Makefile.in, testsuite/Makefile.in: Likewise.
2322 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2325 * aclocal.m4: Regenerate.
2326 * configure: Regenerate.
2328 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2331 * testsuite/libgomp.c/atomic-4.c: New test.
2334 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2335 (gomp_iter_guided_next): Likewise.
2336 * testsuite/libgomp.c/pr35625.c: New test.
2338 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2340 * aclocal.m4: Regenerate.
2341 * configure: Likewise.
2342 * Makefile.in: Likewise.
2343 * testsuite/Makefile.in: Likewise.
2345 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2348 * testsuite/libgomp.c++/pr35185.C: New test.
2350 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2353 * testsuite/libgomp.c/pr35549.c: New test.
2355 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2357 * testsuite/libgomp.c/atomic-3.c: New test.
2359 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2362 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2365 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
2368 * configure.ac: Add ACX_HEADER_STRING.
2369 * env.c: Include strings.h.
2370 * aclocal.m4: Regenerate.
2371 * config.h.in: Regenerate.
2372 * configure: Regenerate.
2373 * Makefile.in: Regenerate.
2374 * testsuite/Makefile.in: Regenerate.
2376 2008-02-15 Jakub Jelinek <jakub@redhat.com>
2379 * testsuite/libgomp.c/pr35196.c: New test.
2382 * testsuite/libgomp.fortran/pr35130.f90: New test.
2383 * testsuite/libgomp.c/pr35130.c: New test.
2385 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2388 * testsuite/libgomp.c/pr33880.c: New test.
2389 * testsuite/libgomp.fortran/pr33880.f90: New test.
2391 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2393 * configure: Regenerate.
2395 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2397 * configure.ac: Move futex checking into ../config/futex.m4.
2398 * configure: Rebuilt.
2399 * aclocal.m4: Rebuilt.
2400 * Makefile.in: Rebuilt.
2402 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2403 2007-10-15 ../config/tls.m4 change.
2405 2007-12-19 Jakub Jelinek <jakub@redhat.com>
2408 * testsuite/libgomp.c/pr34513.c: New test.
2409 * testsuite/libgomp.c++/pr34513.C: New test.
2411 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
2414 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2416 2007-12-04 Jakub Jelinek <jakub@redhat.com>
2418 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
2420 2007-12-03 Jakub Jelinek <jakub@redhat.com>
2422 * testsuite/libgomp.c/private-1.c: New test.
2424 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
2425 Paolo Bonzini <bonzini@gnu.org>
2427 * Makefile.am: Use space as vpath separator. Use 'vpath %'
2428 instead of 'VPATH ='.
2429 * Makefile.in: Regenerate.
2431 2007-11-23 Matthias Klose <doko@ubuntu.com>
2433 * configure.ac: Adjust makeinfo version check.
2434 * configure: Regenerate.
2436 2007-11-10 Jakub Jelinek <jakub@redhat.com>
2439 * testsuite/libgomp.fortran/pr34020.f90: New test.
2441 2007-11-06 Jakub Jelinek <jakub@redhat.com>
2444 * testsuite/libgomp.c++/atomic-1.C: New test.
2446 2007-10-25 Jakub Jelinek <jakub@redhat.com>
2449 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2450 Make x and y integers rather than (implicit) reals. Add private (j)
2451 clause to the last omp parallel.
2453 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
2455 * configure: Regenerate following changes to ../config/tls.m4.
2457 2007-09-28 Jakub Jelinek <jakub@redhat.com>
2459 * testsuite/libgomp.fortran/stack.f90: New test.
2461 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2463 * config/mingw32/proc.c: New file.
2465 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
2467 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2468 (main): Use __get_cpuid to get i386 target fetaures.
2469 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2470 (main): Use __get_cpuid to get x86_64 target fetaures.
2472 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
2475 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2476 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2478 2007-07-12 Jakub Jelinek <jakub@redhat.com>
2481 * testsuite/libgomp.fortran/pr32550.f90: New test.
2482 * testsuite/libgomp.fortran/crayptr2.f90: New test.
2484 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2486 * aclocal.m4: Regenerated.
2488 2007-07-05 Tobias Burnus <burnus@net-b.de>
2491 * testsuite/libgomp.fortran/pr32359.f90: New.
2493 2007-07-02 Jakub Jelinek <jakub@redhat.com>
2496 * sections.c (GOMP_parallel_sections_start): Only decrease
2497 number of threads to COUNT if dyn_var is true.
2498 * testsuite/libgomp.c/pr32468.c: New test.
2500 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2503 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2505 2007-06-21 Jakub Jelinek <jakub@redhat.com>
2508 * testsuite/libgomp.c/pr32362-1.c: New test.
2509 * testsuite/libgomp.c/pr32362-2.c: New test.
2510 * testsuite/libgomp.c/pr32362-3.c: New test.
2512 2007-06-07 Jakub Jelinek <jakub@redhat.com>
2514 * team.c (gomp_team_start): Fix setting up thread_attr
2517 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2519 * configure: Regenerate.
2521 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2523 * Makefile.in: Regenerate.
2524 * configure: Regenerate.
2525 * aclocal.m4: Regenerate.
2526 * testsuite/Makefile.in: Regenerate.
2528 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2530 * config/linux/proc.c: New file.
2533 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2535 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2537 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2539 2007-04-16 Matthias Klose <doko@debian.org>
2541 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2542 flags if not building with -m64.
2543 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2544 flag for i?86-*-* targets, if current target matches -m64.
2546 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2548 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2549 * Makefile.in: Regenerate.
2551 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2554 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2556 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2558 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2560 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2562 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2563 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2564 (parse_affinity): New function.
2565 (initialize_env): Call it and gomp_init_affinity.
2566 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2567 create new pthread_attr_t and call gomp_init_thread_affinity
2568 on it for each thread before passing the attribute to pthread_create.
2569 * config/linux/affinity.c: New file.
2570 * config/posix/affinity.c: New file.
2571 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2572 * configure: Rebuilt.
2573 * config.h.in: Rebuilt.
2574 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2575 * Makefile.in: Rebuilt.
2577 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2579 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2581 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2582 and use it if found.
2584 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2586 * testsuite/config/default.exp: New file.
2587 * testsuite/lib/libgomp.exp: New file.
2588 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2589 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2590 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2591 (libgomp_load): Remove.
2592 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2593 always_ld_library_path, not ld_library_path. Set additional_flags
2594 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2595 (target_compile): Do not call libgomp_init. Append lang_library_path
2596 and lang_link_flags to options.
2597 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2598 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2600 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2601 always_ld_library_path. Set LD_LIBRARY_PATH here.
2602 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2603 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2604 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2606 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2607 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2608 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2609 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2610 * testsuite/libgomp.c/atomic-10.c: Ditto.
2612 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2614 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2615 dg-final cleanup-modules line.
2616 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2617 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2618 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2619 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2620 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2621 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2622 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2624 2007-03-18 Andreas Schwab <schwab@suse.de>
2626 * acinclude.m4: Adjust regular expression for ld version
2628 * configure: Regenerate.
2630 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2632 * Makefile.am: Add install-pdf target as copied from
2633 automake v1.10 rules.
2634 * Makefile.in: Regenerate
2636 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2639 * configure: Regenerate.
2642 * testsuite/libgomp.c++/pr30703.C: New test.
2644 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2647 2006-07-05 Eric Christopher <echristo@apple.com>
2648 * configure.ac: Depend addition of -pthread on host OS.
2649 * configure: Regenerate.
2651 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2653 * libgomp.texi: Fix spacing after abbreviations.
2655 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2658 * configure.ac: Add check for makeinfo
2659 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2660 if an appropiate version of makeinfo is found.
2661 * aclocal.m4: Regenerated.
2662 * configure: Regenerated.
2663 * Makefile.in: Regenerated.
2664 * testsuite/Makefile.in: Regenerated.
2666 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2669 * libgomp.texi: More about implementation-dependent settings.
2671 2007-01-26 Tobias Burnus <burnus@net-b.de>
2673 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2675 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2678 * testsuite/libgomp.c/pr30494.c: New test.
2680 2007-01-15 Tom Tromey <tromey@redhat.com>
2682 * configure: Rebuilt.
2683 * configure.ac: Fixed comment.
2685 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2687 * libgomp.texi: Document implementation specific default values of
2688 environment variables.
2690 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2693 * libgomp.texi: New file.
2694 * configure.ac: Add --enable-generated-files-in-srcdir option.
2695 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2697 * Makefile.in: Regenerated.
2698 * config.h.in: Regenerated.
2699 * testsuite/Makefile.in: Regenerated.
2702 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2705 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2707 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2709 * configure: Regenerate.
2711 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2714 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2715 start if there shouldn't be any loop iterations.
2716 (gomp_loop_ordered_static_start): Remove start == end test.
2717 * testsuite/libgomp.c/pr29947-1.c: New test.
2718 * testsuite/libgomp.c/pr29947-2.c: New test.
2720 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2722 * configure.tgt: Force initial-exec TLS model on Linux only.
2724 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2726 * configure: Regenerated.
2728 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2730 * env.c (parse_schedule): Reject out of range values.
2731 (parse_unsigned_long): Reject out of range, negative or zero values.
2733 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2736 * testsuite/libgomp.fortran/pr29629.f90: New test.
2738 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2741 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2742 * config/posix95: New directory.
2743 * config/posix95/omp-lock.h: New file.
2744 * config/posix95/lock.c: Likewise.
2746 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2748 * aclocal.m4: Regenerate.
2749 * configure: Regenerate.
2751 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2753 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2756 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2758 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2760 * configure: Regenerate.
2761 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2763 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2767 * testsuite/libgomp.c/nestedfn-4.c: New test.
2768 * testsuite/libgomp.c/nestedfn-5.c: New test.
2769 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2772 * testsuite/libgomp.fortran/condinc1.f: New test.
2773 * testsuite/libgomp.fortran/condinc2.f: New test.
2774 * testsuite/libgomp.fortran/condinc3.f90: New test.
2775 * testsuite/libgomp.fortran/condinc4.f90: New test.
2776 * testsuite/libgomp.fortran/condinc1.inc: New file.
2778 2006-09-18 Tom Tromey <tromey@redhat.com>
2780 * configure: Rebuilt.
2782 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2785 PR preprocessor/14634
2786 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2788 * configure: Regenerate.
2790 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2792 * testsuite/libgomp.fortran/reduction3.f90: Change
2793 -2147483648 to -huge(i)-1 to avoid overflow.
2794 * testsuite/libgomp.fortran/reduction4.f90: Change
2795 Z'ffffffff' to not(0) to avoid overflow.
2797 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2800 * Makefile.am (libsubincludedir): New.
2801 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2802 * Makefile.in: Regenerate.
2804 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2807 * env.c: Include ctype.h.
2808 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2809 leading and/or trailing whitespace and compare strings case
2812 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2815 * testsuite/libgomp.fortran/pr28390.f: New test.
2817 2006-07-05 Eric Christopher <echristo@apple.com>
2819 * configure.ac: Depend addition of -pthread on host OS.
2820 * configure: Regenerate.
2822 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2824 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2825 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2828 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2832 * configure.ac: If neither --enable-linux-futex nor
2833 --disable-linux-futex is passed, determine the default by checking
2834 for compiling and/or running against NPTL. With --enable-linux-futex,
2835 check if SYS_gettid and SYS_futex are defined.
2836 * configure: Rebuilt.
2838 2006-06-14 Richard Henderson <rth@redhat.com>
2841 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2842 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2844 2006-06-09 Richard Henderson <rth@redhat.com>
2846 * env.c (gomp_nthreads_var): Change to unsigned long.
2847 (gomp_run_sched_chunk): Likewise.
2848 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2849 (initialize_env): Initialize gomp_thread_attr.
2850 * libgomp.h (gomp_nthreads_var): Update decl.
2851 (gomp_run_sched_chunk): Likewise.
2852 (gomp_thread_attr): Declare.
2853 * team.c (gomp_thread_attr): Export.
2854 (initialize_team): Don't initialize it.
2856 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2859 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2860 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2862 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2864 * config/mingw32/time.c: New file.
2865 * configure.tgt: Use it.
2867 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2869 * Makefile.am: Add install-html target. Add install-html to .PHONY
2870 * Makefile.in: Regenerate.
2872 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2875 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2876 * testsuite/libgomp.c/critical-1.c: Likewise.
2877 * testsuite/libgomp.c/loop-1.c: Likewise.
2878 * testsuite/libgomp.c/loop-2.c: Likewise.
2879 * testsuite/libgomp.c/single-1.c: Likewise.
2880 * testsuite/libgomp.c/ordered-1.c: Likewise.
2881 * testsuite/libgomp.c/ordered-2.c: Likewise.
2883 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2886 * libgomp.fortran/pr27416-1.f90: New test.
2888 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2891 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2892 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2894 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2897 * testsuite/libgomp.c/pr26943-1.c: New test.
2898 * testsuite/libgomp.c/pr26943-2.c: New test.
2899 * testsuite/libgomp.c/pr26943-3.c: New test.
2900 * testsuite/libgomp.c/pr26943-4.c: New test.
2901 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2902 * testsuite/libgomp.c++/pr26943.C: New test.
2904 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2907 * testsuite/libgomp.c++/pr27337.C: New test.
2909 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2912 * testsuite/libgomp.c/pr26171.c: New test.
2914 2006-04-25 Richard Henderson <rth@redhat.com>
2917 * configure.ac: Use GCC_CHECK_TLS.
2918 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2919 * Makefile.in, aclocal.m4, configure: Regenerate.
2921 2006-04-10 Matthias Klose <doko@debian.org>
2923 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2924 directory names containing underscores.
2926 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2929 * testsuite/libgomp.c++/pr26691.C: New test.
2931 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2933 * testsuite/libgomp.fortran/retval2.f90: New test.
2935 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2937 * testsuite/libgomp.c++: New directory.
2939 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2941 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2942 * config/posix/sem.c: Implement the above.
2944 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2946 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2947 define HAVE_BROKEN_POSIX_SEMAPHORES.
2948 * configure: Rebuilt.
2949 * config.h.in: Rebuilt.
2951 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2954 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2955 for the other pthread check.
2956 * configure: Regenerate.
2957 * config.h.in: Regenerate.
2959 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2963 * Makefile.am (fincludedir): New variable.
2964 (nodist_include_HEADERS): Remove Fortran files.
2965 (nodist_finclude_HEADERS): New variable.
2966 * Makefile.in: Regenerated.
2968 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2970 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2971 Remove tests for returning assumed character length arrays.
2973 2006-02-12 Roger Sayle <roger@eyesopen.com>
2974 John David Anglin <dave@hiauly1.hia.nrc.ca>
2977 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2979 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2981 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2983 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2985 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2986 part of LD_LIBRARY_PATH manually.
2988 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2991 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2994 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2997 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2998 * configure.ac (PERL): Don't set.
2999 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3000 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3001 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3002 * omp.h.in: Wrap the new configure substitutions with @ characters.
3003 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3004 * aclocal.m4, configure, Makefile.in: Regenerate.
3005 * mkomp_h.pl: Delete.
3007 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3010 * configure.ac: Use GCC_HEADER_STDINT.
3011 * libgomp.h: Include gstdint.h.
3012 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3013 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3015 2006-01-24 Richard Henderson <rth@redhat.com>
3018 * configure.ac: Add AM_MAINTAINER_MODE.
3019 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3021 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3023 * Makefile.in: Regenerate.
3024 * testsuite/Makefile.in: Regenerate.
3025 * aclocal.m4: Regenerate.
3027 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3029 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3031 * configure.ac: Add check for loadavg.h.
3032 (link_gomp): Adjust comment.
3033 * configure: Regenerate.
3034 * config.h.in: Regenerate.
3036 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3039 * configure.ac: Remove check for alloca.h.
3040 * configure: Regenerate.
3041 * config.h.in: Regenerate.
3042 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3043 * team.c: Remove use of alloca.h.
3044 Call gomp_alloca instead of alloca.
3046 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3049 * team.c: Add include of alloca.h.
3050 * configure.ac: Add check for alloca.h.
3051 * configure: Regenerate.
3052 * config.h.in: Regenerate.
3054 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3057 * testsuite/libgomp.fortran/pr25219.f90: New test.
3059 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3061 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3062 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3063 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3064 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3065 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3066 testsuite/libgomp.fortran/threadprivate1.f90,
3067 testsuite/libgomp.fortran/threadprivate2.f90,
3068 testsuite/libgomp.fortran/threadprivate3.f90,
3069 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3070 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3071 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3072 effective-target to TLS runtime.
3074 * testsuite/libgomp.fortran/pr25162.f: Require
3075 effective-target TLS runtime.
3077 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3079 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3080 * testsuite/libgomp.c/nestedfn-3.c: New test.
3082 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3085 * testsuite/libgomp.fortran/pr25162.f: New test.
3087 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3089 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3090 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3092 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3094 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3095 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3096 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3097 single.c, team.c, work.c, config/linux/alpha/futex.h,
3098 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3099 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3100 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3101 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3102 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3103 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3104 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3107 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3109 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3110 to nodist_noinst_HEADERS.
3111 * Makefile.in: Rebuilt.
3113 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3114 add integer count field.
3115 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3116 omp_nest_lock_t type change.
3117 (omp_init_nest_lock): Likewise. Initialize count to 0.
3118 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3120 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3122 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3123 Increment count if successful and return the new nesting level.
3124 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3125 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3126 * testsuite/libgomp.c/lib-1.c: New test.
3127 * testsuite/libgomp.fortran/lib1.f90: New test.
3128 * testsuite/libgomp.fortran/lib2.f: New test.
3129 * testsuite/libgomp.fortran/lib3.f: New test.
3131 2005-11-17 Richard Henderson <rth@redhat.com>
3134 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3135 * configure.ac (link_gomp): New. Substitute it.
3136 (AC_CONFIG_FILES): Add libgomp.spec.
3137 * libgomp.spec.in: New file.
3138 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3139 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3141 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3143 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3144 reduction(-:var) behaving the same as reduction(+:var).
3145 * testsuite/libgomp.c/reduction-4.c: New test.
3147 2005-11-15 Uros Bizjak <uros@kss-loka.si>
3149 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3150 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3151 testsuite/libgomp.c/copyin-3.c,
3152 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3153 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3154 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3155 testsuite/libgomp.c++/pr24455.C,
3156 testsuite/libgomp.fortran/threadprivate1.f90,
3157 testsuite/libgomp.fortran/threadprivate2.f90,
3158 testsuite/libgomp.fortran/threadprivate3.f90,
3159 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3160 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3161 testsuite/libgomp.fortran/omp_parse3.f90: Require
3162 effective-target TLS.
3164 2005-11-14 Diego Novillo <dnovillo@redhat.com>
3168 2005-11-13 Jakub Jelinek <jakub@redhat.com>
3171 * team.c (initialize_team): Pass NULL rather than free as
3172 pthread_key_create destructor. Initialize thread specific data
3173 pointer in initial thread to a static local variable rather than
3176 2005-11-11 Uros Bizjak <uros@kss-loka.si>
3178 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3179 its location to ld_library_path.
3181 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3183 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3185 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3187 * testsuite/libgomp.c: Rename from libgomp.dg.
3189 2005-11-09 Diego Novillo <dnovillo@redhat.com>
3191 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3192 threadprivate variable 'i'.
3194 2005-11-09 Jakub Jelinek <jakub@redhat.com>
3196 * config/linux/s390/futex.h: New file.
3197 * configure.tgt: Use it.
3199 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3200 before the parallel.
3202 2005-11-08 Jakub Jelinek <jakub@redhat.com>
3205 * testsuite/libgomp.c++/master-1.C: New test.
3207 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3209 * testsuite/libgomp.dg/copyin-3.c: New test.
3211 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3213 * testsuite/libgomp.fortran/retval1.f90: New test.
3214 * testsuite/libgomp.fortran/vla7.f90: New test.
3216 2005-11-06 Jakub Jelinek <jakub@redhat.com>
3218 * testsuite/libgomp.fortran/vla2.f90: New test.
3219 * testsuite/libgomp.fortran/vla3.f90: New test.
3220 * testsuite/libgomp.fortran/vla4.f90: New test.
3221 * testsuite/libgomp.fortran/vla5.f90: New test.
3222 * testsuite/libgomp.fortran/vla6.f90: New test.
3224 2005-11-01 Jakub Jelinek <jakub@redhat.com>
3226 * config/linux/sparc/futex.h: New file.
3227 * configure.tgt: Use it.
3228 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3230 * critical.c: Include stdlib.h.
3231 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3232 ignoring return value.
3233 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3234 LIBGOMP_CHECK_SYNC_BUILTINS check.
3235 * configure: Rebuilt.
3237 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3239 * testsuite/libgomp.fortran/vla1.f90: New test.
3241 2005-10-31 Richard Henderson <rth@redhat.com>
3243 * testsuite/libgomp.fortran/character2.f90: Fix race condition
3244 setting 's' in different threads.
3246 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3248 * libgomp.h (attribute_hidden, ialias): Define.
3249 * config/posix/proc.c (omp_get_num_procs): Add ialias.
3250 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3251 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3252 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3253 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3254 omp_test_lock, omp_test_nest_lock): Likewise.
3255 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3256 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3257 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3258 omp_test_lock, omp_test_nest_lock): Likewise.
3259 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3260 omp_get_dynamic, omp_get_nested): Likewise.
3261 * parallel.c (omp_get_num_threads, omp_get_max_threads,
3262 omp_get_thread_num, omp_in_parallel): Likewise.
3263 * fortran.c (ialias_redirect): Define.
3264 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3265 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3266 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3267 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3268 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3269 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3270 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3271 omp_get_wtime): Add ialias_redirect.
3273 2005-10-30 Jakub Jelinek <jakub@redhat.com>
3275 * fortran.c: Include stdlib.h.
3277 2005-10-29 Jakub Jelinek <jakub@redhat.com>
3279 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3280 * Makefile.in: Regenerated.
3282 2005-10-28 Jakub Jelinek <jakub@redhat.com>
3284 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3285 * libgomp_f.h.in (omp_check_defines): New function.
3286 * env.c: Include libgomp_f.h.
3287 (initialize_env): Call omp_check_defines.
3289 * testsuite/libgomp.dg/copyin-2.c: New test.
3290 * testsuite/libgomp.c++/copyin-2.C: New test.
3291 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3293 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3294 * testsuite/libgomp.fortran/sharing2.f90: New test.
3296 * testsuite/libgomp.dg/copyin-1.c: New test.
3297 * testsuite/libgomp.c++/copyin-1.C: New test.
3299 2005-10-26 Jakub Jelinek <jakub@redhat.com>
3301 * testsuite/libgomp.fortran/crayptr1.f90: New test.
3303 * testsuite/libgomp.fortran/workshare1.f90: New test.
3305 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3307 * libgomp.fortran/sharing1.f90: New test.
3309 2005-10-24 Jakub Jelinek <jakub@redhat.com>
3312 * testsuite/libgomp.c++/loop-7.C: New test.
3314 * testsuite/libgomp.dg/nestedfn-2.c: New test.
3316 * testsuite/libgomp.dg/nestedfn-1.c: New test.
3317 * testsuite/libgomp.fortran/reduction6.f90: New test.
3318 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3320 2005-10-23 Richard Henderson <rth@redhat.com>
3322 * testsuite/libgomp.c++/ctor-1.C: New.
3323 * testsuite/libgomp.c++/ctor-2.C: New.
3324 * testsuite/libgomp.c++/ctor-3.C: New.
3325 * testsuite/libgomp.c++/ctor-4.C: New.
3326 * testsuite/libgomp.c++/ctor-5.C: New.
3327 * testsuite/libgomp.c++/ctor-6.C: New.
3328 * testsuite/libgomp.c++/ctor-7.C: New.
3329 * testsuite/libgomp.c++/ctor-8.C: New.
3330 * testsuite/libgomp.c++/ctor-9.C: New.
3332 2005-10-21 Diego Novillo <dnovillo@redhat.com>
3335 * testsuite/libgomp.c++/pr24455-1.C: New test.
3336 * testsuite/libgomp.c++/pr24455.C: New test.
3337 * testsuite/libgomp.dg/pr24455-1.c: New test.
3338 * testsuite/libgomp.dg/pr24455.c: New test.
3340 2005-10-20 Richard Henderson <rth@redhat.com>
3342 * testsuite/libgomp.c++/loop-6.C: New.
3343 * testsuite/libgomp.dg/loop-3.c: New.
3345 2005-10-20 Jakub Jelinek <jakub@redhat.com>
3347 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3349 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3352 2005-10-19 Diego Novillo <dnovillo@redhat.com>
3354 * testsuite/libgomp.fortran/jacobi.f: New test.
3356 2005-10-19 Richard Henderson <rth@redhat.com>
3358 * configure.tgt (i?86-linux): Default to with_arch instead of
3359 CFLAGS. Add -mtune to match target_cpu.
3360 (x86_64-linux): Tune to i686.
3362 * fortran.c (omp_test_nest_lock_): Fix typo.
3364 2005-10-19 Jakub Jelinek <jakub@redhat.com>
3366 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3367 gomp_ordered_sync): Do nothing if team->nthreads == 1.
3368 * testsuite/libgomp.dg/ordered-3.c: New test.
3370 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3371 Remove volatile keyword.
3373 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3374 in COMMON block to avoid warnings on 64-bit targets.
3376 2005-10-18 Diego Novillo <dnovillo@redhat.com>
3378 * testsuite/libgomp.dg/shared-3.c: New test.
3380 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3382 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3383 * testsuite/libgomp.fortran/reduction5.f90: New test.
3385 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3387 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3389 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
3390 flush loop now that __sync_synchronize has proper memory barrier.
3391 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3392 Add -ffixed-form to dg-options.
3394 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3396 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3397 from subdirectories.
3398 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3399 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3400 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3401 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3402 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3403 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3404 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3405 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3406 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3407 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3408 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3409 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3410 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3411 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3412 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3413 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3414 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3415 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3416 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3417 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3418 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3419 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3420 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3421 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3422 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3424 2005-10-17 Jakub Jelinek <jakub@redhat.com>
3426 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3427 lang_library_path exists. Use find instead of glob to gather tests.
3428 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3430 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3432 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3433 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3434 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3435 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3436 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3437 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3438 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3439 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3440 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3441 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3442 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3443 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3444 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3446 2005-10-15 Jakub Jelinek <jakub@redhat.com>
3448 * testsuite/libgomp.dg/vla-1.c: New test.
3450 * testsuite/libgomp.fortran/reference2.f90: New test.
3452 * testsuite/libgomp.fortran/character2.f90: Remove explicit
3453 declaration of omp_get_thread_num.
3454 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
3457 * testsuite/libgomp.fortran/reduction1.f90: New test.
3458 * testsuite/libgomp.fortran/reduction2.f90: New test.
3459 * testsuite/libgomp.fortran/reduction3.f90: New test.
3460 * testsuite/libgomp.fortran/reduction4.f90: New test.
3462 2005-10-13 Richard Henderson <rth@redhat.com>
3464 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3465 * Makefile.in: Regenerate.
3466 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3467 * libgomp.h: Include bar.h.
3468 (struct gomp_barrier): Remove.
3469 (struct gomp_team): Add barrier. Replace master_barrier with
3470 master_release. Replace threads with ordered_release.
3471 (struct gomp_thread): Replace barrier with release.
3472 * ordered.c (gomp_ordered_first): Update for ordered_release change.
3473 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3474 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3475 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3476 (GOMP_single_copy_end): Likewise.
3477 * team.c (gomp_threads_dock): New.
3478 (gomp_barrier_init, gomp_barrier_destroy): Remove.
3479 (gomp_thread_start): Use gomp_barrier_wait.
3480 (new_team, free_team): Update for gomp_team changes.
3481 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3482 (gomp_team_end): Use gomp_barrier_wait.
3483 (initialize_team): Update for gomp_thread changes.
3484 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3485 (gomp_work_share_end_nowait): Use atomic ops when available.
3486 * config/linux/bar.c, config/linux/bar.h: New files.
3487 * config/posix/bar.c, config/posix/bar.h: New files.
3489 2005-10-13 Jakub Jelinek <jakub@redhat.com>
3491 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3492 * testsuite/libgomp.dg/single-2.c: New test.
3494 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3495 lang_link_flags): Unset, so that they aren't inherited from previously
3498 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3500 2005-10-12 Richard Henderson <rth@redhat.com>
3502 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3503 (libgomp_init): Use lang_test_file, lang_library_path, and
3504 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
3506 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3507 (lang_test_file, lang_link_flags): New.
3508 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3510 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3511 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3512 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3513 testsuite/libgomp.c++/parallel-1.C,
3514 testsuite/libgomp.c++/reduction-1.C,
3515 testsuite/libgomp.c++/reduction-2.C,
3516 testsuite/libgomp.c++/reduction-3.C,
3517 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3518 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3519 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3520 New files, largely cribbed from the C testsuite.
3522 2005-10-12 Jakub Jelinek <jakub@redhat.com>
3524 * testsuite/libgomp.fortran/character1.f90: New test.
3525 * testsuite/libgomp.fortran/character2.f90: New test.
3527 * testsuite/libgomp.dg/nested-1.c: New test.
3528 * testsuite/libgomp.dg/nested-2.c: New test.
3529 * testsuite/libgomp.fortran/do1.f90: New test.
3530 * testsuite/libgomp.fortran/do2.f90: New test.
3532 * testsuite/libgomp.fortran/reference1.f90: New test.
3534 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3536 * testsuite/libgomp.dg/reduction-1.c: New test.
3537 * testsuite/libgomp.dg/reduction-2.c: New test.
3538 * testsuite/libgomp.dg/reduction-3.c: New test.
3540 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3542 * testsuite/libgomp.dg/atomic-1.c: New test.
3543 * testsuite/libgomp.dg/atomic-2.c: New test.
3545 2005-10-09 Richard Henderson <rth@redhat.com>
3547 * critical.c (atomic_lock): New.
3548 (initialize_critical): Initialize it.
3549 (GOMP_atomic_start, GOMP_atomic_end): New.
3550 * libgomp.map: Export them.
3551 * libgomp_g.h: Declare them.
3553 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3555 2005-10-02 Richard Henderson <rth@redhat.com>
3557 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3558 to XCFLAGS instead of CFLAGS.
3560 2005-09-30 Richard Henderson <rth@redhat.com>
3562 * configure.ac: Determine whether -pthread or -lpthread is needed.
3563 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3564 * Makefine.in, configure: Rebuild.
3566 2005-09-28 Richard Henderson <rth@redhat.com>
3568 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3569 * testsuite/libgomp.dg/omp-single-3.c: New test.
3571 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3573 * testsuite/libgomp.dg/omp-single-2.c: New test.
3574 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3576 2005-09-27 Richard Henderson <rth@redhat.com>
3578 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3579 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3581 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3583 * testsuite/libgomp.dg/omp-loop03.c: New test.
3585 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3587 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3589 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3591 * testsuite/libgomp.dg/omp-single-1.c: New test.
3592 * testsuite/libgomp.dg/shared-1.c: Return 0.
3593 Add prototype for abort.
3594 * testsuite/libgomp.dg/shared-2.c: Likewise.
3596 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3598 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3601 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3603 * testsuite/libgomp.dg/shared-1.c: New test.
3604 * testsuite/libgomp.dg/shared-2.c: New test.
3606 2005-09-24 Richard Henderson <rth@redhat.com>
3608 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3610 2005-09-24 Richard Henderson <rth@redhat.com>
3612 * iter.c (gomp_iter_static_next): Round up when computing number
3613 of iterations. Don't bother distributing a remainder equally.
3615 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3616 Don't call srand. Zero b before testing.
3619 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3621 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3622 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3624 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3626 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3627 without !$omp end do, followed immediately by subroutine end.
3629 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3631 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3633 2005-09-22 Richard Henderson <rth@redhat.com>
3635 * critical.c (GOMP_critical_name_start): Change argument to void**.
3636 Reuse the pointer space if the mutex fits.
3637 (GOMP_critical_name_end): Likewise.
3638 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3639 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3640 (GOMP_critical_name_end): Likewise.
3641 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3642 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3644 2005-09-20 Richard Henderson <rth@redhat.com>
3646 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3647 (create_lock_lock): New.
3648 (initialize_critical): Initialize it.
3649 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3650 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3652 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3654 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3656 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3658 * testsuite/libgomp.dg/omp-loop01.c: New test.
3659 * testsuite/libgomp.dg/omp-loop02.c: New test.
3661 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3663 * configure.ac (AC_PROG_FC): Add.
3664 (USE_FORTRAN): New automake conditional.
3665 * configure: Rebuilt.
3666 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3667 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3668 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3669 Add rules to build them.
3670 * Makefile.in: Rebuilt.
3671 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3673 * libgomp.map: Add Fortran wrappers.
3674 * libgomp_f.h.in: New file.
3675 * omp_lib.h.in: New file.
3676 * omp_lib.f90.in: New file.
3677 * fortran.c: New file.
3678 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3679 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3680 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3681 libgfortran has been built.
3682 * testsuite/libgomp.fortran/fortran.exp: New file.
3683 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3684 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3685 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3686 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3687 * testsuite/libgomp.fortran/omp_hello.f: New test.
3688 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3689 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3690 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3691 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3692 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3693 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3694 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3695 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3697 2005-08-30 Richard Henderson <rth@redhat.com>
3699 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3700 function for when aliases are not usable.
3701 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3702 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3703 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3704 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3705 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3706 GOMP_loop_ordered_guided_next): Likewise.
3707 * ordered.c (GOMP_ordered_start): Likewise.
3709 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3711 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3712 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3713 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3714 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3715 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3716 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3717 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3718 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3719 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3721 2005-07-07 Eric Christopher <echristo@redhat.com>
3722 Diego Novillo <dnovillo@redhat.com>
3724 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3725 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3727 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3728 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3729 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3730 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3731 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3732 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3733 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3735 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3737 * TOPLEVEL.patch: Remove.
3739 2005-05-16 Richard Henderson <rth@redhat.com>
3741 * configure.ac: Test for clock_gettime.
3742 * config.h.in, configure: Rebuild.
3743 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3744 (omp_get_wtime): Use clock_gettime if available.
3745 (omp_get_wtick): Use clock_getres if available.
3747 2005-05-11 Richard Henderson <rth@redhat.com>
3749 * config/linux/ia64/futex.h: New file.
3750 * configure.tgt: Use it.
3752 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3754 2005-05-07 Richard Henderson <rth@redhat.com>
3756 * config/linux/powerpc/futex.h: New file.
3757 * configure.tgt: Use it.
3759 * config/linux/i486/futex.h: Merge ...
3760 * config/linux/x86_64/futex.h: ... into ...
3761 * config/linux/x86/futex.h: ... here.
3762 * configure.tgt: Update to match.
3764 2005-05-06 Richard Henderson <rth@redhat.com>
3766 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3767 * config/linux/i486/futex.h: Likewise.
3768 * config/linux/x86_64/futex.h: Likewise.
3770 * config/linux/lock.c: New file.
3771 * config/linux/omp-lock.h: New file.
3773 * critical.c, env.h: Don't include omp.h
3774 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3775 * config/posix/time.c: Likewise.
3776 * config/posix/omp-lock.h: New file.
3777 * libgomp.h: Include omp-lock.h and omp.h.
3778 * Makefile.am (nodist_include_HEADERS): New.
3780 * configure.ac (PERL): New.
3781 * mkomp_h.pl: New file.
3782 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3784 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3786 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3787 build directory. Re-add -march=i486 hack.
3789 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3790 (libgomp_link_flags): Remove.
3791 (libgomp_initialized): Remove.
3792 (libgomp_init): Don't protect from reinitialization. Copy code
3793 from libstdc++ for getting the multilib set correctly.
3795 2005-05-05 Richard Henderson <rth@redhat.com>
3797 * config/linux/alpha/futex.h: New file.
3798 * configure.tgt (alpha*-*-linux*): Use it.
3800 * config/posix/mutex.c: New file.
3801 * config/posix/sem.c: Use libgomp.h.
3803 * configure.tgt (x86_64-linux): Also test CC for -m32.
3804 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3806 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3809 * Makefile.am (SUBDIRS): New.
3810 (libgomp_la_LDFLAGS): Add -lpthread.
3811 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3812 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3814 * libgomp_g.h: New file.
3815 * libgomp.h: Split out all public declarations to libgomp_g.h.
3816 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3817 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3818 * config/linux/sem.h: Likewise.
3819 * config/posix/sem.h: Likewise.
3821 * Makefile.am (AM_LDFLAGS): New.
3822 (libgomp_version_script): Split out from ...
3823 (libgomp_la_LDFLAGS): ... here.
3824 (libgomp_version_info): New.
3825 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3826 (LIBGOMP_ENABLE): New.
3827 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3828 (LIBGOMP_ENABLE_SYMVERS): New.
3829 * configure.ac (AC_INIT): Version 1.0.
3830 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3831 (enable-linux-futex): Likewise. Rename from enable-futex.
3832 (libtool_VERSION): New.
3833 (LIBGOMP_ENABLE_SYMVERS): Use it.
3834 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3835 * Makefile.in, aclocal.m4, configure: Rebuild.
3837 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3838 (gomp_mutex_unlock_slow): Fix typo.
3839 * config/linux/sem.c: Similarly.
3840 (gomp_sem_post_slow): Fix typo.
3841 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3842 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3843 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3845 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3846 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3847 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3848 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3849 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3850 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3851 LDFLAGS. Pull enable_futex check to top-level.
3852 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3853 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3855 First attempt at real configury.
3856 * Makefile, config.h: Remove file.
3857 * Makefile.am, Makefile.in: New file.
3858 * acinclude.m4 aclocal.m4: New file.
3859 * configure.ac, configure.tgt, configure: New file.
3861 * config/posix/lock.c: Rename from sys-lock.c.
3862 * config/posix/mutex.h: Rename from sys-mutex.h.
3863 * config/posix/sem.c: Rename from sys-sem.c.
3864 * config/posix/sem.h: Rename from sys-sem.h.
3865 * config/posix/proc.c: Rename from sys-proc.c.
3866 * config/posix/time.c: Rename from sys-proc.c.
3868 * config/linux/mutex.c: New file.
3869 * config/linux/mutex.h: New file.
3870 * config/linux/sem.c: New file.
3871 * config/linux/sem.h: New file.
3872 * config/linux/i486/futex.h: New file.
3873 * config/linux/x86_64/futex.h: New file.
3875 2005-05-04 Richard Henderson <rth@redhat.com>
3877 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3878 * libgomp.h: Declare them.
3879 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3880 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3882 2005-05-04 Richard Henderson <rth@redhat.com>
3884 * libgomp-1 code drop
3886 2005-05-04 Richard Henderson <rth@redhat.com>
3888 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3889 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3890 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3891 (gomp_iter_static_next): Update.
3892 (gomp_ordered_static_next): Update.
3893 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3894 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3895 totally empty range.
3896 (gomp_loop_ordered_static_next): Refine test for calling
3897 gomp_ordered_static_next.
3898 * testsuite/ordered-1.c: Add case for more threads than iterations.
3900 * iter.c (gomp_iter_runtime_next_locked): Remove.
3901 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3902 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3903 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3904 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3905 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3906 gomp_loop_ordered_guided_next): Downcase name, make static, add
3907 an external alias with the old name.
3908 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3909 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3910 switch and call one of the above static functions.
3911 * libgomp.h: Update.
3913 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3914 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3915 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3916 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3917 GOMP_loop_ordered_guided_start): Update to match.
3918 * sections.c (GOMP_sections_start): Likewise.
3919 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3921 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3922 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3923 Use bounds check instead of modulus.
3924 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3925 (gomp_ordered_last): Don't sync with ordered_owner here.
3926 (gomp_ordered_next): Likewise.
3927 (gomp_ordered_static_loop_next): Likewise.
3928 * loop.c, libgomp.h: Update to match.
3930 * libgomp.h (GOMP_barrier): Declare.
3932 * testsuite/barrier-1.c: New file.
3933 * testsuite/critical-1.c: New file.
3934 * testsuite/ordered-2.c: New file.
3935 * testsuite/ordered-1.c: New file.
3936 * testsuite/sections-1.c: New file.
3937 * testsuite/single-1.c: New file.
3938 * testsuite/Makefile (TESTS): Add them.
3940 2005-05-04 Richard Henderson <rth@redhat.com>
3942 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3943 * loop.c (GOMP_loop_static_start): If not the startup thread,
3944 acquire the mutex to wait for initialization complete.
3945 (GOMP_loop_ordered_static_start): Likewise.
3946 (GOMP_loop_ordered_runtime_start): Likewise.
3947 (GOMP_loop_ordered_static_first): Remove.
3948 (GOMP_loop_ordered_dynamic_first): Remove.
3949 (GOMP_loop_ordered_guided_first): Remove.
3950 (GOMP_loop_ordered_runtime_first): Remove.
3951 * ordered.c (gomp_ordered_loop_first): Post to own release when
3952 we're the first thread.
3953 (gomp_ordered_loop_last): Wait on release if not owner.
3954 (gomp_ordered_loop_next): Likewise.
3955 (gomp_ordered_static_loop_init): New.
3956 (gomp_ordered_static_loop_next): Use ordered_owner.
3957 (GOMP_ordered_start): Likewise.
3958 * work.c (gomp_new_work_share): Initialize ordered_owner.
3960 2005-05-03 Richard Henderson <rth@redhat.com>
3962 * Makefile (OPT): New.
3965 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3966 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3967 * libgomp.h, libgomp.map, NOTES: Update to match.
3969 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3970 Add initialized and thr members.
3971 (gomp_thread_start): Pause when initially spawned to wait for
3972 the whole team to be created.
3973 (gomp_team_start): Release team members at the end.
3975 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3976 (f_foo_1): Use GOMP_loop_end.
3977 (f_foo_2): Use GOMP_loop_end_nowait.
3979 * testsuite/loop-2.c: New file.
3980 * testsuite/Makefile (TESTS): Add it.
3982 2005-05-03 Richard Henderson <rth@redhat.com>
3984 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3985 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3986 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3989 * testsuite/Makefile: New file.
3990 * testsuite/loop-1.c: New file.
3992 2005-05-03 Richard Henderson <rth@redhat.com>
3994 Initial implementation and checkin.