1 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3 * Makefile.in: Regenerate.
4 * aclocal.m4: Regenerate.
5 * testsuite/Makefile.in: Regenerate.
7 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
11 (initialize_env): Adjust callers.
12 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13 when the argument is 0.
15 * testsuite/libgomp.c/pr42942.c: New test.
17 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
21 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
22 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
24 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
27 * testsuite/libgomp.c++/task-6.C: Likewise.
29 2010-01-28 Steve Ellcey <sje@cup.hp.com>
31 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
33 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
35 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
36 * configure: Regenerate.
38 2010-01-26 Jakub Jelinek <jakub@redhat.com>
41 * testsuite/libgomp.fortran/allocatable5.f90: New test.
43 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
45 * configure.ac: Test for executability of GFORTRAN.
46 * configure: Regenerate.
48 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
50 * configure: Regenerate.
52 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
55 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
57 2010-01-03 Richard Guenther <rguenther@suse.de>
59 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
61 2009-12-23 Sebastian Pop <sebpop@gmail.com>
63 * testsuite/libgomp.graphite/pr4118.c: New.
65 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
67 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
68 for darwin, protect the test with require-effective-target tls_runtime.
69 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
71 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
74 * testsuite/lib/libgomp.exp: Provide -B options to allow for
75 link spec %s substitutions for static libraries.
77 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
80 * libgomp.graphite/force-parallel-2.c: Reduce array size.
82 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
84 * Makefile.in: Regenerate.
85 * configure: Regenerate.
86 * testsuite/Makefile.in: Regenerate.
88 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
90 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
91 settings for LC_ALL and LANG.
93 2009-11-25 Jakub Jelinek <jakub@redhat.com>
96 * testsuite/libgomp.fortran/pr42162.f90: New test.
98 2009-11-13 Jakub Jelinek <jakub@redhat.com>
101 * testsuite/libgomp.c/pr42029.c: New test.
103 2009-10-26 Jakub Jelinek <jakub@redhat.com>
105 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
106 *s. Accept ld version without text in ()s.
107 * configure: Regenerated.
109 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
111 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
113 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
116 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
117 or a hyphen (happens with fortran language disabled).
118 * configure: Regenerate.
120 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
122 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
123 use sed script portable to Solaris /bin/sed for extracting ld
125 * configure: Regenerate.
127 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
129 * testsuite/libgomp.graphite/bounds.c: New test.
131 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
133 * Makefile.am (libgomp_la_LINK): New.
134 * Makefile.in: Regenerate.
136 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
138 * configure.ac (AC_PREREQ): Bump to 2.64.
140 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
142 * Makefile.am (install-html, install-pdf): Remove.
143 * Makefile.in: Regenerate.
145 * Makefile.in: Regenerate.
146 * aclocal.m4: Regenerate.
147 * config.h.in: Regenerate.
148 * configure: Regenerate.
149 * testsuite/Makefile.in: Regenerate.
151 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
153 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
154 * Makefile.in: Regenerate.
156 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
158 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
159 * Makefile.in: Regenerate.
161 2009-08-19 Tobias Burnus <burnus@net-b.de>
164 omp_lib.h.in: Fix -std=f95 errors.
167 2009-08-14 David Edelsohn <edelsohn@gnu.org>
169 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
170 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
171 * testsuite/libgomp.graphite/graphite.exp: New.
173 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
175 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
178 2009-08-04 David Daney <ddaney@caviumnetworks.com>
180 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
181 needed memory barrier semantics.
182 * config/linux/mips/mutex.h: New file.
184 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
186 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
188 2009-07-16 Joseph Myers <joseph@codesourcery.com>
190 * configure: Regenerate.
192 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
197 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
198 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
199 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
201 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
203 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
204 options when choosing a multilib.
206 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
208 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
209 ld_library_path. Use add_path. Add just find_libgcc_s to
210 ld_library_path, not every libgcc multilib directory.
211 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
212 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
213 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
215 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
217 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
219 * Makefile.am (LTLDFLAGS): Define.
221 * Makefile.in: Regenerate.
223 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
226 * testsuite/libgomp.fortran/fortran.exp: Don't link with
227 libgfortranbegin, check existence of libgfortran.a instead of
230 2009-05-20 Jakub Jelinek <jakub@redhat.com>
233 * team.c (gomp_thread_start): Destroy thr->release semaphore.
234 (gomp_free_pool_helper): Likewise.
236 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
237 Jakub Jelinek <jakub@redhat.com>
240 * testsuite/libgomp.fortran/workshare2.f90: New test.
242 2009-04-09 Nick Clifton <nickc@redhat.com>
244 * iter.c: Change copyright header to refer to version 3 of the
245 GNU General Public License with version 3.1 of the GCC Runtime
246 Library Exception and to point readers at the COPYING3 and
247 COPYING3.RUNTIME files and the FSF's license web page.
249 * barrier.c: Likewise.
250 * config/bsd/proc.c: Likewise.
251 * config/linux/affinity.c: Likewise.
252 * config/linux/alpha/futex.h: Likewise.
253 * config/linux/bar.c: Likewise.
254 * config/linux/bar.h: Likewise.
255 * config/linux/ia64/futex.h: Likewise.
256 * config/linux/ia64/mutex.h: Likewise.
257 * config/linux/lock.c: Likewise.
258 * config/linux/mips/futex.h: Likewise.
259 * config/linux/mutex.c: Likewise.
260 * config/linux/mutex.h: Likewise.
261 * config/linux/powerpc/futex.h: Likewise.
262 * config/linux/proc.c: Likewise.
263 * config/linux/ptrlock.c: Likewise.
264 * config/linux/ptrlock.h: Likewise.
265 * config/linux/s390/futex.h: Likewise.
266 * config/linux/sem.c: Likewise.
267 * config/linux/sem.h: Likewise.
268 * config/linux/sparc/futex.h: Likewise.
269 * config/linux/wait.h: Likewise.
270 * config/linux/x86/futex.h: Likewise.
271 * config/mingw32/proc.c: Likewise.
272 * config/mingw32/time.c: Likewise.
273 * config/posix/affinity.c: Likewise.
274 * config/posix/bar.c: Likewise.
275 * config/posix/bar.h: Likewise.
276 * config/posix/lock.c: Likewise.
277 * config/posix/mutex.h: Likewise.
278 * config/posix/proc.c: Likewise.
279 * config/posix/ptrlock.h: Likewise.
280 * config/posix/sem.c: Likewise.
281 * config/posix/sem.h: Likewise.
282 * config/posix/time.c: Likewise.
283 * config/posix95/lock.c: Likewise.
284 * critical.c: Likewise.
287 * fortran.c: Likewise.
288 * iter_ull.c: Likewise.
289 * libgomp.h: Likewise.
290 * libgomp_f.h.in: Likewise.
291 * libgomp_g.h: Likewise.
293 * loop_ull.c: Likewise.
294 * omp.h.in: Likewise.
295 * omp_lib.f90.in: Likewise.
296 * omp_lib.h.in: Likewise.
297 * ordered.c: Likewise.
298 * parallel.c: Likewise.
299 * sections.c: Likewise.
300 * single.c: Likewise.
305 2009-04-09 Jakub Jelinek <jakub@redhat.com>
307 * testsuite/config/default.exp: Change copyright header to refer to
308 version 3 of the GNU General Public License and to point readers
309 at the COPYING3 file and the FSF's license web page.
311 2009-04-08 Jakub Jelinek <jakub@redhat.com>
314 * libgomp.c++/pr39573.C: New test.
316 2009-04-01 Jakub Jelinek <jakub@redhat.com>
319 * testsuite/libgomp.c/pr39591-1.c: New test.
320 * testsuite/libgomp.c/pr39591-2.c: New test.
321 * testsuite/libgomp.c/pr39591-3.c: New test.
323 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
325 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
326 * testsuite/libgomp.c/atomic-6.c: Ditto.
328 2009-03-23 Jakub Jelinek <jakub@redhat.com>
331 * testsuite/libgomp.c/loop-12.c: New test.
332 * testsuite/libgomp.c/loop-11.c: New test.
333 * testsuite/libgomp.c++/loop-11.C: New test.
334 * testsuite/libgomp.c++/loop-12.C: New test.
335 * testsuite/libgomp.c++/for-8.C: New test.
337 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
339 * configure: Regenerate.
341 2009-02-11 Jakub Jelinek <jakub@redhat.com>
344 * testsuite/libgomp.c/pr39154.c: New test.
346 2009-01-30 Ian Lance Taylor <iant@google.com>
348 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
349 libgomp_ld_is_gold. Get gold version number.
350 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
351 * configure: Rebuild.
353 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
355 * testsuite/lib/libgomp.exp: Add -B option for targets that
356 use libgfortran.a%s in their specs.
358 2009-01-07 Jakub Jelinek <jakub@redhat.com>
361 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
362 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
363 HAVE_AS_SYMVER_DIRECTIVE is not defined.
364 * configure: Regenerated.
365 * config.h.in: Likewise.
367 2008-12-28 Jakub Jelinek <jakub@redhat.com>
370 * testsuite/libgomp.c/pr38650.c: New test.
371 * testsuite/libgomp.c++/pr38650.C: New test.
373 2008-12-27 Jakub Jelinek <jakub@redhat.com>
375 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
377 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
379 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
381 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
383 * configure: Regenerate.
385 2008-12-08 Jakub Jelinek <jakub@redhat.com>
388 * testsuite/libgomp.c/pr36802-1.c: New test.
389 * testsuite/libgomp.c/pr36802-2.c: New test.
390 * testsuite/libgomp.c/pr36802-3.c: New test.
392 2008-12-01 Janis Johnson <janis187@us.ibm.com>
395 * config/linux/powerpc/mutex.h: New.
397 2008-12-01 Jakub Jelinek <jakub@redhat.com>
400 * testsuite/libgomp.c++/for-7.C: New test.
403 * testsuite/libgomp.c++/for-6.C: New test.
405 2008-11-26 Janis Johnson <janis187@us.ibm.com>
408 * testsuite/lib/libgomp.exp: Include new timeout library files.
409 (libgomp_target_compile): Set timeout value from new proc.
411 2008-11-13 Steve Ellcey <sje@cup.hp.com>
414 * config/linux/ia64/mutex.h: New.
416 2008-11-04 Tobias Burnus <burnus@net-b.de>
419 * libgomp.texi (Runtime library routines, environment variables):
420 Update for OpenMP version 3.0.
422 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
423 Steve Ellcey <sje@cup.hp.com>
425 * configure: Regenerate for new libtool.
426 * Makefile.in: Ditto.
427 * testsuite/Makefile.in: Ditto.
429 2008-09-19 Jakub Jelinek <jakub@redhat.com>
430 Andreas Tobler <a.tobler@schweiz.org>
432 * config/bsd/proc.c: New file.
433 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
434 * configure.ac: Check for header <sys/sysctl.h>
435 * configure: Regenerate.
436 * config.h.in: Likewise.
438 2008-09-05 Janis Johnson <janis187@us.ibm.com>
440 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
442 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
444 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
445 * Makefile.in: Regenerated.
446 * testsuite/Makefile.in: Regenerated.
448 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
450 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
451 depend on blddir if blddir exists.
452 (libgomp_target_compile): Likewise.
453 * testsuite/libgomp.c++/c++.exp: Likewise.
454 * testsuite/libgomp.fortran/fortran.exp: Likewise.
456 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
458 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
459 Do not list GPL as Invariant Section.
461 2008-07-28 Ilie Garbacea <ilie@mips.com>
462 Chao-ying Fu <fu@mips.com>
464 * configure.tgt: Enable futex for MIPS.
465 * config/linux/mips/futex.h: New file.
467 2008-07-16 Jakub Jelinek <jakub@redhat.com>
469 * team.c (gomp_team_end): Free team immediately if it has
472 2008-07-08 David Edelsohn <edelsohn@gnu.org>
474 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
475 * testsuite/libgomp.fortran/fortran.exp: Same.
476 * testsuite/libgomp.c/c.exp: Same.
477 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
478 directory to library path first.
480 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
482 * env.c (parse_stacksize): Add cast to avoid warning.
483 (parse_spincount): Likewise.
485 2008-06-27 Jakub Jelinek <jakub@redhat.com>
487 * testsuite/libgomp.c/loop-10.c: New test.
488 * libgomp.c/loop-3.c (main): Add lastprivate clause.
489 * libgomp.c++/loop-6.C (main): Likewise.
492 * testsuite/libgomp.c/debug-1.c: New test.
494 2008-06-19 Jakub Jelinek <jakub@redhat.com>
496 * testsuite/libgomp.c/nqueens-1.c: New test.
499 * testsuite/libgomp.c++/task-7.C: New function.
501 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
503 * configure: Regenerate.
505 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
507 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
508 mutex when HAVE_SYNC_BUILTINS isn't defined.
510 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
512 * libgomp.texi (omp_test_lock): Fix typo.
514 2008-06-12 Tobias Burnus <burnus@net-b.de>
516 * omp_lib.f90.in: Add "implicit none".
518 2008-06-12 Jakub Jelinek <jakub@redhat.com>
521 * testsuite/libgomp.c/reduction-5.c: New test.
523 2008-06-11 Jakub Jelinek <jakub@redhat.com>
525 * libgomp.h (struct gomp_task): Add in_tied_task field.
526 * task.c (gomp_init_task): Initialize it.
527 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
528 unconditionally. Don't call gomp_team_barrier_wake if
529 current task is implicit or if(0) from implicit and number of
530 running tasks is equal to nthreads - 1.
533 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
534 omp_get_team_size_8): Fix pastos.
537 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
538 * configure: Regenerated.
539 * config.h.in: Regenerated.
540 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
543 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
546 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
547 (GOMP_loop_ull_dynamic_start): Likewise.
548 (GOMP_loop_ull_guided_start): Likewise.
549 (GOMP_loop_ull_ordered_static_start): Likewise.
550 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
551 (GOMP_loop_ull_ordered_guided_start): Likewise.
553 2008-06-06 Jakub Jelinek <jakub@redhat.com>
554 Richard Henderson <rth@redhat.com>
555 Ulrich Drepper <drepper@redhat.com>
556 Jakob Blomer <jakob.blomer@ira.uka.de>
558 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
559 Substitute also OMP_*LOCK_25*.
560 * configure: Regenerated.
561 * config.h.in: Regenerated.
562 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
563 ptrlock.c and task.c.
564 * Makefile.in: Regenerated.
565 * testsuite/Makefile.in: Regenerated.
567 * loop_ull.c: New file.
568 * iter_ull.c: New file.
569 * libgomp.h: Include ptrlock.h.
570 (enum gomp_task_kind): New type.
571 (struct gomp_team): Add task_lock, task_queue, task_count,
572 task_running_count, single_count fields. Add
573 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
574 Remove work_share_lock, generation_mask,
575 oldest_live_gen, num_live_gen and init_work_shares fields, add
576 work work_share_list_alloc, work_share_list_free and work_share_chunk
577 fields. Change work_shares from pointer to pointers into an array.
578 Change ordered_release field into gomp_sem_t ** from flexible array
579 member. Add implicit_task and initial_work_shares fields.
580 Move close to the end of the struct.
581 (struct gomp_team_state): Add single_count, last_work_share,
582 active_level and level fields, remove work_share_generation.
583 (gomp_barrier_handle_tasks): New prototype.
584 (gomp_finish_task): New inline function.
585 (struct gomp_work_share): Move chunk_size, end, incr into
586 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
587 next_ll fields. Reshuffle fields. Add next_alloc,
588 next_ws, next_free and inline_ordered_team_ids fields, change
589 ordered_team_ids into pointer from flexible array member.
590 Add mode field. Put lock and next into a different cache line
591 from most of the write-once fields.
592 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
593 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
594 gomp_iter_ull_guided_next): New prototypes.
595 (gomp_new_icv): New prototype.
596 (struct gomp_thread): Add thread_pool and task fields.
597 (struct gomp_thread_pool): New type.
598 (gomp_new_team): New prototype.
599 (gomp_team_start): Change type of last argument.
600 (gomp_new_work_share): Removed.
601 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
602 (gomp_work_share_init_done): New static inline.
603 (gomp_throttled_spin_count_var, gomp_available_cpus,
604 gomp_managed_threads): New extern decls.
605 (gomp_init_task): New prototype.
606 (gomp_spin_count_var): New extern var decl.
607 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
608 or no alias support, or if not PIC.
609 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
610 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
611 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
612 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
613 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
614 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
615 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
616 gomp_test_nest_lock_25): New prototypes.
617 (omp_lock_symver, strong_alias): Define.
618 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
620 (gomp_end_task): New.
621 (struct gomp_task_icv, gomp_global_icv): New.
622 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
623 (struct gomp_task): New.
624 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
625 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
627 (gomp_schedule_type): Reorder enum to match
629 * team.c (struct gomp_thread_start_data): Add thread_pool and task
631 (gomp_thread_start): Add gomp_team_barrier_wait call.
632 For non-nested case remove clearing of docked thread thr fields.
633 Use pool fields instead of global gomp_* variables. Use
634 gomp_barrier_wait_last when needed. Initialize ts.active_level.
635 Create tasks for each member thread.
636 (free_team): Only destroy team barrier, task_lock here and free it.
637 (gomp_free_thread): Free last_team if non-NULL.
638 (gomp_team_end): Call gomp_team_barrier_wait instead of
639 gomp_barrier_wait. For nested case call one extra
640 gomp_barrier_wait. Move here some destruction from free_team.
641 Call free_team on pool->last_team if any, rather than freeing
642 current team. Destroy work_share_list_free_lock ifndef
644 (gomp_new_icv): New function.
645 (gomp_threads, gomp_threads_size, gomp_threads_used,
646 gomp_threads_dock): Removed.
647 (gomp_thread_destructor): New variable.
648 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
650 (gomp_team_start): Create new pool if current thread doesn't have
651 one. Use pool fields instead of global gomp_* variables.
652 Initialize thread_pool field for new threads. Clear single_count.
653 Change last argument from ws to team, don't create
654 new team, set ts.work_share to &team->work_shares[0] and clear
655 ts.last_work_share. Don't clear ts.work_share_generation.
656 If number of threads changed, adjust atomically gomp_managed_threads.
657 Use gomp_init_task instead of gomp_new_task,
658 set thr->task to the corresponding implicit_task array entry.
659 Create tasks for each member thread. Initialize ts.level.
660 (initialize_team): Call pthread_key_create on
661 gomp_thread_destructor.
662 (team_destructor): New function.
664 (gomp_new_team): New function.
665 (free_team): Free gomp_work_share blocks chained through next_alloc,
666 instead of freeing work_shares and destroying work_share_lock.
667 (gomp_team_end): Call gomp_fini_work_share. If number of threads
668 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
669 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
670 of gomp_barrier_wait.
671 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
672 instead of gomp_barrier_wait. Call gomp_work_share_init_done
673 if gomp_work_share_start returned true. Don't unlock ws->lock.
674 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
675 of gomp_barrier_wait.
676 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
677 gomp_work_share_init_done if gomp_work_share_start returned true.
678 Don't unlock ws->lock.
679 * work.c: Include stddef.h.
680 (free_work_share): Use work_share_list_free_lock instead
681 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
682 Call gomp_fini_work_share and then either free ws if orphaned, or
683 put it into work_share_list_free list of the current team.
684 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
686 (gomp_work_share_start, gomp_work_share_end,
687 gomp_work_share_end_nowait): Rewritten.
688 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
689 (openmp_version): Set to 200805.
690 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
691 omp_sched_guided, omp_sched_auto): New parameters.
692 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
693 omp_set_max_active_levels, omp_get_max_active_levels,
694 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
695 omp_get_active_level): New interfaces.
696 * omp_lib.h.in (openmp_version): Set to 200805.
697 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
698 omp_sched_guided, omp_sched_auto): New parameters.
699 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
700 omp_set_max_active_levels, omp_get_max_active_levels,
701 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
702 omp_get_active_level): New externals.
703 * loop.c: Include limits.h.
704 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
706 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
707 Likewise. Use gomp_icv.
708 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
710 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
711 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
712 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
713 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
714 don't unlock ws->lock, otherwise lock it.
715 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
716 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
717 (gomp_parallel_loop_start): Call gomp_new_team instead of
718 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
719 Adjust gomp_team_start caller. Pass 0 as second argument to
720 gomp_resolve_num_threads.
721 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
722 If adding ws->chunk_size nthreads + 1 times after end won't
723 overflow, set ws->mode to 1.
724 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
725 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
726 GOMP_loop_ull_ordered_static_start,
727 GOMP_loop_ull_ordered_dynamic_start,
728 GOMP_loop_ull_ordered_guided_start,
729 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
730 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
731 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
732 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
733 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
735 * libgomp.map: Export lock routines also @@OMP_2.0.
736 (GOMP_loop_ordered_dynamic_first,
737 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
738 GOMP_loop_ordered_static_first): Remove.
739 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
740 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
741 GOMP_loop_ull_ordered_dynamic_next,
742 GOMP_loop_ull_ordered_dynamic_start,
743 GOMP_loop_ull_ordered_guided_next,
744 GOMP_loop_ull_ordered_guided_start,
745 GOMP_loop_ull_ordered_runtime_next,
746 GOMP_loop_ull_ordered_runtime_start,
747 GOMP_loop_ull_ordered_static_next,
748 GOMP_loop_ull_ordered_static_start,
749 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
750 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
751 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
752 (omp_set_schedule, omp_get_schedule,
753 omp_get_thread_limit, omp_set_max_active_levels,
754 omp_get_max_active_levels, omp_get_level,
755 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
756 omp_set_schedule_, omp_set_schedule_8_,
757 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
758 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
759 omp_get_max_active_levels_, omp_get_level_,
760 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
761 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
762 New exports @@OMP_3.0.
763 * omp.h.in (omp_sched_t): New type.
764 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
765 omp_set_max_active_levels, omp_get_max_active_levels,
766 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
767 omp_get_active_level): New prototypes.
768 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
769 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
770 gomp_thread_limit_var, gomp_remaining_threads_count,
771 gomp_remaining_threads_lock): New variables.
772 (parse_spincount): New function.
773 (initialize_env): Call gomp_init_num_threads unconditionally.
774 Initialize gomp_available_cpus. Call parse_spincount,
775 initialize gomp_{,throttled_}spin_count_var
776 depending on presence and value of OMP_WAIT_POLICY and
777 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
778 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
779 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
780 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
781 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
782 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
783 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
784 (gomp_global_icv): New.
785 (parse_schedule): Use it. Parse "auto".
786 (omp_set_num_threads): Use gomp_icv.
787 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
789 (omp_get_max_threads): Move from parallel.c.
790 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
791 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
793 (parse_stacksize, parse_wait_policy): New functions.
794 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
795 both wrappers for compatibility and new locks.
796 (omp_set_schedule, omp_get_schedule,
797 omp_get_thread_limit, omp_set_max_active_levels,
798 omp_get_max_active_levels, omp_get_level,
799 omp_get_ancestor_thread_num, omp_get_team_size,
800 omp_get_active_level): New ialias_redirect.
801 (omp_set_schedule_, omp_set_schedule_8_,
802 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
803 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
804 omp_get_max_active_levels_, omp_get_level_,
805 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
806 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
808 * parallel.c: Include limits.h.
809 (gomp_resolve_num_threads): Add count argument. Rewritten.
810 (GOMP_parallel_start): Call gomp_new_team and pass that as last
811 argument to gomp_team_start. Pass 0 as second argument to
812 gomp_resolve_num_threads.
813 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
814 if gomp_thread_limit_var != ULONG_MAX.
815 (omp_in_parallel): Implement using ts.active_level.
816 (omp_get_max_threads): Move to env.c.
817 (omp_get_level, omp_get_ancestor_thread_num,
818 omp_get_team_size, omp_get_active_level): New functions,
820 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
821 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
822 gomp_iter_dynamic_next instead of the _locked variant and don't take
823 lock around it, otherwise acquire it before calling
824 gomp_iter_dynamic_next_locked.
825 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
826 gomp_iter_dynamic_next instead of the _locked variant and don't take
828 (GOMP_parallel_sections_start): Call gomp_new_team instead of
829 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
830 Adjust gomp_team_start caller. Pass count as second argument to
831 gomp_resolve_num_threads, don't adjust num_threads after the call.
833 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
834 ws->chunk_size by incr.
835 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
837 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
839 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
840 (omp_check_defines): Check even the compat defines.
841 * config/linux/ptrlock.c: New file.
842 * config/linux/ptrlock.h: New file.
843 * config/linux/wait.h: New file.
844 * config/posix/ptrlock.c: New file.
845 * config/posix/ptrlock.h: New file.
846 * config/linux/bar.h (gomp_team_barrier_wait,
847 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
848 (gomp_team_barrier_set_task_pending,
849 gomp_team_barrier_clear_task_pending,
850 gomp_team_barrier_set_waiting_for_tasks,
851 gomp_team_barrier_waiting_for_tasks,
852 gomp_team_barrier_done): New inlines.
853 (gomp_barrier_t): Rewritten.
854 (gomp_barrier_state_t): New typedef.
855 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
856 gomp_barrier_wait_start): Rewritten.
857 (gomp_barrier_wait_end): Change second argument to
858 gomp_barrier_state_t.
859 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
861 * config/linux/bar.c: Include wait.h instead of libgomp.h and
863 (gomp_barrier_wait_end): Rewritten.
864 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
865 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
866 * config/posix/bar.h (gomp_barrier_t): Add generation field.
867 (gomp_barrier_state_t): New typedef.
868 (gomp_team_barrier_wait,
869 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
870 (gomp_barrier_wait_start): Or all but low 2 bits from generation
871 into the return value. Return gomp_barrier_state_t.
872 (gomp_team_barrier_set_task_pending,
873 gomp_team_barrier_clear_task_pending,
874 gomp_team_barrier_set_waiting_for_tasks,
875 gomp_team_barrier_waiting_for_tasks,
876 gomp_team_barrier_done): New inlines.
877 (gomp_barrier_wait_end): Change second argument to
878 gomp_barrier_state_t.
879 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
881 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
882 (gomp_barrier_wait_end): Change second argument to
883 gomp_barrier_state_t.
884 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
885 gomp_team_barrier_wake): New functions.
886 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
888 (gomp_futex_wake, gomp_futex_wait): New variables.
889 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
890 * config/linux/lock.c: Rewrite to make locks task owned,
891 for backwards compatibility provide the old entrypoints
892 if symbol versioning. Include wait.h instead of libgomp.h and
894 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
895 * config/posix95/lock.c: Rewrite to make locks task owned,
896 for backwards compatibility provide the old entrypoints
897 if symbol versioning.
898 * config/posix/lock.c: Rewrite to make locks task owned,
899 for backwards compatibility provide the old entrypoints
900 if symbol versioning.
901 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
902 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
903 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
904 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
905 (sys_futex0): Return error code.
906 (futex_wake, futex_wait): If ENOSYS was returned, clear
907 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
908 (cpu_relax, atomic_write_barrier): New static inlines.
909 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
910 (futex_wake, futex_wait): If ENOSYS was returned, clear
911 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
912 (cpu_relax, atomic_write_barrier): New static inlines.
913 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
914 (sys_futex0): Return error code.
915 (futex_wake, futex_wait): If ENOSYS was returned, clear
916 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
917 (cpu_relax, atomic_write_barrier): New static inlines.
918 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
919 (sys_futex0): Return error code.
920 (futex_wake, futex_wait): If ENOSYS was returned, clear
921 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
922 (cpu_relax, atomic_write_barrier): New static inlines.
923 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
924 (sys_futex0): Return error code.
925 (futex_wake, futex_wait): If ENOSYS was returned, clear
926 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
927 (cpu_relax, atomic_write_barrier): New static inlines.
928 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
929 (sys_futex0): Return error code.
930 (futex_wake, futex_wait): If ENOSYS was returned, clear
931 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
932 (cpu_relax, atomic_write_barrier): New static inlines.
933 * config/linux/sem.c: Include wait.h instead of libgomp.h and
935 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
936 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
937 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
939 (omp_nest_lock_t): Change owner into void *, add lock field.
940 * config/posix95/omp-lock.h: Include semaphore.h.
941 (omp_lock_25_t, omp_nest_lock_25_t): New types.
942 (omp_lock_t): Use sem_t instead of mutex if semaphores
944 (omp_nest_lock_t): Likewise. Change owner to void *.
945 * config/posix/omp-lock.h: Include semaphore.h.
946 (omp_lock_25_t, omp_nest_lock_25_t): New types.
947 (omp_lock_t): Use sem_t instead of mutex if semaphores
949 (omp_nest_lock_t): Likewise. Add owner field.
951 2008-06-06 Jakub Jelinek <jakub@redhat.com>
953 * testsuite/libgomp.c/collapse-1.c: New test.
954 * testsuite/libgomp.c/collapse-2.c: New test.
955 * testsuite/libgomp.c/collapse-3.c: New test.
956 * testsuite/libgomp.c/icv-1.c: New test.
957 * testsuite/libgomp.c/icv-2.c: New test.
958 * testsuite/libgomp.c/lib-2.c: New test.
959 * testsuite/libgomp.c/lock-1.c: New test.
960 * testsuite/libgomp.c/lock-2.c: New test.
961 * testsuite/libgomp.c/lock-3.c: New test.
962 * testsuite/libgomp.c/loop-4.c: New test.
963 * testsuite/libgomp.c/loop-5.c: New test.
964 * testsuite/libgomp.c/loop-6.c: New test.
965 * testsuite/libgomp.c/loop-7.c: New test.
966 * testsuite/libgomp.c/loop-8.c: New test.
967 * testsuite/libgomp.c/loop-9.c: New test.
968 * testsuite/libgomp.c/nested-3.c: New test.
969 * testsuite/libgomp.c/nestedfn-6.c: New test.
970 * testsuite/libgomp.c/sort-1.c: New test.
971 * testsuite/libgomp.c/task-1.c: New test.
972 * testsuite/libgomp.c/task-2.c: New test.
973 * testsuite/libgomp.c/task-3.c: New test.
974 * testsuite/libgomp.c/task-4.c: New test.
975 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
976 to C++ testsuite default compiler options.
977 * testsuite/libgomp.c++/collapse-1.C: New test.
978 * testsuite/libgomp.c++/collapse-2.C: New test.
979 * testsuite/libgomp.c++/ctor-10.C: New test.
980 * testsuite/libgomp.c++/for-1.C: New test.
981 * testsuite/libgomp.c++/for-2.C: New test.
982 * testsuite/libgomp.c++/for-3.C: New test.
983 * testsuite/libgomp.c++/for-4.C: New test.
984 * testsuite/libgomp.c++/for-5.C: New test.
985 * testsuite/libgomp.c++/loop-8.C: New test.
986 * testsuite/libgomp.c++/loop-9.C: New test.
987 * testsuite/libgomp.c++/loop-10.C: New test.
988 * testsuite/libgomp.c++/task-1.C: New test.
989 * testsuite/libgomp.c++/task-2.C: New test.
990 * testsuite/libgomp.c++/task-3.C: New test.
991 * testsuite/libgomp.c++/task-4.C: New test.
992 * testsuite/libgomp.c++/task-5.C: New test.
993 * testsuite/libgomp.c++/task-6.C: New test.
994 * testsuite/libgomp.fortran/allocatable1.f90: New test.
995 * testsuite/libgomp.fortran/allocatable2.f90: New test.
996 * testsuite/libgomp.fortran/allocatable3.f90: New test.
997 * testsuite/libgomp.fortran/allocatable4.f90: New test.
998 * testsuite/libgomp.fortran/collapse1.f90: New test.
999 * testsuite/libgomp.fortran/collapse2.f90: New test.
1000 * testsuite/libgomp.fortran/collapse3.f90: New test.
1001 * testsuite/libgomp.fortran/collapse4.f90: New test.
1002 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1003 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1004 * testsuite/libgomp.fortran/lib4.f90: New test.
1005 * testsuite/libgomp.fortran/lock-1.f90: New test.
1006 * testsuite/libgomp.fortran/lock-2.f90: New test.
1007 * testsuite/libgomp.fortran/nested1.f90: New test.
1008 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1009 * testsuite/libgomp.fortran/strassen.f90: New test.
1010 * testsuite/libgomp.fortran/tabs1.f90: New test.
1011 * testsuite/libgomp.fortran/tabs2.f: New test.
1012 * testsuite/libgomp.fortran/task1.f90: New test.
1013 * testsuite/libgomp.fortran/task2.f90: New test.
1014 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1015 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1016 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1017 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1018 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1020 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1023 * testsuite/libgomp.c++/ctor-11.C: New test.
1024 * testsuite/libgomp.c++/ctor-12.C: New test.
1026 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1028 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1030 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1033 * testsuite/libgomp.c/atomic-5.c: New test.
1034 * testsuite/libgomp.c/atomic-6.c: New test.
1035 * testsuite/libgomp.c/autopar-1.c: New test.
1037 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1039 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1040 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1041 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1042 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1043 * configure: Regenerate.
1044 * Makefile.in, testsuite/Makefile.in: Likewise.
1046 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1049 * aclocal.m4: Regenerate.
1050 * configure: Regenerate.
1052 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1055 * testsuite/libgomp.c/atomic-4.c: New test.
1058 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1059 (gomp_iter_guided_next): Likewise.
1060 * testsuite/libgomp.c/pr35625.c: New test.
1062 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1064 * aclocal.m4: Regenerate.
1065 * configure: Likewise.
1066 * Makefile.in: Likewise.
1067 * testsuite/Makefile.in: Likewise.
1069 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1072 * testsuite/libgomp.c++/pr35185.C: New test.
1074 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1077 * testsuite/libgomp.c/pr35549.c: New test.
1079 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1081 * testsuite/libgomp.c/atomic-3.c: New test.
1083 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1086 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1089 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1092 * configure.ac: Add ACX_HEADER_STRING.
1093 * env.c: Include strings.h.
1094 * aclocal.m4: Regenerate.
1095 * config.h.in: Regenerate.
1096 * configure: Regenerate.
1097 * Makefile.in: Regenerate.
1098 * testsuite/Makefile.in: Regenerate.
1100 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1103 * testsuite/libgomp.c/pr35196.c: New test.
1106 * testsuite/libgomp.fortran/pr35130.f90: New test.
1107 * testsuite/libgomp.c/pr35130.c: New test.
1109 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1112 * testsuite/libgomp.c/pr33880.c: New test.
1113 * testsuite/libgomp.fortran/pr33880.f90: New test.
1115 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1117 * configure: Regenerate.
1119 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1121 * configure.ac: Move futex checking into ../config/futex.m4.
1122 * configure: Rebuilt.
1123 * aclocal.m4: Rebuilt.
1124 * Makefile.in: Rebuilt.
1126 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1127 2007-10-15 ../config/tls.m4 change.
1129 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1132 * testsuite/libgomp.c/pr34513.c: New test.
1133 * testsuite/libgomp.c++/pr34513.C: New test.
1135 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1138 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1140 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1142 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1144 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1146 * testsuite/libgomp.c/private-1.c: New test.
1148 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1149 Paolo Bonzini <bonzini@gnu.org>
1151 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1152 instead of 'VPATH ='.
1153 * Makefile.in: Regenerate.
1155 2007-11-23 Matthias Klose <doko@ubuntu.com>
1157 * configure.ac: Adjust makeinfo version check.
1158 * configure: Regenerate.
1160 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1163 * testsuite/libgomp.fortran/pr34020.f90: New test.
1165 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1168 * testsuite/libgomp.c++/atomic-1.C: New test.
1170 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1173 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1174 Make x and y integers rather than (implicit) reals. Add private (j)
1175 clause to the last omp parallel.
1177 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1179 * configure: Regenerate following changes to ../config/tls.m4.
1181 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1183 * testsuite/libgomp.fortran/stack.f90: New test.
1185 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1187 * config/mingw32/proc.c: New file.
1189 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1191 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1192 (main): Use __get_cpuid to get i386 target fetaures.
1193 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1194 (main): Use __get_cpuid to get x86_64 target fetaures.
1196 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1199 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1200 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1202 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1205 * testsuite/libgomp.fortran/pr32550.f90: New test.
1206 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1208 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1210 * aclocal.m4: Regenerated.
1212 2007-07-05 Tobias Burnus <burnus@net-b.de>
1215 * testsuite/libgomp.fortran/pr32359.f90: New.
1217 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1220 * sections.c (GOMP_parallel_sections_start): Only decrease
1221 number of threads to COUNT if dyn_var is true.
1222 * testsuite/libgomp.c/pr32468.c: New test.
1224 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1227 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1229 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1232 * testsuite/libgomp.c/pr32362-1.c: New test.
1233 * testsuite/libgomp.c/pr32362-2.c: New test.
1234 * testsuite/libgomp.c/pr32362-3.c: New test.
1236 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1238 * team.c (gomp_team_start): Fix setting up thread_attr
1241 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1243 * configure: Regenerate.
1245 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1247 * Makefile.in: Regenerate.
1248 * configure: Regenerate.
1249 * aclocal.m4: Regenerate.
1250 * testsuite/Makefile.in: Regenerate.
1252 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1254 * config/linux/proc.c: New file.
1257 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1259 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1261 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1263 2007-04-16 Matthias Klose <doko@debian.org>
1265 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1266 flags if not building with -m64.
1267 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1268 flag for i?86-*-* targets, if current target matches -m64.
1270 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1272 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1273 * Makefile.in: Regenerate.
1275 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1278 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1280 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1282 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1284 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1286 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1287 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1288 (parse_affinity): New function.
1289 (initialize_env): Call it and gomp_init_affinity.
1290 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1291 create new pthread_attr_t and call gomp_init_thread_affinity
1292 on it for each thread before passing the attribute to pthread_create.
1293 * config/linux/affinity.c: New file.
1294 * config/posix/affinity.c: New file.
1295 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1296 * configure: Rebuilt.
1297 * config.h.in: Rebuilt.
1298 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1299 * Makefile.in: Rebuilt.
1301 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1303 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1305 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1306 and use it if found.
1308 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1310 * testsuite/config/default.exp: New file.
1311 * testsuite/lib/libgomp.exp: New file.
1312 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1313 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1314 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1315 (libgomp_load): Remove.
1316 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1317 always_ld_library_path, not ld_library_path. Set additional_flags
1318 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1319 (target_compile): Do not call libgomp_init. Append lang_library_path
1320 and lang_link_flags to options.
1321 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1322 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1324 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1325 always_ld_library_path. Set LD_LIBRARY_PATH here.
1326 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1327 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1328 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1330 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1331 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1332 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1333 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1334 * testsuite/libgomp.c/atomic-10.c: Ditto.
1336 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1338 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1339 dg-final cleanup-modules line.
1340 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1341 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1342 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1343 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1344 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1345 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1346 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1348 2007-03-18 Andreas Schwab <schwab@suse.de>
1350 * acinclude.m4: Adjust regular expression for ld version
1352 * configure: Regenerate.
1354 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1356 * Makefile.am: Add install-pdf target as copied from
1357 automake v1.10 rules.
1358 * Makefile.in: Regenerate
1360 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1363 * configure: Regenerate.
1366 * testsuite/libgomp.c++/pr30703.C: New test.
1368 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1371 2006-07-05 Eric Christopher <echristo@apple.com>
1372 * configure.ac: Depend addition of -pthread on host OS.
1373 * configure: Regenerate.
1375 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1377 * libgomp.texi: Fix spacing after abbreviations.
1379 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1382 * configure.ac: Add check for makeinfo
1383 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1384 if an appropiate version of makeinfo is found.
1385 * aclocal.m4: Regenerated.
1386 * configure: Regenerated.
1387 * Makefile.in: Regenerated.
1388 * testsuite/Makefile.in: Regenerated.
1390 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1393 * libgomp.texi: More about implementation-dependent settings.
1395 2007-01-26 Tobias Burnus <burnus@net-b.de>
1397 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1399 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1402 * testsuite/libgomp.c/pr30494.c: New test.
1404 2007-01-15 Tom Tromey <tromey@redhat.com>
1406 * configure: Rebuilt.
1407 * configure.ac: Fixed comment.
1409 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1411 * libgomp.texi: Document implementation specific default values of
1412 environment variables.
1414 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1417 * libgomp.texi: New file.
1418 * configure.ac: Add --enable-generated-files-in-srcdir option.
1419 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1421 * Makefile.in: Regenerated.
1422 * config.h.in: Regenerated.
1423 * testsuite/Makefile.in: Regenerated.
1426 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1429 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1431 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1433 * configure: Regenerate.
1435 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1438 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1439 start if there shouldn't be any loop iterations.
1440 (gomp_loop_ordered_static_start): Remove start == end test.
1441 * testsuite/libgomp.c/pr29947-1.c: New test.
1442 * testsuite/libgomp.c/pr29947-2.c: New test.
1444 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1446 * configure.tgt: Force initial-exec TLS model on Linux only.
1448 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1450 * configure: Regenerated.
1452 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1454 * env.c (parse_schedule): Reject out of range values.
1455 (parse_unsigned_long): Reject out of range, negative or zero values.
1457 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1460 * testsuite/libgomp.fortran/pr29629.f90: New test.
1462 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1465 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1466 * config/posix95: New directory.
1467 * config/posix95/omp-lock.h: New file.
1468 * config/posix95/lock.c: Likewise.
1470 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1472 * aclocal.m4: Regenerate.
1473 * configure: Regenerate.
1475 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1477 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1480 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1482 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1484 * configure: Regenerate.
1485 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1487 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1491 * testsuite/libgomp.c/nestedfn-4.c: New test.
1492 * testsuite/libgomp.c/nestedfn-5.c: New test.
1493 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1496 * testsuite/libgomp.fortran/condinc1.f: New test.
1497 * testsuite/libgomp.fortran/condinc2.f: New test.
1498 * testsuite/libgomp.fortran/condinc3.f90: New test.
1499 * testsuite/libgomp.fortran/condinc4.f90: New test.
1500 * testsuite/libgomp.fortran/condinc1.inc: New file.
1502 2006-09-18 Tom Tromey <tromey@redhat.com>
1504 * configure: Rebuilt.
1506 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1509 PR preprocessor/14634
1510 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1512 * configure: Regenerate.
1514 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1516 * testsuite/libgomp.fortran/reduction3.f90: Change
1517 -2147483648 to -huge(i)-1 to avoid overflow.
1518 * testsuite/libgomp.fortran/reduction4.f90: Change
1519 Z'ffffffff' to not(0) to avoid overflow.
1521 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1524 * Makefile.am (libsubincludedir): New.
1525 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1526 * Makefile.in: Regenerate.
1528 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1531 * env.c: Include ctype.h.
1532 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1533 leading and/or trailing whitespace and compare strings case
1536 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1539 * testsuite/libgomp.fortran/pr28390.f: New test.
1541 2006-07-05 Eric Christopher <echristo@apple.com>
1543 * configure.ac: Depend addition of -pthread on host OS.
1544 * configure: Regenerate.
1546 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1548 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1549 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1552 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1556 * configure.ac: If neither --enable-linux-futex nor
1557 --disable-linux-futex is passed, determine the default by checking
1558 for compiling and/or running against NPTL. With --enable-linux-futex,
1559 check if SYS_gettid and SYS_futex are defined.
1560 * configure: Rebuilt.
1562 2006-06-14 Richard Henderson <rth@redhat.com>
1565 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1566 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1568 2006-06-09 Richard Henderson <rth@redhat.com>
1570 * env.c (gomp_nthreads_var): Change to unsigned long.
1571 (gomp_run_sched_chunk): Likewise.
1572 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1573 (initialize_env): Initialize gomp_thread_attr.
1574 * libgomp.h (gomp_nthreads_var): Update decl.
1575 (gomp_run_sched_chunk): Likewise.
1576 (gomp_thread_attr): Declare.
1577 * team.c (gomp_thread_attr): Export.
1578 (initialize_team): Don't initialize it.
1580 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1583 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1584 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1586 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1588 * config/mingw32/time.c: New file.
1589 * configure.tgt: Use it.
1591 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1593 * Makefile.am: Add install-html target. Add install-html to .PHONY
1594 * Makefile.in: Regenerate.
1596 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1599 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1600 * testsuite/libgomp.c/critical-1.c: Likewise.
1601 * testsuite/libgomp.c/loop-1.c: Likewise.
1602 * testsuite/libgomp.c/loop-2.c: Likewise.
1603 * testsuite/libgomp.c/single-1.c: Likewise.
1604 * testsuite/libgomp.c/ordered-1.c: Likewise.
1605 * testsuite/libgomp.c/ordered-2.c: Likewise.
1607 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1610 * libgomp.fortran/pr27416-1.f90: New test.
1612 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1615 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1616 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1618 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1621 * testsuite/libgomp.c/pr26943-1.c: New test.
1622 * testsuite/libgomp.c/pr26943-2.c: New test.
1623 * testsuite/libgomp.c/pr26943-3.c: New test.
1624 * testsuite/libgomp.c/pr26943-4.c: New test.
1625 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1626 * testsuite/libgomp.c++/pr26943.C: New test.
1628 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1631 * testsuite/libgomp.c++/pr27337.C: New test.
1633 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1636 * testsuite/libgomp.c/pr26171.c: New test.
1638 2006-04-25 Richard Henderson <rth@redhat.com>
1641 * configure.ac: Use GCC_CHECK_TLS.
1642 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1643 * Makefile.in, aclocal.m4, configure: Regenerate.
1645 2006-04-10 Matthias Klose <doko@debian.org>
1647 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1648 directory names containing underscores.
1650 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1653 * testsuite/libgomp.c++/pr26691.C: New test.
1655 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1657 * testsuite/libgomp.fortran/retval2.f90: New test.
1659 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1661 * testsuite/libgomp.c++: New directory.
1663 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1665 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1666 * config/posix/sem.c: Implement the above.
1668 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1670 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1671 define HAVE_BROKEN_POSIX_SEMAPHORES.
1672 * configure: Rebuilt.
1673 * config.h.in: Rebuilt.
1675 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1678 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1679 for the other pthread check.
1680 * configure: Regenerate.
1681 * config.h.in: Regenerate.
1683 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1687 * Makefile.am (fincludedir): New variable.
1688 (nodist_include_HEADERS): Remove Fortran files.
1689 (nodist_finclude_HEADERS): New variable.
1690 * Makefile.in: Regenerated.
1692 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1694 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1695 Remove tests for returning assumed character length arrays.
1697 2006-02-12 Roger Sayle <roger@eyesopen.com>
1698 John David Anglin <dave@hiauly1.hia.nrc.ca>
1701 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1703 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1705 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1707 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1709 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1710 part of LD_LIBRARY_PATH manually.
1712 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1715 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1718 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1721 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1722 * configure.ac (PERL): Don't set.
1723 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1724 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1725 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1726 * omp.h.in: Wrap the new configure substitutions with @ characters.
1727 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1728 * aclocal.m4, configure, Makefile.in: Regenerate.
1729 * mkomp_h.pl: Delete.
1731 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1734 * configure.ac: Use GCC_HEADER_STDINT.
1735 * libgomp.h: Include gstdint.h.
1736 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1737 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1739 2006-01-24 Richard Henderson <rth@redhat.com>
1742 * configure.ac: Add AM_MAINTAINER_MODE.
1743 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1745 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1747 * Makefile.in: Regenerate.
1748 * testsuite/Makefile.in: Regenerate.
1749 * aclocal.m4: Regenerate.
1751 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1753 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1755 * configure.ac: Add check for loadavg.h.
1756 (link_gomp): Adjust comment.
1757 * configure: Regenerate.
1758 * config.h.in: Regenerate.
1760 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1763 * configure.ac: Remove check for alloca.h.
1764 * configure: Regenerate.
1765 * config.h.in: Regenerate.
1766 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1767 * team.c: Remove use of alloca.h.
1768 Call gomp_alloca instead of alloca.
1770 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1773 * team.c: Add include of alloca.h.
1774 * configure.ac: Add check for alloca.h.
1775 * configure: Regenerate.
1776 * config.h.in: Regenerate.
1778 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1781 * testsuite/libgomp.fortran/pr25219.f90: New test.
1783 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1785 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1786 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1787 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1788 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1789 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1790 testsuite/libgomp.fortran/threadprivate1.f90,
1791 testsuite/libgomp.fortran/threadprivate2.f90,
1792 testsuite/libgomp.fortran/threadprivate3.f90,
1793 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1794 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1795 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1796 effective-target to TLS runtime.
1798 * testsuite/libgomp.fortran/pr25162.f: Require
1799 effective-target TLS runtime.
1801 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1803 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1804 * testsuite/libgomp.c/nestedfn-3.c: New test.
1806 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1809 * testsuite/libgomp.fortran/pr25162.f: New test.
1811 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1813 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1814 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1816 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1818 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1819 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1820 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1821 single.c, team.c, work.c, config/linux/alpha/futex.h,
1822 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1823 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1824 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1825 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1826 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1827 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1828 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1831 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1833 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1834 to nodist_noinst_HEADERS.
1835 * Makefile.in: Rebuilt.
1837 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1838 add integer count field.
1839 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1840 omp_nest_lock_t type change.
1841 (omp_init_nest_lock): Likewise. Initialize count to 0.
1842 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1844 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1846 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1847 Increment count if successful and return the new nesting level.
1848 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1849 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1850 * testsuite/libgomp.c/lib-1.c: New test.
1851 * testsuite/libgomp.fortran/lib1.f90: New test.
1852 * testsuite/libgomp.fortran/lib2.f: New test.
1853 * testsuite/libgomp.fortran/lib3.f: New test.
1855 2005-11-17 Richard Henderson <rth@redhat.com>
1858 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1859 * configure.ac (link_gomp): New. Substitute it.
1860 (AC_CONFIG_FILES): Add libgomp.spec.
1861 * libgomp.spec.in: New file.
1862 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1863 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1865 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1867 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1868 reduction(-:var) behaving the same as reduction(+:var).
1869 * testsuite/libgomp.c/reduction-4.c: New test.
1871 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1873 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1874 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1875 testsuite/libgomp.c/copyin-3.c,
1876 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1877 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1878 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1879 testsuite/libgomp.c++/pr24455.C,
1880 testsuite/libgomp.fortran/threadprivate1.f90,
1881 testsuite/libgomp.fortran/threadprivate2.f90,
1882 testsuite/libgomp.fortran/threadprivate3.f90,
1883 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1884 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1885 testsuite/libgomp.fortran/omp_parse3.f90: Require
1886 effective-target TLS.
1888 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1892 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1895 * team.c (initialize_team): Pass NULL rather than free as
1896 pthread_key_create destructor. Initialize thread specific data
1897 pointer in initial thread to a static local variable rather than
1900 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1902 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1903 its location to ld_library_path.
1905 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1907 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1909 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1911 * testsuite/libgomp.c: Rename from libgomp.dg.
1913 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1915 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1916 threadprivate variable 'i'.
1918 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1920 * config/linux/s390/futex.h: New file.
1921 * configure.tgt: Use it.
1923 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1924 before the parallel.
1926 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1929 * testsuite/libgomp.c++/master-1.C: New test.
1931 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1933 * testsuite/libgomp.dg/copyin-3.c: New test.
1935 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1937 * testsuite/libgomp.fortran/retval1.f90: New test.
1938 * testsuite/libgomp.fortran/vla7.f90: New test.
1940 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1942 * testsuite/libgomp.fortran/vla2.f90: New test.
1943 * testsuite/libgomp.fortran/vla3.f90: New test.
1944 * testsuite/libgomp.fortran/vla4.f90: New test.
1945 * testsuite/libgomp.fortran/vla5.f90: New test.
1946 * testsuite/libgomp.fortran/vla6.f90: New test.
1948 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1950 * config/linux/sparc/futex.h: New file.
1951 * configure.tgt: Use it.
1952 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1954 * critical.c: Include stdlib.h.
1955 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1956 ignoring return value.
1957 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1958 LIBGOMP_CHECK_SYNC_BUILTINS check.
1959 * configure: Rebuilt.
1961 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1963 * testsuite/libgomp.fortran/vla1.f90: New test.
1965 2005-10-31 Richard Henderson <rth@redhat.com>
1967 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1968 setting 's' in different threads.
1970 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1972 * libgomp.h (attribute_hidden, ialias): Define.
1973 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1974 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1975 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1976 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1977 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1978 omp_test_lock, omp_test_nest_lock): Likewise.
1979 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1980 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1981 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1982 omp_test_lock, omp_test_nest_lock): Likewise.
1983 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1984 omp_get_dynamic, omp_get_nested): Likewise.
1985 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1986 omp_get_thread_num, omp_in_parallel): Likewise.
1987 * fortran.c (ialias_redirect): Define.
1988 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1989 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1990 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1991 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1992 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1993 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1994 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1995 omp_get_wtime): Add ialias_redirect.
1997 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1999 * fortran.c: Include stdlib.h.
2001 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2003 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2004 * Makefile.in: Regenerated.
2006 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2008 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2009 * libgomp_f.h.in (omp_check_defines): New function.
2010 * env.c: Include libgomp_f.h.
2011 (initialize_env): Call omp_check_defines.
2013 * testsuite/libgomp.dg/copyin-2.c: New test.
2014 * testsuite/libgomp.c++/copyin-2.C: New test.
2015 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2017 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2018 * testsuite/libgomp.fortran/sharing2.f90: New test.
2020 * testsuite/libgomp.dg/copyin-1.c: New test.
2021 * testsuite/libgomp.c++/copyin-1.C: New test.
2023 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2025 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2027 * testsuite/libgomp.fortran/workshare1.f90: New test.
2029 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2031 * libgomp.fortran/sharing1.f90: New test.
2033 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2036 * testsuite/libgomp.c++/loop-7.C: New test.
2038 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2040 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2041 * testsuite/libgomp.fortran/reduction6.f90: New test.
2042 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2044 2005-10-23 Richard Henderson <rth@redhat.com>
2046 * testsuite/libgomp.c++/ctor-1.C: New.
2047 * testsuite/libgomp.c++/ctor-2.C: New.
2048 * testsuite/libgomp.c++/ctor-3.C: New.
2049 * testsuite/libgomp.c++/ctor-4.C: New.
2050 * testsuite/libgomp.c++/ctor-5.C: New.
2051 * testsuite/libgomp.c++/ctor-6.C: New.
2052 * testsuite/libgomp.c++/ctor-7.C: New.
2053 * testsuite/libgomp.c++/ctor-8.C: New.
2054 * testsuite/libgomp.c++/ctor-9.C: New.
2056 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2059 * testsuite/libgomp.c++/pr24455-1.C: New test.
2060 * testsuite/libgomp.c++/pr24455.C: New test.
2061 * testsuite/libgomp.dg/pr24455-1.c: New test.
2062 * testsuite/libgomp.dg/pr24455.c: New test.
2064 2005-10-20 Richard Henderson <rth@redhat.com>
2066 * testsuite/libgomp.c++/loop-6.C: New.
2067 * testsuite/libgomp.dg/loop-3.c: New.
2069 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2071 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2073 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2076 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2078 * testsuite/libgomp.fortran/jacobi.f: New test.
2080 2005-10-19 Richard Henderson <rth@redhat.com>
2082 * configure.tgt (i?86-linux): Default to with_arch instead of
2083 CFLAGS. Add -mtune to match target_cpu.
2084 (x86_64-linux): Tune to i686.
2086 * fortran.c (omp_test_nest_lock_): Fix typo.
2088 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2090 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2091 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2092 * testsuite/libgomp.dg/ordered-3.c: New test.
2094 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2095 Remove volatile keyword.
2097 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2098 in COMMON block to avoid warnings on 64-bit targets.
2100 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2102 * testsuite/libgomp.dg/shared-3.c: New test.
2104 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2106 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2107 * testsuite/libgomp.fortran/reduction5.f90: New test.
2109 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2111 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2113 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2114 flush loop now that __sync_synchronize has proper memory barrier.
2115 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2116 Add -ffixed-form to dg-options.
2118 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2120 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2121 from subdirectories.
2122 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2123 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2124 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2125 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2126 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2127 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2128 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2129 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2130 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2131 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2132 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2133 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2134 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2135 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2136 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2137 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2138 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2139 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2140 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2141 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2142 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2143 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2144 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2145 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2146 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2148 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2150 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2151 lang_library_path exists. Use find instead of glob to gather tests.
2152 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2154 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2156 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2157 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2158 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2159 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2160 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2161 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2162 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2163 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2164 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2165 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2166 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2167 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2168 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2170 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2172 * testsuite/libgomp.dg/vla-1.c: New test.
2174 * testsuite/libgomp.fortran/reference2.f90: New test.
2176 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2177 declaration of omp_get_thread_num.
2178 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2181 * testsuite/libgomp.fortran/reduction1.f90: New test.
2182 * testsuite/libgomp.fortran/reduction2.f90: New test.
2183 * testsuite/libgomp.fortran/reduction3.f90: New test.
2184 * testsuite/libgomp.fortran/reduction4.f90: New test.
2186 2005-10-13 Richard Henderson <rth@redhat.com>
2188 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2189 * Makefile.in: Regenerate.
2190 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2191 * libgomp.h: Include bar.h.
2192 (struct gomp_barrier): Remove.
2193 (struct gomp_team): Add barrier. Replace master_barrier with
2194 master_release. Replace threads with ordered_release.
2195 (struct gomp_thread): Replace barrier with release.
2196 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2197 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2198 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2199 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2200 (GOMP_single_copy_end): Likewise.
2201 * team.c (gomp_threads_dock): New.
2202 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2203 (gomp_thread_start): Use gomp_barrier_wait.
2204 (new_team, free_team): Update for gomp_team changes.
2205 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2206 (gomp_team_end): Use gomp_barrier_wait.
2207 (initialize_team): Update for gomp_thread changes.
2208 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2209 (gomp_work_share_end_nowait): Use atomic ops when available.
2210 * config/linux/bar.c, config/linux/bar.h: New files.
2211 * config/posix/bar.c, config/posix/bar.h: New files.
2213 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2215 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2216 * testsuite/libgomp.dg/single-2.c: New test.
2218 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2219 lang_link_flags): Unset, so that they aren't inherited from previously
2222 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2224 2005-10-12 Richard Henderson <rth@redhat.com>
2226 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2227 (libgomp_init): Use lang_test_file, lang_library_path, and
2228 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2230 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2231 (lang_test_file, lang_link_flags): New.
2232 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2234 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2235 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2236 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2237 testsuite/libgomp.c++/parallel-1.C,
2238 testsuite/libgomp.c++/reduction-1.C,
2239 testsuite/libgomp.c++/reduction-2.C,
2240 testsuite/libgomp.c++/reduction-3.C,
2241 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2242 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2243 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2244 New files, largely cribbed from the C testsuite.
2246 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2248 * testsuite/libgomp.fortran/character1.f90: New test.
2249 * testsuite/libgomp.fortran/character2.f90: New test.
2251 * testsuite/libgomp.dg/nested-1.c: New test.
2252 * testsuite/libgomp.dg/nested-2.c: New test.
2253 * testsuite/libgomp.fortran/do1.f90: New test.
2254 * testsuite/libgomp.fortran/do2.f90: New test.
2256 * testsuite/libgomp.fortran/reference1.f90: New test.
2258 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2260 * testsuite/libgomp.dg/reduction-1.c: New test.
2261 * testsuite/libgomp.dg/reduction-2.c: New test.
2262 * testsuite/libgomp.dg/reduction-3.c: New test.
2264 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2266 * testsuite/libgomp.dg/atomic-1.c: New test.
2267 * testsuite/libgomp.dg/atomic-2.c: New test.
2269 2005-10-09 Richard Henderson <rth@redhat.com>
2271 * critical.c (atomic_lock): New.
2272 (initialize_critical): Initialize it.
2273 (GOMP_atomic_start, GOMP_atomic_end): New.
2274 * libgomp.map: Export them.
2275 * libgomp_g.h: Declare them.
2277 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2279 2005-10-02 Richard Henderson <rth@redhat.com>
2281 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2282 to XCFLAGS instead of CFLAGS.
2284 2005-09-30 Richard Henderson <rth@redhat.com>
2286 * configure.ac: Determine whether -pthread or -lpthread is needed.
2287 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2288 * Makefine.in, configure: Rebuild.
2290 2005-09-28 Richard Henderson <rth@redhat.com>
2292 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2293 * testsuite/libgomp.dg/omp-single-3.c: New test.
2295 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2297 * testsuite/libgomp.dg/omp-single-2.c: New test.
2298 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2300 2005-09-27 Richard Henderson <rth@redhat.com>
2302 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2303 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2305 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2307 * testsuite/libgomp.dg/omp-loop03.c: New test.
2309 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2311 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2313 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2315 * testsuite/libgomp.dg/omp-single-1.c: New test.
2316 * testsuite/libgomp.dg/shared-1.c: Return 0.
2317 Add prototype for abort.
2318 * testsuite/libgomp.dg/shared-2.c: Likewise.
2320 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2322 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2325 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2327 * testsuite/libgomp.dg/shared-1.c: New test.
2328 * testsuite/libgomp.dg/shared-2.c: New test.
2330 2005-09-24 Richard Henderson <rth@redhat.com>
2332 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2334 2005-09-24 Richard Henderson <rth@redhat.com>
2336 * iter.c (gomp_iter_static_next): Round up when computing number
2337 of iterations. Don't bother distributing a remainder equally.
2339 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2340 Don't call srand. Zero b before testing.
2343 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2345 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2346 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2348 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2350 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2351 without !$omp end do, followed immediately by subroutine end.
2353 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2355 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2357 2005-09-22 Richard Henderson <rth@redhat.com>
2359 * critical.c (GOMP_critical_name_start): Change argument to void**.
2360 Reuse the pointer space if the mutex fits.
2361 (GOMP_critical_name_end): Likewise.
2362 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2363 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2364 (GOMP_critical_name_end): Likewise.
2365 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2366 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2368 2005-09-20 Richard Henderson <rth@redhat.com>
2370 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2371 (create_lock_lock): New.
2372 (initialize_critical): Initialize it.
2373 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2374 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2376 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2378 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2380 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2382 * testsuite/libgomp.dg/omp-loop01.c: New test.
2383 * testsuite/libgomp.dg/omp-loop02.c: New test.
2385 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2387 * configure.ac (AC_PROG_FC): Add.
2388 (USE_FORTRAN): New automake conditional.
2389 * configure: Rebuilt.
2390 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2391 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2392 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2393 Add rules to build them.
2394 * Makefile.in: Rebuilt.
2395 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2397 * libgomp.map: Add Fortran wrappers.
2398 * libgomp_f.h.in: New file.
2399 * omp_lib.h.in: New file.
2400 * omp_lib.f90.in: New file.
2401 * fortran.c: New file.
2402 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2403 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2404 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2405 libgfortran has been built.
2406 * testsuite/libgomp.fortran/fortran.exp: New file.
2407 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2408 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2409 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2410 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2411 * testsuite/libgomp.fortran/omp_hello.f: New test.
2412 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2413 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2414 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2415 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2416 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2417 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2418 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2419 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2421 2005-08-30 Richard Henderson <rth@redhat.com>
2423 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2424 function for when aliases are not usable.
2425 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2426 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2427 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2428 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2429 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2430 GOMP_loop_ordered_guided_next): Likewise.
2431 * ordered.c (GOMP_ordered_start): Likewise.
2433 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2435 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2436 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2437 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2438 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2439 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2440 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2441 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2442 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2443 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2445 2005-07-07 Eric Christopher <echristo@redhat.com>
2446 Diego Novillo <dnovillo@redhat.com>
2448 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2449 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2451 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2452 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2453 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2454 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2455 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2456 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2457 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2459 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2461 * TOPLEVEL.patch: Remove.
2463 2005-05-16 Richard Henderson <rth@redhat.com>
2465 * configure.ac: Test for clock_gettime.
2466 * config.h.in, configure: Rebuild.
2467 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2468 (omp_get_wtime): Use clock_gettime if available.
2469 (omp_get_wtick): Use clock_getres if available.
2471 2005-05-11 Richard Henderson <rth@redhat.com>
2473 * config/linux/ia64/futex.h: New file.
2474 * configure.tgt: Use it.
2476 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2478 2005-05-07 Richard Henderson <rth@redhat.com>
2480 * config/linux/powerpc/futex.h: New file.
2481 * configure.tgt: Use it.
2483 * config/linux/i486/futex.h: Merge ...
2484 * config/linux/x86_64/futex.h: ... into ...
2485 * config/linux/x86/futex.h: ... here.
2486 * configure.tgt: Update to match.
2488 2005-05-06 Richard Henderson <rth@redhat.com>
2490 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2491 * config/linux/i486/futex.h: Likewise.
2492 * config/linux/x86_64/futex.h: Likewise.
2494 * config/linux/lock.c: New file.
2495 * config/linux/omp-lock.h: New file.
2497 * critical.c, env.h: Don't include omp.h
2498 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2499 * config/posix/time.c: Likewise.
2500 * config/posix/omp-lock.h: New file.
2501 * libgomp.h: Include omp-lock.h and omp.h.
2502 * Makefile.am (nodist_include_HEADERS): New.
2504 * configure.ac (PERL): New.
2505 * mkomp_h.pl: New file.
2506 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2508 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2510 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2511 build directory. Re-add -march=i486 hack.
2513 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2514 (libgomp_link_flags): Remove.
2515 (libgomp_initialized): Remove.
2516 (libgomp_init): Don't protect from reinitialization. Copy code
2517 from libstdc++ for getting the multilib set correctly.
2519 2005-05-05 Richard Henderson <rth@redhat.com>
2521 * config/linux/alpha/futex.h: New file.
2522 * configure.tgt (alpha*-*-linux*): Use it.
2524 * config/posix/mutex.c: New file.
2525 * config/posix/sem.c: Use libgomp.h.
2527 * configure.tgt (x86_64-linux): Also test CC for -m32.
2528 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2530 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2533 * Makefile.am (SUBDIRS): New.
2534 (libgomp_la_LDFLAGS): Add -lpthread.
2535 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2536 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2538 * libgomp_g.h: New file.
2539 * libgomp.h: Split out all public declarations to libgomp_g.h.
2540 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2541 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2542 * config/linux/sem.h: Likewise.
2543 * config/posix/sem.h: Likewise.
2545 * Makefile.am (AM_LDFLAGS): New.
2546 (libgomp_version_script): Split out from ...
2547 (libgomp_la_LDFLAGS): ... here.
2548 (libgomp_version_info): New.
2549 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2550 (LIBGOMP_ENABLE): New.
2551 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2552 (LIBGOMP_ENABLE_SYMVERS): New.
2553 * configure.ac (AC_INIT): Version 1.0.
2554 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2555 (enable-linux-futex): Likewise. Rename from enable-futex.
2556 (libtool_VERSION): New.
2557 (LIBGOMP_ENABLE_SYMVERS): Use it.
2558 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2559 * Makefile.in, aclocal.m4, configure: Rebuild.
2561 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2562 (gomp_mutex_unlock_slow): Fix typo.
2563 * config/linux/sem.c: Similarly.
2564 (gomp_sem_post_slow): Fix typo.
2565 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2566 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2567 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2569 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2570 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2571 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2572 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2573 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2574 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2575 LDFLAGS. Pull enable_futex check to top-level.
2576 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2577 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2579 First attempt at real configury.
2580 * Makefile, config.h: Remove file.
2581 * Makefile.am, Makefile.in: New file.
2582 * acinclude.m4 aclocal.m4: New file.
2583 * configure.ac, configure.tgt, configure: New file.
2585 * config/posix/lock.c: Rename from sys-lock.c.
2586 * config/posix/mutex.h: Rename from sys-mutex.h.
2587 * config/posix/sem.c: Rename from sys-sem.c.
2588 * config/posix/sem.h: Rename from sys-sem.h.
2589 * config/posix/proc.c: Rename from sys-proc.c.
2590 * config/posix/time.c: Rename from sys-proc.c.
2592 * config/linux/mutex.c: New file.
2593 * config/linux/mutex.h: New file.
2594 * config/linux/sem.c: New file.
2595 * config/linux/sem.h: New file.
2596 * config/linux/i486/futex.h: New file.
2597 * config/linux/x86_64/futex.h: New file.
2599 2005-05-04 Richard Henderson <rth@redhat.com>
2601 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2602 * libgomp.h: Declare them.
2603 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2604 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2606 2005-05-04 Richard Henderson <rth@redhat.com>
2608 * libgomp-1 code drop
2610 2005-05-04 Richard Henderson <rth@redhat.com>
2612 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2613 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2614 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2615 (gomp_iter_static_next): Update.
2616 (gomp_ordered_static_next): Update.
2617 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2618 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2619 totally empty range.
2620 (gomp_loop_ordered_static_next): Refine test for calling
2621 gomp_ordered_static_next.
2622 * testsuite/ordered-1.c: Add case for more threads than iterations.
2624 * iter.c (gomp_iter_runtime_next_locked): Remove.
2625 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2626 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2627 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2628 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2629 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2630 gomp_loop_ordered_guided_next): Downcase name, make static, add
2631 an external alias with the old name.
2632 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2633 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2634 switch and call one of the above static functions.
2635 * libgomp.h: Update.
2637 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2638 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2639 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2640 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2641 GOMP_loop_ordered_guided_start): Update to match.
2642 * sections.c (GOMP_sections_start): Likewise.
2643 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2645 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2646 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2647 Use bounds check instead of modulus.
2648 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2649 (gomp_ordered_last): Don't sync with ordered_owner here.
2650 (gomp_ordered_next): Likewise.
2651 (gomp_ordered_static_loop_next): Likewise.
2652 * loop.c, libgomp.h: Update to match.
2654 * libgomp.h (GOMP_barrier): Declare.
2656 * testsuite/barrier-1.c: New file.
2657 * testsuite/critical-1.c: New file.
2658 * testsuite/ordered-2.c: New file.
2659 * testsuite/ordered-1.c: New file.
2660 * testsuite/sections-1.c: New file.
2661 * testsuite/single-1.c: New file.
2662 * testsuite/Makefile (TESTS): Add them.
2664 2005-05-04 Richard Henderson <rth@redhat.com>
2666 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2667 * loop.c (GOMP_loop_static_start): If not the startup thread,
2668 acquire the mutex to wait for initialization complete.
2669 (GOMP_loop_ordered_static_start): Likewise.
2670 (GOMP_loop_ordered_runtime_start): Likewise.
2671 (GOMP_loop_ordered_static_first): Remove.
2672 (GOMP_loop_ordered_dynamic_first): Remove.
2673 (GOMP_loop_ordered_guided_first): Remove.
2674 (GOMP_loop_ordered_runtime_first): Remove.
2675 * ordered.c (gomp_ordered_loop_first): Post to own release when
2676 we're the first thread.
2677 (gomp_ordered_loop_last): Wait on release if not owner.
2678 (gomp_ordered_loop_next): Likewise.
2679 (gomp_ordered_static_loop_init): New.
2680 (gomp_ordered_static_loop_next): Use ordered_owner.
2681 (GOMP_ordered_start): Likewise.
2682 * work.c (gomp_new_work_share): Initialize ordered_owner.
2684 2005-05-03 Richard Henderson <rth@redhat.com>
2686 * Makefile (OPT): New.
2689 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2690 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2691 * libgomp.h, libgomp.map, NOTES: Update to match.
2693 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2694 Add initialized and thr members.
2695 (gomp_thread_start): Pause when initially spawned to wait for
2696 the whole team to be created.
2697 (gomp_team_start): Release team members at the end.
2699 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2700 (f_foo_1): Use GOMP_loop_end.
2701 (f_foo_2): Use GOMP_loop_end_nowait.
2703 * testsuite/loop-2.c: New file.
2704 * testsuite/Makefile (TESTS): Add it.
2706 2005-05-03 Richard Henderson <rth@redhat.com>
2708 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2709 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2710 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2713 * testsuite/Makefile: New file.
2714 * testsuite/loop-1.c: New file.
2716 2005-05-03 Richard Henderson <rth@redhat.com>
2718 Initial implementation and checkin.