1 2013-10-16 Release Manager
5 2013-10-09 Jakub Jelinek <jakub@redhat.com>
7 * parallel.c (GOMP_parallel_end): Remember team->nthreads and call
8 gomp_team_end before adjusting gomp_remaining_threads_count, increment
9 gomp_remaining_threads_count instead of decrementing it again.
10 * testsuite/libgomp.c/thread-limit-1.c: New test.
12 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14 * testsuite/libgomp.c/sections-2.c: New test.
16 2013-05-31 Release Manager
20 2013-05-16 Jakub Jelinek <jakub@redhat.com>
22 * testsuite/libgomp.c/loop-13.c: New test.
23 * testsuite/libgomp.c/loop-14.c: New test.
24 * testsuite/libgomp.c/loop-15.c: New test.
25 * testsuite/libgomp.c++/loop-13.C: New test.
26 * testsuite/libgomp.c++/loop-14.C: New test.
27 * testsuite/libgomp.c++/loop-15.C: New test.
29 2013-03-22 Release Manager
33 2013-02-06 Jakub Jelinek <jakub@redhat.com>
36 * testsuite/libgomp.c++/pr56217.C: New test.
38 2013-02-01 Alan Modra <amodra@gmail.com>
40 * task.c (GOMP_task, GOMP_taskwait): Comment.
42 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
43 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
46 * config/linux/wait.h (do_spin): Use atomic load for addr.
47 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
48 for intptr and ptrlock.
49 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
52 2013-01-22 Alan Modra <amodra@gmail.com>
56 * task.c (GOMP_task): Revert 2011-12-09 change.
57 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
58 barrier to read task->children..
59 (gomp_barrier_handle_tasks): ..and matching atomic store with
60 release barrier here when setting parent->children to NULL.
62 2013-01-16 Jakub Jelinek <jakub@redhat.com>
63 Tobias Burnus <burnus@net-b.de>
66 * testsuite/libgomp.fortran/fortran.exp: Use
67 -fintrinsic-modules-path= instead of
68 -fintrinsic-modules-path.
70 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
72 Update copyright years.
74 2012-12-19 Tobias Burnus <burnus@net-b.de>
76 * testsuite/libgomp.fortran/fortran.exp: Set
77 -fintrinsic-modules-path.
79 2012-12-19 Tobias Burnus <burnus@net-b.de>
81 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
82 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
84 2012-11-21 Jakub Jelinek <jakub@redhat.com>
87 * team.c (gomp_free_thread): Decrease gomp_managed_threads
88 if pool had any threads_used.
90 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
92 * testsuite/libgomp.c++/pr24455.C: Use
93 -Wl,-undefined,dynamic_lookup on darwin.
95 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
97 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
99 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
101 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
103 2012-10-23 Ian Bolton <ian.bolton@arm.com>
104 Jim MacArthur <jim.macarthur@arm.com>
105 Marcus Shawcroft <marcus.shawcroft@arm.com>
106 Nigel Stephens <nigel.stephens@arm.com>
107 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
108 Richard Earnshaw <rearnsha@arm.com>
109 Sofiane Naci <sofiane.naci@arm.com>
110 Stephen Thomas <stephen.thomas@arm.com>
111 Tejas Belagod <tejas.belagod@arm.com>
112 Yufeng Zhang <yufeng.zhang@arm.com>
114 * configure.tgt: Add AArch64.
116 2012-10-04 Jason Merrill <jason@redhat.com>
118 * testsuite/libgomp.c++/tls-init1.C: New.
120 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
122 * configure: Regenerated.
124 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
126 * config/linux/mips/futex.h (sys_futex0): Change to static
127 function with noinline, nomips16 attributes under MIPS16. Adjust
128 asm statement to place 'li v0,SYS_futex' immediately before
131 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
133 * libgomp.texi (Library Index): Renamed from "Index" to prevent
134 conflict with index.html on case-insensitive file systems.
136 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
138 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
139 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
141 2012-07-02 Richard Guenther <rguenther@suse.de>
142 Michael Matz <matz@suse.de>
143 Tobias Grosser <tobias@grosser.es>
144 Sebastian Pop <sebpop@gmail.com>
146 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
147 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
148 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
149 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
151 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
153 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
155 2012-06-22 Richard Guenther <rguenther@suse.de>
157 Merge from graphite branch
158 2012-01-13 Tobias Grosser <tobias@grosser.es>
160 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
161 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
163 2012-06-07 Jakub Jelinek <jakub@redhat.com>
166 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
167 use GOMP_barrier () call instead.
168 * testsuite/libgomp.c/pr26943-3.c: Likewise.
169 * testsuite/libgomp.c/pr26943-4.c: Likewise.
170 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
171 call GOMP_barrier instead.
172 * testsuite/libgomp.fortran/vla5.f90: Likewise.
174 2012-06-06 Jakub Jelinek <jakub@redhat.com>
177 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
178 argument to memset call.
180 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
182 * configure: Regenerated.
184 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
186 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
188 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
191 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
193 2012-03-22 Jakub Jelinek <jakub@redhat.com>
196 * testsuite/libgomp.c/pr52547.c: New test.
198 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
200 * testsuite/lib/libgomp.exp: load fortran-modules.exp
202 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
204 * configure.tgt (mips-sgi-irix6*): Remove.
206 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
208 * configure.tgt (alpha*-dec-osf*): Remove.
210 * config/osf/sem.h: Remove.
211 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
213 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
215 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
217 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
220 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
221 Remove ENABLE_SYMVERS_SOL2.
222 * configure: Regenerate.
223 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
224 (PREPROCESS): New variable.
225 (libgomp.ver): New target.
226 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
227 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
228 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
230 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
231 * Makefile.in: Regenerate.
233 2012-02-14 Walter Lee <walt@tilera.com>
235 * configure.tgt: Handle tilegx and tilepro.
236 * config/linux/tile/futex.h: New file.
238 2012-02-08 Richard Guenther <rguenther@suse.de>
240 PR tree-optimization/46886
241 * testsuite/libgomp.c/pr46886.c: New testcase.
243 2012-01-25 Matthias Klose <doko@ubuntu.com>
245 * config/linux/arm: Remove empty directory.
246 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
248 2011-12-09 Alan Modra <amodra@gmail.com>
251 * task.c (GOMP_taskwait): Don't access task->children outside of
252 task_lock mutex region.
253 (GOMP_task): Likewise.
255 2011-12-06 Jakub Jelinek <jakub@redhat.com>
258 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
260 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
261 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
262 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
263 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
264 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
266 2011-12-02 Alan Modra <amodra@gmail.com>
268 * config/linux/affinity.c: Use atomic rather than sync builtin.
269 * config/linux/lock.c: Likewise.
270 * config/linux/ptrlock.h: Likewise.
271 * config/linux/ptrlock.c: Likewise.
272 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
273 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
274 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
275 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
276 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
277 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
278 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
279 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
280 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
281 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
283 2011-11-30 Alan Modra <amodra@gmail.com>
286 * config/linux/bar.h: Use atomic rather than sync builtins.
287 * config/linux/bar.c: Likewise. Add missing acquire
288 synchronisation on generation field.
289 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
292 2011-11-30 Alan Modra <amodra@gmail.com>
294 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
295 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
296 * config/linux/mutex.h: Use atomic rather than sync builtins.
297 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
298 * config/linux/omp-lock.h: Comment fix.
299 * config/linux/arm/mutex.h: Delete.
300 * config/linux/powerpc/mutex.h: Delete.
301 * config/linux/ia64/mutex.h: Delete.
302 * config/linux/mips/mutex.h: Delete.
304 2011-11-30 Alan Modra <amodra@gmail.com>
307 * config/linux/sem.h: Rewrite.
308 * config/linux/sem.c: Rewrite.
310 2011-11-28 Richard Henderson <rth@redhat.com>
312 * libgomp.h (enum memmodel): New.
314 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
316 * configure: Regenerate.
318 2011-10-10 Matthias Klose <doko@ubuntu.com>
320 * config/posix95: Remove empty directory.
322 2011-08-26 Jakub Jelinek <jakub@redhat.com>
324 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
326 2011-08-19 Jakub Jelinek <jakub@redhat.com>
329 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
330 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
332 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
334 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
336 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
339 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
341 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
343 * config/linux/proc.h: New.
344 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
345 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
346 (gomp_init_num_threads): Update call to cpuset_popcount.
347 (get_num_procs): Ditto.
348 * config/linux/affinity.c (gomp_init_affinity): Call
349 gomp_cpuset_popcount.
351 2011-08-02 Jakub Jelinek <jakub@redhat.com>
355 * omp.h.in (omp_in_final): New prototype.
356 * omp_lib.f90.in (omp_in_final): New interface.
357 (omp_integer_kind, omp_logical_kind): Remove
358 and replace all its uses in the module with 4.
359 (openmp_version): Change to 201107.
360 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
361 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
362 kind for the parameters.
363 (omp_in_final): New external.
364 (openmp_version): Change to 201107.
365 * task.c (omp_in_final): New function.
366 (gomp_init_task): Initialize final_task.
367 (GOMP_task): Remove unused attribute from flags. Handle final
369 (GOMP_taskyield): New function.
370 (omp_in_final): Return true if if (false) or final (true) task
371 or descendant of final (true).
372 * fortran.c (omp_in_final_): New function.
373 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
374 (GOMP_3.0): Export GOMP_taskyield.
375 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
377 (parse_unsigned_long_list): New function.
378 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
379 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
380 even if parse_affinity returned false.
381 * config/linux/affinity.c (gomp_init_affinity): Handle
382 gomp_cpu_affinity_len == 0.
383 * libgomp_g.h (GOMP_taskyield): New prototype.
384 * libgomp.h (struct gomp_task): Add final_task field.
385 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
386 * team.c (gomp_team_start): Override new task's nthreads_var icv
387 if list form OMP_NUM_THREADS has been used and it has value for
388 the new nesting level.
390 * testsuite/libgomp.c/atomic-11.c: New test.
391 * testsuite/libgomp.c/atomic-12.c: New test.
392 * testsuite/libgomp.c/atomic-13.c: New test.
393 * testsuite/libgomp.c/atomic-14.c: New test.
394 * testsuite/libgomp.c/reduction-6.c: New test.
395 * testsuite/libgomp.c/task-5.c: New test.
396 * testsuite/libgomp.c++/atomic-2.C: New test.
397 * testsuite/libgomp.c++/atomic-3.C: New test.
398 * testsuite/libgomp.c++/atomic-4.C: New test.
399 * testsuite/libgomp.c++/atomic-5.C: New test.
400 * testsuite/libgomp.c++/atomic-6.C: New test.
401 * testsuite/libgomp.c++/atomic-7.C: New test.
402 * testsuite/libgomp.c++/atomic-8.C: New test.
403 * testsuite/libgomp.c++/atomic-9.C: New test.
404 * testsuite/libgomp.c++/task-8.C: New test.
405 * testsuite/libgomp.c++/reduction-4.C: New test.
406 * testsuite/libgomp.fortran/allocatable7.f90: New test.
407 * testsuite/libgomp.fortran/allocatable8.f90: New test.
408 * testsuite/libgomp.fortran/crayptr3.f90: New test.
409 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
410 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
411 * testsuite/libgomp.fortran/pointer1.f90: New test.
412 * testsuite/libgomp.fortran/pointer2.f90: New test.
413 * testsuite/libgomp.fortran/task4.f90: New test.
415 2011-08-02 Tobias Burnus <burnus@net-b.de>
417 * libgomp.texi: Update OpenMP spec references to 3.1.
418 (omp_in_final,OMP_PROC_BIND): New sections.
419 (OMP_NUM_THREADS): Document that the value can be now a list.
420 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
422 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
424 * config/linux/x86/futex.h: Check __x86_64__ instead of
427 2011-07-29 Jakub Jelinek <jakub@redhat.com>
431 * testsuite/libgomp.c/pr49897-1.c: New test.
432 * testsuite/libgomp.c/pr49897-2.c: New test.
433 * testsuite/libgomp.c/pr49898-1.c: New test.
434 * testsuite/libgomp.c/pr49898-2.c: New test.
436 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
438 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
439 for ia32 instead of ilp32.
441 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
442 * testsuite/libgomp.c/atomic-6.c: Likewise.
444 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
446 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
447 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
449 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
452 * config/osf/sem.h: New file.
453 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
455 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
458 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
461 2011-07-15 Jakub Jelinek <jakub@redhat.com>
463 * config/linux/wait.h (do_spin): New inline, largely copied
464 from do_wait, just don't do futex_wait here, instead return true if
466 (do_wait): Implement using do_spin.
467 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
469 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
470 __sync_bool_compare_and_swap, pass the oldval to
471 gomp_mutex_lock_slow.
472 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
473 If all mutex contenders are just spinning and not sleeping, don't
474 change state to 2 unnecessarily. Optimize the loop when state has
475 already become 2 to use just one atomic operation per loop instead
477 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
479 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
480 __sync_bool_compare_and_swap, pass the oldval to
481 gomp_mutex_lock_slow.
483 2011-06-22 Jakub Jelinek <jakub@redhat.com>
486 * iter.c (gomp_iter_static_next): For chunk size 0
487 only use n ceil/ nthreads size for the first
488 n % nthreads threads in the team instead of
489 all threads except for the last few ones which
490 get less work or none at all.
491 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
492 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
493 chunk argument, set run_sched_modifier to 0 for static
494 resp. 1 for other kinds. If chunk argument is 0
495 and not static, set value to 1.
497 2011-05-19 Jakub Jelinek <jakub@redhat.com>
500 * testsuite/libgomp.c++/pr49043.C: New test.
503 * testsuite/libgomp.c++/pr48869.C: New test.
505 2011-05-06 Jakub Jelinek <jakub@redhat.com>
508 * fortran.c: Include limits.h.
510 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
512 (omp_set_num_threads_8_, omp_set_schedule_8_,
513 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
514 omp_get_team_size_8_): Use TO_INT macro.
515 * testsuite/libgomp.fortran/pr48894.f90: New test.
517 2011-04-13 Jakub Jelinek <jakub@redhat.com>
520 * testsuite/libgomp.c/pr48591.c: New test.
522 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
525 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
526 * configure: Regenerate.
528 2011-02-27 Jakub Jelinek <jakub@redhat.com>
531 * testsuite/libgomp.fortran/task3.f90: New test.
533 2011-02-24 Tobias Burnus <burnus@net-b.de>
535 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
537 2011-02-23 Jakub Jelinek <jakub@redhat.com>
540 * libgomp.texi (omp_get_wtime): Don't say time in the past
543 2011-02-18 Jakub Jelinek <jakub@redhat.com>
546 * testsuite/libgomp.fortran/fortran.exp: Check for both
547 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
548 but $blddir != "", still append ${blddir}/${lang_library_path}
551 2011-02-16 Tobias Burnus <burnus@net-b.de>
554 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
555 of libquadmath.a before adding its libpath to ldflags.
557 2011-02-14 Jakub Jelinek <jakub@redhat.com>
560 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
561 to FUTEX_WAIT futex syscall.
562 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
564 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
566 * configure: Regenerate.
568 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
571 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
573 2011-01-16 Gerald Pfeifer
575 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
577 2010-12-14 Jakub Jelinek <jakub@redhat.com>
580 * libgomp.fortran/allocatable6.f90: New test.
582 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
584 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
585 * configure: Regenerate.
587 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
591 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
592 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
593 * aclocal.m4: Regenerate.
594 * configure: Regenerate.
595 * Makefile.in: Regenerate.
596 * testsuite/Makefile.in: Regenerate.
598 2010-12-02 Jakub Jelinek <jakub@redhat.com>
601 * libgomp.fortran/pr46753.f90: New test.
604 * env.c (initialize_env): Default to spin count 300000
605 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
609 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
610 at the end if sync builtins aren't supported.
612 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
614 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
616 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
618 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
620 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
622 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
624 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
625 Tobias Burnus <burnus@net-b.de>
629 * configure: Regenerate.
631 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
633 * config/linux/futex.h: New.
634 * config/linux/arm/mutex.h: New.
635 * configure.tgt (arm*-*-linux*): Add config path.
637 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
639 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
641 2010-09-23 Tobias Burnus <burnus@net-b.de>
643 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
644 Change Fortran datatype to LOGICAL.
645 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
646 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
648 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
650 * configure: Regenerate.
652 2010-07-26 Jakub Jelinek <jakub@redhat.com>
654 * libgomp.texi: Add function keyword to a couple of Fortran
655 interfaces, use integer instead of int for Fortran.
657 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
659 * libgomp.texi: Fix spelling and pasto problems throughout.
660 Adjust prototypes to match code.
662 2010-07-24 Tobias Burnus <burnus@net-b.de>
664 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
665 silence -fwhole-file warning.
667 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
669 * configure.tgt (*-*-solaris2.[56]*): Removed.
671 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
673 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
674 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
675 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
676 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
677 targetting solaris2*.
678 * configure: Regenerate.
679 * config.h.in: Regenerate.
681 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
682 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
683 Add libgomp_version_dep.
684 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
686 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
687 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
688 * Makefile.in: Regenerate.
690 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
691 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
692 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
693 to common block, protected by
694 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
696 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
698 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
700 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
703 * configure: Regenerate.
705 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
708 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
709 * configure: Regenerate.
710 * Makefile.in: Regenerate.
711 * testsuite/Makefile.in: Regenerate.
713 2010-04-26 Jakub Jelinek <jakub@redhat.com>
716 * testsuite/libgomp.c/pr43893.c: New test.
717 * testsuite/libgomp.c++/pr43893.C: New test.
719 2010-04-21 Jakub Jelinek <jakub@redhat.com>
722 * testsuite/libgomp.fortran/vla8.f90: New test.
724 2010-04-20 Jakub Jelinek <jakub@redhat.com>
727 * config/linux/affinity.c (gomp_init_affinity): Decrease
728 gomp_available_cpus if affinity mask confines the process to fewer
730 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
731 non-NULL, just return gomp_available_cpus.
734 * sections.c (gomp_sections_init): Initialize ws->mode.
736 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
738 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
739 not unused bar variable.
740 * configure: Regenerate.
742 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
744 * Makefile.in: Regenerate.
745 * aclocal.m4: Regenerate.
746 * testsuite/Makefile.in: Regenerate.
748 2010-03-22 Jakub Jelinek <jakub@redhat.com>
751 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
752 (initialize_env): Adjust callers.
753 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
754 when the argument is 0.
756 * testsuite/libgomp.c/pr42942.c: New test.
758 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
762 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
763 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
765 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
767 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
768 * testsuite/libgomp.c++/task-6.C: Likewise.
770 2010-01-28 Steve Ellcey <sje@cup.hp.com>
772 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
774 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
776 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
777 * configure: Regenerate.
779 2010-01-26 Jakub Jelinek <jakub@redhat.com>
782 * testsuite/libgomp.fortran/allocatable5.f90: New test.
784 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
786 * configure.ac: Test for executability of GFORTRAN.
787 * configure: Regenerate.
789 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
791 * configure: Regenerate.
793 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
796 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
798 2010-01-03 Richard Guenther <rguenther@suse.de>
800 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
802 2009-12-23 Sebastian Pop <sebpop@gmail.com>
804 * testsuite/libgomp.graphite/pr4118.c: New.
806 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
808 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
809 for darwin, protect the test with require-effective-target tls_runtime.
810 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
812 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
815 * testsuite/lib/libgomp.exp: Provide -B options to allow for
816 link spec %s substitutions for static libraries.
818 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
821 * libgomp.graphite/force-parallel-2.c: Reduce array size.
823 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
825 * Makefile.in: Regenerate.
826 * configure: Regenerate.
827 * testsuite/Makefile.in: Regenerate.
829 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
831 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
832 settings for LC_ALL and LANG.
834 2009-11-25 Jakub Jelinek <jakub@redhat.com>
837 * testsuite/libgomp.fortran/pr42162.f90: New test.
839 2009-11-13 Jakub Jelinek <jakub@redhat.com>
842 * testsuite/libgomp.c/pr42029.c: New test.
844 2009-10-26 Jakub Jelinek <jakub@redhat.com>
846 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
847 *s. Accept ld version without text in ()s.
848 * configure: Regenerated.
850 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
852 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
854 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
857 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
858 or a hyphen (happens with fortran language disabled).
859 * configure: Regenerate.
861 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
863 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
864 use sed script portable to Solaris /bin/sed for extracting ld
866 * configure: Regenerate.
868 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
870 * testsuite/libgomp.graphite/bounds.c: New test.
872 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
874 * Makefile.am (libgomp_la_LINK): New.
875 * Makefile.in: Regenerate.
877 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
879 * configure.ac (AC_PREREQ): Bump to 2.64.
881 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
883 * Makefile.am (install-html, install-pdf): Remove.
884 * Makefile.in: Regenerate.
886 * Makefile.in: Regenerate.
887 * aclocal.m4: Regenerate.
888 * config.h.in: Regenerate.
889 * configure: Regenerate.
890 * testsuite/Makefile.in: Regenerate.
892 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
894 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
895 * Makefile.in: Regenerate.
897 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
899 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
900 * Makefile.in: Regenerate.
902 2009-08-19 Tobias Burnus <burnus@net-b.de>
905 omp_lib.h.in: Fix -std=f95 errors.
908 2009-08-14 David Edelsohn <edelsohn@gnu.org>
910 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
911 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
912 * testsuite/libgomp.graphite/graphite.exp: New.
914 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
916 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
919 2009-08-04 David Daney <ddaney@caviumnetworks.com>
921 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
922 needed memory barrier semantics.
923 * config/linux/mips/mutex.h: New file.
925 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
927 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
929 2009-07-16 Joseph Myers <joseph@codesourcery.com>
931 * configure: Regenerate.
933 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
938 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
939 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
940 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
942 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
944 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
945 options when choosing a multilib.
947 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
949 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
950 ld_library_path. Use add_path. Add just find_libgcc_s to
951 ld_library_path, not every libgcc multilib directory.
952 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
953 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
954 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
956 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
958 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
960 * Makefile.am (LTLDFLAGS): Define.
962 * Makefile.in: Regenerate.
964 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
967 * testsuite/libgomp.fortran/fortran.exp: Don't link with
968 libgfortranbegin, check existence of libgfortran.a instead of
971 2009-05-20 Jakub Jelinek <jakub@redhat.com>
974 * team.c (gomp_thread_start): Destroy thr->release semaphore.
975 (gomp_free_pool_helper): Likewise.
977 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
978 Jakub Jelinek <jakub@redhat.com>
981 * testsuite/libgomp.fortran/workshare2.f90: New test.
983 2009-04-09 Nick Clifton <nickc@redhat.com>
985 * iter.c: Change copyright header to refer to version 3 of the
986 GNU General Public License with version 3.1 of the GCC Runtime
987 Library Exception and to point readers at the COPYING3 and
988 COPYING3.RUNTIME files and the FSF's license web page.
990 * barrier.c: Likewise.
991 * config/bsd/proc.c: Likewise.
992 * config/linux/affinity.c: Likewise.
993 * config/linux/alpha/futex.h: Likewise.
994 * config/linux/bar.c: Likewise.
995 * config/linux/bar.h: Likewise.
996 * config/linux/ia64/futex.h: Likewise.
997 * config/linux/ia64/mutex.h: Likewise.
998 * config/linux/lock.c: Likewise.
999 * config/linux/mips/futex.h: Likewise.
1000 * config/linux/mutex.c: Likewise.
1001 * config/linux/mutex.h: Likewise.
1002 * config/linux/powerpc/futex.h: Likewise.
1003 * config/linux/proc.c: Likewise.
1004 * config/linux/ptrlock.c: Likewise.
1005 * config/linux/ptrlock.h: Likewise.
1006 * config/linux/s390/futex.h: Likewise.
1007 * config/linux/sem.c: Likewise.
1008 * config/linux/sem.h: Likewise.
1009 * config/linux/sparc/futex.h: Likewise.
1010 * config/linux/wait.h: Likewise.
1011 * config/linux/x86/futex.h: Likewise.
1012 * config/mingw32/proc.c: Likewise.
1013 * config/mingw32/time.c: Likewise.
1014 * config/posix/affinity.c: Likewise.
1015 * config/posix/bar.c: Likewise.
1016 * config/posix/bar.h: Likewise.
1017 * config/posix/lock.c: Likewise.
1018 * config/posix/mutex.h: Likewise.
1019 * config/posix/proc.c: Likewise.
1020 * config/posix/ptrlock.h: Likewise.
1021 * config/posix/sem.c: Likewise.
1022 * config/posix/sem.h: Likewise.
1023 * config/posix/time.c: Likewise.
1024 * config/posix95/lock.c: Likewise.
1025 * critical.c: Likewise.
1027 * error.c: Likewise.
1028 * fortran.c: Likewise.
1029 * iter_ull.c: Likewise.
1030 * libgomp.h: Likewise.
1031 * libgomp_f.h.in: Likewise.
1032 * libgomp_g.h: Likewise.
1034 * loop_ull.c: Likewise.
1035 * omp.h.in: Likewise.
1036 * omp_lib.f90.in: Likewise.
1037 * omp_lib.h.in: Likewise.
1038 * ordered.c: Likewise.
1039 * parallel.c: Likewise.
1040 * sections.c: Likewise.
1041 * single.c: Likewise.
1046 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1048 * testsuite/config/default.exp: Change copyright header to refer to
1049 version 3 of the GNU General Public License and to point readers
1050 at the COPYING3 file and the FSF's license web page.
1052 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1055 * libgomp.c++/pr39573.C: New test.
1057 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1060 * testsuite/libgomp.c/pr39591-1.c: New test.
1061 * testsuite/libgomp.c/pr39591-2.c: New test.
1062 * testsuite/libgomp.c/pr39591-3.c: New test.
1064 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1066 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1067 * testsuite/libgomp.c/atomic-6.c: Ditto.
1069 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1072 * testsuite/libgomp.c/loop-12.c: New test.
1073 * testsuite/libgomp.c/loop-11.c: New test.
1074 * testsuite/libgomp.c++/loop-11.C: New test.
1075 * testsuite/libgomp.c++/loop-12.C: New test.
1076 * testsuite/libgomp.c++/for-8.C: New test.
1078 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1080 * configure: Regenerate.
1082 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1085 * testsuite/libgomp.c/pr39154.c: New test.
1087 2009-01-30 Ian Lance Taylor <iant@google.com>
1089 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1090 libgomp_ld_is_gold. Get gold version number.
1091 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1092 * configure: Rebuild.
1094 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1096 * testsuite/lib/libgomp.exp: Add -B option for targets that
1097 use libgfortran.a%s in their specs.
1099 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1102 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1103 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1104 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1105 * configure: Regenerated.
1106 * config.h.in: Likewise.
1108 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1111 * testsuite/libgomp.c/pr38650.c: New test.
1112 * testsuite/libgomp.c++/pr38650.C: New test.
1114 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1116 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1118 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1120 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1122 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1124 * configure: Regenerate.
1126 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1129 * testsuite/libgomp.c/pr36802-1.c: New test.
1130 * testsuite/libgomp.c/pr36802-2.c: New test.
1131 * testsuite/libgomp.c/pr36802-3.c: New test.
1133 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1136 * config/linux/powerpc/mutex.h: New.
1138 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1141 * testsuite/libgomp.c++/for-7.C: New test.
1144 * testsuite/libgomp.c++/for-6.C: New test.
1146 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1149 * testsuite/lib/libgomp.exp: Include new timeout library files.
1150 (libgomp_target_compile): Set timeout value from new proc.
1152 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1155 * config/linux/ia64/mutex.h: New.
1157 2008-11-04 Tobias Burnus <burnus@net-b.de>
1160 * libgomp.texi (Runtime library routines, environment variables):
1161 Update for OpenMP version 3.0.
1163 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1164 Steve Ellcey <sje@cup.hp.com>
1166 * configure: Regenerate for new libtool.
1167 * Makefile.in: Ditto.
1168 * testsuite/Makefile.in: Ditto.
1170 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1171 Andreas Tobler <a.tobler@schweiz.org>
1173 * config/bsd/proc.c: New file.
1174 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1175 * configure.ac: Check for header <sys/sysctl.h>
1176 * configure: Regenerate.
1177 * config.h.in: Likewise.
1179 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1181 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1183 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1185 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1186 * Makefile.in: Regenerated.
1187 * testsuite/Makefile.in: Regenerated.
1189 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1191 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1192 depend on blddir if blddir exists.
1193 (libgomp_target_compile): Likewise.
1194 * testsuite/libgomp.c++/c++.exp: Likewise.
1195 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1197 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1199 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1200 Do not list GPL as Invariant Section.
1202 2008-07-28 Ilie Garbacea <ilie@mips.com>
1203 Chao-ying Fu <fu@mips.com>
1205 * configure.tgt: Enable futex for MIPS.
1206 * config/linux/mips/futex.h: New file.
1208 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1210 * team.c (gomp_team_end): Free team immediately if it has
1213 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1215 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1216 * testsuite/libgomp.fortran/fortran.exp: Same.
1217 * testsuite/libgomp.c/c.exp: Same.
1218 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1219 directory to library path first.
1221 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1223 * env.c (parse_stacksize): Add cast to avoid warning.
1224 (parse_spincount): Likewise.
1226 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1228 * testsuite/libgomp.c/loop-10.c: New test.
1229 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1230 * libgomp.c++/loop-6.C (main): Likewise.
1233 * testsuite/libgomp.c/debug-1.c: New test.
1235 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1237 * testsuite/libgomp.c/nqueens-1.c: New test.
1240 * testsuite/libgomp.c++/task-7.C: New function.
1242 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1244 * configure: Regenerate.
1246 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1248 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1249 mutex when HAVE_SYNC_BUILTINS isn't defined.
1251 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1253 * libgomp.texi (omp_test_lock): Fix typo.
1255 2008-06-12 Tobias Burnus <burnus@net-b.de>
1257 * omp_lib.f90.in: Add "implicit none".
1259 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1262 * testsuite/libgomp.c/reduction-5.c: New test.
1264 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1266 * libgomp.h (struct gomp_task): Add in_tied_task field.
1267 * task.c (gomp_init_task): Initialize it.
1268 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1269 unconditionally. Don't call gomp_team_barrier_wake if
1270 current task is implicit or if(0) from implicit and number of
1271 running tasks is equal to nthreads - 1.
1274 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1275 omp_get_team_size_8): Fix pastos.
1278 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1279 * configure: Regenerated.
1280 * config.h.in: Regenerated.
1281 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1284 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1287 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1288 (GOMP_loop_ull_dynamic_start): Likewise.
1289 (GOMP_loop_ull_guided_start): Likewise.
1290 (GOMP_loop_ull_ordered_static_start): Likewise.
1291 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1292 (GOMP_loop_ull_ordered_guided_start): Likewise.
1294 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1295 Richard Henderson <rth@redhat.com>
1296 Ulrich Drepper <drepper@redhat.com>
1297 Jakob Blomer <jakob.blomer@ira.uka.de>
1299 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1300 Substitute also OMP_*LOCK_25*.
1301 * configure: Regenerated.
1302 * config.h.in: Regenerated.
1303 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1304 ptrlock.c and task.c.
1305 * Makefile.in: Regenerated.
1306 * testsuite/Makefile.in: Regenerated.
1308 * loop_ull.c: New file.
1309 * iter_ull.c: New file.
1310 * libgomp.h: Include ptrlock.h.
1311 (enum gomp_task_kind): New type.
1312 (struct gomp_team): Add task_lock, task_queue, task_count,
1313 task_running_count, single_count fields. Add
1314 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1315 Remove work_share_lock, generation_mask,
1316 oldest_live_gen, num_live_gen and init_work_shares fields, add
1317 work work_share_list_alloc, work_share_list_free and work_share_chunk
1318 fields. Change work_shares from pointer to pointers into an array.
1319 Change ordered_release field into gomp_sem_t ** from flexible array
1320 member. Add implicit_task and initial_work_shares fields.
1321 Move close to the end of the struct.
1322 (struct gomp_team_state): Add single_count, last_work_share,
1323 active_level and level fields, remove work_share_generation.
1324 (gomp_barrier_handle_tasks): New prototype.
1325 (gomp_finish_task): New inline function.
1326 (struct gomp_work_share): Move chunk_size, end, incr into
1327 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1328 next_ll fields. Reshuffle fields. Add next_alloc,
1329 next_ws, next_free and inline_ordered_team_ids fields, change
1330 ordered_team_ids into pointer from flexible array member.
1331 Add mode field. Put lock and next into a different cache line
1332 from most of the write-once fields.
1333 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1334 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1335 gomp_iter_ull_guided_next): New prototypes.
1336 (gomp_new_icv): New prototype.
1337 (struct gomp_thread): Add thread_pool and task fields.
1338 (struct gomp_thread_pool): New type.
1339 (gomp_new_team): New prototype.
1340 (gomp_team_start): Change type of last argument.
1341 (gomp_new_work_share): Removed.
1342 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1343 (gomp_work_share_init_done): New static inline.
1344 (gomp_throttled_spin_count_var, gomp_available_cpus,
1345 gomp_managed_threads): New extern decls.
1346 (gomp_init_task): New prototype.
1347 (gomp_spin_count_var): New extern var decl.
1348 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1349 or no alias support, or if not PIC.
1350 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1351 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1352 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1353 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1354 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1355 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1356 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1357 gomp_test_nest_lock_25): New prototypes.
1358 (omp_lock_symver, strong_alias): Define.
1359 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1361 (gomp_end_task): New.
1362 (struct gomp_task_icv, gomp_global_icv): New.
1363 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1364 (struct gomp_task): New.
1365 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1366 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1368 (gomp_schedule_type): Reorder enum to match
1370 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1372 (gomp_thread_start): Add gomp_team_barrier_wait call.
1373 For non-nested case remove clearing of docked thread thr fields.
1374 Use pool fields instead of global gomp_* variables. Use
1375 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1376 Create tasks for each member thread.
1377 (free_team): Only destroy team barrier, task_lock here and free it.
1378 (gomp_free_thread): Free last_team if non-NULL.
1379 (gomp_team_end): Call gomp_team_barrier_wait instead of
1380 gomp_barrier_wait. For nested case call one extra
1381 gomp_barrier_wait. Move here some destruction from free_team.
1382 Call free_team on pool->last_team if any, rather than freeing
1383 current team. Destroy work_share_list_free_lock ifndef
1385 (gomp_new_icv): New function.
1386 (gomp_threads, gomp_threads_size, gomp_threads_used,
1387 gomp_threads_dock): Removed.
1388 (gomp_thread_destructor): New variable.
1389 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1391 (gomp_team_start): Create new pool if current thread doesn't have
1392 one. Use pool fields instead of global gomp_* variables.
1393 Initialize thread_pool field for new threads. Clear single_count.
1394 Change last argument from ws to team, don't create
1395 new team, set ts.work_share to &team->work_shares[0] and clear
1396 ts.last_work_share. Don't clear ts.work_share_generation.
1397 If number of threads changed, adjust atomically gomp_managed_threads.
1398 Use gomp_init_task instead of gomp_new_task,
1399 set thr->task to the corresponding implicit_task array entry.
1400 Create tasks for each member thread. Initialize ts.level.
1401 (initialize_team): Call pthread_key_create on
1402 gomp_thread_destructor.
1403 (team_destructor): New function.
1404 (new_team): Removed.
1405 (gomp_new_team): New function.
1406 (free_team): Free gomp_work_share blocks chained through next_alloc,
1407 instead of freeing work_shares and destroying work_share_lock.
1408 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1409 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1410 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1411 of gomp_barrier_wait.
1412 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1413 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1414 if gomp_work_share_start returned true. Don't unlock ws->lock.
1415 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1416 of gomp_barrier_wait.
1417 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1418 gomp_work_share_init_done if gomp_work_share_start returned true.
1419 Don't unlock ws->lock.
1420 * work.c: Include stddef.h.
1421 (free_work_share): Use work_share_list_free_lock instead
1422 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1423 Call gomp_fini_work_share and then either free ws if orphaned, or
1424 put it into work_share_list_free list of the current team.
1425 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1427 (gomp_work_share_start, gomp_work_share_end,
1428 gomp_work_share_end_nowait): Rewritten.
1429 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1430 (openmp_version): Set to 200805.
1431 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1432 omp_sched_guided, omp_sched_auto): New parameters.
1433 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1434 omp_set_max_active_levels, omp_get_max_active_levels,
1435 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1436 omp_get_active_level): New interfaces.
1437 * omp_lib.h.in (openmp_version): Set to 200805.
1438 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1439 omp_sched_guided, omp_sched_auto): New parameters.
1440 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1441 omp_set_max_active_levels, omp_get_max_active_levels,
1442 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1443 omp_get_active_level): New externals.
1444 * loop.c: Include limits.h.
1445 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1447 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1448 Likewise. Use gomp_icv.
1449 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1450 ts.static_trip here.
1451 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1452 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1453 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1454 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1455 don't unlock ws->lock, otherwise lock it.
1456 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1457 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1458 (gomp_parallel_loop_start): Call gomp_new_team instead of
1459 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1460 Adjust gomp_team_start caller. Pass 0 as second argument to
1461 gomp_resolve_num_threads.
1462 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1463 If adding ws->chunk_size nthreads + 1 times after end won't
1464 overflow, set ws->mode to 1.
1465 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1466 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1467 GOMP_loop_ull_ordered_static_start,
1468 GOMP_loop_ull_ordered_dynamic_start,
1469 GOMP_loop_ull_ordered_guided_start,
1470 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1471 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1472 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1473 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1474 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1476 * libgomp.map: Export lock routines also @@OMP_2.0.
1477 (GOMP_loop_ordered_dynamic_first,
1478 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1479 GOMP_loop_ordered_static_first): Remove.
1480 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1481 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1482 GOMP_loop_ull_ordered_dynamic_next,
1483 GOMP_loop_ull_ordered_dynamic_start,
1484 GOMP_loop_ull_ordered_guided_next,
1485 GOMP_loop_ull_ordered_guided_start,
1486 GOMP_loop_ull_ordered_runtime_next,
1487 GOMP_loop_ull_ordered_runtime_start,
1488 GOMP_loop_ull_ordered_static_next,
1489 GOMP_loop_ull_ordered_static_start,
1490 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1491 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1492 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1493 (omp_set_schedule, omp_get_schedule,
1494 omp_get_thread_limit, omp_set_max_active_levels,
1495 omp_get_max_active_levels, omp_get_level,
1496 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1497 omp_set_schedule_, omp_set_schedule_8_,
1498 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1499 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1500 omp_get_max_active_levels_, omp_get_level_,
1501 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1502 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1503 New exports @@OMP_3.0.
1504 * omp.h.in (omp_sched_t): New type.
1505 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1506 omp_set_max_active_levels, omp_get_max_active_levels,
1507 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1508 omp_get_active_level): New prototypes.
1509 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1510 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1511 gomp_thread_limit_var, gomp_remaining_threads_count,
1512 gomp_remaining_threads_lock): New variables.
1513 (parse_spincount): New function.
1514 (initialize_env): Call gomp_init_num_threads unconditionally.
1515 Initialize gomp_available_cpus. Call parse_spincount,
1516 initialize gomp_{,throttled_}spin_count_var
1517 depending on presence and value of OMP_WAIT_POLICY and
1518 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1519 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1520 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1521 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1522 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1523 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1524 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1525 (gomp_global_icv): New.
1526 (parse_schedule): Use it. Parse "auto".
1527 (omp_set_num_threads): Use gomp_icv.
1528 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1530 (omp_get_max_threads): Move from parallel.c.
1531 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1532 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1534 (parse_stacksize, parse_wait_policy): New functions.
1535 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1536 both wrappers for compatibility and new locks.
1537 (omp_set_schedule, omp_get_schedule,
1538 omp_get_thread_limit, omp_set_max_active_levels,
1539 omp_get_max_active_levels, omp_get_level,
1540 omp_get_ancestor_thread_num, omp_get_team_size,
1541 omp_get_active_level): New ialias_redirect.
1542 (omp_set_schedule_, omp_set_schedule_8_,
1543 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1544 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1545 omp_get_max_active_levels_, omp_get_level_,
1546 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1547 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1549 * parallel.c: Include limits.h.
1550 (gomp_resolve_num_threads): Add count argument. Rewritten.
1551 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1552 argument to gomp_team_start. Pass 0 as second argument to
1553 gomp_resolve_num_threads.
1554 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1555 if gomp_thread_limit_var != ULONG_MAX.
1556 (omp_in_parallel): Implement using ts.active_level.
1557 (omp_get_max_threads): Move to env.c.
1558 (omp_get_level, omp_get_ancestor_thread_num,
1559 omp_get_team_size, omp_get_active_level): New functions,
1561 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1562 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1563 gomp_iter_dynamic_next instead of the _locked variant and don't take
1564 lock around it, otherwise acquire it before calling
1565 gomp_iter_dynamic_next_locked.
1566 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1567 gomp_iter_dynamic_next instead of the _locked variant and don't take
1569 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1570 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1571 Adjust gomp_team_start caller. Pass count as second argument to
1572 gomp_resolve_num_threads, don't adjust num_threads after the call.
1574 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1575 ws->chunk_size by incr.
1576 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1578 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1580 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1581 (omp_check_defines): Check even the compat defines.
1582 * config/linux/ptrlock.c: New file.
1583 * config/linux/ptrlock.h: New file.
1584 * config/linux/wait.h: New file.
1585 * config/posix/ptrlock.c: New file.
1586 * config/posix/ptrlock.h: New file.
1587 * config/linux/bar.h (gomp_team_barrier_wait,
1588 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1589 (gomp_team_barrier_set_task_pending,
1590 gomp_team_barrier_clear_task_pending,
1591 gomp_team_barrier_set_waiting_for_tasks,
1592 gomp_team_barrier_waiting_for_tasks,
1593 gomp_team_barrier_done): New inlines.
1594 (gomp_barrier_t): Rewritten.
1595 (gomp_barrier_state_t): New typedef.
1596 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1597 gomp_barrier_wait_start): Rewritten.
1598 (gomp_barrier_wait_end): Change second argument to
1599 gomp_barrier_state_t.
1600 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1602 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1604 (gomp_barrier_wait_end): Rewritten.
1605 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1606 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1607 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1608 (gomp_barrier_state_t): New typedef.
1609 (gomp_team_barrier_wait,
1610 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1611 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1612 into the return value. Return gomp_barrier_state_t.
1613 (gomp_team_barrier_set_task_pending,
1614 gomp_team_barrier_clear_task_pending,
1615 gomp_team_barrier_set_waiting_for_tasks,
1616 gomp_team_barrier_waiting_for_tasks,
1617 gomp_team_barrier_done): New inlines.
1618 (gomp_barrier_wait_end): Change second argument to
1619 gomp_barrier_state_t.
1620 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1622 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1623 (gomp_barrier_wait_end): Change second argument to
1624 gomp_barrier_state_t.
1625 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1626 gomp_team_barrier_wake): New functions.
1627 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1629 (gomp_futex_wake, gomp_futex_wait): New variables.
1630 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1631 * config/linux/lock.c: Rewrite to make locks task owned,
1632 for backwards compatibility provide the old entrypoints
1633 if symbol versioning. Include wait.h instead of libgomp.h and
1635 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1636 * config/posix95/lock.c: Rewrite to make locks task owned,
1637 for backwards compatibility provide the old entrypoints
1638 if symbol versioning.
1639 * config/posix/lock.c: Rewrite to make locks task owned,
1640 for backwards compatibility provide the old entrypoints
1641 if symbol versioning.
1642 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1643 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1644 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1645 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1646 (sys_futex0): Return error code.
1647 (futex_wake, futex_wait): If ENOSYS was returned, clear
1648 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1649 (cpu_relax, atomic_write_barrier): New static inlines.
1650 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1651 (futex_wake, futex_wait): If ENOSYS was returned, clear
1652 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1653 (cpu_relax, atomic_write_barrier): New static inlines.
1654 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1655 (sys_futex0): Return error code.
1656 (futex_wake, futex_wait): If ENOSYS was returned, clear
1657 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1658 (cpu_relax, atomic_write_barrier): New static inlines.
1659 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1660 (sys_futex0): Return error code.
1661 (futex_wake, futex_wait): If ENOSYS was returned, clear
1662 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1663 (cpu_relax, atomic_write_barrier): New static inlines.
1664 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1665 (sys_futex0): Return error code.
1666 (futex_wake, futex_wait): If ENOSYS was returned, clear
1667 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1668 (cpu_relax, atomic_write_barrier): New static inlines.
1669 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1670 (sys_futex0): Return error code.
1671 (futex_wake, futex_wait): If ENOSYS was returned, clear
1672 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1673 (cpu_relax, atomic_write_barrier): New static inlines.
1674 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1676 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1677 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1678 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1680 (omp_nest_lock_t): Change owner into void *, add lock field.
1681 * config/posix95/omp-lock.h: Include semaphore.h.
1682 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1683 (omp_lock_t): Use sem_t instead of mutex if semaphores
1685 (omp_nest_lock_t): Likewise. Change owner to void *.
1686 * config/posix/omp-lock.h: Include semaphore.h.
1687 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1688 (omp_lock_t): Use sem_t instead of mutex if semaphores
1690 (omp_nest_lock_t): Likewise. Add owner field.
1692 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1694 * testsuite/libgomp.c/collapse-1.c: New test.
1695 * testsuite/libgomp.c/collapse-2.c: New test.
1696 * testsuite/libgomp.c/collapse-3.c: New test.
1697 * testsuite/libgomp.c/icv-1.c: New test.
1698 * testsuite/libgomp.c/icv-2.c: New test.
1699 * testsuite/libgomp.c/lib-2.c: New test.
1700 * testsuite/libgomp.c/lock-1.c: New test.
1701 * testsuite/libgomp.c/lock-2.c: New test.
1702 * testsuite/libgomp.c/lock-3.c: New test.
1703 * testsuite/libgomp.c/loop-4.c: New test.
1704 * testsuite/libgomp.c/loop-5.c: New test.
1705 * testsuite/libgomp.c/loop-6.c: New test.
1706 * testsuite/libgomp.c/loop-7.c: New test.
1707 * testsuite/libgomp.c/loop-8.c: New test.
1708 * testsuite/libgomp.c/loop-9.c: New test.
1709 * testsuite/libgomp.c/nested-3.c: New test.
1710 * testsuite/libgomp.c/nestedfn-6.c: New test.
1711 * testsuite/libgomp.c/sort-1.c: New test.
1712 * testsuite/libgomp.c/task-1.c: New test.
1713 * testsuite/libgomp.c/task-2.c: New test.
1714 * testsuite/libgomp.c/task-3.c: New test.
1715 * testsuite/libgomp.c/task-4.c: New test.
1716 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1717 to C++ testsuite default compiler options.
1718 * testsuite/libgomp.c++/collapse-1.C: New test.
1719 * testsuite/libgomp.c++/collapse-2.C: New test.
1720 * testsuite/libgomp.c++/ctor-10.C: New test.
1721 * testsuite/libgomp.c++/for-1.C: New test.
1722 * testsuite/libgomp.c++/for-2.C: New test.
1723 * testsuite/libgomp.c++/for-3.C: New test.
1724 * testsuite/libgomp.c++/for-4.C: New test.
1725 * testsuite/libgomp.c++/for-5.C: New test.
1726 * testsuite/libgomp.c++/loop-8.C: New test.
1727 * testsuite/libgomp.c++/loop-9.C: New test.
1728 * testsuite/libgomp.c++/loop-10.C: New test.
1729 * testsuite/libgomp.c++/task-1.C: New test.
1730 * testsuite/libgomp.c++/task-2.C: New test.
1731 * testsuite/libgomp.c++/task-3.C: New test.
1732 * testsuite/libgomp.c++/task-4.C: New test.
1733 * testsuite/libgomp.c++/task-5.C: New test.
1734 * testsuite/libgomp.c++/task-6.C: New test.
1735 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1736 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1737 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1738 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1739 * testsuite/libgomp.fortran/collapse1.f90: New test.
1740 * testsuite/libgomp.fortran/collapse2.f90: New test.
1741 * testsuite/libgomp.fortran/collapse3.f90: New test.
1742 * testsuite/libgomp.fortran/collapse4.f90: New test.
1743 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1744 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1745 * testsuite/libgomp.fortran/lib4.f90: New test.
1746 * testsuite/libgomp.fortran/lock-1.f90: New test.
1747 * testsuite/libgomp.fortran/lock-2.f90: New test.
1748 * testsuite/libgomp.fortran/nested1.f90: New test.
1749 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1750 * testsuite/libgomp.fortran/strassen.f90: New test.
1751 * testsuite/libgomp.fortran/tabs1.f90: New test.
1752 * testsuite/libgomp.fortran/tabs2.f: New test.
1753 * testsuite/libgomp.fortran/task1.f90: New test.
1754 * testsuite/libgomp.fortran/task2.f90: New test.
1755 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1756 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1757 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1758 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1759 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1761 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1764 * testsuite/libgomp.c++/ctor-11.C: New test.
1765 * testsuite/libgomp.c++/ctor-12.C: New test.
1767 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1769 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1771 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1774 * testsuite/libgomp.c/atomic-5.c: New test.
1775 * testsuite/libgomp.c/atomic-6.c: New test.
1776 * testsuite/libgomp.c/autopar-1.c: New test.
1778 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1780 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1781 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1782 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1783 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1784 * configure: Regenerate.
1785 * Makefile.in, testsuite/Makefile.in: Likewise.
1787 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1790 * aclocal.m4: Regenerate.
1791 * configure: Regenerate.
1793 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1796 * testsuite/libgomp.c/atomic-4.c: New test.
1799 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1800 (gomp_iter_guided_next): Likewise.
1801 * testsuite/libgomp.c/pr35625.c: New test.
1803 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1805 * aclocal.m4: Regenerate.
1806 * configure: Likewise.
1807 * Makefile.in: Likewise.
1808 * testsuite/Makefile.in: Likewise.
1810 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1813 * testsuite/libgomp.c++/pr35185.C: New test.
1815 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1818 * testsuite/libgomp.c/pr35549.c: New test.
1820 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1822 * testsuite/libgomp.c/atomic-3.c: New test.
1824 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1827 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1830 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1833 * configure.ac: Add ACX_HEADER_STRING.
1834 * env.c: Include strings.h.
1835 * aclocal.m4: Regenerate.
1836 * config.h.in: Regenerate.
1837 * configure: Regenerate.
1838 * Makefile.in: Regenerate.
1839 * testsuite/Makefile.in: Regenerate.
1841 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1844 * testsuite/libgomp.c/pr35196.c: New test.
1847 * testsuite/libgomp.fortran/pr35130.f90: New test.
1848 * testsuite/libgomp.c/pr35130.c: New test.
1850 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1853 * testsuite/libgomp.c/pr33880.c: New test.
1854 * testsuite/libgomp.fortran/pr33880.f90: New test.
1856 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1858 * configure: Regenerate.
1860 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1862 * configure.ac: Move futex checking into ../config/futex.m4.
1863 * configure: Rebuilt.
1864 * aclocal.m4: Rebuilt.
1865 * Makefile.in: Rebuilt.
1867 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1868 2007-10-15 ../config/tls.m4 change.
1870 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1873 * testsuite/libgomp.c/pr34513.c: New test.
1874 * testsuite/libgomp.c++/pr34513.C: New test.
1876 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1879 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1881 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1883 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1885 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1887 * testsuite/libgomp.c/private-1.c: New test.
1889 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1890 Paolo Bonzini <bonzini@gnu.org>
1892 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1893 instead of 'VPATH ='.
1894 * Makefile.in: Regenerate.
1896 2007-11-23 Matthias Klose <doko@ubuntu.com>
1898 * configure.ac: Adjust makeinfo version check.
1899 * configure: Regenerate.
1901 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1904 * testsuite/libgomp.fortran/pr34020.f90: New test.
1906 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1909 * testsuite/libgomp.c++/atomic-1.C: New test.
1911 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1914 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1915 Make x and y integers rather than (implicit) reals. Add private (j)
1916 clause to the last omp parallel.
1918 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1920 * configure: Regenerate following changes to ../config/tls.m4.
1922 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1924 * testsuite/libgomp.fortran/stack.f90: New test.
1926 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1928 * config/mingw32/proc.c: New file.
1930 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1932 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1933 (main): Use __get_cpuid to get i386 target fetaures.
1934 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1935 (main): Use __get_cpuid to get x86_64 target fetaures.
1937 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1940 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1941 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1943 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1946 * testsuite/libgomp.fortran/pr32550.f90: New test.
1947 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1949 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1951 * aclocal.m4: Regenerated.
1953 2007-07-05 Tobias Burnus <burnus@net-b.de>
1956 * testsuite/libgomp.fortran/pr32359.f90: New.
1958 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1961 * sections.c (GOMP_parallel_sections_start): Only decrease
1962 number of threads to COUNT if dyn_var is true.
1963 * testsuite/libgomp.c/pr32468.c: New test.
1965 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1968 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1970 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1973 * testsuite/libgomp.c/pr32362-1.c: New test.
1974 * testsuite/libgomp.c/pr32362-2.c: New test.
1975 * testsuite/libgomp.c/pr32362-3.c: New test.
1977 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1979 * team.c (gomp_team_start): Fix setting up thread_attr
1982 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1984 * configure: Regenerate.
1986 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1988 * Makefile.in: Regenerate.
1989 * configure: Regenerate.
1990 * aclocal.m4: Regenerate.
1991 * testsuite/Makefile.in: Regenerate.
1993 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1995 * config/linux/proc.c: New file.
1998 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2000 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2002 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2004 2007-04-16 Matthias Klose <doko@debian.org>
2006 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2007 flags if not building with -m64.
2008 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2009 flag for i?86-*-* targets, if current target matches -m64.
2011 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2013 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2014 * Makefile.in: Regenerate.
2016 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2019 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2021 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2023 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2025 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2027 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2028 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2029 (parse_affinity): New function.
2030 (initialize_env): Call it and gomp_init_affinity.
2031 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2032 create new pthread_attr_t and call gomp_init_thread_affinity
2033 on it for each thread before passing the attribute to pthread_create.
2034 * config/linux/affinity.c: New file.
2035 * config/posix/affinity.c: New file.
2036 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2037 * configure: Rebuilt.
2038 * config.h.in: Rebuilt.
2039 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2040 * Makefile.in: Rebuilt.
2042 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2044 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2046 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2047 and use it if found.
2049 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2051 * testsuite/config/default.exp: New file.
2052 * testsuite/lib/libgomp.exp: New file.
2053 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2054 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2055 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2056 (libgomp_load): Remove.
2057 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2058 always_ld_library_path, not ld_library_path. Set additional_flags
2059 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2060 (target_compile): Do not call libgomp_init. Append lang_library_path
2061 and lang_link_flags to options.
2062 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2063 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2065 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2066 always_ld_library_path. Set LD_LIBRARY_PATH here.
2067 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2068 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2069 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2071 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2072 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2073 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2074 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2075 * testsuite/libgomp.c/atomic-10.c: Ditto.
2077 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2079 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2080 dg-final cleanup-modules line.
2081 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2082 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2083 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2084 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2085 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2086 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2087 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2089 2007-03-18 Andreas Schwab <schwab@suse.de>
2091 * acinclude.m4: Adjust regular expression for ld version
2093 * configure: Regenerate.
2095 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2097 * Makefile.am: Add install-pdf target as copied from
2098 automake v1.10 rules.
2099 * Makefile.in: Regenerate
2101 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2104 * configure: Regenerate.
2107 * testsuite/libgomp.c++/pr30703.C: New test.
2109 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2112 2006-07-05 Eric Christopher <echristo@apple.com>
2113 * configure.ac: Depend addition of -pthread on host OS.
2114 * configure: Regenerate.
2116 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2118 * libgomp.texi: Fix spacing after abbreviations.
2120 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2123 * configure.ac: Add check for makeinfo
2124 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2125 if an appropiate version of makeinfo is found.
2126 * aclocal.m4: Regenerated.
2127 * configure: Regenerated.
2128 * Makefile.in: Regenerated.
2129 * testsuite/Makefile.in: Regenerated.
2131 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2134 * libgomp.texi: More about implementation-dependent settings.
2136 2007-01-26 Tobias Burnus <burnus@net-b.de>
2138 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2140 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2143 * testsuite/libgomp.c/pr30494.c: New test.
2145 2007-01-15 Tom Tromey <tromey@redhat.com>
2147 * configure: Rebuilt.
2148 * configure.ac: Fixed comment.
2150 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2152 * libgomp.texi: Document implementation specific default values of
2153 environment variables.
2155 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2158 * libgomp.texi: New file.
2159 * configure.ac: Add --enable-generated-files-in-srcdir option.
2160 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2162 * Makefile.in: Regenerated.
2163 * config.h.in: Regenerated.
2164 * testsuite/Makefile.in: Regenerated.
2167 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2170 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2172 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2174 * configure: Regenerate.
2176 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2179 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2180 start if there shouldn't be any loop iterations.
2181 (gomp_loop_ordered_static_start): Remove start == end test.
2182 * testsuite/libgomp.c/pr29947-1.c: New test.
2183 * testsuite/libgomp.c/pr29947-2.c: New test.
2185 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2187 * configure.tgt: Force initial-exec TLS model on Linux only.
2189 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2191 * configure: Regenerated.
2193 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2195 * env.c (parse_schedule): Reject out of range values.
2196 (parse_unsigned_long): Reject out of range, negative or zero values.
2198 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2201 * testsuite/libgomp.fortran/pr29629.f90: New test.
2203 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2206 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2207 * config/posix95: New directory.
2208 * config/posix95/omp-lock.h: New file.
2209 * config/posix95/lock.c: Likewise.
2211 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2213 * aclocal.m4: Regenerate.
2214 * configure: Regenerate.
2216 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2218 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2221 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2223 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2225 * configure: Regenerate.
2226 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2228 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2232 * testsuite/libgomp.c/nestedfn-4.c: New test.
2233 * testsuite/libgomp.c/nestedfn-5.c: New test.
2234 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2237 * testsuite/libgomp.fortran/condinc1.f: New test.
2238 * testsuite/libgomp.fortran/condinc2.f: New test.
2239 * testsuite/libgomp.fortran/condinc3.f90: New test.
2240 * testsuite/libgomp.fortran/condinc4.f90: New test.
2241 * testsuite/libgomp.fortran/condinc1.inc: New file.
2243 2006-09-18 Tom Tromey <tromey@redhat.com>
2245 * configure: Rebuilt.
2247 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2250 PR preprocessor/14634
2251 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2253 * configure: Regenerate.
2255 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2257 * testsuite/libgomp.fortran/reduction3.f90: Change
2258 -2147483648 to -huge(i)-1 to avoid overflow.
2259 * testsuite/libgomp.fortran/reduction4.f90: Change
2260 Z'ffffffff' to not(0) to avoid overflow.
2262 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2265 * Makefile.am (libsubincludedir): New.
2266 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2267 * Makefile.in: Regenerate.
2269 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2272 * env.c: Include ctype.h.
2273 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2274 leading and/or trailing whitespace and compare strings case
2277 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2280 * testsuite/libgomp.fortran/pr28390.f: New test.
2282 2006-07-05 Eric Christopher <echristo@apple.com>
2284 * configure.ac: Depend addition of -pthread on host OS.
2285 * configure: Regenerate.
2287 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2289 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2290 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2293 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2297 * configure.ac: If neither --enable-linux-futex nor
2298 --disable-linux-futex is passed, determine the default by checking
2299 for compiling and/or running against NPTL. With --enable-linux-futex,
2300 check if SYS_gettid and SYS_futex are defined.
2301 * configure: Rebuilt.
2303 2006-06-14 Richard Henderson <rth@redhat.com>
2306 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2307 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2309 2006-06-09 Richard Henderson <rth@redhat.com>
2311 * env.c (gomp_nthreads_var): Change to unsigned long.
2312 (gomp_run_sched_chunk): Likewise.
2313 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2314 (initialize_env): Initialize gomp_thread_attr.
2315 * libgomp.h (gomp_nthreads_var): Update decl.
2316 (gomp_run_sched_chunk): Likewise.
2317 (gomp_thread_attr): Declare.
2318 * team.c (gomp_thread_attr): Export.
2319 (initialize_team): Don't initialize it.
2321 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2324 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2325 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2327 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2329 * config/mingw32/time.c: New file.
2330 * configure.tgt: Use it.
2332 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2334 * Makefile.am: Add install-html target. Add install-html to .PHONY
2335 * Makefile.in: Regenerate.
2337 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2340 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2341 * testsuite/libgomp.c/critical-1.c: Likewise.
2342 * testsuite/libgomp.c/loop-1.c: Likewise.
2343 * testsuite/libgomp.c/loop-2.c: Likewise.
2344 * testsuite/libgomp.c/single-1.c: Likewise.
2345 * testsuite/libgomp.c/ordered-1.c: Likewise.
2346 * testsuite/libgomp.c/ordered-2.c: Likewise.
2348 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2351 * libgomp.fortran/pr27416-1.f90: New test.
2353 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2356 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2357 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2359 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2362 * testsuite/libgomp.c/pr26943-1.c: New test.
2363 * testsuite/libgomp.c/pr26943-2.c: New test.
2364 * testsuite/libgomp.c/pr26943-3.c: New test.
2365 * testsuite/libgomp.c/pr26943-4.c: New test.
2366 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2367 * testsuite/libgomp.c++/pr26943.C: New test.
2369 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2372 * testsuite/libgomp.c++/pr27337.C: New test.
2374 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2377 * testsuite/libgomp.c/pr26171.c: New test.
2379 2006-04-25 Richard Henderson <rth@redhat.com>
2382 * configure.ac: Use GCC_CHECK_TLS.
2383 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2384 * Makefile.in, aclocal.m4, configure: Regenerate.
2386 2006-04-10 Matthias Klose <doko@debian.org>
2388 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2389 directory names containing underscores.
2391 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2394 * testsuite/libgomp.c++/pr26691.C: New test.
2396 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2398 * testsuite/libgomp.fortran/retval2.f90: New test.
2400 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2402 * testsuite/libgomp.c++: New directory.
2404 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2406 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2407 * config/posix/sem.c: Implement the above.
2409 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2411 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2412 define HAVE_BROKEN_POSIX_SEMAPHORES.
2413 * configure: Rebuilt.
2414 * config.h.in: Rebuilt.
2416 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2419 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2420 for the other pthread check.
2421 * configure: Regenerate.
2422 * config.h.in: Regenerate.
2424 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2428 * Makefile.am (fincludedir): New variable.
2429 (nodist_include_HEADERS): Remove Fortran files.
2430 (nodist_finclude_HEADERS): New variable.
2431 * Makefile.in: Regenerated.
2433 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2435 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2436 Remove tests for returning assumed character length arrays.
2438 2006-02-12 Roger Sayle <roger@eyesopen.com>
2439 John David Anglin <dave@hiauly1.hia.nrc.ca>
2442 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2444 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2446 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2448 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2450 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2451 part of LD_LIBRARY_PATH manually.
2453 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2456 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2459 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2462 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2463 * configure.ac (PERL): Don't set.
2464 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2465 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2466 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2467 * omp.h.in: Wrap the new configure substitutions with @ characters.
2468 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2469 * aclocal.m4, configure, Makefile.in: Regenerate.
2470 * mkomp_h.pl: Delete.
2472 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2475 * configure.ac: Use GCC_HEADER_STDINT.
2476 * libgomp.h: Include gstdint.h.
2477 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2478 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2480 2006-01-24 Richard Henderson <rth@redhat.com>
2483 * configure.ac: Add AM_MAINTAINER_MODE.
2484 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2486 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2488 * Makefile.in: Regenerate.
2489 * testsuite/Makefile.in: Regenerate.
2490 * aclocal.m4: Regenerate.
2492 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2494 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2496 * configure.ac: Add check for loadavg.h.
2497 (link_gomp): Adjust comment.
2498 * configure: Regenerate.
2499 * config.h.in: Regenerate.
2501 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2504 * configure.ac: Remove check for alloca.h.
2505 * configure: Regenerate.
2506 * config.h.in: Regenerate.
2507 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2508 * team.c: Remove use of alloca.h.
2509 Call gomp_alloca instead of alloca.
2511 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2514 * team.c: Add include of alloca.h.
2515 * configure.ac: Add check for alloca.h.
2516 * configure: Regenerate.
2517 * config.h.in: Regenerate.
2519 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2522 * testsuite/libgomp.fortran/pr25219.f90: New test.
2524 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2526 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2527 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2528 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2529 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2530 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2531 testsuite/libgomp.fortran/threadprivate1.f90,
2532 testsuite/libgomp.fortran/threadprivate2.f90,
2533 testsuite/libgomp.fortran/threadprivate3.f90,
2534 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2535 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2536 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2537 effective-target to TLS runtime.
2539 * testsuite/libgomp.fortran/pr25162.f: Require
2540 effective-target TLS runtime.
2542 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2544 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2545 * testsuite/libgomp.c/nestedfn-3.c: New test.
2547 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2550 * testsuite/libgomp.fortran/pr25162.f: New test.
2552 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2554 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2555 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2557 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2559 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2560 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2561 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2562 single.c, team.c, work.c, config/linux/alpha/futex.h,
2563 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2564 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2565 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2566 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2567 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2568 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2569 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2572 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2574 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2575 to nodist_noinst_HEADERS.
2576 * Makefile.in: Rebuilt.
2578 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2579 add integer count field.
2580 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2581 omp_nest_lock_t type change.
2582 (omp_init_nest_lock): Likewise. Initialize count to 0.
2583 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2585 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2587 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2588 Increment count if successful and return the new nesting level.
2589 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2590 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2591 * testsuite/libgomp.c/lib-1.c: New test.
2592 * testsuite/libgomp.fortran/lib1.f90: New test.
2593 * testsuite/libgomp.fortran/lib2.f: New test.
2594 * testsuite/libgomp.fortran/lib3.f: New test.
2596 2005-11-17 Richard Henderson <rth@redhat.com>
2599 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2600 * configure.ac (link_gomp): New. Substitute it.
2601 (AC_CONFIG_FILES): Add libgomp.spec.
2602 * libgomp.spec.in: New file.
2603 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2604 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2606 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2608 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2609 reduction(-:var) behaving the same as reduction(+:var).
2610 * testsuite/libgomp.c/reduction-4.c: New test.
2612 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2614 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2615 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2616 testsuite/libgomp.c/copyin-3.c,
2617 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2618 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2619 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2620 testsuite/libgomp.c++/pr24455.C,
2621 testsuite/libgomp.fortran/threadprivate1.f90,
2622 testsuite/libgomp.fortran/threadprivate2.f90,
2623 testsuite/libgomp.fortran/threadprivate3.f90,
2624 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2625 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2626 testsuite/libgomp.fortran/omp_parse3.f90: Require
2627 effective-target TLS.
2629 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2633 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2636 * team.c (initialize_team): Pass NULL rather than free as
2637 pthread_key_create destructor. Initialize thread specific data
2638 pointer in initial thread to a static local variable rather than
2641 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2643 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2644 its location to ld_library_path.
2646 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2648 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2650 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2652 * testsuite/libgomp.c: Rename from libgomp.dg.
2654 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2656 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2657 threadprivate variable 'i'.
2659 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2661 * config/linux/s390/futex.h: New file.
2662 * configure.tgt: Use it.
2664 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2665 before the parallel.
2667 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2670 * testsuite/libgomp.c++/master-1.C: New test.
2672 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2674 * testsuite/libgomp.dg/copyin-3.c: New test.
2676 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2678 * testsuite/libgomp.fortran/retval1.f90: New test.
2679 * testsuite/libgomp.fortran/vla7.f90: New test.
2681 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2683 * testsuite/libgomp.fortran/vla2.f90: New test.
2684 * testsuite/libgomp.fortran/vla3.f90: New test.
2685 * testsuite/libgomp.fortran/vla4.f90: New test.
2686 * testsuite/libgomp.fortran/vla5.f90: New test.
2687 * testsuite/libgomp.fortran/vla6.f90: New test.
2689 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2691 * config/linux/sparc/futex.h: New file.
2692 * configure.tgt: Use it.
2693 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2695 * critical.c: Include stdlib.h.
2696 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2697 ignoring return value.
2698 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2699 LIBGOMP_CHECK_SYNC_BUILTINS check.
2700 * configure: Rebuilt.
2702 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2704 * testsuite/libgomp.fortran/vla1.f90: New test.
2706 2005-10-31 Richard Henderson <rth@redhat.com>
2708 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2709 setting 's' in different threads.
2711 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2713 * libgomp.h (attribute_hidden, ialias): Define.
2714 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2715 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2716 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2717 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2718 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2719 omp_test_lock, omp_test_nest_lock): Likewise.
2720 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2721 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2722 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2723 omp_test_lock, omp_test_nest_lock): Likewise.
2724 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2725 omp_get_dynamic, omp_get_nested): Likewise.
2726 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2727 omp_get_thread_num, omp_in_parallel): Likewise.
2728 * fortran.c (ialias_redirect): Define.
2729 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2730 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2731 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2732 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2733 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2734 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2735 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2736 omp_get_wtime): Add ialias_redirect.
2738 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2740 * fortran.c: Include stdlib.h.
2742 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2744 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2745 * Makefile.in: Regenerated.
2747 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2749 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2750 * libgomp_f.h.in (omp_check_defines): New function.
2751 * env.c: Include libgomp_f.h.
2752 (initialize_env): Call omp_check_defines.
2754 * testsuite/libgomp.dg/copyin-2.c: New test.
2755 * testsuite/libgomp.c++/copyin-2.C: New test.
2756 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2758 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2759 * testsuite/libgomp.fortran/sharing2.f90: New test.
2761 * testsuite/libgomp.dg/copyin-1.c: New test.
2762 * testsuite/libgomp.c++/copyin-1.C: New test.
2764 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2766 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2768 * testsuite/libgomp.fortran/workshare1.f90: New test.
2770 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2772 * libgomp.fortran/sharing1.f90: New test.
2774 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2777 * testsuite/libgomp.c++/loop-7.C: New test.
2779 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2781 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2782 * testsuite/libgomp.fortran/reduction6.f90: New test.
2783 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2785 2005-10-23 Richard Henderson <rth@redhat.com>
2787 * testsuite/libgomp.c++/ctor-1.C: New.
2788 * testsuite/libgomp.c++/ctor-2.C: New.
2789 * testsuite/libgomp.c++/ctor-3.C: New.
2790 * testsuite/libgomp.c++/ctor-4.C: New.
2791 * testsuite/libgomp.c++/ctor-5.C: New.
2792 * testsuite/libgomp.c++/ctor-6.C: New.
2793 * testsuite/libgomp.c++/ctor-7.C: New.
2794 * testsuite/libgomp.c++/ctor-8.C: New.
2795 * testsuite/libgomp.c++/ctor-9.C: New.
2797 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2800 * testsuite/libgomp.c++/pr24455-1.C: New test.
2801 * testsuite/libgomp.c++/pr24455.C: New test.
2802 * testsuite/libgomp.dg/pr24455-1.c: New test.
2803 * testsuite/libgomp.dg/pr24455.c: New test.
2805 2005-10-20 Richard Henderson <rth@redhat.com>
2807 * testsuite/libgomp.c++/loop-6.C: New.
2808 * testsuite/libgomp.dg/loop-3.c: New.
2810 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2812 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2814 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2817 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2819 * testsuite/libgomp.fortran/jacobi.f: New test.
2821 2005-10-19 Richard Henderson <rth@redhat.com>
2823 * configure.tgt (i?86-linux): Default to with_arch instead of
2824 CFLAGS. Add -mtune to match target_cpu.
2825 (x86_64-linux): Tune to i686.
2827 * fortran.c (omp_test_nest_lock_): Fix typo.
2829 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2831 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2832 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2833 * testsuite/libgomp.dg/ordered-3.c: New test.
2835 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2836 Remove volatile keyword.
2838 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2839 in COMMON block to avoid warnings on 64-bit targets.
2841 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2843 * testsuite/libgomp.dg/shared-3.c: New test.
2845 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2847 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2848 * testsuite/libgomp.fortran/reduction5.f90: New test.
2850 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2852 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2854 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2855 flush loop now that __sync_synchronize has proper memory barrier.
2856 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2857 Add -ffixed-form to dg-options.
2859 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2861 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2862 from subdirectories.
2863 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2864 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2865 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2866 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2867 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2868 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2869 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2870 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2871 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2872 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2873 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2874 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2875 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2876 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2877 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2878 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2879 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2880 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2881 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2882 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2883 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2884 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2885 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2886 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2887 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2889 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2891 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2892 lang_library_path exists. Use find instead of glob to gather tests.
2893 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2895 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2897 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2898 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2899 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2900 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2901 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2902 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2903 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2904 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2905 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2906 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2907 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2908 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2909 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2911 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2913 * testsuite/libgomp.dg/vla-1.c: New test.
2915 * testsuite/libgomp.fortran/reference2.f90: New test.
2917 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2918 declaration of omp_get_thread_num.
2919 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2922 * testsuite/libgomp.fortran/reduction1.f90: New test.
2923 * testsuite/libgomp.fortran/reduction2.f90: New test.
2924 * testsuite/libgomp.fortran/reduction3.f90: New test.
2925 * testsuite/libgomp.fortran/reduction4.f90: New test.
2927 2005-10-13 Richard Henderson <rth@redhat.com>
2929 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2930 * Makefile.in: Regenerate.
2931 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2932 * libgomp.h: Include bar.h.
2933 (struct gomp_barrier): Remove.
2934 (struct gomp_team): Add barrier. Replace master_barrier with
2935 master_release. Replace threads with ordered_release.
2936 (struct gomp_thread): Replace barrier with release.
2937 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2938 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2939 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2940 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2941 (GOMP_single_copy_end): Likewise.
2942 * team.c (gomp_threads_dock): New.
2943 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2944 (gomp_thread_start): Use gomp_barrier_wait.
2945 (new_team, free_team): Update for gomp_team changes.
2946 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2947 (gomp_team_end): Use gomp_barrier_wait.
2948 (initialize_team): Update for gomp_thread changes.
2949 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2950 (gomp_work_share_end_nowait): Use atomic ops when available.
2951 * config/linux/bar.c, config/linux/bar.h: New files.
2952 * config/posix/bar.c, config/posix/bar.h: New files.
2954 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2956 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2957 * testsuite/libgomp.dg/single-2.c: New test.
2959 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2960 lang_link_flags): Unset, so that they aren't inherited from previously
2963 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2965 2005-10-12 Richard Henderson <rth@redhat.com>
2967 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2968 (libgomp_init): Use lang_test_file, lang_library_path, and
2969 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2971 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2972 (lang_test_file, lang_link_flags): New.
2973 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2975 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2976 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2977 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2978 testsuite/libgomp.c++/parallel-1.C,
2979 testsuite/libgomp.c++/reduction-1.C,
2980 testsuite/libgomp.c++/reduction-2.C,
2981 testsuite/libgomp.c++/reduction-3.C,
2982 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2983 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2984 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2985 New files, largely cribbed from the C testsuite.
2987 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2989 * testsuite/libgomp.fortran/character1.f90: New test.
2990 * testsuite/libgomp.fortran/character2.f90: New test.
2992 * testsuite/libgomp.dg/nested-1.c: New test.
2993 * testsuite/libgomp.dg/nested-2.c: New test.
2994 * testsuite/libgomp.fortran/do1.f90: New test.
2995 * testsuite/libgomp.fortran/do2.f90: New test.
2997 * testsuite/libgomp.fortran/reference1.f90: New test.
2999 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3001 * testsuite/libgomp.dg/reduction-1.c: New test.
3002 * testsuite/libgomp.dg/reduction-2.c: New test.
3003 * testsuite/libgomp.dg/reduction-3.c: New test.
3005 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3007 * testsuite/libgomp.dg/atomic-1.c: New test.
3008 * testsuite/libgomp.dg/atomic-2.c: New test.
3010 2005-10-09 Richard Henderson <rth@redhat.com>
3012 * critical.c (atomic_lock): New.
3013 (initialize_critical): Initialize it.
3014 (GOMP_atomic_start, GOMP_atomic_end): New.
3015 * libgomp.map: Export them.
3016 * libgomp_g.h: Declare them.
3018 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3020 2005-10-02 Richard Henderson <rth@redhat.com>
3022 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3023 to XCFLAGS instead of CFLAGS.
3025 2005-09-30 Richard Henderson <rth@redhat.com>
3027 * configure.ac: Determine whether -pthread or -lpthread is needed.
3028 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3029 * Makefine.in, configure: Rebuild.
3031 2005-09-28 Richard Henderson <rth@redhat.com>
3033 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3034 * testsuite/libgomp.dg/omp-single-3.c: New test.
3036 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3038 * testsuite/libgomp.dg/omp-single-2.c: New test.
3039 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3041 2005-09-27 Richard Henderson <rth@redhat.com>
3043 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3044 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3046 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3048 * testsuite/libgomp.dg/omp-loop03.c: New test.
3050 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3052 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3054 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3056 * testsuite/libgomp.dg/omp-single-1.c: New test.
3057 * testsuite/libgomp.dg/shared-1.c: Return 0.
3058 Add prototype for abort.
3059 * testsuite/libgomp.dg/shared-2.c: Likewise.
3061 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3063 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3066 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3068 * testsuite/libgomp.dg/shared-1.c: New test.
3069 * testsuite/libgomp.dg/shared-2.c: New test.
3071 2005-09-24 Richard Henderson <rth@redhat.com>
3073 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3075 2005-09-24 Richard Henderson <rth@redhat.com>
3077 * iter.c (gomp_iter_static_next): Round up when computing number
3078 of iterations. Don't bother distributing a remainder equally.
3080 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3081 Don't call srand. Zero b before testing.
3084 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3086 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3087 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3089 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3091 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3092 without !$omp end do, followed immediately by subroutine end.
3094 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3096 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3098 2005-09-22 Richard Henderson <rth@redhat.com>
3100 * critical.c (GOMP_critical_name_start): Change argument to void**.
3101 Reuse the pointer space if the mutex fits.
3102 (GOMP_critical_name_end): Likewise.
3103 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3104 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3105 (GOMP_critical_name_end): Likewise.
3106 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3107 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3109 2005-09-20 Richard Henderson <rth@redhat.com>
3111 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3112 (create_lock_lock): New.
3113 (initialize_critical): Initialize it.
3114 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3115 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3117 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3119 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3121 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3123 * testsuite/libgomp.dg/omp-loop01.c: New test.
3124 * testsuite/libgomp.dg/omp-loop02.c: New test.
3126 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3128 * configure.ac (AC_PROG_FC): Add.
3129 (USE_FORTRAN): New automake conditional.
3130 * configure: Rebuilt.
3131 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3132 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3133 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3134 Add rules to build them.
3135 * Makefile.in: Rebuilt.
3136 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3138 * libgomp.map: Add Fortran wrappers.
3139 * libgomp_f.h.in: New file.
3140 * omp_lib.h.in: New file.
3141 * omp_lib.f90.in: New file.
3142 * fortran.c: New file.
3143 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3144 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3145 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3146 libgfortran has been built.
3147 * testsuite/libgomp.fortran/fortran.exp: New file.
3148 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3149 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3150 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3151 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3152 * testsuite/libgomp.fortran/omp_hello.f: New test.
3153 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3154 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3155 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3156 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3157 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3158 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3159 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3160 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3162 2005-08-30 Richard Henderson <rth@redhat.com>
3164 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3165 function for when aliases are not usable.
3166 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3167 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3168 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3169 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3170 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3171 GOMP_loop_ordered_guided_next): Likewise.
3172 * ordered.c (GOMP_ordered_start): Likewise.
3174 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3176 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3177 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3178 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3179 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3180 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3181 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3182 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3183 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3184 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3186 2005-07-07 Eric Christopher <echristo@redhat.com>
3187 Diego Novillo <dnovillo@redhat.com>
3189 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3190 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3192 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3193 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3194 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3195 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3196 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3197 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3198 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3200 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3202 * TOPLEVEL.patch: Remove.
3204 2005-05-16 Richard Henderson <rth@redhat.com>
3206 * configure.ac: Test for clock_gettime.
3207 * config.h.in, configure: Rebuild.
3208 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3209 (omp_get_wtime): Use clock_gettime if available.
3210 (omp_get_wtick): Use clock_getres if available.
3212 2005-05-11 Richard Henderson <rth@redhat.com>
3214 * config/linux/ia64/futex.h: New file.
3215 * configure.tgt: Use it.
3217 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3219 2005-05-07 Richard Henderson <rth@redhat.com>
3221 * config/linux/powerpc/futex.h: New file.
3222 * configure.tgt: Use it.
3224 * config/linux/i486/futex.h: Merge ...
3225 * config/linux/x86_64/futex.h: ... into ...
3226 * config/linux/x86/futex.h: ... here.
3227 * configure.tgt: Update to match.
3229 2005-05-06 Richard Henderson <rth@redhat.com>
3231 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3232 * config/linux/i486/futex.h: Likewise.
3233 * config/linux/x86_64/futex.h: Likewise.
3235 * config/linux/lock.c: New file.
3236 * config/linux/omp-lock.h: New file.
3238 * critical.c, env.h: Don't include omp.h
3239 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3240 * config/posix/time.c: Likewise.
3241 * config/posix/omp-lock.h: New file.
3242 * libgomp.h: Include omp-lock.h and omp.h.
3243 * Makefile.am (nodist_include_HEADERS): New.
3245 * configure.ac (PERL): New.
3246 * mkomp_h.pl: New file.
3247 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3249 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3251 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3252 build directory. Re-add -march=i486 hack.
3254 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3255 (libgomp_link_flags): Remove.
3256 (libgomp_initialized): Remove.
3257 (libgomp_init): Don't protect from reinitialization. Copy code
3258 from libstdc++ for getting the multilib set correctly.
3260 2005-05-05 Richard Henderson <rth@redhat.com>
3262 * config/linux/alpha/futex.h: New file.
3263 * configure.tgt (alpha*-*-linux*): Use it.
3265 * config/posix/mutex.c: New file.
3266 * config/posix/sem.c: Use libgomp.h.
3268 * configure.tgt (x86_64-linux): Also test CC for -m32.
3269 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3271 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3274 * Makefile.am (SUBDIRS): New.
3275 (libgomp_la_LDFLAGS): Add -lpthread.
3276 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3277 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3279 * libgomp_g.h: New file.
3280 * libgomp.h: Split out all public declarations to libgomp_g.h.
3281 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3282 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3283 * config/linux/sem.h: Likewise.
3284 * config/posix/sem.h: Likewise.
3286 * Makefile.am (AM_LDFLAGS): New.
3287 (libgomp_version_script): Split out from ...
3288 (libgomp_la_LDFLAGS): ... here.
3289 (libgomp_version_info): New.
3290 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3291 (LIBGOMP_ENABLE): New.
3292 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3293 (LIBGOMP_ENABLE_SYMVERS): New.
3294 * configure.ac (AC_INIT): Version 1.0.
3295 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3296 (enable-linux-futex): Likewise. Rename from enable-futex.
3297 (libtool_VERSION): New.
3298 (LIBGOMP_ENABLE_SYMVERS): Use it.
3299 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3300 * Makefile.in, aclocal.m4, configure: Rebuild.
3302 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3303 (gomp_mutex_unlock_slow): Fix typo.
3304 * config/linux/sem.c: Similarly.
3305 (gomp_sem_post_slow): Fix typo.
3306 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3307 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3308 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3310 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3311 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3312 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3313 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3314 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3315 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3316 LDFLAGS. Pull enable_futex check to top-level.
3317 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3318 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3320 First attempt at real configury.
3321 * Makefile, config.h: Remove file.
3322 * Makefile.am, Makefile.in: New file.
3323 * acinclude.m4 aclocal.m4: New file.
3324 * configure.ac, configure.tgt, configure: New file.
3326 * config/posix/lock.c: Rename from sys-lock.c.
3327 * config/posix/mutex.h: Rename from sys-mutex.h.
3328 * config/posix/sem.c: Rename from sys-sem.c.
3329 * config/posix/sem.h: Rename from sys-sem.h.
3330 * config/posix/proc.c: Rename from sys-proc.c.
3331 * config/posix/time.c: Rename from sys-proc.c.
3333 * config/linux/mutex.c: New file.
3334 * config/linux/mutex.h: New file.
3335 * config/linux/sem.c: New file.
3336 * config/linux/sem.h: New file.
3337 * config/linux/i486/futex.h: New file.
3338 * config/linux/x86_64/futex.h: New file.
3340 2005-05-04 Richard Henderson <rth@redhat.com>
3342 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3343 * libgomp.h: Declare them.
3344 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3345 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3347 2005-05-04 Richard Henderson <rth@redhat.com>
3349 * libgomp-1 code drop
3351 2005-05-04 Richard Henderson <rth@redhat.com>
3353 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3354 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3355 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3356 (gomp_iter_static_next): Update.
3357 (gomp_ordered_static_next): Update.
3358 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3359 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3360 totally empty range.
3361 (gomp_loop_ordered_static_next): Refine test for calling
3362 gomp_ordered_static_next.
3363 * testsuite/ordered-1.c: Add case for more threads than iterations.
3365 * iter.c (gomp_iter_runtime_next_locked): Remove.
3366 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3367 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3368 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3369 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3370 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3371 gomp_loop_ordered_guided_next): Downcase name, make static, add
3372 an external alias with the old name.
3373 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3374 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3375 switch and call one of the above static functions.
3376 * libgomp.h: Update.
3378 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3379 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3380 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3381 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3382 GOMP_loop_ordered_guided_start): Update to match.
3383 * sections.c (GOMP_sections_start): Likewise.
3384 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3386 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3387 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3388 Use bounds check instead of modulus.
3389 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3390 (gomp_ordered_last): Don't sync with ordered_owner here.
3391 (gomp_ordered_next): Likewise.
3392 (gomp_ordered_static_loop_next): Likewise.
3393 * loop.c, libgomp.h: Update to match.
3395 * libgomp.h (GOMP_barrier): Declare.
3397 * testsuite/barrier-1.c: New file.
3398 * testsuite/critical-1.c: New file.
3399 * testsuite/ordered-2.c: New file.
3400 * testsuite/ordered-1.c: New file.
3401 * testsuite/sections-1.c: New file.
3402 * testsuite/single-1.c: New file.
3403 * testsuite/Makefile (TESTS): Add them.
3405 2005-05-04 Richard Henderson <rth@redhat.com>
3407 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3408 * loop.c (GOMP_loop_static_start): If not the startup thread,
3409 acquire the mutex to wait for initialization complete.
3410 (GOMP_loop_ordered_static_start): Likewise.
3411 (GOMP_loop_ordered_runtime_start): Likewise.
3412 (GOMP_loop_ordered_static_first): Remove.
3413 (GOMP_loop_ordered_dynamic_first): Remove.
3414 (GOMP_loop_ordered_guided_first): Remove.
3415 (GOMP_loop_ordered_runtime_first): Remove.
3416 * ordered.c (gomp_ordered_loop_first): Post to own release when
3417 we're the first thread.
3418 (gomp_ordered_loop_last): Wait on release if not owner.
3419 (gomp_ordered_loop_next): Likewise.
3420 (gomp_ordered_static_loop_init): New.
3421 (gomp_ordered_static_loop_next): Use ordered_owner.
3422 (GOMP_ordered_start): Likewise.
3423 * work.c (gomp_new_work_share): Initialize ordered_owner.
3425 2005-05-03 Richard Henderson <rth@redhat.com>
3427 * Makefile (OPT): New.
3430 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3431 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3432 * libgomp.h, libgomp.map, NOTES: Update to match.
3434 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3435 Add initialized and thr members.
3436 (gomp_thread_start): Pause when initially spawned to wait for
3437 the whole team to be created.
3438 (gomp_team_start): Release team members at the end.
3440 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3441 (f_foo_1): Use GOMP_loop_end.
3442 (f_foo_2): Use GOMP_loop_end_nowait.
3444 * testsuite/loop-2.c: New file.
3445 * testsuite/Makefile (TESTS): Add it.
3447 2005-05-03 Richard Henderson <rth@redhat.com>
3449 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3450 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3451 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3454 * testsuite/Makefile: New file.
3455 * testsuite/loop-1.c: New file.
3457 2005-05-03 Richard Henderson <rth@redhat.com>
3459 Initial implementation and checkin.