1 2014-01-02 Tobias Burnus <burnus@net-b.de>
3 * libgomp.texi: Bump @copying's copyright year.
5 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
8 alloca () with __builtin_alloca ().
9 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
10 * testsuite/libgomp.c/lock-3.c: Likewise.
11 * testsuite/libgomp.c/pr48591.c: Likewise.
13 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
19 2013-12-16 Jakub Jelinek <jakub@redhat.com>
22 * testsuite/libgomp.c/pr58756.c: New test.
24 2013-12-12 Jakub Jelinek <jakub@redhat.com>
27 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
30 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
32 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
34 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
35 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
36 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
37 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
40 * libgomp_g.h: Include <stddef.h> for size_t.
42 * libgomp.spec.in: Update comment about libgomp's dependencies.
43 * configure.ac: Likewise.
44 * configure: Regenerate.
46 2013-10-16 Tobias Burnus <burnus@net-b.de>
48 * libgomp.texi: (Runtime Library Routines): Update references for
49 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
50 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
51 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
52 (Environment Variables): Update references for OpenMP 4.0. Add
53 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
54 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
57 2013-10-14 Jakub Jelinek <jakub@redhat.com>
59 * env.c (parse_bind_var): Initialize value to avoid
60 (false positive) warning.
62 2013-10-12 Jakub Jelinek <jakub@redhat.com>
65 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
67 (gomp_init_num_threads): Move i variable declaration into
68 #ifdef CPU_ALLOC_SIZE block.
69 * config/linux/affinity.c (gomp_affinity_init_level): Test
70 gomp_places_list_len == 0 rather than gomp_places_list == 0
71 when checking for topology reading error.
72 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
73 * env.c (parse_affinity): Add ignore argument, if true, don't populate
74 gomp_places_list, only parse env var and always return false.
75 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
76 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
77 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
78 and either of these variables were parsed correctly into a places
81 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
82 Jakub Jelinek <jakub@redhat.com>
84 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
86 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
87 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
88 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
89 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
90 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
91 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
92 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
93 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
95 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
97 * Makefile.am (omp_lib.mod): Streamline rule.
98 * Makefile.in: Regenerate.
100 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
103 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
104 * testsuite/libgomp.fortran/lib1.f90: Likewise.
105 * testsuite/libgomp.fortran/lib2.f: Likewise.
106 * testsuite/libgomp.fortran/lib3.f: Likewise.
108 * configure.ac: Typo fix.
109 * configure: Regenerate.
111 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
112 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
114 * omp.h.in: Don't touch the user's namespace.
116 2013-10-11 Jakub Jelinek <jakub@redhat.com>
117 Tobias Burnus <burnus@net-b.de>
118 Richard Henderson <rth@redhat.com>
120 * target.c: New file.
121 * Makefile.am (libgomp_la_SOURCES): Add target.c.
122 * Makefile.in: Regenerated.
123 * libgomp_g.h (GOMP_task): Add depend argument.
124 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
125 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
126 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
127 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
128 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
129 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
130 GOMP_taskgroup_start, GOMP_taskgroup_end,
131 GOMP_parallel_sections): New prototypes.
132 * fortran.c (omp_is_initial_device): Add ialias_redirect.
133 (omp_is_initial_device_): New function.
134 (ULP, STR1, STR2, ialias_redirect): Removed.
135 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
136 omp_set_default_device_8_, omp_get_default_device_,
137 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
139 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
140 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
141 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
143 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
144 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
145 omp_set_default_device, omp_set_default_device_,
146 omp_set_default_device_8_, omp_get_default_device,
147 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
148 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
149 omp_get_team_num_): Export @@OMP_4.0.
150 * team.c (struct gomp_thread_start_data): Add place field.
151 (gomp_thread_start): Clear thr->thread_pool and
152 thr->task before returning. Use gomp_team_barrier_wait_final
153 instead of gomp_team_barrier_wait. Initialize thr->place.
154 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
155 team_cancelled and task_queued_count fields.
156 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
157 before calling pthread_exit.
158 (gomp_free_thread): No longer static. Use
159 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
160 (gomp_team_start): Add flags argument. Set
161 thr->thread_pool->threads_busy to nthreads immediately after creating
162 new pool. Use gomp_managed_threads_lock instead of
163 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
164 (gomp_team_end): Use gomp_managed_threads_lock instead of
165 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
166 of gomp_team_barrier_wait. If team->team_cancelled, call
167 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
168 rather than thr->ts.work_share.
169 (initialize_team): Don't call gomp_sem_init here.
170 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
172 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
173 * env.c (gomp_global_icv): Add default_device_var, target_data and
174 bind_var initializers.
175 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
176 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
177 gomp_places_list_len): New variables.
178 (parse_bind_var, parse_one_place, parse_places_var): New functions.
179 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
181 (gomp_cancel_var): New global variable.
182 (parse_int): New function.
183 (handle_omp_display_env): New function.
184 (initialize_env): Use it. Initialize default_device_var.
185 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
186 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
187 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
188 been successfully parsed (and call gomp_init_affinity in that case).
189 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
190 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
191 omp_get_team_num, omp_is_initial_device): New functions.
192 * libgomp.h: Include stdlib.h.
193 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
195 (struct target_mem_desc): Forward declare.
196 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
197 and thread_limit_var fields.
198 (gomp_get_num_devices): New prototype.
199 (gomp_cancel_var): New extern decl.
200 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
201 team_cancelled and task_queued_count fields. Add comments about
202 task_{,queued_,running_}count.
203 (gomp_cancel_kind): New enum.
204 (gomp_work_share_end_cancel): New prototype.
205 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
206 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
208 (struct gomp_taskgroup): New type.
209 (struct gomp_task_depend_entry,
210 struct gomp_dependers_vec): New types.
211 (gomp_finish_task): Free depend_hash if non-NULL.
212 (struct gomp_team_state): Add place_partition_off
213 and place_partition_len fields.
214 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
215 gomp_places_list_len): New extern decls.
216 (struct gomp_thread): Add place field.
217 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
218 (gomp_init_thread_affinity): Add place argument.
219 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
220 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
221 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
222 gomp_affinity_init_level, gomp_affinity_print_place): New
224 (gomp_team_start): Add flags argument.
225 (gomp_thread_limit_var, gomp_remaining_threads_count,
226 gomp_remaining_threads_lock): Remove.
227 (gomp_managed_threads_lock): New variable.
228 (struct gomp_thread_pool): Add threads_busy field.
229 (gomp_free_thread): New prototype.
230 * task.c: Include hashtab.h.
231 (hash_entry_type): New typedef.
232 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
233 (gomp_init_task): Clear dependers, depend_hash, depend_count,
234 copy_ctors_done and taskgroup fields.
235 (GOMP_task): Add depend argument, handle depend clauses. If
236 gomp_team_barrier_cancelled or if it's taskgroup has been
237 cancelled, don't queue or start new tasks. Set copy_ctors_done
238 field if needed. Initialize taskgroup field. If copy_ctors_done
239 and already cancelled, don't discard the task. If taskgroup is
240 non-NULL, enqueue the task into taskgroup queue. Increment
241 num_children field in taskgroup. Increment task_queued_count.
242 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
243 gomp_task_run_post_remove_taskgroup): New inline functions.
244 (gomp_task_run_post_handle_depend_hash,
245 gomp_task_run_post_handle_dependers,
246 gomp_task_run_post_handle_depend): New functions.
247 (GOMP_taskwait): Use them. If more than one new tasks
248 have been queued, wake other threads if needed.
249 (gomp_barrier_handle_tasks): Likewise. If
250 gomp_team_barrier_cancelled, don't start any new tasks, just free
252 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
254 (omp_proc_bind_kind, omp_proc_bind_false,
255 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
256 omp_proc_bind_spread): New params.
257 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
258 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
259 omp_get_team_num, omp_is_initial_device): New interfaces.
260 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
261 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
262 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
263 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
264 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
265 useless use omp_lib_kinds.
266 * omp.h.in (omp_proc_bind_t): New typedef.
267 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
268 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
269 omp_get_team_num, omp_is_initial_device): New prototypes.
270 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
271 through to gomp_team_start.
272 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
273 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
274 Adjust gomp_parallel_loop_start callers.
275 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
276 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
277 GOMP_loop_end_cancel): New functions.
278 (GOMP_parallel_end): Add ialias_redirect.
279 * hashtab.h: New file.
280 * libgomp.texi (Environment Variables): Minor cleanup,
281 update section refs to OpenMP 4.0rc2.
282 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
283 environment variables.
284 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
285 team->work_shares_to_free to thr->ts.work_share before calling
287 (gomp_work_share_end_cancel): New function.
288 * config/linux/proc.c: Include errno.h.
289 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
290 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
291 sizeof (cpu_set_t) to determine number of iterations. Fix up check
292 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
293 gomp_cpuset_size is sizeof (cpu_set_t).
294 (gomp_init_num_threads): Initialize gomp_cpuset_size,
295 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
296 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
297 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
298 contain any logical CPUs.
299 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
300 is NULL. Use gomp_cpusetp instead of &cpuset and pass
301 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
302 pthread_getaffinity_np. Check gomp_places_list instead of
303 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
304 * config/linux/bar.c (gomp_barrier_wait_end,
305 gomp_barrier_wait_last): Use BAR_* defines.
306 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
307 from state where needed. Set work_share_cancelled to 0 on last
309 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
310 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
312 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
313 Add cpusetsize argument.
314 (gomp_cpuset_size, gomp_cpusetp): Declare.
315 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
316 (affinity_counter): Remove.
317 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
318 if CPU_ALLOC_SIZE isn't defined.
319 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
320 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
321 bind current thread to the first place.
322 (gomp_init_thread_affinity): Rewritten. Add place argument, just
323 pthread_setaffinity_np to gomp_places_list[place].
324 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
325 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
326 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
327 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
328 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
329 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
330 (gomp_barrier_t): Add awaited_final field.
331 (gomp_barrier_init): Initialize awaited_final field.
332 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
333 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
335 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
337 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
338 gomp_team_barrier_cancelled): New inline functions.
339 (gomp_barrier_last_thread,
340 gomp_team_barrier_set_task_pending,
341 gomp_team_barrier_clear_task_pending,
342 gomp_team_barrier_set_waiting_for_tasks,
343 gomp_team_barrier_waiting_for_tasks,
344 gomp_team_barrier_done): Use BAR_* defines.
345 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
346 (gomp_barrier_wait_end): Use BAR_* defines.
347 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
348 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
350 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
351 gomp_team_barrier_cancel): New functions.
352 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
354 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
355 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
356 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
357 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
358 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
359 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
360 (gomp_barrier_t): Add cancellable field.
361 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
362 gomp_team_barrier_cancel): New prototypes.
363 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
364 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
365 gomp_team_barrier_cancelled): New inline functions.
366 (gomp_barrier_wait_start, gomp_barrier_last_thread,
367 gomp_team_barrier_set_task_pending,
368 gomp_team_barrier_clear_task_pending,
369 gomp_team_barrier_set_waiting_for_tasks,
370 gomp_team_barrier_waiting_for_tasks,
371 gomp_team_barrier_done): Use BAR_* defines.
372 * barrier.c (GOMP_barrier_cancel): New function.
373 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
374 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
375 omp_proc_bind_spread): New params.
376 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
377 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
378 omp_get_team_num, omp_is_initial_device): New externals.
379 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
381 (gomp_resolve_num_threads): Adjust for thread_limit now being in
382 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
383 infinity. If not nested, just return minimum of max_num_threads
384 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
385 to the returned value. Otherwise, don't update atomically
386 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
387 (GOMP_parallel_end): Adjust for thread_limit now being in
388 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
389 infinity. Adjust threads_busy in the pool rather than
390 gomp_remaining_threads_count. Remember team->nthreads and call
391 gomp_team_end before adjusting threads_busy, if not nested
392 afterwards, just set it to 1 non-atomically. Add ialias.
393 (GOMP_parallel_start): Adjust gomp_team_start caller.
394 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
395 * testsuite/libgomp.c/affinity-1.c: New test.
396 * testsuite/libgomp.c/atomic-15.c: New test.
397 * testsuite/libgomp.c/atomic-16.c: New test.
398 * testsuite/libgomp.c/atomic-17.c: New test.
399 * testsuite/libgomp.c/cancel-for-1.c: New test.
400 * testsuite/libgomp.c/cancel-for-2.c: New test.
401 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
402 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
403 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
404 * testsuite/libgomp.c/cancel-sections-1.c: New test.
405 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
406 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
407 * testsuite/libgomp.c/depend-1.c: New test.
408 * testsuite/libgomp.c/depend-2.c: New test.
409 * testsuite/libgomp.c/depend-3.c: New test.
410 * testsuite/libgomp.c/depend-4.c: New test.
411 * testsuite/libgomp.c/for-1.c: New test.
412 * testsuite/libgomp.c/for-1.h: New file.
413 * testsuite/libgomp.c/for-2.c: New test.
414 * testsuite/libgomp.c/for-2.h: New file.
415 * testsuite/libgomp.c/for-3.c: New test.
416 * testsuite/libgomp.c/pr58392.c: New test.
417 * testsuite/libgomp.c/simd-1.c: New test.
418 * testsuite/libgomp.c/simd-2.c: New test.
419 * testsuite/libgomp.c/simd-3.c: New test.
420 * testsuite/libgomp.c/simd-4.c: New test.
421 * testsuite/libgomp.c/simd-5.c: New test.
422 * testsuite/libgomp.c/simd-6.c: New test.
423 * testsuite/libgomp.c/target-1.c: New test.
424 * testsuite/libgomp.c/target-2.c: New test.
425 * testsuite/libgomp.c/target-3.c: New test.
426 * testsuite/libgomp.c/target-4.c: New test.
427 * testsuite/libgomp.c/target-5.c: New test.
428 * testsuite/libgomp.c/target-6.c: New test.
429 * testsuite/libgomp.c/target-7.c: New test.
430 * testsuite/libgomp.c/taskgroup-1.c: New test.
431 * testsuite/libgomp.c/thread-limit-1.c: New test.
432 * testsuite/libgomp.c/thread-limit-2.c: New test.
433 * testsuite/libgomp.c/thread-limit-3.c: New test.
434 * testsuite/libgomp.c/udr-1.c: New test.
435 * testsuite/libgomp.c/udr-2.c: New test.
436 * testsuite/libgomp.c/udr-3.c: New test.
437 * testsuite/libgomp.c++/affinity-1.C: New test.
438 * testsuite/libgomp.c++/atomic-10.C: New test.
439 * testsuite/libgomp.c++/atomic-11.C: New test.
440 * testsuite/libgomp.c++/atomic-12.C: New test.
441 * testsuite/libgomp.c++/atomic-13.C: New test.
442 * testsuite/libgomp.c++/atomic-14.C: New test.
443 * testsuite/libgomp.c++/atomic-15.C: New test.
444 * testsuite/libgomp.c++/cancel-for-1.C: New test.
445 * testsuite/libgomp.c++/cancel-for-2.C: New test.
446 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
447 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
448 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
449 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
450 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
451 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
452 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
453 * testsuite/libgomp.c++/cancel-test.h: New file.
454 * testsuite/libgomp.c++/for-9.C: New test.
455 * testsuite/libgomp.c++/for-10.C: New test.
456 * testsuite/libgomp.c++/for-11.C: New test.
457 * testsuite/libgomp.c++/simd-1.C: New test.
458 * testsuite/libgomp.c++/simd-2.C: New test.
459 * testsuite/libgomp.c++/simd-3.C: New test.
460 * testsuite/libgomp.c++/simd-4.C: New test.
461 * testsuite/libgomp.c++/simd-5.C: New test.
462 * testsuite/libgomp.c++/simd-6.C: New test.
463 * testsuite/libgomp.c++/simd-7.C: New test.
464 * testsuite/libgomp.c++/simd-8.C: New test.
465 * testsuite/libgomp.c++/target-1.C: New test.
466 * testsuite/libgomp.c++/target-2.C: New test.
467 * testsuite/libgomp.c++/target-2-aux.cc: New file.
468 * testsuite/libgomp.c++/target-3.C: New test.
469 * testsuite/libgomp.c++/taskgroup-1.C: New test.
470 * testsuite/libgomp.c++/udr-1.C: New test.
471 * testsuite/libgomp.c++/udr-2.C: New test.
472 * testsuite/libgomp.c++/udr-3.C: New test.
473 * testsuite/libgomp.c++/udr-4.C: New test.
474 * testsuite/libgomp.c++/udr-5.C: New test.
475 * testsuite/libgomp.c++/udr-6.C: New test.
476 * testsuite/libgomp.c++/udr-7.C: New test.
477 * testsuite/libgomp.c++/udr-8.C: New test.
478 * testsuite/libgomp.c++/udr-9.C: New test.
480 2013-09-20 Jakub Jelinek <jakub@redhat.com>
483 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
486 2013-09-20 Alan Modra <amodra@gmail.com>
488 * configure: Regenerate.
490 2013-09-19 Jakub Jelinek <jakub@redhat.com>
492 * testsuite/libgomp.c/sections-2.c: New test.
494 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
496 * testsuite/libgomp.fortran/strassen.f90:
497 Add dg-skip-if aarch64_tiny.
499 2013-06-20 Iain Sandoe <iain@codesourcery.com>
500 Cesar Philippidis <cesar@codesourcery.com>
502 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
503 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
504 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
505 * testsuite/libgomp.fortran/fortran.exp: Likewise.
506 * testsuite/libgomp.graphite/graphite.exp: Likewise.
507 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
508 Use dg-runtest rather than gfortran-dg-runtest.
510 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
512 * testsuite/libgomp.c/icv-2.c: Extend current handling of
513 Linux-based x86 systems to cover all GNU systems.
514 * testsuite/libgomp.c/lock-3.c: Likewise.
515 * testsuite/libgomp.c/pr48591.c: Likewise.
517 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
519 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
520 GNU/Hurd, as done for Linux-based systems.
522 * config/posix/ptrlock.h: Fix comment.
524 2013-05-27 Tobias Burnus <burnus@net-b.de>
527 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
528 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
529 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
530 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
531 omp_destroy_nest_lock): Correct arguments to match the one in
533 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
534 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
535 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
536 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
538 2013-05-16 Jakub Jelinek <jakub@redhat.com>
540 * testsuite/libgomp.c/loop-13.c: New test.
541 * testsuite/libgomp.c/loop-14.c: New test.
542 * testsuite/libgomp.c/loop-15.c: New test.
543 * testsuite/libgomp.c++/loop-13.C: New test.
544 * testsuite/libgomp.c++/loop-14.C: New test.
545 * testsuite/libgomp.c++/loop-15.C: New test.
547 2013-02-06 Jakub Jelinek <jakub@redhat.com>
550 * testsuite/libgomp.c++/pr56217.C: New test.
552 2013-02-01 Alan Modra <amodra@gmail.com>
554 * task.c (GOMP_task, GOMP_taskwait): Comment.
556 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
557 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
560 * config/linux/wait.h (do_spin): Use atomic load for addr.
561 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
562 for intptr and ptrlock.
563 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
566 2013-01-22 Alan Modra <amodra@gmail.com>
570 * task.c (GOMP_task): Revert 2011-12-09 change.
571 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
572 barrier to read task->children..
573 (gomp_barrier_handle_tasks): ..and matching atomic store with
574 release barrier here when setting parent->children to NULL.
576 2013-01-16 Jakub Jelinek <jakub@redhat.com>
577 Tobias Burnus <burnus@net-b.de>
580 * testsuite/libgomp.fortran/fortran.exp: Use
581 -fintrinsic-modules-path= instead of
582 -fintrinsic-modules-path.
584 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
586 Update copyright years.
588 2012-12-19 Tobias Burnus <burnus@net-b.de>
590 * testsuite/libgomp.fortran/fortran.exp: Set
591 -fintrinsic-modules-path.
593 2012-12-19 Tobias Burnus <burnus@net-b.de>
595 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
596 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
598 2012-11-21 Jakub Jelinek <jakub@redhat.com>
601 * team.c (gomp_free_thread): Decrease gomp_managed_threads
602 if pool had any threads_used.
604 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
606 * testsuite/libgomp.c++/pr24455.C: Use
607 -Wl,-undefined,dynamic_lookup on darwin.
609 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
611 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
613 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
615 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
617 2012-10-23 Ian Bolton <ian.bolton@arm.com>
618 Jim MacArthur <jim.macarthur@arm.com>
619 Marcus Shawcroft <marcus.shawcroft@arm.com>
620 Nigel Stephens <nigel.stephens@arm.com>
621 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
622 Richard Earnshaw <rearnsha@arm.com>
623 Sofiane Naci <sofiane.naci@arm.com>
624 Stephen Thomas <stephen.thomas@arm.com>
625 Tejas Belagod <tejas.belagod@arm.com>
626 Yufeng Zhang <yufeng.zhang@arm.com>
628 * configure.tgt: Add AArch64.
630 2012-10-04 Jason Merrill <jason@redhat.com>
632 * testsuite/libgomp.c++/tls-init1.C: New.
634 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
636 * configure: Regenerated.
638 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
640 * config/linux/mips/futex.h (sys_futex0): Change to static
641 function with noinline, nomips16 attributes under MIPS16. Adjust
642 asm statement to place 'li v0,SYS_futex' immediately before
645 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
647 * libgomp.texi (Library Index): Renamed from "Index" to prevent
648 conflict with index.html on case-insensitive file systems.
650 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
652 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
653 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
655 2012-07-02 Richard Guenther <rguenther@suse.de>
656 Michael Matz <matz@suse.de>
657 Tobias Grosser <tobias@grosser.es>
658 Sebastian Pop <sebpop@gmail.com>
660 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
661 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
662 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
663 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
665 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
667 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
669 2012-06-22 Richard Guenther <rguenther@suse.de>
671 Merge from graphite branch
672 2012-01-13 Tobias Grosser <tobias@grosser.es>
674 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
675 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
677 2012-06-07 Jakub Jelinek <jakub@redhat.com>
680 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
681 use GOMP_barrier () call instead.
682 * testsuite/libgomp.c/pr26943-3.c: Likewise.
683 * testsuite/libgomp.c/pr26943-4.c: Likewise.
684 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
685 call GOMP_barrier instead.
686 * testsuite/libgomp.fortran/vla5.f90: Likewise.
688 2012-06-06 Jakub Jelinek <jakub@redhat.com>
691 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
692 argument to memset call.
694 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
696 * configure: Regenerated.
698 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
700 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
702 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
705 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
707 2012-03-22 Jakub Jelinek <jakub@redhat.com>
710 * testsuite/libgomp.c/pr52547.c: New test.
712 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
714 * testsuite/lib/libgomp.exp: load fortran-modules.exp
716 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
718 * configure.tgt (mips-sgi-irix6*): Remove.
720 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
722 * configure.tgt (alpha*-dec-osf*): Remove.
724 * config/osf/sem.h: Remove.
725 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
727 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
729 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
731 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
734 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
735 Remove ENABLE_SYMVERS_SOL2.
736 * configure: Regenerate.
737 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
738 (PREPROCESS): New variable.
739 (libgomp.ver): New target.
740 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
741 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
742 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
744 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
745 * Makefile.in: Regenerate.
747 2012-02-14 Walter Lee <walt@tilera.com>
749 * configure.tgt: Handle tilegx and tilepro.
750 * config/linux/tile/futex.h: New file.
752 2012-02-08 Richard Guenther <rguenther@suse.de>
754 PR tree-optimization/46886
755 * testsuite/libgomp.c/pr46886.c: New testcase.
757 2012-01-25 Matthias Klose <doko@ubuntu.com>
759 * config/linux/arm: Remove empty directory.
760 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
762 2011-12-09 Alan Modra <amodra@gmail.com>
765 * task.c (GOMP_taskwait): Don't access task->children outside of
766 task_lock mutex region.
767 (GOMP_task): Likewise.
769 2011-12-06 Jakub Jelinek <jakub@redhat.com>
772 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
774 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
775 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
776 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
777 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
778 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
780 2011-12-02 Alan Modra <amodra@gmail.com>
782 * config/linux/affinity.c: Use atomic rather than sync builtin.
783 * config/linux/lock.c: Likewise.
784 * config/linux/ptrlock.h: Likewise.
785 * config/linux/ptrlock.c: Likewise.
786 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
787 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
788 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
789 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
790 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
791 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
792 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
793 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
794 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
795 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
797 2011-11-30 Alan Modra <amodra@gmail.com>
800 * config/linux/bar.h: Use atomic rather than sync builtins.
801 * config/linux/bar.c: Likewise. Add missing acquire
802 synchronisation on generation field.
803 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
806 2011-11-30 Alan Modra <amodra@gmail.com>
808 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
809 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
810 * config/linux/mutex.h: Use atomic rather than sync builtins.
811 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
812 * config/linux/omp-lock.h: Comment fix.
813 * config/linux/arm/mutex.h: Delete.
814 * config/linux/powerpc/mutex.h: Delete.
815 * config/linux/ia64/mutex.h: Delete.
816 * config/linux/mips/mutex.h: Delete.
818 2011-11-30 Alan Modra <amodra@gmail.com>
821 * config/linux/sem.h: Rewrite.
822 * config/linux/sem.c: Rewrite.
824 2011-11-28 Richard Henderson <rth@redhat.com>
826 * libgomp.h (enum memmodel): New.
828 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
830 * configure: Regenerate.
832 2011-10-10 Matthias Klose <doko@ubuntu.com>
834 * config/posix95: Remove empty directory.
836 2011-08-26 Jakub Jelinek <jakub@redhat.com>
838 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
840 2011-08-19 Jakub Jelinek <jakub@redhat.com>
843 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
844 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
846 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
848 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
850 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
853 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
855 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
857 * config/linux/proc.h: New.
858 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
859 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
860 (gomp_init_num_threads): Update call to cpuset_popcount.
861 (get_num_procs): Ditto.
862 * config/linux/affinity.c (gomp_init_affinity): Call
863 gomp_cpuset_popcount.
865 2011-08-02 Jakub Jelinek <jakub@redhat.com>
869 * omp.h.in (omp_in_final): New prototype.
870 * omp_lib.f90.in (omp_in_final): New interface.
871 (omp_integer_kind, omp_logical_kind): Remove
872 and replace all its uses in the module with 4.
873 (openmp_version): Change to 201107.
874 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
875 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
876 kind for the parameters.
877 (omp_in_final): New external.
878 (openmp_version): Change to 201107.
879 * task.c (omp_in_final): New function.
880 (gomp_init_task): Initialize final_task.
881 (GOMP_task): Remove unused attribute from flags. Handle final
883 (GOMP_taskyield): New function.
884 (omp_in_final): Return true if if (false) or final (true) task
885 or descendant of final (true).
886 * fortran.c (omp_in_final_): New function.
887 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
888 (GOMP_3.0): Export GOMP_taskyield.
889 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
891 (parse_unsigned_long_list): New function.
892 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
893 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
894 even if parse_affinity returned false.
895 * config/linux/affinity.c (gomp_init_affinity): Handle
896 gomp_cpu_affinity_len == 0.
897 * libgomp_g.h (GOMP_taskyield): New prototype.
898 * libgomp.h (struct gomp_task): Add final_task field.
899 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
900 * team.c (gomp_team_start): Override new task's nthreads_var icv
901 if list form OMP_NUM_THREADS has been used and it has value for
902 the new nesting level.
904 * testsuite/libgomp.c/atomic-11.c: New test.
905 * testsuite/libgomp.c/atomic-12.c: New test.
906 * testsuite/libgomp.c/atomic-13.c: New test.
907 * testsuite/libgomp.c/atomic-14.c: New test.
908 * testsuite/libgomp.c/reduction-6.c: New test.
909 * testsuite/libgomp.c/task-5.c: New test.
910 * testsuite/libgomp.c++/atomic-2.C: New test.
911 * testsuite/libgomp.c++/atomic-3.C: New test.
912 * testsuite/libgomp.c++/atomic-4.C: New test.
913 * testsuite/libgomp.c++/atomic-5.C: New test.
914 * testsuite/libgomp.c++/atomic-6.C: New test.
915 * testsuite/libgomp.c++/atomic-7.C: New test.
916 * testsuite/libgomp.c++/atomic-8.C: New test.
917 * testsuite/libgomp.c++/atomic-9.C: New test.
918 * testsuite/libgomp.c++/task-8.C: New test.
919 * testsuite/libgomp.c++/reduction-4.C: New test.
920 * testsuite/libgomp.fortran/allocatable7.f90: New test.
921 * testsuite/libgomp.fortran/allocatable8.f90: New test.
922 * testsuite/libgomp.fortran/crayptr3.f90: New test.
923 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
924 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
925 * testsuite/libgomp.fortran/pointer1.f90: New test.
926 * testsuite/libgomp.fortran/pointer2.f90: New test.
927 * testsuite/libgomp.fortran/task4.f90: New test.
929 2011-08-02 Tobias Burnus <burnus@net-b.de>
931 * libgomp.texi: Update OpenMP spec references to 3.1.
932 (omp_in_final,OMP_PROC_BIND): New sections.
933 (OMP_NUM_THREADS): Document that the value can be now a list.
934 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
936 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
938 * config/linux/x86/futex.h: Check __x86_64__ instead of
941 2011-07-29 Jakub Jelinek <jakub@redhat.com>
945 * testsuite/libgomp.c/pr49897-1.c: New test.
946 * testsuite/libgomp.c/pr49897-2.c: New test.
947 * testsuite/libgomp.c/pr49898-1.c: New test.
948 * testsuite/libgomp.c/pr49898-2.c: New test.
950 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
952 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
953 for ia32 instead of ilp32.
955 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
956 * testsuite/libgomp.c/atomic-6.c: Likewise.
958 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
960 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
961 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
963 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
966 * config/osf/sem.h: New file.
967 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
969 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
972 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
975 2011-07-15 Jakub Jelinek <jakub@redhat.com>
977 * config/linux/wait.h (do_spin): New inline, largely copied
978 from do_wait, just don't do futex_wait here, instead return true if
980 (do_wait): Implement using do_spin.
981 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
983 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
984 __sync_bool_compare_and_swap, pass the oldval to
985 gomp_mutex_lock_slow.
986 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
987 If all mutex contenders are just spinning and not sleeping, don't
988 change state to 2 unnecessarily. Optimize the loop when state has
989 already become 2 to use just one atomic operation per loop instead
991 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
993 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
994 __sync_bool_compare_and_swap, pass the oldval to
995 gomp_mutex_lock_slow.
997 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1000 * iter.c (gomp_iter_static_next): For chunk size 0
1001 only use n ceil/ nthreads size for the first
1002 n % nthreads threads in the team instead of
1003 all threads except for the last few ones which
1004 get less work or none at all.
1005 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1006 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1007 chunk argument, set run_sched_modifier to 0 for static
1008 resp. 1 for other kinds. If chunk argument is 0
1009 and not static, set value to 1.
1011 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1014 * testsuite/libgomp.c++/pr49043.C: New test.
1017 * testsuite/libgomp.c++/pr48869.C: New test.
1019 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1022 * fortran.c: Include limits.h.
1024 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1026 (omp_set_num_threads_8_, omp_set_schedule_8_,
1027 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1028 omp_get_team_size_8_): Use TO_INT macro.
1029 * testsuite/libgomp.fortran/pr48894.f90: New test.
1031 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1034 * testsuite/libgomp.c/pr48591.c: New test.
1036 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1039 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1040 * configure: Regenerate.
1042 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1045 * testsuite/libgomp.fortran/task3.f90: New test.
1047 2011-02-24 Tobias Burnus <burnus@net-b.de>
1049 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1051 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1054 * libgomp.texi (omp_get_wtime): Don't say time in the past
1057 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1060 * testsuite/libgomp.fortran/fortran.exp: Check for both
1061 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1062 but $blddir != "", still append ${blddir}/${lang_library_path}
1065 2011-02-16 Tobias Burnus <burnus@net-b.de>
1068 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1069 of libquadmath.a before adding its libpath to ldflags.
1071 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1074 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1075 to FUTEX_WAIT futex syscall.
1076 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1078 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1080 * configure: Regenerate.
1082 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1085 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1087 2011-01-16 Gerald Pfeifer
1089 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1091 2010-12-14 Jakub Jelinek <jakub@redhat.com>
1094 * libgomp.fortran/allocatable6.f90: New test.
1096 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1098 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1099 * configure: Regenerate.
1101 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1105 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1106 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1107 * aclocal.m4: Regenerate.
1108 * configure: Regenerate.
1109 * Makefile.in: Regenerate.
1110 * testsuite/Makefile.in: Regenerate.
1112 2010-12-02 Jakub Jelinek <jakub@redhat.com>
1115 * libgomp.fortran/pr46753.f90: New test.
1118 * env.c (initialize_env): Default to spin count 300000
1119 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1123 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1124 at the end if sync builtins aren't supported.
1126 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1128 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1130 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1132 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1134 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
1136 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1138 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1139 Tobias Burnus <burnus@net-b.de>
1143 * configure: Regenerate.
1145 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
1147 * config/linux/futex.h: New.
1148 * config/linux/arm/mutex.h: New.
1149 * configure.tgt (arm*-*-linux*): Add config path.
1151 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
1153 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1155 2010-09-23 Tobias Burnus <burnus@net-b.de>
1157 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1158 Change Fortran datatype to LOGICAL.
1159 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1160 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1162 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1164 * configure: Regenerate.
1166 2010-07-26 Jakub Jelinek <jakub@redhat.com>
1168 * libgomp.texi: Add function keyword to a couple of Fortran
1169 interfaces, use integer instead of int for Fortran.
1171 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
1173 * libgomp.texi: Fix spelling and pasto problems throughout.
1174 Adjust prototypes to match code.
1176 2010-07-24 Tobias Burnus <burnus@net-b.de>
1178 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1179 silence -fwhole-file warning.
1181 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1183 * configure.tgt (*-*-solaris2.[56]*): Removed.
1185 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1187 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1188 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1189 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1190 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1191 targetting solaris2*.
1192 * configure: Regenerate.
1193 * config.h.in: Regenerate.
1195 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1196 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1197 Add libgomp_version_dep.
1198 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1200 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1201 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1202 * Makefile.in: Regenerate.
1204 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1205 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1206 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1207 to common block, protected by
1208 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1210 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1212 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
1214 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
1217 * configure: Regenerate.
1219 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1222 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1223 * configure: Regenerate.
1224 * Makefile.in: Regenerate.
1225 * testsuite/Makefile.in: Regenerate.
1227 2010-04-26 Jakub Jelinek <jakub@redhat.com>
1230 * testsuite/libgomp.c/pr43893.c: New test.
1231 * testsuite/libgomp.c++/pr43893.C: New test.
1233 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1236 * testsuite/libgomp.fortran/vla8.f90: New test.
1238 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1241 * config/linux/affinity.c (gomp_init_affinity): Decrease
1242 gomp_available_cpus if affinity mask confines the process to fewer
1244 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1245 non-NULL, just return gomp_available_cpus.
1248 * sections.c (gomp_sections_init): Initialize ws->mode.
1250 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
1252 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1253 not unused bar variable.
1254 * configure: Regenerate.
1256 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1258 * Makefile.in: Regenerate.
1259 * aclocal.m4: Regenerate.
1260 * testsuite/Makefile.in: Regenerate.
1262 2010-03-22 Jakub Jelinek <jakub@redhat.com>
1265 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1266 (initialize_env): Adjust callers.
1267 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1268 when the argument is 0.
1270 * testsuite/libgomp.c/pr42942.c: New test.
1272 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1276 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1277 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1279 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1281 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1282 * testsuite/libgomp.c++/task-6.C: Likewise.
1284 2010-01-28 Steve Ellcey <sje@cup.hp.com>
1286 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1288 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
1290 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1291 * configure: Regenerate.
1293 2010-01-26 Jakub Jelinek <jakub@redhat.com>
1296 * testsuite/libgomp.fortran/allocatable5.f90: New test.
1298 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
1300 * configure.ac: Test for executability of GFORTRAN.
1301 * configure: Regenerate.
1303 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1305 * configure: Regenerate.
1307 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
1310 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1312 2010-01-03 Richard Guenther <rguenther@suse.de>
1314 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1316 2009-12-23 Sebastian Pop <sebpop@gmail.com>
1318 * testsuite/libgomp.graphite/pr4118.c: New.
1320 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1322 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1323 for darwin, protect the test with require-effective-target tls_runtime.
1324 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1326 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1329 * testsuite/lib/libgomp.exp: Provide -B options to allow for
1330 link spec %s substitutions for static libraries.
1332 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
1335 * libgomp.graphite/force-parallel-2.c: Reduce array size.
1337 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1339 * Makefile.in: Regenerate.
1340 * configure: Regenerate.
1341 * testsuite/Makefile.in: Regenerate.
1343 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1345 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1346 settings for LC_ALL and LANG.
1348 2009-11-25 Jakub Jelinek <jakub@redhat.com>
1351 * testsuite/libgomp.fortran/pr42162.f90: New test.
1353 2009-11-13 Jakub Jelinek <jakub@redhat.com>
1356 * testsuite/libgomp.c/pr42029.c: New test.
1358 2009-10-26 Jakub Jelinek <jakub@redhat.com>
1360 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1361 *s. Accept ld version without text in ()s.
1362 * configure: Regenerated.
1364 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1366 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1368 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1371 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1372 or a hyphen (happens with fortran language disabled).
1373 * configure: Regenerate.
1375 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1377 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1378 use sed script portable to Solaris /bin/sed for extracting ld
1380 * configure: Regenerate.
1382 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1384 * testsuite/libgomp.graphite/bounds.c: New test.
1386 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1388 * Makefile.am (libgomp_la_LINK): New.
1389 * Makefile.in: Regenerate.
1391 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1393 * configure.ac (AC_PREREQ): Bump to 2.64.
1395 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1397 * Makefile.am (install-html, install-pdf): Remove.
1398 * Makefile.in: Regenerate.
1400 * Makefile.in: Regenerate.
1401 * aclocal.m4: Regenerate.
1402 * config.h.in: Regenerate.
1403 * configure: Regenerate.
1404 * testsuite/Makefile.in: Regenerate.
1406 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1408 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1409 * Makefile.in: Regenerate.
1411 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
1413 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1414 * Makefile.in: Regenerate.
1416 2009-08-19 Tobias Burnus <burnus@net-b.de>
1419 omp_lib.h.in: Fix -std=f95 errors.
1422 2009-08-14 David Edelsohn <edelsohn@gnu.org>
1424 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1425 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1426 * testsuite/libgomp.graphite/graphite.exp: New.
1428 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
1430 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1433 2009-08-04 David Daney <ddaney@caviumnetworks.com>
1435 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1436 needed memory barrier semantics.
1437 * config/linux/mips/mutex.h: New file.
1439 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1441 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1443 2009-07-16 Joseph Myers <joseph@codesourcery.com>
1445 * configure: Regenerate.
1447 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
1452 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1453 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1454 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1456 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1458 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1459 options when choosing a multilib.
1461 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
1463 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1464 ld_library_path. Use add_path. Add just find_libgcc_s to
1465 ld_library_path, not every libgcc multilib directory.
1466 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1467 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1468 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1470 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1472 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
1474 * Makefile.am (LTLDFLAGS): Define.
1476 * Makefile.in: Regenerate.
1478 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1481 * testsuite/libgomp.fortran/fortran.exp: Don't link with
1482 libgfortranbegin, check existence of libgfortran.a instead of
1485 2009-05-20 Jakub Jelinek <jakub@redhat.com>
1488 * team.c (gomp_thread_start): Destroy thr->release semaphore.
1489 (gomp_free_pool_helper): Likewise.
1491 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
1492 Jakub Jelinek <jakub@redhat.com>
1495 * testsuite/libgomp.fortran/workshare2.f90: New test.
1497 2009-04-09 Nick Clifton <nickc@redhat.com>
1499 * iter.c: Change copyright header to refer to version 3 of the
1500 GNU General Public License with version 3.1 of the GCC Runtime
1501 Library Exception and to point readers at the COPYING3 and
1502 COPYING3.RUNTIME files and the FSF's license web page.
1503 * alloc.c: Likewise.
1504 * barrier.c: Likewise.
1505 * config/bsd/proc.c: Likewise.
1506 * config/linux/affinity.c: Likewise.
1507 * config/linux/alpha/futex.h: Likewise.
1508 * config/linux/bar.c: Likewise.
1509 * config/linux/bar.h: Likewise.
1510 * config/linux/ia64/futex.h: Likewise.
1511 * config/linux/ia64/mutex.h: Likewise.
1512 * config/linux/lock.c: Likewise.
1513 * config/linux/mips/futex.h: Likewise.
1514 * config/linux/mutex.c: Likewise.
1515 * config/linux/mutex.h: Likewise.
1516 * config/linux/powerpc/futex.h: Likewise.
1517 * config/linux/proc.c: Likewise.
1518 * config/linux/ptrlock.c: Likewise.
1519 * config/linux/ptrlock.h: Likewise.
1520 * config/linux/s390/futex.h: Likewise.
1521 * config/linux/sem.c: Likewise.
1522 * config/linux/sem.h: Likewise.
1523 * config/linux/sparc/futex.h: Likewise.
1524 * config/linux/wait.h: Likewise.
1525 * config/linux/x86/futex.h: Likewise.
1526 * config/mingw32/proc.c: Likewise.
1527 * config/mingw32/time.c: Likewise.
1528 * config/posix/affinity.c: Likewise.
1529 * config/posix/bar.c: Likewise.
1530 * config/posix/bar.h: Likewise.
1531 * config/posix/lock.c: Likewise.
1532 * config/posix/mutex.h: Likewise.
1533 * config/posix/proc.c: Likewise.
1534 * config/posix/ptrlock.h: Likewise.
1535 * config/posix/sem.c: Likewise.
1536 * config/posix/sem.h: Likewise.
1537 * config/posix/time.c: Likewise.
1538 * config/posix95/lock.c: Likewise.
1539 * critical.c: Likewise.
1541 * error.c: Likewise.
1542 * fortran.c: Likewise.
1543 * iter_ull.c: Likewise.
1544 * libgomp.h: Likewise.
1545 * libgomp_f.h.in: Likewise.
1546 * libgomp_g.h: Likewise.
1548 * loop_ull.c: Likewise.
1549 * omp.h.in: Likewise.
1550 * omp_lib.f90.in: Likewise.
1551 * omp_lib.h.in: Likewise.
1552 * ordered.c: Likewise.
1553 * parallel.c: Likewise.
1554 * sections.c: Likewise.
1555 * single.c: Likewise.
1560 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1562 * testsuite/config/default.exp: Change copyright header to refer to
1563 version 3 of the GNU General Public License and to point readers
1564 at the COPYING3 file and the FSF's license web page.
1566 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1569 * libgomp.c++/pr39573.C: New test.
1571 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1574 * testsuite/libgomp.c/pr39591-1.c: New test.
1575 * testsuite/libgomp.c/pr39591-2.c: New test.
1576 * testsuite/libgomp.c/pr39591-3.c: New test.
1578 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1580 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1581 * testsuite/libgomp.c/atomic-6.c: Ditto.
1583 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1586 * testsuite/libgomp.c/loop-12.c: New test.
1587 * testsuite/libgomp.c/loop-11.c: New test.
1588 * testsuite/libgomp.c++/loop-11.C: New test.
1589 * testsuite/libgomp.c++/loop-12.C: New test.
1590 * testsuite/libgomp.c++/for-8.C: New test.
1592 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1594 * configure: Regenerate.
1596 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1599 * testsuite/libgomp.c/pr39154.c: New test.
1601 2009-01-30 Ian Lance Taylor <iant@google.com>
1603 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1604 libgomp_ld_is_gold. Get gold version number.
1605 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1606 * configure: Rebuild.
1608 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1610 * testsuite/lib/libgomp.exp: Add -B option for targets that
1611 use libgfortran.a%s in their specs.
1613 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1616 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1617 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1618 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1619 * configure: Regenerated.
1620 * config.h.in: Likewise.
1622 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1625 * testsuite/libgomp.c/pr38650.c: New test.
1626 * testsuite/libgomp.c++/pr38650.C: New test.
1628 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1630 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1632 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1634 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1636 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1638 * configure: Regenerate.
1640 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1643 * testsuite/libgomp.c/pr36802-1.c: New test.
1644 * testsuite/libgomp.c/pr36802-2.c: New test.
1645 * testsuite/libgomp.c/pr36802-3.c: New test.
1647 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1650 * config/linux/powerpc/mutex.h: New.
1652 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1655 * testsuite/libgomp.c++/for-7.C: New test.
1658 * testsuite/libgomp.c++/for-6.C: New test.
1660 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1663 * testsuite/lib/libgomp.exp: Include new timeout library files.
1664 (libgomp_target_compile): Set timeout value from new proc.
1666 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1669 * config/linux/ia64/mutex.h: New.
1671 2008-11-04 Tobias Burnus <burnus@net-b.de>
1674 * libgomp.texi (Runtime library routines, environment variables):
1675 Update for OpenMP version 3.0.
1677 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1678 Steve Ellcey <sje@cup.hp.com>
1680 * configure: Regenerate for new libtool.
1681 * Makefile.in: Ditto.
1682 * testsuite/Makefile.in: Ditto.
1684 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1685 Andreas Tobler <a.tobler@schweiz.org>
1687 * config/bsd/proc.c: New file.
1688 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1689 * configure.ac: Check for header <sys/sysctl.h>
1690 * configure: Regenerate.
1691 * config.h.in: Likewise.
1693 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1695 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1697 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1699 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1700 * Makefile.in: Regenerated.
1701 * testsuite/Makefile.in: Regenerated.
1703 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1705 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1706 depend on blddir if blddir exists.
1707 (libgomp_target_compile): Likewise.
1708 * testsuite/libgomp.c++/c++.exp: Likewise.
1709 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1711 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1713 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1714 Do not list GPL as Invariant Section.
1716 2008-07-28 Ilie Garbacea <ilie@mips.com>
1717 Chao-ying Fu <fu@mips.com>
1719 * configure.tgt: Enable futex for MIPS.
1720 * config/linux/mips/futex.h: New file.
1722 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1724 * team.c (gomp_team_end): Free team immediately if it has
1727 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1729 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1730 * testsuite/libgomp.fortran/fortran.exp: Same.
1731 * testsuite/libgomp.c/c.exp: Same.
1732 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1733 directory to library path first.
1735 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1737 * env.c (parse_stacksize): Add cast to avoid warning.
1738 (parse_spincount): Likewise.
1740 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1742 * testsuite/libgomp.c/loop-10.c: New test.
1743 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1744 * libgomp.c++/loop-6.C (main): Likewise.
1747 * testsuite/libgomp.c/debug-1.c: New test.
1749 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1751 * testsuite/libgomp.c/nqueens-1.c: New test.
1754 * testsuite/libgomp.c++/task-7.C: New function.
1756 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1758 * configure: Regenerate.
1760 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1762 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1763 mutex when HAVE_SYNC_BUILTINS isn't defined.
1765 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1767 * libgomp.texi (omp_test_lock): Fix typo.
1769 2008-06-12 Tobias Burnus <burnus@net-b.de>
1771 * omp_lib.f90.in: Add "implicit none".
1773 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1776 * testsuite/libgomp.c/reduction-5.c: New test.
1778 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1780 * libgomp.h (struct gomp_task): Add in_tied_task field.
1781 * task.c (gomp_init_task): Initialize it.
1782 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1783 unconditionally. Don't call gomp_team_barrier_wake if
1784 current task is implicit or if(0) from implicit and number of
1785 running tasks is equal to nthreads - 1.
1788 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1789 omp_get_team_size_8): Fix pastos.
1792 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1793 * configure: Regenerated.
1794 * config.h.in: Regenerated.
1795 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1798 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1801 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1802 (GOMP_loop_ull_dynamic_start): Likewise.
1803 (GOMP_loop_ull_guided_start): Likewise.
1804 (GOMP_loop_ull_ordered_static_start): Likewise.
1805 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1806 (GOMP_loop_ull_ordered_guided_start): Likewise.
1808 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1809 Richard Henderson <rth@redhat.com>
1810 Ulrich Drepper <drepper@redhat.com>
1811 Jakob Blomer <jakob.blomer@ira.uka.de>
1813 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1814 Substitute also OMP_*LOCK_25*.
1815 * configure: Regenerated.
1816 * config.h.in: Regenerated.
1817 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1818 ptrlock.c and task.c.
1819 * Makefile.in: Regenerated.
1820 * testsuite/Makefile.in: Regenerated.
1822 * loop_ull.c: New file.
1823 * iter_ull.c: New file.
1824 * libgomp.h: Include ptrlock.h.
1825 (enum gomp_task_kind): New type.
1826 (struct gomp_team): Add task_lock, task_queue, task_count,
1827 task_running_count, single_count fields. Add
1828 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1829 Remove work_share_lock, generation_mask,
1830 oldest_live_gen, num_live_gen and init_work_shares fields, add
1831 work work_share_list_alloc, work_share_list_free and work_share_chunk
1832 fields. Change work_shares from pointer to pointers into an array.
1833 Change ordered_release field into gomp_sem_t ** from flexible array
1834 member. Add implicit_task and initial_work_shares fields.
1835 Move close to the end of the struct.
1836 (struct gomp_team_state): Add single_count, last_work_share,
1837 active_level and level fields, remove work_share_generation.
1838 (gomp_barrier_handle_tasks): New prototype.
1839 (gomp_finish_task): New inline function.
1840 (struct gomp_work_share): Move chunk_size, end, incr into
1841 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1842 next_ll fields. Reshuffle fields. Add next_alloc,
1843 next_ws, next_free and inline_ordered_team_ids fields, change
1844 ordered_team_ids into pointer from flexible array member.
1845 Add mode field. Put lock and next into a different cache line
1846 from most of the write-once fields.
1847 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1848 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1849 gomp_iter_ull_guided_next): New prototypes.
1850 (gomp_new_icv): New prototype.
1851 (struct gomp_thread): Add thread_pool and task fields.
1852 (struct gomp_thread_pool): New type.
1853 (gomp_new_team): New prototype.
1854 (gomp_team_start): Change type of last argument.
1855 (gomp_new_work_share): Removed.
1856 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1857 (gomp_work_share_init_done): New static inline.
1858 (gomp_throttled_spin_count_var, gomp_available_cpus,
1859 gomp_managed_threads): New extern decls.
1860 (gomp_init_task): New prototype.
1861 (gomp_spin_count_var): New extern var decl.
1862 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1863 or no alias support, or if not PIC.
1864 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1865 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1866 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1867 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1868 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1869 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1870 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1871 gomp_test_nest_lock_25): New prototypes.
1872 (omp_lock_symver, strong_alias): Define.
1873 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1875 (gomp_end_task): New.
1876 (struct gomp_task_icv, gomp_global_icv): New.
1877 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1878 (struct gomp_task): New.
1879 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1880 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1882 (gomp_schedule_type): Reorder enum to match
1884 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1886 (gomp_thread_start): Add gomp_team_barrier_wait call.
1887 For non-nested case remove clearing of docked thread thr fields.
1888 Use pool fields instead of global gomp_* variables. Use
1889 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1890 Create tasks for each member thread.
1891 (free_team): Only destroy team barrier, task_lock here and free it.
1892 (gomp_free_thread): Free last_team if non-NULL.
1893 (gomp_team_end): Call gomp_team_barrier_wait instead of
1894 gomp_barrier_wait. For nested case call one extra
1895 gomp_barrier_wait. Move here some destruction from free_team.
1896 Call free_team on pool->last_team if any, rather than freeing
1897 current team. Destroy work_share_list_free_lock ifndef
1899 (gomp_new_icv): New function.
1900 (gomp_threads, gomp_threads_size, gomp_threads_used,
1901 gomp_threads_dock): Removed.
1902 (gomp_thread_destructor): New variable.
1903 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1905 (gomp_team_start): Create new pool if current thread doesn't have
1906 one. Use pool fields instead of global gomp_* variables.
1907 Initialize thread_pool field for new threads. Clear single_count.
1908 Change last argument from ws to team, don't create
1909 new team, set ts.work_share to &team->work_shares[0] and clear
1910 ts.last_work_share. Don't clear ts.work_share_generation.
1911 If number of threads changed, adjust atomically gomp_managed_threads.
1912 Use gomp_init_task instead of gomp_new_task,
1913 set thr->task to the corresponding implicit_task array entry.
1914 Create tasks for each member thread. Initialize ts.level.
1915 (initialize_team): Call pthread_key_create on
1916 gomp_thread_destructor.
1917 (team_destructor): New function.
1918 (new_team): Removed.
1919 (gomp_new_team): New function.
1920 (free_team): Free gomp_work_share blocks chained through next_alloc,
1921 instead of freeing work_shares and destroying work_share_lock.
1922 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1923 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1924 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1925 of gomp_barrier_wait.
1926 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1927 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1928 if gomp_work_share_start returned true. Don't unlock ws->lock.
1929 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1930 of gomp_barrier_wait.
1931 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1932 gomp_work_share_init_done if gomp_work_share_start returned true.
1933 Don't unlock ws->lock.
1934 * work.c: Include stddef.h.
1935 (free_work_share): Use work_share_list_free_lock instead
1936 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1937 Call gomp_fini_work_share and then either free ws if orphaned, or
1938 put it into work_share_list_free list of the current team.
1939 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1941 (gomp_work_share_start, gomp_work_share_end,
1942 gomp_work_share_end_nowait): Rewritten.
1943 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1944 (openmp_version): Set to 200805.
1945 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1946 omp_sched_guided, omp_sched_auto): New parameters.
1947 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1948 omp_set_max_active_levels, omp_get_max_active_levels,
1949 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1950 omp_get_active_level): New interfaces.
1951 * omp_lib.h.in (openmp_version): Set to 200805.
1952 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1953 omp_sched_guided, omp_sched_auto): New parameters.
1954 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1955 omp_set_max_active_levels, omp_get_max_active_levels,
1956 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1957 omp_get_active_level): New externals.
1958 * loop.c: Include limits.h.
1959 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1961 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1962 Likewise. Use gomp_icv.
1963 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1964 ts.static_trip here.
1965 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1966 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1967 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1968 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1969 don't unlock ws->lock, otherwise lock it.
1970 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1971 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1972 (gomp_parallel_loop_start): Call gomp_new_team instead of
1973 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1974 Adjust gomp_team_start caller. Pass 0 as second argument to
1975 gomp_resolve_num_threads.
1976 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1977 If adding ws->chunk_size nthreads + 1 times after end won't
1978 overflow, set ws->mode to 1.
1979 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1980 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1981 GOMP_loop_ull_ordered_static_start,
1982 GOMP_loop_ull_ordered_dynamic_start,
1983 GOMP_loop_ull_ordered_guided_start,
1984 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1985 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1986 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1987 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1988 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1990 * libgomp.map: Export lock routines also @@OMP_2.0.
1991 (GOMP_loop_ordered_dynamic_first,
1992 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1993 GOMP_loop_ordered_static_first): Remove.
1994 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1995 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1996 GOMP_loop_ull_ordered_dynamic_next,
1997 GOMP_loop_ull_ordered_dynamic_start,
1998 GOMP_loop_ull_ordered_guided_next,
1999 GOMP_loop_ull_ordered_guided_start,
2000 GOMP_loop_ull_ordered_runtime_next,
2001 GOMP_loop_ull_ordered_runtime_start,
2002 GOMP_loop_ull_ordered_static_next,
2003 GOMP_loop_ull_ordered_static_start,
2004 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2005 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2006 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2007 (omp_set_schedule, omp_get_schedule,
2008 omp_get_thread_limit, omp_set_max_active_levels,
2009 omp_get_max_active_levels, omp_get_level,
2010 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2011 omp_set_schedule_, omp_set_schedule_8_,
2012 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2013 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2014 omp_get_max_active_levels_, omp_get_level_,
2015 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2016 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2017 New exports @@OMP_3.0.
2018 * omp.h.in (omp_sched_t): New type.
2019 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2020 omp_set_max_active_levels, omp_get_max_active_levels,
2021 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2022 omp_get_active_level): New prototypes.
2023 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2024 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2025 gomp_thread_limit_var, gomp_remaining_threads_count,
2026 gomp_remaining_threads_lock): New variables.
2027 (parse_spincount): New function.
2028 (initialize_env): Call gomp_init_num_threads unconditionally.
2029 Initialize gomp_available_cpus. Call parse_spincount,
2030 initialize gomp_{,throttled_}spin_count_var
2031 depending on presence and value of OMP_WAIT_POLICY and
2032 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2033 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2034 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2035 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2036 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2037 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2038 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2039 (gomp_global_icv): New.
2040 (parse_schedule): Use it. Parse "auto".
2041 (omp_set_num_threads): Use gomp_icv.
2042 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2044 (omp_get_max_threads): Move from parallel.c.
2045 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2046 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2048 (parse_stacksize, parse_wait_policy): New functions.
2049 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2050 both wrappers for compatibility and new locks.
2051 (omp_set_schedule, omp_get_schedule,
2052 omp_get_thread_limit, omp_set_max_active_levels,
2053 omp_get_max_active_levels, omp_get_level,
2054 omp_get_ancestor_thread_num, omp_get_team_size,
2055 omp_get_active_level): New ialias_redirect.
2056 (omp_set_schedule_, omp_set_schedule_8_,
2057 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2058 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2059 omp_get_max_active_levels_, omp_get_level_,
2060 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2061 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2063 * parallel.c: Include limits.h.
2064 (gomp_resolve_num_threads): Add count argument. Rewritten.
2065 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2066 argument to gomp_team_start. Pass 0 as second argument to
2067 gomp_resolve_num_threads.
2068 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2069 if gomp_thread_limit_var != ULONG_MAX.
2070 (omp_in_parallel): Implement using ts.active_level.
2071 (omp_get_max_threads): Move to env.c.
2072 (omp_get_level, omp_get_ancestor_thread_num,
2073 omp_get_team_size, omp_get_active_level): New functions,
2075 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2076 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2077 gomp_iter_dynamic_next instead of the _locked variant and don't take
2078 lock around it, otherwise acquire it before calling
2079 gomp_iter_dynamic_next_locked.
2080 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2081 gomp_iter_dynamic_next instead of the _locked variant and don't take
2083 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2084 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2085 Adjust gomp_team_start caller. Pass count as second argument to
2086 gomp_resolve_num_threads, don't adjust num_threads after the call.
2088 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2089 ws->chunk_size by incr.
2090 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2092 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2094 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2095 (omp_check_defines): Check even the compat defines.
2096 * config/linux/ptrlock.c: New file.
2097 * config/linux/ptrlock.h: New file.
2098 * config/linux/wait.h: New file.
2099 * config/posix/ptrlock.c: New file.
2100 * config/posix/ptrlock.h: New file.
2101 * config/linux/bar.h (gomp_team_barrier_wait,
2102 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2103 (gomp_team_barrier_set_task_pending,
2104 gomp_team_barrier_clear_task_pending,
2105 gomp_team_barrier_set_waiting_for_tasks,
2106 gomp_team_barrier_waiting_for_tasks,
2107 gomp_team_barrier_done): New inlines.
2108 (gomp_barrier_t): Rewritten.
2109 (gomp_barrier_state_t): New typedef.
2110 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2111 gomp_barrier_wait_start): Rewritten.
2112 (gomp_barrier_wait_end): Change second argument to
2113 gomp_barrier_state_t.
2114 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2116 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2118 (gomp_barrier_wait_end): Rewritten.
2119 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2120 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2121 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2122 (gomp_barrier_state_t): New typedef.
2123 (gomp_team_barrier_wait,
2124 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2125 (gomp_barrier_wait_start): Or all but low 2 bits from generation
2126 into the return value. Return gomp_barrier_state_t.
2127 (gomp_team_barrier_set_task_pending,
2128 gomp_team_barrier_clear_task_pending,
2129 gomp_team_barrier_set_waiting_for_tasks,
2130 gomp_team_barrier_waiting_for_tasks,
2131 gomp_team_barrier_done): New inlines.
2132 (gomp_barrier_wait_end): Change second argument to
2133 gomp_barrier_state_t.
2134 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2136 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2137 (gomp_barrier_wait_end): Change second argument to
2138 gomp_barrier_state_t.
2139 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2140 gomp_team_barrier_wake): New functions.
2141 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2143 (gomp_futex_wake, gomp_futex_wait): New variables.
2144 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2145 * config/linux/lock.c: Rewrite to make locks task owned,
2146 for backwards compatibility provide the old entrypoints
2147 if symbol versioning. Include wait.h instead of libgomp.h and
2149 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2150 * config/posix95/lock.c: Rewrite to make locks task owned,
2151 for backwards compatibility provide the old entrypoints
2152 if symbol versioning.
2153 * config/posix/lock.c: Rewrite to make locks task owned,
2154 for backwards compatibility provide the old entrypoints
2155 if symbol versioning.
2156 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2157 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2158 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2159 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2160 (sys_futex0): Return error code.
2161 (futex_wake, futex_wait): If ENOSYS was returned, clear
2162 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2163 (cpu_relax, atomic_write_barrier): New static inlines.
2164 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2165 (futex_wake, futex_wait): If ENOSYS was returned, clear
2166 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2167 (cpu_relax, atomic_write_barrier): New static inlines.
2168 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2169 (sys_futex0): Return error code.
2170 (futex_wake, futex_wait): If ENOSYS was returned, clear
2171 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2172 (cpu_relax, atomic_write_barrier): New static inlines.
2173 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2174 (sys_futex0): Return error code.
2175 (futex_wake, futex_wait): If ENOSYS was returned, clear
2176 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2177 (cpu_relax, atomic_write_barrier): New static inlines.
2178 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2179 (sys_futex0): Return error code.
2180 (futex_wake, futex_wait): If ENOSYS was returned, clear
2181 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2182 (cpu_relax, atomic_write_barrier): New static inlines.
2183 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2184 (sys_futex0): Return error code.
2185 (futex_wake, futex_wait): If ENOSYS was returned, clear
2186 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2187 (cpu_relax, atomic_write_barrier): New static inlines.
2188 * config/linux/sem.c: Include wait.h instead of libgomp.h and
2190 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2191 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2192 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2194 (omp_nest_lock_t): Change owner into void *, add lock field.
2195 * config/posix95/omp-lock.h: Include semaphore.h.
2196 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2197 (omp_lock_t): Use sem_t instead of mutex if semaphores
2199 (omp_nest_lock_t): Likewise. Change owner to void *.
2200 * config/posix/omp-lock.h: Include semaphore.h.
2201 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2202 (omp_lock_t): Use sem_t instead of mutex if semaphores
2204 (omp_nest_lock_t): Likewise. Add owner field.
2206 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2208 * testsuite/libgomp.c/collapse-1.c: New test.
2209 * testsuite/libgomp.c/collapse-2.c: New test.
2210 * testsuite/libgomp.c/collapse-3.c: New test.
2211 * testsuite/libgomp.c/icv-1.c: New test.
2212 * testsuite/libgomp.c/icv-2.c: New test.
2213 * testsuite/libgomp.c/lib-2.c: New test.
2214 * testsuite/libgomp.c/lock-1.c: New test.
2215 * testsuite/libgomp.c/lock-2.c: New test.
2216 * testsuite/libgomp.c/lock-3.c: New test.
2217 * testsuite/libgomp.c/loop-4.c: New test.
2218 * testsuite/libgomp.c/loop-5.c: New test.
2219 * testsuite/libgomp.c/loop-6.c: New test.
2220 * testsuite/libgomp.c/loop-7.c: New test.
2221 * testsuite/libgomp.c/loop-8.c: New test.
2222 * testsuite/libgomp.c/loop-9.c: New test.
2223 * testsuite/libgomp.c/nested-3.c: New test.
2224 * testsuite/libgomp.c/nestedfn-6.c: New test.
2225 * testsuite/libgomp.c/sort-1.c: New test.
2226 * testsuite/libgomp.c/task-1.c: New test.
2227 * testsuite/libgomp.c/task-2.c: New test.
2228 * testsuite/libgomp.c/task-3.c: New test.
2229 * testsuite/libgomp.c/task-4.c: New test.
2230 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2231 to C++ testsuite default compiler options.
2232 * testsuite/libgomp.c++/collapse-1.C: New test.
2233 * testsuite/libgomp.c++/collapse-2.C: New test.
2234 * testsuite/libgomp.c++/ctor-10.C: New test.
2235 * testsuite/libgomp.c++/for-1.C: New test.
2236 * testsuite/libgomp.c++/for-2.C: New test.
2237 * testsuite/libgomp.c++/for-3.C: New test.
2238 * testsuite/libgomp.c++/for-4.C: New test.
2239 * testsuite/libgomp.c++/for-5.C: New test.
2240 * testsuite/libgomp.c++/loop-8.C: New test.
2241 * testsuite/libgomp.c++/loop-9.C: New test.
2242 * testsuite/libgomp.c++/loop-10.C: New test.
2243 * testsuite/libgomp.c++/task-1.C: New test.
2244 * testsuite/libgomp.c++/task-2.C: New test.
2245 * testsuite/libgomp.c++/task-3.C: New test.
2246 * testsuite/libgomp.c++/task-4.C: New test.
2247 * testsuite/libgomp.c++/task-5.C: New test.
2248 * testsuite/libgomp.c++/task-6.C: New test.
2249 * testsuite/libgomp.fortran/allocatable1.f90: New test.
2250 * testsuite/libgomp.fortran/allocatable2.f90: New test.
2251 * testsuite/libgomp.fortran/allocatable3.f90: New test.
2252 * testsuite/libgomp.fortran/allocatable4.f90: New test.
2253 * testsuite/libgomp.fortran/collapse1.f90: New test.
2254 * testsuite/libgomp.fortran/collapse2.f90: New test.
2255 * testsuite/libgomp.fortran/collapse3.f90: New test.
2256 * testsuite/libgomp.fortran/collapse4.f90: New test.
2257 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2258 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2259 * testsuite/libgomp.fortran/lib4.f90: New test.
2260 * testsuite/libgomp.fortran/lock-1.f90: New test.
2261 * testsuite/libgomp.fortran/lock-2.f90: New test.
2262 * testsuite/libgomp.fortran/nested1.f90: New test.
2263 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2264 * testsuite/libgomp.fortran/strassen.f90: New test.
2265 * testsuite/libgomp.fortran/tabs1.f90: New test.
2266 * testsuite/libgomp.fortran/tabs2.f: New test.
2267 * testsuite/libgomp.fortran/task1.f90: New test.
2268 * testsuite/libgomp.fortran/task2.f90: New test.
2269 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2270 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2271 * testsuite/libgomp.c/pr26943-2.c: Likewise.
2272 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2273 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2275 2008-05-23 Jakub Jelinek <jakub@redhat.com>
2278 * testsuite/libgomp.c++/ctor-11.C: New test.
2279 * testsuite/libgomp.c++/ctor-12.C: New test.
2281 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2283 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2285 2008-05-07 Jakub Jelinek <jakub@redhat.com>
2288 * testsuite/libgomp.c/atomic-5.c: New test.
2289 * testsuite/libgomp.c/atomic-6.c: New test.
2290 * testsuite/libgomp.c/autopar-1.c: New test.
2292 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2294 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2295 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2296 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2297 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2298 * configure: Regenerate.
2299 * Makefile.in, testsuite/Makefile.in: Likewise.
2301 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2304 * aclocal.m4: Regenerate.
2305 * configure: Regenerate.
2307 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2310 * testsuite/libgomp.c/atomic-4.c: New test.
2313 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2314 (gomp_iter_guided_next): Likewise.
2315 * testsuite/libgomp.c/pr35625.c: New test.
2317 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2319 * aclocal.m4: Regenerate.
2320 * configure: Likewise.
2321 * Makefile.in: Likewise.
2322 * testsuite/Makefile.in: Likewise.
2324 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2327 * testsuite/libgomp.c++/pr35185.C: New test.
2329 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2332 * testsuite/libgomp.c/pr35549.c: New test.
2334 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2336 * testsuite/libgomp.c/atomic-3.c: New test.
2338 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2341 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2344 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
2347 * configure.ac: Add ACX_HEADER_STRING.
2348 * env.c: Include strings.h.
2349 * aclocal.m4: Regenerate.
2350 * config.h.in: Regenerate.
2351 * configure: Regenerate.
2352 * Makefile.in: Regenerate.
2353 * testsuite/Makefile.in: Regenerate.
2355 2008-02-15 Jakub Jelinek <jakub@redhat.com>
2358 * testsuite/libgomp.c/pr35196.c: New test.
2361 * testsuite/libgomp.fortran/pr35130.f90: New test.
2362 * testsuite/libgomp.c/pr35130.c: New test.
2364 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2367 * testsuite/libgomp.c/pr33880.c: New test.
2368 * testsuite/libgomp.fortran/pr33880.f90: New test.
2370 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2372 * configure: Regenerate.
2374 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2376 * configure.ac: Move futex checking into ../config/futex.m4.
2377 * configure: Rebuilt.
2378 * aclocal.m4: Rebuilt.
2379 * Makefile.in: Rebuilt.
2381 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2382 2007-10-15 ../config/tls.m4 change.
2384 2007-12-19 Jakub Jelinek <jakub@redhat.com>
2387 * testsuite/libgomp.c/pr34513.c: New test.
2388 * testsuite/libgomp.c++/pr34513.C: New test.
2390 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
2393 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2395 2007-12-04 Jakub Jelinek <jakub@redhat.com>
2397 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
2399 2007-12-03 Jakub Jelinek <jakub@redhat.com>
2401 * testsuite/libgomp.c/private-1.c: New test.
2403 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
2404 Paolo Bonzini <bonzini@gnu.org>
2406 * Makefile.am: Use space as vpath separator. Use 'vpath %'
2407 instead of 'VPATH ='.
2408 * Makefile.in: Regenerate.
2410 2007-11-23 Matthias Klose <doko@ubuntu.com>
2412 * configure.ac: Adjust makeinfo version check.
2413 * configure: Regenerate.
2415 2007-11-10 Jakub Jelinek <jakub@redhat.com>
2418 * testsuite/libgomp.fortran/pr34020.f90: New test.
2420 2007-11-06 Jakub Jelinek <jakub@redhat.com>
2423 * testsuite/libgomp.c++/atomic-1.C: New test.
2425 2007-10-25 Jakub Jelinek <jakub@redhat.com>
2428 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2429 Make x and y integers rather than (implicit) reals. Add private (j)
2430 clause to the last omp parallel.
2432 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
2434 * configure: Regenerate following changes to ../config/tls.m4.
2436 2007-09-28 Jakub Jelinek <jakub@redhat.com>
2438 * testsuite/libgomp.fortran/stack.f90: New test.
2440 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2442 * config/mingw32/proc.c: New file.
2444 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
2446 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2447 (main): Use __get_cpuid to get i386 target fetaures.
2448 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2449 (main): Use __get_cpuid to get x86_64 target fetaures.
2451 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
2454 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2455 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2457 2007-07-12 Jakub Jelinek <jakub@redhat.com>
2460 * testsuite/libgomp.fortran/pr32550.f90: New test.
2461 * testsuite/libgomp.fortran/crayptr2.f90: New test.
2463 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2465 * aclocal.m4: Regenerated.
2467 2007-07-05 Tobias Burnus <burnus@net-b.de>
2470 * testsuite/libgomp.fortran/pr32359.f90: New.
2472 2007-07-02 Jakub Jelinek <jakub@redhat.com>
2475 * sections.c (GOMP_parallel_sections_start): Only decrease
2476 number of threads to COUNT if dyn_var is true.
2477 * testsuite/libgomp.c/pr32468.c: New test.
2479 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2482 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2484 2007-06-21 Jakub Jelinek <jakub@redhat.com>
2487 * testsuite/libgomp.c/pr32362-1.c: New test.
2488 * testsuite/libgomp.c/pr32362-2.c: New test.
2489 * testsuite/libgomp.c/pr32362-3.c: New test.
2491 2007-06-07 Jakub Jelinek <jakub@redhat.com>
2493 * team.c (gomp_team_start): Fix setting up thread_attr
2496 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2498 * configure: Regenerate.
2500 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2502 * Makefile.in: Regenerate.
2503 * configure: Regenerate.
2504 * aclocal.m4: Regenerate.
2505 * testsuite/Makefile.in: Regenerate.
2507 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2509 * config/linux/proc.c: New file.
2512 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2514 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2516 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2518 2007-04-16 Matthias Klose <doko@debian.org>
2520 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2521 flags if not building with -m64.
2522 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2523 flag for i?86-*-* targets, if current target matches -m64.
2525 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2527 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2528 * Makefile.in: Regenerate.
2530 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2533 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2535 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2537 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2539 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2541 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2542 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2543 (parse_affinity): New function.
2544 (initialize_env): Call it and gomp_init_affinity.
2545 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2546 create new pthread_attr_t and call gomp_init_thread_affinity
2547 on it for each thread before passing the attribute to pthread_create.
2548 * config/linux/affinity.c: New file.
2549 * config/posix/affinity.c: New file.
2550 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2551 * configure: Rebuilt.
2552 * config.h.in: Rebuilt.
2553 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2554 * Makefile.in: Rebuilt.
2556 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2558 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2560 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2561 and use it if found.
2563 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2565 * testsuite/config/default.exp: New file.
2566 * testsuite/lib/libgomp.exp: New file.
2567 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2568 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2569 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2570 (libgomp_load): Remove.
2571 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2572 always_ld_library_path, not ld_library_path. Set additional_flags
2573 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2574 (target_compile): Do not call libgomp_init. Append lang_library_path
2575 and lang_link_flags to options.
2576 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2577 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2579 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2580 always_ld_library_path. Set LD_LIBRARY_PATH here.
2581 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2582 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2583 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2585 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2586 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2587 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2588 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2589 * testsuite/libgomp.c/atomic-10.c: Ditto.
2591 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2593 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2594 dg-final cleanup-modules line.
2595 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2596 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2597 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2598 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2599 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2600 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2601 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2603 2007-03-18 Andreas Schwab <schwab@suse.de>
2605 * acinclude.m4: Adjust regular expression for ld version
2607 * configure: Regenerate.
2609 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2611 * Makefile.am: Add install-pdf target as copied from
2612 automake v1.10 rules.
2613 * Makefile.in: Regenerate
2615 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2618 * configure: Regenerate.
2621 * testsuite/libgomp.c++/pr30703.C: New test.
2623 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2626 2006-07-05 Eric Christopher <echristo@apple.com>
2627 * configure.ac: Depend addition of -pthread on host OS.
2628 * configure: Regenerate.
2630 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2632 * libgomp.texi: Fix spacing after abbreviations.
2634 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2637 * configure.ac: Add check for makeinfo
2638 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2639 if an appropiate version of makeinfo is found.
2640 * aclocal.m4: Regenerated.
2641 * configure: Regenerated.
2642 * Makefile.in: Regenerated.
2643 * testsuite/Makefile.in: Regenerated.
2645 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2648 * libgomp.texi: More about implementation-dependent settings.
2650 2007-01-26 Tobias Burnus <burnus@net-b.de>
2652 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2654 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2657 * testsuite/libgomp.c/pr30494.c: New test.
2659 2007-01-15 Tom Tromey <tromey@redhat.com>
2661 * configure: Rebuilt.
2662 * configure.ac: Fixed comment.
2664 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2666 * libgomp.texi: Document implementation specific default values of
2667 environment variables.
2669 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2672 * libgomp.texi: New file.
2673 * configure.ac: Add --enable-generated-files-in-srcdir option.
2674 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2676 * Makefile.in: Regenerated.
2677 * config.h.in: Regenerated.
2678 * testsuite/Makefile.in: Regenerated.
2681 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2684 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2686 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2688 * configure: Regenerate.
2690 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2693 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2694 start if there shouldn't be any loop iterations.
2695 (gomp_loop_ordered_static_start): Remove start == end test.
2696 * testsuite/libgomp.c/pr29947-1.c: New test.
2697 * testsuite/libgomp.c/pr29947-2.c: New test.
2699 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2701 * configure.tgt: Force initial-exec TLS model on Linux only.
2703 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2705 * configure: Regenerated.
2707 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2709 * env.c (parse_schedule): Reject out of range values.
2710 (parse_unsigned_long): Reject out of range, negative or zero values.
2712 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2715 * testsuite/libgomp.fortran/pr29629.f90: New test.
2717 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2720 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2721 * config/posix95: New directory.
2722 * config/posix95/omp-lock.h: New file.
2723 * config/posix95/lock.c: Likewise.
2725 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2727 * aclocal.m4: Regenerate.
2728 * configure: Regenerate.
2730 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2732 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2735 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2737 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2739 * configure: Regenerate.
2740 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2742 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2746 * testsuite/libgomp.c/nestedfn-4.c: New test.
2747 * testsuite/libgomp.c/nestedfn-5.c: New test.
2748 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2751 * testsuite/libgomp.fortran/condinc1.f: New test.
2752 * testsuite/libgomp.fortran/condinc2.f: New test.
2753 * testsuite/libgomp.fortran/condinc3.f90: New test.
2754 * testsuite/libgomp.fortran/condinc4.f90: New test.
2755 * testsuite/libgomp.fortran/condinc1.inc: New file.
2757 2006-09-18 Tom Tromey <tromey@redhat.com>
2759 * configure: Rebuilt.
2761 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2764 PR preprocessor/14634
2765 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2767 * configure: Regenerate.
2769 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2771 * testsuite/libgomp.fortran/reduction3.f90: Change
2772 -2147483648 to -huge(i)-1 to avoid overflow.
2773 * testsuite/libgomp.fortran/reduction4.f90: Change
2774 Z'ffffffff' to not(0) to avoid overflow.
2776 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2779 * Makefile.am (libsubincludedir): New.
2780 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2781 * Makefile.in: Regenerate.
2783 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2786 * env.c: Include ctype.h.
2787 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2788 leading and/or trailing whitespace and compare strings case
2791 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2794 * testsuite/libgomp.fortran/pr28390.f: New test.
2796 2006-07-05 Eric Christopher <echristo@apple.com>
2798 * configure.ac: Depend addition of -pthread on host OS.
2799 * configure: Regenerate.
2801 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2803 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2804 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2807 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2811 * configure.ac: If neither --enable-linux-futex nor
2812 --disable-linux-futex is passed, determine the default by checking
2813 for compiling and/or running against NPTL. With --enable-linux-futex,
2814 check if SYS_gettid and SYS_futex are defined.
2815 * configure: Rebuilt.
2817 2006-06-14 Richard Henderson <rth@redhat.com>
2820 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2821 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2823 2006-06-09 Richard Henderson <rth@redhat.com>
2825 * env.c (gomp_nthreads_var): Change to unsigned long.
2826 (gomp_run_sched_chunk): Likewise.
2827 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2828 (initialize_env): Initialize gomp_thread_attr.
2829 * libgomp.h (gomp_nthreads_var): Update decl.
2830 (gomp_run_sched_chunk): Likewise.
2831 (gomp_thread_attr): Declare.
2832 * team.c (gomp_thread_attr): Export.
2833 (initialize_team): Don't initialize it.
2835 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2838 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2839 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2841 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2843 * config/mingw32/time.c: New file.
2844 * configure.tgt: Use it.
2846 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2848 * Makefile.am: Add install-html target. Add install-html to .PHONY
2849 * Makefile.in: Regenerate.
2851 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2854 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2855 * testsuite/libgomp.c/critical-1.c: Likewise.
2856 * testsuite/libgomp.c/loop-1.c: Likewise.
2857 * testsuite/libgomp.c/loop-2.c: Likewise.
2858 * testsuite/libgomp.c/single-1.c: Likewise.
2859 * testsuite/libgomp.c/ordered-1.c: Likewise.
2860 * testsuite/libgomp.c/ordered-2.c: Likewise.
2862 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2865 * libgomp.fortran/pr27416-1.f90: New test.
2867 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2870 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2871 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2873 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2876 * testsuite/libgomp.c/pr26943-1.c: New test.
2877 * testsuite/libgomp.c/pr26943-2.c: New test.
2878 * testsuite/libgomp.c/pr26943-3.c: New test.
2879 * testsuite/libgomp.c/pr26943-4.c: New test.
2880 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2881 * testsuite/libgomp.c++/pr26943.C: New test.
2883 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2886 * testsuite/libgomp.c++/pr27337.C: New test.
2888 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2891 * testsuite/libgomp.c/pr26171.c: New test.
2893 2006-04-25 Richard Henderson <rth@redhat.com>
2896 * configure.ac: Use GCC_CHECK_TLS.
2897 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2898 * Makefile.in, aclocal.m4, configure: Regenerate.
2900 2006-04-10 Matthias Klose <doko@debian.org>
2902 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2903 directory names containing underscores.
2905 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2908 * testsuite/libgomp.c++/pr26691.C: New test.
2910 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2912 * testsuite/libgomp.fortran/retval2.f90: New test.
2914 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2916 * testsuite/libgomp.c++: New directory.
2918 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2920 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2921 * config/posix/sem.c: Implement the above.
2923 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2925 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2926 define HAVE_BROKEN_POSIX_SEMAPHORES.
2927 * configure: Rebuilt.
2928 * config.h.in: Rebuilt.
2930 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2933 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2934 for the other pthread check.
2935 * configure: Regenerate.
2936 * config.h.in: Regenerate.
2938 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2942 * Makefile.am (fincludedir): New variable.
2943 (nodist_include_HEADERS): Remove Fortran files.
2944 (nodist_finclude_HEADERS): New variable.
2945 * Makefile.in: Regenerated.
2947 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2949 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2950 Remove tests for returning assumed character length arrays.
2952 2006-02-12 Roger Sayle <roger@eyesopen.com>
2953 John David Anglin <dave@hiauly1.hia.nrc.ca>
2956 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2958 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2960 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2962 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2964 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2965 part of LD_LIBRARY_PATH manually.
2967 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2970 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2973 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2976 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2977 * configure.ac (PERL): Don't set.
2978 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2979 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2980 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2981 * omp.h.in: Wrap the new configure substitutions with @ characters.
2982 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2983 * aclocal.m4, configure, Makefile.in: Regenerate.
2984 * mkomp_h.pl: Delete.
2986 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2989 * configure.ac: Use GCC_HEADER_STDINT.
2990 * libgomp.h: Include gstdint.h.
2991 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2992 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2994 2006-01-24 Richard Henderson <rth@redhat.com>
2997 * configure.ac: Add AM_MAINTAINER_MODE.
2998 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3000 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3002 * Makefile.in: Regenerate.
3003 * testsuite/Makefile.in: Regenerate.
3004 * aclocal.m4: Regenerate.
3006 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3008 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3010 * configure.ac: Add check for loadavg.h.
3011 (link_gomp): Adjust comment.
3012 * configure: Regenerate.
3013 * config.h.in: Regenerate.
3015 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3018 * configure.ac: Remove check for alloca.h.
3019 * configure: Regenerate.
3020 * config.h.in: Regenerate.
3021 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3022 * team.c: Remove use of alloca.h.
3023 Call gomp_alloca instead of alloca.
3025 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3028 * team.c: Add include of alloca.h.
3029 * configure.ac: Add check for alloca.h.
3030 * configure: Regenerate.
3031 * config.h.in: Regenerate.
3033 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3036 * testsuite/libgomp.fortran/pr25219.f90: New test.
3038 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3040 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3041 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3042 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3043 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3044 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3045 testsuite/libgomp.fortran/threadprivate1.f90,
3046 testsuite/libgomp.fortran/threadprivate2.f90,
3047 testsuite/libgomp.fortran/threadprivate3.f90,
3048 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3049 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3050 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3051 effective-target to TLS runtime.
3053 * testsuite/libgomp.fortran/pr25162.f: Require
3054 effective-target TLS runtime.
3056 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3058 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3059 * testsuite/libgomp.c/nestedfn-3.c: New test.
3061 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3064 * testsuite/libgomp.fortran/pr25162.f: New test.
3066 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3068 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3069 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3071 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3073 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3074 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3075 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3076 single.c, team.c, work.c, config/linux/alpha/futex.h,
3077 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3078 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3079 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3080 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3081 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3082 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3083 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3086 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3088 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3089 to nodist_noinst_HEADERS.
3090 * Makefile.in: Rebuilt.
3092 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3093 add integer count field.
3094 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3095 omp_nest_lock_t type change.
3096 (omp_init_nest_lock): Likewise. Initialize count to 0.
3097 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3099 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3101 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3102 Increment count if successful and return the new nesting level.
3103 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3104 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3105 * testsuite/libgomp.c/lib-1.c: New test.
3106 * testsuite/libgomp.fortran/lib1.f90: New test.
3107 * testsuite/libgomp.fortran/lib2.f: New test.
3108 * testsuite/libgomp.fortran/lib3.f: New test.
3110 2005-11-17 Richard Henderson <rth@redhat.com>
3113 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3114 * configure.ac (link_gomp): New. Substitute it.
3115 (AC_CONFIG_FILES): Add libgomp.spec.
3116 * libgomp.spec.in: New file.
3117 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3118 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3120 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3122 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3123 reduction(-:var) behaving the same as reduction(+:var).
3124 * testsuite/libgomp.c/reduction-4.c: New test.
3126 2005-11-15 Uros Bizjak <uros@kss-loka.si>
3128 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3129 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3130 testsuite/libgomp.c/copyin-3.c,
3131 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3132 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3133 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3134 testsuite/libgomp.c++/pr24455.C,
3135 testsuite/libgomp.fortran/threadprivate1.f90,
3136 testsuite/libgomp.fortran/threadprivate2.f90,
3137 testsuite/libgomp.fortran/threadprivate3.f90,
3138 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3139 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3140 testsuite/libgomp.fortran/omp_parse3.f90: Require
3141 effective-target TLS.
3143 2005-11-14 Diego Novillo <dnovillo@redhat.com>
3147 2005-11-13 Jakub Jelinek <jakub@redhat.com>
3150 * team.c (initialize_team): Pass NULL rather than free as
3151 pthread_key_create destructor. Initialize thread specific data
3152 pointer in initial thread to a static local variable rather than
3155 2005-11-11 Uros Bizjak <uros@kss-loka.si>
3157 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3158 its location to ld_library_path.
3160 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3162 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3164 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3166 * testsuite/libgomp.c: Rename from libgomp.dg.
3168 2005-11-09 Diego Novillo <dnovillo@redhat.com>
3170 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3171 threadprivate variable 'i'.
3173 2005-11-09 Jakub Jelinek <jakub@redhat.com>
3175 * config/linux/s390/futex.h: New file.
3176 * configure.tgt: Use it.
3178 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3179 before the parallel.
3181 2005-11-08 Jakub Jelinek <jakub@redhat.com>
3184 * testsuite/libgomp.c++/master-1.C: New test.
3186 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3188 * testsuite/libgomp.dg/copyin-3.c: New test.
3190 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3192 * testsuite/libgomp.fortran/retval1.f90: New test.
3193 * testsuite/libgomp.fortran/vla7.f90: New test.
3195 2005-11-06 Jakub Jelinek <jakub@redhat.com>
3197 * testsuite/libgomp.fortran/vla2.f90: New test.
3198 * testsuite/libgomp.fortran/vla3.f90: New test.
3199 * testsuite/libgomp.fortran/vla4.f90: New test.
3200 * testsuite/libgomp.fortran/vla5.f90: New test.
3201 * testsuite/libgomp.fortran/vla6.f90: New test.
3203 2005-11-01 Jakub Jelinek <jakub@redhat.com>
3205 * config/linux/sparc/futex.h: New file.
3206 * configure.tgt: Use it.
3207 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3209 * critical.c: Include stdlib.h.
3210 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3211 ignoring return value.
3212 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3213 LIBGOMP_CHECK_SYNC_BUILTINS check.
3214 * configure: Rebuilt.
3216 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3218 * testsuite/libgomp.fortran/vla1.f90: New test.
3220 2005-10-31 Richard Henderson <rth@redhat.com>
3222 * testsuite/libgomp.fortran/character2.f90: Fix race condition
3223 setting 's' in different threads.
3225 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3227 * libgomp.h (attribute_hidden, ialias): Define.
3228 * config/posix/proc.c (omp_get_num_procs): Add ialias.
3229 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3230 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3231 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3232 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3233 omp_test_lock, omp_test_nest_lock): Likewise.
3234 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3235 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3236 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3237 omp_test_lock, omp_test_nest_lock): Likewise.
3238 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3239 omp_get_dynamic, omp_get_nested): Likewise.
3240 * parallel.c (omp_get_num_threads, omp_get_max_threads,
3241 omp_get_thread_num, omp_in_parallel): Likewise.
3242 * fortran.c (ialias_redirect): Define.
3243 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3244 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3245 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3246 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3247 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3248 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3249 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3250 omp_get_wtime): Add ialias_redirect.
3252 2005-10-30 Jakub Jelinek <jakub@redhat.com>
3254 * fortran.c: Include stdlib.h.
3256 2005-10-29 Jakub Jelinek <jakub@redhat.com>
3258 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3259 * Makefile.in: Regenerated.
3261 2005-10-28 Jakub Jelinek <jakub@redhat.com>
3263 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3264 * libgomp_f.h.in (omp_check_defines): New function.
3265 * env.c: Include libgomp_f.h.
3266 (initialize_env): Call omp_check_defines.
3268 * testsuite/libgomp.dg/copyin-2.c: New test.
3269 * testsuite/libgomp.c++/copyin-2.C: New test.
3270 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3272 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3273 * testsuite/libgomp.fortran/sharing2.f90: New test.
3275 * testsuite/libgomp.dg/copyin-1.c: New test.
3276 * testsuite/libgomp.c++/copyin-1.C: New test.
3278 2005-10-26 Jakub Jelinek <jakub@redhat.com>
3280 * testsuite/libgomp.fortran/crayptr1.f90: New test.
3282 * testsuite/libgomp.fortran/workshare1.f90: New test.
3284 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3286 * libgomp.fortran/sharing1.f90: New test.
3288 2005-10-24 Jakub Jelinek <jakub@redhat.com>
3291 * testsuite/libgomp.c++/loop-7.C: New test.
3293 * testsuite/libgomp.dg/nestedfn-2.c: New test.
3295 * testsuite/libgomp.dg/nestedfn-1.c: New test.
3296 * testsuite/libgomp.fortran/reduction6.f90: New test.
3297 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3299 2005-10-23 Richard Henderson <rth@redhat.com>
3301 * testsuite/libgomp.c++/ctor-1.C: New.
3302 * testsuite/libgomp.c++/ctor-2.C: New.
3303 * testsuite/libgomp.c++/ctor-3.C: New.
3304 * testsuite/libgomp.c++/ctor-4.C: New.
3305 * testsuite/libgomp.c++/ctor-5.C: New.
3306 * testsuite/libgomp.c++/ctor-6.C: New.
3307 * testsuite/libgomp.c++/ctor-7.C: New.
3308 * testsuite/libgomp.c++/ctor-8.C: New.
3309 * testsuite/libgomp.c++/ctor-9.C: New.
3311 2005-10-21 Diego Novillo <dnovillo@redhat.com>
3314 * testsuite/libgomp.c++/pr24455-1.C: New test.
3315 * testsuite/libgomp.c++/pr24455.C: New test.
3316 * testsuite/libgomp.dg/pr24455-1.c: New test.
3317 * testsuite/libgomp.dg/pr24455.c: New test.
3319 2005-10-20 Richard Henderson <rth@redhat.com>
3321 * testsuite/libgomp.c++/loop-6.C: New.
3322 * testsuite/libgomp.dg/loop-3.c: New.
3324 2005-10-20 Jakub Jelinek <jakub@redhat.com>
3326 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3328 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3331 2005-10-19 Diego Novillo <dnovillo@redhat.com>
3333 * testsuite/libgomp.fortran/jacobi.f: New test.
3335 2005-10-19 Richard Henderson <rth@redhat.com>
3337 * configure.tgt (i?86-linux): Default to with_arch instead of
3338 CFLAGS. Add -mtune to match target_cpu.
3339 (x86_64-linux): Tune to i686.
3341 * fortran.c (omp_test_nest_lock_): Fix typo.
3343 2005-10-19 Jakub Jelinek <jakub@redhat.com>
3345 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3346 gomp_ordered_sync): Do nothing if team->nthreads == 1.
3347 * testsuite/libgomp.dg/ordered-3.c: New test.
3349 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3350 Remove volatile keyword.
3352 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3353 in COMMON block to avoid warnings on 64-bit targets.
3355 2005-10-18 Diego Novillo <dnovillo@redhat.com>
3357 * testsuite/libgomp.dg/shared-3.c: New test.
3359 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3361 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3362 * testsuite/libgomp.fortran/reduction5.f90: New test.
3364 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3366 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3368 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
3369 flush loop now that __sync_synchronize has proper memory barrier.
3370 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3371 Add -ffixed-form to dg-options.
3373 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3375 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3376 from subdirectories.
3377 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3378 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3379 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3380 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3381 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3382 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3383 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3384 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3385 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3386 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3387 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3388 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3389 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3390 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3391 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3392 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3393 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3394 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3395 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3396 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3397 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3398 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3399 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3400 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3401 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3403 2005-10-17 Jakub Jelinek <jakub@redhat.com>
3405 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3406 lang_library_path exists. Use find instead of glob to gather tests.
3407 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3409 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3411 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3412 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3413 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3414 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3415 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3416 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3417 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3418 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3419 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3420 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3421 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3422 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3423 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3425 2005-10-15 Jakub Jelinek <jakub@redhat.com>
3427 * testsuite/libgomp.dg/vla-1.c: New test.
3429 * testsuite/libgomp.fortran/reference2.f90: New test.
3431 * testsuite/libgomp.fortran/character2.f90: Remove explicit
3432 declaration of omp_get_thread_num.
3433 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
3436 * testsuite/libgomp.fortran/reduction1.f90: New test.
3437 * testsuite/libgomp.fortran/reduction2.f90: New test.
3438 * testsuite/libgomp.fortran/reduction3.f90: New test.
3439 * testsuite/libgomp.fortran/reduction4.f90: New test.
3441 2005-10-13 Richard Henderson <rth@redhat.com>
3443 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3444 * Makefile.in: Regenerate.
3445 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3446 * libgomp.h: Include bar.h.
3447 (struct gomp_barrier): Remove.
3448 (struct gomp_team): Add barrier. Replace master_barrier with
3449 master_release. Replace threads with ordered_release.
3450 (struct gomp_thread): Replace barrier with release.
3451 * ordered.c (gomp_ordered_first): Update for ordered_release change.
3452 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3453 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3454 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3455 (GOMP_single_copy_end): Likewise.
3456 * team.c (gomp_threads_dock): New.
3457 (gomp_barrier_init, gomp_barrier_destroy): Remove.
3458 (gomp_thread_start): Use gomp_barrier_wait.
3459 (new_team, free_team): Update for gomp_team changes.
3460 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3461 (gomp_team_end): Use gomp_barrier_wait.
3462 (initialize_team): Update for gomp_thread changes.
3463 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3464 (gomp_work_share_end_nowait): Use atomic ops when available.
3465 * config/linux/bar.c, config/linux/bar.h: New files.
3466 * config/posix/bar.c, config/posix/bar.h: New files.
3468 2005-10-13 Jakub Jelinek <jakub@redhat.com>
3470 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3471 * testsuite/libgomp.dg/single-2.c: New test.
3473 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3474 lang_link_flags): Unset, so that they aren't inherited from previously
3477 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3479 2005-10-12 Richard Henderson <rth@redhat.com>
3481 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3482 (libgomp_init): Use lang_test_file, lang_library_path, and
3483 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
3485 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3486 (lang_test_file, lang_link_flags): New.
3487 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3489 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3490 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3491 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3492 testsuite/libgomp.c++/parallel-1.C,
3493 testsuite/libgomp.c++/reduction-1.C,
3494 testsuite/libgomp.c++/reduction-2.C,
3495 testsuite/libgomp.c++/reduction-3.C,
3496 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3497 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3498 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3499 New files, largely cribbed from the C testsuite.
3501 2005-10-12 Jakub Jelinek <jakub@redhat.com>
3503 * testsuite/libgomp.fortran/character1.f90: New test.
3504 * testsuite/libgomp.fortran/character2.f90: New test.
3506 * testsuite/libgomp.dg/nested-1.c: New test.
3507 * testsuite/libgomp.dg/nested-2.c: New test.
3508 * testsuite/libgomp.fortran/do1.f90: New test.
3509 * testsuite/libgomp.fortran/do2.f90: New test.
3511 * testsuite/libgomp.fortran/reference1.f90: New test.
3513 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3515 * testsuite/libgomp.dg/reduction-1.c: New test.
3516 * testsuite/libgomp.dg/reduction-2.c: New test.
3517 * testsuite/libgomp.dg/reduction-3.c: New test.
3519 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3521 * testsuite/libgomp.dg/atomic-1.c: New test.
3522 * testsuite/libgomp.dg/atomic-2.c: New test.
3524 2005-10-09 Richard Henderson <rth@redhat.com>
3526 * critical.c (atomic_lock): New.
3527 (initialize_critical): Initialize it.
3528 (GOMP_atomic_start, GOMP_atomic_end): New.
3529 * libgomp.map: Export them.
3530 * libgomp_g.h: Declare them.
3532 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3534 2005-10-02 Richard Henderson <rth@redhat.com>
3536 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3537 to XCFLAGS instead of CFLAGS.
3539 2005-09-30 Richard Henderson <rth@redhat.com>
3541 * configure.ac: Determine whether -pthread or -lpthread is needed.
3542 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3543 * Makefine.in, configure: Rebuild.
3545 2005-09-28 Richard Henderson <rth@redhat.com>
3547 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3548 * testsuite/libgomp.dg/omp-single-3.c: New test.
3550 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3552 * testsuite/libgomp.dg/omp-single-2.c: New test.
3553 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3555 2005-09-27 Richard Henderson <rth@redhat.com>
3557 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3558 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3560 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3562 * testsuite/libgomp.dg/omp-loop03.c: New test.
3564 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3566 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3568 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3570 * testsuite/libgomp.dg/omp-single-1.c: New test.
3571 * testsuite/libgomp.dg/shared-1.c: Return 0.
3572 Add prototype for abort.
3573 * testsuite/libgomp.dg/shared-2.c: Likewise.
3575 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3577 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3580 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3582 * testsuite/libgomp.dg/shared-1.c: New test.
3583 * testsuite/libgomp.dg/shared-2.c: New test.
3585 2005-09-24 Richard Henderson <rth@redhat.com>
3587 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3589 2005-09-24 Richard Henderson <rth@redhat.com>
3591 * iter.c (gomp_iter_static_next): Round up when computing number
3592 of iterations. Don't bother distributing a remainder equally.
3594 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3595 Don't call srand. Zero b before testing.
3598 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3600 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3601 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3603 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3605 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3606 without !$omp end do, followed immediately by subroutine end.
3608 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3610 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3612 2005-09-22 Richard Henderson <rth@redhat.com>
3614 * critical.c (GOMP_critical_name_start): Change argument to void**.
3615 Reuse the pointer space if the mutex fits.
3616 (GOMP_critical_name_end): Likewise.
3617 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3618 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3619 (GOMP_critical_name_end): Likewise.
3620 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3621 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3623 2005-09-20 Richard Henderson <rth@redhat.com>
3625 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3626 (create_lock_lock): New.
3627 (initialize_critical): Initialize it.
3628 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3629 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3631 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3633 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3635 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3637 * testsuite/libgomp.dg/omp-loop01.c: New test.
3638 * testsuite/libgomp.dg/omp-loop02.c: New test.
3640 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3642 * configure.ac (AC_PROG_FC): Add.
3643 (USE_FORTRAN): New automake conditional.
3644 * configure: Rebuilt.
3645 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3646 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3647 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3648 Add rules to build them.
3649 * Makefile.in: Rebuilt.
3650 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3652 * libgomp.map: Add Fortran wrappers.
3653 * libgomp_f.h.in: New file.
3654 * omp_lib.h.in: New file.
3655 * omp_lib.f90.in: New file.
3656 * fortran.c: New file.
3657 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3658 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3659 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3660 libgfortran has been built.
3661 * testsuite/libgomp.fortran/fortran.exp: New file.
3662 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3663 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3664 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3665 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3666 * testsuite/libgomp.fortran/omp_hello.f: New test.
3667 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3668 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3669 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3670 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3671 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3672 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3673 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3674 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3676 2005-08-30 Richard Henderson <rth@redhat.com>
3678 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3679 function for when aliases are not usable.
3680 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3681 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3682 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3683 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3684 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3685 GOMP_loop_ordered_guided_next): Likewise.
3686 * ordered.c (GOMP_ordered_start): Likewise.
3688 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3690 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3691 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3692 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3693 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3694 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3695 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3696 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3697 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3698 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3700 2005-07-07 Eric Christopher <echristo@redhat.com>
3701 Diego Novillo <dnovillo@redhat.com>
3703 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3704 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3706 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3707 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3708 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3709 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3710 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3711 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3712 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3714 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3716 * TOPLEVEL.patch: Remove.
3718 2005-05-16 Richard Henderson <rth@redhat.com>
3720 * configure.ac: Test for clock_gettime.
3721 * config.h.in, configure: Rebuild.
3722 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3723 (omp_get_wtime): Use clock_gettime if available.
3724 (omp_get_wtick): Use clock_getres if available.
3726 2005-05-11 Richard Henderson <rth@redhat.com>
3728 * config/linux/ia64/futex.h: New file.
3729 * configure.tgt: Use it.
3731 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3733 2005-05-07 Richard Henderson <rth@redhat.com>
3735 * config/linux/powerpc/futex.h: New file.
3736 * configure.tgt: Use it.
3738 * config/linux/i486/futex.h: Merge ...
3739 * config/linux/x86_64/futex.h: ... into ...
3740 * config/linux/x86/futex.h: ... here.
3741 * configure.tgt: Update to match.
3743 2005-05-06 Richard Henderson <rth@redhat.com>
3745 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3746 * config/linux/i486/futex.h: Likewise.
3747 * config/linux/x86_64/futex.h: Likewise.
3749 * config/linux/lock.c: New file.
3750 * config/linux/omp-lock.h: New file.
3752 * critical.c, env.h: Don't include omp.h
3753 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3754 * config/posix/time.c: Likewise.
3755 * config/posix/omp-lock.h: New file.
3756 * libgomp.h: Include omp-lock.h and omp.h.
3757 * Makefile.am (nodist_include_HEADERS): New.
3759 * configure.ac (PERL): New.
3760 * mkomp_h.pl: New file.
3761 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3763 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3765 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3766 build directory. Re-add -march=i486 hack.
3768 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3769 (libgomp_link_flags): Remove.
3770 (libgomp_initialized): Remove.
3771 (libgomp_init): Don't protect from reinitialization. Copy code
3772 from libstdc++ for getting the multilib set correctly.
3774 2005-05-05 Richard Henderson <rth@redhat.com>
3776 * config/linux/alpha/futex.h: New file.
3777 * configure.tgt (alpha*-*-linux*): Use it.
3779 * config/posix/mutex.c: New file.
3780 * config/posix/sem.c: Use libgomp.h.
3782 * configure.tgt (x86_64-linux): Also test CC for -m32.
3783 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3785 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3788 * Makefile.am (SUBDIRS): New.
3789 (libgomp_la_LDFLAGS): Add -lpthread.
3790 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3791 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3793 * libgomp_g.h: New file.
3794 * libgomp.h: Split out all public declarations to libgomp_g.h.
3795 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3796 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3797 * config/linux/sem.h: Likewise.
3798 * config/posix/sem.h: Likewise.
3800 * Makefile.am (AM_LDFLAGS): New.
3801 (libgomp_version_script): Split out from ...
3802 (libgomp_la_LDFLAGS): ... here.
3803 (libgomp_version_info): New.
3804 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3805 (LIBGOMP_ENABLE): New.
3806 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3807 (LIBGOMP_ENABLE_SYMVERS): New.
3808 * configure.ac (AC_INIT): Version 1.0.
3809 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3810 (enable-linux-futex): Likewise. Rename from enable-futex.
3811 (libtool_VERSION): New.
3812 (LIBGOMP_ENABLE_SYMVERS): Use it.
3813 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3814 * Makefile.in, aclocal.m4, configure: Rebuild.
3816 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3817 (gomp_mutex_unlock_slow): Fix typo.
3818 * config/linux/sem.c: Similarly.
3819 (gomp_sem_post_slow): Fix typo.
3820 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3821 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3822 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3824 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3825 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3826 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3827 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3828 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3829 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3830 LDFLAGS. Pull enable_futex check to top-level.
3831 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3832 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3834 First attempt at real configury.
3835 * Makefile, config.h: Remove file.
3836 * Makefile.am, Makefile.in: New file.
3837 * acinclude.m4 aclocal.m4: New file.
3838 * configure.ac, configure.tgt, configure: New file.
3840 * config/posix/lock.c: Rename from sys-lock.c.
3841 * config/posix/mutex.h: Rename from sys-mutex.h.
3842 * config/posix/sem.c: Rename from sys-sem.c.
3843 * config/posix/sem.h: Rename from sys-sem.h.
3844 * config/posix/proc.c: Rename from sys-proc.c.
3845 * config/posix/time.c: Rename from sys-proc.c.
3847 * config/linux/mutex.c: New file.
3848 * config/linux/mutex.h: New file.
3849 * config/linux/sem.c: New file.
3850 * config/linux/sem.h: New file.
3851 * config/linux/i486/futex.h: New file.
3852 * config/linux/x86_64/futex.h: New file.
3854 2005-05-04 Richard Henderson <rth@redhat.com>
3856 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3857 * libgomp.h: Declare them.
3858 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3859 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3861 2005-05-04 Richard Henderson <rth@redhat.com>
3863 * libgomp-1 code drop
3865 2005-05-04 Richard Henderson <rth@redhat.com>
3867 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3868 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3869 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3870 (gomp_iter_static_next): Update.
3871 (gomp_ordered_static_next): Update.
3872 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3873 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3874 totally empty range.
3875 (gomp_loop_ordered_static_next): Refine test for calling
3876 gomp_ordered_static_next.
3877 * testsuite/ordered-1.c: Add case for more threads than iterations.
3879 * iter.c (gomp_iter_runtime_next_locked): Remove.
3880 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3881 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3882 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3883 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3884 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3885 gomp_loop_ordered_guided_next): Downcase name, make static, add
3886 an external alias with the old name.
3887 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3888 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3889 switch and call one of the above static functions.
3890 * libgomp.h: Update.
3892 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3893 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3894 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3895 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3896 GOMP_loop_ordered_guided_start): Update to match.
3897 * sections.c (GOMP_sections_start): Likewise.
3898 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3900 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3901 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3902 Use bounds check instead of modulus.
3903 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3904 (gomp_ordered_last): Don't sync with ordered_owner here.
3905 (gomp_ordered_next): Likewise.
3906 (gomp_ordered_static_loop_next): Likewise.
3907 * loop.c, libgomp.h: Update to match.
3909 * libgomp.h (GOMP_barrier): Declare.
3911 * testsuite/barrier-1.c: New file.
3912 * testsuite/critical-1.c: New file.
3913 * testsuite/ordered-2.c: New file.
3914 * testsuite/ordered-1.c: New file.
3915 * testsuite/sections-1.c: New file.
3916 * testsuite/single-1.c: New file.
3917 * testsuite/Makefile (TESTS): Add them.
3919 2005-05-04 Richard Henderson <rth@redhat.com>
3921 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3922 * loop.c (GOMP_loop_static_start): If not the startup thread,
3923 acquire the mutex to wait for initialization complete.
3924 (GOMP_loop_ordered_static_start): Likewise.
3925 (GOMP_loop_ordered_runtime_start): Likewise.
3926 (GOMP_loop_ordered_static_first): Remove.
3927 (GOMP_loop_ordered_dynamic_first): Remove.
3928 (GOMP_loop_ordered_guided_first): Remove.
3929 (GOMP_loop_ordered_runtime_first): Remove.
3930 * ordered.c (gomp_ordered_loop_first): Post to own release when
3931 we're the first thread.
3932 (gomp_ordered_loop_last): Wait on release if not owner.
3933 (gomp_ordered_loop_next): Likewise.
3934 (gomp_ordered_static_loop_init): New.
3935 (gomp_ordered_static_loop_next): Use ordered_owner.
3936 (GOMP_ordered_start): Likewise.
3937 * work.c (gomp_new_work_share): Initialize ordered_owner.
3939 2005-05-03 Richard Henderson <rth@redhat.com>
3941 * Makefile (OPT): New.
3944 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3945 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3946 * libgomp.h, libgomp.map, NOTES: Update to match.
3948 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3949 Add initialized and thr members.
3950 (gomp_thread_start): Pause when initially spawned to wait for
3951 the whole team to be created.
3952 (gomp_team_start): Release team members at the end.
3954 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3955 (f_foo_1): Use GOMP_loop_end.
3956 (f_foo_2): Use GOMP_loop_end_nowait.
3958 * testsuite/loop-2.c: New file.
3959 * testsuite/Makefile (TESTS): Add it.
3961 2005-05-03 Richard Henderson <rth@redhat.com>
3963 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3964 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3965 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3968 * testsuite/Makefile: New file.
3969 * testsuite/loop-1.c: New file.
3971 2005-05-03 Richard Henderson <rth@redhat.com>
3973 Initial implementation and checkin.