1 2010-07-26 Jakub Jelinek <jakub@redhat.com>
3 * libgomp.texi: Add function keyword to a couple of Fortran
4 interfaces, use integer instead of int for Fortran.
6 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8 * libgomp.texi: Fix spelling and pasto problems throughout.
9 Adjust prototypes to match code.
11 2010-07-24 Tobias Burnus <burnus@net-b.de>
13 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
14 silence -fwhole-file warning.
16 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18 * configure.tgt (*-*-solaris2.[56]*): Removed.
20 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
23 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
24 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
25 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
27 * configure: Regenerate.
28 * config.h.in: Regenerate.
30 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
31 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
32 Add libgomp_version_dep.
33 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
35 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
36 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
37 * Makefile.in: Regenerate.
39 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
40 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
41 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
42 to common block, protected by
43 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
45 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
47 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
49 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
52 * configure: Regenerate.
54 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
58 * configure: Regenerate.
59 * Makefile.in: Regenerate.
60 * testsuite/Makefile.in: Regenerate.
62 2010-04-26 Jakub Jelinek <jakub@redhat.com>
65 * testsuite/libgomp.c/pr43893.c: New test.
66 * testsuite/libgomp.c++/pr43893.C: New test.
68 2010-04-21 Jakub Jelinek <jakub@redhat.com>
71 * testsuite/libgomp.fortran/vla8.f90: New test.
73 2010-04-20 Jakub Jelinek <jakub@redhat.com>
76 * config/linux/affinity.c (gomp_init_affinity): Decrease
77 gomp_available_cpus if affinity mask confines the process to fewer
79 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
80 non-NULL, just return gomp_available_cpus.
83 * sections.c (gomp_sections_init): Initialize ws->mode.
85 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
87 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
88 not unused bar variable.
89 * configure: Regenerate.
91 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
93 * Makefile.in: Regenerate.
94 * aclocal.m4: Regenerate.
95 * testsuite/Makefile.in: Regenerate.
97 2010-03-22 Jakub Jelinek <jakub@redhat.com>
100 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
101 (initialize_env): Adjust callers.
102 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
103 when the argument is 0.
105 * testsuite/libgomp.c/pr42942.c: New test.
107 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
111 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
112 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
114 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
116 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
117 * testsuite/libgomp.c++/task-6.C: Likewise.
119 2010-01-28 Steve Ellcey <sje@cup.hp.com>
121 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
123 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
125 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
126 * configure: Regenerate.
128 2010-01-26 Jakub Jelinek <jakub@redhat.com>
131 * testsuite/libgomp.fortran/allocatable5.f90: New test.
133 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
135 * configure.ac: Test for executability of GFORTRAN.
136 * configure: Regenerate.
138 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
140 * configure: Regenerate.
142 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
145 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
147 2010-01-03 Richard Guenther <rguenther@suse.de>
149 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
151 2009-12-23 Sebastian Pop <sebpop@gmail.com>
153 * testsuite/libgomp.graphite/pr4118.c: New.
155 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
157 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
158 for darwin, protect the test with require-effective-target tls_runtime.
159 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
161 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
164 * testsuite/lib/libgomp.exp: Provide -B options to allow for
165 link spec %s substitutions for static libraries.
167 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
170 * libgomp.graphite/force-parallel-2.c: Reduce array size.
172 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
174 * Makefile.in: Regenerate.
175 * configure: Regenerate.
176 * testsuite/Makefile.in: Regenerate.
178 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
180 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
181 settings for LC_ALL and LANG.
183 2009-11-25 Jakub Jelinek <jakub@redhat.com>
186 * testsuite/libgomp.fortran/pr42162.f90: New test.
188 2009-11-13 Jakub Jelinek <jakub@redhat.com>
191 * testsuite/libgomp.c/pr42029.c: New test.
193 2009-10-26 Jakub Jelinek <jakub@redhat.com>
195 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
196 *s. Accept ld version without text in ()s.
197 * configure: Regenerated.
199 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
201 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
203 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
206 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
207 or a hyphen (happens with fortran language disabled).
208 * configure: Regenerate.
210 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
212 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
213 use sed script portable to Solaris /bin/sed for extracting ld
215 * configure: Regenerate.
217 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
219 * testsuite/libgomp.graphite/bounds.c: New test.
221 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
223 * Makefile.am (libgomp_la_LINK): New.
224 * Makefile.in: Regenerate.
226 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
228 * configure.ac (AC_PREREQ): Bump to 2.64.
230 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
232 * Makefile.am (install-html, install-pdf): Remove.
233 * Makefile.in: Regenerate.
235 * Makefile.in: Regenerate.
236 * aclocal.m4: Regenerate.
237 * config.h.in: Regenerate.
238 * configure: Regenerate.
239 * testsuite/Makefile.in: Regenerate.
241 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
243 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
244 * Makefile.in: Regenerate.
246 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
248 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
249 * Makefile.in: Regenerate.
251 2009-08-19 Tobias Burnus <burnus@net-b.de>
254 omp_lib.h.in: Fix -std=f95 errors.
257 2009-08-14 David Edelsohn <edelsohn@gnu.org>
259 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
260 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
261 * testsuite/libgomp.graphite/graphite.exp: New.
263 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
265 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
268 2009-08-04 David Daney <ddaney@caviumnetworks.com>
270 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
271 needed memory barrier semantics.
272 * config/linux/mips/mutex.h: New file.
274 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
276 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
278 2009-07-16 Joseph Myers <joseph@codesourcery.com>
280 * configure: Regenerate.
282 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
287 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
288 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
289 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
291 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
293 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
294 options when choosing a multilib.
296 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
298 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
299 ld_library_path. Use add_path. Add just find_libgcc_s to
300 ld_library_path, not every libgcc multilib directory.
301 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
302 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
303 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
305 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
307 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
309 * Makefile.am (LTLDFLAGS): Define.
311 * Makefile.in: Regenerate.
313 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
316 * testsuite/libgomp.fortran/fortran.exp: Don't link with
317 libgfortranbegin, check existence of libgfortran.a instead of
320 2009-05-20 Jakub Jelinek <jakub@redhat.com>
323 * team.c (gomp_thread_start): Destroy thr->release semaphore.
324 (gomp_free_pool_helper): Likewise.
326 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
327 Jakub Jelinek <jakub@redhat.com>
330 * testsuite/libgomp.fortran/workshare2.f90: New test.
332 2009-04-09 Nick Clifton <nickc@redhat.com>
334 * iter.c: Change copyright header to refer to version 3 of the
335 GNU General Public License with version 3.1 of the GCC Runtime
336 Library Exception and to point readers at the COPYING3 and
337 COPYING3.RUNTIME files and the FSF's license web page.
339 * barrier.c: Likewise.
340 * config/bsd/proc.c: Likewise.
341 * config/linux/affinity.c: Likewise.
342 * config/linux/alpha/futex.h: Likewise.
343 * config/linux/bar.c: Likewise.
344 * config/linux/bar.h: Likewise.
345 * config/linux/ia64/futex.h: Likewise.
346 * config/linux/ia64/mutex.h: Likewise.
347 * config/linux/lock.c: Likewise.
348 * config/linux/mips/futex.h: Likewise.
349 * config/linux/mutex.c: Likewise.
350 * config/linux/mutex.h: Likewise.
351 * config/linux/powerpc/futex.h: Likewise.
352 * config/linux/proc.c: Likewise.
353 * config/linux/ptrlock.c: Likewise.
354 * config/linux/ptrlock.h: Likewise.
355 * config/linux/s390/futex.h: Likewise.
356 * config/linux/sem.c: Likewise.
357 * config/linux/sem.h: Likewise.
358 * config/linux/sparc/futex.h: Likewise.
359 * config/linux/wait.h: Likewise.
360 * config/linux/x86/futex.h: Likewise.
361 * config/mingw32/proc.c: Likewise.
362 * config/mingw32/time.c: Likewise.
363 * config/posix/affinity.c: Likewise.
364 * config/posix/bar.c: Likewise.
365 * config/posix/bar.h: Likewise.
366 * config/posix/lock.c: Likewise.
367 * config/posix/mutex.h: Likewise.
368 * config/posix/proc.c: Likewise.
369 * config/posix/ptrlock.h: Likewise.
370 * config/posix/sem.c: Likewise.
371 * config/posix/sem.h: Likewise.
372 * config/posix/time.c: Likewise.
373 * config/posix95/lock.c: Likewise.
374 * critical.c: Likewise.
377 * fortran.c: Likewise.
378 * iter_ull.c: Likewise.
379 * libgomp.h: Likewise.
380 * libgomp_f.h.in: Likewise.
381 * libgomp_g.h: Likewise.
383 * loop_ull.c: Likewise.
384 * omp.h.in: Likewise.
385 * omp_lib.f90.in: Likewise.
386 * omp_lib.h.in: Likewise.
387 * ordered.c: Likewise.
388 * parallel.c: Likewise.
389 * sections.c: Likewise.
390 * single.c: Likewise.
395 2009-04-09 Jakub Jelinek <jakub@redhat.com>
397 * testsuite/config/default.exp: Change copyright header to refer to
398 version 3 of the GNU General Public License and to point readers
399 at the COPYING3 file and the FSF's license web page.
401 2009-04-08 Jakub Jelinek <jakub@redhat.com>
404 * libgomp.c++/pr39573.C: New test.
406 2009-04-01 Jakub Jelinek <jakub@redhat.com>
409 * testsuite/libgomp.c/pr39591-1.c: New test.
410 * testsuite/libgomp.c/pr39591-2.c: New test.
411 * testsuite/libgomp.c/pr39591-3.c: New test.
413 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
415 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
416 * testsuite/libgomp.c/atomic-6.c: Ditto.
418 2009-03-23 Jakub Jelinek <jakub@redhat.com>
421 * testsuite/libgomp.c/loop-12.c: New test.
422 * testsuite/libgomp.c/loop-11.c: New test.
423 * testsuite/libgomp.c++/loop-11.C: New test.
424 * testsuite/libgomp.c++/loop-12.C: New test.
425 * testsuite/libgomp.c++/for-8.C: New test.
427 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
429 * configure: Regenerate.
431 2009-02-11 Jakub Jelinek <jakub@redhat.com>
434 * testsuite/libgomp.c/pr39154.c: New test.
436 2009-01-30 Ian Lance Taylor <iant@google.com>
438 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
439 libgomp_ld_is_gold. Get gold version number.
440 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
441 * configure: Rebuild.
443 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
445 * testsuite/lib/libgomp.exp: Add -B option for targets that
446 use libgfortran.a%s in their specs.
448 2009-01-07 Jakub Jelinek <jakub@redhat.com>
451 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
452 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
453 HAVE_AS_SYMVER_DIRECTIVE is not defined.
454 * configure: Regenerated.
455 * config.h.in: Likewise.
457 2008-12-28 Jakub Jelinek <jakub@redhat.com>
460 * testsuite/libgomp.c/pr38650.c: New test.
461 * testsuite/libgomp.c++/pr38650.C: New test.
463 2008-12-27 Jakub Jelinek <jakub@redhat.com>
465 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
467 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
469 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
471 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
473 * configure: Regenerate.
475 2008-12-08 Jakub Jelinek <jakub@redhat.com>
478 * testsuite/libgomp.c/pr36802-1.c: New test.
479 * testsuite/libgomp.c/pr36802-2.c: New test.
480 * testsuite/libgomp.c/pr36802-3.c: New test.
482 2008-12-01 Janis Johnson <janis187@us.ibm.com>
485 * config/linux/powerpc/mutex.h: New.
487 2008-12-01 Jakub Jelinek <jakub@redhat.com>
490 * testsuite/libgomp.c++/for-7.C: New test.
493 * testsuite/libgomp.c++/for-6.C: New test.
495 2008-11-26 Janis Johnson <janis187@us.ibm.com>
498 * testsuite/lib/libgomp.exp: Include new timeout library files.
499 (libgomp_target_compile): Set timeout value from new proc.
501 2008-11-13 Steve Ellcey <sje@cup.hp.com>
504 * config/linux/ia64/mutex.h: New.
506 2008-11-04 Tobias Burnus <burnus@net-b.de>
509 * libgomp.texi (Runtime library routines, environment variables):
510 Update for OpenMP version 3.0.
512 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
513 Steve Ellcey <sje@cup.hp.com>
515 * configure: Regenerate for new libtool.
516 * Makefile.in: Ditto.
517 * testsuite/Makefile.in: Ditto.
519 2008-09-19 Jakub Jelinek <jakub@redhat.com>
520 Andreas Tobler <a.tobler@schweiz.org>
522 * config/bsd/proc.c: New file.
523 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
524 * configure.ac: Check for header <sys/sysctl.h>
525 * configure: Regenerate.
526 * config.h.in: Likewise.
528 2008-09-05 Janis Johnson <janis187@us.ibm.com>
530 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
532 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
534 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
535 * Makefile.in: Regenerated.
536 * testsuite/Makefile.in: Regenerated.
538 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
540 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
541 depend on blddir if blddir exists.
542 (libgomp_target_compile): Likewise.
543 * testsuite/libgomp.c++/c++.exp: Likewise.
544 * testsuite/libgomp.fortran/fortran.exp: Likewise.
546 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
548 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
549 Do not list GPL as Invariant Section.
551 2008-07-28 Ilie Garbacea <ilie@mips.com>
552 Chao-ying Fu <fu@mips.com>
554 * configure.tgt: Enable futex for MIPS.
555 * config/linux/mips/futex.h: New file.
557 2008-07-16 Jakub Jelinek <jakub@redhat.com>
559 * team.c (gomp_team_end): Free team immediately if it has
562 2008-07-08 David Edelsohn <edelsohn@gnu.org>
564 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
565 * testsuite/libgomp.fortran/fortran.exp: Same.
566 * testsuite/libgomp.c/c.exp: Same.
567 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
568 directory to library path first.
570 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
572 * env.c (parse_stacksize): Add cast to avoid warning.
573 (parse_spincount): Likewise.
575 2008-06-27 Jakub Jelinek <jakub@redhat.com>
577 * testsuite/libgomp.c/loop-10.c: New test.
578 * libgomp.c/loop-3.c (main): Add lastprivate clause.
579 * libgomp.c++/loop-6.C (main): Likewise.
582 * testsuite/libgomp.c/debug-1.c: New test.
584 2008-06-19 Jakub Jelinek <jakub@redhat.com>
586 * testsuite/libgomp.c/nqueens-1.c: New test.
589 * testsuite/libgomp.c++/task-7.C: New function.
591 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
593 * configure: Regenerate.
595 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
597 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
598 mutex when HAVE_SYNC_BUILTINS isn't defined.
600 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
602 * libgomp.texi (omp_test_lock): Fix typo.
604 2008-06-12 Tobias Burnus <burnus@net-b.de>
606 * omp_lib.f90.in: Add "implicit none".
608 2008-06-12 Jakub Jelinek <jakub@redhat.com>
611 * testsuite/libgomp.c/reduction-5.c: New test.
613 2008-06-11 Jakub Jelinek <jakub@redhat.com>
615 * libgomp.h (struct gomp_task): Add in_tied_task field.
616 * task.c (gomp_init_task): Initialize it.
617 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
618 unconditionally. Don't call gomp_team_barrier_wake if
619 current task is implicit or if(0) from implicit and number of
620 running tasks is equal to nthreads - 1.
623 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
624 omp_get_team_size_8): Fix pastos.
627 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
628 * configure: Regenerated.
629 * config.h.in: Regenerated.
630 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
633 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
636 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
637 (GOMP_loop_ull_dynamic_start): Likewise.
638 (GOMP_loop_ull_guided_start): Likewise.
639 (GOMP_loop_ull_ordered_static_start): Likewise.
640 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
641 (GOMP_loop_ull_ordered_guided_start): Likewise.
643 2008-06-06 Jakub Jelinek <jakub@redhat.com>
644 Richard Henderson <rth@redhat.com>
645 Ulrich Drepper <drepper@redhat.com>
646 Jakob Blomer <jakob.blomer@ira.uka.de>
648 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
649 Substitute also OMP_*LOCK_25*.
650 * configure: Regenerated.
651 * config.h.in: Regenerated.
652 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
653 ptrlock.c and task.c.
654 * Makefile.in: Regenerated.
655 * testsuite/Makefile.in: Regenerated.
657 * loop_ull.c: New file.
658 * iter_ull.c: New file.
659 * libgomp.h: Include ptrlock.h.
660 (enum gomp_task_kind): New type.
661 (struct gomp_team): Add task_lock, task_queue, task_count,
662 task_running_count, single_count fields. Add
663 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
664 Remove work_share_lock, generation_mask,
665 oldest_live_gen, num_live_gen and init_work_shares fields, add
666 work work_share_list_alloc, work_share_list_free and work_share_chunk
667 fields. Change work_shares from pointer to pointers into an array.
668 Change ordered_release field into gomp_sem_t ** from flexible array
669 member. Add implicit_task and initial_work_shares fields.
670 Move close to the end of the struct.
671 (struct gomp_team_state): Add single_count, last_work_share,
672 active_level and level fields, remove work_share_generation.
673 (gomp_barrier_handle_tasks): New prototype.
674 (gomp_finish_task): New inline function.
675 (struct gomp_work_share): Move chunk_size, end, incr into
676 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
677 next_ll fields. Reshuffle fields. Add next_alloc,
678 next_ws, next_free and inline_ordered_team_ids fields, change
679 ordered_team_ids into pointer from flexible array member.
680 Add mode field. Put lock and next into a different cache line
681 from most of the write-once fields.
682 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
683 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
684 gomp_iter_ull_guided_next): New prototypes.
685 (gomp_new_icv): New prototype.
686 (struct gomp_thread): Add thread_pool and task fields.
687 (struct gomp_thread_pool): New type.
688 (gomp_new_team): New prototype.
689 (gomp_team_start): Change type of last argument.
690 (gomp_new_work_share): Removed.
691 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
692 (gomp_work_share_init_done): New static inline.
693 (gomp_throttled_spin_count_var, gomp_available_cpus,
694 gomp_managed_threads): New extern decls.
695 (gomp_init_task): New prototype.
696 (gomp_spin_count_var): New extern var decl.
697 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
698 or no alias support, or if not PIC.
699 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
700 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
701 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
702 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
703 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
704 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
705 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
706 gomp_test_nest_lock_25): New prototypes.
707 (omp_lock_symver, strong_alias): Define.
708 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
710 (gomp_end_task): New.
711 (struct gomp_task_icv, gomp_global_icv): New.
712 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
713 (struct gomp_task): New.
714 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
715 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
717 (gomp_schedule_type): Reorder enum to match
719 * team.c (struct gomp_thread_start_data): Add thread_pool and task
721 (gomp_thread_start): Add gomp_team_barrier_wait call.
722 For non-nested case remove clearing of docked thread thr fields.
723 Use pool fields instead of global gomp_* variables. Use
724 gomp_barrier_wait_last when needed. Initialize ts.active_level.
725 Create tasks for each member thread.
726 (free_team): Only destroy team barrier, task_lock here and free it.
727 (gomp_free_thread): Free last_team if non-NULL.
728 (gomp_team_end): Call gomp_team_barrier_wait instead of
729 gomp_barrier_wait. For nested case call one extra
730 gomp_barrier_wait. Move here some destruction from free_team.
731 Call free_team on pool->last_team if any, rather than freeing
732 current team. Destroy work_share_list_free_lock ifndef
734 (gomp_new_icv): New function.
735 (gomp_threads, gomp_threads_size, gomp_threads_used,
736 gomp_threads_dock): Removed.
737 (gomp_thread_destructor): New variable.
738 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
740 (gomp_team_start): Create new pool if current thread doesn't have
741 one. Use pool fields instead of global gomp_* variables.
742 Initialize thread_pool field for new threads. Clear single_count.
743 Change last argument from ws to team, don't create
744 new team, set ts.work_share to &team->work_shares[0] and clear
745 ts.last_work_share. Don't clear ts.work_share_generation.
746 If number of threads changed, adjust atomically gomp_managed_threads.
747 Use gomp_init_task instead of gomp_new_task,
748 set thr->task to the corresponding implicit_task array entry.
749 Create tasks for each member thread. Initialize ts.level.
750 (initialize_team): Call pthread_key_create on
751 gomp_thread_destructor.
752 (team_destructor): New function.
754 (gomp_new_team): New function.
755 (free_team): Free gomp_work_share blocks chained through next_alloc,
756 instead of freeing work_shares and destroying work_share_lock.
757 (gomp_team_end): Call gomp_fini_work_share. If number of threads
758 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
759 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
760 of gomp_barrier_wait.
761 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
762 instead of gomp_barrier_wait. Call gomp_work_share_init_done
763 if gomp_work_share_start returned true. Don't unlock ws->lock.
764 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
765 of gomp_barrier_wait.
766 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
767 gomp_work_share_init_done if gomp_work_share_start returned true.
768 Don't unlock ws->lock.
769 * work.c: Include stddef.h.
770 (free_work_share): Use work_share_list_free_lock instead
771 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
772 Call gomp_fini_work_share and then either free ws if orphaned, or
773 put it into work_share_list_free list of the current team.
774 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
776 (gomp_work_share_start, gomp_work_share_end,
777 gomp_work_share_end_nowait): Rewritten.
778 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
779 (openmp_version): Set to 200805.
780 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
781 omp_sched_guided, omp_sched_auto): New parameters.
782 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
783 omp_set_max_active_levels, omp_get_max_active_levels,
784 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
785 omp_get_active_level): New interfaces.
786 * omp_lib.h.in (openmp_version): Set to 200805.
787 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
788 omp_sched_guided, omp_sched_auto): New parameters.
789 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
790 omp_set_max_active_levels, omp_get_max_active_levels,
791 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
792 omp_get_active_level): New externals.
793 * loop.c: Include limits.h.
794 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
796 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
797 Likewise. Use gomp_icv.
798 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
800 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
801 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
802 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
803 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
804 don't unlock ws->lock, otherwise lock it.
805 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
806 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
807 (gomp_parallel_loop_start): Call gomp_new_team instead of
808 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
809 Adjust gomp_team_start caller. Pass 0 as second argument to
810 gomp_resolve_num_threads.
811 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
812 If adding ws->chunk_size nthreads + 1 times after end won't
813 overflow, set ws->mode to 1.
814 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
815 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
816 GOMP_loop_ull_ordered_static_start,
817 GOMP_loop_ull_ordered_dynamic_start,
818 GOMP_loop_ull_ordered_guided_start,
819 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
820 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
821 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
822 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
823 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
825 * libgomp.map: Export lock routines also @@OMP_2.0.
826 (GOMP_loop_ordered_dynamic_first,
827 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
828 GOMP_loop_ordered_static_first): Remove.
829 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
830 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
831 GOMP_loop_ull_ordered_dynamic_next,
832 GOMP_loop_ull_ordered_dynamic_start,
833 GOMP_loop_ull_ordered_guided_next,
834 GOMP_loop_ull_ordered_guided_start,
835 GOMP_loop_ull_ordered_runtime_next,
836 GOMP_loop_ull_ordered_runtime_start,
837 GOMP_loop_ull_ordered_static_next,
838 GOMP_loop_ull_ordered_static_start,
839 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
840 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
841 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
842 (omp_set_schedule, omp_get_schedule,
843 omp_get_thread_limit, omp_set_max_active_levels,
844 omp_get_max_active_levels, omp_get_level,
845 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
846 omp_set_schedule_, omp_set_schedule_8_,
847 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
848 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
849 omp_get_max_active_levels_, omp_get_level_,
850 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
851 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
852 New exports @@OMP_3.0.
853 * omp.h.in (omp_sched_t): New type.
854 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
855 omp_set_max_active_levels, omp_get_max_active_levels,
856 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
857 omp_get_active_level): New prototypes.
858 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
859 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
860 gomp_thread_limit_var, gomp_remaining_threads_count,
861 gomp_remaining_threads_lock): New variables.
862 (parse_spincount): New function.
863 (initialize_env): Call gomp_init_num_threads unconditionally.
864 Initialize gomp_available_cpus. Call parse_spincount,
865 initialize gomp_{,throttled_}spin_count_var
866 depending on presence and value of OMP_WAIT_POLICY and
867 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
868 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
869 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
870 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
871 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
872 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
873 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
874 (gomp_global_icv): New.
875 (parse_schedule): Use it. Parse "auto".
876 (omp_set_num_threads): Use gomp_icv.
877 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
879 (omp_get_max_threads): Move from parallel.c.
880 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
881 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
883 (parse_stacksize, parse_wait_policy): New functions.
884 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
885 both wrappers for compatibility and new locks.
886 (omp_set_schedule, omp_get_schedule,
887 omp_get_thread_limit, omp_set_max_active_levels,
888 omp_get_max_active_levels, omp_get_level,
889 omp_get_ancestor_thread_num, omp_get_team_size,
890 omp_get_active_level): New ialias_redirect.
891 (omp_set_schedule_, omp_set_schedule_8_,
892 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
893 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
894 omp_get_max_active_levels_, omp_get_level_,
895 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
896 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
898 * parallel.c: Include limits.h.
899 (gomp_resolve_num_threads): Add count argument. Rewritten.
900 (GOMP_parallel_start): Call gomp_new_team and pass that as last
901 argument to gomp_team_start. Pass 0 as second argument to
902 gomp_resolve_num_threads.
903 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
904 if gomp_thread_limit_var != ULONG_MAX.
905 (omp_in_parallel): Implement using ts.active_level.
906 (omp_get_max_threads): Move to env.c.
907 (omp_get_level, omp_get_ancestor_thread_num,
908 omp_get_team_size, omp_get_active_level): New functions,
910 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
911 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
912 gomp_iter_dynamic_next instead of the _locked variant and don't take
913 lock around it, otherwise acquire it before calling
914 gomp_iter_dynamic_next_locked.
915 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
916 gomp_iter_dynamic_next instead of the _locked variant and don't take
918 (GOMP_parallel_sections_start): Call gomp_new_team instead of
919 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
920 Adjust gomp_team_start caller. Pass count as second argument to
921 gomp_resolve_num_threads, don't adjust num_threads after the call.
923 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
924 ws->chunk_size by incr.
925 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
927 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
929 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
930 (omp_check_defines): Check even the compat defines.
931 * config/linux/ptrlock.c: New file.
932 * config/linux/ptrlock.h: New file.
933 * config/linux/wait.h: New file.
934 * config/posix/ptrlock.c: New file.
935 * config/posix/ptrlock.h: New file.
936 * config/linux/bar.h (gomp_team_barrier_wait,
937 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
938 (gomp_team_barrier_set_task_pending,
939 gomp_team_barrier_clear_task_pending,
940 gomp_team_barrier_set_waiting_for_tasks,
941 gomp_team_barrier_waiting_for_tasks,
942 gomp_team_barrier_done): New inlines.
943 (gomp_barrier_t): Rewritten.
944 (gomp_barrier_state_t): New typedef.
945 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
946 gomp_barrier_wait_start): Rewritten.
947 (gomp_barrier_wait_end): Change second argument to
948 gomp_barrier_state_t.
949 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
951 * config/linux/bar.c: Include wait.h instead of libgomp.h and
953 (gomp_barrier_wait_end): Rewritten.
954 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
955 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
956 * config/posix/bar.h (gomp_barrier_t): Add generation field.
957 (gomp_barrier_state_t): New typedef.
958 (gomp_team_barrier_wait,
959 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
960 (gomp_barrier_wait_start): Or all but low 2 bits from generation
961 into the return value. Return gomp_barrier_state_t.
962 (gomp_team_barrier_set_task_pending,
963 gomp_team_barrier_clear_task_pending,
964 gomp_team_barrier_set_waiting_for_tasks,
965 gomp_team_barrier_waiting_for_tasks,
966 gomp_team_barrier_done): New inlines.
967 (gomp_barrier_wait_end): Change second argument to
968 gomp_barrier_state_t.
969 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
971 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
972 (gomp_barrier_wait_end): Change second argument to
973 gomp_barrier_state_t.
974 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
975 gomp_team_barrier_wake): New functions.
976 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
978 (gomp_futex_wake, gomp_futex_wait): New variables.
979 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
980 * config/linux/lock.c: Rewrite to make locks task owned,
981 for backwards compatibility provide the old entrypoints
982 if symbol versioning. Include wait.h instead of libgomp.h and
984 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
985 * config/posix95/lock.c: Rewrite to make locks task owned,
986 for backwards compatibility provide the old entrypoints
987 if symbol versioning.
988 * config/posix/lock.c: Rewrite to make locks task owned,
989 for backwards compatibility provide the old entrypoints
990 if symbol versioning.
991 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
992 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
993 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
994 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
995 (sys_futex0): Return error code.
996 (futex_wake, futex_wait): If ENOSYS was returned, clear
997 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
998 (cpu_relax, atomic_write_barrier): New static inlines.
999 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
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/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1004 (sys_futex0): Return error code.
1005 (futex_wake, futex_wait): If ENOSYS was returned, clear
1006 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1007 (cpu_relax, atomic_write_barrier): New static inlines.
1008 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1009 (sys_futex0): Return error code.
1010 (futex_wake, futex_wait): If ENOSYS was returned, clear
1011 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1012 (cpu_relax, atomic_write_barrier): New static inlines.
1013 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1014 (sys_futex0): Return error code.
1015 (futex_wake, futex_wait): If ENOSYS was returned, clear
1016 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1017 (cpu_relax, atomic_write_barrier): New static inlines.
1018 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1019 (sys_futex0): Return error code.
1020 (futex_wake, futex_wait): If ENOSYS was returned, clear
1021 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1022 (cpu_relax, atomic_write_barrier): New static inlines.
1023 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1025 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1026 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1027 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1029 (omp_nest_lock_t): Change owner into void *, add lock field.
1030 * config/posix95/omp-lock.h: Include semaphore.h.
1031 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1032 (omp_lock_t): Use sem_t instead of mutex if semaphores
1034 (omp_nest_lock_t): Likewise. Change owner to void *.
1035 * config/posix/omp-lock.h: Include semaphore.h.
1036 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1037 (omp_lock_t): Use sem_t instead of mutex if semaphores
1039 (omp_nest_lock_t): Likewise. Add owner field.
1041 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1043 * testsuite/libgomp.c/collapse-1.c: New test.
1044 * testsuite/libgomp.c/collapse-2.c: New test.
1045 * testsuite/libgomp.c/collapse-3.c: New test.
1046 * testsuite/libgomp.c/icv-1.c: New test.
1047 * testsuite/libgomp.c/icv-2.c: New test.
1048 * testsuite/libgomp.c/lib-2.c: New test.
1049 * testsuite/libgomp.c/lock-1.c: New test.
1050 * testsuite/libgomp.c/lock-2.c: New test.
1051 * testsuite/libgomp.c/lock-3.c: New test.
1052 * testsuite/libgomp.c/loop-4.c: New test.
1053 * testsuite/libgomp.c/loop-5.c: New test.
1054 * testsuite/libgomp.c/loop-6.c: New test.
1055 * testsuite/libgomp.c/loop-7.c: New test.
1056 * testsuite/libgomp.c/loop-8.c: New test.
1057 * testsuite/libgomp.c/loop-9.c: New test.
1058 * testsuite/libgomp.c/nested-3.c: New test.
1059 * testsuite/libgomp.c/nestedfn-6.c: New test.
1060 * testsuite/libgomp.c/sort-1.c: New test.
1061 * testsuite/libgomp.c/task-1.c: New test.
1062 * testsuite/libgomp.c/task-2.c: New test.
1063 * testsuite/libgomp.c/task-3.c: New test.
1064 * testsuite/libgomp.c/task-4.c: New test.
1065 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1066 to C++ testsuite default compiler options.
1067 * testsuite/libgomp.c++/collapse-1.C: New test.
1068 * testsuite/libgomp.c++/collapse-2.C: New test.
1069 * testsuite/libgomp.c++/ctor-10.C: New test.
1070 * testsuite/libgomp.c++/for-1.C: New test.
1071 * testsuite/libgomp.c++/for-2.C: New test.
1072 * testsuite/libgomp.c++/for-3.C: New test.
1073 * testsuite/libgomp.c++/for-4.C: New test.
1074 * testsuite/libgomp.c++/for-5.C: New test.
1075 * testsuite/libgomp.c++/loop-8.C: New test.
1076 * testsuite/libgomp.c++/loop-9.C: New test.
1077 * testsuite/libgomp.c++/loop-10.C: New test.
1078 * testsuite/libgomp.c++/task-1.C: New test.
1079 * testsuite/libgomp.c++/task-2.C: New test.
1080 * testsuite/libgomp.c++/task-3.C: New test.
1081 * testsuite/libgomp.c++/task-4.C: New test.
1082 * testsuite/libgomp.c++/task-5.C: New test.
1083 * testsuite/libgomp.c++/task-6.C: New test.
1084 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1085 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1086 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1087 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1088 * testsuite/libgomp.fortran/collapse1.f90: New test.
1089 * testsuite/libgomp.fortran/collapse2.f90: New test.
1090 * testsuite/libgomp.fortran/collapse3.f90: New test.
1091 * testsuite/libgomp.fortran/collapse4.f90: New test.
1092 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1093 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1094 * testsuite/libgomp.fortran/lib4.f90: New test.
1095 * testsuite/libgomp.fortran/lock-1.f90: New test.
1096 * testsuite/libgomp.fortran/lock-2.f90: New test.
1097 * testsuite/libgomp.fortran/nested1.f90: New test.
1098 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1099 * testsuite/libgomp.fortran/strassen.f90: New test.
1100 * testsuite/libgomp.fortran/tabs1.f90: New test.
1101 * testsuite/libgomp.fortran/tabs2.f: New test.
1102 * testsuite/libgomp.fortran/task1.f90: New test.
1103 * testsuite/libgomp.fortran/task2.f90: New test.
1104 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1105 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1106 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1107 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1108 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1110 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1113 * testsuite/libgomp.c++/ctor-11.C: New test.
1114 * testsuite/libgomp.c++/ctor-12.C: New test.
1116 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1118 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1120 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1123 * testsuite/libgomp.c/atomic-5.c: New test.
1124 * testsuite/libgomp.c/atomic-6.c: New test.
1125 * testsuite/libgomp.c/autopar-1.c: New test.
1127 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1129 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1130 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1131 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1132 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1133 * configure: Regenerate.
1134 * Makefile.in, testsuite/Makefile.in: Likewise.
1136 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1139 * aclocal.m4: Regenerate.
1140 * configure: Regenerate.
1142 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1145 * testsuite/libgomp.c/atomic-4.c: New test.
1148 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1149 (gomp_iter_guided_next): Likewise.
1150 * testsuite/libgomp.c/pr35625.c: New test.
1152 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1154 * aclocal.m4: Regenerate.
1155 * configure: Likewise.
1156 * Makefile.in: Likewise.
1157 * testsuite/Makefile.in: Likewise.
1159 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1162 * testsuite/libgomp.c++/pr35185.C: New test.
1164 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1167 * testsuite/libgomp.c/pr35549.c: New test.
1169 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1171 * testsuite/libgomp.c/atomic-3.c: New test.
1173 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1176 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1179 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1182 * configure.ac: Add ACX_HEADER_STRING.
1183 * env.c: Include strings.h.
1184 * aclocal.m4: Regenerate.
1185 * config.h.in: Regenerate.
1186 * configure: Regenerate.
1187 * Makefile.in: Regenerate.
1188 * testsuite/Makefile.in: Regenerate.
1190 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1193 * testsuite/libgomp.c/pr35196.c: New test.
1196 * testsuite/libgomp.fortran/pr35130.f90: New test.
1197 * testsuite/libgomp.c/pr35130.c: New test.
1199 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1202 * testsuite/libgomp.c/pr33880.c: New test.
1203 * testsuite/libgomp.fortran/pr33880.f90: New test.
1205 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1207 * configure: Regenerate.
1209 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1211 * configure.ac: Move futex checking into ../config/futex.m4.
1212 * configure: Rebuilt.
1213 * aclocal.m4: Rebuilt.
1214 * Makefile.in: Rebuilt.
1216 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1217 2007-10-15 ../config/tls.m4 change.
1219 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1222 * testsuite/libgomp.c/pr34513.c: New test.
1223 * testsuite/libgomp.c++/pr34513.C: New test.
1225 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1228 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1230 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1232 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1234 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1236 * testsuite/libgomp.c/private-1.c: New test.
1238 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1239 Paolo Bonzini <bonzini@gnu.org>
1241 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1242 instead of 'VPATH ='.
1243 * Makefile.in: Regenerate.
1245 2007-11-23 Matthias Klose <doko@ubuntu.com>
1247 * configure.ac: Adjust makeinfo version check.
1248 * configure: Regenerate.
1250 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1253 * testsuite/libgomp.fortran/pr34020.f90: New test.
1255 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1258 * testsuite/libgomp.c++/atomic-1.C: New test.
1260 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1263 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1264 Make x and y integers rather than (implicit) reals. Add private (j)
1265 clause to the last omp parallel.
1267 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1269 * configure: Regenerate following changes to ../config/tls.m4.
1271 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1273 * testsuite/libgomp.fortran/stack.f90: New test.
1275 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1277 * config/mingw32/proc.c: New file.
1279 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1281 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1282 (main): Use __get_cpuid to get i386 target fetaures.
1283 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1284 (main): Use __get_cpuid to get x86_64 target fetaures.
1286 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1289 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1290 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1292 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1295 * testsuite/libgomp.fortran/pr32550.f90: New test.
1296 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1298 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1300 * aclocal.m4: Regenerated.
1302 2007-07-05 Tobias Burnus <burnus@net-b.de>
1305 * testsuite/libgomp.fortran/pr32359.f90: New.
1307 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1310 * sections.c (GOMP_parallel_sections_start): Only decrease
1311 number of threads to COUNT if dyn_var is true.
1312 * testsuite/libgomp.c/pr32468.c: New test.
1314 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1317 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1319 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1322 * testsuite/libgomp.c/pr32362-1.c: New test.
1323 * testsuite/libgomp.c/pr32362-2.c: New test.
1324 * testsuite/libgomp.c/pr32362-3.c: New test.
1326 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1328 * team.c (gomp_team_start): Fix setting up thread_attr
1331 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1333 * configure: Regenerate.
1335 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1337 * Makefile.in: Regenerate.
1338 * configure: Regenerate.
1339 * aclocal.m4: Regenerate.
1340 * testsuite/Makefile.in: Regenerate.
1342 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1344 * config/linux/proc.c: New file.
1347 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1349 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1351 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1353 2007-04-16 Matthias Klose <doko@debian.org>
1355 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1356 flags if not building with -m64.
1357 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1358 flag for i?86-*-* targets, if current target matches -m64.
1360 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1362 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1363 * Makefile.in: Regenerate.
1365 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1368 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1370 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1372 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1374 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1376 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1377 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1378 (parse_affinity): New function.
1379 (initialize_env): Call it and gomp_init_affinity.
1380 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1381 create new pthread_attr_t and call gomp_init_thread_affinity
1382 on it for each thread before passing the attribute to pthread_create.
1383 * config/linux/affinity.c: New file.
1384 * config/posix/affinity.c: New file.
1385 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1386 * configure: Rebuilt.
1387 * config.h.in: Rebuilt.
1388 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1389 * Makefile.in: Rebuilt.
1391 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1393 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1395 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1396 and use it if found.
1398 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1400 * testsuite/config/default.exp: New file.
1401 * testsuite/lib/libgomp.exp: New file.
1402 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1403 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1404 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1405 (libgomp_load): Remove.
1406 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1407 always_ld_library_path, not ld_library_path. Set additional_flags
1408 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1409 (target_compile): Do not call libgomp_init. Append lang_library_path
1410 and lang_link_flags to options.
1411 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1412 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1414 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1415 always_ld_library_path. Set LD_LIBRARY_PATH here.
1416 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1417 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1418 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1420 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1421 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1422 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1423 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1424 * testsuite/libgomp.c/atomic-10.c: Ditto.
1426 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1428 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1429 dg-final cleanup-modules line.
1430 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1431 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1432 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1433 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1434 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1435 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1436 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1438 2007-03-18 Andreas Schwab <schwab@suse.de>
1440 * acinclude.m4: Adjust regular expression for ld version
1442 * configure: Regenerate.
1444 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1446 * Makefile.am: Add install-pdf target as copied from
1447 automake v1.10 rules.
1448 * Makefile.in: Regenerate
1450 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1453 * configure: Regenerate.
1456 * testsuite/libgomp.c++/pr30703.C: New test.
1458 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1461 2006-07-05 Eric Christopher <echristo@apple.com>
1462 * configure.ac: Depend addition of -pthread on host OS.
1463 * configure: Regenerate.
1465 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1467 * libgomp.texi: Fix spacing after abbreviations.
1469 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1472 * configure.ac: Add check for makeinfo
1473 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1474 if an appropiate version of makeinfo is found.
1475 * aclocal.m4: Regenerated.
1476 * configure: Regenerated.
1477 * Makefile.in: Regenerated.
1478 * testsuite/Makefile.in: Regenerated.
1480 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1483 * libgomp.texi: More about implementation-dependent settings.
1485 2007-01-26 Tobias Burnus <burnus@net-b.de>
1487 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1489 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1492 * testsuite/libgomp.c/pr30494.c: New test.
1494 2007-01-15 Tom Tromey <tromey@redhat.com>
1496 * configure: Rebuilt.
1497 * configure.ac: Fixed comment.
1499 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1501 * libgomp.texi: Document implementation specific default values of
1502 environment variables.
1504 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1507 * libgomp.texi: New file.
1508 * configure.ac: Add --enable-generated-files-in-srcdir option.
1509 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1511 * Makefile.in: Regenerated.
1512 * config.h.in: Regenerated.
1513 * testsuite/Makefile.in: Regenerated.
1516 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1519 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1521 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1523 * configure: Regenerate.
1525 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1528 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1529 start if there shouldn't be any loop iterations.
1530 (gomp_loop_ordered_static_start): Remove start == end test.
1531 * testsuite/libgomp.c/pr29947-1.c: New test.
1532 * testsuite/libgomp.c/pr29947-2.c: New test.
1534 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1536 * configure.tgt: Force initial-exec TLS model on Linux only.
1538 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1540 * configure: Regenerated.
1542 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1544 * env.c (parse_schedule): Reject out of range values.
1545 (parse_unsigned_long): Reject out of range, negative or zero values.
1547 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1550 * testsuite/libgomp.fortran/pr29629.f90: New test.
1552 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1555 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1556 * config/posix95: New directory.
1557 * config/posix95/omp-lock.h: New file.
1558 * config/posix95/lock.c: Likewise.
1560 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1562 * aclocal.m4: Regenerate.
1563 * configure: Regenerate.
1565 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1567 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1570 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1572 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1574 * configure: Regenerate.
1575 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1577 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1581 * testsuite/libgomp.c/nestedfn-4.c: New test.
1582 * testsuite/libgomp.c/nestedfn-5.c: New test.
1583 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1586 * testsuite/libgomp.fortran/condinc1.f: New test.
1587 * testsuite/libgomp.fortran/condinc2.f: New test.
1588 * testsuite/libgomp.fortran/condinc3.f90: New test.
1589 * testsuite/libgomp.fortran/condinc4.f90: New test.
1590 * testsuite/libgomp.fortran/condinc1.inc: New file.
1592 2006-09-18 Tom Tromey <tromey@redhat.com>
1594 * configure: Rebuilt.
1596 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1599 PR preprocessor/14634
1600 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1602 * configure: Regenerate.
1604 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1606 * testsuite/libgomp.fortran/reduction3.f90: Change
1607 -2147483648 to -huge(i)-1 to avoid overflow.
1608 * testsuite/libgomp.fortran/reduction4.f90: Change
1609 Z'ffffffff' to not(0) to avoid overflow.
1611 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1614 * Makefile.am (libsubincludedir): New.
1615 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1616 * Makefile.in: Regenerate.
1618 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1621 * env.c: Include ctype.h.
1622 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1623 leading and/or trailing whitespace and compare strings case
1626 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1629 * testsuite/libgomp.fortran/pr28390.f: New test.
1631 2006-07-05 Eric Christopher <echristo@apple.com>
1633 * configure.ac: Depend addition of -pthread on host OS.
1634 * configure: Regenerate.
1636 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1638 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1639 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1642 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1646 * configure.ac: If neither --enable-linux-futex nor
1647 --disable-linux-futex is passed, determine the default by checking
1648 for compiling and/or running against NPTL. With --enable-linux-futex,
1649 check if SYS_gettid and SYS_futex are defined.
1650 * configure: Rebuilt.
1652 2006-06-14 Richard Henderson <rth@redhat.com>
1655 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1656 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1658 2006-06-09 Richard Henderson <rth@redhat.com>
1660 * env.c (gomp_nthreads_var): Change to unsigned long.
1661 (gomp_run_sched_chunk): Likewise.
1662 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1663 (initialize_env): Initialize gomp_thread_attr.
1664 * libgomp.h (gomp_nthreads_var): Update decl.
1665 (gomp_run_sched_chunk): Likewise.
1666 (gomp_thread_attr): Declare.
1667 * team.c (gomp_thread_attr): Export.
1668 (initialize_team): Don't initialize it.
1670 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1673 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1674 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1676 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1678 * config/mingw32/time.c: New file.
1679 * configure.tgt: Use it.
1681 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1683 * Makefile.am: Add install-html target. Add install-html to .PHONY
1684 * Makefile.in: Regenerate.
1686 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1689 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1690 * testsuite/libgomp.c/critical-1.c: Likewise.
1691 * testsuite/libgomp.c/loop-1.c: Likewise.
1692 * testsuite/libgomp.c/loop-2.c: Likewise.
1693 * testsuite/libgomp.c/single-1.c: Likewise.
1694 * testsuite/libgomp.c/ordered-1.c: Likewise.
1695 * testsuite/libgomp.c/ordered-2.c: Likewise.
1697 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1700 * libgomp.fortran/pr27416-1.f90: New test.
1702 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1705 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1706 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1708 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1711 * testsuite/libgomp.c/pr26943-1.c: New test.
1712 * testsuite/libgomp.c/pr26943-2.c: New test.
1713 * testsuite/libgomp.c/pr26943-3.c: New test.
1714 * testsuite/libgomp.c/pr26943-4.c: New test.
1715 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1716 * testsuite/libgomp.c++/pr26943.C: New test.
1718 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1721 * testsuite/libgomp.c++/pr27337.C: New test.
1723 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1726 * testsuite/libgomp.c/pr26171.c: New test.
1728 2006-04-25 Richard Henderson <rth@redhat.com>
1731 * configure.ac: Use GCC_CHECK_TLS.
1732 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1733 * Makefile.in, aclocal.m4, configure: Regenerate.
1735 2006-04-10 Matthias Klose <doko@debian.org>
1737 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1738 directory names containing underscores.
1740 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1743 * testsuite/libgomp.c++/pr26691.C: New test.
1745 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1747 * testsuite/libgomp.fortran/retval2.f90: New test.
1749 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1751 * testsuite/libgomp.c++: New directory.
1753 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1755 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1756 * config/posix/sem.c: Implement the above.
1758 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1760 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1761 define HAVE_BROKEN_POSIX_SEMAPHORES.
1762 * configure: Rebuilt.
1763 * config.h.in: Rebuilt.
1765 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1768 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1769 for the other pthread check.
1770 * configure: Regenerate.
1771 * config.h.in: Regenerate.
1773 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1777 * Makefile.am (fincludedir): New variable.
1778 (nodist_include_HEADERS): Remove Fortran files.
1779 (nodist_finclude_HEADERS): New variable.
1780 * Makefile.in: Regenerated.
1782 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1784 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1785 Remove tests for returning assumed character length arrays.
1787 2006-02-12 Roger Sayle <roger@eyesopen.com>
1788 John David Anglin <dave@hiauly1.hia.nrc.ca>
1791 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1793 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1795 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1797 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1799 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1800 part of LD_LIBRARY_PATH manually.
1802 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1805 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1808 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1811 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1812 * configure.ac (PERL): Don't set.
1813 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1814 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1815 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1816 * omp.h.in: Wrap the new configure substitutions with @ characters.
1817 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1818 * aclocal.m4, configure, Makefile.in: Regenerate.
1819 * mkomp_h.pl: Delete.
1821 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1824 * configure.ac: Use GCC_HEADER_STDINT.
1825 * libgomp.h: Include gstdint.h.
1826 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1827 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1829 2006-01-24 Richard Henderson <rth@redhat.com>
1832 * configure.ac: Add AM_MAINTAINER_MODE.
1833 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1835 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1837 * Makefile.in: Regenerate.
1838 * testsuite/Makefile.in: Regenerate.
1839 * aclocal.m4: Regenerate.
1841 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1843 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1845 * configure.ac: Add check for loadavg.h.
1846 (link_gomp): Adjust comment.
1847 * configure: Regenerate.
1848 * config.h.in: Regenerate.
1850 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1853 * configure.ac: Remove check for alloca.h.
1854 * configure: Regenerate.
1855 * config.h.in: Regenerate.
1856 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1857 * team.c: Remove use of alloca.h.
1858 Call gomp_alloca instead of alloca.
1860 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1863 * team.c: Add include of alloca.h.
1864 * configure.ac: Add check for alloca.h.
1865 * configure: Regenerate.
1866 * config.h.in: Regenerate.
1868 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1871 * testsuite/libgomp.fortran/pr25219.f90: New test.
1873 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1875 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1876 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1877 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1878 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1879 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1880 testsuite/libgomp.fortran/threadprivate1.f90,
1881 testsuite/libgomp.fortran/threadprivate2.f90,
1882 testsuite/libgomp.fortran/threadprivate3.f90,
1883 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1884 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1885 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1886 effective-target to TLS runtime.
1888 * testsuite/libgomp.fortran/pr25162.f: Require
1889 effective-target TLS runtime.
1891 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1893 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1894 * testsuite/libgomp.c/nestedfn-3.c: New test.
1896 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1899 * testsuite/libgomp.fortran/pr25162.f: New test.
1901 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1903 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1904 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1906 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1908 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1909 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1910 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1911 single.c, team.c, work.c, config/linux/alpha/futex.h,
1912 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1913 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1914 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1915 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1916 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1917 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1918 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1921 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1923 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1924 to nodist_noinst_HEADERS.
1925 * Makefile.in: Rebuilt.
1927 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1928 add integer count field.
1929 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1930 omp_nest_lock_t type change.
1931 (omp_init_nest_lock): Likewise. Initialize count to 0.
1932 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1934 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1936 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1937 Increment count if successful and return the new nesting level.
1938 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1939 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1940 * testsuite/libgomp.c/lib-1.c: New test.
1941 * testsuite/libgomp.fortran/lib1.f90: New test.
1942 * testsuite/libgomp.fortran/lib2.f: New test.
1943 * testsuite/libgomp.fortran/lib3.f: New test.
1945 2005-11-17 Richard Henderson <rth@redhat.com>
1948 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1949 * configure.ac (link_gomp): New. Substitute it.
1950 (AC_CONFIG_FILES): Add libgomp.spec.
1951 * libgomp.spec.in: New file.
1952 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1953 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1955 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1957 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1958 reduction(-:var) behaving the same as reduction(+:var).
1959 * testsuite/libgomp.c/reduction-4.c: New test.
1961 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1963 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1964 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1965 testsuite/libgomp.c/copyin-3.c,
1966 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1967 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1968 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1969 testsuite/libgomp.c++/pr24455.C,
1970 testsuite/libgomp.fortran/threadprivate1.f90,
1971 testsuite/libgomp.fortran/threadprivate2.f90,
1972 testsuite/libgomp.fortran/threadprivate3.f90,
1973 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1974 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1975 testsuite/libgomp.fortran/omp_parse3.f90: Require
1976 effective-target TLS.
1978 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1982 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1985 * team.c (initialize_team): Pass NULL rather than free as
1986 pthread_key_create destructor. Initialize thread specific data
1987 pointer in initial thread to a static local variable rather than
1990 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1992 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1993 its location to ld_library_path.
1995 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1997 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1999 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2001 * testsuite/libgomp.c: Rename from libgomp.dg.
2003 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2005 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2006 threadprivate variable 'i'.
2008 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2010 * config/linux/s390/futex.h: New file.
2011 * configure.tgt: Use it.
2013 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2014 before the parallel.
2016 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2019 * testsuite/libgomp.c++/master-1.C: New test.
2021 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2023 * testsuite/libgomp.dg/copyin-3.c: New test.
2025 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2027 * testsuite/libgomp.fortran/retval1.f90: New test.
2028 * testsuite/libgomp.fortran/vla7.f90: New test.
2030 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2032 * testsuite/libgomp.fortran/vla2.f90: New test.
2033 * testsuite/libgomp.fortran/vla3.f90: New test.
2034 * testsuite/libgomp.fortran/vla4.f90: New test.
2035 * testsuite/libgomp.fortran/vla5.f90: New test.
2036 * testsuite/libgomp.fortran/vla6.f90: New test.
2038 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2040 * config/linux/sparc/futex.h: New file.
2041 * configure.tgt: Use it.
2042 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2044 * critical.c: Include stdlib.h.
2045 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2046 ignoring return value.
2047 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2048 LIBGOMP_CHECK_SYNC_BUILTINS check.
2049 * configure: Rebuilt.
2051 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2053 * testsuite/libgomp.fortran/vla1.f90: New test.
2055 2005-10-31 Richard Henderson <rth@redhat.com>
2057 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2058 setting 's' in different threads.
2060 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2062 * libgomp.h (attribute_hidden, ialias): Define.
2063 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2064 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2065 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2066 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2067 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2068 omp_test_lock, omp_test_nest_lock): Likewise.
2069 * config/linux/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 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2074 omp_get_dynamic, omp_get_nested): Likewise.
2075 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2076 omp_get_thread_num, omp_in_parallel): Likewise.
2077 * fortran.c (ialias_redirect): Define.
2078 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2079 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2080 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2081 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2082 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2083 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2084 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2085 omp_get_wtime): Add ialias_redirect.
2087 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2089 * fortran.c: Include stdlib.h.
2091 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2093 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2094 * Makefile.in: Regenerated.
2096 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2098 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2099 * libgomp_f.h.in (omp_check_defines): New function.
2100 * env.c: Include libgomp_f.h.
2101 (initialize_env): Call omp_check_defines.
2103 * testsuite/libgomp.dg/copyin-2.c: New test.
2104 * testsuite/libgomp.c++/copyin-2.C: New test.
2105 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2107 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2108 * testsuite/libgomp.fortran/sharing2.f90: New test.
2110 * testsuite/libgomp.dg/copyin-1.c: New test.
2111 * testsuite/libgomp.c++/copyin-1.C: New test.
2113 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2115 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2117 * testsuite/libgomp.fortran/workshare1.f90: New test.
2119 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2121 * libgomp.fortran/sharing1.f90: New test.
2123 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2126 * testsuite/libgomp.c++/loop-7.C: New test.
2128 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2130 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2131 * testsuite/libgomp.fortran/reduction6.f90: New test.
2132 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2134 2005-10-23 Richard Henderson <rth@redhat.com>
2136 * testsuite/libgomp.c++/ctor-1.C: New.
2137 * testsuite/libgomp.c++/ctor-2.C: New.
2138 * testsuite/libgomp.c++/ctor-3.C: New.
2139 * testsuite/libgomp.c++/ctor-4.C: New.
2140 * testsuite/libgomp.c++/ctor-5.C: New.
2141 * testsuite/libgomp.c++/ctor-6.C: New.
2142 * testsuite/libgomp.c++/ctor-7.C: New.
2143 * testsuite/libgomp.c++/ctor-8.C: New.
2144 * testsuite/libgomp.c++/ctor-9.C: New.
2146 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2149 * testsuite/libgomp.c++/pr24455-1.C: New test.
2150 * testsuite/libgomp.c++/pr24455.C: New test.
2151 * testsuite/libgomp.dg/pr24455-1.c: New test.
2152 * testsuite/libgomp.dg/pr24455.c: New test.
2154 2005-10-20 Richard Henderson <rth@redhat.com>
2156 * testsuite/libgomp.c++/loop-6.C: New.
2157 * testsuite/libgomp.dg/loop-3.c: New.
2159 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2161 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2163 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2166 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2168 * testsuite/libgomp.fortran/jacobi.f: New test.
2170 2005-10-19 Richard Henderson <rth@redhat.com>
2172 * configure.tgt (i?86-linux): Default to with_arch instead of
2173 CFLAGS. Add -mtune to match target_cpu.
2174 (x86_64-linux): Tune to i686.
2176 * fortran.c (omp_test_nest_lock_): Fix typo.
2178 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2180 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2181 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2182 * testsuite/libgomp.dg/ordered-3.c: New test.
2184 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2185 Remove volatile keyword.
2187 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2188 in COMMON block to avoid warnings on 64-bit targets.
2190 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2192 * testsuite/libgomp.dg/shared-3.c: New test.
2194 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2196 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2197 * testsuite/libgomp.fortran/reduction5.f90: New test.
2199 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2201 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2203 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2204 flush loop now that __sync_synchronize has proper memory barrier.
2205 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2206 Add -ffixed-form to dg-options.
2208 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2210 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2211 from subdirectories.
2212 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2213 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2214 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2215 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2216 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2217 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2218 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2219 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2220 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2221 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2222 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2223 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2224 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2225 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2226 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2227 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2228 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2229 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2230 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2231 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2232 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2233 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2234 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2235 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2236 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2238 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2240 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2241 lang_library_path exists. Use find instead of glob to gather tests.
2242 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2244 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2246 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2247 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2248 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2249 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2250 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2251 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2252 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2253 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2254 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2255 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2256 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2257 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2258 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2260 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2262 * testsuite/libgomp.dg/vla-1.c: New test.
2264 * testsuite/libgomp.fortran/reference2.f90: New test.
2266 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2267 declaration of omp_get_thread_num.
2268 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2271 * testsuite/libgomp.fortran/reduction1.f90: New test.
2272 * testsuite/libgomp.fortran/reduction2.f90: New test.
2273 * testsuite/libgomp.fortran/reduction3.f90: New test.
2274 * testsuite/libgomp.fortran/reduction4.f90: New test.
2276 2005-10-13 Richard Henderson <rth@redhat.com>
2278 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2279 * Makefile.in: Regenerate.
2280 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2281 * libgomp.h: Include bar.h.
2282 (struct gomp_barrier): Remove.
2283 (struct gomp_team): Add barrier. Replace master_barrier with
2284 master_release. Replace threads with ordered_release.
2285 (struct gomp_thread): Replace barrier with release.
2286 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2287 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2288 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2289 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2290 (GOMP_single_copy_end): Likewise.
2291 * team.c (gomp_threads_dock): New.
2292 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2293 (gomp_thread_start): Use gomp_barrier_wait.
2294 (new_team, free_team): Update for gomp_team changes.
2295 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2296 (gomp_team_end): Use gomp_barrier_wait.
2297 (initialize_team): Update for gomp_thread changes.
2298 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2299 (gomp_work_share_end_nowait): Use atomic ops when available.
2300 * config/linux/bar.c, config/linux/bar.h: New files.
2301 * config/posix/bar.c, config/posix/bar.h: New files.
2303 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2305 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2306 * testsuite/libgomp.dg/single-2.c: New test.
2308 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2309 lang_link_flags): Unset, so that they aren't inherited from previously
2312 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2314 2005-10-12 Richard Henderson <rth@redhat.com>
2316 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2317 (libgomp_init): Use lang_test_file, lang_library_path, and
2318 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2320 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2321 (lang_test_file, lang_link_flags): New.
2322 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2324 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2325 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2326 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2327 testsuite/libgomp.c++/parallel-1.C,
2328 testsuite/libgomp.c++/reduction-1.C,
2329 testsuite/libgomp.c++/reduction-2.C,
2330 testsuite/libgomp.c++/reduction-3.C,
2331 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2332 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2333 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2334 New files, largely cribbed from the C testsuite.
2336 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2338 * testsuite/libgomp.fortran/character1.f90: New test.
2339 * testsuite/libgomp.fortran/character2.f90: New test.
2341 * testsuite/libgomp.dg/nested-1.c: New test.
2342 * testsuite/libgomp.dg/nested-2.c: New test.
2343 * testsuite/libgomp.fortran/do1.f90: New test.
2344 * testsuite/libgomp.fortran/do2.f90: New test.
2346 * testsuite/libgomp.fortran/reference1.f90: New test.
2348 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2350 * testsuite/libgomp.dg/reduction-1.c: New test.
2351 * testsuite/libgomp.dg/reduction-2.c: New test.
2352 * testsuite/libgomp.dg/reduction-3.c: New test.
2354 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2356 * testsuite/libgomp.dg/atomic-1.c: New test.
2357 * testsuite/libgomp.dg/atomic-2.c: New test.
2359 2005-10-09 Richard Henderson <rth@redhat.com>
2361 * critical.c (atomic_lock): New.
2362 (initialize_critical): Initialize it.
2363 (GOMP_atomic_start, GOMP_atomic_end): New.
2364 * libgomp.map: Export them.
2365 * libgomp_g.h: Declare them.
2367 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2369 2005-10-02 Richard Henderson <rth@redhat.com>
2371 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2372 to XCFLAGS instead of CFLAGS.
2374 2005-09-30 Richard Henderson <rth@redhat.com>
2376 * configure.ac: Determine whether -pthread or -lpthread is needed.
2377 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2378 * Makefine.in, configure: Rebuild.
2380 2005-09-28 Richard Henderson <rth@redhat.com>
2382 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2383 * testsuite/libgomp.dg/omp-single-3.c: New test.
2385 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2387 * testsuite/libgomp.dg/omp-single-2.c: New test.
2388 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2390 2005-09-27 Richard Henderson <rth@redhat.com>
2392 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2393 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2395 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2397 * testsuite/libgomp.dg/omp-loop03.c: New test.
2399 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2401 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2403 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2405 * testsuite/libgomp.dg/omp-single-1.c: New test.
2406 * testsuite/libgomp.dg/shared-1.c: Return 0.
2407 Add prototype for abort.
2408 * testsuite/libgomp.dg/shared-2.c: Likewise.
2410 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2412 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2415 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2417 * testsuite/libgomp.dg/shared-1.c: New test.
2418 * testsuite/libgomp.dg/shared-2.c: New test.
2420 2005-09-24 Richard Henderson <rth@redhat.com>
2422 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2424 2005-09-24 Richard Henderson <rth@redhat.com>
2426 * iter.c (gomp_iter_static_next): Round up when computing number
2427 of iterations. Don't bother distributing a remainder equally.
2429 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2430 Don't call srand. Zero b before testing.
2433 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2435 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2436 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2438 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2440 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2441 without !$omp end do, followed immediately by subroutine end.
2443 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2445 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2447 2005-09-22 Richard Henderson <rth@redhat.com>
2449 * critical.c (GOMP_critical_name_start): Change argument to void**.
2450 Reuse the pointer space if the mutex fits.
2451 (GOMP_critical_name_end): Likewise.
2452 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2453 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2454 (GOMP_critical_name_end): Likewise.
2455 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2456 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2458 2005-09-20 Richard Henderson <rth@redhat.com>
2460 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2461 (create_lock_lock): New.
2462 (initialize_critical): Initialize it.
2463 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2464 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2466 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2468 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2470 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2472 * testsuite/libgomp.dg/omp-loop01.c: New test.
2473 * testsuite/libgomp.dg/omp-loop02.c: New test.
2475 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2477 * configure.ac (AC_PROG_FC): Add.
2478 (USE_FORTRAN): New automake conditional.
2479 * configure: Rebuilt.
2480 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2481 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2482 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2483 Add rules to build them.
2484 * Makefile.in: Rebuilt.
2485 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2487 * libgomp.map: Add Fortran wrappers.
2488 * libgomp_f.h.in: New file.
2489 * omp_lib.h.in: New file.
2490 * omp_lib.f90.in: New file.
2491 * fortran.c: New file.
2492 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2493 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2494 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2495 libgfortran has been built.
2496 * testsuite/libgomp.fortran/fortran.exp: New file.
2497 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2498 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2499 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2500 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2501 * testsuite/libgomp.fortran/omp_hello.f: New test.
2502 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2503 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2504 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2505 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2506 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2507 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2508 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2509 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2511 2005-08-30 Richard Henderson <rth@redhat.com>
2513 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2514 function for when aliases are not usable.
2515 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2516 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2517 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2518 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2519 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2520 GOMP_loop_ordered_guided_next): Likewise.
2521 * ordered.c (GOMP_ordered_start): Likewise.
2523 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2525 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2526 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2527 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2528 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2529 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2530 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2531 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2532 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2533 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2535 2005-07-07 Eric Christopher <echristo@redhat.com>
2536 Diego Novillo <dnovillo@redhat.com>
2538 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2539 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2541 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2542 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2543 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2544 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2545 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2546 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2547 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2549 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2551 * TOPLEVEL.patch: Remove.
2553 2005-05-16 Richard Henderson <rth@redhat.com>
2555 * configure.ac: Test for clock_gettime.
2556 * config.h.in, configure: Rebuild.
2557 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2558 (omp_get_wtime): Use clock_gettime if available.
2559 (omp_get_wtick): Use clock_getres if available.
2561 2005-05-11 Richard Henderson <rth@redhat.com>
2563 * config/linux/ia64/futex.h: New file.
2564 * configure.tgt: Use it.
2566 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2568 2005-05-07 Richard Henderson <rth@redhat.com>
2570 * config/linux/powerpc/futex.h: New file.
2571 * configure.tgt: Use it.
2573 * config/linux/i486/futex.h: Merge ...
2574 * config/linux/x86_64/futex.h: ... into ...
2575 * config/linux/x86/futex.h: ... here.
2576 * configure.tgt: Update to match.
2578 2005-05-06 Richard Henderson <rth@redhat.com>
2580 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2581 * config/linux/i486/futex.h: Likewise.
2582 * config/linux/x86_64/futex.h: Likewise.
2584 * config/linux/lock.c: New file.
2585 * config/linux/omp-lock.h: New file.
2587 * critical.c, env.h: Don't include omp.h
2588 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2589 * config/posix/time.c: Likewise.
2590 * config/posix/omp-lock.h: New file.
2591 * libgomp.h: Include omp-lock.h and omp.h.
2592 * Makefile.am (nodist_include_HEADERS): New.
2594 * configure.ac (PERL): New.
2595 * mkomp_h.pl: New file.
2596 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2598 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2600 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2601 build directory. Re-add -march=i486 hack.
2603 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2604 (libgomp_link_flags): Remove.
2605 (libgomp_initialized): Remove.
2606 (libgomp_init): Don't protect from reinitialization. Copy code
2607 from libstdc++ for getting the multilib set correctly.
2609 2005-05-05 Richard Henderson <rth@redhat.com>
2611 * config/linux/alpha/futex.h: New file.
2612 * configure.tgt (alpha*-*-linux*): Use it.
2614 * config/posix/mutex.c: New file.
2615 * config/posix/sem.c: Use libgomp.h.
2617 * configure.tgt (x86_64-linux): Also test CC for -m32.
2618 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2620 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2623 * Makefile.am (SUBDIRS): New.
2624 (libgomp_la_LDFLAGS): Add -lpthread.
2625 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2626 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2628 * libgomp_g.h: New file.
2629 * libgomp.h: Split out all public declarations to libgomp_g.h.
2630 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2631 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2632 * config/linux/sem.h: Likewise.
2633 * config/posix/sem.h: Likewise.
2635 * Makefile.am (AM_LDFLAGS): New.
2636 (libgomp_version_script): Split out from ...
2637 (libgomp_la_LDFLAGS): ... here.
2638 (libgomp_version_info): New.
2639 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2640 (LIBGOMP_ENABLE): New.
2641 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2642 (LIBGOMP_ENABLE_SYMVERS): New.
2643 * configure.ac (AC_INIT): Version 1.0.
2644 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2645 (enable-linux-futex): Likewise. Rename from enable-futex.
2646 (libtool_VERSION): New.
2647 (LIBGOMP_ENABLE_SYMVERS): Use it.
2648 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2649 * Makefile.in, aclocal.m4, configure: Rebuild.
2651 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2652 (gomp_mutex_unlock_slow): Fix typo.
2653 * config/linux/sem.c: Similarly.
2654 (gomp_sem_post_slow): Fix typo.
2655 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2656 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2657 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2659 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2660 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2661 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2662 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2663 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2664 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2665 LDFLAGS. Pull enable_futex check to top-level.
2666 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2667 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2669 First attempt at real configury.
2670 * Makefile, config.h: Remove file.
2671 * Makefile.am, Makefile.in: New file.
2672 * acinclude.m4 aclocal.m4: New file.
2673 * configure.ac, configure.tgt, configure: New file.
2675 * config/posix/lock.c: Rename from sys-lock.c.
2676 * config/posix/mutex.h: Rename from sys-mutex.h.
2677 * config/posix/sem.c: Rename from sys-sem.c.
2678 * config/posix/sem.h: Rename from sys-sem.h.
2679 * config/posix/proc.c: Rename from sys-proc.c.
2680 * config/posix/time.c: Rename from sys-proc.c.
2682 * config/linux/mutex.c: New file.
2683 * config/linux/mutex.h: New file.
2684 * config/linux/sem.c: New file.
2685 * config/linux/sem.h: New file.
2686 * config/linux/i486/futex.h: New file.
2687 * config/linux/x86_64/futex.h: New file.
2689 2005-05-04 Richard Henderson <rth@redhat.com>
2691 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2692 * libgomp.h: Declare them.
2693 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2694 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2696 2005-05-04 Richard Henderson <rth@redhat.com>
2698 * libgomp-1 code drop
2700 2005-05-04 Richard Henderson <rth@redhat.com>
2702 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2703 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2704 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2705 (gomp_iter_static_next): Update.
2706 (gomp_ordered_static_next): Update.
2707 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2708 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2709 totally empty range.
2710 (gomp_loop_ordered_static_next): Refine test for calling
2711 gomp_ordered_static_next.
2712 * testsuite/ordered-1.c: Add case for more threads than iterations.
2714 * iter.c (gomp_iter_runtime_next_locked): Remove.
2715 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2716 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2717 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2718 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2719 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2720 gomp_loop_ordered_guided_next): Downcase name, make static, add
2721 an external alias with the old name.
2722 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2723 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2724 switch and call one of the above static functions.
2725 * libgomp.h: Update.
2727 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2728 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2729 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2730 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2731 GOMP_loop_ordered_guided_start): Update to match.
2732 * sections.c (GOMP_sections_start): Likewise.
2733 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2735 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2736 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2737 Use bounds check instead of modulus.
2738 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2739 (gomp_ordered_last): Don't sync with ordered_owner here.
2740 (gomp_ordered_next): Likewise.
2741 (gomp_ordered_static_loop_next): Likewise.
2742 * loop.c, libgomp.h: Update to match.
2744 * libgomp.h (GOMP_barrier): Declare.
2746 * testsuite/barrier-1.c: New file.
2747 * testsuite/critical-1.c: New file.
2748 * testsuite/ordered-2.c: New file.
2749 * testsuite/ordered-1.c: New file.
2750 * testsuite/sections-1.c: New file.
2751 * testsuite/single-1.c: New file.
2752 * testsuite/Makefile (TESTS): Add them.
2754 2005-05-04 Richard Henderson <rth@redhat.com>
2756 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2757 * loop.c (GOMP_loop_static_start): If not the startup thread,
2758 acquire the mutex to wait for initialization complete.
2759 (GOMP_loop_ordered_static_start): Likewise.
2760 (GOMP_loop_ordered_runtime_start): Likewise.
2761 (GOMP_loop_ordered_static_first): Remove.
2762 (GOMP_loop_ordered_dynamic_first): Remove.
2763 (GOMP_loop_ordered_guided_first): Remove.
2764 (GOMP_loop_ordered_runtime_first): Remove.
2765 * ordered.c (gomp_ordered_loop_first): Post to own release when
2766 we're the first thread.
2767 (gomp_ordered_loop_last): Wait on release if not owner.
2768 (gomp_ordered_loop_next): Likewise.
2769 (gomp_ordered_static_loop_init): New.
2770 (gomp_ordered_static_loop_next): Use ordered_owner.
2771 (GOMP_ordered_start): Likewise.
2772 * work.c (gomp_new_work_share): Initialize ordered_owner.
2774 2005-05-03 Richard Henderson <rth@redhat.com>
2776 * Makefile (OPT): New.
2779 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2780 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2781 * libgomp.h, libgomp.map, NOTES: Update to match.
2783 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2784 Add initialized and thr members.
2785 (gomp_thread_start): Pause when initially spawned to wait for
2786 the whole team to be created.
2787 (gomp_team_start): Release team members at the end.
2789 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2790 (f_foo_1): Use GOMP_loop_end.
2791 (f_foo_2): Use GOMP_loop_end_nowait.
2793 * testsuite/loop-2.c: New file.
2794 * testsuite/Makefile (TESTS): Add it.
2796 2005-05-03 Richard Henderson <rth@redhat.com>
2798 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2799 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2800 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2803 * testsuite/Makefile: New file.
2804 * testsuite/loop-1.c: New file.
2806 2005-05-03 Richard Henderson <rth@redhat.com>
2808 Initial implementation and checkin.