1 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
5 * configure: Regenerate.
6 * Makefile.in: Regenerate.
7 * testsuite/Makefile.in: Regenerate.
9 2010-04-26 Jakub Jelinek <jakub@redhat.com>
12 * testsuite/libgomp.c/pr43893.c: New test.
13 * testsuite/libgomp.c++/pr43893.C: New test.
15 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18 * testsuite/libgomp.fortran/vla8.f90: New test.
20 2010-04-20 Jakub Jelinek <jakub@redhat.com>
23 * config/linux/affinity.c (gomp_init_affinity): Decrease
24 gomp_available_cpus if affinity mask confines the process to fewer
26 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
27 non-NULL, just return gomp_available_cpus.
30 * sections.c (gomp_sections_init): Initialize ws->mode.
32 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
34 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
35 not unused bar variable.
36 * configure: Regenerate.
38 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40 * Makefile.in: Regenerate.
41 * aclocal.m4: Regenerate.
42 * testsuite/Makefile.in: Regenerate.
44 2010-03-22 Jakub Jelinek <jakub@redhat.com>
47 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
48 (initialize_env): Adjust callers.
49 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
50 when the argument is 0.
52 * testsuite/libgomp.c/pr42942.c: New test.
54 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
58 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
59 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
61 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
63 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
64 * testsuite/libgomp.c++/task-6.C: Likewise.
66 2010-01-28 Steve Ellcey <sje@cup.hp.com>
68 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
70 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
72 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
73 * configure: Regenerate.
75 2010-01-26 Jakub Jelinek <jakub@redhat.com>
78 * testsuite/libgomp.fortran/allocatable5.f90: New test.
80 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
82 * configure.ac: Test for executability of GFORTRAN.
83 * configure: Regenerate.
85 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
87 * configure: Regenerate.
89 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
92 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
94 2010-01-03 Richard Guenther <rguenther@suse.de>
96 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
98 2009-12-23 Sebastian Pop <sebpop@gmail.com>
100 * testsuite/libgomp.graphite/pr4118.c: New.
102 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
104 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
105 for darwin, protect the test with require-effective-target tls_runtime.
106 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
108 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
111 * testsuite/lib/libgomp.exp: Provide -B options to allow for
112 link spec %s substitutions for static libraries.
114 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
117 * libgomp.graphite/force-parallel-2.c: Reduce array size.
119 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
121 * Makefile.in: Regenerate.
122 * configure: Regenerate.
123 * testsuite/Makefile.in: Regenerate.
125 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
127 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
128 settings for LC_ALL and LANG.
130 2009-11-25 Jakub Jelinek <jakub@redhat.com>
133 * testsuite/libgomp.fortran/pr42162.f90: New test.
135 2009-11-13 Jakub Jelinek <jakub@redhat.com>
138 * testsuite/libgomp.c/pr42029.c: New test.
140 2009-10-26 Jakub Jelinek <jakub@redhat.com>
142 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
143 *s. Accept ld version without text in ()s.
144 * configure: Regenerated.
146 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
148 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
150 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
153 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
154 or a hyphen (happens with fortran language disabled).
155 * configure: Regenerate.
157 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
159 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
160 use sed script portable to Solaris /bin/sed for extracting ld
162 * configure: Regenerate.
164 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
166 * testsuite/libgomp.graphite/bounds.c: New test.
168 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
170 * Makefile.am (libgomp_la_LINK): New.
171 * Makefile.in: Regenerate.
173 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
175 * configure.ac (AC_PREREQ): Bump to 2.64.
177 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
179 * Makefile.am (install-html, install-pdf): Remove.
180 * Makefile.in: Regenerate.
182 * Makefile.in: Regenerate.
183 * aclocal.m4: Regenerate.
184 * config.h.in: Regenerate.
185 * configure: Regenerate.
186 * testsuite/Makefile.in: Regenerate.
188 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
190 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
191 * Makefile.in: Regenerate.
193 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
195 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
196 * Makefile.in: Regenerate.
198 2009-08-19 Tobias Burnus <burnus@net-b.de>
201 omp_lib.h.in: Fix -std=f95 errors.
204 2009-08-14 David Edelsohn <edelsohn@gnu.org>
206 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
207 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
208 * testsuite/libgomp.graphite/graphite.exp: New.
210 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
212 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
215 2009-08-04 David Daney <ddaney@caviumnetworks.com>
217 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
218 needed memory barrier semantics.
219 * config/linux/mips/mutex.h: New file.
221 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
223 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
225 2009-07-16 Joseph Myers <joseph@codesourcery.com>
227 * configure: Regenerate.
229 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
234 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
235 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
236 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
238 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
240 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
241 options when choosing a multilib.
243 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
245 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
246 ld_library_path. Use add_path. Add just find_libgcc_s to
247 ld_library_path, not every libgcc multilib directory.
248 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
249 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
250 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
252 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
254 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
256 * Makefile.am (LTLDFLAGS): Define.
258 * Makefile.in: Regenerate.
260 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
263 * testsuite/libgomp.fortran/fortran.exp: Don't link with
264 libgfortranbegin, check existence of libgfortran.a instead of
267 2009-05-20 Jakub Jelinek <jakub@redhat.com>
270 * team.c (gomp_thread_start): Destroy thr->release semaphore.
271 (gomp_free_pool_helper): Likewise.
273 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
274 Jakub Jelinek <jakub@redhat.com>
277 * testsuite/libgomp.fortran/workshare2.f90: New test.
279 2009-04-09 Nick Clifton <nickc@redhat.com>
281 * iter.c: Change copyright header to refer to version 3 of the
282 GNU General Public License with version 3.1 of the GCC Runtime
283 Library Exception and to point readers at the COPYING3 and
284 COPYING3.RUNTIME files and the FSF's license web page.
286 * barrier.c: Likewise.
287 * config/bsd/proc.c: Likewise.
288 * config/linux/affinity.c: Likewise.
289 * config/linux/alpha/futex.h: Likewise.
290 * config/linux/bar.c: Likewise.
291 * config/linux/bar.h: Likewise.
292 * config/linux/ia64/futex.h: Likewise.
293 * config/linux/ia64/mutex.h: Likewise.
294 * config/linux/lock.c: Likewise.
295 * config/linux/mips/futex.h: Likewise.
296 * config/linux/mutex.c: Likewise.
297 * config/linux/mutex.h: Likewise.
298 * config/linux/powerpc/futex.h: Likewise.
299 * config/linux/proc.c: Likewise.
300 * config/linux/ptrlock.c: Likewise.
301 * config/linux/ptrlock.h: Likewise.
302 * config/linux/s390/futex.h: Likewise.
303 * config/linux/sem.c: Likewise.
304 * config/linux/sem.h: Likewise.
305 * config/linux/sparc/futex.h: Likewise.
306 * config/linux/wait.h: Likewise.
307 * config/linux/x86/futex.h: Likewise.
308 * config/mingw32/proc.c: Likewise.
309 * config/mingw32/time.c: Likewise.
310 * config/posix/affinity.c: Likewise.
311 * config/posix/bar.c: Likewise.
312 * config/posix/bar.h: Likewise.
313 * config/posix/lock.c: Likewise.
314 * config/posix/mutex.h: Likewise.
315 * config/posix/proc.c: Likewise.
316 * config/posix/ptrlock.h: Likewise.
317 * config/posix/sem.c: Likewise.
318 * config/posix/sem.h: Likewise.
319 * config/posix/time.c: Likewise.
320 * config/posix95/lock.c: Likewise.
321 * critical.c: Likewise.
324 * fortran.c: Likewise.
325 * iter_ull.c: Likewise.
326 * libgomp.h: Likewise.
327 * libgomp_f.h.in: Likewise.
328 * libgomp_g.h: Likewise.
330 * loop_ull.c: Likewise.
331 * omp.h.in: Likewise.
332 * omp_lib.f90.in: Likewise.
333 * omp_lib.h.in: Likewise.
334 * ordered.c: Likewise.
335 * parallel.c: Likewise.
336 * sections.c: Likewise.
337 * single.c: Likewise.
342 2009-04-09 Jakub Jelinek <jakub@redhat.com>
344 * testsuite/config/default.exp: Change copyright header to refer to
345 version 3 of the GNU General Public License and to point readers
346 at the COPYING3 file and the FSF's license web page.
348 2009-04-08 Jakub Jelinek <jakub@redhat.com>
351 * libgomp.c++/pr39573.C: New test.
353 2009-04-01 Jakub Jelinek <jakub@redhat.com>
356 * testsuite/libgomp.c/pr39591-1.c: New test.
357 * testsuite/libgomp.c/pr39591-2.c: New test.
358 * testsuite/libgomp.c/pr39591-3.c: New test.
360 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
362 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
363 * testsuite/libgomp.c/atomic-6.c: Ditto.
365 2009-03-23 Jakub Jelinek <jakub@redhat.com>
368 * testsuite/libgomp.c/loop-12.c: New test.
369 * testsuite/libgomp.c/loop-11.c: New test.
370 * testsuite/libgomp.c++/loop-11.C: New test.
371 * testsuite/libgomp.c++/loop-12.C: New test.
372 * testsuite/libgomp.c++/for-8.C: New test.
374 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
376 * configure: Regenerate.
378 2009-02-11 Jakub Jelinek <jakub@redhat.com>
381 * testsuite/libgomp.c/pr39154.c: New test.
383 2009-01-30 Ian Lance Taylor <iant@google.com>
385 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
386 libgomp_ld_is_gold. Get gold version number.
387 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
388 * configure: Rebuild.
390 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
392 * testsuite/lib/libgomp.exp: Add -B option for targets that
393 use libgfortran.a%s in their specs.
395 2009-01-07 Jakub Jelinek <jakub@redhat.com>
398 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
399 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
400 HAVE_AS_SYMVER_DIRECTIVE is not defined.
401 * configure: Regenerated.
402 * config.h.in: Likewise.
404 2008-12-28 Jakub Jelinek <jakub@redhat.com>
407 * testsuite/libgomp.c/pr38650.c: New test.
408 * testsuite/libgomp.c++/pr38650.C: New test.
410 2008-12-27 Jakub Jelinek <jakub@redhat.com>
412 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
414 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
416 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
418 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
420 * configure: Regenerate.
422 2008-12-08 Jakub Jelinek <jakub@redhat.com>
425 * testsuite/libgomp.c/pr36802-1.c: New test.
426 * testsuite/libgomp.c/pr36802-2.c: New test.
427 * testsuite/libgomp.c/pr36802-3.c: New test.
429 2008-12-01 Janis Johnson <janis187@us.ibm.com>
432 * config/linux/powerpc/mutex.h: New.
434 2008-12-01 Jakub Jelinek <jakub@redhat.com>
437 * testsuite/libgomp.c++/for-7.C: New test.
440 * testsuite/libgomp.c++/for-6.C: New test.
442 2008-11-26 Janis Johnson <janis187@us.ibm.com>
445 * testsuite/lib/libgomp.exp: Include new timeout library files.
446 (libgomp_target_compile): Set timeout value from new proc.
448 2008-11-13 Steve Ellcey <sje@cup.hp.com>
451 * config/linux/ia64/mutex.h: New.
453 2008-11-04 Tobias Burnus <burnus@net-b.de>
456 * libgomp.texi (Runtime library routines, environment variables):
457 Update for OpenMP version 3.0.
459 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
460 Steve Ellcey <sje@cup.hp.com>
462 * configure: Regenerate for new libtool.
463 * Makefile.in: Ditto.
464 * testsuite/Makefile.in: Ditto.
466 2008-09-19 Jakub Jelinek <jakub@redhat.com>
467 Andreas Tobler <a.tobler@schweiz.org>
469 * config/bsd/proc.c: New file.
470 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
471 * configure.ac: Check for header <sys/sysctl.h>
472 * configure: Regenerate.
473 * config.h.in: Likewise.
475 2008-09-05 Janis Johnson <janis187@us.ibm.com>
477 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
479 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
481 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
482 * Makefile.in: Regenerated.
483 * testsuite/Makefile.in: Regenerated.
485 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
487 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
488 depend on blddir if blddir exists.
489 (libgomp_target_compile): Likewise.
490 * testsuite/libgomp.c++/c++.exp: Likewise.
491 * testsuite/libgomp.fortran/fortran.exp: Likewise.
493 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
495 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
496 Do not list GPL as Invariant Section.
498 2008-07-28 Ilie Garbacea <ilie@mips.com>
499 Chao-ying Fu <fu@mips.com>
501 * configure.tgt: Enable futex for MIPS.
502 * config/linux/mips/futex.h: New file.
504 2008-07-16 Jakub Jelinek <jakub@redhat.com>
506 * team.c (gomp_team_end): Free team immediately if it has
509 2008-07-08 David Edelsohn <edelsohn@gnu.org>
511 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
512 * testsuite/libgomp.fortran/fortran.exp: Same.
513 * testsuite/libgomp.c/c.exp: Same.
514 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
515 directory to library path first.
517 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
519 * env.c (parse_stacksize): Add cast to avoid warning.
520 (parse_spincount): Likewise.
522 2008-06-27 Jakub Jelinek <jakub@redhat.com>
524 * testsuite/libgomp.c/loop-10.c: New test.
525 * libgomp.c/loop-3.c (main): Add lastprivate clause.
526 * libgomp.c++/loop-6.C (main): Likewise.
529 * testsuite/libgomp.c/debug-1.c: New test.
531 2008-06-19 Jakub Jelinek <jakub@redhat.com>
533 * testsuite/libgomp.c/nqueens-1.c: New test.
536 * testsuite/libgomp.c++/task-7.C: New function.
538 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
540 * configure: Regenerate.
542 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
544 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
545 mutex when HAVE_SYNC_BUILTINS isn't defined.
547 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
549 * libgomp.texi (omp_test_lock): Fix typo.
551 2008-06-12 Tobias Burnus <burnus@net-b.de>
553 * omp_lib.f90.in: Add "implicit none".
555 2008-06-12 Jakub Jelinek <jakub@redhat.com>
558 * testsuite/libgomp.c/reduction-5.c: New test.
560 2008-06-11 Jakub Jelinek <jakub@redhat.com>
562 * libgomp.h (struct gomp_task): Add in_tied_task field.
563 * task.c (gomp_init_task): Initialize it.
564 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
565 unconditionally. Don't call gomp_team_barrier_wake if
566 current task is implicit or if(0) from implicit and number of
567 running tasks is equal to nthreads - 1.
570 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
571 omp_get_team_size_8): Fix pastos.
574 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
575 * configure: Regenerated.
576 * config.h.in: Regenerated.
577 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
580 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
583 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
584 (GOMP_loop_ull_dynamic_start): Likewise.
585 (GOMP_loop_ull_guided_start): Likewise.
586 (GOMP_loop_ull_ordered_static_start): Likewise.
587 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
588 (GOMP_loop_ull_ordered_guided_start): Likewise.
590 2008-06-06 Jakub Jelinek <jakub@redhat.com>
591 Richard Henderson <rth@redhat.com>
592 Ulrich Drepper <drepper@redhat.com>
593 Jakob Blomer <jakob.blomer@ira.uka.de>
595 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
596 Substitute also OMP_*LOCK_25*.
597 * configure: Regenerated.
598 * config.h.in: Regenerated.
599 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
600 ptrlock.c and task.c.
601 * Makefile.in: Regenerated.
602 * testsuite/Makefile.in: Regenerated.
604 * loop_ull.c: New file.
605 * iter_ull.c: New file.
606 * libgomp.h: Include ptrlock.h.
607 (enum gomp_task_kind): New type.
608 (struct gomp_team): Add task_lock, task_queue, task_count,
609 task_running_count, single_count fields. Add
610 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
611 Remove work_share_lock, generation_mask,
612 oldest_live_gen, num_live_gen and init_work_shares fields, add
613 work work_share_list_alloc, work_share_list_free and work_share_chunk
614 fields. Change work_shares from pointer to pointers into an array.
615 Change ordered_release field into gomp_sem_t ** from flexible array
616 member. Add implicit_task and initial_work_shares fields.
617 Move close to the end of the struct.
618 (struct gomp_team_state): Add single_count, last_work_share,
619 active_level and level fields, remove work_share_generation.
620 (gomp_barrier_handle_tasks): New prototype.
621 (gomp_finish_task): New inline function.
622 (struct gomp_work_share): Move chunk_size, end, incr into
623 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
624 next_ll fields. Reshuffle fields. Add next_alloc,
625 next_ws, next_free and inline_ordered_team_ids fields, change
626 ordered_team_ids into pointer from flexible array member.
627 Add mode field. Put lock and next into a different cache line
628 from most of the write-once fields.
629 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
630 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
631 gomp_iter_ull_guided_next): New prototypes.
632 (gomp_new_icv): New prototype.
633 (struct gomp_thread): Add thread_pool and task fields.
634 (struct gomp_thread_pool): New type.
635 (gomp_new_team): New prototype.
636 (gomp_team_start): Change type of last argument.
637 (gomp_new_work_share): Removed.
638 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
639 (gomp_work_share_init_done): New static inline.
640 (gomp_throttled_spin_count_var, gomp_available_cpus,
641 gomp_managed_threads): New extern decls.
642 (gomp_init_task): New prototype.
643 (gomp_spin_count_var): New extern var decl.
644 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
645 or no alias support, or if not PIC.
646 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
647 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
648 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
649 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
650 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
651 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
652 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
653 gomp_test_nest_lock_25): New prototypes.
654 (omp_lock_symver, strong_alias): Define.
655 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
657 (gomp_end_task): New.
658 (struct gomp_task_icv, gomp_global_icv): New.
659 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
660 (struct gomp_task): New.
661 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
662 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
664 (gomp_schedule_type): Reorder enum to match
666 * team.c (struct gomp_thread_start_data): Add thread_pool and task
668 (gomp_thread_start): Add gomp_team_barrier_wait call.
669 For non-nested case remove clearing of docked thread thr fields.
670 Use pool fields instead of global gomp_* variables. Use
671 gomp_barrier_wait_last when needed. Initialize ts.active_level.
672 Create tasks for each member thread.
673 (free_team): Only destroy team barrier, task_lock here and free it.
674 (gomp_free_thread): Free last_team if non-NULL.
675 (gomp_team_end): Call gomp_team_barrier_wait instead of
676 gomp_barrier_wait. For nested case call one extra
677 gomp_barrier_wait. Move here some destruction from free_team.
678 Call free_team on pool->last_team if any, rather than freeing
679 current team. Destroy work_share_list_free_lock ifndef
681 (gomp_new_icv): New function.
682 (gomp_threads, gomp_threads_size, gomp_threads_used,
683 gomp_threads_dock): Removed.
684 (gomp_thread_destructor): New variable.
685 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
687 (gomp_team_start): Create new pool if current thread doesn't have
688 one. Use pool fields instead of global gomp_* variables.
689 Initialize thread_pool field for new threads. Clear single_count.
690 Change last argument from ws to team, don't create
691 new team, set ts.work_share to &team->work_shares[0] and clear
692 ts.last_work_share. Don't clear ts.work_share_generation.
693 If number of threads changed, adjust atomically gomp_managed_threads.
694 Use gomp_init_task instead of gomp_new_task,
695 set thr->task to the corresponding implicit_task array entry.
696 Create tasks for each member thread. Initialize ts.level.
697 (initialize_team): Call pthread_key_create on
698 gomp_thread_destructor.
699 (team_destructor): New function.
701 (gomp_new_team): New function.
702 (free_team): Free gomp_work_share blocks chained through next_alloc,
703 instead of freeing work_shares and destroying work_share_lock.
704 (gomp_team_end): Call gomp_fini_work_share. If number of threads
705 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
706 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
707 of gomp_barrier_wait.
708 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
709 instead of gomp_barrier_wait. Call gomp_work_share_init_done
710 if gomp_work_share_start returned true. Don't unlock ws->lock.
711 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
712 of gomp_barrier_wait.
713 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
714 gomp_work_share_init_done if gomp_work_share_start returned true.
715 Don't unlock ws->lock.
716 * work.c: Include stddef.h.
717 (free_work_share): Use work_share_list_free_lock instead
718 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
719 Call gomp_fini_work_share and then either free ws if orphaned, or
720 put it into work_share_list_free list of the current team.
721 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
723 (gomp_work_share_start, gomp_work_share_end,
724 gomp_work_share_end_nowait): Rewritten.
725 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
726 (openmp_version): Set to 200805.
727 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
728 omp_sched_guided, omp_sched_auto): New parameters.
729 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
730 omp_set_max_active_levels, omp_get_max_active_levels,
731 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
732 omp_get_active_level): New interfaces.
733 * omp_lib.h.in (openmp_version): Set to 200805.
734 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
735 omp_sched_guided, omp_sched_auto): New parameters.
736 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
737 omp_set_max_active_levels, omp_get_max_active_levels,
738 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
739 omp_get_active_level): New externals.
740 * loop.c: Include limits.h.
741 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
743 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
744 Likewise. Use gomp_icv.
745 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
747 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
748 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
749 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
750 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
751 don't unlock ws->lock, otherwise lock it.
752 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
753 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
754 (gomp_parallel_loop_start): Call gomp_new_team instead of
755 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
756 Adjust gomp_team_start caller. Pass 0 as second argument to
757 gomp_resolve_num_threads.
758 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
759 If adding ws->chunk_size nthreads + 1 times after end won't
760 overflow, set ws->mode to 1.
761 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
762 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
763 GOMP_loop_ull_ordered_static_start,
764 GOMP_loop_ull_ordered_dynamic_start,
765 GOMP_loop_ull_ordered_guided_start,
766 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
767 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
768 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
769 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
770 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
772 * libgomp.map: Export lock routines also @@OMP_2.0.
773 (GOMP_loop_ordered_dynamic_first,
774 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
775 GOMP_loop_ordered_static_first): Remove.
776 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
777 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
778 GOMP_loop_ull_ordered_dynamic_next,
779 GOMP_loop_ull_ordered_dynamic_start,
780 GOMP_loop_ull_ordered_guided_next,
781 GOMP_loop_ull_ordered_guided_start,
782 GOMP_loop_ull_ordered_runtime_next,
783 GOMP_loop_ull_ordered_runtime_start,
784 GOMP_loop_ull_ordered_static_next,
785 GOMP_loop_ull_ordered_static_start,
786 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
787 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
788 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
789 (omp_set_schedule, omp_get_schedule,
790 omp_get_thread_limit, omp_set_max_active_levels,
791 omp_get_max_active_levels, omp_get_level,
792 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
793 omp_set_schedule_, omp_set_schedule_8_,
794 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
795 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
796 omp_get_max_active_levels_, omp_get_level_,
797 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
798 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
799 New exports @@OMP_3.0.
800 * omp.h.in (omp_sched_t): New type.
801 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
802 omp_set_max_active_levels, omp_get_max_active_levels,
803 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
804 omp_get_active_level): New prototypes.
805 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
806 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
807 gomp_thread_limit_var, gomp_remaining_threads_count,
808 gomp_remaining_threads_lock): New variables.
809 (parse_spincount): New function.
810 (initialize_env): Call gomp_init_num_threads unconditionally.
811 Initialize gomp_available_cpus. Call parse_spincount,
812 initialize gomp_{,throttled_}spin_count_var
813 depending on presence and value of OMP_WAIT_POLICY and
814 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
815 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
816 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
817 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
818 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
819 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
820 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
821 (gomp_global_icv): New.
822 (parse_schedule): Use it. Parse "auto".
823 (omp_set_num_threads): Use gomp_icv.
824 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
826 (omp_get_max_threads): Move from parallel.c.
827 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
828 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
830 (parse_stacksize, parse_wait_policy): New functions.
831 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
832 both wrappers for compatibility and new locks.
833 (omp_set_schedule, omp_get_schedule,
834 omp_get_thread_limit, omp_set_max_active_levels,
835 omp_get_max_active_levels, omp_get_level,
836 omp_get_ancestor_thread_num, omp_get_team_size,
837 omp_get_active_level): New ialias_redirect.
838 (omp_set_schedule_, omp_set_schedule_8_,
839 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
840 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
841 omp_get_max_active_levels_, omp_get_level_,
842 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
843 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
845 * parallel.c: Include limits.h.
846 (gomp_resolve_num_threads): Add count argument. Rewritten.
847 (GOMP_parallel_start): Call gomp_new_team and pass that as last
848 argument to gomp_team_start. Pass 0 as second argument to
849 gomp_resolve_num_threads.
850 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
851 if gomp_thread_limit_var != ULONG_MAX.
852 (omp_in_parallel): Implement using ts.active_level.
853 (omp_get_max_threads): Move to env.c.
854 (omp_get_level, omp_get_ancestor_thread_num,
855 omp_get_team_size, omp_get_active_level): New functions,
857 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
858 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
859 gomp_iter_dynamic_next instead of the _locked variant and don't take
860 lock around it, otherwise acquire it before calling
861 gomp_iter_dynamic_next_locked.
862 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
863 gomp_iter_dynamic_next instead of the _locked variant and don't take
865 (GOMP_parallel_sections_start): Call gomp_new_team instead of
866 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
867 Adjust gomp_team_start caller. Pass count as second argument to
868 gomp_resolve_num_threads, don't adjust num_threads after the call.
870 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
871 ws->chunk_size by incr.
872 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
874 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
876 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
877 (omp_check_defines): Check even the compat defines.
878 * config/linux/ptrlock.c: New file.
879 * config/linux/ptrlock.h: New file.
880 * config/linux/wait.h: New file.
881 * config/posix/ptrlock.c: New file.
882 * config/posix/ptrlock.h: New file.
883 * config/linux/bar.h (gomp_team_barrier_wait,
884 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
885 (gomp_team_barrier_set_task_pending,
886 gomp_team_barrier_clear_task_pending,
887 gomp_team_barrier_set_waiting_for_tasks,
888 gomp_team_barrier_waiting_for_tasks,
889 gomp_team_barrier_done): New inlines.
890 (gomp_barrier_t): Rewritten.
891 (gomp_barrier_state_t): New typedef.
892 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
893 gomp_barrier_wait_start): Rewritten.
894 (gomp_barrier_wait_end): Change second argument to
895 gomp_barrier_state_t.
896 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
898 * config/linux/bar.c: Include wait.h instead of libgomp.h and
900 (gomp_barrier_wait_end): Rewritten.
901 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
902 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
903 * config/posix/bar.h (gomp_barrier_t): Add generation field.
904 (gomp_barrier_state_t): New typedef.
905 (gomp_team_barrier_wait,
906 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
907 (gomp_barrier_wait_start): Or all but low 2 bits from generation
908 into the return value. Return gomp_barrier_state_t.
909 (gomp_team_barrier_set_task_pending,
910 gomp_team_barrier_clear_task_pending,
911 gomp_team_barrier_set_waiting_for_tasks,
912 gomp_team_barrier_waiting_for_tasks,
913 gomp_team_barrier_done): New inlines.
914 (gomp_barrier_wait_end): Change second argument to
915 gomp_barrier_state_t.
916 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
918 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
919 (gomp_barrier_wait_end): Change second argument to
920 gomp_barrier_state_t.
921 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
922 gomp_team_barrier_wake): New functions.
923 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
925 (gomp_futex_wake, gomp_futex_wait): New variables.
926 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
927 * config/linux/lock.c: Rewrite to make locks task owned,
928 for backwards compatibility provide the old entrypoints
929 if symbol versioning. Include wait.h instead of libgomp.h and
931 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
932 * config/posix95/lock.c: Rewrite to make locks task owned,
933 for backwards compatibility provide the old entrypoints
934 if symbol versioning.
935 * config/posix/lock.c: Rewrite to make locks task owned,
936 for backwards compatibility provide the old entrypoints
937 if symbol versioning.
938 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
939 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
940 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
941 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
942 (sys_futex0): Return error code.
943 (futex_wake, futex_wait): If ENOSYS was returned, clear
944 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
945 (cpu_relax, atomic_write_barrier): New static inlines.
946 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
947 (futex_wake, futex_wait): If ENOSYS was returned, clear
948 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
949 (cpu_relax, atomic_write_barrier): New static inlines.
950 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
951 (sys_futex0): Return error code.
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/s390/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/ia64/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/sparc/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/sem.c: Include wait.h instead of libgomp.h and
972 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
973 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
974 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
976 (omp_nest_lock_t): Change owner into void *, add lock field.
977 * config/posix95/omp-lock.h: Include semaphore.h.
978 (omp_lock_25_t, omp_nest_lock_25_t): New types.
979 (omp_lock_t): Use sem_t instead of mutex if semaphores
981 (omp_nest_lock_t): Likewise. Change owner to void *.
982 * config/posix/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. Add owner field.
988 2008-06-06 Jakub Jelinek <jakub@redhat.com>
990 * testsuite/libgomp.c/collapse-1.c: New test.
991 * testsuite/libgomp.c/collapse-2.c: New test.
992 * testsuite/libgomp.c/collapse-3.c: New test.
993 * testsuite/libgomp.c/icv-1.c: New test.
994 * testsuite/libgomp.c/icv-2.c: New test.
995 * testsuite/libgomp.c/lib-2.c: New test.
996 * testsuite/libgomp.c/lock-1.c: New test.
997 * testsuite/libgomp.c/lock-2.c: New test.
998 * testsuite/libgomp.c/lock-3.c: New test.
999 * testsuite/libgomp.c/loop-4.c: New test.
1000 * testsuite/libgomp.c/loop-5.c: New test.
1001 * testsuite/libgomp.c/loop-6.c: New test.
1002 * testsuite/libgomp.c/loop-7.c: New test.
1003 * testsuite/libgomp.c/loop-8.c: New test.
1004 * testsuite/libgomp.c/loop-9.c: New test.
1005 * testsuite/libgomp.c/nested-3.c: New test.
1006 * testsuite/libgomp.c/nestedfn-6.c: New test.
1007 * testsuite/libgomp.c/sort-1.c: New test.
1008 * testsuite/libgomp.c/task-1.c: New test.
1009 * testsuite/libgomp.c/task-2.c: New test.
1010 * testsuite/libgomp.c/task-3.c: New test.
1011 * testsuite/libgomp.c/task-4.c: New test.
1012 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1013 to C++ testsuite default compiler options.
1014 * testsuite/libgomp.c++/collapse-1.C: New test.
1015 * testsuite/libgomp.c++/collapse-2.C: New test.
1016 * testsuite/libgomp.c++/ctor-10.C: New test.
1017 * testsuite/libgomp.c++/for-1.C: New test.
1018 * testsuite/libgomp.c++/for-2.C: New test.
1019 * testsuite/libgomp.c++/for-3.C: New test.
1020 * testsuite/libgomp.c++/for-4.C: New test.
1021 * testsuite/libgomp.c++/for-5.C: New test.
1022 * testsuite/libgomp.c++/loop-8.C: New test.
1023 * testsuite/libgomp.c++/loop-9.C: New test.
1024 * testsuite/libgomp.c++/loop-10.C: New test.
1025 * testsuite/libgomp.c++/task-1.C: New test.
1026 * testsuite/libgomp.c++/task-2.C: New test.
1027 * testsuite/libgomp.c++/task-3.C: New test.
1028 * testsuite/libgomp.c++/task-4.C: New test.
1029 * testsuite/libgomp.c++/task-5.C: New test.
1030 * testsuite/libgomp.c++/task-6.C: New test.
1031 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1032 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1033 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1034 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1035 * testsuite/libgomp.fortran/collapse1.f90: New test.
1036 * testsuite/libgomp.fortran/collapse2.f90: New test.
1037 * testsuite/libgomp.fortran/collapse3.f90: New test.
1038 * testsuite/libgomp.fortran/collapse4.f90: New test.
1039 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1040 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1041 * testsuite/libgomp.fortran/lib4.f90: New test.
1042 * testsuite/libgomp.fortran/lock-1.f90: New test.
1043 * testsuite/libgomp.fortran/lock-2.f90: New test.
1044 * testsuite/libgomp.fortran/nested1.f90: New test.
1045 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1046 * testsuite/libgomp.fortran/strassen.f90: New test.
1047 * testsuite/libgomp.fortran/tabs1.f90: New test.
1048 * testsuite/libgomp.fortran/tabs2.f: New test.
1049 * testsuite/libgomp.fortran/task1.f90: New test.
1050 * testsuite/libgomp.fortran/task2.f90: New test.
1051 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1052 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1053 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1054 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1055 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1057 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1060 * testsuite/libgomp.c++/ctor-11.C: New test.
1061 * testsuite/libgomp.c++/ctor-12.C: New test.
1063 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1065 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1067 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1070 * testsuite/libgomp.c/atomic-5.c: New test.
1071 * testsuite/libgomp.c/atomic-6.c: New test.
1072 * testsuite/libgomp.c/autopar-1.c: New test.
1074 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1076 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1077 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1078 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1079 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1080 * configure: Regenerate.
1081 * Makefile.in, testsuite/Makefile.in: Likewise.
1083 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1086 * aclocal.m4: Regenerate.
1087 * configure: Regenerate.
1089 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1092 * testsuite/libgomp.c/atomic-4.c: New test.
1095 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1096 (gomp_iter_guided_next): Likewise.
1097 * testsuite/libgomp.c/pr35625.c: New test.
1099 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1101 * aclocal.m4: Regenerate.
1102 * configure: Likewise.
1103 * Makefile.in: Likewise.
1104 * testsuite/Makefile.in: Likewise.
1106 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1109 * testsuite/libgomp.c++/pr35185.C: New test.
1111 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1114 * testsuite/libgomp.c/pr35549.c: New test.
1116 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1118 * testsuite/libgomp.c/atomic-3.c: New test.
1120 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1123 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1126 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1129 * configure.ac: Add ACX_HEADER_STRING.
1130 * env.c: Include strings.h.
1131 * aclocal.m4: Regenerate.
1132 * config.h.in: Regenerate.
1133 * configure: Regenerate.
1134 * Makefile.in: Regenerate.
1135 * testsuite/Makefile.in: Regenerate.
1137 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1140 * testsuite/libgomp.c/pr35196.c: New test.
1143 * testsuite/libgomp.fortran/pr35130.f90: New test.
1144 * testsuite/libgomp.c/pr35130.c: New test.
1146 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1149 * testsuite/libgomp.c/pr33880.c: New test.
1150 * testsuite/libgomp.fortran/pr33880.f90: New test.
1152 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1154 * configure: Regenerate.
1156 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1158 * configure.ac: Move futex checking into ../config/futex.m4.
1159 * configure: Rebuilt.
1160 * aclocal.m4: Rebuilt.
1161 * Makefile.in: Rebuilt.
1163 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1164 2007-10-15 ../config/tls.m4 change.
1166 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1169 * testsuite/libgomp.c/pr34513.c: New test.
1170 * testsuite/libgomp.c++/pr34513.C: New test.
1172 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1175 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1177 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1179 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1181 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1183 * testsuite/libgomp.c/private-1.c: New test.
1185 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1186 Paolo Bonzini <bonzini@gnu.org>
1188 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1189 instead of 'VPATH ='.
1190 * Makefile.in: Regenerate.
1192 2007-11-23 Matthias Klose <doko@ubuntu.com>
1194 * configure.ac: Adjust makeinfo version check.
1195 * configure: Regenerate.
1197 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1200 * testsuite/libgomp.fortran/pr34020.f90: New test.
1202 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1205 * testsuite/libgomp.c++/atomic-1.C: New test.
1207 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1210 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1211 Make x and y integers rather than (implicit) reals. Add private (j)
1212 clause to the last omp parallel.
1214 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1216 * configure: Regenerate following changes to ../config/tls.m4.
1218 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1220 * testsuite/libgomp.fortran/stack.f90: New test.
1222 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1224 * config/mingw32/proc.c: New file.
1226 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1228 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1229 (main): Use __get_cpuid to get i386 target fetaures.
1230 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1231 (main): Use __get_cpuid to get x86_64 target fetaures.
1233 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1236 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1237 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1239 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1242 * testsuite/libgomp.fortran/pr32550.f90: New test.
1243 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1245 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1247 * aclocal.m4: Regenerated.
1249 2007-07-05 Tobias Burnus <burnus@net-b.de>
1252 * testsuite/libgomp.fortran/pr32359.f90: New.
1254 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1257 * sections.c (GOMP_parallel_sections_start): Only decrease
1258 number of threads to COUNT if dyn_var is true.
1259 * testsuite/libgomp.c/pr32468.c: New test.
1261 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1264 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1266 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1269 * testsuite/libgomp.c/pr32362-1.c: New test.
1270 * testsuite/libgomp.c/pr32362-2.c: New test.
1271 * testsuite/libgomp.c/pr32362-3.c: New test.
1273 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1275 * team.c (gomp_team_start): Fix setting up thread_attr
1278 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1280 * configure: Regenerate.
1282 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1284 * Makefile.in: Regenerate.
1285 * configure: Regenerate.
1286 * aclocal.m4: Regenerate.
1287 * testsuite/Makefile.in: Regenerate.
1289 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1291 * config/linux/proc.c: New file.
1294 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1296 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1298 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1300 2007-04-16 Matthias Klose <doko@debian.org>
1302 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1303 flags if not building with -m64.
1304 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1305 flag for i?86-*-* targets, if current target matches -m64.
1307 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1309 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1310 * Makefile.in: Regenerate.
1312 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1315 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1317 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1319 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1321 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1323 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1324 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1325 (parse_affinity): New function.
1326 (initialize_env): Call it and gomp_init_affinity.
1327 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1328 create new pthread_attr_t and call gomp_init_thread_affinity
1329 on it for each thread before passing the attribute to pthread_create.
1330 * config/linux/affinity.c: New file.
1331 * config/posix/affinity.c: New file.
1332 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1333 * configure: Rebuilt.
1334 * config.h.in: Rebuilt.
1335 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1336 * Makefile.in: Rebuilt.
1338 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1340 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1342 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1343 and use it if found.
1345 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1347 * testsuite/config/default.exp: New file.
1348 * testsuite/lib/libgomp.exp: New file.
1349 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1350 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1351 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1352 (libgomp_load): Remove.
1353 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1354 always_ld_library_path, not ld_library_path. Set additional_flags
1355 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1356 (target_compile): Do not call libgomp_init. Append lang_library_path
1357 and lang_link_flags to options.
1358 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1359 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1361 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1362 always_ld_library_path. Set LD_LIBRARY_PATH here.
1363 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1364 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1365 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1367 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1368 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1369 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1370 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1371 * testsuite/libgomp.c/atomic-10.c: Ditto.
1373 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1375 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1376 dg-final cleanup-modules line.
1377 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1378 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1379 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1380 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1381 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1382 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1383 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1385 2007-03-18 Andreas Schwab <schwab@suse.de>
1387 * acinclude.m4: Adjust regular expression for ld version
1389 * configure: Regenerate.
1391 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1393 * Makefile.am: Add install-pdf target as copied from
1394 automake v1.10 rules.
1395 * Makefile.in: Regenerate
1397 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1400 * configure: Regenerate.
1403 * testsuite/libgomp.c++/pr30703.C: New test.
1405 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1408 2006-07-05 Eric Christopher <echristo@apple.com>
1409 * configure.ac: Depend addition of -pthread on host OS.
1410 * configure: Regenerate.
1412 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1414 * libgomp.texi: Fix spacing after abbreviations.
1416 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1419 * configure.ac: Add check for makeinfo
1420 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1421 if an appropiate version of makeinfo is found.
1422 * aclocal.m4: Regenerated.
1423 * configure: Regenerated.
1424 * Makefile.in: Regenerated.
1425 * testsuite/Makefile.in: Regenerated.
1427 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1430 * libgomp.texi: More about implementation-dependent settings.
1432 2007-01-26 Tobias Burnus <burnus@net-b.de>
1434 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1436 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1439 * testsuite/libgomp.c/pr30494.c: New test.
1441 2007-01-15 Tom Tromey <tromey@redhat.com>
1443 * configure: Rebuilt.
1444 * configure.ac: Fixed comment.
1446 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1448 * libgomp.texi: Document implementation specific default values of
1449 environment variables.
1451 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1454 * libgomp.texi: New file.
1455 * configure.ac: Add --enable-generated-files-in-srcdir option.
1456 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1458 * Makefile.in: Regenerated.
1459 * config.h.in: Regenerated.
1460 * testsuite/Makefile.in: Regenerated.
1463 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1466 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1468 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1470 * configure: Regenerate.
1472 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1475 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1476 start if there shouldn't be any loop iterations.
1477 (gomp_loop_ordered_static_start): Remove start == end test.
1478 * testsuite/libgomp.c/pr29947-1.c: New test.
1479 * testsuite/libgomp.c/pr29947-2.c: New test.
1481 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1483 * configure.tgt: Force initial-exec TLS model on Linux only.
1485 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1487 * configure: Regenerated.
1489 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1491 * env.c (parse_schedule): Reject out of range values.
1492 (parse_unsigned_long): Reject out of range, negative or zero values.
1494 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1497 * testsuite/libgomp.fortran/pr29629.f90: New test.
1499 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1502 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1503 * config/posix95: New directory.
1504 * config/posix95/omp-lock.h: New file.
1505 * config/posix95/lock.c: Likewise.
1507 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1509 * aclocal.m4: Regenerate.
1510 * configure: Regenerate.
1512 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1514 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1517 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1519 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1521 * configure: Regenerate.
1522 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1524 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1528 * testsuite/libgomp.c/nestedfn-4.c: New test.
1529 * testsuite/libgomp.c/nestedfn-5.c: New test.
1530 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1533 * testsuite/libgomp.fortran/condinc1.f: New test.
1534 * testsuite/libgomp.fortran/condinc2.f: New test.
1535 * testsuite/libgomp.fortran/condinc3.f90: New test.
1536 * testsuite/libgomp.fortran/condinc4.f90: New test.
1537 * testsuite/libgomp.fortran/condinc1.inc: New file.
1539 2006-09-18 Tom Tromey <tromey@redhat.com>
1541 * configure: Rebuilt.
1543 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1546 PR preprocessor/14634
1547 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1549 * configure: Regenerate.
1551 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1553 * testsuite/libgomp.fortran/reduction3.f90: Change
1554 -2147483648 to -huge(i)-1 to avoid overflow.
1555 * testsuite/libgomp.fortran/reduction4.f90: Change
1556 Z'ffffffff' to not(0) to avoid overflow.
1558 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1561 * Makefile.am (libsubincludedir): New.
1562 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1563 * Makefile.in: Regenerate.
1565 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1568 * env.c: Include ctype.h.
1569 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1570 leading and/or trailing whitespace and compare strings case
1573 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1576 * testsuite/libgomp.fortran/pr28390.f: New test.
1578 2006-07-05 Eric Christopher <echristo@apple.com>
1580 * configure.ac: Depend addition of -pthread on host OS.
1581 * configure: Regenerate.
1583 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1585 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1586 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1589 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1593 * configure.ac: If neither --enable-linux-futex nor
1594 --disable-linux-futex is passed, determine the default by checking
1595 for compiling and/or running against NPTL. With --enable-linux-futex,
1596 check if SYS_gettid and SYS_futex are defined.
1597 * configure: Rebuilt.
1599 2006-06-14 Richard Henderson <rth@redhat.com>
1602 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1603 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1605 2006-06-09 Richard Henderson <rth@redhat.com>
1607 * env.c (gomp_nthreads_var): Change to unsigned long.
1608 (gomp_run_sched_chunk): Likewise.
1609 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1610 (initialize_env): Initialize gomp_thread_attr.
1611 * libgomp.h (gomp_nthreads_var): Update decl.
1612 (gomp_run_sched_chunk): Likewise.
1613 (gomp_thread_attr): Declare.
1614 * team.c (gomp_thread_attr): Export.
1615 (initialize_team): Don't initialize it.
1617 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1620 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1621 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1623 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1625 * config/mingw32/time.c: New file.
1626 * configure.tgt: Use it.
1628 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1630 * Makefile.am: Add install-html target. Add install-html to .PHONY
1631 * Makefile.in: Regenerate.
1633 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1636 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1637 * testsuite/libgomp.c/critical-1.c: Likewise.
1638 * testsuite/libgomp.c/loop-1.c: Likewise.
1639 * testsuite/libgomp.c/loop-2.c: Likewise.
1640 * testsuite/libgomp.c/single-1.c: Likewise.
1641 * testsuite/libgomp.c/ordered-1.c: Likewise.
1642 * testsuite/libgomp.c/ordered-2.c: Likewise.
1644 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1647 * libgomp.fortran/pr27416-1.f90: New test.
1649 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1652 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1653 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1655 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1658 * testsuite/libgomp.c/pr26943-1.c: New test.
1659 * testsuite/libgomp.c/pr26943-2.c: New test.
1660 * testsuite/libgomp.c/pr26943-3.c: New test.
1661 * testsuite/libgomp.c/pr26943-4.c: New test.
1662 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1663 * testsuite/libgomp.c++/pr26943.C: New test.
1665 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1668 * testsuite/libgomp.c++/pr27337.C: New test.
1670 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1673 * testsuite/libgomp.c/pr26171.c: New test.
1675 2006-04-25 Richard Henderson <rth@redhat.com>
1678 * configure.ac: Use GCC_CHECK_TLS.
1679 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1680 * Makefile.in, aclocal.m4, configure: Regenerate.
1682 2006-04-10 Matthias Klose <doko@debian.org>
1684 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1685 directory names containing underscores.
1687 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1690 * testsuite/libgomp.c++/pr26691.C: New test.
1692 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1694 * testsuite/libgomp.fortran/retval2.f90: New test.
1696 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1698 * testsuite/libgomp.c++: New directory.
1700 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1702 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1703 * config/posix/sem.c: Implement the above.
1705 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1707 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1708 define HAVE_BROKEN_POSIX_SEMAPHORES.
1709 * configure: Rebuilt.
1710 * config.h.in: Rebuilt.
1712 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1715 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1716 for the other pthread check.
1717 * configure: Regenerate.
1718 * config.h.in: Regenerate.
1720 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1724 * Makefile.am (fincludedir): New variable.
1725 (nodist_include_HEADERS): Remove Fortran files.
1726 (nodist_finclude_HEADERS): New variable.
1727 * Makefile.in: Regenerated.
1729 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1731 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1732 Remove tests for returning assumed character length arrays.
1734 2006-02-12 Roger Sayle <roger@eyesopen.com>
1735 John David Anglin <dave@hiauly1.hia.nrc.ca>
1738 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1740 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1742 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1744 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1746 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1747 part of LD_LIBRARY_PATH manually.
1749 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1752 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1755 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1758 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1759 * configure.ac (PERL): Don't set.
1760 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1761 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1762 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1763 * omp.h.in: Wrap the new configure substitutions with @ characters.
1764 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1765 * aclocal.m4, configure, Makefile.in: Regenerate.
1766 * mkomp_h.pl: Delete.
1768 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1771 * configure.ac: Use GCC_HEADER_STDINT.
1772 * libgomp.h: Include gstdint.h.
1773 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1774 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1776 2006-01-24 Richard Henderson <rth@redhat.com>
1779 * configure.ac: Add AM_MAINTAINER_MODE.
1780 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1782 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1784 * Makefile.in: Regenerate.
1785 * testsuite/Makefile.in: Regenerate.
1786 * aclocal.m4: Regenerate.
1788 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1790 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1792 * configure.ac: Add check for loadavg.h.
1793 (link_gomp): Adjust comment.
1794 * configure: Regenerate.
1795 * config.h.in: Regenerate.
1797 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1800 * configure.ac: Remove check for alloca.h.
1801 * configure: Regenerate.
1802 * config.h.in: Regenerate.
1803 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1804 * team.c: Remove use of alloca.h.
1805 Call gomp_alloca instead of alloca.
1807 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1810 * team.c: Add include of alloca.h.
1811 * configure.ac: Add check for alloca.h.
1812 * configure: Regenerate.
1813 * config.h.in: Regenerate.
1815 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1818 * testsuite/libgomp.fortran/pr25219.f90: New test.
1820 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1822 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1823 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1824 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1825 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1826 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1827 testsuite/libgomp.fortran/threadprivate1.f90,
1828 testsuite/libgomp.fortran/threadprivate2.f90,
1829 testsuite/libgomp.fortran/threadprivate3.f90,
1830 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1831 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1832 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1833 effective-target to TLS runtime.
1835 * testsuite/libgomp.fortran/pr25162.f: Require
1836 effective-target TLS runtime.
1838 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1840 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1841 * testsuite/libgomp.c/nestedfn-3.c: New test.
1843 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1846 * testsuite/libgomp.fortran/pr25162.f: New test.
1848 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1850 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1851 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1853 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1855 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1856 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1857 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1858 single.c, team.c, work.c, config/linux/alpha/futex.h,
1859 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1860 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1861 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1862 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1863 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1864 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1865 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1868 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1870 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1871 to nodist_noinst_HEADERS.
1872 * Makefile.in: Rebuilt.
1874 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1875 add integer count field.
1876 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1877 omp_nest_lock_t type change.
1878 (omp_init_nest_lock): Likewise. Initialize count to 0.
1879 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1881 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1883 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1884 Increment count if successful and return the new nesting level.
1885 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1886 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1887 * testsuite/libgomp.c/lib-1.c: New test.
1888 * testsuite/libgomp.fortran/lib1.f90: New test.
1889 * testsuite/libgomp.fortran/lib2.f: New test.
1890 * testsuite/libgomp.fortran/lib3.f: New test.
1892 2005-11-17 Richard Henderson <rth@redhat.com>
1895 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1896 * configure.ac (link_gomp): New. Substitute it.
1897 (AC_CONFIG_FILES): Add libgomp.spec.
1898 * libgomp.spec.in: New file.
1899 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1900 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1902 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1904 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1905 reduction(-:var) behaving the same as reduction(+:var).
1906 * testsuite/libgomp.c/reduction-4.c: New test.
1908 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1910 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1911 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1912 testsuite/libgomp.c/copyin-3.c,
1913 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1914 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1915 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1916 testsuite/libgomp.c++/pr24455.C,
1917 testsuite/libgomp.fortran/threadprivate1.f90,
1918 testsuite/libgomp.fortran/threadprivate2.f90,
1919 testsuite/libgomp.fortran/threadprivate3.f90,
1920 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1921 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1922 testsuite/libgomp.fortran/omp_parse3.f90: Require
1923 effective-target TLS.
1925 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1929 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1932 * team.c (initialize_team): Pass NULL rather than free as
1933 pthread_key_create destructor. Initialize thread specific data
1934 pointer in initial thread to a static local variable rather than
1937 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1939 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1940 its location to ld_library_path.
1942 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1944 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1946 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1948 * testsuite/libgomp.c: Rename from libgomp.dg.
1950 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1952 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1953 threadprivate variable 'i'.
1955 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1957 * config/linux/s390/futex.h: New file.
1958 * configure.tgt: Use it.
1960 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1961 before the parallel.
1963 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1966 * testsuite/libgomp.c++/master-1.C: New test.
1968 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1970 * testsuite/libgomp.dg/copyin-3.c: New test.
1972 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1974 * testsuite/libgomp.fortran/retval1.f90: New test.
1975 * testsuite/libgomp.fortran/vla7.f90: New test.
1977 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1979 * testsuite/libgomp.fortran/vla2.f90: New test.
1980 * testsuite/libgomp.fortran/vla3.f90: New test.
1981 * testsuite/libgomp.fortran/vla4.f90: New test.
1982 * testsuite/libgomp.fortran/vla5.f90: New test.
1983 * testsuite/libgomp.fortran/vla6.f90: New test.
1985 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1987 * config/linux/sparc/futex.h: New file.
1988 * configure.tgt: Use it.
1989 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1991 * critical.c: Include stdlib.h.
1992 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1993 ignoring return value.
1994 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1995 LIBGOMP_CHECK_SYNC_BUILTINS check.
1996 * configure: Rebuilt.
1998 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2000 * testsuite/libgomp.fortran/vla1.f90: New test.
2002 2005-10-31 Richard Henderson <rth@redhat.com>
2004 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2005 setting 's' in different threads.
2007 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2009 * libgomp.h (attribute_hidden, ialias): Define.
2010 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2011 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2012 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2013 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2014 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2015 omp_test_lock, omp_test_nest_lock): Likewise.
2016 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2017 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2018 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2019 omp_test_lock, omp_test_nest_lock): Likewise.
2020 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2021 omp_get_dynamic, omp_get_nested): Likewise.
2022 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2023 omp_get_thread_num, omp_in_parallel): Likewise.
2024 * fortran.c (ialias_redirect): Define.
2025 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2026 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2027 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2028 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2029 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2030 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2031 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2032 omp_get_wtime): Add ialias_redirect.
2034 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2036 * fortran.c: Include stdlib.h.
2038 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2040 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2041 * Makefile.in: Regenerated.
2043 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2045 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2046 * libgomp_f.h.in (omp_check_defines): New function.
2047 * env.c: Include libgomp_f.h.
2048 (initialize_env): Call omp_check_defines.
2050 * testsuite/libgomp.dg/copyin-2.c: New test.
2051 * testsuite/libgomp.c++/copyin-2.C: New test.
2052 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2054 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2055 * testsuite/libgomp.fortran/sharing2.f90: New test.
2057 * testsuite/libgomp.dg/copyin-1.c: New test.
2058 * testsuite/libgomp.c++/copyin-1.C: New test.
2060 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2062 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2064 * testsuite/libgomp.fortran/workshare1.f90: New test.
2066 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2068 * libgomp.fortran/sharing1.f90: New test.
2070 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2073 * testsuite/libgomp.c++/loop-7.C: New test.
2075 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2077 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2078 * testsuite/libgomp.fortran/reduction6.f90: New test.
2079 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2081 2005-10-23 Richard Henderson <rth@redhat.com>
2083 * testsuite/libgomp.c++/ctor-1.C: New.
2084 * testsuite/libgomp.c++/ctor-2.C: New.
2085 * testsuite/libgomp.c++/ctor-3.C: New.
2086 * testsuite/libgomp.c++/ctor-4.C: New.
2087 * testsuite/libgomp.c++/ctor-5.C: New.
2088 * testsuite/libgomp.c++/ctor-6.C: New.
2089 * testsuite/libgomp.c++/ctor-7.C: New.
2090 * testsuite/libgomp.c++/ctor-8.C: New.
2091 * testsuite/libgomp.c++/ctor-9.C: New.
2093 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2096 * testsuite/libgomp.c++/pr24455-1.C: New test.
2097 * testsuite/libgomp.c++/pr24455.C: New test.
2098 * testsuite/libgomp.dg/pr24455-1.c: New test.
2099 * testsuite/libgomp.dg/pr24455.c: New test.
2101 2005-10-20 Richard Henderson <rth@redhat.com>
2103 * testsuite/libgomp.c++/loop-6.C: New.
2104 * testsuite/libgomp.dg/loop-3.c: New.
2106 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2108 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2110 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2113 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2115 * testsuite/libgomp.fortran/jacobi.f: New test.
2117 2005-10-19 Richard Henderson <rth@redhat.com>
2119 * configure.tgt (i?86-linux): Default to with_arch instead of
2120 CFLAGS. Add -mtune to match target_cpu.
2121 (x86_64-linux): Tune to i686.
2123 * fortran.c (omp_test_nest_lock_): Fix typo.
2125 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2127 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2128 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2129 * testsuite/libgomp.dg/ordered-3.c: New test.
2131 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2132 Remove volatile keyword.
2134 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2135 in COMMON block to avoid warnings on 64-bit targets.
2137 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2139 * testsuite/libgomp.dg/shared-3.c: New test.
2141 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2143 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2144 * testsuite/libgomp.fortran/reduction5.f90: New test.
2146 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2148 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2150 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2151 flush loop now that __sync_synchronize has proper memory barrier.
2152 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2153 Add -ffixed-form to dg-options.
2155 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2157 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2158 from subdirectories.
2159 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2160 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2161 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2162 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2163 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2164 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2165 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2166 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2167 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2168 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2169 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2170 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2171 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2172 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2173 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2174 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2175 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2176 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2177 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2178 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2179 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2180 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2181 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2182 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2183 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2185 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2187 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2188 lang_library_path exists. Use find instead of glob to gather tests.
2189 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2191 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2193 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2194 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2195 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2196 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2197 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2198 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2199 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2200 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2201 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2202 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2203 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2204 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2205 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2207 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2209 * testsuite/libgomp.dg/vla-1.c: New test.
2211 * testsuite/libgomp.fortran/reference2.f90: New test.
2213 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2214 declaration of omp_get_thread_num.
2215 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2218 * testsuite/libgomp.fortran/reduction1.f90: New test.
2219 * testsuite/libgomp.fortran/reduction2.f90: New test.
2220 * testsuite/libgomp.fortran/reduction3.f90: New test.
2221 * testsuite/libgomp.fortran/reduction4.f90: New test.
2223 2005-10-13 Richard Henderson <rth@redhat.com>
2225 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2226 * Makefile.in: Regenerate.
2227 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2228 * libgomp.h: Include bar.h.
2229 (struct gomp_barrier): Remove.
2230 (struct gomp_team): Add barrier. Replace master_barrier with
2231 master_release. Replace threads with ordered_release.
2232 (struct gomp_thread): Replace barrier with release.
2233 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2234 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2235 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2236 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2237 (GOMP_single_copy_end): Likewise.
2238 * team.c (gomp_threads_dock): New.
2239 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2240 (gomp_thread_start): Use gomp_barrier_wait.
2241 (new_team, free_team): Update for gomp_team changes.
2242 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2243 (gomp_team_end): Use gomp_barrier_wait.
2244 (initialize_team): Update for gomp_thread changes.
2245 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2246 (gomp_work_share_end_nowait): Use atomic ops when available.
2247 * config/linux/bar.c, config/linux/bar.h: New files.
2248 * config/posix/bar.c, config/posix/bar.h: New files.
2250 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2252 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2253 * testsuite/libgomp.dg/single-2.c: New test.
2255 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2256 lang_link_flags): Unset, so that they aren't inherited from previously
2259 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2261 2005-10-12 Richard Henderson <rth@redhat.com>
2263 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2264 (libgomp_init): Use lang_test_file, lang_library_path, and
2265 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2267 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2268 (lang_test_file, lang_link_flags): New.
2269 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2271 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2272 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2273 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2274 testsuite/libgomp.c++/parallel-1.C,
2275 testsuite/libgomp.c++/reduction-1.C,
2276 testsuite/libgomp.c++/reduction-2.C,
2277 testsuite/libgomp.c++/reduction-3.C,
2278 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2279 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2280 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2281 New files, largely cribbed from the C testsuite.
2283 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2285 * testsuite/libgomp.fortran/character1.f90: New test.
2286 * testsuite/libgomp.fortran/character2.f90: New test.
2288 * testsuite/libgomp.dg/nested-1.c: New test.
2289 * testsuite/libgomp.dg/nested-2.c: New test.
2290 * testsuite/libgomp.fortran/do1.f90: New test.
2291 * testsuite/libgomp.fortran/do2.f90: New test.
2293 * testsuite/libgomp.fortran/reference1.f90: New test.
2295 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2297 * testsuite/libgomp.dg/reduction-1.c: New test.
2298 * testsuite/libgomp.dg/reduction-2.c: New test.
2299 * testsuite/libgomp.dg/reduction-3.c: New test.
2301 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2303 * testsuite/libgomp.dg/atomic-1.c: New test.
2304 * testsuite/libgomp.dg/atomic-2.c: New test.
2306 2005-10-09 Richard Henderson <rth@redhat.com>
2308 * critical.c (atomic_lock): New.
2309 (initialize_critical): Initialize it.
2310 (GOMP_atomic_start, GOMP_atomic_end): New.
2311 * libgomp.map: Export them.
2312 * libgomp_g.h: Declare them.
2314 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2316 2005-10-02 Richard Henderson <rth@redhat.com>
2318 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2319 to XCFLAGS instead of CFLAGS.
2321 2005-09-30 Richard Henderson <rth@redhat.com>
2323 * configure.ac: Determine whether -pthread or -lpthread is needed.
2324 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2325 * Makefine.in, configure: Rebuild.
2327 2005-09-28 Richard Henderson <rth@redhat.com>
2329 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2330 * testsuite/libgomp.dg/omp-single-3.c: New test.
2332 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2334 * testsuite/libgomp.dg/omp-single-2.c: New test.
2335 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2337 2005-09-27 Richard Henderson <rth@redhat.com>
2339 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2340 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2342 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2344 * testsuite/libgomp.dg/omp-loop03.c: New test.
2346 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2348 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2350 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2352 * testsuite/libgomp.dg/omp-single-1.c: New test.
2353 * testsuite/libgomp.dg/shared-1.c: Return 0.
2354 Add prototype for abort.
2355 * testsuite/libgomp.dg/shared-2.c: Likewise.
2357 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2359 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2362 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2364 * testsuite/libgomp.dg/shared-1.c: New test.
2365 * testsuite/libgomp.dg/shared-2.c: New test.
2367 2005-09-24 Richard Henderson <rth@redhat.com>
2369 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2371 2005-09-24 Richard Henderson <rth@redhat.com>
2373 * iter.c (gomp_iter_static_next): Round up when computing number
2374 of iterations. Don't bother distributing a remainder equally.
2376 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2377 Don't call srand. Zero b before testing.
2380 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2382 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2383 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2385 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2387 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2388 without !$omp end do, followed immediately by subroutine end.
2390 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2392 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2394 2005-09-22 Richard Henderson <rth@redhat.com>
2396 * critical.c (GOMP_critical_name_start): Change argument to void**.
2397 Reuse the pointer space if the mutex fits.
2398 (GOMP_critical_name_end): Likewise.
2399 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2400 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2401 (GOMP_critical_name_end): Likewise.
2402 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2403 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2405 2005-09-20 Richard Henderson <rth@redhat.com>
2407 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2408 (create_lock_lock): New.
2409 (initialize_critical): Initialize it.
2410 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2411 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2413 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2415 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2417 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2419 * testsuite/libgomp.dg/omp-loop01.c: New test.
2420 * testsuite/libgomp.dg/omp-loop02.c: New test.
2422 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2424 * configure.ac (AC_PROG_FC): Add.
2425 (USE_FORTRAN): New automake conditional.
2426 * configure: Rebuilt.
2427 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2428 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2429 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2430 Add rules to build them.
2431 * Makefile.in: Rebuilt.
2432 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2434 * libgomp.map: Add Fortran wrappers.
2435 * libgomp_f.h.in: New file.
2436 * omp_lib.h.in: New file.
2437 * omp_lib.f90.in: New file.
2438 * fortran.c: New file.
2439 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2440 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2441 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2442 libgfortran has been built.
2443 * testsuite/libgomp.fortran/fortran.exp: New file.
2444 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2445 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2446 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2447 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2448 * testsuite/libgomp.fortran/omp_hello.f: New test.
2449 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2450 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2451 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2452 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2453 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2454 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2455 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2456 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2458 2005-08-30 Richard Henderson <rth@redhat.com>
2460 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2461 function for when aliases are not usable.
2462 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2463 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2464 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2465 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2466 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2467 GOMP_loop_ordered_guided_next): Likewise.
2468 * ordered.c (GOMP_ordered_start): Likewise.
2470 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2472 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2473 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2474 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2475 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2476 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2477 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2478 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2479 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2480 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2482 2005-07-07 Eric Christopher <echristo@redhat.com>
2483 Diego Novillo <dnovillo@redhat.com>
2485 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2486 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2488 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2489 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2490 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2491 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2492 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2493 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2494 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2496 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2498 * TOPLEVEL.patch: Remove.
2500 2005-05-16 Richard Henderson <rth@redhat.com>
2502 * configure.ac: Test for clock_gettime.
2503 * config.h.in, configure: Rebuild.
2504 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2505 (omp_get_wtime): Use clock_gettime if available.
2506 (omp_get_wtick): Use clock_getres if available.
2508 2005-05-11 Richard Henderson <rth@redhat.com>
2510 * config/linux/ia64/futex.h: New file.
2511 * configure.tgt: Use it.
2513 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2515 2005-05-07 Richard Henderson <rth@redhat.com>
2517 * config/linux/powerpc/futex.h: New file.
2518 * configure.tgt: Use it.
2520 * config/linux/i486/futex.h: Merge ...
2521 * config/linux/x86_64/futex.h: ... into ...
2522 * config/linux/x86/futex.h: ... here.
2523 * configure.tgt: Update to match.
2525 2005-05-06 Richard Henderson <rth@redhat.com>
2527 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2528 * config/linux/i486/futex.h: Likewise.
2529 * config/linux/x86_64/futex.h: Likewise.
2531 * config/linux/lock.c: New file.
2532 * config/linux/omp-lock.h: New file.
2534 * critical.c, env.h: Don't include omp.h
2535 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2536 * config/posix/time.c: Likewise.
2537 * config/posix/omp-lock.h: New file.
2538 * libgomp.h: Include omp-lock.h and omp.h.
2539 * Makefile.am (nodist_include_HEADERS): New.
2541 * configure.ac (PERL): New.
2542 * mkomp_h.pl: New file.
2543 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2545 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2547 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2548 build directory. Re-add -march=i486 hack.
2550 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2551 (libgomp_link_flags): Remove.
2552 (libgomp_initialized): Remove.
2553 (libgomp_init): Don't protect from reinitialization. Copy code
2554 from libstdc++ for getting the multilib set correctly.
2556 2005-05-05 Richard Henderson <rth@redhat.com>
2558 * config/linux/alpha/futex.h: New file.
2559 * configure.tgt (alpha*-*-linux*): Use it.
2561 * config/posix/mutex.c: New file.
2562 * config/posix/sem.c: Use libgomp.h.
2564 * configure.tgt (x86_64-linux): Also test CC for -m32.
2565 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2567 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2570 * Makefile.am (SUBDIRS): New.
2571 (libgomp_la_LDFLAGS): Add -lpthread.
2572 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2573 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2575 * libgomp_g.h: New file.
2576 * libgomp.h: Split out all public declarations to libgomp_g.h.
2577 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2578 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2579 * config/linux/sem.h: Likewise.
2580 * config/posix/sem.h: Likewise.
2582 * Makefile.am (AM_LDFLAGS): New.
2583 (libgomp_version_script): Split out from ...
2584 (libgomp_la_LDFLAGS): ... here.
2585 (libgomp_version_info): New.
2586 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2587 (LIBGOMP_ENABLE): New.
2588 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2589 (LIBGOMP_ENABLE_SYMVERS): New.
2590 * configure.ac (AC_INIT): Version 1.0.
2591 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2592 (enable-linux-futex): Likewise. Rename from enable-futex.
2593 (libtool_VERSION): New.
2594 (LIBGOMP_ENABLE_SYMVERS): Use it.
2595 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2596 * Makefile.in, aclocal.m4, configure: Rebuild.
2598 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2599 (gomp_mutex_unlock_slow): Fix typo.
2600 * config/linux/sem.c: Similarly.
2601 (gomp_sem_post_slow): Fix typo.
2602 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2603 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2604 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2606 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2607 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2608 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2609 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2610 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2611 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2612 LDFLAGS. Pull enable_futex check to top-level.
2613 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2614 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2616 First attempt at real configury.
2617 * Makefile, config.h: Remove file.
2618 * Makefile.am, Makefile.in: New file.
2619 * acinclude.m4 aclocal.m4: New file.
2620 * configure.ac, configure.tgt, configure: New file.
2622 * config/posix/lock.c: Rename from sys-lock.c.
2623 * config/posix/mutex.h: Rename from sys-mutex.h.
2624 * config/posix/sem.c: Rename from sys-sem.c.
2625 * config/posix/sem.h: Rename from sys-sem.h.
2626 * config/posix/proc.c: Rename from sys-proc.c.
2627 * config/posix/time.c: Rename from sys-proc.c.
2629 * config/linux/mutex.c: New file.
2630 * config/linux/mutex.h: New file.
2631 * config/linux/sem.c: New file.
2632 * config/linux/sem.h: New file.
2633 * config/linux/i486/futex.h: New file.
2634 * config/linux/x86_64/futex.h: New file.
2636 2005-05-04 Richard Henderson <rth@redhat.com>
2638 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2639 * libgomp.h: Declare them.
2640 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2641 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2643 2005-05-04 Richard Henderson <rth@redhat.com>
2645 * libgomp-1 code drop
2647 2005-05-04 Richard Henderson <rth@redhat.com>
2649 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2650 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2651 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2652 (gomp_iter_static_next): Update.
2653 (gomp_ordered_static_next): Update.
2654 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2655 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2656 totally empty range.
2657 (gomp_loop_ordered_static_next): Refine test for calling
2658 gomp_ordered_static_next.
2659 * testsuite/ordered-1.c: Add case for more threads than iterations.
2661 * iter.c (gomp_iter_runtime_next_locked): Remove.
2662 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2663 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2664 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2665 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2666 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2667 gomp_loop_ordered_guided_next): Downcase name, make static, add
2668 an external alias with the old name.
2669 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2670 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2671 switch and call one of the above static functions.
2672 * libgomp.h: Update.
2674 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2675 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2676 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2677 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2678 GOMP_loop_ordered_guided_start): Update to match.
2679 * sections.c (GOMP_sections_start): Likewise.
2680 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2682 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2683 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2684 Use bounds check instead of modulus.
2685 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2686 (gomp_ordered_last): Don't sync with ordered_owner here.
2687 (gomp_ordered_next): Likewise.
2688 (gomp_ordered_static_loop_next): Likewise.
2689 * loop.c, libgomp.h: Update to match.
2691 * libgomp.h (GOMP_barrier): Declare.
2693 * testsuite/barrier-1.c: New file.
2694 * testsuite/critical-1.c: New file.
2695 * testsuite/ordered-2.c: New file.
2696 * testsuite/ordered-1.c: New file.
2697 * testsuite/sections-1.c: New file.
2698 * testsuite/single-1.c: New file.
2699 * testsuite/Makefile (TESTS): Add them.
2701 2005-05-04 Richard Henderson <rth@redhat.com>
2703 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2704 * loop.c (GOMP_loop_static_start): If not the startup thread,
2705 acquire the mutex to wait for initialization complete.
2706 (GOMP_loop_ordered_static_start): Likewise.
2707 (GOMP_loop_ordered_runtime_start): Likewise.
2708 (GOMP_loop_ordered_static_first): Remove.
2709 (GOMP_loop_ordered_dynamic_first): Remove.
2710 (GOMP_loop_ordered_guided_first): Remove.
2711 (GOMP_loop_ordered_runtime_first): Remove.
2712 * ordered.c (gomp_ordered_loop_first): Post to own release when
2713 we're the first thread.
2714 (gomp_ordered_loop_last): Wait on release if not owner.
2715 (gomp_ordered_loop_next): Likewise.
2716 (gomp_ordered_static_loop_init): New.
2717 (gomp_ordered_static_loop_next): Use ordered_owner.
2718 (GOMP_ordered_start): Likewise.
2719 * work.c (gomp_new_work_share): Initialize ordered_owner.
2721 2005-05-03 Richard Henderson <rth@redhat.com>
2723 * Makefile (OPT): New.
2726 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2727 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2728 * libgomp.h, libgomp.map, NOTES: Update to match.
2730 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2731 Add initialized and thr members.
2732 (gomp_thread_start): Pause when initially spawned to wait for
2733 the whole team to be created.
2734 (gomp_team_start): Release team members at the end.
2736 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2737 (f_foo_1): Use GOMP_loop_end.
2738 (f_foo_2): Use GOMP_loop_end_nowait.
2740 * testsuite/loop-2.c: New file.
2741 * testsuite/Makefile (TESTS): Add it.
2743 2005-05-03 Richard Henderson <rth@redhat.com>
2745 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2746 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2747 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2750 * testsuite/Makefile: New file.
2751 * testsuite/loop-1.c: New file.
2753 2005-05-03 Richard Henderson <rth@redhat.com>
2755 Initial implementation and checkin.