1 2010-04-20 Jakub Jelinek <jakub@redhat.com>
4 * sections.c (gomp_sections_init): Initialize ws->mode.
6 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
9 not unused bar variable.
10 * configure: Regenerate.
12 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 * Makefile.in: Regenerate.
15 * aclocal.m4: Regenerate.
16 * testsuite/Makefile.in: Regenerate.
18 2010-03-22 Jakub Jelinek <jakub@redhat.com>
21 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
22 (initialize_env): Adjust callers.
23 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
24 when the argument is 0.
26 * testsuite/libgomp.c/pr42942.c: New test.
28 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
32 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
33 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
35 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
38 * testsuite/libgomp.c++/task-6.C: Likewise.
40 2010-01-28 Steve Ellcey <sje@cup.hp.com>
42 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
44 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
46 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
47 * configure: Regenerate.
49 2010-01-26 Jakub Jelinek <jakub@redhat.com>
52 * testsuite/libgomp.fortran/allocatable5.f90: New test.
54 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
56 * configure.ac: Test for executability of GFORTRAN.
57 * configure: Regenerate.
59 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
61 * configure: Regenerate.
63 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
66 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
68 2010-01-03 Richard Guenther <rguenther@suse.de>
70 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
72 2009-12-23 Sebastian Pop <sebpop@gmail.com>
74 * testsuite/libgomp.graphite/pr4118.c: New.
76 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
78 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
79 for darwin, protect the test with require-effective-target tls_runtime.
80 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
82 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
85 * testsuite/lib/libgomp.exp: Provide -B options to allow for
86 link spec %s substitutions for static libraries.
88 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
91 * libgomp.graphite/force-parallel-2.c: Reduce array size.
93 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
95 * Makefile.in: Regenerate.
96 * configure: Regenerate.
97 * testsuite/Makefile.in: Regenerate.
99 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
101 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
102 settings for LC_ALL and LANG.
104 2009-11-25 Jakub Jelinek <jakub@redhat.com>
107 * testsuite/libgomp.fortran/pr42162.f90: New test.
109 2009-11-13 Jakub Jelinek <jakub@redhat.com>
112 * testsuite/libgomp.c/pr42029.c: New test.
114 2009-10-26 Jakub Jelinek <jakub@redhat.com>
116 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
117 *s. Accept ld version without text in ()s.
118 * configure: Regenerated.
120 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
122 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
124 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
127 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
128 or a hyphen (happens with fortran language disabled).
129 * configure: Regenerate.
131 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
133 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
134 use sed script portable to Solaris /bin/sed for extracting ld
136 * configure: Regenerate.
138 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
140 * testsuite/libgomp.graphite/bounds.c: New test.
142 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
144 * Makefile.am (libgomp_la_LINK): New.
145 * Makefile.in: Regenerate.
147 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
149 * configure.ac (AC_PREREQ): Bump to 2.64.
151 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
153 * Makefile.am (install-html, install-pdf): Remove.
154 * Makefile.in: Regenerate.
156 * Makefile.in: Regenerate.
157 * aclocal.m4: Regenerate.
158 * config.h.in: Regenerate.
159 * configure: Regenerate.
160 * testsuite/Makefile.in: Regenerate.
162 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
164 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
165 * Makefile.in: Regenerate.
167 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
169 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
170 * Makefile.in: Regenerate.
172 2009-08-19 Tobias Burnus <burnus@net-b.de>
175 omp_lib.h.in: Fix -std=f95 errors.
178 2009-08-14 David Edelsohn <edelsohn@gnu.org>
180 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
181 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
182 * testsuite/libgomp.graphite/graphite.exp: New.
184 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
186 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
189 2009-08-04 David Daney <ddaney@caviumnetworks.com>
191 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
192 needed memory barrier semantics.
193 * config/linux/mips/mutex.h: New file.
195 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
197 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
199 2009-07-16 Joseph Myers <joseph@codesourcery.com>
201 * configure: Regenerate.
203 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
208 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
209 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
210 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
212 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
214 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
215 options when choosing a multilib.
217 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
219 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
220 ld_library_path. Use add_path. Add just find_libgcc_s to
221 ld_library_path, not every libgcc multilib directory.
222 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
223 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
224 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
226 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
228 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
230 * Makefile.am (LTLDFLAGS): Define.
232 * Makefile.in: Regenerate.
234 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
237 * testsuite/libgomp.fortran/fortran.exp: Don't link with
238 libgfortranbegin, check existence of libgfortran.a instead of
241 2009-05-20 Jakub Jelinek <jakub@redhat.com>
244 * team.c (gomp_thread_start): Destroy thr->release semaphore.
245 (gomp_free_pool_helper): Likewise.
247 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
248 Jakub Jelinek <jakub@redhat.com>
251 * testsuite/libgomp.fortran/workshare2.f90: New test.
253 2009-04-09 Nick Clifton <nickc@redhat.com>
255 * iter.c: Change copyright header to refer to version 3 of the
256 GNU General Public License with version 3.1 of the GCC Runtime
257 Library Exception and to point readers at the COPYING3 and
258 COPYING3.RUNTIME files and the FSF's license web page.
260 * barrier.c: Likewise.
261 * config/bsd/proc.c: Likewise.
262 * config/linux/affinity.c: Likewise.
263 * config/linux/alpha/futex.h: Likewise.
264 * config/linux/bar.c: Likewise.
265 * config/linux/bar.h: Likewise.
266 * config/linux/ia64/futex.h: Likewise.
267 * config/linux/ia64/mutex.h: Likewise.
268 * config/linux/lock.c: Likewise.
269 * config/linux/mips/futex.h: Likewise.
270 * config/linux/mutex.c: Likewise.
271 * config/linux/mutex.h: Likewise.
272 * config/linux/powerpc/futex.h: Likewise.
273 * config/linux/proc.c: Likewise.
274 * config/linux/ptrlock.c: Likewise.
275 * config/linux/ptrlock.h: Likewise.
276 * config/linux/s390/futex.h: Likewise.
277 * config/linux/sem.c: Likewise.
278 * config/linux/sem.h: Likewise.
279 * config/linux/sparc/futex.h: Likewise.
280 * config/linux/wait.h: Likewise.
281 * config/linux/x86/futex.h: Likewise.
282 * config/mingw32/proc.c: Likewise.
283 * config/mingw32/time.c: Likewise.
284 * config/posix/affinity.c: Likewise.
285 * config/posix/bar.c: Likewise.
286 * config/posix/bar.h: Likewise.
287 * config/posix/lock.c: Likewise.
288 * config/posix/mutex.h: Likewise.
289 * config/posix/proc.c: Likewise.
290 * config/posix/ptrlock.h: Likewise.
291 * config/posix/sem.c: Likewise.
292 * config/posix/sem.h: Likewise.
293 * config/posix/time.c: Likewise.
294 * config/posix95/lock.c: Likewise.
295 * critical.c: Likewise.
298 * fortran.c: Likewise.
299 * iter_ull.c: Likewise.
300 * libgomp.h: Likewise.
301 * libgomp_f.h.in: Likewise.
302 * libgomp_g.h: Likewise.
304 * loop_ull.c: Likewise.
305 * omp.h.in: Likewise.
306 * omp_lib.f90.in: Likewise.
307 * omp_lib.h.in: Likewise.
308 * ordered.c: Likewise.
309 * parallel.c: Likewise.
310 * sections.c: Likewise.
311 * single.c: Likewise.
316 2009-04-09 Jakub Jelinek <jakub@redhat.com>
318 * testsuite/config/default.exp: Change copyright header to refer to
319 version 3 of the GNU General Public License and to point readers
320 at the COPYING3 file and the FSF's license web page.
322 2009-04-08 Jakub Jelinek <jakub@redhat.com>
325 * libgomp.c++/pr39573.C: New test.
327 2009-04-01 Jakub Jelinek <jakub@redhat.com>
330 * testsuite/libgomp.c/pr39591-1.c: New test.
331 * testsuite/libgomp.c/pr39591-2.c: New test.
332 * testsuite/libgomp.c/pr39591-3.c: New test.
334 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
336 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
337 * testsuite/libgomp.c/atomic-6.c: Ditto.
339 2009-03-23 Jakub Jelinek <jakub@redhat.com>
342 * testsuite/libgomp.c/loop-12.c: New test.
343 * testsuite/libgomp.c/loop-11.c: New test.
344 * testsuite/libgomp.c++/loop-11.C: New test.
345 * testsuite/libgomp.c++/loop-12.C: New test.
346 * testsuite/libgomp.c++/for-8.C: New test.
348 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
350 * configure: Regenerate.
352 2009-02-11 Jakub Jelinek <jakub@redhat.com>
355 * testsuite/libgomp.c/pr39154.c: New test.
357 2009-01-30 Ian Lance Taylor <iant@google.com>
359 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
360 libgomp_ld_is_gold. Get gold version number.
361 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
362 * configure: Rebuild.
364 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
366 * testsuite/lib/libgomp.exp: Add -B option for targets that
367 use libgfortran.a%s in their specs.
369 2009-01-07 Jakub Jelinek <jakub@redhat.com>
372 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
373 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
374 HAVE_AS_SYMVER_DIRECTIVE is not defined.
375 * configure: Regenerated.
376 * config.h.in: Likewise.
378 2008-12-28 Jakub Jelinek <jakub@redhat.com>
381 * testsuite/libgomp.c/pr38650.c: New test.
382 * testsuite/libgomp.c++/pr38650.C: New test.
384 2008-12-27 Jakub Jelinek <jakub@redhat.com>
386 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
388 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
390 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
392 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
394 * configure: Regenerate.
396 2008-12-08 Jakub Jelinek <jakub@redhat.com>
399 * testsuite/libgomp.c/pr36802-1.c: New test.
400 * testsuite/libgomp.c/pr36802-2.c: New test.
401 * testsuite/libgomp.c/pr36802-3.c: New test.
403 2008-12-01 Janis Johnson <janis187@us.ibm.com>
406 * config/linux/powerpc/mutex.h: New.
408 2008-12-01 Jakub Jelinek <jakub@redhat.com>
411 * testsuite/libgomp.c++/for-7.C: New test.
414 * testsuite/libgomp.c++/for-6.C: New test.
416 2008-11-26 Janis Johnson <janis187@us.ibm.com>
419 * testsuite/lib/libgomp.exp: Include new timeout library files.
420 (libgomp_target_compile): Set timeout value from new proc.
422 2008-11-13 Steve Ellcey <sje@cup.hp.com>
425 * config/linux/ia64/mutex.h: New.
427 2008-11-04 Tobias Burnus <burnus@net-b.de>
430 * libgomp.texi (Runtime library routines, environment variables):
431 Update for OpenMP version 3.0.
433 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
434 Steve Ellcey <sje@cup.hp.com>
436 * configure: Regenerate for new libtool.
437 * Makefile.in: Ditto.
438 * testsuite/Makefile.in: Ditto.
440 2008-09-19 Jakub Jelinek <jakub@redhat.com>
441 Andreas Tobler <a.tobler@schweiz.org>
443 * config/bsd/proc.c: New file.
444 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
445 * configure.ac: Check for header <sys/sysctl.h>
446 * configure: Regenerate.
447 * config.h.in: Likewise.
449 2008-09-05 Janis Johnson <janis187@us.ibm.com>
451 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
453 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
455 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
456 * Makefile.in: Regenerated.
457 * testsuite/Makefile.in: Regenerated.
459 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
461 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
462 depend on blddir if blddir exists.
463 (libgomp_target_compile): Likewise.
464 * testsuite/libgomp.c++/c++.exp: Likewise.
465 * testsuite/libgomp.fortran/fortran.exp: Likewise.
467 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
469 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
470 Do not list GPL as Invariant Section.
472 2008-07-28 Ilie Garbacea <ilie@mips.com>
473 Chao-ying Fu <fu@mips.com>
475 * configure.tgt: Enable futex for MIPS.
476 * config/linux/mips/futex.h: New file.
478 2008-07-16 Jakub Jelinek <jakub@redhat.com>
480 * team.c (gomp_team_end): Free team immediately if it has
483 2008-07-08 David Edelsohn <edelsohn@gnu.org>
485 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
486 * testsuite/libgomp.fortran/fortran.exp: Same.
487 * testsuite/libgomp.c/c.exp: Same.
488 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
489 directory to library path first.
491 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
493 * env.c (parse_stacksize): Add cast to avoid warning.
494 (parse_spincount): Likewise.
496 2008-06-27 Jakub Jelinek <jakub@redhat.com>
498 * testsuite/libgomp.c/loop-10.c: New test.
499 * libgomp.c/loop-3.c (main): Add lastprivate clause.
500 * libgomp.c++/loop-6.C (main): Likewise.
503 * testsuite/libgomp.c/debug-1.c: New test.
505 2008-06-19 Jakub Jelinek <jakub@redhat.com>
507 * testsuite/libgomp.c/nqueens-1.c: New test.
510 * testsuite/libgomp.c++/task-7.C: New function.
512 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
514 * configure: Regenerate.
516 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
518 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
519 mutex when HAVE_SYNC_BUILTINS isn't defined.
521 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
523 * libgomp.texi (omp_test_lock): Fix typo.
525 2008-06-12 Tobias Burnus <burnus@net-b.de>
527 * omp_lib.f90.in: Add "implicit none".
529 2008-06-12 Jakub Jelinek <jakub@redhat.com>
532 * testsuite/libgomp.c/reduction-5.c: New test.
534 2008-06-11 Jakub Jelinek <jakub@redhat.com>
536 * libgomp.h (struct gomp_task): Add in_tied_task field.
537 * task.c (gomp_init_task): Initialize it.
538 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
539 unconditionally. Don't call gomp_team_barrier_wake if
540 current task is implicit or if(0) from implicit and number of
541 running tasks is equal to nthreads - 1.
544 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
545 omp_get_team_size_8): Fix pastos.
548 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
549 * configure: Regenerated.
550 * config.h.in: Regenerated.
551 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
554 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
557 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
558 (GOMP_loop_ull_dynamic_start): Likewise.
559 (GOMP_loop_ull_guided_start): Likewise.
560 (GOMP_loop_ull_ordered_static_start): Likewise.
561 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
562 (GOMP_loop_ull_ordered_guided_start): Likewise.
564 2008-06-06 Jakub Jelinek <jakub@redhat.com>
565 Richard Henderson <rth@redhat.com>
566 Ulrich Drepper <drepper@redhat.com>
567 Jakob Blomer <jakob.blomer@ira.uka.de>
569 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
570 Substitute also OMP_*LOCK_25*.
571 * configure: Regenerated.
572 * config.h.in: Regenerated.
573 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
574 ptrlock.c and task.c.
575 * Makefile.in: Regenerated.
576 * testsuite/Makefile.in: Regenerated.
578 * loop_ull.c: New file.
579 * iter_ull.c: New file.
580 * libgomp.h: Include ptrlock.h.
581 (enum gomp_task_kind): New type.
582 (struct gomp_team): Add task_lock, task_queue, task_count,
583 task_running_count, single_count fields. Add
584 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
585 Remove work_share_lock, generation_mask,
586 oldest_live_gen, num_live_gen and init_work_shares fields, add
587 work work_share_list_alloc, work_share_list_free and work_share_chunk
588 fields. Change work_shares from pointer to pointers into an array.
589 Change ordered_release field into gomp_sem_t ** from flexible array
590 member. Add implicit_task and initial_work_shares fields.
591 Move close to the end of the struct.
592 (struct gomp_team_state): Add single_count, last_work_share,
593 active_level and level fields, remove work_share_generation.
594 (gomp_barrier_handle_tasks): New prototype.
595 (gomp_finish_task): New inline function.
596 (struct gomp_work_share): Move chunk_size, end, incr into
597 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
598 next_ll fields. Reshuffle fields. Add next_alloc,
599 next_ws, next_free and inline_ordered_team_ids fields, change
600 ordered_team_ids into pointer from flexible array member.
601 Add mode field. Put lock and next into a different cache line
602 from most of the write-once fields.
603 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
604 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
605 gomp_iter_ull_guided_next): New prototypes.
606 (gomp_new_icv): New prototype.
607 (struct gomp_thread): Add thread_pool and task fields.
608 (struct gomp_thread_pool): New type.
609 (gomp_new_team): New prototype.
610 (gomp_team_start): Change type of last argument.
611 (gomp_new_work_share): Removed.
612 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
613 (gomp_work_share_init_done): New static inline.
614 (gomp_throttled_spin_count_var, gomp_available_cpus,
615 gomp_managed_threads): New extern decls.
616 (gomp_init_task): New prototype.
617 (gomp_spin_count_var): New extern var decl.
618 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
619 or no alias support, or if not PIC.
620 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
621 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
622 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
623 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
624 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
625 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
626 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
627 gomp_test_nest_lock_25): New prototypes.
628 (omp_lock_symver, strong_alias): Define.
629 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
631 (gomp_end_task): New.
632 (struct gomp_task_icv, gomp_global_icv): New.
633 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
634 (struct gomp_task): New.
635 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
636 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
638 (gomp_schedule_type): Reorder enum to match
640 * team.c (struct gomp_thread_start_data): Add thread_pool and task
642 (gomp_thread_start): Add gomp_team_barrier_wait call.
643 For non-nested case remove clearing of docked thread thr fields.
644 Use pool fields instead of global gomp_* variables. Use
645 gomp_barrier_wait_last when needed. Initialize ts.active_level.
646 Create tasks for each member thread.
647 (free_team): Only destroy team barrier, task_lock here and free it.
648 (gomp_free_thread): Free last_team if non-NULL.
649 (gomp_team_end): Call gomp_team_barrier_wait instead of
650 gomp_barrier_wait. For nested case call one extra
651 gomp_barrier_wait. Move here some destruction from free_team.
652 Call free_team on pool->last_team if any, rather than freeing
653 current team. Destroy work_share_list_free_lock ifndef
655 (gomp_new_icv): New function.
656 (gomp_threads, gomp_threads_size, gomp_threads_used,
657 gomp_threads_dock): Removed.
658 (gomp_thread_destructor): New variable.
659 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
661 (gomp_team_start): Create new pool if current thread doesn't have
662 one. Use pool fields instead of global gomp_* variables.
663 Initialize thread_pool field for new threads. Clear single_count.
664 Change last argument from ws to team, don't create
665 new team, set ts.work_share to &team->work_shares[0] and clear
666 ts.last_work_share. Don't clear ts.work_share_generation.
667 If number of threads changed, adjust atomically gomp_managed_threads.
668 Use gomp_init_task instead of gomp_new_task,
669 set thr->task to the corresponding implicit_task array entry.
670 Create tasks for each member thread. Initialize ts.level.
671 (initialize_team): Call pthread_key_create on
672 gomp_thread_destructor.
673 (team_destructor): New function.
675 (gomp_new_team): New function.
676 (free_team): Free gomp_work_share blocks chained through next_alloc,
677 instead of freeing work_shares and destroying work_share_lock.
678 (gomp_team_end): Call gomp_fini_work_share. If number of threads
679 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
680 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
681 of gomp_barrier_wait.
682 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
683 instead of gomp_barrier_wait. Call gomp_work_share_init_done
684 if gomp_work_share_start returned true. Don't unlock ws->lock.
685 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
686 of gomp_barrier_wait.
687 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
688 gomp_work_share_init_done if gomp_work_share_start returned true.
689 Don't unlock ws->lock.
690 * work.c: Include stddef.h.
691 (free_work_share): Use work_share_list_free_lock instead
692 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
693 Call gomp_fini_work_share and then either free ws if orphaned, or
694 put it into work_share_list_free list of the current team.
695 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
697 (gomp_work_share_start, gomp_work_share_end,
698 gomp_work_share_end_nowait): Rewritten.
699 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
700 (openmp_version): Set to 200805.
701 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
702 omp_sched_guided, omp_sched_auto): New parameters.
703 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
704 omp_set_max_active_levels, omp_get_max_active_levels,
705 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
706 omp_get_active_level): New interfaces.
707 * omp_lib.h.in (openmp_version): Set to 200805.
708 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
709 omp_sched_guided, omp_sched_auto): New parameters.
710 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
711 omp_set_max_active_levels, omp_get_max_active_levels,
712 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
713 omp_get_active_level): New externals.
714 * loop.c: Include limits.h.
715 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
717 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
718 Likewise. Use gomp_icv.
719 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
721 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
722 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
723 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
724 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
725 don't unlock ws->lock, otherwise lock it.
726 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
727 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
728 (gomp_parallel_loop_start): Call gomp_new_team instead of
729 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
730 Adjust gomp_team_start caller. Pass 0 as second argument to
731 gomp_resolve_num_threads.
732 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
733 If adding ws->chunk_size nthreads + 1 times after end won't
734 overflow, set ws->mode to 1.
735 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
736 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
737 GOMP_loop_ull_ordered_static_start,
738 GOMP_loop_ull_ordered_dynamic_start,
739 GOMP_loop_ull_ordered_guided_start,
740 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
741 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
742 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
743 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
744 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
746 * libgomp.map: Export lock routines also @@OMP_2.0.
747 (GOMP_loop_ordered_dynamic_first,
748 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
749 GOMP_loop_ordered_static_first): Remove.
750 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
751 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
752 GOMP_loop_ull_ordered_dynamic_next,
753 GOMP_loop_ull_ordered_dynamic_start,
754 GOMP_loop_ull_ordered_guided_next,
755 GOMP_loop_ull_ordered_guided_start,
756 GOMP_loop_ull_ordered_runtime_next,
757 GOMP_loop_ull_ordered_runtime_start,
758 GOMP_loop_ull_ordered_static_next,
759 GOMP_loop_ull_ordered_static_start,
760 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
761 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
762 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
763 (omp_set_schedule, omp_get_schedule,
764 omp_get_thread_limit, omp_set_max_active_levels,
765 omp_get_max_active_levels, omp_get_level,
766 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
767 omp_set_schedule_, omp_set_schedule_8_,
768 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
769 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
770 omp_get_max_active_levels_, omp_get_level_,
771 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
772 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
773 New exports @@OMP_3.0.
774 * omp.h.in (omp_sched_t): New type.
775 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
776 omp_set_max_active_levels, omp_get_max_active_levels,
777 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
778 omp_get_active_level): New prototypes.
779 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
780 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
781 gomp_thread_limit_var, gomp_remaining_threads_count,
782 gomp_remaining_threads_lock): New variables.
783 (parse_spincount): New function.
784 (initialize_env): Call gomp_init_num_threads unconditionally.
785 Initialize gomp_available_cpus. Call parse_spincount,
786 initialize gomp_{,throttled_}spin_count_var
787 depending on presence and value of OMP_WAIT_POLICY and
788 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
789 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
790 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
791 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
792 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
793 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
794 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
795 (gomp_global_icv): New.
796 (parse_schedule): Use it. Parse "auto".
797 (omp_set_num_threads): Use gomp_icv.
798 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
800 (omp_get_max_threads): Move from parallel.c.
801 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
802 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
804 (parse_stacksize, parse_wait_policy): New functions.
805 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
806 both wrappers for compatibility and new locks.
807 (omp_set_schedule, omp_get_schedule,
808 omp_get_thread_limit, omp_set_max_active_levels,
809 omp_get_max_active_levels, omp_get_level,
810 omp_get_ancestor_thread_num, omp_get_team_size,
811 omp_get_active_level): New ialias_redirect.
812 (omp_set_schedule_, omp_set_schedule_8_,
813 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
814 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
815 omp_get_max_active_levels_, omp_get_level_,
816 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
817 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
819 * parallel.c: Include limits.h.
820 (gomp_resolve_num_threads): Add count argument. Rewritten.
821 (GOMP_parallel_start): Call gomp_new_team and pass that as last
822 argument to gomp_team_start. Pass 0 as second argument to
823 gomp_resolve_num_threads.
824 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
825 if gomp_thread_limit_var != ULONG_MAX.
826 (omp_in_parallel): Implement using ts.active_level.
827 (omp_get_max_threads): Move to env.c.
828 (omp_get_level, omp_get_ancestor_thread_num,
829 omp_get_team_size, omp_get_active_level): New functions,
831 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
832 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
833 gomp_iter_dynamic_next instead of the _locked variant and don't take
834 lock around it, otherwise acquire it before calling
835 gomp_iter_dynamic_next_locked.
836 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
837 gomp_iter_dynamic_next instead of the _locked variant and don't take
839 (GOMP_parallel_sections_start): Call gomp_new_team instead of
840 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
841 Adjust gomp_team_start caller. Pass count as second argument to
842 gomp_resolve_num_threads, don't adjust num_threads after the call.
844 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
845 ws->chunk_size by incr.
846 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
848 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
850 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
851 (omp_check_defines): Check even the compat defines.
852 * config/linux/ptrlock.c: New file.
853 * config/linux/ptrlock.h: New file.
854 * config/linux/wait.h: New file.
855 * config/posix/ptrlock.c: New file.
856 * config/posix/ptrlock.h: New file.
857 * config/linux/bar.h (gomp_team_barrier_wait,
858 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
859 (gomp_team_barrier_set_task_pending,
860 gomp_team_barrier_clear_task_pending,
861 gomp_team_barrier_set_waiting_for_tasks,
862 gomp_team_barrier_waiting_for_tasks,
863 gomp_team_barrier_done): New inlines.
864 (gomp_barrier_t): Rewritten.
865 (gomp_barrier_state_t): New typedef.
866 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
867 gomp_barrier_wait_start): Rewritten.
868 (gomp_barrier_wait_end): Change second argument to
869 gomp_barrier_state_t.
870 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
872 * config/linux/bar.c: Include wait.h instead of libgomp.h and
874 (gomp_barrier_wait_end): Rewritten.
875 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
876 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
877 * config/posix/bar.h (gomp_barrier_t): Add generation field.
878 (gomp_barrier_state_t): New typedef.
879 (gomp_team_barrier_wait,
880 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
881 (gomp_barrier_wait_start): Or all but low 2 bits from generation
882 into the return value. Return gomp_barrier_state_t.
883 (gomp_team_barrier_set_task_pending,
884 gomp_team_barrier_clear_task_pending,
885 gomp_team_barrier_set_waiting_for_tasks,
886 gomp_team_barrier_waiting_for_tasks,
887 gomp_team_barrier_done): New inlines.
888 (gomp_barrier_wait_end): Change second argument to
889 gomp_barrier_state_t.
890 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
892 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
893 (gomp_barrier_wait_end): Change second argument to
894 gomp_barrier_state_t.
895 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
896 gomp_team_barrier_wake): New functions.
897 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
899 (gomp_futex_wake, gomp_futex_wait): New variables.
900 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
901 * config/linux/lock.c: Rewrite to make locks task owned,
902 for backwards compatibility provide the old entrypoints
903 if symbol versioning. Include wait.h instead of libgomp.h and
905 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
906 * config/posix95/lock.c: Rewrite to make locks task owned,
907 for backwards compatibility provide the old entrypoints
908 if symbol versioning.
909 * config/posix/lock.c: Rewrite to make locks task owned,
910 for backwards compatibility provide the old entrypoints
911 if symbol versioning.
912 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
913 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
914 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
915 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
916 (sys_futex0): Return error code.
917 (futex_wake, futex_wait): If ENOSYS was returned, clear
918 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
919 (cpu_relax, atomic_write_barrier): New static inlines.
920 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
921 (futex_wake, futex_wait): If ENOSYS was returned, clear
922 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
923 (cpu_relax, atomic_write_barrier): New static inlines.
924 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
925 (sys_futex0): Return error code.
926 (futex_wake, futex_wait): If ENOSYS was returned, clear
927 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
928 (cpu_relax, atomic_write_barrier): New static inlines.
929 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
930 (sys_futex0): Return error code.
931 (futex_wake, futex_wait): If ENOSYS was returned, clear
932 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
933 (cpu_relax, atomic_write_barrier): New static inlines.
934 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
935 (sys_futex0): Return error code.
936 (futex_wake, futex_wait): If ENOSYS was returned, clear
937 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
938 (cpu_relax, atomic_write_barrier): New static inlines.
939 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
940 (sys_futex0): Return error code.
941 (futex_wake, futex_wait): If ENOSYS was returned, clear
942 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
943 (cpu_relax, atomic_write_barrier): New static inlines.
944 * config/linux/sem.c: Include wait.h instead of libgomp.h and
946 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
947 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
948 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
950 (omp_nest_lock_t): Change owner into void *, add lock field.
951 * config/posix95/omp-lock.h: Include semaphore.h.
952 (omp_lock_25_t, omp_nest_lock_25_t): New types.
953 (omp_lock_t): Use sem_t instead of mutex if semaphores
955 (omp_nest_lock_t): Likewise. Change owner to void *.
956 * config/posix/omp-lock.h: Include semaphore.h.
957 (omp_lock_25_t, omp_nest_lock_25_t): New types.
958 (omp_lock_t): Use sem_t instead of mutex if semaphores
960 (omp_nest_lock_t): Likewise. Add owner field.
962 2008-06-06 Jakub Jelinek <jakub@redhat.com>
964 * testsuite/libgomp.c/collapse-1.c: New test.
965 * testsuite/libgomp.c/collapse-2.c: New test.
966 * testsuite/libgomp.c/collapse-3.c: New test.
967 * testsuite/libgomp.c/icv-1.c: New test.
968 * testsuite/libgomp.c/icv-2.c: New test.
969 * testsuite/libgomp.c/lib-2.c: New test.
970 * testsuite/libgomp.c/lock-1.c: New test.
971 * testsuite/libgomp.c/lock-2.c: New test.
972 * testsuite/libgomp.c/lock-3.c: New test.
973 * testsuite/libgomp.c/loop-4.c: New test.
974 * testsuite/libgomp.c/loop-5.c: New test.
975 * testsuite/libgomp.c/loop-6.c: New test.
976 * testsuite/libgomp.c/loop-7.c: New test.
977 * testsuite/libgomp.c/loop-8.c: New test.
978 * testsuite/libgomp.c/loop-9.c: New test.
979 * testsuite/libgomp.c/nested-3.c: New test.
980 * testsuite/libgomp.c/nestedfn-6.c: New test.
981 * testsuite/libgomp.c/sort-1.c: New test.
982 * testsuite/libgomp.c/task-1.c: New test.
983 * testsuite/libgomp.c/task-2.c: New test.
984 * testsuite/libgomp.c/task-3.c: New test.
985 * testsuite/libgomp.c/task-4.c: New test.
986 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
987 to C++ testsuite default compiler options.
988 * testsuite/libgomp.c++/collapse-1.C: New test.
989 * testsuite/libgomp.c++/collapse-2.C: New test.
990 * testsuite/libgomp.c++/ctor-10.C: New test.
991 * testsuite/libgomp.c++/for-1.C: New test.
992 * testsuite/libgomp.c++/for-2.C: New test.
993 * testsuite/libgomp.c++/for-3.C: New test.
994 * testsuite/libgomp.c++/for-4.C: New test.
995 * testsuite/libgomp.c++/for-5.C: New test.
996 * testsuite/libgomp.c++/loop-8.C: New test.
997 * testsuite/libgomp.c++/loop-9.C: New test.
998 * testsuite/libgomp.c++/loop-10.C: New test.
999 * testsuite/libgomp.c++/task-1.C: New test.
1000 * testsuite/libgomp.c++/task-2.C: New test.
1001 * testsuite/libgomp.c++/task-3.C: New test.
1002 * testsuite/libgomp.c++/task-4.C: New test.
1003 * testsuite/libgomp.c++/task-5.C: New test.
1004 * testsuite/libgomp.c++/task-6.C: New test.
1005 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1006 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1007 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1008 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1009 * testsuite/libgomp.fortran/collapse1.f90: New test.
1010 * testsuite/libgomp.fortran/collapse2.f90: New test.
1011 * testsuite/libgomp.fortran/collapse3.f90: New test.
1012 * testsuite/libgomp.fortran/collapse4.f90: New test.
1013 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1014 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1015 * testsuite/libgomp.fortran/lib4.f90: New test.
1016 * testsuite/libgomp.fortran/lock-1.f90: New test.
1017 * testsuite/libgomp.fortran/lock-2.f90: New test.
1018 * testsuite/libgomp.fortran/nested1.f90: New test.
1019 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1020 * testsuite/libgomp.fortran/strassen.f90: New test.
1021 * testsuite/libgomp.fortran/tabs1.f90: New test.
1022 * testsuite/libgomp.fortran/tabs2.f: New test.
1023 * testsuite/libgomp.fortran/task1.f90: New test.
1024 * testsuite/libgomp.fortran/task2.f90: New test.
1025 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1026 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1027 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1028 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1029 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1031 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1034 * testsuite/libgomp.c++/ctor-11.C: New test.
1035 * testsuite/libgomp.c++/ctor-12.C: New test.
1037 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1039 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1041 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1044 * testsuite/libgomp.c/atomic-5.c: New test.
1045 * testsuite/libgomp.c/atomic-6.c: New test.
1046 * testsuite/libgomp.c/autopar-1.c: New test.
1048 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1050 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1051 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1052 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1053 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1054 * configure: Regenerate.
1055 * Makefile.in, testsuite/Makefile.in: Likewise.
1057 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1060 * aclocal.m4: Regenerate.
1061 * configure: Regenerate.
1063 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1066 * testsuite/libgomp.c/atomic-4.c: New test.
1069 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1070 (gomp_iter_guided_next): Likewise.
1071 * testsuite/libgomp.c/pr35625.c: New test.
1073 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1075 * aclocal.m4: Regenerate.
1076 * configure: Likewise.
1077 * Makefile.in: Likewise.
1078 * testsuite/Makefile.in: Likewise.
1080 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1083 * testsuite/libgomp.c++/pr35185.C: New test.
1085 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1088 * testsuite/libgomp.c/pr35549.c: New test.
1090 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1092 * testsuite/libgomp.c/atomic-3.c: New test.
1094 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1097 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1100 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1103 * configure.ac: Add ACX_HEADER_STRING.
1104 * env.c: Include strings.h.
1105 * aclocal.m4: Regenerate.
1106 * config.h.in: Regenerate.
1107 * configure: Regenerate.
1108 * Makefile.in: Regenerate.
1109 * testsuite/Makefile.in: Regenerate.
1111 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1114 * testsuite/libgomp.c/pr35196.c: New test.
1117 * testsuite/libgomp.fortran/pr35130.f90: New test.
1118 * testsuite/libgomp.c/pr35130.c: New test.
1120 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1123 * testsuite/libgomp.c/pr33880.c: New test.
1124 * testsuite/libgomp.fortran/pr33880.f90: New test.
1126 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1128 * configure: Regenerate.
1130 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1132 * configure.ac: Move futex checking into ../config/futex.m4.
1133 * configure: Rebuilt.
1134 * aclocal.m4: Rebuilt.
1135 * Makefile.in: Rebuilt.
1137 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1138 2007-10-15 ../config/tls.m4 change.
1140 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1143 * testsuite/libgomp.c/pr34513.c: New test.
1144 * testsuite/libgomp.c++/pr34513.C: New test.
1146 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1149 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1151 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1153 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1155 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1157 * testsuite/libgomp.c/private-1.c: New test.
1159 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1160 Paolo Bonzini <bonzini@gnu.org>
1162 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1163 instead of 'VPATH ='.
1164 * Makefile.in: Regenerate.
1166 2007-11-23 Matthias Klose <doko@ubuntu.com>
1168 * configure.ac: Adjust makeinfo version check.
1169 * configure: Regenerate.
1171 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1174 * testsuite/libgomp.fortran/pr34020.f90: New test.
1176 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1179 * testsuite/libgomp.c++/atomic-1.C: New test.
1181 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1184 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1185 Make x and y integers rather than (implicit) reals. Add private (j)
1186 clause to the last omp parallel.
1188 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1190 * configure: Regenerate following changes to ../config/tls.m4.
1192 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1194 * testsuite/libgomp.fortran/stack.f90: New test.
1196 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1198 * config/mingw32/proc.c: New file.
1200 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1202 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1203 (main): Use __get_cpuid to get i386 target fetaures.
1204 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1205 (main): Use __get_cpuid to get x86_64 target fetaures.
1207 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1210 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1211 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1213 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1216 * testsuite/libgomp.fortran/pr32550.f90: New test.
1217 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1219 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1221 * aclocal.m4: Regenerated.
1223 2007-07-05 Tobias Burnus <burnus@net-b.de>
1226 * testsuite/libgomp.fortran/pr32359.f90: New.
1228 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1231 * sections.c (GOMP_parallel_sections_start): Only decrease
1232 number of threads to COUNT if dyn_var is true.
1233 * testsuite/libgomp.c/pr32468.c: New test.
1235 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1238 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1240 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1243 * testsuite/libgomp.c/pr32362-1.c: New test.
1244 * testsuite/libgomp.c/pr32362-2.c: New test.
1245 * testsuite/libgomp.c/pr32362-3.c: New test.
1247 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1249 * team.c (gomp_team_start): Fix setting up thread_attr
1252 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1254 * configure: Regenerate.
1256 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1258 * Makefile.in: Regenerate.
1259 * configure: Regenerate.
1260 * aclocal.m4: Regenerate.
1261 * testsuite/Makefile.in: Regenerate.
1263 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1265 * config/linux/proc.c: New file.
1268 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1270 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1272 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1274 2007-04-16 Matthias Klose <doko@debian.org>
1276 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1277 flags if not building with -m64.
1278 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1279 flag for i?86-*-* targets, if current target matches -m64.
1281 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1283 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1284 * Makefile.in: Regenerate.
1286 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1289 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1291 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1293 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1295 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1297 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1298 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1299 (parse_affinity): New function.
1300 (initialize_env): Call it and gomp_init_affinity.
1301 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1302 create new pthread_attr_t and call gomp_init_thread_affinity
1303 on it for each thread before passing the attribute to pthread_create.
1304 * config/linux/affinity.c: New file.
1305 * config/posix/affinity.c: New file.
1306 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1307 * configure: Rebuilt.
1308 * config.h.in: Rebuilt.
1309 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1310 * Makefile.in: Rebuilt.
1312 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1314 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1316 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1317 and use it if found.
1319 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1321 * testsuite/config/default.exp: New file.
1322 * testsuite/lib/libgomp.exp: New file.
1323 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1324 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1325 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1326 (libgomp_load): Remove.
1327 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1328 always_ld_library_path, not ld_library_path. Set additional_flags
1329 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1330 (target_compile): Do not call libgomp_init. Append lang_library_path
1331 and lang_link_flags to options.
1332 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1333 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1335 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1336 always_ld_library_path. Set LD_LIBRARY_PATH here.
1337 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1338 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1339 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1341 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1342 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1343 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1344 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1345 * testsuite/libgomp.c/atomic-10.c: Ditto.
1347 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1349 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1350 dg-final cleanup-modules line.
1351 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1352 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1353 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1354 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1355 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1356 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1357 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1359 2007-03-18 Andreas Schwab <schwab@suse.de>
1361 * acinclude.m4: Adjust regular expression for ld version
1363 * configure: Regenerate.
1365 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1367 * Makefile.am: Add install-pdf target as copied from
1368 automake v1.10 rules.
1369 * Makefile.in: Regenerate
1371 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1374 * configure: Regenerate.
1377 * testsuite/libgomp.c++/pr30703.C: New test.
1379 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1382 2006-07-05 Eric Christopher <echristo@apple.com>
1383 * configure.ac: Depend addition of -pthread on host OS.
1384 * configure: Regenerate.
1386 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1388 * libgomp.texi: Fix spacing after abbreviations.
1390 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1393 * configure.ac: Add check for makeinfo
1394 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1395 if an appropiate version of makeinfo is found.
1396 * aclocal.m4: Regenerated.
1397 * configure: Regenerated.
1398 * Makefile.in: Regenerated.
1399 * testsuite/Makefile.in: Regenerated.
1401 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1404 * libgomp.texi: More about implementation-dependent settings.
1406 2007-01-26 Tobias Burnus <burnus@net-b.de>
1408 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1410 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1413 * testsuite/libgomp.c/pr30494.c: New test.
1415 2007-01-15 Tom Tromey <tromey@redhat.com>
1417 * configure: Rebuilt.
1418 * configure.ac: Fixed comment.
1420 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1422 * libgomp.texi: Document implementation specific default values of
1423 environment variables.
1425 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1428 * libgomp.texi: New file.
1429 * configure.ac: Add --enable-generated-files-in-srcdir option.
1430 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1432 * Makefile.in: Regenerated.
1433 * config.h.in: Regenerated.
1434 * testsuite/Makefile.in: Regenerated.
1437 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1440 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1442 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1444 * configure: Regenerate.
1446 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1449 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1450 start if there shouldn't be any loop iterations.
1451 (gomp_loop_ordered_static_start): Remove start == end test.
1452 * testsuite/libgomp.c/pr29947-1.c: New test.
1453 * testsuite/libgomp.c/pr29947-2.c: New test.
1455 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1457 * configure.tgt: Force initial-exec TLS model on Linux only.
1459 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1461 * configure: Regenerated.
1463 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1465 * env.c (parse_schedule): Reject out of range values.
1466 (parse_unsigned_long): Reject out of range, negative or zero values.
1468 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1471 * testsuite/libgomp.fortran/pr29629.f90: New test.
1473 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1476 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1477 * config/posix95: New directory.
1478 * config/posix95/omp-lock.h: New file.
1479 * config/posix95/lock.c: Likewise.
1481 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1483 * aclocal.m4: Regenerate.
1484 * configure: Regenerate.
1486 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1488 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1491 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1493 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1495 * configure: Regenerate.
1496 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1498 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1502 * testsuite/libgomp.c/nestedfn-4.c: New test.
1503 * testsuite/libgomp.c/nestedfn-5.c: New test.
1504 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1507 * testsuite/libgomp.fortran/condinc1.f: New test.
1508 * testsuite/libgomp.fortran/condinc2.f: New test.
1509 * testsuite/libgomp.fortran/condinc3.f90: New test.
1510 * testsuite/libgomp.fortran/condinc4.f90: New test.
1511 * testsuite/libgomp.fortran/condinc1.inc: New file.
1513 2006-09-18 Tom Tromey <tromey@redhat.com>
1515 * configure: Rebuilt.
1517 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1520 PR preprocessor/14634
1521 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1523 * configure: Regenerate.
1525 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1527 * testsuite/libgomp.fortran/reduction3.f90: Change
1528 -2147483648 to -huge(i)-1 to avoid overflow.
1529 * testsuite/libgomp.fortran/reduction4.f90: Change
1530 Z'ffffffff' to not(0) to avoid overflow.
1532 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1535 * Makefile.am (libsubincludedir): New.
1536 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1537 * Makefile.in: Regenerate.
1539 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1542 * env.c: Include ctype.h.
1543 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1544 leading and/or trailing whitespace and compare strings case
1547 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1550 * testsuite/libgomp.fortran/pr28390.f: New test.
1552 2006-07-05 Eric Christopher <echristo@apple.com>
1554 * configure.ac: Depend addition of -pthread on host OS.
1555 * configure: Regenerate.
1557 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1559 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1560 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1563 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1567 * configure.ac: If neither --enable-linux-futex nor
1568 --disable-linux-futex is passed, determine the default by checking
1569 for compiling and/or running against NPTL. With --enable-linux-futex,
1570 check if SYS_gettid and SYS_futex are defined.
1571 * configure: Rebuilt.
1573 2006-06-14 Richard Henderson <rth@redhat.com>
1576 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1577 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1579 2006-06-09 Richard Henderson <rth@redhat.com>
1581 * env.c (gomp_nthreads_var): Change to unsigned long.
1582 (gomp_run_sched_chunk): Likewise.
1583 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1584 (initialize_env): Initialize gomp_thread_attr.
1585 * libgomp.h (gomp_nthreads_var): Update decl.
1586 (gomp_run_sched_chunk): Likewise.
1587 (gomp_thread_attr): Declare.
1588 * team.c (gomp_thread_attr): Export.
1589 (initialize_team): Don't initialize it.
1591 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1594 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1595 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1597 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1599 * config/mingw32/time.c: New file.
1600 * configure.tgt: Use it.
1602 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1604 * Makefile.am: Add install-html target. Add install-html to .PHONY
1605 * Makefile.in: Regenerate.
1607 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1610 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1611 * testsuite/libgomp.c/critical-1.c: Likewise.
1612 * testsuite/libgomp.c/loop-1.c: Likewise.
1613 * testsuite/libgomp.c/loop-2.c: Likewise.
1614 * testsuite/libgomp.c/single-1.c: Likewise.
1615 * testsuite/libgomp.c/ordered-1.c: Likewise.
1616 * testsuite/libgomp.c/ordered-2.c: Likewise.
1618 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1621 * libgomp.fortran/pr27416-1.f90: New test.
1623 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1626 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1627 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1629 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1632 * testsuite/libgomp.c/pr26943-1.c: New test.
1633 * testsuite/libgomp.c/pr26943-2.c: New test.
1634 * testsuite/libgomp.c/pr26943-3.c: New test.
1635 * testsuite/libgomp.c/pr26943-4.c: New test.
1636 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1637 * testsuite/libgomp.c++/pr26943.C: New test.
1639 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1642 * testsuite/libgomp.c++/pr27337.C: New test.
1644 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1647 * testsuite/libgomp.c/pr26171.c: New test.
1649 2006-04-25 Richard Henderson <rth@redhat.com>
1652 * configure.ac: Use GCC_CHECK_TLS.
1653 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1654 * Makefile.in, aclocal.m4, configure: Regenerate.
1656 2006-04-10 Matthias Klose <doko@debian.org>
1658 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1659 directory names containing underscores.
1661 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1664 * testsuite/libgomp.c++/pr26691.C: New test.
1666 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1668 * testsuite/libgomp.fortran/retval2.f90: New test.
1670 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1672 * testsuite/libgomp.c++: New directory.
1674 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1676 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1677 * config/posix/sem.c: Implement the above.
1679 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1681 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1682 define HAVE_BROKEN_POSIX_SEMAPHORES.
1683 * configure: Rebuilt.
1684 * config.h.in: Rebuilt.
1686 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1689 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1690 for the other pthread check.
1691 * configure: Regenerate.
1692 * config.h.in: Regenerate.
1694 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1698 * Makefile.am (fincludedir): New variable.
1699 (nodist_include_HEADERS): Remove Fortran files.
1700 (nodist_finclude_HEADERS): New variable.
1701 * Makefile.in: Regenerated.
1703 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1705 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1706 Remove tests for returning assumed character length arrays.
1708 2006-02-12 Roger Sayle <roger@eyesopen.com>
1709 John David Anglin <dave@hiauly1.hia.nrc.ca>
1712 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1714 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1716 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1718 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1720 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1721 part of LD_LIBRARY_PATH manually.
1723 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1726 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1729 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1732 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1733 * configure.ac (PERL): Don't set.
1734 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1735 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1736 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1737 * omp.h.in: Wrap the new configure substitutions with @ characters.
1738 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1739 * aclocal.m4, configure, Makefile.in: Regenerate.
1740 * mkomp_h.pl: Delete.
1742 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1745 * configure.ac: Use GCC_HEADER_STDINT.
1746 * libgomp.h: Include gstdint.h.
1747 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1748 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1750 2006-01-24 Richard Henderson <rth@redhat.com>
1753 * configure.ac: Add AM_MAINTAINER_MODE.
1754 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1756 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1758 * Makefile.in: Regenerate.
1759 * testsuite/Makefile.in: Regenerate.
1760 * aclocal.m4: Regenerate.
1762 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1764 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1766 * configure.ac: Add check for loadavg.h.
1767 (link_gomp): Adjust comment.
1768 * configure: Regenerate.
1769 * config.h.in: Regenerate.
1771 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1774 * configure.ac: Remove check for alloca.h.
1775 * configure: Regenerate.
1776 * config.h.in: Regenerate.
1777 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1778 * team.c: Remove use of alloca.h.
1779 Call gomp_alloca instead of alloca.
1781 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1784 * team.c: Add include of alloca.h.
1785 * configure.ac: Add check for alloca.h.
1786 * configure: Regenerate.
1787 * config.h.in: Regenerate.
1789 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1792 * testsuite/libgomp.fortran/pr25219.f90: New test.
1794 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1796 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1797 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1798 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1799 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1800 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1801 testsuite/libgomp.fortran/threadprivate1.f90,
1802 testsuite/libgomp.fortran/threadprivate2.f90,
1803 testsuite/libgomp.fortran/threadprivate3.f90,
1804 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1805 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1806 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1807 effective-target to TLS runtime.
1809 * testsuite/libgomp.fortran/pr25162.f: Require
1810 effective-target TLS runtime.
1812 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1814 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1815 * testsuite/libgomp.c/nestedfn-3.c: New test.
1817 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1820 * testsuite/libgomp.fortran/pr25162.f: New test.
1822 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1824 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1825 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1827 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1829 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1830 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1831 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1832 single.c, team.c, work.c, config/linux/alpha/futex.h,
1833 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1834 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1835 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1836 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1837 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1838 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1839 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1842 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1844 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1845 to nodist_noinst_HEADERS.
1846 * Makefile.in: Rebuilt.
1848 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1849 add integer count field.
1850 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1851 omp_nest_lock_t type change.
1852 (omp_init_nest_lock): Likewise. Initialize count to 0.
1853 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1855 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1857 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1858 Increment count if successful and return the new nesting level.
1859 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1860 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1861 * testsuite/libgomp.c/lib-1.c: New test.
1862 * testsuite/libgomp.fortran/lib1.f90: New test.
1863 * testsuite/libgomp.fortran/lib2.f: New test.
1864 * testsuite/libgomp.fortran/lib3.f: New test.
1866 2005-11-17 Richard Henderson <rth@redhat.com>
1869 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1870 * configure.ac (link_gomp): New. Substitute it.
1871 (AC_CONFIG_FILES): Add libgomp.spec.
1872 * libgomp.spec.in: New file.
1873 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1874 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1876 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1878 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1879 reduction(-:var) behaving the same as reduction(+:var).
1880 * testsuite/libgomp.c/reduction-4.c: New test.
1882 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1884 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1885 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1886 testsuite/libgomp.c/copyin-3.c,
1887 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1888 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1889 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1890 testsuite/libgomp.c++/pr24455.C,
1891 testsuite/libgomp.fortran/threadprivate1.f90,
1892 testsuite/libgomp.fortran/threadprivate2.f90,
1893 testsuite/libgomp.fortran/threadprivate3.f90,
1894 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1895 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1896 testsuite/libgomp.fortran/omp_parse3.f90: Require
1897 effective-target TLS.
1899 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1903 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1906 * team.c (initialize_team): Pass NULL rather than free as
1907 pthread_key_create destructor. Initialize thread specific data
1908 pointer in initial thread to a static local variable rather than
1911 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1913 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1914 its location to ld_library_path.
1916 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1918 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1920 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1922 * testsuite/libgomp.c: Rename from libgomp.dg.
1924 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1926 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1927 threadprivate variable 'i'.
1929 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1931 * config/linux/s390/futex.h: New file.
1932 * configure.tgt: Use it.
1934 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1935 before the parallel.
1937 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1940 * testsuite/libgomp.c++/master-1.C: New test.
1942 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1944 * testsuite/libgomp.dg/copyin-3.c: New test.
1946 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1948 * testsuite/libgomp.fortran/retval1.f90: New test.
1949 * testsuite/libgomp.fortran/vla7.f90: New test.
1951 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1953 * testsuite/libgomp.fortran/vla2.f90: New test.
1954 * testsuite/libgomp.fortran/vla3.f90: New test.
1955 * testsuite/libgomp.fortran/vla4.f90: New test.
1956 * testsuite/libgomp.fortran/vla5.f90: New test.
1957 * testsuite/libgomp.fortran/vla6.f90: New test.
1959 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1961 * config/linux/sparc/futex.h: New file.
1962 * configure.tgt: Use it.
1963 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1965 * critical.c: Include stdlib.h.
1966 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1967 ignoring return value.
1968 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1969 LIBGOMP_CHECK_SYNC_BUILTINS check.
1970 * configure: Rebuilt.
1972 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1974 * testsuite/libgomp.fortran/vla1.f90: New test.
1976 2005-10-31 Richard Henderson <rth@redhat.com>
1978 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1979 setting 's' in different threads.
1981 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1983 * libgomp.h (attribute_hidden, ialias): Define.
1984 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1985 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1986 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1987 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1988 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1989 omp_test_lock, omp_test_nest_lock): Likewise.
1990 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1991 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1992 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1993 omp_test_lock, omp_test_nest_lock): Likewise.
1994 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1995 omp_get_dynamic, omp_get_nested): Likewise.
1996 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1997 omp_get_thread_num, omp_in_parallel): Likewise.
1998 * fortran.c (ialias_redirect): Define.
1999 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2000 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2001 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2002 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2003 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2004 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2005 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2006 omp_get_wtime): Add ialias_redirect.
2008 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2010 * fortran.c: Include stdlib.h.
2012 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2014 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2015 * Makefile.in: Regenerated.
2017 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2019 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2020 * libgomp_f.h.in (omp_check_defines): New function.
2021 * env.c: Include libgomp_f.h.
2022 (initialize_env): Call omp_check_defines.
2024 * testsuite/libgomp.dg/copyin-2.c: New test.
2025 * testsuite/libgomp.c++/copyin-2.C: New test.
2026 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2028 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2029 * testsuite/libgomp.fortran/sharing2.f90: New test.
2031 * testsuite/libgomp.dg/copyin-1.c: New test.
2032 * testsuite/libgomp.c++/copyin-1.C: New test.
2034 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2036 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2038 * testsuite/libgomp.fortran/workshare1.f90: New test.
2040 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2042 * libgomp.fortran/sharing1.f90: New test.
2044 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2047 * testsuite/libgomp.c++/loop-7.C: New test.
2049 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2051 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2052 * testsuite/libgomp.fortran/reduction6.f90: New test.
2053 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2055 2005-10-23 Richard Henderson <rth@redhat.com>
2057 * testsuite/libgomp.c++/ctor-1.C: New.
2058 * testsuite/libgomp.c++/ctor-2.C: New.
2059 * testsuite/libgomp.c++/ctor-3.C: New.
2060 * testsuite/libgomp.c++/ctor-4.C: New.
2061 * testsuite/libgomp.c++/ctor-5.C: New.
2062 * testsuite/libgomp.c++/ctor-6.C: New.
2063 * testsuite/libgomp.c++/ctor-7.C: New.
2064 * testsuite/libgomp.c++/ctor-8.C: New.
2065 * testsuite/libgomp.c++/ctor-9.C: New.
2067 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2070 * testsuite/libgomp.c++/pr24455-1.C: New test.
2071 * testsuite/libgomp.c++/pr24455.C: New test.
2072 * testsuite/libgomp.dg/pr24455-1.c: New test.
2073 * testsuite/libgomp.dg/pr24455.c: New test.
2075 2005-10-20 Richard Henderson <rth@redhat.com>
2077 * testsuite/libgomp.c++/loop-6.C: New.
2078 * testsuite/libgomp.dg/loop-3.c: New.
2080 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2082 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2084 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2087 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2089 * testsuite/libgomp.fortran/jacobi.f: New test.
2091 2005-10-19 Richard Henderson <rth@redhat.com>
2093 * configure.tgt (i?86-linux): Default to with_arch instead of
2094 CFLAGS. Add -mtune to match target_cpu.
2095 (x86_64-linux): Tune to i686.
2097 * fortran.c (omp_test_nest_lock_): Fix typo.
2099 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2101 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2102 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2103 * testsuite/libgomp.dg/ordered-3.c: New test.
2105 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2106 Remove volatile keyword.
2108 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2109 in COMMON block to avoid warnings on 64-bit targets.
2111 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2113 * testsuite/libgomp.dg/shared-3.c: New test.
2115 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2117 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2118 * testsuite/libgomp.fortran/reduction5.f90: New test.
2120 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2122 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2124 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2125 flush loop now that __sync_synchronize has proper memory barrier.
2126 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2127 Add -ffixed-form to dg-options.
2129 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2131 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2132 from subdirectories.
2133 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2134 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2135 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2136 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2137 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2138 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2139 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2140 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2141 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2142 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2143 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2144 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2145 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2146 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2147 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2148 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2149 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2150 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2151 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2152 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2153 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2154 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2155 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2156 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2157 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2159 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2161 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2162 lang_library_path exists. Use find instead of glob to gather tests.
2163 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2165 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2167 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2168 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2169 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2170 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2171 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2172 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2173 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2174 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2175 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2176 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2177 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2178 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2179 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2181 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2183 * testsuite/libgomp.dg/vla-1.c: New test.
2185 * testsuite/libgomp.fortran/reference2.f90: New test.
2187 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2188 declaration of omp_get_thread_num.
2189 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2192 * testsuite/libgomp.fortran/reduction1.f90: New test.
2193 * testsuite/libgomp.fortran/reduction2.f90: New test.
2194 * testsuite/libgomp.fortran/reduction3.f90: New test.
2195 * testsuite/libgomp.fortran/reduction4.f90: New test.
2197 2005-10-13 Richard Henderson <rth@redhat.com>
2199 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2200 * Makefile.in: Regenerate.
2201 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2202 * libgomp.h: Include bar.h.
2203 (struct gomp_barrier): Remove.
2204 (struct gomp_team): Add barrier. Replace master_barrier with
2205 master_release. Replace threads with ordered_release.
2206 (struct gomp_thread): Replace barrier with release.
2207 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2208 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2209 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2210 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2211 (GOMP_single_copy_end): Likewise.
2212 * team.c (gomp_threads_dock): New.
2213 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2214 (gomp_thread_start): Use gomp_barrier_wait.
2215 (new_team, free_team): Update for gomp_team changes.
2216 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2217 (gomp_team_end): Use gomp_barrier_wait.
2218 (initialize_team): Update for gomp_thread changes.
2219 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2220 (gomp_work_share_end_nowait): Use atomic ops when available.
2221 * config/linux/bar.c, config/linux/bar.h: New files.
2222 * config/posix/bar.c, config/posix/bar.h: New files.
2224 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2226 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2227 * testsuite/libgomp.dg/single-2.c: New test.
2229 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2230 lang_link_flags): Unset, so that they aren't inherited from previously
2233 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2235 2005-10-12 Richard Henderson <rth@redhat.com>
2237 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2238 (libgomp_init): Use lang_test_file, lang_library_path, and
2239 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2241 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2242 (lang_test_file, lang_link_flags): New.
2243 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2245 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2246 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2247 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2248 testsuite/libgomp.c++/parallel-1.C,
2249 testsuite/libgomp.c++/reduction-1.C,
2250 testsuite/libgomp.c++/reduction-2.C,
2251 testsuite/libgomp.c++/reduction-3.C,
2252 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2253 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2254 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2255 New files, largely cribbed from the C testsuite.
2257 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2259 * testsuite/libgomp.fortran/character1.f90: New test.
2260 * testsuite/libgomp.fortran/character2.f90: New test.
2262 * testsuite/libgomp.dg/nested-1.c: New test.
2263 * testsuite/libgomp.dg/nested-2.c: New test.
2264 * testsuite/libgomp.fortran/do1.f90: New test.
2265 * testsuite/libgomp.fortran/do2.f90: New test.
2267 * testsuite/libgomp.fortran/reference1.f90: New test.
2269 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2271 * testsuite/libgomp.dg/reduction-1.c: New test.
2272 * testsuite/libgomp.dg/reduction-2.c: New test.
2273 * testsuite/libgomp.dg/reduction-3.c: New test.
2275 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2277 * testsuite/libgomp.dg/atomic-1.c: New test.
2278 * testsuite/libgomp.dg/atomic-2.c: New test.
2280 2005-10-09 Richard Henderson <rth@redhat.com>
2282 * critical.c (atomic_lock): New.
2283 (initialize_critical): Initialize it.
2284 (GOMP_atomic_start, GOMP_atomic_end): New.
2285 * libgomp.map: Export them.
2286 * libgomp_g.h: Declare them.
2288 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2290 2005-10-02 Richard Henderson <rth@redhat.com>
2292 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2293 to XCFLAGS instead of CFLAGS.
2295 2005-09-30 Richard Henderson <rth@redhat.com>
2297 * configure.ac: Determine whether -pthread or -lpthread is needed.
2298 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2299 * Makefine.in, configure: Rebuild.
2301 2005-09-28 Richard Henderson <rth@redhat.com>
2303 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2304 * testsuite/libgomp.dg/omp-single-3.c: New test.
2306 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2308 * testsuite/libgomp.dg/omp-single-2.c: New test.
2309 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2311 2005-09-27 Richard Henderson <rth@redhat.com>
2313 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2314 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2316 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2318 * testsuite/libgomp.dg/omp-loop03.c: New test.
2320 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2322 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2324 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2326 * testsuite/libgomp.dg/omp-single-1.c: New test.
2327 * testsuite/libgomp.dg/shared-1.c: Return 0.
2328 Add prototype for abort.
2329 * testsuite/libgomp.dg/shared-2.c: Likewise.
2331 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2333 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2336 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2338 * testsuite/libgomp.dg/shared-1.c: New test.
2339 * testsuite/libgomp.dg/shared-2.c: New test.
2341 2005-09-24 Richard Henderson <rth@redhat.com>
2343 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2345 2005-09-24 Richard Henderson <rth@redhat.com>
2347 * iter.c (gomp_iter_static_next): Round up when computing number
2348 of iterations. Don't bother distributing a remainder equally.
2350 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2351 Don't call srand. Zero b before testing.
2354 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2356 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2357 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2359 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2361 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2362 without !$omp end do, followed immediately by subroutine end.
2364 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2366 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2368 2005-09-22 Richard Henderson <rth@redhat.com>
2370 * critical.c (GOMP_critical_name_start): Change argument to void**.
2371 Reuse the pointer space if the mutex fits.
2372 (GOMP_critical_name_end): Likewise.
2373 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2374 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2375 (GOMP_critical_name_end): Likewise.
2376 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2377 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2379 2005-09-20 Richard Henderson <rth@redhat.com>
2381 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2382 (create_lock_lock): New.
2383 (initialize_critical): Initialize it.
2384 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2385 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2387 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2389 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2391 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2393 * testsuite/libgomp.dg/omp-loop01.c: New test.
2394 * testsuite/libgomp.dg/omp-loop02.c: New test.
2396 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2398 * configure.ac (AC_PROG_FC): Add.
2399 (USE_FORTRAN): New automake conditional.
2400 * configure: Rebuilt.
2401 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2402 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2403 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2404 Add rules to build them.
2405 * Makefile.in: Rebuilt.
2406 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2408 * libgomp.map: Add Fortran wrappers.
2409 * libgomp_f.h.in: New file.
2410 * omp_lib.h.in: New file.
2411 * omp_lib.f90.in: New file.
2412 * fortran.c: New file.
2413 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2414 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2415 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2416 libgfortran has been built.
2417 * testsuite/libgomp.fortran/fortran.exp: New file.
2418 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2419 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2420 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2421 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2422 * testsuite/libgomp.fortran/omp_hello.f: New test.
2423 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2424 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2425 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2426 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2427 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2428 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2429 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2430 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2432 2005-08-30 Richard Henderson <rth@redhat.com>
2434 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2435 function for when aliases are not usable.
2436 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2437 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2438 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2439 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2440 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2441 GOMP_loop_ordered_guided_next): Likewise.
2442 * ordered.c (GOMP_ordered_start): Likewise.
2444 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2446 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2447 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2448 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2449 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2450 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2451 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2452 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2453 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2454 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2456 2005-07-07 Eric Christopher <echristo@redhat.com>
2457 Diego Novillo <dnovillo@redhat.com>
2459 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2460 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2462 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2463 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2464 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2465 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2466 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2467 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2468 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2470 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2472 * TOPLEVEL.patch: Remove.
2474 2005-05-16 Richard Henderson <rth@redhat.com>
2476 * configure.ac: Test for clock_gettime.
2477 * config.h.in, configure: Rebuild.
2478 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2479 (omp_get_wtime): Use clock_gettime if available.
2480 (omp_get_wtick): Use clock_getres if available.
2482 2005-05-11 Richard Henderson <rth@redhat.com>
2484 * config/linux/ia64/futex.h: New file.
2485 * configure.tgt: Use it.
2487 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2489 2005-05-07 Richard Henderson <rth@redhat.com>
2491 * config/linux/powerpc/futex.h: New file.
2492 * configure.tgt: Use it.
2494 * config/linux/i486/futex.h: Merge ...
2495 * config/linux/x86_64/futex.h: ... into ...
2496 * config/linux/x86/futex.h: ... here.
2497 * configure.tgt: Update to match.
2499 2005-05-06 Richard Henderson <rth@redhat.com>
2501 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2502 * config/linux/i486/futex.h: Likewise.
2503 * config/linux/x86_64/futex.h: Likewise.
2505 * config/linux/lock.c: New file.
2506 * config/linux/omp-lock.h: New file.
2508 * critical.c, env.h: Don't include omp.h
2509 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2510 * config/posix/time.c: Likewise.
2511 * config/posix/omp-lock.h: New file.
2512 * libgomp.h: Include omp-lock.h and omp.h.
2513 * Makefile.am (nodist_include_HEADERS): New.
2515 * configure.ac (PERL): New.
2516 * mkomp_h.pl: New file.
2517 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2519 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2521 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2522 build directory. Re-add -march=i486 hack.
2524 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2525 (libgomp_link_flags): Remove.
2526 (libgomp_initialized): Remove.
2527 (libgomp_init): Don't protect from reinitialization. Copy code
2528 from libstdc++ for getting the multilib set correctly.
2530 2005-05-05 Richard Henderson <rth@redhat.com>
2532 * config/linux/alpha/futex.h: New file.
2533 * configure.tgt (alpha*-*-linux*): Use it.
2535 * config/posix/mutex.c: New file.
2536 * config/posix/sem.c: Use libgomp.h.
2538 * configure.tgt (x86_64-linux): Also test CC for -m32.
2539 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2541 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2544 * Makefile.am (SUBDIRS): New.
2545 (libgomp_la_LDFLAGS): Add -lpthread.
2546 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2547 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2549 * libgomp_g.h: New file.
2550 * libgomp.h: Split out all public declarations to libgomp_g.h.
2551 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2552 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2553 * config/linux/sem.h: Likewise.
2554 * config/posix/sem.h: Likewise.
2556 * Makefile.am (AM_LDFLAGS): New.
2557 (libgomp_version_script): Split out from ...
2558 (libgomp_la_LDFLAGS): ... here.
2559 (libgomp_version_info): New.
2560 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2561 (LIBGOMP_ENABLE): New.
2562 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2563 (LIBGOMP_ENABLE_SYMVERS): New.
2564 * configure.ac (AC_INIT): Version 1.0.
2565 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2566 (enable-linux-futex): Likewise. Rename from enable-futex.
2567 (libtool_VERSION): New.
2568 (LIBGOMP_ENABLE_SYMVERS): Use it.
2569 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2570 * Makefile.in, aclocal.m4, configure: Rebuild.
2572 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2573 (gomp_mutex_unlock_slow): Fix typo.
2574 * config/linux/sem.c: Similarly.
2575 (gomp_sem_post_slow): Fix typo.
2576 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2577 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2578 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2580 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2581 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2582 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2583 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2584 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2585 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2586 LDFLAGS. Pull enable_futex check to top-level.
2587 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2588 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2590 First attempt at real configury.
2591 * Makefile, config.h: Remove file.
2592 * Makefile.am, Makefile.in: New file.
2593 * acinclude.m4 aclocal.m4: New file.
2594 * configure.ac, configure.tgt, configure: New file.
2596 * config/posix/lock.c: Rename from sys-lock.c.
2597 * config/posix/mutex.h: Rename from sys-mutex.h.
2598 * config/posix/sem.c: Rename from sys-sem.c.
2599 * config/posix/sem.h: Rename from sys-sem.h.
2600 * config/posix/proc.c: Rename from sys-proc.c.
2601 * config/posix/time.c: Rename from sys-proc.c.
2603 * config/linux/mutex.c: New file.
2604 * config/linux/mutex.h: New file.
2605 * config/linux/sem.c: New file.
2606 * config/linux/sem.h: New file.
2607 * config/linux/i486/futex.h: New file.
2608 * config/linux/x86_64/futex.h: New file.
2610 2005-05-04 Richard Henderson <rth@redhat.com>
2612 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2613 * libgomp.h: Declare them.
2614 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2615 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2617 2005-05-04 Richard Henderson <rth@redhat.com>
2619 * libgomp-1 code drop
2621 2005-05-04 Richard Henderson <rth@redhat.com>
2623 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2624 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2625 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2626 (gomp_iter_static_next): Update.
2627 (gomp_ordered_static_next): Update.
2628 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2629 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2630 totally empty range.
2631 (gomp_loop_ordered_static_next): Refine test for calling
2632 gomp_ordered_static_next.
2633 * testsuite/ordered-1.c: Add case for more threads than iterations.
2635 * iter.c (gomp_iter_runtime_next_locked): Remove.
2636 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2637 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2638 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2639 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2640 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2641 gomp_loop_ordered_guided_next): Downcase name, make static, add
2642 an external alias with the old name.
2643 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2644 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2645 switch and call one of the above static functions.
2646 * libgomp.h: Update.
2648 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2649 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2650 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2651 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2652 GOMP_loop_ordered_guided_start): Update to match.
2653 * sections.c (GOMP_sections_start): Likewise.
2654 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2656 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2657 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2658 Use bounds check instead of modulus.
2659 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2660 (gomp_ordered_last): Don't sync with ordered_owner here.
2661 (gomp_ordered_next): Likewise.
2662 (gomp_ordered_static_loop_next): Likewise.
2663 * loop.c, libgomp.h: Update to match.
2665 * libgomp.h (GOMP_barrier): Declare.
2667 * testsuite/barrier-1.c: New file.
2668 * testsuite/critical-1.c: New file.
2669 * testsuite/ordered-2.c: New file.
2670 * testsuite/ordered-1.c: New file.
2671 * testsuite/sections-1.c: New file.
2672 * testsuite/single-1.c: New file.
2673 * testsuite/Makefile (TESTS): Add them.
2675 2005-05-04 Richard Henderson <rth@redhat.com>
2677 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2678 * loop.c (GOMP_loop_static_start): If not the startup thread,
2679 acquire the mutex to wait for initialization complete.
2680 (GOMP_loop_ordered_static_start): Likewise.
2681 (GOMP_loop_ordered_runtime_start): Likewise.
2682 (GOMP_loop_ordered_static_first): Remove.
2683 (GOMP_loop_ordered_dynamic_first): Remove.
2684 (GOMP_loop_ordered_guided_first): Remove.
2685 (GOMP_loop_ordered_runtime_first): Remove.
2686 * ordered.c (gomp_ordered_loop_first): Post to own release when
2687 we're the first thread.
2688 (gomp_ordered_loop_last): Wait on release if not owner.
2689 (gomp_ordered_loop_next): Likewise.
2690 (gomp_ordered_static_loop_init): New.
2691 (gomp_ordered_static_loop_next): Use ordered_owner.
2692 (GOMP_ordered_start): Likewise.
2693 * work.c (gomp_new_work_share): Initialize ordered_owner.
2695 2005-05-03 Richard Henderson <rth@redhat.com>
2697 * Makefile (OPT): New.
2700 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2701 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2702 * libgomp.h, libgomp.map, NOTES: Update to match.
2704 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2705 Add initialized and thr members.
2706 (gomp_thread_start): Pause when initially spawned to wait for
2707 the whole team to be created.
2708 (gomp_team_start): Release team members at the end.
2710 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2711 (f_foo_1): Use GOMP_loop_end.
2712 (f_foo_2): Use GOMP_loop_end_nowait.
2714 * testsuite/loop-2.c: New file.
2715 * testsuite/Makefile (TESTS): Add it.
2717 2005-05-03 Richard Henderson <rth@redhat.com>
2719 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2720 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2721 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2724 * testsuite/Makefile: New file.
2725 * testsuite/loop-1.c: New file.
2727 2005-05-03 Richard Henderson <rth@redhat.com>
2729 Initial implementation and checkin.