1 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3 * configure: Regenerate.
5 2010-07-26 Jakub Jelinek <jakub@redhat.com>
7 * libgomp.texi: Add function keyword to a couple of Fortran
8 interfaces, use integer instead of int for Fortran.
10 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
12 * libgomp.texi: Fix spelling and pasto problems throughout.
13 Adjust prototypes to match code.
15 2010-07-24 Tobias Burnus <burnus@net-b.de>
17 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18 silence -fwhole-file warning.
20 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22 * configure.tgt (*-*-solaris2.[56]*): Removed.
24 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
27 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
28 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
29 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
31 * configure: Regenerate.
32 * config.h.in: Regenerate.
34 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
35 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
36 Add libgomp_version_dep.
37 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
39 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
40 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
41 * Makefile.in: Regenerate.
43 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
44 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
45 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
46 to common block, protected by
47 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
49 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
51 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
53 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
56 * configure: Regenerate.
58 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
62 * configure: Regenerate.
63 * Makefile.in: Regenerate.
64 * testsuite/Makefile.in: Regenerate.
66 2010-04-26 Jakub Jelinek <jakub@redhat.com>
69 * testsuite/libgomp.c/pr43893.c: New test.
70 * testsuite/libgomp.c++/pr43893.C: New test.
72 2010-04-21 Jakub Jelinek <jakub@redhat.com>
75 * testsuite/libgomp.fortran/vla8.f90: New test.
77 2010-04-20 Jakub Jelinek <jakub@redhat.com>
80 * config/linux/affinity.c (gomp_init_affinity): Decrease
81 gomp_available_cpus if affinity mask confines the process to fewer
83 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
84 non-NULL, just return gomp_available_cpus.
87 * sections.c (gomp_sections_init): Initialize ws->mode.
89 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
91 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
92 not unused bar variable.
93 * configure: Regenerate.
95 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97 * Makefile.in: Regenerate.
98 * aclocal.m4: Regenerate.
99 * testsuite/Makefile.in: Regenerate.
101 2010-03-22 Jakub Jelinek <jakub@redhat.com>
104 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
105 (initialize_env): Adjust callers.
106 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
107 when the argument is 0.
109 * testsuite/libgomp.c/pr42942.c: New test.
111 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
115 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
116 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
118 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
120 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
121 * testsuite/libgomp.c++/task-6.C: Likewise.
123 2010-01-28 Steve Ellcey <sje@cup.hp.com>
125 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
127 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
129 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
130 * configure: Regenerate.
132 2010-01-26 Jakub Jelinek <jakub@redhat.com>
135 * testsuite/libgomp.fortran/allocatable5.f90: New test.
137 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
139 * configure.ac: Test for executability of GFORTRAN.
140 * configure: Regenerate.
142 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
144 * configure: Regenerate.
146 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
149 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
151 2010-01-03 Richard Guenther <rguenther@suse.de>
153 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
155 2009-12-23 Sebastian Pop <sebpop@gmail.com>
157 * testsuite/libgomp.graphite/pr4118.c: New.
159 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
161 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
162 for darwin, protect the test with require-effective-target tls_runtime.
163 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
165 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
168 * testsuite/lib/libgomp.exp: Provide -B options to allow for
169 link spec %s substitutions for static libraries.
171 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
174 * libgomp.graphite/force-parallel-2.c: Reduce array size.
176 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
178 * Makefile.in: Regenerate.
179 * configure: Regenerate.
180 * testsuite/Makefile.in: Regenerate.
182 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
184 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
185 settings for LC_ALL and LANG.
187 2009-11-25 Jakub Jelinek <jakub@redhat.com>
190 * testsuite/libgomp.fortran/pr42162.f90: New test.
192 2009-11-13 Jakub Jelinek <jakub@redhat.com>
195 * testsuite/libgomp.c/pr42029.c: New test.
197 2009-10-26 Jakub Jelinek <jakub@redhat.com>
199 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
200 *s. Accept ld version without text in ()s.
201 * configure: Regenerated.
203 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
205 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
207 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
210 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
211 or a hyphen (happens with fortran language disabled).
212 * configure: Regenerate.
214 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
216 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
217 use sed script portable to Solaris /bin/sed for extracting ld
219 * configure: Regenerate.
221 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
223 * testsuite/libgomp.graphite/bounds.c: New test.
225 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
227 * Makefile.am (libgomp_la_LINK): New.
228 * Makefile.in: Regenerate.
230 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
232 * configure.ac (AC_PREREQ): Bump to 2.64.
234 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
236 * Makefile.am (install-html, install-pdf): Remove.
237 * Makefile.in: Regenerate.
239 * Makefile.in: Regenerate.
240 * aclocal.m4: Regenerate.
241 * config.h.in: Regenerate.
242 * configure: Regenerate.
243 * testsuite/Makefile.in: Regenerate.
245 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
247 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
248 * Makefile.in: Regenerate.
250 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
252 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
253 * Makefile.in: Regenerate.
255 2009-08-19 Tobias Burnus <burnus@net-b.de>
258 omp_lib.h.in: Fix -std=f95 errors.
261 2009-08-14 David Edelsohn <edelsohn@gnu.org>
263 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
264 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
265 * testsuite/libgomp.graphite/graphite.exp: New.
267 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
269 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
272 2009-08-04 David Daney <ddaney@caviumnetworks.com>
274 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
275 needed memory barrier semantics.
276 * config/linux/mips/mutex.h: New file.
278 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
280 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
282 2009-07-16 Joseph Myers <joseph@codesourcery.com>
284 * configure: Regenerate.
286 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
291 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
292 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
293 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
295 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
297 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
298 options when choosing a multilib.
300 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
302 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
303 ld_library_path. Use add_path. Add just find_libgcc_s to
304 ld_library_path, not every libgcc multilib directory.
305 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
306 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
307 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
309 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
311 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
313 * Makefile.am (LTLDFLAGS): Define.
315 * Makefile.in: Regenerate.
317 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
320 * testsuite/libgomp.fortran/fortran.exp: Don't link with
321 libgfortranbegin, check existence of libgfortran.a instead of
324 2009-05-20 Jakub Jelinek <jakub@redhat.com>
327 * team.c (gomp_thread_start): Destroy thr->release semaphore.
328 (gomp_free_pool_helper): Likewise.
330 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
331 Jakub Jelinek <jakub@redhat.com>
334 * testsuite/libgomp.fortran/workshare2.f90: New test.
336 2009-04-09 Nick Clifton <nickc@redhat.com>
338 * iter.c: Change copyright header to refer to version 3 of the
339 GNU General Public License with version 3.1 of the GCC Runtime
340 Library Exception and to point readers at the COPYING3 and
341 COPYING3.RUNTIME files and the FSF's license web page.
343 * barrier.c: Likewise.
344 * config/bsd/proc.c: Likewise.
345 * config/linux/affinity.c: Likewise.
346 * config/linux/alpha/futex.h: Likewise.
347 * config/linux/bar.c: Likewise.
348 * config/linux/bar.h: Likewise.
349 * config/linux/ia64/futex.h: Likewise.
350 * config/linux/ia64/mutex.h: Likewise.
351 * config/linux/lock.c: Likewise.
352 * config/linux/mips/futex.h: Likewise.
353 * config/linux/mutex.c: Likewise.
354 * config/linux/mutex.h: Likewise.
355 * config/linux/powerpc/futex.h: Likewise.
356 * config/linux/proc.c: Likewise.
357 * config/linux/ptrlock.c: Likewise.
358 * config/linux/ptrlock.h: Likewise.
359 * config/linux/s390/futex.h: Likewise.
360 * config/linux/sem.c: Likewise.
361 * config/linux/sem.h: Likewise.
362 * config/linux/sparc/futex.h: Likewise.
363 * config/linux/wait.h: Likewise.
364 * config/linux/x86/futex.h: Likewise.
365 * config/mingw32/proc.c: Likewise.
366 * config/mingw32/time.c: Likewise.
367 * config/posix/affinity.c: Likewise.
368 * config/posix/bar.c: Likewise.
369 * config/posix/bar.h: Likewise.
370 * config/posix/lock.c: Likewise.
371 * config/posix/mutex.h: Likewise.
372 * config/posix/proc.c: Likewise.
373 * config/posix/ptrlock.h: Likewise.
374 * config/posix/sem.c: Likewise.
375 * config/posix/sem.h: Likewise.
376 * config/posix/time.c: Likewise.
377 * config/posix95/lock.c: Likewise.
378 * critical.c: Likewise.
381 * fortran.c: Likewise.
382 * iter_ull.c: Likewise.
383 * libgomp.h: Likewise.
384 * libgomp_f.h.in: Likewise.
385 * libgomp_g.h: Likewise.
387 * loop_ull.c: Likewise.
388 * omp.h.in: Likewise.
389 * omp_lib.f90.in: Likewise.
390 * omp_lib.h.in: Likewise.
391 * ordered.c: Likewise.
392 * parallel.c: Likewise.
393 * sections.c: Likewise.
394 * single.c: Likewise.
399 2009-04-09 Jakub Jelinek <jakub@redhat.com>
401 * testsuite/config/default.exp: Change copyright header to refer to
402 version 3 of the GNU General Public License and to point readers
403 at the COPYING3 file and the FSF's license web page.
405 2009-04-08 Jakub Jelinek <jakub@redhat.com>
408 * libgomp.c++/pr39573.C: New test.
410 2009-04-01 Jakub Jelinek <jakub@redhat.com>
413 * testsuite/libgomp.c/pr39591-1.c: New test.
414 * testsuite/libgomp.c/pr39591-2.c: New test.
415 * testsuite/libgomp.c/pr39591-3.c: New test.
417 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
419 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
420 * testsuite/libgomp.c/atomic-6.c: Ditto.
422 2009-03-23 Jakub Jelinek <jakub@redhat.com>
425 * testsuite/libgomp.c/loop-12.c: New test.
426 * testsuite/libgomp.c/loop-11.c: New test.
427 * testsuite/libgomp.c++/loop-11.C: New test.
428 * testsuite/libgomp.c++/loop-12.C: New test.
429 * testsuite/libgomp.c++/for-8.C: New test.
431 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
433 * configure: Regenerate.
435 2009-02-11 Jakub Jelinek <jakub@redhat.com>
438 * testsuite/libgomp.c/pr39154.c: New test.
440 2009-01-30 Ian Lance Taylor <iant@google.com>
442 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
443 libgomp_ld_is_gold. Get gold version number.
444 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
445 * configure: Rebuild.
447 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
449 * testsuite/lib/libgomp.exp: Add -B option for targets that
450 use libgfortran.a%s in their specs.
452 2009-01-07 Jakub Jelinek <jakub@redhat.com>
455 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
456 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
457 HAVE_AS_SYMVER_DIRECTIVE is not defined.
458 * configure: Regenerated.
459 * config.h.in: Likewise.
461 2008-12-28 Jakub Jelinek <jakub@redhat.com>
464 * testsuite/libgomp.c/pr38650.c: New test.
465 * testsuite/libgomp.c++/pr38650.C: New test.
467 2008-12-27 Jakub Jelinek <jakub@redhat.com>
469 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
471 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
473 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
475 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
477 * configure: Regenerate.
479 2008-12-08 Jakub Jelinek <jakub@redhat.com>
482 * testsuite/libgomp.c/pr36802-1.c: New test.
483 * testsuite/libgomp.c/pr36802-2.c: New test.
484 * testsuite/libgomp.c/pr36802-3.c: New test.
486 2008-12-01 Janis Johnson <janis187@us.ibm.com>
489 * config/linux/powerpc/mutex.h: New.
491 2008-12-01 Jakub Jelinek <jakub@redhat.com>
494 * testsuite/libgomp.c++/for-7.C: New test.
497 * testsuite/libgomp.c++/for-6.C: New test.
499 2008-11-26 Janis Johnson <janis187@us.ibm.com>
502 * testsuite/lib/libgomp.exp: Include new timeout library files.
503 (libgomp_target_compile): Set timeout value from new proc.
505 2008-11-13 Steve Ellcey <sje@cup.hp.com>
508 * config/linux/ia64/mutex.h: New.
510 2008-11-04 Tobias Burnus <burnus@net-b.de>
513 * libgomp.texi (Runtime library routines, environment variables):
514 Update for OpenMP version 3.0.
516 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
517 Steve Ellcey <sje@cup.hp.com>
519 * configure: Regenerate for new libtool.
520 * Makefile.in: Ditto.
521 * testsuite/Makefile.in: Ditto.
523 2008-09-19 Jakub Jelinek <jakub@redhat.com>
524 Andreas Tobler <a.tobler@schweiz.org>
526 * config/bsd/proc.c: New file.
527 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
528 * configure.ac: Check for header <sys/sysctl.h>
529 * configure: Regenerate.
530 * config.h.in: Likewise.
532 2008-09-05 Janis Johnson <janis187@us.ibm.com>
534 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
536 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
538 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
539 * Makefile.in: Regenerated.
540 * testsuite/Makefile.in: Regenerated.
542 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
544 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
545 depend on blddir if blddir exists.
546 (libgomp_target_compile): Likewise.
547 * testsuite/libgomp.c++/c++.exp: Likewise.
548 * testsuite/libgomp.fortran/fortran.exp: Likewise.
550 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
552 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
553 Do not list GPL as Invariant Section.
555 2008-07-28 Ilie Garbacea <ilie@mips.com>
556 Chao-ying Fu <fu@mips.com>
558 * configure.tgt: Enable futex for MIPS.
559 * config/linux/mips/futex.h: New file.
561 2008-07-16 Jakub Jelinek <jakub@redhat.com>
563 * team.c (gomp_team_end): Free team immediately if it has
566 2008-07-08 David Edelsohn <edelsohn@gnu.org>
568 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
569 * testsuite/libgomp.fortran/fortran.exp: Same.
570 * testsuite/libgomp.c/c.exp: Same.
571 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
572 directory to library path first.
574 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
576 * env.c (parse_stacksize): Add cast to avoid warning.
577 (parse_spincount): Likewise.
579 2008-06-27 Jakub Jelinek <jakub@redhat.com>
581 * testsuite/libgomp.c/loop-10.c: New test.
582 * libgomp.c/loop-3.c (main): Add lastprivate clause.
583 * libgomp.c++/loop-6.C (main): Likewise.
586 * testsuite/libgomp.c/debug-1.c: New test.
588 2008-06-19 Jakub Jelinek <jakub@redhat.com>
590 * testsuite/libgomp.c/nqueens-1.c: New test.
593 * testsuite/libgomp.c++/task-7.C: New function.
595 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
597 * configure: Regenerate.
599 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
601 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
602 mutex when HAVE_SYNC_BUILTINS isn't defined.
604 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
606 * libgomp.texi (omp_test_lock): Fix typo.
608 2008-06-12 Tobias Burnus <burnus@net-b.de>
610 * omp_lib.f90.in: Add "implicit none".
612 2008-06-12 Jakub Jelinek <jakub@redhat.com>
615 * testsuite/libgomp.c/reduction-5.c: New test.
617 2008-06-11 Jakub Jelinek <jakub@redhat.com>
619 * libgomp.h (struct gomp_task): Add in_tied_task field.
620 * task.c (gomp_init_task): Initialize it.
621 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
622 unconditionally. Don't call gomp_team_barrier_wake if
623 current task is implicit or if(0) from implicit and number of
624 running tasks is equal to nthreads - 1.
627 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
628 omp_get_team_size_8): Fix pastos.
631 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
632 * configure: Regenerated.
633 * config.h.in: Regenerated.
634 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
637 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
640 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
641 (GOMP_loop_ull_dynamic_start): Likewise.
642 (GOMP_loop_ull_guided_start): Likewise.
643 (GOMP_loop_ull_ordered_static_start): Likewise.
644 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
645 (GOMP_loop_ull_ordered_guided_start): Likewise.
647 2008-06-06 Jakub Jelinek <jakub@redhat.com>
648 Richard Henderson <rth@redhat.com>
649 Ulrich Drepper <drepper@redhat.com>
650 Jakob Blomer <jakob.blomer@ira.uka.de>
652 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
653 Substitute also OMP_*LOCK_25*.
654 * configure: Regenerated.
655 * config.h.in: Regenerated.
656 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
657 ptrlock.c and task.c.
658 * Makefile.in: Regenerated.
659 * testsuite/Makefile.in: Regenerated.
661 * loop_ull.c: New file.
662 * iter_ull.c: New file.
663 * libgomp.h: Include ptrlock.h.
664 (enum gomp_task_kind): New type.
665 (struct gomp_team): Add task_lock, task_queue, task_count,
666 task_running_count, single_count fields. Add
667 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
668 Remove work_share_lock, generation_mask,
669 oldest_live_gen, num_live_gen and init_work_shares fields, add
670 work work_share_list_alloc, work_share_list_free and work_share_chunk
671 fields. Change work_shares from pointer to pointers into an array.
672 Change ordered_release field into gomp_sem_t ** from flexible array
673 member. Add implicit_task and initial_work_shares fields.
674 Move close to the end of the struct.
675 (struct gomp_team_state): Add single_count, last_work_share,
676 active_level and level fields, remove work_share_generation.
677 (gomp_barrier_handle_tasks): New prototype.
678 (gomp_finish_task): New inline function.
679 (struct gomp_work_share): Move chunk_size, end, incr into
680 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
681 next_ll fields. Reshuffle fields. Add next_alloc,
682 next_ws, next_free and inline_ordered_team_ids fields, change
683 ordered_team_ids into pointer from flexible array member.
684 Add mode field. Put lock and next into a different cache line
685 from most of the write-once fields.
686 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
687 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
688 gomp_iter_ull_guided_next): New prototypes.
689 (gomp_new_icv): New prototype.
690 (struct gomp_thread): Add thread_pool and task fields.
691 (struct gomp_thread_pool): New type.
692 (gomp_new_team): New prototype.
693 (gomp_team_start): Change type of last argument.
694 (gomp_new_work_share): Removed.
695 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
696 (gomp_work_share_init_done): New static inline.
697 (gomp_throttled_spin_count_var, gomp_available_cpus,
698 gomp_managed_threads): New extern decls.
699 (gomp_init_task): New prototype.
700 (gomp_spin_count_var): New extern var decl.
701 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
702 or no alias support, or if not PIC.
703 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
704 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
705 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
706 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
707 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
708 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
709 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
710 gomp_test_nest_lock_25): New prototypes.
711 (omp_lock_symver, strong_alias): Define.
712 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
714 (gomp_end_task): New.
715 (struct gomp_task_icv, gomp_global_icv): New.
716 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
717 (struct gomp_task): New.
718 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
719 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
721 (gomp_schedule_type): Reorder enum to match
723 * team.c (struct gomp_thread_start_data): Add thread_pool and task
725 (gomp_thread_start): Add gomp_team_barrier_wait call.
726 For non-nested case remove clearing of docked thread thr fields.
727 Use pool fields instead of global gomp_* variables. Use
728 gomp_barrier_wait_last when needed. Initialize ts.active_level.
729 Create tasks for each member thread.
730 (free_team): Only destroy team barrier, task_lock here and free it.
731 (gomp_free_thread): Free last_team if non-NULL.
732 (gomp_team_end): Call gomp_team_barrier_wait instead of
733 gomp_barrier_wait. For nested case call one extra
734 gomp_barrier_wait. Move here some destruction from free_team.
735 Call free_team on pool->last_team if any, rather than freeing
736 current team. Destroy work_share_list_free_lock ifndef
738 (gomp_new_icv): New function.
739 (gomp_threads, gomp_threads_size, gomp_threads_used,
740 gomp_threads_dock): Removed.
741 (gomp_thread_destructor): New variable.
742 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
744 (gomp_team_start): Create new pool if current thread doesn't have
745 one. Use pool fields instead of global gomp_* variables.
746 Initialize thread_pool field for new threads. Clear single_count.
747 Change last argument from ws to team, don't create
748 new team, set ts.work_share to &team->work_shares[0] and clear
749 ts.last_work_share. Don't clear ts.work_share_generation.
750 If number of threads changed, adjust atomically gomp_managed_threads.
751 Use gomp_init_task instead of gomp_new_task,
752 set thr->task to the corresponding implicit_task array entry.
753 Create tasks for each member thread. Initialize ts.level.
754 (initialize_team): Call pthread_key_create on
755 gomp_thread_destructor.
756 (team_destructor): New function.
758 (gomp_new_team): New function.
759 (free_team): Free gomp_work_share blocks chained through next_alloc,
760 instead of freeing work_shares and destroying work_share_lock.
761 (gomp_team_end): Call gomp_fini_work_share. If number of threads
762 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
763 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
764 of gomp_barrier_wait.
765 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
766 instead of gomp_barrier_wait. Call gomp_work_share_init_done
767 if gomp_work_share_start returned true. Don't unlock ws->lock.
768 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
769 of gomp_barrier_wait.
770 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
771 gomp_work_share_init_done if gomp_work_share_start returned true.
772 Don't unlock ws->lock.
773 * work.c: Include stddef.h.
774 (free_work_share): Use work_share_list_free_lock instead
775 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
776 Call gomp_fini_work_share and then either free ws if orphaned, or
777 put it into work_share_list_free list of the current team.
778 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
780 (gomp_work_share_start, gomp_work_share_end,
781 gomp_work_share_end_nowait): Rewritten.
782 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
783 (openmp_version): Set to 200805.
784 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
785 omp_sched_guided, omp_sched_auto): New parameters.
786 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
787 omp_set_max_active_levels, omp_get_max_active_levels,
788 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
789 omp_get_active_level): New interfaces.
790 * omp_lib.h.in (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 externals.
797 * loop.c: Include limits.h.
798 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
800 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
801 Likewise. Use gomp_icv.
802 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
804 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
805 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
806 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
807 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
808 don't unlock ws->lock, otherwise lock it.
809 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
810 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
811 (gomp_parallel_loop_start): Call gomp_new_team instead of
812 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
813 Adjust gomp_team_start caller. Pass 0 as second argument to
814 gomp_resolve_num_threads.
815 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
816 If adding ws->chunk_size nthreads + 1 times after end won't
817 overflow, set ws->mode to 1.
818 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
819 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
820 GOMP_loop_ull_ordered_static_start,
821 GOMP_loop_ull_ordered_dynamic_start,
822 GOMP_loop_ull_ordered_guided_start,
823 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
824 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
825 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
826 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
827 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
829 * libgomp.map: Export lock routines also @@OMP_2.0.
830 (GOMP_loop_ordered_dynamic_first,
831 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
832 GOMP_loop_ordered_static_first): Remove.
833 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
834 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
835 GOMP_loop_ull_ordered_dynamic_next,
836 GOMP_loop_ull_ordered_dynamic_start,
837 GOMP_loop_ull_ordered_guided_next,
838 GOMP_loop_ull_ordered_guided_start,
839 GOMP_loop_ull_ordered_runtime_next,
840 GOMP_loop_ull_ordered_runtime_start,
841 GOMP_loop_ull_ordered_static_next,
842 GOMP_loop_ull_ordered_static_start,
843 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
844 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
845 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
846 (omp_set_schedule, omp_get_schedule,
847 omp_get_thread_limit, omp_set_max_active_levels,
848 omp_get_max_active_levels, omp_get_level,
849 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
850 omp_set_schedule_, omp_set_schedule_8_,
851 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
852 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
853 omp_get_max_active_levels_, omp_get_level_,
854 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
855 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
856 New exports @@OMP_3.0.
857 * omp.h.in (omp_sched_t): New type.
858 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
859 omp_set_max_active_levels, omp_get_max_active_levels,
860 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
861 omp_get_active_level): New prototypes.
862 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
863 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
864 gomp_thread_limit_var, gomp_remaining_threads_count,
865 gomp_remaining_threads_lock): New variables.
866 (parse_spincount): New function.
867 (initialize_env): Call gomp_init_num_threads unconditionally.
868 Initialize gomp_available_cpus. Call parse_spincount,
869 initialize gomp_{,throttled_}spin_count_var
870 depending on presence and value of OMP_WAIT_POLICY and
871 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
872 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
873 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
874 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
875 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
876 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
877 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
878 (gomp_global_icv): New.
879 (parse_schedule): Use it. Parse "auto".
880 (omp_set_num_threads): Use gomp_icv.
881 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
883 (omp_get_max_threads): Move from parallel.c.
884 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
885 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
887 (parse_stacksize, parse_wait_policy): New functions.
888 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
889 both wrappers for compatibility and new locks.
890 (omp_set_schedule, omp_get_schedule,
891 omp_get_thread_limit, omp_set_max_active_levels,
892 omp_get_max_active_levels, omp_get_level,
893 omp_get_ancestor_thread_num, omp_get_team_size,
894 omp_get_active_level): New ialias_redirect.
895 (omp_set_schedule_, omp_set_schedule_8_,
896 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
897 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
898 omp_get_max_active_levels_, omp_get_level_,
899 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
900 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
902 * parallel.c: Include limits.h.
903 (gomp_resolve_num_threads): Add count argument. Rewritten.
904 (GOMP_parallel_start): Call gomp_new_team and pass that as last
905 argument to gomp_team_start. Pass 0 as second argument to
906 gomp_resolve_num_threads.
907 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
908 if gomp_thread_limit_var != ULONG_MAX.
909 (omp_in_parallel): Implement using ts.active_level.
910 (omp_get_max_threads): Move to env.c.
911 (omp_get_level, omp_get_ancestor_thread_num,
912 omp_get_team_size, omp_get_active_level): New functions,
914 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
915 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
916 gomp_iter_dynamic_next instead of the _locked variant and don't take
917 lock around it, otherwise acquire it before calling
918 gomp_iter_dynamic_next_locked.
919 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
920 gomp_iter_dynamic_next instead of the _locked variant and don't take
922 (GOMP_parallel_sections_start): Call gomp_new_team instead of
923 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
924 Adjust gomp_team_start caller. Pass count as second argument to
925 gomp_resolve_num_threads, don't adjust num_threads after the call.
927 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
928 ws->chunk_size by incr.
929 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
931 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
933 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
934 (omp_check_defines): Check even the compat defines.
935 * config/linux/ptrlock.c: New file.
936 * config/linux/ptrlock.h: New file.
937 * config/linux/wait.h: New file.
938 * config/posix/ptrlock.c: New file.
939 * config/posix/ptrlock.h: New file.
940 * config/linux/bar.h (gomp_team_barrier_wait,
941 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
942 (gomp_team_barrier_set_task_pending,
943 gomp_team_barrier_clear_task_pending,
944 gomp_team_barrier_set_waiting_for_tasks,
945 gomp_team_barrier_waiting_for_tasks,
946 gomp_team_barrier_done): New inlines.
947 (gomp_barrier_t): Rewritten.
948 (gomp_barrier_state_t): New typedef.
949 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
950 gomp_barrier_wait_start): Rewritten.
951 (gomp_barrier_wait_end): Change second argument to
952 gomp_barrier_state_t.
953 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
955 * config/linux/bar.c: Include wait.h instead of libgomp.h and
957 (gomp_barrier_wait_end): Rewritten.
958 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
959 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
960 * config/posix/bar.h (gomp_barrier_t): Add generation field.
961 (gomp_barrier_state_t): New typedef.
962 (gomp_team_barrier_wait,
963 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
964 (gomp_barrier_wait_start): Or all but low 2 bits from generation
965 into the return value. Return gomp_barrier_state_t.
966 (gomp_team_barrier_set_task_pending,
967 gomp_team_barrier_clear_task_pending,
968 gomp_team_barrier_set_waiting_for_tasks,
969 gomp_team_barrier_waiting_for_tasks,
970 gomp_team_barrier_done): New inlines.
971 (gomp_barrier_wait_end): Change second argument to
972 gomp_barrier_state_t.
973 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
975 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
976 (gomp_barrier_wait_end): Change second argument to
977 gomp_barrier_state_t.
978 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
979 gomp_team_barrier_wake): New functions.
980 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
982 (gomp_futex_wake, gomp_futex_wait): New variables.
983 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
984 * config/linux/lock.c: Rewrite to make locks task owned,
985 for backwards compatibility provide the old entrypoints
986 if symbol versioning. Include wait.h instead of libgomp.h and
988 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
989 * config/posix95/lock.c: Rewrite to make locks task owned,
990 for backwards compatibility provide the old entrypoints
991 if symbol versioning.
992 * config/posix/lock.c: Rewrite to make locks task owned,
993 for backwards compatibility provide the old entrypoints
994 if symbol versioning.
995 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
996 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
997 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
998 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
999 (sys_futex0): Return error code.
1000 (futex_wake, futex_wait): If ENOSYS was returned, clear
1001 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1002 (cpu_relax, atomic_write_barrier): New static inlines.
1003 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1004 (futex_wake, futex_wait): If ENOSYS was returned, clear
1005 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1006 (cpu_relax, atomic_write_barrier): New static inlines.
1007 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1008 (sys_futex0): Return error code.
1009 (futex_wake, futex_wait): If ENOSYS was returned, clear
1010 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1011 (cpu_relax, atomic_write_barrier): New static inlines.
1012 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1013 (sys_futex0): Return error code.
1014 (futex_wake, futex_wait): If ENOSYS was returned, clear
1015 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1016 (cpu_relax, atomic_write_barrier): New static inlines.
1017 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1018 (sys_futex0): Return error code.
1019 (futex_wake, futex_wait): If ENOSYS was returned, clear
1020 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1021 (cpu_relax, atomic_write_barrier): New static inlines.
1022 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1023 (sys_futex0): Return error code.
1024 (futex_wake, futex_wait): If ENOSYS was returned, clear
1025 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1026 (cpu_relax, atomic_write_barrier): New static inlines.
1027 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1029 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1030 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1031 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1033 (omp_nest_lock_t): Change owner into void *, add lock field.
1034 * config/posix95/omp-lock.h: Include semaphore.h.
1035 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1036 (omp_lock_t): Use sem_t instead of mutex if semaphores
1038 (omp_nest_lock_t): Likewise. Change owner to void *.
1039 * config/posix/omp-lock.h: Include semaphore.h.
1040 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1041 (omp_lock_t): Use sem_t instead of mutex if semaphores
1043 (omp_nest_lock_t): Likewise. Add owner field.
1045 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1047 * testsuite/libgomp.c/collapse-1.c: New test.
1048 * testsuite/libgomp.c/collapse-2.c: New test.
1049 * testsuite/libgomp.c/collapse-3.c: New test.
1050 * testsuite/libgomp.c/icv-1.c: New test.
1051 * testsuite/libgomp.c/icv-2.c: New test.
1052 * testsuite/libgomp.c/lib-2.c: New test.
1053 * testsuite/libgomp.c/lock-1.c: New test.
1054 * testsuite/libgomp.c/lock-2.c: New test.
1055 * testsuite/libgomp.c/lock-3.c: New test.
1056 * testsuite/libgomp.c/loop-4.c: New test.
1057 * testsuite/libgomp.c/loop-5.c: New test.
1058 * testsuite/libgomp.c/loop-6.c: New test.
1059 * testsuite/libgomp.c/loop-7.c: New test.
1060 * testsuite/libgomp.c/loop-8.c: New test.
1061 * testsuite/libgomp.c/loop-9.c: New test.
1062 * testsuite/libgomp.c/nested-3.c: New test.
1063 * testsuite/libgomp.c/nestedfn-6.c: New test.
1064 * testsuite/libgomp.c/sort-1.c: New test.
1065 * testsuite/libgomp.c/task-1.c: New test.
1066 * testsuite/libgomp.c/task-2.c: New test.
1067 * testsuite/libgomp.c/task-3.c: New test.
1068 * testsuite/libgomp.c/task-4.c: New test.
1069 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1070 to C++ testsuite default compiler options.
1071 * testsuite/libgomp.c++/collapse-1.C: New test.
1072 * testsuite/libgomp.c++/collapse-2.C: New test.
1073 * testsuite/libgomp.c++/ctor-10.C: New test.
1074 * testsuite/libgomp.c++/for-1.C: New test.
1075 * testsuite/libgomp.c++/for-2.C: New test.
1076 * testsuite/libgomp.c++/for-3.C: New test.
1077 * testsuite/libgomp.c++/for-4.C: New test.
1078 * testsuite/libgomp.c++/for-5.C: New test.
1079 * testsuite/libgomp.c++/loop-8.C: New test.
1080 * testsuite/libgomp.c++/loop-9.C: New test.
1081 * testsuite/libgomp.c++/loop-10.C: New test.
1082 * testsuite/libgomp.c++/task-1.C: New test.
1083 * testsuite/libgomp.c++/task-2.C: New test.
1084 * testsuite/libgomp.c++/task-3.C: New test.
1085 * testsuite/libgomp.c++/task-4.C: New test.
1086 * testsuite/libgomp.c++/task-5.C: New test.
1087 * testsuite/libgomp.c++/task-6.C: New test.
1088 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1089 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1090 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1091 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1092 * testsuite/libgomp.fortran/collapse1.f90: New test.
1093 * testsuite/libgomp.fortran/collapse2.f90: New test.
1094 * testsuite/libgomp.fortran/collapse3.f90: New test.
1095 * testsuite/libgomp.fortran/collapse4.f90: New test.
1096 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1097 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1098 * testsuite/libgomp.fortran/lib4.f90: New test.
1099 * testsuite/libgomp.fortran/lock-1.f90: New test.
1100 * testsuite/libgomp.fortran/lock-2.f90: New test.
1101 * testsuite/libgomp.fortran/nested1.f90: New test.
1102 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1103 * testsuite/libgomp.fortran/strassen.f90: New test.
1104 * testsuite/libgomp.fortran/tabs1.f90: New test.
1105 * testsuite/libgomp.fortran/tabs2.f: New test.
1106 * testsuite/libgomp.fortran/task1.f90: New test.
1107 * testsuite/libgomp.fortran/task2.f90: New test.
1108 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1109 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1110 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1111 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1112 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1114 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1117 * testsuite/libgomp.c++/ctor-11.C: New test.
1118 * testsuite/libgomp.c++/ctor-12.C: New test.
1120 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1122 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1124 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1127 * testsuite/libgomp.c/atomic-5.c: New test.
1128 * testsuite/libgomp.c/atomic-6.c: New test.
1129 * testsuite/libgomp.c/autopar-1.c: New test.
1131 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1133 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1134 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1135 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1136 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1137 * configure: Regenerate.
1138 * Makefile.in, testsuite/Makefile.in: Likewise.
1140 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1143 * aclocal.m4: Regenerate.
1144 * configure: Regenerate.
1146 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1149 * testsuite/libgomp.c/atomic-4.c: New test.
1152 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1153 (gomp_iter_guided_next): Likewise.
1154 * testsuite/libgomp.c/pr35625.c: New test.
1156 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1158 * aclocal.m4: Regenerate.
1159 * configure: Likewise.
1160 * Makefile.in: Likewise.
1161 * testsuite/Makefile.in: Likewise.
1163 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1166 * testsuite/libgomp.c++/pr35185.C: New test.
1168 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1171 * testsuite/libgomp.c/pr35549.c: New test.
1173 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1175 * testsuite/libgomp.c/atomic-3.c: New test.
1177 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1180 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1183 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1186 * configure.ac: Add ACX_HEADER_STRING.
1187 * env.c: Include strings.h.
1188 * aclocal.m4: Regenerate.
1189 * config.h.in: Regenerate.
1190 * configure: Regenerate.
1191 * Makefile.in: Regenerate.
1192 * testsuite/Makefile.in: Regenerate.
1194 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1197 * testsuite/libgomp.c/pr35196.c: New test.
1200 * testsuite/libgomp.fortran/pr35130.f90: New test.
1201 * testsuite/libgomp.c/pr35130.c: New test.
1203 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1206 * testsuite/libgomp.c/pr33880.c: New test.
1207 * testsuite/libgomp.fortran/pr33880.f90: New test.
1209 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1211 * configure: Regenerate.
1213 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1215 * configure.ac: Move futex checking into ../config/futex.m4.
1216 * configure: Rebuilt.
1217 * aclocal.m4: Rebuilt.
1218 * Makefile.in: Rebuilt.
1220 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1221 2007-10-15 ../config/tls.m4 change.
1223 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1226 * testsuite/libgomp.c/pr34513.c: New test.
1227 * testsuite/libgomp.c++/pr34513.C: New test.
1229 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1232 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1234 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1236 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1238 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1240 * testsuite/libgomp.c/private-1.c: New test.
1242 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1243 Paolo Bonzini <bonzini@gnu.org>
1245 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1246 instead of 'VPATH ='.
1247 * Makefile.in: Regenerate.
1249 2007-11-23 Matthias Klose <doko@ubuntu.com>
1251 * configure.ac: Adjust makeinfo version check.
1252 * configure: Regenerate.
1254 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1257 * testsuite/libgomp.fortran/pr34020.f90: New test.
1259 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1262 * testsuite/libgomp.c++/atomic-1.C: New test.
1264 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1267 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1268 Make x and y integers rather than (implicit) reals. Add private (j)
1269 clause to the last omp parallel.
1271 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1273 * configure: Regenerate following changes to ../config/tls.m4.
1275 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1277 * testsuite/libgomp.fortran/stack.f90: New test.
1279 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1281 * config/mingw32/proc.c: New file.
1283 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1285 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1286 (main): Use __get_cpuid to get i386 target fetaures.
1287 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1288 (main): Use __get_cpuid to get x86_64 target fetaures.
1290 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1293 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1294 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1296 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1299 * testsuite/libgomp.fortran/pr32550.f90: New test.
1300 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1302 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1304 * aclocal.m4: Regenerated.
1306 2007-07-05 Tobias Burnus <burnus@net-b.de>
1309 * testsuite/libgomp.fortran/pr32359.f90: New.
1311 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1314 * sections.c (GOMP_parallel_sections_start): Only decrease
1315 number of threads to COUNT if dyn_var is true.
1316 * testsuite/libgomp.c/pr32468.c: New test.
1318 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1321 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1323 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1326 * testsuite/libgomp.c/pr32362-1.c: New test.
1327 * testsuite/libgomp.c/pr32362-2.c: New test.
1328 * testsuite/libgomp.c/pr32362-3.c: New test.
1330 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1332 * team.c (gomp_team_start): Fix setting up thread_attr
1335 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1337 * configure: Regenerate.
1339 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1341 * Makefile.in: Regenerate.
1342 * configure: Regenerate.
1343 * aclocal.m4: Regenerate.
1344 * testsuite/Makefile.in: Regenerate.
1346 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1348 * config/linux/proc.c: New file.
1351 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1353 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1355 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1357 2007-04-16 Matthias Klose <doko@debian.org>
1359 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1360 flags if not building with -m64.
1361 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1362 flag for i?86-*-* targets, if current target matches -m64.
1364 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1366 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1367 * Makefile.in: Regenerate.
1369 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1372 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1374 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1376 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1378 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1380 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1381 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1382 (parse_affinity): New function.
1383 (initialize_env): Call it and gomp_init_affinity.
1384 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1385 create new pthread_attr_t and call gomp_init_thread_affinity
1386 on it for each thread before passing the attribute to pthread_create.
1387 * config/linux/affinity.c: New file.
1388 * config/posix/affinity.c: New file.
1389 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1390 * configure: Rebuilt.
1391 * config.h.in: Rebuilt.
1392 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1393 * Makefile.in: Rebuilt.
1395 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1397 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1399 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1400 and use it if found.
1402 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1404 * testsuite/config/default.exp: New file.
1405 * testsuite/lib/libgomp.exp: New file.
1406 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1407 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1408 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1409 (libgomp_load): Remove.
1410 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1411 always_ld_library_path, not ld_library_path. Set additional_flags
1412 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1413 (target_compile): Do not call libgomp_init. Append lang_library_path
1414 and lang_link_flags to options.
1415 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1416 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1418 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1419 always_ld_library_path. Set LD_LIBRARY_PATH here.
1420 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1421 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1422 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1424 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1425 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1426 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1427 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1428 * testsuite/libgomp.c/atomic-10.c: Ditto.
1430 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1432 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1433 dg-final cleanup-modules line.
1434 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1435 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1436 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1437 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1438 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1439 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1440 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1442 2007-03-18 Andreas Schwab <schwab@suse.de>
1444 * acinclude.m4: Adjust regular expression for ld version
1446 * configure: Regenerate.
1448 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1450 * Makefile.am: Add install-pdf target as copied from
1451 automake v1.10 rules.
1452 * Makefile.in: Regenerate
1454 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1457 * configure: Regenerate.
1460 * testsuite/libgomp.c++/pr30703.C: New test.
1462 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1465 2006-07-05 Eric Christopher <echristo@apple.com>
1466 * configure.ac: Depend addition of -pthread on host OS.
1467 * configure: Regenerate.
1469 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1471 * libgomp.texi: Fix spacing after abbreviations.
1473 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1476 * configure.ac: Add check for makeinfo
1477 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1478 if an appropiate version of makeinfo is found.
1479 * aclocal.m4: Regenerated.
1480 * configure: Regenerated.
1481 * Makefile.in: Regenerated.
1482 * testsuite/Makefile.in: Regenerated.
1484 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1487 * libgomp.texi: More about implementation-dependent settings.
1489 2007-01-26 Tobias Burnus <burnus@net-b.de>
1491 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1493 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1496 * testsuite/libgomp.c/pr30494.c: New test.
1498 2007-01-15 Tom Tromey <tromey@redhat.com>
1500 * configure: Rebuilt.
1501 * configure.ac: Fixed comment.
1503 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1505 * libgomp.texi: Document implementation specific default values of
1506 environment variables.
1508 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1511 * libgomp.texi: New file.
1512 * configure.ac: Add --enable-generated-files-in-srcdir option.
1513 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1515 * Makefile.in: Regenerated.
1516 * config.h.in: Regenerated.
1517 * testsuite/Makefile.in: Regenerated.
1520 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1523 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1525 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1527 * configure: Regenerate.
1529 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1532 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1533 start if there shouldn't be any loop iterations.
1534 (gomp_loop_ordered_static_start): Remove start == end test.
1535 * testsuite/libgomp.c/pr29947-1.c: New test.
1536 * testsuite/libgomp.c/pr29947-2.c: New test.
1538 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1540 * configure.tgt: Force initial-exec TLS model on Linux only.
1542 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1544 * configure: Regenerated.
1546 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1548 * env.c (parse_schedule): Reject out of range values.
1549 (parse_unsigned_long): Reject out of range, negative or zero values.
1551 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1554 * testsuite/libgomp.fortran/pr29629.f90: New test.
1556 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1559 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1560 * config/posix95: New directory.
1561 * config/posix95/omp-lock.h: New file.
1562 * config/posix95/lock.c: Likewise.
1564 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1566 * aclocal.m4: Regenerate.
1567 * configure: Regenerate.
1569 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1571 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1574 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1576 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1578 * configure: Regenerate.
1579 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1581 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1585 * testsuite/libgomp.c/nestedfn-4.c: New test.
1586 * testsuite/libgomp.c/nestedfn-5.c: New test.
1587 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1590 * testsuite/libgomp.fortran/condinc1.f: New test.
1591 * testsuite/libgomp.fortran/condinc2.f: New test.
1592 * testsuite/libgomp.fortran/condinc3.f90: New test.
1593 * testsuite/libgomp.fortran/condinc4.f90: New test.
1594 * testsuite/libgomp.fortran/condinc1.inc: New file.
1596 2006-09-18 Tom Tromey <tromey@redhat.com>
1598 * configure: Rebuilt.
1600 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1603 PR preprocessor/14634
1604 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1606 * configure: Regenerate.
1608 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1610 * testsuite/libgomp.fortran/reduction3.f90: Change
1611 -2147483648 to -huge(i)-1 to avoid overflow.
1612 * testsuite/libgomp.fortran/reduction4.f90: Change
1613 Z'ffffffff' to not(0) to avoid overflow.
1615 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1618 * Makefile.am (libsubincludedir): New.
1619 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1620 * Makefile.in: Regenerate.
1622 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1625 * env.c: Include ctype.h.
1626 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1627 leading and/or trailing whitespace and compare strings case
1630 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1633 * testsuite/libgomp.fortran/pr28390.f: New test.
1635 2006-07-05 Eric Christopher <echristo@apple.com>
1637 * configure.ac: Depend addition of -pthread on host OS.
1638 * configure: Regenerate.
1640 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1642 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1643 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1646 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1650 * configure.ac: If neither --enable-linux-futex nor
1651 --disable-linux-futex is passed, determine the default by checking
1652 for compiling and/or running against NPTL. With --enable-linux-futex,
1653 check if SYS_gettid and SYS_futex are defined.
1654 * configure: Rebuilt.
1656 2006-06-14 Richard Henderson <rth@redhat.com>
1659 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1660 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1662 2006-06-09 Richard Henderson <rth@redhat.com>
1664 * env.c (gomp_nthreads_var): Change to unsigned long.
1665 (gomp_run_sched_chunk): Likewise.
1666 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1667 (initialize_env): Initialize gomp_thread_attr.
1668 * libgomp.h (gomp_nthreads_var): Update decl.
1669 (gomp_run_sched_chunk): Likewise.
1670 (gomp_thread_attr): Declare.
1671 * team.c (gomp_thread_attr): Export.
1672 (initialize_team): Don't initialize it.
1674 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1677 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1678 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1680 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1682 * config/mingw32/time.c: New file.
1683 * configure.tgt: Use it.
1685 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1687 * Makefile.am: Add install-html target. Add install-html to .PHONY
1688 * Makefile.in: Regenerate.
1690 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1693 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1694 * testsuite/libgomp.c/critical-1.c: Likewise.
1695 * testsuite/libgomp.c/loop-1.c: Likewise.
1696 * testsuite/libgomp.c/loop-2.c: Likewise.
1697 * testsuite/libgomp.c/single-1.c: Likewise.
1698 * testsuite/libgomp.c/ordered-1.c: Likewise.
1699 * testsuite/libgomp.c/ordered-2.c: Likewise.
1701 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1704 * libgomp.fortran/pr27416-1.f90: New test.
1706 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1709 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1710 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1712 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1715 * testsuite/libgomp.c/pr26943-1.c: New test.
1716 * testsuite/libgomp.c/pr26943-2.c: New test.
1717 * testsuite/libgomp.c/pr26943-3.c: New test.
1718 * testsuite/libgomp.c/pr26943-4.c: New test.
1719 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1720 * testsuite/libgomp.c++/pr26943.C: New test.
1722 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1725 * testsuite/libgomp.c++/pr27337.C: New test.
1727 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1730 * testsuite/libgomp.c/pr26171.c: New test.
1732 2006-04-25 Richard Henderson <rth@redhat.com>
1735 * configure.ac: Use GCC_CHECK_TLS.
1736 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1737 * Makefile.in, aclocal.m4, configure: Regenerate.
1739 2006-04-10 Matthias Klose <doko@debian.org>
1741 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1742 directory names containing underscores.
1744 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1747 * testsuite/libgomp.c++/pr26691.C: New test.
1749 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1751 * testsuite/libgomp.fortran/retval2.f90: New test.
1753 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1755 * testsuite/libgomp.c++: New directory.
1757 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1759 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1760 * config/posix/sem.c: Implement the above.
1762 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1764 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1765 define HAVE_BROKEN_POSIX_SEMAPHORES.
1766 * configure: Rebuilt.
1767 * config.h.in: Rebuilt.
1769 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1772 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1773 for the other pthread check.
1774 * configure: Regenerate.
1775 * config.h.in: Regenerate.
1777 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1781 * Makefile.am (fincludedir): New variable.
1782 (nodist_include_HEADERS): Remove Fortran files.
1783 (nodist_finclude_HEADERS): New variable.
1784 * Makefile.in: Regenerated.
1786 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1788 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1789 Remove tests for returning assumed character length arrays.
1791 2006-02-12 Roger Sayle <roger@eyesopen.com>
1792 John David Anglin <dave@hiauly1.hia.nrc.ca>
1795 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1797 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1799 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1801 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1803 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1804 part of LD_LIBRARY_PATH manually.
1806 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1809 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1812 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1815 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1816 * configure.ac (PERL): Don't set.
1817 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1818 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1819 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1820 * omp.h.in: Wrap the new configure substitutions with @ characters.
1821 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1822 * aclocal.m4, configure, Makefile.in: Regenerate.
1823 * mkomp_h.pl: Delete.
1825 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1828 * configure.ac: Use GCC_HEADER_STDINT.
1829 * libgomp.h: Include gstdint.h.
1830 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1831 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1833 2006-01-24 Richard Henderson <rth@redhat.com>
1836 * configure.ac: Add AM_MAINTAINER_MODE.
1837 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1839 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1841 * Makefile.in: Regenerate.
1842 * testsuite/Makefile.in: Regenerate.
1843 * aclocal.m4: Regenerate.
1845 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1847 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1849 * configure.ac: Add check for loadavg.h.
1850 (link_gomp): Adjust comment.
1851 * configure: Regenerate.
1852 * config.h.in: Regenerate.
1854 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1857 * configure.ac: Remove check for alloca.h.
1858 * configure: Regenerate.
1859 * config.h.in: Regenerate.
1860 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1861 * team.c: Remove use of alloca.h.
1862 Call gomp_alloca instead of alloca.
1864 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1867 * team.c: Add include of alloca.h.
1868 * configure.ac: Add check for alloca.h.
1869 * configure: Regenerate.
1870 * config.h.in: Regenerate.
1872 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1875 * testsuite/libgomp.fortran/pr25219.f90: New test.
1877 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1879 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1880 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1881 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1882 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1883 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1884 testsuite/libgomp.fortran/threadprivate1.f90,
1885 testsuite/libgomp.fortran/threadprivate2.f90,
1886 testsuite/libgomp.fortran/threadprivate3.f90,
1887 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1888 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1889 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1890 effective-target to TLS runtime.
1892 * testsuite/libgomp.fortran/pr25162.f: Require
1893 effective-target TLS runtime.
1895 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1897 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1898 * testsuite/libgomp.c/nestedfn-3.c: New test.
1900 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1903 * testsuite/libgomp.fortran/pr25162.f: New test.
1905 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1907 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1908 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1910 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1912 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1913 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1914 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1915 single.c, team.c, work.c, config/linux/alpha/futex.h,
1916 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1917 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1918 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1919 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1920 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1921 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1922 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1925 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1927 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1928 to nodist_noinst_HEADERS.
1929 * Makefile.in: Rebuilt.
1931 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1932 add integer count field.
1933 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1934 omp_nest_lock_t type change.
1935 (omp_init_nest_lock): Likewise. Initialize count to 0.
1936 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1938 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1940 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1941 Increment count if successful and return the new nesting level.
1942 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1943 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1944 * testsuite/libgomp.c/lib-1.c: New test.
1945 * testsuite/libgomp.fortran/lib1.f90: New test.
1946 * testsuite/libgomp.fortran/lib2.f: New test.
1947 * testsuite/libgomp.fortran/lib3.f: New test.
1949 2005-11-17 Richard Henderson <rth@redhat.com>
1952 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1953 * configure.ac (link_gomp): New. Substitute it.
1954 (AC_CONFIG_FILES): Add libgomp.spec.
1955 * libgomp.spec.in: New file.
1956 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1957 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1959 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1961 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1962 reduction(-:var) behaving the same as reduction(+:var).
1963 * testsuite/libgomp.c/reduction-4.c: New test.
1965 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1967 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1968 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1969 testsuite/libgomp.c/copyin-3.c,
1970 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1971 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1972 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1973 testsuite/libgomp.c++/pr24455.C,
1974 testsuite/libgomp.fortran/threadprivate1.f90,
1975 testsuite/libgomp.fortran/threadprivate2.f90,
1976 testsuite/libgomp.fortran/threadprivate3.f90,
1977 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1978 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1979 testsuite/libgomp.fortran/omp_parse3.f90: Require
1980 effective-target TLS.
1982 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1986 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1989 * team.c (initialize_team): Pass NULL rather than free as
1990 pthread_key_create destructor. Initialize thread specific data
1991 pointer in initial thread to a static local variable rather than
1994 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1996 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1997 its location to ld_library_path.
1999 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2001 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2003 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2005 * testsuite/libgomp.c: Rename from libgomp.dg.
2007 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2009 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2010 threadprivate variable 'i'.
2012 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2014 * config/linux/s390/futex.h: New file.
2015 * configure.tgt: Use it.
2017 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2018 before the parallel.
2020 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2023 * testsuite/libgomp.c++/master-1.C: New test.
2025 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2027 * testsuite/libgomp.dg/copyin-3.c: New test.
2029 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2031 * testsuite/libgomp.fortran/retval1.f90: New test.
2032 * testsuite/libgomp.fortran/vla7.f90: New test.
2034 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2036 * testsuite/libgomp.fortran/vla2.f90: New test.
2037 * testsuite/libgomp.fortran/vla3.f90: New test.
2038 * testsuite/libgomp.fortran/vla4.f90: New test.
2039 * testsuite/libgomp.fortran/vla5.f90: New test.
2040 * testsuite/libgomp.fortran/vla6.f90: New test.
2042 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2044 * config/linux/sparc/futex.h: New file.
2045 * configure.tgt: Use it.
2046 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2048 * critical.c: Include stdlib.h.
2049 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2050 ignoring return value.
2051 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2052 LIBGOMP_CHECK_SYNC_BUILTINS check.
2053 * configure: Rebuilt.
2055 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2057 * testsuite/libgomp.fortran/vla1.f90: New test.
2059 2005-10-31 Richard Henderson <rth@redhat.com>
2061 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2062 setting 's' in different threads.
2064 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2066 * libgomp.h (attribute_hidden, ialias): Define.
2067 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2068 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2069 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2070 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2071 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2072 omp_test_lock, omp_test_nest_lock): Likewise.
2073 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2074 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2075 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2076 omp_test_lock, omp_test_nest_lock): Likewise.
2077 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2078 omp_get_dynamic, omp_get_nested): Likewise.
2079 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2080 omp_get_thread_num, omp_in_parallel): Likewise.
2081 * fortran.c (ialias_redirect): Define.
2082 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2083 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2084 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2085 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2086 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2087 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2088 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2089 omp_get_wtime): Add ialias_redirect.
2091 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2093 * fortran.c: Include stdlib.h.
2095 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2097 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2098 * Makefile.in: Regenerated.
2100 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2102 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2103 * libgomp_f.h.in (omp_check_defines): New function.
2104 * env.c: Include libgomp_f.h.
2105 (initialize_env): Call omp_check_defines.
2107 * testsuite/libgomp.dg/copyin-2.c: New test.
2108 * testsuite/libgomp.c++/copyin-2.C: New test.
2109 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2111 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2112 * testsuite/libgomp.fortran/sharing2.f90: New test.
2114 * testsuite/libgomp.dg/copyin-1.c: New test.
2115 * testsuite/libgomp.c++/copyin-1.C: New test.
2117 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2119 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2121 * testsuite/libgomp.fortran/workshare1.f90: New test.
2123 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2125 * libgomp.fortran/sharing1.f90: New test.
2127 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2130 * testsuite/libgomp.c++/loop-7.C: New test.
2132 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2134 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2135 * testsuite/libgomp.fortran/reduction6.f90: New test.
2136 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2138 2005-10-23 Richard Henderson <rth@redhat.com>
2140 * testsuite/libgomp.c++/ctor-1.C: New.
2141 * testsuite/libgomp.c++/ctor-2.C: New.
2142 * testsuite/libgomp.c++/ctor-3.C: New.
2143 * testsuite/libgomp.c++/ctor-4.C: New.
2144 * testsuite/libgomp.c++/ctor-5.C: New.
2145 * testsuite/libgomp.c++/ctor-6.C: New.
2146 * testsuite/libgomp.c++/ctor-7.C: New.
2147 * testsuite/libgomp.c++/ctor-8.C: New.
2148 * testsuite/libgomp.c++/ctor-9.C: New.
2150 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2153 * testsuite/libgomp.c++/pr24455-1.C: New test.
2154 * testsuite/libgomp.c++/pr24455.C: New test.
2155 * testsuite/libgomp.dg/pr24455-1.c: New test.
2156 * testsuite/libgomp.dg/pr24455.c: New test.
2158 2005-10-20 Richard Henderson <rth@redhat.com>
2160 * testsuite/libgomp.c++/loop-6.C: New.
2161 * testsuite/libgomp.dg/loop-3.c: New.
2163 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2165 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2167 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2170 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2172 * testsuite/libgomp.fortran/jacobi.f: New test.
2174 2005-10-19 Richard Henderson <rth@redhat.com>
2176 * configure.tgt (i?86-linux): Default to with_arch instead of
2177 CFLAGS. Add -mtune to match target_cpu.
2178 (x86_64-linux): Tune to i686.
2180 * fortran.c (omp_test_nest_lock_): Fix typo.
2182 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2184 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2185 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2186 * testsuite/libgomp.dg/ordered-3.c: New test.
2188 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2189 Remove volatile keyword.
2191 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2192 in COMMON block to avoid warnings on 64-bit targets.
2194 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2196 * testsuite/libgomp.dg/shared-3.c: New test.
2198 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2200 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2201 * testsuite/libgomp.fortran/reduction5.f90: New test.
2203 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2205 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2207 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2208 flush loop now that __sync_synchronize has proper memory barrier.
2209 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2210 Add -ffixed-form to dg-options.
2212 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2214 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2215 from subdirectories.
2216 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2217 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2218 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2219 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2220 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2221 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2222 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2223 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2224 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2225 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2226 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2227 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2228 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2229 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2230 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2231 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2232 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2233 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2234 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2235 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2236 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2237 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2238 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2239 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2240 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2242 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2244 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2245 lang_library_path exists. Use find instead of glob to gather tests.
2246 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2248 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2250 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2251 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2252 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2253 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2254 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2255 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2256 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2257 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2258 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2259 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2260 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2261 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2262 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2264 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2266 * testsuite/libgomp.dg/vla-1.c: New test.
2268 * testsuite/libgomp.fortran/reference2.f90: New test.
2270 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2271 declaration of omp_get_thread_num.
2272 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2275 * testsuite/libgomp.fortran/reduction1.f90: New test.
2276 * testsuite/libgomp.fortran/reduction2.f90: New test.
2277 * testsuite/libgomp.fortran/reduction3.f90: New test.
2278 * testsuite/libgomp.fortran/reduction4.f90: New test.
2280 2005-10-13 Richard Henderson <rth@redhat.com>
2282 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2283 * Makefile.in: Regenerate.
2284 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2285 * libgomp.h: Include bar.h.
2286 (struct gomp_barrier): Remove.
2287 (struct gomp_team): Add barrier. Replace master_barrier with
2288 master_release. Replace threads with ordered_release.
2289 (struct gomp_thread): Replace barrier with release.
2290 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2291 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2292 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2293 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2294 (GOMP_single_copy_end): Likewise.
2295 * team.c (gomp_threads_dock): New.
2296 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2297 (gomp_thread_start): Use gomp_barrier_wait.
2298 (new_team, free_team): Update for gomp_team changes.
2299 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2300 (gomp_team_end): Use gomp_barrier_wait.
2301 (initialize_team): Update for gomp_thread changes.
2302 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2303 (gomp_work_share_end_nowait): Use atomic ops when available.
2304 * config/linux/bar.c, config/linux/bar.h: New files.
2305 * config/posix/bar.c, config/posix/bar.h: New files.
2307 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2309 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2310 * testsuite/libgomp.dg/single-2.c: New test.
2312 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2313 lang_link_flags): Unset, so that they aren't inherited from previously
2316 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2318 2005-10-12 Richard Henderson <rth@redhat.com>
2320 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2321 (libgomp_init): Use lang_test_file, lang_library_path, and
2322 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2324 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2325 (lang_test_file, lang_link_flags): New.
2326 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2328 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2329 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2330 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2331 testsuite/libgomp.c++/parallel-1.C,
2332 testsuite/libgomp.c++/reduction-1.C,
2333 testsuite/libgomp.c++/reduction-2.C,
2334 testsuite/libgomp.c++/reduction-3.C,
2335 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2336 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2337 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2338 New files, largely cribbed from the C testsuite.
2340 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2342 * testsuite/libgomp.fortran/character1.f90: New test.
2343 * testsuite/libgomp.fortran/character2.f90: New test.
2345 * testsuite/libgomp.dg/nested-1.c: New test.
2346 * testsuite/libgomp.dg/nested-2.c: New test.
2347 * testsuite/libgomp.fortran/do1.f90: New test.
2348 * testsuite/libgomp.fortran/do2.f90: New test.
2350 * testsuite/libgomp.fortran/reference1.f90: New test.
2352 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2354 * testsuite/libgomp.dg/reduction-1.c: New test.
2355 * testsuite/libgomp.dg/reduction-2.c: New test.
2356 * testsuite/libgomp.dg/reduction-3.c: New test.
2358 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2360 * testsuite/libgomp.dg/atomic-1.c: New test.
2361 * testsuite/libgomp.dg/atomic-2.c: New test.
2363 2005-10-09 Richard Henderson <rth@redhat.com>
2365 * critical.c (atomic_lock): New.
2366 (initialize_critical): Initialize it.
2367 (GOMP_atomic_start, GOMP_atomic_end): New.
2368 * libgomp.map: Export them.
2369 * libgomp_g.h: Declare them.
2371 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2373 2005-10-02 Richard Henderson <rth@redhat.com>
2375 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2376 to XCFLAGS instead of CFLAGS.
2378 2005-09-30 Richard Henderson <rth@redhat.com>
2380 * configure.ac: Determine whether -pthread or -lpthread is needed.
2381 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2382 * Makefine.in, configure: Rebuild.
2384 2005-09-28 Richard Henderson <rth@redhat.com>
2386 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2387 * testsuite/libgomp.dg/omp-single-3.c: New test.
2389 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2391 * testsuite/libgomp.dg/omp-single-2.c: New test.
2392 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2394 2005-09-27 Richard Henderson <rth@redhat.com>
2396 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2397 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2399 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2401 * testsuite/libgomp.dg/omp-loop03.c: New test.
2403 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2405 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2407 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2409 * testsuite/libgomp.dg/omp-single-1.c: New test.
2410 * testsuite/libgomp.dg/shared-1.c: Return 0.
2411 Add prototype for abort.
2412 * testsuite/libgomp.dg/shared-2.c: Likewise.
2414 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2416 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2419 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2421 * testsuite/libgomp.dg/shared-1.c: New test.
2422 * testsuite/libgomp.dg/shared-2.c: New test.
2424 2005-09-24 Richard Henderson <rth@redhat.com>
2426 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2428 2005-09-24 Richard Henderson <rth@redhat.com>
2430 * iter.c (gomp_iter_static_next): Round up when computing number
2431 of iterations. Don't bother distributing a remainder equally.
2433 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2434 Don't call srand. Zero b before testing.
2437 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2439 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2440 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2442 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2444 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2445 without !$omp end do, followed immediately by subroutine end.
2447 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2449 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2451 2005-09-22 Richard Henderson <rth@redhat.com>
2453 * critical.c (GOMP_critical_name_start): Change argument to void**.
2454 Reuse the pointer space if the mutex fits.
2455 (GOMP_critical_name_end): Likewise.
2456 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2457 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2458 (GOMP_critical_name_end): Likewise.
2459 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2460 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2462 2005-09-20 Richard Henderson <rth@redhat.com>
2464 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2465 (create_lock_lock): New.
2466 (initialize_critical): Initialize it.
2467 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2468 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2470 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2472 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2474 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2476 * testsuite/libgomp.dg/omp-loop01.c: New test.
2477 * testsuite/libgomp.dg/omp-loop02.c: New test.
2479 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2481 * configure.ac (AC_PROG_FC): Add.
2482 (USE_FORTRAN): New automake conditional.
2483 * configure: Rebuilt.
2484 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2485 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2486 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2487 Add rules to build them.
2488 * Makefile.in: Rebuilt.
2489 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2491 * libgomp.map: Add Fortran wrappers.
2492 * libgomp_f.h.in: New file.
2493 * omp_lib.h.in: New file.
2494 * omp_lib.f90.in: New file.
2495 * fortran.c: New file.
2496 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2497 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2498 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2499 libgfortran has been built.
2500 * testsuite/libgomp.fortran/fortran.exp: New file.
2501 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2502 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2503 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2504 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2505 * testsuite/libgomp.fortran/omp_hello.f: New test.
2506 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2507 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2508 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2509 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2510 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2511 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2512 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2513 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2515 2005-08-30 Richard Henderson <rth@redhat.com>
2517 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2518 function for when aliases are not usable.
2519 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2520 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2521 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2522 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2523 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2524 GOMP_loop_ordered_guided_next): Likewise.
2525 * ordered.c (GOMP_ordered_start): Likewise.
2527 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2529 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2530 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2531 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2532 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2533 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2534 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2535 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2536 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2537 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2539 2005-07-07 Eric Christopher <echristo@redhat.com>
2540 Diego Novillo <dnovillo@redhat.com>
2542 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2543 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2545 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2546 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2547 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2548 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2549 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2550 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2551 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2553 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2555 * TOPLEVEL.patch: Remove.
2557 2005-05-16 Richard Henderson <rth@redhat.com>
2559 * configure.ac: Test for clock_gettime.
2560 * config.h.in, configure: Rebuild.
2561 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2562 (omp_get_wtime): Use clock_gettime if available.
2563 (omp_get_wtick): Use clock_getres if available.
2565 2005-05-11 Richard Henderson <rth@redhat.com>
2567 * config/linux/ia64/futex.h: New file.
2568 * configure.tgt: Use it.
2570 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2572 2005-05-07 Richard Henderson <rth@redhat.com>
2574 * config/linux/powerpc/futex.h: New file.
2575 * configure.tgt: Use it.
2577 * config/linux/i486/futex.h: Merge ...
2578 * config/linux/x86_64/futex.h: ... into ...
2579 * config/linux/x86/futex.h: ... here.
2580 * configure.tgt: Update to match.
2582 2005-05-06 Richard Henderson <rth@redhat.com>
2584 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2585 * config/linux/i486/futex.h: Likewise.
2586 * config/linux/x86_64/futex.h: Likewise.
2588 * config/linux/lock.c: New file.
2589 * config/linux/omp-lock.h: New file.
2591 * critical.c, env.h: Don't include omp.h
2592 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2593 * config/posix/time.c: Likewise.
2594 * config/posix/omp-lock.h: New file.
2595 * libgomp.h: Include omp-lock.h and omp.h.
2596 * Makefile.am (nodist_include_HEADERS): New.
2598 * configure.ac (PERL): New.
2599 * mkomp_h.pl: New file.
2600 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2602 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2604 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2605 build directory. Re-add -march=i486 hack.
2607 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2608 (libgomp_link_flags): Remove.
2609 (libgomp_initialized): Remove.
2610 (libgomp_init): Don't protect from reinitialization. Copy code
2611 from libstdc++ for getting the multilib set correctly.
2613 2005-05-05 Richard Henderson <rth@redhat.com>
2615 * config/linux/alpha/futex.h: New file.
2616 * configure.tgt (alpha*-*-linux*): Use it.
2618 * config/posix/mutex.c: New file.
2619 * config/posix/sem.c: Use libgomp.h.
2621 * configure.tgt (x86_64-linux): Also test CC for -m32.
2622 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2624 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2627 * Makefile.am (SUBDIRS): New.
2628 (libgomp_la_LDFLAGS): Add -lpthread.
2629 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2630 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2632 * libgomp_g.h: New file.
2633 * libgomp.h: Split out all public declarations to libgomp_g.h.
2634 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2635 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2636 * config/linux/sem.h: Likewise.
2637 * config/posix/sem.h: Likewise.
2639 * Makefile.am (AM_LDFLAGS): New.
2640 (libgomp_version_script): Split out from ...
2641 (libgomp_la_LDFLAGS): ... here.
2642 (libgomp_version_info): New.
2643 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2644 (LIBGOMP_ENABLE): New.
2645 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2646 (LIBGOMP_ENABLE_SYMVERS): New.
2647 * configure.ac (AC_INIT): Version 1.0.
2648 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2649 (enable-linux-futex): Likewise. Rename from enable-futex.
2650 (libtool_VERSION): New.
2651 (LIBGOMP_ENABLE_SYMVERS): Use it.
2652 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2653 * Makefile.in, aclocal.m4, configure: Rebuild.
2655 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2656 (gomp_mutex_unlock_slow): Fix typo.
2657 * config/linux/sem.c: Similarly.
2658 (gomp_sem_post_slow): Fix typo.
2659 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2660 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2661 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2663 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2664 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2665 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2666 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2667 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2668 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2669 LDFLAGS. Pull enable_futex check to top-level.
2670 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2671 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2673 First attempt at real configury.
2674 * Makefile, config.h: Remove file.
2675 * Makefile.am, Makefile.in: New file.
2676 * acinclude.m4 aclocal.m4: New file.
2677 * configure.ac, configure.tgt, configure: New file.
2679 * config/posix/lock.c: Rename from sys-lock.c.
2680 * config/posix/mutex.h: Rename from sys-mutex.h.
2681 * config/posix/sem.c: Rename from sys-sem.c.
2682 * config/posix/sem.h: Rename from sys-sem.h.
2683 * config/posix/proc.c: Rename from sys-proc.c.
2684 * config/posix/time.c: Rename from sys-proc.c.
2686 * config/linux/mutex.c: New file.
2687 * config/linux/mutex.h: New file.
2688 * config/linux/sem.c: New file.
2689 * config/linux/sem.h: New file.
2690 * config/linux/i486/futex.h: New file.
2691 * config/linux/x86_64/futex.h: New file.
2693 2005-05-04 Richard Henderson <rth@redhat.com>
2695 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2696 * libgomp.h: Declare them.
2697 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2698 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2700 2005-05-04 Richard Henderson <rth@redhat.com>
2702 * libgomp-1 code drop
2704 2005-05-04 Richard Henderson <rth@redhat.com>
2706 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2707 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2708 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2709 (gomp_iter_static_next): Update.
2710 (gomp_ordered_static_next): Update.
2711 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2712 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2713 totally empty range.
2714 (gomp_loop_ordered_static_next): Refine test for calling
2715 gomp_ordered_static_next.
2716 * testsuite/ordered-1.c: Add case for more threads than iterations.
2718 * iter.c (gomp_iter_runtime_next_locked): Remove.
2719 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2720 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2721 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2722 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2723 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2724 gomp_loop_ordered_guided_next): Downcase name, make static, add
2725 an external alias with the old name.
2726 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2727 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2728 switch and call one of the above static functions.
2729 * libgomp.h: Update.
2731 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2732 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2733 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2734 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2735 GOMP_loop_ordered_guided_start): Update to match.
2736 * sections.c (GOMP_sections_start): Likewise.
2737 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2739 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2740 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2741 Use bounds check instead of modulus.
2742 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2743 (gomp_ordered_last): Don't sync with ordered_owner here.
2744 (gomp_ordered_next): Likewise.
2745 (gomp_ordered_static_loop_next): Likewise.
2746 * loop.c, libgomp.h: Update to match.
2748 * libgomp.h (GOMP_barrier): Declare.
2750 * testsuite/barrier-1.c: New file.
2751 * testsuite/critical-1.c: New file.
2752 * testsuite/ordered-2.c: New file.
2753 * testsuite/ordered-1.c: New file.
2754 * testsuite/sections-1.c: New file.
2755 * testsuite/single-1.c: New file.
2756 * testsuite/Makefile (TESTS): Add them.
2758 2005-05-04 Richard Henderson <rth@redhat.com>
2760 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2761 * loop.c (GOMP_loop_static_start): If not the startup thread,
2762 acquire the mutex to wait for initialization complete.
2763 (GOMP_loop_ordered_static_start): Likewise.
2764 (GOMP_loop_ordered_runtime_start): Likewise.
2765 (GOMP_loop_ordered_static_first): Remove.
2766 (GOMP_loop_ordered_dynamic_first): Remove.
2767 (GOMP_loop_ordered_guided_first): Remove.
2768 (GOMP_loop_ordered_runtime_first): Remove.
2769 * ordered.c (gomp_ordered_loop_first): Post to own release when
2770 we're the first thread.
2771 (gomp_ordered_loop_last): Wait on release if not owner.
2772 (gomp_ordered_loop_next): Likewise.
2773 (gomp_ordered_static_loop_init): New.
2774 (gomp_ordered_static_loop_next): Use ordered_owner.
2775 (GOMP_ordered_start): Likewise.
2776 * work.c (gomp_new_work_share): Initialize ordered_owner.
2778 2005-05-03 Richard Henderson <rth@redhat.com>
2780 * Makefile (OPT): New.
2783 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2784 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2785 * libgomp.h, libgomp.map, NOTES: Update to match.
2787 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2788 Add initialized and thr members.
2789 (gomp_thread_start): Pause when initially spawned to wait for
2790 the whole team to be created.
2791 (gomp_team_start): Release team members at the end.
2793 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2794 (f_foo_1): Use GOMP_loop_end.
2795 (f_foo_2): Use GOMP_loop_end_nowait.
2797 * testsuite/loop-2.c: New file.
2798 * testsuite/Makefile (TESTS): Add it.
2800 2005-05-03 Richard Henderson <rth@redhat.com>
2802 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2803 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2804 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2807 * testsuite/Makefile: New file.
2808 * testsuite/loop-1.c: New file.
2810 2005-05-03 Richard Henderson <rth@redhat.com>
2812 Initial implementation and checkin.