1 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
3 * configure: Regenerated.
5 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
7 * config/linux/mips/futex.h (sys_futex0): Change to static
8 function with noinline, nomips16 attributes under MIPS16. Adjust
9 asm statement to place 'li v0,SYS_futex' immediately before
12 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
14 * libgomp.texi (Library Index): Renamed from "Index" to prevent
15 conflict with index.html on case-insensitive file systems.
17 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
19 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
20 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
22 2012-07-02 Richard Guenther <rguenther@suse.de>
23 Michael Matz <matz@suse.de>
24 Tobias Grosser <tobias@grosser.es>
25 Sebastian Pop <sebpop@gmail.com>
27 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
28 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
29 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
30 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
32 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
34 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
36 2012-06-22 Richard Guenther <rguenther@suse.de>
38 Merge from graphite branch
39 2012-01-13 Tobias Grosser <tobias@grosser.es>
41 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
42 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
44 2012-06-07 Jakub Jelinek <jakub@redhat.com>
47 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
48 use GOMP_barrier () call instead.
49 * testsuite/libgomp.c/pr26943-3.c: Likewise.
50 * testsuite/libgomp.c/pr26943-4.c: Likewise.
51 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
52 call GOMP_barrier instead.
53 * testsuite/libgomp.fortran/vla5.f90: Likewise.
55 2012-06-06 Jakub Jelinek <jakub@redhat.com>
58 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
59 argument to memset call.
61 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
63 * configure: Regenerated.
65 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
67 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
69 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
72 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
74 2012-03-22 Jakub Jelinek <jakub@redhat.com>
77 * testsuite/libgomp.c/pr52547.c: New test.
79 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
81 * testsuite/lib/libgomp.exp: load fortran-modules.exp
83 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
85 * configure.tgt (mips-sgi-irix6*): Remove.
87 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
89 * configure.tgt (alpha*-dec-osf*): Remove.
91 * config/osf/sem.h: Remove.
92 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
94 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
96 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
98 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
101 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
102 Remove ENABLE_SYMVERS_SOL2.
103 * configure: Regenerate.
104 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
105 (PREPROCESS): New variable.
106 (libgomp.ver): New target.
107 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
108 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
109 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
111 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
112 * Makefile.in: Regenerate.
114 2012-02-14 Walter Lee <walt@tilera.com>
116 * configure.tgt: Handle tilegx and tilepro.
117 * config/linux/tile/futex.h: New file.
119 2012-02-08 Richard Guenther <rguenther@suse.de>
121 PR tree-optimization/46886
122 * testsuite/libgomp.c/pr46886.c: New testcase.
124 2012-01-25 Matthias Klose <doko@ubuntu.com>
126 * config/linux/arm: Remove empty directory.
127 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
129 2011-12-09 Alan Modra <amodra@gmail.com>
132 * task.c (GOMP_taskwait): Don't access task->children outside of
133 task_lock mutex region.
134 (GOMP_task): Likewise.
136 2011-12-06 Jakub Jelinek <jakub@redhat.com>
139 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
141 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
142 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
143 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
144 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
145 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
147 2011-12-02 Alan Modra <amodra@gmail.com>
149 * config/linux/affinity.c: Use atomic rather than sync builtin.
150 * config/linux/lock.c: Likewise.
151 * config/linux/ptrlock.h: Likewise.
152 * config/linux/ptrlock.c: Likewise.
153 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
154 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
155 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
156 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
157 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
158 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
159 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
160 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
161 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
162 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
164 2011-11-30 Alan Modra <amodra@gmail.com>
167 * config/linux/bar.h: Use atomic rather than sync builtins.
168 * config/linux/bar.c: Likewise. Add missing acquire
169 synchronisation on generation field.
170 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
173 2011-11-30 Alan Modra <amodra@gmail.com>
175 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
176 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
177 * config/linux/mutex.h: Use atomic rather than sync builtins.
178 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
179 * config/linux/omp-lock.h: Comment fix.
180 * config/linux/arm/mutex.h: Delete.
181 * config/linux/powerpc/mutex.h: Delete.
182 * config/linux/ia64/mutex.h: Delete.
183 * config/linux/mips/mutex.h: Delete.
185 2011-11-30 Alan Modra <amodra@gmail.com>
188 * config/linux/sem.h: Rewrite.
189 * config/linux/sem.c: Rewrite.
191 2011-11-28 Richard Henderson <rth@redhat.com>
193 * libgomp.h (enum memmodel): New.
195 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
197 * configure: Regenerate.
199 2011-10-10 Matthias Klose <doko@ubuntu.com>
201 * config/posix95: Remove empty directory.
203 2011-08-26 Jakub Jelinek <jakub@redhat.com>
205 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
207 2011-08-19 Jakub Jelinek <jakub@redhat.com>
210 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
211 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
213 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
215 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
217 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
220 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
222 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
224 * config/linux/proc.h: New.
225 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
226 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
227 (gomp_init_num_threads): Update call to cpuset_popcount.
228 (get_num_procs): Ditto.
229 * config/linux/affinity.c (gomp_init_affinity): Call
230 gomp_cpuset_popcount.
232 2011-08-02 Jakub Jelinek <jakub@redhat.com>
236 * omp.h.in (omp_in_final): New prototype.
237 * omp_lib.f90.in (omp_in_final): New interface.
238 (omp_integer_kind, omp_logical_kind): Remove
239 and replace all its uses in the module with 4.
240 (openmp_version): Change to 201107.
241 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
242 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
243 kind for the parameters.
244 (omp_in_final): New external.
245 (openmp_version): Change to 201107.
246 * task.c (omp_in_final): New function.
247 (gomp_init_task): Initialize final_task.
248 (GOMP_task): Remove unused attribute from flags. Handle final
250 (GOMP_taskyield): New function.
251 (omp_in_final): Return true if if (false) or final (true) task
252 or descendant of final (true).
253 * fortran.c (omp_in_final_): New function.
254 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
255 (GOMP_3.0): Export GOMP_taskyield.
256 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
258 (parse_unsigned_long_list): New function.
259 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
260 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
261 even if parse_affinity returned false.
262 * config/linux/affinity.c (gomp_init_affinity): Handle
263 gomp_cpu_affinity_len == 0.
264 * libgomp_g.h (GOMP_taskyield): New prototype.
265 * libgomp.h (struct gomp_task): Add final_task field.
266 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
267 * team.c (gomp_team_start): Override new task's nthreads_var icv
268 if list form OMP_NUM_THREADS has been used and it has value for
269 the new nesting level.
271 * testsuite/libgomp.c/atomic-11.c: New test.
272 * testsuite/libgomp.c/atomic-12.c: New test.
273 * testsuite/libgomp.c/atomic-13.c: New test.
274 * testsuite/libgomp.c/atomic-14.c: New test.
275 * testsuite/libgomp.c/reduction-6.c: New test.
276 * testsuite/libgomp.c/task-5.c: New test.
277 * testsuite/libgomp.c++/atomic-2.C: New test.
278 * testsuite/libgomp.c++/atomic-3.C: New test.
279 * testsuite/libgomp.c++/atomic-4.C: New test.
280 * testsuite/libgomp.c++/atomic-5.C: New test.
281 * testsuite/libgomp.c++/atomic-6.C: New test.
282 * testsuite/libgomp.c++/atomic-7.C: New test.
283 * testsuite/libgomp.c++/atomic-8.C: New test.
284 * testsuite/libgomp.c++/atomic-9.C: New test.
285 * testsuite/libgomp.c++/task-8.C: New test.
286 * testsuite/libgomp.c++/reduction-4.C: New test.
287 * testsuite/libgomp.fortran/allocatable7.f90: New test.
288 * testsuite/libgomp.fortran/allocatable8.f90: New test.
289 * testsuite/libgomp.fortran/crayptr3.f90: New test.
290 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
291 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
292 * testsuite/libgomp.fortran/pointer1.f90: New test.
293 * testsuite/libgomp.fortran/pointer2.f90: New test.
294 * testsuite/libgomp.fortran/task4.f90: New test.
296 2011-08-02 Tobias Burnus <burnus@net-b.de>
298 * libgomp.texi: Update OpenMP spec references to 3.1.
299 (omp_in_final,OMP_PROC_BIND): New sections.
300 (OMP_NUM_THREADS): Document that the value can be now a list.
301 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
303 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
305 * config/linux/x86/futex.h: Check __x86_64__ instead of
308 2011-07-29 Jakub Jelinek <jakub@redhat.com>
312 * testsuite/libgomp.c/pr49897-1.c: New test.
313 * testsuite/libgomp.c/pr49897-2.c: New test.
314 * testsuite/libgomp.c/pr49898-1.c: New test.
315 * testsuite/libgomp.c/pr49898-2.c: New test.
317 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
319 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
320 for ia32 instead of ilp32.
322 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
323 * testsuite/libgomp.c/atomic-6.c: Likewise.
325 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
327 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
328 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
330 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
333 * config/osf/sem.h: New file.
334 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
336 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
339 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
342 2011-07-15 Jakub Jelinek <jakub@redhat.com>
344 * config/linux/wait.h (do_spin): New inline, largely copied
345 from do_wait, just don't do futex_wait here, instead return true if
347 (do_wait): Implement using do_spin.
348 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
350 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
351 __sync_bool_compare_and_swap, pass the oldval to
352 gomp_mutex_lock_slow.
353 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
354 If all mutex contenders are just spinning and not sleeping, don't
355 change state to 2 unnecessarily. Optimize the loop when state has
356 already become 2 to use just one atomic operation per loop instead
358 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
360 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
361 __sync_bool_compare_and_swap, pass the oldval to
362 gomp_mutex_lock_slow.
364 2011-06-22 Jakub Jelinek <jakub@redhat.com>
367 * iter.c (gomp_iter_static_next): For chunk size 0
368 only use n ceil/ nthreads size for the first
369 n % nthreads threads in the team instead of
370 all threads except for the last few ones which
371 get less work or none at all.
372 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
373 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
374 chunk argument, set run_sched_modifier to 0 for static
375 resp. 1 for other kinds. If chunk argument is 0
376 and not static, set value to 1.
378 2011-05-19 Jakub Jelinek <jakub@redhat.com>
381 * testsuite/libgomp.c++/pr49043.C: New test.
384 * testsuite/libgomp.c++/pr48869.C: New test.
386 2011-05-06 Jakub Jelinek <jakub@redhat.com>
389 * fortran.c: Include limits.h.
391 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
393 (omp_set_num_threads_8_, omp_set_schedule_8_,
394 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
395 omp_get_team_size_8_): Use TO_INT macro.
396 * testsuite/libgomp.fortran/pr48894.f90: New test.
398 2011-04-13 Jakub Jelinek <jakub@redhat.com>
401 * testsuite/libgomp.c/pr48591.c: New test.
403 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
406 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
407 * configure: Regenerate.
409 2011-02-27 Jakub Jelinek <jakub@redhat.com>
412 * testsuite/libgomp.fortran/task3.f90: New test.
414 2011-02-24 Tobias Burnus <burnus@net-b.de>
416 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
418 2011-02-23 Jakub Jelinek <jakub@redhat.com>
421 * libgomp.texi (omp_get_wtime): Don't say time in the past
424 2011-02-18 Jakub Jelinek <jakub@redhat.com>
427 * testsuite/libgomp.fortran/fortran.exp: Check for both
428 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
429 but $blddir != "", still append ${blddir}/${lang_library_path}
432 2011-02-16 Tobias Burnus <burnus@net-b.de>
435 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
436 of libquadmath.a before adding its libpath to ldflags.
438 2011-02-14 Jakub Jelinek <jakub@redhat.com>
441 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
442 to FUTEX_WAIT futex syscall.
443 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
445 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
447 * configure: Regenerate.
449 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
452 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
454 2011-01-16 Gerald Pfeifer
456 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
458 2010-12-14 Jakub Jelinek <jakub@redhat.com>
461 * libgomp.fortran/allocatable6.f90: New test.
463 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
465 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
466 * configure: Regenerate.
468 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
472 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
473 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
474 * aclocal.m4: Regenerate.
475 * configure: Regenerate.
476 * Makefile.in: Regenerate.
477 * testsuite/Makefile.in: Regenerate.
479 2010-12-02 Jakub Jelinek <jakub@redhat.com>
482 * libgomp.fortran/pr46753.f90: New test.
485 * env.c (initialize_env): Default to spin count 300000
486 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
490 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
491 at the end if sync builtins aren't supported.
493 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
495 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
497 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
499 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
501 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
503 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
505 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
506 Tobias Burnus <burnus@net-b.de>
510 * configure: Regenerate.
512 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
514 * config/linux/futex.h: New.
515 * config/linux/arm/mutex.h: New.
516 * configure.tgt (arm*-*-linux*): Add config path.
518 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
520 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
522 2010-09-23 Tobias Burnus <burnus@net-b.de>
524 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
525 Change Fortran datatype to LOGICAL.
526 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
527 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
529 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
531 * configure: Regenerate.
533 2010-07-26 Jakub Jelinek <jakub@redhat.com>
535 * libgomp.texi: Add function keyword to a couple of Fortran
536 interfaces, use integer instead of int for Fortran.
538 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
540 * libgomp.texi: Fix spelling and pasto problems throughout.
541 Adjust prototypes to match code.
543 2010-07-24 Tobias Burnus <burnus@net-b.de>
545 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
546 silence -fwhole-file warning.
548 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
550 * configure.tgt (*-*-solaris2.[56]*): Removed.
552 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
554 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
555 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
556 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
557 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
558 targetting solaris2*.
559 * configure: Regenerate.
560 * config.h.in: Regenerate.
562 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
563 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
564 Add libgomp_version_dep.
565 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
567 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
568 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
569 * Makefile.in: Regenerate.
571 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
572 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
573 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
574 to common block, protected by
575 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
577 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
579 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
581 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
584 * configure: Regenerate.
586 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
589 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
590 * configure: Regenerate.
591 * Makefile.in: Regenerate.
592 * testsuite/Makefile.in: Regenerate.
594 2010-04-26 Jakub Jelinek <jakub@redhat.com>
597 * testsuite/libgomp.c/pr43893.c: New test.
598 * testsuite/libgomp.c++/pr43893.C: New test.
600 2010-04-21 Jakub Jelinek <jakub@redhat.com>
603 * testsuite/libgomp.fortran/vla8.f90: New test.
605 2010-04-20 Jakub Jelinek <jakub@redhat.com>
608 * config/linux/affinity.c (gomp_init_affinity): Decrease
609 gomp_available_cpus if affinity mask confines the process to fewer
611 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
612 non-NULL, just return gomp_available_cpus.
615 * sections.c (gomp_sections_init): Initialize ws->mode.
617 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
619 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
620 not unused bar variable.
621 * configure: Regenerate.
623 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
625 * Makefile.in: Regenerate.
626 * aclocal.m4: Regenerate.
627 * testsuite/Makefile.in: Regenerate.
629 2010-03-22 Jakub Jelinek <jakub@redhat.com>
632 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
633 (initialize_env): Adjust callers.
634 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
635 when the argument is 0.
637 * testsuite/libgomp.c/pr42942.c: New test.
639 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
643 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
644 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
646 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
648 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
649 * testsuite/libgomp.c++/task-6.C: Likewise.
651 2010-01-28 Steve Ellcey <sje@cup.hp.com>
653 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
655 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
657 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
658 * configure: Regenerate.
660 2010-01-26 Jakub Jelinek <jakub@redhat.com>
663 * testsuite/libgomp.fortran/allocatable5.f90: New test.
665 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
667 * configure.ac: Test for executability of GFORTRAN.
668 * configure: Regenerate.
670 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
672 * configure: Regenerate.
674 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
677 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
679 2010-01-03 Richard Guenther <rguenther@suse.de>
681 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
683 2009-12-23 Sebastian Pop <sebpop@gmail.com>
685 * testsuite/libgomp.graphite/pr4118.c: New.
687 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
689 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
690 for darwin, protect the test with require-effective-target tls_runtime.
691 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
693 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
696 * testsuite/lib/libgomp.exp: Provide -B options to allow for
697 link spec %s substitutions for static libraries.
699 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
702 * libgomp.graphite/force-parallel-2.c: Reduce array size.
704 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
706 * Makefile.in: Regenerate.
707 * configure: Regenerate.
708 * testsuite/Makefile.in: Regenerate.
710 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
712 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
713 settings for LC_ALL and LANG.
715 2009-11-25 Jakub Jelinek <jakub@redhat.com>
718 * testsuite/libgomp.fortran/pr42162.f90: New test.
720 2009-11-13 Jakub Jelinek <jakub@redhat.com>
723 * testsuite/libgomp.c/pr42029.c: New test.
725 2009-10-26 Jakub Jelinek <jakub@redhat.com>
727 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
728 *s. Accept ld version without text in ()s.
729 * configure: Regenerated.
731 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
733 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
735 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
738 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
739 or a hyphen (happens with fortran language disabled).
740 * configure: Regenerate.
742 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
744 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
745 use sed script portable to Solaris /bin/sed for extracting ld
747 * configure: Regenerate.
749 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
751 * testsuite/libgomp.graphite/bounds.c: New test.
753 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
755 * Makefile.am (libgomp_la_LINK): New.
756 * Makefile.in: Regenerate.
758 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
760 * configure.ac (AC_PREREQ): Bump to 2.64.
762 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
764 * Makefile.am (install-html, install-pdf): Remove.
765 * Makefile.in: Regenerate.
767 * Makefile.in: Regenerate.
768 * aclocal.m4: Regenerate.
769 * config.h.in: Regenerate.
770 * configure: Regenerate.
771 * testsuite/Makefile.in: Regenerate.
773 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
775 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
776 * Makefile.in: Regenerate.
778 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
780 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
781 * Makefile.in: Regenerate.
783 2009-08-19 Tobias Burnus <burnus@net-b.de>
786 omp_lib.h.in: Fix -std=f95 errors.
789 2009-08-14 David Edelsohn <edelsohn@gnu.org>
791 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
792 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
793 * testsuite/libgomp.graphite/graphite.exp: New.
795 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
797 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
800 2009-08-04 David Daney <ddaney@caviumnetworks.com>
802 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
803 needed memory barrier semantics.
804 * config/linux/mips/mutex.h: New file.
806 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
808 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
810 2009-07-16 Joseph Myers <joseph@codesourcery.com>
812 * configure: Regenerate.
814 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
819 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
820 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
821 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
823 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
825 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
826 options when choosing a multilib.
828 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
830 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
831 ld_library_path. Use add_path. Add just find_libgcc_s to
832 ld_library_path, not every libgcc multilib directory.
833 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
834 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
835 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
837 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
839 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
841 * Makefile.am (LTLDFLAGS): Define.
843 * Makefile.in: Regenerate.
845 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
848 * testsuite/libgomp.fortran/fortran.exp: Don't link with
849 libgfortranbegin, check existence of libgfortran.a instead of
852 2009-05-20 Jakub Jelinek <jakub@redhat.com>
855 * team.c (gomp_thread_start): Destroy thr->release semaphore.
856 (gomp_free_pool_helper): Likewise.
858 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
859 Jakub Jelinek <jakub@redhat.com>
862 * testsuite/libgomp.fortran/workshare2.f90: New test.
864 2009-04-09 Nick Clifton <nickc@redhat.com>
866 * iter.c: Change copyright header to refer to version 3 of the
867 GNU General Public License with version 3.1 of the GCC Runtime
868 Library Exception and to point readers at the COPYING3 and
869 COPYING3.RUNTIME files and the FSF's license web page.
871 * barrier.c: Likewise.
872 * config/bsd/proc.c: Likewise.
873 * config/linux/affinity.c: Likewise.
874 * config/linux/alpha/futex.h: Likewise.
875 * config/linux/bar.c: Likewise.
876 * config/linux/bar.h: Likewise.
877 * config/linux/ia64/futex.h: Likewise.
878 * config/linux/ia64/mutex.h: Likewise.
879 * config/linux/lock.c: Likewise.
880 * config/linux/mips/futex.h: Likewise.
881 * config/linux/mutex.c: Likewise.
882 * config/linux/mutex.h: Likewise.
883 * config/linux/powerpc/futex.h: Likewise.
884 * config/linux/proc.c: Likewise.
885 * config/linux/ptrlock.c: Likewise.
886 * config/linux/ptrlock.h: Likewise.
887 * config/linux/s390/futex.h: Likewise.
888 * config/linux/sem.c: Likewise.
889 * config/linux/sem.h: Likewise.
890 * config/linux/sparc/futex.h: Likewise.
891 * config/linux/wait.h: Likewise.
892 * config/linux/x86/futex.h: Likewise.
893 * config/mingw32/proc.c: Likewise.
894 * config/mingw32/time.c: Likewise.
895 * config/posix/affinity.c: Likewise.
896 * config/posix/bar.c: Likewise.
897 * config/posix/bar.h: Likewise.
898 * config/posix/lock.c: Likewise.
899 * config/posix/mutex.h: Likewise.
900 * config/posix/proc.c: Likewise.
901 * config/posix/ptrlock.h: Likewise.
902 * config/posix/sem.c: Likewise.
903 * config/posix/sem.h: Likewise.
904 * config/posix/time.c: Likewise.
905 * config/posix95/lock.c: Likewise.
906 * critical.c: Likewise.
909 * fortran.c: Likewise.
910 * iter_ull.c: Likewise.
911 * libgomp.h: Likewise.
912 * libgomp_f.h.in: Likewise.
913 * libgomp_g.h: Likewise.
915 * loop_ull.c: Likewise.
916 * omp.h.in: Likewise.
917 * omp_lib.f90.in: Likewise.
918 * omp_lib.h.in: Likewise.
919 * ordered.c: Likewise.
920 * parallel.c: Likewise.
921 * sections.c: Likewise.
922 * single.c: Likewise.
927 2009-04-09 Jakub Jelinek <jakub@redhat.com>
929 * testsuite/config/default.exp: Change copyright header to refer to
930 version 3 of the GNU General Public License and to point readers
931 at the COPYING3 file and the FSF's license web page.
933 2009-04-08 Jakub Jelinek <jakub@redhat.com>
936 * libgomp.c++/pr39573.C: New test.
938 2009-04-01 Jakub Jelinek <jakub@redhat.com>
941 * testsuite/libgomp.c/pr39591-1.c: New test.
942 * testsuite/libgomp.c/pr39591-2.c: New test.
943 * testsuite/libgomp.c/pr39591-3.c: New test.
945 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
947 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
948 * testsuite/libgomp.c/atomic-6.c: Ditto.
950 2009-03-23 Jakub Jelinek <jakub@redhat.com>
953 * testsuite/libgomp.c/loop-12.c: New test.
954 * testsuite/libgomp.c/loop-11.c: New test.
955 * testsuite/libgomp.c++/loop-11.C: New test.
956 * testsuite/libgomp.c++/loop-12.C: New test.
957 * testsuite/libgomp.c++/for-8.C: New test.
959 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
961 * configure: Regenerate.
963 2009-02-11 Jakub Jelinek <jakub@redhat.com>
966 * testsuite/libgomp.c/pr39154.c: New test.
968 2009-01-30 Ian Lance Taylor <iant@google.com>
970 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
971 libgomp_ld_is_gold. Get gold version number.
972 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
973 * configure: Rebuild.
975 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
977 * testsuite/lib/libgomp.exp: Add -B option for targets that
978 use libgfortran.a%s in their specs.
980 2009-01-07 Jakub Jelinek <jakub@redhat.com>
983 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
984 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
985 HAVE_AS_SYMVER_DIRECTIVE is not defined.
986 * configure: Regenerated.
987 * config.h.in: Likewise.
989 2008-12-28 Jakub Jelinek <jakub@redhat.com>
992 * testsuite/libgomp.c/pr38650.c: New test.
993 * testsuite/libgomp.c++/pr38650.C: New test.
995 2008-12-27 Jakub Jelinek <jakub@redhat.com>
997 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
999 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1001 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1003 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1005 * configure: Regenerate.
1007 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1010 * testsuite/libgomp.c/pr36802-1.c: New test.
1011 * testsuite/libgomp.c/pr36802-2.c: New test.
1012 * testsuite/libgomp.c/pr36802-3.c: New test.
1014 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1017 * config/linux/powerpc/mutex.h: New.
1019 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1022 * testsuite/libgomp.c++/for-7.C: New test.
1025 * testsuite/libgomp.c++/for-6.C: New test.
1027 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1030 * testsuite/lib/libgomp.exp: Include new timeout library files.
1031 (libgomp_target_compile): Set timeout value from new proc.
1033 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1036 * config/linux/ia64/mutex.h: New.
1038 2008-11-04 Tobias Burnus <burnus@net-b.de>
1041 * libgomp.texi (Runtime library routines, environment variables):
1042 Update for OpenMP version 3.0.
1044 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1045 Steve Ellcey <sje@cup.hp.com>
1047 * configure: Regenerate for new libtool.
1048 * Makefile.in: Ditto.
1049 * testsuite/Makefile.in: Ditto.
1051 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1052 Andreas Tobler <a.tobler@schweiz.org>
1054 * config/bsd/proc.c: New file.
1055 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1056 * configure.ac: Check for header <sys/sysctl.h>
1057 * configure: Regenerate.
1058 * config.h.in: Likewise.
1060 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1062 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1064 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1066 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1067 * Makefile.in: Regenerated.
1068 * testsuite/Makefile.in: Regenerated.
1070 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1072 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1073 depend on blddir if blddir exists.
1074 (libgomp_target_compile): Likewise.
1075 * testsuite/libgomp.c++/c++.exp: Likewise.
1076 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1078 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1080 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1081 Do not list GPL as Invariant Section.
1083 2008-07-28 Ilie Garbacea <ilie@mips.com>
1084 Chao-ying Fu <fu@mips.com>
1086 * configure.tgt: Enable futex for MIPS.
1087 * config/linux/mips/futex.h: New file.
1089 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1091 * team.c (gomp_team_end): Free team immediately if it has
1094 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1096 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1097 * testsuite/libgomp.fortran/fortran.exp: Same.
1098 * testsuite/libgomp.c/c.exp: Same.
1099 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1100 directory to library path first.
1102 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1104 * env.c (parse_stacksize): Add cast to avoid warning.
1105 (parse_spincount): Likewise.
1107 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1109 * testsuite/libgomp.c/loop-10.c: New test.
1110 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1111 * libgomp.c++/loop-6.C (main): Likewise.
1114 * testsuite/libgomp.c/debug-1.c: New test.
1116 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1118 * testsuite/libgomp.c/nqueens-1.c: New test.
1121 * testsuite/libgomp.c++/task-7.C: New function.
1123 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1125 * configure: Regenerate.
1127 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1129 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1130 mutex when HAVE_SYNC_BUILTINS isn't defined.
1132 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1134 * libgomp.texi (omp_test_lock): Fix typo.
1136 2008-06-12 Tobias Burnus <burnus@net-b.de>
1138 * omp_lib.f90.in: Add "implicit none".
1140 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1143 * testsuite/libgomp.c/reduction-5.c: New test.
1145 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1147 * libgomp.h (struct gomp_task): Add in_tied_task field.
1148 * task.c (gomp_init_task): Initialize it.
1149 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1150 unconditionally. Don't call gomp_team_barrier_wake if
1151 current task is implicit or if(0) from implicit and number of
1152 running tasks is equal to nthreads - 1.
1155 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1156 omp_get_team_size_8): Fix pastos.
1159 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1160 * configure: Regenerated.
1161 * config.h.in: Regenerated.
1162 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1165 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1168 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1169 (GOMP_loop_ull_dynamic_start): Likewise.
1170 (GOMP_loop_ull_guided_start): Likewise.
1171 (GOMP_loop_ull_ordered_static_start): Likewise.
1172 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1173 (GOMP_loop_ull_ordered_guided_start): Likewise.
1175 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1176 Richard Henderson <rth@redhat.com>
1177 Ulrich Drepper <drepper@redhat.com>
1178 Jakob Blomer <jakob.blomer@ira.uka.de>
1180 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1181 Substitute also OMP_*LOCK_25*.
1182 * configure: Regenerated.
1183 * config.h.in: Regenerated.
1184 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1185 ptrlock.c and task.c.
1186 * Makefile.in: Regenerated.
1187 * testsuite/Makefile.in: Regenerated.
1189 * loop_ull.c: New file.
1190 * iter_ull.c: New file.
1191 * libgomp.h: Include ptrlock.h.
1192 (enum gomp_task_kind): New type.
1193 (struct gomp_team): Add task_lock, task_queue, task_count,
1194 task_running_count, single_count fields. Add
1195 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1196 Remove work_share_lock, generation_mask,
1197 oldest_live_gen, num_live_gen and init_work_shares fields, add
1198 work work_share_list_alloc, work_share_list_free and work_share_chunk
1199 fields. Change work_shares from pointer to pointers into an array.
1200 Change ordered_release field into gomp_sem_t ** from flexible array
1201 member. Add implicit_task and initial_work_shares fields.
1202 Move close to the end of the struct.
1203 (struct gomp_team_state): Add single_count, last_work_share,
1204 active_level and level fields, remove work_share_generation.
1205 (gomp_barrier_handle_tasks): New prototype.
1206 (gomp_finish_task): New inline function.
1207 (struct gomp_work_share): Move chunk_size, end, incr into
1208 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1209 next_ll fields. Reshuffle fields. Add next_alloc,
1210 next_ws, next_free and inline_ordered_team_ids fields, change
1211 ordered_team_ids into pointer from flexible array member.
1212 Add mode field. Put lock and next into a different cache line
1213 from most of the write-once fields.
1214 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1215 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1216 gomp_iter_ull_guided_next): New prototypes.
1217 (gomp_new_icv): New prototype.
1218 (struct gomp_thread): Add thread_pool and task fields.
1219 (struct gomp_thread_pool): New type.
1220 (gomp_new_team): New prototype.
1221 (gomp_team_start): Change type of last argument.
1222 (gomp_new_work_share): Removed.
1223 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1224 (gomp_work_share_init_done): New static inline.
1225 (gomp_throttled_spin_count_var, gomp_available_cpus,
1226 gomp_managed_threads): New extern decls.
1227 (gomp_init_task): New prototype.
1228 (gomp_spin_count_var): New extern var decl.
1229 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1230 or no alias support, or if not PIC.
1231 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1232 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1233 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1234 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1235 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1236 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1237 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1238 gomp_test_nest_lock_25): New prototypes.
1239 (omp_lock_symver, strong_alias): Define.
1240 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1242 (gomp_end_task): New.
1243 (struct gomp_task_icv, gomp_global_icv): New.
1244 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1245 (struct gomp_task): New.
1246 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1247 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1249 (gomp_schedule_type): Reorder enum to match
1251 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1253 (gomp_thread_start): Add gomp_team_barrier_wait call.
1254 For non-nested case remove clearing of docked thread thr fields.
1255 Use pool fields instead of global gomp_* variables. Use
1256 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1257 Create tasks for each member thread.
1258 (free_team): Only destroy team barrier, task_lock here and free it.
1259 (gomp_free_thread): Free last_team if non-NULL.
1260 (gomp_team_end): Call gomp_team_barrier_wait instead of
1261 gomp_barrier_wait. For nested case call one extra
1262 gomp_barrier_wait. Move here some destruction from free_team.
1263 Call free_team on pool->last_team if any, rather than freeing
1264 current team. Destroy work_share_list_free_lock ifndef
1266 (gomp_new_icv): New function.
1267 (gomp_threads, gomp_threads_size, gomp_threads_used,
1268 gomp_threads_dock): Removed.
1269 (gomp_thread_destructor): New variable.
1270 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1272 (gomp_team_start): Create new pool if current thread doesn't have
1273 one. Use pool fields instead of global gomp_* variables.
1274 Initialize thread_pool field for new threads. Clear single_count.
1275 Change last argument from ws to team, don't create
1276 new team, set ts.work_share to &team->work_shares[0] and clear
1277 ts.last_work_share. Don't clear ts.work_share_generation.
1278 If number of threads changed, adjust atomically gomp_managed_threads.
1279 Use gomp_init_task instead of gomp_new_task,
1280 set thr->task to the corresponding implicit_task array entry.
1281 Create tasks for each member thread. Initialize ts.level.
1282 (initialize_team): Call pthread_key_create on
1283 gomp_thread_destructor.
1284 (team_destructor): New function.
1285 (new_team): Removed.
1286 (gomp_new_team): New function.
1287 (free_team): Free gomp_work_share blocks chained through next_alloc,
1288 instead of freeing work_shares and destroying work_share_lock.
1289 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1290 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1291 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1292 of gomp_barrier_wait.
1293 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1294 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1295 if gomp_work_share_start returned true. Don't unlock ws->lock.
1296 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1297 of gomp_barrier_wait.
1298 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1299 gomp_work_share_init_done if gomp_work_share_start returned true.
1300 Don't unlock ws->lock.
1301 * work.c: Include stddef.h.
1302 (free_work_share): Use work_share_list_free_lock instead
1303 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1304 Call gomp_fini_work_share and then either free ws if orphaned, or
1305 put it into work_share_list_free list of the current team.
1306 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1308 (gomp_work_share_start, gomp_work_share_end,
1309 gomp_work_share_end_nowait): Rewritten.
1310 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1311 (openmp_version): Set to 200805.
1312 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1313 omp_sched_guided, omp_sched_auto): New parameters.
1314 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1315 omp_set_max_active_levels, omp_get_max_active_levels,
1316 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1317 omp_get_active_level): New interfaces.
1318 * omp_lib.h.in (openmp_version): Set to 200805.
1319 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1320 omp_sched_guided, omp_sched_auto): New parameters.
1321 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1322 omp_set_max_active_levels, omp_get_max_active_levels,
1323 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1324 omp_get_active_level): New externals.
1325 * loop.c: Include limits.h.
1326 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1328 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1329 Likewise. Use gomp_icv.
1330 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1331 ts.static_trip here.
1332 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1333 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1334 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1335 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1336 don't unlock ws->lock, otherwise lock it.
1337 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1338 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1339 (gomp_parallel_loop_start): Call gomp_new_team instead of
1340 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1341 Adjust gomp_team_start caller. Pass 0 as second argument to
1342 gomp_resolve_num_threads.
1343 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1344 If adding ws->chunk_size nthreads + 1 times after end won't
1345 overflow, set ws->mode to 1.
1346 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1347 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1348 GOMP_loop_ull_ordered_static_start,
1349 GOMP_loop_ull_ordered_dynamic_start,
1350 GOMP_loop_ull_ordered_guided_start,
1351 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1352 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1353 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1354 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1355 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1357 * libgomp.map: Export lock routines also @@OMP_2.0.
1358 (GOMP_loop_ordered_dynamic_first,
1359 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1360 GOMP_loop_ordered_static_first): Remove.
1361 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1362 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1363 GOMP_loop_ull_ordered_dynamic_next,
1364 GOMP_loop_ull_ordered_dynamic_start,
1365 GOMP_loop_ull_ordered_guided_next,
1366 GOMP_loop_ull_ordered_guided_start,
1367 GOMP_loop_ull_ordered_runtime_next,
1368 GOMP_loop_ull_ordered_runtime_start,
1369 GOMP_loop_ull_ordered_static_next,
1370 GOMP_loop_ull_ordered_static_start,
1371 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1372 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1373 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1374 (omp_set_schedule, omp_get_schedule,
1375 omp_get_thread_limit, omp_set_max_active_levels,
1376 omp_get_max_active_levels, omp_get_level,
1377 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1378 omp_set_schedule_, omp_set_schedule_8_,
1379 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1380 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1381 omp_get_max_active_levels_, omp_get_level_,
1382 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1383 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1384 New exports @@OMP_3.0.
1385 * omp.h.in (omp_sched_t): New type.
1386 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1387 omp_set_max_active_levels, omp_get_max_active_levels,
1388 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1389 omp_get_active_level): New prototypes.
1390 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1391 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1392 gomp_thread_limit_var, gomp_remaining_threads_count,
1393 gomp_remaining_threads_lock): New variables.
1394 (parse_spincount): New function.
1395 (initialize_env): Call gomp_init_num_threads unconditionally.
1396 Initialize gomp_available_cpus. Call parse_spincount,
1397 initialize gomp_{,throttled_}spin_count_var
1398 depending on presence and value of OMP_WAIT_POLICY and
1399 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1400 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1401 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1402 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1403 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1404 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1405 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1406 (gomp_global_icv): New.
1407 (parse_schedule): Use it. Parse "auto".
1408 (omp_set_num_threads): Use gomp_icv.
1409 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1411 (omp_get_max_threads): Move from parallel.c.
1412 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1413 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1415 (parse_stacksize, parse_wait_policy): New functions.
1416 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1417 both wrappers for compatibility and new locks.
1418 (omp_set_schedule, omp_get_schedule,
1419 omp_get_thread_limit, omp_set_max_active_levels,
1420 omp_get_max_active_levels, omp_get_level,
1421 omp_get_ancestor_thread_num, omp_get_team_size,
1422 omp_get_active_level): New ialias_redirect.
1423 (omp_set_schedule_, omp_set_schedule_8_,
1424 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1425 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1426 omp_get_max_active_levels_, omp_get_level_,
1427 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1428 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1430 * parallel.c: Include limits.h.
1431 (gomp_resolve_num_threads): Add count argument. Rewritten.
1432 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1433 argument to gomp_team_start. Pass 0 as second argument to
1434 gomp_resolve_num_threads.
1435 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1436 if gomp_thread_limit_var != ULONG_MAX.
1437 (omp_in_parallel): Implement using ts.active_level.
1438 (omp_get_max_threads): Move to env.c.
1439 (omp_get_level, omp_get_ancestor_thread_num,
1440 omp_get_team_size, omp_get_active_level): New functions,
1442 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1443 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1444 gomp_iter_dynamic_next instead of the _locked variant and don't take
1445 lock around it, otherwise acquire it before calling
1446 gomp_iter_dynamic_next_locked.
1447 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1448 gomp_iter_dynamic_next instead of the _locked variant and don't take
1450 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1451 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1452 Adjust gomp_team_start caller. Pass count as second argument to
1453 gomp_resolve_num_threads, don't adjust num_threads after the call.
1455 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1456 ws->chunk_size by incr.
1457 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1459 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1461 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1462 (omp_check_defines): Check even the compat defines.
1463 * config/linux/ptrlock.c: New file.
1464 * config/linux/ptrlock.h: New file.
1465 * config/linux/wait.h: New file.
1466 * config/posix/ptrlock.c: New file.
1467 * config/posix/ptrlock.h: New file.
1468 * config/linux/bar.h (gomp_team_barrier_wait,
1469 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1470 (gomp_team_barrier_set_task_pending,
1471 gomp_team_barrier_clear_task_pending,
1472 gomp_team_barrier_set_waiting_for_tasks,
1473 gomp_team_barrier_waiting_for_tasks,
1474 gomp_team_barrier_done): New inlines.
1475 (gomp_barrier_t): Rewritten.
1476 (gomp_barrier_state_t): New typedef.
1477 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1478 gomp_barrier_wait_start): Rewritten.
1479 (gomp_barrier_wait_end): Change second argument to
1480 gomp_barrier_state_t.
1481 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1483 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1485 (gomp_barrier_wait_end): Rewritten.
1486 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1487 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1488 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1489 (gomp_barrier_state_t): New typedef.
1490 (gomp_team_barrier_wait,
1491 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1492 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1493 into the return value. Return gomp_barrier_state_t.
1494 (gomp_team_barrier_set_task_pending,
1495 gomp_team_barrier_clear_task_pending,
1496 gomp_team_barrier_set_waiting_for_tasks,
1497 gomp_team_barrier_waiting_for_tasks,
1498 gomp_team_barrier_done): New inlines.
1499 (gomp_barrier_wait_end): Change second argument to
1500 gomp_barrier_state_t.
1501 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1503 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1504 (gomp_barrier_wait_end): Change second argument to
1505 gomp_barrier_state_t.
1506 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1507 gomp_team_barrier_wake): New functions.
1508 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1510 (gomp_futex_wake, gomp_futex_wait): New variables.
1511 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1512 * config/linux/lock.c: Rewrite to make locks task owned,
1513 for backwards compatibility provide the old entrypoints
1514 if symbol versioning. Include wait.h instead of libgomp.h and
1516 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1517 * config/posix95/lock.c: Rewrite to make locks task owned,
1518 for backwards compatibility provide the old entrypoints
1519 if symbol versioning.
1520 * config/posix/lock.c: Rewrite to make locks task owned,
1521 for backwards compatibility provide the old entrypoints
1522 if symbol versioning.
1523 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1524 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1525 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1526 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1527 (sys_futex0): Return error code.
1528 (futex_wake, futex_wait): If ENOSYS was returned, clear
1529 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1530 (cpu_relax, atomic_write_barrier): New static inlines.
1531 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1532 (futex_wake, futex_wait): If ENOSYS was returned, clear
1533 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1534 (cpu_relax, atomic_write_barrier): New static inlines.
1535 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1536 (sys_futex0): Return error code.
1537 (futex_wake, futex_wait): If ENOSYS was returned, clear
1538 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1539 (cpu_relax, atomic_write_barrier): New static inlines.
1540 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1541 (sys_futex0): Return error code.
1542 (futex_wake, futex_wait): If ENOSYS was returned, clear
1543 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1544 (cpu_relax, atomic_write_barrier): New static inlines.
1545 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1546 (sys_futex0): Return error code.
1547 (futex_wake, futex_wait): If ENOSYS was returned, clear
1548 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1549 (cpu_relax, atomic_write_barrier): New static inlines.
1550 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1551 (sys_futex0): Return error code.
1552 (futex_wake, futex_wait): If ENOSYS was returned, clear
1553 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1554 (cpu_relax, atomic_write_barrier): New static inlines.
1555 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1557 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1558 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1559 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1561 (omp_nest_lock_t): Change owner into void *, add lock field.
1562 * config/posix95/omp-lock.h: Include semaphore.h.
1563 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1564 (omp_lock_t): Use sem_t instead of mutex if semaphores
1566 (omp_nest_lock_t): Likewise. Change owner to void *.
1567 * config/posix/omp-lock.h: Include semaphore.h.
1568 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1569 (omp_lock_t): Use sem_t instead of mutex if semaphores
1571 (omp_nest_lock_t): Likewise. Add owner field.
1573 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1575 * testsuite/libgomp.c/collapse-1.c: New test.
1576 * testsuite/libgomp.c/collapse-2.c: New test.
1577 * testsuite/libgomp.c/collapse-3.c: New test.
1578 * testsuite/libgomp.c/icv-1.c: New test.
1579 * testsuite/libgomp.c/icv-2.c: New test.
1580 * testsuite/libgomp.c/lib-2.c: New test.
1581 * testsuite/libgomp.c/lock-1.c: New test.
1582 * testsuite/libgomp.c/lock-2.c: New test.
1583 * testsuite/libgomp.c/lock-3.c: New test.
1584 * testsuite/libgomp.c/loop-4.c: New test.
1585 * testsuite/libgomp.c/loop-5.c: New test.
1586 * testsuite/libgomp.c/loop-6.c: New test.
1587 * testsuite/libgomp.c/loop-7.c: New test.
1588 * testsuite/libgomp.c/loop-8.c: New test.
1589 * testsuite/libgomp.c/loop-9.c: New test.
1590 * testsuite/libgomp.c/nested-3.c: New test.
1591 * testsuite/libgomp.c/nestedfn-6.c: New test.
1592 * testsuite/libgomp.c/sort-1.c: New test.
1593 * testsuite/libgomp.c/task-1.c: New test.
1594 * testsuite/libgomp.c/task-2.c: New test.
1595 * testsuite/libgomp.c/task-3.c: New test.
1596 * testsuite/libgomp.c/task-4.c: New test.
1597 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1598 to C++ testsuite default compiler options.
1599 * testsuite/libgomp.c++/collapse-1.C: New test.
1600 * testsuite/libgomp.c++/collapse-2.C: New test.
1601 * testsuite/libgomp.c++/ctor-10.C: New test.
1602 * testsuite/libgomp.c++/for-1.C: New test.
1603 * testsuite/libgomp.c++/for-2.C: New test.
1604 * testsuite/libgomp.c++/for-3.C: New test.
1605 * testsuite/libgomp.c++/for-4.C: New test.
1606 * testsuite/libgomp.c++/for-5.C: New test.
1607 * testsuite/libgomp.c++/loop-8.C: New test.
1608 * testsuite/libgomp.c++/loop-9.C: New test.
1609 * testsuite/libgomp.c++/loop-10.C: New test.
1610 * testsuite/libgomp.c++/task-1.C: New test.
1611 * testsuite/libgomp.c++/task-2.C: New test.
1612 * testsuite/libgomp.c++/task-3.C: New test.
1613 * testsuite/libgomp.c++/task-4.C: New test.
1614 * testsuite/libgomp.c++/task-5.C: New test.
1615 * testsuite/libgomp.c++/task-6.C: New test.
1616 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1617 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1618 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1619 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1620 * testsuite/libgomp.fortran/collapse1.f90: New test.
1621 * testsuite/libgomp.fortran/collapse2.f90: New test.
1622 * testsuite/libgomp.fortran/collapse3.f90: New test.
1623 * testsuite/libgomp.fortran/collapse4.f90: New test.
1624 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1625 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1626 * testsuite/libgomp.fortran/lib4.f90: New test.
1627 * testsuite/libgomp.fortran/lock-1.f90: New test.
1628 * testsuite/libgomp.fortran/lock-2.f90: New test.
1629 * testsuite/libgomp.fortran/nested1.f90: New test.
1630 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1631 * testsuite/libgomp.fortran/strassen.f90: New test.
1632 * testsuite/libgomp.fortran/tabs1.f90: New test.
1633 * testsuite/libgomp.fortran/tabs2.f: New test.
1634 * testsuite/libgomp.fortran/task1.f90: New test.
1635 * testsuite/libgomp.fortran/task2.f90: New test.
1636 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1637 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1638 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1639 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1640 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1642 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1645 * testsuite/libgomp.c++/ctor-11.C: New test.
1646 * testsuite/libgomp.c++/ctor-12.C: New test.
1648 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1650 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1652 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1655 * testsuite/libgomp.c/atomic-5.c: New test.
1656 * testsuite/libgomp.c/atomic-6.c: New test.
1657 * testsuite/libgomp.c/autopar-1.c: New test.
1659 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1661 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1662 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1663 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1664 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1665 * configure: Regenerate.
1666 * Makefile.in, testsuite/Makefile.in: Likewise.
1668 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1671 * aclocal.m4: Regenerate.
1672 * configure: Regenerate.
1674 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1677 * testsuite/libgomp.c/atomic-4.c: New test.
1680 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1681 (gomp_iter_guided_next): Likewise.
1682 * testsuite/libgomp.c/pr35625.c: New test.
1684 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1686 * aclocal.m4: Regenerate.
1687 * configure: Likewise.
1688 * Makefile.in: Likewise.
1689 * testsuite/Makefile.in: Likewise.
1691 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1694 * testsuite/libgomp.c++/pr35185.C: New test.
1696 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1699 * testsuite/libgomp.c/pr35549.c: New test.
1701 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1703 * testsuite/libgomp.c/atomic-3.c: New test.
1705 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1708 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1711 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1714 * configure.ac: Add ACX_HEADER_STRING.
1715 * env.c: Include strings.h.
1716 * aclocal.m4: Regenerate.
1717 * config.h.in: Regenerate.
1718 * configure: Regenerate.
1719 * Makefile.in: Regenerate.
1720 * testsuite/Makefile.in: Regenerate.
1722 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1725 * testsuite/libgomp.c/pr35196.c: New test.
1728 * testsuite/libgomp.fortran/pr35130.f90: New test.
1729 * testsuite/libgomp.c/pr35130.c: New test.
1731 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1734 * testsuite/libgomp.c/pr33880.c: New test.
1735 * testsuite/libgomp.fortran/pr33880.f90: New test.
1737 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1739 * configure: Regenerate.
1741 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1743 * configure.ac: Move futex checking into ../config/futex.m4.
1744 * configure: Rebuilt.
1745 * aclocal.m4: Rebuilt.
1746 * Makefile.in: Rebuilt.
1748 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1749 2007-10-15 ../config/tls.m4 change.
1751 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1754 * testsuite/libgomp.c/pr34513.c: New test.
1755 * testsuite/libgomp.c++/pr34513.C: New test.
1757 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1760 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1762 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1764 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1766 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1768 * testsuite/libgomp.c/private-1.c: New test.
1770 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1771 Paolo Bonzini <bonzini@gnu.org>
1773 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1774 instead of 'VPATH ='.
1775 * Makefile.in: Regenerate.
1777 2007-11-23 Matthias Klose <doko@ubuntu.com>
1779 * configure.ac: Adjust makeinfo version check.
1780 * configure: Regenerate.
1782 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1785 * testsuite/libgomp.fortran/pr34020.f90: New test.
1787 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1790 * testsuite/libgomp.c++/atomic-1.C: New test.
1792 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1795 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1796 Make x and y integers rather than (implicit) reals. Add private (j)
1797 clause to the last omp parallel.
1799 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1801 * configure: Regenerate following changes to ../config/tls.m4.
1803 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1805 * testsuite/libgomp.fortran/stack.f90: New test.
1807 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1809 * config/mingw32/proc.c: New file.
1811 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1813 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1814 (main): Use __get_cpuid to get i386 target fetaures.
1815 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1816 (main): Use __get_cpuid to get x86_64 target fetaures.
1818 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1821 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1822 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1824 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1827 * testsuite/libgomp.fortran/pr32550.f90: New test.
1828 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1830 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1832 * aclocal.m4: Regenerated.
1834 2007-07-05 Tobias Burnus <burnus@net-b.de>
1837 * testsuite/libgomp.fortran/pr32359.f90: New.
1839 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1842 * sections.c (GOMP_parallel_sections_start): Only decrease
1843 number of threads to COUNT if dyn_var is true.
1844 * testsuite/libgomp.c/pr32468.c: New test.
1846 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1849 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1851 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1854 * testsuite/libgomp.c/pr32362-1.c: New test.
1855 * testsuite/libgomp.c/pr32362-2.c: New test.
1856 * testsuite/libgomp.c/pr32362-3.c: New test.
1858 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1860 * team.c (gomp_team_start): Fix setting up thread_attr
1863 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1865 * configure: Regenerate.
1867 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1869 * Makefile.in: Regenerate.
1870 * configure: Regenerate.
1871 * aclocal.m4: Regenerate.
1872 * testsuite/Makefile.in: Regenerate.
1874 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1876 * config/linux/proc.c: New file.
1879 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1881 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1883 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1885 2007-04-16 Matthias Klose <doko@debian.org>
1887 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1888 flags if not building with -m64.
1889 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1890 flag for i?86-*-* targets, if current target matches -m64.
1892 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1894 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1895 * Makefile.in: Regenerate.
1897 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1900 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1902 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1904 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1906 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1908 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1909 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1910 (parse_affinity): New function.
1911 (initialize_env): Call it and gomp_init_affinity.
1912 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1913 create new pthread_attr_t and call gomp_init_thread_affinity
1914 on it for each thread before passing the attribute to pthread_create.
1915 * config/linux/affinity.c: New file.
1916 * config/posix/affinity.c: New file.
1917 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1918 * configure: Rebuilt.
1919 * config.h.in: Rebuilt.
1920 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1921 * Makefile.in: Rebuilt.
1923 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1925 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1927 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1928 and use it if found.
1930 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1932 * testsuite/config/default.exp: New file.
1933 * testsuite/lib/libgomp.exp: New file.
1934 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1935 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1936 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1937 (libgomp_load): Remove.
1938 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1939 always_ld_library_path, not ld_library_path. Set additional_flags
1940 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1941 (target_compile): Do not call libgomp_init. Append lang_library_path
1942 and lang_link_flags to options.
1943 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1944 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1946 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1947 always_ld_library_path. Set LD_LIBRARY_PATH here.
1948 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1949 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1950 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1952 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1953 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1954 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1955 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1956 * testsuite/libgomp.c/atomic-10.c: Ditto.
1958 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1960 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1961 dg-final cleanup-modules line.
1962 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1963 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1964 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1965 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1966 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1967 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1968 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1970 2007-03-18 Andreas Schwab <schwab@suse.de>
1972 * acinclude.m4: Adjust regular expression for ld version
1974 * configure: Regenerate.
1976 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1978 * Makefile.am: Add install-pdf target as copied from
1979 automake v1.10 rules.
1980 * Makefile.in: Regenerate
1982 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1985 * configure: Regenerate.
1988 * testsuite/libgomp.c++/pr30703.C: New test.
1990 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1993 2006-07-05 Eric Christopher <echristo@apple.com>
1994 * configure.ac: Depend addition of -pthread on host OS.
1995 * configure: Regenerate.
1997 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1999 * libgomp.texi: Fix spacing after abbreviations.
2001 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2004 * configure.ac: Add check for makeinfo
2005 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2006 if an appropiate version of makeinfo is found.
2007 * aclocal.m4: Regenerated.
2008 * configure: Regenerated.
2009 * Makefile.in: Regenerated.
2010 * testsuite/Makefile.in: Regenerated.
2012 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2015 * libgomp.texi: More about implementation-dependent settings.
2017 2007-01-26 Tobias Burnus <burnus@net-b.de>
2019 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2021 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2024 * testsuite/libgomp.c/pr30494.c: New test.
2026 2007-01-15 Tom Tromey <tromey@redhat.com>
2028 * configure: Rebuilt.
2029 * configure.ac: Fixed comment.
2031 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2033 * libgomp.texi: Document implementation specific default values of
2034 environment variables.
2036 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2039 * libgomp.texi: New file.
2040 * configure.ac: Add --enable-generated-files-in-srcdir option.
2041 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2043 * Makefile.in: Regenerated.
2044 * config.h.in: Regenerated.
2045 * testsuite/Makefile.in: Regenerated.
2048 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2051 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2053 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2055 * configure: Regenerate.
2057 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2060 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2061 start if there shouldn't be any loop iterations.
2062 (gomp_loop_ordered_static_start): Remove start == end test.
2063 * testsuite/libgomp.c/pr29947-1.c: New test.
2064 * testsuite/libgomp.c/pr29947-2.c: New test.
2066 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2068 * configure.tgt: Force initial-exec TLS model on Linux only.
2070 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2072 * configure: Regenerated.
2074 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2076 * env.c (parse_schedule): Reject out of range values.
2077 (parse_unsigned_long): Reject out of range, negative or zero values.
2079 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2082 * testsuite/libgomp.fortran/pr29629.f90: New test.
2084 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2087 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2088 * config/posix95: New directory.
2089 * config/posix95/omp-lock.h: New file.
2090 * config/posix95/lock.c: Likewise.
2092 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2094 * aclocal.m4: Regenerate.
2095 * configure: Regenerate.
2097 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2099 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2102 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2104 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2106 * configure: Regenerate.
2107 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2109 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2113 * testsuite/libgomp.c/nestedfn-4.c: New test.
2114 * testsuite/libgomp.c/nestedfn-5.c: New test.
2115 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2118 * testsuite/libgomp.fortran/condinc1.f: New test.
2119 * testsuite/libgomp.fortran/condinc2.f: New test.
2120 * testsuite/libgomp.fortran/condinc3.f90: New test.
2121 * testsuite/libgomp.fortran/condinc4.f90: New test.
2122 * testsuite/libgomp.fortran/condinc1.inc: New file.
2124 2006-09-18 Tom Tromey <tromey@redhat.com>
2126 * configure: Rebuilt.
2128 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2131 PR preprocessor/14634
2132 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2134 * configure: Regenerate.
2136 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2138 * testsuite/libgomp.fortran/reduction3.f90: Change
2139 -2147483648 to -huge(i)-1 to avoid overflow.
2140 * testsuite/libgomp.fortran/reduction4.f90: Change
2141 Z'ffffffff' to not(0) to avoid overflow.
2143 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2146 * Makefile.am (libsubincludedir): New.
2147 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2148 * Makefile.in: Regenerate.
2150 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2153 * env.c: Include ctype.h.
2154 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2155 leading and/or trailing whitespace and compare strings case
2158 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2161 * testsuite/libgomp.fortran/pr28390.f: New test.
2163 2006-07-05 Eric Christopher <echristo@apple.com>
2165 * configure.ac: Depend addition of -pthread on host OS.
2166 * configure: Regenerate.
2168 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2170 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2171 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2174 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2178 * configure.ac: If neither --enable-linux-futex nor
2179 --disable-linux-futex is passed, determine the default by checking
2180 for compiling and/or running against NPTL. With --enable-linux-futex,
2181 check if SYS_gettid and SYS_futex are defined.
2182 * configure: Rebuilt.
2184 2006-06-14 Richard Henderson <rth@redhat.com>
2187 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2188 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2190 2006-06-09 Richard Henderson <rth@redhat.com>
2192 * env.c (gomp_nthreads_var): Change to unsigned long.
2193 (gomp_run_sched_chunk): Likewise.
2194 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2195 (initialize_env): Initialize gomp_thread_attr.
2196 * libgomp.h (gomp_nthreads_var): Update decl.
2197 (gomp_run_sched_chunk): Likewise.
2198 (gomp_thread_attr): Declare.
2199 * team.c (gomp_thread_attr): Export.
2200 (initialize_team): Don't initialize it.
2202 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2205 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2206 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2208 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2210 * config/mingw32/time.c: New file.
2211 * configure.tgt: Use it.
2213 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2215 * Makefile.am: Add install-html target. Add install-html to .PHONY
2216 * Makefile.in: Regenerate.
2218 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2221 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2222 * testsuite/libgomp.c/critical-1.c: Likewise.
2223 * testsuite/libgomp.c/loop-1.c: Likewise.
2224 * testsuite/libgomp.c/loop-2.c: Likewise.
2225 * testsuite/libgomp.c/single-1.c: Likewise.
2226 * testsuite/libgomp.c/ordered-1.c: Likewise.
2227 * testsuite/libgomp.c/ordered-2.c: Likewise.
2229 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2232 * libgomp.fortran/pr27416-1.f90: New test.
2234 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2237 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2238 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2240 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2243 * testsuite/libgomp.c/pr26943-1.c: New test.
2244 * testsuite/libgomp.c/pr26943-2.c: New test.
2245 * testsuite/libgomp.c/pr26943-3.c: New test.
2246 * testsuite/libgomp.c/pr26943-4.c: New test.
2247 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2248 * testsuite/libgomp.c++/pr26943.C: New test.
2250 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2253 * testsuite/libgomp.c++/pr27337.C: New test.
2255 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2258 * testsuite/libgomp.c/pr26171.c: New test.
2260 2006-04-25 Richard Henderson <rth@redhat.com>
2263 * configure.ac: Use GCC_CHECK_TLS.
2264 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2265 * Makefile.in, aclocal.m4, configure: Regenerate.
2267 2006-04-10 Matthias Klose <doko@debian.org>
2269 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2270 directory names containing underscores.
2272 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2275 * testsuite/libgomp.c++/pr26691.C: New test.
2277 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2279 * testsuite/libgomp.fortran/retval2.f90: New test.
2281 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2283 * testsuite/libgomp.c++: New directory.
2285 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2287 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2288 * config/posix/sem.c: Implement the above.
2290 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2292 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2293 define HAVE_BROKEN_POSIX_SEMAPHORES.
2294 * configure: Rebuilt.
2295 * config.h.in: Rebuilt.
2297 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2300 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2301 for the other pthread check.
2302 * configure: Regenerate.
2303 * config.h.in: Regenerate.
2305 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2309 * Makefile.am (fincludedir): New variable.
2310 (nodist_include_HEADERS): Remove Fortran files.
2311 (nodist_finclude_HEADERS): New variable.
2312 * Makefile.in: Regenerated.
2314 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2316 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2317 Remove tests for returning assumed character length arrays.
2319 2006-02-12 Roger Sayle <roger@eyesopen.com>
2320 John David Anglin <dave@hiauly1.hia.nrc.ca>
2323 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2325 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2327 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2329 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2331 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2332 part of LD_LIBRARY_PATH manually.
2334 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2337 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2340 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2343 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2344 * configure.ac (PERL): Don't set.
2345 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2346 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2347 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2348 * omp.h.in: Wrap the new configure substitutions with @ characters.
2349 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2350 * aclocal.m4, configure, Makefile.in: Regenerate.
2351 * mkomp_h.pl: Delete.
2353 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2356 * configure.ac: Use GCC_HEADER_STDINT.
2357 * libgomp.h: Include gstdint.h.
2358 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2359 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2361 2006-01-24 Richard Henderson <rth@redhat.com>
2364 * configure.ac: Add AM_MAINTAINER_MODE.
2365 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2367 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2369 * Makefile.in: Regenerate.
2370 * testsuite/Makefile.in: Regenerate.
2371 * aclocal.m4: Regenerate.
2373 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2375 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2377 * configure.ac: Add check for loadavg.h.
2378 (link_gomp): Adjust comment.
2379 * configure: Regenerate.
2380 * config.h.in: Regenerate.
2382 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2385 * configure.ac: Remove check for alloca.h.
2386 * configure: Regenerate.
2387 * config.h.in: Regenerate.
2388 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2389 * team.c: Remove use of alloca.h.
2390 Call gomp_alloca instead of alloca.
2392 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2395 * team.c: Add include of alloca.h.
2396 * configure.ac: Add check for alloca.h.
2397 * configure: Regenerate.
2398 * config.h.in: Regenerate.
2400 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2403 * testsuite/libgomp.fortran/pr25219.f90: New test.
2405 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2407 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2408 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2409 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2410 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2411 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2412 testsuite/libgomp.fortran/threadprivate1.f90,
2413 testsuite/libgomp.fortran/threadprivate2.f90,
2414 testsuite/libgomp.fortran/threadprivate3.f90,
2415 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2416 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2417 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2418 effective-target to TLS runtime.
2420 * testsuite/libgomp.fortran/pr25162.f: Require
2421 effective-target TLS runtime.
2423 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2425 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2426 * testsuite/libgomp.c/nestedfn-3.c: New test.
2428 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2431 * testsuite/libgomp.fortran/pr25162.f: New test.
2433 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2435 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2436 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2438 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2440 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2441 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2442 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2443 single.c, team.c, work.c, config/linux/alpha/futex.h,
2444 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2445 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2446 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2447 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2448 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2449 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2450 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2453 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2455 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2456 to nodist_noinst_HEADERS.
2457 * Makefile.in: Rebuilt.
2459 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2460 add integer count field.
2461 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2462 omp_nest_lock_t type change.
2463 (omp_init_nest_lock): Likewise. Initialize count to 0.
2464 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2466 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2468 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2469 Increment count if successful and return the new nesting level.
2470 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2471 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2472 * testsuite/libgomp.c/lib-1.c: New test.
2473 * testsuite/libgomp.fortran/lib1.f90: New test.
2474 * testsuite/libgomp.fortran/lib2.f: New test.
2475 * testsuite/libgomp.fortran/lib3.f: New test.
2477 2005-11-17 Richard Henderson <rth@redhat.com>
2480 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2481 * configure.ac (link_gomp): New. Substitute it.
2482 (AC_CONFIG_FILES): Add libgomp.spec.
2483 * libgomp.spec.in: New file.
2484 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2485 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2487 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2489 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2490 reduction(-:var) behaving the same as reduction(+:var).
2491 * testsuite/libgomp.c/reduction-4.c: New test.
2493 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2495 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2496 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2497 testsuite/libgomp.c/copyin-3.c,
2498 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2499 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2500 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2501 testsuite/libgomp.c++/pr24455.C,
2502 testsuite/libgomp.fortran/threadprivate1.f90,
2503 testsuite/libgomp.fortran/threadprivate2.f90,
2504 testsuite/libgomp.fortran/threadprivate3.f90,
2505 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2506 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2507 testsuite/libgomp.fortran/omp_parse3.f90: Require
2508 effective-target TLS.
2510 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2514 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2517 * team.c (initialize_team): Pass NULL rather than free as
2518 pthread_key_create destructor. Initialize thread specific data
2519 pointer in initial thread to a static local variable rather than
2522 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2524 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2525 its location to ld_library_path.
2527 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2529 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2531 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2533 * testsuite/libgomp.c: Rename from libgomp.dg.
2535 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2537 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2538 threadprivate variable 'i'.
2540 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2542 * config/linux/s390/futex.h: New file.
2543 * configure.tgt: Use it.
2545 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2546 before the parallel.
2548 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2551 * testsuite/libgomp.c++/master-1.C: New test.
2553 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2555 * testsuite/libgomp.dg/copyin-3.c: New test.
2557 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2559 * testsuite/libgomp.fortran/retval1.f90: New test.
2560 * testsuite/libgomp.fortran/vla7.f90: New test.
2562 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2564 * testsuite/libgomp.fortran/vla2.f90: New test.
2565 * testsuite/libgomp.fortran/vla3.f90: New test.
2566 * testsuite/libgomp.fortran/vla4.f90: New test.
2567 * testsuite/libgomp.fortran/vla5.f90: New test.
2568 * testsuite/libgomp.fortran/vla6.f90: New test.
2570 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2572 * config/linux/sparc/futex.h: New file.
2573 * configure.tgt: Use it.
2574 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2576 * critical.c: Include stdlib.h.
2577 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2578 ignoring return value.
2579 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2580 LIBGOMP_CHECK_SYNC_BUILTINS check.
2581 * configure: Rebuilt.
2583 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2585 * testsuite/libgomp.fortran/vla1.f90: New test.
2587 2005-10-31 Richard Henderson <rth@redhat.com>
2589 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2590 setting 's' in different threads.
2592 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2594 * libgomp.h (attribute_hidden, ialias): Define.
2595 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2596 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2597 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2598 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2599 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2600 omp_test_lock, omp_test_nest_lock): Likewise.
2601 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2602 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2603 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2604 omp_test_lock, omp_test_nest_lock): Likewise.
2605 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2606 omp_get_dynamic, omp_get_nested): Likewise.
2607 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2608 omp_get_thread_num, omp_in_parallel): Likewise.
2609 * fortran.c (ialias_redirect): Define.
2610 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2611 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2612 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2613 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2614 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2615 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2616 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2617 omp_get_wtime): Add ialias_redirect.
2619 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2621 * fortran.c: Include stdlib.h.
2623 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2625 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2626 * Makefile.in: Regenerated.
2628 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2630 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2631 * libgomp_f.h.in (omp_check_defines): New function.
2632 * env.c: Include libgomp_f.h.
2633 (initialize_env): Call omp_check_defines.
2635 * testsuite/libgomp.dg/copyin-2.c: New test.
2636 * testsuite/libgomp.c++/copyin-2.C: New test.
2637 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2639 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2640 * testsuite/libgomp.fortran/sharing2.f90: New test.
2642 * testsuite/libgomp.dg/copyin-1.c: New test.
2643 * testsuite/libgomp.c++/copyin-1.C: New test.
2645 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2647 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2649 * testsuite/libgomp.fortran/workshare1.f90: New test.
2651 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2653 * libgomp.fortran/sharing1.f90: New test.
2655 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2658 * testsuite/libgomp.c++/loop-7.C: New test.
2660 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2662 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2663 * testsuite/libgomp.fortran/reduction6.f90: New test.
2664 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2666 2005-10-23 Richard Henderson <rth@redhat.com>
2668 * testsuite/libgomp.c++/ctor-1.C: New.
2669 * testsuite/libgomp.c++/ctor-2.C: New.
2670 * testsuite/libgomp.c++/ctor-3.C: New.
2671 * testsuite/libgomp.c++/ctor-4.C: New.
2672 * testsuite/libgomp.c++/ctor-5.C: New.
2673 * testsuite/libgomp.c++/ctor-6.C: New.
2674 * testsuite/libgomp.c++/ctor-7.C: New.
2675 * testsuite/libgomp.c++/ctor-8.C: New.
2676 * testsuite/libgomp.c++/ctor-9.C: New.
2678 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2681 * testsuite/libgomp.c++/pr24455-1.C: New test.
2682 * testsuite/libgomp.c++/pr24455.C: New test.
2683 * testsuite/libgomp.dg/pr24455-1.c: New test.
2684 * testsuite/libgomp.dg/pr24455.c: New test.
2686 2005-10-20 Richard Henderson <rth@redhat.com>
2688 * testsuite/libgomp.c++/loop-6.C: New.
2689 * testsuite/libgomp.dg/loop-3.c: New.
2691 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2693 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2695 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2698 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2700 * testsuite/libgomp.fortran/jacobi.f: New test.
2702 2005-10-19 Richard Henderson <rth@redhat.com>
2704 * configure.tgt (i?86-linux): Default to with_arch instead of
2705 CFLAGS. Add -mtune to match target_cpu.
2706 (x86_64-linux): Tune to i686.
2708 * fortran.c (omp_test_nest_lock_): Fix typo.
2710 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2712 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2713 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2714 * testsuite/libgomp.dg/ordered-3.c: New test.
2716 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2717 Remove volatile keyword.
2719 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2720 in COMMON block to avoid warnings on 64-bit targets.
2722 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2724 * testsuite/libgomp.dg/shared-3.c: New test.
2726 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2728 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2729 * testsuite/libgomp.fortran/reduction5.f90: New test.
2731 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2733 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2735 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2736 flush loop now that __sync_synchronize has proper memory barrier.
2737 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2738 Add -ffixed-form to dg-options.
2740 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2742 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2743 from subdirectories.
2744 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2745 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2746 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2747 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2748 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2749 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2750 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2751 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2752 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2753 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2754 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2755 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2756 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2757 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2758 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2759 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2760 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2761 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2762 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2763 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2764 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2765 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2766 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2767 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2768 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2770 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2772 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2773 lang_library_path exists. Use find instead of glob to gather tests.
2774 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2776 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2778 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2779 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2780 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2781 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2782 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2783 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2784 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2785 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2786 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2787 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2788 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2789 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2790 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2792 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2794 * testsuite/libgomp.dg/vla-1.c: New test.
2796 * testsuite/libgomp.fortran/reference2.f90: New test.
2798 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2799 declaration of omp_get_thread_num.
2800 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2803 * testsuite/libgomp.fortran/reduction1.f90: New test.
2804 * testsuite/libgomp.fortran/reduction2.f90: New test.
2805 * testsuite/libgomp.fortran/reduction3.f90: New test.
2806 * testsuite/libgomp.fortran/reduction4.f90: New test.
2808 2005-10-13 Richard Henderson <rth@redhat.com>
2810 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2811 * Makefile.in: Regenerate.
2812 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2813 * libgomp.h: Include bar.h.
2814 (struct gomp_barrier): Remove.
2815 (struct gomp_team): Add barrier. Replace master_barrier with
2816 master_release. Replace threads with ordered_release.
2817 (struct gomp_thread): Replace barrier with release.
2818 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2819 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2820 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2821 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2822 (GOMP_single_copy_end): Likewise.
2823 * team.c (gomp_threads_dock): New.
2824 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2825 (gomp_thread_start): Use gomp_barrier_wait.
2826 (new_team, free_team): Update for gomp_team changes.
2827 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2828 (gomp_team_end): Use gomp_barrier_wait.
2829 (initialize_team): Update for gomp_thread changes.
2830 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2831 (gomp_work_share_end_nowait): Use atomic ops when available.
2832 * config/linux/bar.c, config/linux/bar.h: New files.
2833 * config/posix/bar.c, config/posix/bar.h: New files.
2835 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2837 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2838 * testsuite/libgomp.dg/single-2.c: New test.
2840 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2841 lang_link_flags): Unset, so that they aren't inherited from previously
2844 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2846 2005-10-12 Richard Henderson <rth@redhat.com>
2848 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2849 (libgomp_init): Use lang_test_file, lang_library_path, and
2850 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2852 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2853 (lang_test_file, lang_link_flags): New.
2854 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2856 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2857 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2858 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2859 testsuite/libgomp.c++/parallel-1.C,
2860 testsuite/libgomp.c++/reduction-1.C,
2861 testsuite/libgomp.c++/reduction-2.C,
2862 testsuite/libgomp.c++/reduction-3.C,
2863 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2864 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2865 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2866 New files, largely cribbed from the C testsuite.
2868 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2870 * testsuite/libgomp.fortran/character1.f90: New test.
2871 * testsuite/libgomp.fortran/character2.f90: New test.
2873 * testsuite/libgomp.dg/nested-1.c: New test.
2874 * testsuite/libgomp.dg/nested-2.c: New test.
2875 * testsuite/libgomp.fortran/do1.f90: New test.
2876 * testsuite/libgomp.fortran/do2.f90: New test.
2878 * testsuite/libgomp.fortran/reference1.f90: New test.
2880 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2882 * testsuite/libgomp.dg/reduction-1.c: New test.
2883 * testsuite/libgomp.dg/reduction-2.c: New test.
2884 * testsuite/libgomp.dg/reduction-3.c: New test.
2886 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2888 * testsuite/libgomp.dg/atomic-1.c: New test.
2889 * testsuite/libgomp.dg/atomic-2.c: New test.
2891 2005-10-09 Richard Henderson <rth@redhat.com>
2893 * critical.c (atomic_lock): New.
2894 (initialize_critical): Initialize it.
2895 (GOMP_atomic_start, GOMP_atomic_end): New.
2896 * libgomp.map: Export them.
2897 * libgomp_g.h: Declare them.
2899 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2901 2005-10-02 Richard Henderson <rth@redhat.com>
2903 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2904 to XCFLAGS instead of CFLAGS.
2906 2005-09-30 Richard Henderson <rth@redhat.com>
2908 * configure.ac: Determine whether -pthread or -lpthread is needed.
2909 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2910 * Makefine.in, configure: Rebuild.
2912 2005-09-28 Richard Henderson <rth@redhat.com>
2914 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2915 * testsuite/libgomp.dg/omp-single-3.c: New test.
2917 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2919 * testsuite/libgomp.dg/omp-single-2.c: New test.
2920 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2922 2005-09-27 Richard Henderson <rth@redhat.com>
2924 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2925 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2927 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2929 * testsuite/libgomp.dg/omp-loop03.c: New test.
2931 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2933 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2935 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2937 * testsuite/libgomp.dg/omp-single-1.c: New test.
2938 * testsuite/libgomp.dg/shared-1.c: Return 0.
2939 Add prototype for abort.
2940 * testsuite/libgomp.dg/shared-2.c: Likewise.
2942 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2944 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2947 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2949 * testsuite/libgomp.dg/shared-1.c: New test.
2950 * testsuite/libgomp.dg/shared-2.c: New test.
2952 2005-09-24 Richard Henderson <rth@redhat.com>
2954 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2956 2005-09-24 Richard Henderson <rth@redhat.com>
2958 * iter.c (gomp_iter_static_next): Round up when computing number
2959 of iterations. Don't bother distributing a remainder equally.
2961 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2962 Don't call srand. Zero b before testing.
2965 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2967 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2968 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2970 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2972 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2973 without !$omp end do, followed immediately by subroutine end.
2975 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2977 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2979 2005-09-22 Richard Henderson <rth@redhat.com>
2981 * critical.c (GOMP_critical_name_start): Change argument to void**.
2982 Reuse the pointer space if the mutex fits.
2983 (GOMP_critical_name_end): Likewise.
2984 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2985 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2986 (GOMP_critical_name_end): Likewise.
2987 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2988 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2990 2005-09-20 Richard Henderson <rth@redhat.com>
2992 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2993 (create_lock_lock): New.
2994 (initialize_critical): Initialize it.
2995 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2996 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2998 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3000 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3002 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3004 * testsuite/libgomp.dg/omp-loop01.c: New test.
3005 * testsuite/libgomp.dg/omp-loop02.c: New test.
3007 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3009 * configure.ac (AC_PROG_FC): Add.
3010 (USE_FORTRAN): New automake conditional.
3011 * configure: Rebuilt.
3012 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3013 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3014 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3015 Add rules to build them.
3016 * Makefile.in: Rebuilt.
3017 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3019 * libgomp.map: Add Fortran wrappers.
3020 * libgomp_f.h.in: New file.
3021 * omp_lib.h.in: New file.
3022 * omp_lib.f90.in: New file.
3023 * fortran.c: New file.
3024 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3025 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3026 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3027 libgfortran has been built.
3028 * testsuite/libgomp.fortran/fortran.exp: New file.
3029 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3030 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3031 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3032 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3033 * testsuite/libgomp.fortran/omp_hello.f: New test.
3034 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3035 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3036 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3037 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3038 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3039 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3040 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3041 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3043 2005-08-30 Richard Henderson <rth@redhat.com>
3045 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3046 function for when aliases are not usable.
3047 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3048 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3049 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3050 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3051 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3052 GOMP_loop_ordered_guided_next): Likewise.
3053 * ordered.c (GOMP_ordered_start): Likewise.
3055 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3057 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3058 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3059 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3060 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3061 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3062 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3063 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3064 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3065 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3067 2005-07-07 Eric Christopher <echristo@redhat.com>
3068 Diego Novillo <dnovillo@redhat.com>
3070 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3071 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3073 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3074 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3075 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3076 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3077 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3078 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3079 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3081 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3083 * TOPLEVEL.patch: Remove.
3085 2005-05-16 Richard Henderson <rth@redhat.com>
3087 * configure.ac: Test for clock_gettime.
3088 * config.h.in, configure: Rebuild.
3089 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3090 (omp_get_wtime): Use clock_gettime if available.
3091 (omp_get_wtick): Use clock_getres if available.
3093 2005-05-11 Richard Henderson <rth@redhat.com>
3095 * config/linux/ia64/futex.h: New file.
3096 * configure.tgt: Use it.
3098 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3100 2005-05-07 Richard Henderson <rth@redhat.com>
3102 * config/linux/powerpc/futex.h: New file.
3103 * configure.tgt: Use it.
3105 * config/linux/i486/futex.h: Merge ...
3106 * config/linux/x86_64/futex.h: ... into ...
3107 * config/linux/x86/futex.h: ... here.
3108 * configure.tgt: Update to match.
3110 2005-05-06 Richard Henderson <rth@redhat.com>
3112 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3113 * config/linux/i486/futex.h: Likewise.
3114 * config/linux/x86_64/futex.h: Likewise.
3116 * config/linux/lock.c: New file.
3117 * config/linux/omp-lock.h: New file.
3119 * critical.c, env.h: Don't include omp.h
3120 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3121 * config/posix/time.c: Likewise.
3122 * config/posix/omp-lock.h: New file.
3123 * libgomp.h: Include omp-lock.h and omp.h.
3124 * Makefile.am (nodist_include_HEADERS): New.
3126 * configure.ac (PERL): New.
3127 * mkomp_h.pl: New file.
3128 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3130 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3132 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3133 build directory. Re-add -march=i486 hack.
3135 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3136 (libgomp_link_flags): Remove.
3137 (libgomp_initialized): Remove.
3138 (libgomp_init): Don't protect from reinitialization. Copy code
3139 from libstdc++ for getting the multilib set correctly.
3141 2005-05-05 Richard Henderson <rth@redhat.com>
3143 * config/linux/alpha/futex.h: New file.
3144 * configure.tgt (alpha*-*-linux*): Use it.
3146 * config/posix/mutex.c: New file.
3147 * config/posix/sem.c: Use libgomp.h.
3149 * configure.tgt (x86_64-linux): Also test CC for -m32.
3150 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3152 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3155 * Makefile.am (SUBDIRS): New.
3156 (libgomp_la_LDFLAGS): Add -lpthread.
3157 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3158 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3160 * libgomp_g.h: New file.
3161 * libgomp.h: Split out all public declarations to libgomp_g.h.
3162 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3163 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3164 * config/linux/sem.h: Likewise.
3165 * config/posix/sem.h: Likewise.
3167 * Makefile.am (AM_LDFLAGS): New.
3168 (libgomp_version_script): Split out from ...
3169 (libgomp_la_LDFLAGS): ... here.
3170 (libgomp_version_info): New.
3171 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3172 (LIBGOMP_ENABLE): New.
3173 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3174 (LIBGOMP_ENABLE_SYMVERS): New.
3175 * configure.ac (AC_INIT): Version 1.0.
3176 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3177 (enable-linux-futex): Likewise. Rename from enable-futex.
3178 (libtool_VERSION): New.
3179 (LIBGOMP_ENABLE_SYMVERS): Use it.
3180 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3181 * Makefile.in, aclocal.m4, configure: Rebuild.
3183 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3184 (gomp_mutex_unlock_slow): Fix typo.
3185 * config/linux/sem.c: Similarly.
3186 (gomp_sem_post_slow): Fix typo.
3187 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3188 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3189 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3191 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3192 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3193 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3194 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3195 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3196 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3197 LDFLAGS. Pull enable_futex check to top-level.
3198 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3199 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3201 First attempt at real configury.
3202 * Makefile, config.h: Remove file.
3203 * Makefile.am, Makefile.in: New file.
3204 * acinclude.m4 aclocal.m4: New file.
3205 * configure.ac, configure.tgt, configure: New file.
3207 * config/posix/lock.c: Rename from sys-lock.c.
3208 * config/posix/mutex.h: Rename from sys-mutex.h.
3209 * config/posix/sem.c: Rename from sys-sem.c.
3210 * config/posix/sem.h: Rename from sys-sem.h.
3211 * config/posix/proc.c: Rename from sys-proc.c.
3212 * config/posix/time.c: Rename from sys-proc.c.
3214 * config/linux/mutex.c: New file.
3215 * config/linux/mutex.h: New file.
3216 * config/linux/sem.c: New file.
3217 * config/linux/sem.h: New file.
3218 * config/linux/i486/futex.h: New file.
3219 * config/linux/x86_64/futex.h: New file.
3221 2005-05-04 Richard Henderson <rth@redhat.com>
3223 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3224 * libgomp.h: Declare them.
3225 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3226 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3228 2005-05-04 Richard Henderson <rth@redhat.com>
3230 * libgomp-1 code drop
3232 2005-05-04 Richard Henderson <rth@redhat.com>
3234 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3235 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3236 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3237 (gomp_iter_static_next): Update.
3238 (gomp_ordered_static_next): Update.
3239 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3240 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3241 totally empty range.
3242 (gomp_loop_ordered_static_next): Refine test for calling
3243 gomp_ordered_static_next.
3244 * testsuite/ordered-1.c: Add case for more threads than iterations.
3246 * iter.c (gomp_iter_runtime_next_locked): Remove.
3247 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3248 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3249 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3250 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3251 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3252 gomp_loop_ordered_guided_next): Downcase name, make static, add
3253 an external alias with the old name.
3254 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3255 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3256 switch and call one of the above static functions.
3257 * libgomp.h: Update.
3259 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3260 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3261 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3262 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3263 GOMP_loop_ordered_guided_start): Update to match.
3264 * sections.c (GOMP_sections_start): Likewise.
3265 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3267 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3268 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3269 Use bounds check instead of modulus.
3270 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3271 (gomp_ordered_last): Don't sync with ordered_owner here.
3272 (gomp_ordered_next): Likewise.
3273 (gomp_ordered_static_loop_next): Likewise.
3274 * loop.c, libgomp.h: Update to match.
3276 * libgomp.h (GOMP_barrier): Declare.
3278 * testsuite/barrier-1.c: New file.
3279 * testsuite/critical-1.c: New file.
3280 * testsuite/ordered-2.c: New file.
3281 * testsuite/ordered-1.c: New file.
3282 * testsuite/sections-1.c: New file.
3283 * testsuite/single-1.c: New file.
3284 * testsuite/Makefile (TESTS): Add them.
3286 2005-05-04 Richard Henderson <rth@redhat.com>
3288 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3289 * loop.c (GOMP_loop_static_start): If not the startup thread,
3290 acquire the mutex to wait for initialization complete.
3291 (GOMP_loop_ordered_static_start): Likewise.
3292 (GOMP_loop_ordered_runtime_start): Likewise.
3293 (GOMP_loop_ordered_static_first): Remove.
3294 (GOMP_loop_ordered_dynamic_first): Remove.
3295 (GOMP_loop_ordered_guided_first): Remove.
3296 (GOMP_loop_ordered_runtime_first): Remove.
3297 * ordered.c (gomp_ordered_loop_first): Post to own release when
3298 we're the first thread.
3299 (gomp_ordered_loop_last): Wait on release if not owner.
3300 (gomp_ordered_loop_next): Likewise.
3301 (gomp_ordered_static_loop_init): New.
3302 (gomp_ordered_static_loop_next): Use ordered_owner.
3303 (GOMP_ordered_start): Likewise.
3304 * work.c (gomp_new_work_share): Initialize ordered_owner.
3306 2005-05-03 Richard Henderson <rth@redhat.com>
3308 * Makefile (OPT): New.
3311 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3312 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3313 * libgomp.h, libgomp.map, NOTES: Update to match.
3315 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3316 Add initialized and thr members.
3317 (gomp_thread_start): Pause when initially spawned to wait for
3318 the whole team to be created.
3319 (gomp_team_start): Release team members at the end.
3321 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3322 (f_foo_1): Use GOMP_loop_end.
3323 (f_foo_2): Use GOMP_loop_end_nowait.
3325 * testsuite/loop-2.c: New file.
3326 * testsuite/Makefile (TESTS): Add it.
3328 2005-05-03 Richard Henderson <rth@redhat.com>
3330 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3331 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3332 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3335 * testsuite/Makefile: New file.
3336 * testsuite/loop-1.c: New file.
3338 2005-05-03 Richard Henderson <rth@redhat.com>
3340 Initial implementation and checkin.