1 2014-04-02 Richard Henderson <rth@redhat.com>
3 * config/linux/futex.h (futex_wait): Get error value from errno.
4 (futex_wake): Likewise.
6 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12 2013-10-16 Release Manager
16 2013-10-09 Jakub Jelinek <jakub@redhat.com>
18 * parallel.c (GOMP_parallel_end): Remember team->nthreads and call
19 gomp_team_end before adjusting gomp_remaining_threads_count, increment
20 gomp_remaining_threads_count instead of decrementing it again.
21 * testsuite/libgomp.c/thread-limit-1.c: New test.
23 2013-09-19 Jakub Jelinek <jakub@redhat.com>
25 * testsuite/libgomp.c/sections-2.c: New test.
27 2013-05-31 Release Manager
31 2013-05-16 Jakub Jelinek <jakub@redhat.com>
33 * testsuite/libgomp.c/loop-13.c: New test.
34 * testsuite/libgomp.c/loop-14.c: New test.
35 * testsuite/libgomp.c/loop-15.c: New test.
36 * testsuite/libgomp.c++/loop-13.C: New test.
37 * testsuite/libgomp.c++/loop-14.C: New test.
38 * testsuite/libgomp.c++/loop-15.C: New test.
40 2013-03-22 Release Manager
44 2013-02-06 Jakub Jelinek <jakub@redhat.com>
47 * testsuite/libgomp.c++/pr56217.C: New test.
49 2013-02-01 Alan Modra <amodra@gmail.com>
51 * task.c (GOMP_task, GOMP_taskwait): Comment.
53 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
54 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
57 * config/linux/wait.h (do_spin): Use atomic load for addr.
58 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
59 for intptr and ptrlock.
60 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
63 2013-01-22 Alan Modra <amodra@gmail.com>
67 * task.c (GOMP_task): Revert 2011-12-09 change.
68 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
69 barrier to read task->children..
70 (gomp_barrier_handle_tasks): ..and matching atomic store with
71 release barrier here when setting parent->children to NULL.
73 2013-01-16 Jakub Jelinek <jakub@redhat.com>
74 Tobias Burnus <burnus@net-b.de>
77 * testsuite/libgomp.fortran/fortran.exp: Use
78 -fintrinsic-modules-path= instead of
79 -fintrinsic-modules-path.
81 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
83 Update copyright years.
85 2012-12-19 Tobias Burnus <burnus@net-b.de>
87 * testsuite/libgomp.fortran/fortran.exp: Set
88 -fintrinsic-modules-path.
90 2012-12-19 Tobias Burnus <burnus@net-b.de>
92 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
93 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
95 2012-11-21 Jakub Jelinek <jakub@redhat.com>
98 * team.c (gomp_free_thread): Decrease gomp_managed_threads
99 if pool had any threads_used.
101 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
103 * testsuite/libgomp.c++/pr24455.C: Use
104 -Wl,-undefined,dynamic_lookup on darwin.
106 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
108 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
110 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
112 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
114 2012-10-23 Ian Bolton <ian.bolton@arm.com>
115 Jim MacArthur <jim.macarthur@arm.com>
116 Marcus Shawcroft <marcus.shawcroft@arm.com>
117 Nigel Stephens <nigel.stephens@arm.com>
118 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
119 Richard Earnshaw <rearnsha@arm.com>
120 Sofiane Naci <sofiane.naci@arm.com>
121 Stephen Thomas <stephen.thomas@arm.com>
122 Tejas Belagod <tejas.belagod@arm.com>
123 Yufeng Zhang <yufeng.zhang@arm.com>
125 * configure.tgt: Add AArch64.
127 2012-10-04 Jason Merrill <jason@redhat.com>
129 * testsuite/libgomp.c++/tls-init1.C: New.
131 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
133 * configure: Regenerated.
135 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
137 * config/linux/mips/futex.h (sys_futex0): Change to static
138 function with noinline, nomips16 attributes under MIPS16. Adjust
139 asm statement to place 'li v0,SYS_futex' immediately before
142 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
144 * libgomp.texi (Library Index): Renamed from "Index" to prevent
145 conflict with index.html on case-insensitive file systems.
147 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
149 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
150 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
152 2012-07-02 Richard Guenther <rguenther@suse.de>
153 Michael Matz <matz@suse.de>
154 Tobias Grosser <tobias@grosser.es>
155 Sebastian Pop <sebpop@gmail.com>
157 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
158 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
159 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
160 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
162 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
164 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
166 2012-06-22 Richard Guenther <rguenther@suse.de>
168 Merge from graphite branch
169 2012-01-13 Tobias Grosser <tobias@grosser.es>
171 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
172 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
174 2012-06-07 Jakub Jelinek <jakub@redhat.com>
177 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
178 use GOMP_barrier () call instead.
179 * testsuite/libgomp.c/pr26943-3.c: Likewise.
180 * testsuite/libgomp.c/pr26943-4.c: Likewise.
181 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
182 call GOMP_barrier instead.
183 * testsuite/libgomp.fortran/vla5.f90: Likewise.
185 2012-06-06 Jakub Jelinek <jakub@redhat.com>
188 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
189 argument to memset call.
191 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
193 * configure: Regenerated.
195 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
197 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
199 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
202 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
204 2012-03-22 Jakub Jelinek <jakub@redhat.com>
207 * testsuite/libgomp.c/pr52547.c: New test.
209 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
211 * testsuite/lib/libgomp.exp: load fortran-modules.exp
213 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
215 * configure.tgt (mips-sgi-irix6*): Remove.
217 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
219 * configure.tgt (alpha*-dec-osf*): Remove.
221 * config/osf/sem.h: Remove.
222 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
224 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
226 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
228 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
231 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
232 Remove ENABLE_SYMVERS_SOL2.
233 * configure: Regenerate.
234 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
235 (PREPROCESS): New variable.
236 (libgomp.ver): New target.
237 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
238 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
239 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
241 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
242 * Makefile.in: Regenerate.
244 2012-02-14 Walter Lee <walt@tilera.com>
246 * configure.tgt: Handle tilegx and tilepro.
247 * config/linux/tile/futex.h: New file.
249 2012-02-08 Richard Guenther <rguenther@suse.de>
251 PR tree-optimization/46886
252 * testsuite/libgomp.c/pr46886.c: New testcase.
254 2012-01-25 Matthias Klose <doko@ubuntu.com>
256 * config/linux/arm: Remove empty directory.
257 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
259 2011-12-09 Alan Modra <amodra@gmail.com>
262 * task.c (GOMP_taskwait): Don't access task->children outside of
263 task_lock mutex region.
264 (GOMP_task): Likewise.
266 2011-12-06 Jakub Jelinek <jakub@redhat.com>
269 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
271 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
272 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
273 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
274 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
275 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
277 2011-12-02 Alan Modra <amodra@gmail.com>
279 * config/linux/affinity.c: Use atomic rather than sync builtin.
280 * config/linux/lock.c: Likewise.
281 * config/linux/ptrlock.h: Likewise.
282 * config/linux/ptrlock.c: Likewise.
283 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
284 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
285 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
286 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
287 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
288 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
289 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
290 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
291 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
292 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
294 2011-11-30 Alan Modra <amodra@gmail.com>
297 * config/linux/bar.h: Use atomic rather than sync builtins.
298 * config/linux/bar.c: Likewise. Add missing acquire
299 synchronisation on generation field.
300 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
303 2011-11-30 Alan Modra <amodra@gmail.com>
305 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
306 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
307 * config/linux/mutex.h: Use atomic rather than sync builtins.
308 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
309 * config/linux/omp-lock.h: Comment fix.
310 * config/linux/arm/mutex.h: Delete.
311 * config/linux/powerpc/mutex.h: Delete.
312 * config/linux/ia64/mutex.h: Delete.
313 * config/linux/mips/mutex.h: Delete.
315 2011-11-30 Alan Modra <amodra@gmail.com>
318 * config/linux/sem.h: Rewrite.
319 * config/linux/sem.c: Rewrite.
321 2011-11-28 Richard Henderson <rth@redhat.com>
323 * libgomp.h (enum memmodel): New.
325 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
327 * configure: Regenerate.
329 2011-10-10 Matthias Klose <doko@ubuntu.com>
331 * config/posix95: Remove empty directory.
333 2011-08-26 Jakub Jelinek <jakub@redhat.com>
335 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
337 2011-08-19 Jakub Jelinek <jakub@redhat.com>
340 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
341 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
343 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
345 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
347 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
350 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
352 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
354 * config/linux/proc.h: New.
355 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
356 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
357 (gomp_init_num_threads): Update call to cpuset_popcount.
358 (get_num_procs): Ditto.
359 * config/linux/affinity.c (gomp_init_affinity): Call
360 gomp_cpuset_popcount.
362 2011-08-02 Jakub Jelinek <jakub@redhat.com>
366 * omp.h.in (omp_in_final): New prototype.
367 * omp_lib.f90.in (omp_in_final): New interface.
368 (omp_integer_kind, omp_logical_kind): Remove
369 and replace all its uses in the module with 4.
370 (openmp_version): Change to 201107.
371 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
372 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
373 kind for the parameters.
374 (omp_in_final): New external.
375 (openmp_version): Change to 201107.
376 * task.c (omp_in_final): New function.
377 (gomp_init_task): Initialize final_task.
378 (GOMP_task): Remove unused attribute from flags. Handle final
380 (GOMP_taskyield): New function.
381 (omp_in_final): Return true if if (false) or final (true) task
382 or descendant of final (true).
383 * fortran.c (omp_in_final_): New function.
384 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
385 (GOMP_3.0): Export GOMP_taskyield.
386 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
388 (parse_unsigned_long_list): New function.
389 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
390 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
391 even if parse_affinity returned false.
392 * config/linux/affinity.c (gomp_init_affinity): Handle
393 gomp_cpu_affinity_len == 0.
394 * libgomp_g.h (GOMP_taskyield): New prototype.
395 * libgomp.h (struct gomp_task): Add final_task field.
396 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
397 * team.c (gomp_team_start): Override new task's nthreads_var icv
398 if list form OMP_NUM_THREADS has been used and it has value for
399 the new nesting level.
401 * testsuite/libgomp.c/atomic-11.c: New test.
402 * testsuite/libgomp.c/atomic-12.c: New test.
403 * testsuite/libgomp.c/atomic-13.c: New test.
404 * testsuite/libgomp.c/atomic-14.c: New test.
405 * testsuite/libgomp.c/reduction-6.c: New test.
406 * testsuite/libgomp.c/task-5.c: New test.
407 * testsuite/libgomp.c++/atomic-2.C: New test.
408 * testsuite/libgomp.c++/atomic-3.C: New test.
409 * testsuite/libgomp.c++/atomic-4.C: New test.
410 * testsuite/libgomp.c++/atomic-5.C: New test.
411 * testsuite/libgomp.c++/atomic-6.C: New test.
412 * testsuite/libgomp.c++/atomic-7.C: New test.
413 * testsuite/libgomp.c++/atomic-8.C: New test.
414 * testsuite/libgomp.c++/atomic-9.C: New test.
415 * testsuite/libgomp.c++/task-8.C: New test.
416 * testsuite/libgomp.c++/reduction-4.C: New test.
417 * testsuite/libgomp.fortran/allocatable7.f90: New test.
418 * testsuite/libgomp.fortran/allocatable8.f90: New test.
419 * testsuite/libgomp.fortran/crayptr3.f90: New test.
420 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
421 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
422 * testsuite/libgomp.fortran/pointer1.f90: New test.
423 * testsuite/libgomp.fortran/pointer2.f90: New test.
424 * testsuite/libgomp.fortran/task4.f90: New test.
426 2011-08-02 Tobias Burnus <burnus@net-b.de>
428 * libgomp.texi: Update OpenMP spec references to 3.1.
429 (omp_in_final,OMP_PROC_BIND): New sections.
430 (OMP_NUM_THREADS): Document that the value can be now a list.
431 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
433 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
435 * config/linux/x86/futex.h: Check __x86_64__ instead of
438 2011-07-29 Jakub Jelinek <jakub@redhat.com>
442 * testsuite/libgomp.c/pr49897-1.c: New test.
443 * testsuite/libgomp.c/pr49897-2.c: New test.
444 * testsuite/libgomp.c/pr49898-1.c: New test.
445 * testsuite/libgomp.c/pr49898-2.c: New test.
447 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
449 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
450 for ia32 instead of ilp32.
452 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
453 * testsuite/libgomp.c/atomic-6.c: Likewise.
455 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
457 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
458 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
460 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
463 * config/osf/sem.h: New file.
464 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
466 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
469 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
472 2011-07-15 Jakub Jelinek <jakub@redhat.com>
474 * config/linux/wait.h (do_spin): New inline, largely copied
475 from do_wait, just don't do futex_wait here, instead return true if
477 (do_wait): Implement using do_spin.
478 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
480 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
481 __sync_bool_compare_and_swap, pass the oldval to
482 gomp_mutex_lock_slow.
483 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
484 If all mutex contenders are just spinning and not sleeping, don't
485 change state to 2 unnecessarily. Optimize the loop when state has
486 already become 2 to use just one atomic operation per loop instead
488 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
490 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
491 __sync_bool_compare_and_swap, pass the oldval to
492 gomp_mutex_lock_slow.
494 2011-06-22 Jakub Jelinek <jakub@redhat.com>
497 * iter.c (gomp_iter_static_next): For chunk size 0
498 only use n ceil/ nthreads size for the first
499 n % nthreads threads in the team instead of
500 all threads except for the last few ones which
501 get less work or none at all.
502 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
503 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
504 chunk argument, set run_sched_modifier to 0 for static
505 resp. 1 for other kinds. If chunk argument is 0
506 and not static, set value to 1.
508 2011-05-19 Jakub Jelinek <jakub@redhat.com>
511 * testsuite/libgomp.c++/pr49043.C: New test.
514 * testsuite/libgomp.c++/pr48869.C: New test.
516 2011-05-06 Jakub Jelinek <jakub@redhat.com>
519 * fortran.c: Include limits.h.
521 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
523 (omp_set_num_threads_8_, omp_set_schedule_8_,
524 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
525 omp_get_team_size_8_): Use TO_INT macro.
526 * testsuite/libgomp.fortran/pr48894.f90: New test.
528 2011-04-13 Jakub Jelinek <jakub@redhat.com>
531 * testsuite/libgomp.c/pr48591.c: New test.
533 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
536 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
537 * configure: Regenerate.
539 2011-02-27 Jakub Jelinek <jakub@redhat.com>
542 * testsuite/libgomp.fortran/task3.f90: New test.
544 2011-02-24 Tobias Burnus <burnus@net-b.de>
546 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
548 2011-02-23 Jakub Jelinek <jakub@redhat.com>
551 * libgomp.texi (omp_get_wtime): Don't say time in the past
554 2011-02-18 Jakub Jelinek <jakub@redhat.com>
557 * testsuite/libgomp.fortran/fortran.exp: Check for both
558 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
559 but $blddir != "", still append ${blddir}/${lang_library_path}
562 2011-02-16 Tobias Burnus <burnus@net-b.de>
565 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
566 of libquadmath.a before adding its libpath to ldflags.
568 2011-02-14 Jakub Jelinek <jakub@redhat.com>
571 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
572 to FUTEX_WAIT futex syscall.
573 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
575 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
577 * configure: Regenerate.
579 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
582 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
584 2011-01-16 Gerald Pfeifer
586 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
588 2010-12-14 Jakub Jelinek <jakub@redhat.com>
591 * libgomp.fortran/allocatable6.f90: New test.
593 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
595 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
596 * configure: Regenerate.
598 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
602 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
603 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
604 * aclocal.m4: Regenerate.
605 * configure: Regenerate.
606 * Makefile.in: Regenerate.
607 * testsuite/Makefile.in: Regenerate.
609 2010-12-02 Jakub Jelinek <jakub@redhat.com>
612 * libgomp.fortran/pr46753.f90: New test.
615 * env.c (initialize_env): Default to spin count 300000
616 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
620 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
621 at the end if sync builtins aren't supported.
623 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
625 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
627 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
629 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
631 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
633 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
635 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
636 Tobias Burnus <burnus@net-b.de>
640 * configure: Regenerate.
642 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
644 * config/linux/futex.h: New.
645 * config/linux/arm/mutex.h: New.
646 * configure.tgt (arm*-*-linux*): Add config path.
648 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
650 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
652 2010-09-23 Tobias Burnus <burnus@net-b.de>
654 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
655 Change Fortran datatype to LOGICAL.
656 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
657 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
659 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
661 * configure: Regenerate.
663 2010-07-26 Jakub Jelinek <jakub@redhat.com>
665 * libgomp.texi: Add function keyword to a couple of Fortran
666 interfaces, use integer instead of int for Fortran.
668 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
670 * libgomp.texi: Fix spelling and pasto problems throughout.
671 Adjust prototypes to match code.
673 2010-07-24 Tobias Burnus <burnus@net-b.de>
675 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
676 silence -fwhole-file warning.
678 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
680 * configure.tgt (*-*-solaris2.[56]*): Removed.
682 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
684 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
685 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
686 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
687 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
688 targetting solaris2*.
689 * configure: Regenerate.
690 * config.h.in: Regenerate.
692 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
693 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
694 Add libgomp_version_dep.
695 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
697 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
698 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
699 * Makefile.in: Regenerate.
701 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
702 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
703 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
704 to common block, protected by
705 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
707 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
709 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
711 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
714 * configure: Regenerate.
716 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
719 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
720 * configure: Regenerate.
721 * Makefile.in: Regenerate.
722 * testsuite/Makefile.in: Regenerate.
724 2010-04-26 Jakub Jelinek <jakub@redhat.com>
727 * testsuite/libgomp.c/pr43893.c: New test.
728 * testsuite/libgomp.c++/pr43893.C: New test.
730 2010-04-21 Jakub Jelinek <jakub@redhat.com>
733 * testsuite/libgomp.fortran/vla8.f90: New test.
735 2010-04-20 Jakub Jelinek <jakub@redhat.com>
738 * config/linux/affinity.c (gomp_init_affinity): Decrease
739 gomp_available_cpus if affinity mask confines the process to fewer
741 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
742 non-NULL, just return gomp_available_cpus.
745 * sections.c (gomp_sections_init): Initialize ws->mode.
747 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
749 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
750 not unused bar variable.
751 * configure: Regenerate.
753 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
755 * Makefile.in: Regenerate.
756 * aclocal.m4: Regenerate.
757 * testsuite/Makefile.in: Regenerate.
759 2010-03-22 Jakub Jelinek <jakub@redhat.com>
762 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
763 (initialize_env): Adjust callers.
764 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
765 when the argument is 0.
767 * testsuite/libgomp.c/pr42942.c: New test.
769 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
773 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
774 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
776 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
778 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
779 * testsuite/libgomp.c++/task-6.C: Likewise.
781 2010-01-28 Steve Ellcey <sje@cup.hp.com>
783 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
785 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
787 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
788 * configure: Regenerate.
790 2010-01-26 Jakub Jelinek <jakub@redhat.com>
793 * testsuite/libgomp.fortran/allocatable5.f90: New test.
795 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
797 * configure.ac: Test for executability of GFORTRAN.
798 * configure: Regenerate.
800 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
802 * configure: Regenerate.
804 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
807 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
809 2010-01-03 Richard Guenther <rguenther@suse.de>
811 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
813 2009-12-23 Sebastian Pop <sebpop@gmail.com>
815 * testsuite/libgomp.graphite/pr4118.c: New.
817 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
819 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
820 for darwin, protect the test with require-effective-target tls_runtime.
821 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
823 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
826 * testsuite/lib/libgomp.exp: Provide -B options to allow for
827 link spec %s substitutions for static libraries.
829 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
832 * libgomp.graphite/force-parallel-2.c: Reduce array size.
834 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
836 * Makefile.in: Regenerate.
837 * configure: Regenerate.
838 * testsuite/Makefile.in: Regenerate.
840 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
842 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
843 settings for LC_ALL and LANG.
845 2009-11-25 Jakub Jelinek <jakub@redhat.com>
848 * testsuite/libgomp.fortran/pr42162.f90: New test.
850 2009-11-13 Jakub Jelinek <jakub@redhat.com>
853 * testsuite/libgomp.c/pr42029.c: New test.
855 2009-10-26 Jakub Jelinek <jakub@redhat.com>
857 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
858 *s. Accept ld version without text in ()s.
859 * configure: Regenerated.
861 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
863 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
865 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
868 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
869 or a hyphen (happens with fortran language disabled).
870 * configure: Regenerate.
872 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
874 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
875 use sed script portable to Solaris /bin/sed for extracting ld
877 * configure: Regenerate.
879 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
881 * testsuite/libgomp.graphite/bounds.c: New test.
883 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
885 * Makefile.am (libgomp_la_LINK): New.
886 * Makefile.in: Regenerate.
888 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
890 * configure.ac (AC_PREREQ): Bump to 2.64.
892 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
894 * Makefile.am (install-html, install-pdf): Remove.
895 * Makefile.in: Regenerate.
897 * Makefile.in: Regenerate.
898 * aclocal.m4: Regenerate.
899 * config.h.in: Regenerate.
900 * configure: Regenerate.
901 * testsuite/Makefile.in: Regenerate.
903 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
905 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
906 * Makefile.in: Regenerate.
908 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
910 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
911 * Makefile.in: Regenerate.
913 2009-08-19 Tobias Burnus <burnus@net-b.de>
916 omp_lib.h.in: Fix -std=f95 errors.
919 2009-08-14 David Edelsohn <edelsohn@gnu.org>
921 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
922 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
923 * testsuite/libgomp.graphite/graphite.exp: New.
925 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
927 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
930 2009-08-04 David Daney <ddaney@caviumnetworks.com>
932 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
933 needed memory barrier semantics.
934 * config/linux/mips/mutex.h: New file.
936 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
938 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
940 2009-07-16 Joseph Myers <joseph@codesourcery.com>
942 * configure: Regenerate.
944 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
949 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
950 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
951 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
953 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
955 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
956 options when choosing a multilib.
958 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
960 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
961 ld_library_path. Use add_path. Add just find_libgcc_s to
962 ld_library_path, not every libgcc multilib directory.
963 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
964 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
965 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
967 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
969 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
971 * Makefile.am (LTLDFLAGS): Define.
973 * Makefile.in: Regenerate.
975 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
978 * testsuite/libgomp.fortran/fortran.exp: Don't link with
979 libgfortranbegin, check existence of libgfortran.a instead of
982 2009-05-20 Jakub Jelinek <jakub@redhat.com>
985 * team.c (gomp_thread_start): Destroy thr->release semaphore.
986 (gomp_free_pool_helper): Likewise.
988 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
989 Jakub Jelinek <jakub@redhat.com>
992 * testsuite/libgomp.fortran/workshare2.f90: New test.
994 2009-04-09 Nick Clifton <nickc@redhat.com>
996 * iter.c: Change copyright header to refer to version 3 of the
997 GNU General Public License with version 3.1 of the GCC Runtime
998 Library Exception and to point readers at the COPYING3 and
999 COPYING3.RUNTIME files and the FSF's license web page.
1000 * alloc.c: Likewise.
1001 * barrier.c: Likewise.
1002 * config/bsd/proc.c: Likewise.
1003 * config/linux/affinity.c: Likewise.
1004 * config/linux/alpha/futex.h: Likewise.
1005 * config/linux/bar.c: Likewise.
1006 * config/linux/bar.h: Likewise.
1007 * config/linux/ia64/futex.h: Likewise.
1008 * config/linux/ia64/mutex.h: Likewise.
1009 * config/linux/lock.c: Likewise.
1010 * config/linux/mips/futex.h: Likewise.
1011 * config/linux/mutex.c: Likewise.
1012 * config/linux/mutex.h: Likewise.
1013 * config/linux/powerpc/futex.h: Likewise.
1014 * config/linux/proc.c: Likewise.
1015 * config/linux/ptrlock.c: Likewise.
1016 * config/linux/ptrlock.h: Likewise.
1017 * config/linux/s390/futex.h: Likewise.
1018 * config/linux/sem.c: Likewise.
1019 * config/linux/sem.h: Likewise.
1020 * config/linux/sparc/futex.h: Likewise.
1021 * config/linux/wait.h: Likewise.
1022 * config/linux/x86/futex.h: Likewise.
1023 * config/mingw32/proc.c: Likewise.
1024 * config/mingw32/time.c: Likewise.
1025 * config/posix/affinity.c: Likewise.
1026 * config/posix/bar.c: Likewise.
1027 * config/posix/bar.h: Likewise.
1028 * config/posix/lock.c: Likewise.
1029 * config/posix/mutex.h: Likewise.
1030 * config/posix/proc.c: Likewise.
1031 * config/posix/ptrlock.h: Likewise.
1032 * config/posix/sem.c: Likewise.
1033 * config/posix/sem.h: Likewise.
1034 * config/posix/time.c: Likewise.
1035 * config/posix95/lock.c: Likewise.
1036 * critical.c: Likewise.
1038 * error.c: Likewise.
1039 * fortran.c: Likewise.
1040 * iter_ull.c: Likewise.
1041 * libgomp.h: Likewise.
1042 * libgomp_f.h.in: Likewise.
1043 * libgomp_g.h: Likewise.
1045 * loop_ull.c: Likewise.
1046 * omp.h.in: Likewise.
1047 * omp_lib.f90.in: Likewise.
1048 * omp_lib.h.in: Likewise.
1049 * ordered.c: Likewise.
1050 * parallel.c: Likewise.
1051 * sections.c: Likewise.
1052 * single.c: Likewise.
1057 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1059 * testsuite/config/default.exp: Change copyright header to refer to
1060 version 3 of the GNU General Public License and to point readers
1061 at the COPYING3 file and the FSF's license web page.
1063 2009-04-08 Jakub Jelinek <jakub@redhat.com>
1066 * libgomp.c++/pr39573.C: New test.
1068 2009-04-01 Jakub Jelinek <jakub@redhat.com>
1071 * testsuite/libgomp.c/pr39591-1.c: New test.
1072 * testsuite/libgomp.c/pr39591-2.c: New test.
1073 * testsuite/libgomp.c/pr39591-3.c: New test.
1075 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
1077 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1078 * testsuite/libgomp.c/atomic-6.c: Ditto.
1080 2009-03-23 Jakub Jelinek <jakub@redhat.com>
1083 * testsuite/libgomp.c/loop-12.c: New test.
1084 * testsuite/libgomp.c/loop-11.c: New test.
1085 * testsuite/libgomp.c++/loop-11.C: New test.
1086 * testsuite/libgomp.c++/loop-12.C: New test.
1087 * testsuite/libgomp.c++/for-8.C: New test.
1089 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1091 * configure: Regenerate.
1093 2009-02-11 Jakub Jelinek <jakub@redhat.com>
1096 * testsuite/libgomp.c/pr39154.c: New test.
1098 2009-01-30 Ian Lance Taylor <iant@google.com>
1100 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1101 libgomp_ld_is_gold. Get gold version number.
1102 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1103 * configure: Rebuild.
1105 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1107 * testsuite/lib/libgomp.exp: Add -B option for targets that
1108 use libgfortran.a%s in their specs.
1110 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1113 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1114 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1115 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1116 * configure: Regenerated.
1117 * config.h.in: Likewise.
1119 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1122 * testsuite/libgomp.c/pr38650.c: New test.
1123 * testsuite/libgomp.c++/pr38650.C: New test.
1125 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1127 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1129 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1131 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1133 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1135 * configure: Regenerate.
1137 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1140 * testsuite/libgomp.c/pr36802-1.c: New test.
1141 * testsuite/libgomp.c/pr36802-2.c: New test.
1142 * testsuite/libgomp.c/pr36802-3.c: New test.
1144 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1147 * config/linux/powerpc/mutex.h: New.
1149 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1152 * testsuite/libgomp.c++/for-7.C: New test.
1155 * testsuite/libgomp.c++/for-6.C: New test.
1157 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1160 * testsuite/lib/libgomp.exp: Include new timeout library files.
1161 (libgomp_target_compile): Set timeout value from new proc.
1163 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1166 * config/linux/ia64/mutex.h: New.
1168 2008-11-04 Tobias Burnus <burnus@net-b.de>
1171 * libgomp.texi (Runtime library routines, environment variables):
1172 Update for OpenMP version 3.0.
1174 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1175 Steve Ellcey <sje@cup.hp.com>
1177 * configure: Regenerate for new libtool.
1178 * Makefile.in: Ditto.
1179 * testsuite/Makefile.in: Ditto.
1181 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1182 Andreas Tobler <a.tobler@schweiz.org>
1184 * config/bsd/proc.c: New file.
1185 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1186 * configure.ac: Check for header <sys/sysctl.h>
1187 * configure: Regenerate.
1188 * config.h.in: Likewise.
1190 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1192 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1194 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1196 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1197 * Makefile.in: Regenerated.
1198 * testsuite/Makefile.in: Regenerated.
1200 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1202 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1203 depend on blddir if blddir exists.
1204 (libgomp_target_compile): Likewise.
1205 * testsuite/libgomp.c++/c++.exp: Likewise.
1206 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1208 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1210 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1211 Do not list GPL as Invariant Section.
1213 2008-07-28 Ilie Garbacea <ilie@mips.com>
1214 Chao-ying Fu <fu@mips.com>
1216 * configure.tgt: Enable futex for MIPS.
1217 * config/linux/mips/futex.h: New file.
1219 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1221 * team.c (gomp_team_end): Free team immediately if it has
1224 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1226 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1227 * testsuite/libgomp.fortran/fortran.exp: Same.
1228 * testsuite/libgomp.c/c.exp: Same.
1229 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1230 directory to library path first.
1232 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1234 * env.c (parse_stacksize): Add cast to avoid warning.
1235 (parse_spincount): Likewise.
1237 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1239 * testsuite/libgomp.c/loop-10.c: New test.
1240 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1241 * libgomp.c++/loop-6.C (main): Likewise.
1244 * testsuite/libgomp.c/debug-1.c: New test.
1246 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1248 * testsuite/libgomp.c/nqueens-1.c: New test.
1251 * testsuite/libgomp.c++/task-7.C: New function.
1253 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1255 * configure: Regenerate.
1257 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1259 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1260 mutex when HAVE_SYNC_BUILTINS isn't defined.
1262 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1264 * libgomp.texi (omp_test_lock): Fix typo.
1266 2008-06-12 Tobias Burnus <burnus@net-b.de>
1268 * omp_lib.f90.in: Add "implicit none".
1270 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1273 * testsuite/libgomp.c/reduction-5.c: New test.
1275 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1277 * libgomp.h (struct gomp_task): Add in_tied_task field.
1278 * task.c (gomp_init_task): Initialize it.
1279 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1280 unconditionally. Don't call gomp_team_barrier_wake if
1281 current task is implicit or if(0) from implicit and number of
1282 running tasks is equal to nthreads - 1.
1285 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1286 omp_get_team_size_8): Fix pastos.
1289 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1290 * configure: Regenerated.
1291 * config.h.in: Regenerated.
1292 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1295 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1298 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1299 (GOMP_loop_ull_dynamic_start): Likewise.
1300 (GOMP_loop_ull_guided_start): Likewise.
1301 (GOMP_loop_ull_ordered_static_start): Likewise.
1302 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1303 (GOMP_loop_ull_ordered_guided_start): Likewise.
1305 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1306 Richard Henderson <rth@redhat.com>
1307 Ulrich Drepper <drepper@redhat.com>
1308 Jakob Blomer <jakob.blomer@ira.uka.de>
1310 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1311 Substitute also OMP_*LOCK_25*.
1312 * configure: Regenerated.
1313 * config.h.in: Regenerated.
1314 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1315 ptrlock.c and task.c.
1316 * Makefile.in: Regenerated.
1317 * testsuite/Makefile.in: Regenerated.
1319 * loop_ull.c: New file.
1320 * iter_ull.c: New file.
1321 * libgomp.h: Include ptrlock.h.
1322 (enum gomp_task_kind): New type.
1323 (struct gomp_team): Add task_lock, task_queue, task_count,
1324 task_running_count, single_count fields. Add
1325 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1326 Remove work_share_lock, generation_mask,
1327 oldest_live_gen, num_live_gen and init_work_shares fields, add
1328 work work_share_list_alloc, work_share_list_free and work_share_chunk
1329 fields. Change work_shares from pointer to pointers into an array.
1330 Change ordered_release field into gomp_sem_t ** from flexible array
1331 member. Add implicit_task and initial_work_shares fields.
1332 Move close to the end of the struct.
1333 (struct gomp_team_state): Add single_count, last_work_share,
1334 active_level and level fields, remove work_share_generation.
1335 (gomp_barrier_handle_tasks): New prototype.
1336 (gomp_finish_task): New inline function.
1337 (struct gomp_work_share): Move chunk_size, end, incr into
1338 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1339 next_ll fields. Reshuffle fields. Add next_alloc,
1340 next_ws, next_free and inline_ordered_team_ids fields, change
1341 ordered_team_ids into pointer from flexible array member.
1342 Add mode field. Put lock and next into a different cache line
1343 from most of the write-once fields.
1344 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1345 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1346 gomp_iter_ull_guided_next): New prototypes.
1347 (gomp_new_icv): New prototype.
1348 (struct gomp_thread): Add thread_pool and task fields.
1349 (struct gomp_thread_pool): New type.
1350 (gomp_new_team): New prototype.
1351 (gomp_team_start): Change type of last argument.
1352 (gomp_new_work_share): Removed.
1353 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1354 (gomp_work_share_init_done): New static inline.
1355 (gomp_throttled_spin_count_var, gomp_available_cpus,
1356 gomp_managed_threads): New extern decls.
1357 (gomp_init_task): New prototype.
1358 (gomp_spin_count_var): New extern var decl.
1359 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1360 or no alias support, or if not PIC.
1361 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1362 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1363 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1364 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1365 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1366 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1367 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1368 gomp_test_nest_lock_25): New prototypes.
1369 (omp_lock_symver, strong_alias): Define.
1370 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1372 (gomp_end_task): New.
1373 (struct gomp_task_icv, gomp_global_icv): New.
1374 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1375 (struct gomp_task): New.
1376 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1377 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1379 (gomp_schedule_type): Reorder enum to match
1381 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1383 (gomp_thread_start): Add gomp_team_barrier_wait call.
1384 For non-nested case remove clearing of docked thread thr fields.
1385 Use pool fields instead of global gomp_* variables. Use
1386 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1387 Create tasks for each member thread.
1388 (free_team): Only destroy team barrier, task_lock here and free it.
1389 (gomp_free_thread): Free last_team if non-NULL.
1390 (gomp_team_end): Call gomp_team_barrier_wait instead of
1391 gomp_barrier_wait. For nested case call one extra
1392 gomp_barrier_wait. Move here some destruction from free_team.
1393 Call free_team on pool->last_team if any, rather than freeing
1394 current team. Destroy work_share_list_free_lock ifndef
1396 (gomp_new_icv): New function.
1397 (gomp_threads, gomp_threads_size, gomp_threads_used,
1398 gomp_threads_dock): Removed.
1399 (gomp_thread_destructor): New variable.
1400 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1402 (gomp_team_start): Create new pool if current thread doesn't have
1403 one. Use pool fields instead of global gomp_* variables.
1404 Initialize thread_pool field for new threads. Clear single_count.
1405 Change last argument from ws to team, don't create
1406 new team, set ts.work_share to &team->work_shares[0] and clear
1407 ts.last_work_share. Don't clear ts.work_share_generation.
1408 If number of threads changed, adjust atomically gomp_managed_threads.
1409 Use gomp_init_task instead of gomp_new_task,
1410 set thr->task to the corresponding implicit_task array entry.
1411 Create tasks for each member thread. Initialize ts.level.
1412 (initialize_team): Call pthread_key_create on
1413 gomp_thread_destructor.
1414 (team_destructor): New function.
1415 (new_team): Removed.
1416 (gomp_new_team): New function.
1417 (free_team): Free gomp_work_share blocks chained through next_alloc,
1418 instead of freeing work_shares and destroying work_share_lock.
1419 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1420 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1421 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1422 of gomp_barrier_wait.
1423 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1424 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1425 if gomp_work_share_start returned true. Don't unlock ws->lock.
1426 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1427 of gomp_barrier_wait.
1428 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1429 gomp_work_share_init_done if gomp_work_share_start returned true.
1430 Don't unlock ws->lock.
1431 * work.c: Include stddef.h.
1432 (free_work_share): Use work_share_list_free_lock instead
1433 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1434 Call gomp_fini_work_share and then either free ws if orphaned, or
1435 put it into work_share_list_free list of the current team.
1436 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1438 (gomp_work_share_start, gomp_work_share_end,
1439 gomp_work_share_end_nowait): Rewritten.
1440 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1441 (openmp_version): Set to 200805.
1442 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1443 omp_sched_guided, omp_sched_auto): New parameters.
1444 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1445 omp_set_max_active_levels, omp_get_max_active_levels,
1446 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1447 omp_get_active_level): New interfaces.
1448 * omp_lib.h.in (openmp_version): Set to 200805.
1449 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1450 omp_sched_guided, omp_sched_auto): New parameters.
1451 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1452 omp_set_max_active_levels, omp_get_max_active_levels,
1453 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1454 omp_get_active_level): New externals.
1455 * loop.c: Include limits.h.
1456 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1458 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1459 Likewise. Use gomp_icv.
1460 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1461 ts.static_trip here.
1462 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1463 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1464 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1465 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1466 don't unlock ws->lock, otherwise lock it.
1467 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1468 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1469 (gomp_parallel_loop_start): Call gomp_new_team instead of
1470 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1471 Adjust gomp_team_start caller. Pass 0 as second argument to
1472 gomp_resolve_num_threads.
1473 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1474 If adding ws->chunk_size nthreads + 1 times after end won't
1475 overflow, set ws->mode to 1.
1476 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1477 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1478 GOMP_loop_ull_ordered_static_start,
1479 GOMP_loop_ull_ordered_dynamic_start,
1480 GOMP_loop_ull_ordered_guided_start,
1481 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1482 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1483 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1484 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1485 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1487 * libgomp.map: Export lock routines also @@OMP_2.0.
1488 (GOMP_loop_ordered_dynamic_first,
1489 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1490 GOMP_loop_ordered_static_first): Remove.
1491 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1492 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1493 GOMP_loop_ull_ordered_dynamic_next,
1494 GOMP_loop_ull_ordered_dynamic_start,
1495 GOMP_loop_ull_ordered_guided_next,
1496 GOMP_loop_ull_ordered_guided_start,
1497 GOMP_loop_ull_ordered_runtime_next,
1498 GOMP_loop_ull_ordered_runtime_start,
1499 GOMP_loop_ull_ordered_static_next,
1500 GOMP_loop_ull_ordered_static_start,
1501 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1502 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1503 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1504 (omp_set_schedule, omp_get_schedule,
1505 omp_get_thread_limit, omp_set_max_active_levels,
1506 omp_get_max_active_levels, omp_get_level,
1507 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1508 omp_set_schedule_, omp_set_schedule_8_,
1509 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1510 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1511 omp_get_max_active_levels_, omp_get_level_,
1512 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1513 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1514 New exports @@OMP_3.0.
1515 * omp.h.in (omp_sched_t): New type.
1516 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1517 omp_set_max_active_levels, omp_get_max_active_levels,
1518 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1519 omp_get_active_level): New prototypes.
1520 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1521 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1522 gomp_thread_limit_var, gomp_remaining_threads_count,
1523 gomp_remaining_threads_lock): New variables.
1524 (parse_spincount): New function.
1525 (initialize_env): Call gomp_init_num_threads unconditionally.
1526 Initialize gomp_available_cpus. Call parse_spincount,
1527 initialize gomp_{,throttled_}spin_count_var
1528 depending on presence and value of OMP_WAIT_POLICY and
1529 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1530 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1531 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1532 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1533 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1534 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1535 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1536 (gomp_global_icv): New.
1537 (parse_schedule): Use it. Parse "auto".
1538 (omp_set_num_threads): Use gomp_icv.
1539 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1541 (omp_get_max_threads): Move from parallel.c.
1542 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1543 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1545 (parse_stacksize, parse_wait_policy): New functions.
1546 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1547 both wrappers for compatibility and new locks.
1548 (omp_set_schedule, omp_get_schedule,
1549 omp_get_thread_limit, omp_set_max_active_levels,
1550 omp_get_max_active_levels, omp_get_level,
1551 omp_get_ancestor_thread_num, omp_get_team_size,
1552 omp_get_active_level): New ialias_redirect.
1553 (omp_set_schedule_, omp_set_schedule_8_,
1554 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1555 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1556 omp_get_max_active_levels_, omp_get_level_,
1557 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1558 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1560 * parallel.c: Include limits.h.
1561 (gomp_resolve_num_threads): Add count argument. Rewritten.
1562 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1563 argument to gomp_team_start. Pass 0 as second argument to
1564 gomp_resolve_num_threads.
1565 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1566 if gomp_thread_limit_var != ULONG_MAX.
1567 (omp_in_parallel): Implement using ts.active_level.
1568 (omp_get_max_threads): Move to env.c.
1569 (omp_get_level, omp_get_ancestor_thread_num,
1570 omp_get_team_size, omp_get_active_level): New functions,
1572 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1573 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1574 gomp_iter_dynamic_next instead of the _locked variant and don't take
1575 lock around it, otherwise acquire it before calling
1576 gomp_iter_dynamic_next_locked.
1577 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1578 gomp_iter_dynamic_next instead of the _locked variant and don't take
1580 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1581 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1582 Adjust gomp_team_start caller. Pass count as second argument to
1583 gomp_resolve_num_threads, don't adjust num_threads after the call.
1585 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1586 ws->chunk_size by incr.
1587 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1589 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1591 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1592 (omp_check_defines): Check even the compat defines.
1593 * config/linux/ptrlock.c: New file.
1594 * config/linux/ptrlock.h: New file.
1595 * config/linux/wait.h: New file.
1596 * config/posix/ptrlock.c: New file.
1597 * config/posix/ptrlock.h: New file.
1598 * config/linux/bar.h (gomp_team_barrier_wait,
1599 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1600 (gomp_team_barrier_set_task_pending,
1601 gomp_team_barrier_clear_task_pending,
1602 gomp_team_barrier_set_waiting_for_tasks,
1603 gomp_team_barrier_waiting_for_tasks,
1604 gomp_team_barrier_done): New inlines.
1605 (gomp_barrier_t): Rewritten.
1606 (gomp_barrier_state_t): New typedef.
1607 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1608 gomp_barrier_wait_start): Rewritten.
1609 (gomp_barrier_wait_end): Change second argument to
1610 gomp_barrier_state_t.
1611 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1613 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1615 (gomp_barrier_wait_end): Rewritten.
1616 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1617 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1618 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1619 (gomp_barrier_state_t): New typedef.
1620 (gomp_team_barrier_wait,
1621 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1622 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1623 into the return value. Return gomp_barrier_state_t.
1624 (gomp_team_barrier_set_task_pending,
1625 gomp_team_barrier_clear_task_pending,
1626 gomp_team_barrier_set_waiting_for_tasks,
1627 gomp_team_barrier_waiting_for_tasks,
1628 gomp_team_barrier_done): New inlines.
1629 (gomp_barrier_wait_end): Change second argument to
1630 gomp_barrier_state_t.
1631 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1633 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1634 (gomp_barrier_wait_end): Change second argument to
1635 gomp_barrier_state_t.
1636 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1637 gomp_team_barrier_wake): New functions.
1638 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1640 (gomp_futex_wake, gomp_futex_wait): New variables.
1641 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1642 * config/linux/lock.c: Rewrite to make locks task owned,
1643 for backwards compatibility provide the old entrypoints
1644 if symbol versioning. Include wait.h instead of libgomp.h and
1646 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1647 * config/posix95/lock.c: Rewrite to make locks task owned,
1648 for backwards compatibility provide the old entrypoints
1649 if symbol versioning.
1650 * config/posix/lock.c: Rewrite to make locks task owned,
1651 for backwards compatibility provide the old entrypoints
1652 if symbol versioning.
1653 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1654 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1655 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1656 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1657 (sys_futex0): Return error code.
1658 (futex_wake, futex_wait): If ENOSYS was returned, clear
1659 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1660 (cpu_relax, atomic_write_barrier): New static inlines.
1661 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1662 (futex_wake, futex_wait): If ENOSYS was returned, clear
1663 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1664 (cpu_relax, atomic_write_barrier): New static inlines.
1665 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1666 (sys_futex0): Return error code.
1667 (futex_wake, futex_wait): If ENOSYS was returned, clear
1668 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1669 (cpu_relax, atomic_write_barrier): New static inlines.
1670 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1671 (sys_futex0): Return error code.
1672 (futex_wake, futex_wait): If ENOSYS was returned, clear
1673 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1674 (cpu_relax, atomic_write_barrier): New static inlines.
1675 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1676 (sys_futex0): Return error code.
1677 (futex_wake, futex_wait): If ENOSYS was returned, clear
1678 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1679 (cpu_relax, atomic_write_barrier): New static inlines.
1680 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1681 (sys_futex0): Return error code.
1682 (futex_wake, futex_wait): If ENOSYS was returned, clear
1683 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1684 (cpu_relax, atomic_write_barrier): New static inlines.
1685 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1687 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1688 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1689 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1691 (omp_nest_lock_t): Change owner into void *, add lock field.
1692 * config/posix95/omp-lock.h: Include semaphore.h.
1693 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1694 (omp_lock_t): Use sem_t instead of mutex if semaphores
1696 (omp_nest_lock_t): Likewise. Change owner to void *.
1697 * config/posix/omp-lock.h: Include semaphore.h.
1698 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1699 (omp_lock_t): Use sem_t instead of mutex if semaphores
1701 (omp_nest_lock_t): Likewise. Add owner field.
1703 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1705 * testsuite/libgomp.c/collapse-1.c: New test.
1706 * testsuite/libgomp.c/collapse-2.c: New test.
1707 * testsuite/libgomp.c/collapse-3.c: New test.
1708 * testsuite/libgomp.c/icv-1.c: New test.
1709 * testsuite/libgomp.c/icv-2.c: New test.
1710 * testsuite/libgomp.c/lib-2.c: New test.
1711 * testsuite/libgomp.c/lock-1.c: New test.
1712 * testsuite/libgomp.c/lock-2.c: New test.
1713 * testsuite/libgomp.c/lock-3.c: New test.
1714 * testsuite/libgomp.c/loop-4.c: New test.
1715 * testsuite/libgomp.c/loop-5.c: New test.
1716 * testsuite/libgomp.c/loop-6.c: New test.
1717 * testsuite/libgomp.c/loop-7.c: New test.
1718 * testsuite/libgomp.c/loop-8.c: New test.
1719 * testsuite/libgomp.c/loop-9.c: New test.
1720 * testsuite/libgomp.c/nested-3.c: New test.
1721 * testsuite/libgomp.c/nestedfn-6.c: New test.
1722 * testsuite/libgomp.c/sort-1.c: New test.
1723 * testsuite/libgomp.c/task-1.c: New test.
1724 * testsuite/libgomp.c/task-2.c: New test.
1725 * testsuite/libgomp.c/task-3.c: New test.
1726 * testsuite/libgomp.c/task-4.c: New test.
1727 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1728 to C++ testsuite default compiler options.
1729 * testsuite/libgomp.c++/collapse-1.C: New test.
1730 * testsuite/libgomp.c++/collapse-2.C: New test.
1731 * testsuite/libgomp.c++/ctor-10.C: New test.
1732 * testsuite/libgomp.c++/for-1.C: New test.
1733 * testsuite/libgomp.c++/for-2.C: New test.
1734 * testsuite/libgomp.c++/for-3.C: New test.
1735 * testsuite/libgomp.c++/for-4.C: New test.
1736 * testsuite/libgomp.c++/for-5.C: New test.
1737 * testsuite/libgomp.c++/loop-8.C: New test.
1738 * testsuite/libgomp.c++/loop-9.C: New test.
1739 * testsuite/libgomp.c++/loop-10.C: New test.
1740 * testsuite/libgomp.c++/task-1.C: New test.
1741 * testsuite/libgomp.c++/task-2.C: New test.
1742 * testsuite/libgomp.c++/task-3.C: New test.
1743 * testsuite/libgomp.c++/task-4.C: New test.
1744 * testsuite/libgomp.c++/task-5.C: New test.
1745 * testsuite/libgomp.c++/task-6.C: New test.
1746 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1747 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1748 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1749 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1750 * testsuite/libgomp.fortran/collapse1.f90: New test.
1751 * testsuite/libgomp.fortran/collapse2.f90: New test.
1752 * testsuite/libgomp.fortran/collapse3.f90: New test.
1753 * testsuite/libgomp.fortran/collapse4.f90: New test.
1754 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1755 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1756 * testsuite/libgomp.fortran/lib4.f90: New test.
1757 * testsuite/libgomp.fortran/lock-1.f90: New test.
1758 * testsuite/libgomp.fortran/lock-2.f90: New test.
1759 * testsuite/libgomp.fortran/nested1.f90: New test.
1760 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1761 * testsuite/libgomp.fortran/strassen.f90: New test.
1762 * testsuite/libgomp.fortran/tabs1.f90: New test.
1763 * testsuite/libgomp.fortran/tabs2.f: New test.
1764 * testsuite/libgomp.fortran/task1.f90: New test.
1765 * testsuite/libgomp.fortran/task2.f90: New test.
1766 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1767 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1768 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1769 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1770 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1772 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1775 * testsuite/libgomp.c++/ctor-11.C: New test.
1776 * testsuite/libgomp.c++/ctor-12.C: New test.
1778 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1780 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1782 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1785 * testsuite/libgomp.c/atomic-5.c: New test.
1786 * testsuite/libgomp.c/atomic-6.c: New test.
1787 * testsuite/libgomp.c/autopar-1.c: New test.
1789 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1791 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1792 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1793 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1794 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1795 * configure: Regenerate.
1796 * Makefile.in, testsuite/Makefile.in: Likewise.
1798 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1801 * aclocal.m4: Regenerate.
1802 * configure: Regenerate.
1804 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1807 * testsuite/libgomp.c/atomic-4.c: New test.
1810 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1811 (gomp_iter_guided_next): Likewise.
1812 * testsuite/libgomp.c/pr35625.c: New test.
1814 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1816 * aclocal.m4: Regenerate.
1817 * configure: Likewise.
1818 * Makefile.in: Likewise.
1819 * testsuite/Makefile.in: Likewise.
1821 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1824 * testsuite/libgomp.c++/pr35185.C: New test.
1826 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1829 * testsuite/libgomp.c/pr35549.c: New test.
1831 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1833 * testsuite/libgomp.c/atomic-3.c: New test.
1835 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1838 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1841 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1844 * configure.ac: Add ACX_HEADER_STRING.
1845 * env.c: Include strings.h.
1846 * aclocal.m4: Regenerate.
1847 * config.h.in: Regenerate.
1848 * configure: Regenerate.
1849 * Makefile.in: Regenerate.
1850 * testsuite/Makefile.in: Regenerate.
1852 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1855 * testsuite/libgomp.c/pr35196.c: New test.
1858 * testsuite/libgomp.fortran/pr35130.f90: New test.
1859 * testsuite/libgomp.c/pr35130.c: New test.
1861 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1864 * testsuite/libgomp.c/pr33880.c: New test.
1865 * testsuite/libgomp.fortran/pr33880.f90: New test.
1867 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1869 * configure: Regenerate.
1871 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1873 * configure.ac: Move futex checking into ../config/futex.m4.
1874 * configure: Rebuilt.
1875 * aclocal.m4: Rebuilt.
1876 * Makefile.in: Rebuilt.
1878 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1879 2007-10-15 ../config/tls.m4 change.
1881 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1884 * testsuite/libgomp.c/pr34513.c: New test.
1885 * testsuite/libgomp.c++/pr34513.C: New test.
1887 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1890 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1892 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1894 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1896 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1898 * testsuite/libgomp.c/private-1.c: New test.
1900 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1901 Paolo Bonzini <bonzini@gnu.org>
1903 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1904 instead of 'VPATH ='.
1905 * Makefile.in: Regenerate.
1907 2007-11-23 Matthias Klose <doko@ubuntu.com>
1909 * configure.ac: Adjust makeinfo version check.
1910 * configure: Regenerate.
1912 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1915 * testsuite/libgomp.fortran/pr34020.f90: New test.
1917 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1920 * testsuite/libgomp.c++/atomic-1.C: New test.
1922 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1925 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1926 Make x and y integers rather than (implicit) reals. Add private (j)
1927 clause to the last omp parallel.
1929 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1931 * configure: Regenerate following changes to ../config/tls.m4.
1933 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1935 * testsuite/libgomp.fortran/stack.f90: New test.
1937 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1939 * config/mingw32/proc.c: New file.
1941 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1943 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1944 (main): Use __get_cpuid to get i386 target fetaures.
1945 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1946 (main): Use __get_cpuid to get x86_64 target fetaures.
1948 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1951 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1952 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1954 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1957 * testsuite/libgomp.fortran/pr32550.f90: New test.
1958 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1960 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1962 * aclocal.m4: Regenerated.
1964 2007-07-05 Tobias Burnus <burnus@net-b.de>
1967 * testsuite/libgomp.fortran/pr32359.f90: New.
1969 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1972 * sections.c (GOMP_parallel_sections_start): Only decrease
1973 number of threads to COUNT if dyn_var is true.
1974 * testsuite/libgomp.c/pr32468.c: New test.
1976 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1979 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1981 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1984 * testsuite/libgomp.c/pr32362-1.c: New test.
1985 * testsuite/libgomp.c/pr32362-2.c: New test.
1986 * testsuite/libgomp.c/pr32362-3.c: New test.
1988 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1990 * team.c (gomp_team_start): Fix setting up thread_attr
1993 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1995 * configure: Regenerate.
1997 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1999 * Makefile.in: Regenerate.
2000 * configure: Regenerate.
2001 * aclocal.m4: Regenerate.
2002 * testsuite/Makefile.in: Regenerate.
2004 2007-05-04 Jakub Jelinek <jakub@redhat.com>
2006 * config/linux/proc.c: New file.
2009 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2011 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
2013 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2015 2007-04-16 Matthias Klose <doko@debian.org>
2017 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2018 flags if not building with -m64.
2019 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2020 flag for i?86-*-* targets, if current target matches -m64.
2022 2007-04-14 Steve Ellcey <sje@cup.hp.com>
2024 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2025 * Makefile.in: Regenerate.
2027 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2030 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2032 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2034 2007-04-04 Jakub Jelinek <jakub@redhat.com>
2036 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2038 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2039 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2040 (parse_affinity): New function.
2041 (initialize_env): Call it and gomp_init_affinity.
2042 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2043 create new pthread_attr_t and call gomp_init_thread_affinity
2044 on it for each thread before passing the attribute to pthread_create.
2045 * config/linux/affinity.c: New file.
2046 * config/posix/affinity.c: New file.
2047 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2048 * configure: Rebuilt.
2049 * config.h.in: Rebuilt.
2050 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2051 * Makefile.in: Rebuilt.
2053 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
2055 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2057 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2058 and use it if found.
2060 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
2062 * testsuite/config/default.exp: New file.
2063 * testsuite/lib/libgomp.exp: New file.
2064 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2065 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2066 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2067 (libgomp_load): Remove.
2068 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2069 always_ld_library_path, not ld_library_path. Set additional_flags
2070 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2071 (target_compile): Do not call libgomp_init. Append lang_library_path
2072 and lang_link_flags to options.
2073 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2074 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2076 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2077 always_ld_library_path. Set LD_LIBRARY_PATH here.
2078 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2079 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2080 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2082 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2083 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2084 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2085 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2086 * testsuite/libgomp.c/atomic-10.c: Ditto.
2088 2007-03-21 Jakub Jelinek <jakub@redhat.com>
2090 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2091 dg-final cleanup-modules line.
2092 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2093 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2094 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2095 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2096 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2097 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2098 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2100 2007-03-18 Andreas Schwab <schwab@suse.de>
2102 * acinclude.m4: Adjust regular expression for ld version
2104 * configure: Regenerate.
2106 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2108 * Makefile.am: Add install-pdf target as copied from
2109 automake v1.10 rules.
2110 * Makefile.in: Regenerate
2112 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2115 * configure: Regenerate.
2118 * testsuite/libgomp.c++/pr30703.C: New test.
2120 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2123 2006-07-05 Eric Christopher <echristo@apple.com>
2124 * configure.ac: Depend addition of -pthread on host OS.
2125 * configure: Regenerate.
2127 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2129 * libgomp.texi: Fix spacing after abbreviations.
2131 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2134 * configure.ac: Add check for makeinfo
2135 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2136 if an appropiate version of makeinfo is found.
2137 * aclocal.m4: Regenerated.
2138 * configure: Regenerated.
2139 * Makefile.in: Regenerated.
2140 * testsuite/Makefile.in: Regenerated.
2142 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2145 * libgomp.texi: More about implementation-dependent settings.
2147 2007-01-26 Tobias Burnus <burnus@net-b.de>
2149 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2151 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2154 * testsuite/libgomp.c/pr30494.c: New test.
2156 2007-01-15 Tom Tromey <tromey@redhat.com>
2158 * configure: Rebuilt.
2159 * configure.ac: Fixed comment.
2161 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2163 * libgomp.texi: Document implementation specific default values of
2164 environment variables.
2166 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2169 * libgomp.texi: New file.
2170 * configure.ac: Add --enable-generated-files-in-srcdir option.
2171 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2173 * Makefile.in: Regenerated.
2174 * config.h.in: Regenerated.
2175 * testsuite/Makefile.in: Regenerated.
2178 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2181 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2183 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2185 * configure: Regenerate.
2187 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2190 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2191 start if there shouldn't be any loop iterations.
2192 (gomp_loop_ordered_static_start): Remove start == end test.
2193 * testsuite/libgomp.c/pr29947-1.c: New test.
2194 * testsuite/libgomp.c/pr29947-2.c: New test.
2196 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2198 * configure.tgt: Force initial-exec TLS model on Linux only.
2200 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2202 * configure: Regenerated.
2204 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2206 * env.c (parse_schedule): Reject out of range values.
2207 (parse_unsigned_long): Reject out of range, negative or zero values.
2209 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2212 * testsuite/libgomp.fortran/pr29629.f90: New test.
2214 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2217 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2218 * config/posix95: New directory.
2219 * config/posix95/omp-lock.h: New file.
2220 * config/posix95/lock.c: Likewise.
2222 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2224 * aclocal.m4: Regenerate.
2225 * configure: Regenerate.
2227 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2229 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2232 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2234 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2236 * configure: Regenerate.
2237 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2239 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2243 * testsuite/libgomp.c/nestedfn-4.c: New test.
2244 * testsuite/libgomp.c/nestedfn-5.c: New test.
2245 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2248 * testsuite/libgomp.fortran/condinc1.f: New test.
2249 * testsuite/libgomp.fortran/condinc2.f: New test.
2250 * testsuite/libgomp.fortran/condinc3.f90: New test.
2251 * testsuite/libgomp.fortran/condinc4.f90: New test.
2252 * testsuite/libgomp.fortran/condinc1.inc: New file.
2254 2006-09-18 Tom Tromey <tromey@redhat.com>
2256 * configure: Rebuilt.
2258 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2261 PR preprocessor/14634
2262 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2264 * configure: Regenerate.
2266 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2268 * testsuite/libgomp.fortran/reduction3.f90: Change
2269 -2147483648 to -huge(i)-1 to avoid overflow.
2270 * testsuite/libgomp.fortran/reduction4.f90: Change
2271 Z'ffffffff' to not(0) to avoid overflow.
2273 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2276 * Makefile.am (libsubincludedir): New.
2277 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2278 * Makefile.in: Regenerate.
2280 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2283 * env.c: Include ctype.h.
2284 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2285 leading and/or trailing whitespace and compare strings case
2288 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2291 * testsuite/libgomp.fortran/pr28390.f: New test.
2293 2006-07-05 Eric Christopher <echristo@apple.com>
2295 * configure.ac: Depend addition of -pthread on host OS.
2296 * configure: Regenerate.
2298 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2300 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2301 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2304 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2308 * configure.ac: If neither --enable-linux-futex nor
2309 --disable-linux-futex is passed, determine the default by checking
2310 for compiling and/or running against NPTL. With --enable-linux-futex,
2311 check if SYS_gettid and SYS_futex are defined.
2312 * configure: Rebuilt.
2314 2006-06-14 Richard Henderson <rth@redhat.com>
2317 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2318 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2320 2006-06-09 Richard Henderson <rth@redhat.com>
2322 * env.c (gomp_nthreads_var): Change to unsigned long.
2323 (gomp_run_sched_chunk): Likewise.
2324 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2325 (initialize_env): Initialize gomp_thread_attr.
2326 * libgomp.h (gomp_nthreads_var): Update decl.
2327 (gomp_run_sched_chunk): Likewise.
2328 (gomp_thread_attr): Declare.
2329 * team.c (gomp_thread_attr): Export.
2330 (initialize_team): Don't initialize it.
2332 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2335 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2336 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2338 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2340 * config/mingw32/time.c: New file.
2341 * configure.tgt: Use it.
2343 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2345 * Makefile.am: Add install-html target. Add install-html to .PHONY
2346 * Makefile.in: Regenerate.
2348 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2351 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2352 * testsuite/libgomp.c/critical-1.c: Likewise.
2353 * testsuite/libgomp.c/loop-1.c: Likewise.
2354 * testsuite/libgomp.c/loop-2.c: Likewise.
2355 * testsuite/libgomp.c/single-1.c: Likewise.
2356 * testsuite/libgomp.c/ordered-1.c: Likewise.
2357 * testsuite/libgomp.c/ordered-2.c: Likewise.
2359 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2362 * libgomp.fortran/pr27416-1.f90: New test.
2364 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2367 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2368 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2370 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2373 * testsuite/libgomp.c/pr26943-1.c: New test.
2374 * testsuite/libgomp.c/pr26943-2.c: New test.
2375 * testsuite/libgomp.c/pr26943-3.c: New test.
2376 * testsuite/libgomp.c/pr26943-4.c: New test.
2377 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2378 * testsuite/libgomp.c++/pr26943.C: New test.
2380 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2383 * testsuite/libgomp.c++/pr27337.C: New test.
2385 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2388 * testsuite/libgomp.c/pr26171.c: New test.
2390 2006-04-25 Richard Henderson <rth@redhat.com>
2393 * configure.ac: Use GCC_CHECK_TLS.
2394 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2395 * Makefile.in, aclocal.m4, configure: Regenerate.
2397 2006-04-10 Matthias Klose <doko@debian.org>
2399 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2400 directory names containing underscores.
2402 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2405 * testsuite/libgomp.c++/pr26691.C: New test.
2407 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2409 * testsuite/libgomp.fortran/retval2.f90: New test.
2411 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2413 * testsuite/libgomp.c++: New directory.
2415 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2417 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2418 * config/posix/sem.c: Implement the above.
2420 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2422 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2423 define HAVE_BROKEN_POSIX_SEMAPHORES.
2424 * configure: Rebuilt.
2425 * config.h.in: Rebuilt.
2427 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2430 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2431 for the other pthread check.
2432 * configure: Regenerate.
2433 * config.h.in: Regenerate.
2435 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2439 * Makefile.am (fincludedir): New variable.
2440 (nodist_include_HEADERS): Remove Fortran files.
2441 (nodist_finclude_HEADERS): New variable.
2442 * Makefile.in: Regenerated.
2444 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2446 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2447 Remove tests for returning assumed character length arrays.
2449 2006-02-12 Roger Sayle <roger@eyesopen.com>
2450 John David Anglin <dave@hiauly1.hia.nrc.ca>
2453 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2455 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2457 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2459 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2461 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2462 part of LD_LIBRARY_PATH manually.
2464 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2467 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2470 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2473 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2474 * configure.ac (PERL): Don't set.
2475 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2476 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2477 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2478 * omp.h.in: Wrap the new configure substitutions with @ characters.
2479 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2480 * aclocal.m4, configure, Makefile.in: Regenerate.
2481 * mkomp_h.pl: Delete.
2483 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2486 * configure.ac: Use GCC_HEADER_STDINT.
2487 * libgomp.h: Include gstdint.h.
2488 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2489 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2491 2006-01-24 Richard Henderson <rth@redhat.com>
2494 * configure.ac: Add AM_MAINTAINER_MODE.
2495 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2497 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2499 * Makefile.in: Regenerate.
2500 * testsuite/Makefile.in: Regenerate.
2501 * aclocal.m4: Regenerate.
2503 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2505 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2507 * configure.ac: Add check for loadavg.h.
2508 (link_gomp): Adjust comment.
2509 * configure: Regenerate.
2510 * config.h.in: Regenerate.
2512 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2515 * configure.ac: Remove check for alloca.h.
2516 * configure: Regenerate.
2517 * config.h.in: Regenerate.
2518 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2519 * team.c: Remove use of alloca.h.
2520 Call gomp_alloca instead of alloca.
2522 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2525 * team.c: Add include of alloca.h.
2526 * configure.ac: Add check for alloca.h.
2527 * configure: Regenerate.
2528 * config.h.in: Regenerate.
2530 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2533 * testsuite/libgomp.fortran/pr25219.f90: New test.
2535 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2537 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2538 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2539 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2540 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2541 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2542 testsuite/libgomp.fortran/threadprivate1.f90,
2543 testsuite/libgomp.fortran/threadprivate2.f90,
2544 testsuite/libgomp.fortran/threadprivate3.f90,
2545 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2546 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2547 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2548 effective-target to TLS runtime.
2550 * testsuite/libgomp.fortran/pr25162.f: Require
2551 effective-target TLS runtime.
2553 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2555 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2556 * testsuite/libgomp.c/nestedfn-3.c: New test.
2558 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2561 * testsuite/libgomp.fortran/pr25162.f: New test.
2563 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2565 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2566 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2568 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2570 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2571 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2572 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2573 single.c, team.c, work.c, config/linux/alpha/futex.h,
2574 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2575 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2576 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2577 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2578 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2579 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2580 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2583 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2585 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2586 to nodist_noinst_HEADERS.
2587 * Makefile.in: Rebuilt.
2589 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2590 add integer count field.
2591 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2592 omp_nest_lock_t type change.
2593 (omp_init_nest_lock): Likewise. Initialize count to 0.
2594 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2596 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2598 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2599 Increment count if successful and return the new nesting level.
2600 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2601 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2602 * testsuite/libgomp.c/lib-1.c: New test.
2603 * testsuite/libgomp.fortran/lib1.f90: New test.
2604 * testsuite/libgomp.fortran/lib2.f: New test.
2605 * testsuite/libgomp.fortran/lib3.f: New test.
2607 2005-11-17 Richard Henderson <rth@redhat.com>
2610 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2611 * configure.ac (link_gomp): New. Substitute it.
2612 (AC_CONFIG_FILES): Add libgomp.spec.
2613 * libgomp.spec.in: New file.
2614 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2615 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2617 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2619 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2620 reduction(-:var) behaving the same as reduction(+:var).
2621 * testsuite/libgomp.c/reduction-4.c: New test.
2623 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2625 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2626 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2627 testsuite/libgomp.c/copyin-3.c,
2628 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2629 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2630 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2631 testsuite/libgomp.c++/pr24455.C,
2632 testsuite/libgomp.fortran/threadprivate1.f90,
2633 testsuite/libgomp.fortran/threadprivate2.f90,
2634 testsuite/libgomp.fortran/threadprivate3.f90,
2635 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2636 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2637 testsuite/libgomp.fortran/omp_parse3.f90: Require
2638 effective-target TLS.
2640 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2644 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2647 * team.c (initialize_team): Pass NULL rather than free as
2648 pthread_key_create destructor. Initialize thread specific data
2649 pointer in initial thread to a static local variable rather than
2652 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2654 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2655 its location to ld_library_path.
2657 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2659 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2661 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2663 * testsuite/libgomp.c: Rename from libgomp.dg.
2665 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2667 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2668 threadprivate variable 'i'.
2670 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2672 * config/linux/s390/futex.h: New file.
2673 * configure.tgt: Use it.
2675 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2676 before the parallel.
2678 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2681 * testsuite/libgomp.c++/master-1.C: New test.
2683 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2685 * testsuite/libgomp.dg/copyin-3.c: New test.
2687 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2689 * testsuite/libgomp.fortran/retval1.f90: New test.
2690 * testsuite/libgomp.fortran/vla7.f90: New test.
2692 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2694 * testsuite/libgomp.fortran/vla2.f90: New test.
2695 * testsuite/libgomp.fortran/vla3.f90: New test.
2696 * testsuite/libgomp.fortran/vla4.f90: New test.
2697 * testsuite/libgomp.fortran/vla5.f90: New test.
2698 * testsuite/libgomp.fortran/vla6.f90: New test.
2700 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2702 * config/linux/sparc/futex.h: New file.
2703 * configure.tgt: Use it.
2704 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2706 * critical.c: Include stdlib.h.
2707 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2708 ignoring return value.
2709 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2710 LIBGOMP_CHECK_SYNC_BUILTINS check.
2711 * configure: Rebuilt.
2713 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2715 * testsuite/libgomp.fortran/vla1.f90: New test.
2717 2005-10-31 Richard Henderson <rth@redhat.com>
2719 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2720 setting 's' in different threads.
2722 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2724 * libgomp.h (attribute_hidden, ialias): Define.
2725 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2726 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2727 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2728 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2729 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2730 omp_test_lock, omp_test_nest_lock): Likewise.
2731 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2732 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2733 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2734 omp_test_lock, omp_test_nest_lock): Likewise.
2735 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2736 omp_get_dynamic, omp_get_nested): Likewise.
2737 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2738 omp_get_thread_num, omp_in_parallel): Likewise.
2739 * fortran.c (ialias_redirect): Define.
2740 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2741 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2742 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2743 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2744 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2745 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2746 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2747 omp_get_wtime): Add ialias_redirect.
2749 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2751 * fortran.c: Include stdlib.h.
2753 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2755 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2756 * Makefile.in: Regenerated.
2758 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2760 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2761 * libgomp_f.h.in (omp_check_defines): New function.
2762 * env.c: Include libgomp_f.h.
2763 (initialize_env): Call omp_check_defines.
2765 * testsuite/libgomp.dg/copyin-2.c: New test.
2766 * testsuite/libgomp.c++/copyin-2.C: New test.
2767 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2769 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2770 * testsuite/libgomp.fortran/sharing2.f90: New test.
2772 * testsuite/libgomp.dg/copyin-1.c: New test.
2773 * testsuite/libgomp.c++/copyin-1.C: New test.
2775 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2777 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2779 * testsuite/libgomp.fortran/workshare1.f90: New test.
2781 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2783 * libgomp.fortran/sharing1.f90: New test.
2785 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2788 * testsuite/libgomp.c++/loop-7.C: New test.
2790 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2792 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2793 * testsuite/libgomp.fortran/reduction6.f90: New test.
2794 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2796 2005-10-23 Richard Henderson <rth@redhat.com>
2798 * testsuite/libgomp.c++/ctor-1.C: New.
2799 * testsuite/libgomp.c++/ctor-2.C: New.
2800 * testsuite/libgomp.c++/ctor-3.C: New.
2801 * testsuite/libgomp.c++/ctor-4.C: New.
2802 * testsuite/libgomp.c++/ctor-5.C: New.
2803 * testsuite/libgomp.c++/ctor-6.C: New.
2804 * testsuite/libgomp.c++/ctor-7.C: New.
2805 * testsuite/libgomp.c++/ctor-8.C: New.
2806 * testsuite/libgomp.c++/ctor-9.C: New.
2808 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2811 * testsuite/libgomp.c++/pr24455-1.C: New test.
2812 * testsuite/libgomp.c++/pr24455.C: New test.
2813 * testsuite/libgomp.dg/pr24455-1.c: New test.
2814 * testsuite/libgomp.dg/pr24455.c: New test.
2816 2005-10-20 Richard Henderson <rth@redhat.com>
2818 * testsuite/libgomp.c++/loop-6.C: New.
2819 * testsuite/libgomp.dg/loop-3.c: New.
2821 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2823 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2825 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2828 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2830 * testsuite/libgomp.fortran/jacobi.f: New test.
2832 2005-10-19 Richard Henderson <rth@redhat.com>
2834 * configure.tgt (i?86-linux): Default to with_arch instead of
2835 CFLAGS. Add -mtune to match target_cpu.
2836 (x86_64-linux): Tune to i686.
2838 * fortran.c (omp_test_nest_lock_): Fix typo.
2840 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2842 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2843 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2844 * testsuite/libgomp.dg/ordered-3.c: New test.
2846 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2847 Remove volatile keyword.
2849 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2850 in COMMON block to avoid warnings on 64-bit targets.
2852 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2854 * testsuite/libgomp.dg/shared-3.c: New test.
2856 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2858 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2859 * testsuite/libgomp.fortran/reduction5.f90: New test.
2861 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2863 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2865 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2866 flush loop now that __sync_synchronize has proper memory barrier.
2867 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2868 Add -ffixed-form to dg-options.
2870 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2872 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2873 from subdirectories.
2874 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2875 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2876 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2877 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2878 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2879 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2880 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2881 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2882 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2883 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2884 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2885 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2886 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2887 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2888 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2889 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2890 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2891 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2892 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2893 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2894 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2895 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2896 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2897 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2898 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2900 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2902 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2903 lang_library_path exists. Use find instead of glob to gather tests.
2904 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2906 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2908 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2909 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2910 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2911 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2912 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2913 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2914 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2915 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2916 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2917 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2918 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2919 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2920 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2922 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2924 * testsuite/libgomp.dg/vla-1.c: New test.
2926 * testsuite/libgomp.fortran/reference2.f90: New test.
2928 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2929 declaration of omp_get_thread_num.
2930 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2933 * testsuite/libgomp.fortran/reduction1.f90: New test.
2934 * testsuite/libgomp.fortran/reduction2.f90: New test.
2935 * testsuite/libgomp.fortran/reduction3.f90: New test.
2936 * testsuite/libgomp.fortran/reduction4.f90: New test.
2938 2005-10-13 Richard Henderson <rth@redhat.com>
2940 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2941 * Makefile.in: Regenerate.
2942 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2943 * libgomp.h: Include bar.h.
2944 (struct gomp_barrier): Remove.
2945 (struct gomp_team): Add barrier. Replace master_barrier with
2946 master_release. Replace threads with ordered_release.
2947 (struct gomp_thread): Replace barrier with release.
2948 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2949 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2950 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2951 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2952 (GOMP_single_copy_end): Likewise.
2953 * team.c (gomp_threads_dock): New.
2954 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2955 (gomp_thread_start): Use gomp_barrier_wait.
2956 (new_team, free_team): Update for gomp_team changes.
2957 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2958 (gomp_team_end): Use gomp_barrier_wait.
2959 (initialize_team): Update for gomp_thread changes.
2960 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2961 (gomp_work_share_end_nowait): Use atomic ops when available.
2962 * config/linux/bar.c, config/linux/bar.h: New files.
2963 * config/posix/bar.c, config/posix/bar.h: New files.
2965 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2967 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2968 * testsuite/libgomp.dg/single-2.c: New test.
2970 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2971 lang_link_flags): Unset, so that they aren't inherited from previously
2974 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2976 2005-10-12 Richard Henderson <rth@redhat.com>
2978 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2979 (libgomp_init): Use lang_test_file, lang_library_path, and
2980 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2982 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2983 (lang_test_file, lang_link_flags): New.
2984 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2986 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2987 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2988 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2989 testsuite/libgomp.c++/parallel-1.C,
2990 testsuite/libgomp.c++/reduction-1.C,
2991 testsuite/libgomp.c++/reduction-2.C,
2992 testsuite/libgomp.c++/reduction-3.C,
2993 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2994 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2995 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2996 New files, largely cribbed from the C testsuite.
2998 2005-10-12 Jakub Jelinek <jakub@redhat.com>
3000 * testsuite/libgomp.fortran/character1.f90: New test.
3001 * testsuite/libgomp.fortran/character2.f90: New test.
3003 * testsuite/libgomp.dg/nested-1.c: New test.
3004 * testsuite/libgomp.dg/nested-2.c: New test.
3005 * testsuite/libgomp.fortran/do1.f90: New test.
3006 * testsuite/libgomp.fortran/do2.f90: New test.
3008 * testsuite/libgomp.fortran/reference1.f90: New test.
3010 2005-10-11 Jakub Jelinek <jakub@redhat.com>
3012 * testsuite/libgomp.dg/reduction-1.c: New test.
3013 * testsuite/libgomp.dg/reduction-2.c: New test.
3014 * testsuite/libgomp.dg/reduction-3.c: New test.
3016 2005-10-10 Jakub Jelinek <jakub@redhat.com>
3018 * testsuite/libgomp.dg/atomic-1.c: New test.
3019 * testsuite/libgomp.dg/atomic-2.c: New test.
3021 2005-10-09 Richard Henderson <rth@redhat.com>
3023 * critical.c (atomic_lock): New.
3024 (initialize_critical): Initialize it.
3025 (GOMP_atomic_start, GOMP_atomic_end): New.
3026 * libgomp.map: Export them.
3027 * libgomp_g.h: Declare them.
3029 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3031 2005-10-02 Richard Henderson <rth@redhat.com>
3033 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3034 to XCFLAGS instead of CFLAGS.
3036 2005-09-30 Richard Henderson <rth@redhat.com>
3038 * configure.ac: Determine whether -pthread or -lpthread is needed.
3039 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3040 * Makefine.in, configure: Rebuild.
3042 2005-09-28 Richard Henderson <rth@redhat.com>
3044 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3045 * testsuite/libgomp.dg/omp-single-3.c: New test.
3047 2005-09-28 Diego Novillo <dnovillo@redhat.com>
3049 * testsuite/libgomp.dg/omp-single-2.c: New test.
3050 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3052 2005-09-27 Richard Henderson <rth@redhat.com>
3054 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3055 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3057 2005-09-27 Jakub Jelinek <jakub@redhat.com>
3059 * testsuite/libgomp.dg/omp-loop03.c: New test.
3061 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3063 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3065 2005-09-27 Diego Novillo <dnovillo@redhat.com>
3067 * testsuite/libgomp.dg/omp-single-1.c: New test.
3068 * testsuite/libgomp.dg/shared-1.c: Return 0.
3069 Add prototype for abort.
3070 * testsuite/libgomp.dg/shared-2.c: Likewise.
3072 2005-09-26 Jakub Jelinek <jakub@redhat.com>
3074 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3077 2005-09-26 Diego Novillo <dnovillo@redhat.com>
3079 * testsuite/libgomp.dg/shared-1.c: New test.
3080 * testsuite/libgomp.dg/shared-2.c: New test.
3082 2005-09-24 Richard Henderson <rth@redhat.com>
3084 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3086 2005-09-24 Richard Henderson <rth@redhat.com>
3088 * iter.c (gomp_iter_static_next): Round up when computing number
3089 of iterations. Don't bother distributing a remainder equally.
3091 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3092 Don't call srand. Zero b before testing.
3095 2005-09-24 Jakub Jelinek <jakub@redhat.com>
3097 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3098 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3100 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3102 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3103 without !$omp end do, followed immediately by subroutine end.
3105 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3107 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3109 2005-09-22 Richard Henderson <rth@redhat.com>
3111 * critical.c (GOMP_critical_name_start): Change argument to void**.
3112 Reuse the pointer space if the mutex fits.
3113 (GOMP_critical_name_end): Likewise.
3114 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3115 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3116 (GOMP_critical_name_end): Likewise.
3117 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3118 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3120 2005-09-20 Richard Henderson <rth@redhat.com>
3122 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3123 (create_lock_lock): New.
3124 (initialize_critical): Initialize it.
3125 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3126 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3128 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3130 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3132 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3134 * testsuite/libgomp.dg/omp-loop01.c: New test.
3135 * testsuite/libgomp.dg/omp-loop02.c: New test.
3137 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3139 * configure.ac (AC_PROG_FC): Add.
3140 (USE_FORTRAN): New automake conditional.
3141 * configure: Rebuilt.
3142 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3143 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3144 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3145 Add rules to build them.
3146 * Makefile.in: Rebuilt.
3147 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3149 * libgomp.map: Add Fortran wrappers.
3150 * libgomp_f.h.in: New file.
3151 * omp_lib.h.in: New file.
3152 * omp_lib.f90.in: New file.
3153 * fortran.c: New file.
3154 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3155 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3156 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3157 libgfortran has been built.
3158 * testsuite/libgomp.fortran/fortran.exp: New file.
3159 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3160 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3161 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3162 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3163 * testsuite/libgomp.fortran/omp_hello.f: New test.
3164 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3165 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3166 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3167 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3168 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3169 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3170 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3171 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3173 2005-08-30 Richard Henderson <rth@redhat.com>
3175 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3176 function for when aliases are not usable.
3177 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3178 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3179 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3180 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3181 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3182 GOMP_loop_ordered_guided_next): Likewise.
3183 * ordered.c (GOMP_ordered_start): Likewise.
3185 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3187 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3188 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3189 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3190 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3191 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3192 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3193 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3194 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3195 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3197 2005-07-07 Eric Christopher <echristo@redhat.com>
3198 Diego Novillo <dnovillo@redhat.com>
3200 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3201 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3203 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3204 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3205 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3206 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3207 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3208 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3209 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3211 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3213 * TOPLEVEL.patch: Remove.
3215 2005-05-16 Richard Henderson <rth@redhat.com>
3217 * configure.ac: Test for clock_gettime.
3218 * config.h.in, configure: Rebuild.
3219 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3220 (omp_get_wtime): Use clock_gettime if available.
3221 (omp_get_wtick): Use clock_getres if available.
3223 2005-05-11 Richard Henderson <rth@redhat.com>
3225 * config/linux/ia64/futex.h: New file.
3226 * configure.tgt: Use it.
3228 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3230 2005-05-07 Richard Henderson <rth@redhat.com>
3232 * config/linux/powerpc/futex.h: New file.
3233 * configure.tgt: Use it.
3235 * config/linux/i486/futex.h: Merge ...
3236 * config/linux/x86_64/futex.h: ... into ...
3237 * config/linux/x86/futex.h: ... here.
3238 * configure.tgt: Update to match.
3240 2005-05-06 Richard Henderson <rth@redhat.com>
3242 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3243 * config/linux/i486/futex.h: Likewise.
3244 * config/linux/x86_64/futex.h: Likewise.
3246 * config/linux/lock.c: New file.
3247 * config/linux/omp-lock.h: New file.
3249 * critical.c, env.h: Don't include omp.h
3250 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3251 * config/posix/time.c: Likewise.
3252 * config/posix/omp-lock.h: New file.
3253 * libgomp.h: Include omp-lock.h and omp.h.
3254 * Makefile.am (nodist_include_HEADERS): New.
3256 * configure.ac (PERL): New.
3257 * mkomp_h.pl: New file.
3258 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3260 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3262 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3263 build directory. Re-add -march=i486 hack.
3265 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3266 (libgomp_link_flags): Remove.
3267 (libgomp_initialized): Remove.
3268 (libgomp_init): Don't protect from reinitialization. Copy code
3269 from libstdc++ for getting the multilib set correctly.
3271 2005-05-05 Richard Henderson <rth@redhat.com>
3273 * config/linux/alpha/futex.h: New file.
3274 * configure.tgt (alpha*-*-linux*): Use it.
3276 * config/posix/mutex.c: New file.
3277 * config/posix/sem.c: Use libgomp.h.
3279 * configure.tgt (x86_64-linux): Also test CC for -m32.
3280 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3282 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3285 * Makefile.am (SUBDIRS): New.
3286 (libgomp_la_LDFLAGS): Add -lpthread.
3287 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3288 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3290 * libgomp_g.h: New file.
3291 * libgomp.h: Split out all public declarations to libgomp_g.h.
3292 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3293 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3294 * config/linux/sem.h: Likewise.
3295 * config/posix/sem.h: Likewise.
3297 * Makefile.am (AM_LDFLAGS): New.
3298 (libgomp_version_script): Split out from ...
3299 (libgomp_la_LDFLAGS): ... here.
3300 (libgomp_version_info): New.
3301 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3302 (LIBGOMP_ENABLE): New.
3303 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3304 (LIBGOMP_ENABLE_SYMVERS): New.
3305 * configure.ac (AC_INIT): Version 1.0.
3306 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3307 (enable-linux-futex): Likewise. Rename from enable-futex.
3308 (libtool_VERSION): New.
3309 (LIBGOMP_ENABLE_SYMVERS): Use it.
3310 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3311 * Makefile.in, aclocal.m4, configure: Rebuild.
3313 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3314 (gomp_mutex_unlock_slow): Fix typo.
3315 * config/linux/sem.c: Similarly.
3316 (gomp_sem_post_slow): Fix typo.
3317 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3318 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3319 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3321 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3322 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3323 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3324 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3325 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3326 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3327 LDFLAGS. Pull enable_futex check to top-level.
3328 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3329 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3331 First attempt at real configury.
3332 * Makefile, config.h: Remove file.
3333 * Makefile.am, Makefile.in: New file.
3334 * acinclude.m4 aclocal.m4: New file.
3335 * configure.ac, configure.tgt, configure: New file.
3337 * config/posix/lock.c: Rename from sys-lock.c.
3338 * config/posix/mutex.h: Rename from sys-mutex.h.
3339 * config/posix/sem.c: Rename from sys-sem.c.
3340 * config/posix/sem.h: Rename from sys-sem.h.
3341 * config/posix/proc.c: Rename from sys-proc.c.
3342 * config/posix/time.c: Rename from sys-proc.c.
3344 * config/linux/mutex.c: New file.
3345 * config/linux/mutex.h: New file.
3346 * config/linux/sem.c: New file.
3347 * config/linux/sem.h: New file.
3348 * config/linux/i486/futex.h: New file.
3349 * config/linux/x86_64/futex.h: New file.
3351 2005-05-04 Richard Henderson <rth@redhat.com>
3353 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3354 * libgomp.h: Declare them.
3355 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3356 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3358 2005-05-04 Richard Henderson <rth@redhat.com>
3360 * libgomp-1 code drop
3362 2005-05-04 Richard Henderson <rth@redhat.com>
3364 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3365 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3366 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3367 (gomp_iter_static_next): Update.
3368 (gomp_ordered_static_next): Update.
3369 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3370 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3371 totally empty range.
3372 (gomp_loop_ordered_static_next): Refine test for calling
3373 gomp_ordered_static_next.
3374 * testsuite/ordered-1.c: Add case for more threads than iterations.
3376 * iter.c (gomp_iter_runtime_next_locked): Remove.
3377 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3378 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3379 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3380 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3381 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3382 gomp_loop_ordered_guided_next): Downcase name, make static, add
3383 an external alias with the old name.
3384 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3385 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3386 switch and call one of the above static functions.
3387 * libgomp.h: Update.
3389 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3390 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3391 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3392 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3393 GOMP_loop_ordered_guided_start): Update to match.
3394 * sections.c (GOMP_sections_start): Likewise.
3395 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3397 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3398 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3399 Use bounds check instead of modulus.
3400 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3401 (gomp_ordered_last): Don't sync with ordered_owner here.
3402 (gomp_ordered_next): Likewise.
3403 (gomp_ordered_static_loop_next): Likewise.
3404 * loop.c, libgomp.h: Update to match.
3406 * libgomp.h (GOMP_barrier): Declare.
3408 * testsuite/barrier-1.c: New file.
3409 * testsuite/critical-1.c: New file.
3410 * testsuite/ordered-2.c: New file.
3411 * testsuite/ordered-1.c: New file.
3412 * testsuite/sections-1.c: New file.
3413 * testsuite/single-1.c: New file.
3414 * testsuite/Makefile (TESTS): Add them.
3416 2005-05-04 Richard Henderson <rth@redhat.com>
3418 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3419 * loop.c (GOMP_loop_static_start): If not the startup thread,
3420 acquire the mutex to wait for initialization complete.
3421 (GOMP_loop_ordered_static_start): Likewise.
3422 (GOMP_loop_ordered_runtime_start): Likewise.
3423 (GOMP_loop_ordered_static_first): Remove.
3424 (GOMP_loop_ordered_dynamic_first): Remove.
3425 (GOMP_loop_ordered_guided_first): Remove.
3426 (GOMP_loop_ordered_runtime_first): Remove.
3427 * ordered.c (gomp_ordered_loop_first): Post to own release when
3428 we're the first thread.
3429 (gomp_ordered_loop_last): Wait on release if not owner.
3430 (gomp_ordered_loop_next): Likewise.
3431 (gomp_ordered_static_loop_init): New.
3432 (gomp_ordered_static_loop_next): Use ordered_owner.
3433 (GOMP_ordered_start): Likewise.
3434 * work.c (gomp_new_work_share): Initialize ordered_owner.
3436 2005-05-03 Richard Henderson <rth@redhat.com>
3438 * Makefile (OPT): New.
3441 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3442 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3443 * libgomp.h, libgomp.map, NOTES: Update to match.
3445 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3446 Add initialized and thr members.
3447 (gomp_thread_start): Pause when initially spawned to wait for
3448 the whole team to be created.
3449 (gomp_team_start): Release team members at the end.
3451 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3452 (f_foo_1): Use GOMP_loop_end.
3453 (f_foo_2): Use GOMP_loop_end_nowait.
3455 * testsuite/loop-2.c: New file.
3456 * testsuite/Makefile (TESTS): Add it.
3458 2005-05-03 Richard Henderson <rth@redhat.com>
3460 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3461 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3462 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3465 * testsuite/Makefile: New file.
3466 * testsuite/loop-1.c: New file.
3468 2005-05-03 Richard Henderson <rth@redhat.com>
3470 Initial implementation and checkin.