1 2012-11-21 Jakub Jelinek <jakub@redhat.com>
4 * team.c (gomp_free_thread): Decrease gomp_managed_threads
5 if pool had any threads_used.
7 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9 * testsuite/libgomp.c++/pr24455.C: Use
10 -Wl,-undefined,dynamic_lookup on darwin.
12 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
14 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
18 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
20 2012-10-23 Ian Bolton <ian.bolton@arm.com>
21 Jim MacArthur <jim.macarthur@arm.com>
22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23 Nigel Stephens <nigel.stephens@arm.com>
24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25 Richard Earnshaw <rearnsha@arm.com>
26 Sofiane Naci <sofiane.naci@arm.com>
27 Stephen Thomas <stephen.thomas@arm.com>
28 Tejas Belagod <tejas.belagod@arm.com>
29 Yufeng Zhang <yufeng.zhang@arm.com>
31 * configure.tgt: Add AArch64.
33 2012-10-04 Jason Merrill <jason@redhat.com>
35 * testsuite/libgomp.c++/tls-init1.C: New.
37 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
39 * configure: Regenerated.
41 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
43 * config/linux/mips/futex.h (sys_futex0): Change to static
44 function with noinline, nomips16 attributes under MIPS16. Adjust
45 asm statement to place 'li v0,SYS_futex' immediately before
48 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
50 * libgomp.texi (Library Index): Renamed from "Index" to prevent
51 conflict with index.html on case-insensitive file systems.
53 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
55 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
56 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
58 2012-07-02 Richard Guenther <rguenther@suse.de>
59 Michael Matz <matz@suse.de>
60 Tobias Grosser <tobias@grosser.es>
61 Sebastian Pop <sebpop@gmail.com>
63 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
64 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
65 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
66 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
68 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
70 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
72 2012-06-22 Richard Guenther <rguenther@suse.de>
74 Merge from graphite branch
75 2012-01-13 Tobias Grosser <tobias@grosser.es>
77 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
78 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
80 2012-06-07 Jakub Jelinek <jakub@redhat.com>
83 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
84 use GOMP_barrier () call instead.
85 * testsuite/libgomp.c/pr26943-3.c: Likewise.
86 * testsuite/libgomp.c/pr26943-4.c: Likewise.
87 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
88 call GOMP_barrier instead.
89 * testsuite/libgomp.fortran/vla5.f90: Likewise.
91 2012-06-06 Jakub Jelinek <jakub@redhat.com>
94 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
95 argument to memset call.
97 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
99 * configure: Regenerated.
101 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
103 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
105 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
108 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
110 2012-03-22 Jakub Jelinek <jakub@redhat.com>
113 * testsuite/libgomp.c/pr52547.c: New test.
115 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
117 * testsuite/lib/libgomp.exp: load fortran-modules.exp
119 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
121 * configure.tgt (mips-sgi-irix6*): Remove.
123 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
125 * configure.tgt (alpha*-dec-osf*): Remove.
127 * config/osf/sem.h: Remove.
128 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
130 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
132 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
134 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
137 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
138 Remove ENABLE_SYMVERS_SOL2.
139 * configure: Regenerate.
140 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
141 (PREPROCESS): New variable.
142 (libgomp.ver): New target.
143 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
144 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
145 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
147 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
148 * Makefile.in: Regenerate.
150 2012-02-14 Walter Lee <walt@tilera.com>
152 * configure.tgt: Handle tilegx and tilepro.
153 * config/linux/tile/futex.h: New file.
155 2012-02-08 Richard Guenther <rguenther@suse.de>
157 PR tree-optimization/46886
158 * testsuite/libgomp.c/pr46886.c: New testcase.
160 2012-01-25 Matthias Klose <doko@ubuntu.com>
162 * config/linux/arm: Remove empty directory.
163 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
165 2011-12-09 Alan Modra <amodra@gmail.com>
168 * task.c (GOMP_taskwait): Don't access task->children outside of
169 task_lock mutex region.
170 (GOMP_task): Likewise.
172 2011-12-06 Jakub Jelinek <jakub@redhat.com>
175 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
177 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
178 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
179 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
180 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
181 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
183 2011-12-02 Alan Modra <amodra@gmail.com>
185 * config/linux/affinity.c: Use atomic rather than sync builtin.
186 * config/linux/lock.c: Likewise.
187 * config/linux/ptrlock.h: Likewise.
188 * config/linux/ptrlock.c: Likewise.
189 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
190 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
191 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
192 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
193 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
194 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
195 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
196 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
197 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
198 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
200 2011-11-30 Alan Modra <amodra@gmail.com>
203 * config/linux/bar.h: Use atomic rather than sync builtins.
204 * config/linux/bar.c: Likewise. Add missing acquire
205 synchronisation on generation field.
206 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
209 2011-11-30 Alan Modra <amodra@gmail.com>
211 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
212 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
213 * config/linux/mutex.h: Use atomic rather than sync builtins.
214 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
215 * config/linux/omp-lock.h: Comment fix.
216 * config/linux/arm/mutex.h: Delete.
217 * config/linux/powerpc/mutex.h: Delete.
218 * config/linux/ia64/mutex.h: Delete.
219 * config/linux/mips/mutex.h: Delete.
221 2011-11-30 Alan Modra <amodra@gmail.com>
224 * config/linux/sem.h: Rewrite.
225 * config/linux/sem.c: Rewrite.
227 2011-11-28 Richard Henderson <rth@redhat.com>
229 * libgomp.h (enum memmodel): New.
231 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
233 * configure: Regenerate.
235 2011-10-10 Matthias Klose <doko@ubuntu.com>
237 * config/posix95: Remove empty directory.
239 2011-08-26 Jakub Jelinek <jakub@redhat.com>
241 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
243 2011-08-19 Jakub Jelinek <jakub@redhat.com>
246 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
247 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
249 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
251 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
253 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
256 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
258 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
260 * config/linux/proc.h: New.
261 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
262 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
263 (gomp_init_num_threads): Update call to cpuset_popcount.
264 (get_num_procs): Ditto.
265 * config/linux/affinity.c (gomp_init_affinity): Call
266 gomp_cpuset_popcount.
268 2011-08-02 Jakub Jelinek <jakub@redhat.com>
272 * omp.h.in (omp_in_final): New prototype.
273 * omp_lib.f90.in (omp_in_final): New interface.
274 (omp_integer_kind, omp_logical_kind): Remove
275 and replace all its uses in the module with 4.
276 (openmp_version): Change to 201107.
277 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
278 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
279 kind for the parameters.
280 (omp_in_final): New external.
281 (openmp_version): Change to 201107.
282 * task.c (omp_in_final): New function.
283 (gomp_init_task): Initialize final_task.
284 (GOMP_task): Remove unused attribute from flags. Handle final
286 (GOMP_taskyield): New function.
287 (omp_in_final): Return true if if (false) or final (true) task
288 or descendant of final (true).
289 * fortran.c (omp_in_final_): New function.
290 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
291 (GOMP_3.0): Export GOMP_taskyield.
292 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
294 (parse_unsigned_long_list): New function.
295 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
296 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
297 even if parse_affinity returned false.
298 * config/linux/affinity.c (gomp_init_affinity): Handle
299 gomp_cpu_affinity_len == 0.
300 * libgomp_g.h (GOMP_taskyield): New prototype.
301 * libgomp.h (struct gomp_task): Add final_task field.
302 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
303 * team.c (gomp_team_start): Override new task's nthreads_var icv
304 if list form OMP_NUM_THREADS has been used and it has value for
305 the new nesting level.
307 * testsuite/libgomp.c/atomic-11.c: New test.
308 * testsuite/libgomp.c/atomic-12.c: New test.
309 * testsuite/libgomp.c/atomic-13.c: New test.
310 * testsuite/libgomp.c/atomic-14.c: New test.
311 * testsuite/libgomp.c/reduction-6.c: New test.
312 * testsuite/libgomp.c/task-5.c: New test.
313 * testsuite/libgomp.c++/atomic-2.C: New test.
314 * testsuite/libgomp.c++/atomic-3.C: New test.
315 * testsuite/libgomp.c++/atomic-4.C: New test.
316 * testsuite/libgomp.c++/atomic-5.C: New test.
317 * testsuite/libgomp.c++/atomic-6.C: New test.
318 * testsuite/libgomp.c++/atomic-7.C: New test.
319 * testsuite/libgomp.c++/atomic-8.C: New test.
320 * testsuite/libgomp.c++/atomic-9.C: New test.
321 * testsuite/libgomp.c++/task-8.C: New test.
322 * testsuite/libgomp.c++/reduction-4.C: New test.
323 * testsuite/libgomp.fortran/allocatable7.f90: New test.
324 * testsuite/libgomp.fortran/allocatable8.f90: New test.
325 * testsuite/libgomp.fortran/crayptr3.f90: New test.
326 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
327 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
328 * testsuite/libgomp.fortran/pointer1.f90: New test.
329 * testsuite/libgomp.fortran/pointer2.f90: New test.
330 * testsuite/libgomp.fortran/task4.f90: New test.
332 2011-08-02 Tobias Burnus <burnus@net-b.de>
334 * libgomp.texi: Update OpenMP spec references to 3.1.
335 (omp_in_final,OMP_PROC_BIND): New sections.
336 (OMP_NUM_THREADS): Document that the value can be now a list.
337 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
339 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
341 * config/linux/x86/futex.h: Check __x86_64__ instead of
344 2011-07-29 Jakub Jelinek <jakub@redhat.com>
348 * testsuite/libgomp.c/pr49897-1.c: New test.
349 * testsuite/libgomp.c/pr49897-2.c: New test.
350 * testsuite/libgomp.c/pr49898-1.c: New test.
351 * testsuite/libgomp.c/pr49898-2.c: New test.
353 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
355 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
356 for ia32 instead of ilp32.
358 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
359 * testsuite/libgomp.c/atomic-6.c: Likewise.
361 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
363 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
364 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
366 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
369 * config/osf/sem.h: New file.
370 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
372 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
375 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
378 2011-07-15 Jakub Jelinek <jakub@redhat.com>
380 * config/linux/wait.h (do_spin): New inline, largely copied
381 from do_wait, just don't do futex_wait here, instead return true if
383 (do_wait): Implement using do_spin.
384 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
386 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
387 __sync_bool_compare_and_swap, pass the oldval to
388 gomp_mutex_lock_slow.
389 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
390 If all mutex contenders are just spinning and not sleeping, don't
391 change state to 2 unnecessarily. Optimize the loop when state has
392 already become 2 to use just one atomic operation per loop instead
394 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
396 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
397 __sync_bool_compare_and_swap, pass the oldval to
398 gomp_mutex_lock_slow.
400 2011-06-22 Jakub Jelinek <jakub@redhat.com>
403 * iter.c (gomp_iter_static_next): For chunk size 0
404 only use n ceil/ nthreads size for the first
405 n % nthreads threads in the team instead of
406 all threads except for the last few ones which
407 get less work or none at all.
408 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
409 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
410 chunk argument, set run_sched_modifier to 0 for static
411 resp. 1 for other kinds. If chunk argument is 0
412 and not static, set value to 1.
414 2011-05-19 Jakub Jelinek <jakub@redhat.com>
417 * testsuite/libgomp.c++/pr49043.C: New test.
420 * testsuite/libgomp.c++/pr48869.C: New test.
422 2011-05-06 Jakub Jelinek <jakub@redhat.com>
425 * fortran.c: Include limits.h.
427 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
429 (omp_set_num_threads_8_, omp_set_schedule_8_,
430 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
431 omp_get_team_size_8_): Use TO_INT macro.
432 * testsuite/libgomp.fortran/pr48894.f90: New test.
434 2011-04-13 Jakub Jelinek <jakub@redhat.com>
437 * testsuite/libgomp.c/pr48591.c: New test.
439 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
442 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
443 * configure: Regenerate.
445 2011-02-27 Jakub Jelinek <jakub@redhat.com>
448 * testsuite/libgomp.fortran/task3.f90: New test.
450 2011-02-24 Tobias Burnus <burnus@net-b.de>
452 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
454 2011-02-23 Jakub Jelinek <jakub@redhat.com>
457 * libgomp.texi (omp_get_wtime): Don't say time in the past
460 2011-02-18 Jakub Jelinek <jakub@redhat.com>
463 * testsuite/libgomp.fortran/fortran.exp: Check for both
464 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
465 but $blddir != "", still append ${blddir}/${lang_library_path}
468 2011-02-16 Tobias Burnus <burnus@net-b.de>
471 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
472 of libquadmath.a before adding its libpath to ldflags.
474 2011-02-14 Jakub Jelinek <jakub@redhat.com>
477 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
478 to FUTEX_WAIT futex syscall.
479 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
481 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
483 * configure: Regenerate.
485 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
488 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
490 2011-01-16 Gerald Pfeifer
492 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
494 2010-12-14 Jakub Jelinek <jakub@redhat.com>
497 * libgomp.fortran/allocatable6.f90: New test.
499 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
501 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
502 * configure: Regenerate.
504 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
508 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
509 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
510 * aclocal.m4: Regenerate.
511 * configure: Regenerate.
512 * Makefile.in: Regenerate.
513 * testsuite/Makefile.in: Regenerate.
515 2010-12-02 Jakub Jelinek <jakub@redhat.com>
518 * libgomp.fortran/pr46753.f90: New test.
521 * env.c (initialize_env): Default to spin count 300000
522 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
526 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
527 at the end if sync builtins aren't supported.
529 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
531 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
533 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
535 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
537 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
539 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
541 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
542 Tobias Burnus <burnus@net-b.de>
546 * configure: Regenerate.
548 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
550 * config/linux/futex.h: New.
551 * config/linux/arm/mutex.h: New.
552 * configure.tgt (arm*-*-linux*): Add config path.
554 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
556 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
558 2010-09-23 Tobias Burnus <burnus@net-b.de>
560 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
561 Change Fortran datatype to LOGICAL.
562 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
563 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
565 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
567 * configure: Regenerate.
569 2010-07-26 Jakub Jelinek <jakub@redhat.com>
571 * libgomp.texi: Add function keyword to a couple of Fortran
572 interfaces, use integer instead of int for Fortran.
574 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
576 * libgomp.texi: Fix spelling and pasto problems throughout.
577 Adjust prototypes to match code.
579 2010-07-24 Tobias Burnus <burnus@net-b.de>
581 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
582 silence -fwhole-file warning.
584 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
586 * configure.tgt (*-*-solaris2.[56]*): Removed.
588 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
590 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
591 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
592 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
593 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
594 targetting solaris2*.
595 * configure: Regenerate.
596 * config.h.in: Regenerate.
598 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
599 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
600 Add libgomp_version_dep.
601 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
603 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
604 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
605 * Makefile.in: Regenerate.
607 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
608 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
609 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
610 to common block, protected by
611 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
613 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
615 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
617 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
620 * configure: Regenerate.
622 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
625 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
626 * configure: Regenerate.
627 * Makefile.in: Regenerate.
628 * testsuite/Makefile.in: Regenerate.
630 2010-04-26 Jakub Jelinek <jakub@redhat.com>
633 * testsuite/libgomp.c/pr43893.c: New test.
634 * testsuite/libgomp.c++/pr43893.C: New test.
636 2010-04-21 Jakub Jelinek <jakub@redhat.com>
639 * testsuite/libgomp.fortran/vla8.f90: New test.
641 2010-04-20 Jakub Jelinek <jakub@redhat.com>
644 * config/linux/affinity.c (gomp_init_affinity): Decrease
645 gomp_available_cpus if affinity mask confines the process to fewer
647 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
648 non-NULL, just return gomp_available_cpus.
651 * sections.c (gomp_sections_init): Initialize ws->mode.
653 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
655 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
656 not unused bar variable.
657 * configure: Regenerate.
659 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
661 * Makefile.in: Regenerate.
662 * aclocal.m4: Regenerate.
663 * testsuite/Makefile.in: Regenerate.
665 2010-03-22 Jakub Jelinek <jakub@redhat.com>
668 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
669 (initialize_env): Adjust callers.
670 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
671 when the argument is 0.
673 * testsuite/libgomp.c/pr42942.c: New test.
675 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
679 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
680 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
682 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
684 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
685 * testsuite/libgomp.c++/task-6.C: Likewise.
687 2010-01-28 Steve Ellcey <sje@cup.hp.com>
689 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
691 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
693 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
694 * configure: Regenerate.
696 2010-01-26 Jakub Jelinek <jakub@redhat.com>
699 * testsuite/libgomp.fortran/allocatable5.f90: New test.
701 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
703 * configure.ac: Test for executability of GFORTRAN.
704 * configure: Regenerate.
706 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
708 * configure: Regenerate.
710 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
713 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
715 2010-01-03 Richard Guenther <rguenther@suse.de>
717 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
719 2009-12-23 Sebastian Pop <sebpop@gmail.com>
721 * testsuite/libgomp.graphite/pr4118.c: New.
723 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
725 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
726 for darwin, protect the test with require-effective-target tls_runtime.
727 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
729 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
732 * testsuite/lib/libgomp.exp: Provide -B options to allow for
733 link spec %s substitutions for static libraries.
735 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
738 * libgomp.graphite/force-parallel-2.c: Reduce array size.
740 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
742 * Makefile.in: Regenerate.
743 * configure: Regenerate.
744 * testsuite/Makefile.in: Regenerate.
746 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
748 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
749 settings for LC_ALL and LANG.
751 2009-11-25 Jakub Jelinek <jakub@redhat.com>
754 * testsuite/libgomp.fortran/pr42162.f90: New test.
756 2009-11-13 Jakub Jelinek <jakub@redhat.com>
759 * testsuite/libgomp.c/pr42029.c: New test.
761 2009-10-26 Jakub Jelinek <jakub@redhat.com>
763 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
764 *s. Accept ld version without text in ()s.
765 * configure: Regenerated.
767 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
769 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
771 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
774 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
775 or a hyphen (happens with fortran language disabled).
776 * configure: Regenerate.
778 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
780 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
781 use sed script portable to Solaris /bin/sed for extracting ld
783 * configure: Regenerate.
785 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
787 * testsuite/libgomp.graphite/bounds.c: New test.
789 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
791 * Makefile.am (libgomp_la_LINK): New.
792 * Makefile.in: Regenerate.
794 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
796 * configure.ac (AC_PREREQ): Bump to 2.64.
798 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
800 * Makefile.am (install-html, install-pdf): Remove.
801 * Makefile.in: Regenerate.
803 * Makefile.in: Regenerate.
804 * aclocal.m4: Regenerate.
805 * config.h.in: Regenerate.
806 * configure: Regenerate.
807 * testsuite/Makefile.in: Regenerate.
809 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
811 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
812 * Makefile.in: Regenerate.
814 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
816 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
817 * Makefile.in: Regenerate.
819 2009-08-19 Tobias Burnus <burnus@net-b.de>
822 omp_lib.h.in: Fix -std=f95 errors.
825 2009-08-14 David Edelsohn <edelsohn@gnu.org>
827 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
828 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
829 * testsuite/libgomp.graphite/graphite.exp: New.
831 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
833 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
836 2009-08-04 David Daney <ddaney@caviumnetworks.com>
838 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
839 needed memory barrier semantics.
840 * config/linux/mips/mutex.h: New file.
842 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
844 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
846 2009-07-16 Joseph Myers <joseph@codesourcery.com>
848 * configure: Regenerate.
850 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
855 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
856 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
857 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
859 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
861 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
862 options when choosing a multilib.
864 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
866 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
867 ld_library_path. Use add_path. Add just find_libgcc_s to
868 ld_library_path, not every libgcc multilib directory.
869 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
870 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
871 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
873 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
875 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
877 * Makefile.am (LTLDFLAGS): Define.
879 * Makefile.in: Regenerate.
881 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
884 * testsuite/libgomp.fortran/fortran.exp: Don't link with
885 libgfortranbegin, check existence of libgfortran.a instead of
888 2009-05-20 Jakub Jelinek <jakub@redhat.com>
891 * team.c (gomp_thread_start): Destroy thr->release semaphore.
892 (gomp_free_pool_helper): Likewise.
894 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
895 Jakub Jelinek <jakub@redhat.com>
898 * testsuite/libgomp.fortran/workshare2.f90: New test.
900 2009-04-09 Nick Clifton <nickc@redhat.com>
902 * iter.c: Change copyright header to refer to version 3 of the
903 GNU General Public License with version 3.1 of the GCC Runtime
904 Library Exception and to point readers at the COPYING3 and
905 COPYING3.RUNTIME files and the FSF's license web page.
907 * barrier.c: Likewise.
908 * config/bsd/proc.c: Likewise.
909 * config/linux/affinity.c: Likewise.
910 * config/linux/alpha/futex.h: Likewise.
911 * config/linux/bar.c: Likewise.
912 * config/linux/bar.h: Likewise.
913 * config/linux/ia64/futex.h: Likewise.
914 * config/linux/ia64/mutex.h: Likewise.
915 * config/linux/lock.c: Likewise.
916 * config/linux/mips/futex.h: Likewise.
917 * config/linux/mutex.c: Likewise.
918 * config/linux/mutex.h: Likewise.
919 * config/linux/powerpc/futex.h: Likewise.
920 * config/linux/proc.c: Likewise.
921 * config/linux/ptrlock.c: Likewise.
922 * config/linux/ptrlock.h: Likewise.
923 * config/linux/s390/futex.h: Likewise.
924 * config/linux/sem.c: Likewise.
925 * config/linux/sem.h: Likewise.
926 * config/linux/sparc/futex.h: Likewise.
927 * config/linux/wait.h: Likewise.
928 * config/linux/x86/futex.h: Likewise.
929 * config/mingw32/proc.c: Likewise.
930 * config/mingw32/time.c: Likewise.
931 * config/posix/affinity.c: Likewise.
932 * config/posix/bar.c: Likewise.
933 * config/posix/bar.h: Likewise.
934 * config/posix/lock.c: Likewise.
935 * config/posix/mutex.h: Likewise.
936 * config/posix/proc.c: Likewise.
937 * config/posix/ptrlock.h: Likewise.
938 * config/posix/sem.c: Likewise.
939 * config/posix/sem.h: Likewise.
940 * config/posix/time.c: Likewise.
941 * config/posix95/lock.c: Likewise.
942 * critical.c: Likewise.
945 * fortran.c: Likewise.
946 * iter_ull.c: Likewise.
947 * libgomp.h: Likewise.
948 * libgomp_f.h.in: Likewise.
949 * libgomp_g.h: Likewise.
951 * loop_ull.c: Likewise.
952 * omp.h.in: Likewise.
953 * omp_lib.f90.in: Likewise.
954 * omp_lib.h.in: Likewise.
955 * ordered.c: Likewise.
956 * parallel.c: Likewise.
957 * sections.c: Likewise.
958 * single.c: Likewise.
963 2009-04-09 Jakub Jelinek <jakub@redhat.com>
965 * testsuite/config/default.exp: Change copyright header to refer to
966 version 3 of the GNU General Public License and to point readers
967 at the COPYING3 file and the FSF's license web page.
969 2009-04-08 Jakub Jelinek <jakub@redhat.com>
972 * libgomp.c++/pr39573.C: New test.
974 2009-04-01 Jakub Jelinek <jakub@redhat.com>
977 * testsuite/libgomp.c/pr39591-1.c: New test.
978 * testsuite/libgomp.c/pr39591-2.c: New test.
979 * testsuite/libgomp.c/pr39591-3.c: New test.
981 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
983 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
984 * testsuite/libgomp.c/atomic-6.c: Ditto.
986 2009-03-23 Jakub Jelinek <jakub@redhat.com>
989 * testsuite/libgomp.c/loop-12.c: New test.
990 * testsuite/libgomp.c/loop-11.c: New test.
991 * testsuite/libgomp.c++/loop-11.C: New test.
992 * testsuite/libgomp.c++/loop-12.C: New test.
993 * testsuite/libgomp.c++/for-8.C: New test.
995 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
997 * configure: Regenerate.
999 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1002 * testsuite/libgomp.c/pr39154.c: New test.
1004 2009-01-30 Ian Lance Taylor <iant@google.com>
1006 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1007 libgomp_ld_is_gold. Get gold version number.
1008 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1009 * configure: Rebuild.
1011 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1013 * testsuite/lib/libgomp.exp: Add -B option for targets that
1014 use libgfortran.a%s in their specs.
1016 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1019 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1020 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1021 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1022 * configure: Regenerated.
1023 * config.h.in: Likewise.
1025 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1028 * testsuite/libgomp.c/pr38650.c: New test.
1029 * testsuite/libgomp.c++/pr38650.C: New test.
1031 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1033 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1035 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1037 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1039 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1041 * configure: Regenerate.
1043 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1046 * testsuite/libgomp.c/pr36802-1.c: New test.
1047 * testsuite/libgomp.c/pr36802-2.c: New test.
1048 * testsuite/libgomp.c/pr36802-3.c: New test.
1050 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1053 * config/linux/powerpc/mutex.h: New.
1055 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1058 * testsuite/libgomp.c++/for-7.C: New test.
1061 * testsuite/libgomp.c++/for-6.C: New test.
1063 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1066 * testsuite/lib/libgomp.exp: Include new timeout library files.
1067 (libgomp_target_compile): Set timeout value from new proc.
1069 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1072 * config/linux/ia64/mutex.h: New.
1074 2008-11-04 Tobias Burnus <burnus@net-b.de>
1077 * libgomp.texi (Runtime library routines, environment variables):
1078 Update for OpenMP version 3.0.
1080 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1081 Steve Ellcey <sje@cup.hp.com>
1083 * configure: Regenerate for new libtool.
1084 * Makefile.in: Ditto.
1085 * testsuite/Makefile.in: Ditto.
1087 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1088 Andreas Tobler <a.tobler@schweiz.org>
1090 * config/bsd/proc.c: New file.
1091 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1092 * configure.ac: Check for header <sys/sysctl.h>
1093 * configure: Regenerate.
1094 * config.h.in: Likewise.
1096 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1098 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1100 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1102 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1103 * Makefile.in: Regenerated.
1104 * testsuite/Makefile.in: Regenerated.
1106 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1108 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1109 depend on blddir if blddir exists.
1110 (libgomp_target_compile): Likewise.
1111 * testsuite/libgomp.c++/c++.exp: Likewise.
1112 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1114 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1116 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1117 Do not list GPL as Invariant Section.
1119 2008-07-28 Ilie Garbacea <ilie@mips.com>
1120 Chao-ying Fu <fu@mips.com>
1122 * configure.tgt: Enable futex for MIPS.
1123 * config/linux/mips/futex.h: New file.
1125 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1127 * team.c (gomp_team_end): Free team immediately if it has
1130 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1132 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1133 * testsuite/libgomp.fortran/fortran.exp: Same.
1134 * testsuite/libgomp.c/c.exp: Same.
1135 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1136 directory to library path first.
1138 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1140 * env.c (parse_stacksize): Add cast to avoid warning.
1141 (parse_spincount): Likewise.
1143 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1145 * testsuite/libgomp.c/loop-10.c: New test.
1146 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1147 * libgomp.c++/loop-6.C (main): Likewise.
1150 * testsuite/libgomp.c/debug-1.c: New test.
1152 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1154 * testsuite/libgomp.c/nqueens-1.c: New test.
1157 * testsuite/libgomp.c++/task-7.C: New function.
1159 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1161 * configure: Regenerate.
1163 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1165 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1166 mutex when HAVE_SYNC_BUILTINS isn't defined.
1168 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1170 * libgomp.texi (omp_test_lock): Fix typo.
1172 2008-06-12 Tobias Burnus <burnus@net-b.de>
1174 * omp_lib.f90.in: Add "implicit none".
1176 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1179 * testsuite/libgomp.c/reduction-5.c: New test.
1181 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1183 * libgomp.h (struct gomp_task): Add in_tied_task field.
1184 * task.c (gomp_init_task): Initialize it.
1185 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1186 unconditionally. Don't call gomp_team_barrier_wake if
1187 current task is implicit or if(0) from implicit and number of
1188 running tasks is equal to nthreads - 1.
1191 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1192 omp_get_team_size_8): Fix pastos.
1195 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1196 * configure: Regenerated.
1197 * config.h.in: Regenerated.
1198 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1201 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1204 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1205 (GOMP_loop_ull_dynamic_start): Likewise.
1206 (GOMP_loop_ull_guided_start): Likewise.
1207 (GOMP_loop_ull_ordered_static_start): Likewise.
1208 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1209 (GOMP_loop_ull_ordered_guided_start): Likewise.
1211 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1212 Richard Henderson <rth@redhat.com>
1213 Ulrich Drepper <drepper@redhat.com>
1214 Jakob Blomer <jakob.blomer@ira.uka.de>
1216 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1217 Substitute also OMP_*LOCK_25*.
1218 * configure: Regenerated.
1219 * config.h.in: Regenerated.
1220 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1221 ptrlock.c and task.c.
1222 * Makefile.in: Regenerated.
1223 * testsuite/Makefile.in: Regenerated.
1225 * loop_ull.c: New file.
1226 * iter_ull.c: New file.
1227 * libgomp.h: Include ptrlock.h.
1228 (enum gomp_task_kind): New type.
1229 (struct gomp_team): Add task_lock, task_queue, task_count,
1230 task_running_count, single_count fields. Add
1231 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1232 Remove work_share_lock, generation_mask,
1233 oldest_live_gen, num_live_gen and init_work_shares fields, add
1234 work work_share_list_alloc, work_share_list_free and work_share_chunk
1235 fields. Change work_shares from pointer to pointers into an array.
1236 Change ordered_release field into gomp_sem_t ** from flexible array
1237 member. Add implicit_task and initial_work_shares fields.
1238 Move close to the end of the struct.
1239 (struct gomp_team_state): Add single_count, last_work_share,
1240 active_level and level fields, remove work_share_generation.
1241 (gomp_barrier_handle_tasks): New prototype.
1242 (gomp_finish_task): New inline function.
1243 (struct gomp_work_share): Move chunk_size, end, incr into
1244 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1245 next_ll fields. Reshuffle fields. Add next_alloc,
1246 next_ws, next_free and inline_ordered_team_ids fields, change
1247 ordered_team_ids into pointer from flexible array member.
1248 Add mode field. Put lock and next into a different cache line
1249 from most of the write-once fields.
1250 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1251 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1252 gomp_iter_ull_guided_next): New prototypes.
1253 (gomp_new_icv): New prototype.
1254 (struct gomp_thread): Add thread_pool and task fields.
1255 (struct gomp_thread_pool): New type.
1256 (gomp_new_team): New prototype.
1257 (gomp_team_start): Change type of last argument.
1258 (gomp_new_work_share): Removed.
1259 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1260 (gomp_work_share_init_done): New static inline.
1261 (gomp_throttled_spin_count_var, gomp_available_cpus,
1262 gomp_managed_threads): New extern decls.
1263 (gomp_init_task): New prototype.
1264 (gomp_spin_count_var): New extern var decl.
1265 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1266 or no alias support, or if not PIC.
1267 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1268 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1269 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1270 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1271 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1272 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1273 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1274 gomp_test_nest_lock_25): New prototypes.
1275 (omp_lock_symver, strong_alias): Define.
1276 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1278 (gomp_end_task): New.
1279 (struct gomp_task_icv, gomp_global_icv): New.
1280 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1281 (struct gomp_task): New.
1282 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1283 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1285 (gomp_schedule_type): Reorder enum to match
1287 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1289 (gomp_thread_start): Add gomp_team_barrier_wait call.
1290 For non-nested case remove clearing of docked thread thr fields.
1291 Use pool fields instead of global gomp_* variables. Use
1292 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1293 Create tasks for each member thread.
1294 (free_team): Only destroy team barrier, task_lock here and free it.
1295 (gomp_free_thread): Free last_team if non-NULL.
1296 (gomp_team_end): Call gomp_team_barrier_wait instead of
1297 gomp_barrier_wait. For nested case call one extra
1298 gomp_barrier_wait. Move here some destruction from free_team.
1299 Call free_team on pool->last_team if any, rather than freeing
1300 current team. Destroy work_share_list_free_lock ifndef
1302 (gomp_new_icv): New function.
1303 (gomp_threads, gomp_threads_size, gomp_threads_used,
1304 gomp_threads_dock): Removed.
1305 (gomp_thread_destructor): New variable.
1306 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1308 (gomp_team_start): Create new pool if current thread doesn't have
1309 one. Use pool fields instead of global gomp_* variables.
1310 Initialize thread_pool field for new threads. Clear single_count.
1311 Change last argument from ws to team, don't create
1312 new team, set ts.work_share to &team->work_shares[0] and clear
1313 ts.last_work_share. Don't clear ts.work_share_generation.
1314 If number of threads changed, adjust atomically gomp_managed_threads.
1315 Use gomp_init_task instead of gomp_new_task,
1316 set thr->task to the corresponding implicit_task array entry.
1317 Create tasks for each member thread. Initialize ts.level.
1318 (initialize_team): Call pthread_key_create on
1319 gomp_thread_destructor.
1320 (team_destructor): New function.
1321 (new_team): Removed.
1322 (gomp_new_team): New function.
1323 (free_team): Free gomp_work_share blocks chained through next_alloc,
1324 instead of freeing work_shares and destroying work_share_lock.
1325 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1326 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1327 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1328 of gomp_barrier_wait.
1329 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1330 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1331 if gomp_work_share_start returned true. Don't unlock ws->lock.
1332 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1333 of gomp_barrier_wait.
1334 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1335 gomp_work_share_init_done if gomp_work_share_start returned true.
1336 Don't unlock ws->lock.
1337 * work.c: Include stddef.h.
1338 (free_work_share): Use work_share_list_free_lock instead
1339 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1340 Call gomp_fini_work_share and then either free ws if orphaned, or
1341 put it into work_share_list_free list of the current team.
1342 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1344 (gomp_work_share_start, gomp_work_share_end,
1345 gomp_work_share_end_nowait): Rewritten.
1346 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1347 (openmp_version): Set to 200805.
1348 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1349 omp_sched_guided, omp_sched_auto): New parameters.
1350 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1351 omp_set_max_active_levels, omp_get_max_active_levels,
1352 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1353 omp_get_active_level): New interfaces.
1354 * omp_lib.h.in (openmp_version): Set to 200805.
1355 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1356 omp_sched_guided, omp_sched_auto): New parameters.
1357 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1358 omp_set_max_active_levels, omp_get_max_active_levels,
1359 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1360 omp_get_active_level): New externals.
1361 * loop.c: Include limits.h.
1362 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1364 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1365 Likewise. Use gomp_icv.
1366 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1367 ts.static_trip here.
1368 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1369 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1370 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1371 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1372 don't unlock ws->lock, otherwise lock it.
1373 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1374 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1375 (gomp_parallel_loop_start): Call gomp_new_team instead of
1376 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1377 Adjust gomp_team_start caller. Pass 0 as second argument to
1378 gomp_resolve_num_threads.
1379 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1380 If adding ws->chunk_size nthreads + 1 times after end won't
1381 overflow, set ws->mode to 1.
1382 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1383 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1384 GOMP_loop_ull_ordered_static_start,
1385 GOMP_loop_ull_ordered_dynamic_start,
1386 GOMP_loop_ull_ordered_guided_start,
1387 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1388 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1389 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1390 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1391 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1393 * libgomp.map: Export lock routines also @@OMP_2.0.
1394 (GOMP_loop_ordered_dynamic_first,
1395 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1396 GOMP_loop_ordered_static_first): Remove.
1397 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1398 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1399 GOMP_loop_ull_ordered_dynamic_next,
1400 GOMP_loop_ull_ordered_dynamic_start,
1401 GOMP_loop_ull_ordered_guided_next,
1402 GOMP_loop_ull_ordered_guided_start,
1403 GOMP_loop_ull_ordered_runtime_next,
1404 GOMP_loop_ull_ordered_runtime_start,
1405 GOMP_loop_ull_ordered_static_next,
1406 GOMP_loop_ull_ordered_static_start,
1407 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1408 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1409 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1410 (omp_set_schedule, omp_get_schedule,
1411 omp_get_thread_limit, omp_set_max_active_levels,
1412 omp_get_max_active_levels, omp_get_level,
1413 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1414 omp_set_schedule_, omp_set_schedule_8_,
1415 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1416 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1417 omp_get_max_active_levels_, omp_get_level_,
1418 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1419 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1420 New exports @@OMP_3.0.
1421 * omp.h.in (omp_sched_t): New type.
1422 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1423 omp_set_max_active_levels, omp_get_max_active_levels,
1424 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1425 omp_get_active_level): New prototypes.
1426 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1427 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1428 gomp_thread_limit_var, gomp_remaining_threads_count,
1429 gomp_remaining_threads_lock): New variables.
1430 (parse_spincount): New function.
1431 (initialize_env): Call gomp_init_num_threads unconditionally.
1432 Initialize gomp_available_cpus. Call parse_spincount,
1433 initialize gomp_{,throttled_}spin_count_var
1434 depending on presence and value of OMP_WAIT_POLICY and
1435 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1436 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1437 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1438 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1439 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1440 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1441 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1442 (gomp_global_icv): New.
1443 (parse_schedule): Use it. Parse "auto".
1444 (omp_set_num_threads): Use gomp_icv.
1445 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1447 (omp_get_max_threads): Move from parallel.c.
1448 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1449 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1451 (parse_stacksize, parse_wait_policy): New functions.
1452 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1453 both wrappers for compatibility and new locks.
1454 (omp_set_schedule, omp_get_schedule,
1455 omp_get_thread_limit, omp_set_max_active_levels,
1456 omp_get_max_active_levels, omp_get_level,
1457 omp_get_ancestor_thread_num, omp_get_team_size,
1458 omp_get_active_level): New ialias_redirect.
1459 (omp_set_schedule_, omp_set_schedule_8_,
1460 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1461 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1462 omp_get_max_active_levels_, omp_get_level_,
1463 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1464 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1466 * parallel.c: Include limits.h.
1467 (gomp_resolve_num_threads): Add count argument. Rewritten.
1468 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1469 argument to gomp_team_start. Pass 0 as second argument to
1470 gomp_resolve_num_threads.
1471 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1472 if gomp_thread_limit_var != ULONG_MAX.
1473 (omp_in_parallel): Implement using ts.active_level.
1474 (omp_get_max_threads): Move to env.c.
1475 (omp_get_level, omp_get_ancestor_thread_num,
1476 omp_get_team_size, omp_get_active_level): New functions,
1478 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1479 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1480 gomp_iter_dynamic_next instead of the _locked variant and don't take
1481 lock around it, otherwise acquire it before calling
1482 gomp_iter_dynamic_next_locked.
1483 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1484 gomp_iter_dynamic_next instead of the _locked variant and don't take
1486 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1487 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1488 Adjust gomp_team_start caller. Pass count as second argument to
1489 gomp_resolve_num_threads, don't adjust num_threads after the call.
1491 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1492 ws->chunk_size by incr.
1493 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1495 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1497 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1498 (omp_check_defines): Check even the compat defines.
1499 * config/linux/ptrlock.c: New file.
1500 * config/linux/ptrlock.h: New file.
1501 * config/linux/wait.h: New file.
1502 * config/posix/ptrlock.c: New file.
1503 * config/posix/ptrlock.h: New file.
1504 * config/linux/bar.h (gomp_team_barrier_wait,
1505 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1506 (gomp_team_barrier_set_task_pending,
1507 gomp_team_barrier_clear_task_pending,
1508 gomp_team_barrier_set_waiting_for_tasks,
1509 gomp_team_barrier_waiting_for_tasks,
1510 gomp_team_barrier_done): New inlines.
1511 (gomp_barrier_t): Rewritten.
1512 (gomp_barrier_state_t): New typedef.
1513 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1514 gomp_barrier_wait_start): Rewritten.
1515 (gomp_barrier_wait_end): Change second argument to
1516 gomp_barrier_state_t.
1517 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1519 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1521 (gomp_barrier_wait_end): Rewritten.
1522 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1523 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1524 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1525 (gomp_barrier_state_t): New typedef.
1526 (gomp_team_barrier_wait,
1527 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1528 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1529 into the return value. Return gomp_barrier_state_t.
1530 (gomp_team_barrier_set_task_pending,
1531 gomp_team_barrier_clear_task_pending,
1532 gomp_team_barrier_set_waiting_for_tasks,
1533 gomp_team_barrier_waiting_for_tasks,
1534 gomp_team_barrier_done): New inlines.
1535 (gomp_barrier_wait_end): Change second argument to
1536 gomp_barrier_state_t.
1537 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1539 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1540 (gomp_barrier_wait_end): Change second argument to
1541 gomp_barrier_state_t.
1542 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1543 gomp_team_barrier_wake): New functions.
1544 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1546 (gomp_futex_wake, gomp_futex_wait): New variables.
1547 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1548 * config/linux/lock.c: Rewrite to make locks task owned,
1549 for backwards compatibility provide the old entrypoints
1550 if symbol versioning. Include wait.h instead of libgomp.h and
1552 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1553 * config/posix95/lock.c: Rewrite to make locks task owned,
1554 for backwards compatibility provide the old entrypoints
1555 if symbol versioning.
1556 * config/posix/lock.c: Rewrite to make locks task owned,
1557 for backwards compatibility provide the old entrypoints
1558 if symbol versioning.
1559 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1560 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1561 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1562 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1563 (sys_futex0): Return error code.
1564 (futex_wake, futex_wait): If ENOSYS was returned, clear
1565 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1566 (cpu_relax, atomic_write_barrier): New static inlines.
1567 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1568 (futex_wake, futex_wait): If ENOSYS was returned, clear
1569 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1570 (cpu_relax, atomic_write_barrier): New static inlines.
1571 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1572 (sys_futex0): Return error code.
1573 (futex_wake, futex_wait): If ENOSYS was returned, clear
1574 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1575 (cpu_relax, atomic_write_barrier): New static inlines.
1576 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1577 (sys_futex0): Return error code.
1578 (futex_wake, futex_wait): If ENOSYS was returned, clear
1579 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1580 (cpu_relax, atomic_write_barrier): New static inlines.
1581 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1582 (sys_futex0): Return error code.
1583 (futex_wake, futex_wait): If ENOSYS was returned, clear
1584 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1585 (cpu_relax, atomic_write_barrier): New static inlines.
1586 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1587 (sys_futex0): Return error code.
1588 (futex_wake, futex_wait): If ENOSYS was returned, clear
1589 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1590 (cpu_relax, atomic_write_barrier): New static inlines.
1591 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1593 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1594 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1595 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1597 (omp_nest_lock_t): Change owner into void *, add lock field.
1598 * config/posix95/omp-lock.h: Include semaphore.h.
1599 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1600 (omp_lock_t): Use sem_t instead of mutex if semaphores
1602 (omp_nest_lock_t): Likewise. Change owner to void *.
1603 * config/posix/omp-lock.h: Include semaphore.h.
1604 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1605 (omp_lock_t): Use sem_t instead of mutex if semaphores
1607 (omp_nest_lock_t): Likewise. Add owner field.
1609 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1611 * testsuite/libgomp.c/collapse-1.c: New test.
1612 * testsuite/libgomp.c/collapse-2.c: New test.
1613 * testsuite/libgomp.c/collapse-3.c: New test.
1614 * testsuite/libgomp.c/icv-1.c: New test.
1615 * testsuite/libgomp.c/icv-2.c: New test.
1616 * testsuite/libgomp.c/lib-2.c: New test.
1617 * testsuite/libgomp.c/lock-1.c: New test.
1618 * testsuite/libgomp.c/lock-2.c: New test.
1619 * testsuite/libgomp.c/lock-3.c: New test.
1620 * testsuite/libgomp.c/loop-4.c: New test.
1621 * testsuite/libgomp.c/loop-5.c: New test.
1622 * testsuite/libgomp.c/loop-6.c: New test.
1623 * testsuite/libgomp.c/loop-7.c: New test.
1624 * testsuite/libgomp.c/loop-8.c: New test.
1625 * testsuite/libgomp.c/loop-9.c: New test.
1626 * testsuite/libgomp.c/nested-3.c: New test.
1627 * testsuite/libgomp.c/nestedfn-6.c: New test.
1628 * testsuite/libgomp.c/sort-1.c: New test.
1629 * testsuite/libgomp.c/task-1.c: New test.
1630 * testsuite/libgomp.c/task-2.c: New test.
1631 * testsuite/libgomp.c/task-3.c: New test.
1632 * testsuite/libgomp.c/task-4.c: New test.
1633 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1634 to C++ testsuite default compiler options.
1635 * testsuite/libgomp.c++/collapse-1.C: New test.
1636 * testsuite/libgomp.c++/collapse-2.C: New test.
1637 * testsuite/libgomp.c++/ctor-10.C: New test.
1638 * testsuite/libgomp.c++/for-1.C: New test.
1639 * testsuite/libgomp.c++/for-2.C: New test.
1640 * testsuite/libgomp.c++/for-3.C: New test.
1641 * testsuite/libgomp.c++/for-4.C: New test.
1642 * testsuite/libgomp.c++/for-5.C: New test.
1643 * testsuite/libgomp.c++/loop-8.C: New test.
1644 * testsuite/libgomp.c++/loop-9.C: New test.
1645 * testsuite/libgomp.c++/loop-10.C: New test.
1646 * testsuite/libgomp.c++/task-1.C: New test.
1647 * testsuite/libgomp.c++/task-2.C: New test.
1648 * testsuite/libgomp.c++/task-3.C: New test.
1649 * testsuite/libgomp.c++/task-4.C: New test.
1650 * testsuite/libgomp.c++/task-5.C: New test.
1651 * testsuite/libgomp.c++/task-6.C: New test.
1652 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1653 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1654 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1655 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1656 * testsuite/libgomp.fortran/collapse1.f90: New test.
1657 * testsuite/libgomp.fortran/collapse2.f90: New test.
1658 * testsuite/libgomp.fortran/collapse3.f90: New test.
1659 * testsuite/libgomp.fortran/collapse4.f90: New test.
1660 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1661 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1662 * testsuite/libgomp.fortran/lib4.f90: New test.
1663 * testsuite/libgomp.fortran/lock-1.f90: New test.
1664 * testsuite/libgomp.fortran/lock-2.f90: New test.
1665 * testsuite/libgomp.fortran/nested1.f90: New test.
1666 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1667 * testsuite/libgomp.fortran/strassen.f90: New test.
1668 * testsuite/libgomp.fortran/tabs1.f90: New test.
1669 * testsuite/libgomp.fortran/tabs2.f: New test.
1670 * testsuite/libgomp.fortran/task1.f90: New test.
1671 * testsuite/libgomp.fortran/task2.f90: New test.
1672 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1673 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1674 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1675 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1676 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1678 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1681 * testsuite/libgomp.c++/ctor-11.C: New test.
1682 * testsuite/libgomp.c++/ctor-12.C: New test.
1684 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1686 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1688 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1691 * testsuite/libgomp.c/atomic-5.c: New test.
1692 * testsuite/libgomp.c/atomic-6.c: New test.
1693 * testsuite/libgomp.c/autopar-1.c: New test.
1695 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1697 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1698 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1699 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1700 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1701 * configure: Regenerate.
1702 * Makefile.in, testsuite/Makefile.in: Likewise.
1704 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1707 * aclocal.m4: Regenerate.
1708 * configure: Regenerate.
1710 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1713 * testsuite/libgomp.c/atomic-4.c: New test.
1716 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1717 (gomp_iter_guided_next): Likewise.
1718 * testsuite/libgomp.c/pr35625.c: New test.
1720 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1722 * aclocal.m4: Regenerate.
1723 * configure: Likewise.
1724 * Makefile.in: Likewise.
1725 * testsuite/Makefile.in: Likewise.
1727 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1730 * testsuite/libgomp.c++/pr35185.C: New test.
1732 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1735 * testsuite/libgomp.c/pr35549.c: New test.
1737 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1739 * testsuite/libgomp.c/atomic-3.c: New test.
1741 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1744 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1747 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1750 * configure.ac: Add ACX_HEADER_STRING.
1751 * env.c: Include strings.h.
1752 * aclocal.m4: Regenerate.
1753 * config.h.in: Regenerate.
1754 * configure: Regenerate.
1755 * Makefile.in: Regenerate.
1756 * testsuite/Makefile.in: Regenerate.
1758 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1761 * testsuite/libgomp.c/pr35196.c: New test.
1764 * testsuite/libgomp.fortran/pr35130.f90: New test.
1765 * testsuite/libgomp.c/pr35130.c: New test.
1767 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1770 * testsuite/libgomp.c/pr33880.c: New test.
1771 * testsuite/libgomp.fortran/pr33880.f90: New test.
1773 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1775 * configure: Regenerate.
1777 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1779 * configure.ac: Move futex checking into ../config/futex.m4.
1780 * configure: Rebuilt.
1781 * aclocal.m4: Rebuilt.
1782 * Makefile.in: Rebuilt.
1784 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1785 2007-10-15 ../config/tls.m4 change.
1787 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1790 * testsuite/libgomp.c/pr34513.c: New test.
1791 * testsuite/libgomp.c++/pr34513.C: New test.
1793 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1796 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1798 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1800 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1802 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1804 * testsuite/libgomp.c/private-1.c: New test.
1806 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1807 Paolo Bonzini <bonzini@gnu.org>
1809 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1810 instead of 'VPATH ='.
1811 * Makefile.in: Regenerate.
1813 2007-11-23 Matthias Klose <doko@ubuntu.com>
1815 * configure.ac: Adjust makeinfo version check.
1816 * configure: Regenerate.
1818 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1821 * testsuite/libgomp.fortran/pr34020.f90: New test.
1823 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1826 * testsuite/libgomp.c++/atomic-1.C: New test.
1828 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1831 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1832 Make x and y integers rather than (implicit) reals. Add private (j)
1833 clause to the last omp parallel.
1835 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1837 * configure: Regenerate following changes to ../config/tls.m4.
1839 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1841 * testsuite/libgomp.fortran/stack.f90: New test.
1843 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1845 * config/mingw32/proc.c: New file.
1847 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1849 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1850 (main): Use __get_cpuid to get i386 target fetaures.
1851 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1852 (main): Use __get_cpuid to get x86_64 target fetaures.
1854 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1857 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1858 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1860 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1863 * testsuite/libgomp.fortran/pr32550.f90: New test.
1864 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1866 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1868 * aclocal.m4: Regenerated.
1870 2007-07-05 Tobias Burnus <burnus@net-b.de>
1873 * testsuite/libgomp.fortran/pr32359.f90: New.
1875 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1878 * sections.c (GOMP_parallel_sections_start): Only decrease
1879 number of threads to COUNT if dyn_var is true.
1880 * testsuite/libgomp.c/pr32468.c: New test.
1882 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1885 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1887 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1890 * testsuite/libgomp.c/pr32362-1.c: New test.
1891 * testsuite/libgomp.c/pr32362-2.c: New test.
1892 * testsuite/libgomp.c/pr32362-3.c: New test.
1894 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1896 * team.c (gomp_team_start): Fix setting up thread_attr
1899 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1901 * configure: Regenerate.
1903 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1905 * Makefile.in: Regenerate.
1906 * configure: Regenerate.
1907 * aclocal.m4: Regenerate.
1908 * testsuite/Makefile.in: Regenerate.
1910 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1912 * config/linux/proc.c: New file.
1915 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1917 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1919 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1921 2007-04-16 Matthias Klose <doko@debian.org>
1923 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1924 flags if not building with -m64.
1925 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1926 flag for i?86-*-* targets, if current target matches -m64.
1928 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1930 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1931 * Makefile.in: Regenerate.
1933 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1936 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1938 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1940 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1942 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1944 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1945 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1946 (parse_affinity): New function.
1947 (initialize_env): Call it and gomp_init_affinity.
1948 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1949 create new pthread_attr_t and call gomp_init_thread_affinity
1950 on it for each thread before passing the attribute to pthread_create.
1951 * config/linux/affinity.c: New file.
1952 * config/posix/affinity.c: New file.
1953 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1954 * configure: Rebuilt.
1955 * config.h.in: Rebuilt.
1956 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1957 * Makefile.in: Rebuilt.
1959 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1961 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1963 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1964 and use it if found.
1966 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1968 * testsuite/config/default.exp: New file.
1969 * testsuite/lib/libgomp.exp: New file.
1970 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1971 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1972 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1973 (libgomp_load): Remove.
1974 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1975 always_ld_library_path, not ld_library_path. Set additional_flags
1976 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1977 (target_compile): Do not call libgomp_init. Append lang_library_path
1978 and lang_link_flags to options.
1979 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1980 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1982 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1983 always_ld_library_path. Set LD_LIBRARY_PATH here.
1984 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1985 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1986 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1988 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1989 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1990 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1991 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1992 * testsuite/libgomp.c/atomic-10.c: Ditto.
1994 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1996 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1997 dg-final cleanup-modules line.
1998 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1999 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2000 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2001 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2002 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2003 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2004 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2006 2007-03-18 Andreas Schwab <schwab@suse.de>
2008 * acinclude.m4: Adjust regular expression for ld version
2010 * configure: Regenerate.
2012 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2014 * Makefile.am: Add install-pdf target as copied from
2015 automake v1.10 rules.
2016 * Makefile.in: Regenerate
2018 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2021 * configure: Regenerate.
2024 * testsuite/libgomp.c++/pr30703.C: New test.
2026 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2029 2006-07-05 Eric Christopher <echristo@apple.com>
2030 * configure.ac: Depend addition of -pthread on host OS.
2031 * configure: Regenerate.
2033 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2035 * libgomp.texi: Fix spacing after abbreviations.
2037 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2040 * configure.ac: Add check for makeinfo
2041 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2042 if an appropiate version of makeinfo is found.
2043 * aclocal.m4: Regenerated.
2044 * configure: Regenerated.
2045 * Makefile.in: Regenerated.
2046 * testsuite/Makefile.in: Regenerated.
2048 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2051 * libgomp.texi: More about implementation-dependent settings.
2053 2007-01-26 Tobias Burnus <burnus@net-b.de>
2055 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2057 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2060 * testsuite/libgomp.c/pr30494.c: New test.
2062 2007-01-15 Tom Tromey <tromey@redhat.com>
2064 * configure: Rebuilt.
2065 * configure.ac: Fixed comment.
2067 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2069 * libgomp.texi: Document implementation specific default values of
2070 environment variables.
2072 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2075 * libgomp.texi: New file.
2076 * configure.ac: Add --enable-generated-files-in-srcdir option.
2077 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2079 * Makefile.in: Regenerated.
2080 * config.h.in: Regenerated.
2081 * testsuite/Makefile.in: Regenerated.
2084 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2087 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2089 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2091 * configure: Regenerate.
2093 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2096 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2097 start if there shouldn't be any loop iterations.
2098 (gomp_loop_ordered_static_start): Remove start == end test.
2099 * testsuite/libgomp.c/pr29947-1.c: New test.
2100 * testsuite/libgomp.c/pr29947-2.c: New test.
2102 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2104 * configure.tgt: Force initial-exec TLS model on Linux only.
2106 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2108 * configure: Regenerated.
2110 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2112 * env.c (parse_schedule): Reject out of range values.
2113 (parse_unsigned_long): Reject out of range, negative or zero values.
2115 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2118 * testsuite/libgomp.fortran/pr29629.f90: New test.
2120 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2123 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2124 * config/posix95: New directory.
2125 * config/posix95/omp-lock.h: New file.
2126 * config/posix95/lock.c: Likewise.
2128 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2130 * aclocal.m4: Regenerate.
2131 * configure: Regenerate.
2133 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2135 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2138 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2140 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2142 * configure: Regenerate.
2143 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2145 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2149 * testsuite/libgomp.c/nestedfn-4.c: New test.
2150 * testsuite/libgomp.c/nestedfn-5.c: New test.
2151 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2154 * testsuite/libgomp.fortran/condinc1.f: New test.
2155 * testsuite/libgomp.fortran/condinc2.f: New test.
2156 * testsuite/libgomp.fortran/condinc3.f90: New test.
2157 * testsuite/libgomp.fortran/condinc4.f90: New test.
2158 * testsuite/libgomp.fortran/condinc1.inc: New file.
2160 2006-09-18 Tom Tromey <tromey@redhat.com>
2162 * configure: Rebuilt.
2164 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2167 PR preprocessor/14634
2168 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2170 * configure: Regenerate.
2172 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2174 * testsuite/libgomp.fortran/reduction3.f90: Change
2175 -2147483648 to -huge(i)-1 to avoid overflow.
2176 * testsuite/libgomp.fortran/reduction4.f90: Change
2177 Z'ffffffff' to not(0) to avoid overflow.
2179 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2182 * Makefile.am (libsubincludedir): New.
2183 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2184 * Makefile.in: Regenerate.
2186 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2189 * env.c: Include ctype.h.
2190 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2191 leading and/or trailing whitespace and compare strings case
2194 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2197 * testsuite/libgomp.fortran/pr28390.f: New test.
2199 2006-07-05 Eric Christopher <echristo@apple.com>
2201 * configure.ac: Depend addition of -pthread on host OS.
2202 * configure: Regenerate.
2204 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2206 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2207 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2210 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2214 * configure.ac: If neither --enable-linux-futex nor
2215 --disable-linux-futex is passed, determine the default by checking
2216 for compiling and/or running against NPTL. With --enable-linux-futex,
2217 check if SYS_gettid and SYS_futex are defined.
2218 * configure: Rebuilt.
2220 2006-06-14 Richard Henderson <rth@redhat.com>
2223 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2224 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2226 2006-06-09 Richard Henderson <rth@redhat.com>
2228 * env.c (gomp_nthreads_var): Change to unsigned long.
2229 (gomp_run_sched_chunk): Likewise.
2230 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2231 (initialize_env): Initialize gomp_thread_attr.
2232 * libgomp.h (gomp_nthreads_var): Update decl.
2233 (gomp_run_sched_chunk): Likewise.
2234 (gomp_thread_attr): Declare.
2235 * team.c (gomp_thread_attr): Export.
2236 (initialize_team): Don't initialize it.
2238 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2241 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2242 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2244 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2246 * config/mingw32/time.c: New file.
2247 * configure.tgt: Use it.
2249 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2251 * Makefile.am: Add install-html target. Add install-html to .PHONY
2252 * Makefile.in: Regenerate.
2254 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2257 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2258 * testsuite/libgomp.c/critical-1.c: Likewise.
2259 * testsuite/libgomp.c/loop-1.c: Likewise.
2260 * testsuite/libgomp.c/loop-2.c: Likewise.
2261 * testsuite/libgomp.c/single-1.c: Likewise.
2262 * testsuite/libgomp.c/ordered-1.c: Likewise.
2263 * testsuite/libgomp.c/ordered-2.c: Likewise.
2265 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2268 * libgomp.fortran/pr27416-1.f90: New test.
2270 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2273 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2274 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2276 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2279 * testsuite/libgomp.c/pr26943-1.c: New test.
2280 * testsuite/libgomp.c/pr26943-2.c: New test.
2281 * testsuite/libgomp.c/pr26943-3.c: New test.
2282 * testsuite/libgomp.c/pr26943-4.c: New test.
2283 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2284 * testsuite/libgomp.c++/pr26943.C: New test.
2286 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2289 * testsuite/libgomp.c++/pr27337.C: New test.
2291 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2294 * testsuite/libgomp.c/pr26171.c: New test.
2296 2006-04-25 Richard Henderson <rth@redhat.com>
2299 * configure.ac: Use GCC_CHECK_TLS.
2300 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2301 * Makefile.in, aclocal.m4, configure: Regenerate.
2303 2006-04-10 Matthias Klose <doko@debian.org>
2305 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2306 directory names containing underscores.
2308 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2311 * testsuite/libgomp.c++/pr26691.C: New test.
2313 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2315 * testsuite/libgomp.fortran/retval2.f90: New test.
2317 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2319 * testsuite/libgomp.c++: New directory.
2321 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2323 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2324 * config/posix/sem.c: Implement the above.
2326 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2328 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2329 define HAVE_BROKEN_POSIX_SEMAPHORES.
2330 * configure: Rebuilt.
2331 * config.h.in: Rebuilt.
2333 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2336 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2337 for the other pthread check.
2338 * configure: Regenerate.
2339 * config.h.in: Regenerate.
2341 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2345 * Makefile.am (fincludedir): New variable.
2346 (nodist_include_HEADERS): Remove Fortran files.
2347 (nodist_finclude_HEADERS): New variable.
2348 * Makefile.in: Regenerated.
2350 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2352 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2353 Remove tests for returning assumed character length arrays.
2355 2006-02-12 Roger Sayle <roger@eyesopen.com>
2356 John David Anglin <dave@hiauly1.hia.nrc.ca>
2359 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2361 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2363 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2365 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2367 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2368 part of LD_LIBRARY_PATH manually.
2370 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2373 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2376 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2379 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2380 * configure.ac (PERL): Don't set.
2381 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2382 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2383 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2384 * omp.h.in: Wrap the new configure substitutions with @ characters.
2385 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2386 * aclocal.m4, configure, Makefile.in: Regenerate.
2387 * mkomp_h.pl: Delete.
2389 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2392 * configure.ac: Use GCC_HEADER_STDINT.
2393 * libgomp.h: Include gstdint.h.
2394 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2395 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2397 2006-01-24 Richard Henderson <rth@redhat.com>
2400 * configure.ac: Add AM_MAINTAINER_MODE.
2401 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2403 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2405 * Makefile.in: Regenerate.
2406 * testsuite/Makefile.in: Regenerate.
2407 * aclocal.m4: Regenerate.
2409 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2411 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2413 * configure.ac: Add check for loadavg.h.
2414 (link_gomp): Adjust comment.
2415 * configure: Regenerate.
2416 * config.h.in: Regenerate.
2418 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2421 * configure.ac: Remove check for alloca.h.
2422 * configure: Regenerate.
2423 * config.h.in: Regenerate.
2424 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2425 * team.c: Remove use of alloca.h.
2426 Call gomp_alloca instead of alloca.
2428 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2431 * team.c: Add include of alloca.h.
2432 * configure.ac: Add check for alloca.h.
2433 * configure: Regenerate.
2434 * config.h.in: Regenerate.
2436 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2439 * testsuite/libgomp.fortran/pr25219.f90: New test.
2441 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2443 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2444 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2445 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2446 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2447 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2448 testsuite/libgomp.fortran/threadprivate1.f90,
2449 testsuite/libgomp.fortran/threadprivate2.f90,
2450 testsuite/libgomp.fortran/threadprivate3.f90,
2451 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2452 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2453 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2454 effective-target to TLS runtime.
2456 * testsuite/libgomp.fortran/pr25162.f: Require
2457 effective-target TLS runtime.
2459 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2461 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2462 * testsuite/libgomp.c/nestedfn-3.c: New test.
2464 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2467 * testsuite/libgomp.fortran/pr25162.f: New test.
2469 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2471 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2472 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2474 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2476 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2477 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2478 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2479 single.c, team.c, work.c, config/linux/alpha/futex.h,
2480 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2481 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2482 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2483 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2484 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2485 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2486 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2489 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2491 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2492 to nodist_noinst_HEADERS.
2493 * Makefile.in: Rebuilt.
2495 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2496 add integer count field.
2497 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2498 omp_nest_lock_t type change.
2499 (omp_init_nest_lock): Likewise. Initialize count to 0.
2500 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2502 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2504 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2505 Increment count if successful and return the new nesting level.
2506 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2507 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2508 * testsuite/libgomp.c/lib-1.c: New test.
2509 * testsuite/libgomp.fortran/lib1.f90: New test.
2510 * testsuite/libgomp.fortran/lib2.f: New test.
2511 * testsuite/libgomp.fortran/lib3.f: New test.
2513 2005-11-17 Richard Henderson <rth@redhat.com>
2516 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2517 * configure.ac (link_gomp): New. Substitute it.
2518 (AC_CONFIG_FILES): Add libgomp.spec.
2519 * libgomp.spec.in: New file.
2520 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2521 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2523 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2525 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2526 reduction(-:var) behaving the same as reduction(+:var).
2527 * testsuite/libgomp.c/reduction-4.c: New test.
2529 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2531 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2532 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2533 testsuite/libgomp.c/copyin-3.c,
2534 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2535 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2536 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2537 testsuite/libgomp.c++/pr24455.C,
2538 testsuite/libgomp.fortran/threadprivate1.f90,
2539 testsuite/libgomp.fortran/threadprivate2.f90,
2540 testsuite/libgomp.fortran/threadprivate3.f90,
2541 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2542 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2543 testsuite/libgomp.fortran/omp_parse3.f90: Require
2544 effective-target TLS.
2546 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2550 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2553 * team.c (initialize_team): Pass NULL rather than free as
2554 pthread_key_create destructor. Initialize thread specific data
2555 pointer in initial thread to a static local variable rather than
2558 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2560 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2561 its location to ld_library_path.
2563 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2565 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2567 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2569 * testsuite/libgomp.c: Rename from libgomp.dg.
2571 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2573 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2574 threadprivate variable 'i'.
2576 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2578 * config/linux/s390/futex.h: New file.
2579 * configure.tgt: Use it.
2581 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2582 before the parallel.
2584 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2587 * testsuite/libgomp.c++/master-1.C: New test.
2589 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2591 * testsuite/libgomp.dg/copyin-3.c: New test.
2593 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2595 * testsuite/libgomp.fortran/retval1.f90: New test.
2596 * testsuite/libgomp.fortran/vla7.f90: New test.
2598 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2600 * testsuite/libgomp.fortran/vla2.f90: New test.
2601 * testsuite/libgomp.fortran/vla3.f90: New test.
2602 * testsuite/libgomp.fortran/vla4.f90: New test.
2603 * testsuite/libgomp.fortran/vla5.f90: New test.
2604 * testsuite/libgomp.fortran/vla6.f90: New test.
2606 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2608 * config/linux/sparc/futex.h: New file.
2609 * configure.tgt: Use it.
2610 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2612 * critical.c: Include stdlib.h.
2613 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2614 ignoring return value.
2615 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2616 LIBGOMP_CHECK_SYNC_BUILTINS check.
2617 * configure: Rebuilt.
2619 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2621 * testsuite/libgomp.fortran/vla1.f90: New test.
2623 2005-10-31 Richard Henderson <rth@redhat.com>
2625 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2626 setting 's' in different threads.
2628 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2630 * libgomp.h (attribute_hidden, ialias): Define.
2631 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2632 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2633 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2634 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2635 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2636 omp_test_lock, omp_test_nest_lock): Likewise.
2637 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2638 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2639 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2640 omp_test_lock, omp_test_nest_lock): Likewise.
2641 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2642 omp_get_dynamic, omp_get_nested): Likewise.
2643 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2644 omp_get_thread_num, omp_in_parallel): Likewise.
2645 * fortran.c (ialias_redirect): Define.
2646 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2647 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2648 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2649 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2650 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2651 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2652 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2653 omp_get_wtime): Add ialias_redirect.
2655 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2657 * fortran.c: Include stdlib.h.
2659 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2661 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2662 * Makefile.in: Regenerated.
2664 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2666 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2667 * libgomp_f.h.in (omp_check_defines): New function.
2668 * env.c: Include libgomp_f.h.
2669 (initialize_env): Call omp_check_defines.
2671 * testsuite/libgomp.dg/copyin-2.c: New test.
2672 * testsuite/libgomp.c++/copyin-2.C: New test.
2673 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2675 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2676 * testsuite/libgomp.fortran/sharing2.f90: New test.
2678 * testsuite/libgomp.dg/copyin-1.c: New test.
2679 * testsuite/libgomp.c++/copyin-1.C: New test.
2681 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2683 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2685 * testsuite/libgomp.fortran/workshare1.f90: New test.
2687 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2689 * libgomp.fortran/sharing1.f90: New test.
2691 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2694 * testsuite/libgomp.c++/loop-7.C: New test.
2696 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2698 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2699 * testsuite/libgomp.fortran/reduction6.f90: New test.
2700 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2702 2005-10-23 Richard Henderson <rth@redhat.com>
2704 * testsuite/libgomp.c++/ctor-1.C: New.
2705 * testsuite/libgomp.c++/ctor-2.C: New.
2706 * testsuite/libgomp.c++/ctor-3.C: New.
2707 * testsuite/libgomp.c++/ctor-4.C: New.
2708 * testsuite/libgomp.c++/ctor-5.C: New.
2709 * testsuite/libgomp.c++/ctor-6.C: New.
2710 * testsuite/libgomp.c++/ctor-7.C: New.
2711 * testsuite/libgomp.c++/ctor-8.C: New.
2712 * testsuite/libgomp.c++/ctor-9.C: New.
2714 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2717 * testsuite/libgomp.c++/pr24455-1.C: New test.
2718 * testsuite/libgomp.c++/pr24455.C: New test.
2719 * testsuite/libgomp.dg/pr24455-1.c: New test.
2720 * testsuite/libgomp.dg/pr24455.c: New test.
2722 2005-10-20 Richard Henderson <rth@redhat.com>
2724 * testsuite/libgomp.c++/loop-6.C: New.
2725 * testsuite/libgomp.dg/loop-3.c: New.
2727 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2729 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2731 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2734 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2736 * testsuite/libgomp.fortran/jacobi.f: New test.
2738 2005-10-19 Richard Henderson <rth@redhat.com>
2740 * configure.tgt (i?86-linux): Default to with_arch instead of
2741 CFLAGS. Add -mtune to match target_cpu.
2742 (x86_64-linux): Tune to i686.
2744 * fortran.c (omp_test_nest_lock_): Fix typo.
2746 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2748 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2749 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2750 * testsuite/libgomp.dg/ordered-3.c: New test.
2752 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2753 Remove volatile keyword.
2755 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2756 in COMMON block to avoid warnings on 64-bit targets.
2758 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2760 * testsuite/libgomp.dg/shared-3.c: New test.
2762 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2764 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2765 * testsuite/libgomp.fortran/reduction5.f90: New test.
2767 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2769 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2771 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2772 flush loop now that __sync_synchronize has proper memory barrier.
2773 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2774 Add -ffixed-form to dg-options.
2776 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2778 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2779 from subdirectories.
2780 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2781 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2782 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2783 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2784 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2785 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2786 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2787 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2788 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2789 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2790 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2791 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2792 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2793 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2794 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2795 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2796 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2797 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2798 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2799 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2800 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2801 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2802 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2803 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2804 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2806 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2808 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2809 lang_library_path exists. Use find instead of glob to gather tests.
2810 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2812 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2814 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2815 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2816 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2817 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2818 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2819 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2820 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2821 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2822 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2823 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2824 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2825 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2826 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2828 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2830 * testsuite/libgomp.dg/vla-1.c: New test.
2832 * testsuite/libgomp.fortran/reference2.f90: New test.
2834 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2835 declaration of omp_get_thread_num.
2836 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2839 * testsuite/libgomp.fortran/reduction1.f90: New test.
2840 * testsuite/libgomp.fortran/reduction2.f90: New test.
2841 * testsuite/libgomp.fortran/reduction3.f90: New test.
2842 * testsuite/libgomp.fortran/reduction4.f90: New test.
2844 2005-10-13 Richard Henderson <rth@redhat.com>
2846 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2847 * Makefile.in: Regenerate.
2848 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2849 * libgomp.h: Include bar.h.
2850 (struct gomp_barrier): Remove.
2851 (struct gomp_team): Add barrier. Replace master_barrier with
2852 master_release. Replace threads with ordered_release.
2853 (struct gomp_thread): Replace barrier with release.
2854 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2855 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2856 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2857 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2858 (GOMP_single_copy_end): Likewise.
2859 * team.c (gomp_threads_dock): New.
2860 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2861 (gomp_thread_start): Use gomp_barrier_wait.
2862 (new_team, free_team): Update for gomp_team changes.
2863 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2864 (gomp_team_end): Use gomp_barrier_wait.
2865 (initialize_team): Update for gomp_thread changes.
2866 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2867 (gomp_work_share_end_nowait): Use atomic ops when available.
2868 * config/linux/bar.c, config/linux/bar.h: New files.
2869 * config/posix/bar.c, config/posix/bar.h: New files.
2871 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2873 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2874 * testsuite/libgomp.dg/single-2.c: New test.
2876 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2877 lang_link_flags): Unset, so that they aren't inherited from previously
2880 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2882 2005-10-12 Richard Henderson <rth@redhat.com>
2884 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2885 (libgomp_init): Use lang_test_file, lang_library_path, and
2886 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2888 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2889 (lang_test_file, lang_link_flags): New.
2890 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2892 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2893 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2894 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2895 testsuite/libgomp.c++/parallel-1.C,
2896 testsuite/libgomp.c++/reduction-1.C,
2897 testsuite/libgomp.c++/reduction-2.C,
2898 testsuite/libgomp.c++/reduction-3.C,
2899 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2900 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2901 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2902 New files, largely cribbed from the C testsuite.
2904 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2906 * testsuite/libgomp.fortran/character1.f90: New test.
2907 * testsuite/libgomp.fortran/character2.f90: New test.
2909 * testsuite/libgomp.dg/nested-1.c: New test.
2910 * testsuite/libgomp.dg/nested-2.c: New test.
2911 * testsuite/libgomp.fortran/do1.f90: New test.
2912 * testsuite/libgomp.fortran/do2.f90: New test.
2914 * testsuite/libgomp.fortran/reference1.f90: New test.
2916 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2918 * testsuite/libgomp.dg/reduction-1.c: New test.
2919 * testsuite/libgomp.dg/reduction-2.c: New test.
2920 * testsuite/libgomp.dg/reduction-3.c: New test.
2922 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2924 * testsuite/libgomp.dg/atomic-1.c: New test.
2925 * testsuite/libgomp.dg/atomic-2.c: New test.
2927 2005-10-09 Richard Henderson <rth@redhat.com>
2929 * critical.c (atomic_lock): New.
2930 (initialize_critical): Initialize it.
2931 (GOMP_atomic_start, GOMP_atomic_end): New.
2932 * libgomp.map: Export them.
2933 * libgomp_g.h: Declare them.
2935 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2937 2005-10-02 Richard Henderson <rth@redhat.com>
2939 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2940 to XCFLAGS instead of CFLAGS.
2942 2005-09-30 Richard Henderson <rth@redhat.com>
2944 * configure.ac: Determine whether -pthread or -lpthread is needed.
2945 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2946 * Makefine.in, configure: Rebuild.
2948 2005-09-28 Richard Henderson <rth@redhat.com>
2950 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2951 * testsuite/libgomp.dg/omp-single-3.c: New test.
2953 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2955 * testsuite/libgomp.dg/omp-single-2.c: New test.
2956 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2958 2005-09-27 Richard Henderson <rth@redhat.com>
2960 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2961 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2963 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2965 * testsuite/libgomp.dg/omp-loop03.c: New test.
2967 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2969 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2971 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2973 * testsuite/libgomp.dg/omp-single-1.c: New test.
2974 * testsuite/libgomp.dg/shared-1.c: Return 0.
2975 Add prototype for abort.
2976 * testsuite/libgomp.dg/shared-2.c: Likewise.
2978 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2980 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2983 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2985 * testsuite/libgomp.dg/shared-1.c: New test.
2986 * testsuite/libgomp.dg/shared-2.c: New test.
2988 2005-09-24 Richard Henderson <rth@redhat.com>
2990 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2992 2005-09-24 Richard Henderson <rth@redhat.com>
2994 * iter.c (gomp_iter_static_next): Round up when computing number
2995 of iterations. Don't bother distributing a remainder equally.
2997 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2998 Don't call srand. Zero b before testing.
3001 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3003 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3004 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3006 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3008 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3009 without !$omp end do, followed immediately by subroutine end.
3011 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3013 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3015 2005-09-22 Richard Henderson <rth@redhat.com>
3017 * critical.c (GOMP_critical_name_start): Change argument to void**.
3018 Reuse the pointer space if the mutex fits.
3019 (GOMP_critical_name_end): Likewise.
3020 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3021 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3022 (GOMP_critical_name_end): Likewise.
3023 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3024 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3026 2005-09-20 Richard Henderson <rth@redhat.com>
3028 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3029 (create_lock_lock): New.
3030 (initialize_critical): Initialize it.
3031 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3032 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3034 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3036 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3038 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3040 * testsuite/libgomp.dg/omp-loop01.c: New test.
3041 * testsuite/libgomp.dg/omp-loop02.c: New test.
3043 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3045 * configure.ac (AC_PROG_FC): Add.
3046 (USE_FORTRAN): New automake conditional.
3047 * configure: Rebuilt.
3048 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3049 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3050 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3051 Add rules to build them.
3052 * Makefile.in: Rebuilt.
3053 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3055 * libgomp.map: Add Fortran wrappers.
3056 * libgomp_f.h.in: New file.
3057 * omp_lib.h.in: New file.
3058 * omp_lib.f90.in: New file.
3059 * fortran.c: New file.
3060 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3061 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3062 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3063 libgfortran has been built.
3064 * testsuite/libgomp.fortran/fortran.exp: New file.
3065 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3066 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3067 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3068 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3069 * testsuite/libgomp.fortran/omp_hello.f: New test.
3070 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3071 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3072 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3073 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3074 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3075 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3076 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3077 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3079 2005-08-30 Richard Henderson <rth@redhat.com>
3081 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3082 function for when aliases are not usable.
3083 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3084 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3085 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3086 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3087 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3088 GOMP_loop_ordered_guided_next): Likewise.
3089 * ordered.c (GOMP_ordered_start): Likewise.
3091 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3093 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3094 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3095 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3096 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3097 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3098 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3099 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3100 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3101 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3103 2005-07-07 Eric Christopher <echristo@redhat.com>
3104 Diego Novillo <dnovillo@redhat.com>
3106 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3107 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3109 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3110 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3111 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3112 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3113 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3114 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3115 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3117 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3119 * TOPLEVEL.patch: Remove.
3121 2005-05-16 Richard Henderson <rth@redhat.com>
3123 * configure.ac: Test for clock_gettime.
3124 * config.h.in, configure: Rebuild.
3125 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3126 (omp_get_wtime): Use clock_gettime if available.
3127 (omp_get_wtick): Use clock_getres if available.
3129 2005-05-11 Richard Henderson <rth@redhat.com>
3131 * config/linux/ia64/futex.h: New file.
3132 * configure.tgt: Use it.
3134 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3136 2005-05-07 Richard Henderson <rth@redhat.com>
3138 * config/linux/powerpc/futex.h: New file.
3139 * configure.tgt: Use it.
3141 * config/linux/i486/futex.h: Merge ...
3142 * config/linux/x86_64/futex.h: ... into ...
3143 * config/linux/x86/futex.h: ... here.
3144 * configure.tgt: Update to match.
3146 2005-05-06 Richard Henderson <rth@redhat.com>
3148 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3149 * config/linux/i486/futex.h: Likewise.
3150 * config/linux/x86_64/futex.h: Likewise.
3152 * config/linux/lock.c: New file.
3153 * config/linux/omp-lock.h: New file.
3155 * critical.c, env.h: Don't include omp.h
3156 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3157 * config/posix/time.c: Likewise.
3158 * config/posix/omp-lock.h: New file.
3159 * libgomp.h: Include omp-lock.h and omp.h.
3160 * Makefile.am (nodist_include_HEADERS): New.
3162 * configure.ac (PERL): New.
3163 * mkomp_h.pl: New file.
3164 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3166 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3168 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3169 build directory. Re-add -march=i486 hack.
3171 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3172 (libgomp_link_flags): Remove.
3173 (libgomp_initialized): Remove.
3174 (libgomp_init): Don't protect from reinitialization. Copy code
3175 from libstdc++ for getting the multilib set correctly.
3177 2005-05-05 Richard Henderson <rth@redhat.com>
3179 * config/linux/alpha/futex.h: New file.
3180 * configure.tgt (alpha*-*-linux*): Use it.
3182 * config/posix/mutex.c: New file.
3183 * config/posix/sem.c: Use libgomp.h.
3185 * configure.tgt (x86_64-linux): Also test CC for -m32.
3186 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3188 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3191 * Makefile.am (SUBDIRS): New.
3192 (libgomp_la_LDFLAGS): Add -lpthread.
3193 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3194 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3196 * libgomp_g.h: New file.
3197 * libgomp.h: Split out all public declarations to libgomp_g.h.
3198 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3199 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3200 * config/linux/sem.h: Likewise.
3201 * config/posix/sem.h: Likewise.
3203 * Makefile.am (AM_LDFLAGS): New.
3204 (libgomp_version_script): Split out from ...
3205 (libgomp_la_LDFLAGS): ... here.
3206 (libgomp_version_info): New.
3207 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3208 (LIBGOMP_ENABLE): New.
3209 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3210 (LIBGOMP_ENABLE_SYMVERS): New.
3211 * configure.ac (AC_INIT): Version 1.0.
3212 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3213 (enable-linux-futex): Likewise. Rename from enable-futex.
3214 (libtool_VERSION): New.
3215 (LIBGOMP_ENABLE_SYMVERS): Use it.
3216 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3217 * Makefile.in, aclocal.m4, configure: Rebuild.
3219 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3220 (gomp_mutex_unlock_slow): Fix typo.
3221 * config/linux/sem.c: Similarly.
3222 (gomp_sem_post_slow): Fix typo.
3223 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3224 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3225 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3227 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3228 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3229 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3230 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3231 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3232 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3233 LDFLAGS. Pull enable_futex check to top-level.
3234 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3235 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3237 First attempt at real configury.
3238 * Makefile, config.h: Remove file.
3239 * Makefile.am, Makefile.in: New file.
3240 * acinclude.m4 aclocal.m4: New file.
3241 * configure.ac, configure.tgt, configure: New file.
3243 * config/posix/lock.c: Rename from sys-lock.c.
3244 * config/posix/mutex.h: Rename from sys-mutex.h.
3245 * config/posix/sem.c: Rename from sys-sem.c.
3246 * config/posix/sem.h: Rename from sys-sem.h.
3247 * config/posix/proc.c: Rename from sys-proc.c.
3248 * config/posix/time.c: Rename from sys-proc.c.
3250 * config/linux/mutex.c: New file.
3251 * config/linux/mutex.h: New file.
3252 * config/linux/sem.c: New file.
3253 * config/linux/sem.h: New file.
3254 * config/linux/i486/futex.h: New file.
3255 * config/linux/x86_64/futex.h: New file.
3257 2005-05-04 Richard Henderson <rth@redhat.com>
3259 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3260 * libgomp.h: Declare them.
3261 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3262 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3264 2005-05-04 Richard Henderson <rth@redhat.com>
3266 * libgomp-1 code drop
3268 2005-05-04 Richard Henderson <rth@redhat.com>
3270 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3271 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3272 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3273 (gomp_iter_static_next): Update.
3274 (gomp_ordered_static_next): Update.
3275 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3276 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3277 totally empty range.
3278 (gomp_loop_ordered_static_next): Refine test for calling
3279 gomp_ordered_static_next.
3280 * testsuite/ordered-1.c: Add case for more threads than iterations.
3282 * iter.c (gomp_iter_runtime_next_locked): Remove.
3283 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3284 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3285 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3286 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3287 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3288 gomp_loop_ordered_guided_next): Downcase name, make static, add
3289 an external alias with the old name.
3290 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3291 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3292 switch and call one of the above static functions.
3293 * libgomp.h: Update.
3295 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3296 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3297 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3298 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3299 GOMP_loop_ordered_guided_start): Update to match.
3300 * sections.c (GOMP_sections_start): Likewise.
3301 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3303 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3304 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3305 Use bounds check instead of modulus.
3306 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3307 (gomp_ordered_last): Don't sync with ordered_owner here.
3308 (gomp_ordered_next): Likewise.
3309 (gomp_ordered_static_loop_next): Likewise.
3310 * loop.c, libgomp.h: Update to match.
3312 * libgomp.h (GOMP_barrier): Declare.
3314 * testsuite/barrier-1.c: New file.
3315 * testsuite/critical-1.c: New file.
3316 * testsuite/ordered-2.c: New file.
3317 * testsuite/ordered-1.c: New file.
3318 * testsuite/sections-1.c: New file.
3319 * testsuite/single-1.c: New file.
3320 * testsuite/Makefile (TESTS): Add them.
3322 2005-05-04 Richard Henderson <rth@redhat.com>
3324 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3325 * loop.c (GOMP_loop_static_start): If not the startup thread,
3326 acquire the mutex to wait for initialization complete.
3327 (GOMP_loop_ordered_static_start): Likewise.
3328 (GOMP_loop_ordered_runtime_start): Likewise.
3329 (GOMP_loop_ordered_static_first): Remove.
3330 (GOMP_loop_ordered_dynamic_first): Remove.
3331 (GOMP_loop_ordered_guided_first): Remove.
3332 (GOMP_loop_ordered_runtime_first): Remove.
3333 * ordered.c (gomp_ordered_loop_first): Post to own release when
3334 we're the first thread.
3335 (gomp_ordered_loop_last): Wait on release if not owner.
3336 (gomp_ordered_loop_next): Likewise.
3337 (gomp_ordered_static_loop_init): New.
3338 (gomp_ordered_static_loop_next): Use ordered_owner.
3339 (GOMP_ordered_start): Likewise.
3340 * work.c (gomp_new_work_share): Initialize ordered_owner.
3342 2005-05-03 Richard Henderson <rth@redhat.com>
3344 * Makefile (OPT): New.
3347 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3348 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3349 * libgomp.h, libgomp.map, NOTES: Update to match.
3351 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3352 Add initialized and thr members.
3353 (gomp_thread_start): Pause when initially spawned to wait for
3354 the whole team to be created.
3355 (gomp_team_start): Release team members at the end.
3357 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3358 (f_foo_1): Use GOMP_loop_end.
3359 (f_foo_2): Use GOMP_loop_end_nowait.
3361 * testsuite/loop-2.c: New file.
3362 * testsuite/Makefile (TESTS): Add it.
3364 2005-05-03 Richard Henderson <rth@redhat.com>
3366 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3367 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3368 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3371 * testsuite/Makefile: New file.
3372 * testsuite/loop-1.c: New file.
3374 2005-05-03 Richard Henderson <rth@redhat.com>
3376 Initial implementation and checkin.