1 2014-07-13 Tobias Burnus <burnus@net-b.de>
3 * testsuite/libgomp.fortran/pr34020.f90: Make compile
4 with TS 18508/Fortran 2015
6 2014-07-06 Marek Polacek <polacek@redhat.com>
9 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
11 2014-07-03 Jakub Jelinek <jakub@redhat.com>
13 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
14 matches regex $lang_source_re, add $lang_include_flags to options.
15 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16 * testsuite/libgomp.c++/c++.exp: Likewise.
17 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
18 and lang_include_flags instead of adding -fintrinsic-modules-path= to
20 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
22 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
24 * testsuite/libgomp.fortran/fortran.exp: Explain
25 gfortran-dg-runtest usage.
27 2014-06-25 Jakub Jelinek <jakub@redhat.com>
29 * testsuite/libgomp.fortran/simd5.f90: New test.
30 * testsuite/libgomp.fortran/simd6.f90: New test.
31 * testsuite/libgomp.fortran/simd7.f90: New test.
33 2014-06-24 Jakub Jelinek <jakub@redhat.com>
35 * testsuite/libgomp.c/for-2.c: Define SC to static for
36 #pragma omp for simd testing.
37 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
38 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
40 * testsuite/libgomp.c/simd-14.c: New test.
41 * testsuite/libgomp.c/simd-15.c: New test.
42 * testsuite/libgomp.c/simd-16.c: New test.
43 * testsuite/libgomp.c/simd-17.c: New test.
44 * testsuite/libgomp.c++/for-10.C: Define SC to static for
45 #pragma omp for simd testing.
46 * testsuite/libgomp.c++/simd10.C: New test.
47 * testsuite/libgomp.c++/simd11.C: New test.
48 * testsuite/libgomp.c++/simd12.C: New test.
49 * testsuite/libgomp.c++/simd13.C: New test.
51 * testsuite/libgomp.fortran/aligned1.f03: New test.
52 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
53 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
54 tasks with !$omp parallel !$omp single.
55 * testsuite/libgomp.fortran/target8.f90: New test.
56 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
57 not to use trim in the combiner, instead call elemental function.
58 (fn): New elemental function.
59 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
61 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
63 * testsuite/libgomp.fortran/udr12.f90: New test.
64 * testsuite/libgomp.fortran/udr13.f90: New test.
65 * testsuite/libgomp.fortran/udr14.f90: New test.
66 * testsuite/libgomp.fortran/udr15.f90: New test.
68 2014-06-18 Jakub Jelinek <jakub@redhat.com>
70 * omp_lib.f90.in (openmp_version): Set to 201307.
71 * omp_lib.h.in (openmp_version): Likewise.
72 * testsuite/libgomp.c/target-8.c: New test.
73 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
75 * testsuite/libgomp.fortran/depend-3.f90: New test.
76 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
78 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
79 * testsuite/libgomp.fortran/target1.f90: New test.
80 * testsuite/libgomp.fortran/target2.f90: New test.
81 * testsuite/libgomp.fortran/target3.f90: New test.
82 * testsuite/libgomp.fortran/target4.f90: New test.
83 * testsuite/libgomp.fortran/target5.f90: New test.
84 * testsuite/libgomp.fortran/target6.f90: New test.
85 * testsuite/libgomp.fortran/target7.f90: New test.
87 2014-06-10 Jakub Jelinek <jakub@redhat.com>
90 * testsuite/libgomp.fortran/allocatable9.f90: New test.
91 * testsuite/libgomp.fortran/allocatable10.f90: New test.
92 * testsuite/libgomp.fortran/allocatable11.f90: New test.
93 * testsuite/libgomp.fortran/allocatable12.f90: New test.
94 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
95 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
96 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
97 * testsuite/libgomp.fortran/associate1.f90: New test.
98 * testsuite/libgomp.fortran/associate2.f90: New test.
99 * testsuite/libgomp.fortran/procptr1.f90: New test.
101 2014-06-06 Jakub Jelinek <jakub@redhat.com>
103 * testsuite/libgomp.fortran/simd1.f90: New test.
104 * testsuite/libgomp.fortran/udr1.f90: New test.
105 * testsuite/libgomp.fortran/udr2.f90: New test.
106 * testsuite/libgomp.fortran/udr3.f90: New test.
107 * testsuite/libgomp.fortran/udr4.f90: New test.
108 * testsuite/libgomp.fortran/udr5.f90: New test.
109 * testsuite/libgomp.fortran/udr6.f90: New test.
110 * testsuite/libgomp.fortran/udr7.f90: New test.
111 * testsuite/libgomp.fortran/udr8.f90: New test.
112 * testsuite/libgomp.fortran/udr9.f90: New test.
113 * testsuite/libgomp.fortran/udr10.f90: New test.
114 * testsuite/libgomp.fortran/udr11.f90: New test.
116 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
118 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
119 vect_simd_clones effective target.
120 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
122 2014-05-21 Jakub Jelinek <jakub@redhat.com>
125 * testsuite/libgomp.c++/simd-9.C: New test.
127 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
129 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
130 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
131 texts according to their @menu entry positions.
133 2014-05-11 Jakub Jelinek <jakub@redhat.com>
135 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
136 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
137 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
138 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
139 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
140 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
141 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
142 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
143 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
144 * testsuite/libgomp.fortran/depend-1.f90: New test.
145 * testsuite/libgomp.fortran/depend-2.f90: New test.
146 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
147 * testsuite/libgomp.fortran/simd1.f90: New test.
148 * testsuite/libgomp.fortran/simd2.f90: New test.
149 * testsuite/libgomp.fortran/simd3.f90: New test.
150 * testsuite/libgomp.fortran/simd4.f90: New test.
151 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
153 2014-05-02 Jakub Jelinek <jakub@redhat.com>
155 * testsuite/libgomp.c/simd-10.c: New test.
156 * testsuite/libgomp.c/simd-11.c: New test.
157 * testsuite/libgomp.c/simd-12.c: New test.
158 * testsuite/libgomp.c/simd-13.c: New test.
160 2014-04-24 Jakub Jelinek <jakub@redhat.com>
162 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
163 atomic type clauses in any order and optional comma in between.
164 * testsuite/libgomp.c++/atomic-15.C: Likewise.
165 * testsuite/libgomp.c/atomic-17.c: Likewise.
167 * testsuite/libgomp.c/simd-7.c: New test.
168 * testsuite/libgomp.c/simd-8.c: New test.
169 * testsuite/libgomp.c/simd-9.c: New test.
170 * testsuite/libgomp.c/loop-16.c: New test.
172 2014-04-02 Richard Henderson <rth@redhat.com>
174 * config/linux/futex.h (futex_wait): Get error value from errno.
175 (futex_wake): Likewise.
177 2014-03-25 Jakub Jelinek <jakub@redhat.com>
180 * testsuite/libgomp.c++/udr-11.C: New test.
181 * testsuite/libgomp.c++/udr-12.C: New test.
182 * testsuite/libgomp.c++/udr-13.C: New test.
183 * testsuite/libgomp.c++/udr-14.C: New test.
184 * testsuite/libgomp.c++/udr-15.C: New test.
185 * testsuite/libgomp.c++/udr-16.C: New test.
186 * testsuite/libgomp.c++/udr-17.C: New test.
187 * testsuite/libgomp.c++/udr-18.C: New test.
188 * testsuite/libgomp.c++/udr-19.C: New test.
190 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
192 Update copyright years
194 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
196 * hashtab.h: Use the standard form for the copyright notice.
198 2014-01-02 Tobias Burnus <burnus@net-b.de>
200 * libgomp.texi: Bump @copying's copyright year.
202 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
204 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
205 alloca () with __builtin_alloca ().
206 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
207 * testsuite/libgomp.c/lock-3.c: Likewise.
208 * testsuite/libgomp.c/pr48591.c: Likewise.
210 2013-12-17 Jakub Jelinek <jakub@redhat.com>
213 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
216 2013-12-16 Jakub Jelinek <jakub@redhat.com>
219 * testsuite/libgomp.c/pr58756.c: New test.
221 2013-12-12 Jakub Jelinek <jakub@redhat.com>
224 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
227 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
229 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
231 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
232 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
233 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
234 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
237 * libgomp_g.h: Include <stddef.h> for size_t.
239 * libgomp.spec.in: Update comment about libgomp's dependencies.
240 * configure.ac: Likewise.
241 * configure: Regenerate.
243 2013-10-16 Tobias Burnus <burnus@net-b.de>
245 * libgomp.texi: (Runtime Library Routines): Update references for
246 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
247 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
248 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
249 (Environment Variables): Update references for OpenMP 4.0. Add
250 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
251 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
254 2013-10-14 Jakub Jelinek <jakub@redhat.com>
256 * env.c (parse_bind_var): Initialize value to avoid
257 (false positive) warning.
259 2013-10-12 Jakub Jelinek <jakub@redhat.com>
262 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
264 (gomp_init_num_threads): Move i variable declaration into
265 #ifdef CPU_ALLOC_SIZE block.
266 * config/linux/affinity.c (gomp_affinity_init_level): Test
267 gomp_places_list_len == 0 rather than gomp_places_list == 0
268 when checking for topology reading error.
269 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
270 * env.c (parse_affinity): Add ignore argument, if true, don't populate
271 gomp_places_list, only parse env var and always return false.
272 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
273 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
274 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
275 and either of these variables were parsed correctly into a places
278 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
279 Jakub Jelinek <jakub@redhat.com>
281 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
283 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
284 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
285 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
286 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
287 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
288 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
289 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
290 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
292 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
294 * Makefile.am (omp_lib.mod): Streamline rule.
295 * Makefile.in: Regenerate.
297 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
300 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
301 * testsuite/libgomp.fortran/lib1.f90: Likewise.
302 * testsuite/libgomp.fortran/lib2.f: Likewise.
303 * testsuite/libgomp.fortran/lib3.f: Likewise.
305 * configure.ac: Typo fix.
306 * configure: Regenerate.
308 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
309 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
311 * omp.h.in: Don't touch the user's namespace.
313 2013-10-11 Jakub Jelinek <jakub@redhat.com>
314 Tobias Burnus <burnus@net-b.de>
315 Richard Henderson <rth@redhat.com>
317 * target.c: New file.
318 * Makefile.am (libgomp_la_SOURCES): Add target.c.
319 * Makefile.in: Regenerated.
320 * libgomp_g.h (GOMP_task): Add depend argument.
321 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
322 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
323 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
324 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
325 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
326 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
327 GOMP_taskgroup_start, GOMP_taskgroup_end,
328 GOMP_parallel_sections): New prototypes.
329 * fortran.c (omp_is_initial_device): Add ialias_redirect.
330 (omp_is_initial_device_): New function.
331 (ULP, STR1, STR2, ialias_redirect): Removed.
332 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
333 omp_set_default_device_8_, omp_get_default_device_,
334 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
336 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
337 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
338 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
340 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
341 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
342 omp_set_default_device, omp_set_default_device_,
343 omp_set_default_device_8_, omp_get_default_device,
344 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
345 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
346 omp_get_team_num_): Export @@OMP_4.0.
347 * team.c (struct gomp_thread_start_data): Add place field.
348 (gomp_thread_start): Clear thr->thread_pool and
349 thr->task before returning. Use gomp_team_barrier_wait_final
350 instead of gomp_team_barrier_wait. Initialize thr->place.
351 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
352 team_cancelled and task_queued_count fields.
353 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
354 before calling pthread_exit.
355 (gomp_free_thread): No longer static. Use
356 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
357 (gomp_team_start): Add flags argument. Set
358 thr->thread_pool->threads_busy to nthreads immediately after creating
359 new pool. Use gomp_managed_threads_lock instead of
360 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
361 (gomp_team_end): Use gomp_managed_threads_lock instead of
362 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
363 of gomp_team_barrier_wait. If team->team_cancelled, call
364 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
365 rather than thr->ts.work_share.
366 (initialize_team): Don't call gomp_sem_init here.
367 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
369 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
370 * env.c (gomp_global_icv): Add default_device_var, target_data and
371 bind_var initializers.
372 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
373 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
374 gomp_places_list_len): New variables.
375 (parse_bind_var, parse_one_place, parse_places_var): New functions.
376 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
378 (gomp_cancel_var): New global variable.
379 (parse_int): New function.
380 (handle_omp_display_env): New function.
381 (initialize_env): Use it. Initialize default_device_var.
382 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
383 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
384 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
385 been successfully parsed (and call gomp_init_affinity in that case).
386 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
387 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
388 omp_get_team_num, omp_is_initial_device): New functions.
389 * libgomp.h: Include stdlib.h.
390 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
392 (struct target_mem_desc): Forward declare.
393 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
394 and thread_limit_var fields.
395 (gomp_get_num_devices): New prototype.
396 (gomp_cancel_var): New extern decl.
397 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
398 team_cancelled and task_queued_count fields. Add comments about
399 task_{,queued_,running_}count.
400 (gomp_cancel_kind): New enum.
401 (gomp_work_share_end_cancel): New prototype.
402 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
403 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
405 (struct gomp_taskgroup): New type.
406 (struct gomp_task_depend_entry,
407 struct gomp_dependers_vec): New types.
408 (gomp_finish_task): Free depend_hash if non-NULL.
409 (struct gomp_team_state): Add place_partition_off
410 and place_partition_len fields.
411 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
412 gomp_places_list_len): New extern decls.
413 (struct gomp_thread): Add place field.
414 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
415 (gomp_init_thread_affinity): Add place argument.
416 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
417 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
418 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
419 gomp_affinity_init_level, gomp_affinity_print_place): New
421 (gomp_team_start): Add flags argument.
422 (gomp_thread_limit_var, gomp_remaining_threads_count,
423 gomp_remaining_threads_lock): Remove.
424 (gomp_managed_threads_lock): New variable.
425 (struct gomp_thread_pool): Add threads_busy field.
426 (gomp_free_thread): New prototype.
427 * task.c: Include hashtab.h.
428 (hash_entry_type): New typedef.
429 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
430 (gomp_init_task): Clear dependers, depend_hash, depend_count,
431 copy_ctors_done and taskgroup fields.
432 (GOMP_task): Add depend argument, handle depend clauses. If
433 gomp_team_barrier_cancelled or if it's taskgroup has been
434 cancelled, don't queue or start new tasks. Set copy_ctors_done
435 field if needed. Initialize taskgroup field. If copy_ctors_done
436 and already cancelled, don't discard the task. If taskgroup is
437 non-NULL, enqueue the task into taskgroup queue. Increment
438 num_children field in taskgroup. Increment task_queued_count.
439 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
440 gomp_task_run_post_remove_taskgroup): New inline functions.
441 (gomp_task_run_post_handle_depend_hash,
442 gomp_task_run_post_handle_dependers,
443 gomp_task_run_post_handle_depend): New functions.
444 (GOMP_taskwait): Use them. If more than one new tasks
445 have been queued, wake other threads if needed.
446 (gomp_barrier_handle_tasks): Likewise. If
447 gomp_team_barrier_cancelled, don't start any new tasks, just free
449 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
451 (omp_proc_bind_kind, omp_proc_bind_false,
452 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
453 omp_proc_bind_spread): New params.
454 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
455 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
456 omp_get_team_num, omp_is_initial_device): New interfaces.
457 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
458 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
459 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
460 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
461 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
462 useless use omp_lib_kinds.
463 * omp.h.in (omp_proc_bind_t): New typedef.
464 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
465 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
466 omp_get_team_num, omp_is_initial_device): New prototypes.
467 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
468 through to gomp_team_start.
469 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
470 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
471 Adjust gomp_parallel_loop_start callers.
472 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
473 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
474 GOMP_loop_end_cancel): New functions.
475 (GOMP_parallel_end): Add ialias_redirect.
476 * hashtab.h: New file.
477 * libgomp.texi (Environment Variables): Minor cleanup,
478 update section refs to OpenMP 4.0rc2.
479 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
480 environment variables.
481 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
482 team->work_shares_to_free to thr->ts.work_share before calling
484 (gomp_work_share_end_cancel): New function.
485 * config/linux/proc.c: Include errno.h.
486 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
487 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
488 sizeof (cpu_set_t) to determine number of iterations. Fix up check
489 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
490 gomp_cpuset_size is sizeof (cpu_set_t).
491 (gomp_init_num_threads): Initialize gomp_cpuset_size,
492 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
493 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
494 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
495 contain any logical CPUs.
496 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
497 is NULL. Use gomp_cpusetp instead of &cpuset and pass
498 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
499 pthread_getaffinity_np. Check gomp_places_list instead of
500 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
501 * config/linux/bar.c (gomp_barrier_wait_end,
502 gomp_barrier_wait_last): Use BAR_* defines.
503 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
504 from state where needed. Set work_share_cancelled to 0 on last
506 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
507 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
509 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
510 Add cpusetsize argument.
511 (gomp_cpuset_size, gomp_cpusetp): Declare.
512 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
513 (affinity_counter): Remove.
514 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
515 if CPU_ALLOC_SIZE isn't defined.
516 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
517 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
518 bind current thread to the first place.
519 (gomp_init_thread_affinity): Rewritten. Add place argument, just
520 pthread_setaffinity_np to gomp_places_list[place].
521 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
522 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
523 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
524 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
525 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
526 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
527 (gomp_barrier_t): Add awaited_final field.
528 (gomp_barrier_init): Initialize awaited_final field.
529 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
530 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
532 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
534 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
535 gomp_team_barrier_cancelled): New inline functions.
536 (gomp_barrier_last_thread,
537 gomp_team_barrier_set_task_pending,
538 gomp_team_barrier_clear_task_pending,
539 gomp_team_barrier_set_waiting_for_tasks,
540 gomp_team_barrier_waiting_for_tasks,
541 gomp_team_barrier_done): Use BAR_* defines.
542 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
543 (gomp_barrier_wait_end): Use BAR_* defines.
544 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
545 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
547 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
548 gomp_team_barrier_cancel): New functions.
549 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
551 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
552 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
553 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
554 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
555 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
556 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
557 (gomp_barrier_t): Add cancellable field.
558 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
559 gomp_team_barrier_cancel): New prototypes.
560 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
561 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
562 gomp_team_barrier_cancelled): New inline functions.
563 (gomp_barrier_wait_start, gomp_barrier_last_thread,
564 gomp_team_barrier_set_task_pending,
565 gomp_team_barrier_clear_task_pending,
566 gomp_team_barrier_set_waiting_for_tasks,
567 gomp_team_barrier_waiting_for_tasks,
568 gomp_team_barrier_done): Use BAR_* defines.
569 * barrier.c (GOMP_barrier_cancel): New function.
570 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
571 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
572 omp_proc_bind_spread): New params.
573 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
574 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
575 omp_get_team_num, omp_is_initial_device): New externals.
576 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
578 (gomp_resolve_num_threads): Adjust for thread_limit now being in
579 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
580 infinity. If not nested, just return minimum of max_num_threads
581 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
582 to the returned value. Otherwise, don't update atomically
583 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
584 (GOMP_parallel_end): Adjust for thread_limit now being in
585 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
586 infinity. Adjust threads_busy in the pool rather than
587 gomp_remaining_threads_count. Remember team->nthreads and call
588 gomp_team_end before adjusting threads_busy, if not nested
589 afterwards, just set it to 1 non-atomically. Add ialias.
590 (GOMP_parallel_start): Adjust gomp_team_start caller.
591 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
592 * testsuite/libgomp.c/affinity-1.c: New test.
593 * testsuite/libgomp.c/atomic-15.c: New test.
594 * testsuite/libgomp.c/atomic-16.c: New test.
595 * testsuite/libgomp.c/atomic-17.c: New test.
596 * testsuite/libgomp.c/cancel-for-1.c: New test.
597 * testsuite/libgomp.c/cancel-for-2.c: New test.
598 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
599 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
600 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
601 * testsuite/libgomp.c/cancel-sections-1.c: New test.
602 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
603 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
604 * testsuite/libgomp.c/depend-1.c: New test.
605 * testsuite/libgomp.c/depend-2.c: New test.
606 * testsuite/libgomp.c/depend-3.c: New test.
607 * testsuite/libgomp.c/depend-4.c: New test.
608 * testsuite/libgomp.c/for-1.c: New test.
609 * testsuite/libgomp.c/for-1.h: New file.
610 * testsuite/libgomp.c/for-2.c: New test.
611 * testsuite/libgomp.c/for-2.h: New file.
612 * testsuite/libgomp.c/for-3.c: New test.
613 * testsuite/libgomp.c/pr58392.c: New test.
614 * testsuite/libgomp.c/simd-1.c: New test.
615 * testsuite/libgomp.c/simd-2.c: New test.
616 * testsuite/libgomp.c/simd-3.c: New test.
617 * testsuite/libgomp.c/simd-4.c: New test.
618 * testsuite/libgomp.c/simd-5.c: New test.
619 * testsuite/libgomp.c/simd-6.c: New test.
620 * testsuite/libgomp.c/target-1.c: New test.
621 * testsuite/libgomp.c/target-2.c: New test.
622 * testsuite/libgomp.c/target-3.c: New test.
623 * testsuite/libgomp.c/target-4.c: New test.
624 * testsuite/libgomp.c/target-5.c: New test.
625 * testsuite/libgomp.c/target-6.c: New test.
626 * testsuite/libgomp.c/target-7.c: New test.
627 * testsuite/libgomp.c/taskgroup-1.c: New test.
628 * testsuite/libgomp.c/thread-limit-1.c: New test.
629 * testsuite/libgomp.c/thread-limit-2.c: New test.
630 * testsuite/libgomp.c/thread-limit-3.c: New test.
631 * testsuite/libgomp.c/udr-1.c: New test.
632 * testsuite/libgomp.c/udr-2.c: New test.
633 * testsuite/libgomp.c/udr-3.c: New test.
634 * testsuite/libgomp.c++/affinity-1.C: New test.
635 * testsuite/libgomp.c++/atomic-10.C: New test.
636 * testsuite/libgomp.c++/atomic-11.C: New test.
637 * testsuite/libgomp.c++/atomic-12.C: New test.
638 * testsuite/libgomp.c++/atomic-13.C: New test.
639 * testsuite/libgomp.c++/atomic-14.C: New test.
640 * testsuite/libgomp.c++/atomic-15.C: New test.
641 * testsuite/libgomp.c++/cancel-for-1.C: New test.
642 * testsuite/libgomp.c++/cancel-for-2.C: New test.
643 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
644 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
645 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
646 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
647 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
648 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
649 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
650 * testsuite/libgomp.c++/cancel-test.h: New file.
651 * testsuite/libgomp.c++/for-9.C: New test.
652 * testsuite/libgomp.c++/for-10.C: New test.
653 * testsuite/libgomp.c++/for-11.C: New test.
654 * testsuite/libgomp.c++/simd-1.C: New test.
655 * testsuite/libgomp.c++/simd-2.C: New test.
656 * testsuite/libgomp.c++/simd-3.C: New test.
657 * testsuite/libgomp.c++/simd-4.C: New test.
658 * testsuite/libgomp.c++/simd-5.C: New test.
659 * testsuite/libgomp.c++/simd-6.C: New test.
660 * testsuite/libgomp.c++/simd-7.C: New test.
661 * testsuite/libgomp.c++/simd-8.C: New test.
662 * testsuite/libgomp.c++/target-1.C: New test.
663 * testsuite/libgomp.c++/target-2.C: New test.
664 * testsuite/libgomp.c++/target-2-aux.cc: New file.
665 * testsuite/libgomp.c++/target-3.C: New test.
666 * testsuite/libgomp.c++/taskgroup-1.C: New test.
667 * testsuite/libgomp.c++/udr-1.C: New test.
668 * testsuite/libgomp.c++/udr-2.C: New test.
669 * testsuite/libgomp.c++/udr-3.C: New test.
670 * testsuite/libgomp.c++/udr-4.C: New test.
671 * testsuite/libgomp.c++/udr-5.C: New test.
672 * testsuite/libgomp.c++/udr-6.C: New test.
673 * testsuite/libgomp.c++/udr-7.C: New test.
674 * testsuite/libgomp.c++/udr-8.C: New test.
675 * testsuite/libgomp.c++/udr-9.C: New test.
677 2013-09-20 Jakub Jelinek <jakub@redhat.com>
680 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
683 2013-09-20 Alan Modra <amodra@gmail.com>
685 * configure: Regenerate.
687 2013-09-19 Jakub Jelinek <jakub@redhat.com>
689 * testsuite/libgomp.c/sections-2.c: New test.
691 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
693 * testsuite/libgomp.fortran/strassen.f90:
694 Add dg-skip-if aarch64_tiny.
696 2013-06-20 Iain Sandoe <iain@codesourcery.com>
697 Cesar Philippidis <cesar@codesourcery.com>
699 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
700 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
701 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
702 * testsuite/libgomp.fortran/fortran.exp: Likewise.
703 * testsuite/libgomp.graphite/graphite.exp: Likewise.
704 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
705 Use dg-runtest rather than gfortran-dg-runtest.
707 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
709 * testsuite/libgomp.c/icv-2.c: Extend current handling of
710 Linux-based x86 systems to cover all GNU systems.
711 * testsuite/libgomp.c/lock-3.c: Likewise.
712 * testsuite/libgomp.c/pr48591.c: Likewise.
714 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
716 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
717 GNU/Hurd, as done for Linux-based systems.
719 * config/posix/ptrlock.h: Fix comment.
721 2013-05-27 Tobias Burnus <burnus@net-b.de>
724 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
725 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
726 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
727 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
728 omp_destroy_nest_lock): Correct arguments to match the one in
730 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
731 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
732 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
733 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
735 2013-05-16 Jakub Jelinek <jakub@redhat.com>
737 * testsuite/libgomp.c/loop-13.c: New test.
738 * testsuite/libgomp.c/loop-14.c: New test.
739 * testsuite/libgomp.c/loop-15.c: New test.
740 * testsuite/libgomp.c++/loop-13.C: New test.
741 * testsuite/libgomp.c++/loop-14.C: New test.
742 * testsuite/libgomp.c++/loop-15.C: New test.
744 2013-02-06 Jakub Jelinek <jakub@redhat.com>
747 * testsuite/libgomp.c++/pr56217.C: New test.
749 2013-02-01 Alan Modra <amodra@gmail.com>
751 * task.c (GOMP_task, GOMP_taskwait): Comment.
753 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
754 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
757 * config/linux/wait.h (do_spin): Use atomic load for addr.
758 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
759 for intptr and ptrlock.
760 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
763 2013-01-22 Alan Modra <amodra@gmail.com>
767 * task.c (GOMP_task): Revert 2011-12-09 change.
768 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
769 barrier to read task->children..
770 (gomp_barrier_handle_tasks): ..and matching atomic store with
771 release barrier here when setting parent->children to NULL.
773 2013-01-16 Jakub Jelinek <jakub@redhat.com>
774 Tobias Burnus <burnus@net-b.de>
777 * testsuite/libgomp.fortran/fortran.exp: Use
778 -fintrinsic-modules-path= instead of
779 -fintrinsic-modules-path.
781 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
783 Update copyright years.
785 2012-12-19 Tobias Burnus <burnus@net-b.de>
787 * testsuite/libgomp.fortran/fortran.exp: Set
788 -fintrinsic-modules-path.
790 2012-12-19 Tobias Burnus <burnus@net-b.de>
792 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
793 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
795 2012-11-21 Jakub Jelinek <jakub@redhat.com>
798 * team.c (gomp_free_thread): Decrease gomp_managed_threads
799 if pool had any threads_used.
801 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
803 * testsuite/libgomp.c++/pr24455.C: Use
804 -Wl,-undefined,dynamic_lookup on darwin.
806 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
808 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
810 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
812 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
814 2012-10-23 Ian Bolton <ian.bolton@arm.com>
815 Jim MacArthur <jim.macarthur@arm.com>
816 Marcus Shawcroft <marcus.shawcroft@arm.com>
817 Nigel Stephens <nigel.stephens@arm.com>
818 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
819 Richard Earnshaw <rearnsha@arm.com>
820 Sofiane Naci <sofiane.naci@arm.com>
821 Stephen Thomas <stephen.thomas@arm.com>
822 Tejas Belagod <tejas.belagod@arm.com>
823 Yufeng Zhang <yufeng.zhang@arm.com>
825 * configure.tgt: Add AArch64.
827 2012-10-04 Jason Merrill <jason@redhat.com>
829 * testsuite/libgomp.c++/tls-init1.C: New.
831 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
833 * configure: Regenerated.
835 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
837 * config/linux/mips/futex.h (sys_futex0): Change to static
838 function with noinline, nomips16 attributes under MIPS16. Adjust
839 asm statement to place 'li v0,SYS_futex' immediately before
842 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
844 * libgomp.texi (Library Index): Renamed from "Index" to prevent
845 conflict with index.html on case-insensitive file systems.
847 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
849 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
850 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
852 2012-07-02 Richard Guenther <rguenther@suse.de>
853 Michael Matz <matz@suse.de>
854 Tobias Grosser <tobias@grosser.es>
855 Sebastian Pop <sebpop@gmail.com>
857 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
858 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
859 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
860 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
862 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
864 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
866 2012-06-22 Richard Guenther <rguenther@suse.de>
868 Merge from graphite branch
869 2012-01-13 Tobias Grosser <tobias@grosser.es>
871 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
872 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
874 2012-06-07 Jakub Jelinek <jakub@redhat.com>
877 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
878 use GOMP_barrier () call instead.
879 * testsuite/libgomp.c/pr26943-3.c: Likewise.
880 * testsuite/libgomp.c/pr26943-4.c: Likewise.
881 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
882 call GOMP_barrier instead.
883 * testsuite/libgomp.fortran/vla5.f90: Likewise.
885 2012-06-06 Jakub Jelinek <jakub@redhat.com>
888 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
889 argument to memset call.
891 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
893 * configure: Regenerated.
895 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
897 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
899 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
902 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
904 2012-03-22 Jakub Jelinek <jakub@redhat.com>
907 * testsuite/libgomp.c/pr52547.c: New test.
909 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
911 * testsuite/lib/libgomp.exp: load fortran-modules.exp
913 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
915 * configure.tgt (mips-sgi-irix6*): Remove.
917 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
919 * configure.tgt (alpha*-dec-osf*): Remove.
921 * config/osf/sem.h: Remove.
922 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
924 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
926 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
928 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
931 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
932 Remove ENABLE_SYMVERS_SOL2.
933 * configure: Regenerate.
934 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
935 (PREPROCESS): New variable.
936 (libgomp.ver): New target.
937 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
938 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
939 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
941 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
942 * Makefile.in: Regenerate.
944 2012-02-14 Walter Lee <walt@tilera.com>
946 * configure.tgt: Handle tilegx and tilepro.
947 * config/linux/tile/futex.h: New file.
949 2012-02-08 Richard Guenther <rguenther@suse.de>
951 PR tree-optimization/46886
952 * testsuite/libgomp.c/pr46886.c: New testcase.
954 2012-01-25 Matthias Klose <doko@ubuntu.com>
956 * config/linux/arm: Remove empty directory.
957 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
959 2011-12-09 Alan Modra <amodra@gmail.com>
962 * task.c (GOMP_taskwait): Don't access task->children outside of
963 task_lock mutex region.
964 (GOMP_task): Likewise.
966 2011-12-06 Jakub Jelinek <jakub@redhat.com>
969 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
971 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
972 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
973 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
974 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
975 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
977 2011-12-02 Alan Modra <amodra@gmail.com>
979 * config/linux/affinity.c: Use atomic rather than sync builtin.
980 * config/linux/lock.c: Likewise.
981 * config/linux/ptrlock.h: Likewise.
982 * config/linux/ptrlock.c: Likewise.
983 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
984 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
985 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
986 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
987 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
988 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
989 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
990 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
991 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
992 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
994 2011-11-30 Alan Modra <amodra@gmail.com>
997 * config/linux/bar.h: Use atomic rather than sync builtins.
998 * config/linux/bar.c: Likewise. Add missing acquire
999 synchronisation on generation field.
1000 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1003 2011-11-30 Alan Modra <amodra@gmail.com>
1005 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1006 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1007 * config/linux/mutex.h: Use atomic rather than sync builtins.
1008 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
1009 * config/linux/omp-lock.h: Comment fix.
1010 * config/linux/arm/mutex.h: Delete.
1011 * config/linux/powerpc/mutex.h: Delete.
1012 * config/linux/ia64/mutex.h: Delete.
1013 * config/linux/mips/mutex.h: Delete.
1015 2011-11-30 Alan Modra <amodra@gmail.com>
1018 * config/linux/sem.h: Rewrite.
1019 * config/linux/sem.c: Rewrite.
1021 2011-11-28 Richard Henderson <rth@redhat.com>
1023 * libgomp.h (enum memmodel): New.
1025 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
1027 * configure: Regenerate.
1029 2011-10-10 Matthias Klose <doko@ubuntu.com>
1031 * config/posix95: Remove empty directory.
1033 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1035 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1037 2011-08-19 Jakub Jelinek <jakub@redhat.com>
1040 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1041 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1043 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1045 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1047 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1050 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1052 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
1054 * config/linux/proc.h: New.
1055 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
1056 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
1057 (gomp_init_num_threads): Update call to cpuset_popcount.
1058 (get_num_procs): Ditto.
1059 * config/linux/affinity.c (gomp_init_affinity): Call
1060 gomp_cpuset_popcount.
1062 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1066 * omp.h.in (omp_in_final): New prototype.
1067 * omp_lib.f90.in (omp_in_final): New interface.
1068 (omp_integer_kind, omp_logical_kind): Remove
1069 and replace all its uses in the module with 4.
1070 (openmp_version): Change to 201107.
1071 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1072 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1073 kind for the parameters.
1074 (omp_in_final): New external.
1075 (openmp_version): Change to 201107.
1076 * task.c (omp_in_final): New function.
1077 (gomp_init_task): Initialize final_task.
1078 (GOMP_task): Remove unused attribute from flags. Handle final
1080 (GOMP_taskyield): New function.
1081 (omp_in_final): Return true if if (false) or final (true) task
1082 or descendant of final (true).
1083 * fortran.c (omp_in_final_): New function.
1084 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1085 (GOMP_3.0): Export GOMP_taskyield.
1086 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1088 (parse_unsigned_long_list): New function.
1089 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
1090 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
1091 even if parse_affinity returned false.
1092 * config/linux/affinity.c (gomp_init_affinity): Handle
1093 gomp_cpu_affinity_len == 0.
1094 * libgomp_g.h (GOMP_taskyield): New prototype.
1095 * libgomp.h (struct gomp_task): Add final_task field.
1096 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1097 * team.c (gomp_team_start): Override new task's nthreads_var icv
1098 if list form OMP_NUM_THREADS has been used and it has value for
1099 the new nesting level.
1101 * testsuite/libgomp.c/atomic-11.c: New test.
1102 * testsuite/libgomp.c/atomic-12.c: New test.
1103 * testsuite/libgomp.c/atomic-13.c: New test.
1104 * testsuite/libgomp.c/atomic-14.c: New test.
1105 * testsuite/libgomp.c/reduction-6.c: New test.
1106 * testsuite/libgomp.c/task-5.c: New test.
1107 * testsuite/libgomp.c++/atomic-2.C: New test.
1108 * testsuite/libgomp.c++/atomic-3.C: New test.
1109 * testsuite/libgomp.c++/atomic-4.C: New test.
1110 * testsuite/libgomp.c++/atomic-5.C: New test.
1111 * testsuite/libgomp.c++/atomic-6.C: New test.
1112 * testsuite/libgomp.c++/atomic-7.C: New test.
1113 * testsuite/libgomp.c++/atomic-8.C: New test.
1114 * testsuite/libgomp.c++/atomic-9.C: New test.
1115 * testsuite/libgomp.c++/task-8.C: New test.
1116 * testsuite/libgomp.c++/reduction-4.C: New test.
1117 * testsuite/libgomp.fortran/allocatable7.f90: New test.
1118 * testsuite/libgomp.fortran/allocatable8.f90: New test.
1119 * testsuite/libgomp.fortran/crayptr3.f90: New test.
1120 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1121 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1122 * testsuite/libgomp.fortran/pointer1.f90: New test.
1123 * testsuite/libgomp.fortran/pointer2.f90: New test.
1124 * testsuite/libgomp.fortran/task4.f90: New test.
1126 2011-08-02 Tobias Burnus <burnus@net-b.de>
1128 * libgomp.texi: Update OpenMP spec references to 3.1.
1129 (omp_in_final,OMP_PROC_BIND): New sections.
1130 (OMP_NUM_THREADS): Document that the value can be now a list.
1131 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1133 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
1135 * config/linux/x86/futex.h: Check __x86_64__ instead of
1138 2011-07-29 Jakub Jelinek <jakub@redhat.com>
1142 * testsuite/libgomp.c/pr49897-1.c: New test.
1143 * testsuite/libgomp.c/pr49897-2.c: New test.
1144 * testsuite/libgomp.c/pr49898-1.c: New test.
1145 * testsuite/libgomp.c/pr49898-2.c: New test.
1147 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1149 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1150 for ia32 instead of ilp32.
1152 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1153 * testsuite/libgomp.c/atomic-6.c: Likewise.
1155 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
1157 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1158 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1160 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1163 * config/osf/sem.h: New file.
1164 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1166 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1169 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1172 2011-07-15 Jakub Jelinek <jakub@redhat.com>
1174 * config/linux/wait.h (do_spin): New inline, largely copied
1175 from do_wait, just don't do futex_wait here, instead return true if
1177 (do_wait): Implement using do_spin.
1178 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1180 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1181 __sync_bool_compare_and_swap, pass the oldval to
1182 gomp_mutex_lock_slow.
1183 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1184 If all mutex contenders are just spinning and not sleeping, don't
1185 change state to 2 unnecessarily. Optimize the loop when state has
1186 already become 2 to use just one atomic operation per loop instead
1188 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1190 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1191 __sync_bool_compare_and_swap, pass the oldval to
1192 gomp_mutex_lock_slow.
1194 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1197 * iter.c (gomp_iter_static_next): For chunk size 0
1198 only use n ceil/ nthreads size for the first
1199 n % nthreads threads in the team instead of
1200 all threads except for the last few ones which
1201 get less work or none at all.
1202 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1203 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1204 chunk argument, set run_sched_modifier to 0 for static
1205 resp. 1 for other kinds. If chunk argument is 0
1206 and not static, set value to 1.
1208 2011-05-19 Jakub Jelinek <jakub@redhat.com>
1211 * testsuite/libgomp.c++/pr49043.C: New test.
1214 * testsuite/libgomp.c++/pr48869.C: New test.
1216 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1219 * fortran.c: Include limits.h.
1221 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1223 (omp_set_num_threads_8_, omp_set_schedule_8_,
1224 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1225 omp_get_team_size_8_): Use TO_INT macro.
1226 * testsuite/libgomp.fortran/pr48894.f90: New test.
1228 2011-04-13 Jakub Jelinek <jakub@redhat.com>
1231 * testsuite/libgomp.c/pr48591.c: New test.
1233 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1236 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1237 * configure: Regenerate.
1239 2011-02-27 Jakub Jelinek <jakub@redhat.com>
1242 * testsuite/libgomp.fortran/task3.f90: New test.
1244 2011-02-24 Tobias Burnus <burnus@net-b.de>
1246 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1248 2011-02-23 Jakub Jelinek <jakub@redhat.com>
1251 * libgomp.texi (omp_get_wtime): Don't say time in the past
1254 2011-02-18 Jakub Jelinek <jakub@redhat.com>
1257 * testsuite/libgomp.fortran/fortran.exp: Check for both
1258 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
1259 but $blddir != "", still append ${blddir}/${lang_library_path}
1262 2011-02-16 Tobias Burnus <burnus@net-b.de>
1265 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1266 of libquadmath.a before adding its libpath to ldflags.
1268 2011-02-14 Jakub Jelinek <jakub@redhat.com>
1271 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1272 to FUTEX_WAIT futex syscall.
1273 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1275 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1277 * configure: Regenerate.
1279 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
1282 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1284 2011-01-16 Gerald Pfeifer
1286 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1288 2010-12-14 Jakub Jelinek <jakub@redhat.com>
1291 * libgomp.fortran/allocatable6.f90: New test.
1293 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1295 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1296 * configure: Regenerate.
1298 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
1302 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1303 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1304 * aclocal.m4: Regenerate.
1305 * configure: Regenerate.
1306 * Makefile.in: Regenerate.
1307 * testsuite/Makefile.in: Regenerate.
1309 2010-12-02 Jakub Jelinek <jakub@redhat.com>
1312 * libgomp.fortran/pr46753.f90: New test.
1315 * env.c (initialize_env): Default to spin count 300000
1316 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1320 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1321 at the end if sync builtins aren't supported.
1323 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1325 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1327 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1329 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1331 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
1333 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1335 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1336 Tobias Burnus <burnus@net-b.de>
1340 * configure: Regenerate.
1342 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
1344 * config/linux/futex.h: New.
1345 * config/linux/arm/mutex.h: New.
1346 * configure.tgt (arm*-*-linux*): Add config path.
1348 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
1350 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1352 2010-09-23 Tobias Burnus <burnus@net-b.de>
1354 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1355 Change Fortran datatype to LOGICAL.
1356 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1357 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1359 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1361 * configure: Regenerate.
1363 2010-07-26 Jakub Jelinek <jakub@redhat.com>
1365 * libgomp.texi: Add function keyword to a couple of Fortran
1366 interfaces, use integer instead of int for Fortran.
1368 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
1370 * libgomp.texi: Fix spelling and pasto problems throughout.
1371 Adjust prototypes to match code.
1373 2010-07-24 Tobias Burnus <burnus@net-b.de>
1375 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1376 silence -fwhole-file warning.
1378 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1380 * configure.tgt (*-*-solaris2.[56]*): Removed.
1382 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1384 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1385 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1386 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1387 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1388 targetting solaris2*.
1389 * configure: Regenerate.
1390 * config.h.in: Regenerate.
1392 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1393 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1394 Add libgomp_version_dep.
1395 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1397 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1398 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1399 * Makefile.in: Regenerate.
1401 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1402 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1403 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1404 to common block, protected by
1405 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1407 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1409 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
1411 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
1414 * configure: Regenerate.
1416 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1419 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1420 * configure: Regenerate.
1421 * Makefile.in: Regenerate.
1422 * testsuite/Makefile.in: Regenerate.
1424 2010-04-26 Jakub Jelinek <jakub@redhat.com>
1427 * testsuite/libgomp.c/pr43893.c: New test.
1428 * testsuite/libgomp.c++/pr43893.C: New test.
1430 2010-04-21 Jakub Jelinek <jakub@redhat.com>
1433 * testsuite/libgomp.fortran/vla8.f90: New test.
1435 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1438 * config/linux/affinity.c (gomp_init_affinity): Decrease
1439 gomp_available_cpus if affinity mask confines the process to fewer
1441 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1442 non-NULL, just return gomp_available_cpus.
1445 * sections.c (gomp_sections_init): Initialize ws->mode.
1447 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
1449 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1450 not unused bar variable.
1451 * configure: Regenerate.
1453 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1455 * Makefile.in: Regenerate.
1456 * aclocal.m4: Regenerate.
1457 * testsuite/Makefile.in: Regenerate.
1459 2010-03-22 Jakub Jelinek <jakub@redhat.com>
1462 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1463 (initialize_env): Adjust callers.
1464 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1465 when the argument is 0.
1467 * testsuite/libgomp.c/pr42942.c: New test.
1469 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1473 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1474 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1476 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1478 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1479 * testsuite/libgomp.c++/task-6.C: Likewise.
1481 2010-01-28 Steve Ellcey <sje@cup.hp.com>
1483 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1485 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
1487 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1488 * configure: Regenerate.
1490 2010-01-26 Jakub Jelinek <jakub@redhat.com>
1493 * testsuite/libgomp.fortran/allocatable5.f90: New test.
1495 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
1497 * configure.ac: Test for executability of GFORTRAN.
1498 * configure: Regenerate.
1500 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1502 * configure: Regenerate.
1504 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
1507 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1509 2010-01-03 Richard Guenther <rguenther@suse.de>
1511 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1513 2009-12-23 Sebastian Pop <sebpop@gmail.com>
1515 * testsuite/libgomp.graphite/pr4118.c: New.
1517 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1519 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1520 for darwin, protect the test with require-effective-target tls_runtime.
1521 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1523 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1526 * testsuite/lib/libgomp.exp: Provide -B options to allow for
1527 link spec %s substitutions for static libraries.
1529 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
1532 * libgomp.graphite/force-parallel-2.c: Reduce array size.
1534 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1536 * Makefile.in: Regenerate.
1537 * configure: Regenerate.
1538 * testsuite/Makefile.in: Regenerate.
1540 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1542 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1543 settings for LC_ALL and LANG.
1545 2009-11-25 Jakub Jelinek <jakub@redhat.com>
1548 * testsuite/libgomp.fortran/pr42162.f90: New test.
1550 2009-11-13 Jakub Jelinek <jakub@redhat.com>
1553 * testsuite/libgomp.c/pr42029.c: New test.
1555 2009-10-26 Jakub Jelinek <jakub@redhat.com>
1557 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1558 *s. Accept ld version without text in ()s.
1559 * configure: Regenerated.
1561 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1563 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1565 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1568 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1569 or a hyphen (happens with fortran language disabled).
1570 * configure: Regenerate.
1572 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1574 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1575 use sed script portable to Solaris /bin/sed for extracting ld
1577 * configure: Regenerate.
1579 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1581 * testsuite/libgomp.graphite/bounds.c: New test.
1583 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1585 * Makefile.am (libgomp_la_LINK): New.
1586 * Makefile.in: Regenerate.
1588 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1590 * configure.ac (AC_PREREQ): Bump to 2.64.
1592 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1594 * Makefile.am (install-html, install-pdf): Remove.
1595 * Makefile.in: Regenerate.
1597 * Makefile.in: Regenerate.
1598 * aclocal.m4: Regenerate.
1599 * config.h.in: Regenerate.
1600 * configure: Regenerate.
1601 * testsuite/Makefile.in: Regenerate.
1603 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1605 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1606 * Makefile.in: Regenerate.
1608 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
1610 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1611 * Makefile.in: Regenerate.
1613 2009-08-19 Tobias Burnus <burnus@net-b.de>
1616 omp_lib.h.in: Fix -std=f95 errors.
1619 2009-08-14 David Edelsohn <edelsohn@gnu.org>
1621 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1622 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1623 * testsuite/libgomp.graphite/graphite.exp: New.
1625 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
1627 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1630 2009-08-04 David Daney <ddaney@caviumnetworks.com>
1632 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1633 needed memory barrier semantics.
1634 * config/linux/mips/mutex.h: New file.
1636 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1638 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1640 2009-07-16 Joseph Myers <joseph@codesourcery.com>
1642 * configure: Regenerate.
1644 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
1649 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1650 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1651 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1653 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1655 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1656 options when choosing a multilib.
1658 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
1660 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1661 ld_library_path. Use add_path. Add just find_libgcc_s to
1662 ld_library_path, not every libgcc multilib directory.
1663 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1664 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1665 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1667 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1669 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
1671 * Makefile.am (LTLDFLAGS): Define.
1673 * Makefile.in: Regenerate.
1675 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
1678 * testsuite/libgomp.fortran/fortran.exp: Don't link with
1679 libgfortranbegin, check existence of libgfortran.a instead of
1682 2009-05-20 Jakub Jelinek <jakub@redhat.com>
1685 * team.c (gomp_thread_start): Destroy thr->release semaphore.
1686 (gomp_free_pool_helper): Likewise.
1688 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
1689 Jakub Jelinek <jakub@redhat.com>
1692 * testsuite/libgomp.fortran/workshare2.f90: New test.
1694 2009-04-09 Nick Clifton <nickc@redhat.com>
1696 * iter.c: Change copyright header to refer to version 3 of the
1697 GNU General Public License with version 3.1 of the GCC Runtime
1698 Library Exception and to point readers at the COPYING3 and
1699 COPYING3.RUNTIME files and the FSF's license web page.
1700 * alloc.c: Likewise.
1701 * barrier.c: Likewise.
1702 * config/bsd/proc.c: Likewise.
1703 * config/linux/affinity.c: Likewise.
1704 * config/linux/alpha/futex.h: Likewise.
1705 * config/linux/bar.c: Likewise.
1706 * config/linux/bar.h: Likewise.
1707 * config/linux/ia64/futex.h: Likewise.
1708 * config/linux/ia64/mutex.h: Likewise.
1709 * config/linux/lock.c: Likewise.
1710 * config/linux/mips/futex.h: Likewise.
1711 * config/linux/mutex.c: Likewise.
1712 * config/linux/mutex.h: Likewise.
1713 * config/linux/powerpc/futex.h: Likewise.
1714 * config/linux/proc.c: Likewise.
1715 * config/linux/ptrlock.c: Likewise.
1716 * config/linux/ptrlock.h: Likewise.
1717 * config/linux/s390/futex.h: Likewise.
1718 * config/linux/sem.c: Likewise.
1719 * config/linux/sem.h: Likewise.
1720 * config/linux/sparc/futex.h: Likewise.
1721 * config/linux/wait.h: Likewise.
1722 * config/linux/x86/futex.h: Likewise.
1723 * config/mingw32/proc.c: Likewise.
1724 * config/mingw32/time.c: Likewise.
1725 * config/posix/affinity.c: Likewise.
1726 * config/posix/bar.c: Likewise.
1727 * config/posix/bar.h: Likewise.
1728 * config/posix/lock.c: Likewise.
1729 * config/posix/mutex.h: Likewise.
1730 * config/posix/proc.c: Likewise.
1731 * config/posix/ptrlock.h: Likewise.
1732 * config/posix/sem.c: Likewise.
1733 * config/posix/sem.h: Likewise.
1734 * config/posix/time.c: Likewise.
1735 * config/posix95/lock.c: Likewise.
1736 * critical.c: Likewise.
1738 * error.c: Likewise.
1739 * fortran.c: Likewise.
1740 * iter_ull.c: Likewise.
1741 * libgomp.h: Likewise.
1742 * libgomp_f.h.in: Likewise.
1743 * libgomp_g.h: Likewise.
1745 * loop_ull.c: Likewise.
1746 * omp.h.in: Likewise.
1747 * omp_lib.f90.in: Likewise.
1748 * omp_lib.h.in: Likewise.
1749 * ordered.c: Likewise.
1750 * parallel.c: Likewise.
1751 * sections.c: Likewise.
1752 * single.c: Likewise.
1757 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1759 * testsuite/config/default.exp: Change copyright header to refer to
1760 version 3 of the GNU General Public License and to point readers
1761 at the COPYING3 file and the FSF's license web page.
1763 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1766 * libgomp.c++/pr39573.C: New test.
1768 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1771 * testsuite/libgomp.c/pr39591-1.c: New test.
1772 * testsuite/libgomp.c/pr39591-2.c: New test.
1773 * testsuite/libgomp.c/pr39591-3.c: New test.
1775 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1777 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1778 * testsuite/libgomp.c/atomic-6.c: Ditto.
1780 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1783 * testsuite/libgomp.c/loop-12.c: New test.
1784 * testsuite/libgomp.c/loop-11.c: New test.
1785 * testsuite/libgomp.c++/loop-11.C: New test.
1786 * testsuite/libgomp.c++/loop-12.C: New test.
1787 * testsuite/libgomp.c++/for-8.C: New test.
1789 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1791 * configure: Regenerate.
1793 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1796 * testsuite/libgomp.c/pr39154.c: New test.
1798 2009-01-30 Ian Lance Taylor <iant@google.com>
1800 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1801 libgomp_ld_is_gold. Get gold version number.
1802 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1803 * configure: Rebuild.
1805 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1807 * testsuite/lib/libgomp.exp: Add -B option for targets that
1808 use libgfortran.a%s in their specs.
1810 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1813 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1814 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1815 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1816 * configure: Regenerated.
1817 * config.h.in: Likewise.
1819 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1822 * testsuite/libgomp.c/pr38650.c: New test.
1823 * testsuite/libgomp.c++/pr38650.C: New test.
1825 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1827 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1829 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1831 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1833 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1835 * configure: Regenerate.
1837 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1840 * testsuite/libgomp.c/pr36802-1.c: New test.
1841 * testsuite/libgomp.c/pr36802-2.c: New test.
1842 * testsuite/libgomp.c/pr36802-3.c: New test.
1844 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1847 * config/linux/powerpc/mutex.h: New.
1849 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1852 * testsuite/libgomp.c++/for-7.C: New test.
1855 * testsuite/libgomp.c++/for-6.C: New test.
1857 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1860 * testsuite/lib/libgomp.exp: Include new timeout library files.
1861 (libgomp_target_compile): Set timeout value from new proc.
1863 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1866 * config/linux/ia64/mutex.h: New.
1868 2008-11-04 Tobias Burnus <burnus@net-b.de>
1871 * libgomp.texi (Runtime library routines, environment variables):
1872 Update for OpenMP version 3.0.
1874 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1875 Steve Ellcey <sje@cup.hp.com>
1877 * configure: Regenerate for new libtool.
1878 * Makefile.in: Ditto.
1879 * testsuite/Makefile.in: Ditto.
1881 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1882 Andreas Tobler <a.tobler@schweiz.org>
1884 * config/bsd/proc.c: New file.
1885 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1886 * configure.ac: Check for header <sys/sysctl.h>
1887 * configure: Regenerate.
1888 * config.h.in: Likewise.
1890 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1892 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1894 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1896 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1897 * Makefile.in: Regenerated.
1898 * testsuite/Makefile.in: Regenerated.
1900 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1902 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1903 depend on blddir if blddir exists.
1904 (libgomp_target_compile): Likewise.
1905 * testsuite/libgomp.c++/c++.exp: Likewise.
1906 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1908 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1910 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1911 Do not list GPL as Invariant Section.
1913 2008-07-28 Ilie Garbacea <ilie@mips.com>
1914 Chao-ying Fu <fu@mips.com>
1916 * configure.tgt: Enable futex for MIPS.
1917 * config/linux/mips/futex.h: New file.
1919 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1921 * team.c (gomp_team_end): Free team immediately if it has
1924 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1926 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1927 * testsuite/libgomp.fortran/fortran.exp: Same.
1928 * testsuite/libgomp.c/c.exp: Same.
1929 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1930 directory to library path first.
1932 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1934 * env.c (parse_stacksize): Add cast to avoid warning.
1935 (parse_spincount): Likewise.
1937 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1939 * testsuite/libgomp.c/loop-10.c: New test.
1940 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1941 * libgomp.c++/loop-6.C (main): Likewise.
1944 * testsuite/libgomp.c/debug-1.c: New test.
1946 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1948 * testsuite/libgomp.c/nqueens-1.c: New test.
1951 * testsuite/libgomp.c++/task-7.C: New function.
1953 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1955 * configure: Regenerate.
1957 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1959 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1960 mutex when HAVE_SYNC_BUILTINS isn't defined.
1962 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1964 * libgomp.texi (omp_test_lock): Fix typo.
1966 2008-06-12 Tobias Burnus <burnus@net-b.de>
1968 * omp_lib.f90.in: Add "implicit none".
1970 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1973 * testsuite/libgomp.c/reduction-5.c: New test.
1975 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1977 * libgomp.h (struct gomp_task): Add in_tied_task field.
1978 * task.c (gomp_init_task): Initialize it.
1979 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1980 unconditionally. Don't call gomp_team_barrier_wake if
1981 current task is implicit or if(0) from implicit and number of
1982 running tasks is equal to nthreads - 1.
1985 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1986 omp_get_team_size_8): Fix pastos.
1989 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1990 * configure: Regenerated.
1991 * config.h.in: Regenerated.
1992 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1995 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1998 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1999 (GOMP_loop_ull_dynamic_start): Likewise.
2000 (GOMP_loop_ull_guided_start): Likewise.
2001 (GOMP_loop_ull_ordered_static_start): Likewise.
2002 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2003 (GOMP_loop_ull_ordered_guided_start): Likewise.
2005 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2006 Richard Henderson <rth@redhat.com>
2007 Ulrich Drepper <drepper@redhat.com>
2008 Jakob Blomer <jakob.blomer@ira.uka.de>
2010 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2011 Substitute also OMP_*LOCK_25*.
2012 * configure: Regenerated.
2013 * config.h.in: Regenerated.
2014 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2015 ptrlock.c and task.c.
2016 * Makefile.in: Regenerated.
2017 * testsuite/Makefile.in: Regenerated.
2019 * loop_ull.c: New file.
2020 * iter_ull.c: New file.
2021 * libgomp.h: Include ptrlock.h.
2022 (enum gomp_task_kind): New type.
2023 (struct gomp_team): Add task_lock, task_queue, task_count,
2024 task_running_count, single_count fields. Add
2025 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2026 Remove work_share_lock, generation_mask,
2027 oldest_live_gen, num_live_gen and init_work_shares fields, add
2028 work work_share_list_alloc, work_share_list_free and work_share_chunk
2029 fields. Change work_shares from pointer to pointers into an array.
2030 Change ordered_release field into gomp_sem_t ** from flexible array
2031 member. Add implicit_task and initial_work_shares fields.
2032 Move close to the end of the struct.
2033 (struct gomp_team_state): Add single_count, last_work_share,
2034 active_level and level fields, remove work_share_generation.
2035 (gomp_barrier_handle_tasks): New prototype.
2036 (gomp_finish_task): New inline function.
2037 (struct gomp_work_share): Move chunk_size, end, incr into
2038 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2039 next_ll fields. Reshuffle fields. Add next_alloc,
2040 next_ws, next_free and inline_ordered_team_ids fields, change
2041 ordered_team_ids into pointer from flexible array member.
2042 Add mode field. Put lock and next into a different cache line
2043 from most of the write-once fields.
2044 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2045 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2046 gomp_iter_ull_guided_next): New prototypes.
2047 (gomp_new_icv): New prototype.
2048 (struct gomp_thread): Add thread_pool and task fields.
2049 (struct gomp_thread_pool): New type.
2050 (gomp_new_team): New prototype.
2051 (gomp_team_start): Change type of last argument.
2052 (gomp_new_work_share): Removed.
2053 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2054 (gomp_work_share_init_done): New static inline.
2055 (gomp_throttled_spin_count_var, gomp_available_cpus,
2056 gomp_managed_threads): New extern decls.
2057 (gomp_init_task): New prototype.
2058 (gomp_spin_count_var): New extern var decl.
2059 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2060 or no alias support, or if not PIC.
2061 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2062 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2063 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2064 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2065 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2066 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2067 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2068 gomp_test_nest_lock_25): New prototypes.
2069 (omp_lock_symver, strong_alias): Define.
2070 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2072 (gomp_end_task): New.
2073 (struct gomp_task_icv, gomp_global_icv): New.
2074 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2075 (struct gomp_task): New.
2076 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2077 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2079 (gomp_schedule_type): Reorder enum to match
2081 * team.c (struct gomp_thread_start_data): Add thread_pool and task
2083 (gomp_thread_start): Add gomp_team_barrier_wait call.
2084 For non-nested case remove clearing of docked thread thr fields.
2085 Use pool fields instead of global gomp_* variables. Use
2086 gomp_barrier_wait_last when needed. Initialize ts.active_level.
2087 Create tasks for each member thread.
2088 (free_team): Only destroy team barrier, task_lock here and free it.
2089 (gomp_free_thread): Free last_team if non-NULL.
2090 (gomp_team_end): Call gomp_team_barrier_wait instead of
2091 gomp_barrier_wait. For nested case call one extra
2092 gomp_barrier_wait. Move here some destruction from free_team.
2093 Call free_team on pool->last_team if any, rather than freeing
2094 current team. Destroy work_share_list_free_lock ifndef
2096 (gomp_new_icv): New function.
2097 (gomp_threads, gomp_threads_size, gomp_threads_used,
2098 gomp_threads_dock): Removed.
2099 (gomp_thread_destructor): New variable.
2100 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2102 (gomp_team_start): Create new pool if current thread doesn't have
2103 one. Use pool fields instead of global gomp_* variables.
2104 Initialize thread_pool field for new threads. Clear single_count.
2105 Change last argument from ws to team, don't create
2106 new team, set ts.work_share to &team->work_shares[0] and clear
2107 ts.last_work_share. Don't clear ts.work_share_generation.
2108 If number of threads changed, adjust atomically gomp_managed_threads.
2109 Use gomp_init_task instead of gomp_new_task,
2110 set thr->task to the corresponding implicit_task array entry.
2111 Create tasks for each member thread. Initialize ts.level.
2112 (initialize_team): Call pthread_key_create on
2113 gomp_thread_destructor.
2114 (team_destructor): New function.
2115 (new_team): Removed.
2116 (gomp_new_team): New function.
2117 (free_team): Free gomp_work_share blocks chained through next_alloc,
2118 instead of freeing work_shares and destroying work_share_lock.
2119 (gomp_team_end): Call gomp_fini_work_share. If number of threads
2120 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
2121 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2122 of gomp_barrier_wait.
2123 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2124 instead of gomp_barrier_wait. Call gomp_work_share_init_done
2125 if gomp_work_share_start returned true. Don't unlock ws->lock.
2126 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2127 of gomp_barrier_wait.
2128 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
2129 gomp_work_share_init_done if gomp_work_share_start returned true.
2130 Don't unlock ws->lock.
2131 * work.c: Include stddef.h.
2132 (free_work_share): Use work_share_list_free_lock instead
2133 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
2134 Call gomp_fini_work_share and then either free ws if orphaned, or
2135 put it into work_share_list_free list of the current team.
2136 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2138 (gomp_work_share_start, gomp_work_share_end,
2139 gomp_work_share_end_nowait): Rewritten.
2140 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2141 (openmp_version): Set to 200805.
2142 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2143 omp_sched_guided, omp_sched_auto): New parameters.
2144 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2145 omp_set_max_active_levels, omp_get_max_active_levels,
2146 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2147 omp_get_active_level): New interfaces.
2148 * omp_lib.h.in (openmp_version): Set to 200805.
2149 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2150 omp_sched_guided, omp_sched_auto): New parameters.
2151 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2152 omp_set_max_active_levels, omp_get_max_active_levels,
2153 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2154 omp_get_active_level): New externals.
2155 * loop.c: Include limits.h.
2156 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2158 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2159 Likewise. Use gomp_icv.
2160 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2161 ts.static_trip here.
2162 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2163 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
2164 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2165 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
2166 don't unlock ws->lock, otherwise lock it.
2167 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2168 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
2169 (gomp_parallel_loop_start): Call gomp_new_team instead of
2170 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
2171 Adjust gomp_team_start caller. Pass 0 as second argument to
2172 gomp_resolve_num_threads.
2173 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2174 If adding ws->chunk_size nthreads + 1 times after end won't
2175 overflow, set ws->mode to 1.
2176 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2177 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2178 GOMP_loop_ull_ordered_static_start,
2179 GOMP_loop_ull_ordered_dynamic_start,
2180 GOMP_loop_ull_ordered_guided_start,
2181 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2182 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2183 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2184 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2185 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2187 * libgomp.map: Export lock routines also @@OMP_2.0.
2188 (GOMP_loop_ordered_dynamic_first,
2189 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2190 GOMP_loop_ordered_static_first): Remove.
2191 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2192 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2193 GOMP_loop_ull_ordered_dynamic_next,
2194 GOMP_loop_ull_ordered_dynamic_start,
2195 GOMP_loop_ull_ordered_guided_next,
2196 GOMP_loop_ull_ordered_guided_start,
2197 GOMP_loop_ull_ordered_runtime_next,
2198 GOMP_loop_ull_ordered_runtime_start,
2199 GOMP_loop_ull_ordered_static_next,
2200 GOMP_loop_ull_ordered_static_start,
2201 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2202 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2203 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2204 (omp_set_schedule, omp_get_schedule,
2205 omp_get_thread_limit, omp_set_max_active_levels,
2206 omp_get_max_active_levels, omp_get_level,
2207 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2208 omp_set_schedule_, omp_set_schedule_8_,
2209 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2210 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2211 omp_get_max_active_levels_, omp_get_level_,
2212 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2213 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2214 New exports @@OMP_3.0.
2215 * omp.h.in (omp_sched_t): New type.
2216 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2217 omp_set_max_active_levels, omp_get_max_active_levels,
2218 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2219 omp_get_active_level): New prototypes.
2220 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2221 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2222 gomp_thread_limit_var, gomp_remaining_threads_count,
2223 gomp_remaining_threads_lock): New variables.
2224 (parse_spincount): New function.
2225 (initialize_env): Call gomp_init_num_threads unconditionally.
2226 Initialize gomp_available_cpus. Call parse_spincount,
2227 initialize gomp_{,throttled_}spin_count_var
2228 depending on presence and value of OMP_WAIT_POLICY and
2229 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
2230 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2231 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
2232 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
2233 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
2234 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2235 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2236 (gomp_global_icv): New.
2237 (parse_schedule): Use it. Parse "auto".
2238 (omp_set_num_threads): Use gomp_icv.
2239 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2241 (omp_get_max_threads): Move from parallel.c.
2242 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2243 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2245 (parse_stacksize, parse_wait_policy): New functions.
2246 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2247 both wrappers for compatibility and new locks.
2248 (omp_set_schedule, omp_get_schedule,
2249 omp_get_thread_limit, omp_set_max_active_levels,
2250 omp_get_max_active_levels, omp_get_level,
2251 omp_get_ancestor_thread_num, omp_get_team_size,
2252 omp_get_active_level): New ialias_redirect.
2253 (omp_set_schedule_, omp_set_schedule_8_,
2254 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2255 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2256 omp_get_max_active_levels_, omp_get_level_,
2257 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2258 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2260 * parallel.c: Include limits.h.
2261 (gomp_resolve_num_threads): Add count argument. Rewritten.
2262 (GOMP_parallel_start): Call gomp_new_team and pass that as last
2263 argument to gomp_team_start. Pass 0 as second argument to
2264 gomp_resolve_num_threads.
2265 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2266 if gomp_thread_limit_var != ULONG_MAX.
2267 (omp_in_parallel): Implement using ts.active_level.
2268 (omp_get_max_threads): Move to env.c.
2269 (omp_get_level, omp_get_ancestor_thread_num,
2270 omp_get_team_size, omp_get_active_level): New functions,
2272 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2273 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
2274 gomp_iter_dynamic_next instead of the _locked variant and don't take
2275 lock around it, otherwise acquire it before calling
2276 gomp_iter_dynamic_next_locked.
2277 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2278 gomp_iter_dynamic_next instead of the _locked variant and don't take
2280 (GOMP_parallel_sections_start): Call gomp_new_team instead of
2281 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
2282 Adjust gomp_team_start caller. Pass count as second argument to
2283 gomp_resolve_num_threads, don't adjust num_threads after the call.
2285 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2286 ws->chunk_size by incr.
2287 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
2289 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2291 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2292 (omp_check_defines): Check even the compat defines.
2293 * config/linux/ptrlock.c: New file.
2294 * config/linux/ptrlock.h: New file.
2295 * config/linux/wait.h: New file.
2296 * config/posix/ptrlock.c: New file.
2297 * config/posix/ptrlock.h: New file.
2298 * config/linux/bar.h (gomp_team_barrier_wait,
2299 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2300 (gomp_team_barrier_set_task_pending,
2301 gomp_team_barrier_clear_task_pending,
2302 gomp_team_barrier_set_waiting_for_tasks,
2303 gomp_team_barrier_waiting_for_tasks,
2304 gomp_team_barrier_done): New inlines.
2305 (gomp_barrier_t): Rewritten.
2306 (gomp_barrier_state_t): New typedef.
2307 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2308 gomp_barrier_wait_start): Rewritten.
2309 (gomp_barrier_wait_end): Change second argument to
2310 gomp_barrier_state_t.
2311 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2313 * config/linux/bar.c: Include wait.h instead of libgomp.h and
2315 (gomp_barrier_wait_end): Rewritten.
2316 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2317 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2318 * config/posix/bar.h (gomp_barrier_t): Add generation field.
2319 (gomp_barrier_state_t): New typedef.
2320 (gomp_team_barrier_wait,
2321 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2322 (gomp_barrier_wait_start): Or all but low 2 bits from generation
2323 into the return value. Return gomp_barrier_state_t.
2324 (gomp_team_barrier_set_task_pending,
2325 gomp_team_barrier_clear_task_pending,
2326 gomp_team_barrier_set_waiting_for_tasks,
2327 gomp_team_barrier_waiting_for_tasks,
2328 gomp_team_barrier_done): New inlines.
2329 (gomp_barrier_wait_end): Change second argument to
2330 gomp_barrier_state_t.
2331 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2333 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2334 (gomp_barrier_wait_end): Change second argument to
2335 gomp_barrier_state_t.
2336 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2337 gomp_team_barrier_wake): New functions.
2338 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2340 (gomp_futex_wake, gomp_futex_wait): New variables.
2341 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2342 * config/linux/lock.c: Rewrite to make locks task owned,
2343 for backwards compatibility provide the old entrypoints
2344 if symbol versioning. Include wait.h instead of libgomp.h and
2346 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2347 * config/posix95/lock.c: Rewrite to make locks task owned,
2348 for backwards compatibility provide the old entrypoints
2349 if symbol versioning.
2350 * config/posix/lock.c: Rewrite to make locks task owned,
2351 for backwards compatibility provide the old entrypoints
2352 if symbol versioning.
2353 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2354 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2355 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2356 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2357 (sys_futex0): Return error code.
2358 (futex_wake, futex_wait): If ENOSYS was returned, clear
2359 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2360 (cpu_relax, atomic_write_barrier): New static inlines.
2361 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2362 (futex_wake, futex_wait): If ENOSYS was returned, clear
2363 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2364 (cpu_relax, atomic_write_barrier): New static inlines.
2365 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2366 (sys_futex0): Return error code.
2367 (futex_wake, futex_wait): If ENOSYS was returned, clear
2368 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2369 (cpu_relax, atomic_write_barrier): New static inlines.
2370 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2371 (sys_futex0): Return error code.
2372 (futex_wake, futex_wait): If ENOSYS was returned, clear
2373 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2374 (cpu_relax, atomic_write_barrier): New static inlines.
2375 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2376 (sys_futex0): Return error code.
2377 (futex_wake, futex_wait): If ENOSYS was returned, clear
2378 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2379 (cpu_relax, atomic_write_barrier): New static inlines.
2380 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2381 (sys_futex0): Return error code.
2382 (futex_wake, futex_wait): If ENOSYS was returned, clear
2383 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2384 (cpu_relax, atomic_write_barrier): New static inlines.
2385 * config/linux/sem.c: Include wait.h instead of libgomp.h and
2387 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2388 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2389 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2391 (omp_nest_lock_t): Change owner into void *, add lock field.
2392 * config/posix95/omp-lock.h: Include semaphore.h.
2393 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2394 (omp_lock_t): Use sem_t instead of mutex if semaphores
2396 (omp_nest_lock_t): Likewise. Change owner to void *.
2397 * config/posix/omp-lock.h: Include semaphore.h.
2398 (omp_lock_25_t, omp_nest_lock_25_t): New types.
2399 (omp_lock_t): Use sem_t instead of mutex if semaphores
2401 (omp_nest_lock_t): Likewise. Add owner field.
2403 2008-06-06 Jakub Jelinek <jakub@redhat.com>
2405 * testsuite/libgomp.c/collapse-1.c: New test.
2406 * testsuite/libgomp.c/collapse-2.c: New test.
2407 * testsuite/libgomp.c/collapse-3.c: New test.
2408 * testsuite/libgomp.c/icv-1.c: New test.
2409 * testsuite/libgomp.c/icv-2.c: New test.
2410 * testsuite/libgomp.c/lib-2.c: New test.
2411 * testsuite/libgomp.c/lock-1.c: New test.
2412 * testsuite/libgomp.c/lock-2.c: New test.
2413 * testsuite/libgomp.c/lock-3.c: New test.
2414 * testsuite/libgomp.c/loop-4.c: New test.
2415 * testsuite/libgomp.c/loop-5.c: New test.
2416 * testsuite/libgomp.c/loop-6.c: New test.
2417 * testsuite/libgomp.c/loop-7.c: New test.
2418 * testsuite/libgomp.c/loop-8.c: New test.
2419 * testsuite/libgomp.c/loop-9.c: New test.
2420 * testsuite/libgomp.c/nested-3.c: New test.
2421 * testsuite/libgomp.c/nestedfn-6.c: New test.
2422 * testsuite/libgomp.c/sort-1.c: New test.
2423 * testsuite/libgomp.c/task-1.c: New test.
2424 * testsuite/libgomp.c/task-2.c: New test.
2425 * testsuite/libgomp.c/task-3.c: New test.
2426 * testsuite/libgomp.c/task-4.c: New test.
2427 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2428 to C++ testsuite default compiler options.
2429 * testsuite/libgomp.c++/collapse-1.C: New test.
2430 * testsuite/libgomp.c++/collapse-2.C: New test.
2431 * testsuite/libgomp.c++/ctor-10.C: New test.
2432 * testsuite/libgomp.c++/for-1.C: New test.
2433 * testsuite/libgomp.c++/for-2.C: New test.
2434 * testsuite/libgomp.c++/for-3.C: New test.
2435 * testsuite/libgomp.c++/for-4.C: New test.
2436 * testsuite/libgomp.c++/for-5.C: New test.
2437 * testsuite/libgomp.c++/loop-8.C: New test.
2438 * testsuite/libgomp.c++/loop-9.C: New test.
2439 * testsuite/libgomp.c++/loop-10.C: New test.
2440 * testsuite/libgomp.c++/task-1.C: New test.
2441 * testsuite/libgomp.c++/task-2.C: New test.
2442 * testsuite/libgomp.c++/task-3.C: New test.
2443 * testsuite/libgomp.c++/task-4.C: New test.
2444 * testsuite/libgomp.c++/task-5.C: New test.
2445 * testsuite/libgomp.c++/task-6.C: New test.
2446 * testsuite/libgomp.fortran/allocatable1.f90: New test.
2447 * testsuite/libgomp.fortran/allocatable2.f90: New test.
2448 * testsuite/libgomp.fortran/allocatable3.f90: New test.
2449 * testsuite/libgomp.fortran/allocatable4.f90: New test.
2450 * testsuite/libgomp.fortran/collapse1.f90: New test.
2451 * testsuite/libgomp.fortran/collapse2.f90: New test.
2452 * testsuite/libgomp.fortran/collapse3.f90: New test.
2453 * testsuite/libgomp.fortran/collapse4.f90: New test.
2454 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2455 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2456 * testsuite/libgomp.fortran/lib4.f90: New test.
2457 * testsuite/libgomp.fortran/lock-1.f90: New test.
2458 * testsuite/libgomp.fortran/lock-2.f90: New test.
2459 * testsuite/libgomp.fortran/nested1.f90: New test.
2460 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2461 * testsuite/libgomp.fortran/strassen.f90: New test.
2462 * testsuite/libgomp.fortran/tabs1.f90: New test.
2463 * testsuite/libgomp.fortran/tabs2.f: New test.
2464 * testsuite/libgomp.fortran/task1.f90: New test.
2465 * testsuite/libgomp.fortran/task2.f90: New test.
2466 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2467 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2468 * testsuite/libgomp.c/pr26943-2.c: Likewise.
2469 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2470 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2472 2008-05-23 Jakub Jelinek <jakub@redhat.com>
2475 * testsuite/libgomp.c++/ctor-11.C: New test.
2476 * testsuite/libgomp.c++/ctor-12.C: New test.
2478 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2480 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2482 2008-05-07 Jakub Jelinek <jakub@redhat.com>
2485 * testsuite/libgomp.c/atomic-5.c: New test.
2486 * testsuite/libgomp.c/atomic-6.c: New test.
2487 * testsuite/libgomp.c/autopar-1.c: New test.
2489 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2491 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2492 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2493 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2494 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2495 * configure: Regenerate.
2496 * Makefile.in, testsuite/Makefile.in: Likewise.
2498 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2501 * aclocal.m4: Regenerate.
2502 * configure: Regenerate.
2504 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2507 * testsuite/libgomp.c/atomic-4.c: New test.
2510 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2511 (gomp_iter_guided_next): Likewise.
2512 * testsuite/libgomp.c/pr35625.c: New test.
2514 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2516 * aclocal.m4: Regenerate.
2517 * configure: Likewise.
2518 * Makefile.in: Likewise.
2519 * testsuite/Makefile.in: Likewise.
2521 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2524 * testsuite/libgomp.c++/pr35185.C: New test.
2526 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2529 * testsuite/libgomp.c/pr35549.c: New test.
2531 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2533 * testsuite/libgomp.c/atomic-3.c: New test.
2535 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2538 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2541 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
2544 * configure.ac: Add ACX_HEADER_STRING.
2545 * env.c: Include strings.h.
2546 * aclocal.m4: Regenerate.
2547 * config.h.in: Regenerate.
2548 * configure: Regenerate.
2549 * Makefile.in: Regenerate.
2550 * testsuite/Makefile.in: Regenerate.
2552 2008-02-15 Jakub Jelinek <jakub@redhat.com>
2555 * testsuite/libgomp.c/pr35196.c: New test.
2558 * testsuite/libgomp.fortran/pr35130.f90: New test.
2559 * testsuite/libgomp.c/pr35130.c: New test.
2561 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2564 * testsuite/libgomp.c/pr33880.c: New test.
2565 * testsuite/libgomp.fortran/pr33880.f90: New test.
2567 2008-01-24 David Edelsohn <edelsohn@gnu.org>
2569 * configure: Regenerate.
2571 2008-01-08 Jakub Jelinek <jakub@redhat.com>
2573 * configure.ac: Move futex checking into ../config/futex.m4.
2574 * configure: Rebuilt.
2575 * aclocal.m4: Rebuilt.
2576 * Makefile.in: Rebuilt.
2578 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2579 2007-10-15 ../config/tls.m4 change.
2581 2007-12-19 Jakub Jelinek <jakub@redhat.com>
2584 * testsuite/libgomp.c/pr34513.c: New test.
2585 * testsuite/libgomp.c++/pr34513.C: New test.
2587 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
2590 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2592 2007-12-04 Jakub Jelinek <jakub@redhat.com>
2594 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
2596 2007-12-03 Jakub Jelinek <jakub@redhat.com>
2598 * testsuite/libgomp.c/private-1.c: New test.
2600 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
2601 Paolo Bonzini <bonzini@gnu.org>
2603 * Makefile.am: Use space as vpath separator. Use 'vpath %'
2604 instead of 'VPATH ='.
2605 * Makefile.in: Regenerate.
2607 2007-11-23 Matthias Klose <doko@ubuntu.com>
2609 * configure.ac: Adjust makeinfo version check.
2610 * configure: Regenerate.
2612 2007-11-10 Jakub Jelinek <jakub@redhat.com>
2615 * testsuite/libgomp.fortran/pr34020.f90: New test.
2617 2007-11-06 Jakub Jelinek <jakub@redhat.com>
2620 * testsuite/libgomp.c++/atomic-1.C: New test.
2622 2007-10-25 Jakub Jelinek <jakub@redhat.com>
2625 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2626 Make x and y integers rather than (implicit) reals. Add private (j)
2627 clause to the last omp parallel.
2629 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
2631 * configure: Regenerate following changes to ../config/tls.m4.
2633 2007-09-28 Jakub Jelinek <jakub@redhat.com>
2635 * testsuite/libgomp.fortran/stack.f90: New test.
2637 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
2639 * config/mingw32/proc.c: New file.
2641 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
2643 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2644 (main): Use __get_cpuid to get i386 target fetaures.
2645 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2646 (main): Use __get_cpuid to get x86_64 target fetaures.
2648 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
2651 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2652 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2654 2007-07-12 Jakub Jelinek <jakub@redhat.com>
2657 * testsuite/libgomp.fortran/pr32550.f90: New test.
2658 * testsuite/libgomp.fortran/crayptr2.f90: New test.
2660 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
2662 * aclocal.m4: Regenerated.
2664 2007-07-05 Tobias Burnus <burnus@net-b.de>
2667 * testsuite/libgomp.fortran/pr32359.f90: New.
2669 2007-07-02 Jakub Jelinek <jakub@redhat.com>
2672 * sections.c (GOMP_parallel_sections_start): Only decrease
2673 number of threads to COUNT if dyn_var is true.
2674 * testsuite/libgomp.c/pr32468.c: New test.
2676 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2679 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2681 2007-06-21 Jakub Jelinek <jakub@redhat.com>
2684 * testsuite/libgomp.c/pr32362-1.c: New test.
2685 * testsuite/libgomp.c/pr32362-2.c: New test.
2686 * testsuite/libgomp.c/pr32362-3.c: New test.
2688 2007-06-07 Jakub Jelinek <jakub@redhat.com>
2690 * team.c (gomp_team_start): Fix setting up thread_attr
2693 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
2695 * configure: Regenerate.
2697 2007-05-23 Steve Ellcey <sje@cup.hp.com>
2699 * Makefile.in: Regenerate.
2700 * configure: Regenerate.
2701 * aclocal.m4: Regenerate.
2702 * testsuite/Makefile.in: Regenerate.
2704 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2706 * config/linux/proc.c: New file.
2709 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2711 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2713 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2715 2007-04-16 Matthias Klose <doko@debian.org>
2717 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2718 flags if not building with -m64.
2719 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2720 flag for i?86-*-* targets, if current target matches -m64.
2722 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2724 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2725 * Makefile.in: Regenerate.
2727 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2730 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2732 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2734 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2736 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2738 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2739 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2740 (parse_affinity): New function.
2741 (initialize_env): Call it and gomp_init_affinity.
2742 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2743 create new pthread_attr_t and call gomp_init_thread_affinity
2744 on it for each thread before passing the attribute to pthread_create.
2745 * config/linux/affinity.c: New file.
2746 * config/posix/affinity.c: New file.
2747 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2748 * configure: Rebuilt.
2749 * config.h.in: Rebuilt.
2750 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2751 * Makefile.in: Rebuilt.
2753 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2755 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2757 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2758 and use it if found.
2760 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2762 * testsuite/config/default.exp: New file.
2763 * testsuite/lib/libgomp.exp: New file.
2764 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2765 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2766 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2767 (libgomp_load): Remove.
2768 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2769 always_ld_library_path, not ld_library_path. Set additional_flags
2770 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2771 (target_compile): Do not call libgomp_init. Append lang_library_path
2772 and lang_link_flags to options.
2773 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2774 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2776 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2777 always_ld_library_path. Set LD_LIBRARY_PATH here.
2778 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2779 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2780 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2782 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2783 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2784 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2785 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2786 * testsuite/libgomp.c/atomic-10.c: Ditto.
2788 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2790 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2791 dg-final cleanup-modules line.
2792 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2793 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2794 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2795 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2796 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2797 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2798 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2800 2007-03-18 Andreas Schwab <schwab@suse.de>
2802 * acinclude.m4: Adjust regular expression for ld version
2804 * configure: Regenerate.
2806 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2808 * Makefile.am: Add install-pdf target as copied from
2809 automake v1.10 rules.
2810 * Makefile.in: Regenerate
2812 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2815 * configure: Regenerate.
2818 * testsuite/libgomp.c++/pr30703.C: New test.
2820 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2823 2006-07-05 Eric Christopher <echristo@apple.com>
2824 * configure.ac: Depend addition of -pthread on host OS.
2825 * configure: Regenerate.
2827 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2829 * libgomp.texi: Fix spacing after abbreviations.
2831 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2834 * configure.ac: Add check for makeinfo
2835 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2836 if an appropiate version of makeinfo is found.
2837 * aclocal.m4: Regenerated.
2838 * configure: Regenerated.
2839 * Makefile.in: Regenerated.
2840 * testsuite/Makefile.in: Regenerated.
2842 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2845 * libgomp.texi: More about implementation-dependent settings.
2847 2007-01-26 Tobias Burnus <burnus@net-b.de>
2849 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2851 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2854 * testsuite/libgomp.c/pr30494.c: New test.
2856 2007-01-15 Tom Tromey <tromey@redhat.com>
2858 * configure: Rebuilt.
2859 * configure.ac: Fixed comment.
2861 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2863 * libgomp.texi: Document implementation specific default values of
2864 environment variables.
2866 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2869 * libgomp.texi: New file.
2870 * configure.ac: Add --enable-generated-files-in-srcdir option.
2871 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2873 * Makefile.in: Regenerated.
2874 * config.h.in: Regenerated.
2875 * testsuite/Makefile.in: Regenerated.
2878 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2881 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2883 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2885 * configure: Regenerate.
2887 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2890 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2891 start if there shouldn't be any loop iterations.
2892 (gomp_loop_ordered_static_start): Remove start == end test.
2893 * testsuite/libgomp.c/pr29947-1.c: New test.
2894 * testsuite/libgomp.c/pr29947-2.c: New test.
2896 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2898 * configure.tgt: Force initial-exec TLS model on Linux only.
2900 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2902 * configure: Regenerated.
2904 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2906 * env.c (parse_schedule): Reject out of range values.
2907 (parse_unsigned_long): Reject out of range, negative or zero values.
2909 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2912 * testsuite/libgomp.fortran/pr29629.f90: New test.
2914 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2917 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2918 * config/posix95: New directory.
2919 * config/posix95/omp-lock.h: New file.
2920 * config/posix95/lock.c: Likewise.
2922 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2924 * aclocal.m4: Regenerate.
2925 * configure: Regenerate.
2927 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2929 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2932 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2934 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2936 * configure: Regenerate.
2937 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2939 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2943 * testsuite/libgomp.c/nestedfn-4.c: New test.
2944 * testsuite/libgomp.c/nestedfn-5.c: New test.
2945 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2948 * testsuite/libgomp.fortran/condinc1.f: New test.
2949 * testsuite/libgomp.fortran/condinc2.f: New test.
2950 * testsuite/libgomp.fortran/condinc3.f90: New test.
2951 * testsuite/libgomp.fortran/condinc4.f90: New test.
2952 * testsuite/libgomp.fortran/condinc1.inc: New file.
2954 2006-09-18 Tom Tromey <tromey@redhat.com>
2956 * configure: Rebuilt.
2958 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2961 PR preprocessor/14634
2962 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2964 * configure: Regenerate.
2966 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2968 * testsuite/libgomp.fortran/reduction3.f90: Change
2969 -2147483648 to -huge(i)-1 to avoid overflow.
2970 * testsuite/libgomp.fortran/reduction4.f90: Change
2971 Z'ffffffff' to not(0) to avoid overflow.
2973 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2976 * Makefile.am (libsubincludedir): New.
2977 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2978 * Makefile.in: Regenerate.
2980 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2983 * env.c: Include ctype.h.
2984 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2985 leading and/or trailing whitespace and compare strings case
2988 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2991 * testsuite/libgomp.fortran/pr28390.f: New test.
2993 2006-07-05 Eric Christopher <echristo@apple.com>
2995 * configure.ac: Depend addition of -pthread on host OS.
2996 * configure: Regenerate.
2998 2006-06-21 Jakub Jelinek <jakub@redhat.com>
3000 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3001 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3004 2006-06-20 Jakub Jelinek <jakub@redhat.com>
3008 * configure.ac: If neither --enable-linux-futex nor
3009 --disable-linux-futex is passed, determine the default by checking
3010 for compiling and/or running against NPTL. With --enable-linux-futex,
3011 check if SYS_gettid and SYS_futex are defined.
3012 * configure: Rebuilt.
3014 2006-06-14 Richard Henderson <rth@redhat.com>
3017 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3018 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3020 2006-06-09 Richard Henderson <rth@redhat.com>
3022 * env.c (gomp_nthreads_var): Change to unsigned long.
3023 (gomp_run_sched_chunk): Likewise.
3024 (parse_unsigned_long): Rename from parse_num_threads and generalize.
3025 (initialize_env): Initialize gomp_thread_attr.
3026 * libgomp.h (gomp_nthreads_var): Update decl.
3027 (gomp_run_sched_chunk): Likewise.
3028 (gomp_thread_attr): Declare.
3029 * team.c (gomp_thread_attr): Export.
3030 (initialize_team): Don't initialize it.
3032 2006-06-09 Jakub Jelinek <jakub@redhat.com>
3035 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3036 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3038 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3040 * config/mingw32/time.c: New file.
3041 * configure.tgt: Use it.
3043 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
3045 * Makefile.am: Add install-html target. Add install-html to .PHONY
3046 * Makefile.in: Regenerate.
3048 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3051 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3052 * testsuite/libgomp.c/critical-1.c: Likewise.
3053 * testsuite/libgomp.c/loop-1.c: Likewise.
3054 * testsuite/libgomp.c/loop-2.c: Likewise.
3055 * testsuite/libgomp.c/single-1.c: Likewise.
3056 * testsuite/libgomp.c/ordered-1.c: Likewise.
3057 * testsuite/libgomp.c/ordered-2.c: Likewise.
3059 2006-05-15 Jakub Jelinek <jakub@redhat.com>
3062 * libgomp.fortran/pr27416-1.f90: New test.
3064 2006-05-03 Jakub Jelinek <jakub@redhat.com>
3067 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3068 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3070 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3073 * testsuite/libgomp.c/pr26943-1.c: New test.
3074 * testsuite/libgomp.c/pr26943-2.c: New test.
3075 * testsuite/libgomp.c/pr26943-3.c: New test.
3076 * testsuite/libgomp.c/pr26943-4.c: New test.
3077 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3078 * testsuite/libgomp.c++/pr26943.C: New test.
3080 2006-05-02 Jakub Jelinek <jakub@redhat.com>
3083 * testsuite/libgomp.c++/pr27337.C: New test.
3085 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3088 * testsuite/libgomp.c/pr26171.c: New test.
3090 2006-04-25 Richard Henderson <rth@redhat.com>
3093 * configure.ac: Use GCC_CHECK_TLS.
3094 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3095 * Makefile.in, aclocal.m4, configure: Regenerate.
3097 2006-04-10 Matthias Klose <doko@debian.org>
3099 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3100 directory names containing underscores.
3102 2006-03-21 Jakub Jelinek <jakub@redhat.com>
3105 * testsuite/libgomp.c++/pr26691.C: New test.
3107 2006-03-13 Jakub Jelinek <jakub@redhat.com>
3109 * testsuite/libgomp.fortran/retval2.f90: New test.
3111 2006-03-09 Diego Novillo <dnovillo@redhat.com>
3113 * testsuite/libgomp.c++: New directory.
3115 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
3117 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3118 * config/posix/sem.c: Implement the above.
3120 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
3122 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3123 define HAVE_BROKEN_POSIX_SEMAPHORES.
3124 * configure: Rebuilt.
3125 * config.h.in: Rebuilt.
3127 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3130 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3131 for the other pthread check.
3132 * configure: Regenerate.
3133 * config.h.in: Regenerate.
3135 2006-02-15 Jakub Jelinek <jakub@redhat.com>
3139 * Makefile.am (fincludedir): New variable.
3140 (nodist_include_HEADERS): Remove Fortran files.
3141 (nodist_finclude_HEADERS): New variable.
3142 * Makefile.in: Regenerated.
3144 2006-02-13 Jakub Jelinek <jakub@redhat.com>
3146 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3147 Remove tests for returning assumed character length arrays.
3149 2006-02-12 Roger Sayle <roger@eyesopen.com>
3150 John David Anglin <dave@hiauly1.hia.nrc.ca>
3153 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3155 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3157 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3159 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3161 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3162 part of LD_LIBRARY_PATH manually.
3164 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
3167 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3170 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
3173 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3174 * configure.ac (PERL): Don't set.
3175 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3176 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3177 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3178 * omp.h.in: Wrap the new configure substitutions with @ characters.
3179 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3180 * aclocal.m4, configure, Makefile.in: Regenerate.
3181 * mkomp_h.pl: Delete.
3183 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
3186 * configure.ac: Use GCC_HEADER_STDINT.
3187 * libgomp.h: Include gstdint.h.
3188 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3189 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3191 2006-01-24 Richard Henderson <rth@redhat.com>
3194 * configure.ac: Add AM_MAINTAINER_MODE.
3195 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3197 2006-01-24 Diego Novillo <dnovillo@redhat.com>
3199 * Makefile.in: Regenerate.
3200 * testsuite/Makefile.in: Regenerate.
3201 * aclocal.m4: Regenerate.
3203 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3205 * config/posix/proc.c: Conditional include of sys/loadavg.h for
3207 * configure.ac: Add check for loadavg.h.
3208 (link_gomp): Adjust comment.
3209 * configure: Regenerate.
3210 * config.h.in: Regenerate.
3212 2006-01-21 Steve Ellcey <sje@cup.hp.com>
3215 * configure.ac: Remove check for alloca.h.
3216 * configure: Regenerate.
3217 * config.h.in: Regenerate.
3218 * libgomp.h: define gomp_alloca to be __builtin_alloca.
3219 * team.c: Remove use of alloca.h.
3220 Call gomp_alloca instead of alloca.
3222 2006-01-20 Steve Ellcey <sje@cup.hp.com>
3225 * team.c: Add include of alloca.h.
3226 * configure.ac: Add check for alloca.h.
3227 * configure: Regenerate.
3228 * config.h.in: Regenerate.
3230 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3233 * testsuite/libgomp.fortran/pr25219.f90: New test.
3235 2005-12-05 Uros Bizjak <uros@kss-loka.si>
3237 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3238 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3239 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3240 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3241 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3242 testsuite/libgomp.fortran/threadprivate1.f90,
3243 testsuite/libgomp.fortran/threadprivate2.f90,
3244 testsuite/libgomp.fortran/threadprivate3.f90,
3245 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3246 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3247 testsuite/libgomp.fortran/omp_parse3.f90: Change required
3248 effective-target to TLS runtime.
3250 * testsuite/libgomp.fortran/pr25162.f: Require
3251 effective-target TLS runtime.
3253 2005-12-01 Jakub Jelinek <jakub@redhat.com>
3255 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3256 * testsuite/libgomp.c/nestedfn-3.c: New test.
3258 2005-11-30 Jakub Jelinek <jakub@redhat.com>
3261 * testsuite/libgomp.fortran/pr25162.f: New test.
3263 2005-11-28 Jakub Jelinek <jakub@redhat.com>
3265 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3266 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3268 2005-11-25 Jakub Jelinek <jakub@redhat.com>
3270 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3271 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3272 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3273 single.c, team.c, work.c, config/linux/alpha/futex.h,
3274 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3275 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3276 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3277 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3278 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3279 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3280 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3283 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3285 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3286 to nodist_noinst_HEADERS.
3287 * Makefile.in: Rebuilt.
3289 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3290 add integer count field.
3291 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3292 omp_nest_lock_t type change.
3293 (omp_init_nest_lock): Likewise. Initialize count to 0.
3294 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3296 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3298 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3299 Increment count if successful and return the new nesting level.
3300 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3301 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3302 * testsuite/libgomp.c/lib-1.c: New test.
3303 * testsuite/libgomp.fortran/lib1.f90: New test.
3304 * testsuite/libgomp.fortran/lib2.f: New test.
3305 * testsuite/libgomp.fortran/lib3.f: New test.
3307 2005-11-17 Richard Henderson <rth@redhat.com>
3310 * Makefile.am (nodist_toolexeclib_HEADERS): New.
3311 * configure.ac (link_gomp): New. Substitute it.
3312 (AC_CONFIG_FILES): Add libgomp.spec.
3313 * libgomp.spec.in: New file.
3314 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3315 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3317 2005-11-18 Jakub Jelinek <jakub@redhat.com>
3319 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3320 reduction(-:var) behaving the same as reduction(+:var).
3321 * testsuite/libgomp.c/reduction-4.c: New test.
3323 2005-11-15 Uros Bizjak <uros@kss-loka.si>
3325 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3326 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3327 testsuite/libgomp.c/copyin-3.c,
3328 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3329 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3330 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3331 testsuite/libgomp.c++/pr24455.C,
3332 testsuite/libgomp.fortran/threadprivate1.f90,
3333 testsuite/libgomp.fortran/threadprivate2.f90,
3334 testsuite/libgomp.fortran/threadprivate3.f90,
3335 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3336 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3337 testsuite/libgomp.fortran/omp_parse3.f90: Require
3338 effective-target TLS.
3340 2005-11-14 Diego Novillo <dnovillo@redhat.com>
3344 2005-11-13 Jakub Jelinek <jakub@redhat.com>
3347 * team.c (initialize_team): Pass NULL rather than free as
3348 pthread_key_create destructor. Initialize thread specific data
3349 pointer in initial thread to a static local variable rather than
3352 2005-11-11 Uros Bizjak <uros@kss-loka.si>
3354 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3355 its location to ld_library_path.
3357 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3359 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3361 2005-11-10 Diego Novillo <dnovillo@redhat.com>
3363 * testsuite/libgomp.c: Rename from libgomp.dg.
3365 2005-11-09 Diego Novillo <dnovillo@redhat.com>
3367 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3368 threadprivate variable 'i'.
3370 2005-11-09 Jakub Jelinek <jakub@redhat.com>
3372 * config/linux/s390/futex.h: New file.
3373 * configure.tgt: Use it.
3375 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3376 before the parallel.
3378 2005-11-08 Jakub Jelinek <jakub@redhat.com>
3381 * testsuite/libgomp.c++/master-1.C: New test.
3383 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3385 * testsuite/libgomp.dg/copyin-3.c: New test.
3387 2005-11-07 Jakub Jelinek <jakub@redhat.com>
3389 * testsuite/libgomp.fortran/retval1.f90: New test.
3390 * testsuite/libgomp.fortran/vla7.f90: New test.
3392 2005-11-06 Jakub Jelinek <jakub@redhat.com>
3394 * testsuite/libgomp.fortran/vla2.f90: New test.
3395 * testsuite/libgomp.fortran/vla3.f90: New test.
3396 * testsuite/libgomp.fortran/vla4.f90: New test.
3397 * testsuite/libgomp.fortran/vla5.f90: New test.
3398 * testsuite/libgomp.fortran/vla6.f90: New test.
3400 2005-11-01 Jakub Jelinek <jakub@redhat.com>
3402 * config/linux/sparc/futex.h: New file.
3403 * configure.tgt: Use it.
3404 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3406 * critical.c: Include stdlib.h.
3407 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3408 ignoring return value.
3409 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3410 LIBGOMP_CHECK_SYNC_BUILTINS check.
3411 * configure: Rebuilt.
3413 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3415 * testsuite/libgomp.fortran/vla1.f90: New test.
3417 2005-10-31 Richard Henderson <rth@redhat.com>
3419 * testsuite/libgomp.fortran/character2.f90: Fix race condition
3420 setting 's' in different threads.
3422 2005-10-31 Jakub Jelinek <jakub@redhat.com>
3424 * libgomp.h (attribute_hidden, ialias): Define.
3425 * config/posix/proc.c (omp_get_num_procs): Add ialias.
3426 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3427 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3428 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3429 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3430 omp_test_lock, omp_test_nest_lock): Likewise.
3431 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3432 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3433 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3434 omp_test_lock, omp_test_nest_lock): Likewise.
3435 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3436 omp_get_dynamic, omp_get_nested): Likewise.
3437 * parallel.c (omp_get_num_threads, omp_get_max_threads,
3438 omp_get_thread_num, omp_in_parallel): Likewise.
3439 * fortran.c (ialias_redirect): Define.
3440 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3441 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3442 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3443 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3444 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3445 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3446 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3447 omp_get_wtime): Add ialias_redirect.
3449 2005-10-30 Jakub Jelinek <jakub@redhat.com>
3451 * fortran.c: Include stdlib.h.
3453 2005-10-29 Jakub Jelinek <jakub@redhat.com>
3455 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3456 * Makefile.in: Regenerated.
3458 2005-10-28 Jakub Jelinek <jakub@redhat.com>
3460 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3461 * libgomp_f.h.in (omp_check_defines): New function.
3462 * env.c: Include libgomp_f.h.
3463 (initialize_env): Call omp_check_defines.
3465 * testsuite/libgomp.dg/copyin-2.c: New test.
3466 * testsuite/libgomp.c++/copyin-2.C: New test.
3467 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3469 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3470 * testsuite/libgomp.fortran/sharing2.f90: New test.
3472 * testsuite/libgomp.dg/copyin-1.c: New test.
3473 * testsuite/libgomp.c++/copyin-1.C: New test.
3475 2005-10-26 Jakub Jelinek <jakub@redhat.com>
3477 * testsuite/libgomp.fortran/crayptr1.f90: New test.
3479 * testsuite/libgomp.fortran/workshare1.f90: New test.
3481 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3483 * libgomp.fortran/sharing1.f90: New test.
3485 2005-10-24 Jakub Jelinek <jakub@redhat.com>
3488 * testsuite/libgomp.c++/loop-7.C: New test.
3490 * testsuite/libgomp.dg/nestedfn-2.c: New test.
3492 * testsuite/libgomp.dg/nestedfn-1.c: New test.
3493 * testsuite/libgomp.fortran/reduction6.f90: New test.
3494 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3496 2005-10-23 Richard Henderson <rth@redhat.com>
3498 * testsuite/libgomp.c++/ctor-1.C: New.
3499 * testsuite/libgomp.c++/ctor-2.C: New.
3500 * testsuite/libgomp.c++/ctor-3.C: New.
3501 * testsuite/libgomp.c++/ctor-4.C: New.
3502 * testsuite/libgomp.c++/ctor-5.C: New.
3503 * testsuite/libgomp.c++/ctor-6.C: New.
3504 * testsuite/libgomp.c++/ctor-7.C: New.
3505 * testsuite/libgomp.c++/ctor-8.C: New.
3506 * testsuite/libgomp.c++/ctor-9.C: New.
3508 2005-10-21 Diego Novillo <dnovillo@redhat.com>
3511 * testsuite/libgomp.c++/pr24455-1.C: New test.
3512 * testsuite/libgomp.c++/pr24455.C: New test.
3513 * testsuite/libgomp.dg/pr24455-1.c: New test.
3514 * testsuite/libgomp.dg/pr24455.c: New test.
3516 2005-10-20 Richard Henderson <rth@redhat.com>
3518 * testsuite/libgomp.c++/loop-6.C: New.
3519 * testsuite/libgomp.dg/loop-3.c: New.
3521 2005-10-20 Jakub Jelinek <jakub@redhat.com>
3523 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3525 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3528 2005-10-19 Diego Novillo <dnovillo@redhat.com>
3530 * testsuite/libgomp.fortran/jacobi.f: New test.
3532 2005-10-19 Richard Henderson <rth@redhat.com>
3534 * configure.tgt (i?86-linux): Default to with_arch instead of
3535 CFLAGS. Add -mtune to match target_cpu.
3536 (x86_64-linux): Tune to i686.
3538 * fortran.c (omp_test_nest_lock_): Fix typo.
3540 2005-10-19 Jakub Jelinek <jakub@redhat.com>
3542 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3543 gomp_ordered_sync): Do nothing if team->nthreads == 1.
3544 * testsuite/libgomp.dg/ordered-3.c: New test.
3546 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3547 Remove volatile keyword.
3549 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3550 in COMMON block to avoid warnings on 64-bit targets.
3552 2005-10-18 Diego Novillo <dnovillo@redhat.com>
3554 * testsuite/libgomp.dg/shared-3.c: New test.
3556 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3558 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3559 * testsuite/libgomp.fortran/reduction5.f90: New test.
3561 2005-10-18 Jakub Jelinek <jakub@redhat.com>
3563 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3565 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
3566 flush loop now that __sync_synchronize has proper memory barrier.
3567 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3568 Add -ffixed-form to dg-options.
3570 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3572 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3573 from subdirectories.
3574 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3575 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3576 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3577 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3578 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3579 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3580 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3581 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3582 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3583 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3584 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3585 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3586 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3587 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3588 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3589 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3590 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3591 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3592 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3593 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3594 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3595 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3596 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3597 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3598 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3600 2005-10-17 Jakub Jelinek <jakub@redhat.com>
3602 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3603 lang_library_path exists. Use find instead of glob to gather tests.
3604 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3606 2005-10-17 Diego Novillo <dnovillo@redhat.com>
3608 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3609 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3610 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3611 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3612 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3613 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3614 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3615 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3616 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3617 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3618 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3619 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3620 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3622 2005-10-15 Jakub Jelinek <jakub@redhat.com>
3624 * testsuite/libgomp.dg/vla-1.c: New test.
3626 * testsuite/libgomp.fortran/reference2.f90: New test.
3628 * testsuite/libgomp.fortran/character2.f90: Remove explicit
3629 declaration of omp_get_thread_num.
3630 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
3633 * testsuite/libgomp.fortran/reduction1.f90: New test.
3634 * testsuite/libgomp.fortran/reduction2.f90: New test.
3635 * testsuite/libgomp.fortran/reduction3.f90: New test.
3636 * testsuite/libgomp.fortran/reduction4.f90: New test.
3638 2005-10-13 Richard Henderson <rth@redhat.com>
3640 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3641 * Makefile.in: Regenerate.
3642 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3643 * libgomp.h: Include bar.h.
3644 (struct gomp_barrier): Remove.
3645 (struct gomp_team): Add barrier. Replace master_barrier with
3646 master_release. Replace threads with ordered_release.
3647 (struct gomp_thread): Replace barrier with release.
3648 * ordered.c (gomp_ordered_first): Update for ordered_release change.
3649 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3650 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3651 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3652 (GOMP_single_copy_end): Likewise.
3653 * team.c (gomp_threads_dock): New.
3654 (gomp_barrier_init, gomp_barrier_destroy): Remove.
3655 (gomp_thread_start): Use gomp_barrier_wait.
3656 (new_team, free_team): Update for gomp_team changes.
3657 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3658 (gomp_team_end): Use gomp_barrier_wait.
3659 (initialize_team): Update for gomp_thread changes.
3660 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3661 (gomp_work_share_end_nowait): Use atomic ops when available.
3662 * config/linux/bar.c, config/linux/bar.h: New files.
3663 * config/posix/bar.c, config/posix/bar.h: New files.
3665 2005-10-13 Jakub Jelinek <jakub@redhat.com>
3667 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3668 * testsuite/libgomp.dg/single-2.c: New test.
3670 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3671 lang_link_flags): Unset, so that they aren't inherited from previously
3674 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3676 2005-10-12 Richard Henderson <rth@redhat.com>
3678 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3679 (libgomp_init): Use lang_test_file, lang_library_path, and
3680 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
3682 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3683 (lang_test_file, lang_link_flags): New.
3684 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3686 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3687 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3688 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3689 testsuite/libgomp.c++/parallel-1.C,
3690 testsuite/libgomp.c++/reduction-1.C,
3691 testsuite/libgomp.c++/reduction-2.C,
3692 testsuite/libgomp.c++/reduction-3.C,
3693 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3694 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3695 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3696 New files, largely cribbed from the C testsuite.
3698 2005-10-12 Jakub Jelinek <jakub@redhat.com>
3700 * testsuite/libgomp.fortran/character1.f90: New test.
3701 * testsuite/libgomp.fortran/character2.f90: New test.
3703 * testsuite/libgomp.dg/nested-1.c: New test.
3704 * testsuite/libgomp.dg/nested-2.c: New test.
3705 * testsuite/libgomp.fortran/do1.f90: New test.
3706 * testsuite/libgomp.fortran/do2.f90: New test.
3708 * testsuite/libgomp.fortran/reference1.f90: New test.
3710 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3712 * testsuite/libgomp.dg/reduction-1.c: New test.
3713 * testsuite/libgomp.dg/reduction-2.c: New test.
3714 * testsuite/libgomp.dg/reduction-3.c: New test.
3716 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3718 * testsuite/libgomp.dg/atomic-1.c: New test.
3719 * testsuite/libgomp.dg/atomic-2.c: New test.
3721 2005-10-09 Richard Henderson <rth@redhat.com>
3723 * critical.c (atomic_lock): New.
3724 (initialize_critical): Initialize it.
3725 (GOMP_atomic_start, GOMP_atomic_end): New.
3726 * libgomp.map: Export them.
3727 * libgomp_g.h: Declare them.
3729 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3731 2005-10-02 Richard Henderson <rth@redhat.com>
3733 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3734 to XCFLAGS instead of CFLAGS.
3736 2005-09-30 Richard Henderson <rth@redhat.com>
3738 * configure.ac: Determine whether -pthread or -lpthread is needed.
3739 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3740 * Makefine.in, configure: Rebuild.
3742 2005-09-28 Richard Henderson <rth@redhat.com>
3744 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3745 * testsuite/libgomp.dg/omp-single-3.c: New test.
3747 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3749 * testsuite/libgomp.dg/omp-single-2.c: New test.
3750 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3752 2005-09-27 Richard Henderson <rth@redhat.com>
3754 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3755 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3757 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3759 * testsuite/libgomp.dg/omp-loop03.c: New test.
3761 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3763 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3765 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3767 * testsuite/libgomp.dg/omp-single-1.c: New test.
3768 * testsuite/libgomp.dg/shared-1.c: Return 0.
3769 Add prototype for abort.
3770 * testsuite/libgomp.dg/shared-2.c: Likewise.
3772 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3774 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3777 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3779 * testsuite/libgomp.dg/shared-1.c: New test.
3780 * testsuite/libgomp.dg/shared-2.c: New test.
3782 2005-09-24 Richard Henderson <rth@redhat.com>
3784 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3786 2005-09-24 Richard Henderson <rth@redhat.com>
3788 * iter.c (gomp_iter_static_next): Round up when computing number
3789 of iterations. Don't bother distributing a remainder equally.
3791 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3792 Don't call srand. Zero b before testing.
3795 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3797 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3798 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3800 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3802 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3803 without !$omp end do, followed immediately by subroutine end.
3805 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3807 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3809 2005-09-22 Richard Henderson <rth@redhat.com>
3811 * critical.c (GOMP_critical_name_start): Change argument to void**.
3812 Reuse the pointer space if the mutex fits.
3813 (GOMP_critical_name_end): Likewise.
3814 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3815 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3816 (GOMP_critical_name_end): Likewise.
3817 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3818 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3820 2005-09-20 Richard Henderson <rth@redhat.com>
3822 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3823 (create_lock_lock): New.
3824 (initialize_critical): Initialize it.
3825 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3826 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3828 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3830 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3832 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3834 * testsuite/libgomp.dg/omp-loop01.c: New test.
3835 * testsuite/libgomp.dg/omp-loop02.c: New test.
3837 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3839 * configure.ac (AC_PROG_FC): Add.
3840 (USE_FORTRAN): New automake conditional.
3841 * configure: Rebuilt.
3842 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3843 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3844 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3845 Add rules to build them.
3846 * Makefile.in: Rebuilt.
3847 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3849 * libgomp.map: Add Fortran wrappers.
3850 * libgomp_f.h.in: New file.
3851 * omp_lib.h.in: New file.
3852 * omp_lib.f90.in: New file.
3853 * fortran.c: New file.
3854 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3855 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3856 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3857 libgfortran has been built.
3858 * testsuite/libgomp.fortran/fortran.exp: New file.
3859 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3860 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3861 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3862 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3863 * testsuite/libgomp.fortran/omp_hello.f: New test.
3864 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3865 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3866 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3867 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3868 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3869 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3870 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3871 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3873 2005-08-30 Richard Henderson <rth@redhat.com>
3875 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3876 function for when aliases are not usable.
3877 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3878 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3879 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3880 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3881 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3882 GOMP_loop_ordered_guided_next): Likewise.
3883 * ordered.c (GOMP_ordered_start): Likewise.
3885 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3887 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3888 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3889 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3890 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3891 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3892 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3893 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3894 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3895 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3897 2005-07-07 Eric Christopher <echristo@redhat.com>
3898 Diego Novillo <dnovillo@redhat.com>
3900 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3901 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3903 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3904 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3905 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3906 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3907 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3908 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3909 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3911 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3913 * TOPLEVEL.patch: Remove.
3915 2005-05-16 Richard Henderson <rth@redhat.com>
3917 * configure.ac: Test for clock_gettime.
3918 * config.h.in, configure: Rebuild.
3919 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3920 (omp_get_wtime): Use clock_gettime if available.
3921 (omp_get_wtick): Use clock_getres if available.
3923 2005-05-11 Richard Henderson <rth@redhat.com>
3925 * config/linux/ia64/futex.h: New file.
3926 * configure.tgt: Use it.
3928 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3930 2005-05-07 Richard Henderson <rth@redhat.com>
3932 * config/linux/powerpc/futex.h: New file.
3933 * configure.tgt: Use it.
3935 * config/linux/i486/futex.h: Merge ...
3936 * config/linux/x86_64/futex.h: ... into ...
3937 * config/linux/x86/futex.h: ... here.
3938 * configure.tgt: Update to match.
3940 2005-05-06 Richard Henderson <rth@redhat.com>
3942 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3943 * config/linux/i486/futex.h: Likewise.
3944 * config/linux/x86_64/futex.h: Likewise.
3946 * config/linux/lock.c: New file.
3947 * config/linux/omp-lock.h: New file.
3949 * critical.c, env.h: Don't include omp.h
3950 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3951 * config/posix/time.c: Likewise.
3952 * config/posix/omp-lock.h: New file.
3953 * libgomp.h: Include omp-lock.h and omp.h.
3954 * Makefile.am (nodist_include_HEADERS): New.
3956 * configure.ac (PERL): New.
3957 * mkomp_h.pl: New file.
3958 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3960 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3962 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3963 build directory. Re-add -march=i486 hack.
3965 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3966 (libgomp_link_flags): Remove.
3967 (libgomp_initialized): Remove.
3968 (libgomp_init): Don't protect from reinitialization. Copy code
3969 from libstdc++ for getting the multilib set correctly.
3971 2005-05-05 Richard Henderson <rth@redhat.com>
3973 * config/linux/alpha/futex.h: New file.
3974 * configure.tgt (alpha*-*-linux*): Use it.
3976 * config/posix/mutex.c: New file.
3977 * config/posix/sem.c: Use libgomp.h.
3979 * configure.tgt (x86_64-linux): Also test CC for -m32.
3980 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3982 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3985 * Makefile.am (SUBDIRS): New.
3986 (libgomp_la_LDFLAGS): Add -lpthread.
3987 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3988 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3990 * libgomp_g.h: New file.
3991 * libgomp.h: Split out all public declarations to libgomp_g.h.
3992 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3993 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3994 * config/linux/sem.h: Likewise.
3995 * config/posix/sem.h: Likewise.
3997 * Makefile.am (AM_LDFLAGS): New.
3998 (libgomp_version_script): Split out from ...
3999 (libgomp_la_LDFLAGS): ... here.
4000 (libgomp_version_info): New.
4001 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4002 (LIBGOMP_ENABLE): New.
4003 (LIBGOMP_CHECK_LINKER_FEATURES): New.
4004 (LIBGOMP_ENABLE_SYMVERS): New.
4005 * configure.ac (AC_INIT): Version 1.0.
4006 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4007 (enable-linux-futex): Likewise. Rename from enable-futex.
4008 (libtool_VERSION): New.
4009 (LIBGOMP_ENABLE_SYMVERS): Use it.
4010 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4011 * Makefile.in, aclocal.m4, configure: Rebuild.
4013 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4014 (gomp_mutex_unlock_slow): Fix typo.
4015 * config/linux/sem.c: Similarly.
4016 (gomp_sem_post_slow): Fix typo.
4017 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4018 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4019 [__PIC__] (sys_futex0): Don't use tmp output in asm.
4021 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4022 (libgomp_la_LDFLAGS): Add top_srcdir to path.
4023 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4024 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
4025 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4026 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4027 LDFLAGS. Pull enable_futex check to top-level.
4028 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
4029 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4031 First attempt at real configury.
4032 * Makefile, config.h: Remove file.
4033 * Makefile.am, Makefile.in: New file.
4034 * acinclude.m4 aclocal.m4: New file.
4035 * configure.ac, configure.tgt, configure: New file.
4037 * config/posix/lock.c: Rename from sys-lock.c.
4038 * config/posix/mutex.h: Rename from sys-mutex.h.
4039 * config/posix/sem.c: Rename from sys-sem.c.
4040 * config/posix/sem.h: Rename from sys-sem.h.
4041 * config/posix/proc.c: Rename from sys-proc.c.
4042 * config/posix/time.c: Rename from sys-proc.c.
4044 * config/linux/mutex.c: New file.
4045 * config/linux/mutex.h: New file.
4046 * config/linux/sem.c: New file.
4047 * config/linux/sem.h: New file.
4048 * config/linux/i486/futex.h: New file.
4049 * config/linux/x86_64/futex.h: New file.
4051 2005-05-04 Richard Henderson <rth@redhat.com>
4053 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4054 * libgomp.h: Declare them.
4055 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4056 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4058 2005-05-04 Richard Henderson <rth@redhat.com>
4060 * libgomp-1 code drop
4062 2005-05-04 Richard Henderson <rth@redhat.com>
4064 * iter.c (gomp_iter_static_next): Return tri-state on 0.
4065 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4066 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4067 (gomp_iter_static_next): Update.
4068 (gomp_ordered_static_next): Update.
4069 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4070 (gomp_loop_ordered_static_start): Likewise. Exit early for a
4071 totally empty range.
4072 (gomp_loop_ordered_static_next): Refine test for calling
4073 gomp_ordered_static_next.
4074 * testsuite/ordered-1.c: Add case for more threads than iterations.
4076 * iter.c (gomp_iter_runtime_next_locked): Remove.
4077 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4078 gomp_loop_guided_start, gomp_loop_ordered_static_start,
4079 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4080 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4081 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4082 gomp_loop_ordered_guided_next): Downcase name, make static, add
4083 an external alias with the old name.
4084 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4085 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4086 switch and call one of the above static functions.
4087 * libgomp.h: Update.
4089 * work.c (gomp_work_share_start): Lock the mutex for !first too.
4090 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4091 GOMP_loop_guided_start, GOMP_loop_runtime_start,
4092 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4093 GOMP_loop_ordered_guided_start): Update to match.
4094 * sections.c (GOMP_sections_start): Likewise.
4095 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4097 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4098 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4099 Use bounds check instead of modulus.
4100 (gomp_ordered_sync): Split out of GOMP_ordered_start.
4101 (gomp_ordered_last): Don't sync with ordered_owner here.
4102 (gomp_ordered_next): Likewise.
4103 (gomp_ordered_static_loop_next): Likewise.
4104 * loop.c, libgomp.h: Update to match.
4106 * libgomp.h (GOMP_barrier): Declare.
4108 * testsuite/barrier-1.c: New file.
4109 * testsuite/critical-1.c: New file.
4110 * testsuite/ordered-2.c: New file.
4111 * testsuite/ordered-1.c: New file.
4112 * testsuite/sections-1.c: New file.
4113 * testsuite/single-1.c: New file.
4114 * testsuite/Makefile (TESTS): Add them.
4116 2005-05-04 Richard Henderson <rth@redhat.com>
4118 * libgomp.h (struct gomp_work_share): Add ordered_owner.
4119 * loop.c (GOMP_loop_static_start): If not the startup thread,
4120 acquire the mutex to wait for initialization complete.
4121 (GOMP_loop_ordered_static_start): Likewise.
4122 (GOMP_loop_ordered_runtime_start): Likewise.
4123 (GOMP_loop_ordered_static_first): Remove.
4124 (GOMP_loop_ordered_dynamic_first): Remove.
4125 (GOMP_loop_ordered_guided_first): Remove.
4126 (GOMP_loop_ordered_runtime_first): Remove.
4127 * ordered.c (gomp_ordered_loop_first): Post to own release when
4128 we're the first thread.
4129 (gomp_ordered_loop_last): Wait on release if not owner.
4130 (gomp_ordered_loop_next): Likewise.
4131 (gomp_ordered_static_loop_init): New.
4132 (gomp_ordered_static_loop_next): Use ordered_owner.
4133 (GOMP_ordered_start): Likewise.
4134 * work.c (gomp_new_work_share): Initialize ordered_owner.
4136 2005-05-03 Richard Henderson <rth@redhat.com>
4138 * Makefile (OPT): New.
4141 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4142 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4143 * libgomp.h, libgomp.map, NOTES: Update to match.
4145 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4146 Add initialized and thr members.
4147 (gomp_thread_start): Pause when initially spawned to wait for
4148 the whole team to be created.
4149 (gomp_team_start): Release team members at the end.
4151 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
4152 (f_foo_1): Use GOMP_loop_end.
4153 (f_foo_2): Use GOMP_loop_end_nowait.
4155 * testsuite/loop-2.c: New file.
4156 * testsuite/Makefile (TESTS): Add it.
4158 2005-05-03 Richard Henderson <rth@redhat.com>
4160 * iter.c (gomp_iter_static_next): Fix overflow check typo.
4161 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4162 * team.c (new_team): Initialize oldest_live_gen to 1 if no
4165 * testsuite/Makefile: New file.
4166 * testsuite/loop-1.c: New file.
4168 2005-05-03 Richard Henderson <rth@redhat.com>
4170 Initial implementation and checkin.