1 2010-09-23 Tobias Burnus <burnus@net-b.de>
3 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
4 Change Fortran datatype to LOGICAL.
5 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
6 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10 * configure: Regenerate.
12 2010-07-26 Jakub Jelinek <jakub@redhat.com>
14 * libgomp.texi: Add function keyword to a couple of Fortran
15 interfaces, use integer instead of int for Fortran.
17 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
19 * libgomp.texi: Fix spelling and pasto problems throughout.
20 Adjust prototypes to match code.
22 2010-07-24 Tobias Burnus <burnus@net-b.de>
24 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
25 silence -fwhole-file warning.
27 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29 * configure.tgt (*-*-solaris2.[56]*): Removed.
31 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
34 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
35 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
36 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
38 * configure: Regenerate.
39 * config.h.in: Regenerate.
41 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
42 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
43 Add libgomp_version_dep.
44 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
46 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
47 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
48 * Makefile.in: Regenerate.
50 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
51 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
52 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
53 to common block, protected by
54 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
56 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
58 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
60 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
63 * configure: Regenerate.
65 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
69 * configure: Regenerate.
70 * Makefile.in: Regenerate.
71 * testsuite/Makefile.in: Regenerate.
73 2010-04-26 Jakub Jelinek <jakub@redhat.com>
76 * testsuite/libgomp.c/pr43893.c: New test.
77 * testsuite/libgomp.c++/pr43893.C: New test.
79 2010-04-21 Jakub Jelinek <jakub@redhat.com>
82 * testsuite/libgomp.fortran/vla8.f90: New test.
84 2010-04-20 Jakub Jelinek <jakub@redhat.com>
87 * config/linux/affinity.c (gomp_init_affinity): Decrease
88 gomp_available_cpus if affinity mask confines the process to fewer
90 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
91 non-NULL, just return gomp_available_cpus.
94 * sections.c (gomp_sections_init): Initialize ws->mode.
96 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
98 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
99 not unused bar variable.
100 * configure: Regenerate.
102 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
104 * Makefile.in: Regenerate.
105 * aclocal.m4: Regenerate.
106 * testsuite/Makefile.in: Regenerate.
108 2010-03-22 Jakub Jelinek <jakub@redhat.com>
111 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
112 (initialize_env): Adjust callers.
113 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
114 when the argument is 0.
116 * testsuite/libgomp.c/pr42942.c: New test.
118 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
122 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
123 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
125 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
127 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
128 * testsuite/libgomp.c++/task-6.C: Likewise.
130 2010-01-28 Steve Ellcey <sje@cup.hp.com>
132 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
134 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
136 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
137 * configure: Regenerate.
139 2010-01-26 Jakub Jelinek <jakub@redhat.com>
142 * testsuite/libgomp.fortran/allocatable5.f90: New test.
144 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
146 * configure.ac: Test for executability of GFORTRAN.
147 * configure: Regenerate.
149 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
151 * configure: Regenerate.
153 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
156 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
158 2010-01-03 Richard Guenther <rguenther@suse.de>
160 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
162 2009-12-23 Sebastian Pop <sebpop@gmail.com>
164 * testsuite/libgomp.graphite/pr4118.c: New.
166 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
168 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
169 for darwin, protect the test with require-effective-target tls_runtime.
170 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
172 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
175 * testsuite/lib/libgomp.exp: Provide -B options to allow for
176 link spec %s substitutions for static libraries.
178 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
181 * libgomp.graphite/force-parallel-2.c: Reduce array size.
183 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
185 * Makefile.in: Regenerate.
186 * configure: Regenerate.
187 * testsuite/Makefile.in: Regenerate.
189 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
191 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
192 settings for LC_ALL and LANG.
194 2009-11-25 Jakub Jelinek <jakub@redhat.com>
197 * testsuite/libgomp.fortran/pr42162.f90: New test.
199 2009-11-13 Jakub Jelinek <jakub@redhat.com>
202 * testsuite/libgomp.c/pr42029.c: New test.
204 2009-10-26 Jakub Jelinek <jakub@redhat.com>
206 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
207 *s. Accept ld version without text in ()s.
208 * configure: Regenerated.
210 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
212 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
214 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
217 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
218 or a hyphen (happens with fortran language disabled).
219 * configure: Regenerate.
221 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
223 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
224 use sed script portable to Solaris /bin/sed for extracting ld
226 * configure: Regenerate.
228 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
230 * testsuite/libgomp.graphite/bounds.c: New test.
232 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
234 * Makefile.am (libgomp_la_LINK): New.
235 * Makefile.in: Regenerate.
237 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
239 * configure.ac (AC_PREREQ): Bump to 2.64.
241 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
243 * Makefile.am (install-html, install-pdf): Remove.
244 * Makefile.in: Regenerate.
246 * Makefile.in: Regenerate.
247 * aclocal.m4: Regenerate.
248 * config.h.in: Regenerate.
249 * configure: Regenerate.
250 * testsuite/Makefile.in: Regenerate.
252 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
254 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
255 * Makefile.in: Regenerate.
257 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
259 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
260 * Makefile.in: Regenerate.
262 2009-08-19 Tobias Burnus <burnus@net-b.de>
265 omp_lib.h.in: Fix -std=f95 errors.
268 2009-08-14 David Edelsohn <edelsohn@gnu.org>
270 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
271 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
272 * testsuite/libgomp.graphite/graphite.exp: New.
274 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
276 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
279 2009-08-04 David Daney <ddaney@caviumnetworks.com>
281 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
282 needed memory barrier semantics.
283 * config/linux/mips/mutex.h: New file.
285 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
287 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
289 2009-07-16 Joseph Myers <joseph@codesourcery.com>
291 * configure: Regenerate.
293 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
298 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
299 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
300 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
302 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
304 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
305 options when choosing a multilib.
307 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
309 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
310 ld_library_path. Use add_path. Add just find_libgcc_s to
311 ld_library_path, not every libgcc multilib directory.
312 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
313 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
314 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
316 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
318 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
320 * Makefile.am (LTLDFLAGS): Define.
322 * Makefile.in: Regenerate.
324 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
327 * testsuite/libgomp.fortran/fortran.exp: Don't link with
328 libgfortranbegin, check existence of libgfortran.a instead of
331 2009-05-20 Jakub Jelinek <jakub@redhat.com>
334 * team.c (gomp_thread_start): Destroy thr->release semaphore.
335 (gomp_free_pool_helper): Likewise.
337 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
338 Jakub Jelinek <jakub@redhat.com>
341 * testsuite/libgomp.fortran/workshare2.f90: New test.
343 2009-04-09 Nick Clifton <nickc@redhat.com>
345 * iter.c: Change copyright header to refer to version 3 of the
346 GNU General Public License with version 3.1 of the GCC Runtime
347 Library Exception and to point readers at the COPYING3 and
348 COPYING3.RUNTIME files and the FSF's license web page.
350 * barrier.c: Likewise.
351 * config/bsd/proc.c: Likewise.
352 * config/linux/affinity.c: Likewise.
353 * config/linux/alpha/futex.h: Likewise.
354 * config/linux/bar.c: Likewise.
355 * config/linux/bar.h: Likewise.
356 * config/linux/ia64/futex.h: Likewise.
357 * config/linux/ia64/mutex.h: Likewise.
358 * config/linux/lock.c: Likewise.
359 * config/linux/mips/futex.h: Likewise.
360 * config/linux/mutex.c: Likewise.
361 * config/linux/mutex.h: Likewise.
362 * config/linux/powerpc/futex.h: Likewise.
363 * config/linux/proc.c: Likewise.
364 * config/linux/ptrlock.c: Likewise.
365 * config/linux/ptrlock.h: Likewise.
366 * config/linux/s390/futex.h: Likewise.
367 * config/linux/sem.c: Likewise.
368 * config/linux/sem.h: Likewise.
369 * config/linux/sparc/futex.h: Likewise.
370 * config/linux/wait.h: Likewise.
371 * config/linux/x86/futex.h: Likewise.
372 * config/mingw32/proc.c: Likewise.
373 * config/mingw32/time.c: Likewise.
374 * config/posix/affinity.c: Likewise.
375 * config/posix/bar.c: Likewise.
376 * config/posix/bar.h: Likewise.
377 * config/posix/lock.c: Likewise.
378 * config/posix/mutex.h: Likewise.
379 * config/posix/proc.c: Likewise.
380 * config/posix/ptrlock.h: Likewise.
381 * config/posix/sem.c: Likewise.
382 * config/posix/sem.h: Likewise.
383 * config/posix/time.c: Likewise.
384 * config/posix95/lock.c: Likewise.
385 * critical.c: Likewise.
388 * fortran.c: Likewise.
389 * iter_ull.c: Likewise.
390 * libgomp.h: Likewise.
391 * libgomp_f.h.in: Likewise.
392 * libgomp_g.h: Likewise.
394 * loop_ull.c: Likewise.
395 * omp.h.in: Likewise.
396 * omp_lib.f90.in: Likewise.
397 * omp_lib.h.in: Likewise.
398 * ordered.c: Likewise.
399 * parallel.c: Likewise.
400 * sections.c: Likewise.
401 * single.c: Likewise.
406 2009-04-09 Jakub Jelinek <jakub@redhat.com>
408 * testsuite/config/default.exp: Change copyright header to refer to
409 version 3 of the GNU General Public License and to point readers
410 at the COPYING3 file and the FSF's license web page.
412 2009-04-08 Jakub Jelinek <jakub@redhat.com>
415 * libgomp.c++/pr39573.C: New test.
417 2009-04-01 Jakub Jelinek <jakub@redhat.com>
420 * testsuite/libgomp.c/pr39591-1.c: New test.
421 * testsuite/libgomp.c/pr39591-2.c: New test.
422 * testsuite/libgomp.c/pr39591-3.c: New test.
424 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
426 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
427 * testsuite/libgomp.c/atomic-6.c: Ditto.
429 2009-03-23 Jakub Jelinek <jakub@redhat.com>
432 * testsuite/libgomp.c/loop-12.c: New test.
433 * testsuite/libgomp.c/loop-11.c: New test.
434 * testsuite/libgomp.c++/loop-11.C: New test.
435 * testsuite/libgomp.c++/loop-12.C: New test.
436 * testsuite/libgomp.c++/for-8.C: New test.
438 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
440 * configure: Regenerate.
442 2009-02-11 Jakub Jelinek <jakub@redhat.com>
445 * testsuite/libgomp.c/pr39154.c: New test.
447 2009-01-30 Ian Lance Taylor <iant@google.com>
449 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
450 libgomp_ld_is_gold. Get gold version number.
451 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
452 * configure: Rebuild.
454 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
456 * testsuite/lib/libgomp.exp: Add -B option for targets that
457 use libgfortran.a%s in their specs.
459 2009-01-07 Jakub Jelinek <jakub@redhat.com>
462 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
463 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
464 HAVE_AS_SYMVER_DIRECTIVE is not defined.
465 * configure: Regenerated.
466 * config.h.in: Likewise.
468 2008-12-28 Jakub Jelinek <jakub@redhat.com>
471 * testsuite/libgomp.c/pr38650.c: New test.
472 * testsuite/libgomp.c++/pr38650.C: New test.
474 2008-12-27 Jakub Jelinek <jakub@redhat.com>
476 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
478 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
480 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
482 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
484 * configure: Regenerate.
486 2008-12-08 Jakub Jelinek <jakub@redhat.com>
489 * testsuite/libgomp.c/pr36802-1.c: New test.
490 * testsuite/libgomp.c/pr36802-2.c: New test.
491 * testsuite/libgomp.c/pr36802-3.c: New test.
493 2008-12-01 Janis Johnson <janis187@us.ibm.com>
496 * config/linux/powerpc/mutex.h: New.
498 2008-12-01 Jakub Jelinek <jakub@redhat.com>
501 * testsuite/libgomp.c++/for-7.C: New test.
504 * testsuite/libgomp.c++/for-6.C: New test.
506 2008-11-26 Janis Johnson <janis187@us.ibm.com>
509 * testsuite/lib/libgomp.exp: Include new timeout library files.
510 (libgomp_target_compile): Set timeout value from new proc.
512 2008-11-13 Steve Ellcey <sje@cup.hp.com>
515 * config/linux/ia64/mutex.h: New.
517 2008-11-04 Tobias Burnus <burnus@net-b.de>
520 * libgomp.texi (Runtime library routines, environment variables):
521 Update for OpenMP version 3.0.
523 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
524 Steve Ellcey <sje@cup.hp.com>
526 * configure: Regenerate for new libtool.
527 * Makefile.in: Ditto.
528 * testsuite/Makefile.in: Ditto.
530 2008-09-19 Jakub Jelinek <jakub@redhat.com>
531 Andreas Tobler <a.tobler@schweiz.org>
533 * config/bsd/proc.c: New file.
534 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
535 * configure.ac: Check for header <sys/sysctl.h>
536 * configure: Regenerate.
537 * config.h.in: Likewise.
539 2008-09-05 Janis Johnson <janis187@us.ibm.com>
541 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
543 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
545 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
546 * Makefile.in: Regenerated.
547 * testsuite/Makefile.in: Regenerated.
549 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
551 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
552 depend on blddir if blddir exists.
553 (libgomp_target_compile): Likewise.
554 * testsuite/libgomp.c++/c++.exp: Likewise.
555 * testsuite/libgomp.fortran/fortran.exp: Likewise.
557 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
559 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
560 Do not list GPL as Invariant Section.
562 2008-07-28 Ilie Garbacea <ilie@mips.com>
563 Chao-ying Fu <fu@mips.com>
565 * configure.tgt: Enable futex for MIPS.
566 * config/linux/mips/futex.h: New file.
568 2008-07-16 Jakub Jelinek <jakub@redhat.com>
570 * team.c (gomp_team_end): Free team immediately if it has
573 2008-07-08 David Edelsohn <edelsohn@gnu.org>
575 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
576 * testsuite/libgomp.fortran/fortran.exp: Same.
577 * testsuite/libgomp.c/c.exp: Same.
578 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
579 directory to library path first.
581 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
583 * env.c (parse_stacksize): Add cast to avoid warning.
584 (parse_spincount): Likewise.
586 2008-06-27 Jakub Jelinek <jakub@redhat.com>
588 * testsuite/libgomp.c/loop-10.c: New test.
589 * libgomp.c/loop-3.c (main): Add lastprivate clause.
590 * libgomp.c++/loop-6.C (main): Likewise.
593 * testsuite/libgomp.c/debug-1.c: New test.
595 2008-06-19 Jakub Jelinek <jakub@redhat.com>
597 * testsuite/libgomp.c/nqueens-1.c: New test.
600 * testsuite/libgomp.c++/task-7.C: New function.
602 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
604 * configure: Regenerate.
606 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
608 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
609 mutex when HAVE_SYNC_BUILTINS isn't defined.
611 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
613 * libgomp.texi (omp_test_lock): Fix typo.
615 2008-06-12 Tobias Burnus <burnus@net-b.de>
617 * omp_lib.f90.in: Add "implicit none".
619 2008-06-12 Jakub Jelinek <jakub@redhat.com>
622 * testsuite/libgomp.c/reduction-5.c: New test.
624 2008-06-11 Jakub Jelinek <jakub@redhat.com>
626 * libgomp.h (struct gomp_task): Add in_tied_task field.
627 * task.c (gomp_init_task): Initialize it.
628 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
629 unconditionally. Don't call gomp_team_barrier_wake if
630 current task is implicit or if(0) from implicit and number of
631 running tasks is equal to nthreads - 1.
634 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
635 omp_get_team_size_8): Fix pastos.
638 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
639 * configure: Regenerated.
640 * config.h.in: Regenerated.
641 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
644 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
647 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
648 (GOMP_loop_ull_dynamic_start): Likewise.
649 (GOMP_loop_ull_guided_start): Likewise.
650 (GOMP_loop_ull_ordered_static_start): Likewise.
651 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
652 (GOMP_loop_ull_ordered_guided_start): Likewise.
654 2008-06-06 Jakub Jelinek <jakub@redhat.com>
655 Richard Henderson <rth@redhat.com>
656 Ulrich Drepper <drepper@redhat.com>
657 Jakob Blomer <jakob.blomer@ira.uka.de>
659 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
660 Substitute also OMP_*LOCK_25*.
661 * configure: Regenerated.
662 * config.h.in: Regenerated.
663 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
664 ptrlock.c and task.c.
665 * Makefile.in: Regenerated.
666 * testsuite/Makefile.in: Regenerated.
668 * loop_ull.c: New file.
669 * iter_ull.c: New file.
670 * libgomp.h: Include ptrlock.h.
671 (enum gomp_task_kind): New type.
672 (struct gomp_team): Add task_lock, task_queue, task_count,
673 task_running_count, single_count fields. Add
674 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
675 Remove work_share_lock, generation_mask,
676 oldest_live_gen, num_live_gen and init_work_shares fields, add
677 work work_share_list_alloc, work_share_list_free and work_share_chunk
678 fields. Change work_shares from pointer to pointers into an array.
679 Change ordered_release field into gomp_sem_t ** from flexible array
680 member. Add implicit_task and initial_work_shares fields.
681 Move close to the end of the struct.
682 (struct gomp_team_state): Add single_count, last_work_share,
683 active_level and level fields, remove work_share_generation.
684 (gomp_barrier_handle_tasks): New prototype.
685 (gomp_finish_task): New inline function.
686 (struct gomp_work_share): Move chunk_size, end, incr into
687 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
688 next_ll fields. Reshuffle fields. Add next_alloc,
689 next_ws, next_free and inline_ordered_team_ids fields, change
690 ordered_team_ids into pointer from flexible array member.
691 Add mode field. Put lock and next into a different cache line
692 from most of the write-once fields.
693 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
694 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
695 gomp_iter_ull_guided_next): New prototypes.
696 (gomp_new_icv): New prototype.
697 (struct gomp_thread): Add thread_pool and task fields.
698 (struct gomp_thread_pool): New type.
699 (gomp_new_team): New prototype.
700 (gomp_team_start): Change type of last argument.
701 (gomp_new_work_share): Removed.
702 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
703 (gomp_work_share_init_done): New static inline.
704 (gomp_throttled_spin_count_var, gomp_available_cpus,
705 gomp_managed_threads): New extern decls.
706 (gomp_init_task): New prototype.
707 (gomp_spin_count_var): New extern var decl.
708 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
709 or no alias support, or if not PIC.
710 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
711 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
712 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
713 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
714 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
715 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
716 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
717 gomp_test_nest_lock_25): New prototypes.
718 (omp_lock_symver, strong_alias): Define.
719 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
721 (gomp_end_task): New.
722 (struct gomp_task_icv, gomp_global_icv): New.
723 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
724 (struct gomp_task): New.
725 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
726 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
728 (gomp_schedule_type): Reorder enum to match
730 * team.c (struct gomp_thread_start_data): Add thread_pool and task
732 (gomp_thread_start): Add gomp_team_barrier_wait call.
733 For non-nested case remove clearing of docked thread thr fields.
734 Use pool fields instead of global gomp_* variables. Use
735 gomp_barrier_wait_last when needed. Initialize ts.active_level.
736 Create tasks for each member thread.
737 (free_team): Only destroy team barrier, task_lock here and free it.
738 (gomp_free_thread): Free last_team if non-NULL.
739 (gomp_team_end): Call gomp_team_barrier_wait instead of
740 gomp_barrier_wait. For nested case call one extra
741 gomp_barrier_wait. Move here some destruction from free_team.
742 Call free_team on pool->last_team if any, rather than freeing
743 current team. Destroy work_share_list_free_lock ifndef
745 (gomp_new_icv): New function.
746 (gomp_threads, gomp_threads_size, gomp_threads_used,
747 gomp_threads_dock): Removed.
748 (gomp_thread_destructor): New variable.
749 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
751 (gomp_team_start): Create new pool if current thread doesn't have
752 one. Use pool fields instead of global gomp_* variables.
753 Initialize thread_pool field for new threads. Clear single_count.
754 Change last argument from ws to team, don't create
755 new team, set ts.work_share to &team->work_shares[0] and clear
756 ts.last_work_share. Don't clear ts.work_share_generation.
757 If number of threads changed, adjust atomically gomp_managed_threads.
758 Use gomp_init_task instead of gomp_new_task,
759 set thr->task to the corresponding implicit_task array entry.
760 Create tasks for each member thread. Initialize ts.level.
761 (initialize_team): Call pthread_key_create on
762 gomp_thread_destructor.
763 (team_destructor): New function.
765 (gomp_new_team): New function.
766 (free_team): Free gomp_work_share blocks chained through next_alloc,
767 instead of freeing work_shares and destroying work_share_lock.
768 (gomp_team_end): Call gomp_fini_work_share. If number of threads
769 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
770 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
771 of gomp_barrier_wait.
772 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
773 instead of gomp_barrier_wait. Call gomp_work_share_init_done
774 if gomp_work_share_start returned true. Don't unlock ws->lock.
775 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
776 of gomp_barrier_wait.
777 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
778 gomp_work_share_init_done if gomp_work_share_start returned true.
779 Don't unlock ws->lock.
780 * work.c: Include stddef.h.
781 (free_work_share): Use work_share_list_free_lock instead
782 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
783 Call gomp_fini_work_share and then either free ws if orphaned, or
784 put it into work_share_list_free list of the current team.
785 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
787 (gomp_work_share_start, gomp_work_share_end,
788 gomp_work_share_end_nowait): Rewritten.
789 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
790 (openmp_version): Set to 200805.
791 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
792 omp_sched_guided, omp_sched_auto): New parameters.
793 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
794 omp_set_max_active_levels, omp_get_max_active_levels,
795 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
796 omp_get_active_level): New interfaces.
797 * omp_lib.h.in (openmp_version): Set to 200805.
798 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
799 omp_sched_guided, omp_sched_auto): New parameters.
800 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
801 omp_set_max_active_levels, omp_get_max_active_levels,
802 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
803 omp_get_active_level): New externals.
804 * loop.c: Include limits.h.
805 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
807 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
808 Likewise. Use gomp_icv.
809 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
811 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
812 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
813 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
814 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
815 don't unlock ws->lock, otherwise lock it.
816 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
817 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
818 (gomp_parallel_loop_start): Call gomp_new_team instead of
819 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
820 Adjust gomp_team_start caller. Pass 0 as second argument to
821 gomp_resolve_num_threads.
822 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
823 If adding ws->chunk_size nthreads + 1 times after end won't
824 overflow, set ws->mode to 1.
825 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
826 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
827 GOMP_loop_ull_ordered_static_start,
828 GOMP_loop_ull_ordered_dynamic_start,
829 GOMP_loop_ull_ordered_guided_start,
830 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
831 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
832 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
833 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
834 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
836 * libgomp.map: Export lock routines also @@OMP_2.0.
837 (GOMP_loop_ordered_dynamic_first,
838 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
839 GOMP_loop_ordered_static_first): Remove.
840 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
841 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
842 GOMP_loop_ull_ordered_dynamic_next,
843 GOMP_loop_ull_ordered_dynamic_start,
844 GOMP_loop_ull_ordered_guided_next,
845 GOMP_loop_ull_ordered_guided_start,
846 GOMP_loop_ull_ordered_runtime_next,
847 GOMP_loop_ull_ordered_runtime_start,
848 GOMP_loop_ull_ordered_static_next,
849 GOMP_loop_ull_ordered_static_start,
850 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
851 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
852 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
853 (omp_set_schedule, omp_get_schedule,
854 omp_get_thread_limit, omp_set_max_active_levels,
855 omp_get_max_active_levels, omp_get_level,
856 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
857 omp_set_schedule_, omp_set_schedule_8_,
858 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
859 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
860 omp_get_max_active_levels_, omp_get_level_,
861 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
862 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
863 New exports @@OMP_3.0.
864 * omp.h.in (omp_sched_t): New type.
865 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
866 omp_set_max_active_levels, omp_get_max_active_levels,
867 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
868 omp_get_active_level): New prototypes.
869 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
870 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
871 gomp_thread_limit_var, gomp_remaining_threads_count,
872 gomp_remaining_threads_lock): New variables.
873 (parse_spincount): New function.
874 (initialize_env): Call gomp_init_num_threads unconditionally.
875 Initialize gomp_available_cpus. Call parse_spincount,
876 initialize gomp_{,throttled_}spin_count_var
877 depending on presence and value of OMP_WAIT_POLICY and
878 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
879 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
880 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
881 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
882 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
883 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
884 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
885 (gomp_global_icv): New.
886 (parse_schedule): Use it. Parse "auto".
887 (omp_set_num_threads): Use gomp_icv.
888 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
890 (omp_get_max_threads): Move from parallel.c.
891 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
892 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
894 (parse_stacksize, parse_wait_policy): New functions.
895 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
896 both wrappers for compatibility and new locks.
897 (omp_set_schedule, omp_get_schedule,
898 omp_get_thread_limit, omp_set_max_active_levels,
899 omp_get_max_active_levels, omp_get_level,
900 omp_get_ancestor_thread_num, omp_get_team_size,
901 omp_get_active_level): New ialias_redirect.
902 (omp_set_schedule_, omp_set_schedule_8_,
903 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
904 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
905 omp_get_max_active_levels_, omp_get_level_,
906 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
907 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
909 * parallel.c: Include limits.h.
910 (gomp_resolve_num_threads): Add count argument. Rewritten.
911 (GOMP_parallel_start): Call gomp_new_team and pass that as last
912 argument to gomp_team_start. Pass 0 as second argument to
913 gomp_resolve_num_threads.
914 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
915 if gomp_thread_limit_var != ULONG_MAX.
916 (omp_in_parallel): Implement using ts.active_level.
917 (omp_get_max_threads): Move to env.c.
918 (omp_get_level, omp_get_ancestor_thread_num,
919 omp_get_team_size, omp_get_active_level): New functions,
921 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
922 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
923 gomp_iter_dynamic_next instead of the _locked variant and don't take
924 lock around it, otherwise acquire it before calling
925 gomp_iter_dynamic_next_locked.
926 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
927 gomp_iter_dynamic_next instead of the _locked variant and don't take
929 (GOMP_parallel_sections_start): Call gomp_new_team instead of
930 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
931 Adjust gomp_team_start caller. Pass count as second argument to
932 gomp_resolve_num_threads, don't adjust num_threads after the call.
934 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
935 ws->chunk_size by incr.
936 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
938 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
940 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
941 (omp_check_defines): Check even the compat defines.
942 * config/linux/ptrlock.c: New file.
943 * config/linux/ptrlock.h: New file.
944 * config/linux/wait.h: New file.
945 * config/posix/ptrlock.c: New file.
946 * config/posix/ptrlock.h: New file.
947 * config/linux/bar.h (gomp_team_barrier_wait,
948 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
949 (gomp_team_barrier_set_task_pending,
950 gomp_team_barrier_clear_task_pending,
951 gomp_team_barrier_set_waiting_for_tasks,
952 gomp_team_barrier_waiting_for_tasks,
953 gomp_team_barrier_done): New inlines.
954 (gomp_barrier_t): Rewritten.
955 (gomp_barrier_state_t): New typedef.
956 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
957 gomp_barrier_wait_start): Rewritten.
958 (gomp_barrier_wait_end): Change second argument to
959 gomp_barrier_state_t.
960 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
962 * config/linux/bar.c: Include wait.h instead of libgomp.h and
964 (gomp_barrier_wait_end): Rewritten.
965 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
966 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
967 * config/posix/bar.h (gomp_barrier_t): Add generation field.
968 (gomp_barrier_state_t): New typedef.
969 (gomp_team_barrier_wait,
970 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
971 (gomp_barrier_wait_start): Or all but low 2 bits from generation
972 into the return value. Return gomp_barrier_state_t.
973 (gomp_team_barrier_set_task_pending,
974 gomp_team_barrier_clear_task_pending,
975 gomp_team_barrier_set_waiting_for_tasks,
976 gomp_team_barrier_waiting_for_tasks,
977 gomp_team_barrier_done): New inlines.
978 (gomp_barrier_wait_end): Change second argument to
979 gomp_barrier_state_t.
980 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
982 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
983 (gomp_barrier_wait_end): Change second argument to
984 gomp_barrier_state_t.
985 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
986 gomp_team_barrier_wake): New functions.
987 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
989 (gomp_futex_wake, gomp_futex_wait): New variables.
990 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
991 * config/linux/lock.c: Rewrite to make locks task owned,
992 for backwards compatibility provide the old entrypoints
993 if symbol versioning. Include wait.h instead of libgomp.h and
995 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
996 * config/posix95/lock.c: Rewrite to make locks task owned,
997 for backwards compatibility provide the old entrypoints
998 if symbol versioning.
999 * config/posix/lock.c: Rewrite to make locks task owned,
1000 for backwards compatibility provide the old entrypoints
1001 if symbol versioning.
1002 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1003 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1004 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1005 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1006 (sys_futex0): Return error code.
1007 (futex_wake, futex_wait): If ENOSYS was returned, clear
1008 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1009 (cpu_relax, atomic_write_barrier): New static inlines.
1010 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1011 (futex_wake, futex_wait): If ENOSYS was returned, clear
1012 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1013 (cpu_relax, atomic_write_barrier): New static inlines.
1014 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1015 (sys_futex0): Return error code.
1016 (futex_wake, futex_wait): If ENOSYS was returned, clear
1017 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1018 (cpu_relax, atomic_write_barrier): New static inlines.
1019 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1020 (sys_futex0): Return error code.
1021 (futex_wake, futex_wait): If ENOSYS was returned, clear
1022 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1023 (cpu_relax, atomic_write_barrier): New static inlines.
1024 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1025 (sys_futex0): Return error code.
1026 (futex_wake, futex_wait): If ENOSYS was returned, clear
1027 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1028 (cpu_relax, atomic_write_barrier): New static inlines.
1029 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1030 (sys_futex0): Return error code.
1031 (futex_wake, futex_wait): If ENOSYS was returned, clear
1032 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1033 (cpu_relax, atomic_write_barrier): New static inlines.
1034 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1036 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1037 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1038 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1040 (omp_nest_lock_t): Change owner into void *, add lock field.
1041 * config/posix95/omp-lock.h: Include semaphore.h.
1042 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1043 (omp_lock_t): Use sem_t instead of mutex if semaphores
1045 (omp_nest_lock_t): Likewise. Change owner to void *.
1046 * config/posix/omp-lock.h: Include semaphore.h.
1047 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1048 (omp_lock_t): Use sem_t instead of mutex if semaphores
1050 (omp_nest_lock_t): Likewise. Add owner field.
1052 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1054 * testsuite/libgomp.c/collapse-1.c: New test.
1055 * testsuite/libgomp.c/collapse-2.c: New test.
1056 * testsuite/libgomp.c/collapse-3.c: New test.
1057 * testsuite/libgomp.c/icv-1.c: New test.
1058 * testsuite/libgomp.c/icv-2.c: New test.
1059 * testsuite/libgomp.c/lib-2.c: New test.
1060 * testsuite/libgomp.c/lock-1.c: New test.
1061 * testsuite/libgomp.c/lock-2.c: New test.
1062 * testsuite/libgomp.c/lock-3.c: New test.
1063 * testsuite/libgomp.c/loop-4.c: New test.
1064 * testsuite/libgomp.c/loop-5.c: New test.
1065 * testsuite/libgomp.c/loop-6.c: New test.
1066 * testsuite/libgomp.c/loop-7.c: New test.
1067 * testsuite/libgomp.c/loop-8.c: New test.
1068 * testsuite/libgomp.c/loop-9.c: New test.
1069 * testsuite/libgomp.c/nested-3.c: New test.
1070 * testsuite/libgomp.c/nestedfn-6.c: New test.
1071 * testsuite/libgomp.c/sort-1.c: New test.
1072 * testsuite/libgomp.c/task-1.c: New test.
1073 * testsuite/libgomp.c/task-2.c: New test.
1074 * testsuite/libgomp.c/task-3.c: New test.
1075 * testsuite/libgomp.c/task-4.c: New test.
1076 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1077 to C++ testsuite default compiler options.
1078 * testsuite/libgomp.c++/collapse-1.C: New test.
1079 * testsuite/libgomp.c++/collapse-2.C: New test.
1080 * testsuite/libgomp.c++/ctor-10.C: New test.
1081 * testsuite/libgomp.c++/for-1.C: New test.
1082 * testsuite/libgomp.c++/for-2.C: New test.
1083 * testsuite/libgomp.c++/for-3.C: New test.
1084 * testsuite/libgomp.c++/for-4.C: New test.
1085 * testsuite/libgomp.c++/for-5.C: New test.
1086 * testsuite/libgomp.c++/loop-8.C: New test.
1087 * testsuite/libgomp.c++/loop-9.C: New test.
1088 * testsuite/libgomp.c++/loop-10.C: New test.
1089 * testsuite/libgomp.c++/task-1.C: New test.
1090 * testsuite/libgomp.c++/task-2.C: New test.
1091 * testsuite/libgomp.c++/task-3.C: New test.
1092 * testsuite/libgomp.c++/task-4.C: New test.
1093 * testsuite/libgomp.c++/task-5.C: New test.
1094 * testsuite/libgomp.c++/task-6.C: New test.
1095 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1096 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1097 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1098 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1099 * testsuite/libgomp.fortran/collapse1.f90: New test.
1100 * testsuite/libgomp.fortran/collapse2.f90: New test.
1101 * testsuite/libgomp.fortran/collapse3.f90: New test.
1102 * testsuite/libgomp.fortran/collapse4.f90: New test.
1103 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1104 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1105 * testsuite/libgomp.fortran/lib4.f90: New test.
1106 * testsuite/libgomp.fortran/lock-1.f90: New test.
1107 * testsuite/libgomp.fortran/lock-2.f90: New test.
1108 * testsuite/libgomp.fortran/nested1.f90: New test.
1109 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1110 * testsuite/libgomp.fortran/strassen.f90: New test.
1111 * testsuite/libgomp.fortran/tabs1.f90: New test.
1112 * testsuite/libgomp.fortran/tabs2.f: New test.
1113 * testsuite/libgomp.fortran/task1.f90: New test.
1114 * testsuite/libgomp.fortran/task2.f90: New test.
1115 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1116 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1117 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1118 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1119 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1121 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1124 * testsuite/libgomp.c++/ctor-11.C: New test.
1125 * testsuite/libgomp.c++/ctor-12.C: New test.
1127 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1129 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1131 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1134 * testsuite/libgomp.c/atomic-5.c: New test.
1135 * testsuite/libgomp.c/atomic-6.c: New test.
1136 * testsuite/libgomp.c/autopar-1.c: New test.
1138 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1140 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1141 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1142 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1143 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1144 * configure: Regenerate.
1145 * Makefile.in, testsuite/Makefile.in: Likewise.
1147 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1150 * aclocal.m4: Regenerate.
1151 * configure: Regenerate.
1153 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1156 * testsuite/libgomp.c/atomic-4.c: New test.
1159 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1160 (gomp_iter_guided_next): Likewise.
1161 * testsuite/libgomp.c/pr35625.c: New test.
1163 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1165 * aclocal.m4: Regenerate.
1166 * configure: Likewise.
1167 * Makefile.in: Likewise.
1168 * testsuite/Makefile.in: Likewise.
1170 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1173 * testsuite/libgomp.c++/pr35185.C: New test.
1175 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1178 * testsuite/libgomp.c/pr35549.c: New test.
1180 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1182 * testsuite/libgomp.c/atomic-3.c: New test.
1184 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1187 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1190 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1193 * configure.ac: Add ACX_HEADER_STRING.
1194 * env.c: Include strings.h.
1195 * aclocal.m4: Regenerate.
1196 * config.h.in: Regenerate.
1197 * configure: Regenerate.
1198 * Makefile.in: Regenerate.
1199 * testsuite/Makefile.in: Regenerate.
1201 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1204 * testsuite/libgomp.c/pr35196.c: New test.
1207 * testsuite/libgomp.fortran/pr35130.f90: New test.
1208 * testsuite/libgomp.c/pr35130.c: New test.
1210 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1213 * testsuite/libgomp.c/pr33880.c: New test.
1214 * testsuite/libgomp.fortran/pr33880.f90: New test.
1216 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1218 * configure: Regenerate.
1220 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1222 * configure.ac: Move futex checking into ../config/futex.m4.
1223 * configure: Rebuilt.
1224 * aclocal.m4: Rebuilt.
1225 * Makefile.in: Rebuilt.
1227 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1228 2007-10-15 ../config/tls.m4 change.
1230 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1233 * testsuite/libgomp.c/pr34513.c: New test.
1234 * testsuite/libgomp.c++/pr34513.C: New test.
1236 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1239 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1241 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1243 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1245 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1247 * testsuite/libgomp.c/private-1.c: New test.
1249 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1250 Paolo Bonzini <bonzini@gnu.org>
1252 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1253 instead of 'VPATH ='.
1254 * Makefile.in: Regenerate.
1256 2007-11-23 Matthias Klose <doko@ubuntu.com>
1258 * configure.ac: Adjust makeinfo version check.
1259 * configure: Regenerate.
1261 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1264 * testsuite/libgomp.fortran/pr34020.f90: New test.
1266 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1269 * testsuite/libgomp.c++/atomic-1.C: New test.
1271 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1274 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1275 Make x and y integers rather than (implicit) reals. Add private (j)
1276 clause to the last omp parallel.
1278 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1280 * configure: Regenerate following changes to ../config/tls.m4.
1282 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1284 * testsuite/libgomp.fortran/stack.f90: New test.
1286 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1288 * config/mingw32/proc.c: New file.
1290 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1292 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1293 (main): Use __get_cpuid to get i386 target fetaures.
1294 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1295 (main): Use __get_cpuid to get x86_64 target fetaures.
1297 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1300 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1301 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1303 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1306 * testsuite/libgomp.fortran/pr32550.f90: New test.
1307 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1309 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1311 * aclocal.m4: Regenerated.
1313 2007-07-05 Tobias Burnus <burnus@net-b.de>
1316 * testsuite/libgomp.fortran/pr32359.f90: New.
1318 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1321 * sections.c (GOMP_parallel_sections_start): Only decrease
1322 number of threads to COUNT if dyn_var is true.
1323 * testsuite/libgomp.c/pr32468.c: New test.
1325 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1328 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1330 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1333 * testsuite/libgomp.c/pr32362-1.c: New test.
1334 * testsuite/libgomp.c/pr32362-2.c: New test.
1335 * testsuite/libgomp.c/pr32362-3.c: New test.
1337 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1339 * team.c (gomp_team_start): Fix setting up thread_attr
1342 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1344 * configure: Regenerate.
1346 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1348 * Makefile.in: Regenerate.
1349 * configure: Regenerate.
1350 * aclocal.m4: Regenerate.
1351 * testsuite/Makefile.in: Regenerate.
1353 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1355 * config/linux/proc.c: New file.
1358 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1360 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1362 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1364 2007-04-16 Matthias Klose <doko@debian.org>
1366 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1367 flags if not building with -m64.
1368 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1369 flag for i?86-*-* targets, if current target matches -m64.
1371 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1373 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1374 * Makefile.in: Regenerate.
1376 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1379 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1381 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1383 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1385 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1387 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1388 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1389 (parse_affinity): New function.
1390 (initialize_env): Call it and gomp_init_affinity.
1391 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1392 create new pthread_attr_t and call gomp_init_thread_affinity
1393 on it for each thread before passing the attribute to pthread_create.
1394 * config/linux/affinity.c: New file.
1395 * config/posix/affinity.c: New file.
1396 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1397 * configure: Rebuilt.
1398 * config.h.in: Rebuilt.
1399 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1400 * Makefile.in: Rebuilt.
1402 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1404 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1406 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1407 and use it if found.
1409 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1411 * testsuite/config/default.exp: New file.
1412 * testsuite/lib/libgomp.exp: New file.
1413 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1414 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1415 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1416 (libgomp_load): Remove.
1417 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1418 always_ld_library_path, not ld_library_path. Set additional_flags
1419 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1420 (target_compile): Do not call libgomp_init. Append lang_library_path
1421 and lang_link_flags to options.
1422 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1423 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1425 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1426 always_ld_library_path. Set LD_LIBRARY_PATH here.
1427 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1428 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1429 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1431 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1432 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1433 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1434 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1435 * testsuite/libgomp.c/atomic-10.c: Ditto.
1437 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1439 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1440 dg-final cleanup-modules line.
1441 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1442 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1443 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1444 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1445 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1446 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1447 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1449 2007-03-18 Andreas Schwab <schwab@suse.de>
1451 * acinclude.m4: Adjust regular expression for ld version
1453 * configure: Regenerate.
1455 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1457 * Makefile.am: Add install-pdf target as copied from
1458 automake v1.10 rules.
1459 * Makefile.in: Regenerate
1461 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1464 * configure: Regenerate.
1467 * testsuite/libgomp.c++/pr30703.C: New test.
1469 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1472 2006-07-05 Eric Christopher <echristo@apple.com>
1473 * configure.ac: Depend addition of -pthread on host OS.
1474 * configure: Regenerate.
1476 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1478 * libgomp.texi: Fix spacing after abbreviations.
1480 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1483 * configure.ac: Add check for makeinfo
1484 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1485 if an appropiate version of makeinfo is found.
1486 * aclocal.m4: Regenerated.
1487 * configure: Regenerated.
1488 * Makefile.in: Regenerated.
1489 * testsuite/Makefile.in: Regenerated.
1491 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1494 * libgomp.texi: More about implementation-dependent settings.
1496 2007-01-26 Tobias Burnus <burnus@net-b.de>
1498 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1500 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1503 * testsuite/libgomp.c/pr30494.c: New test.
1505 2007-01-15 Tom Tromey <tromey@redhat.com>
1507 * configure: Rebuilt.
1508 * configure.ac: Fixed comment.
1510 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1512 * libgomp.texi: Document implementation specific default values of
1513 environment variables.
1515 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1518 * libgomp.texi: New file.
1519 * configure.ac: Add --enable-generated-files-in-srcdir option.
1520 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1522 * Makefile.in: Regenerated.
1523 * config.h.in: Regenerated.
1524 * testsuite/Makefile.in: Regenerated.
1527 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1530 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1532 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1534 * configure: Regenerate.
1536 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1539 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1540 start if there shouldn't be any loop iterations.
1541 (gomp_loop_ordered_static_start): Remove start == end test.
1542 * testsuite/libgomp.c/pr29947-1.c: New test.
1543 * testsuite/libgomp.c/pr29947-2.c: New test.
1545 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1547 * configure.tgt: Force initial-exec TLS model on Linux only.
1549 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1551 * configure: Regenerated.
1553 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1555 * env.c (parse_schedule): Reject out of range values.
1556 (parse_unsigned_long): Reject out of range, negative or zero values.
1558 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1561 * testsuite/libgomp.fortran/pr29629.f90: New test.
1563 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1566 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1567 * config/posix95: New directory.
1568 * config/posix95/omp-lock.h: New file.
1569 * config/posix95/lock.c: Likewise.
1571 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1573 * aclocal.m4: Regenerate.
1574 * configure: Regenerate.
1576 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1578 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1581 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1583 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1585 * configure: Regenerate.
1586 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1588 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1592 * testsuite/libgomp.c/nestedfn-4.c: New test.
1593 * testsuite/libgomp.c/nestedfn-5.c: New test.
1594 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1597 * testsuite/libgomp.fortran/condinc1.f: New test.
1598 * testsuite/libgomp.fortran/condinc2.f: New test.
1599 * testsuite/libgomp.fortran/condinc3.f90: New test.
1600 * testsuite/libgomp.fortran/condinc4.f90: New test.
1601 * testsuite/libgomp.fortran/condinc1.inc: New file.
1603 2006-09-18 Tom Tromey <tromey@redhat.com>
1605 * configure: Rebuilt.
1607 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1610 PR preprocessor/14634
1611 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1613 * configure: Regenerate.
1615 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1617 * testsuite/libgomp.fortran/reduction3.f90: Change
1618 -2147483648 to -huge(i)-1 to avoid overflow.
1619 * testsuite/libgomp.fortran/reduction4.f90: Change
1620 Z'ffffffff' to not(0) to avoid overflow.
1622 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1625 * Makefile.am (libsubincludedir): New.
1626 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1627 * Makefile.in: Regenerate.
1629 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1632 * env.c: Include ctype.h.
1633 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1634 leading and/or trailing whitespace and compare strings case
1637 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1640 * testsuite/libgomp.fortran/pr28390.f: New test.
1642 2006-07-05 Eric Christopher <echristo@apple.com>
1644 * configure.ac: Depend addition of -pthread on host OS.
1645 * configure: Regenerate.
1647 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1649 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1650 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1653 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1657 * configure.ac: If neither --enable-linux-futex nor
1658 --disable-linux-futex is passed, determine the default by checking
1659 for compiling and/or running against NPTL. With --enable-linux-futex,
1660 check if SYS_gettid and SYS_futex are defined.
1661 * configure: Rebuilt.
1663 2006-06-14 Richard Henderson <rth@redhat.com>
1666 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1667 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1669 2006-06-09 Richard Henderson <rth@redhat.com>
1671 * env.c (gomp_nthreads_var): Change to unsigned long.
1672 (gomp_run_sched_chunk): Likewise.
1673 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1674 (initialize_env): Initialize gomp_thread_attr.
1675 * libgomp.h (gomp_nthreads_var): Update decl.
1676 (gomp_run_sched_chunk): Likewise.
1677 (gomp_thread_attr): Declare.
1678 * team.c (gomp_thread_attr): Export.
1679 (initialize_team): Don't initialize it.
1681 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1684 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1685 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1687 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1689 * config/mingw32/time.c: New file.
1690 * configure.tgt: Use it.
1692 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1694 * Makefile.am: Add install-html target. Add install-html to .PHONY
1695 * Makefile.in: Regenerate.
1697 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1700 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1701 * testsuite/libgomp.c/critical-1.c: Likewise.
1702 * testsuite/libgomp.c/loop-1.c: Likewise.
1703 * testsuite/libgomp.c/loop-2.c: Likewise.
1704 * testsuite/libgomp.c/single-1.c: Likewise.
1705 * testsuite/libgomp.c/ordered-1.c: Likewise.
1706 * testsuite/libgomp.c/ordered-2.c: Likewise.
1708 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1711 * libgomp.fortran/pr27416-1.f90: New test.
1713 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1716 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1717 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1719 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1722 * testsuite/libgomp.c/pr26943-1.c: New test.
1723 * testsuite/libgomp.c/pr26943-2.c: New test.
1724 * testsuite/libgomp.c/pr26943-3.c: New test.
1725 * testsuite/libgomp.c/pr26943-4.c: New test.
1726 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1727 * testsuite/libgomp.c++/pr26943.C: New test.
1729 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1732 * testsuite/libgomp.c++/pr27337.C: New test.
1734 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1737 * testsuite/libgomp.c/pr26171.c: New test.
1739 2006-04-25 Richard Henderson <rth@redhat.com>
1742 * configure.ac: Use GCC_CHECK_TLS.
1743 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1744 * Makefile.in, aclocal.m4, configure: Regenerate.
1746 2006-04-10 Matthias Klose <doko@debian.org>
1748 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1749 directory names containing underscores.
1751 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1754 * testsuite/libgomp.c++/pr26691.C: New test.
1756 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1758 * testsuite/libgomp.fortran/retval2.f90: New test.
1760 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1762 * testsuite/libgomp.c++: New directory.
1764 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1766 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1767 * config/posix/sem.c: Implement the above.
1769 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1771 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1772 define HAVE_BROKEN_POSIX_SEMAPHORES.
1773 * configure: Rebuilt.
1774 * config.h.in: Rebuilt.
1776 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1779 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1780 for the other pthread check.
1781 * configure: Regenerate.
1782 * config.h.in: Regenerate.
1784 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1788 * Makefile.am (fincludedir): New variable.
1789 (nodist_include_HEADERS): Remove Fortran files.
1790 (nodist_finclude_HEADERS): New variable.
1791 * Makefile.in: Regenerated.
1793 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1795 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1796 Remove tests for returning assumed character length arrays.
1798 2006-02-12 Roger Sayle <roger@eyesopen.com>
1799 John David Anglin <dave@hiauly1.hia.nrc.ca>
1802 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1804 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1806 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1808 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1810 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1811 part of LD_LIBRARY_PATH manually.
1813 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1816 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1819 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1822 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1823 * configure.ac (PERL): Don't set.
1824 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1825 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1826 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1827 * omp.h.in: Wrap the new configure substitutions with @ characters.
1828 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1829 * aclocal.m4, configure, Makefile.in: Regenerate.
1830 * mkomp_h.pl: Delete.
1832 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1835 * configure.ac: Use GCC_HEADER_STDINT.
1836 * libgomp.h: Include gstdint.h.
1837 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1838 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1840 2006-01-24 Richard Henderson <rth@redhat.com>
1843 * configure.ac: Add AM_MAINTAINER_MODE.
1844 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1846 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1848 * Makefile.in: Regenerate.
1849 * testsuite/Makefile.in: Regenerate.
1850 * aclocal.m4: Regenerate.
1852 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1854 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1856 * configure.ac: Add check for loadavg.h.
1857 (link_gomp): Adjust comment.
1858 * configure: Regenerate.
1859 * config.h.in: Regenerate.
1861 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1864 * configure.ac: Remove check for alloca.h.
1865 * configure: Regenerate.
1866 * config.h.in: Regenerate.
1867 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1868 * team.c: Remove use of alloca.h.
1869 Call gomp_alloca instead of alloca.
1871 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1874 * team.c: Add include of alloca.h.
1875 * configure.ac: Add check for alloca.h.
1876 * configure: Regenerate.
1877 * config.h.in: Regenerate.
1879 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1882 * testsuite/libgomp.fortran/pr25219.f90: New test.
1884 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1886 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1887 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1888 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1889 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1890 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1891 testsuite/libgomp.fortran/threadprivate1.f90,
1892 testsuite/libgomp.fortran/threadprivate2.f90,
1893 testsuite/libgomp.fortran/threadprivate3.f90,
1894 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1895 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1896 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1897 effective-target to TLS runtime.
1899 * testsuite/libgomp.fortran/pr25162.f: Require
1900 effective-target TLS runtime.
1902 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1904 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1905 * testsuite/libgomp.c/nestedfn-3.c: New test.
1907 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1910 * testsuite/libgomp.fortran/pr25162.f: New test.
1912 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1914 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1915 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1917 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1919 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1920 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1921 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1922 single.c, team.c, work.c, config/linux/alpha/futex.h,
1923 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1924 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1925 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1926 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1927 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1928 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1929 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1932 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1934 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1935 to nodist_noinst_HEADERS.
1936 * Makefile.in: Rebuilt.
1938 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1939 add integer count field.
1940 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1941 omp_nest_lock_t type change.
1942 (omp_init_nest_lock): Likewise. Initialize count to 0.
1943 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1945 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1947 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1948 Increment count if successful and return the new nesting level.
1949 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1950 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1951 * testsuite/libgomp.c/lib-1.c: New test.
1952 * testsuite/libgomp.fortran/lib1.f90: New test.
1953 * testsuite/libgomp.fortran/lib2.f: New test.
1954 * testsuite/libgomp.fortran/lib3.f: New test.
1956 2005-11-17 Richard Henderson <rth@redhat.com>
1959 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1960 * configure.ac (link_gomp): New. Substitute it.
1961 (AC_CONFIG_FILES): Add libgomp.spec.
1962 * libgomp.spec.in: New file.
1963 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1964 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1966 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1968 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1969 reduction(-:var) behaving the same as reduction(+:var).
1970 * testsuite/libgomp.c/reduction-4.c: New test.
1972 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1974 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1975 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1976 testsuite/libgomp.c/copyin-3.c,
1977 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1978 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1979 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1980 testsuite/libgomp.c++/pr24455.C,
1981 testsuite/libgomp.fortran/threadprivate1.f90,
1982 testsuite/libgomp.fortran/threadprivate2.f90,
1983 testsuite/libgomp.fortran/threadprivate3.f90,
1984 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1985 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1986 testsuite/libgomp.fortran/omp_parse3.f90: Require
1987 effective-target TLS.
1989 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1993 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1996 * team.c (initialize_team): Pass NULL rather than free as
1997 pthread_key_create destructor. Initialize thread specific data
1998 pointer in initial thread to a static local variable rather than
2001 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2003 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2004 its location to ld_library_path.
2006 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2008 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2010 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2012 * testsuite/libgomp.c: Rename from libgomp.dg.
2014 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2016 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2017 threadprivate variable 'i'.
2019 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2021 * config/linux/s390/futex.h: New file.
2022 * configure.tgt: Use it.
2024 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2025 before the parallel.
2027 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2030 * testsuite/libgomp.c++/master-1.C: New test.
2032 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2034 * testsuite/libgomp.dg/copyin-3.c: New test.
2036 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2038 * testsuite/libgomp.fortran/retval1.f90: New test.
2039 * testsuite/libgomp.fortran/vla7.f90: New test.
2041 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2043 * testsuite/libgomp.fortran/vla2.f90: New test.
2044 * testsuite/libgomp.fortran/vla3.f90: New test.
2045 * testsuite/libgomp.fortran/vla4.f90: New test.
2046 * testsuite/libgomp.fortran/vla5.f90: New test.
2047 * testsuite/libgomp.fortran/vla6.f90: New test.
2049 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2051 * config/linux/sparc/futex.h: New file.
2052 * configure.tgt: Use it.
2053 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2055 * critical.c: Include stdlib.h.
2056 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2057 ignoring return value.
2058 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2059 LIBGOMP_CHECK_SYNC_BUILTINS check.
2060 * configure: Rebuilt.
2062 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2064 * testsuite/libgomp.fortran/vla1.f90: New test.
2066 2005-10-31 Richard Henderson <rth@redhat.com>
2068 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2069 setting 's' in different threads.
2071 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2073 * libgomp.h (attribute_hidden, ialias): Define.
2074 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2075 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2076 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2077 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2078 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2079 omp_test_lock, omp_test_nest_lock): Likewise.
2080 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2081 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2082 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2083 omp_test_lock, omp_test_nest_lock): Likewise.
2084 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2085 omp_get_dynamic, omp_get_nested): Likewise.
2086 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2087 omp_get_thread_num, omp_in_parallel): Likewise.
2088 * fortran.c (ialias_redirect): Define.
2089 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2090 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2091 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2092 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2093 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2094 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2095 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2096 omp_get_wtime): Add ialias_redirect.
2098 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2100 * fortran.c: Include stdlib.h.
2102 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2104 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2105 * Makefile.in: Regenerated.
2107 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2109 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2110 * libgomp_f.h.in (omp_check_defines): New function.
2111 * env.c: Include libgomp_f.h.
2112 (initialize_env): Call omp_check_defines.
2114 * testsuite/libgomp.dg/copyin-2.c: New test.
2115 * testsuite/libgomp.c++/copyin-2.C: New test.
2116 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2118 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2119 * testsuite/libgomp.fortran/sharing2.f90: New test.
2121 * testsuite/libgomp.dg/copyin-1.c: New test.
2122 * testsuite/libgomp.c++/copyin-1.C: New test.
2124 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2126 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2128 * testsuite/libgomp.fortran/workshare1.f90: New test.
2130 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2132 * libgomp.fortran/sharing1.f90: New test.
2134 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2137 * testsuite/libgomp.c++/loop-7.C: New test.
2139 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2141 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2142 * testsuite/libgomp.fortran/reduction6.f90: New test.
2143 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2145 2005-10-23 Richard Henderson <rth@redhat.com>
2147 * testsuite/libgomp.c++/ctor-1.C: New.
2148 * testsuite/libgomp.c++/ctor-2.C: New.
2149 * testsuite/libgomp.c++/ctor-3.C: New.
2150 * testsuite/libgomp.c++/ctor-4.C: New.
2151 * testsuite/libgomp.c++/ctor-5.C: New.
2152 * testsuite/libgomp.c++/ctor-6.C: New.
2153 * testsuite/libgomp.c++/ctor-7.C: New.
2154 * testsuite/libgomp.c++/ctor-8.C: New.
2155 * testsuite/libgomp.c++/ctor-9.C: New.
2157 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2160 * testsuite/libgomp.c++/pr24455-1.C: New test.
2161 * testsuite/libgomp.c++/pr24455.C: New test.
2162 * testsuite/libgomp.dg/pr24455-1.c: New test.
2163 * testsuite/libgomp.dg/pr24455.c: New test.
2165 2005-10-20 Richard Henderson <rth@redhat.com>
2167 * testsuite/libgomp.c++/loop-6.C: New.
2168 * testsuite/libgomp.dg/loop-3.c: New.
2170 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2172 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2174 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2177 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2179 * testsuite/libgomp.fortran/jacobi.f: New test.
2181 2005-10-19 Richard Henderson <rth@redhat.com>
2183 * configure.tgt (i?86-linux): Default to with_arch instead of
2184 CFLAGS. Add -mtune to match target_cpu.
2185 (x86_64-linux): Tune to i686.
2187 * fortran.c (omp_test_nest_lock_): Fix typo.
2189 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2191 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2192 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2193 * testsuite/libgomp.dg/ordered-3.c: New test.
2195 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2196 Remove volatile keyword.
2198 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2199 in COMMON block to avoid warnings on 64-bit targets.
2201 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2203 * testsuite/libgomp.dg/shared-3.c: New test.
2205 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2207 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2208 * testsuite/libgomp.fortran/reduction5.f90: New test.
2210 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2212 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2214 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2215 flush loop now that __sync_synchronize has proper memory barrier.
2216 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2217 Add -ffixed-form to dg-options.
2219 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2221 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2222 from subdirectories.
2223 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2224 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2225 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2226 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2227 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2228 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2229 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2230 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2231 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2232 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2233 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2234 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2235 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2236 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2237 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2238 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2239 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2240 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2241 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2242 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2243 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2244 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2245 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2246 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2247 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2249 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2251 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2252 lang_library_path exists. Use find instead of glob to gather tests.
2253 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2255 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2257 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2258 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2259 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2260 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2261 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2262 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2263 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2264 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2265 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2266 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2267 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2268 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2269 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2271 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2273 * testsuite/libgomp.dg/vla-1.c: New test.
2275 * testsuite/libgomp.fortran/reference2.f90: New test.
2277 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2278 declaration of omp_get_thread_num.
2279 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2282 * testsuite/libgomp.fortran/reduction1.f90: New test.
2283 * testsuite/libgomp.fortran/reduction2.f90: New test.
2284 * testsuite/libgomp.fortran/reduction3.f90: New test.
2285 * testsuite/libgomp.fortran/reduction4.f90: New test.
2287 2005-10-13 Richard Henderson <rth@redhat.com>
2289 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2290 * Makefile.in: Regenerate.
2291 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2292 * libgomp.h: Include bar.h.
2293 (struct gomp_barrier): Remove.
2294 (struct gomp_team): Add barrier. Replace master_barrier with
2295 master_release. Replace threads with ordered_release.
2296 (struct gomp_thread): Replace barrier with release.
2297 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2298 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2299 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2300 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2301 (GOMP_single_copy_end): Likewise.
2302 * team.c (gomp_threads_dock): New.
2303 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2304 (gomp_thread_start): Use gomp_barrier_wait.
2305 (new_team, free_team): Update for gomp_team changes.
2306 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2307 (gomp_team_end): Use gomp_barrier_wait.
2308 (initialize_team): Update for gomp_thread changes.
2309 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2310 (gomp_work_share_end_nowait): Use atomic ops when available.
2311 * config/linux/bar.c, config/linux/bar.h: New files.
2312 * config/posix/bar.c, config/posix/bar.h: New files.
2314 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2316 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2317 * testsuite/libgomp.dg/single-2.c: New test.
2319 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2320 lang_link_flags): Unset, so that they aren't inherited from previously
2323 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2325 2005-10-12 Richard Henderson <rth@redhat.com>
2327 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2328 (libgomp_init): Use lang_test_file, lang_library_path, and
2329 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2331 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2332 (lang_test_file, lang_link_flags): New.
2333 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2335 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2336 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2337 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2338 testsuite/libgomp.c++/parallel-1.C,
2339 testsuite/libgomp.c++/reduction-1.C,
2340 testsuite/libgomp.c++/reduction-2.C,
2341 testsuite/libgomp.c++/reduction-3.C,
2342 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2343 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2344 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2345 New files, largely cribbed from the C testsuite.
2347 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2349 * testsuite/libgomp.fortran/character1.f90: New test.
2350 * testsuite/libgomp.fortran/character2.f90: New test.
2352 * testsuite/libgomp.dg/nested-1.c: New test.
2353 * testsuite/libgomp.dg/nested-2.c: New test.
2354 * testsuite/libgomp.fortran/do1.f90: New test.
2355 * testsuite/libgomp.fortran/do2.f90: New test.
2357 * testsuite/libgomp.fortran/reference1.f90: New test.
2359 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2361 * testsuite/libgomp.dg/reduction-1.c: New test.
2362 * testsuite/libgomp.dg/reduction-2.c: New test.
2363 * testsuite/libgomp.dg/reduction-3.c: New test.
2365 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2367 * testsuite/libgomp.dg/atomic-1.c: New test.
2368 * testsuite/libgomp.dg/atomic-2.c: New test.
2370 2005-10-09 Richard Henderson <rth@redhat.com>
2372 * critical.c (atomic_lock): New.
2373 (initialize_critical): Initialize it.
2374 (GOMP_atomic_start, GOMP_atomic_end): New.
2375 * libgomp.map: Export them.
2376 * libgomp_g.h: Declare them.
2378 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2380 2005-10-02 Richard Henderson <rth@redhat.com>
2382 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2383 to XCFLAGS instead of CFLAGS.
2385 2005-09-30 Richard Henderson <rth@redhat.com>
2387 * configure.ac: Determine whether -pthread or -lpthread is needed.
2388 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2389 * Makefine.in, configure: Rebuild.
2391 2005-09-28 Richard Henderson <rth@redhat.com>
2393 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2394 * testsuite/libgomp.dg/omp-single-3.c: New test.
2396 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2398 * testsuite/libgomp.dg/omp-single-2.c: New test.
2399 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2401 2005-09-27 Richard Henderson <rth@redhat.com>
2403 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2404 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2406 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2408 * testsuite/libgomp.dg/omp-loop03.c: New test.
2410 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2412 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2414 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2416 * testsuite/libgomp.dg/omp-single-1.c: New test.
2417 * testsuite/libgomp.dg/shared-1.c: Return 0.
2418 Add prototype for abort.
2419 * testsuite/libgomp.dg/shared-2.c: Likewise.
2421 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2423 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2426 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2428 * testsuite/libgomp.dg/shared-1.c: New test.
2429 * testsuite/libgomp.dg/shared-2.c: New test.
2431 2005-09-24 Richard Henderson <rth@redhat.com>
2433 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2435 2005-09-24 Richard Henderson <rth@redhat.com>
2437 * iter.c (gomp_iter_static_next): Round up when computing number
2438 of iterations. Don't bother distributing a remainder equally.
2440 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2441 Don't call srand. Zero b before testing.
2444 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2446 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2447 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2449 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2451 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2452 without !$omp end do, followed immediately by subroutine end.
2454 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2456 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2458 2005-09-22 Richard Henderson <rth@redhat.com>
2460 * critical.c (GOMP_critical_name_start): Change argument to void**.
2461 Reuse the pointer space if the mutex fits.
2462 (GOMP_critical_name_end): Likewise.
2463 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2464 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2465 (GOMP_critical_name_end): Likewise.
2466 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2467 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2469 2005-09-20 Richard Henderson <rth@redhat.com>
2471 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2472 (create_lock_lock): New.
2473 (initialize_critical): Initialize it.
2474 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2475 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2477 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2479 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2481 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2483 * testsuite/libgomp.dg/omp-loop01.c: New test.
2484 * testsuite/libgomp.dg/omp-loop02.c: New test.
2486 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2488 * configure.ac (AC_PROG_FC): Add.
2489 (USE_FORTRAN): New automake conditional.
2490 * configure: Rebuilt.
2491 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2492 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2493 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2494 Add rules to build them.
2495 * Makefile.in: Rebuilt.
2496 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2498 * libgomp.map: Add Fortran wrappers.
2499 * libgomp_f.h.in: New file.
2500 * omp_lib.h.in: New file.
2501 * omp_lib.f90.in: New file.
2502 * fortran.c: New file.
2503 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2504 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2505 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2506 libgfortran has been built.
2507 * testsuite/libgomp.fortran/fortran.exp: New file.
2508 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2509 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2510 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2511 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2512 * testsuite/libgomp.fortran/omp_hello.f: New test.
2513 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2514 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2515 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2516 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2517 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2518 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2519 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2520 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2522 2005-08-30 Richard Henderson <rth@redhat.com>
2524 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2525 function for when aliases are not usable.
2526 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2527 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2528 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2529 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2530 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2531 GOMP_loop_ordered_guided_next): Likewise.
2532 * ordered.c (GOMP_ordered_start): Likewise.
2534 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2536 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2537 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2538 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2539 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2540 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2541 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2542 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2543 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2544 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2546 2005-07-07 Eric Christopher <echristo@redhat.com>
2547 Diego Novillo <dnovillo@redhat.com>
2549 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2550 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2552 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2553 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2554 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2555 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2556 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2557 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2558 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2560 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2562 * TOPLEVEL.patch: Remove.
2564 2005-05-16 Richard Henderson <rth@redhat.com>
2566 * configure.ac: Test for clock_gettime.
2567 * config.h.in, configure: Rebuild.
2568 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2569 (omp_get_wtime): Use clock_gettime if available.
2570 (omp_get_wtick): Use clock_getres if available.
2572 2005-05-11 Richard Henderson <rth@redhat.com>
2574 * config/linux/ia64/futex.h: New file.
2575 * configure.tgt: Use it.
2577 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2579 2005-05-07 Richard Henderson <rth@redhat.com>
2581 * config/linux/powerpc/futex.h: New file.
2582 * configure.tgt: Use it.
2584 * config/linux/i486/futex.h: Merge ...
2585 * config/linux/x86_64/futex.h: ... into ...
2586 * config/linux/x86/futex.h: ... here.
2587 * configure.tgt: Update to match.
2589 2005-05-06 Richard Henderson <rth@redhat.com>
2591 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2592 * config/linux/i486/futex.h: Likewise.
2593 * config/linux/x86_64/futex.h: Likewise.
2595 * config/linux/lock.c: New file.
2596 * config/linux/omp-lock.h: New file.
2598 * critical.c, env.h: Don't include omp.h
2599 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2600 * config/posix/time.c: Likewise.
2601 * config/posix/omp-lock.h: New file.
2602 * libgomp.h: Include omp-lock.h and omp.h.
2603 * Makefile.am (nodist_include_HEADERS): New.
2605 * configure.ac (PERL): New.
2606 * mkomp_h.pl: New file.
2607 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2609 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2611 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2612 build directory. Re-add -march=i486 hack.
2614 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2615 (libgomp_link_flags): Remove.
2616 (libgomp_initialized): Remove.
2617 (libgomp_init): Don't protect from reinitialization. Copy code
2618 from libstdc++ for getting the multilib set correctly.
2620 2005-05-05 Richard Henderson <rth@redhat.com>
2622 * config/linux/alpha/futex.h: New file.
2623 * configure.tgt (alpha*-*-linux*): Use it.
2625 * config/posix/mutex.c: New file.
2626 * config/posix/sem.c: Use libgomp.h.
2628 * configure.tgt (x86_64-linux): Also test CC for -m32.
2629 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2631 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2634 * Makefile.am (SUBDIRS): New.
2635 (libgomp_la_LDFLAGS): Add -lpthread.
2636 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2637 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2639 * libgomp_g.h: New file.
2640 * libgomp.h: Split out all public declarations to libgomp_g.h.
2641 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2642 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2643 * config/linux/sem.h: Likewise.
2644 * config/posix/sem.h: Likewise.
2646 * Makefile.am (AM_LDFLAGS): New.
2647 (libgomp_version_script): Split out from ...
2648 (libgomp_la_LDFLAGS): ... here.
2649 (libgomp_version_info): New.
2650 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2651 (LIBGOMP_ENABLE): New.
2652 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2653 (LIBGOMP_ENABLE_SYMVERS): New.
2654 * configure.ac (AC_INIT): Version 1.0.
2655 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2656 (enable-linux-futex): Likewise. Rename from enable-futex.
2657 (libtool_VERSION): New.
2658 (LIBGOMP_ENABLE_SYMVERS): Use it.
2659 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2660 * Makefile.in, aclocal.m4, configure: Rebuild.
2662 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2663 (gomp_mutex_unlock_slow): Fix typo.
2664 * config/linux/sem.c: Similarly.
2665 (gomp_sem_post_slow): Fix typo.
2666 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2667 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2668 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2670 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2671 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2672 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2673 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2674 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2675 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2676 LDFLAGS. Pull enable_futex check to top-level.
2677 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2678 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2680 First attempt at real configury.
2681 * Makefile, config.h: Remove file.
2682 * Makefile.am, Makefile.in: New file.
2683 * acinclude.m4 aclocal.m4: New file.
2684 * configure.ac, configure.tgt, configure: New file.
2686 * config/posix/lock.c: Rename from sys-lock.c.
2687 * config/posix/mutex.h: Rename from sys-mutex.h.
2688 * config/posix/sem.c: Rename from sys-sem.c.
2689 * config/posix/sem.h: Rename from sys-sem.h.
2690 * config/posix/proc.c: Rename from sys-proc.c.
2691 * config/posix/time.c: Rename from sys-proc.c.
2693 * config/linux/mutex.c: New file.
2694 * config/linux/mutex.h: New file.
2695 * config/linux/sem.c: New file.
2696 * config/linux/sem.h: New file.
2697 * config/linux/i486/futex.h: New file.
2698 * config/linux/x86_64/futex.h: New file.
2700 2005-05-04 Richard Henderson <rth@redhat.com>
2702 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2703 * libgomp.h: Declare them.
2704 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2705 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2707 2005-05-04 Richard Henderson <rth@redhat.com>
2709 * libgomp-1 code drop
2711 2005-05-04 Richard Henderson <rth@redhat.com>
2713 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2714 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2715 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2716 (gomp_iter_static_next): Update.
2717 (gomp_ordered_static_next): Update.
2718 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2719 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2720 totally empty range.
2721 (gomp_loop_ordered_static_next): Refine test for calling
2722 gomp_ordered_static_next.
2723 * testsuite/ordered-1.c: Add case for more threads than iterations.
2725 * iter.c (gomp_iter_runtime_next_locked): Remove.
2726 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2727 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2728 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2729 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2730 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2731 gomp_loop_ordered_guided_next): Downcase name, make static, add
2732 an external alias with the old name.
2733 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2734 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2735 switch and call one of the above static functions.
2736 * libgomp.h: Update.
2738 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2739 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2740 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2741 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2742 GOMP_loop_ordered_guided_start): Update to match.
2743 * sections.c (GOMP_sections_start): Likewise.
2744 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2746 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2747 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2748 Use bounds check instead of modulus.
2749 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2750 (gomp_ordered_last): Don't sync with ordered_owner here.
2751 (gomp_ordered_next): Likewise.
2752 (gomp_ordered_static_loop_next): Likewise.
2753 * loop.c, libgomp.h: Update to match.
2755 * libgomp.h (GOMP_barrier): Declare.
2757 * testsuite/barrier-1.c: New file.
2758 * testsuite/critical-1.c: New file.
2759 * testsuite/ordered-2.c: New file.
2760 * testsuite/ordered-1.c: New file.
2761 * testsuite/sections-1.c: New file.
2762 * testsuite/single-1.c: New file.
2763 * testsuite/Makefile (TESTS): Add them.
2765 2005-05-04 Richard Henderson <rth@redhat.com>
2767 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2768 * loop.c (GOMP_loop_static_start): If not the startup thread,
2769 acquire the mutex to wait for initialization complete.
2770 (GOMP_loop_ordered_static_start): Likewise.
2771 (GOMP_loop_ordered_runtime_start): Likewise.
2772 (GOMP_loop_ordered_static_first): Remove.
2773 (GOMP_loop_ordered_dynamic_first): Remove.
2774 (GOMP_loop_ordered_guided_first): Remove.
2775 (GOMP_loop_ordered_runtime_first): Remove.
2776 * ordered.c (gomp_ordered_loop_first): Post to own release when
2777 we're the first thread.
2778 (gomp_ordered_loop_last): Wait on release if not owner.
2779 (gomp_ordered_loop_next): Likewise.
2780 (gomp_ordered_static_loop_init): New.
2781 (gomp_ordered_static_loop_next): Use ordered_owner.
2782 (GOMP_ordered_start): Likewise.
2783 * work.c (gomp_new_work_share): Initialize ordered_owner.
2785 2005-05-03 Richard Henderson <rth@redhat.com>
2787 * Makefile (OPT): New.
2790 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2791 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2792 * libgomp.h, libgomp.map, NOTES: Update to match.
2794 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2795 Add initialized and thr members.
2796 (gomp_thread_start): Pause when initially spawned to wait for
2797 the whole team to be created.
2798 (gomp_team_start): Release team members at the end.
2800 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2801 (f_foo_1): Use GOMP_loop_end.
2802 (f_foo_2): Use GOMP_loop_end_nowait.
2804 * testsuite/loop-2.c: New file.
2805 * testsuite/Makefile (TESTS): Add it.
2807 2005-05-03 Richard Henderson <rth@redhat.com>
2809 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2810 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2811 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2814 * testsuite/Makefile: New file.
2815 * testsuite/loop-1.c: New file.
2817 2005-05-03 Richard Henderson <rth@redhat.com>
2819 Initial implementation and checkin.