1 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
3 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
5 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8 * configure: Regenerate.
10 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
14 * configure: Regenerate.
15 * Makefile.in: Regenerate.
16 * testsuite/Makefile.in: Regenerate.
18 2010-04-26 Jakub Jelinek <jakub@redhat.com>
21 * testsuite/libgomp.c/pr43893.c: New test.
22 * testsuite/libgomp.c++/pr43893.C: New test.
24 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27 * testsuite/libgomp.fortran/vla8.f90: New test.
29 2010-04-20 Jakub Jelinek <jakub@redhat.com>
32 * config/linux/affinity.c (gomp_init_affinity): Decrease
33 gomp_available_cpus if affinity mask confines the process to fewer
35 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
36 non-NULL, just return gomp_available_cpus.
39 * sections.c (gomp_sections_init): Initialize ws->mode.
41 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
43 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
44 not unused bar variable.
45 * configure: Regenerate.
47 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49 * Makefile.in: Regenerate.
50 * aclocal.m4: Regenerate.
51 * testsuite/Makefile.in: Regenerate.
53 2010-03-22 Jakub Jelinek <jakub@redhat.com>
56 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
57 (initialize_env): Adjust callers.
58 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
59 when the argument is 0.
61 * testsuite/libgomp.c/pr42942.c: New test.
63 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
67 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
68 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
70 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
72 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
73 * testsuite/libgomp.c++/task-6.C: Likewise.
75 2010-01-28 Steve Ellcey <sje@cup.hp.com>
77 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
79 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
81 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
82 * configure: Regenerate.
84 2010-01-26 Jakub Jelinek <jakub@redhat.com>
87 * testsuite/libgomp.fortran/allocatable5.f90: New test.
89 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
91 * configure.ac: Test for executability of GFORTRAN.
92 * configure: Regenerate.
94 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
96 * configure: Regenerate.
98 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
101 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
103 2010-01-03 Richard Guenther <rguenther@suse.de>
105 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
107 2009-12-23 Sebastian Pop <sebpop@gmail.com>
109 * testsuite/libgomp.graphite/pr4118.c: New.
111 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
113 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
114 for darwin, protect the test with require-effective-target tls_runtime.
115 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
117 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
120 * testsuite/lib/libgomp.exp: Provide -B options to allow for
121 link spec %s substitutions for static libraries.
123 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
126 * libgomp.graphite/force-parallel-2.c: Reduce array size.
128 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
130 * Makefile.in: Regenerate.
131 * configure: Regenerate.
132 * testsuite/Makefile.in: Regenerate.
134 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
136 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
137 settings for LC_ALL and LANG.
139 2009-11-25 Jakub Jelinek <jakub@redhat.com>
142 * testsuite/libgomp.fortran/pr42162.f90: New test.
144 2009-11-13 Jakub Jelinek <jakub@redhat.com>
147 * testsuite/libgomp.c/pr42029.c: New test.
149 2009-10-26 Jakub Jelinek <jakub@redhat.com>
151 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
152 *s. Accept ld version without text in ()s.
153 * configure: Regenerated.
155 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
157 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
159 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
162 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
163 or a hyphen (happens with fortran language disabled).
164 * configure: Regenerate.
166 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
168 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
169 use sed script portable to Solaris /bin/sed for extracting ld
171 * configure: Regenerate.
173 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
175 * testsuite/libgomp.graphite/bounds.c: New test.
177 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
179 * Makefile.am (libgomp_la_LINK): New.
180 * Makefile.in: Regenerate.
182 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
184 * configure.ac (AC_PREREQ): Bump to 2.64.
186 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
188 * Makefile.am (install-html, install-pdf): Remove.
189 * Makefile.in: Regenerate.
191 * Makefile.in: Regenerate.
192 * aclocal.m4: Regenerate.
193 * config.h.in: Regenerate.
194 * configure: Regenerate.
195 * testsuite/Makefile.in: Regenerate.
197 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
199 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
200 * Makefile.in: Regenerate.
202 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
204 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
205 * Makefile.in: Regenerate.
207 2009-08-19 Tobias Burnus <burnus@net-b.de>
210 omp_lib.h.in: Fix -std=f95 errors.
213 2009-08-14 David Edelsohn <edelsohn@gnu.org>
215 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
216 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
217 * testsuite/libgomp.graphite/graphite.exp: New.
219 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
221 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
224 2009-08-04 David Daney <ddaney@caviumnetworks.com>
226 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
227 needed memory barrier semantics.
228 * config/linux/mips/mutex.h: New file.
230 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
232 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
234 2009-07-16 Joseph Myers <joseph@codesourcery.com>
236 * configure: Regenerate.
238 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
243 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
244 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
245 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
247 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
249 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
250 options when choosing a multilib.
252 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
254 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
255 ld_library_path. Use add_path. Add just find_libgcc_s to
256 ld_library_path, not every libgcc multilib directory.
257 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
258 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
259 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
261 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
263 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
265 * Makefile.am (LTLDFLAGS): Define.
267 * Makefile.in: Regenerate.
269 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
272 * testsuite/libgomp.fortran/fortran.exp: Don't link with
273 libgfortranbegin, check existence of libgfortran.a instead of
276 2009-05-20 Jakub Jelinek <jakub@redhat.com>
279 * team.c (gomp_thread_start): Destroy thr->release semaphore.
280 (gomp_free_pool_helper): Likewise.
282 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
283 Jakub Jelinek <jakub@redhat.com>
286 * testsuite/libgomp.fortran/workshare2.f90: New test.
288 2009-04-09 Nick Clifton <nickc@redhat.com>
290 * iter.c: Change copyright header to refer to version 3 of the
291 GNU General Public License with version 3.1 of the GCC Runtime
292 Library Exception and to point readers at the COPYING3 and
293 COPYING3.RUNTIME files and the FSF's license web page.
295 * barrier.c: Likewise.
296 * config/bsd/proc.c: Likewise.
297 * config/linux/affinity.c: Likewise.
298 * config/linux/alpha/futex.h: Likewise.
299 * config/linux/bar.c: Likewise.
300 * config/linux/bar.h: Likewise.
301 * config/linux/ia64/futex.h: Likewise.
302 * config/linux/ia64/mutex.h: Likewise.
303 * config/linux/lock.c: Likewise.
304 * config/linux/mips/futex.h: Likewise.
305 * config/linux/mutex.c: Likewise.
306 * config/linux/mutex.h: Likewise.
307 * config/linux/powerpc/futex.h: Likewise.
308 * config/linux/proc.c: Likewise.
309 * config/linux/ptrlock.c: Likewise.
310 * config/linux/ptrlock.h: Likewise.
311 * config/linux/s390/futex.h: Likewise.
312 * config/linux/sem.c: Likewise.
313 * config/linux/sem.h: Likewise.
314 * config/linux/sparc/futex.h: Likewise.
315 * config/linux/wait.h: Likewise.
316 * config/linux/x86/futex.h: Likewise.
317 * config/mingw32/proc.c: Likewise.
318 * config/mingw32/time.c: Likewise.
319 * config/posix/affinity.c: Likewise.
320 * config/posix/bar.c: Likewise.
321 * config/posix/bar.h: Likewise.
322 * config/posix/lock.c: Likewise.
323 * config/posix/mutex.h: Likewise.
324 * config/posix/proc.c: Likewise.
325 * config/posix/ptrlock.h: Likewise.
326 * config/posix/sem.c: Likewise.
327 * config/posix/sem.h: Likewise.
328 * config/posix/time.c: Likewise.
329 * config/posix95/lock.c: Likewise.
330 * critical.c: Likewise.
333 * fortran.c: Likewise.
334 * iter_ull.c: Likewise.
335 * libgomp.h: Likewise.
336 * libgomp_f.h.in: Likewise.
337 * libgomp_g.h: Likewise.
339 * loop_ull.c: Likewise.
340 * omp.h.in: Likewise.
341 * omp_lib.f90.in: Likewise.
342 * omp_lib.h.in: Likewise.
343 * ordered.c: Likewise.
344 * parallel.c: Likewise.
345 * sections.c: Likewise.
346 * single.c: Likewise.
351 2009-04-09 Jakub Jelinek <jakub@redhat.com>
353 * testsuite/config/default.exp: Change copyright header to refer to
354 version 3 of the GNU General Public License and to point readers
355 at the COPYING3 file and the FSF's license web page.
357 2009-04-08 Jakub Jelinek <jakub@redhat.com>
360 * libgomp.c++/pr39573.C: New test.
362 2009-04-01 Jakub Jelinek <jakub@redhat.com>
365 * testsuite/libgomp.c/pr39591-1.c: New test.
366 * testsuite/libgomp.c/pr39591-2.c: New test.
367 * testsuite/libgomp.c/pr39591-3.c: New test.
369 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
371 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
372 * testsuite/libgomp.c/atomic-6.c: Ditto.
374 2009-03-23 Jakub Jelinek <jakub@redhat.com>
377 * testsuite/libgomp.c/loop-12.c: New test.
378 * testsuite/libgomp.c/loop-11.c: New test.
379 * testsuite/libgomp.c++/loop-11.C: New test.
380 * testsuite/libgomp.c++/loop-12.C: New test.
381 * testsuite/libgomp.c++/for-8.C: New test.
383 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
385 * configure: Regenerate.
387 2009-02-11 Jakub Jelinek <jakub@redhat.com>
390 * testsuite/libgomp.c/pr39154.c: New test.
392 2009-01-30 Ian Lance Taylor <iant@google.com>
394 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
395 libgomp_ld_is_gold. Get gold version number.
396 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
397 * configure: Rebuild.
399 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
401 * testsuite/lib/libgomp.exp: Add -B option for targets that
402 use libgfortran.a%s in their specs.
404 2009-01-07 Jakub Jelinek <jakub@redhat.com>
407 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
408 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
409 HAVE_AS_SYMVER_DIRECTIVE is not defined.
410 * configure: Regenerated.
411 * config.h.in: Likewise.
413 2008-12-28 Jakub Jelinek <jakub@redhat.com>
416 * testsuite/libgomp.c/pr38650.c: New test.
417 * testsuite/libgomp.c++/pr38650.C: New test.
419 2008-12-27 Jakub Jelinek <jakub@redhat.com>
421 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
423 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
425 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
427 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
429 * configure: Regenerate.
431 2008-12-08 Jakub Jelinek <jakub@redhat.com>
434 * testsuite/libgomp.c/pr36802-1.c: New test.
435 * testsuite/libgomp.c/pr36802-2.c: New test.
436 * testsuite/libgomp.c/pr36802-3.c: New test.
438 2008-12-01 Janis Johnson <janis187@us.ibm.com>
441 * config/linux/powerpc/mutex.h: New.
443 2008-12-01 Jakub Jelinek <jakub@redhat.com>
446 * testsuite/libgomp.c++/for-7.C: New test.
449 * testsuite/libgomp.c++/for-6.C: New test.
451 2008-11-26 Janis Johnson <janis187@us.ibm.com>
454 * testsuite/lib/libgomp.exp: Include new timeout library files.
455 (libgomp_target_compile): Set timeout value from new proc.
457 2008-11-13 Steve Ellcey <sje@cup.hp.com>
460 * config/linux/ia64/mutex.h: New.
462 2008-11-04 Tobias Burnus <burnus@net-b.de>
465 * libgomp.texi (Runtime library routines, environment variables):
466 Update for OpenMP version 3.0.
468 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
469 Steve Ellcey <sje@cup.hp.com>
471 * configure: Regenerate for new libtool.
472 * Makefile.in: Ditto.
473 * testsuite/Makefile.in: Ditto.
475 2008-09-19 Jakub Jelinek <jakub@redhat.com>
476 Andreas Tobler <a.tobler@schweiz.org>
478 * config/bsd/proc.c: New file.
479 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
480 * configure.ac: Check for header <sys/sysctl.h>
481 * configure: Regenerate.
482 * config.h.in: Likewise.
484 2008-09-05 Janis Johnson <janis187@us.ibm.com>
486 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
488 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
490 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
491 * Makefile.in: Regenerated.
492 * testsuite/Makefile.in: Regenerated.
494 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
496 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
497 depend on blddir if blddir exists.
498 (libgomp_target_compile): Likewise.
499 * testsuite/libgomp.c++/c++.exp: Likewise.
500 * testsuite/libgomp.fortran/fortran.exp: Likewise.
502 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
504 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
505 Do not list GPL as Invariant Section.
507 2008-07-28 Ilie Garbacea <ilie@mips.com>
508 Chao-ying Fu <fu@mips.com>
510 * configure.tgt: Enable futex for MIPS.
511 * config/linux/mips/futex.h: New file.
513 2008-07-16 Jakub Jelinek <jakub@redhat.com>
515 * team.c (gomp_team_end): Free team immediately if it has
518 2008-07-08 David Edelsohn <edelsohn@gnu.org>
520 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
521 * testsuite/libgomp.fortran/fortran.exp: Same.
522 * testsuite/libgomp.c/c.exp: Same.
523 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
524 directory to library path first.
526 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
528 * env.c (parse_stacksize): Add cast to avoid warning.
529 (parse_spincount): Likewise.
531 2008-06-27 Jakub Jelinek <jakub@redhat.com>
533 * testsuite/libgomp.c/loop-10.c: New test.
534 * libgomp.c/loop-3.c (main): Add lastprivate clause.
535 * libgomp.c++/loop-6.C (main): Likewise.
538 * testsuite/libgomp.c/debug-1.c: New test.
540 2008-06-19 Jakub Jelinek <jakub@redhat.com>
542 * testsuite/libgomp.c/nqueens-1.c: New test.
545 * testsuite/libgomp.c++/task-7.C: New function.
547 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
549 * configure: Regenerate.
551 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
553 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
554 mutex when HAVE_SYNC_BUILTINS isn't defined.
556 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
558 * libgomp.texi (omp_test_lock): Fix typo.
560 2008-06-12 Tobias Burnus <burnus@net-b.de>
562 * omp_lib.f90.in: Add "implicit none".
564 2008-06-12 Jakub Jelinek <jakub@redhat.com>
567 * testsuite/libgomp.c/reduction-5.c: New test.
569 2008-06-11 Jakub Jelinek <jakub@redhat.com>
571 * libgomp.h (struct gomp_task): Add in_tied_task field.
572 * task.c (gomp_init_task): Initialize it.
573 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
574 unconditionally. Don't call gomp_team_barrier_wake if
575 current task is implicit or if(0) from implicit and number of
576 running tasks is equal to nthreads - 1.
579 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
580 omp_get_team_size_8): Fix pastos.
583 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
584 * configure: Regenerated.
585 * config.h.in: Regenerated.
586 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
589 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
592 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
593 (GOMP_loop_ull_dynamic_start): Likewise.
594 (GOMP_loop_ull_guided_start): Likewise.
595 (GOMP_loop_ull_ordered_static_start): Likewise.
596 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
597 (GOMP_loop_ull_ordered_guided_start): Likewise.
599 2008-06-06 Jakub Jelinek <jakub@redhat.com>
600 Richard Henderson <rth@redhat.com>
601 Ulrich Drepper <drepper@redhat.com>
602 Jakob Blomer <jakob.blomer@ira.uka.de>
604 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
605 Substitute also OMP_*LOCK_25*.
606 * configure: Regenerated.
607 * config.h.in: Regenerated.
608 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
609 ptrlock.c and task.c.
610 * Makefile.in: Regenerated.
611 * testsuite/Makefile.in: Regenerated.
613 * loop_ull.c: New file.
614 * iter_ull.c: New file.
615 * libgomp.h: Include ptrlock.h.
616 (enum gomp_task_kind): New type.
617 (struct gomp_team): Add task_lock, task_queue, task_count,
618 task_running_count, single_count fields. Add
619 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
620 Remove work_share_lock, generation_mask,
621 oldest_live_gen, num_live_gen and init_work_shares fields, add
622 work work_share_list_alloc, work_share_list_free and work_share_chunk
623 fields. Change work_shares from pointer to pointers into an array.
624 Change ordered_release field into gomp_sem_t ** from flexible array
625 member. Add implicit_task and initial_work_shares fields.
626 Move close to the end of the struct.
627 (struct gomp_team_state): Add single_count, last_work_share,
628 active_level and level fields, remove work_share_generation.
629 (gomp_barrier_handle_tasks): New prototype.
630 (gomp_finish_task): New inline function.
631 (struct gomp_work_share): Move chunk_size, end, incr into
632 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
633 next_ll fields. Reshuffle fields. Add next_alloc,
634 next_ws, next_free and inline_ordered_team_ids fields, change
635 ordered_team_ids into pointer from flexible array member.
636 Add mode field. Put lock and next into a different cache line
637 from most of the write-once fields.
638 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
639 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
640 gomp_iter_ull_guided_next): New prototypes.
641 (gomp_new_icv): New prototype.
642 (struct gomp_thread): Add thread_pool and task fields.
643 (struct gomp_thread_pool): New type.
644 (gomp_new_team): New prototype.
645 (gomp_team_start): Change type of last argument.
646 (gomp_new_work_share): Removed.
647 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
648 (gomp_work_share_init_done): New static inline.
649 (gomp_throttled_spin_count_var, gomp_available_cpus,
650 gomp_managed_threads): New extern decls.
651 (gomp_init_task): New prototype.
652 (gomp_spin_count_var): New extern var decl.
653 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
654 or no alias support, or if not PIC.
655 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
656 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
657 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
658 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
659 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
660 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
661 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
662 gomp_test_nest_lock_25): New prototypes.
663 (omp_lock_symver, strong_alias): Define.
664 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
666 (gomp_end_task): New.
667 (struct gomp_task_icv, gomp_global_icv): New.
668 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
669 (struct gomp_task): New.
670 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
671 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
673 (gomp_schedule_type): Reorder enum to match
675 * team.c (struct gomp_thread_start_data): Add thread_pool and task
677 (gomp_thread_start): Add gomp_team_barrier_wait call.
678 For non-nested case remove clearing of docked thread thr fields.
679 Use pool fields instead of global gomp_* variables. Use
680 gomp_barrier_wait_last when needed. Initialize ts.active_level.
681 Create tasks for each member thread.
682 (free_team): Only destroy team barrier, task_lock here and free it.
683 (gomp_free_thread): Free last_team if non-NULL.
684 (gomp_team_end): Call gomp_team_barrier_wait instead of
685 gomp_barrier_wait. For nested case call one extra
686 gomp_barrier_wait. Move here some destruction from free_team.
687 Call free_team on pool->last_team if any, rather than freeing
688 current team. Destroy work_share_list_free_lock ifndef
690 (gomp_new_icv): New function.
691 (gomp_threads, gomp_threads_size, gomp_threads_used,
692 gomp_threads_dock): Removed.
693 (gomp_thread_destructor): New variable.
694 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
696 (gomp_team_start): Create new pool if current thread doesn't have
697 one. Use pool fields instead of global gomp_* variables.
698 Initialize thread_pool field for new threads. Clear single_count.
699 Change last argument from ws to team, don't create
700 new team, set ts.work_share to &team->work_shares[0] and clear
701 ts.last_work_share. Don't clear ts.work_share_generation.
702 If number of threads changed, adjust atomically gomp_managed_threads.
703 Use gomp_init_task instead of gomp_new_task,
704 set thr->task to the corresponding implicit_task array entry.
705 Create tasks for each member thread. Initialize ts.level.
706 (initialize_team): Call pthread_key_create on
707 gomp_thread_destructor.
708 (team_destructor): New function.
710 (gomp_new_team): New function.
711 (free_team): Free gomp_work_share blocks chained through next_alloc,
712 instead of freeing work_shares and destroying work_share_lock.
713 (gomp_team_end): Call gomp_fini_work_share. If number of threads
714 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
715 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
716 of gomp_barrier_wait.
717 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
718 instead of gomp_barrier_wait. Call gomp_work_share_init_done
719 if gomp_work_share_start returned true. Don't unlock ws->lock.
720 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
721 of gomp_barrier_wait.
722 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
723 gomp_work_share_init_done if gomp_work_share_start returned true.
724 Don't unlock ws->lock.
725 * work.c: Include stddef.h.
726 (free_work_share): Use work_share_list_free_lock instead
727 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
728 Call gomp_fini_work_share and then either free ws if orphaned, or
729 put it into work_share_list_free list of the current team.
730 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
732 (gomp_work_share_start, gomp_work_share_end,
733 gomp_work_share_end_nowait): Rewritten.
734 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
735 (openmp_version): Set to 200805.
736 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
737 omp_sched_guided, omp_sched_auto): New parameters.
738 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
739 omp_set_max_active_levels, omp_get_max_active_levels,
740 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
741 omp_get_active_level): New interfaces.
742 * omp_lib.h.in (openmp_version): Set to 200805.
743 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
744 omp_sched_guided, omp_sched_auto): New parameters.
745 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
746 omp_set_max_active_levels, omp_get_max_active_levels,
747 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
748 omp_get_active_level): New externals.
749 * loop.c: Include limits.h.
750 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
752 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
753 Likewise. Use gomp_icv.
754 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
756 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
757 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
758 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
759 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
760 don't unlock ws->lock, otherwise lock it.
761 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
762 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
763 (gomp_parallel_loop_start): Call gomp_new_team instead of
764 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
765 Adjust gomp_team_start caller. Pass 0 as second argument to
766 gomp_resolve_num_threads.
767 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
768 If adding ws->chunk_size nthreads + 1 times after end won't
769 overflow, set ws->mode to 1.
770 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
771 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
772 GOMP_loop_ull_ordered_static_start,
773 GOMP_loop_ull_ordered_dynamic_start,
774 GOMP_loop_ull_ordered_guided_start,
775 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
776 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
777 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
778 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
779 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
781 * libgomp.map: Export lock routines also @@OMP_2.0.
782 (GOMP_loop_ordered_dynamic_first,
783 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
784 GOMP_loop_ordered_static_first): Remove.
785 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
786 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
787 GOMP_loop_ull_ordered_dynamic_next,
788 GOMP_loop_ull_ordered_dynamic_start,
789 GOMP_loop_ull_ordered_guided_next,
790 GOMP_loop_ull_ordered_guided_start,
791 GOMP_loop_ull_ordered_runtime_next,
792 GOMP_loop_ull_ordered_runtime_start,
793 GOMP_loop_ull_ordered_static_next,
794 GOMP_loop_ull_ordered_static_start,
795 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
796 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
797 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
798 (omp_set_schedule, omp_get_schedule,
799 omp_get_thread_limit, omp_set_max_active_levels,
800 omp_get_max_active_levels, omp_get_level,
801 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
802 omp_set_schedule_, omp_set_schedule_8_,
803 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
804 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
805 omp_get_max_active_levels_, omp_get_level_,
806 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
807 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
808 New exports @@OMP_3.0.
809 * omp.h.in (omp_sched_t): New type.
810 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
811 omp_set_max_active_levels, omp_get_max_active_levels,
812 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
813 omp_get_active_level): New prototypes.
814 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
815 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
816 gomp_thread_limit_var, gomp_remaining_threads_count,
817 gomp_remaining_threads_lock): New variables.
818 (parse_spincount): New function.
819 (initialize_env): Call gomp_init_num_threads unconditionally.
820 Initialize gomp_available_cpus. Call parse_spincount,
821 initialize gomp_{,throttled_}spin_count_var
822 depending on presence and value of OMP_WAIT_POLICY and
823 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
824 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
825 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
826 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
827 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
828 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
829 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
830 (gomp_global_icv): New.
831 (parse_schedule): Use it. Parse "auto".
832 (omp_set_num_threads): Use gomp_icv.
833 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
835 (omp_get_max_threads): Move from parallel.c.
836 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
837 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
839 (parse_stacksize, parse_wait_policy): New functions.
840 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
841 both wrappers for compatibility and new locks.
842 (omp_set_schedule, omp_get_schedule,
843 omp_get_thread_limit, omp_set_max_active_levels,
844 omp_get_max_active_levels, omp_get_level,
845 omp_get_ancestor_thread_num, omp_get_team_size,
846 omp_get_active_level): New ialias_redirect.
847 (omp_set_schedule_, omp_set_schedule_8_,
848 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
849 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
850 omp_get_max_active_levels_, omp_get_level_,
851 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
852 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
854 * parallel.c: Include limits.h.
855 (gomp_resolve_num_threads): Add count argument. Rewritten.
856 (GOMP_parallel_start): Call gomp_new_team and pass that as last
857 argument to gomp_team_start. Pass 0 as second argument to
858 gomp_resolve_num_threads.
859 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
860 if gomp_thread_limit_var != ULONG_MAX.
861 (omp_in_parallel): Implement using ts.active_level.
862 (omp_get_max_threads): Move to env.c.
863 (omp_get_level, omp_get_ancestor_thread_num,
864 omp_get_team_size, omp_get_active_level): New functions,
866 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
867 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
868 gomp_iter_dynamic_next instead of the _locked variant and don't take
869 lock around it, otherwise acquire it before calling
870 gomp_iter_dynamic_next_locked.
871 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
872 gomp_iter_dynamic_next instead of the _locked variant and don't take
874 (GOMP_parallel_sections_start): Call gomp_new_team instead of
875 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
876 Adjust gomp_team_start caller. Pass count as second argument to
877 gomp_resolve_num_threads, don't adjust num_threads after the call.
879 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
880 ws->chunk_size by incr.
881 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
883 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
885 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
886 (omp_check_defines): Check even the compat defines.
887 * config/linux/ptrlock.c: New file.
888 * config/linux/ptrlock.h: New file.
889 * config/linux/wait.h: New file.
890 * config/posix/ptrlock.c: New file.
891 * config/posix/ptrlock.h: New file.
892 * config/linux/bar.h (gomp_team_barrier_wait,
893 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
894 (gomp_team_barrier_set_task_pending,
895 gomp_team_barrier_clear_task_pending,
896 gomp_team_barrier_set_waiting_for_tasks,
897 gomp_team_barrier_waiting_for_tasks,
898 gomp_team_barrier_done): New inlines.
899 (gomp_barrier_t): Rewritten.
900 (gomp_barrier_state_t): New typedef.
901 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
902 gomp_barrier_wait_start): Rewritten.
903 (gomp_barrier_wait_end): Change second argument to
904 gomp_barrier_state_t.
905 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
907 * config/linux/bar.c: Include wait.h instead of libgomp.h and
909 (gomp_barrier_wait_end): Rewritten.
910 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
911 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
912 * config/posix/bar.h (gomp_barrier_t): Add generation field.
913 (gomp_barrier_state_t): New typedef.
914 (gomp_team_barrier_wait,
915 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
916 (gomp_barrier_wait_start): Or all but low 2 bits from generation
917 into the return value. Return gomp_barrier_state_t.
918 (gomp_team_barrier_set_task_pending,
919 gomp_team_barrier_clear_task_pending,
920 gomp_team_barrier_set_waiting_for_tasks,
921 gomp_team_barrier_waiting_for_tasks,
922 gomp_team_barrier_done): New inlines.
923 (gomp_barrier_wait_end): Change second argument to
924 gomp_barrier_state_t.
925 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
927 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
928 (gomp_barrier_wait_end): Change second argument to
929 gomp_barrier_state_t.
930 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
931 gomp_team_barrier_wake): New functions.
932 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
934 (gomp_futex_wake, gomp_futex_wait): New variables.
935 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
936 * config/linux/lock.c: Rewrite to make locks task owned,
937 for backwards compatibility provide the old entrypoints
938 if symbol versioning. Include wait.h instead of libgomp.h and
940 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
941 * config/posix95/lock.c: Rewrite to make locks task owned,
942 for backwards compatibility provide the old entrypoints
943 if symbol versioning.
944 * config/posix/lock.c: Rewrite to make locks task owned,
945 for backwards compatibility provide the old entrypoints
946 if symbol versioning.
947 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
948 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
949 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
950 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
951 (sys_futex0): Return error code.
952 (futex_wake, futex_wait): If ENOSYS was returned, clear
953 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
954 (cpu_relax, atomic_write_barrier): New static inlines.
955 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
956 (futex_wake, futex_wait): If ENOSYS was returned, clear
957 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
958 (cpu_relax, atomic_write_barrier): New static inlines.
959 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
960 (sys_futex0): Return error code.
961 (futex_wake, futex_wait): If ENOSYS was returned, clear
962 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
963 (cpu_relax, atomic_write_barrier): New static inlines.
964 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
965 (sys_futex0): Return error code.
966 (futex_wake, futex_wait): If ENOSYS was returned, clear
967 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
968 (cpu_relax, atomic_write_barrier): New static inlines.
969 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
970 (sys_futex0): Return error code.
971 (futex_wake, futex_wait): If ENOSYS was returned, clear
972 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
973 (cpu_relax, atomic_write_barrier): New static inlines.
974 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
975 (sys_futex0): Return error code.
976 (futex_wake, futex_wait): If ENOSYS was returned, clear
977 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
978 (cpu_relax, atomic_write_barrier): New static inlines.
979 * config/linux/sem.c: Include wait.h instead of libgomp.h and
981 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
982 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
983 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
985 (omp_nest_lock_t): Change owner into void *, add lock field.
986 * config/posix95/omp-lock.h: Include semaphore.h.
987 (omp_lock_25_t, omp_nest_lock_25_t): New types.
988 (omp_lock_t): Use sem_t instead of mutex if semaphores
990 (omp_nest_lock_t): Likewise. Change owner to void *.
991 * config/posix/omp-lock.h: Include semaphore.h.
992 (omp_lock_25_t, omp_nest_lock_25_t): New types.
993 (omp_lock_t): Use sem_t instead of mutex if semaphores
995 (omp_nest_lock_t): Likewise. Add owner field.
997 2008-06-06 Jakub Jelinek <jakub@redhat.com>
999 * testsuite/libgomp.c/collapse-1.c: New test.
1000 * testsuite/libgomp.c/collapse-2.c: New test.
1001 * testsuite/libgomp.c/collapse-3.c: New test.
1002 * testsuite/libgomp.c/icv-1.c: New test.
1003 * testsuite/libgomp.c/icv-2.c: New test.
1004 * testsuite/libgomp.c/lib-2.c: New test.
1005 * testsuite/libgomp.c/lock-1.c: New test.
1006 * testsuite/libgomp.c/lock-2.c: New test.
1007 * testsuite/libgomp.c/lock-3.c: New test.
1008 * testsuite/libgomp.c/loop-4.c: New test.
1009 * testsuite/libgomp.c/loop-5.c: New test.
1010 * testsuite/libgomp.c/loop-6.c: New test.
1011 * testsuite/libgomp.c/loop-7.c: New test.
1012 * testsuite/libgomp.c/loop-8.c: New test.
1013 * testsuite/libgomp.c/loop-9.c: New test.
1014 * testsuite/libgomp.c/nested-3.c: New test.
1015 * testsuite/libgomp.c/nestedfn-6.c: New test.
1016 * testsuite/libgomp.c/sort-1.c: New test.
1017 * testsuite/libgomp.c/task-1.c: New test.
1018 * testsuite/libgomp.c/task-2.c: New test.
1019 * testsuite/libgomp.c/task-3.c: New test.
1020 * testsuite/libgomp.c/task-4.c: New test.
1021 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1022 to C++ testsuite default compiler options.
1023 * testsuite/libgomp.c++/collapse-1.C: New test.
1024 * testsuite/libgomp.c++/collapse-2.C: New test.
1025 * testsuite/libgomp.c++/ctor-10.C: New test.
1026 * testsuite/libgomp.c++/for-1.C: New test.
1027 * testsuite/libgomp.c++/for-2.C: New test.
1028 * testsuite/libgomp.c++/for-3.C: New test.
1029 * testsuite/libgomp.c++/for-4.C: New test.
1030 * testsuite/libgomp.c++/for-5.C: New test.
1031 * testsuite/libgomp.c++/loop-8.C: New test.
1032 * testsuite/libgomp.c++/loop-9.C: New test.
1033 * testsuite/libgomp.c++/loop-10.C: New test.
1034 * testsuite/libgomp.c++/task-1.C: New test.
1035 * testsuite/libgomp.c++/task-2.C: New test.
1036 * testsuite/libgomp.c++/task-3.C: New test.
1037 * testsuite/libgomp.c++/task-4.C: New test.
1038 * testsuite/libgomp.c++/task-5.C: New test.
1039 * testsuite/libgomp.c++/task-6.C: New test.
1040 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1041 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1042 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1043 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1044 * testsuite/libgomp.fortran/collapse1.f90: New test.
1045 * testsuite/libgomp.fortran/collapse2.f90: New test.
1046 * testsuite/libgomp.fortran/collapse3.f90: New test.
1047 * testsuite/libgomp.fortran/collapse4.f90: New test.
1048 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1049 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1050 * testsuite/libgomp.fortran/lib4.f90: New test.
1051 * testsuite/libgomp.fortran/lock-1.f90: New test.
1052 * testsuite/libgomp.fortran/lock-2.f90: New test.
1053 * testsuite/libgomp.fortran/nested1.f90: New test.
1054 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1055 * testsuite/libgomp.fortran/strassen.f90: New test.
1056 * testsuite/libgomp.fortran/tabs1.f90: New test.
1057 * testsuite/libgomp.fortran/tabs2.f: New test.
1058 * testsuite/libgomp.fortran/task1.f90: New test.
1059 * testsuite/libgomp.fortran/task2.f90: New test.
1060 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1061 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1062 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1063 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1064 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1066 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1069 * testsuite/libgomp.c++/ctor-11.C: New test.
1070 * testsuite/libgomp.c++/ctor-12.C: New test.
1072 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1074 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1076 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1079 * testsuite/libgomp.c/atomic-5.c: New test.
1080 * testsuite/libgomp.c/atomic-6.c: New test.
1081 * testsuite/libgomp.c/autopar-1.c: New test.
1083 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1085 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1086 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1087 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1088 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1089 * configure: Regenerate.
1090 * Makefile.in, testsuite/Makefile.in: Likewise.
1092 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1095 * aclocal.m4: Regenerate.
1096 * configure: Regenerate.
1098 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1101 * testsuite/libgomp.c/atomic-4.c: New test.
1104 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1105 (gomp_iter_guided_next): Likewise.
1106 * testsuite/libgomp.c/pr35625.c: New test.
1108 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1110 * aclocal.m4: Regenerate.
1111 * configure: Likewise.
1112 * Makefile.in: Likewise.
1113 * testsuite/Makefile.in: Likewise.
1115 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1118 * testsuite/libgomp.c++/pr35185.C: New test.
1120 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1123 * testsuite/libgomp.c/pr35549.c: New test.
1125 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1127 * testsuite/libgomp.c/atomic-3.c: New test.
1129 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1132 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1135 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1138 * configure.ac: Add ACX_HEADER_STRING.
1139 * env.c: Include strings.h.
1140 * aclocal.m4: Regenerate.
1141 * config.h.in: Regenerate.
1142 * configure: Regenerate.
1143 * Makefile.in: Regenerate.
1144 * testsuite/Makefile.in: Regenerate.
1146 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1149 * testsuite/libgomp.c/pr35196.c: New test.
1152 * testsuite/libgomp.fortran/pr35130.f90: New test.
1153 * testsuite/libgomp.c/pr35130.c: New test.
1155 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1158 * testsuite/libgomp.c/pr33880.c: New test.
1159 * testsuite/libgomp.fortran/pr33880.f90: New test.
1161 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1163 * configure: Regenerate.
1165 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1167 * configure.ac: Move futex checking into ../config/futex.m4.
1168 * configure: Rebuilt.
1169 * aclocal.m4: Rebuilt.
1170 * Makefile.in: Rebuilt.
1172 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1173 2007-10-15 ../config/tls.m4 change.
1175 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1178 * testsuite/libgomp.c/pr34513.c: New test.
1179 * testsuite/libgomp.c++/pr34513.C: New test.
1181 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1184 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1186 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1188 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1190 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1192 * testsuite/libgomp.c/private-1.c: New test.
1194 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1195 Paolo Bonzini <bonzini@gnu.org>
1197 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1198 instead of 'VPATH ='.
1199 * Makefile.in: Regenerate.
1201 2007-11-23 Matthias Klose <doko@ubuntu.com>
1203 * configure.ac: Adjust makeinfo version check.
1204 * configure: Regenerate.
1206 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1209 * testsuite/libgomp.fortran/pr34020.f90: New test.
1211 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1214 * testsuite/libgomp.c++/atomic-1.C: New test.
1216 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1219 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1220 Make x and y integers rather than (implicit) reals. Add private (j)
1221 clause to the last omp parallel.
1223 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1225 * configure: Regenerate following changes to ../config/tls.m4.
1227 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1229 * testsuite/libgomp.fortran/stack.f90: New test.
1231 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1233 * config/mingw32/proc.c: New file.
1235 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1237 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1238 (main): Use __get_cpuid to get i386 target fetaures.
1239 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1240 (main): Use __get_cpuid to get x86_64 target fetaures.
1242 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1245 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1246 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1248 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1251 * testsuite/libgomp.fortran/pr32550.f90: New test.
1252 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1254 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1256 * aclocal.m4: Regenerated.
1258 2007-07-05 Tobias Burnus <burnus@net-b.de>
1261 * testsuite/libgomp.fortran/pr32359.f90: New.
1263 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1266 * sections.c (GOMP_parallel_sections_start): Only decrease
1267 number of threads to COUNT if dyn_var is true.
1268 * testsuite/libgomp.c/pr32468.c: New test.
1270 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1273 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1275 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1278 * testsuite/libgomp.c/pr32362-1.c: New test.
1279 * testsuite/libgomp.c/pr32362-2.c: New test.
1280 * testsuite/libgomp.c/pr32362-3.c: New test.
1282 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1284 * team.c (gomp_team_start): Fix setting up thread_attr
1287 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1289 * configure: Regenerate.
1291 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1293 * Makefile.in: Regenerate.
1294 * configure: Regenerate.
1295 * aclocal.m4: Regenerate.
1296 * testsuite/Makefile.in: Regenerate.
1298 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1300 * config/linux/proc.c: New file.
1303 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1305 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1307 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1309 2007-04-16 Matthias Klose <doko@debian.org>
1311 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1312 flags if not building with -m64.
1313 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1314 flag for i?86-*-* targets, if current target matches -m64.
1316 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1318 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1319 * Makefile.in: Regenerate.
1321 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1324 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1326 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1328 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1330 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1332 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1333 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1334 (parse_affinity): New function.
1335 (initialize_env): Call it and gomp_init_affinity.
1336 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1337 create new pthread_attr_t and call gomp_init_thread_affinity
1338 on it for each thread before passing the attribute to pthread_create.
1339 * config/linux/affinity.c: New file.
1340 * config/posix/affinity.c: New file.
1341 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1342 * configure: Rebuilt.
1343 * config.h.in: Rebuilt.
1344 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1345 * Makefile.in: Rebuilt.
1347 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1349 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1351 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1352 and use it if found.
1354 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1356 * testsuite/config/default.exp: New file.
1357 * testsuite/lib/libgomp.exp: New file.
1358 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1359 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1360 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1361 (libgomp_load): Remove.
1362 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1363 always_ld_library_path, not ld_library_path. Set additional_flags
1364 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1365 (target_compile): Do not call libgomp_init. Append lang_library_path
1366 and lang_link_flags to options.
1367 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1368 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1370 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1371 always_ld_library_path. Set LD_LIBRARY_PATH here.
1372 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1373 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1374 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1376 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1377 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1378 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1379 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1380 * testsuite/libgomp.c/atomic-10.c: Ditto.
1382 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1384 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1385 dg-final cleanup-modules line.
1386 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1387 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1388 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1389 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1390 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1391 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1392 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1394 2007-03-18 Andreas Schwab <schwab@suse.de>
1396 * acinclude.m4: Adjust regular expression for ld version
1398 * configure: Regenerate.
1400 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1402 * Makefile.am: Add install-pdf target as copied from
1403 automake v1.10 rules.
1404 * Makefile.in: Regenerate
1406 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1409 * configure: Regenerate.
1412 * testsuite/libgomp.c++/pr30703.C: New test.
1414 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1417 2006-07-05 Eric Christopher <echristo@apple.com>
1418 * configure.ac: Depend addition of -pthread on host OS.
1419 * configure: Regenerate.
1421 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1423 * libgomp.texi: Fix spacing after abbreviations.
1425 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1428 * configure.ac: Add check for makeinfo
1429 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1430 if an appropiate version of makeinfo is found.
1431 * aclocal.m4: Regenerated.
1432 * configure: Regenerated.
1433 * Makefile.in: Regenerated.
1434 * testsuite/Makefile.in: Regenerated.
1436 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1439 * libgomp.texi: More about implementation-dependent settings.
1441 2007-01-26 Tobias Burnus <burnus@net-b.de>
1443 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1445 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1448 * testsuite/libgomp.c/pr30494.c: New test.
1450 2007-01-15 Tom Tromey <tromey@redhat.com>
1452 * configure: Rebuilt.
1453 * configure.ac: Fixed comment.
1455 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1457 * libgomp.texi: Document implementation specific default values of
1458 environment variables.
1460 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1463 * libgomp.texi: New file.
1464 * configure.ac: Add --enable-generated-files-in-srcdir option.
1465 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1467 * Makefile.in: Regenerated.
1468 * config.h.in: Regenerated.
1469 * testsuite/Makefile.in: Regenerated.
1472 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1475 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1477 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1479 * configure: Regenerate.
1481 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1484 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1485 start if there shouldn't be any loop iterations.
1486 (gomp_loop_ordered_static_start): Remove start == end test.
1487 * testsuite/libgomp.c/pr29947-1.c: New test.
1488 * testsuite/libgomp.c/pr29947-2.c: New test.
1490 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1492 * configure.tgt: Force initial-exec TLS model on Linux only.
1494 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1496 * configure: Regenerated.
1498 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1500 * env.c (parse_schedule): Reject out of range values.
1501 (parse_unsigned_long): Reject out of range, negative or zero values.
1503 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1506 * testsuite/libgomp.fortran/pr29629.f90: New test.
1508 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1511 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1512 * config/posix95: New directory.
1513 * config/posix95/omp-lock.h: New file.
1514 * config/posix95/lock.c: Likewise.
1516 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1518 * aclocal.m4: Regenerate.
1519 * configure: Regenerate.
1521 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1523 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1526 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1528 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1530 * configure: Regenerate.
1531 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1533 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1537 * testsuite/libgomp.c/nestedfn-4.c: New test.
1538 * testsuite/libgomp.c/nestedfn-5.c: New test.
1539 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1542 * testsuite/libgomp.fortran/condinc1.f: New test.
1543 * testsuite/libgomp.fortran/condinc2.f: New test.
1544 * testsuite/libgomp.fortran/condinc3.f90: New test.
1545 * testsuite/libgomp.fortran/condinc4.f90: New test.
1546 * testsuite/libgomp.fortran/condinc1.inc: New file.
1548 2006-09-18 Tom Tromey <tromey@redhat.com>
1550 * configure: Rebuilt.
1552 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1555 PR preprocessor/14634
1556 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1558 * configure: Regenerate.
1560 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1562 * testsuite/libgomp.fortran/reduction3.f90: Change
1563 -2147483648 to -huge(i)-1 to avoid overflow.
1564 * testsuite/libgomp.fortran/reduction4.f90: Change
1565 Z'ffffffff' to not(0) to avoid overflow.
1567 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1570 * Makefile.am (libsubincludedir): New.
1571 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1572 * Makefile.in: Regenerate.
1574 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1577 * env.c: Include ctype.h.
1578 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1579 leading and/or trailing whitespace and compare strings case
1582 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1585 * testsuite/libgomp.fortran/pr28390.f: New test.
1587 2006-07-05 Eric Christopher <echristo@apple.com>
1589 * configure.ac: Depend addition of -pthread on host OS.
1590 * configure: Regenerate.
1592 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1594 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1595 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1598 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1602 * configure.ac: If neither --enable-linux-futex nor
1603 --disable-linux-futex is passed, determine the default by checking
1604 for compiling and/or running against NPTL. With --enable-linux-futex,
1605 check if SYS_gettid and SYS_futex are defined.
1606 * configure: Rebuilt.
1608 2006-06-14 Richard Henderson <rth@redhat.com>
1611 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1612 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1614 2006-06-09 Richard Henderson <rth@redhat.com>
1616 * env.c (gomp_nthreads_var): Change to unsigned long.
1617 (gomp_run_sched_chunk): Likewise.
1618 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1619 (initialize_env): Initialize gomp_thread_attr.
1620 * libgomp.h (gomp_nthreads_var): Update decl.
1621 (gomp_run_sched_chunk): Likewise.
1622 (gomp_thread_attr): Declare.
1623 * team.c (gomp_thread_attr): Export.
1624 (initialize_team): Don't initialize it.
1626 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1629 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1630 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1632 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1634 * config/mingw32/time.c: New file.
1635 * configure.tgt: Use it.
1637 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1639 * Makefile.am: Add install-html target. Add install-html to .PHONY
1640 * Makefile.in: Regenerate.
1642 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1645 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1646 * testsuite/libgomp.c/critical-1.c: Likewise.
1647 * testsuite/libgomp.c/loop-1.c: Likewise.
1648 * testsuite/libgomp.c/loop-2.c: Likewise.
1649 * testsuite/libgomp.c/single-1.c: Likewise.
1650 * testsuite/libgomp.c/ordered-1.c: Likewise.
1651 * testsuite/libgomp.c/ordered-2.c: Likewise.
1653 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1656 * libgomp.fortran/pr27416-1.f90: New test.
1658 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1661 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1662 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1664 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1667 * testsuite/libgomp.c/pr26943-1.c: New test.
1668 * testsuite/libgomp.c/pr26943-2.c: New test.
1669 * testsuite/libgomp.c/pr26943-3.c: New test.
1670 * testsuite/libgomp.c/pr26943-4.c: New test.
1671 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1672 * testsuite/libgomp.c++/pr26943.C: New test.
1674 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1677 * testsuite/libgomp.c++/pr27337.C: New test.
1679 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1682 * testsuite/libgomp.c/pr26171.c: New test.
1684 2006-04-25 Richard Henderson <rth@redhat.com>
1687 * configure.ac: Use GCC_CHECK_TLS.
1688 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1689 * Makefile.in, aclocal.m4, configure: Regenerate.
1691 2006-04-10 Matthias Klose <doko@debian.org>
1693 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1694 directory names containing underscores.
1696 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1699 * testsuite/libgomp.c++/pr26691.C: New test.
1701 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1703 * testsuite/libgomp.fortran/retval2.f90: New test.
1705 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1707 * testsuite/libgomp.c++: New directory.
1709 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1711 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1712 * config/posix/sem.c: Implement the above.
1714 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1716 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1717 define HAVE_BROKEN_POSIX_SEMAPHORES.
1718 * configure: Rebuilt.
1719 * config.h.in: Rebuilt.
1721 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1724 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1725 for the other pthread check.
1726 * configure: Regenerate.
1727 * config.h.in: Regenerate.
1729 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1733 * Makefile.am (fincludedir): New variable.
1734 (nodist_include_HEADERS): Remove Fortran files.
1735 (nodist_finclude_HEADERS): New variable.
1736 * Makefile.in: Regenerated.
1738 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1740 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1741 Remove tests for returning assumed character length arrays.
1743 2006-02-12 Roger Sayle <roger@eyesopen.com>
1744 John David Anglin <dave@hiauly1.hia.nrc.ca>
1747 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1749 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1751 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1753 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1755 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1756 part of LD_LIBRARY_PATH manually.
1758 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1761 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1764 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1767 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1768 * configure.ac (PERL): Don't set.
1769 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1770 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1771 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1772 * omp.h.in: Wrap the new configure substitutions with @ characters.
1773 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1774 * aclocal.m4, configure, Makefile.in: Regenerate.
1775 * mkomp_h.pl: Delete.
1777 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1780 * configure.ac: Use GCC_HEADER_STDINT.
1781 * libgomp.h: Include gstdint.h.
1782 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1783 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1785 2006-01-24 Richard Henderson <rth@redhat.com>
1788 * configure.ac: Add AM_MAINTAINER_MODE.
1789 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1791 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1793 * Makefile.in: Regenerate.
1794 * testsuite/Makefile.in: Regenerate.
1795 * aclocal.m4: Regenerate.
1797 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1799 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1801 * configure.ac: Add check for loadavg.h.
1802 (link_gomp): Adjust comment.
1803 * configure: Regenerate.
1804 * config.h.in: Regenerate.
1806 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1809 * configure.ac: Remove check for alloca.h.
1810 * configure: Regenerate.
1811 * config.h.in: Regenerate.
1812 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1813 * team.c: Remove use of alloca.h.
1814 Call gomp_alloca instead of alloca.
1816 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1819 * team.c: Add include of alloca.h.
1820 * configure.ac: Add check for alloca.h.
1821 * configure: Regenerate.
1822 * config.h.in: Regenerate.
1824 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1827 * testsuite/libgomp.fortran/pr25219.f90: New test.
1829 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1831 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1832 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1833 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1834 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1835 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1836 testsuite/libgomp.fortran/threadprivate1.f90,
1837 testsuite/libgomp.fortran/threadprivate2.f90,
1838 testsuite/libgomp.fortran/threadprivate3.f90,
1839 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1840 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1841 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1842 effective-target to TLS runtime.
1844 * testsuite/libgomp.fortran/pr25162.f: Require
1845 effective-target TLS runtime.
1847 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1849 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1850 * testsuite/libgomp.c/nestedfn-3.c: New test.
1852 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1855 * testsuite/libgomp.fortran/pr25162.f: New test.
1857 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1859 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1860 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1862 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1864 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1865 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1866 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1867 single.c, team.c, work.c, config/linux/alpha/futex.h,
1868 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1869 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1870 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1871 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1872 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1873 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1874 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1877 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1879 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1880 to nodist_noinst_HEADERS.
1881 * Makefile.in: Rebuilt.
1883 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1884 add integer count field.
1885 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1886 omp_nest_lock_t type change.
1887 (omp_init_nest_lock): Likewise. Initialize count to 0.
1888 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1890 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1892 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1893 Increment count if successful and return the new nesting level.
1894 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1895 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1896 * testsuite/libgomp.c/lib-1.c: New test.
1897 * testsuite/libgomp.fortran/lib1.f90: New test.
1898 * testsuite/libgomp.fortran/lib2.f: New test.
1899 * testsuite/libgomp.fortran/lib3.f: New test.
1901 2005-11-17 Richard Henderson <rth@redhat.com>
1904 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1905 * configure.ac (link_gomp): New. Substitute it.
1906 (AC_CONFIG_FILES): Add libgomp.spec.
1907 * libgomp.spec.in: New file.
1908 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1909 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1911 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1913 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1914 reduction(-:var) behaving the same as reduction(+:var).
1915 * testsuite/libgomp.c/reduction-4.c: New test.
1917 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1919 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1920 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1921 testsuite/libgomp.c/copyin-3.c,
1922 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1923 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1924 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1925 testsuite/libgomp.c++/pr24455.C,
1926 testsuite/libgomp.fortran/threadprivate1.f90,
1927 testsuite/libgomp.fortran/threadprivate2.f90,
1928 testsuite/libgomp.fortran/threadprivate3.f90,
1929 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1930 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1931 testsuite/libgomp.fortran/omp_parse3.f90: Require
1932 effective-target TLS.
1934 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1938 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1941 * team.c (initialize_team): Pass NULL rather than free as
1942 pthread_key_create destructor. Initialize thread specific data
1943 pointer in initial thread to a static local variable rather than
1946 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1948 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1949 its location to ld_library_path.
1951 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1953 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1955 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1957 * testsuite/libgomp.c: Rename from libgomp.dg.
1959 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1961 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1962 threadprivate variable 'i'.
1964 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1966 * config/linux/s390/futex.h: New file.
1967 * configure.tgt: Use it.
1969 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1970 before the parallel.
1972 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1975 * testsuite/libgomp.c++/master-1.C: New test.
1977 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1979 * testsuite/libgomp.dg/copyin-3.c: New test.
1981 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1983 * testsuite/libgomp.fortran/retval1.f90: New test.
1984 * testsuite/libgomp.fortran/vla7.f90: New test.
1986 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1988 * testsuite/libgomp.fortran/vla2.f90: New test.
1989 * testsuite/libgomp.fortran/vla3.f90: New test.
1990 * testsuite/libgomp.fortran/vla4.f90: New test.
1991 * testsuite/libgomp.fortran/vla5.f90: New test.
1992 * testsuite/libgomp.fortran/vla6.f90: New test.
1994 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1996 * config/linux/sparc/futex.h: New file.
1997 * configure.tgt: Use it.
1998 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2000 * critical.c: Include stdlib.h.
2001 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2002 ignoring return value.
2003 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2004 LIBGOMP_CHECK_SYNC_BUILTINS check.
2005 * configure: Rebuilt.
2007 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2009 * testsuite/libgomp.fortran/vla1.f90: New test.
2011 2005-10-31 Richard Henderson <rth@redhat.com>
2013 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2014 setting 's' in different threads.
2016 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2018 * libgomp.h (attribute_hidden, ialias): Define.
2019 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2020 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2021 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2022 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2023 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2024 omp_test_lock, omp_test_nest_lock): Likewise.
2025 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2026 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2027 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2028 omp_test_lock, omp_test_nest_lock): Likewise.
2029 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2030 omp_get_dynamic, omp_get_nested): Likewise.
2031 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2032 omp_get_thread_num, omp_in_parallel): Likewise.
2033 * fortran.c (ialias_redirect): Define.
2034 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2035 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2036 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2037 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2038 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2039 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2040 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2041 omp_get_wtime): Add ialias_redirect.
2043 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2045 * fortran.c: Include stdlib.h.
2047 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2049 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2050 * Makefile.in: Regenerated.
2052 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2054 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2055 * libgomp_f.h.in (omp_check_defines): New function.
2056 * env.c: Include libgomp_f.h.
2057 (initialize_env): Call omp_check_defines.
2059 * testsuite/libgomp.dg/copyin-2.c: New test.
2060 * testsuite/libgomp.c++/copyin-2.C: New test.
2061 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2063 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2064 * testsuite/libgomp.fortran/sharing2.f90: New test.
2066 * testsuite/libgomp.dg/copyin-1.c: New test.
2067 * testsuite/libgomp.c++/copyin-1.C: New test.
2069 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2071 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2073 * testsuite/libgomp.fortran/workshare1.f90: New test.
2075 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2077 * libgomp.fortran/sharing1.f90: New test.
2079 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2082 * testsuite/libgomp.c++/loop-7.C: New test.
2084 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2086 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2087 * testsuite/libgomp.fortran/reduction6.f90: New test.
2088 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2090 2005-10-23 Richard Henderson <rth@redhat.com>
2092 * testsuite/libgomp.c++/ctor-1.C: New.
2093 * testsuite/libgomp.c++/ctor-2.C: New.
2094 * testsuite/libgomp.c++/ctor-3.C: New.
2095 * testsuite/libgomp.c++/ctor-4.C: New.
2096 * testsuite/libgomp.c++/ctor-5.C: New.
2097 * testsuite/libgomp.c++/ctor-6.C: New.
2098 * testsuite/libgomp.c++/ctor-7.C: New.
2099 * testsuite/libgomp.c++/ctor-8.C: New.
2100 * testsuite/libgomp.c++/ctor-9.C: New.
2102 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2105 * testsuite/libgomp.c++/pr24455-1.C: New test.
2106 * testsuite/libgomp.c++/pr24455.C: New test.
2107 * testsuite/libgomp.dg/pr24455-1.c: New test.
2108 * testsuite/libgomp.dg/pr24455.c: New test.
2110 2005-10-20 Richard Henderson <rth@redhat.com>
2112 * testsuite/libgomp.c++/loop-6.C: New.
2113 * testsuite/libgomp.dg/loop-3.c: New.
2115 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2117 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2119 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2122 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2124 * testsuite/libgomp.fortran/jacobi.f: New test.
2126 2005-10-19 Richard Henderson <rth@redhat.com>
2128 * configure.tgt (i?86-linux): Default to with_arch instead of
2129 CFLAGS. Add -mtune to match target_cpu.
2130 (x86_64-linux): Tune to i686.
2132 * fortran.c (omp_test_nest_lock_): Fix typo.
2134 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2136 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2137 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2138 * testsuite/libgomp.dg/ordered-3.c: New test.
2140 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2141 Remove volatile keyword.
2143 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2144 in COMMON block to avoid warnings on 64-bit targets.
2146 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2148 * testsuite/libgomp.dg/shared-3.c: New test.
2150 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2152 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2153 * testsuite/libgomp.fortran/reduction5.f90: New test.
2155 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2157 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2159 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2160 flush loop now that __sync_synchronize has proper memory barrier.
2161 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2162 Add -ffixed-form to dg-options.
2164 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2166 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2167 from subdirectories.
2168 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2169 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2170 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2171 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2172 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2173 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2174 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2175 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2176 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2177 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2178 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2179 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2180 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2181 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2182 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2183 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2184 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2185 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2186 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2187 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2188 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2189 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2190 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2191 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2192 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2194 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2196 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2197 lang_library_path exists. Use find instead of glob to gather tests.
2198 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2200 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2202 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2203 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2204 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2205 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2206 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2207 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2208 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2209 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2210 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2211 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2212 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2213 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2214 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2216 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2218 * testsuite/libgomp.dg/vla-1.c: New test.
2220 * testsuite/libgomp.fortran/reference2.f90: New test.
2222 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2223 declaration of omp_get_thread_num.
2224 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2227 * testsuite/libgomp.fortran/reduction1.f90: New test.
2228 * testsuite/libgomp.fortran/reduction2.f90: New test.
2229 * testsuite/libgomp.fortran/reduction3.f90: New test.
2230 * testsuite/libgomp.fortran/reduction4.f90: New test.
2232 2005-10-13 Richard Henderson <rth@redhat.com>
2234 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2235 * Makefile.in: Regenerate.
2236 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2237 * libgomp.h: Include bar.h.
2238 (struct gomp_barrier): Remove.
2239 (struct gomp_team): Add barrier. Replace master_barrier with
2240 master_release. Replace threads with ordered_release.
2241 (struct gomp_thread): Replace barrier with release.
2242 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2243 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2244 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2245 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2246 (GOMP_single_copy_end): Likewise.
2247 * team.c (gomp_threads_dock): New.
2248 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2249 (gomp_thread_start): Use gomp_barrier_wait.
2250 (new_team, free_team): Update for gomp_team changes.
2251 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2252 (gomp_team_end): Use gomp_barrier_wait.
2253 (initialize_team): Update for gomp_thread changes.
2254 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2255 (gomp_work_share_end_nowait): Use atomic ops when available.
2256 * config/linux/bar.c, config/linux/bar.h: New files.
2257 * config/posix/bar.c, config/posix/bar.h: New files.
2259 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2261 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2262 * testsuite/libgomp.dg/single-2.c: New test.
2264 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2265 lang_link_flags): Unset, so that they aren't inherited from previously
2268 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2270 2005-10-12 Richard Henderson <rth@redhat.com>
2272 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2273 (libgomp_init): Use lang_test_file, lang_library_path, and
2274 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2276 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2277 (lang_test_file, lang_link_flags): New.
2278 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2280 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2281 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2282 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2283 testsuite/libgomp.c++/parallel-1.C,
2284 testsuite/libgomp.c++/reduction-1.C,
2285 testsuite/libgomp.c++/reduction-2.C,
2286 testsuite/libgomp.c++/reduction-3.C,
2287 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2288 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2289 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2290 New files, largely cribbed from the C testsuite.
2292 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2294 * testsuite/libgomp.fortran/character1.f90: New test.
2295 * testsuite/libgomp.fortran/character2.f90: New test.
2297 * testsuite/libgomp.dg/nested-1.c: New test.
2298 * testsuite/libgomp.dg/nested-2.c: New test.
2299 * testsuite/libgomp.fortran/do1.f90: New test.
2300 * testsuite/libgomp.fortran/do2.f90: New test.
2302 * testsuite/libgomp.fortran/reference1.f90: New test.
2304 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2306 * testsuite/libgomp.dg/reduction-1.c: New test.
2307 * testsuite/libgomp.dg/reduction-2.c: New test.
2308 * testsuite/libgomp.dg/reduction-3.c: New test.
2310 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2312 * testsuite/libgomp.dg/atomic-1.c: New test.
2313 * testsuite/libgomp.dg/atomic-2.c: New test.
2315 2005-10-09 Richard Henderson <rth@redhat.com>
2317 * critical.c (atomic_lock): New.
2318 (initialize_critical): Initialize it.
2319 (GOMP_atomic_start, GOMP_atomic_end): New.
2320 * libgomp.map: Export them.
2321 * libgomp_g.h: Declare them.
2323 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2325 2005-10-02 Richard Henderson <rth@redhat.com>
2327 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2328 to XCFLAGS instead of CFLAGS.
2330 2005-09-30 Richard Henderson <rth@redhat.com>
2332 * configure.ac: Determine whether -pthread or -lpthread is needed.
2333 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2334 * Makefine.in, configure: Rebuild.
2336 2005-09-28 Richard Henderson <rth@redhat.com>
2338 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2339 * testsuite/libgomp.dg/omp-single-3.c: New test.
2341 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2343 * testsuite/libgomp.dg/omp-single-2.c: New test.
2344 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2346 2005-09-27 Richard Henderson <rth@redhat.com>
2348 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2349 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2351 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2353 * testsuite/libgomp.dg/omp-loop03.c: New test.
2355 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2357 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2359 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2361 * testsuite/libgomp.dg/omp-single-1.c: New test.
2362 * testsuite/libgomp.dg/shared-1.c: Return 0.
2363 Add prototype for abort.
2364 * testsuite/libgomp.dg/shared-2.c: Likewise.
2366 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2368 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2371 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2373 * testsuite/libgomp.dg/shared-1.c: New test.
2374 * testsuite/libgomp.dg/shared-2.c: New test.
2376 2005-09-24 Richard Henderson <rth@redhat.com>
2378 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2380 2005-09-24 Richard Henderson <rth@redhat.com>
2382 * iter.c (gomp_iter_static_next): Round up when computing number
2383 of iterations. Don't bother distributing a remainder equally.
2385 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2386 Don't call srand. Zero b before testing.
2389 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2391 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2392 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2394 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2396 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2397 without !$omp end do, followed immediately by subroutine end.
2399 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2401 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2403 2005-09-22 Richard Henderson <rth@redhat.com>
2405 * critical.c (GOMP_critical_name_start): Change argument to void**.
2406 Reuse the pointer space if the mutex fits.
2407 (GOMP_critical_name_end): Likewise.
2408 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2409 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2410 (GOMP_critical_name_end): Likewise.
2411 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2412 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2414 2005-09-20 Richard Henderson <rth@redhat.com>
2416 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2417 (create_lock_lock): New.
2418 (initialize_critical): Initialize it.
2419 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2420 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2422 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2424 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2426 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2428 * testsuite/libgomp.dg/omp-loop01.c: New test.
2429 * testsuite/libgomp.dg/omp-loop02.c: New test.
2431 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2433 * configure.ac (AC_PROG_FC): Add.
2434 (USE_FORTRAN): New automake conditional.
2435 * configure: Rebuilt.
2436 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2437 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2438 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2439 Add rules to build them.
2440 * Makefile.in: Rebuilt.
2441 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2443 * libgomp.map: Add Fortran wrappers.
2444 * libgomp_f.h.in: New file.
2445 * omp_lib.h.in: New file.
2446 * omp_lib.f90.in: New file.
2447 * fortran.c: New file.
2448 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2449 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2450 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2451 libgfortran has been built.
2452 * testsuite/libgomp.fortran/fortran.exp: New file.
2453 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2454 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2455 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2456 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2457 * testsuite/libgomp.fortran/omp_hello.f: New test.
2458 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2459 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2460 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2461 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2462 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2463 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2464 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2465 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2467 2005-08-30 Richard Henderson <rth@redhat.com>
2469 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2470 function for when aliases are not usable.
2471 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2472 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2473 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2474 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2475 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2476 GOMP_loop_ordered_guided_next): Likewise.
2477 * ordered.c (GOMP_ordered_start): Likewise.
2479 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2481 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2482 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2483 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2484 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2485 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2486 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2487 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2488 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2489 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2491 2005-07-07 Eric Christopher <echristo@redhat.com>
2492 Diego Novillo <dnovillo@redhat.com>
2494 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2495 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2497 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2498 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2499 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2500 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2501 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2502 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2503 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2505 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2507 * TOPLEVEL.patch: Remove.
2509 2005-05-16 Richard Henderson <rth@redhat.com>
2511 * configure.ac: Test for clock_gettime.
2512 * config.h.in, configure: Rebuild.
2513 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2514 (omp_get_wtime): Use clock_gettime if available.
2515 (omp_get_wtick): Use clock_getres if available.
2517 2005-05-11 Richard Henderson <rth@redhat.com>
2519 * config/linux/ia64/futex.h: New file.
2520 * configure.tgt: Use it.
2522 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2524 2005-05-07 Richard Henderson <rth@redhat.com>
2526 * config/linux/powerpc/futex.h: New file.
2527 * configure.tgt: Use it.
2529 * config/linux/i486/futex.h: Merge ...
2530 * config/linux/x86_64/futex.h: ... into ...
2531 * config/linux/x86/futex.h: ... here.
2532 * configure.tgt: Update to match.
2534 2005-05-06 Richard Henderson <rth@redhat.com>
2536 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2537 * config/linux/i486/futex.h: Likewise.
2538 * config/linux/x86_64/futex.h: Likewise.
2540 * config/linux/lock.c: New file.
2541 * config/linux/omp-lock.h: New file.
2543 * critical.c, env.h: Don't include omp.h
2544 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2545 * config/posix/time.c: Likewise.
2546 * config/posix/omp-lock.h: New file.
2547 * libgomp.h: Include omp-lock.h and omp.h.
2548 * Makefile.am (nodist_include_HEADERS): New.
2550 * configure.ac (PERL): New.
2551 * mkomp_h.pl: New file.
2552 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2554 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2556 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2557 build directory. Re-add -march=i486 hack.
2559 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2560 (libgomp_link_flags): Remove.
2561 (libgomp_initialized): Remove.
2562 (libgomp_init): Don't protect from reinitialization. Copy code
2563 from libstdc++ for getting the multilib set correctly.
2565 2005-05-05 Richard Henderson <rth@redhat.com>
2567 * config/linux/alpha/futex.h: New file.
2568 * configure.tgt (alpha*-*-linux*): Use it.
2570 * config/posix/mutex.c: New file.
2571 * config/posix/sem.c: Use libgomp.h.
2573 * configure.tgt (x86_64-linux): Also test CC for -m32.
2574 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2576 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2579 * Makefile.am (SUBDIRS): New.
2580 (libgomp_la_LDFLAGS): Add -lpthread.
2581 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2582 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2584 * libgomp_g.h: New file.
2585 * libgomp.h: Split out all public declarations to libgomp_g.h.
2586 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2587 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2588 * config/linux/sem.h: Likewise.
2589 * config/posix/sem.h: Likewise.
2591 * Makefile.am (AM_LDFLAGS): New.
2592 (libgomp_version_script): Split out from ...
2593 (libgomp_la_LDFLAGS): ... here.
2594 (libgomp_version_info): New.
2595 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2596 (LIBGOMP_ENABLE): New.
2597 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2598 (LIBGOMP_ENABLE_SYMVERS): New.
2599 * configure.ac (AC_INIT): Version 1.0.
2600 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2601 (enable-linux-futex): Likewise. Rename from enable-futex.
2602 (libtool_VERSION): New.
2603 (LIBGOMP_ENABLE_SYMVERS): Use it.
2604 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2605 * Makefile.in, aclocal.m4, configure: Rebuild.
2607 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2608 (gomp_mutex_unlock_slow): Fix typo.
2609 * config/linux/sem.c: Similarly.
2610 (gomp_sem_post_slow): Fix typo.
2611 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2612 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2613 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2615 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2616 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2617 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2618 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2619 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2620 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2621 LDFLAGS. Pull enable_futex check to top-level.
2622 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2623 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2625 First attempt at real configury.
2626 * Makefile, config.h: Remove file.
2627 * Makefile.am, Makefile.in: New file.
2628 * acinclude.m4 aclocal.m4: New file.
2629 * configure.ac, configure.tgt, configure: New file.
2631 * config/posix/lock.c: Rename from sys-lock.c.
2632 * config/posix/mutex.h: Rename from sys-mutex.h.
2633 * config/posix/sem.c: Rename from sys-sem.c.
2634 * config/posix/sem.h: Rename from sys-sem.h.
2635 * config/posix/proc.c: Rename from sys-proc.c.
2636 * config/posix/time.c: Rename from sys-proc.c.
2638 * config/linux/mutex.c: New file.
2639 * config/linux/mutex.h: New file.
2640 * config/linux/sem.c: New file.
2641 * config/linux/sem.h: New file.
2642 * config/linux/i486/futex.h: New file.
2643 * config/linux/x86_64/futex.h: New file.
2645 2005-05-04 Richard Henderson <rth@redhat.com>
2647 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2648 * libgomp.h: Declare them.
2649 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2650 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2652 2005-05-04 Richard Henderson <rth@redhat.com>
2654 * libgomp-1 code drop
2656 2005-05-04 Richard Henderson <rth@redhat.com>
2658 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2659 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2660 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2661 (gomp_iter_static_next): Update.
2662 (gomp_ordered_static_next): Update.
2663 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2664 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2665 totally empty range.
2666 (gomp_loop_ordered_static_next): Refine test for calling
2667 gomp_ordered_static_next.
2668 * testsuite/ordered-1.c: Add case for more threads than iterations.
2670 * iter.c (gomp_iter_runtime_next_locked): Remove.
2671 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2672 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2673 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2674 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2675 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2676 gomp_loop_ordered_guided_next): Downcase name, make static, add
2677 an external alias with the old name.
2678 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2679 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2680 switch and call one of the above static functions.
2681 * libgomp.h: Update.
2683 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2684 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2685 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2686 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2687 GOMP_loop_ordered_guided_start): Update to match.
2688 * sections.c (GOMP_sections_start): Likewise.
2689 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2691 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2692 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2693 Use bounds check instead of modulus.
2694 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2695 (gomp_ordered_last): Don't sync with ordered_owner here.
2696 (gomp_ordered_next): Likewise.
2697 (gomp_ordered_static_loop_next): Likewise.
2698 * loop.c, libgomp.h: Update to match.
2700 * libgomp.h (GOMP_barrier): Declare.
2702 * testsuite/barrier-1.c: New file.
2703 * testsuite/critical-1.c: New file.
2704 * testsuite/ordered-2.c: New file.
2705 * testsuite/ordered-1.c: New file.
2706 * testsuite/sections-1.c: New file.
2707 * testsuite/single-1.c: New file.
2708 * testsuite/Makefile (TESTS): Add them.
2710 2005-05-04 Richard Henderson <rth@redhat.com>
2712 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2713 * loop.c (GOMP_loop_static_start): If not the startup thread,
2714 acquire the mutex to wait for initialization complete.
2715 (GOMP_loop_ordered_static_start): Likewise.
2716 (GOMP_loop_ordered_runtime_start): Likewise.
2717 (GOMP_loop_ordered_static_first): Remove.
2718 (GOMP_loop_ordered_dynamic_first): Remove.
2719 (GOMP_loop_ordered_guided_first): Remove.
2720 (GOMP_loop_ordered_runtime_first): Remove.
2721 * ordered.c (gomp_ordered_loop_first): Post to own release when
2722 we're the first thread.
2723 (gomp_ordered_loop_last): Wait on release if not owner.
2724 (gomp_ordered_loop_next): Likewise.
2725 (gomp_ordered_static_loop_init): New.
2726 (gomp_ordered_static_loop_next): Use ordered_owner.
2727 (GOMP_ordered_start): Likewise.
2728 * work.c (gomp_new_work_share): Initialize ordered_owner.
2730 2005-05-03 Richard Henderson <rth@redhat.com>
2732 * Makefile (OPT): New.
2735 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2736 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2737 * libgomp.h, libgomp.map, NOTES: Update to match.
2739 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2740 Add initialized and thr members.
2741 (gomp_thread_start): Pause when initially spawned to wait for
2742 the whole team to be created.
2743 (gomp_team_start): Release team members at the end.
2745 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2746 (f_foo_1): Use GOMP_loop_end.
2747 (f_foo_2): Use GOMP_loop_end_nowait.
2749 * testsuite/loop-2.c: New file.
2750 * testsuite/Makefile (TESTS): Add it.
2752 2005-05-03 Richard Henderson <rth@redhat.com>
2754 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2755 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2756 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2759 * testsuite/Makefile: New file.
2760 * testsuite/loop-1.c: New file.
2762 2005-05-03 Richard Henderson <rth@redhat.com>
2764 Initial implementation and checkin.