1 2009-08-04 David Daney <ddaney@caviumnetworks.com>
3 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
4 needed memory barrier semantics.
5 * config/linux/mips/mutex.h: New file.
7 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
11 2009-07-16 Joseph Myers <joseph@codesourcery.com>
13 * configure: Regenerate.
15 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
20 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
21 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
22 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
24 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
26 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
27 options when choosing a multilib.
29 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
31 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
32 ld_library_path. Use add_path. Add just find_libgcc_s to
33 ld_library_path, not every libgcc multilib directory.
34 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
35 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
36 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
38 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
40 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
42 * Makefile.am (LTLDFLAGS): Define.
44 * Makefile.in: Regenerate.
46 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
49 * testsuite/libgomp.fortran/fortran.exp: Don't link with
50 libgfortranbegin, check existence of libgfortran.a instead of
53 2009-05-20 Jakub Jelinek <jakub@redhat.com>
56 * team.c (gomp_thread_start): Destroy thr->release semaphore.
57 (gomp_free_pool_helper): Likewise.
59 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
60 Jakub Jelinek <jakub@redhat.com>
63 * testsuite/libgomp.fortran/workshare2.f90: New test.
65 2009-04-09 Nick Clifton <nickc@redhat.com>
67 * iter.c: Change copyright header to refer to version 3 of the
68 GNU General Public License with version 3.1 of the GCC Runtime
69 Library Exception and to point readers at the COPYING3 and
70 COPYING3.RUNTIME files and the FSF's license web page.
72 * barrier.c: Likewise.
73 * config/bsd/proc.c: Likewise.
74 * config/linux/affinity.c: Likewise.
75 * config/linux/alpha/futex.h: Likewise.
76 * config/linux/bar.c: Likewise.
77 * config/linux/bar.h: Likewise.
78 * config/linux/ia64/futex.h: Likewise.
79 * config/linux/ia64/mutex.h: Likewise.
80 * config/linux/lock.c: Likewise.
81 * config/linux/mips/futex.h: Likewise.
82 * config/linux/mutex.c: Likewise.
83 * config/linux/mutex.h: Likewise.
84 * config/linux/powerpc/futex.h: Likewise.
85 * config/linux/proc.c: Likewise.
86 * config/linux/ptrlock.c: Likewise.
87 * config/linux/ptrlock.h: Likewise.
88 * config/linux/s390/futex.h: Likewise.
89 * config/linux/sem.c: Likewise.
90 * config/linux/sem.h: Likewise.
91 * config/linux/sparc/futex.h: Likewise.
92 * config/linux/wait.h: Likewise.
93 * config/linux/x86/futex.h: Likewise.
94 * config/mingw32/proc.c: Likewise.
95 * config/mingw32/time.c: Likewise.
96 * config/posix/affinity.c: Likewise.
97 * config/posix/bar.c: Likewise.
98 * config/posix/bar.h: Likewise.
99 * config/posix/lock.c: Likewise.
100 * config/posix/mutex.h: Likewise.
101 * config/posix/proc.c: Likewise.
102 * config/posix/ptrlock.h: Likewise.
103 * config/posix/sem.c: Likewise.
104 * config/posix/sem.h: Likewise.
105 * config/posix/time.c: Likewise.
106 * config/posix95/lock.c: Likewise.
107 * critical.c: Likewise.
110 * fortran.c: Likewise.
111 * iter_ull.c: Likewise.
112 * libgomp.h: Likewise.
113 * libgomp_f.h.in: Likewise.
114 * libgomp_g.h: Likewise.
116 * loop_ull.c: Likewise.
117 * omp.h.in: Likewise.
118 * omp_lib.f90.in: Likewise.
119 * omp_lib.h.in: Likewise.
120 * ordered.c: Likewise.
121 * parallel.c: Likewise.
122 * sections.c: Likewise.
123 * single.c: Likewise.
128 2009-04-09 Jakub Jelinek <jakub@redhat.com>
130 * testsuite/config/default.exp: Change copyright header to refer to
131 version 3 of the GNU General Public License and to point readers
132 at the COPYING3 file and the FSF's license web page.
134 2009-04-08 Jakub Jelinek <jakub@redhat.com>
137 * libgomp.c++/pr39573.C: New test.
139 2009-04-01 Jakub Jelinek <jakub@redhat.com>
142 * testsuite/libgomp.c/pr39591-1.c: New test.
143 * testsuite/libgomp.c/pr39591-2.c: New test.
144 * testsuite/libgomp.c/pr39591-3.c: New test.
146 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
148 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
149 * testsuite/libgomp.c/atomic-6.c: Ditto.
151 2009-03-23 Jakub Jelinek <jakub@redhat.com>
154 * testsuite/libgomp.c/loop-12.c: New test.
155 * testsuite/libgomp.c/loop-11.c: New test.
156 * testsuite/libgomp.c++/loop-11.C: New test.
157 * testsuite/libgomp.c++/loop-12.C: New test.
158 * testsuite/libgomp.c++/for-8.C: New test.
160 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
162 * configure: Regenerate.
164 2009-02-11 Jakub Jelinek <jakub@redhat.com>
167 * testsuite/libgomp.c/pr39154.c: New test.
169 2009-01-30 Ian Lance Taylor <iant@google.com>
171 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
172 libgomp_ld_is_gold. Get gold version number.
173 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
174 * configure: Rebuild.
176 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
178 * testsuite/lib/libgomp.exp: Add -B option for targets that
179 use libgfortran.a%s in their specs.
181 2009-01-07 Jakub Jelinek <jakub@redhat.com>
184 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
185 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
186 HAVE_AS_SYMVER_DIRECTIVE is not defined.
187 * configure: Regenerated.
188 * config.h.in: Likewise.
190 2008-12-28 Jakub Jelinek <jakub@redhat.com>
193 * testsuite/libgomp.c/pr38650.c: New test.
194 * testsuite/libgomp.c++/pr38650.C: New test.
196 2008-12-27 Jakub Jelinek <jakub@redhat.com>
198 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
200 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
202 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
204 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
206 * configure: Regenerate.
208 2008-12-08 Jakub Jelinek <jakub@redhat.com>
211 * testsuite/libgomp.c/pr36802-1.c: New test.
212 * testsuite/libgomp.c/pr36802-2.c: New test.
213 * testsuite/libgomp.c/pr36802-3.c: New test.
215 2008-12-01 Janis Johnson <janis187@us.ibm.com>
218 * config/linux/powerpc/mutex.h: New.
220 2008-12-01 Jakub Jelinek <jakub@redhat.com>
223 * testsuite/libgomp.c++/for-7.C: New test.
226 * testsuite/libgomp.c++/for-6.C: New test.
228 2008-11-26 Janis Johnson <janis187@us.ibm.com>
231 * testsuite/lib/libgomp.exp: Include new timeout library files.
232 (libgomp_target_compile): Set timeout value from new proc.
234 2008-11-13 Steve Ellcey <sje@cup.hp.com>
237 * config/linux/ia64/mutex.h: New.
239 2008-11-04 Tobias Burnus <burnus@net-b.de>
242 * libgomp.texi (Runtime library routines, environment variables):
243 Update for OpenMP version 3.0.
245 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
246 Steve Ellcey <sje@cup.hp.com>
248 * configure: Regenerate for new libtool.
249 * Makefile.in: Ditto.
250 * testsuite/Makefile.in: Ditto.
252 2008-09-19 Jakub Jelinek <jakub@redhat.com>
253 Andreas Tobler <a.tobler@schweiz.org>
255 * config/bsd/proc.c: New file.
256 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
257 * configure.ac: Check for header <sys/sysctl.h>
258 * configure: Regenerate.
259 * config.h.in: Likewise.
261 2008-09-05 Janis Johnson <janis187@us.ibm.com>
263 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
265 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
267 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
268 * Makefile.in: Regenerated.
269 * testsuite/Makefile.in: Regenerated.
271 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
273 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
274 depend on blddir if blddir exists.
275 (libgomp_target_compile): Likewise.
276 * testsuite/libgomp.c++/c++.exp: Likewise.
277 * testsuite/libgomp.fortran/fortran.exp: Likewise.
279 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
281 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
282 Do not list GPL as Invariant Section.
284 2008-07-28 Ilie Garbacea <ilie@mips.com>
285 Chao-ying Fu <fu@mips.com>
287 * configure.tgt: Enable futex for MIPS.
288 * config/linux/mips/futex.h: New file.
290 2008-07-16 Jakub Jelinek <jakub@redhat.com>
292 * team.c (gomp_team_end): Free team immediately if it has
295 2008-07-08 David Edelsohn <edelsohn@gnu.org>
297 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
298 * testsuite/libgomp.fortran/fortran.exp: Same.
299 * testsuite/libgomp.c/c.exp: Same.
300 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
301 directory to library path first.
303 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
305 * env.c (parse_stacksize): Add cast to avoid warning.
306 (parse_spincount): Likewise.
308 2008-06-27 Jakub Jelinek <jakub@redhat.com>
310 * testsuite/libgomp.c/loop-10.c: New test.
311 * libgomp.c/loop-3.c (main): Add lastprivate clause.
312 * libgomp.c++/loop-6.C (main): Likewise.
315 * testsuite/libgomp.c/debug-1.c: New test.
317 2008-06-19 Jakub Jelinek <jakub@redhat.com>
319 * testsuite/libgomp.c/nqueens-1.c: New test.
322 * testsuite/libgomp.c++/task-7.C: New function.
324 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
326 * configure: Regenerate.
328 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
330 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
331 mutex when HAVE_SYNC_BUILTINS isn't defined.
333 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
335 * libgomp.texi (omp_test_lock): Fix typo.
337 2008-06-12 Tobias Burnus <burnus@net-b.de>
339 * omp_lib.f90.in: Add "implicit none".
341 2008-06-12 Jakub Jelinek <jakub@redhat.com>
344 * testsuite/libgomp.c/reduction-5.c: New test.
346 2008-06-11 Jakub Jelinek <jakub@redhat.com>
348 * libgomp.h (struct gomp_task): Add in_tied_task field.
349 * task.c (gomp_init_task): Initialize it.
350 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
351 unconditionally. Don't call gomp_team_barrier_wake if
352 current task is implicit or if(0) from implicit and number of
353 running tasks is equal to nthreads - 1.
356 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
357 omp_get_team_size_8): Fix pastos.
360 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
361 * configure: Regenerated.
362 * config.h.in: Regenerated.
363 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
366 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
369 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
370 (GOMP_loop_ull_dynamic_start): Likewise.
371 (GOMP_loop_ull_guided_start): Likewise.
372 (GOMP_loop_ull_ordered_static_start): Likewise.
373 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
374 (GOMP_loop_ull_ordered_guided_start): Likewise.
376 2008-06-06 Jakub Jelinek <jakub@redhat.com>
377 Richard Henderson <rth@redhat.com>
378 Ulrich Drepper <drepper@redhat.com>
379 Jakob Blomer <jakob.blomer@ira.uka.de>
381 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
382 Substitute also OMP_*LOCK_25*.
383 * configure: Regenerated.
384 * config.h.in: Regenerated.
385 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
386 ptrlock.c and task.c.
387 * Makefile.in: Regenerated.
388 * testsuite/Makefile.in: Regenerated.
390 * loop_ull.c: New file.
391 * iter_ull.c: New file.
392 * libgomp.h: Include ptrlock.h.
393 (enum gomp_task_kind): New type.
394 (struct gomp_team): Add task_lock, task_queue, task_count,
395 task_running_count, single_count fields. Add
396 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
397 Remove work_share_lock, generation_mask,
398 oldest_live_gen, num_live_gen and init_work_shares fields, add
399 work work_share_list_alloc, work_share_list_free and work_share_chunk
400 fields. Change work_shares from pointer to pointers into an array.
401 Change ordered_release field into gomp_sem_t ** from flexible array
402 member. Add implicit_task and initial_work_shares fields.
403 Move close to the end of the struct.
404 (struct gomp_team_state): Add single_count, last_work_share,
405 active_level and level fields, remove work_share_generation.
406 (gomp_barrier_handle_tasks): New prototype.
407 (gomp_finish_task): New inline function.
408 (struct gomp_work_share): Move chunk_size, end, incr into
409 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
410 next_ll fields. Reshuffle fields. Add next_alloc,
411 next_ws, next_free and inline_ordered_team_ids fields, change
412 ordered_team_ids into pointer from flexible array member.
413 Add mode field. Put lock and next into a different cache line
414 from most of the write-once fields.
415 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
416 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
417 gomp_iter_ull_guided_next): New prototypes.
418 (gomp_new_icv): New prototype.
419 (struct gomp_thread): Add thread_pool and task fields.
420 (struct gomp_thread_pool): New type.
421 (gomp_new_team): New prototype.
422 (gomp_team_start): Change type of last argument.
423 (gomp_new_work_share): Removed.
424 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
425 (gomp_work_share_init_done): New static inline.
426 (gomp_throttled_spin_count_var, gomp_available_cpus,
427 gomp_managed_threads): New extern decls.
428 (gomp_init_task): New prototype.
429 (gomp_spin_count_var): New extern var decl.
430 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
431 or no alias support, or if not PIC.
432 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
433 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
434 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
435 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
436 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
437 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
438 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
439 gomp_test_nest_lock_25): New prototypes.
440 (omp_lock_symver, strong_alias): Define.
441 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
443 (gomp_end_task): New.
444 (struct gomp_task_icv, gomp_global_icv): New.
445 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
446 (struct gomp_task): New.
447 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
448 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
450 (gomp_schedule_type): Reorder enum to match
452 * team.c (struct gomp_thread_start_data): Add thread_pool and task
454 (gomp_thread_start): Add gomp_team_barrier_wait call.
455 For non-nested case remove clearing of docked thread thr fields.
456 Use pool fields instead of global gomp_* variables. Use
457 gomp_barrier_wait_last when needed. Initialize ts.active_level.
458 Create tasks for each member thread.
459 (free_team): Only destroy team barrier, task_lock here and free it.
460 (gomp_free_thread): Free last_team if non-NULL.
461 (gomp_team_end): Call gomp_team_barrier_wait instead of
462 gomp_barrier_wait. For nested case call one extra
463 gomp_barrier_wait. Move here some destruction from free_team.
464 Call free_team on pool->last_team if any, rather than freeing
465 current team. Destroy work_share_list_free_lock ifndef
467 (gomp_new_icv): New function.
468 (gomp_threads, gomp_threads_size, gomp_threads_used,
469 gomp_threads_dock): Removed.
470 (gomp_thread_destructor): New variable.
471 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
473 (gomp_team_start): Create new pool if current thread doesn't have
474 one. Use pool fields instead of global gomp_* variables.
475 Initialize thread_pool field for new threads. Clear single_count.
476 Change last argument from ws to team, don't create
477 new team, set ts.work_share to &team->work_shares[0] and clear
478 ts.last_work_share. Don't clear ts.work_share_generation.
479 If number of threads changed, adjust atomically gomp_managed_threads.
480 Use gomp_init_task instead of gomp_new_task,
481 set thr->task to the corresponding implicit_task array entry.
482 Create tasks for each member thread. Initialize ts.level.
483 (initialize_team): Call pthread_key_create on
484 gomp_thread_destructor.
485 (team_destructor): New function.
487 (gomp_new_team): New function.
488 (free_team): Free gomp_work_share blocks chained through next_alloc,
489 instead of freeing work_shares and destroying work_share_lock.
490 (gomp_team_end): Call gomp_fini_work_share. If number of threads
491 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
492 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
493 of gomp_barrier_wait.
494 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
495 instead of gomp_barrier_wait. Call gomp_work_share_init_done
496 if gomp_work_share_start returned true. Don't unlock ws->lock.
497 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
498 of gomp_barrier_wait.
499 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
500 gomp_work_share_init_done if gomp_work_share_start returned true.
501 Don't unlock ws->lock.
502 * work.c: Include stddef.h.
503 (free_work_share): Use work_share_list_free_lock instead
504 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
505 Call gomp_fini_work_share and then either free ws if orphaned, or
506 put it into work_share_list_free list of the current team.
507 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
509 (gomp_work_share_start, gomp_work_share_end,
510 gomp_work_share_end_nowait): Rewritten.
511 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
512 (openmp_version): Set to 200805.
513 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
514 omp_sched_guided, omp_sched_auto): New parameters.
515 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
516 omp_set_max_active_levels, omp_get_max_active_levels,
517 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
518 omp_get_active_level): New interfaces.
519 * omp_lib.h.in (openmp_version): Set to 200805.
520 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
521 omp_sched_guided, omp_sched_auto): New parameters.
522 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
523 omp_set_max_active_levels, omp_get_max_active_levels,
524 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
525 omp_get_active_level): New externals.
526 * loop.c: Include limits.h.
527 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
529 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
530 Likewise. Use gomp_icv.
531 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
533 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
534 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
535 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
536 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
537 don't unlock ws->lock, otherwise lock it.
538 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
539 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
540 (gomp_parallel_loop_start): Call gomp_new_team instead of
541 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
542 Adjust gomp_team_start caller. Pass 0 as second argument to
543 gomp_resolve_num_threads.
544 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
545 If adding ws->chunk_size nthreads + 1 times after end won't
546 overflow, set ws->mode to 1.
547 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
548 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
549 GOMP_loop_ull_ordered_static_start,
550 GOMP_loop_ull_ordered_dynamic_start,
551 GOMP_loop_ull_ordered_guided_start,
552 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
553 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
554 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
555 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
556 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
558 * libgomp.map: Export lock routines also @@OMP_2.0.
559 (GOMP_loop_ordered_dynamic_first,
560 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
561 GOMP_loop_ordered_static_first): Remove.
562 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
563 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
564 GOMP_loop_ull_ordered_dynamic_next,
565 GOMP_loop_ull_ordered_dynamic_start,
566 GOMP_loop_ull_ordered_guided_next,
567 GOMP_loop_ull_ordered_guided_start,
568 GOMP_loop_ull_ordered_runtime_next,
569 GOMP_loop_ull_ordered_runtime_start,
570 GOMP_loop_ull_ordered_static_next,
571 GOMP_loop_ull_ordered_static_start,
572 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
573 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
574 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
575 (omp_set_schedule, omp_get_schedule,
576 omp_get_thread_limit, omp_set_max_active_levels,
577 omp_get_max_active_levels, omp_get_level,
578 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
579 omp_set_schedule_, omp_set_schedule_8_,
580 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
581 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
582 omp_get_max_active_levels_, omp_get_level_,
583 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
584 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
585 New exports @@OMP_3.0.
586 * omp.h.in (omp_sched_t): New type.
587 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
588 omp_set_max_active_levels, omp_get_max_active_levels,
589 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
590 omp_get_active_level): New prototypes.
591 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
592 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
593 gomp_thread_limit_var, gomp_remaining_threads_count,
594 gomp_remaining_threads_lock): New variables.
595 (parse_spincount): New function.
596 (initialize_env): Call gomp_init_num_threads unconditionally.
597 Initialize gomp_available_cpus. Call parse_spincount,
598 initialize gomp_{,throttled_}spin_count_var
599 depending on presence and value of OMP_WAIT_POLICY and
600 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
601 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
602 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
603 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
604 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
605 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
606 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
607 (gomp_global_icv): New.
608 (parse_schedule): Use it. Parse "auto".
609 (omp_set_num_threads): Use gomp_icv.
610 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
612 (omp_get_max_threads): Move from parallel.c.
613 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
614 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
616 (parse_stacksize, parse_wait_policy): New functions.
617 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
618 both wrappers for compatibility and new locks.
619 (omp_set_schedule, omp_get_schedule,
620 omp_get_thread_limit, omp_set_max_active_levels,
621 omp_get_max_active_levels, omp_get_level,
622 omp_get_ancestor_thread_num, omp_get_team_size,
623 omp_get_active_level): New ialias_redirect.
624 (omp_set_schedule_, omp_set_schedule_8_,
625 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
626 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
627 omp_get_max_active_levels_, omp_get_level_,
628 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
629 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
631 * parallel.c: Include limits.h.
632 (gomp_resolve_num_threads): Add count argument. Rewritten.
633 (GOMP_parallel_start): Call gomp_new_team and pass that as last
634 argument to gomp_team_start. Pass 0 as second argument to
635 gomp_resolve_num_threads.
636 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
637 if gomp_thread_limit_var != ULONG_MAX.
638 (omp_in_parallel): Implement using ts.active_level.
639 (omp_get_max_threads): Move to env.c.
640 (omp_get_level, omp_get_ancestor_thread_num,
641 omp_get_team_size, omp_get_active_level): New functions,
643 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
644 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
645 gomp_iter_dynamic_next instead of the _locked variant and don't take
646 lock around it, otherwise acquire it before calling
647 gomp_iter_dynamic_next_locked.
648 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
649 gomp_iter_dynamic_next instead of the _locked variant and don't take
651 (GOMP_parallel_sections_start): Call gomp_new_team instead of
652 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
653 Adjust gomp_team_start caller. Pass count as second argument to
654 gomp_resolve_num_threads, don't adjust num_threads after the call.
656 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
657 ws->chunk_size by incr.
658 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
660 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
662 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
663 (omp_check_defines): Check even the compat defines.
664 * config/linux/ptrlock.c: New file.
665 * config/linux/ptrlock.h: New file.
666 * config/linux/wait.h: New file.
667 * config/posix/ptrlock.c: New file.
668 * config/posix/ptrlock.h: New file.
669 * config/linux/bar.h (gomp_team_barrier_wait,
670 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
671 (gomp_team_barrier_set_task_pending,
672 gomp_team_barrier_clear_task_pending,
673 gomp_team_barrier_set_waiting_for_tasks,
674 gomp_team_barrier_waiting_for_tasks,
675 gomp_team_barrier_done): New inlines.
676 (gomp_barrier_t): Rewritten.
677 (gomp_barrier_state_t): New typedef.
678 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
679 gomp_barrier_wait_start): Rewritten.
680 (gomp_barrier_wait_end): Change second argument to
681 gomp_barrier_state_t.
682 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
684 * config/linux/bar.c: Include wait.h instead of libgomp.h and
686 (gomp_barrier_wait_end): Rewritten.
687 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
688 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
689 * config/posix/bar.h (gomp_barrier_t): Add generation field.
690 (gomp_barrier_state_t): New typedef.
691 (gomp_team_barrier_wait,
692 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
693 (gomp_barrier_wait_start): Or all but low 2 bits from generation
694 into the return value. Return gomp_barrier_state_t.
695 (gomp_team_barrier_set_task_pending,
696 gomp_team_barrier_clear_task_pending,
697 gomp_team_barrier_set_waiting_for_tasks,
698 gomp_team_barrier_waiting_for_tasks,
699 gomp_team_barrier_done): New inlines.
700 (gomp_barrier_wait_end): Change second argument to
701 gomp_barrier_state_t.
702 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
704 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
705 (gomp_barrier_wait_end): Change second argument to
706 gomp_barrier_state_t.
707 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
708 gomp_team_barrier_wake): New functions.
709 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
711 (gomp_futex_wake, gomp_futex_wait): New variables.
712 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
713 * config/linux/lock.c: Rewrite to make locks task owned,
714 for backwards compatibility provide the old entrypoints
715 if symbol versioning. Include wait.h instead of libgomp.h and
717 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
718 * config/posix95/lock.c: Rewrite to make locks task owned,
719 for backwards compatibility provide the old entrypoints
720 if symbol versioning.
721 * config/posix/lock.c: Rewrite to make locks task owned,
722 for backwards compatibility provide the old entrypoints
723 if symbol versioning.
724 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
725 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
726 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
727 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
728 (sys_futex0): Return error code.
729 (futex_wake, futex_wait): If ENOSYS was returned, clear
730 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
731 (cpu_relax, atomic_write_barrier): New static inlines.
732 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
733 (futex_wake, futex_wait): If ENOSYS was returned, clear
734 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
735 (cpu_relax, atomic_write_barrier): New static inlines.
736 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
737 (sys_futex0): Return error code.
738 (futex_wake, futex_wait): If ENOSYS was returned, clear
739 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
740 (cpu_relax, atomic_write_barrier): New static inlines.
741 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
742 (sys_futex0): Return error code.
743 (futex_wake, futex_wait): If ENOSYS was returned, clear
744 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
745 (cpu_relax, atomic_write_barrier): New static inlines.
746 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
747 (sys_futex0): Return error code.
748 (futex_wake, futex_wait): If ENOSYS was returned, clear
749 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
750 (cpu_relax, atomic_write_barrier): New static inlines.
751 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
752 (sys_futex0): Return error code.
753 (futex_wake, futex_wait): If ENOSYS was returned, clear
754 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
755 (cpu_relax, atomic_write_barrier): New static inlines.
756 * config/linux/sem.c: Include wait.h instead of libgomp.h and
758 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
759 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
760 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
762 (omp_nest_lock_t): Change owner into void *, add lock field.
763 * config/posix95/omp-lock.h: Include semaphore.h.
764 (omp_lock_25_t, omp_nest_lock_25_t): New types.
765 (omp_lock_t): Use sem_t instead of mutex if semaphores
767 (omp_nest_lock_t): Likewise. Change owner to void *.
768 * config/posix/omp-lock.h: Include semaphore.h.
769 (omp_lock_25_t, omp_nest_lock_25_t): New types.
770 (omp_lock_t): Use sem_t instead of mutex if semaphores
772 (omp_nest_lock_t): Likewise. Add owner field.
774 2008-06-06 Jakub Jelinek <jakub@redhat.com>
776 * testsuite/libgomp.c/collapse-1.c: New test.
777 * testsuite/libgomp.c/collapse-2.c: New test.
778 * testsuite/libgomp.c/collapse-3.c: New test.
779 * testsuite/libgomp.c/icv-1.c: New test.
780 * testsuite/libgomp.c/icv-2.c: New test.
781 * testsuite/libgomp.c/lib-2.c: New test.
782 * testsuite/libgomp.c/lock-1.c: New test.
783 * testsuite/libgomp.c/lock-2.c: New test.
784 * testsuite/libgomp.c/lock-3.c: New test.
785 * testsuite/libgomp.c/loop-4.c: New test.
786 * testsuite/libgomp.c/loop-5.c: New test.
787 * testsuite/libgomp.c/loop-6.c: New test.
788 * testsuite/libgomp.c/loop-7.c: New test.
789 * testsuite/libgomp.c/loop-8.c: New test.
790 * testsuite/libgomp.c/loop-9.c: New test.
791 * testsuite/libgomp.c/nested-3.c: New test.
792 * testsuite/libgomp.c/nestedfn-6.c: New test.
793 * testsuite/libgomp.c/sort-1.c: New test.
794 * testsuite/libgomp.c/task-1.c: New test.
795 * testsuite/libgomp.c/task-2.c: New test.
796 * testsuite/libgomp.c/task-3.c: New test.
797 * testsuite/libgomp.c/task-4.c: New test.
798 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
799 to C++ testsuite default compiler options.
800 * testsuite/libgomp.c++/collapse-1.C: New test.
801 * testsuite/libgomp.c++/collapse-2.C: New test.
802 * testsuite/libgomp.c++/ctor-10.C: New test.
803 * testsuite/libgomp.c++/for-1.C: New test.
804 * testsuite/libgomp.c++/for-2.C: New test.
805 * testsuite/libgomp.c++/for-3.C: New test.
806 * testsuite/libgomp.c++/for-4.C: New test.
807 * testsuite/libgomp.c++/for-5.C: New test.
808 * testsuite/libgomp.c++/loop-8.C: New test.
809 * testsuite/libgomp.c++/loop-9.C: New test.
810 * testsuite/libgomp.c++/loop-10.C: New test.
811 * testsuite/libgomp.c++/task-1.C: New test.
812 * testsuite/libgomp.c++/task-2.C: New test.
813 * testsuite/libgomp.c++/task-3.C: New test.
814 * testsuite/libgomp.c++/task-4.C: New test.
815 * testsuite/libgomp.c++/task-5.C: New test.
816 * testsuite/libgomp.c++/task-6.C: New test.
817 * testsuite/libgomp.fortran/allocatable1.f90: New test.
818 * testsuite/libgomp.fortran/allocatable2.f90: New test.
819 * testsuite/libgomp.fortran/allocatable3.f90: New test.
820 * testsuite/libgomp.fortran/allocatable4.f90: New test.
821 * testsuite/libgomp.fortran/collapse1.f90: New test.
822 * testsuite/libgomp.fortran/collapse2.f90: New test.
823 * testsuite/libgomp.fortran/collapse3.f90: New test.
824 * testsuite/libgomp.fortran/collapse4.f90: New test.
825 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
826 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
827 * testsuite/libgomp.fortran/lib4.f90: New test.
828 * testsuite/libgomp.fortran/lock-1.f90: New test.
829 * testsuite/libgomp.fortran/lock-2.f90: New test.
830 * testsuite/libgomp.fortran/nested1.f90: New test.
831 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
832 * testsuite/libgomp.fortran/strassen.f90: New test.
833 * testsuite/libgomp.fortran/tabs1.f90: New test.
834 * testsuite/libgomp.fortran/tabs2.f: New test.
835 * testsuite/libgomp.fortran/task1.f90: New test.
836 * testsuite/libgomp.fortran/task2.f90: New test.
837 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
838 * testsuite/libgomp.fortran/vla5.f90: Likewise.
839 * testsuite/libgomp.c/pr26943-2.c: Likewise.
840 * testsuite/libgomp.c/pr26943-3.c: Likewise.
841 * testsuite/libgomp.c/pr26943-4.c: Likewise.
843 2008-05-23 Jakub Jelinek <jakub@redhat.com>
846 * testsuite/libgomp.c++/ctor-11.C: New test.
847 * testsuite/libgomp.c++/ctor-12.C: New test.
849 2008-05-15 Janis Johnson <janis187@us.ibm.com>
851 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
853 2008-05-07 Jakub Jelinek <jakub@redhat.com>
856 * testsuite/libgomp.c/atomic-5.c: New test.
857 * testsuite/libgomp.c/atomic-6.c: New test.
858 * testsuite/libgomp.c/autopar-1.c: New test.
860 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
862 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
863 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
864 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
865 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
866 * configure: Regenerate.
867 * Makefile.in, testsuite/Makefile.in: Likewise.
869 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
872 * aclocal.m4: Regenerate.
873 * configure: Regenerate.
875 2008-03-18 Jakub Jelinek <jakub@redhat.com>
878 * testsuite/libgomp.c/atomic-4.c: New test.
881 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
882 (gomp_iter_guided_next): Likewise.
883 * testsuite/libgomp.c/pr35625.c: New test.
885 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
887 * aclocal.m4: Regenerate.
888 * configure: Likewise.
889 * Makefile.in: Likewise.
890 * testsuite/Makefile.in: Likewise.
892 2008-03-13 Jakub Jelinek <jakub@redhat.com>
895 * testsuite/libgomp.c++/pr35185.C: New test.
897 2008-03-12 Jakub Jelinek <jakub@redhat.com>
900 * testsuite/libgomp.c/pr35549.c: New test.
902 2008-03-06 Jakub Jelinek <jakub@redhat.com>
904 * testsuite/libgomp.c/atomic-3.c: New test.
906 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
909 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
912 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
915 * configure.ac: Add ACX_HEADER_STRING.
916 * env.c: Include strings.h.
917 * aclocal.m4: Regenerate.
918 * config.h.in: Regenerate.
919 * configure: Regenerate.
920 * Makefile.in: Regenerate.
921 * testsuite/Makefile.in: Regenerate.
923 2008-02-15 Jakub Jelinek <jakub@redhat.com>
926 * testsuite/libgomp.c/pr35196.c: New test.
929 * testsuite/libgomp.fortran/pr35130.f90: New test.
930 * testsuite/libgomp.c/pr35130.c: New test.
932 2008-01-25 Jakub Jelinek <jakub@redhat.com>
935 * testsuite/libgomp.c/pr33880.c: New test.
936 * testsuite/libgomp.fortran/pr33880.f90: New test.
938 2008-01-24 David Edelsohn <edelsohn@gnu.org>
940 * configure: Regenerate.
942 2008-01-08 Jakub Jelinek <jakub@redhat.com>
944 * configure.ac: Move futex checking into ../config/futex.m4.
945 * configure: Rebuilt.
946 * aclocal.m4: Rebuilt.
947 * Makefile.in: Rebuilt.
949 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
950 2007-10-15 ../config/tls.m4 change.
952 2007-12-19 Jakub Jelinek <jakub@redhat.com>
955 * testsuite/libgomp.c/pr34513.c: New test.
956 * testsuite/libgomp.c++/pr34513.C: New test.
958 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
961 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
963 2007-12-04 Jakub Jelinek <jakub@redhat.com>
965 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
967 2007-12-03 Jakub Jelinek <jakub@redhat.com>
969 * testsuite/libgomp.c/private-1.c: New test.
971 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
972 Paolo Bonzini <bonzini@gnu.org>
974 * Makefile.am: Use space as vpath separator. Use 'vpath %'
975 instead of 'VPATH ='.
976 * Makefile.in: Regenerate.
978 2007-11-23 Matthias Klose <doko@ubuntu.com>
980 * configure.ac: Adjust makeinfo version check.
981 * configure: Regenerate.
983 2007-11-10 Jakub Jelinek <jakub@redhat.com>
986 * testsuite/libgomp.fortran/pr34020.f90: New test.
988 2007-11-06 Jakub Jelinek <jakub@redhat.com>
991 * testsuite/libgomp.c++/atomic-1.C: New test.
993 2007-10-25 Jakub Jelinek <jakub@redhat.com>
996 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
997 Make x and y integers rather than (implicit) reals. Add private (j)
998 clause to the last omp parallel.
1000 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1002 * configure: Regenerate following changes to ../config/tls.m4.
1004 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1006 * testsuite/libgomp.fortran/stack.f90: New test.
1008 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1010 * config/mingw32/proc.c: New file.
1012 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1014 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1015 (main): Use __get_cpuid to get i386 target fetaures.
1016 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1017 (main): Use __get_cpuid to get x86_64 target fetaures.
1019 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1022 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1023 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1025 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1028 * testsuite/libgomp.fortran/pr32550.f90: New test.
1029 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1031 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1033 * aclocal.m4: Regenerated.
1035 2007-07-05 Tobias Burnus <burnus@net-b.de>
1038 * testsuite/libgomp.fortran/pr32359.f90: New.
1040 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1043 * sections.c (GOMP_parallel_sections_start): Only decrease
1044 number of threads to COUNT if dyn_var is true.
1045 * testsuite/libgomp.c/pr32468.c: New test.
1047 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1050 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1052 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1055 * testsuite/libgomp.c/pr32362-1.c: New test.
1056 * testsuite/libgomp.c/pr32362-2.c: New test.
1057 * testsuite/libgomp.c/pr32362-3.c: New test.
1059 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1061 * team.c (gomp_team_start): Fix setting up thread_attr
1064 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1066 * configure: Regenerate.
1068 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1070 * Makefile.in: Regenerate.
1071 * configure: Regenerate.
1072 * aclocal.m4: Regenerate.
1073 * testsuite/Makefile.in: Regenerate.
1075 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1077 * config/linux/proc.c: New file.
1080 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1082 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1084 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1086 2007-04-16 Matthias Klose <doko@debian.org>
1088 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1089 flags if not building with -m64.
1090 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1091 flag for i?86-*-* targets, if current target matches -m64.
1093 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1095 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1096 * Makefile.in: Regenerate.
1098 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1101 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1103 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1105 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1107 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1109 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1110 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1111 (parse_affinity): New function.
1112 (initialize_env): Call it and gomp_init_affinity.
1113 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1114 create new pthread_attr_t and call gomp_init_thread_affinity
1115 on it for each thread before passing the attribute to pthread_create.
1116 * config/linux/affinity.c: New file.
1117 * config/posix/affinity.c: New file.
1118 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1119 * configure: Rebuilt.
1120 * config.h.in: Rebuilt.
1121 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1122 * Makefile.in: Rebuilt.
1124 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1126 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1128 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1129 and use it if found.
1131 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1133 * testsuite/config/default.exp: New file.
1134 * testsuite/lib/libgomp.exp: New file.
1135 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1136 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1137 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1138 (libgomp_load): Remove.
1139 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1140 always_ld_library_path, not ld_library_path. Set additional_flags
1141 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1142 (target_compile): Do not call libgomp_init. Append lang_library_path
1143 and lang_link_flags to options.
1144 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1145 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1147 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1148 always_ld_library_path. Set LD_LIBRARY_PATH here.
1149 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1150 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1151 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1153 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1154 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1155 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1156 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1157 * testsuite/libgomp.c/atomic-10.c: Ditto.
1159 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1161 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1162 dg-final cleanup-modules line.
1163 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1164 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1165 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1166 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1167 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1168 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1169 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1171 2007-03-18 Andreas Schwab <schwab@suse.de>
1173 * acinclude.m4: Adjust regular expression for ld version
1175 * configure: Regenerate.
1177 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1179 * Makefile.am: Add install-pdf target as copied from
1180 automake v1.10 rules.
1181 * Makefile.in: Regenerate
1183 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1186 * configure: Regenerate.
1189 * testsuite/libgomp.c++/pr30703.C: New test.
1191 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1194 2006-07-05 Eric Christopher <echristo@apple.com>
1195 * configure.ac: Depend addition of -pthread on host OS.
1196 * configure: Regenerate.
1198 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1200 * libgomp.texi: Fix spacing after abbreviations.
1202 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1205 * configure.ac: Add check for makeinfo
1206 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1207 if an appropiate version of makeinfo is found.
1208 * aclocal.m4: Regenerated.
1209 * configure: Regenerated.
1210 * Makefile.in: Regenerated.
1211 * testsuite/Makefile.in: Regenerated.
1213 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1216 * libgomp.texi: More about implementation-dependent settings.
1218 2007-01-26 Tobias Burnus <burnus@net-b.de>
1220 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1222 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1225 * testsuite/libgomp.c/pr30494.c: New test.
1227 2007-01-15 Tom Tromey <tromey@redhat.com>
1229 * configure: Rebuilt.
1230 * configure.ac: Fixed comment.
1232 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1234 * libgomp.texi: Document implementation specific default values of
1235 environment variables.
1237 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1240 * libgomp.texi: New file.
1241 * configure.ac: Add --enable-generated-files-in-srcdir option.
1242 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1244 * Makefile.in: Regenerated.
1245 * config.h.in: Regenerated.
1246 * testsuite/Makefile.in: Regenerated.
1249 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1252 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1254 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1256 * configure: Regenerate.
1258 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1261 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1262 start if there shouldn't be any loop iterations.
1263 (gomp_loop_ordered_static_start): Remove start == end test.
1264 * testsuite/libgomp.c/pr29947-1.c: New test.
1265 * testsuite/libgomp.c/pr29947-2.c: New test.
1267 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1269 * configure.tgt: Force initial-exec TLS model on Linux only.
1271 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1273 * configure: Regenerated.
1275 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1277 * env.c (parse_schedule): Reject out of range values.
1278 (parse_unsigned_long): Reject out of range, negative or zero values.
1280 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1283 * testsuite/libgomp.fortran/pr29629.f90: New test.
1285 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1288 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1289 * config/posix95: New directory.
1290 * config/posix95/omp-lock.h: New file.
1291 * config/posix95/lock.c: Likewise.
1293 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1295 * aclocal.m4: Regenerate.
1296 * configure: Regenerate.
1298 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1300 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1303 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1305 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1307 * configure: Regenerate.
1308 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1310 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1314 * testsuite/libgomp.c/nestedfn-4.c: New test.
1315 * testsuite/libgomp.c/nestedfn-5.c: New test.
1316 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1319 * testsuite/libgomp.fortran/condinc1.f: New test.
1320 * testsuite/libgomp.fortran/condinc2.f: New test.
1321 * testsuite/libgomp.fortran/condinc3.f90: New test.
1322 * testsuite/libgomp.fortran/condinc4.f90: New test.
1323 * testsuite/libgomp.fortran/condinc1.inc: New file.
1325 2006-09-18 Tom Tromey <tromey@redhat.com>
1327 * configure: Rebuilt.
1329 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1332 PR preprocessor/14634
1333 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1335 * configure: Regenerate.
1337 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1339 * testsuite/libgomp.fortran/reduction3.f90: Change
1340 -2147483648 to -huge(i)-1 to avoid overflow.
1341 * testsuite/libgomp.fortran/reduction4.f90: Change
1342 Z'ffffffff' to not(0) to avoid overflow.
1344 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1347 * Makefile.am (libsubincludedir): New.
1348 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1349 * Makefile.in: Regenerate.
1351 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1354 * env.c: Include ctype.h.
1355 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1356 leading and/or trailing whitespace and compare strings case
1359 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1362 * testsuite/libgomp.fortran/pr28390.f: New test.
1364 2006-07-05 Eric Christopher <echristo@apple.com>
1366 * configure.ac: Depend addition of -pthread on host OS.
1367 * configure: Regenerate.
1369 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1371 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1372 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1375 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1379 * configure.ac: If neither --enable-linux-futex nor
1380 --disable-linux-futex is passed, determine the default by checking
1381 for compiling and/or running against NPTL. With --enable-linux-futex,
1382 check if SYS_gettid and SYS_futex are defined.
1383 * configure: Rebuilt.
1385 2006-06-14 Richard Henderson <rth@redhat.com>
1388 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1389 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1391 2006-06-09 Richard Henderson <rth@redhat.com>
1393 * env.c (gomp_nthreads_var): Change to unsigned long.
1394 (gomp_run_sched_chunk): Likewise.
1395 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1396 (initialize_env): Initialize gomp_thread_attr.
1397 * libgomp.h (gomp_nthreads_var): Update decl.
1398 (gomp_run_sched_chunk): Likewise.
1399 (gomp_thread_attr): Declare.
1400 * team.c (gomp_thread_attr): Export.
1401 (initialize_team): Don't initialize it.
1403 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1406 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1407 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1409 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1411 * config/mingw32/time.c: New file.
1412 * configure.tgt: Use it.
1414 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1416 * Makefile.am: Add install-html target. Add install-html to .PHONY
1417 * Makefile.in: Regenerate.
1419 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1422 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1423 * testsuite/libgomp.c/critical-1.c: Likewise.
1424 * testsuite/libgomp.c/loop-1.c: Likewise.
1425 * testsuite/libgomp.c/loop-2.c: Likewise.
1426 * testsuite/libgomp.c/single-1.c: Likewise.
1427 * testsuite/libgomp.c/ordered-1.c: Likewise.
1428 * testsuite/libgomp.c/ordered-2.c: Likewise.
1430 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1433 * libgomp.fortran/pr27416-1.f90: New test.
1435 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1438 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1439 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1441 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1444 * testsuite/libgomp.c/pr26943-1.c: New test.
1445 * testsuite/libgomp.c/pr26943-2.c: New test.
1446 * testsuite/libgomp.c/pr26943-3.c: New test.
1447 * testsuite/libgomp.c/pr26943-4.c: New test.
1448 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1449 * testsuite/libgomp.c++/pr26943.C: New test.
1451 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1454 * testsuite/libgomp.c++/pr27337.C: New test.
1456 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1459 * testsuite/libgomp.c/pr26171.c: New test.
1461 2006-04-25 Richard Henderson <rth@redhat.com>
1464 * configure.ac: Use GCC_CHECK_TLS.
1465 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1466 * Makefile.in, aclocal.m4, configure: Regenerate.
1468 2006-04-10 Matthias Klose <doko@debian.org>
1470 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1471 directory names containing underscores.
1473 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1476 * testsuite/libgomp.c++/pr26691.C: New test.
1478 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1480 * testsuite/libgomp.fortran/retval2.f90: New test.
1482 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1484 * testsuite/libgomp.c++: New directory.
1486 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1488 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1489 * config/posix/sem.c: Implement the above.
1491 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1493 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1494 define HAVE_BROKEN_POSIX_SEMAPHORES.
1495 * configure: Rebuilt.
1496 * config.h.in: Rebuilt.
1498 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1501 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1502 for the other pthread check.
1503 * configure: Regenerate.
1504 * config.h.in: Regenerate.
1506 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1510 * Makefile.am (fincludedir): New variable.
1511 (nodist_include_HEADERS): Remove Fortran files.
1512 (nodist_finclude_HEADERS): New variable.
1513 * Makefile.in: Regenerated.
1515 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1517 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1518 Remove tests for returning assumed character length arrays.
1520 2006-02-12 Roger Sayle <roger@eyesopen.com>
1521 John David Anglin <dave@hiauly1.hia.nrc.ca>
1524 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1526 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1528 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1530 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1532 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1533 part of LD_LIBRARY_PATH manually.
1535 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1538 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1541 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1544 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1545 * configure.ac (PERL): Don't set.
1546 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1547 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1548 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1549 * omp.h.in: Wrap the new configure substitutions with @ characters.
1550 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1551 * aclocal.m4, configure, Makefile.in: Regenerate.
1552 * mkomp_h.pl: Delete.
1554 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1557 * configure.ac: Use GCC_HEADER_STDINT.
1558 * libgomp.h: Include gstdint.h.
1559 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1560 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1562 2006-01-24 Richard Henderson <rth@redhat.com>
1565 * configure.ac: Add AM_MAINTAINER_MODE.
1566 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1568 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1570 * Makefile.in: Regenerate.
1571 * testsuite/Makefile.in: Regenerate.
1572 * aclocal.m4: Regenerate.
1574 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1576 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1578 * configure.ac: Add check for loadavg.h.
1579 (link_gomp): Adjust comment.
1580 * configure: Regenerate.
1581 * config.h.in: Regenerate.
1583 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1586 * configure.ac: Remove check for alloca.h.
1587 * configure: Regenerate.
1588 * config.h.in: Regenerate.
1589 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1590 * team.c: Remove use of alloca.h.
1591 Call gomp_alloca instead of alloca.
1593 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1596 * team.c: Add include of alloca.h.
1597 * configure.ac: Add check for alloca.h.
1598 * configure: Regenerate.
1599 * config.h.in: Regenerate.
1601 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1604 * testsuite/libgomp.fortran/pr25219.f90: New test.
1606 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1608 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1609 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1610 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1611 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1612 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1613 testsuite/libgomp.fortran/threadprivate1.f90,
1614 testsuite/libgomp.fortran/threadprivate2.f90,
1615 testsuite/libgomp.fortran/threadprivate3.f90,
1616 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1617 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1618 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1619 effective-target to TLS runtime.
1621 * testsuite/libgomp.fortran/pr25162.f: Require
1622 effective-target TLS runtime.
1624 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1626 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1627 * testsuite/libgomp.c/nestedfn-3.c: New test.
1629 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1632 * testsuite/libgomp.fortran/pr25162.f: New test.
1634 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1636 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1637 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1639 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1641 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1642 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1643 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1644 single.c, team.c, work.c, config/linux/alpha/futex.h,
1645 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1646 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1647 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1648 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1649 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1650 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1651 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1654 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1656 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1657 to nodist_noinst_HEADERS.
1658 * Makefile.in: Rebuilt.
1660 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1661 add integer count field.
1662 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1663 omp_nest_lock_t type change.
1664 (omp_init_nest_lock): Likewise. Initialize count to 0.
1665 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1667 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1669 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1670 Increment count if successful and return the new nesting level.
1671 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1672 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1673 * testsuite/libgomp.c/lib-1.c: New test.
1674 * testsuite/libgomp.fortran/lib1.f90: New test.
1675 * testsuite/libgomp.fortran/lib2.f: New test.
1676 * testsuite/libgomp.fortran/lib3.f: New test.
1678 2005-11-17 Richard Henderson <rth@redhat.com>
1681 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1682 * configure.ac (link_gomp): New. Substitute it.
1683 (AC_CONFIG_FILES): Add libgomp.spec.
1684 * libgomp.spec.in: New file.
1685 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1686 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1688 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1690 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1691 reduction(-:var) behaving the same as reduction(+:var).
1692 * testsuite/libgomp.c/reduction-4.c: New test.
1694 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1696 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1697 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1698 testsuite/libgomp.c/copyin-3.c,
1699 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1700 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1701 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1702 testsuite/libgomp.c++/pr24455.C,
1703 testsuite/libgomp.fortran/threadprivate1.f90,
1704 testsuite/libgomp.fortran/threadprivate2.f90,
1705 testsuite/libgomp.fortran/threadprivate3.f90,
1706 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1707 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1708 testsuite/libgomp.fortran/omp_parse3.f90: Require
1709 effective-target TLS.
1711 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1715 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1718 * team.c (initialize_team): Pass NULL rather than free as
1719 pthread_key_create destructor. Initialize thread specific data
1720 pointer in initial thread to a static local variable rather than
1723 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1725 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1726 its location to ld_library_path.
1728 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1730 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1732 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1734 * testsuite/libgomp.c: Rename from libgomp.dg.
1736 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1738 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1739 threadprivate variable 'i'.
1741 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1743 * config/linux/s390/futex.h: New file.
1744 * configure.tgt: Use it.
1746 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1747 before the parallel.
1749 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1752 * testsuite/libgomp.c++/master-1.C: New test.
1754 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1756 * testsuite/libgomp.dg/copyin-3.c: New test.
1758 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1760 * testsuite/libgomp.fortran/retval1.f90: New test.
1761 * testsuite/libgomp.fortran/vla7.f90: New test.
1763 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1765 * testsuite/libgomp.fortran/vla2.f90: New test.
1766 * testsuite/libgomp.fortran/vla3.f90: New test.
1767 * testsuite/libgomp.fortran/vla4.f90: New test.
1768 * testsuite/libgomp.fortran/vla5.f90: New test.
1769 * testsuite/libgomp.fortran/vla6.f90: New test.
1771 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1773 * config/linux/sparc/futex.h: New file.
1774 * configure.tgt: Use it.
1775 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1777 * critical.c: Include stdlib.h.
1778 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1779 ignoring return value.
1780 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1781 LIBGOMP_CHECK_SYNC_BUILTINS check.
1782 * configure: Rebuilt.
1784 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1786 * testsuite/libgomp.fortran/vla1.f90: New test.
1788 2005-10-31 Richard Henderson <rth@redhat.com>
1790 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1791 setting 's' in different threads.
1793 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1795 * libgomp.h (attribute_hidden, ialias): Define.
1796 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1797 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1798 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1799 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1800 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1801 omp_test_lock, omp_test_nest_lock): Likewise.
1802 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1803 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1804 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1805 omp_test_lock, omp_test_nest_lock): Likewise.
1806 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1807 omp_get_dynamic, omp_get_nested): Likewise.
1808 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1809 omp_get_thread_num, omp_in_parallel): Likewise.
1810 * fortran.c (ialias_redirect): Define.
1811 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1812 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1813 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1814 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1815 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1816 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1817 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1818 omp_get_wtime): Add ialias_redirect.
1820 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1822 * fortran.c: Include stdlib.h.
1824 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1826 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1827 * Makefile.in: Regenerated.
1829 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1831 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1832 * libgomp_f.h.in (omp_check_defines): New function.
1833 * env.c: Include libgomp_f.h.
1834 (initialize_env): Call omp_check_defines.
1836 * testsuite/libgomp.dg/copyin-2.c: New test.
1837 * testsuite/libgomp.c++/copyin-2.C: New test.
1838 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1840 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1841 * testsuite/libgomp.fortran/sharing2.f90: New test.
1843 * testsuite/libgomp.dg/copyin-1.c: New test.
1844 * testsuite/libgomp.c++/copyin-1.C: New test.
1846 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1848 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1850 * testsuite/libgomp.fortran/workshare1.f90: New test.
1852 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1854 * libgomp.fortran/sharing1.f90: New test.
1856 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1859 * testsuite/libgomp.c++/loop-7.C: New test.
1861 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1863 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1864 * testsuite/libgomp.fortran/reduction6.f90: New test.
1865 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1867 2005-10-23 Richard Henderson <rth@redhat.com>
1869 * testsuite/libgomp.c++/ctor-1.C: New.
1870 * testsuite/libgomp.c++/ctor-2.C: New.
1871 * testsuite/libgomp.c++/ctor-3.C: New.
1872 * testsuite/libgomp.c++/ctor-4.C: New.
1873 * testsuite/libgomp.c++/ctor-5.C: New.
1874 * testsuite/libgomp.c++/ctor-6.C: New.
1875 * testsuite/libgomp.c++/ctor-7.C: New.
1876 * testsuite/libgomp.c++/ctor-8.C: New.
1877 * testsuite/libgomp.c++/ctor-9.C: New.
1879 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1882 * testsuite/libgomp.c++/pr24455-1.C: New test.
1883 * testsuite/libgomp.c++/pr24455.C: New test.
1884 * testsuite/libgomp.dg/pr24455-1.c: New test.
1885 * testsuite/libgomp.dg/pr24455.c: New test.
1887 2005-10-20 Richard Henderson <rth@redhat.com>
1889 * testsuite/libgomp.c++/loop-6.C: New.
1890 * testsuite/libgomp.dg/loop-3.c: New.
1892 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1894 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1896 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1899 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1901 * testsuite/libgomp.fortran/jacobi.f: New test.
1903 2005-10-19 Richard Henderson <rth@redhat.com>
1905 * configure.tgt (i?86-linux): Default to with_arch instead of
1906 CFLAGS. Add -mtune to match target_cpu.
1907 (x86_64-linux): Tune to i686.
1909 * fortran.c (omp_test_nest_lock_): Fix typo.
1911 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1913 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1914 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1915 * testsuite/libgomp.dg/ordered-3.c: New test.
1917 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1918 Remove volatile keyword.
1920 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1921 in COMMON block to avoid warnings on 64-bit targets.
1923 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1925 * testsuite/libgomp.dg/shared-3.c: New test.
1927 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1929 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1930 * testsuite/libgomp.fortran/reduction5.f90: New test.
1932 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1934 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1936 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1937 flush loop now that __sync_synchronize has proper memory barrier.
1938 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1939 Add -ffixed-form to dg-options.
1941 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1943 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1944 from subdirectories.
1945 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1946 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1947 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1948 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1949 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1950 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1951 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1952 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1953 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1954 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1955 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1956 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1957 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1958 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1959 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1960 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1961 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1962 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1963 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1964 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1965 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1966 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1967 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1968 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1969 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1971 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1973 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1974 lang_library_path exists. Use find instead of glob to gather tests.
1975 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1977 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1979 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1980 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1981 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1982 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1983 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1984 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1985 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1986 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1987 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1988 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1989 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1990 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1991 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1993 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1995 * testsuite/libgomp.dg/vla-1.c: New test.
1997 * testsuite/libgomp.fortran/reference2.f90: New test.
1999 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2000 declaration of omp_get_thread_num.
2001 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2004 * testsuite/libgomp.fortran/reduction1.f90: New test.
2005 * testsuite/libgomp.fortran/reduction2.f90: New test.
2006 * testsuite/libgomp.fortran/reduction3.f90: New test.
2007 * testsuite/libgomp.fortran/reduction4.f90: New test.
2009 2005-10-13 Richard Henderson <rth@redhat.com>
2011 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2012 * Makefile.in: Regenerate.
2013 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2014 * libgomp.h: Include bar.h.
2015 (struct gomp_barrier): Remove.
2016 (struct gomp_team): Add barrier. Replace master_barrier with
2017 master_release. Replace threads with ordered_release.
2018 (struct gomp_thread): Replace barrier with release.
2019 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2020 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2021 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2022 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2023 (GOMP_single_copy_end): Likewise.
2024 * team.c (gomp_threads_dock): New.
2025 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2026 (gomp_thread_start): Use gomp_barrier_wait.
2027 (new_team, free_team): Update for gomp_team changes.
2028 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2029 (gomp_team_end): Use gomp_barrier_wait.
2030 (initialize_team): Update for gomp_thread changes.
2031 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2032 (gomp_work_share_end_nowait): Use atomic ops when available.
2033 * config/linux/bar.c, config/linux/bar.h: New files.
2034 * config/posix/bar.c, config/posix/bar.h: New files.
2036 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2038 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2039 * testsuite/libgomp.dg/single-2.c: New test.
2041 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2042 lang_link_flags): Unset, so that they aren't inherited from previously
2045 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2047 2005-10-12 Richard Henderson <rth@redhat.com>
2049 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2050 (libgomp_init): Use lang_test_file, lang_library_path, and
2051 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2053 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2054 (lang_test_file, lang_link_flags): New.
2055 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2057 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2058 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2059 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2060 testsuite/libgomp.c++/parallel-1.C,
2061 testsuite/libgomp.c++/reduction-1.C,
2062 testsuite/libgomp.c++/reduction-2.C,
2063 testsuite/libgomp.c++/reduction-3.C,
2064 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2065 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2066 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2067 New files, largely cribbed from the C testsuite.
2069 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2071 * testsuite/libgomp.fortran/character1.f90: New test.
2072 * testsuite/libgomp.fortran/character2.f90: New test.
2074 * testsuite/libgomp.dg/nested-1.c: New test.
2075 * testsuite/libgomp.dg/nested-2.c: New test.
2076 * testsuite/libgomp.fortran/do1.f90: New test.
2077 * testsuite/libgomp.fortran/do2.f90: New test.
2079 * testsuite/libgomp.fortran/reference1.f90: New test.
2081 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2083 * testsuite/libgomp.dg/reduction-1.c: New test.
2084 * testsuite/libgomp.dg/reduction-2.c: New test.
2085 * testsuite/libgomp.dg/reduction-3.c: New test.
2087 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2089 * testsuite/libgomp.dg/atomic-1.c: New test.
2090 * testsuite/libgomp.dg/atomic-2.c: New test.
2092 2005-10-09 Richard Henderson <rth@redhat.com>
2094 * critical.c (atomic_lock): New.
2095 (initialize_critical): Initialize it.
2096 (GOMP_atomic_start, GOMP_atomic_end): New.
2097 * libgomp.map: Export them.
2098 * libgomp_g.h: Declare them.
2100 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2102 2005-10-02 Richard Henderson <rth@redhat.com>
2104 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2105 to XCFLAGS instead of CFLAGS.
2107 2005-09-30 Richard Henderson <rth@redhat.com>
2109 * configure.ac: Determine whether -pthread or -lpthread is needed.
2110 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2111 * Makefine.in, configure: Rebuild.
2113 2005-09-28 Richard Henderson <rth@redhat.com>
2115 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2116 * testsuite/libgomp.dg/omp-single-3.c: New test.
2118 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2120 * testsuite/libgomp.dg/omp-single-2.c: New test.
2121 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2123 2005-09-27 Richard Henderson <rth@redhat.com>
2125 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2126 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2128 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2130 * testsuite/libgomp.dg/omp-loop03.c: New test.
2132 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2134 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2136 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2138 * testsuite/libgomp.dg/omp-single-1.c: New test.
2139 * testsuite/libgomp.dg/shared-1.c: Return 0.
2140 Add prototype for abort.
2141 * testsuite/libgomp.dg/shared-2.c: Likewise.
2143 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2145 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2148 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2150 * testsuite/libgomp.dg/shared-1.c: New test.
2151 * testsuite/libgomp.dg/shared-2.c: New test.
2153 2005-09-24 Richard Henderson <rth@redhat.com>
2155 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2157 2005-09-24 Richard Henderson <rth@redhat.com>
2159 * iter.c (gomp_iter_static_next): Round up when computing number
2160 of iterations. Don't bother distributing a remainder equally.
2162 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2163 Don't call srand. Zero b before testing.
2166 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2168 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2169 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2171 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2173 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2174 without !$omp end do, followed immediately by subroutine end.
2176 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2178 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2180 2005-09-22 Richard Henderson <rth@redhat.com>
2182 * critical.c (GOMP_critical_name_start): Change argument to void**.
2183 Reuse the pointer space if the mutex fits.
2184 (GOMP_critical_name_end): Likewise.
2185 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2186 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2187 (GOMP_critical_name_end): Likewise.
2188 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2189 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2191 2005-09-20 Richard Henderson <rth@redhat.com>
2193 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2194 (create_lock_lock): New.
2195 (initialize_critical): Initialize it.
2196 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2197 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2199 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2201 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2203 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2205 * testsuite/libgomp.dg/omp-loop01.c: New test.
2206 * testsuite/libgomp.dg/omp-loop02.c: New test.
2208 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2210 * configure.ac (AC_PROG_FC): Add.
2211 (USE_FORTRAN): New automake conditional.
2212 * configure: Rebuilt.
2213 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2214 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2215 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2216 Add rules to build them.
2217 * Makefile.in: Rebuilt.
2218 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2220 * libgomp.map: Add Fortran wrappers.
2221 * libgomp_f.h.in: New file.
2222 * omp_lib.h.in: New file.
2223 * omp_lib.f90.in: New file.
2224 * fortran.c: New file.
2225 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2226 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2227 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2228 libgfortran has been built.
2229 * testsuite/libgomp.fortran/fortran.exp: New file.
2230 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2231 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2232 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2233 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2234 * testsuite/libgomp.fortran/omp_hello.f: New test.
2235 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2236 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2237 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2238 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2239 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2240 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2241 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2242 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2244 2005-08-30 Richard Henderson <rth@redhat.com>
2246 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2247 function for when aliases are not usable.
2248 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2249 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2250 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2251 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2252 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2253 GOMP_loop_ordered_guided_next): Likewise.
2254 * ordered.c (GOMP_ordered_start): Likewise.
2256 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2258 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2259 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2260 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2261 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2262 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2263 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2264 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2265 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2266 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2268 2005-07-07 Eric Christopher <echristo@redhat.com>
2269 Diego Novillo <dnovillo@redhat.com>
2271 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2272 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2274 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2275 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2276 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2277 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2278 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2279 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2280 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2282 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2284 * TOPLEVEL.patch: Remove.
2286 2005-05-16 Richard Henderson <rth@redhat.com>
2288 * configure.ac: Test for clock_gettime.
2289 * config.h.in, configure: Rebuild.
2290 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2291 (omp_get_wtime): Use clock_gettime if available.
2292 (omp_get_wtick): Use clock_getres if available.
2294 2005-05-11 Richard Henderson <rth@redhat.com>
2296 * config/linux/ia64/futex.h: New file.
2297 * configure.tgt: Use it.
2299 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2301 2005-05-07 Richard Henderson <rth@redhat.com>
2303 * config/linux/powerpc/futex.h: New file.
2304 * configure.tgt: Use it.
2306 * config/linux/i486/futex.h: Merge ...
2307 * config/linux/x86_64/futex.h: ... into ...
2308 * config/linux/x86/futex.h: ... here.
2309 * configure.tgt: Update to match.
2311 2005-05-06 Richard Henderson <rth@redhat.com>
2313 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2314 * config/linux/i486/futex.h: Likewise.
2315 * config/linux/x86_64/futex.h: Likewise.
2317 * config/linux/lock.c: New file.
2318 * config/linux/omp-lock.h: New file.
2320 * critical.c, env.h: Don't include omp.h
2321 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2322 * config/posix/time.c: Likewise.
2323 * config/posix/omp-lock.h: New file.
2324 * libgomp.h: Include omp-lock.h and omp.h.
2325 * Makefile.am (nodist_include_HEADERS): New.
2327 * configure.ac (PERL): New.
2328 * mkomp_h.pl: New file.
2329 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2331 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2333 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2334 build directory. Re-add -march=i486 hack.
2336 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2337 (libgomp_link_flags): Remove.
2338 (libgomp_initialized): Remove.
2339 (libgomp_init): Don't protect from reinitialization. Copy code
2340 from libstdc++ for getting the multilib set correctly.
2342 2005-05-05 Richard Henderson <rth@redhat.com>
2344 * config/linux/alpha/futex.h: New file.
2345 * configure.tgt (alpha*-*-linux*): Use it.
2347 * config/posix/mutex.c: New file.
2348 * config/posix/sem.c: Use libgomp.h.
2350 * configure.tgt (x86_64-linux): Also test CC for -m32.
2351 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2353 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2356 * Makefile.am (SUBDIRS): New.
2357 (libgomp_la_LDFLAGS): Add -lpthread.
2358 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2359 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2361 * libgomp_g.h: New file.
2362 * libgomp.h: Split out all public declarations to libgomp_g.h.
2363 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2364 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2365 * config/linux/sem.h: Likewise.
2366 * config/posix/sem.h: Likewise.
2368 * Makefile.am (AM_LDFLAGS): New.
2369 (libgomp_version_script): Split out from ...
2370 (libgomp_la_LDFLAGS): ... here.
2371 (libgomp_version_info): New.
2372 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2373 (LIBGOMP_ENABLE): New.
2374 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2375 (LIBGOMP_ENABLE_SYMVERS): New.
2376 * configure.ac (AC_INIT): Version 1.0.
2377 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2378 (enable-linux-futex): Likewise. Rename from enable-futex.
2379 (libtool_VERSION): New.
2380 (LIBGOMP_ENABLE_SYMVERS): Use it.
2381 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2382 * Makefile.in, aclocal.m4, configure: Rebuild.
2384 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2385 (gomp_mutex_unlock_slow): Fix typo.
2386 * config/linux/sem.c: Similarly.
2387 (gomp_sem_post_slow): Fix typo.
2388 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2389 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2390 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2392 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2393 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2394 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2395 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2396 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2397 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2398 LDFLAGS. Pull enable_futex check to top-level.
2399 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2400 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2402 First attempt at real configury.
2403 * Makefile, config.h: Remove file.
2404 * Makefile.am, Makefile.in: New file.
2405 * acinclude.m4 aclocal.m4: New file.
2406 * configure.ac, configure.tgt, configure: New file.
2408 * config/posix/lock.c: Rename from sys-lock.c.
2409 * config/posix/mutex.h: Rename from sys-mutex.h.
2410 * config/posix/sem.c: Rename from sys-sem.c.
2411 * config/posix/sem.h: Rename from sys-sem.h.
2412 * config/posix/proc.c: Rename from sys-proc.c.
2413 * config/posix/time.c: Rename from sys-proc.c.
2415 * config/linux/mutex.c: New file.
2416 * config/linux/mutex.h: New file.
2417 * config/linux/sem.c: New file.
2418 * config/linux/sem.h: New file.
2419 * config/linux/i486/futex.h: New file.
2420 * config/linux/x86_64/futex.h: New file.
2422 2005-05-04 Richard Henderson <rth@redhat.com>
2424 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2425 * libgomp.h: Declare them.
2426 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2427 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2429 2005-05-04 Richard Henderson <rth@redhat.com>
2431 * libgomp-1 code drop
2433 2005-05-04 Richard Henderson <rth@redhat.com>
2435 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2436 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2437 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2438 (gomp_iter_static_next): Update.
2439 (gomp_ordered_static_next): Update.
2440 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2441 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2442 totally empty range.
2443 (gomp_loop_ordered_static_next): Refine test for calling
2444 gomp_ordered_static_next.
2445 * testsuite/ordered-1.c: Add case for more threads than iterations.
2447 * iter.c (gomp_iter_runtime_next_locked): Remove.
2448 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2449 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2450 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2451 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2452 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2453 gomp_loop_ordered_guided_next): Downcase name, make static, add
2454 an external alias with the old name.
2455 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2456 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2457 switch and call one of the above static functions.
2458 * libgomp.h: Update.
2460 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2461 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2462 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2463 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2464 GOMP_loop_ordered_guided_start): Update to match.
2465 * sections.c (GOMP_sections_start): Likewise.
2466 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2468 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2469 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2470 Use bounds check instead of modulus.
2471 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2472 (gomp_ordered_last): Don't sync with ordered_owner here.
2473 (gomp_ordered_next): Likewise.
2474 (gomp_ordered_static_loop_next): Likewise.
2475 * loop.c, libgomp.h: Update to match.
2477 * libgomp.h (GOMP_barrier): Declare.
2479 * testsuite/barrier-1.c: New file.
2480 * testsuite/critical-1.c: New file.
2481 * testsuite/ordered-2.c: New file.
2482 * testsuite/ordered-1.c: New file.
2483 * testsuite/sections-1.c: New file.
2484 * testsuite/single-1.c: New file.
2485 * testsuite/Makefile (TESTS): Add them.
2487 2005-05-04 Richard Henderson <rth@redhat.com>
2489 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2490 * loop.c (GOMP_loop_static_start): If not the startup thread,
2491 acquire the mutex to wait for initialization complete.
2492 (GOMP_loop_ordered_static_start): Likewise.
2493 (GOMP_loop_ordered_runtime_start): Likewise.
2494 (GOMP_loop_ordered_static_first): Remove.
2495 (GOMP_loop_ordered_dynamic_first): Remove.
2496 (GOMP_loop_ordered_guided_first): Remove.
2497 (GOMP_loop_ordered_runtime_first): Remove.
2498 * ordered.c (gomp_ordered_loop_first): Post to own release when
2499 we're the first thread.
2500 (gomp_ordered_loop_last): Wait on release if not owner.
2501 (gomp_ordered_loop_next): Likewise.
2502 (gomp_ordered_static_loop_init): New.
2503 (gomp_ordered_static_loop_next): Use ordered_owner.
2504 (GOMP_ordered_start): Likewise.
2505 * work.c (gomp_new_work_share): Initialize ordered_owner.
2507 2005-05-03 Richard Henderson <rth@redhat.com>
2509 * Makefile (OPT): New.
2512 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2513 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2514 * libgomp.h, libgomp.map, NOTES: Update to match.
2516 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2517 Add initialized and thr members.
2518 (gomp_thread_start): Pause when initially spawned to wait for
2519 the whole team to be created.
2520 (gomp_team_start): Release team members at the end.
2522 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2523 (f_foo_1): Use GOMP_loop_end.
2524 (f_foo_2): Use GOMP_loop_end_nowait.
2526 * testsuite/loop-2.c: New file.
2527 * testsuite/Makefile (TESTS): Add it.
2529 2005-05-03 Richard Henderson <rth@redhat.com>
2531 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2532 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2533 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2536 * testsuite/Makefile: New file.
2537 * testsuite/loop-1.c: New file.
2539 2005-05-03 Richard Henderson <rth@redhat.com>
2541 Initial implementation and checkin.