1 2010-01-03 Richard Guenther <rguenther@suse.de>
3 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
5 2009-12-23 Sebastian Pop <sebpop@gmail.com>
7 * testsuite/libgomp.graphite/pr4118.c: New.
9 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
12 for darwin, protect the test with require-effective-target tls_runtime.
13 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
15 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18 * testsuite/lib/libgomp.exp: Provide -B options to allow for
19 link spec %s substitutions for static libraries.
21 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
24 * libgomp.graphite/force-parallel-2.c: Reduce array size.
26 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28 * Makefile.in: Regenerate.
29 * configure: Regenerate.
30 * testsuite/Makefile.in: Regenerate.
32 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
34 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
35 settings for LC_ALL and LANG.
37 2009-11-25 Jakub Jelinek <jakub@redhat.com>
40 * testsuite/libgomp.fortran/pr42162.f90: New test.
42 2009-11-13 Jakub Jelinek <jakub@redhat.com>
45 * testsuite/libgomp.c/pr42029.c: New test.
47 2009-10-26 Jakub Jelinek <jakub@redhat.com>
49 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
50 *s. Accept ld version without text in ()s.
51 * configure: Regenerated.
53 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
55 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
57 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
61 or a hyphen (happens with fortran language disabled).
62 * configure: Regenerate.
64 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
67 use sed script portable to Solaris /bin/sed for extracting ld
69 * configure: Regenerate.
71 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
73 * testsuite/libgomp.graphite/bounds.c: New test.
75 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77 * Makefile.am (libgomp_la_LINK): New.
78 * Makefile.in: Regenerate.
80 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
82 * configure.ac (AC_PREREQ): Bump to 2.64.
84 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
86 * Makefile.am (install-html, install-pdf): Remove.
87 * Makefile.in: Regenerate.
89 * Makefile.in: Regenerate.
90 * aclocal.m4: Regenerate.
91 * config.h.in: Regenerate.
92 * configure: Regenerate.
93 * testsuite/Makefile.in: Regenerate.
95 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
98 * Makefile.in: Regenerate.
100 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
102 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
103 * Makefile.in: Regenerate.
105 2009-08-19 Tobias Burnus <burnus@net-b.de>
108 omp_lib.h.in: Fix -std=f95 errors.
111 2009-08-14 David Edelsohn <edelsohn@gnu.org>
113 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
114 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
115 * testsuite/libgomp.graphite/graphite.exp: New.
117 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
119 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
122 2009-08-04 David Daney <ddaney@caviumnetworks.com>
124 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
125 needed memory barrier semantics.
126 * config/linux/mips/mutex.h: New file.
128 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
130 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
132 2009-07-16 Joseph Myers <joseph@codesourcery.com>
134 * configure: Regenerate.
136 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
141 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
142 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
143 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
145 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
147 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
148 options when choosing a multilib.
150 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
152 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
153 ld_library_path. Use add_path. Add just find_libgcc_s to
154 ld_library_path, not every libgcc multilib directory.
155 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
156 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
157 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
159 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
161 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
163 * Makefile.am (LTLDFLAGS): Define.
165 * Makefile.in: Regenerate.
167 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
170 * testsuite/libgomp.fortran/fortran.exp: Don't link with
171 libgfortranbegin, check existence of libgfortran.a instead of
174 2009-05-20 Jakub Jelinek <jakub@redhat.com>
177 * team.c (gomp_thread_start): Destroy thr->release semaphore.
178 (gomp_free_pool_helper): Likewise.
180 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
181 Jakub Jelinek <jakub@redhat.com>
184 * testsuite/libgomp.fortran/workshare2.f90: New test.
186 2009-04-09 Nick Clifton <nickc@redhat.com>
188 * iter.c: Change copyright header to refer to version 3 of the
189 GNU General Public License with version 3.1 of the GCC Runtime
190 Library Exception and to point readers at the COPYING3 and
191 COPYING3.RUNTIME files and the FSF's license web page.
193 * barrier.c: Likewise.
194 * config/bsd/proc.c: Likewise.
195 * config/linux/affinity.c: Likewise.
196 * config/linux/alpha/futex.h: Likewise.
197 * config/linux/bar.c: Likewise.
198 * config/linux/bar.h: Likewise.
199 * config/linux/ia64/futex.h: Likewise.
200 * config/linux/ia64/mutex.h: Likewise.
201 * config/linux/lock.c: Likewise.
202 * config/linux/mips/futex.h: Likewise.
203 * config/linux/mutex.c: Likewise.
204 * config/linux/mutex.h: Likewise.
205 * config/linux/powerpc/futex.h: Likewise.
206 * config/linux/proc.c: Likewise.
207 * config/linux/ptrlock.c: Likewise.
208 * config/linux/ptrlock.h: Likewise.
209 * config/linux/s390/futex.h: Likewise.
210 * config/linux/sem.c: Likewise.
211 * config/linux/sem.h: Likewise.
212 * config/linux/sparc/futex.h: Likewise.
213 * config/linux/wait.h: Likewise.
214 * config/linux/x86/futex.h: Likewise.
215 * config/mingw32/proc.c: Likewise.
216 * config/mingw32/time.c: Likewise.
217 * config/posix/affinity.c: Likewise.
218 * config/posix/bar.c: Likewise.
219 * config/posix/bar.h: Likewise.
220 * config/posix/lock.c: Likewise.
221 * config/posix/mutex.h: Likewise.
222 * config/posix/proc.c: Likewise.
223 * config/posix/ptrlock.h: Likewise.
224 * config/posix/sem.c: Likewise.
225 * config/posix/sem.h: Likewise.
226 * config/posix/time.c: Likewise.
227 * config/posix95/lock.c: Likewise.
228 * critical.c: Likewise.
231 * fortran.c: Likewise.
232 * iter_ull.c: Likewise.
233 * libgomp.h: Likewise.
234 * libgomp_f.h.in: Likewise.
235 * libgomp_g.h: Likewise.
237 * loop_ull.c: Likewise.
238 * omp.h.in: Likewise.
239 * omp_lib.f90.in: Likewise.
240 * omp_lib.h.in: Likewise.
241 * ordered.c: Likewise.
242 * parallel.c: Likewise.
243 * sections.c: Likewise.
244 * single.c: Likewise.
249 2009-04-09 Jakub Jelinek <jakub@redhat.com>
251 * testsuite/config/default.exp: Change copyright header to refer to
252 version 3 of the GNU General Public License and to point readers
253 at the COPYING3 file and the FSF's license web page.
255 2009-04-08 Jakub Jelinek <jakub@redhat.com>
258 * libgomp.c++/pr39573.C: New test.
260 2009-04-01 Jakub Jelinek <jakub@redhat.com>
263 * testsuite/libgomp.c/pr39591-1.c: New test.
264 * testsuite/libgomp.c/pr39591-2.c: New test.
265 * testsuite/libgomp.c/pr39591-3.c: New test.
267 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
269 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
270 * testsuite/libgomp.c/atomic-6.c: Ditto.
272 2009-03-23 Jakub Jelinek <jakub@redhat.com>
275 * testsuite/libgomp.c/loop-12.c: New test.
276 * testsuite/libgomp.c/loop-11.c: New test.
277 * testsuite/libgomp.c++/loop-11.C: New test.
278 * testsuite/libgomp.c++/loop-12.C: New test.
279 * testsuite/libgomp.c++/for-8.C: New test.
281 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
283 * configure: Regenerate.
285 2009-02-11 Jakub Jelinek <jakub@redhat.com>
288 * testsuite/libgomp.c/pr39154.c: New test.
290 2009-01-30 Ian Lance Taylor <iant@google.com>
292 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
293 libgomp_ld_is_gold. Get gold version number.
294 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
295 * configure: Rebuild.
297 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
299 * testsuite/lib/libgomp.exp: Add -B option for targets that
300 use libgfortran.a%s in their specs.
302 2009-01-07 Jakub Jelinek <jakub@redhat.com>
305 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
306 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
307 HAVE_AS_SYMVER_DIRECTIVE is not defined.
308 * configure: Regenerated.
309 * config.h.in: Likewise.
311 2008-12-28 Jakub Jelinek <jakub@redhat.com>
314 * testsuite/libgomp.c/pr38650.c: New test.
315 * testsuite/libgomp.c++/pr38650.C: New test.
317 2008-12-27 Jakub Jelinek <jakub@redhat.com>
319 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
321 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
323 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
325 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
327 * configure: Regenerate.
329 2008-12-08 Jakub Jelinek <jakub@redhat.com>
332 * testsuite/libgomp.c/pr36802-1.c: New test.
333 * testsuite/libgomp.c/pr36802-2.c: New test.
334 * testsuite/libgomp.c/pr36802-3.c: New test.
336 2008-12-01 Janis Johnson <janis187@us.ibm.com>
339 * config/linux/powerpc/mutex.h: New.
341 2008-12-01 Jakub Jelinek <jakub@redhat.com>
344 * testsuite/libgomp.c++/for-7.C: New test.
347 * testsuite/libgomp.c++/for-6.C: New test.
349 2008-11-26 Janis Johnson <janis187@us.ibm.com>
352 * testsuite/lib/libgomp.exp: Include new timeout library files.
353 (libgomp_target_compile): Set timeout value from new proc.
355 2008-11-13 Steve Ellcey <sje@cup.hp.com>
358 * config/linux/ia64/mutex.h: New.
360 2008-11-04 Tobias Burnus <burnus@net-b.de>
363 * libgomp.texi (Runtime library routines, environment variables):
364 Update for OpenMP version 3.0.
366 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
367 Steve Ellcey <sje@cup.hp.com>
369 * configure: Regenerate for new libtool.
370 * Makefile.in: Ditto.
371 * testsuite/Makefile.in: Ditto.
373 2008-09-19 Jakub Jelinek <jakub@redhat.com>
374 Andreas Tobler <a.tobler@schweiz.org>
376 * config/bsd/proc.c: New file.
377 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
378 * configure.ac: Check for header <sys/sysctl.h>
379 * configure: Regenerate.
380 * config.h.in: Likewise.
382 2008-09-05 Janis Johnson <janis187@us.ibm.com>
384 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
386 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
388 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
389 * Makefile.in: Regenerated.
390 * testsuite/Makefile.in: Regenerated.
392 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
394 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
395 depend on blddir if blddir exists.
396 (libgomp_target_compile): Likewise.
397 * testsuite/libgomp.c++/c++.exp: Likewise.
398 * testsuite/libgomp.fortran/fortran.exp: Likewise.
400 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
402 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
403 Do not list GPL as Invariant Section.
405 2008-07-28 Ilie Garbacea <ilie@mips.com>
406 Chao-ying Fu <fu@mips.com>
408 * configure.tgt: Enable futex for MIPS.
409 * config/linux/mips/futex.h: New file.
411 2008-07-16 Jakub Jelinek <jakub@redhat.com>
413 * team.c (gomp_team_end): Free team immediately if it has
416 2008-07-08 David Edelsohn <edelsohn@gnu.org>
418 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
419 * testsuite/libgomp.fortran/fortran.exp: Same.
420 * testsuite/libgomp.c/c.exp: Same.
421 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
422 directory to library path first.
424 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
426 * env.c (parse_stacksize): Add cast to avoid warning.
427 (parse_spincount): Likewise.
429 2008-06-27 Jakub Jelinek <jakub@redhat.com>
431 * testsuite/libgomp.c/loop-10.c: New test.
432 * libgomp.c/loop-3.c (main): Add lastprivate clause.
433 * libgomp.c++/loop-6.C (main): Likewise.
436 * testsuite/libgomp.c/debug-1.c: New test.
438 2008-06-19 Jakub Jelinek <jakub@redhat.com>
440 * testsuite/libgomp.c/nqueens-1.c: New test.
443 * testsuite/libgomp.c++/task-7.C: New function.
445 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
447 * configure: Regenerate.
449 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
451 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
452 mutex when HAVE_SYNC_BUILTINS isn't defined.
454 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
456 * libgomp.texi (omp_test_lock): Fix typo.
458 2008-06-12 Tobias Burnus <burnus@net-b.de>
460 * omp_lib.f90.in: Add "implicit none".
462 2008-06-12 Jakub Jelinek <jakub@redhat.com>
465 * testsuite/libgomp.c/reduction-5.c: New test.
467 2008-06-11 Jakub Jelinek <jakub@redhat.com>
469 * libgomp.h (struct gomp_task): Add in_tied_task field.
470 * task.c (gomp_init_task): Initialize it.
471 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
472 unconditionally. Don't call gomp_team_barrier_wake if
473 current task is implicit or if(0) from implicit and number of
474 running tasks is equal to nthreads - 1.
477 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
478 omp_get_team_size_8): Fix pastos.
481 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
482 * configure: Regenerated.
483 * config.h.in: Regenerated.
484 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
487 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
490 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
491 (GOMP_loop_ull_dynamic_start): Likewise.
492 (GOMP_loop_ull_guided_start): Likewise.
493 (GOMP_loop_ull_ordered_static_start): Likewise.
494 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
495 (GOMP_loop_ull_ordered_guided_start): Likewise.
497 2008-06-06 Jakub Jelinek <jakub@redhat.com>
498 Richard Henderson <rth@redhat.com>
499 Ulrich Drepper <drepper@redhat.com>
500 Jakob Blomer <jakob.blomer@ira.uka.de>
502 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
503 Substitute also OMP_*LOCK_25*.
504 * configure: Regenerated.
505 * config.h.in: Regenerated.
506 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
507 ptrlock.c and task.c.
508 * Makefile.in: Regenerated.
509 * testsuite/Makefile.in: Regenerated.
511 * loop_ull.c: New file.
512 * iter_ull.c: New file.
513 * libgomp.h: Include ptrlock.h.
514 (enum gomp_task_kind): New type.
515 (struct gomp_team): Add task_lock, task_queue, task_count,
516 task_running_count, single_count fields. Add
517 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
518 Remove work_share_lock, generation_mask,
519 oldest_live_gen, num_live_gen and init_work_shares fields, add
520 work work_share_list_alloc, work_share_list_free and work_share_chunk
521 fields. Change work_shares from pointer to pointers into an array.
522 Change ordered_release field into gomp_sem_t ** from flexible array
523 member. Add implicit_task and initial_work_shares fields.
524 Move close to the end of the struct.
525 (struct gomp_team_state): Add single_count, last_work_share,
526 active_level and level fields, remove work_share_generation.
527 (gomp_barrier_handle_tasks): New prototype.
528 (gomp_finish_task): New inline function.
529 (struct gomp_work_share): Move chunk_size, end, incr into
530 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
531 next_ll fields. Reshuffle fields. Add next_alloc,
532 next_ws, next_free and inline_ordered_team_ids fields, change
533 ordered_team_ids into pointer from flexible array member.
534 Add mode field. Put lock and next into a different cache line
535 from most of the write-once fields.
536 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
537 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
538 gomp_iter_ull_guided_next): New prototypes.
539 (gomp_new_icv): New prototype.
540 (struct gomp_thread): Add thread_pool and task fields.
541 (struct gomp_thread_pool): New type.
542 (gomp_new_team): New prototype.
543 (gomp_team_start): Change type of last argument.
544 (gomp_new_work_share): Removed.
545 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
546 (gomp_work_share_init_done): New static inline.
547 (gomp_throttled_spin_count_var, gomp_available_cpus,
548 gomp_managed_threads): New extern decls.
549 (gomp_init_task): New prototype.
550 (gomp_spin_count_var): New extern var decl.
551 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
552 or no alias support, or if not PIC.
553 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
554 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
555 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
556 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
557 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
558 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
559 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
560 gomp_test_nest_lock_25): New prototypes.
561 (omp_lock_symver, strong_alias): Define.
562 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
564 (gomp_end_task): New.
565 (struct gomp_task_icv, gomp_global_icv): New.
566 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
567 (struct gomp_task): New.
568 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
569 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
571 (gomp_schedule_type): Reorder enum to match
573 * team.c (struct gomp_thread_start_data): Add thread_pool and task
575 (gomp_thread_start): Add gomp_team_barrier_wait call.
576 For non-nested case remove clearing of docked thread thr fields.
577 Use pool fields instead of global gomp_* variables. Use
578 gomp_barrier_wait_last when needed. Initialize ts.active_level.
579 Create tasks for each member thread.
580 (free_team): Only destroy team barrier, task_lock here and free it.
581 (gomp_free_thread): Free last_team if non-NULL.
582 (gomp_team_end): Call gomp_team_barrier_wait instead of
583 gomp_barrier_wait. For nested case call one extra
584 gomp_barrier_wait. Move here some destruction from free_team.
585 Call free_team on pool->last_team if any, rather than freeing
586 current team. Destroy work_share_list_free_lock ifndef
588 (gomp_new_icv): New function.
589 (gomp_threads, gomp_threads_size, gomp_threads_used,
590 gomp_threads_dock): Removed.
591 (gomp_thread_destructor): New variable.
592 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
594 (gomp_team_start): Create new pool if current thread doesn't have
595 one. Use pool fields instead of global gomp_* variables.
596 Initialize thread_pool field for new threads. Clear single_count.
597 Change last argument from ws to team, don't create
598 new team, set ts.work_share to &team->work_shares[0] and clear
599 ts.last_work_share. Don't clear ts.work_share_generation.
600 If number of threads changed, adjust atomically gomp_managed_threads.
601 Use gomp_init_task instead of gomp_new_task,
602 set thr->task to the corresponding implicit_task array entry.
603 Create tasks for each member thread. Initialize ts.level.
604 (initialize_team): Call pthread_key_create on
605 gomp_thread_destructor.
606 (team_destructor): New function.
608 (gomp_new_team): New function.
609 (free_team): Free gomp_work_share blocks chained through next_alloc,
610 instead of freeing work_shares and destroying work_share_lock.
611 (gomp_team_end): Call gomp_fini_work_share. If number of threads
612 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
613 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
614 of gomp_barrier_wait.
615 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
616 instead of gomp_barrier_wait. Call gomp_work_share_init_done
617 if gomp_work_share_start returned true. Don't unlock ws->lock.
618 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
619 of gomp_barrier_wait.
620 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
621 gomp_work_share_init_done if gomp_work_share_start returned true.
622 Don't unlock ws->lock.
623 * work.c: Include stddef.h.
624 (free_work_share): Use work_share_list_free_lock instead
625 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
626 Call gomp_fini_work_share and then either free ws if orphaned, or
627 put it into work_share_list_free list of the current team.
628 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
630 (gomp_work_share_start, gomp_work_share_end,
631 gomp_work_share_end_nowait): Rewritten.
632 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
633 (openmp_version): Set to 200805.
634 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
635 omp_sched_guided, omp_sched_auto): New parameters.
636 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
637 omp_set_max_active_levels, omp_get_max_active_levels,
638 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
639 omp_get_active_level): New interfaces.
640 * omp_lib.h.in (openmp_version): Set to 200805.
641 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
642 omp_sched_guided, omp_sched_auto): New parameters.
643 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
644 omp_set_max_active_levels, omp_get_max_active_levels,
645 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
646 omp_get_active_level): New externals.
647 * loop.c: Include limits.h.
648 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
650 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
651 Likewise. Use gomp_icv.
652 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
654 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
655 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
656 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
657 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
658 don't unlock ws->lock, otherwise lock it.
659 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
660 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
661 (gomp_parallel_loop_start): Call gomp_new_team instead of
662 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
663 Adjust gomp_team_start caller. Pass 0 as second argument to
664 gomp_resolve_num_threads.
665 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
666 If adding ws->chunk_size nthreads + 1 times after end won't
667 overflow, set ws->mode to 1.
668 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
669 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
670 GOMP_loop_ull_ordered_static_start,
671 GOMP_loop_ull_ordered_dynamic_start,
672 GOMP_loop_ull_ordered_guided_start,
673 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
674 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
675 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
676 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
677 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
679 * libgomp.map: Export lock routines also @@OMP_2.0.
680 (GOMP_loop_ordered_dynamic_first,
681 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
682 GOMP_loop_ordered_static_first): Remove.
683 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
684 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
685 GOMP_loop_ull_ordered_dynamic_next,
686 GOMP_loop_ull_ordered_dynamic_start,
687 GOMP_loop_ull_ordered_guided_next,
688 GOMP_loop_ull_ordered_guided_start,
689 GOMP_loop_ull_ordered_runtime_next,
690 GOMP_loop_ull_ordered_runtime_start,
691 GOMP_loop_ull_ordered_static_next,
692 GOMP_loop_ull_ordered_static_start,
693 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
694 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
695 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
696 (omp_set_schedule, omp_get_schedule,
697 omp_get_thread_limit, omp_set_max_active_levels,
698 omp_get_max_active_levels, omp_get_level,
699 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
700 omp_set_schedule_, omp_set_schedule_8_,
701 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
702 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
703 omp_get_max_active_levels_, omp_get_level_,
704 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
705 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
706 New exports @@OMP_3.0.
707 * omp.h.in (omp_sched_t): New type.
708 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
709 omp_set_max_active_levels, omp_get_max_active_levels,
710 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
711 omp_get_active_level): New prototypes.
712 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
713 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
714 gomp_thread_limit_var, gomp_remaining_threads_count,
715 gomp_remaining_threads_lock): New variables.
716 (parse_spincount): New function.
717 (initialize_env): Call gomp_init_num_threads unconditionally.
718 Initialize gomp_available_cpus. Call parse_spincount,
719 initialize gomp_{,throttled_}spin_count_var
720 depending on presence and value of OMP_WAIT_POLICY and
721 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
722 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
723 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
724 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
725 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
726 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
727 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
728 (gomp_global_icv): New.
729 (parse_schedule): Use it. Parse "auto".
730 (omp_set_num_threads): Use gomp_icv.
731 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
733 (omp_get_max_threads): Move from parallel.c.
734 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
735 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
737 (parse_stacksize, parse_wait_policy): New functions.
738 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
739 both wrappers for compatibility and new locks.
740 (omp_set_schedule, omp_get_schedule,
741 omp_get_thread_limit, omp_set_max_active_levels,
742 omp_get_max_active_levels, omp_get_level,
743 omp_get_ancestor_thread_num, omp_get_team_size,
744 omp_get_active_level): New ialias_redirect.
745 (omp_set_schedule_, omp_set_schedule_8_,
746 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
747 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
748 omp_get_max_active_levels_, omp_get_level_,
749 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
750 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
752 * parallel.c: Include limits.h.
753 (gomp_resolve_num_threads): Add count argument. Rewritten.
754 (GOMP_parallel_start): Call gomp_new_team and pass that as last
755 argument to gomp_team_start. Pass 0 as second argument to
756 gomp_resolve_num_threads.
757 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
758 if gomp_thread_limit_var != ULONG_MAX.
759 (omp_in_parallel): Implement using ts.active_level.
760 (omp_get_max_threads): Move to env.c.
761 (omp_get_level, omp_get_ancestor_thread_num,
762 omp_get_team_size, omp_get_active_level): New functions,
764 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
765 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
766 gomp_iter_dynamic_next instead of the _locked variant and don't take
767 lock around it, otherwise acquire it before calling
768 gomp_iter_dynamic_next_locked.
769 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
770 gomp_iter_dynamic_next instead of the _locked variant and don't take
772 (GOMP_parallel_sections_start): Call gomp_new_team instead of
773 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
774 Adjust gomp_team_start caller. Pass count as second argument to
775 gomp_resolve_num_threads, don't adjust num_threads after the call.
777 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
778 ws->chunk_size by incr.
779 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
781 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
783 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
784 (omp_check_defines): Check even the compat defines.
785 * config/linux/ptrlock.c: New file.
786 * config/linux/ptrlock.h: New file.
787 * config/linux/wait.h: New file.
788 * config/posix/ptrlock.c: New file.
789 * config/posix/ptrlock.h: New file.
790 * config/linux/bar.h (gomp_team_barrier_wait,
791 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
792 (gomp_team_barrier_set_task_pending,
793 gomp_team_barrier_clear_task_pending,
794 gomp_team_barrier_set_waiting_for_tasks,
795 gomp_team_barrier_waiting_for_tasks,
796 gomp_team_barrier_done): New inlines.
797 (gomp_barrier_t): Rewritten.
798 (gomp_barrier_state_t): New typedef.
799 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
800 gomp_barrier_wait_start): Rewritten.
801 (gomp_barrier_wait_end): Change second argument to
802 gomp_barrier_state_t.
803 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
805 * config/linux/bar.c: Include wait.h instead of libgomp.h and
807 (gomp_barrier_wait_end): Rewritten.
808 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
809 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
810 * config/posix/bar.h (gomp_barrier_t): Add generation field.
811 (gomp_barrier_state_t): New typedef.
812 (gomp_team_barrier_wait,
813 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
814 (gomp_barrier_wait_start): Or all but low 2 bits from generation
815 into the return value. Return gomp_barrier_state_t.
816 (gomp_team_barrier_set_task_pending,
817 gomp_team_barrier_clear_task_pending,
818 gomp_team_barrier_set_waiting_for_tasks,
819 gomp_team_barrier_waiting_for_tasks,
820 gomp_team_barrier_done): New inlines.
821 (gomp_barrier_wait_end): Change second argument to
822 gomp_barrier_state_t.
823 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
825 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
826 (gomp_barrier_wait_end): Change second argument to
827 gomp_barrier_state_t.
828 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
829 gomp_team_barrier_wake): New functions.
830 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
832 (gomp_futex_wake, gomp_futex_wait): New variables.
833 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
834 * config/linux/lock.c: Rewrite to make locks task owned,
835 for backwards compatibility provide the old entrypoints
836 if symbol versioning. Include wait.h instead of libgomp.h and
838 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
839 * config/posix95/lock.c: Rewrite to make locks task owned,
840 for backwards compatibility provide the old entrypoints
841 if symbol versioning.
842 * config/posix/lock.c: Rewrite to make locks task owned,
843 for backwards compatibility provide the old entrypoints
844 if symbol versioning.
845 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
846 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
847 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
848 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
849 (sys_futex0): Return error code.
850 (futex_wake, futex_wait): If ENOSYS was returned, clear
851 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
852 (cpu_relax, atomic_write_barrier): New static inlines.
853 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
854 (futex_wake, futex_wait): If ENOSYS was returned, clear
855 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
856 (cpu_relax, atomic_write_barrier): New static inlines.
857 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
858 (sys_futex0): Return error code.
859 (futex_wake, futex_wait): If ENOSYS was returned, clear
860 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
861 (cpu_relax, atomic_write_barrier): New static inlines.
862 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
863 (sys_futex0): Return error code.
864 (futex_wake, futex_wait): If ENOSYS was returned, clear
865 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
866 (cpu_relax, atomic_write_barrier): New static inlines.
867 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
868 (sys_futex0): Return error code.
869 (futex_wake, futex_wait): If ENOSYS was returned, clear
870 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
871 (cpu_relax, atomic_write_barrier): New static inlines.
872 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
873 (sys_futex0): Return error code.
874 (futex_wake, futex_wait): If ENOSYS was returned, clear
875 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
876 (cpu_relax, atomic_write_barrier): New static inlines.
877 * config/linux/sem.c: Include wait.h instead of libgomp.h and
879 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
880 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
881 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
883 (omp_nest_lock_t): Change owner into void *, add lock field.
884 * config/posix95/omp-lock.h: Include semaphore.h.
885 (omp_lock_25_t, omp_nest_lock_25_t): New types.
886 (omp_lock_t): Use sem_t instead of mutex if semaphores
888 (omp_nest_lock_t): Likewise. Change owner to void *.
889 * config/posix/omp-lock.h: Include semaphore.h.
890 (omp_lock_25_t, omp_nest_lock_25_t): New types.
891 (omp_lock_t): Use sem_t instead of mutex if semaphores
893 (omp_nest_lock_t): Likewise. Add owner field.
895 2008-06-06 Jakub Jelinek <jakub@redhat.com>
897 * testsuite/libgomp.c/collapse-1.c: New test.
898 * testsuite/libgomp.c/collapse-2.c: New test.
899 * testsuite/libgomp.c/collapse-3.c: New test.
900 * testsuite/libgomp.c/icv-1.c: New test.
901 * testsuite/libgomp.c/icv-2.c: New test.
902 * testsuite/libgomp.c/lib-2.c: New test.
903 * testsuite/libgomp.c/lock-1.c: New test.
904 * testsuite/libgomp.c/lock-2.c: New test.
905 * testsuite/libgomp.c/lock-3.c: New test.
906 * testsuite/libgomp.c/loop-4.c: New test.
907 * testsuite/libgomp.c/loop-5.c: New test.
908 * testsuite/libgomp.c/loop-6.c: New test.
909 * testsuite/libgomp.c/loop-7.c: New test.
910 * testsuite/libgomp.c/loop-8.c: New test.
911 * testsuite/libgomp.c/loop-9.c: New test.
912 * testsuite/libgomp.c/nested-3.c: New test.
913 * testsuite/libgomp.c/nestedfn-6.c: New test.
914 * testsuite/libgomp.c/sort-1.c: New test.
915 * testsuite/libgomp.c/task-1.c: New test.
916 * testsuite/libgomp.c/task-2.c: New test.
917 * testsuite/libgomp.c/task-3.c: New test.
918 * testsuite/libgomp.c/task-4.c: New test.
919 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
920 to C++ testsuite default compiler options.
921 * testsuite/libgomp.c++/collapse-1.C: New test.
922 * testsuite/libgomp.c++/collapse-2.C: New test.
923 * testsuite/libgomp.c++/ctor-10.C: New test.
924 * testsuite/libgomp.c++/for-1.C: New test.
925 * testsuite/libgomp.c++/for-2.C: New test.
926 * testsuite/libgomp.c++/for-3.C: New test.
927 * testsuite/libgomp.c++/for-4.C: New test.
928 * testsuite/libgomp.c++/for-5.C: New test.
929 * testsuite/libgomp.c++/loop-8.C: New test.
930 * testsuite/libgomp.c++/loop-9.C: New test.
931 * testsuite/libgomp.c++/loop-10.C: New test.
932 * testsuite/libgomp.c++/task-1.C: New test.
933 * testsuite/libgomp.c++/task-2.C: New test.
934 * testsuite/libgomp.c++/task-3.C: New test.
935 * testsuite/libgomp.c++/task-4.C: New test.
936 * testsuite/libgomp.c++/task-5.C: New test.
937 * testsuite/libgomp.c++/task-6.C: New test.
938 * testsuite/libgomp.fortran/allocatable1.f90: New test.
939 * testsuite/libgomp.fortran/allocatable2.f90: New test.
940 * testsuite/libgomp.fortran/allocatable3.f90: New test.
941 * testsuite/libgomp.fortran/allocatable4.f90: New test.
942 * testsuite/libgomp.fortran/collapse1.f90: New test.
943 * testsuite/libgomp.fortran/collapse2.f90: New test.
944 * testsuite/libgomp.fortran/collapse3.f90: New test.
945 * testsuite/libgomp.fortran/collapse4.f90: New test.
946 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
947 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
948 * testsuite/libgomp.fortran/lib4.f90: New test.
949 * testsuite/libgomp.fortran/lock-1.f90: New test.
950 * testsuite/libgomp.fortran/lock-2.f90: New test.
951 * testsuite/libgomp.fortran/nested1.f90: New test.
952 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
953 * testsuite/libgomp.fortran/strassen.f90: New test.
954 * testsuite/libgomp.fortran/tabs1.f90: New test.
955 * testsuite/libgomp.fortran/tabs2.f: New test.
956 * testsuite/libgomp.fortran/task1.f90: New test.
957 * testsuite/libgomp.fortran/task2.f90: New test.
958 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
959 * testsuite/libgomp.fortran/vla5.f90: Likewise.
960 * testsuite/libgomp.c/pr26943-2.c: Likewise.
961 * testsuite/libgomp.c/pr26943-3.c: Likewise.
962 * testsuite/libgomp.c/pr26943-4.c: Likewise.
964 2008-05-23 Jakub Jelinek <jakub@redhat.com>
967 * testsuite/libgomp.c++/ctor-11.C: New test.
968 * testsuite/libgomp.c++/ctor-12.C: New test.
970 2008-05-15 Janis Johnson <janis187@us.ibm.com>
972 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
974 2008-05-07 Jakub Jelinek <jakub@redhat.com>
977 * testsuite/libgomp.c/atomic-5.c: New test.
978 * testsuite/libgomp.c/atomic-6.c: New test.
979 * testsuite/libgomp.c/autopar-1.c: New test.
981 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
983 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
984 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
985 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
986 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
987 * configure: Regenerate.
988 * Makefile.in, testsuite/Makefile.in: Likewise.
990 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
993 * aclocal.m4: Regenerate.
994 * configure: Regenerate.
996 2008-03-18 Jakub Jelinek <jakub@redhat.com>
999 * testsuite/libgomp.c/atomic-4.c: New test.
1002 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1003 (gomp_iter_guided_next): Likewise.
1004 * testsuite/libgomp.c/pr35625.c: New test.
1006 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1008 * aclocal.m4: Regenerate.
1009 * configure: Likewise.
1010 * Makefile.in: Likewise.
1011 * testsuite/Makefile.in: Likewise.
1013 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1016 * testsuite/libgomp.c++/pr35185.C: New test.
1018 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1021 * testsuite/libgomp.c/pr35549.c: New test.
1023 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1025 * testsuite/libgomp.c/atomic-3.c: New test.
1027 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1030 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1033 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1036 * configure.ac: Add ACX_HEADER_STRING.
1037 * env.c: Include strings.h.
1038 * aclocal.m4: Regenerate.
1039 * config.h.in: Regenerate.
1040 * configure: Regenerate.
1041 * Makefile.in: Regenerate.
1042 * testsuite/Makefile.in: Regenerate.
1044 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1047 * testsuite/libgomp.c/pr35196.c: New test.
1050 * testsuite/libgomp.fortran/pr35130.f90: New test.
1051 * testsuite/libgomp.c/pr35130.c: New test.
1053 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1056 * testsuite/libgomp.c/pr33880.c: New test.
1057 * testsuite/libgomp.fortran/pr33880.f90: New test.
1059 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1061 * configure: Regenerate.
1063 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1065 * configure.ac: Move futex checking into ../config/futex.m4.
1066 * configure: Rebuilt.
1067 * aclocal.m4: Rebuilt.
1068 * Makefile.in: Rebuilt.
1070 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1071 2007-10-15 ../config/tls.m4 change.
1073 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1076 * testsuite/libgomp.c/pr34513.c: New test.
1077 * testsuite/libgomp.c++/pr34513.C: New test.
1079 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1082 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1084 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1086 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1088 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1090 * testsuite/libgomp.c/private-1.c: New test.
1092 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1093 Paolo Bonzini <bonzini@gnu.org>
1095 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1096 instead of 'VPATH ='.
1097 * Makefile.in: Regenerate.
1099 2007-11-23 Matthias Klose <doko@ubuntu.com>
1101 * configure.ac: Adjust makeinfo version check.
1102 * configure: Regenerate.
1104 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1107 * testsuite/libgomp.fortran/pr34020.f90: New test.
1109 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1112 * testsuite/libgomp.c++/atomic-1.C: New test.
1114 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1117 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1118 Make x and y integers rather than (implicit) reals. Add private (j)
1119 clause to the last omp parallel.
1121 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1123 * configure: Regenerate following changes to ../config/tls.m4.
1125 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1127 * testsuite/libgomp.fortran/stack.f90: New test.
1129 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1131 * config/mingw32/proc.c: New file.
1133 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1135 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1136 (main): Use __get_cpuid to get i386 target fetaures.
1137 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1138 (main): Use __get_cpuid to get x86_64 target fetaures.
1140 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1143 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1144 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1146 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1149 * testsuite/libgomp.fortran/pr32550.f90: New test.
1150 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1152 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1154 * aclocal.m4: Regenerated.
1156 2007-07-05 Tobias Burnus <burnus@net-b.de>
1159 * testsuite/libgomp.fortran/pr32359.f90: New.
1161 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1164 * sections.c (GOMP_parallel_sections_start): Only decrease
1165 number of threads to COUNT if dyn_var is true.
1166 * testsuite/libgomp.c/pr32468.c: New test.
1168 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1171 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1173 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1176 * testsuite/libgomp.c/pr32362-1.c: New test.
1177 * testsuite/libgomp.c/pr32362-2.c: New test.
1178 * testsuite/libgomp.c/pr32362-3.c: New test.
1180 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1182 * team.c (gomp_team_start): Fix setting up thread_attr
1185 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1187 * configure: Regenerate.
1189 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1191 * Makefile.in: Regenerate.
1192 * configure: Regenerate.
1193 * aclocal.m4: Regenerate.
1194 * testsuite/Makefile.in: Regenerate.
1196 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1198 * config/linux/proc.c: New file.
1201 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1203 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1205 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1207 2007-04-16 Matthias Klose <doko@debian.org>
1209 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1210 flags if not building with -m64.
1211 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1212 flag for i?86-*-* targets, if current target matches -m64.
1214 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1216 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1217 * Makefile.in: Regenerate.
1219 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1222 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1224 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1226 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1228 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1230 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1231 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1232 (parse_affinity): New function.
1233 (initialize_env): Call it and gomp_init_affinity.
1234 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1235 create new pthread_attr_t and call gomp_init_thread_affinity
1236 on it for each thread before passing the attribute to pthread_create.
1237 * config/linux/affinity.c: New file.
1238 * config/posix/affinity.c: New file.
1239 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1240 * configure: Rebuilt.
1241 * config.h.in: Rebuilt.
1242 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1243 * Makefile.in: Rebuilt.
1245 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1247 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1249 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1250 and use it if found.
1252 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1254 * testsuite/config/default.exp: New file.
1255 * testsuite/lib/libgomp.exp: New file.
1256 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1257 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1258 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1259 (libgomp_load): Remove.
1260 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1261 always_ld_library_path, not ld_library_path. Set additional_flags
1262 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1263 (target_compile): Do not call libgomp_init. Append lang_library_path
1264 and lang_link_flags to options.
1265 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1266 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1268 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1269 always_ld_library_path. Set LD_LIBRARY_PATH here.
1270 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1271 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1272 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1274 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1275 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1276 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1277 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1278 * testsuite/libgomp.c/atomic-10.c: Ditto.
1280 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1282 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1283 dg-final cleanup-modules line.
1284 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1285 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1286 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1287 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1288 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1289 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1290 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1292 2007-03-18 Andreas Schwab <schwab@suse.de>
1294 * acinclude.m4: Adjust regular expression for ld version
1296 * configure: Regenerate.
1298 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1300 * Makefile.am: Add install-pdf target as copied from
1301 automake v1.10 rules.
1302 * Makefile.in: Regenerate
1304 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1307 * configure: Regenerate.
1310 * testsuite/libgomp.c++/pr30703.C: New test.
1312 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1315 2006-07-05 Eric Christopher <echristo@apple.com>
1316 * configure.ac: Depend addition of -pthread on host OS.
1317 * configure: Regenerate.
1319 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1321 * libgomp.texi: Fix spacing after abbreviations.
1323 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1326 * configure.ac: Add check for makeinfo
1327 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1328 if an appropiate version of makeinfo is found.
1329 * aclocal.m4: Regenerated.
1330 * configure: Regenerated.
1331 * Makefile.in: Regenerated.
1332 * testsuite/Makefile.in: Regenerated.
1334 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1337 * libgomp.texi: More about implementation-dependent settings.
1339 2007-01-26 Tobias Burnus <burnus@net-b.de>
1341 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1343 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1346 * testsuite/libgomp.c/pr30494.c: New test.
1348 2007-01-15 Tom Tromey <tromey@redhat.com>
1350 * configure: Rebuilt.
1351 * configure.ac: Fixed comment.
1353 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1355 * libgomp.texi: Document implementation specific default values of
1356 environment variables.
1358 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1361 * libgomp.texi: New file.
1362 * configure.ac: Add --enable-generated-files-in-srcdir option.
1363 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1365 * Makefile.in: Regenerated.
1366 * config.h.in: Regenerated.
1367 * testsuite/Makefile.in: Regenerated.
1370 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1373 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1375 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1377 * configure: Regenerate.
1379 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1382 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1383 start if there shouldn't be any loop iterations.
1384 (gomp_loop_ordered_static_start): Remove start == end test.
1385 * testsuite/libgomp.c/pr29947-1.c: New test.
1386 * testsuite/libgomp.c/pr29947-2.c: New test.
1388 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1390 * configure.tgt: Force initial-exec TLS model on Linux only.
1392 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1394 * configure: Regenerated.
1396 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1398 * env.c (parse_schedule): Reject out of range values.
1399 (parse_unsigned_long): Reject out of range, negative or zero values.
1401 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1404 * testsuite/libgomp.fortran/pr29629.f90: New test.
1406 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1409 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1410 * config/posix95: New directory.
1411 * config/posix95/omp-lock.h: New file.
1412 * config/posix95/lock.c: Likewise.
1414 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1416 * aclocal.m4: Regenerate.
1417 * configure: Regenerate.
1419 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1421 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1424 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1426 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1428 * configure: Regenerate.
1429 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1431 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1435 * testsuite/libgomp.c/nestedfn-4.c: New test.
1436 * testsuite/libgomp.c/nestedfn-5.c: New test.
1437 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1440 * testsuite/libgomp.fortran/condinc1.f: New test.
1441 * testsuite/libgomp.fortran/condinc2.f: New test.
1442 * testsuite/libgomp.fortran/condinc3.f90: New test.
1443 * testsuite/libgomp.fortran/condinc4.f90: New test.
1444 * testsuite/libgomp.fortran/condinc1.inc: New file.
1446 2006-09-18 Tom Tromey <tromey@redhat.com>
1448 * configure: Rebuilt.
1450 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1453 PR preprocessor/14634
1454 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1456 * configure: Regenerate.
1458 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1460 * testsuite/libgomp.fortran/reduction3.f90: Change
1461 -2147483648 to -huge(i)-1 to avoid overflow.
1462 * testsuite/libgomp.fortran/reduction4.f90: Change
1463 Z'ffffffff' to not(0) to avoid overflow.
1465 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1468 * Makefile.am (libsubincludedir): New.
1469 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1470 * Makefile.in: Regenerate.
1472 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1475 * env.c: Include ctype.h.
1476 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1477 leading and/or trailing whitespace and compare strings case
1480 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1483 * testsuite/libgomp.fortran/pr28390.f: New test.
1485 2006-07-05 Eric Christopher <echristo@apple.com>
1487 * configure.ac: Depend addition of -pthread on host OS.
1488 * configure: Regenerate.
1490 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1492 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1493 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1496 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1500 * configure.ac: If neither --enable-linux-futex nor
1501 --disable-linux-futex is passed, determine the default by checking
1502 for compiling and/or running against NPTL. With --enable-linux-futex,
1503 check if SYS_gettid and SYS_futex are defined.
1504 * configure: Rebuilt.
1506 2006-06-14 Richard Henderson <rth@redhat.com>
1509 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1510 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1512 2006-06-09 Richard Henderson <rth@redhat.com>
1514 * env.c (gomp_nthreads_var): Change to unsigned long.
1515 (gomp_run_sched_chunk): Likewise.
1516 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1517 (initialize_env): Initialize gomp_thread_attr.
1518 * libgomp.h (gomp_nthreads_var): Update decl.
1519 (gomp_run_sched_chunk): Likewise.
1520 (gomp_thread_attr): Declare.
1521 * team.c (gomp_thread_attr): Export.
1522 (initialize_team): Don't initialize it.
1524 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1527 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1528 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1530 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1532 * config/mingw32/time.c: New file.
1533 * configure.tgt: Use it.
1535 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1537 * Makefile.am: Add install-html target. Add install-html to .PHONY
1538 * Makefile.in: Regenerate.
1540 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1543 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1544 * testsuite/libgomp.c/critical-1.c: Likewise.
1545 * testsuite/libgomp.c/loop-1.c: Likewise.
1546 * testsuite/libgomp.c/loop-2.c: Likewise.
1547 * testsuite/libgomp.c/single-1.c: Likewise.
1548 * testsuite/libgomp.c/ordered-1.c: Likewise.
1549 * testsuite/libgomp.c/ordered-2.c: Likewise.
1551 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1554 * libgomp.fortran/pr27416-1.f90: New test.
1556 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1559 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1560 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1562 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1565 * testsuite/libgomp.c/pr26943-1.c: New test.
1566 * testsuite/libgomp.c/pr26943-2.c: New test.
1567 * testsuite/libgomp.c/pr26943-3.c: New test.
1568 * testsuite/libgomp.c/pr26943-4.c: New test.
1569 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1570 * testsuite/libgomp.c++/pr26943.C: New test.
1572 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1575 * testsuite/libgomp.c++/pr27337.C: New test.
1577 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1580 * testsuite/libgomp.c/pr26171.c: New test.
1582 2006-04-25 Richard Henderson <rth@redhat.com>
1585 * configure.ac: Use GCC_CHECK_TLS.
1586 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1587 * Makefile.in, aclocal.m4, configure: Regenerate.
1589 2006-04-10 Matthias Klose <doko@debian.org>
1591 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1592 directory names containing underscores.
1594 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1597 * testsuite/libgomp.c++/pr26691.C: New test.
1599 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1601 * testsuite/libgomp.fortran/retval2.f90: New test.
1603 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1605 * testsuite/libgomp.c++: New directory.
1607 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1609 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1610 * config/posix/sem.c: Implement the above.
1612 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1614 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1615 define HAVE_BROKEN_POSIX_SEMAPHORES.
1616 * configure: Rebuilt.
1617 * config.h.in: Rebuilt.
1619 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1622 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1623 for the other pthread check.
1624 * configure: Regenerate.
1625 * config.h.in: Regenerate.
1627 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1631 * Makefile.am (fincludedir): New variable.
1632 (nodist_include_HEADERS): Remove Fortran files.
1633 (nodist_finclude_HEADERS): New variable.
1634 * Makefile.in: Regenerated.
1636 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1638 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1639 Remove tests for returning assumed character length arrays.
1641 2006-02-12 Roger Sayle <roger@eyesopen.com>
1642 John David Anglin <dave@hiauly1.hia.nrc.ca>
1645 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1647 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1649 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1651 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1653 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1654 part of LD_LIBRARY_PATH manually.
1656 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1659 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1662 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1665 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1666 * configure.ac (PERL): Don't set.
1667 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1668 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1669 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1670 * omp.h.in: Wrap the new configure substitutions with @ characters.
1671 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1672 * aclocal.m4, configure, Makefile.in: Regenerate.
1673 * mkomp_h.pl: Delete.
1675 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1678 * configure.ac: Use GCC_HEADER_STDINT.
1679 * libgomp.h: Include gstdint.h.
1680 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1681 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1683 2006-01-24 Richard Henderson <rth@redhat.com>
1686 * configure.ac: Add AM_MAINTAINER_MODE.
1687 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1689 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1691 * Makefile.in: Regenerate.
1692 * testsuite/Makefile.in: Regenerate.
1693 * aclocal.m4: Regenerate.
1695 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1697 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1699 * configure.ac: Add check for loadavg.h.
1700 (link_gomp): Adjust comment.
1701 * configure: Regenerate.
1702 * config.h.in: Regenerate.
1704 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1707 * configure.ac: Remove check for alloca.h.
1708 * configure: Regenerate.
1709 * config.h.in: Regenerate.
1710 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1711 * team.c: Remove use of alloca.h.
1712 Call gomp_alloca instead of alloca.
1714 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1717 * team.c: Add include of alloca.h.
1718 * configure.ac: Add check for alloca.h.
1719 * configure: Regenerate.
1720 * config.h.in: Regenerate.
1722 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1725 * testsuite/libgomp.fortran/pr25219.f90: New test.
1727 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1729 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1730 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1731 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1732 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1733 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1734 testsuite/libgomp.fortran/threadprivate1.f90,
1735 testsuite/libgomp.fortran/threadprivate2.f90,
1736 testsuite/libgomp.fortran/threadprivate3.f90,
1737 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1738 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1739 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1740 effective-target to TLS runtime.
1742 * testsuite/libgomp.fortran/pr25162.f: Require
1743 effective-target TLS runtime.
1745 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1747 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1748 * testsuite/libgomp.c/nestedfn-3.c: New test.
1750 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1753 * testsuite/libgomp.fortran/pr25162.f: New test.
1755 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1757 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1758 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1760 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1762 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1763 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1764 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1765 single.c, team.c, work.c, config/linux/alpha/futex.h,
1766 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1767 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1768 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1769 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1770 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1771 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1772 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1775 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1777 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1778 to nodist_noinst_HEADERS.
1779 * Makefile.in: Rebuilt.
1781 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1782 add integer count field.
1783 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1784 omp_nest_lock_t type change.
1785 (omp_init_nest_lock): Likewise. Initialize count to 0.
1786 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1788 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1790 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1791 Increment count if successful and return the new nesting level.
1792 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1793 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1794 * testsuite/libgomp.c/lib-1.c: New test.
1795 * testsuite/libgomp.fortran/lib1.f90: New test.
1796 * testsuite/libgomp.fortran/lib2.f: New test.
1797 * testsuite/libgomp.fortran/lib3.f: New test.
1799 2005-11-17 Richard Henderson <rth@redhat.com>
1802 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1803 * configure.ac (link_gomp): New. Substitute it.
1804 (AC_CONFIG_FILES): Add libgomp.spec.
1805 * libgomp.spec.in: New file.
1806 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1807 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1809 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1811 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1812 reduction(-:var) behaving the same as reduction(+:var).
1813 * testsuite/libgomp.c/reduction-4.c: New test.
1815 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1817 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1818 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1819 testsuite/libgomp.c/copyin-3.c,
1820 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1821 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1822 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1823 testsuite/libgomp.c++/pr24455.C,
1824 testsuite/libgomp.fortran/threadprivate1.f90,
1825 testsuite/libgomp.fortran/threadprivate2.f90,
1826 testsuite/libgomp.fortran/threadprivate3.f90,
1827 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1828 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1829 testsuite/libgomp.fortran/omp_parse3.f90: Require
1830 effective-target TLS.
1832 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1836 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1839 * team.c (initialize_team): Pass NULL rather than free as
1840 pthread_key_create destructor. Initialize thread specific data
1841 pointer in initial thread to a static local variable rather than
1844 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1846 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1847 its location to ld_library_path.
1849 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1851 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1853 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1855 * testsuite/libgomp.c: Rename from libgomp.dg.
1857 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1859 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1860 threadprivate variable 'i'.
1862 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1864 * config/linux/s390/futex.h: New file.
1865 * configure.tgt: Use it.
1867 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1868 before the parallel.
1870 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1873 * testsuite/libgomp.c++/master-1.C: New test.
1875 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1877 * testsuite/libgomp.dg/copyin-3.c: New test.
1879 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1881 * testsuite/libgomp.fortran/retval1.f90: New test.
1882 * testsuite/libgomp.fortran/vla7.f90: New test.
1884 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1886 * testsuite/libgomp.fortran/vla2.f90: New test.
1887 * testsuite/libgomp.fortran/vla3.f90: New test.
1888 * testsuite/libgomp.fortran/vla4.f90: New test.
1889 * testsuite/libgomp.fortran/vla5.f90: New test.
1890 * testsuite/libgomp.fortran/vla6.f90: New test.
1892 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1894 * config/linux/sparc/futex.h: New file.
1895 * configure.tgt: Use it.
1896 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1898 * critical.c: Include stdlib.h.
1899 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1900 ignoring return value.
1901 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1902 LIBGOMP_CHECK_SYNC_BUILTINS check.
1903 * configure: Rebuilt.
1905 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1907 * testsuite/libgomp.fortran/vla1.f90: New test.
1909 2005-10-31 Richard Henderson <rth@redhat.com>
1911 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1912 setting 's' in different threads.
1914 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1916 * libgomp.h (attribute_hidden, ialias): Define.
1917 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1918 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1919 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1920 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1921 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1922 omp_test_lock, omp_test_nest_lock): Likewise.
1923 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1924 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1925 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1926 omp_test_lock, omp_test_nest_lock): Likewise.
1927 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1928 omp_get_dynamic, omp_get_nested): Likewise.
1929 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1930 omp_get_thread_num, omp_in_parallel): Likewise.
1931 * fortran.c (ialias_redirect): Define.
1932 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1933 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1934 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1935 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1936 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1937 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1938 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1939 omp_get_wtime): Add ialias_redirect.
1941 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1943 * fortran.c: Include stdlib.h.
1945 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1947 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1948 * Makefile.in: Regenerated.
1950 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1952 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1953 * libgomp_f.h.in (omp_check_defines): New function.
1954 * env.c: Include libgomp_f.h.
1955 (initialize_env): Call omp_check_defines.
1957 * testsuite/libgomp.dg/copyin-2.c: New test.
1958 * testsuite/libgomp.c++/copyin-2.C: New test.
1959 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1961 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1962 * testsuite/libgomp.fortran/sharing2.f90: New test.
1964 * testsuite/libgomp.dg/copyin-1.c: New test.
1965 * testsuite/libgomp.c++/copyin-1.C: New test.
1967 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1969 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1971 * testsuite/libgomp.fortran/workshare1.f90: New test.
1973 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1975 * libgomp.fortran/sharing1.f90: New test.
1977 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1980 * testsuite/libgomp.c++/loop-7.C: New test.
1982 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1984 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1985 * testsuite/libgomp.fortran/reduction6.f90: New test.
1986 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1988 2005-10-23 Richard Henderson <rth@redhat.com>
1990 * testsuite/libgomp.c++/ctor-1.C: New.
1991 * testsuite/libgomp.c++/ctor-2.C: New.
1992 * testsuite/libgomp.c++/ctor-3.C: New.
1993 * testsuite/libgomp.c++/ctor-4.C: New.
1994 * testsuite/libgomp.c++/ctor-5.C: New.
1995 * testsuite/libgomp.c++/ctor-6.C: New.
1996 * testsuite/libgomp.c++/ctor-7.C: New.
1997 * testsuite/libgomp.c++/ctor-8.C: New.
1998 * testsuite/libgomp.c++/ctor-9.C: New.
2000 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2003 * testsuite/libgomp.c++/pr24455-1.C: New test.
2004 * testsuite/libgomp.c++/pr24455.C: New test.
2005 * testsuite/libgomp.dg/pr24455-1.c: New test.
2006 * testsuite/libgomp.dg/pr24455.c: New test.
2008 2005-10-20 Richard Henderson <rth@redhat.com>
2010 * testsuite/libgomp.c++/loop-6.C: New.
2011 * testsuite/libgomp.dg/loop-3.c: New.
2013 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2015 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2017 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2020 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2022 * testsuite/libgomp.fortran/jacobi.f: New test.
2024 2005-10-19 Richard Henderson <rth@redhat.com>
2026 * configure.tgt (i?86-linux): Default to with_arch instead of
2027 CFLAGS. Add -mtune to match target_cpu.
2028 (x86_64-linux): Tune to i686.
2030 * fortran.c (omp_test_nest_lock_): Fix typo.
2032 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2034 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2035 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2036 * testsuite/libgomp.dg/ordered-3.c: New test.
2038 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2039 Remove volatile keyword.
2041 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2042 in COMMON block to avoid warnings on 64-bit targets.
2044 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2046 * testsuite/libgomp.dg/shared-3.c: New test.
2048 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2050 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2051 * testsuite/libgomp.fortran/reduction5.f90: New test.
2053 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2055 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2057 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2058 flush loop now that __sync_synchronize has proper memory barrier.
2059 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2060 Add -ffixed-form to dg-options.
2062 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2064 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2065 from subdirectories.
2066 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2067 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2068 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2069 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2070 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2071 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2072 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2073 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2074 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2075 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2076 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2077 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2078 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2079 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2080 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2081 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2082 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2083 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2084 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2085 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2086 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2087 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2088 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2089 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2090 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2092 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2094 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2095 lang_library_path exists. Use find instead of glob to gather tests.
2096 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2098 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2100 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2101 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2102 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2103 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2104 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2105 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2106 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2107 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2108 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2109 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2110 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2111 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2112 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2114 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2116 * testsuite/libgomp.dg/vla-1.c: New test.
2118 * testsuite/libgomp.fortran/reference2.f90: New test.
2120 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2121 declaration of omp_get_thread_num.
2122 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2125 * testsuite/libgomp.fortran/reduction1.f90: New test.
2126 * testsuite/libgomp.fortran/reduction2.f90: New test.
2127 * testsuite/libgomp.fortran/reduction3.f90: New test.
2128 * testsuite/libgomp.fortran/reduction4.f90: New test.
2130 2005-10-13 Richard Henderson <rth@redhat.com>
2132 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2133 * Makefile.in: Regenerate.
2134 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2135 * libgomp.h: Include bar.h.
2136 (struct gomp_barrier): Remove.
2137 (struct gomp_team): Add barrier. Replace master_barrier with
2138 master_release. Replace threads with ordered_release.
2139 (struct gomp_thread): Replace barrier with release.
2140 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2141 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2142 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2143 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2144 (GOMP_single_copy_end): Likewise.
2145 * team.c (gomp_threads_dock): New.
2146 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2147 (gomp_thread_start): Use gomp_barrier_wait.
2148 (new_team, free_team): Update for gomp_team changes.
2149 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2150 (gomp_team_end): Use gomp_barrier_wait.
2151 (initialize_team): Update for gomp_thread changes.
2152 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2153 (gomp_work_share_end_nowait): Use atomic ops when available.
2154 * config/linux/bar.c, config/linux/bar.h: New files.
2155 * config/posix/bar.c, config/posix/bar.h: New files.
2157 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2159 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2160 * testsuite/libgomp.dg/single-2.c: New test.
2162 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2163 lang_link_flags): Unset, so that they aren't inherited from previously
2166 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2168 2005-10-12 Richard Henderson <rth@redhat.com>
2170 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2171 (libgomp_init): Use lang_test_file, lang_library_path, and
2172 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2174 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2175 (lang_test_file, lang_link_flags): New.
2176 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2178 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2179 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2180 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2181 testsuite/libgomp.c++/parallel-1.C,
2182 testsuite/libgomp.c++/reduction-1.C,
2183 testsuite/libgomp.c++/reduction-2.C,
2184 testsuite/libgomp.c++/reduction-3.C,
2185 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2186 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2187 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2188 New files, largely cribbed from the C testsuite.
2190 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2192 * testsuite/libgomp.fortran/character1.f90: New test.
2193 * testsuite/libgomp.fortran/character2.f90: New test.
2195 * testsuite/libgomp.dg/nested-1.c: New test.
2196 * testsuite/libgomp.dg/nested-2.c: New test.
2197 * testsuite/libgomp.fortran/do1.f90: New test.
2198 * testsuite/libgomp.fortran/do2.f90: New test.
2200 * testsuite/libgomp.fortran/reference1.f90: New test.
2202 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2204 * testsuite/libgomp.dg/reduction-1.c: New test.
2205 * testsuite/libgomp.dg/reduction-2.c: New test.
2206 * testsuite/libgomp.dg/reduction-3.c: New test.
2208 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2210 * testsuite/libgomp.dg/atomic-1.c: New test.
2211 * testsuite/libgomp.dg/atomic-2.c: New test.
2213 2005-10-09 Richard Henderson <rth@redhat.com>
2215 * critical.c (atomic_lock): New.
2216 (initialize_critical): Initialize it.
2217 (GOMP_atomic_start, GOMP_atomic_end): New.
2218 * libgomp.map: Export them.
2219 * libgomp_g.h: Declare them.
2221 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2223 2005-10-02 Richard Henderson <rth@redhat.com>
2225 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2226 to XCFLAGS instead of CFLAGS.
2228 2005-09-30 Richard Henderson <rth@redhat.com>
2230 * configure.ac: Determine whether -pthread or -lpthread is needed.
2231 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2232 * Makefine.in, configure: Rebuild.
2234 2005-09-28 Richard Henderson <rth@redhat.com>
2236 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2237 * testsuite/libgomp.dg/omp-single-3.c: New test.
2239 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2241 * testsuite/libgomp.dg/omp-single-2.c: New test.
2242 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2244 2005-09-27 Richard Henderson <rth@redhat.com>
2246 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2247 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2249 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2251 * testsuite/libgomp.dg/omp-loop03.c: New test.
2253 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2255 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2257 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2259 * testsuite/libgomp.dg/omp-single-1.c: New test.
2260 * testsuite/libgomp.dg/shared-1.c: Return 0.
2261 Add prototype for abort.
2262 * testsuite/libgomp.dg/shared-2.c: Likewise.
2264 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2266 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2269 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2271 * testsuite/libgomp.dg/shared-1.c: New test.
2272 * testsuite/libgomp.dg/shared-2.c: New test.
2274 2005-09-24 Richard Henderson <rth@redhat.com>
2276 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2278 2005-09-24 Richard Henderson <rth@redhat.com>
2280 * iter.c (gomp_iter_static_next): Round up when computing number
2281 of iterations. Don't bother distributing a remainder equally.
2283 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2284 Don't call srand. Zero b before testing.
2287 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2289 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2290 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2292 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2294 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2295 without !$omp end do, followed immediately by subroutine end.
2297 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2299 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2301 2005-09-22 Richard Henderson <rth@redhat.com>
2303 * critical.c (GOMP_critical_name_start): Change argument to void**.
2304 Reuse the pointer space if the mutex fits.
2305 (GOMP_critical_name_end): Likewise.
2306 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2307 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2308 (GOMP_critical_name_end): Likewise.
2309 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2310 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2312 2005-09-20 Richard Henderson <rth@redhat.com>
2314 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2315 (create_lock_lock): New.
2316 (initialize_critical): Initialize it.
2317 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2318 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2320 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2322 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2324 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2326 * testsuite/libgomp.dg/omp-loop01.c: New test.
2327 * testsuite/libgomp.dg/omp-loop02.c: New test.
2329 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2331 * configure.ac (AC_PROG_FC): Add.
2332 (USE_FORTRAN): New automake conditional.
2333 * configure: Rebuilt.
2334 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2335 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2336 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2337 Add rules to build them.
2338 * Makefile.in: Rebuilt.
2339 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2341 * libgomp.map: Add Fortran wrappers.
2342 * libgomp_f.h.in: New file.
2343 * omp_lib.h.in: New file.
2344 * omp_lib.f90.in: New file.
2345 * fortran.c: New file.
2346 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2347 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2348 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2349 libgfortran has been built.
2350 * testsuite/libgomp.fortran/fortran.exp: New file.
2351 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2352 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2353 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2354 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2355 * testsuite/libgomp.fortran/omp_hello.f: New test.
2356 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2357 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2358 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2359 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2360 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2361 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2362 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2363 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2365 2005-08-30 Richard Henderson <rth@redhat.com>
2367 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2368 function for when aliases are not usable.
2369 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2370 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2371 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2372 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2373 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2374 GOMP_loop_ordered_guided_next): Likewise.
2375 * ordered.c (GOMP_ordered_start): Likewise.
2377 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2379 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2380 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2381 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2382 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2383 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2384 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2385 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2386 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2387 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2389 2005-07-07 Eric Christopher <echristo@redhat.com>
2390 Diego Novillo <dnovillo@redhat.com>
2392 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2393 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2395 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2396 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2397 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2398 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2399 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2400 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2401 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2403 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2405 * TOPLEVEL.patch: Remove.
2407 2005-05-16 Richard Henderson <rth@redhat.com>
2409 * configure.ac: Test for clock_gettime.
2410 * config.h.in, configure: Rebuild.
2411 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2412 (omp_get_wtime): Use clock_gettime if available.
2413 (omp_get_wtick): Use clock_getres if available.
2415 2005-05-11 Richard Henderson <rth@redhat.com>
2417 * config/linux/ia64/futex.h: New file.
2418 * configure.tgt: Use it.
2420 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2422 2005-05-07 Richard Henderson <rth@redhat.com>
2424 * config/linux/powerpc/futex.h: New file.
2425 * configure.tgt: Use it.
2427 * config/linux/i486/futex.h: Merge ...
2428 * config/linux/x86_64/futex.h: ... into ...
2429 * config/linux/x86/futex.h: ... here.
2430 * configure.tgt: Update to match.
2432 2005-05-06 Richard Henderson <rth@redhat.com>
2434 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2435 * config/linux/i486/futex.h: Likewise.
2436 * config/linux/x86_64/futex.h: Likewise.
2438 * config/linux/lock.c: New file.
2439 * config/linux/omp-lock.h: New file.
2441 * critical.c, env.h: Don't include omp.h
2442 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2443 * config/posix/time.c: Likewise.
2444 * config/posix/omp-lock.h: New file.
2445 * libgomp.h: Include omp-lock.h and omp.h.
2446 * Makefile.am (nodist_include_HEADERS): New.
2448 * configure.ac (PERL): New.
2449 * mkomp_h.pl: New file.
2450 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2452 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2454 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2455 build directory. Re-add -march=i486 hack.
2457 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2458 (libgomp_link_flags): Remove.
2459 (libgomp_initialized): Remove.
2460 (libgomp_init): Don't protect from reinitialization. Copy code
2461 from libstdc++ for getting the multilib set correctly.
2463 2005-05-05 Richard Henderson <rth@redhat.com>
2465 * config/linux/alpha/futex.h: New file.
2466 * configure.tgt (alpha*-*-linux*): Use it.
2468 * config/posix/mutex.c: New file.
2469 * config/posix/sem.c: Use libgomp.h.
2471 * configure.tgt (x86_64-linux): Also test CC for -m32.
2472 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2474 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2477 * Makefile.am (SUBDIRS): New.
2478 (libgomp_la_LDFLAGS): Add -lpthread.
2479 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2480 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2482 * libgomp_g.h: New file.
2483 * libgomp.h: Split out all public declarations to libgomp_g.h.
2484 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2485 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2486 * config/linux/sem.h: Likewise.
2487 * config/posix/sem.h: Likewise.
2489 * Makefile.am (AM_LDFLAGS): New.
2490 (libgomp_version_script): Split out from ...
2491 (libgomp_la_LDFLAGS): ... here.
2492 (libgomp_version_info): New.
2493 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2494 (LIBGOMP_ENABLE): New.
2495 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2496 (LIBGOMP_ENABLE_SYMVERS): New.
2497 * configure.ac (AC_INIT): Version 1.0.
2498 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2499 (enable-linux-futex): Likewise. Rename from enable-futex.
2500 (libtool_VERSION): New.
2501 (LIBGOMP_ENABLE_SYMVERS): Use it.
2502 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2503 * Makefile.in, aclocal.m4, configure: Rebuild.
2505 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2506 (gomp_mutex_unlock_slow): Fix typo.
2507 * config/linux/sem.c: Similarly.
2508 (gomp_sem_post_slow): Fix typo.
2509 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2510 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2511 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2513 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2514 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2515 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2516 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2517 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2518 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2519 LDFLAGS. Pull enable_futex check to top-level.
2520 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2521 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2523 First attempt at real configury.
2524 * Makefile, config.h: Remove file.
2525 * Makefile.am, Makefile.in: New file.
2526 * acinclude.m4 aclocal.m4: New file.
2527 * configure.ac, configure.tgt, configure: New file.
2529 * config/posix/lock.c: Rename from sys-lock.c.
2530 * config/posix/mutex.h: Rename from sys-mutex.h.
2531 * config/posix/sem.c: Rename from sys-sem.c.
2532 * config/posix/sem.h: Rename from sys-sem.h.
2533 * config/posix/proc.c: Rename from sys-proc.c.
2534 * config/posix/time.c: Rename from sys-proc.c.
2536 * config/linux/mutex.c: New file.
2537 * config/linux/mutex.h: New file.
2538 * config/linux/sem.c: New file.
2539 * config/linux/sem.h: New file.
2540 * config/linux/i486/futex.h: New file.
2541 * config/linux/x86_64/futex.h: New file.
2543 2005-05-04 Richard Henderson <rth@redhat.com>
2545 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2546 * libgomp.h: Declare them.
2547 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2548 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2550 2005-05-04 Richard Henderson <rth@redhat.com>
2552 * libgomp-1 code drop
2554 2005-05-04 Richard Henderson <rth@redhat.com>
2556 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2557 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2558 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2559 (gomp_iter_static_next): Update.
2560 (gomp_ordered_static_next): Update.
2561 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2562 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2563 totally empty range.
2564 (gomp_loop_ordered_static_next): Refine test for calling
2565 gomp_ordered_static_next.
2566 * testsuite/ordered-1.c: Add case for more threads than iterations.
2568 * iter.c (gomp_iter_runtime_next_locked): Remove.
2569 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2570 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2571 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2572 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2573 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2574 gomp_loop_ordered_guided_next): Downcase name, make static, add
2575 an external alias with the old name.
2576 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2577 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2578 switch and call one of the above static functions.
2579 * libgomp.h: Update.
2581 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2582 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2583 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2584 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2585 GOMP_loop_ordered_guided_start): Update to match.
2586 * sections.c (GOMP_sections_start): Likewise.
2587 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2589 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2590 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2591 Use bounds check instead of modulus.
2592 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2593 (gomp_ordered_last): Don't sync with ordered_owner here.
2594 (gomp_ordered_next): Likewise.
2595 (gomp_ordered_static_loop_next): Likewise.
2596 * loop.c, libgomp.h: Update to match.
2598 * libgomp.h (GOMP_barrier): Declare.
2600 * testsuite/barrier-1.c: New file.
2601 * testsuite/critical-1.c: New file.
2602 * testsuite/ordered-2.c: New file.
2603 * testsuite/ordered-1.c: New file.
2604 * testsuite/sections-1.c: New file.
2605 * testsuite/single-1.c: New file.
2606 * testsuite/Makefile (TESTS): Add them.
2608 2005-05-04 Richard Henderson <rth@redhat.com>
2610 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2611 * loop.c (GOMP_loop_static_start): If not the startup thread,
2612 acquire the mutex to wait for initialization complete.
2613 (GOMP_loop_ordered_static_start): Likewise.
2614 (GOMP_loop_ordered_runtime_start): Likewise.
2615 (GOMP_loop_ordered_static_first): Remove.
2616 (GOMP_loop_ordered_dynamic_first): Remove.
2617 (GOMP_loop_ordered_guided_first): Remove.
2618 (GOMP_loop_ordered_runtime_first): Remove.
2619 * ordered.c (gomp_ordered_loop_first): Post to own release when
2620 we're the first thread.
2621 (gomp_ordered_loop_last): Wait on release if not owner.
2622 (gomp_ordered_loop_next): Likewise.
2623 (gomp_ordered_static_loop_init): New.
2624 (gomp_ordered_static_loop_next): Use ordered_owner.
2625 (GOMP_ordered_start): Likewise.
2626 * work.c (gomp_new_work_share): Initialize ordered_owner.
2628 2005-05-03 Richard Henderson <rth@redhat.com>
2630 * Makefile (OPT): New.
2633 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2634 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2635 * libgomp.h, libgomp.map, NOTES: Update to match.
2637 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2638 Add initialized and thr members.
2639 (gomp_thread_start): Pause when initially spawned to wait for
2640 the whole team to be created.
2641 (gomp_team_start): Release team members at the end.
2643 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2644 (f_foo_1): Use GOMP_loop_end.
2645 (f_foo_2): Use GOMP_loop_end_nowait.
2647 * testsuite/loop-2.c: New file.
2648 * testsuite/Makefile (TESTS): Add it.
2650 2005-05-03 Richard Henderson <rth@redhat.com>
2652 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2653 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2654 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2657 * testsuite/Makefile: New file.
2658 * testsuite/loop-1.c: New file.
2660 2005-05-03 Richard Henderson <rth@redhat.com>
2662 Initial implementation and checkin.