1 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
4 * configure: Regenerate.
6 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10 * configure: Regenerate.
11 * Makefile.in: Regenerate.
12 * testsuite/Makefile.in: Regenerate.
14 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17 * testsuite/libgomp.c/pr43893.c: New test.
18 * testsuite/libgomp.c++/pr43893.C: New test.
20 2010-04-21 Jakub Jelinek <jakub@redhat.com>
23 * testsuite/libgomp.fortran/vla8.f90: New test.
25 2010-04-20 Jakub Jelinek <jakub@redhat.com>
28 * config/linux/affinity.c (gomp_init_affinity): Decrease
29 gomp_available_cpus if affinity mask confines the process to fewer
31 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
32 non-NULL, just return gomp_available_cpus.
35 * sections.c (gomp_sections_init): Initialize ws->mode.
37 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
39 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
40 not unused bar variable.
41 * configure: Regenerate.
43 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45 * Makefile.in: Regenerate.
46 * aclocal.m4: Regenerate.
47 * testsuite/Makefile.in: Regenerate.
49 2010-03-22 Jakub Jelinek <jakub@redhat.com>
52 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
53 (initialize_env): Adjust callers.
54 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
55 when the argument is 0.
57 * testsuite/libgomp.c/pr42942.c: New test.
59 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
63 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
64 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
66 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
68 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
69 * testsuite/libgomp.c++/task-6.C: Likewise.
71 2010-01-28 Steve Ellcey <sje@cup.hp.com>
73 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
75 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
77 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
78 * configure: Regenerate.
80 2010-01-26 Jakub Jelinek <jakub@redhat.com>
83 * testsuite/libgomp.fortran/allocatable5.f90: New test.
85 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
87 * configure.ac: Test for executability of GFORTRAN.
88 * configure: Regenerate.
90 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
92 * configure: Regenerate.
94 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
97 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
99 2010-01-03 Richard Guenther <rguenther@suse.de>
101 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
103 2009-12-23 Sebastian Pop <sebpop@gmail.com>
105 * testsuite/libgomp.graphite/pr4118.c: New.
107 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
109 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
110 for darwin, protect the test with require-effective-target tls_runtime.
111 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
113 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
116 * testsuite/lib/libgomp.exp: Provide -B options to allow for
117 link spec %s substitutions for static libraries.
119 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
122 * libgomp.graphite/force-parallel-2.c: Reduce array size.
124 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
126 * Makefile.in: Regenerate.
127 * configure: Regenerate.
128 * testsuite/Makefile.in: Regenerate.
130 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
132 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
133 settings for LC_ALL and LANG.
135 2009-11-25 Jakub Jelinek <jakub@redhat.com>
138 * testsuite/libgomp.fortran/pr42162.f90: New test.
140 2009-11-13 Jakub Jelinek <jakub@redhat.com>
143 * testsuite/libgomp.c/pr42029.c: New test.
145 2009-10-26 Jakub Jelinek <jakub@redhat.com>
147 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
148 *s. Accept ld version without text in ()s.
149 * configure: Regenerated.
151 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
153 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
155 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
158 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
159 or a hyphen (happens with fortran language disabled).
160 * configure: Regenerate.
162 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
164 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
165 use sed script portable to Solaris /bin/sed for extracting ld
167 * configure: Regenerate.
169 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
171 * testsuite/libgomp.graphite/bounds.c: New test.
173 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
175 * Makefile.am (libgomp_la_LINK): New.
176 * Makefile.in: Regenerate.
178 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
180 * configure.ac (AC_PREREQ): Bump to 2.64.
182 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
184 * Makefile.am (install-html, install-pdf): Remove.
185 * Makefile.in: Regenerate.
187 * Makefile.in: Regenerate.
188 * aclocal.m4: Regenerate.
189 * config.h.in: Regenerate.
190 * configure: Regenerate.
191 * testsuite/Makefile.in: Regenerate.
193 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
195 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
196 * Makefile.in: Regenerate.
198 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
200 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
201 * Makefile.in: Regenerate.
203 2009-08-19 Tobias Burnus <burnus@net-b.de>
206 omp_lib.h.in: Fix -std=f95 errors.
209 2009-08-14 David Edelsohn <edelsohn@gnu.org>
211 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
212 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
213 * testsuite/libgomp.graphite/graphite.exp: New.
215 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
217 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
220 2009-08-04 David Daney <ddaney@caviumnetworks.com>
222 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
223 needed memory barrier semantics.
224 * config/linux/mips/mutex.h: New file.
226 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
228 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
230 2009-07-16 Joseph Myers <joseph@codesourcery.com>
232 * configure: Regenerate.
234 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
239 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
240 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
241 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
243 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
245 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
246 options when choosing a multilib.
248 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
250 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
251 ld_library_path. Use add_path. Add just find_libgcc_s to
252 ld_library_path, not every libgcc multilib directory.
253 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
254 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
255 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
257 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
259 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
261 * Makefile.am (LTLDFLAGS): Define.
263 * Makefile.in: Regenerate.
265 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
268 * testsuite/libgomp.fortran/fortran.exp: Don't link with
269 libgfortranbegin, check existence of libgfortran.a instead of
272 2009-05-20 Jakub Jelinek <jakub@redhat.com>
275 * team.c (gomp_thread_start): Destroy thr->release semaphore.
276 (gomp_free_pool_helper): Likewise.
278 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
279 Jakub Jelinek <jakub@redhat.com>
282 * testsuite/libgomp.fortran/workshare2.f90: New test.
284 2009-04-09 Nick Clifton <nickc@redhat.com>
286 * iter.c: Change copyright header to refer to version 3 of the
287 GNU General Public License with version 3.1 of the GCC Runtime
288 Library Exception and to point readers at the COPYING3 and
289 COPYING3.RUNTIME files and the FSF's license web page.
291 * barrier.c: Likewise.
292 * config/bsd/proc.c: Likewise.
293 * config/linux/affinity.c: Likewise.
294 * config/linux/alpha/futex.h: Likewise.
295 * config/linux/bar.c: Likewise.
296 * config/linux/bar.h: Likewise.
297 * config/linux/ia64/futex.h: Likewise.
298 * config/linux/ia64/mutex.h: Likewise.
299 * config/linux/lock.c: Likewise.
300 * config/linux/mips/futex.h: Likewise.
301 * config/linux/mutex.c: Likewise.
302 * config/linux/mutex.h: Likewise.
303 * config/linux/powerpc/futex.h: Likewise.
304 * config/linux/proc.c: Likewise.
305 * config/linux/ptrlock.c: Likewise.
306 * config/linux/ptrlock.h: Likewise.
307 * config/linux/s390/futex.h: Likewise.
308 * config/linux/sem.c: Likewise.
309 * config/linux/sem.h: Likewise.
310 * config/linux/sparc/futex.h: Likewise.
311 * config/linux/wait.h: Likewise.
312 * config/linux/x86/futex.h: Likewise.
313 * config/mingw32/proc.c: Likewise.
314 * config/mingw32/time.c: Likewise.
315 * config/posix/affinity.c: Likewise.
316 * config/posix/bar.c: Likewise.
317 * config/posix/bar.h: Likewise.
318 * config/posix/lock.c: Likewise.
319 * config/posix/mutex.h: Likewise.
320 * config/posix/proc.c: Likewise.
321 * config/posix/ptrlock.h: Likewise.
322 * config/posix/sem.c: Likewise.
323 * config/posix/sem.h: Likewise.
324 * config/posix/time.c: Likewise.
325 * config/posix95/lock.c: Likewise.
326 * critical.c: Likewise.
329 * fortran.c: Likewise.
330 * iter_ull.c: Likewise.
331 * libgomp.h: Likewise.
332 * libgomp_f.h.in: Likewise.
333 * libgomp_g.h: Likewise.
335 * loop_ull.c: Likewise.
336 * omp.h.in: Likewise.
337 * omp_lib.f90.in: Likewise.
338 * omp_lib.h.in: Likewise.
339 * ordered.c: Likewise.
340 * parallel.c: Likewise.
341 * sections.c: Likewise.
342 * single.c: Likewise.
347 2009-04-09 Jakub Jelinek <jakub@redhat.com>
349 * testsuite/config/default.exp: Change copyright header to refer to
350 version 3 of the GNU General Public License and to point readers
351 at the COPYING3 file and the FSF's license web page.
353 2009-04-08 Jakub Jelinek <jakub@redhat.com>
356 * libgomp.c++/pr39573.C: New test.
358 2009-04-01 Jakub Jelinek <jakub@redhat.com>
361 * testsuite/libgomp.c/pr39591-1.c: New test.
362 * testsuite/libgomp.c/pr39591-2.c: New test.
363 * testsuite/libgomp.c/pr39591-3.c: New test.
365 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
367 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
368 * testsuite/libgomp.c/atomic-6.c: Ditto.
370 2009-03-23 Jakub Jelinek <jakub@redhat.com>
373 * testsuite/libgomp.c/loop-12.c: New test.
374 * testsuite/libgomp.c/loop-11.c: New test.
375 * testsuite/libgomp.c++/loop-11.C: New test.
376 * testsuite/libgomp.c++/loop-12.C: New test.
377 * testsuite/libgomp.c++/for-8.C: New test.
379 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
381 * configure: Regenerate.
383 2009-02-11 Jakub Jelinek <jakub@redhat.com>
386 * testsuite/libgomp.c/pr39154.c: New test.
388 2009-01-30 Ian Lance Taylor <iant@google.com>
390 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
391 libgomp_ld_is_gold. Get gold version number.
392 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
393 * configure: Rebuild.
395 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
397 * testsuite/lib/libgomp.exp: Add -B option for targets that
398 use libgfortran.a%s in their specs.
400 2009-01-07 Jakub Jelinek <jakub@redhat.com>
403 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
404 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
405 HAVE_AS_SYMVER_DIRECTIVE is not defined.
406 * configure: Regenerated.
407 * config.h.in: Likewise.
409 2008-12-28 Jakub Jelinek <jakub@redhat.com>
412 * testsuite/libgomp.c/pr38650.c: New test.
413 * testsuite/libgomp.c++/pr38650.C: New test.
415 2008-12-27 Jakub Jelinek <jakub@redhat.com>
417 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
419 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
421 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
423 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
425 * configure: Regenerate.
427 2008-12-08 Jakub Jelinek <jakub@redhat.com>
430 * testsuite/libgomp.c/pr36802-1.c: New test.
431 * testsuite/libgomp.c/pr36802-2.c: New test.
432 * testsuite/libgomp.c/pr36802-3.c: New test.
434 2008-12-01 Janis Johnson <janis187@us.ibm.com>
437 * config/linux/powerpc/mutex.h: New.
439 2008-12-01 Jakub Jelinek <jakub@redhat.com>
442 * testsuite/libgomp.c++/for-7.C: New test.
445 * testsuite/libgomp.c++/for-6.C: New test.
447 2008-11-26 Janis Johnson <janis187@us.ibm.com>
450 * testsuite/lib/libgomp.exp: Include new timeout library files.
451 (libgomp_target_compile): Set timeout value from new proc.
453 2008-11-13 Steve Ellcey <sje@cup.hp.com>
456 * config/linux/ia64/mutex.h: New.
458 2008-11-04 Tobias Burnus <burnus@net-b.de>
461 * libgomp.texi (Runtime library routines, environment variables):
462 Update for OpenMP version 3.0.
464 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
465 Steve Ellcey <sje@cup.hp.com>
467 * configure: Regenerate for new libtool.
468 * Makefile.in: Ditto.
469 * testsuite/Makefile.in: Ditto.
471 2008-09-19 Jakub Jelinek <jakub@redhat.com>
472 Andreas Tobler <a.tobler@schweiz.org>
474 * config/bsd/proc.c: New file.
475 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
476 * configure.ac: Check for header <sys/sysctl.h>
477 * configure: Regenerate.
478 * config.h.in: Likewise.
480 2008-09-05 Janis Johnson <janis187@us.ibm.com>
482 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
484 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
486 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
487 * Makefile.in: Regenerated.
488 * testsuite/Makefile.in: Regenerated.
490 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
492 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
493 depend on blddir if blddir exists.
494 (libgomp_target_compile): Likewise.
495 * testsuite/libgomp.c++/c++.exp: Likewise.
496 * testsuite/libgomp.fortran/fortran.exp: Likewise.
498 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
500 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
501 Do not list GPL as Invariant Section.
503 2008-07-28 Ilie Garbacea <ilie@mips.com>
504 Chao-ying Fu <fu@mips.com>
506 * configure.tgt: Enable futex for MIPS.
507 * config/linux/mips/futex.h: New file.
509 2008-07-16 Jakub Jelinek <jakub@redhat.com>
511 * team.c (gomp_team_end): Free team immediately if it has
514 2008-07-08 David Edelsohn <edelsohn@gnu.org>
516 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
517 * testsuite/libgomp.fortran/fortran.exp: Same.
518 * testsuite/libgomp.c/c.exp: Same.
519 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
520 directory to library path first.
522 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
524 * env.c (parse_stacksize): Add cast to avoid warning.
525 (parse_spincount): Likewise.
527 2008-06-27 Jakub Jelinek <jakub@redhat.com>
529 * testsuite/libgomp.c/loop-10.c: New test.
530 * libgomp.c/loop-3.c (main): Add lastprivate clause.
531 * libgomp.c++/loop-6.C (main): Likewise.
534 * testsuite/libgomp.c/debug-1.c: New test.
536 2008-06-19 Jakub Jelinek <jakub@redhat.com>
538 * testsuite/libgomp.c/nqueens-1.c: New test.
541 * testsuite/libgomp.c++/task-7.C: New function.
543 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
545 * configure: Regenerate.
547 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
549 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
550 mutex when HAVE_SYNC_BUILTINS isn't defined.
552 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
554 * libgomp.texi (omp_test_lock): Fix typo.
556 2008-06-12 Tobias Burnus <burnus@net-b.de>
558 * omp_lib.f90.in: Add "implicit none".
560 2008-06-12 Jakub Jelinek <jakub@redhat.com>
563 * testsuite/libgomp.c/reduction-5.c: New test.
565 2008-06-11 Jakub Jelinek <jakub@redhat.com>
567 * libgomp.h (struct gomp_task): Add in_tied_task field.
568 * task.c (gomp_init_task): Initialize it.
569 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
570 unconditionally. Don't call gomp_team_barrier_wake if
571 current task is implicit or if(0) from implicit and number of
572 running tasks is equal to nthreads - 1.
575 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
576 omp_get_team_size_8): Fix pastos.
579 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
580 * configure: Regenerated.
581 * config.h.in: Regenerated.
582 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
585 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
588 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
589 (GOMP_loop_ull_dynamic_start): Likewise.
590 (GOMP_loop_ull_guided_start): Likewise.
591 (GOMP_loop_ull_ordered_static_start): Likewise.
592 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
593 (GOMP_loop_ull_ordered_guided_start): Likewise.
595 2008-06-06 Jakub Jelinek <jakub@redhat.com>
596 Richard Henderson <rth@redhat.com>
597 Ulrich Drepper <drepper@redhat.com>
598 Jakob Blomer <jakob.blomer@ira.uka.de>
600 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
601 Substitute also OMP_*LOCK_25*.
602 * configure: Regenerated.
603 * config.h.in: Regenerated.
604 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
605 ptrlock.c and task.c.
606 * Makefile.in: Regenerated.
607 * testsuite/Makefile.in: Regenerated.
609 * loop_ull.c: New file.
610 * iter_ull.c: New file.
611 * libgomp.h: Include ptrlock.h.
612 (enum gomp_task_kind): New type.
613 (struct gomp_team): Add task_lock, task_queue, task_count,
614 task_running_count, single_count fields. Add
615 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
616 Remove work_share_lock, generation_mask,
617 oldest_live_gen, num_live_gen and init_work_shares fields, add
618 work work_share_list_alloc, work_share_list_free and work_share_chunk
619 fields. Change work_shares from pointer to pointers into an array.
620 Change ordered_release field into gomp_sem_t ** from flexible array
621 member. Add implicit_task and initial_work_shares fields.
622 Move close to the end of the struct.
623 (struct gomp_team_state): Add single_count, last_work_share,
624 active_level and level fields, remove work_share_generation.
625 (gomp_barrier_handle_tasks): New prototype.
626 (gomp_finish_task): New inline function.
627 (struct gomp_work_share): Move chunk_size, end, incr into
628 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
629 next_ll fields. Reshuffle fields. Add next_alloc,
630 next_ws, next_free and inline_ordered_team_ids fields, change
631 ordered_team_ids into pointer from flexible array member.
632 Add mode field. Put lock and next into a different cache line
633 from most of the write-once fields.
634 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
635 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
636 gomp_iter_ull_guided_next): New prototypes.
637 (gomp_new_icv): New prototype.
638 (struct gomp_thread): Add thread_pool and task fields.
639 (struct gomp_thread_pool): New type.
640 (gomp_new_team): New prototype.
641 (gomp_team_start): Change type of last argument.
642 (gomp_new_work_share): Removed.
643 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
644 (gomp_work_share_init_done): New static inline.
645 (gomp_throttled_spin_count_var, gomp_available_cpus,
646 gomp_managed_threads): New extern decls.
647 (gomp_init_task): New prototype.
648 (gomp_spin_count_var): New extern var decl.
649 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
650 or no alias support, or if not PIC.
651 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
652 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
653 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
654 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
655 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
656 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
657 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
658 gomp_test_nest_lock_25): New prototypes.
659 (omp_lock_symver, strong_alias): Define.
660 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
662 (gomp_end_task): New.
663 (struct gomp_task_icv, gomp_global_icv): New.
664 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
665 (struct gomp_task): New.
666 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
667 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
669 (gomp_schedule_type): Reorder enum to match
671 * team.c (struct gomp_thread_start_data): Add thread_pool and task
673 (gomp_thread_start): Add gomp_team_barrier_wait call.
674 For non-nested case remove clearing of docked thread thr fields.
675 Use pool fields instead of global gomp_* variables. Use
676 gomp_barrier_wait_last when needed. Initialize ts.active_level.
677 Create tasks for each member thread.
678 (free_team): Only destroy team barrier, task_lock here and free it.
679 (gomp_free_thread): Free last_team if non-NULL.
680 (gomp_team_end): Call gomp_team_barrier_wait instead of
681 gomp_barrier_wait. For nested case call one extra
682 gomp_barrier_wait. Move here some destruction from free_team.
683 Call free_team on pool->last_team if any, rather than freeing
684 current team. Destroy work_share_list_free_lock ifndef
686 (gomp_new_icv): New function.
687 (gomp_threads, gomp_threads_size, gomp_threads_used,
688 gomp_threads_dock): Removed.
689 (gomp_thread_destructor): New variable.
690 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
692 (gomp_team_start): Create new pool if current thread doesn't have
693 one. Use pool fields instead of global gomp_* variables.
694 Initialize thread_pool field for new threads. Clear single_count.
695 Change last argument from ws to team, don't create
696 new team, set ts.work_share to &team->work_shares[0] and clear
697 ts.last_work_share. Don't clear ts.work_share_generation.
698 If number of threads changed, adjust atomically gomp_managed_threads.
699 Use gomp_init_task instead of gomp_new_task,
700 set thr->task to the corresponding implicit_task array entry.
701 Create tasks for each member thread. Initialize ts.level.
702 (initialize_team): Call pthread_key_create on
703 gomp_thread_destructor.
704 (team_destructor): New function.
706 (gomp_new_team): New function.
707 (free_team): Free gomp_work_share blocks chained through next_alloc,
708 instead of freeing work_shares and destroying work_share_lock.
709 (gomp_team_end): Call gomp_fini_work_share. If number of threads
710 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
711 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
712 of gomp_barrier_wait.
713 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
714 instead of gomp_barrier_wait. Call gomp_work_share_init_done
715 if gomp_work_share_start returned true. Don't unlock ws->lock.
716 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
717 of gomp_barrier_wait.
718 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
719 gomp_work_share_init_done if gomp_work_share_start returned true.
720 Don't unlock ws->lock.
721 * work.c: Include stddef.h.
722 (free_work_share): Use work_share_list_free_lock instead
723 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
724 Call gomp_fini_work_share and then either free ws if orphaned, or
725 put it into work_share_list_free list of the current team.
726 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
728 (gomp_work_share_start, gomp_work_share_end,
729 gomp_work_share_end_nowait): Rewritten.
730 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
731 (openmp_version): Set to 200805.
732 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
733 omp_sched_guided, omp_sched_auto): New parameters.
734 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
735 omp_set_max_active_levels, omp_get_max_active_levels,
736 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
737 omp_get_active_level): New interfaces.
738 * omp_lib.h.in (openmp_version): Set to 200805.
739 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
740 omp_sched_guided, omp_sched_auto): New parameters.
741 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
742 omp_set_max_active_levels, omp_get_max_active_levels,
743 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
744 omp_get_active_level): New externals.
745 * loop.c: Include limits.h.
746 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
748 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
749 Likewise. Use gomp_icv.
750 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
752 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
753 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
754 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
755 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
756 don't unlock ws->lock, otherwise lock it.
757 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
758 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
759 (gomp_parallel_loop_start): Call gomp_new_team instead of
760 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
761 Adjust gomp_team_start caller. Pass 0 as second argument to
762 gomp_resolve_num_threads.
763 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
764 If adding ws->chunk_size nthreads + 1 times after end won't
765 overflow, set ws->mode to 1.
766 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
767 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
768 GOMP_loop_ull_ordered_static_start,
769 GOMP_loop_ull_ordered_dynamic_start,
770 GOMP_loop_ull_ordered_guided_start,
771 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
772 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
773 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
774 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
775 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
777 * libgomp.map: Export lock routines also @@OMP_2.0.
778 (GOMP_loop_ordered_dynamic_first,
779 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
780 GOMP_loop_ordered_static_first): Remove.
781 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
782 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
783 GOMP_loop_ull_ordered_dynamic_next,
784 GOMP_loop_ull_ordered_dynamic_start,
785 GOMP_loop_ull_ordered_guided_next,
786 GOMP_loop_ull_ordered_guided_start,
787 GOMP_loop_ull_ordered_runtime_next,
788 GOMP_loop_ull_ordered_runtime_start,
789 GOMP_loop_ull_ordered_static_next,
790 GOMP_loop_ull_ordered_static_start,
791 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
792 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
793 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
794 (omp_set_schedule, omp_get_schedule,
795 omp_get_thread_limit, omp_set_max_active_levels,
796 omp_get_max_active_levels, omp_get_level,
797 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
798 omp_set_schedule_, omp_set_schedule_8_,
799 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
800 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
801 omp_get_max_active_levels_, omp_get_level_,
802 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
803 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
804 New exports @@OMP_3.0.
805 * omp.h.in (omp_sched_t): New type.
806 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
807 omp_set_max_active_levels, omp_get_max_active_levels,
808 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
809 omp_get_active_level): New prototypes.
810 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
811 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
812 gomp_thread_limit_var, gomp_remaining_threads_count,
813 gomp_remaining_threads_lock): New variables.
814 (parse_spincount): New function.
815 (initialize_env): Call gomp_init_num_threads unconditionally.
816 Initialize gomp_available_cpus. Call parse_spincount,
817 initialize gomp_{,throttled_}spin_count_var
818 depending on presence and value of OMP_WAIT_POLICY and
819 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
820 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
821 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
822 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
823 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
824 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
825 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
826 (gomp_global_icv): New.
827 (parse_schedule): Use it. Parse "auto".
828 (omp_set_num_threads): Use gomp_icv.
829 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
831 (omp_get_max_threads): Move from parallel.c.
832 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
833 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
835 (parse_stacksize, parse_wait_policy): New functions.
836 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
837 both wrappers for compatibility and new locks.
838 (omp_set_schedule, omp_get_schedule,
839 omp_get_thread_limit, omp_set_max_active_levels,
840 omp_get_max_active_levels, omp_get_level,
841 omp_get_ancestor_thread_num, omp_get_team_size,
842 omp_get_active_level): New ialias_redirect.
843 (omp_set_schedule_, omp_set_schedule_8_,
844 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
845 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
846 omp_get_max_active_levels_, omp_get_level_,
847 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
848 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
850 * parallel.c: Include limits.h.
851 (gomp_resolve_num_threads): Add count argument. Rewritten.
852 (GOMP_parallel_start): Call gomp_new_team and pass that as last
853 argument to gomp_team_start. Pass 0 as second argument to
854 gomp_resolve_num_threads.
855 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
856 if gomp_thread_limit_var != ULONG_MAX.
857 (omp_in_parallel): Implement using ts.active_level.
858 (omp_get_max_threads): Move to env.c.
859 (omp_get_level, omp_get_ancestor_thread_num,
860 omp_get_team_size, omp_get_active_level): New functions,
862 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
863 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
864 gomp_iter_dynamic_next instead of the _locked variant and don't take
865 lock around it, otherwise acquire it before calling
866 gomp_iter_dynamic_next_locked.
867 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
868 gomp_iter_dynamic_next instead of the _locked variant and don't take
870 (GOMP_parallel_sections_start): Call gomp_new_team instead of
871 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
872 Adjust gomp_team_start caller. Pass count as second argument to
873 gomp_resolve_num_threads, don't adjust num_threads after the call.
875 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
876 ws->chunk_size by incr.
877 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
879 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
881 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
882 (omp_check_defines): Check even the compat defines.
883 * config/linux/ptrlock.c: New file.
884 * config/linux/ptrlock.h: New file.
885 * config/linux/wait.h: New file.
886 * config/posix/ptrlock.c: New file.
887 * config/posix/ptrlock.h: New file.
888 * config/linux/bar.h (gomp_team_barrier_wait,
889 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
890 (gomp_team_barrier_set_task_pending,
891 gomp_team_barrier_clear_task_pending,
892 gomp_team_barrier_set_waiting_for_tasks,
893 gomp_team_barrier_waiting_for_tasks,
894 gomp_team_barrier_done): New inlines.
895 (gomp_barrier_t): Rewritten.
896 (gomp_barrier_state_t): New typedef.
897 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
898 gomp_barrier_wait_start): Rewritten.
899 (gomp_barrier_wait_end): Change second argument to
900 gomp_barrier_state_t.
901 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
903 * config/linux/bar.c: Include wait.h instead of libgomp.h and
905 (gomp_barrier_wait_end): Rewritten.
906 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
907 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
908 * config/posix/bar.h (gomp_barrier_t): Add generation field.
909 (gomp_barrier_state_t): New typedef.
910 (gomp_team_barrier_wait,
911 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
912 (gomp_barrier_wait_start): Or all but low 2 bits from generation
913 into the return value. Return gomp_barrier_state_t.
914 (gomp_team_barrier_set_task_pending,
915 gomp_team_barrier_clear_task_pending,
916 gomp_team_barrier_set_waiting_for_tasks,
917 gomp_team_barrier_waiting_for_tasks,
918 gomp_team_barrier_done): New inlines.
919 (gomp_barrier_wait_end): Change second argument to
920 gomp_barrier_state_t.
921 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
923 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
924 (gomp_barrier_wait_end): Change second argument to
925 gomp_barrier_state_t.
926 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
927 gomp_team_barrier_wake): New functions.
928 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
930 (gomp_futex_wake, gomp_futex_wait): New variables.
931 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
932 * config/linux/lock.c: Rewrite to make locks task owned,
933 for backwards compatibility provide the old entrypoints
934 if symbol versioning. Include wait.h instead of libgomp.h and
936 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
937 * config/posix95/lock.c: Rewrite to make locks task owned,
938 for backwards compatibility provide the old entrypoints
939 if symbol versioning.
940 * config/posix/lock.c: Rewrite to make locks task owned,
941 for backwards compatibility provide the old entrypoints
942 if symbol versioning.
943 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
944 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
945 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
946 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
947 (sys_futex0): Return error code.
948 (futex_wake, futex_wait): If ENOSYS was returned, clear
949 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
950 (cpu_relax, atomic_write_barrier): New static inlines.
951 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
952 (futex_wake, futex_wait): If ENOSYS was returned, clear
953 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
954 (cpu_relax, atomic_write_barrier): New static inlines.
955 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
956 (sys_futex0): Return error code.
957 (futex_wake, futex_wait): If ENOSYS was returned, clear
958 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
959 (cpu_relax, atomic_write_barrier): New static inlines.
960 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
961 (sys_futex0): Return error code.
962 (futex_wake, futex_wait): If ENOSYS was returned, clear
963 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
964 (cpu_relax, atomic_write_barrier): New static inlines.
965 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
966 (sys_futex0): Return error code.
967 (futex_wake, futex_wait): If ENOSYS was returned, clear
968 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
969 (cpu_relax, atomic_write_barrier): New static inlines.
970 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
971 (sys_futex0): Return error code.
972 (futex_wake, futex_wait): If ENOSYS was returned, clear
973 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
974 (cpu_relax, atomic_write_barrier): New static inlines.
975 * config/linux/sem.c: Include wait.h instead of libgomp.h and
977 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
978 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
979 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
981 (omp_nest_lock_t): Change owner into void *, add lock field.
982 * config/posix95/omp-lock.h: Include semaphore.h.
983 (omp_lock_25_t, omp_nest_lock_25_t): New types.
984 (omp_lock_t): Use sem_t instead of mutex if semaphores
986 (omp_nest_lock_t): Likewise. Change owner to void *.
987 * config/posix/omp-lock.h: Include semaphore.h.
988 (omp_lock_25_t, omp_nest_lock_25_t): New types.
989 (omp_lock_t): Use sem_t instead of mutex if semaphores
991 (omp_nest_lock_t): Likewise. Add owner field.
993 2008-06-06 Jakub Jelinek <jakub@redhat.com>
995 * testsuite/libgomp.c/collapse-1.c: New test.
996 * testsuite/libgomp.c/collapse-2.c: New test.
997 * testsuite/libgomp.c/collapse-3.c: New test.
998 * testsuite/libgomp.c/icv-1.c: New test.
999 * testsuite/libgomp.c/icv-2.c: New test.
1000 * testsuite/libgomp.c/lib-2.c: New test.
1001 * testsuite/libgomp.c/lock-1.c: New test.
1002 * testsuite/libgomp.c/lock-2.c: New test.
1003 * testsuite/libgomp.c/lock-3.c: New test.
1004 * testsuite/libgomp.c/loop-4.c: New test.
1005 * testsuite/libgomp.c/loop-5.c: New test.
1006 * testsuite/libgomp.c/loop-6.c: New test.
1007 * testsuite/libgomp.c/loop-7.c: New test.
1008 * testsuite/libgomp.c/loop-8.c: New test.
1009 * testsuite/libgomp.c/loop-9.c: New test.
1010 * testsuite/libgomp.c/nested-3.c: New test.
1011 * testsuite/libgomp.c/nestedfn-6.c: New test.
1012 * testsuite/libgomp.c/sort-1.c: New test.
1013 * testsuite/libgomp.c/task-1.c: New test.
1014 * testsuite/libgomp.c/task-2.c: New test.
1015 * testsuite/libgomp.c/task-3.c: New test.
1016 * testsuite/libgomp.c/task-4.c: New test.
1017 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1018 to C++ testsuite default compiler options.
1019 * testsuite/libgomp.c++/collapse-1.C: New test.
1020 * testsuite/libgomp.c++/collapse-2.C: New test.
1021 * testsuite/libgomp.c++/ctor-10.C: New test.
1022 * testsuite/libgomp.c++/for-1.C: New test.
1023 * testsuite/libgomp.c++/for-2.C: New test.
1024 * testsuite/libgomp.c++/for-3.C: New test.
1025 * testsuite/libgomp.c++/for-4.C: New test.
1026 * testsuite/libgomp.c++/for-5.C: New test.
1027 * testsuite/libgomp.c++/loop-8.C: New test.
1028 * testsuite/libgomp.c++/loop-9.C: New test.
1029 * testsuite/libgomp.c++/loop-10.C: New test.
1030 * testsuite/libgomp.c++/task-1.C: New test.
1031 * testsuite/libgomp.c++/task-2.C: New test.
1032 * testsuite/libgomp.c++/task-3.C: New test.
1033 * testsuite/libgomp.c++/task-4.C: New test.
1034 * testsuite/libgomp.c++/task-5.C: New test.
1035 * testsuite/libgomp.c++/task-6.C: New test.
1036 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1037 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1038 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1039 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1040 * testsuite/libgomp.fortran/collapse1.f90: New test.
1041 * testsuite/libgomp.fortran/collapse2.f90: New test.
1042 * testsuite/libgomp.fortran/collapse3.f90: New test.
1043 * testsuite/libgomp.fortran/collapse4.f90: New test.
1044 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1045 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1046 * testsuite/libgomp.fortran/lib4.f90: New test.
1047 * testsuite/libgomp.fortran/lock-1.f90: New test.
1048 * testsuite/libgomp.fortran/lock-2.f90: New test.
1049 * testsuite/libgomp.fortran/nested1.f90: New test.
1050 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1051 * testsuite/libgomp.fortran/strassen.f90: New test.
1052 * testsuite/libgomp.fortran/tabs1.f90: New test.
1053 * testsuite/libgomp.fortran/tabs2.f: New test.
1054 * testsuite/libgomp.fortran/task1.f90: New test.
1055 * testsuite/libgomp.fortran/task2.f90: New test.
1056 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1057 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1058 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1059 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1060 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1062 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1065 * testsuite/libgomp.c++/ctor-11.C: New test.
1066 * testsuite/libgomp.c++/ctor-12.C: New test.
1068 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1070 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1072 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1075 * testsuite/libgomp.c/atomic-5.c: New test.
1076 * testsuite/libgomp.c/atomic-6.c: New test.
1077 * testsuite/libgomp.c/autopar-1.c: New test.
1079 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1081 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1082 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1083 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1084 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1085 * configure: Regenerate.
1086 * Makefile.in, testsuite/Makefile.in: Likewise.
1088 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1091 * aclocal.m4: Regenerate.
1092 * configure: Regenerate.
1094 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1097 * testsuite/libgomp.c/atomic-4.c: New test.
1100 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1101 (gomp_iter_guided_next): Likewise.
1102 * testsuite/libgomp.c/pr35625.c: New test.
1104 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1106 * aclocal.m4: Regenerate.
1107 * configure: Likewise.
1108 * Makefile.in: Likewise.
1109 * testsuite/Makefile.in: Likewise.
1111 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1114 * testsuite/libgomp.c++/pr35185.C: New test.
1116 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1119 * testsuite/libgomp.c/pr35549.c: New test.
1121 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1123 * testsuite/libgomp.c/atomic-3.c: New test.
1125 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1128 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1131 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1134 * configure.ac: Add ACX_HEADER_STRING.
1135 * env.c: Include strings.h.
1136 * aclocal.m4: Regenerate.
1137 * config.h.in: Regenerate.
1138 * configure: Regenerate.
1139 * Makefile.in: Regenerate.
1140 * testsuite/Makefile.in: Regenerate.
1142 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1145 * testsuite/libgomp.c/pr35196.c: New test.
1148 * testsuite/libgomp.fortran/pr35130.f90: New test.
1149 * testsuite/libgomp.c/pr35130.c: New test.
1151 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1154 * testsuite/libgomp.c/pr33880.c: New test.
1155 * testsuite/libgomp.fortran/pr33880.f90: New test.
1157 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1159 * configure: Regenerate.
1161 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1163 * configure.ac: Move futex checking into ../config/futex.m4.
1164 * configure: Rebuilt.
1165 * aclocal.m4: Rebuilt.
1166 * Makefile.in: Rebuilt.
1168 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1169 2007-10-15 ../config/tls.m4 change.
1171 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1174 * testsuite/libgomp.c/pr34513.c: New test.
1175 * testsuite/libgomp.c++/pr34513.C: New test.
1177 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1180 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1182 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1184 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1186 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1188 * testsuite/libgomp.c/private-1.c: New test.
1190 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1191 Paolo Bonzini <bonzini@gnu.org>
1193 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1194 instead of 'VPATH ='.
1195 * Makefile.in: Regenerate.
1197 2007-11-23 Matthias Klose <doko@ubuntu.com>
1199 * configure.ac: Adjust makeinfo version check.
1200 * configure: Regenerate.
1202 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1205 * testsuite/libgomp.fortran/pr34020.f90: New test.
1207 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1210 * testsuite/libgomp.c++/atomic-1.C: New test.
1212 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1215 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1216 Make x and y integers rather than (implicit) reals. Add private (j)
1217 clause to the last omp parallel.
1219 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1221 * configure: Regenerate following changes to ../config/tls.m4.
1223 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1225 * testsuite/libgomp.fortran/stack.f90: New test.
1227 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1229 * config/mingw32/proc.c: New file.
1231 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1233 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1234 (main): Use __get_cpuid to get i386 target fetaures.
1235 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1236 (main): Use __get_cpuid to get x86_64 target fetaures.
1238 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1241 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1242 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1244 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1247 * testsuite/libgomp.fortran/pr32550.f90: New test.
1248 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1250 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1252 * aclocal.m4: Regenerated.
1254 2007-07-05 Tobias Burnus <burnus@net-b.de>
1257 * testsuite/libgomp.fortran/pr32359.f90: New.
1259 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1262 * sections.c (GOMP_parallel_sections_start): Only decrease
1263 number of threads to COUNT if dyn_var is true.
1264 * testsuite/libgomp.c/pr32468.c: New test.
1266 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1269 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1271 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1274 * testsuite/libgomp.c/pr32362-1.c: New test.
1275 * testsuite/libgomp.c/pr32362-2.c: New test.
1276 * testsuite/libgomp.c/pr32362-3.c: New test.
1278 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1280 * team.c (gomp_team_start): Fix setting up thread_attr
1283 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1285 * configure: Regenerate.
1287 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1289 * Makefile.in: Regenerate.
1290 * configure: Regenerate.
1291 * aclocal.m4: Regenerate.
1292 * testsuite/Makefile.in: Regenerate.
1294 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1296 * config/linux/proc.c: New file.
1299 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1301 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1303 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1305 2007-04-16 Matthias Klose <doko@debian.org>
1307 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1308 flags if not building with -m64.
1309 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1310 flag for i?86-*-* targets, if current target matches -m64.
1312 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1314 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1315 * Makefile.in: Regenerate.
1317 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1320 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1322 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1324 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1326 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1328 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1329 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1330 (parse_affinity): New function.
1331 (initialize_env): Call it and gomp_init_affinity.
1332 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1333 create new pthread_attr_t and call gomp_init_thread_affinity
1334 on it for each thread before passing the attribute to pthread_create.
1335 * config/linux/affinity.c: New file.
1336 * config/posix/affinity.c: New file.
1337 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1338 * configure: Rebuilt.
1339 * config.h.in: Rebuilt.
1340 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1341 * Makefile.in: Rebuilt.
1343 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1345 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1347 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1348 and use it if found.
1350 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1352 * testsuite/config/default.exp: New file.
1353 * testsuite/lib/libgomp.exp: New file.
1354 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1355 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1356 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1357 (libgomp_load): Remove.
1358 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1359 always_ld_library_path, not ld_library_path. Set additional_flags
1360 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1361 (target_compile): Do not call libgomp_init. Append lang_library_path
1362 and lang_link_flags to options.
1363 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1364 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1366 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1367 always_ld_library_path. Set LD_LIBRARY_PATH here.
1368 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1369 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1370 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1372 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1373 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1374 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1375 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1376 * testsuite/libgomp.c/atomic-10.c: Ditto.
1378 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1380 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1381 dg-final cleanup-modules line.
1382 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1383 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1384 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1385 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1386 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1387 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1388 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1390 2007-03-18 Andreas Schwab <schwab@suse.de>
1392 * acinclude.m4: Adjust regular expression for ld version
1394 * configure: Regenerate.
1396 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1398 * Makefile.am: Add install-pdf target as copied from
1399 automake v1.10 rules.
1400 * Makefile.in: Regenerate
1402 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1405 * configure: Regenerate.
1408 * testsuite/libgomp.c++/pr30703.C: New test.
1410 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1413 2006-07-05 Eric Christopher <echristo@apple.com>
1414 * configure.ac: Depend addition of -pthread on host OS.
1415 * configure: Regenerate.
1417 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1419 * libgomp.texi: Fix spacing after abbreviations.
1421 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1424 * configure.ac: Add check for makeinfo
1425 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1426 if an appropiate version of makeinfo is found.
1427 * aclocal.m4: Regenerated.
1428 * configure: Regenerated.
1429 * Makefile.in: Regenerated.
1430 * testsuite/Makefile.in: Regenerated.
1432 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1435 * libgomp.texi: More about implementation-dependent settings.
1437 2007-01-26 Tobias Burnus <burnus@net-b.de>
1439 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1441 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1444 * testsuite/libgomp.c/pr30494.c: New test.
1446 2007-01-15 Tom Tromey <tromey@redhat.com>
1448 * configure: Rebuilt.
1449 * configure.ac: Fixed comment.
1451 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1453 * libgomp.texi: Document implementation specific default values of
1454 environment variables.
1456 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1459 * libgomp.texi: New file.
1460 * configure.ac: Add --enable-generated-files-in-srcdir option.
1461 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1463 * Makefile.in: Regenerated.
1464 * config.h.in: Regenerated.
1465 * testsuite/Makefile.in: Regenerated.
1468 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1471 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1473 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1475 * configure: Regenerate.
1477 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1480 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1481 start if there shouldn't be any loop iterations.
1482 (gomp_loop_ordered_static_start): Remove start == end test.
1483 * testsuite/libgomp.c/pr29947-1.c: New test.
1484 * testsuite/libgomp.c/pr29947-2.c: New test.
1486 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1488 * configure.tgt: Force initial-exec TLS model on Linux only.
1490 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1492 * configure: Regenerated.
1494 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1496 * env.c (parse_schedule): Reject out of range values.
1497 (parse_unsigned_long): Reject out of range, negative or zero values.
1499 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1502 * testsuite/libgomp.fortran/pr29629.f90: New test.
1504 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1507 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1508 * config/posix95: New directory.
1509 * config/posix95/omp-lock.h: New file.
1510 * config/posix95/lock.c: Likewise.
1512 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1514 * aclocal.m4: Regenerate.
1515 * configure: Regenerate.
1517 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1519 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1522 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1524 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1526 * configure: Regenerate.
1527 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1529 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1533 * testsuite/libgomp.c/nestedfn-4.c: New test.
1534 * testsuite/libgomp.c/nestedfn-5.c: New test.
1535 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1538 * testsuite/libgomp.fortran/condinc1.f: New test.
1539 * testsuite/libgomp.fortran/condinc2.f: New test.
1540 * testsuite/libgomp.fortran/condinc3.f90: New test.
1541 * testsuite/libgomp.fortran/condinc4.f90: New test.
1542 * testsuite/libgomp.fortran/condinc1.inc: New file.
1544 2006-09-18 Tom Tromey <tromey@redhat.com>
1546 * configure: Rebuilt.
1548 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1551 PR preprocessor/14634
1552 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1554 * configure: Regenerate.
1556 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1558 * testsuite/libgomp.fortran/reduction3.f90: Change
1559 -2147483648 to -huge(i)-1 to avoid overflow.
1560 * testsuite/libgomp.fortran/reduction4.f90: Change
1561 Z'ffffffff' to not(0) to avoid overflow.
1563 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1566 * Makefile.am (libsubincludedir): New.
1567 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1568 * Makefile.in: Regenerate.
1570 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1573 * env.c: Include ctype.h.
1574 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1575 leading and/or trailing whitespace and compare strings case
1578 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1581 * testsuite/libgomp.fortran/pr28390.f: New test.
1583 2006-07-05 Eric Christopher <echristo@apple.com>
1585 * configure.ac: Depend addition of -pthread on host OS.
1586 * configure: Regenerate.
1588 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1590 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1591 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1594 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1598 * configure.ac: If neither --enable-linux-futex nor
1599 --disable-linux-futex is passed, determine the default by checking
1600 for compiling and/or running against NPTL. With --enable-linux-futex,
1601 check if SYS_gettid and SYS_futex are defined.
1602 * configure: Rebuilt.
1604 2006-06-14 Richard Henderson <rth@redhat.com>
1607 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1608 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1610 2006-06-09 Richard Henderson <rth@redhat.com>
1612 * env.c (gomp_nthreads_var): Change to unsigned long.
1613 (gomp_run_sched_chunk): Likewise.
1614 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1615 (initialize_env): Initialize gomp_thread_attr.
1616 * libgomp.h (gomp_nthreads_var): Update decl.
1617 (gomp_run_sched_chunk): Likewise.
1618 (gomp_thread_attr): Declare.
1619 * team.c (gomp_thread_attr): Export.
1620 (initialize_team): Don't initialize it.
1622 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1625 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1626 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1628 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1630 * config/mingw32/time.c: New file.
1631 * configure.tgt: Use it.
1633 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1635 * Makefile.am: Add install-html target. Add install-html to .PHONY
1636 * Makefile.in: Regenerate.
1638 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1641 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1642 * testsuite/libgomp.c/critical-1.c: Likewise.
1643 * testsuite/libgomp.c/loop-1.c: Likewise.
1644 * testsuite/libgomp.c/loop-2.c: Likewise.
1645 * testsuite/libgomp.c/single-1.c: Likewise.
1646 * testsuite/libgomp.c/ordered-1.c: Likewise.
1647 * testsuite/libgomp.c/ordered-2.c: Likewise.
1649 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1652 * libgomp.fortran/pr27416-1.f90: New test.
1654 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1657 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1658 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1660 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1663 * testsuite/libgomp.c/pr26943-1.c: New test.
1664 * testsuite/libgomp.c/pr26943-2.c: New test.
1665 * testsuite/libgomp.c/pr26943-3.c: New test.
1666 * testsuite/libgomp.c/pr26943-4.c: New test.
1667 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1668 * testsuite/libgomp.c++/pr26943.C: New test.
1670 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1673 * testsuite/libgomp.c++/pr27337.C: New test.
1675 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1678 * testsuite/libgomp.c/pr26171.c: New test.
1680 2006-04-25 Richard Henderson <rth@redhat.com>
1683 * configure.ac: Use GCC_CHECK_TLS.
1684 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1685 * Makefile.in, aclocal.m4, configure: Regenerate.
1687 2006-04-10 Matthias Klose <doko@debian.org>
1689 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1690 directory names containing underscores.
1692 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1695 * testsuite/libgomp.c++/pr26691.C: New test.
1697 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1699 * testsuite/libgomp.fortran/retval2.f90: New test.
1701 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1703 * testsuite/libgomp.c++: New directory.
1705 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1707 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1708 * config/posix/sem.c: Implement the above.
1710 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1712 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1713 define HAVE_BROKEN_POSIX_SEMAPHORES.
1714 * configure: Rebuilt.
1715 * config.h.in: Rebuilt.
1717 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1720 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1721 for the other pthread check.
1722 * configure: Regenerate.
1723 * config.h.in: Regenerate.
1725 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1729 * Makefile.am (fincludedir): New variable.
1730 (nodist_include_HEADERS): Remove Fortran files.
1731 (nodist_finclude_HEADERS): New variable.
1732 * Makefile.in: Regenerated.
1734 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1736 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1737 Remove tests for returning assumed character length arrays.
1739 2006-02-12 Roger Sayle <roger@eyesopen.com>
1740 John David Anglin <dave@hiauly1.hia.nrc.ca>
1743 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1745 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1747 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1749 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1751 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1752 part of LD_LIBRARY_PATH manually.
1754 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1757 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1760 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1763 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1764 * configure.ac (PERL): Don't set.
1765 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1766 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1767 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1768 * omp.h.in: Wrap the new configure substitutions with @ characters.
1769 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1770 * aclocal.m4, configure, Makefile.in: Regenerate.
1771 * mkomp_h.pl: Delete.
1773 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1776 * configure.ac: Use GCC_HEADER_STDINT.
1777 * libgomp.h: Include gstdint.h.
1778 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1779 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1781 2006-01-24 Richard Henderson <rth@redhat.com>
1784 * configure.ac: Add AM_MAINTAINER_MODE.
1785 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1787 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1789 * Makefile.in: Regenerate.
1790 * testsuite/Makefile.in: Regenerate.
1791 * aclocal.m4: Regenerate.
1793 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1795 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1797 * configure.ac: Add check for loadavg.h.
1798 (link_gomp): Adjust comment.
1799 * configure: Regenerate.
1800 * config.h.in: Regenerate.
1802 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1805 * configure.ac: Remove check for alloca.h.
1806 * configure: Regenerate.
1807 * config.h.in: Regenerate.
1808 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1809 * team.c: Remove use of alloca.h.
1810 Call gomp_alloca instead of alloca.
1812 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1815 * team.c: Add include of alloca.h.
1816 * configure.ac: Add check for alloca.h.
1817 * configure: Regenerate.
1818 * config.h.in: Regenerate.
1820 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1823 * testsuite/libgomp.fortran/pr25219.f90: New test.
1825 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1827 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1828 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1829 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1830 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1831 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1832 testsuite/libgomp.fortran/threadprivate1.f90,
1833 testsuite/libgomp.fortran/threadprivate2.f90,
1834 testsuite/libgomp.fortran/threadprivate3.f90,
1835 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1836 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1837 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1838 effective-target to TLS runtime.
1840 * testsuite/libgomp.fortran/pr25162.f: Require
1841 effective-target TLS runtime.
1843 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1845 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1846 * testsuite/libgomp.c/nestedfn-3.c: New test.
1848 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1851 * testsuite/libgomp.fortran/pr25162.f: New test.
1853 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1855 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1856 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1858 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1860 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1861 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1862 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1863 single.c, team.c, work.c, config/linux/alpha/futex.h,
1864 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1865 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1866 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1867 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1868 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1869 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1870 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1873 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1875 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1876 to nodist_noinst_HEADERS.
1877 * Makefile.in: Rebuilt.
1879 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1880 add integer count field.
1881 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1882 omp_nest_lock_t type change.
1883 (omp_init_nest_lock): Likewise. Initialize count to 0.
1884 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1886 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1888 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1889 Increment count if successful and return the new nesting level.
1890 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1891 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1892 * testsuite/libgomp.c/lib-1.c: New test.
1893 * testsuite/libgomp.fortran/lib1.f90: New test.
1894 * testsuite/libgomp.fortran/lib2.f: New test.
1895 * testsuite/libgomp.fortran/lib3.f: New test.
1897 2005-11-17 Richard Henderson <rth@redhat.com>
1900 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1901 * configure.ac (link_gomp): New. Substitute it.
1902 (AC_CONFIG_FILES): Add libgomp.spec.
1903 * libgomp.spec.in: New file.
1904 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1905 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1907 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1909 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1910 reduction(-:var) behaving the same as reduction(+:var).
1911 * testsuite/libgomp.c/reduction-4.c: New test.
1913 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1915 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1916 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1917 testsuite/libgomp.c/copyin-3.c,
1918 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1919 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1920 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1921 testsuite/libgomp.c++/pr24455.C,
1922 testsuite/libgomp.fortran/threadprivate1.f90,
1923 testsuite/libgomp.fortran/threadprivate2.f90,
1924 testsuite/libgomp.fortran/threadprivate3.f90,
1925 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1926 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1927 testsuite/libgomp.fortran/omp_parse3.f90: Require
1928 effective-target TLS.
1930 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1934 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1937 * team.c (initialize_team): Pass NULL rather than free as
1938 pthread_key_create destructor. Initialize thread specific data
1939 pointer in initial thread to a static local variable rather than
1942 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1944 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1945 its location to ld_library_path.
1947 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1949 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1951 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1953 * testsuite/libgomp.c: Rename from libgomp.dg.
1955 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1957 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1958 threadprivate variable 'i'.
1960 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1962 * config/linux/s390/futex.h: New file.
1963 * configure.tgt: Use it.
1965 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1966 before the parallel.
1968 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1971 * testsuite/libgomp.c++/master-1.C: New test.
1973 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1975 * testsuite/libgomp.dg/copyin-3.c: New test.
1977 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1979 * testsuite/libgomp.fortran/retval1.f90: New test.
1980 * testsuite/libgomp.fortran/vla7.f90: New test.
1982 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1984 * testsuite/libgomp.fortran/vla2.f90: New test.
1985 * testsuite/libgomp.fortran/vla3.f90: New test.
1986 * testsuite/libgomp.fortran/vla4.f90: New test.
1987 * testsuite/libgomp.fortran/vla5.f90: New test.
1988 * testsuite/libgomp.fortran/vla6.f90: New test.
1990 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1992 * config/linux/sparc/futex.h: New file.
1993 * configure.tgt: Use it.
1994 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1996 * critical.c: Include stdlib.h.
1997 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1998 ignoring return value.
1999 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2000 LIBGOMP_CHECK_SYNC_BUILTINS check.
2001 * configure: Rebuilt.
2003 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2005 * testsuite/libgomp.fortran/vla1.f90: New test.
2007 2005-10-31 Richard Henderson <rth@redhat.com>
2009 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2010 setting 's' in different threads.
2012 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2014 * libgomp.h (attribute_hidden, ialias): Define.
2015 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2016 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2017 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2018 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2019 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2020 omp_test_lock, omp_test_nest_lock): Likewise.
2021 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2022 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2023 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2024 omp_test_lock, omp_test_nest_lock): Likewise.
2025 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2026 omp_get_dynamic, omp_get_nested): Likewise.
2027 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2028 omp_get_thread_num, omp_in_parallel): Likewise.
2029 * fortran.c (ialias_redirect): Define.
2030 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2031 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2032 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2033 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2034 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2035 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2036 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2037 omp_get_wtime): Add ialias_redirect.
2039 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2041 * fortran.c: Include stdlib.h.
2043 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2045 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2046 * Makefile.in: Regenerated.
2048 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2050 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2051 * libgomp_f.h.in (omp_check_defines): New function.
2052 * env.c: Include libgomp_f.h.
2053 (initialize_env): Call omp_check_defines.
2055 * testsuite/libgomp.dg/copyin-2.c: New test.
2056 * testsuite/libgomp.c++/copyin-2.C: New test.
2057 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2059 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2060 * testsuite/libgomp.fortran/sharing2.f90: New test.
2062 * testsuite/libgomp.dg/copyin-1.c: New test.
2063 * testsuite/libgomp.c++/copyin-1.C: New test.
2065 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2067 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2069 * testsuite/libgomp.fortran/workshare1.f90: New test.
2071 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2073 * libgomp.fortran/sharing1.f90: New test.
2075 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2078 * testsuite/libgomp.c++/loop-7.C: New test.
2080 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2082 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2083 * testsuite/libgomp.fortran/reduction6.f90: New test.
2084 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2086 2005-10-23 Richard Henderson <rth@redhat.com>
2088 * testsuite/libgomp.c++/ctor-1.C: New.
2089 * testsuite/libgomp.c++/ctor-2.C: New.
2090 * testsuite/libgomp.c++/ctor-3.C: New.
2091 * testsuite/libgomp.c++/ctor-4.C: New.
2092 * testsuite/libgomp.c++/ctor-5.C: New.
2093 * testsuite/libgomp.c++/ctor-6.C: New.
2094 * testsuite/libgomp.c++/ctor-7.C: New.
2095 * testsuite/libgomp.c++/ctor-8.C: New.
2096 * testsuite/libgomp.c++/ctor-9.C: New.
2098 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2101 * testsuite/libgomp.c++/pr24455-1.C: New test.
2102 * testsuite/libgomp.c++/pr24455.C: New test.
2103 * testsuite/libgomp.dg/pr24455-1.c: New test.
2104 * testsuite/libgomp.dg/pr24455.c: New test.
2106 2005-10-20 Richard Henderson <rth@redhat.com>
2108 * testsuite/libgomp.c++/loop-6.C: New.
2109 * testsuite/libgomp.dg/loop-3.c: New.
2111 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2113 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2115 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2118 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2120 * testsuite/libgomp.fortran/jacobi.f: New test.
2122 2005-10-19 Richard Henderson <rth@redhat.com>
2124 * configure.tgt (i?86-linux): Default to with_arch instead of
2125 CFLAGS. Add -mtune to match target_cpu.
2126 (x86_64-linux): Tune to i686.
2128 * fortran.c (omp_test_nest_lock_): Fix typo.
2130 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2132 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2133 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2134 * testsuite/libgomp.dg/ordered-3.c: New test.
2136 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2137 Remove volatile keyword.
2139 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2140 in COMMON block to avoid warnings on 64-bit targets.
2142 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2144 * testsuite/libgomp.dg/shared-3.c: New test.
2146 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2148 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2149 * testsuite/libgomp.fortran/reduction5.f90: New test.
2151 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2153 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2155 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2156 flush loop now that __sync_synchronize has proper memory barrier.
2157 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2158 Add -ffixed-form to dg-options.
2160 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2162 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2163 from subdirectories.
2164 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2165 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2166 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2167 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2168 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2169 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2170 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2171 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2172 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2173 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2174 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2175 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2176 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2177 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2178 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2179 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2180 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2181 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2182 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2183 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2184 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2185 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2186 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2187 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2188 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2190 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2192 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2193 lang_library_path exists. Use find instead of glob to gather tests.
2194 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2196 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2198 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2199 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2200 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2201 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2202 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2203 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2204 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2205 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2206 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2207 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2208 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2209 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2210 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2212 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2214 * testsuite/libgomp.dg/vla-1.c: New test.
2216 * testsuite/libgomp.fortran/reference2.f90: New test.
2218 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2219 declaration of omp_get_thread_num.
2220 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2223 * testsuite/libgomp.fortran/reduction1.f90: New test.
2224 * testsuite/libgomp.fortran/reduction2.f90: New test.
2225 * testsuite/libgomp.fortran/reduction3.f90: New test.
2226 * testsuite/libgomp.fortran/reduction4.f90: New test.
2228 2005-10-13 Richard Henderson <rth@redhat.com>
2230 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2231 * Makefile.in: Regenerate.
2232 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2233 * libgomp.h: Include bar.h.
2234 (struct gomp_barrier): Remove.
2235 (struct gomp_team): Add barrier. Replace master_barrier with
2236 master_release. Replace threads with ordered_release.
2237 (struct gomp_thread): Replace barrier with release.
2238 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2239 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2240 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2241 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2242 (GOMP_single_copy_end): Likewise.
2243 * team.c (gomp_threads_dock): New.
2244 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2245 (gomp_thread_start): Use gomp_barrier_wait.
2246 (new_team, free_team): Update for gomp_team changes.
2247 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2248 (gomp_team_end): Use gomp_barrier_wait.
2249 (initialize_team): Update for gomp_thread changes.
2250 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2251 (gomp_work_share_end_nowait): Use atomic ops when available.
2252 * config/linux/bar.c, config/linux/bar.h: New files.
2253 * config/posix/bar.c, config/posix/bar.h: New files.
2255 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2257 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2258 * testsuite/libgomp.dg/single-2.c: New test.
2260 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2261 lang_link_flags): Unset, so that they aren't inherited from previously
2264 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2266 2005-10-12 Richard Henderson <rth@redhat.com>
2268 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2269 (libgomp_init): Use lang_test_file, lang_library_path, and
2270 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2272 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2273 (lang_test_file, lang_link_flags): New.
2274 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2276 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2277 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2278 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2279 testsuite/libgomp.c++/parallel-1.C,
2280 testsuite/libgomp.c++/reduction-1.C,
2281 testsuite/libgomp.c++/reduction-2.C,
2282 testsuite/libgomp.c++/reduction-3.C,
2283 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2284 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2285 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2286 New files, largely cribbed from the C testsuite.
2288 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2290 * testsuite/libgomp.fortran/character1.f90: New test.
2291 * testsuite/libgomp.fortran/character2.f90: New test.
2293 * testsuite/libgomp.dg/nested-1.c: New test.
2294 * testsuite/libgomp.dg/nested-2.c: New test.
2295 * testsuite/libgomp.fortran/do1.f90: New test.
2296 * testsuite/libgomp.fortran/do2.f90: New test.
2298 * testsuite/libgomp.fortran/reference1.f90: New test.
2300 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2302 * testsuite/libgomp.dg/reduction-1.c: New test.
2303 * testsuite/libgomp.dg/reduction-2.c: New test.
2304 * testsuite/libgomp.dg/reduction-3.c: New test.
2306 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2308 * testsuite/libgomp.dg/atomic-1.c: New test.
2309 * testsuite/libgomp.dg/atomic-2.c: New test.
2311 2005-10-09 Richard Henderson <rth@redhat.com>
2313 * critical.c (atomic_lock): New.
2314 (initialize_critical): Initialize it.
2315 (GOMP_atomic_start, GOMP_atomic_end): New.
2316 * libgomp.map: Export them.
2317 * libgomp_g.h: Declare them.
2319 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2321 2005-10-02 Richard Henderson <rth@redhat.com>
2323 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2324 to XCFLAGS instead of CFLAGS.
2326 2005-09-30 Richard Henderson <rth@redhat.com>
2328 * configure.ac: Determine whether -pthread or -lpthread is needed.
2329 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2330 * Makefine.in, configure: Rebuild.
2332 2005-09-28 Richard Henderson <rth@redhat.com>
2334 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2335 * testsuite/libgomp.dg/omp-single-3.c: New test.
2337 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2339 * testsuite/libgomp.dg/omp-single-2.c: New test.
2340 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2342 2005-09-27 Richard Henderson <rth@redhat.com>
2344 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2345 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2347 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2349 * testsuite/libgomp.dg/omp-loop03.c: New test.
2351 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2353 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2355 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2357 * testsuite/libgomp.dg/omp-single-1.c: New test.
2358 * testsuite/libgomp.dg/shared-1.c: Return 0.
2359 Add prototype for abort.
2360 * testsuite/libgomp.dg/shared-2.c: Likewise.
2362 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2364 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2367 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2369 * testsuite/libgomp.dg/shared-1.c: New test.
2370 * testsuite/libgomp.dg/shared-2.c: New test.
2372 2005-09-24 Richard Henderson <rth@redhat.com>
2374 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2376 2005-09-24 Richard Henderson <rth@redhat.com>
2378 * iter.c (gomp_iter_static_next): Round up when computing number
2379 of iterations. Don't bother distributing a remainder equally.
2381 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2382 Don't call srand. Zero b before testing.
2385 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2387 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2388 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2390 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2392 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2393 without !$omp end do, followed immediately by subroutine end.
2395 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2397 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2399 2005-09-22 Richard Henderson <rth@redhat.com>
2401 * critical.c (GOMP_critical_name_start): Change argument to void**.
2402 Reuse the pointer space if the mutex fits.
2403 (GOMP_critical_name_end): Likewise.
2404 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2405 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2406 (GOMP_critical_name_end): Likewise.
2407 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2408 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2410 2005-09-20 Richard Henderson <rth@redhat.com>
2412 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2413 (create_lock_lock): New.
2414 (initialize_critical): Initialize it.
2415 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2416 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2418 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2420 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2422 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2424 * testsuite/libgomp.dg/omp-loop01.c: New test.
2425 * testsuite/libgomp.dg/omp-loop02.c: New test.
2427 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2429 * configure.ac (AC_PROG_FC): Add.
2430 (USE_FORTRAN): New automake conditional.
2431 * configure: Rebuilt.
2432 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2433 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2434 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2435 Add rules to build them.
2436 * Makefile.in: Rebuilt.
2437 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2439 * libgomp.map: Add Fortran wrappers.
2440 * libgomp_f.h.in: New file.
2441 * omp_lib.h.in: New file.
2442 * omp_lib.f90.in: New file.
2443 * fortran.c: New file.
2444 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2445 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2446 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2447 libgfortran has been built.
2448 * testsuite/libgomp.fortran/fortran.exp: New file.
2449 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2450 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2451 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2452 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2453 * testsuite/libgomp.fortran/omp_hello.f: New test.
2454 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2455 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2456 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2457 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2458 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2459 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2460 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2461 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2463 2005-08-30 Richard Henderson <rth@redhat.com>
2465 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2466 function for when aliases are not usable.
2467 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2468 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2469 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2470 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2471 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2472 GOMP_loop_ordered_guided_next): Likewise.
2473 * ordered.c (GOMP_ordered_start): Likewise.
2475 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2477 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2478 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2479 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2480 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2481 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2482 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2483 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2484 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2485 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2487 2005-07-07 Eric Christopher <echristo@redhat.com>
2488 Diego Novillo <dnovillo@redhat.com>
2490 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2491 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2493 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2494 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2495 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2496 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2497 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2498 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2499 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2501 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2503 * TOPLEVEL.patch: Remove.
2505 2005-05-16 Richard Henderson <rth@redhat.com>
2507 * configure.ac: Test for clock_gettime.
2508 * config.h.in, configure: Rebuild.
2509 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2510 (omp_get_wtime): Use clock_gettime if available.
2511 (omp_get_wtick): Use clock_getres if available.
2513 2005-05-11 Richard Henderson <rth@redhat.com>
2515 * config/linux/ia64/futex.h: New file.
2516 * configure.tgt: Use it.
2518 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2520 2005-05-07 Richard Henderson <rth@redhat.com>
2522 * config/linux/powerpc/futex.h: New file.
2523 * configure.tgt: Use it.
2525 * config/linux/i486/futex.h: Merge ...
2526 * config/linux/x86_64/futex.h: ... into ...
2527 * config/linux/x86/futex.h: ... here.
2528 * configure.tgt: Update to match.
2530 2005-05-06 Richard Henderson <rth@redhat.com>
2532 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2533 * config/linux/i486/futex.h: Likewise.
2534 * config/linux/x86_64/futex.h: Likewise.
2536 * config/linux/lock.c: New file.
2537 * config/linux/omp-lock.h: New file.
2539 * critical.c, env.h: Don't include omp.h
2540 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2541 * config/posix/time.c: Likewise.
2542 * config/posix/omp-lock.h: New file.
2543 * libgomp.h: Include omp-lock.h and omp.h.
2544 * Makefile.am (nodist_include_HEADERS): New.
2546 * configure.ac (PERL): New.
2547 * mkomp_h.pl: New file.
2548 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2550 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2552 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2553 build directory. Re-add -march=i486 hack.
2555 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2556 (libgomp_link_flags): Remove.
2557 (libgomp_initialized): Remove.
2558 (libgomp_init): Don't protect from reinitialization. Copy code
2559 from libstdc++ for getting the multilib set correctly.
2561 2005-05-05 Richard Henderson <rth@redhat.com>
2563 * config/linux/alpha/futex.h: New file.
2564 * configure.tgt (alpha*-*-linux*): Use it.
2566 * config/posix/mutex.c: New file.
2567 * config/posix/sem.c: Use libgomp.h.
2569 * configure.tgt (x86_64-linux): Also test CC for -m32.
2570 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2572 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2575 * Makefile.am (SUBDIRS): New.
2576 (libgomp_la_LDFLAGS): Add -lpthread.
2577 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2578 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2580 * libgomp_g.h: New file.
2581 * libgomp.h: Split out all public declarations to libgomp_g.h.
2582 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2583 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2584 * config/linux/sem.h: Likewise.
2585 * config/posix/sem.h: Likewise.
2587 * Makefile.am (AM_LDFLAGS): New.
2588 (libgomp_version_script): Split out from ...
2589 (libgomp_la_LDFLAGS): ... here.
2590 (libgomp_version_info): New.
2591 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2592 (LIBGOMP_ENABLE): New.
2593 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2594 (LIBGOMP_ENABLE_SYMVERS): New.
2595 * configure.ac (AC_INIT): Version 1.0.
2596 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2597 (enable-linux-futex): Likewise. Rename from enable-futex.
2598 (libtool_VERSION): New.
2599 (LIBGOMP_ENABLE_SYMVERS): Use it.
2600 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2601 * Makefile.in, aclocal.m4, configure: Rebuild.
2603 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2604 (gomp_mutex_unlock_slow): Fix typo.
2605 * config/linux/sem.c: Similarly.
2606 (gomp_sem_post_slow): Fix typo.
2607 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2608 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2609 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2611 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2612 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2613 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2614 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2615 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2616 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2617 LDFLAGS. Pull enable_futex check to top-level.
2618 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2619 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2621 First attempt at real configury.
2622 * Makefile, config.h: Remove file.
2623 * Makefile.am, Makefile.in: New file.
2624 * acinclude.m4 aclocal.m4: New file.
2625 * configure.ac, configure.tgt, configure: New file.
2627 * config/posix/lock.c: Rename from sys-lock.c.
2628 * config/posix/mutex.h: Rename from sys-mutex.h.
2629 * config/posix/sem.c: Rename from sys-sem.c.
2630 * config/posix/sem.h: Rename from sys-sem.h.
2631 * config/posix/proc.c: Rename from sys-proc.c.
2632 * config/posix/time.c: Rename from sys-proc.c.
2634 * config/linux/mutex.c: New file.
2635 * config/linux/mutex.h: New file.
2636 * config/linux/sem.c: New file.
2637 * config/linux/sem.h: New file.
2638 * config/linux/i486/futex.h: New file.
2639 * config/linux/x86_64/futex.h: New file.
2641 2005-05-04 Richard Henderson <rth@redhat.com>
2643 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2644 * libgomp.h: Declare them.
2645 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2646 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2648 2005-05-04 Richard Henderson <rth@redhat.com>
2650 * libgomp-1 code drop
2652 2005-05-04 Richard Henderson <rth@redhat.com>
2654 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2655 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2656 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2657 (gomp_iter_static_next): Update.
2658 (gomp_ordered_static_next): Update.
2659 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2660 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2661 totally empty range.
2662 (gomp_loop_ordered_static_next): Refine test for calling
2663 gomp_ordered_static_next.
2664 * testsuite/ordered-1.c: Add case for more threads than iterations.
2666 * iter.c (gomp_iter_runtime_next_locked): Remove.
2667 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2668 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2669 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2670 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2671 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2672 gomp_loop_ordered_guided_next): Downcase name, make static, add
2673 an external alias with the old name.
2674 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2675 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2676 switch and call one of the above static functions.
2677 * libgomp.h: Update.
2679 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2680 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2681 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2682 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2683 GOMP_loop_ordered_guided_start): Update to match.
2684 * sections.c (GOMP_sections_start): Likewise.
2685 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2687 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2688 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2689 Use bounds check instead of modulus.
2690 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2691 (gomp_ordered_last): Don't sync with ordered_owner here.
2692 (gomp_ordered_next): Likewise.
2693 (gomp_ordered_static_loop_next): Likewise.
2694 * loop.c, libgomp.h: Update to match.
2696 * libgomp.h (GOMP_barrier): Declare.
2698 * testsuite/barrier-1.c: New file.
2699 * testsuite/critical-1.c: New file.
2700 * testsuite/ordered-2.c: New file.
2701 * testsuite/ordered-1.c: New file.
2702 * testsuite/sections-1.c: New file.
2703 * testsuite/single-1.c: New file.
2704 * testsuite/Makefile (TESTS): Add them.
2706 2005-05-04 Richard Henderson <rth@redhat.com>
2708 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2709 * loop.c (GOMP_loop_static_start): If not the startup thread,
2710 acquire the mutex to wait for initialization complete.
2711 (GOMP_loop_ordered_static_start): Likewise.
2712 (GOMP_loop_ordered_runtime_start): Likewise.
2713 (GOMP_loop_ordered_static_first): Remove.
2714 (GOMP_loop_ordered_dynamic_first): Remove.
2715 (GOMP_loop_ordered_guided_first): Remove.
2716 (GOMP_loop_ordered_runtime_first): Remove.
2717 * ordered.c (gomp_ordered_loop_first): Post to own release when
2718 we're the first thread.
2719 (gomp_ordered_loop_last): Wait on release if not owner.
2720 (gomp_ordered_loop_next): Likewise.
2721 (gomp_ordered_static_loop_init): New.
2722 (gomp_ordered_static_loop_next): Use ordered_owner.
2723 (GOMP_ordered_start): Likewise.
2724 * work.c (gomp_new_work_share): Initialize ordered_owner.
2726 2005-05-03 Richard Henderson <rth@redhat.com>
2728 * Makefile (OPT): New.
2731 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2732 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2733 * libgomp.h, libgomp.map, NOTES: Update to match.
2735 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2736 Add initialized and thr members.
2737 (gomp_thread_start): Pause when initially spawned to wait for
2738 the whole team to be created.
2739 (gomp_team_start): Release team members at the end.
2741 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2742 (f_foo_1): Use GOMP_loop_end.
2743 (f_foo_2): Use GOMP_loop_end_nowait.
2745 * testsuite/loop-2.c: New file.
2746 * testsuite/Makefile (TESTS): Add it.
2748 2005-05-03 Richard Henderson <rth@redhat.com>
2750 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2751 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2752 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2755 * testsuite/Makefile: New file.
2756 * testsuite/loop-1.c: New file.
2758 2005-05-03 Richard Henderson <rth@redhat.com>
2760 Initial implementation and checkin.