1 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
3 * libgomp.texi (Library Index): Renamed from "Index" to prevent
4 conflict with index.html on case-insensitive file systems.
6 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
11 2012-07-02 Richard Guenther <rguenther@suse.de>
12 Michael Matz <matz@suse.de>
13 Tobias Grosser <tobias@grosser.es>
14 Sebastian Pop <sebpop@gmail.com>
16 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
18 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
19 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
21 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
23 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
25 2012-06-22 Richard Guenther <rguenther@suse.de>
27 Merge from graphite branch
28 2012-01-13 Tobias Grosser <tobias@grosser.es>
30 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
31 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
33 2012-06-07 Jakub Jelinek <jakub@redhat.com>
36 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
37 use GOMP_barrier () call instead.
38 * testsuite/libgomp.c/pr26943-3.c: Likewise.
39 * testsuite/libgomp.c/pr26943-4.c: Likewise.
40 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
41 call GOMP_barrier instead.
42 * testsuite/libgomp.fortran/vla5.f90: Likewise.
44 2012-06-06 Jakub Jelinek <jakub@redhat.com>
47 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
48 argument to memset call.
50 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
52 * configure: Regenerated.
54 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
56 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
58 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
61 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
63 2012-03-22 Jakub Jelinek <jakub@redhat.com>
66 * testsuite/libgomp.c/pr52547.c: New test.
68 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
70 * testsuite/lib/libgomp.exp: load fortran-modules.exp
72 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
74 * configure.tgt (mips-sgi-irix6*): Remove.
76 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
78 * configure.tgt (alpha*-dec-osf*): Remove.
80 * config/osf/sem.h: Remove.
81 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
83 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
85 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
87 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
90 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
91 Remove ENABLE_SYMVERS_SOL2.
92 * configure: Regenerate.
93 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
94 (PREPROCESS): New variable.
95 (libgomp.ver): New target.
96 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
97 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
98 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
100 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
101 * Makefile.in: Regenerate.
103 2012-02-14 Walter Lee <walt@tilera.com>
105 * configure.tgt: Handle tilegx and tilepro.
106 * config/linux/tile/futex.h: New file.
108 2012-02-08 Richard Guenther <rguenther@suse.de>
110 PR tree-optimization/46886
111 * testsuite/libgomp.c/pr46886.c: New testcase.
113 2012-01-25 Matthias Klose <doko@ubuntu.com>
115 * config/linux/arm: Remove empty directory.
116 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
118 2011-12-09 Alan Modra <amodra@gmail.com>
121 * task.c (GOMP_taskwait): Don't access task->children outside of
122 task_lock mutex region.
123 (GOMP_task): Likewise.
125 2011-12-06 Jakub Jelinek <jakub@redhat.com>
128 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
130 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
131 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
132 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
133 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
134 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
136 2011-12-02 Alan Modra <amodra@gmail.com>
138 * config/linux/affinity.c: Use atomic rather than sync builtin.
139 * config/linux/lock.c: Likewise.
140 * config/linux/ptrlock.h: Likewise.
141 * config/linux/ptrlock.c: Likewise.
142 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
143 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
144 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
145 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
146 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
147 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
148 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
149 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
150 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
151 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
153 2011-11-30 Alan Modra <amodra@gmail.com>
156 * config/linux/bar.h: Use atomic rather than sync builtins.
157 * config/linux/bar.c: Likewise. Add missing acquire
158 synchronisation on generation field.
159 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
162 2011-11-30 Alan Modra <amodra@gmail.com>
164 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
165 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
166 * config/linux/mutex.h: Use atomic rather than sync builtins.
167 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
168 * config/linux/omp-lock.h: Comment fix.
169 * config/linux/arm/mutex.h: Delete.
170 * config/linux/powerpc/mutex.h: Delete.
171 * config/linux/ia64/mutex.h: Delete.
172 * config/linux/mips/mutex.h: Delete.
174 2011-11-30 Alan Modra <amodra@gmail.com>
177 * config/linux/sem.h: Rewrite.
178 * config/linux/sem.c: Rewrite.
180 2011-11-28 Richard Henderson <rth@redhat.com>
182 * libgomp.h (enum memmodel): New.
184 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
186 * configure: Regenerate.
188 2011-10-10 Matthias Klose <doko@ubuntu.com>
190 * config/posix95: Remove empty directory.
192 2011-08-26 Jakub Jelinek <jakub@redhat.com>
194 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
196 2011-08-19 Jakub Jelinek <jakub@redhat.com>
199 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
200 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
202 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
204 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
206 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
209 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
211 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
213 * config/linux/proc.h: New.
214 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
215 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
216 (gomp_init_num_threads): Update call to cpuset_popcount.
217 (get_num_procs): Ditto.
218 * config/linux/affinity.c (gomp_init_affinity): Call
219 gomp_cpuset_popcount.
221 2011-08-02 Jakub Jelinek <jakub@redhat.com>
225 * omp.h.in (omp_in_final): New prototype.
226 * omp_lib.f90.in (omp_in_final): New interface.
227 (omp_integer_kind, omp_logical_kind): Remove
228 and replace all its uses in the module with 4.
229 (openmp_version): Change to 201107.
230 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
231 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
232 kind for the parameters.
233 (omp_in_final): New external.
234 (openmp_version): Change to 201107.
235 * task.c (omp_in_final): New function.
236 (gomp_init_task): Initialize final_task.
237 (GOMP_task): Remove unused attribute from flags. Handle final
239 (GOMP_taskyield): New function.
240 (omp_in_final): Return true if if (false) or final (true) task
241 or descendant of final (true).
242 * fortran.c (omp_in_final_): New function.
243 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
244 (GOMP_3.0): Export GOMP_taskyield.
245 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
247 (parse_unsigned_long_list): New function.
248 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
249 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
250 even if parse_affinity returned false.
251 * config/linux/affinity.c (gomp_init_affinity): Handle
252 gomp_cpu_affinity_len == 0.
253 * libgomp_g.h (GOMP_taskyield): New prototype.
254 * libgomp.h (struct gomp_task): Add final_task field.
255 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
256 * team.c (gomp_team_start): Override new task's nthreads_var icv
257 if list form OMP_NUM_THREADS has been used and it has value for
258 the new nesting level.
260 * testsuite/libgomp.c/atomic-11.c: New test.
261 * testsuite/libgomp.c/atomic-12.c: New test.
262 * testsuite/libgomp.c/atomic-13.c: New test.
263 * testsuite/libgomp.c/atomic-14.c: New test.
264 * testsuite/libgomp.c/reduction-6.c: New test.
265 * testsuite/libgomp.c/task-5.c: New test.
266 * testsuite/libgomp.c++/atomic-2.C: New test.
267 * testsuite/libgomp.c++/atomic-3.C: New test.
268 * testsuite/libgomp.c++/atomic-4.C: New test.
269 * testsuite/libgomp.c++/atomic-5.C: New test.
270 * testsuite/libgomp.c++/atomic-6.C: New test.
271 * testsuite/libgomp.c++/atomic-7.C: New test.
272 * testsuite/libgomp.c++/atomic-8.C: New test.
273 * testsuite/libgomp.c++/atomic-9.C: New test.
274 * testsuite/libgomp.c++/task-8.C: New test.
275 * testsuite/libgomp.c++/reduction-4.C: New test.
276 * testsuite/libgomp.fortran/allocatable7.f90: New test.
277 * testsuite/libgomp.fortran/allocatable8.f90: New test.
278 * testsuite/libgomp.fortran/crayptr3.f90: New test.
279 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
280 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
281 * testsuite/libgomp.fortran/pointer1.f90: New test.
282 * testsuite/libgomp.fortran/pointer2.f90: New test.
283 * testsuite/libgomp.fortran/task4.f90: New test.
285 2011-08-02 Tobias Burnus <burnus@net-b.de>
287 * libgomp.texi: Update OpenMP spec references to 3.1.
288 (omp_in_final,OMP_PROC_BIND): New sections.
289 (OMP_NUM_THREADS): Document that the value can be now a list.
290 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
292 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
294 * config/linux/x86/futex.h: Check __x86_64__ instead of
297 2011-07-29 Jakub Jelinek <jakub@redhat.com>
301 * testsuite/libgomp.c/pr49897-1.c: New test.
302 * testsuite/libgomp.c/pr49897-2.c: New test.
303 * testsuite/libgomp.c/pr49898-1.c: New test.
304 * testsuite/libgomp.c/pr49898-2.c: New test.
306 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
308 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
309 for ia32 instead of ilp32.
311 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
312 * testsuite/libgomp.c/atomic-6.c: Likewise.
314 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
316 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
317 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
319 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
322 * config/osf/sem.h: New file.
323 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
325 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
328 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
331 2011-07-15 Jakub Jelinek <jakub@redhat.com>
333 * config/linux/wait.h (do_spin): New inline, largely copied
334 from do_wait, just don't do futex_wait here, instead return true if
336 (do_wait): Implement using do_spin.
337 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
339 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
340 __sync_bool_compare_and_swap, pass the oldval to
341 gomp_mutex_lock_slow.
342 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
343 If all mutex contenders are just spinning and not sleeping, don't
344 change state to 2 unnecessarily. Optimize the loop when state has
345 already become 2 to use just one atomic operation per loop instead
347 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
349 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
350 __sync_bool_compare_and_swap, pass the oldval to
351 gomp_mutex_lock_slow.
353 2011-06-22 Jakub Jelinek <jakub@redhat.com>
356 * iter.c (gomp_iter_static_next): For chunk size 0
357 only use n ceil/ nthreads size for the first
358 n % nthreads threads in the team instead of
359 all threads except for the last few ones which
360 get less work or none at all.
361 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
362 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
363 chunk argument, set run_sched_modifier to 0 for static
364 resp. 1 for other kinds. If chunk argument is 0
365 and not static, set value to 1.
367 2011-05-19 Jakub Jelinek <jakub@redhat.com>
370 * testsuite/libgomp.c++/pr49043.C: New test.
373 * testsuite/libgomp.c++/pr48869.C: New test.
375 2011-05-06 Jakub Jelinek <jakub@redhat.com>
378 * fortran.c: Include limits.h.
380 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
382 (omp_set_num_threads_8_, omp_set_schedule_8_,
383 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
384 omp_get_team_size_8_): Use TO_INT macro.
385 * testsuite/libgomp.fortran/pr48894.f90: New test.
387 2011-04-13 Jakub Jelinek <jakub@redhat.com>
390 * testsuite/libgomp.c/pr48591.c: New test.
392 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
395 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
396 * configure: Regenerate.
398 2011-02-27 Jakub Jelinek <jakub@redhat.com>
401 * testsuite/libgomp.fortran/task3.f90: New test.
403 2011-02-24 Tobias Burnus <burnus@net-b.de>
405 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
407 2011-02-23 Jakub Jelinek <jakub@redhat.com>
410 * libgomp.texi (omp_get_wtime): Don't say time in the past
413 2011-02-18 Jakub Jelinek <jakub@redhat.com>
416 * testsuite/libgomp.fortran/fortran.exp: Check for both
417 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
418 but $blddir != "", still append ${blddir}/${lang_library_path}
421 2011-02-16 Tobias Burnus <burnus@net-b.de>
424 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
425 of libquadmath.a before adding its libpath to ldflags.
427 2011-02-14 Jakub Jelinek <jakub@redhat.com>
430 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
431 to FUTEX_WAIT futex syscall.
432 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
434 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
436 * configure: Regenerate.
438 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
441 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
443 2011-01-16 Gerald Pfeifer
445 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
447 2010-12-14 Jakub Jelinek <jakub@redhat.com>
450 * libgomp.fortran/allocatable6.f90: New test.
452 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
454 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
455 * configure: Regenerate.
457 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
461 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
462 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
463 * aclocal.m4: Regenerate.
464 * configure: Regenerate.
465 * Makefile.in: Regenerate.
466 * testsuite/Makefile.in: Regenerate.
468 2010-12-02 Jakub Jelinek <jakub@redhat.com>
471 * libgomp.fortran/pr46753.f90: New test.
474 * env.c (initialize_env): Default to spin count 300000
475 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
479 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
480 at the end if sync builtins aren't supported.
482 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
484 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
486 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
488 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
490 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
492 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
494 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
495 Tobias Burnus <burnus@net-b.de>
499 * configure: Regenerate.
501 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
503 * config/linux/futex.h: New.
504 * config/linux/arm/mutex.h: New.
505 * configure.tgt (arm*-*-linux*): Add config path.
507 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
509 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
511 2010-09-23 Tobias Burnus <burnus@net-b.de>
513 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
514 Change Fortran datatype to LOGICAL.
515 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
516 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
518 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
520 * configure: Regenerate.
522 2010-07-26 Jakub Jelinek <jakub@redhat.com>
524 * libgomp.texi: Add function keyword to a couple of Fortran
525 interfaces, use integer instead of int for Fortran.
527 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
529 * libgomp.texi: Fix spelling and pasto problems throughout.
530 Adjust prototypes to match code.
532 2010-07-24 Tobias Burnus <burnus@net-b.de>
534 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
535 silence -fwhole-file warning.
537 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
539 * configure.tgt (*-*-solaris2.[56]*): Removed.
541 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
543 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
544 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
545 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
546 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
547 targetting solaris2*.
548 * configure: Regenerate.
549 * config.h.in: Regenerate.
551 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
552 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
553 Add libgomp_version_dep.
554 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
556 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
557 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
558 * Makefile.in: Regenerate.
560 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
561 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
562 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
563 to common block, protected by
564 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
566 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
568 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
570 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
573 * configure: Regenerate.
575 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
578 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
579 * configure: Regenerate.
580 * Makefile.in: Regenerate.
581 * testsuite/Makefile.in: Regenerate.
583 2010-04-26 Jakub Jelinek <jakub@redhat.com>
586 * testsuite/libgomp.c/pr43893.c: New test.
587 * testsuite/libgomp.c++/pr43893.C: New test.
589 2010-04-21 Jakub Jelinek <jakub@redhat.com>
592 * testsuite/libgomp.fortran/vla8.f90: New test.
594 2010-04-20 Jakub Jelinek <jakub@redhat.com>
597 * config/linux/affinity.c (gomp_init_affinity): Decrease
598 gomp_available_cpus if affinity mask confines the process to fewer
600 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
601 non-NULL, just return gomp_available_cpus.
604 * sections.c (gomp_sections_init): Initialize ws->mode.
606 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
608 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
609 not unused bar variable.
610 * configure: Regenerate.
612 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
614 * Makefile.in: Regenerate.
615 * aclocal.m4: Regenerate.
616 * testsuite/Makefile.in: Regenerate.
618 2010-03-22 Jakub Jelinek <jakub@redhat.com>
621 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
622 (initialize_env): Adjust callers.
623 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
624 when the argument is 0.
626 * testsuite/libgomp.c/pr42942.c: New test.
628 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
632 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
633 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
635 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
637 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
638 * testsuite/libgomp.c++/task-6.C: Likewise.
640 2010-01-28 Steve Ellcey <sje@cup.hp.com>
642 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
644 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
646 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
647 * configure: Regenerate.
649 2010-01-26 Jakub Jelinek <jakub@redhat.com>
652 * testsuite/libgomp.fortran/allocatable5.f90: New test.
654 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
656 * configure.ac: Test for executability of GFORTRAN.
657 * configure: Regenerate.
659 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
661 * configure: Regenerate.
663 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
666 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
668 2010-01-03 Richard Guenther <rguenther@suse.de>
670 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
672 2009-12-23 Sebastian Pop <sebpop@gmail.com>
674 * testsuite/libgomp.graphite/pr4118.c: New.
676 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
678 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
679 for darwin, protect the test with require-effective-target tls_runtime.
680 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
682 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
685 * testsuite/lib/libgomp.exp: Provide -B options to allow for
686 link spec %s substitutions for static libraries.
688 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
691 * libgomp.graphite/force-parallel-2.c: Reduce array size.
693 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
695 * Makefile.in: Regenerate.
696 * configure: Regenerate.
697 * testsuite/Makefile.in: Regenerate.
699 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
701 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
702 settings for LC_ALL and LANG.
704 2009-11-25 Jakub Jelinek <jakub@redhat.com>
707 * testsuite/libgomp.fortran/pr42162.f90: New test.
709 2009-11-13 Jakub Jelinek <jakub@redhat.com>
712 * testsuite/libgomp.c/pr42029.c: New test.
714 2009-10-26 Jakub Jelinek <jakub@redhat.com>
716 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
717 *s. Accept ld version without text in ()s.
718 * configure: Regenerated.
720 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
722 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
724 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
727 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
728 or a hyphen (happens with fortran language disabled).
729 * configure: Regenerate.
731 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
733 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
734 use sed script portable to Solaris /bin/sed for extracting ld
736 * configure: Regenerate.
738 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
740 * testsuite/libgomp.graphite/bounds.c: New test.
742 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
744 * Makefile.am (libgomp_la_LINK): New.
745 * Makefile.in: Regenerate.
747 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
749 * configure.ac (AC_PREREQ): Bump to 2.64.
751 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
753 * Makefile.am (install-html, install-pdf): Remove.
754 * Makefile.in: Regenerate.
756 * Makefile.in: Regenerate.
757 * aclocal.m4: Regenerate.
758 * config.h.in: Regenerate.
759 * configure: Regenerate.
760 * testsuite/Makefile.in: Regenerate.
762 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
764 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
765 * Makefile.in: Regenerate.
767 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
769 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
770 * Makefile.in: Regenerate.
772 2009-08-19 Tobias Burnus <burnus@net-b.de>
775 omp_lib.h.in: Fix -std=f95 errors.
778 2009-08-14 David Edelsohn <edelsohn@gnu.org>
780 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
781 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
782 * testsuite/libgomp.graphite/graphite.exp: New.
784 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
786 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
789 2009-08-04 David Daney <ddaney@caviumnetworks.com>
791 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
792 needed memory barrier semantics.
793 * config/linux/mips/mutex.h: New file.
795 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
797 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
799 2009-07-16 Joseph Myers <joseph@codesourcery.com>
801 * configure: Regenerate.
803 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
808 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
809 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
810 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
812 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
814 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
815 options when choosing a multilib.
817 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
819 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
820 ld_library_path. Use add_path. Add just find_libgcc_s to
821 ld_library_path, not every libgcc multilib directory.
822 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
823 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
824 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
826 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
828 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
830 * Makefile.am (LTLDFLAGS): Define.
832 * Makefile.in: Regenerate.
834 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
837 * testsuite/libgomp.fortran/fortran.exp: Don't link with
838 libgfortranbegin, check existence of libgfortran.a instead of
841 2009-05-20 Jakub Jelinek <jakub@redhat.com>
844 * team.c (gomp_thread_start): Destroy thr->release semaphore.
845 (gomp_free_pool_helper): Likewise.
847 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
848 Jakub Jelinek <jakub@redhat.com>
851 * testsuite/libgomp.fortran/workshare2.f90: New test.
853 2009-04-09 Nick Clifton <nickc@redhat.com>
855 * iter.c: Change copyright header to refer to version 3 of the
856 GNU General Public License with version 3.1 of the GCC Runtime
857 Library Exception and to point readers at the COPYING3 and
858 COPYING3.RUNTIME files and the FSF's license web page.
860 * barrier.c: Likewise.
861 * config/bsd/proc.c: Likewise.
862 * config/linux/affinity.c: Likewise.
863 * config/linux/alpha/futex.h: Likewise.
864 * config/linux/bar.c: Likewise.
865 * config/linux/bar.h: Likewise.
866 * config/linux/ia64/futex.h: Likewise.
867 * config/linux/ia64/mutex.h: Likewise.
868 * config/linux/lock.c: Likewise.
869 * config/linux/mips/futex.h: Likewise.
870 * config/linux/mutex.c: Likewise.
871 * config/linux/mutex.h: Likewise.
872 * config/linux/powerpc/futex.h: Likewise.
873 * config/linux/proc.c: Likewise.
874 * config/linux/ptrlock.c: Likewise.
875 * config/linux/ptrlock.h: Likewise.
876 * config/linux/s390/futex.h: Likewise.
877 * config/linux/sem.c: Likewise.
878 * config/linux/sem.h: Likewise.
879 * config/linux/sparc/futex.h: Likewise.
880 * config/linux/wait.h: Likewise.
881 * config/linux/x86/futex.h: Likewise.
882 * config/mingw32/proc.c: Likewise.
883 * config/mingw32/time.c: Likewise.
884 * config/posix/affinity.c: Likewise.
885 * config/posix/bar.c: Likewise.
886 * config/posix/bar.h: Likewise.
887 * config/posix/lock.c: Likewise.
888 * config/posix/mutex.h: Likewise.
889 * config/posix/proc.c: Likewise.
890 * config/posix/ptrlock.h: Likewise.
891 * config/posix/sem.c: Likewise.
892 * config/posix/sem.h: Likewise.
893 * config/posix/time.c: Likewise.
894 * config/posix95/lock.c: Likewise.
895 * critical.c: Likewise.
898 * fortran.c: Likewise.
899 * iter_ull.c: Likewise.
900 * libgomp.h: Likewise.
901 * libgomp_f.h.in: Likewise.
902 * libgomp_g.h: Likewise.
904 * loop_ull.c: Likewise.
905 * omp.h.in: Likewise.
906 * omp_lib.f90.in: Likewise.
907 * omp_lib.h.in: Likewise.
908 * ordered.c: Likewise.
909 * parallel.c: Likewise.
910 * sections.c: Likewise.
911 * single.c: Likewise.
916 2009-04-09 Jakub Jelinek <jakub@redhat.com>
918 * testsuite/config/default.exp: Change copyright header to refer to
919 version 3 of the GNU General Public License and to point readers
920 at the COPYING3 file and the FSF's license web page.
922 2009-04-08 Jakub Jelinek <jakub@redhat.com>
925 * libgomp.c++/pr39573.C: New test.
927 2009-04-01 Jakub Jelinek <jakub@redhat.com>
930 * testsuite/libgomp.c/pr39591-1.c: New test.
931 * testsuite/libgomp.c/pr39591-2.c: New test.
932 * testsuite/libgomp.c/pr39591-3.c: New test.
934 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
936 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
937 * testsuite/libgomp.c/atomic-6.c: Ditto.
939 2009-03-23 Jakub Jelinek <jakub@redhat.com>
942 * testsuite/libgomp.c/loop-12.c: New test.
943 * testsuite/libgomp.c/loop-11.c: New test.
944 * testsuite/libgomp.c++/loop-11.C: New test.
945 * testsuite/libgomp.c++/loop-12.C: New test.
946 * testsuite/libgomp.c++/for-8.C: New test.
948 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
950 * configure: Regenerate.
952 2009-02-11 Jakub Jelinek <jakub@redhat.com>
955 * testsuite/libgomp.c/pr39154.c: New test.
957 2009-01-30 Ian Lance Taylor <iant@google.com>
959 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
960 libgomp_ld_is_gold. Get gold version number.
961 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
962 * configure: Rebuild.
964 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
966 * testsuite/lib/libgomp.exp: Add -B option for targets that
967 use libgfortran.a%s in their specs.
969 2009-01-07 Jakub Jelinek <jakub@redhat.com>
972 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
973 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
974 HAVE_AS_SYMVER_DIRECTIVE is not defined.
975 * configure: Regenerated.
976 * config.h.in: Likewise.
978 2008-12-28 Jakub Jelinek <jakub@redhat.com>
981 * testsuite/libgomp.c/pr38650.c: New test.
982 * testsuite/libgomp.c++/pr38650.C: New test.
984 2008-12-27 Jakub Jelinek <jakub@redhat.com>
986 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
988 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
990 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
992 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
994 * configure: Regenerate.
996 2008-12-08 Jakub Jelinek <jakub@redhat.com>
999 * testsuite/libgomp.c/pr36802-1.c: New test.
1000 * testsuite/libgomp.c/pr36802-2.c: New test.
1001 * testsuite/libgomp.c/pr36802-3.c: New test.
1003 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1006 * config/linux/powerpc/mutex.h: New.
1008 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1011 * testsuite/libgomp.c++/for-7.C: New test.
1014 * testsuite/libgomp.c++/for-6.C: New test.
1016 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1019 * testsuite/lib/libgomp.exp: Include new timeout library files.
1020 (libgomp_target_compile): Set timeout value from new proc.
1022 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1025 * config/linux/ia64/mutex.h: New.
1027 2008-11-04 Tobias Burnus <burnus@net-b.de>
1030 * libgomp.texi (Runtime library routines, environment variables):
1031 Update for OpenMP version 3.0.
1033 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1034 Steve Ellcey <sje@cup.hp.com>
1036 * configure: Regenerate for new libtool.
1037 * Makefile.in: Ditto.
1038 * testsuite/Makefile.in: Ditto.
1040 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1041 Andreas Tobler <a.tobler@schweiz.org>
1043 * config/bsd/proc.c: New file.
1044 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1045 * configure.ac: Check for header <sys/sysctl.h>
1046 * configure: Regenerate.
1047 * config.h.in: Likewise.
1049 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1051 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1053 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1055 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1056 * Makefile.in: Regenerated.
1057 * testsuite/Makefile.in: Regenerated.
1059 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1061 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1062 depend on blddir if blddir exists.
1063 (libgomp_target_compile): Likewise.
1064 * testsuite/libgomp.c++/c++.exp: Likewise.
1065 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1067 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1069 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1070 Do not list GPL as Invariant Section.
1072 2008-07-28 Ilie Garbacea <ilie@mips.com>
1073 Chao-ying Fu <fu@mips.com>
1075 * configure.tgt: Enable futex for MIPS.
1076 * config/linux/mips/futex.h: New file.
1078 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1080 * team.c (gomp_team_end): Free team immediately if it has
1083 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1085 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1086 * testsuite/libgomp.fortran/fortran.exp: Same.
1087 * testsuite/libgomp.c/c.exp: Same.
1088 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1089 directory to library path first.
1091 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1093 * env.c (parse_stacksize): Add cast to avoid warning.
1094 (parse_spincount): Likewise.
1096 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1098 * testsuite/libgomp.c/loop-10.c: New test.
1099 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1100 * libgomp.c++/loop-6.C (main): Likewise.
1103 * testsuite/libgomp.c/debug-1.c: New test.
1105 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1107 * testsuite/libgomp.c/nqueens-1.c: New test.
1110 * testsuite/libgomp.c++/task-7.C: New function.
1112 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1114 * configure: Regenerate.
1116 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1118 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1119 mutex when HAVE_SYNC_BUILTINS isn't defined.
1121 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1123 * libgomp.texi (omp_test_lock): Fix typo.
1125 2008-06-12 Tobias Burnus <burnus@net-b.de>
1127 * omp_lib.f90.in: Add "implicit none".
1129 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1132 * testsuite/libgomp.c/reduction-5.c: New test.
1134 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1136 * libgomp.h (struct gomp_task): Add in_tied_task field.
1137 * task.c (gomp_init_task): Initialize it.
1138 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1139 unconditionally. Don't call gomp_team_barrier_wake if
1140 current task is implicit or if(0) from implicit and number of
1141 running tasks is equal to nthreads - 1.
1144 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1145 omp_get_team_size_8): Fix pastos.
1148 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1149 * configure: Regenerated.
1150 * config.h.in: Regenerated.
1151 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1154 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1157 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1158 (GOMP_loop_ull_dynamic_start): Likewise.
1159 (GOMP_loop_ull_guided_start): Likewise.
1160 (GOMP_loop_ull_ordered_static_start): Likewise.
1161 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1162 (GOMP_loop_ull_ordered_guided_start): Likewise.
1164 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1165 Richard Henderson <rth@redhat.com>
1166 Ulrich Drepper <drepper@redhat.com>
1167 Jakob Blomer <jakob.blomer@ira.uka.de>
1169 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1170 Substitute also OMP_*LOCK_25*.
1171 * configure: Regenerated.
1172 * config.h.in: Regenerated.
1173 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1174 ptrlock.c and task.c.
1175 * Makefile.in: Regenerated.
1176 * testsuite/Makefile.in: Regenerated.
1178 * loop_ull.c: New file.
1179 * iter_ull.c: New file.
1180 * libgomp.h: Include ptrlock.h.
1181 (enum gomp_task_kind): New type.
1182 (struct gomp_team): Add task_lock, task_queue, task_count,
1183 task_running_count, single_count fields. Add
1184 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1185 Remove work_share_lock, generation_mask,
1186 oldest_live_gen, num_live_gen and init_work_shares fields, add
1187 work work_share_list_alloc, work_share_list_free and work_share_chunk
1188 fields. Change work_shares from pointer to pointers into an array.
1189 Change ordered_release field into gomp_sem_t ** from flexible array
1190 member. Add implicit_task and initial_work_shares fields.
1191 Move close to the end of the struct.
1192 (struct gomp_team_state): Add single_count, last_work_share,
1193 active_level and level fields, remove work_share_generation.
1194 (gomp_barrier_handle_tasks): New prototype.
1195 (gomp_finish_task): New inline function.
1196 (struct gomp_work_share): Move chunk_size, end, incr into
1197 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1198 next_ll fields. Reshuffle fields. Add next_alloc,
1199 next_ws, next_free and inline_ordered_team_ids fields, change
1200 ordered_team_ids into pointer from flexible array member.
1201 Add mode field. Put lock and next into a different cache line
1202 from most of the write-once fields.
1203 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1204 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1205 gomp_iter_ull_guided_next): New prototypes.
1206 (gomp_new_icv): New prototype.
1207 (struct gomp_thread): Add thread_pool and task fields.
1208 (struct gomp_thread_pool): New type.
1209 (gomp_new_team): New prototype.
1210 (gomp_team_start): Change type of last argument.
1211 (gomp_new_work_share): Removed.
1212 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1213 (gomp_work_share_init_done): New static inline.
1214 (gomp_throttled_spin_count_var, gomp_available_cpus,
1215 gomp_managed_threads): New extern decls.
1216 (gomp_init_task): New prototype.
1217 (gomp_spin_count_var): New extern var decl.
1218 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1219 or no alias support, or if not PIC.
1220 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1221 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1222 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1223 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1224 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1225 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1226 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1227 gomp_test_nest_lock_25): New prototypes.
1228 (omp_lock_symver, strong_alias): Define.
1229 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1231 (gomp_end_task): New.
1232 (struct gomp_task_icv, gomp_global_icv): New.
1233 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1234 (struct gomp_task): New.
1235 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1236 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1238 (gomp_schedule_type): Reorder enum to match
1240 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1242 (gomp_thread_start): Add gomp_team_barrier_wait call.
1243 For non-nested case remove clearing of docked thread thr fields.
1244 Use pool fields instead of global gomp_* variables. Use
1245 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1246 Create tasks for each member thread.
1247 (free_team): Only destroy team barrier, task_lock here and free it.
1248 (gomp_free_thread): Free last_team if non-NULL.
1249 (gomp_team_end): Call gomp_team_barrier_wait instead of
1250 gomp_barrier_wait. For nested case call one extra
1251 gomp_barrier_wait. Move here some destruction from free_team.
1252 Call free_team on pool->last_team if any, rather than freeing
1253 current team. Destroy work_share_list_free_lock ifndef
1255 (gomp_new_icv): New function.
1256 (gomp_threads, gomp_threads_size, gomp_threads_used,
1257 gomp_threads_dock): Removed.
1258 (gomp_thread_destructor): New variable.
1259 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1261 (gomp_team_start): Create new pool if current thread doesn't have
1262 one. Use pool fields instead of global gomp_* variables.
1263 Initialize thread_pool field for new threads. Clear single_count.
1264 Change last argument from ws to team, don't create
1265 new team, set ts.work_share to &team->work_shares[0] and clear
1266 ts.last_work_share. Don't clear ts.work_share_generation.
1267 If number of threads changed, adjust atomically gomp_managed_threads.
1268 Use gomp_init_task instead of gomp_new_task,
1269 set thr->task to the corresponding implicit_task array entry.
1270 Create tasks for each member thread. Initialize ts.level.
1271 (initialize_team): Call pthread_key_create on
1272 gomp_thread_destructor.
1273 (team_destructor): New function.
1274 (new_team): Removed.
1275 (gomp_new_team): New function.
1276 (free_team): Free gomp_work_share blocks chained through next_alloc,
1277 instead of freeing work_shares and destroying work_share_lock.
1278 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1279 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1280 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1281 of gomp_barrier_wait.
1282 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1283 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1284 if gomp_work_share_start returned true. Don't unlock ws->lock.
1285 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1286 of gomp_barrier_wait.
1287 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1288 gomp_work_share_init_done if gomp_work_share_start returned true.
1289 Don't unlock ws->lock.
1290 * work.c: Include stddef.h.
1291 (free_work_share): Use work_share_list_free_lock instead
1292 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1293 Call gomp_fini_work_share and then either free ws if orphaned, or
1294 put it into work_share_list_free list of the current team.
1295 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1297 (gomp_work_share_start, gomp_work_share_end,
1298 gomp_work_share_end_nowait): Rewritten.
1299 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1300 (openmp_version): Set to 200805.
1301 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1302 omp_sched_guided, omp_sched_auto): New parameters.
1303 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1304 omp_set_max_active_levels, omp_get_max_active_levels,
1305 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1306 omp_get_active_level): New interfaces.
1307 * omp_lib.h.in (openmp_version): Set to 200805.
1308 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1309 omp_sched_guided, omp_sched_auto): New parameters.
1310 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1311 omp_set_max_active_levels, omp_get_max_active_levels,
1312 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1313 omp_get_active_level): New externals.
1314 * loop.c: Include limits.h.
1315 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1317 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1318 Likewise. Use gomp_icv.
1319 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1320 ts.static_trip here.
1321 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1322 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1323 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1324 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1325 don't unlock ws->lock, otherwise lock it.
1326 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1327 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1328 (gomp_parallel_loop_start): Call gomp_new_team instead of
1329 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1330 Adjust gomp_team_start caller. Pass 0 as second argument to
1331 gomp_resolve_num_threads.
1332 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1333 If adding ws->chunk_size nthreads + 1 times after end won't
1334 overflow, set ws->mode to 1.
1335 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1336 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1337 GOMP_loop_ull_ordered_static_start,
1338 GOMP_loop_ull_ordered_dynamic_start,
1339 GOMP_loop_ull_ordered_guided_start,
1340 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1341 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1342 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1343 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1344 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1346 * libgomp.map: Export lock routines also @@OMP_2.0.
1347 (GOMP_loop_ordered_dynamic_first,
1348 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1349 GOMP_loop_ordered_static_first): Remove.
1350 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1351 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1352 GOMP_loop_ull_ordered_dynamic_next,
1353 GOMP_loop_ull_ordered_dynamic_start,
1354 GOMP_loop_ull_ordered_guided_next,
1355 GOMP_loop_ull_ordered_guided_start,
1356 GOMP_loop_ull_ordered_runtime_next,
1357 GOMP_loop_ull_ordered_runtime_start,
1358 GOMP_loop_ull_ordered_static_next,
1359 GOMP_loop_ull_ordered_static_start,
1360 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1361 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1362 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1363 (omp_set_schedule, omp_get_schedule,
1364 omp_get_thread_limit, omp_set_max_active_levels,
1365 omp_get_max_active_levels, omp_get_level,
1366 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1367 omp_set_schedule_, omp_set_schedule_8_,
1368 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1369 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1370 omp_get_max_active_levels_, omp_get_level_,
1371 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1372 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1373 New exports @@OMP_3.0.
1374 * omp.h.in (omp_sched_t): New type.
1375 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1376 omp_set_max_active_levels, omp_get_max_active_levels,
1377 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1378 omp_get_active_level): New prototypes.
1379 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1380 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1381 gomp_thread_limit_var, gomp_remaining_threads_count,
1382 gomp_remaining_threads_lock): New variables.
1383 (parse_spincount): New function.
1384 (initialize_env): Call gomp_init_num_threads unconditionally.
1385 Initialize gomp_available_cpus. Call parse_spincount,
1386 initialize gomp_{,throttled_}spin_count_var
1387 depending on presence and value of OMP_WAIT_POLICY and
1388 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1389 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1390 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1391 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1392 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1393 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1394 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1395 (gomp_global_icv): New.
1396 (parse_schedule): Use it. Parse "auto".
1397 (omp_set_num_threads): Use gomp_icv.
1398 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1400 (omp_get_max_threads): Move from parallel.c.
1401 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1402 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1404 (parse_stacksize, parse_wait_policy): New functions.
1405 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1406 both wrappers for compatibility and new locks.
1407 (omp_set_schedule, omp_get_schedule,
1408 omp_get_thread_limit, omp_set_max_active_levels,
1409 omp_get_max_active_levels, omp_get_level,
1410 omp_get_ancestor_thread_num, omp_get_team_size,
1411 omp_get_active_level): New ialias_redirect.
1412 (omp_set_schedule_, omp_set_schedule_8_,
1413 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1414 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1415 omp_get_max_active_levels_, omp_get_level_,
1416 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1417 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1419 * parallel.c: Include limits.h.
1420 (gomp_resolve_num_threads): Add count argument. Rewritten.
1421 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1422 argument to gomp_team_start. Pass 0 as second argument to
1423 gomp_resolve_num_threads.
1424 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1425 if gomp_thread_limit_var != ULONG_MAX.
1426 (omp_in_parallel): Implement using ts.active_level.
1427 (omp_get_max_threads): Move to env.c.
1428 (omp_get_level, omp_get_ancestor_thread_num,
1429 omp_get_team_size, omp_get_active_level): New functions,
1431 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1432 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1433 gomp_iter_dynamic_next instead of the _locked variant and don't take
1434 lock around it, otherwise acquire it before calling
1435 gomp_iter_dynamic_next_locked.
1436 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1437 gomp_iter_dynamic_next instead of the _locked variant and don't take
1439 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1440 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1441 Adjust gomp_team_start caller. Pass count as second argument to
1442 gomp_resolve_num_threads, don't adjust num_threads after the call.
1444 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1445 ws->chunk_size by incr.
1446 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1448 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1450 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1451 (omp_check_defines): Check even the compat defines.
1452 * config/linux/ptrlock.c: New file.
1453 * config/linux/ptrlock.h: New file.
1454 * config/linux/wait.h: New file.
1455 * config/posix/ptrlock.c: New file.
1456 * config/posix/ptrlock.h: New file.
1457 * config/linux/bar.h (gomp_team_barrier_wait,
1458 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1459 (gomp_team_barrier_set_task_pending,
1460 gomp_team_barrier_clear_task_pending,
1461 gomp_team_barrier_set_waiting_for_tasks,
1462 gomp_team_barrier_waiting_for_tasks,
1463 gomp_team_barrier_done): New inlines.
1464 (gomp_barrier_t): Rewritten.
1465 (gomp_barrier_state_t): New typedef.
1466 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1467 gomp_barrier_wait_start): Rewritten.
1468 (gomp_barrier_wait_end): Change second argument to
1469 gomp_barrier_state_t.
1470 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1472 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1474 (gomp_barrier_wait_end): Rewritten.
1475 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1476 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1477 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1478 (gomp_barrier_state_t): New typedef.
1479 (gomp_team_barrier_wait,
1480 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1481 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1482 into the return value. Return gomp_barrier_state_t.
1483 (gomp_team_barrier_set_task_pending,
1484 gomp_team_barrier_clear_task_pending,
1485 gomp_team_barrier_set_waiting_for_tasks,
1486 gomp_team_barrier_waiting_for_tasks,
1487 gomp_team_barrier_done): New inlines.
1488 (gomp_barrier_wait_end): Change second argument to
1489 gomp_barrier_state_t.
1490 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1492 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1493 (gomp_barrier_wait_end): Change second argument to
1494 gomp_barrier_state_t.
1495 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1496 gomp_team_barrier_wake): New functions.
1497 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1499 (gomp_futex_wake, gomp_futex_wait): New variables.
1500 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1501 * config/linux/lock.c: Rewrite to make locks task owned,
1502 for backwards compatibility provide the old entrypoints
1503 if symbol versioning. Include wait.h instead of libgomp.h and
1505 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1506 * config/posix95/lock.c: Rewrite to make locks task owned,
1507 for backwards compatibility provide the old entrypoints
1508 if symbol versioning.
1509 * config/posix/lock.c: Rewrite to make locks task owned,
1510 for backwards compatibility provide the old entrypoints
1511 if symbol versioning.
1512 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1513 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1514 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1515 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1516 (sys_futex0): Return error code.
1517 (futex_wake, futex_wait): If ENOSYS was returned, clear
1518 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1519 (cpu_relax, atomic_write_barrier): New static inlines.
1520 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1521 (futex_wake, futex_wait): If ENOSYS was returned, clear
1522 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1523 (cpu_relax, atomic_write_barrier): New static inlines.
1524 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1525 (sys_futex0): Return error code.
1526 (futex_wake, futex_wait): If ENOSYS was returned, clear
1527 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1528 (cpu_relax, atomic_write_barrier): New static inlines.
1529 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1530 (sys_futex0): Return error code.
1531 (futex_wake, futex_wait): If ENOSYS was returned, clear
1532 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1533 (cpu_relax, atomic_write_barrier): New static inlines.
1534 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1535 (sys_futex0): Return error code.
1536 (futex_wake, futex_wait): If ENOSYS was returned, clear
1537 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1538 (cpu_relax, atomic_write_barrier): New static inlines.
1539 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1540 (sys_futex0): Return error code.
1541 (futex_wake, futex_wait): If ENOSYS was returned, clear
1542 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1543 (cpu_relax, atomic_write_barrier): New static inlines.
1544 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1546 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1547 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1548 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1550 (omp_nest_lock_t): Change owner into void *, add lock field.
1551 * config/posix95/omp-lock.h: Include semaphore.h.
1552 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1553 (omp_lock_t): Use sem_t instead of mutex if semaphores
1555 (omp_nest_lock_t): Likewise. Change owner to void *.
1556 * config/posix/omp-lock.h: Include semaphore.h.
1557 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1558 (omp_lock_t): Use sem_t instead of mutex if semaphores
1560 (omp_nest_lock_t): Likewise. Add owner field.
1562 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1564 * testsuite/libgomp.c/collapse-1.c: New test.
1565 * testsuite/libgomp.c/collapse-2.c: New test.
1566 * testsuite/libgomp.c/collapse-3.c: New test.
1567 * testsuite/libgomp.c/icv-1.c: New test.
1568 * testsuite/libgomp.c/icv-2.c: New test.
1569 * testsuite/libgomp.c/lib-2.c: New test.
1570 * testsuite/libgomp.c/lock-1.c: New test.
1571 * testsuite/libgomp.c/lock-2.c: New test.
1572 * testsuite/libgomp.c/lock-3.c: New test.
1573 * testsuite/libgomp.c/loop-4.c: New test.
1574 * testsuite/libgomp.c/loop-5.c: New test.
1575 * testsuite/libgomp.c/loop-6.c: New test.
1576 * testsuite/libgomp.c/loop-7.c: New test.
1577 * testsuite/libgomp.c/loop-8.c: New test.
1578 * testsuite/libgomp.c/loop-9.c: New test.
1579 * testsuite/libgomp.c/nested-3.c: New test.
1580 * testsuite/libgomp.c/nestedfn-6.c: New test.
1581 * testsuite/libgomp.c/sort-1.c: New test.
1582 * testsuite/libgomp.c/task-1.c: New test.
1583 * testsuite/libgomp.c/task-2.c: New test.
1584 * testsuite/libgomp.c/task-3.c: New test.
1585 * testsuite/libgomp.c/task-4.c: New test.
1586 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1587 to C++ testsuite default compiler options.
1588 * testsuite/libgomp.c++/collapse-1.C: New test.
1589 * testsuite/libgomp.c++/collapse-2.C: New test.
1590 * testsuite/libgomp.c++/ctor-10.C: New test.
1591 * testsuite/libgomp.c++/for-1.C: New test.
1592 * testsuite/libgomp.c++/for-2.C: New test.
1593 * testsuite/libgomp.c++/for-3.C: New test.
1594 * testsuite/libgomp.c++/for-4.C: New test.
1595 * testsuite/libgomp.c++/for-5.C: New test.
1596 * testsuite/libgomp.c++/loop-8.C: New test.
1597 * testsuite/libgomp.c++/loop-9.C: New test.
1598 * testsuite/libgomp.c++/loop-10.C: New test.
1599 * testsuite/libgomp.c++/task-1.C: New test.
1600 * testsuite/libgomp.c++/task-2.C: New test.
1601 * testsuite/libgomp.c++/task-3.C: New test.
1602 * testsuite/libgomp.c++/task-4.C: New test.
1603 * testsuite/libgomp.c++/task-5.C: New test.
1604 * testsuite/libgomp.c++/task-6.C: New test.
1605 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1606 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1607 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1608 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1609 * testsuite/libgomp.fortran/collapse1.f90: New test.
1610 * testsuite/libgomp.fortran/collapse2.f90: New test.
1611 * testsuite/libgomp.fortran/collapse3.f90: New test.
1612 * testsuite/libgomp.fortran/collapse4.f90: New test.
1613 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1614 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1615 * testsuite/libgomp.fortran/lib4.f90: New test.
1616 * testsuite/libgomp.fortran/lock-1.f90: New test.
1617 * testsuite/libgomp.fortran/lock-2.f90: New test.
1618 * testsuite/libgomp.fortran/nested1.f90: New test.
1619 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1620 * testsuite/libgomp.fortran/strassen.f90: New test.
1621 * testsuite/libgomp.fortran/tabs1.f90: New test.
1622 * testsuite/libgomp.fortran/tabs2.f: New test.
1623 * testsuite/libgomp.fortran/task1.f90: New test.
1624 * testsuite/libgomp.fortran/task2.f90: New test.
1625 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1626 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1627 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1628 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1629 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1631 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1634 * testsuite/libgomp.c++/ctor-11.C: New test.
1635 * testsuite/libgomp.c++/ctor-12.C: New test.
1637 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1639 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1641 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1644 * testsuite/libgomp.c/atomic-5.c: New test.
1645 * testsuite/libgomp.c/atomic-6.c: New test.
1646 * testsuite/libgomp.c/autopar-1.c: New test.
1648 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1650 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1651 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1652 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1653 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1654 * configure: Regenerate.
1655 * Makefile.in, testsuite/Makefile.in: Likewise.
1657 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1660 * aclocal.m4: Regenerate.
1661 * configure: Regenerate.
1663 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1666 * testsuite/libgomp.c/atomic-4.c: New test.
1669 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1670 (gomp_iter_guided_next): Likewise.
1671 * testsuite/libgomp.c/pr35625.c: New test.
1673 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1675 * aclocal.m4: Regenerate.
1676 * configure: Likewise.
1677 * Makefile.in: Likewise.
1678 * testsuite/Makefile.in: Likewise.
1680 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1683 * testsuite/libgomp.c++/pr35185.C: New test.
1685 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1688 * testsuite/libgomp.c/pr35549.c: New test.
1690 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1692 * testsuite/libgomp.c/atomic-3.c: New test.
1694 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1697 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1700 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1703 * configure.ac: Add ACX_HEADER_STRING.
1704 * env.c: Include strings.h.
1705 * aclocal.m4: Regenerate.
1706 * config.h.in: Regenerate.
1707 * configure: Regenerate.
1708 * Makefile.in: Regenerate.
1709 * testsuite/Makefile.in: Regenerate.
1711 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1714 * testsuite/libgomp.c/pr35196.c: New test.
1717 * testsuite/libgomp.fortran/pr35130.f90: New test.
1718 * testsuite/libgomp.c/pr35130.c: New test.
1720 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1723 * testsuite/libgomp.c/pr33880.c: New test.
1724 * testsuite/libgomp.fortran/pr33880.f90: New test.
1726 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1728 * configure: Regenerate.
1730 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1732 * configure.ac: Move futex checking into ../config/futex.m4.
1733 * configure: Rebuilt.
1734 * aclocal.m4: Rebuilt.
1735 * Makefile.in: Rebuilt.
1737 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1738 2007-10-15 ../config/tls.m4 change.
1740 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1743 * testsuite/libgomp.c/pr34513.c: New test.
1744 * testsuite/libgomp.c++/pr34513.C: New test.
1746 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1749 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1751 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1753 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1755 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1757 * testsuite/libgomp.c/private-1.c: New test.
1759 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1760 Paolo Bonzini <bonzini@gnu.org>
1762 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1763 instead of 'VPATH ='.
1764 * Makefile.in: Regenerate.
1766 2007-11-23 Matthias Klose <doko@ubuntu.com>
1768 * configure.ac: Adjust makeinfo version check.
1769 * configure: Regenerate.
1771 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1774 * testsuite/libgomp.fortran/pr34020.f90: New test.
1776 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1779 * testsuite/libgomp.c++/atomic-1.C: New test.
1781 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1784 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1785 Make x and y integers rather than (implicit) reals. Add private (j)
1786 clause to the last omp parallel.
1788 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1790 * configure: Regenerate following changes to ../config/tls.m4.
1792 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1794 * testsuite/libgomp.fortran/stack.f90: New test.
1796 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1798 * config/mingw32/proc.c: New file.
1800 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1802 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1803 (main): Use __get_cpuid to get i386 target fetaures.
1804 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1805 (main): Use __get_cpuid to get x86_64 target fetaures.
1807 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1810 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1811 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1813 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1816 * testsuite/libgomp.fortran/pr32550.f90: New test.
1817 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1819 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1821 * aclocal.m4: Regenerated.
1823 2007-07-05 Tobias Burnus <burnus@net-b.de>
1826 * testsuite/libgomp.fortran/pr32359.f90: New.
1828 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1831 * sections.c (GOMP_parallel_sections_start): Only decrease
1832 number of threads to COUNT if dyn_var is true.
1833 * testsuite/libgomp.c/pr32468.c: New test.
1835 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1838 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1840 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1843 * testsuite/libgomp.c/pr32362-1.c: New test.
1844 * testsuite/libgomp.c/pr32362-2.c: New test.
1845 * testsuite/libgomp.c/pr32362-3.c: New test.
1847 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1849 * team.c (gomp_team_start): Fix setting up thread_attr
1852 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1854 * configure: Regenerate.
1856 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1858 * Makefile.in: Regenerate.
1859 * configure: Regenerate.
1860 * aclocal.m4: Regenerate.
1861 * testsuite/Makefile.in: Regenerate.
1863 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1865 * config/linux/proc.c: New file.
1868 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1870 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1872 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1874 2007-04-16 Matthias Klose <doko@debian.org>
1876 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1877 flags if not building with -m64.
1878 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1879 flag for i?86-*-* targets, if current target matches -m64.
1881 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1883 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1884 * Makefile.in: Regenerate.
1886 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1889 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1891 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1893 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1895 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1897 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1898 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1899 (parse_affinity): New function.
1900 (initialize_env): Call it and gomp_init_affinity.
1901 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1902 create new pthread_attr_t and call gomp_init_thread_affinity
1903 on it for each thread before passing the attribute to pthread_create.
1904 * config/linux/affinity.c: New file.
1905 * config/posix/affinity.c: New file.
1906 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1907 * configure: Rebuilt.
1908 * config.h.in: Rebuilt.
1909 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1910 * Makefile.in: Rebuilt.
1912 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1914 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1916 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1917 and use it if found.
1919 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1921 * testsuite/config/default.exp: New file.
1922 * testsuite/lib/libgomp.exp: New file.
1923 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1924 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1925 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1926 (libgomp_load): Remove.
1927 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1928 always_ld_library_path, not ld_library_path. Set additional_flags
1929 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1930 (target_compile): Do not call libgomp_init. Append lang_library_path
1931 and lang_link_flags to options.
1932 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1933 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1935 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1936 always_ld_library_path. Set LD_LIBRARY_PATH here.
1937 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1938 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1939 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1941 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1942 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1943 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1944 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1945 * testsuite/libgomp.c/atomic-10.c: Ditto.
1947 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1949 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1950 dg-final cleanup-modules line.
1951 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1952 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1953 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1954 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1955 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1956 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1957 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1959 2007-03-18 Andreas Schwab <schwab@suse.de>
1961 * acinclude.m4: Adjust regular expression for ld version
1963 * configure: Regenerate.
1965 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1967 * Makefile.am: Add install-pdf target as copied from
1968 automake v1.10 rules.
1969 * Makefile.in: Regenerate
1971 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1974 * configure: Regenerate.
1977 * testsuite/libgomp.c++/pr30703.C: New test.
1979 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1982 2006-07-05 Eric Christopher <echristo@apple.com>
1983 * configure.ac: Depend addition of -pthread on host OS.
1984 * configure: Regenerate.
1986 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1988 * libgomp.texi: Fix spacing after abbreviations.
1990 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1993 * configure.ac: Add check for makeinfo
1994 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1995 if an appropiate version of makeinfo is found.
1996 * aclocal.m4: Regenerated.
1997 * configure: Regenerated.
1998 * Makefile.in: Regenerated.
1999 * testsuite/Makefile.in: Regenerated.
2001 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2004 * libgomp.texi: More about implementation-dependent settings.
2006 2007-01-26 Tobias Burnus <burnus@net-b.de>
2008 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2010 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2013 * testsuite/libgomp.c/pr30494.c: New test.
2015 2007-01-15 Tom Tromey <tromey@redhat.com>
2017 * configure: Rebuilt.
2018 * configure.ac: Fixed comment.
2020 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2022 * libgomp.texi: Document implementation specific default values of
2023 environment variables.
2025 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2028 * libgomp.texi: New file.
2029 * configure.ac: Add --enable-generated-files-in-srcdir option.
2030 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2032 * Makefile.in: Regenerated.
2033 * config.h.in: Regenerated.
2034 * testsuite/Makefile.in: Regenerated.
2037 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2040 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2042 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2044 * configure: Regenerate.
2046 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2049 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2050 start if there shouldn't be any loop iterations.
2051 (gomp_loop_ordered_static_start): Remove start == end test.
2052 * testsuite/libgomp.c/pr29947-1.c: New test.
2053 * testsuite/libgomp.c/pr29947-2.c: New test.
2055 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2057 * configure.tgt: Force initial-exec TLS model on Linux only.
2059 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2061 * configure: Regenerated.
2063 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2065 * env.c (parse_schedule): Reject out of range values.
2066 (parse_unsigned_long): Reject out of range, negative or zero values.
2068 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2071 * testsuite/libgomp.fortran/pr29629.f90: New test.
2073 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2076 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2077 * config/posix95: New directory.
2078 * config/posix95/omp-lock.h: New file.
2079 * config/posix95/lock.c: Likewise.
2081 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2083 * aclocal.m4: Regenerate.
2084 * configure: Regenerate.
2086 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2088 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2091 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2093 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2095 * configure: Regenerate.
2096 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2098 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2102 * testsuite/libgomp.c/nestedfn-4.c: New test.
2103 * testsuite/libgomp.c/nestedfn-5.c: New test.
2104 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2107 * testsuite/libgomp.fortran/condinc1.f: New test.
2108 * testsuite/libgomp.fortran/condinc2.f: New test.
2109 * testsuite/libgomp.fortran/condinc3.f90: New test.
2110 * testsuite/libgomp.fortran/condinc4.f90: New test.
2111 * testsuite/libgomp.fortran/condinc1.inc: New file.
2113 2006-09-18 Tom Tromey <tromey@redhat.com>
2115 * configure: Rebuilt.
2117 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2120 PR preprocessor/14634
2121 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2123 * configure: Regenerate.
2125 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2127 * testsuite/libgomp.fortran/reduction3.f90: Change
2128 -2147483648 to -huge(i)-1 to avoid overflow.
2129 * testsuite/libgomp.fortran/reduction4.f90: Change
2130 Z'ffffffff' to not(0) to avoid overflow.
2132 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2135 * Makefile.am (libsubincludedir): New.
2136 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2137 * Makefile.in: Regenerate.
2139 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2142 * env.c: Include ctype.h.
2143 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2144 leading and/or trailing whitespace and compare strings case
2147 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2150 * testsuite/libgomp.fortran/pr28390.f: New test.
2152 2006-07-05 Eric Christopher <echristo@apple.com>
2154 * configure.ac: Depend addition of -pthread on host OS.
2155 * configure: Regenerate.
2157 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2159 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2160 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2163 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2167 * configure.ac: If neither --enable-linux-futex nor
2168 --disable-linux-futex is passed, determine the default by checking
2169 for compiling and/or running against NPTL. With --enable-linux-futex,
2170 check if SYS_gettid and SYS_futex are defined.
2171 * configure: Rebuilt.
2173 2006-06-14 Richard Henderson <rth@redhat.com>
2176 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2177 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2179 2006-06-09 Richard Henderson <rth@redhat.com>
2181 * env.c (gomp_nthreads_var): Change to unsigned long.
2182 (gomp_run_sched_chunk): Likewise.
2183 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2184 (initialize_env): Initialize gomp_thread_attr.
2185 * libgomp.h (gomp_nthreads_var): Update decl.
2186 (gomp_run_sched_chunk): Likewise.
2187 (gomp_thread_attr): Declare.
2188 * team.c (gomp_thread_attr): Export.
2189 (initialize_team): Don't initialize it.
2191 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2194 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2195 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2197 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2199 * config/mingw32/time.c: New file.
2200 * configure.tgt: Use it.
2202 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2204 * Makefile.am: Add install-html target. Add install-html to .PHONY
2205 * Makefile.in: Regenerate.
2207 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2210 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2211 * testsuite/libgomp.c/critical-1.c: Likewise.
2212 * testsuite/libgomp.c/loop-1.c: Likewise.
2213 * testsuite/libgomp.c/loop-2.c: Likewise.
2214 * testsuite/libgomp.c/single-1.c: Likewise.
2215 * testsuite/libgomp.c/ordered-1.c: Likewise.
2216 * testsuite/libgomp.c/ordered-2.c: Likewise.
2218 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2221 * libgomp.fortran/pr27416-1.f90: New test.
2223 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2226 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2227 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2229 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2232 * testsuite/libgomp.c/pr26943-1.c: New test.
2233 * testsuite/libgomp.c/pr26943-2.c: New test.
2234 * testsuite/libgomp.c/pr26943-3.c: New test.
2235 * testsuite/libgomp.c/pr26943-4.c: New test.
2236 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2237 * testsuite/libgomp.c++/pr26943.C: New test.
2239 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2242 * testsuite/libgomp.c++/pr27337.C: New test.
2244 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2247 * testsuite/libgomp.c/pr26171.c: New test.
2249 2006-04-25 Richard Henderson <rth@redhat.com>
2252 * configure.ac: Use GCC_CHECK_TLS.
2253 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2254 * Makefile.in, aclocal.m4, configure: Regenerate.
2256 2006-04-10 Matthias Klose <doko@debian.org>
2258 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2259 directory names containing underscores.
2261 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2264 * testsuite/libgomp.c++/pr26691.C: New test.
2266 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2268 * testsuite/libgomp.fortran/retval2.f90: New test.
2270 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2272 * testsuite/libgomp.c++: New directory.
2274 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2276 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2277 * config/posix/sem.c: Implement the above.
2279 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2281 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2282 define HAVE_BROKEN_POSIX_SEMAPHORES.
2283 * configure: Rebuilt.
2284 * config.h.in: Rebuilt.
2286 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2289 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2290 for the other pthread check.
2291 * configure: Regenerate.
2292 * config.h.in: Regenerate.
2294 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2298 * Makefile.am (fincludedir): New variable.
2299 (nodist_include_HEADERS): Remove Fortran files.
2300 (nodist_finclude_HEADERS): New variable.
2301 * Makefile.in: Regenerated.
2303 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2305 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2306 Remove tests for returning assumed character length arrays.
2308 2006-02-12 Roger Sayle <roger@eyesopen.com>
2309 John David Anglin <dave@hiauly1.hia.nrc.ca>
2312 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2314 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2316 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2318 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2320 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2321 part of LD_LIBRARY_PATH manually.
2323 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2326 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2329 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2332 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2333 * configure.ac (PERL): Don't set.
2334 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2335 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2336 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2337 * omp.h.in: Wrap the new configure substitutions with @ characters.
2338 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2339 * aclocal.m4, configure, Makefile.in: Regenerate.
2340 * mkomp_h.pl: Delete.
2342 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2345 * configure.ac: Use GCC_HEADER_STDINT.
2346 * libgomp.h: Include gstdint.h.
2347 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2348 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2350 2006-01-24 Richard Henderson <rth@redhat.com>
2353 * configure.ac: Add AM_MAINTAINER_MODE.
2354 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2356 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2358 * Makefile.in: Regenerate.
2359 * testsuite/Makefile.in: Regenerate.
2360 * aclocal.m4: Regenerate.
2362 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2364 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2366 * configure.ac: Add check for loadavg.h.
2367 (link_gomp): Adjust comment.
2368 * configure: Regenerate.
2369 * config.h.in: Regenerate.
2371 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2374 * configure.ac: Remove check for alloca.h.
2375 * configure: Regenerate.
2376 * config.h.in: Regenerate.
2377 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2378 * team.c: Remove use of alloca.h.
2379 Call gomp_alloca instead of alloca.
2381 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2384 * team.c: Add include of alloca.h.
2385 * configure.ac: Add check for alloca.h.
2386 * configure: Regenerate.
2387 * config.h.in: Regenerate.
2389 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2392 * testsuite/libgomp.fortran/pr25219.f90: New test.
2394 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2396 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2397 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2398 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2399 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2400 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2401 testsuite/libgomp.fortran/threadprivate1.f90,
2402 testsuite/libgomp.fortran/threadprivate2.f90,
2403 testsuite/libgomp.fortran/threadprivate3.f90,
2404 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2405 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2406 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2407 effective-target to TLS runtime.
2409 * testsuite/libgomp.fortran/pr25162.f: Require
2410 effective-target TLS runtime.
2412 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2414 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2415 * testsuite/libgomp.c/nestedfn-3.c: New test.
2417 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2420 * testsuite/libgomp.fortran/pr25162.f: New test.
2422 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2424 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2425 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2427 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2429 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2430 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2431 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2432 single.c, team.c, work.c, config/linux/alpha/futex.h,
2433 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2434 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2435 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2436 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2437 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2438 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2439 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2442 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2444 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2445 to nodist_noinst_HEADERS.
2446 * Makefile.in: Rebuilt.
2448 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2449 add integer count field.
2450 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2451 omp_nest_lock_t type change.
2452 (omp_init_nest_lock): Likewise. Initialize count to 0.
2453 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2455 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2457 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2458 Increment count if successful and return the new nesting level.
2459 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2460 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2461 * testsuite/libgomp.c/lib-1.c: New test.
2462 * testsuite/libgomp.fortran/lib1.f90: New test.
2463 * testsuite/libgomp.fortran/lib2.f: New test.
2464 * testsuite/libgomp.fortran/lib3.f: New test.
2466 2005-11-17 Richard Henderson <rth@redhat.com>
2469 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2470 * configure.ac (link_gomp): New. Substitute it.
2471 (AC_CONFIG_FILES): Add libgomp.spec.
2472 * libgomp.spec.in: New file.
2473 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2474 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2476 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2478 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2479 reduction(-:var) behaving the same as reduction(+:var).
2480 * testsuite/libgomp.c/reduction-4.c: New test.
2482 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2484 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2485 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2486 testsuite/libgomp.c/copyin-3.c,
2487 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2488 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2489 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2490 testsuite/libgomp.c++/pr24455.C,
2491 testsuite/libgomp.fortran/threadprivate1.f90,
2492 testsuite/libgomp.fortran/threadprivate2.f90,
2493 testsuite/libgomp.fortran/threadprivate3.f90,
2494 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2495 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2496 testsuite/libgomp.fortran/omp_parse3.f90: Require
2497 effective-target TLS.
2499 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2503 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2506 * team.c (initialize_team): Pass NULL rather than free as
2507 pthread_key_create destructor. Initialize thread specific data
2508 pointer in initial thread to a static local variable rather than
2511 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2513 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2514 its location to ld_library_path.
2516 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2518 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2520 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2522 * testsuite/libgomp.c: Rename from libgomp.dg.
2524 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2526 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2527 threadprivate variable 'i'.
2529 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2531 * config/linux/s390/futex.h: New file.
2532 * configure.tgt: Use it.
2534 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2535 before the parallel.
2537 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2540 * testsuite/libgomp.c++/master-1.C: New test.
2542 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2544 * testsuite/libgomp.dg/copyin-3.c: New test.
2546 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2548 * testsuite/libgomp.fortran/retval1.f90: New test.
2549 * testsuite/libgomp.fortran/vla7.f90: New test.
2551 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2553 * testsuite/libgomp.fortran/vla2.f90: New test.
2554 * testsuite/libgomp.fortran/vla3.f90: New test.
2555 * testsuite/libgomp.fortran/vla4.f90: New test.
2556 * testsuite/libgomp.fortran/vla5.f90: New test.
2557 * testsuite/libgomp.fortran/vla6.f90: New test.
2559 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2561 * config/linux/sparc/futex.h: New file.
2562 * configure.tgt: Use it.
2563 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2565 * critical.c: Include stdlib.h.
2566 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2567 ignoring return value.
2568 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2569 LIBGOMP_CHECK_SYNC_BUILTINS check.
2570 * configure: Rebuilt.
2572 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2574 * testsuite/libgomp.fortran/vla1.f90: New test.
2576 2005-10-31 Richard Henderson <rth@redhat.com>
2578 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2579 setting 's' in different threads.
2581 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2583 * libgomp.h (attribute_hidden, ialias): Define.
2584 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2585 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2586 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2587 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2588 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2589 omp_test_lock, omp_test_nest_lock): Likewise.
2590 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2591 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2592 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2593 omp_test_lock, omp_test_nest_lock): Likewise.
2594 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2595 omp_get_dynamic, omp_get_nested): Likewise.
2596 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2597 omp_get_thread_num, omp_in_parallel): Likewise.
2598 * fortran.c (ialias_redirect): Define.
2599 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2600 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2601 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2602 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2603 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2604 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2605 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2606 omp_get_wtime): Add ialias_redirect.
2608 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2610 * fortran.c: Include stdlib.h.
2612 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2614 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2615 * Makefile.in: Regenerated.
2617 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2619 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2620 * libgomp_f.h.in (omp_check_defines): New function.
2621 * env.c: Include libgomp_f.h.
2622 (initialize_env): Call omp_check_defines.
2624 * testsuite/libgomp.dg/copyin-2.c: New test.
2625 * testsuite/libgomp.c++/copyin-2.C: New test.
2626 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2628 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2629 * testsuite/libgomp.fortran/sharing2.f90: New test.
2631 * testsuite/libgomp.dg/copyin-1.c: New test.
2632 * testsuite/libgomp.c++/copyin-1.C: New test.
2634 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2636 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2638 * testsuite/libgomp.fortran/workshare1.f90: New test.
2640 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2642 * libgomp.fortran/sharing1.f90: New test.
2644 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2647 * testsuite/libgomp.c++/loop-7.C: New test.
2649 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2651 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2652 * testsuite/libgomp.fortran/reduction6.f90: New test.
2653 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2655 2005-10-23 Richard Henderson <rth@redhat.com>
2657 * testsuite/libgomp.c++/ctor-1.C: New.
2658 * testsuite/libgomp.c++/ctor-2.C: New.
2659 * testsuite/libgomp.c++/ctor-3.C: New.
2660 * testsuite/libgomp.c++/ctor-4.C: New.
2661 * testsuite/libgomp.c++/ctor-5.C: New.
2662 * testsuite/libgomp.c++/ctor-6.C: New.
2663 * testsuite/libgomp.c++/ctor-7.C: New.
2664 * testsuite/libgomp.c++/ctor-8.C: New.
2665 * testsuite/libgomp.c++/ctor-9.C: New.
2667 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2670 * testsuite/libgomp.c++/pr24455-1.C: New test.
2671 * testsuite/libgomp.c++/pr24455.C: New test.
2672 * testsuite/libgomp.dg/pr24455-1.c: New test.
2673 * testsuite/libgomp.dg/pr24455.c: New test.
2675 2005-10-20 Richard Henderson <rth@redhat.com>
2677 * testsuite/libgomp.c++/loop-6.C: New.
2678 * testsuite/libgomp.dg/loop-3.c: New.
2680 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2682 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2684 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2687 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2689 * testsuite/libgomp.fortran/jacobi.f: New test.
2691 2005-10-19 Richard Henderson <rth@redhat.com>
2693 * configure.tgt (i?86-linux): Default to with_arch instead of
2694 CFLAGS. Add -mtune to match target_cpu.
2695 (x86_64-linux): Tune to i686.
2697 * fortran.c (omp_test_nest_lock_): Fix typo.
2699 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2701 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2702 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2703 * testsuite/libgomp.dg/ordered-3.c: New test.
2705 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2706 Remove volatile keyword.
2708 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2709 in COMMON block to avoid warnings on 64-bit targets.
2711 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2713 * testsuite/libgomp.dg/shared-3.c: New test.
2715 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2717 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2718 * testsuite/libgomp.fortran/reduction5.f90: New test.
2720 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2722 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2724 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2725 flush loop now that __sync_synchronize has proper memory barrier.
2726 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2727 Add -ffixed-form to dg-options.
2729 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2731 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2732 from subdirectories.
2733 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2734 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2735 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2736 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2737 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2738 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2739 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2740 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2741 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2742 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2743 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2744 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2745 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2746 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2747 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2748 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2749 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2750 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2751 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2752 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2753 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2754 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2755 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2756 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2757 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2759 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2761 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2762 lang_library_path exists. Use find instead of glob to gather tests.
2763 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2765 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2767 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2768 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2769 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2770 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2771 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2772 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2773 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2774 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2775 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2776 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2777 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2778 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2779 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2781 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2783 * testsuite/libgomp.dg/vla-1.c: New test.
2785 * testsuite/libgomp.fortran/reference2.f90: New test.
2787 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2788 declaration of omp_get_thread_num.
2789 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2792 * testsuite/libgomp.fortran/reduction1.f90: New test.
2793 * testsuite/libgomp.fortran/reduction2.f90: New test.
2794 * testsuite/libgomp.fortran/reduction3.f90: New test.
2795 * testsuite/libgomp.fortran/reduction4.f90: New test.
2797 2005-10-13 Richard Henderson <rth@redhat.com>
2799 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2800 * Makefile.in: Regenerate.
2801 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2802 * libgomp.h: Include bar.h.
2803 (struct gomp_barrier): Remove.
2804 (struct gomp_team): Add barrier. Replace master_barrier with
2805 master_release. Replace threads with ordered_release.
2806 (struct gomp_thread): Replace barrier with release.
2807 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2808 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2809 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2810 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2811 (GOMP_single_copy_end): Likewise.
2812 * team.c (gomp_threads_dock): New.
2813 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2814 (gomp_thread_start): Use gomp_barrier_wait.
2815 (new_team, free_team): Update for gomp_team changes.
2816 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2817 (gomp_team_end): Use gomp_barrier_wait.
2818 (initialize_team): Update for gomp_thread changes.
2819 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2820 (gomp_work_share_end_nowait): Use atomic ops when available.
2821 * config/linux/bar.c, config/linux/bar.h: New files.
2822 * config/posix/bar.c, config/posix/bar.h: New files.
2824 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2826 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2827 * testsuite/libgomp.dg/single-2.c: New test.
2829 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2830 lang_link_flags): Unset, so that they aren't inherited from previously
2833 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2835 2005-10-12 Richard Henderson <rth@redhat.com>
2837 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2838 (libgomp_init): Use lang_test_file, lang_library_path, and
2839 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2841 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2842 (lang_test_file, lang_link_flags): New.
2843 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2845 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2846 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2847 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2848 testsuite/libgomp.c++/parallel-1.C,
2849 testsuite/libgomp.c++/reduction-1.C,
2850 testsuite/libgomp.c++/reduction-2.C,
2851 testsuite/libgomp.c++/reduction-3.C,
2852 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2853 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2854 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2855 New files, largely cribbed from the C testsuite.
2857 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2859 * testsuite/libgomp.fortran/character1.f90: New test.
2860 * testsuite/libgomp.fortran/character2.f90: New test.
2862 * testsuite/libgomp.dg/nested-1.c: New test.
2863 * testsuite/libgomp.dg/nested-2.c: New test.
2864 * testsuite/libgomp.fortran/do1.f90: New test.
2865 * testsuite/libgomp.fortran/do2.f90: New test.
2867 * testsuite/libgomp.fortran/reference1.f90: New test.
2869 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2871 * testsuite/libgomp.dg/reduction-1.c: New test.
2872 * testsuite/libgomp.dg/reduction-2.c: New test.
2873 * testsuite/libgomp.dg/reduction-3.c: New test.
2875 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2877 * testsuite/libgomp.dg/atomic-1.c: New test.
2878 * testsuite/libgomp.dg/atomic-2.c: New test.
2880 2005-10-09 Richard Henderson <rth@redhat.com>
2882 * critical.c (atomic_lock): New.
2883 (initialize_critical): Initialize it.
2884 (GOMP_atomic_start, GOMP_atomic_end): New.
2885 * libgomp.map: Export them.
2886 * libgomp_g.h: Declare them.
2888 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2890 2005-10-02 Richard Henderson <rth@redhat.com>
2892 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2893 to XCFLAGS instead of CFLAGS.
2895 2005-09-30 Richard Henderson <rth@redhat.com>
2897 * configure.ac: Determine whether -pthread or -lpthread is needed.
2898 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2899 * Makefine.in, configure: Rebuild.
2901 2005-09-28 Richard Henderson <rth@redhat.com>
2903 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2904 * testsuite/libgomp.dg/omp-single-3.c: New test.
2906 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2908 * testsuite/libgomp.dg/omp-single-2.c: New test.
2909 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2911 2005-09-27 Richard Henderson <rth@redhat.com>
2913 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2914 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2916 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2918 * testsuite/libgomp.dg/omp-loop03.c: New test.
2920 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2922 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2924 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2926 * testsuite/libgomp.dg/omp-single-1.c: New test.
2927 * testsuite/libgomp.dg/shared-1.c: Return 0.
2928 Add prototype for abort.
2929 * testsuite/libgomp.dg/shared-2.c: Likewise.
2931 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2933 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2936 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2938 * testsuite/libgomp.dg/shared-1.c: New test.
2939 * testsuite/libgomp.dg/shared-2.c: New test.
2941 2005-09-24 Richard Henderson <rth@redhat.com>
2943 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2945 2005-09-24 Richard Henderson <rth@redhat.com>
2947 * iter.c (gomp_iter_static_next): Round up when computing number
2948 of iterations. Don't bother distributing a remainder equally.
2950 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2951 Don't call srand. Zero b before testing.
2954 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2956 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2957 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2959 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2961 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2962 without !$omp end do, followed immediately by subroutine end.
2964 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2966 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2968 2005-09-22 Richard Henderson <rth@redhat.com>
2970 * critical.c (GOMP_critical_name_start): Change argument to void**.
2971 Reuse the pointer space if the mutex fits.
2972 (GOMP_critical_name_end): Likewise.
2973 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2974 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2975 (GOMP_critical_name_end): Likewise.
2976 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2977 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2979 2005-09-20 Richard Henderson <rth@redhat.com>
2981 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2982 (create_lock_lock): New.
2983 (initialize_critical): Initialize it.
2984 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2985 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2987 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2989 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2991 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2993 * testsuite/libgomp.dg/omp-loop01.c: New test.
2994 * testsuite/libgomp.dg/omp-loop02.c: New test.
2996 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2998 * configure.ac (AC_PROG_FC): Add.
2999 (USE_FORTRAN): New automake conditional.
3000 * configure: Rebuilt.
3001 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3002 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3003 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3004 Add rules to build them.
3005 * Makefile.in: Rebuilt.
3006 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3008 * libgomp.map: Add Fortran wrappers.
3009 * libgomp_f.h.in: New file.
3010 * omp_lib.h.in: New file.
3011 * omp_lib.f90.in: New file.
3012 * fortran.c: New file.
3013 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3014 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3015 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3016 libgfortran has been built.
3017 * testsuite/libgomp.fortran/fortran.exp: New file.
3018 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3019 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3020 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3021 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3022 * testsuite/libgomp.fortran/omp_hello.f: New test.
3023 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3024 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3025 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3026 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3027 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3028 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3029 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3030 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3032 2005-08-30 Richard Henderson <rth@redhat.com>
3034 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3035 function for when aliases are not usable.
3036 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3037 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3038 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3039 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3040 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3041 GOMP_loop_ordered_guided_next): Likewise.
3042 * ordered.c (GOMP_ordered_start): Likewise.
3044 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3046 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3047 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3048 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3049 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3050 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3051 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3052 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3053 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3054 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3056 2005-07-07 Eric Christopher <echristo@redhat.com>
3057 Diego Novillo <dnovillo@redhat.com>
3059 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3060 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3062 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3063 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3064 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3065 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3066 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3067 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3068 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3070 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3072 * TOPLEVEL.patch: Remove.
3074 2005-05-16 Richard Henderson <rth@redhat.com>
3076 * configure.ac: Test for clock_gettime.
3077 * config.h.in, configure: Rebuild.
3078 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3079 (omp_get_wtime): Use clock_gettime if available.
3080 (omp_get_wtick): Use clock_getres if available.
3082 2005-05-11 Richard Henderson <rth@redhat.com>
3084 * config/linux/ia64/futex.h: New file.
3085 * configure.tgt: Use it.
3087 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3089 2005-05-07 Richard Henderson <rth@redhat.com>
3091 * config/linux/powerpc/futex.h: New file.
3092 * configure.tgt: Use it.
3094 * config/linux/i486/futex.h: Merge ...
3095 * config/linux/x86_64/futex.h: ... into ...
3096 * config/linux/x86/futex.h: ... here.
3097 * configure.tgt: Update to match.
3099 2005-05-06 Richard Henderson <rth@redhat.com>
3101 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3102 * config/linux/i486/futex.h: Likewise.
3103 * config/linux/x86_64/futex.h: Likewise.
3105 * config/linux/lock.c: New file.
3106 * config/linux/omp-lock.h: New file.
3108 * critical.c, env.h: Don't include omp.h
3109 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3110 * config/posix/time.c: Likewise.
3111 * config/posix/omp-lock.h: New file.
3112 * libgomp.h: Include omp-lock.h and omp.h.
3113 * Makefile.am (nodist_include_HEADERS): New.
3115 * configure.ac (PERL): New.
3116 * mkomp_h.pl: New file.
3117 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3119 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3121 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3122 build directory. Re-add -march=i486 hack.
3124 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3125 (libgomp_link_flags): Remove.
3126 (libgomp_initialized): Remove.
3127 (libgomp_init): Don't protect from reinitialization. Copy code
3128 from libstdc++ for getting the multilib set correctly.
3130 2005-05-05 Richard Henderson <rth@redhat.com>
3132 * config/linux/alpha/futex.h: New file.
3133 * configure.tgt (alpha*-*-linux*): Use it.
3135 * config/posix/mutex.c: New file.
3136 * config/posix/sem.c: Use libgomp.h.
3138 * configure.tgt (x86_64-linux): Also test CC for -m32.
3139 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3141 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3144 * Makefile.am (SUBDIRS): New.
3145 (libgomp_la_LDFLAGS): Add -lpthread.
3146 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3147 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3149 * libgomp_g.h: New file.
3150 * libgomp.h: Split out all public declarations to libgomp_g.h.
3151 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3152 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3153 * config/linux/sem.h: Likewise.
3154 * config/posix/sem.h: Likewise.
3156 * Makefile.am (AM_LDFLAGS): New.
3157 (libgomp_version_script): Split out from ...
3158 (libgomp_la_LDFLAGS): ... here.
3159 (libgomp_version_info): New.
3160 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3161 (LIBGOMP_ENABLE): New.
3162 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3163 (LIBGOMP_ENABLE_SYMVERS): New.
3164 * configure.ac (AC_INIT): Version 1.0.
3165 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3166 (enable-linux-futex): Likewise. Rename from enable-futex.
3167 (libtool_VERSION): New.
3168 (LIBGOMP_ENABLE_SYMVERS): Use it.
3169 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3170 * Makefile.in, aclocal.m4, configure: Rebuild.
3172 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3173 (gomp_mutex_unlock_slow): Fix typo.
3174 * config/linux/sem.c: Similarly.
3175 (gomp_sem_post_slow): Fix typo.
3176 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3177 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3178 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3180 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3181 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3182 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3183 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3184 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3185 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3186 LDFLAGS. Pull enable_futex check to top-level.
3187 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3188 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3190 First attempt at real configury.
3191 * Makefile, config.h: Remove file.
3192 * Makefile.am, Makefile.in: New file.
3193 * acinclude.m4 aclocal.m4: New file.
3194 * configure.ac, configure.tgt, configure: New file.
3196 * config/posix/lock.c: Rename from sys-lock.c.
3197 * config/posix/mutex.h: Rename from sys-mutex.h.
3198 * config/posix/sem.c: Rename from sys-sem.c.
3199 * config/posix/sem.h: Rename from sys-sem.h.
3200 * config/posix/proc.c: Rename from sys-proc.c.
3201 * config/posix/time.c: Rename from sys-proc.c.
3203 * config/linux/mutex.c: New file.
3204 * config/linux/mutex.h: New file.
3205 * config/linux/sem.c: New file.
3206 * config/linux/sem.h: New file.
3207 * config/linux/i486/futex.h: New file.
3208 * config/linux/x86_64/futex.h: New file.
3210 2005-05-04 Richard Henderson <rth@redhat.com>
3212 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3213 * libgomp.h: Declare them.
3214 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3215 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3217 2005-05-04 Richard Henderson <rth@redhat.com>
3219 * libgomp-1 code drop
3221 2005-05-04 Richard Henderson <rth@redhat.com>
3223 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3224 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3225 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3226 (gomp_iter_static_next): Update.
3227 (gomp_ordered_static_next): Update.
3228 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3229 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3230 totally empty range.
3231 (gomp_loop_ordered_static_next): Refine test for calling
3232 gomp_ordered_static_next.
3233 * testsuite/ordered-1.c: Add case for more threads than iterations.
3235 * iter.c (gomp_iter_runtime_next_locked): Remove.
3236 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3237 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3238 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3239 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3240 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3241 gomp_loop_ordered_guided_next): Downcase name, make static, add
3242 an external alias with the old name.
3243 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3244 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3245 switch and call one of the above static functions.
3246 * libgomp.h: Update.
3248 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3249 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3250 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3251 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3252 GOMP_loop_ordered_guided_start): Update to match.
3253 * sections.c (GOMP_sections_start): Likewise.
3254 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3256 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3257 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3258 Use bounds check instead of modulus.
3259 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3260 (gomp_ordered_last): Don't sync with ordered_owner here.
3261 (gomp_ordered_next): Likewise.
3262 (gomp_ordered_static_loop_next): Likewise.
3263 * loop.c, libgomp.h: Update to match.
3265 * libgomp.h (GOMP_barrier): Declare.
3267 * testsuite/barrier-1.c: New file.
3268 * testsuite/critical-1.c: New file.
3269 * testsuite/ordered-2.c: New file.
3270 * testsuite/ordered-1.c: New file.
3271 * testsuite/sections-1.c: New file.
3272 * testsuite/single-1.c: New file.
3273 * testsuite/Makefile (TESTS): Add them.
3275 2005-05-04 Richard Henderson <rth@redhat.com>
3277 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3278 * loop.c (GOMP_loop_static_start): If not the startup thread,
3279 acquire the mutex to wait for initialization complete.
3280 (GOMP_loop_ordered_static_start): Likewise.
3281 (GOMP_loop_ordered_runtime_start): Likewise.
3282 (GOMP_loop_ordered_static_first): Remove.
3283 (GOMP_loop_ordered_dynamic_first): Remove.
3284 (GOMP_loop_ordered_guided_first): Remove.
3285 (GOMP_loop_ordered_runtime_first): Remove.
3286 * ordered.c (gomp_ordered_loop_first): Post to own release when
3287 we're the first thread.
3288 (gomp_ordered_loop_last): Wait on release if not owner.
3289 (gomp_ordered_loop_next): Likewise.
3290 (gomp_ordered_static_loop_init): New.
3291 (gomp_ordered_static_loop_next): Use ordered_owner.
3292 (GOMP_ordered_start): Likewise.
3293 * work.c (gomp_new_work_share): Initialize ordered_owner.
3295 2005-05-03 Richard Henderson <rth@redhat.com>
3297 * Makefile (OPT): New.
3300 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3301 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3302 * libgomp.h, libgomp.map, NOTES: Update to match.
3304 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3305 Add initialized and thr members.
3306 (gomp_thread_start): Pause when initially spawned to wait for
3307 the whole team to be created.
3308 (gomp_team_start): Release team members at the end.
3310 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3311 (f_foo_1): Use GOMP_loop_end.
3312 (f_foo_2): Use GOMP_loop_end_nowait.
3314 * testsuite/loop-2.c: New file.
3315 * testsuite/Makefile (TESTS): Add it.
3317 2005-05-03 Richard Henderson <rth@redhat.com>
3319 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3320 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3321 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3324 * testsuite/Makefile: New file.
3325 * testsuite/loop-1.c: New file.
3327 2005-05-03 Richard Henderson <rth@redhat.com>
3329 Initial implementation and checkin.