ChangeLog revision 1.1.1.5 1 2014-12-19 Release Manager
2
3 * GCC 4.8.4 released.
4
5 2014-12-05 Uros Bizjak <ubizjak (a] gmail.com>
6
7 * configure.tgt (x86_64): Tune -m32 multilib to generic.
8
9 2014-11-28 Jakub Jelinek <jakub (a] redhat.com>
10
11 Backported from mainline
12 2014-11-24 Jakub Jelinek <jakub (a] redhat.com>
13
14 PR fortran/63938
15 * libgomp.fortran/pr63938-1.f90: New test.
16 * libgomp.fortran/pr63938-2.f90: New test.
17
18 2014-10-03 Jakub Jelinek <jakub (a] redhat.com>
19
20 PR libgomp/61200
21 * testsuite/libgomp.c/pr61200.c: New test.
22
23 2014-05-22 Release Manager
24
25 * GCC 4.8.3 released.
26
27 2014-04-04 Bill Schmidt <wschmidt (a] linux.vnet.ibm.com>
28
29 Backport from mainline
30 2013-11-15 Ulrich Weigand <Ulrich.Weigand (a] de.ibm.com>
31
32 * configure: Regenerate.
33
34 2014-04-02 Richard Henderson <rth (a] redhat.com>
35
36 * config/linux/futex.h (futex_wait): Get error value from errno.
37 (futex_wake): Likewise.
38
39 2013-12-12 Jakub Jelinek <jakub (a] redhat.com>
40
41 PR libgomp/59467
42 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
43 !$omp parallel.
44
45 2013-10-16 Release Manager
46
47 * GCC 4.8.2 released.
48
49 2013-10-09 Jakub Jelinek <jakub (a] redhat.com>
50
51 * parallel.c (GOMP_parallel_end): Remember team->nthreads and call
52 gomp_team_end before adjusting gomp_remaining_threads_count, increment
53 gomp_remaining_threads_count instead of decrementing it again.
54 * testsuite/libgomp.c/thread-limit-1.c: New test.
55
56 2013-09-19 Jakub Jelinek <jakub (a] redhat.com>
57
58 * testsuite/libgomp.c/sections-2.c: New test.
59
60 2013-05-31 Release Manager
61
62 * GCC 4.8.1 released.
63
64 2013-05-16 Jakub Jelinek <jakub (a] redhat.com>
65
66 * testsuite/libgomp.c/loop-13.c: New test.
67 * testsuite/libgomp.c/loop-14.c: New test.
68 * testsuite/libgomp.c/loop-15.c: New test.
69 * testsuite/libgomp.c++/loop-13.C: New test.
70 * testsuite/libgomp.c++/loop-14.C: New test.
71 * testsuite/libgomp.c++/loop-15.C: New test.
72
73 2013-03-22 Release Manager
74
75 * GCC 4.8.0 released.
76
77 2013-02-06 Jakub Jelinek <jakub (a] redhat.com>
78
79 PR middle-end/56217
80 * testsuite/libgomp.c++/pr56217.C: New test.
81
82 2013-02-01 Alan Modra <amodra (a] gmail.com>
83
84 * task.c (GOMP_task, GOMP_taskwait): Comment.
85
86 2013-01-31 Dmitry Vyukov <dvyukov (a] gcc.gnu.org>
87 Joost VandeVondele <Joost.VandeVondele (a] mat.ethz.ch>
88
89 PR libgomp/55561
90 * config/linux/wait.h (do_spin): Use atomic load for addr.
91 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
92 for intptr and ptrlock.
93 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
94 for ptrlock.
95
96 2013-01-22 Alan Modra <amodra (a] gmail.com>
97
98 PR libgomp/51376
99 PR libgomp/56073
100 * task.c (GOMP_task): Revert 2011-12-09 change.
101 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
102 barrier to read task->children..
103 (gomp_barrier_handle_tasks): ..and matching atomic store with
104 release barrier here when setting parent->children to NULL.
105
106 2013-01-16 Jakub Jelinek <jakub (a] redhat.com>
107 Tobias Burnus <burnus (a] net-b.de>
108
109 PR driver/55884
110 * testsuite/libgomp.fortran/fortran.exp: Use
111 -fintrinsic-modules-path= instead of
112 -fintrinsic-modules-path.
113
114 2013-01-14 Richard Sandiford <rdsandiford (a] googlemail.com>
115
116 Update copyright years.
117
118 2012-12-19 Tobias Burnus <burnus (a] net-b.de>
119
120 * testsuite/libgomp.fortran/fortran.exp: Set
121 -fintrinsic-modules-path.
122
123 2012-12-19 Tobias Burnus <burnus (a] net-b.de>
124
125 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
126 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
127
128 2012-11-21 Jakub Jelinek <jakub (a] redhat.com>
129
130 PR libgomp/55411
131 * team.c (gomp_free_thread): Decrease gomp_managed_threads
132 if pool had any threads_used.
133
134 2012-11-07 Jack Howarth <howarth (a] bromo.med.uc.edu>
135
136 * testsuite/libgomp.c++/pr24455.C: Use
137 -Wl,-undefined,dynamic_lookup on darwin.
138
139 2012-11-07 David Edelsohn <dje.gcc (a] gmail.com>
140
141 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
142
143 2012-10-24 Dominique d'Humieres <dominiq (a] lps.ens.fr>
144
145 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
146
147 2012-10-23 Ian Bolton <ian.bolton (a] arm.com>
148 Jim MacArthur <jim.macarthur (a] arm.com>
149 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
150 Nigel Stephens <nigel.stephens (a] arm.com>
151 Ramana Radhakrishnan <ramana.radhakrishnan (a] arm.com>
152 Richard Earnshaw <rearnsha (a] arm.com>
153 Sofiane Naci <sofiane.naci (a] arm.com>
154 Stephen Thomas <stephen.thomas (a] arm.com>
155 Tejas Belagod <tejas.belagod (a] arm.com>
156 Yufeng Zhang <yufeng.zhang (a] arm.com>
157
158 * configure.tgt: Add AArch64.
159
160 2012-10-04 Jason Merrill <jason (a] redhat.com>
161
162 * testsuite/libgomp.c++/tls-init1.C: New.
163
164 2012-09-14 David Edelsohn <dje.gcc (a] gmail.com>
165
166 * configure: Regenerated.
167
168 2012-08-29 Chung-Lin Tang <cltang (a] codesourcery.com>
169
170 * config/linux/mips/futex.h (sys_futex0): Change to static
171 function with noinline, nomips16 attributes under MIPS16. Adjust
172 asm statement to place 'li v0,SYS_futex' immediately before
173 syscall insn.
174
175 2012-07-04 Sandra Loosemore <sandra (a] codesourcery.com>
176
177 * libgomp.texi (Library Index): Renamed from "Index" to prevent
178 conflict with index.html on case-insensitive file systems.
179
180 2012-07-03 Uros Bizjak <ubizjak (a] gmail.com>
181
182 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
183 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
184
185 2012-07-02 Richard Guenther <rguenther (a] suse.de>
186 Michael Matz <matz (a] suse.de>
187 Tobias Grosser <tobias (a] grosser.es>
188 Sebastian Pop <sebpop (a] gmail.com>
189
190 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
191 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
192 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
193 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
194
195 2012-06-28 Andreas Schwab <schwab (a] linux-m68k.org>
196
197 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
198
199 2012-06-22 Richard Guenther <rguenther (a] suse.de>
200
201 Merge from graphite branch
202 2012-01-13 Tobias Grosser <tobias (a] grosser.es>
203
204 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
205 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
206
207 2012-06-07 Jakub Jelinek <jakub (a] redhat.com>
208
209 PR middle-end/53580
210 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
211 use GOMP_barrier () call instead.
212 * testsuite/libgomp.c/pr26943-3.c: Likewise.
213 * testsuite/libgomp.c/pr26943-4.c: Likewise.
214 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
215 call GOMP_barrier instead.
216 * testsuite/libgomp.fortran/vla5.f90: Likewise.
217
218 2012-06-06 Jakub Jelinek <jakub (a] redhat.com>
219
220 PR libgomp/52993
221 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
222 argument to memset call.
223
224 2012-05-16 H.J. Lu <hongjiu.lu (a] intel.com>
225
226 * configure: Regenerated.
227
228 2012-04-11 Manuel Lpez-Ibez <manu (a] gcc.gnu.org>
229
230 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
231
232 2012-03-31 H.J. Lu <hongjiu.lu (a] intel.com>
233
234 PR bootstrap/52812
235 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
236
237 2012-03-22 Jakub Jelinek <jakub (a] redhat.com>
238
239 PR middle-end/52547
240 * testsuite/libgomp.c/pr52547.c: New test.
241
242 2012-03-16 Bernhard Reutner-Fischer <aldot (a] gcc.gnu.org>
243
244 * testsuite/lib/libgomp.exp: load fortran-modules.exp
245
246 2012-03-14 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
247
248 * configure.tgt (mips-sgi-irix6*): Remove.
249
250 2012-03-12 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
251
252 * configure.tgt (alpha*-dec-osf*): Remove.
253
254 * config/osf/sem.h: Remove.
255 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
256
257 2012-02-29 Eric Botcazou <ebotcazou (a] adacore.com>
258
259 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
260
261 2012-02-27 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
262
263 PR libstdc++/52188
264 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
265 Remove ENABLE_SYMVERS_SOL2.
266 * configure: Regenerate.
267 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
268 (PREPROCESS): New variable.
269 (libgomp.ver): New target.
270 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
271 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
272 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
273 Use libgomp.ver.
274 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
275 * Makefile.in: Regenerate.
276
277 2012-02-14 Walter Lee <walt (a] tilera.com>
278
279 * configure.tgt: Handle tilegx and tilepro.
280 * config/linux/tile/futex.h: New file.
281
282 2012-02-08 Richard Guenther <rguenther (a] suse.de>
283
284 PR tree-optimization/46886
285 * testsuite/libgomp.c/pr46886.c: New testcase.
286
287 2012-01-25 Matthias Klose <doko (a] ubuntu.com>
288
289 * config/linux/arm: Remove empty directory.
290 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
291
292 2011-12-09 Alan Modra <amodra (a] gmail.com>
293
294 PR libgomp/51376
295 * task.c (GOMP_taskwait): Don't access task->children outside of
296 task_lock mutex region.
297 (GOMP_task): Likewise.
298
299 2011-12-06 Jakub Jelinek <jakub (a] redhat.com>
300
301 PR libgomp/51132
302 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
303 to file scope.
304 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
305 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
306 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
307 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
308 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
309
310 2011-12-02 Alan Modra <amodra (a] gmail.com>
311
312 * config/linux/affinity.c: Use atomic rather than sync builtin.
313 * config/linux/lock.c: Likewise.
314 * config/linux/ptrlock.h: Likewise.
315 * config/linux/ptrlock.c: Likewise.
316 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
317 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
318 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
319 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
320 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
321 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
322 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
323 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
324 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
325 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
326
327 2011-11-30 Alan Modra <amodra (a] gmail.com>
328
329 PR libgomp/51298
330 * config/linux/bar.h: Use atomic rather than sync builtins.
331 * config/linux/bar.c: Likewise. Add missing acquire
332 synchronisation on generation field.
333 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
334 double unlock.
335
336 2011-11-30 Alan Modra <amodra (a] gmail.com>
337
338 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
339 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
340 * config/linux/mutex.h: Use atomic rather than sync builtins.
341 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
342 * config/linux/omp-lock.h: Comment fix.
343 * config/linux/arm/mutex.h: Delete.
344 * config/linux/powerpc/mutex.h: Delete.
345 * config/linux/ia64/mutex.h: Delete.
346 * config/linux/mips/mutex.h: Delete.
347
348 2011-11-30 Alan Modra <amodra (a] gmail.com>
349
350 PR libgomp/51249
351 * config/linux/sem.h: Rewrite.
352 * config/linux/sem.c: Rewrite.
353
354 2011-11-28 Richard Henderson <rth (a] redhat.com>
355
356 * libgomp.h (enum memmodel): New.
357
358 2011-11-21 Andreas Tobler <andreast (a] fgznet.ch>
359
360 * configure: Regenerate.
361
362 2011-10-10 Matthias Klose <doko (a] ubuntu.com>
363
364 * config/posix95: Remove empty directory.
365
366 2011-08-26 Jakub Jelinek <jakub (a] redhat.com>
367
368 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
369
370 2011-08-19 Jakub Jelinek <jakub (a] redhat.com>
371
372 PR fortran/49792
373 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
374 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
375
376 2011-08-08 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
377
378 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
379
380 2011-08-05 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
381
382 PR libgomp/49965
383 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
384
385 2011-08-03 Uros Bizjak <ubizjak (a] gmail.com>
386
387 * config/linux/proc.h: New.
388 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
389 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
390 (gomp_init_num_threads): Update call to cpuset_popcount.
391 (get_num_procs): Ditto.
392 * config/linux/affinity.c (gomp_init_affinity): Call
393 gomp_cpuset_popcount.
394
395 2011-08-02 Jakub Jelinek <jakub (a] redhat.com>
396
397 PR fortran/42041
398 PR fortran/46752
399 * omp.h.in (omp_in_final): New prototype.
400 * omp_lib.f90.in (omp_in_final): New interface.
401 (omp_integer_kind, omp_logical_kind): Remove
402 and replace all its uses in the module with 4.
403 (openmp_version): Change to 201107.
404 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
405 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
406 kind for the parameters.
407 (omp_in_final): New external.
408 (openmp_version): Change to 201107.
409 * task.c (omp_in_final): New function.
410 (gomp_init_task): Initialize final_task.
411 (GOMP_task): Remove unused attribute from flags. Handle final
412 tasks.
413 (GOMP_taskyield): New function.
414 (omp_in_final): Return true if if (false) or final (true) task
415 or descendant of final (true).
416 * fortran.c (omp_in_final_): New function.
417 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
418 (GOMP_3.0): Export GOMP_taskyield.
419 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
420 variables.
421 (parse_unsigned_long_list): New function.
422 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
423 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
424 even if parse_affinity returned false.
425 * config/linux/affinity.c (gomp_init_affinity): Handle
426 gomp_cpu_affinity_len == 0.
427 * libgomp_g.h (GOMP_taskyield): New prototype.
428 * libgomp.h (struct gomp_task): Add final_task field.
429 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
430 * team.c (gomp_team_start): Override new task's nthreads_var icv
431 if list form OMP_NUM_THREADS has been used and it has value for
432 the new nesting level.
433
434 * testsuite/libgomp.c/atomic-11.c: New test.
435 * testsuite/libgomp.c/atomic-12.c: New test.
436 * testsuite/libgomp.c/atomic-13.c: New test.
437 * testsuite/libgomp.c/atomic-14.c: New test.
438 * testsuite/libgomp.c/reduction-6.c: New test.
439 * testsuite/libgomp.c/task-5.c: New test.
440 * testsuite/libgomp.c++/atomic-2.C: New test.
441 * testsuite/libgomp.c++/atomic-3.C: New test.
442 * testsuite/libgomp.c++/atomic-4.C: New test.
443 * testsuite/libgomp.c++/atomic-5.C: New test.
444 * testsuite/libgomp.c++/atomic-6.C: New test.
445 * testsuite/libgomp.c++/atomic-7.C: New test.
446 * testsuite/libgomp.c++/atomic-8.C: New test.
447 * testsuite/libgomp.c++/atomic-9.C: New test.
448 * testsuite/libgomp.c++/task-8.C: New test.
449 * testsuite/libgomp.c++/reduction-4.C: New test.
450 * testsuite/libgomp.fortran/allocatable7.f90: New test.
451 * testsuite/libgomp.fortran/allocatable8.f90: New test.
452 * testsuite/libgomp.fortran/crayptr3.f90: New test.
453 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
454 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
455 * testsuite/libgomp.fortran/pointer1.f90: New test.
456 * testsuite/libgomp.fortran/pointer2.f90: New test.
457 * testsuite/libgomp.fortran/task4.f90: New test.
458
459 2011-08-02 Tobias Burnus <burnus (a] net-b.de>
460
461 * libgomp.texi: Update OpenMP spec references to 3.1.
462 (omp_in_final,OMP_PROC_BIND): New sections.
463 (OMP_NUM_THREADS): Document that the value can be now a list.
464 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
465
466 2011-08-02 H.J. Lu <hongjiu.lu (a] intel.com>
467
468 * config/linux/x86/futex.h: Check __x86_64__ instead of
469 __LP64__.
470
471 2011-07-29 Jakub Jelinek <jakub (a] redhat.com>
472
473 PR middle-end/49897
474 PR middle-end/49898
475 * testsuite/libgomp.c/pr49897-1.c: New test.
476 * testsuite/libgomp.c/pr49897-2.c: New test.
477 * testsuite/libgomp.c/pr49898-1.c: New test.
478 * testsuite/libgomp.c/pr49898-2.c: New test.
479
480 2011-07-28 H.J. Lu <hongjiu.lu (a] intel.com>
481
482 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
483 for ia32 instead of ilp32.
484
485 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
486 * testsuite/libgomp.c/atomic-6.c: Likewise.
487
488 2011-07-23 Sebastian Pop <sebastian.pop (a] amd.com>
489
490 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
491 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
492
493 2011-07-25 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
494
495 PR libgomp/45351
496 * config/osf/sem.h: New file.
497 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
498
499 2011-07-18 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
500
501 PR target/49541
502 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
503 ldflags.
504
505 2011-07-15 Jakub Jelinek <jakub (a] redhat.com>
506
507 * config/linux/wait.h (do_spin): New inline, largely copied
508 from do_wait, just don't do futex_wait here, instead return true if
509 it should be done.
510 (do_wait): Implement using do_spin.
511 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
512 to prototype.
513 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
514 __sync_bool_compare_and_swap, pass the oldval to
515 gomp_mutex_lock_slow.
516 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
517 If all mutex contenders are just spinning and not sleeping, don't
518 change state to 2 unnecessarily. Optimize the loop when state has
519 already become 2 to use just one atomic operation per loop instead
520 of two.
521 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
522 to prototype.
523 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
524 __sync_bool_compare_and_swap, pass the oldval to
525 gomp_mutex_lock_slow.
526
527 2011-06-22 Jakub Jelinek <jakub (a] redhat.com>
528
529 PR libgomp/49490
530 * iter.c (gomp_iter_static_next): For chunk size 0
531 only use n ceil/ nthreads size for the first
532 n % nthreads threads in the team instead of
533 all threads except for the last few ones which
534 get less work or none at all.
535 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
536 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
537 chunk argument, set run_sched_modifier to 0 for static
538 resp. 1 for other kinds. If chunk argument is 0
539 and not static, set value to 1.
540
541 2011-05-19 Jakub Jelinek <jakub (a] redhat.com>
542
543 PR c++/49043
544 * testsuite/libgomp.c++/pr49043.C: New test.
545
546 PR c++/48869
547 * testsuite/libgomp.c++/pr48869.C: New test.
548
549 2011-05-06 Jakub Jelinek <jakub (a] redhat.com>
550
551 PR fortran/48894
552 * fortran.c: Include limits.h.
553 (TO_INT): Define.
554 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
555 *set.
556 (omp_set_num_threads_8_, omp_set_schedule_8_,
557 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
558 omp_get_team_size_8_): Use TO_INT macro.
559 * testsuite/libgomp.fortran/pr48894.f90: New test.
560
561 2011-04-13 Jakub Jelinek <jakub (a] redhat.com>
562
563 PR middle-end/48591
564 * testsuite/libgomp.c/pr48591.c: New test.
565
566 2011-03-21 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
567
568 PR bootstrap/48135
569 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
570 * configure: Regenerate.
571
572 2011-02-27 Jakub Jelinek <jakub (a] redhat.com>
573
574 PR fortran/47886
575 * testsuite/libgomp.fortran/task3.f90: New test.
576
577 2011-02-24 Tobias Burnus <burnus (a] net-b.de>
578
579 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
580
581 2011-02-23 Jakub Jelinek <jakub (a] redhat.com>
582
583 PR libgomp/47854
584 * libgomp.texi (omp_get_wtime): Don't say time in the past
585 must be Unix Epoch.
586
587 2011-02-18 Jakub Jelinek <jakub (a] redhat.com>
588
589 PR libgomp/47804
590 * testsuite/libgomp.fortran/fortran.exp: Check for both
591 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
592 but $blddir != "", still append ${blddir}/${lang_library_path}
593 to ld_library_path.
594
595 2011-02-16 Tobias Burnus <burnus (a] net-b.de>
596
597 PR libgomp/47758
598 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
599 of libquadmath.a before adding its libpath to ldflags.
600
601 2011-02-14 Jakub Jelinek <jakub (a] redhat.com>
602
603 PR libgomp/47731
604 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
605 to FUTEX_WAIT futex syscall.
606 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
607
608 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
609
610 * configure: Regenerate.
611
612 2011-01-20 Benjamin Kosnik <bkoz (a] redhat.com>
613
614 PR libstdc++/36104
615 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
616
617 2011-01-16 Gerald Pfeifer
618
619 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
620
621 2010-12-14 Jakub Jelinek <jakub (a] redhat.com>
622
623 PR fortran/46874
624 * libgomp.fortran/allocatable6.f90: New test.
625
626 2010-12-06 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
627
628 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
629 * configure: Regenerate.
630
631 2010-12-06 Dave Korn <dave.korn.cygwin (a] gmail.com>
632
633 PR target/40125
634 PR lto/46695
635 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
636 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
637 * aclocal.m4: Regenerate.
638 * configure: Regenerate.
639 * Makefile.in: Regenerate.
640 * testsuite/Makefile.in: Regenerate.
641
642 2010-12-02 Jakub Jelinek <jakub (a] redhat.com>
643
644 PR fortran/46753
645 * libgomp.fortran/pr46753.f90: New test.
646
647 PR libgomp/43706
648 * env.c (initialize_env): Default to spin count 300000
649 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
650 is specified.
651
652 PR libgomp/45240
653 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
654 at the end if sync builtins aren't supported.
655
656 2010-12-01 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
657
658 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
659
660 2010-12-01 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
661
662 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
663
664 2010-11-24 Iain Sandoe <iains (a] gcc.gnu.org>
665
666 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
667
668 2010-11-16 Francois-Xavier Coudert <fxcoudert (a] gcc.gnu.org>
669 Tobias Burnus <burnus (a] net-b.de>
670
671 PR fortran/32049
672 * configure.ac:
673 * configure: Regenerate.
674
675 2010-10-06 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
676
677 * config/linux/futex.h: New.
678 * config/linux/arm/mutex.h: New.
679 * configure.tgt (arm*-*-linux*): Add config path.
680
681 2010-09-30 Sebastian Pop <sebastian.pop (a] amd.com>
682
683 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
684
685 2010-09-23 Tobias Burnus <burnus (a] net-b.de>
686
687 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
688 Change Fortran datatype to LOGICAL.
689 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
690 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
691
692 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
693
694 * configure: Regenerate.
695
696 2010-07-26 Jakub Jelinek <jakub (a] redhat.com>
697
698 * libgomp.texi: Add function keyword to a couple of Fortran
699 interfaces, use integer instead of int for Fortran.
700
701 2010-07-26 Aldy Hernandez <aldyh (a] redhat.com>
702
703 * libgomp.texi: Fix spelling and pasto problems throughout.
704 Adjust prototypes to match code.
705
706 2010-07-24 Tobias Burnus <burnus (a] net-b.de>
707
708 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
709 silence -fwhole-file warning.
710
711 2010-07-23 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
712
713 * configure.tgt (*-*-solaris2.[56]*): Removed.
714
715 2010-07-05 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
716
717 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
718 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
719 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
720 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
721 targetting solaris2*.
722 * configure: Regenerate.
723 * config.h.in: Regenerate.
724
725 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
726 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
727 Add libgomp_version_dep.
728 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
729 versioning.
730 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
731 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
732 * Makefile.in: Regenerate.
733
734 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
735 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
736 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
737 to common block, protected by
738 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
739
740 2010-06-10 Gerald Pfeifer <gerald (a] pfeifer.com>
741
742 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
743
744 2010-06-09 Iain Sandoe <iains (a] gcc.gnu.org>
745
746 PR bootstrap/43170
747 * configure: Regenerate.
748
749 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
750
751 PR other/43620
752 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
753 * configure: Regenerate.
754 * Makefile.in: Regenerate.
755 * testsuite/Makefile.in: Regenerate.
756
757 2010-04-26 Jakub Jelinek <jakub (a] redhat.com>
758
759 PR c/43893
760 * testsuite/libgomp.c/pr43893.c: New test.
761 * testsuite/libgomp.c++/pr43893.C: New test.
762
763 2010-04-21 Jakub Jelinek <jakub (a] redhat.com>
764
765 PR middle-end/43570
766 * testsuite/libgomp.fortran/vla8.f90: New test.
767
768 2010-04-20 Jakub Jelinek <jakub (a] redhat.com>
769
770 PR libgomp/43706
771 * config/linux/affinity.c (gomp_init_affinity): Decrease
772 gomp_available_cpus if affinity mask confines the process to fewer
773 CPUs.
774 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
775 non-NULL, just return gomp_available_cpus.
776
777 PR libgomp/43569
778 * sections.c (gomp_sections_init): Initialize ws->mode.
779
780 2010-04-14 Uros Bizjak <ubizjak (a] gmail.com>
781
782 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
783 not unused bar variable.
784 * configure: Regenerate.
785
786 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
787
788 * Makefile.in: Regenerate.
789 * aclocal.m4: Regenerate.
790 * testsuite/Makefile.in: Regenerate.
791
792 2010-03-22 Jakub Jelinek <jakub (a] redhat.com>
793
794 PR libgomp/42942
795 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
796 (initialize_env): Adjust callers.
797 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
798 when the argument is 0.
799
800 * testsuite/libgomp.c/pr42942.c: New test.
801
802 2010-03-08 Tobias Grosser <grosser (a] fim.uni-passau.de>
803
804 PR middle-end/42644
805 PR middle-end/42130
806 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
807 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
808
809 2010-01-29 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
810
811 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
812 * testsuite/libgomp.c++/task-6.C: Likewise.
813
814 2010-01-28 Steve Ellcey <sje (a] cup.hp.com>
815
816 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
817
818 2010-01-26 Paolo Bonzini <bonzini (a] gnu.org>
819
820 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
821 * configure: Regenerate.
822
823 2010-01-26 Jakub Jelinek <jakub (a] redhat.com>
824
825 PR fortran/42866
826 * testsuite/libgomp.fortran/allocatable5.f90: New test.
827
828 2010-01-20 Paolo Bonzini <bonzini (a] gnu.org>
829
830 * configure.ac: Test for executability of GFORTRAN.
831 * configure: Regenerate.
832
833 2010-01-05 Rainer Orth <ro (a] CeBiTec.Uni-Bielefeld.DE>
834
835 * configure: Regenerate.
836
837 2010-01-04 H.J. Lu <hongjiu.lu (a] intel.com>
838
839 PR libgomp/42602
840 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
841
842 2010-01-03 Richard Guenther <rguenther (a] suse.de>
843
844 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
845
846 2009-12-23 Sebastian Pop <sebpop (a] gmail.com>
847
848 * testsuite/libgomp.graphite/pr4118.c: New.
849
850 2009-12-22 Iain Sandoe <iain.sandoe (a] sandoe-acoustics.co.uk>
851
852 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
853 for darwin, protect the test with require-effective-target tls_runtime.
854 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
855
856 2009-12-22 Iain Sandoe <iain.sandoe (a] sandoe-acoustics.co.uk>
857
858 PR target/41605
859 * testsuite/lib/libgomp.exp: Provide -B options to allow for
860 link spec %s substitutions for static libraries.
861
862 2009-12-18 Jack Howarth <howarth (a] bromo.med.uc.edu>
863
864 PR testsuite/42135
865 * libgomp.graphite/force-parallel-2.c: Reduce array size.
866
867 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
868
869 * Makefile.in: Regenerate.
870 * configure: Regenerate.
871 * testsuite/Makefile.in: Regenerate.
872
873 2009-11-30 Dave Korn <dave.korn.cygwin (a] gmail.com>
874
875 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
876 settings for LC_ALL and LANG.
877
878 2009-11-25 Jakub Jelinek <jakub (a] redhat.com>
879
880 PR fortran/42162
881 * testsuite/libgomp.fortran/pr42162.f90: New test.
882
883 2009-11-13 Jakub Jelinek <jakub (a] redhat.com>
884
885 PR middle-end/42029
886 * testsuite/libgomp.c/pr42029.c: New test.
887
888 2009-10-26 Jakub Jelinek <jakub (a] redhat.com>
889
890 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
891 *s. Accept ld version without text in ()s.
892 * configure: Regenerated.
893
894 2009-10-22 Razya Ladelsky <razya (a] il.ibm.com>
895
896 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
897
898 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
899
900 PR libgomp/41418
901 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
902 or a hyphen (happens with fortran language disabled).
903 * configure: Regenerate.
904
905 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
906
907 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
908 use sed script portable to Solaris /bin/sed for extracting ld
909 version.
910 * configure: Regenerate.
911
912 2009-09-17 Alexander Monakov <amonakov (a] ispras.ru>
913
914 * testsuite/libgomp.graphite/bounds.c: New test.
915
916 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
917
918 * Makefile.am (libgomp_la_LINK): New.
919 * Makefile.in: Regenerate.
920
921 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
922
923 * configure.ac (AC_PREREQ): Bump to 2.64.
924
925 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
926
927 * Makefile.am (install-html, install-pdf): Remove.
928 * Makefile.in: Regenerate.
929
930 * Makefile.in: Regenerate.
931 * aclocal.m4: Regenerate.
932 * config.h.in: Regenerate.
933 * configure: Regenerate.
934 * testsuite/Makefile.in: Regenerate.
935
936 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
937
938 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
939 * Makefile.in: Regenerate.
940
941 2009-08-20 Dave Korn <dave.korn.cygwin (a] gmail.com>
942
943 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
944 * Makefile.in: Regenerate.
945
946 2009-08-19 Tobias Burnus <burnus (a] net-b.de>
947
948 PR fortran/41102
949 omp_lib.h.in: Fix -std=f95 errors.
950
951
952 2009-08-14 David Edelsohn <edelsohn (a] gnu.org>
953
954 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
955 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
956 * testsuite/libgomp.graphite/graphite.exp: New.
957
958 2009-08-05 Andreas Tobler <a.tobler (a] schweiz.org>
959
960 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
961 only build.
962
963 2009-08-04 David Daney <ddaney (a] caviumnetworks.com>
964
965 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
966 needed memory barrier semantics.
967 * config/linux/mips/mutex.h: New file.
968
969 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
970
971 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
972
973 2009-07-16 Joseph Myers <joseph (a] codesourcery.com>
974
975 * configure: Regenerate.
976
977 2009-07-11 Richard Sandiford <rdsandiford (a] googlemail.com>
978
979 PR testsuite/40699
980 PR testsuite/40707
981 PR testsuite/40709
982 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
983 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
984 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
985
986 2009-07-02 Richard Sandiford <r.sandiford (a] uk.ibm.com>
987
988 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
989 options when choosing a multilib.
990
991 2009-06-30 Richard Sandiford <r.sandiford (a] uk.ibm.com>
992
993 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
994 ld_library_path. Use add_path. Add just find_libgcc_s to
995 ld_library_path, not every libgcc multilib directory.
996 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
997 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
998 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
999 Use add_path.
1000 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1001
1002 2009-06-09 Nathan Froyd <froydnj (a] codesourcery.com>
1003
1004 * Makefile.am (LTLDFLAGS): Define.
1005 (LINK): Define.
1006 * Makefile.in: Regenerate.
1007
1008 2009-05-27 Janne Blomqvist <jb (a] gcc.gnu.org>
1009
1010 PR fortran/39718
1011 * testsuite/libgomp.fortran/fortran.exp: Don't link with
1012 libgfortranbegin, check existence of libgfortran.a instead of
1013 libgfortranbegin.a.
1014
1015 2009-05-20 Jakub Jelinek <jakub (a] redhat.com>
1016
1017 PR libgomp/40174
1018 * team.c (gomp_thread_start): Destroy thr->release semaphore.
1019 (gomp_free_pool_helper): Likewise.
1020
1021 2009-04-20 Vasilis Liaskovitis <vliaskov (a] gmail.com>
1022 Jakub Jelinek <jakub (a] redhat.com>
1023
1024 PR fortran/35423
1025 * testsuite/libgomp.fortran/workshare2.f90: New test.
1026
1027 2009-04-09 Nick Clifton <nickc (a] redhat.com>
1028
1029 * iter.c: Change copyright header to refer to version 3 of the
1030 GNU General Public License with version 3.1 of the GCC Runtime
1031 Library Exception and to point readers at the COPYING3 and
1032 COPYING3.RUNTIME files and the FSF's license web page.
1033 * alloc.c: Likewise.
1034 * barrier.c: Likewise.
1035 * config/bsd/proc.c: Likewise.
1036 * config/linux/affinity.c: Likewise.
1037 * config/linux/alpha/futex.h: Likewise.
1038 * config/linux/bar.c: Likewise.
1039 * config/linux/bar.h: Likewise.
1040 * config/linux/ia64/futex.h: Likewise.
1041 * config/linux/ia64/mutex.h: Likewise.
1042 * config/linux/lock.c: Likewise.
1043 * config/linux/mips/futex.h: Likewise.
1044 * config/linux/mutex.c: Likewise.
1045 * config/linux/mutex.h: Likewise.
1046 * config/linux/powerpc/futex.h: Likewise.
1047 * config/linux/proc.c: Likewise.
1048 * config/linux/ptrlock.c: Likewise.
1049 * config/linux/ptrlock.h: Likewise.
1050 * config/linux/s390/futex.h: Likewise.
1051 * config/linux/sem.c: Likewise.
1052 * config/linux/sem.h: Likewise.
1053 * config/linux/sparc/futex.h: Likewise.
1054 * config/linux/wait.h: Likewise.
1055 * config/linux/x86/futex.h: Likewise.
1056 * config/mingw32/proc.c: Likewise.
1057 * config/mingw32/time.c: Likewise.
1058 * config/posix/affinity.c: Likewise.
1059 * config/posix/bar.c: Likewise.
1060 * config/posix/bar.h: Likewise.
1061 * config/posix/lock.c: Likewise.
1062 * config/posix/mutex.h: Likewise.
1063 * config/posix/proc.c: Likewise.
1064 * config/posix/ptrlock.h: Likewise.
1065 * config/posix/sem.c: Likewise.
1066 * config/posix/sem.h: Likewise.
1067 * config/posix/time.c: Likewise.
1068 * config/posix95/lock.c: Likewise.
1069 * critical.c: Likewise.
1070 * env.c: Likewise.
1071 * error.c: Likewise.
1072 * fortran.c: Likewise.
1073 * iter_ull.c: Likewise.
1074 * libgomp.h: Likewise.
1075 * libgomp_f.h.in: Likewise.
1076 * libgomp_g.h: Likewise.
1077 * loop.c: Likewise.
1078 * loop_ull.c: Likewise.
1079 * omp.h.in: Likewise.
1080 * omp_lib.f90.in: Likewise.
1081 * omp_lib.h.in: Likewise.
1082 * ordered.c: Likewise.
1083 * parallel.c: Likewise.
1084 * sections.c: Likewise.
1085 * single.c: Likewise.
1086 * task.c: Likewise.
1087 * team.c: Likewise.
1088 * work.c: Likewise.
1089
1090 2009-04-09 Jakub Jelinek <jakub (a] redhat.com>
1091
1092 * testsuite/config/default.exp: Change copyright header to refer to
1093 version 3 of the GNU General Public License and to point readers
1094 at the COPYING3 file and the FSF's license web page.
1095
1096 2009-04-08 Jakub Jelinek <jakub (a] redhat.com>
1097
1098 PR middle-end/39573
1099 * libgomp.c++/pr39573.C: New test.
1100
1101 2009-04-01 Jakub Jelinek <jakub (a] redhat.com>
1102
1103 PR other/39591
1104 * testsuite/libgomp.c/pr39591-1.c: New test.
1105 * testsuite/libgomp.c/pr39591-2.c: New test.
1106 * testsuite/libgomp.c/pr39591-3.c: New test.
1107
1108 2009-03-25 Uros Bizjak <ubizjak (a] gmail.com>
1109
1110 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
1111 * testsuite/libgomp.c/atomic-6.c: Ditto.
1112
1113 2009-03-23 Jakub Jelinek <jakub (a] redhat.com>
1114
1115 PR c/39495
1116 * testsuite/libgomp.c/loop-12.c: New test.
1117 * testsuite/libgomp.c/loop-11.c: New test.
1118 * testsuite/libgomp.c++/loop-11.C: New test.
1119 * testsuite/libgomp.c++/loop-12.C: New test.
1120 * testsuite/libgomp.c++/for-8.C: New test.
1121
1122 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
1123
1124 * configure: Regenerate.
1125
1126 2009-02-11 Jakub Jelinek <jakub (a] redhat.com>
1127
1128 PR middle-end/39154
1129 * testsuite/libgomp.c/pr39154.c: New test.
1130
1131 2009-01-30 Ian Lance Taylor <iant (a] google.com>
1132
1133 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1134 libgomp_ld_is_gold. Get gold version number.
1135 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1136 * configure: Rebuild.
1137
1138 2009-01-19 Iain Sandoe <iain.sandoe (a] sandoe-acoustics.co.uk>
1139
1140 * testsuite/lib/libgomp.exp: Add -B option for targets that
1141 use libgfortran.a%s in their specs.
1142
1143 2009-01-07 Jakub Jelinek <jakub (a] redhat.com>
1144
1145 PR libgomp/38086
1146 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1147 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1148 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1149 * configure: Regenerated.
1150 * config.h.in: Likewise.
1151
1152 2008-12-28 Jakub Jelinek <jakub (a] redhat.com>
1153
1154 PR c++/38650
1155 * testsuite/libgomp.c/pr38650.c: New test.
1156 * testsuite/libgomp.c++/pr38650.C: New test.
1157
1158 2008-12-27 Jakub Jelinek <jakub (a] redhat.com>
1159
1160 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1161
1162 2008-12-26 Uros Bizjak <ubizjak (a] gmail.com>
1163
1164 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1165
1166 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
1167
1168 * configure: Regenerate.
1169
1170 2008-12-08 Jakub Jelinek <jakub (a] redhat.com>
1171
1172 PR middle-end/36802
1173 * testsuite/libgomp.c/pr36802-1.c: New test.
1174 * testsuite/libgomp.c/pr36802-2.c: New test.
1175 * testsuite/libgomp.c/pr36802-3.c: New test.
1176
1177 2008-12-01 Janis Johnson <janis187 (a] us.ibm.com>
1178
1179 PR libgomp/38270
1180 * config/linux/powerpc/mutex.h: New.
1181
1182 2008-12-01 Jakub Jelinek <jakub (a] redhat.com>
1183
1184 PR c++/38257
1185 * testsuite/libgomp.c++/for-7.C: New test.
1186
1187 PR c++/38348
1188 * testsuite/libgomp.c++/for-6.C: New test.
1189
1190 2008-11-26 Janis Johnson <janis187 (a] us.ibm.com>
1191
1192 PR testsuite/28870
1193 * testsuite/lib/libgomp.exp: Include new timeout library files.
1194 (libgomp_target_compile): Set timeout value from new proc.
1195
1196 2008-11-13 Steve Ellcey <sje (a] cup.hp.com>
1197
1198 PR libgomp/37938
1199 * config/linux/ia64/mutex.h: New.
1200
1201 2008-11-04 Tobias Burnus <burnus (a] net-b.de>
1202
1203 PR libgomp/37935
1204 * libgomp.texi (Runtime library routines, environment variables):
1205 Update for OpenMP version 3.0.
1206
1207 2008-09-26 Peter O'Gorman <pogma (a] thewrittenword.com>
1208 Steve Ellcey <sje (a] cup.hp.com>
1209
1210 * configure: Regenerate for new libtool.
1211 * Makefile.in: Ditto.
1212 * testsuite/Makefile.in: Ditto.
1213
1214 2008-09-19 Jakub Jelinek <jakub (a] redhat.com>
1215 Andreas Tobler <a.tobler (a] schweiz.org>
1216
1217 * config/bsd/proc.c: New file.
1218 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1219 * configure.ac: Check for header <sys/sysctl.h>
1220 * configure: Regenerate.
1221 * config.h.in: Likewise.
1222
1223 2008-09-05 Janis Johnson <janis187 (a] us.ibm.com>
1224
1225 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1226
1227 2008-08-31 Aaron W. LaFramboise <aaronavay62 (a] aaronwl.com>
1228
1229 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1230 * Makefile.in: Regenerated.
1231 * testsuite/Makefile.in: Regenerated.
1232
1233 2008-08-21 Nathan Froyd <froydnj (a] codesourcery.com>
1234
1235 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1236 depend on blddir if blddir exists.
1237 (libgomp_target_compile): Likewise.
1238 * testsuite/libgomp.c++/c++.exp: Likewise.
1239 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1240
1241 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
1242
1243 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1244 Do not list GPL as Invariant Section.
1245
1246 2008-07-28 Ilie Garbacea <ilie (a] mips.com>
1247 Chao-ying Fu <fu (a] mips.com>
1248
1249 * configure.tgt: Enable futex for MIPS.
1250 * config/linux/mips/futex.h: New file.
1251
1252 2008-07-16 Jakub Jelinek <jakub (a] redhat.com>
1253
1254 * team.c (gomp_team_end): Free team immediately if it has
1255 just one thread.
1256
1257 2008-07-08 David Edelsohn <edelsohn (a] gnu.org>
1258
1259 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1260 * testsuite/libgomp.fortran/fortran.exp: Same.
1261 * testsuite/libgomp.c/c.exp: Same.
1262 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1263 directory to library path first.
1264
1265 2008-06-29 Krister Walfridsson <krister.walfridsson (a] gmail.com>
1266
1267 * env.c (parse_stacksize): Add cast to avoid warning.
1268 (parse_spincount): Likewise.
1269
1270 2008-06-27 Jakub Jelinek <jakub (a] redhat.com>
1271
1272 * testsuite/libgomp.c/loop-10.c: New test.
1273 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1274 * libgomp.c++/loop-6.C (main): Likewise.
1275
1276 PR debug/36617
1277 * testsuite/libgomp.c/debug-1.c: New test.
1278
1279 2008-06-19 Jakub Jelinek <jakub (a] redhat.com>
1280
1281 * testsuite/libgomp.c/nqueens-1.c: New test.
1282
1283 PR c++/36523
1284 * testsuite/libgomp.c++/task-7.C: New function.
1285
1286 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
1287
1288 * configure: Regenerate.
1289
1290 2008-06-15 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca>
1291
1292 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1293 mutex when HAVE_SYNC_BUILTINS isn't defined.
1294
1295 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
1296
1297 * libgomp.texi (omp_test_lock): Fix typo.
1298
1299 2008-06-12 Tobias Burnus <burnus (a] net-b.de>
1300
1301 * omp_lib.f90.in: Add "implicit none".
1302
1303 2008-06-12 Jakub Jelinek <jakub (a] redhat.com>
1304
1305 PR middle-end/36506
1306 * testsuite/libgomp.c/reduction-5.c: New test.
1307
1308 2008-06-11 Jakub Jelinek <jakub (a] redhat.com>
1309
1310 * libgomp.h (struct gomp_task): Add in_tied_task field.
1311 * task.c (gomp_init_task): Initialize it.
1312 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1313 unconditionally. Don't call gomp_team_barrier_wake if
1314 current task is implicit or if(0) from implicit and number of
1315 running tasks is equal to nthreads - 1.
1316
1317 PR libgomp/36471
1318 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1319 omp_get_team_size_8): Fix pastos.
1320
1321 PR libgomp/36469
1322 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1323 * configure: Regenerated.
1324 * config.h.in: Regenerated.
1325 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1326 defined.
1327
1328 2008-06-06 Andreas Tobler <a.tobler (a] schweiz.org>
1329
1330 PR bootstrap/36452
1331 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1332 (GOMP_loop_ull_dynamic_start): Likewise.
1333 (GOMP_loop_ull_guided_start): Likewise.
1334 (GOMP_loop_ull_ordered_static_start): Likewise.
1335 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1336 (GOMP_loop_ull_ordered_guided_start): Likewise.
1337
1338 2008-06-06 Jakub Jelinek <jakub (a] redhat.com>
1339 Richard Henderson <rth (a] redhat.com>
1340 Ulrich Drepper <drepper (a] redhat.com>
1341 Jakob Blomer <jakob.blomer (a] ira.uka.de>
1342
1343 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1344 Substitute also OMP_*LOCK_25*.
1345 * configure: Regenerated.
1346 * config.h.in: Regenerated.
1347 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1348 ptrlock.c and task.c.
1349 * Makefile.in: Regenerated.
1350 * testsuite/Makefile.in: Regenerated.
1351 * task.c: New file.
1352 * loop_ull.c: New file.
1353 * iter_ull.c: New file.
1354 * libgomp.h: Include ptrlock.h.
1355 (enum gomp_task_kind): New type.
1356 (struct gomp_team): Add task_lock, task_queue, task_count,
1357 task_running_count, single_count fields. Add
1358 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1359 Remove work_share_lock, generation_mask,
1360 oldest_live_gen, num_live_gen and init_work_shares fields, add
1361 work work_share_list_alloc, work_share_list_free and work_share_chunk
1362 fields. Change work_shares from pointer to pointers into an array.
1363 Change ordered_release field into gomp_sem_t ** from flexible array
1364 member. Add implicit_task and initial_work_shares fields.
1365 Move close to the end of the struct.
1366 (struct gomp_team_state): Add single_count, last_work_share,
1367 active_level and level fields, remove work_share_generation.
1368 (gomp_barrier_handle_tasks): New prototype.
1369 (gomp_finish_task): New inline function.
1370 (struct gomp_work_share): Move chunk_size, end, incr into
1371 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1372 next_ll fields. Reshuffle fields. Add next_alloc,
1373 next_ws, next_free and inline_ordered_team_ids fields, change
1374 ordered_team_ids into pointer from flexible array member.
1375 Add mode field. Put lock and next into a different cache line
1376 from most of the write-once fields.
1377 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1378 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1379 gomp_iter_ull_guided_next): New prototypes.
1380 (gomp_new_icv): New prototype.
1381 (struct gomp_thread): Add thread_pool and task fields.
1382 (struct gomp_thread_pool): New type.
1383 (gomp_new_team): New prototype.
1384 (gomp_team_start): Change type of last argument.
1385 (gomp_new_work_share): Removed.
1386 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1387 (gomp_work_share_init_done): New static inline.
1388 (gomp_throttled_spin_count_var, gomp_available_cpus,
1389 gomp_managed_threads): New extern decls.
1390 (gomp_init_task): New prototype.
1391 (gomp_spin_count_var): New extern var decl.
1392 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1393 or no alias support, or if not PIC.
1394 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1395 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1396 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1397 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1398 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1399 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1400 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1401 gomp_test_nest_lock_25): New prototypes.
1402 (omp_lock_symver, strong_alias): Define.
1403 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1404 decls.
1405 (gomp_end_task): New.
1406 (struct gomp_task_icv, gomp_global_icv): New.
1407 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1408 (struct gomp_task): New.
1409 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1410 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1411 (gomp_icv): New.
1412 (gomp_schedule_type): Reorder enum to match
1413 omp_sched_t.
1414 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1415 fields.
1416 (gomp_thread_start): Add gomp_team_barrier_wait call.
1417 For non-nested case remove clearing of docked thread thr fields.
1418 Use pool fields instead of global gomp_* variables. Use
1419 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1420 Create tasks for each member thread.
1421 (free_team): Only destroy team barrier, task_lock here and free it.
1422 (gomp_free_thread): Free last_team if non-NULL.
1423 (gomp_team_end): Call gomp_team_barrier_wait instead of
1424 gomp_barrier_wait. For nested case call one extra
1425 gomp_barrier_wait. Move here some destruction from free_team.
1426 Call free_team on pool->last_team if any, rather than freeing
1427 current team. Destroy work_share_list_free_lock ifndef
1428 HAVE_SYNC_BUILTINS.
1429 (gomp_new_icv): New function.
1430 (gomp_threads, gomp_threads_size, gomp_threads_used,
1431 gomp_threads_dock): Removed.
1432 (gomp_thread_destructor): New variable.
1433 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1434 functions.
1435 (gomp_team_start): Create new pool if current thread doesn't have
1436 one. Use pool fields instead of global gomp_* variables.
1437 Initialize thread_pool field for new threads. Clear single_count.
1438 Change last argument from ws to team, don't create
1439 new team, set ts.work_share to &team->work_shares[0] and clear
1440 ts.last_work_share. Don't clear ts.work_share_generation.
1441 If number of threads changed, adjust atomically gomp_managed_threads.
1442 Use gomp_init_task instead of gomp_new_task,
1443 set thr->task to the corresponding implicit_task array entry.
1444 Create tasks for each member thread. Initialize ts.level.
1445 (initialize_team): Call pthread_key_create on
1446 gomp_thread_destructor.
1447 (team_destructor): New function.
1448 (new_team): Removed.
1449 (gomp_new_team): New function.
1450 (free_team): Free gomp_work_share blocks chained through next_alloc,
1451 instead of freeing work_shares and destroying work_share_lock.
1452 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1453 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1454 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1455 of gomp_barrier_wait.
1456 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1457 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1458 if gomp_work_share_start returned true. Don't unlock ws->lock.
1459 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1460 of gomp_barrier_wait.
1461 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1462 gomp_work_share_init_done if gomp_work_share_start returned true.
1463 Don't unlock ws->lock.
1464 * work.c: Include stddef.h.
1465 (free_work_share): Use work_share_list_free_lock instead
1466 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1467 Call gomp_fini_work_share and then either free ws if orphaned, or
1468 put it into work_share_list_free list of the current team.
1469 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1470 functions.
1471 (gomp_work_share_start, gomp_work_share_end,
1472 gomp_work_share_end_nowait): Rewritten.
1473 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1474 (openmp_version): Set to 200805.
1475 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1476 omp_sched_guided, omp_sched_auto): New parameters.
1477 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1478 omp_set_max_active_levels, omp_get_max_active_levels,
1479 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1480 omp_get_active_level): New interfaces.
1481 * omp_lib.h.in (openmp_version): Set to 200805.
1482 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1483 omp_sched_guided, omp_sched_auto): New parameters.
1484 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1485 omp_set_max_active_levels, omp_get_max_active_levels,
1486 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1487 omp_get_active_level): New externals.
1488 * loop.c: Include limits.h.
1489 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1490 GFS_AUTO.
1491 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1492 Likewise. Use gomp_icv.
1493 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1494 ts.static_trip here.
1495 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1496 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1497 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1498 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1499 don't unlock ws->lock, otherwise lock it.
1500 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1501 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1502 (gomp_parallel_loop_start): Call gomp_new_team instead of
1503 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1504 Adjust gomp_team_start caller. Pass 0 as second argument to
1505 gomp_resolve_num_threads.
1506 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1507 If adding ws->chunk_size nthreads + 1 times after end won't
1508 overflow, set ws->mode to 1.
1509 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1510 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1511 GOMP_loop_ull_ordered_static_start,
1512 GOMP_loop_ull_ordered_dynamic_start,
1513 GOMP_loop_ull_ordered_guided_start,
1514 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1515 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1516 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1517 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1518 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1519 prototypes.
1520 * libgomp.map: Export lock routines also @@OMP_2.0.
1521 (GOMP_loop_ordered_dynamic_first,
1522 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1523 GOMP_loop_ordered_static_first): Remove.
1524 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1525 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1526 GOMP_loop_ull_ordered_dynamic_next,
1527 GOMP_loop_ull_ordered_dynamic_start,
1528 GOMP_loop_ull_ordered_guided_next,
1529 GOMP_loop_ull_ordered_guided_start,
1530 GOMP_loop_ull_ordered_runtime_next,
1531 GOMP_loop_ull_ordered_runtime_start,
1532 GOMP_loop_ull_ordered_static_next,
1533 GOMP_loop_ull_ordered_static_start,
1534 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1535 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1536 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1537 (omp_set_schedule, omp_get_schedule,
1538 omp_get_thread_limit, omp_set_max_active_levels,
1539 omp_get_max_active_levels, omp_get_level,
1540 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1541 omp_set_schedule_, omp_set_schedule_8_,
1542 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1543 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1544 omp_get_max_active_levels_, omp_get_level_,
1545 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1546 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1547 New exports @@OMP_3.0.
1548 * omp.h.in (omp_sched_t): New type.
1549 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1550 omp_set_max_active_levels, omp_get_max_active_levels,
1551 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1552 omp_get_active_level): New prototypes.
1553 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1554 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1555 gomp_thread_limit_var, gomp_remaining_threads_count,
1556 gomp_remaining_threads_lock): New variables.
1557 (parse_spincount): New function.
1558 (initialize_env): Call gomp_init_num_threads unconditionally.
1559 Initialize gomp_available_cpus. Call parse_spincount,
1560 initialize gomp_{,throttled_}spin_count_var
1561 depending on presence and value of OMP_WAIT_POLICY and
1562 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1563 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1564 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1565 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1566 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1567 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1568 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1569 (gomp_global_icv): New.
1570 (parse_schedule): Use it. Parse "auto".
1571 (omp_set_num_threads): Use gomp_icv.
1572 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1573 Likewise.
1574 (omp_get_max_threads): Move from parallel.c.
1575 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1576 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1577 add ialias.
1578 (parse_stacksize, parse_wait_policy): New functions.
1579 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1580 both wrappers for compatibility and new locks.
1581 (omp_set_schedule, omp_get_schedule,
1582 omp_get_thread_limit, omp_set_max_active_levels,
1583 omp_get_max_active_levels, omp_get_level,
1584 omp_get_ancestor_thread_num, omp_get_team_size,
1585 omp_get_active_level): New ialias_redirect.
1586 (omp_set_schedule_, omp_set_schedule_8_,
1587 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1588 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1589 omp_get_max_active_levels_, omp_get_level_,
1590 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1591 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1592 New functions.
1593 * parallel.c: Include limits.h.
1594 (gomp_resolve_num_threads): Add count argument. Rewritten.
1595 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1596 argument to gomp_team_start. Pass 0 as second argument to
1597 gomp_resolve_num_threads.
1598 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1599 if gomp_thread_limit_var != ULONG_MAX.
1600 (omp_in_parallel): Implement using ts.active_level.
1601 (omp_get_max_threads): Move to env.c.
1602 (omp_get_level, omp_get_ancestor_thread_num,
1603 omp_get_team_size, omp_get_active_level): New functions,
1604 add ialias.
1605 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1606 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1607 gomp_iter_dynamic_next instead of the _locked variant and don't take
1608 lock around it, otherwise acquire it before calling
1609 gomp_iter_dynamic_next_locked.
1610 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1611 gomp_iter_dynamic_next instead of the _locked variant and don't take
1612 lock around it.
1613 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1614 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1615 Adjust gomp_team_start caller. Pass count as second argument to
1616 gomp_resolve_num_threads, don't adjust num_threads after the call.
1617 Use gomp_icv.
1618 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1619 ws->chunk_size by incr.
1620 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1621 code.
1622 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1623 types.
1624 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1625 (omp_check_defines): Check even the compat defines.
1626 * config/linux/ptrlock.c: New file.
1627 * config/linux/ptrlock.h: New file.
1628 * config/linux/wait.h: New file.
1629 * config/posix/ptrlock.c: New file.
1630 * config/posix/ptrlock.h: New file.
1631 * config/linux/bar.h (gomp_team_barrier_wait,
1632 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1633 (gomp_team_barrier_set_task_pending,
1634 gomp_team_barrier_clear_task_pending,
1635 gomp_team_barrier_set_waiting_for_tasks,
1636 gomp_team_barrier_waiting_for_tasks,
1637 gomp_team_barrier_done): New inlines.
1638 (gomp_barrier_t): Rewritten.
1639 (gomp_barrier_state_t): New typedef.
1640 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1641 gomp_barrier_wait_start): Rewritten.
1642 (gomp_barrier_wait_end): Change second argument to
1643 gomp_barrier_state_t.
1644 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1645 inlines.
1646 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1647 futex.h.
1648 (gomp_barrier_wait_end): Rewritten.
1649 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1650 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1651 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1652 (gomp_barrier_state_t): New typedef.
1653 (gomp_team_barrier_wait,
1654 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1655 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1656 into the return value. Return gomp_barrier_state_t.
1657 (gomp_team_barrier_set_task_pending,
1658 gomp_team_barrier_clear_task_pending,
1659 gomp_team_barrier_set_waiting_for_tasks,
1660 gomp_team_barrier_waiting_for_tasks,
1661 gomp_team_barrier_done): New inlines.
1662 (gomp_barrier_wait_end): Change second argument to
1663 gomp_barrier_state_t.
1664 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1665 inlines.
1666 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1667 (gomp_barrier_wait_end): Change second argument to
1668 gomp_barrier_state_t.
1669 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1670 gomp_team_barrier_wake): New functions.
1671 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1672 futex.h.
1673 (gomp_futex_wake, gomp_futex_wait): New variables.
1674 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1675 * config/linux/lock.c: Rewrite to make locks task owned,
1676 for backwards compatibility provide the old entrypoints
1677 if symbol versioning. Include wait.h instead of libgomp.h and
1678 futex.h.
1679 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1680 * config/posix95/lock.c: Rewrite to make locks task owned,
1681 for backwards compatibility provide the old entrypoints
1682 if symbol versioning.
1683 * config/posix/lock.c: Rewrite to make locks task owned,
1684 for backwards compatibility provide the old entrypoints
1685 if symbol versioning.
1686 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1687 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1688 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1689 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1690 (sys_futex0): Return error code.
1691 (futex_wake, futex_wait): If ENOSYS was returned, clear
1692 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1693 (cpu_relax, atomic_write_barrier): New static inlines.
1694 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1695 (futex_wake, futex_wait): If ENOSYS was returned, clear
1696 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1697 (cpu_relax, atomic_write_barrier): New static inlines.
1698 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1699 (sys_futex0): Return error code.
1700 (futex_wake, futex_wait): If ENOSYS was returned, clear
1701 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1702 (cpu_relax, atomic_write_barrier): New static inlines.
1703 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1704 (sys_futex0): Return error code.
1705 (futex_wake, futex_wait): If ENOSYS was returned, clear
1706 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1707 (cpu_relax, atomic_write_barrier): New static inlines.
1708 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1709 (sys_futex0): Return error code.
1710 (futex_wake, futex_wait): If ENOSYS was returned, clear
1711 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1712 (cpu_relax, atomic_write_barrier): New static inlines.
1713 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1714 (sys_futex0): Return error code.
1715 (futex_wake, futex_wait): If ENOSYS was returned, clear
1716 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1717 (cpu_relax, atomic_write_barrier): New static inlines.
1718 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1719 futex.h.
1720 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1721 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1722 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1723 types.
1724 (omp_nest_lock_t): Change owner into void *, add lock field.
1725 * config/posix95/omp-lock.h: Include semaphore.h.
1726 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1727 (omp_lock_t): Use sem_t instead of mutex if semaphores
1728 aren't broken.
1729 (omp_nest_lock_t): Likewise. Change owner to void *.
1730 * config/posix/omp-lock.h: Include semaphore.h.
1731 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1732 (omp_lock_t): Use sem_t instead of mutex if semaphores
1733 aren't broken.
1734 (omp_nest_lock_t): Likewise. Add owner field.
1735
1736 2008-06-06 Jakub Jelinek <jakub (a] redhat.com>
1737
1738 * testsuite/libgomp.c/collapse-1.c: New test.
1739 * testsuite/libgomp.c/collapse-2.c: New test.
1740 * testsuite/libgomp.c/collapse-3.c: New test.
1741 * testsuite/libgomp.c/icv-1.c: New test.
1742 * testsuite/libgomp.c/icv-2.c: New test.
1743 * testsuite/libgomp.c/lib-2.c: New test.
1744 * testsuite/libgomp.c/lock-1.c: New test.
1745 * testsuite/libgomp.c/lock-2.c: New test.
1746 * testsuite/libgomp.c/lock-3.c: New test.
1747 * testsuite/libgomp.c/loop-4.c: New test.
1748 * testsuite/libgomp.c/loop-5.c: New test.
1749 * testsuite/libgomp.c/loop-6.c: New test.
1750 * testsuite/libgomp.c/loop-7.c: New test.
1751 * testsuite/libgomp.c/loop-8.c: New test.
1752 * testsuite/libgomp.c/loop-9.c: New test.
1753 * testsuite/libgomp.c/nested-3.c: New test.
1754 * testsuite/libgomp.c/nestedfn-6.c: New test.
1755 * testsuite/libgomp.c/sort-1.c: New test.
1756 * testsuite/libgomp.c/task-1.c: New test.
1757 * testsuite/libgomp.c/task-2.c: New test.
1758 * testsuite/libgomp.c/task-3.c: New test.
1759 * testsuite/libgomp.c/task-4.c: New test.
1760 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1761 to C++ testsuite default compiler options.
1762 * testsuite/libgomp.c++/collapse-1.C: New test.
1763 * testsuite/libgomp.c++/collapse-2.C: New test.
1764 * testsuite/libgomp.c++/ctor-10.C: New test.
1765 * testsuite/libgomp.c++/for-1.C: New test.
1766 * testsuite/libgomp.c++/for-2.C: New test.
1767 * testsuite/libgomp.c++/for-3.C: New test.
1768 * testsuite/libgomp.c++/for-4.C: New test.
1769 * testsuite/libgomp.c++/for-5.C: New test.
1770 * testsuite/libgomp.c++/loop-8.C: New test.
1771 * testsuite/libgomp.c++/loop-9.C: New test.
1772 * testsuite/libgomp.c++/loop-10.C: New test.
1773 * testsuite/libgomp.c++/task-1.C: New test.
1774 * testsuite/libgomp.c++/task-2.C: New test.
1775 * testsuite/libgomp.c++/task-3.C: New test.
1776 * testsuite/libgomp.c++/task-4.C: New test.
1777 * testsuite/libgomp.c++/task-5.C: New test.
1778 * testsuite/libgomp.c++/task-6.C: New test.
1779 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1780 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1781 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1782 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1783 * testsuite/libgomp.fortran/collapse1.f90: New test.
1784 * testsuite/libgomp.fortran/collapse2.f90: New test.
1785 * testsuite/libgomp.fortran/collapse3.f90: New test.
1786 * testsuite/libgomp.fortran/collapse4.f90: New test.
1787 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1788 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1789 * testsuite/libgomp.fortran/lib4.f90: New test.
1790 * testsuite/libgomp.fortran/lock-1.f90: New test.
1791 * testsuite/libgomp.fortran/lock-2.f90: New test.
1792 * testsuite/libgomp.fortran/nested1.f90: New test.
1793 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1794 * testsuite/libgomp.fortran/strassen.f90: New test.
1795 * testsuite/libgomp.fortran/tabs1.f90: New test.
1796 * testsuite/libgomp.fortran/tabs2.f: New test.
1797 * testsuite/libgomp.fortran/task1.f90: New test.
1798 * testsuite/libgomp.fortran/task2.f90: New test.
1799 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1800 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1801 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1802 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1803 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1804
1805 2008-05-23 Jakub Jelinek <jakub (a] redhat.com>
1806
1807 PR c++/36308
1808 * testsuite/libgomp.c++/ctor-11.C: New test.
1809 * testsuite/libgomp.c++/ctor-12.C: New test.
1810
1811 2008-05-15 Janis Johnson <janis187 (a] us.ibm.com>
1812
1813 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1814
1815 2008-05-07 Jakub Jelinek <jakub (a] redhat.com>
1816
1817 PR middle-end/36106
1818 * testsuite/libgomp.c/atomic-5.c: New test.
1819 * testsuite/libgomp.c/atomic-6.c: New test.
1820 * testsuite/libgomp.c/autopar-1.c: New test.
1821
1822 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
1823
1824 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1825 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1826 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1827 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1828 * configure: Regenerate.
1829 * Makefile.in, testsuite/Makefile.in: Likewise.
1830
1831 2008-04-18 Paolo Bonzini <bonzini (a] gnu.org>
1832
1833 PR bootstrap/35457
1834 * aclocal.m4: Regenerate.
1835 * configure: Regenerate.
1836
1837 2008-03-18 Jakub Jelinek <jakub (a] redhat.com>
1838
1839 PR middle-end/35611
1840 * testsuite/libgomp.c/atomic-4.c: New test.
1841
1842 PR libgomp/35625
1843 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1844 (gomp_iter_guided_next): Likewise.
1845 * testsuite/libgomp.c/pr35625.c: New test.
1846
1847 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
1848
1849 * aclocal.m4: Regenerate.
1850 * configure: Likewise.
1851 * Makefile.in: Likewise.
1852 * testsuite/Makefile.in: Likewise.
1853
1854 2008-03-13 Jakub Jelinek <jakub (a] redhat.com>
1855
1856 PR middle-end/35185
1857 * testsuite/libgomp.c++/pr35185.C: New test.
1858
1859 2008-03-12 Jakub Jelinek <jakub (a] redhat.com>
1860
1861 PR middle-end/35549
1862 * testsuite/libgomp.c/pr35549.c: New test.
1863
1864 2008-03-06 Jakub Jelinek <jakub (a] redhat.com>
1865
1866 * testsuite/libgomp.c/atomic-3.c: New test.
1867
1868 2008-03-03 Francois-Xavier Coudert <fxcoudert (a] gcc.gnu.org>
1869
1870 PR fortran/33197
1871 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1872 .F08 file suffixes.
1873
1874 2008-03-03 Peter O'Gorman <pogma (a] thewrittenword.com>
1875
1876 PR libgomp/33131
1877 * configure.ac: Add ACX_HEADER_STRING.
1878 * env.c: Include strings.h.
1879 * aclocal.m4: Regenerate.
1880 * config.h.in: Regenerate.
1881 * configure: Regenerate.
1882 * Makefile.in: Regenerate.
1883 * testsuite/Makefile.in: Regenerate.
1884
1885 2008-02-15 Jakub Jelinek <jakub (a] redhat.com>
1886
1887 PR middle-end/35196
1888 * testsuite/libgomp.c/pr35196.c: New test.
1889
1890 PR middle-end/35130
1891 * testsuite/libgomp.fortran/pr35130.f90: New test.
1892 * testsuite/libgomp.c/pr35130.c: New test.
1893
1894 2008-01-25 Jakub Jelinek <jakub (a] redhat.com>
1895
1896 PR middle-end/33880
1897 * testsuite/libgomp.c/pr33880.c: New test.
1898 * testsuite/libgomp.fortran/pr33880.f90: New test.
1899
1900 2008-01-24 David Edelsohn <edelsohn (a] gnu.org>
1901
1902 * configure: Regenerate.
1903
1904 2008-01-08 Jakub Jelinek <jakub (a] redhat.com>
1905
1906 * configure.ac: Move futex checking into ../config/futex.m4.
1907 * configure: Rebuilt.
1908 * aclocal.m4: Rebuilt.
1909 * Makefile.in: Rebuilt.
1910
1911 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1912 2007-10-15 ../config/tls.m4 change.
1913
1914 2007-12-19 Jakub Jelinek <jakub (a] redhat.com>
1915
1916 PR c++/34513
1917 * testsuite/libgomp.c/pr34513.c: New test.
1918 * testsuite/libgomp.c++/pr34513.C: New test.
1919
1920 2007-12-17 Jack Howarth <howarth (a] bromo.med.uc.edu>
1921
1922 PR target/32765
1923 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1924
1925 2007-12-04 Jakub Jelinek <jakub (a] redhat.com>
1926
1927 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1928
1929 2007-12-03 Jakub Jelinek <jakub (a] redhat.com>
1930
1931 * testsuite/libgomp.c/private-1.c: New test.
1932
1933 2007-11-29 Andris Pavenis <andris.pavenis (a] iki.fi>
1934 Paolo Bonzini <bonzini (a] gnu.org>
1935
1936 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1937 instead of 'VPATH ='.
1938 * Makefile.in: Regenerate.
1939
1940 2007-11-23 Matthias Klose <doko (a] ubuntu.com>
1941
1942 * configure.ac: Adjust makeinfo version check.
1943 * configure: Regenerate.
1944
1945 2007-11-10 Jakub Jelinek <jakub (a] redhat.com>
1946
1947 PR fortran/34020
1948 * testsuite/libgomp.fortran/pr34020.f90: New test.
1949
1950 2007-11-06 Jakub Jelinek <jakub (a] redhat.com>
1951
1952 PR c++/33894
1953 * testsuite/libgomp.c++/atomic-1.C: New test.
1954
1955 2007-10-25 Jakub Jelinek <jakub (a] redhat.com>
1956
1957 PR libgomp/33275
1958 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1959 Make x and y integers rather than (implicit) reals. Add private (j)
1960 clause to the last omp parallel.
1961
1962 2007-10-15 Maciej W. Rozycki <macro (a] linux-mips.org>
1963
1964 * configure: Regenerate following changes to ../config/tls.m4.
1965
1966 2007-09-28 Jakub Jelinek <jakub (a] redhat.com>
1967
1968 * testsuite/libgomp.fortran/stack.f90: New test.
1969
1970 2007-09-10 Danny Smith <dannysmith (a] users.sourceforge.net>
1971
1972 * config/mingw32/proc.c: New file.
1973
1974 2007-09-05 Uros Bizjak <ubizjak (a] gmail.com>
1975
1976 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1977 (main): Use __get_cpuid to get i386 target fetaures.
1978 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1979 (main): Use __get_cpuid to get x86_64 target fetaures.
1980
1981 2007-08-15 Jack Howarth <howarth (a] bromo.med.uc.edu>
1982
1983 PR target/32765
1984 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1985 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1986
1987 2007-07-12 Jakub Jelinek <jakub (a] redhat.com>
1988
1989 PR fortran/32550
1990 * testsuite/libgomp.fortran/pr32550.f90: New test.
1991 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1992
1993 2007-07-05 H.J. Lu <hongjiu.lu (a] intel.com>
1994
1995 * aclocal.m4: Regenerated.
1996
1997 2007-07-05 Tobias Burnus <burnus (a] net-b.de>
1998
1999 PR fortran/32359
2000 * testsuite/libgomp.fortran/pr32359.f90: New.
2001
2002 2007-07-02 Jakub Jelinek <jakub (a] redhat.com>
2003
2004 PR libgomp/32468
2005 * sections.c (GOMP_parallel_sections_start): Only decrease
2006 number of threads to COUNT if dyn_var is true.
2007 * testsuite/libgomp.c/pr32468.c: New test.
2008
2009 2007-07-02 Rainer Orth <ro (a] TechFak.Uni-Bielefeld.DE>
2010
2011 PR libgomp/26308
2012 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2013
2014 2007-06-21 Jakub Jelinek <jakub (a] redhat.com>
2015
2016 PR middle-end/32362
2017 * testsuite/libgomp.c/pr32362-1.c: New test.
2018 * testsuite/libgomp.c/pr32362-2.c: New test.
2019 * testsuite/libgomp.c/pr32362-3.c: New test.
2020
2021 2007-06-07 Jakub Jelinek <jakub (a] redhat.com>
2022
2023 * team.c (gomp_team_start): Fix setting up thread_attr
2024 stack size.
2025
2026 2007-06-02 Paolo Bonzini <bonzini (a] gnu.org>
2027
2028 * configure: Regenerate.
2029
2030 2007-05-23 Steve Ellcey <sje (a] cup.hp.com>
2031
2032 * Makefile.in: Regenerate.
2033 * configure: Regenerate.
2034 * aclocal.m4: Regenerate.
2035 * testsuite/Makefile.in: Regenerate.
2036
2037 2007-05-04 Jakub Jelinek <jakub (a] redhat.com>
2038
2039 * config/linux/proc.c: New file.
2040
2041 PR libgomp/28482
2042 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2043
2044 2007-04-19 Daniel Franke <franke.daniel (a] gmail.com>
2045
2046 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2047
2048 2007-04-16 Matthias Klose <doko (a] debian.org>
2049
2050 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2051 flags if not building with -m64.
2052 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2053 flag for i?86-*-* targets, if current target matches -m64.
2054
2055 2007-04-14 Steve Ellcey <sje (a] cup.hp.com>
2056
2057 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2058 * Makefile.in: Regenerate.
2059
2060 2007-04-07 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca>
2061
2062 PR testsuite/31369
2063 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2064 ld_library_path.
2065 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2066
2067 2007-04-04 Jakub Jelinek <jakub (a] redhat.com>
2068
2069 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2070 decls.
2071 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2072 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2073 (parse_affinity): New function.
2074 (initialize_env): Call it and gomp_init_affinity.
2075 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2076 create new pthread_attr_t and call gomp_init_thread_affinity
2077 on it for each thread before passing the attribute to pthread_create.
2078 * config/linux/affinity.c: New file.
2079 * config/posix/affinity.c: New file.
2080 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2081 * configure: Rebuilt.
2082 * config.h.in: Rebuilt.
2083 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2084 * Makefile.in: Rebuilt.
2085
2086 2007-03-23 Andreas Tobler <a.tobler (a] schweiz.org>
2087
2088 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2089 *-*-darwin*.
2090 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2091 and use it if found.
2092
2093 2007-03-18 Uros Bizjak <ubizjak (a] gmail.com>
2094
2095 * testsuite/config/default.exp: New file.
2096 * testsuite/lib/libgomp.exp: New file.
2097 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2098 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2099 load_lib *, load_gcc_lib *): Move to libgomp.exp.
2100 (libgomp_load): Remove.
2101 * testsuite/lib/libgomp.exp (libgomp_init): Compute
2102 always_ld_library_path, not ld_library_path. Set additional_flags
2103 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2104 (target_compile): Do not call libgomp_init. Append lang_library_path
2105 and lang_link_flags to options.
2106 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
2107 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
2108 here.
2109 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
2110 always_ld_library_path. Set LD_LIBRARY_PATH here.
2111 * testsuite/libgomp.fortran/fortran.exp: Ditto.
2112 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
2113 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
2114 CX8 flag.
2115 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
2116 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
2117 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
2118 * testsuite/libgomp.c/pr29947-1.c: Ditto.
2119 * testsuite/libgomp.c/atomic-10.c: Ditto.
2120
2121 2007-03-21 Jakub Jelinek <jakub (a] redhat.com>
2122
2123 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
2124 dg-final cleanup-modules line.
2125 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
2126 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
2127 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
2128 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2129 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2130 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2131 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2132
2133 2007-03-18 Andreas Schwab <schwab (a] suse.de>
2134
2135 * acinclude.m4: Adjust regular expression for ld version
2136 extraction.
2137 * configure: Regenerate.
2138
2139 2007-03-01 Brooks Moses <brooks.moses (a] codesourcery.com>
2140
2141 * Makefile.am: Add install-pdf target as copied from
2142 automake v1.10 rules.
2143 * Makefile.in: Regenerate
2144
2145 2007-02-07 Jakub Jelinek <jakub (a] redhat.com>
2146
2147 PR libgomp/28486
2148 * configure: Regenerate.
2149
2150 PR c++/30703
2151 * testsuite/libgomp.c++/pr30703.C: New test.
2152
2153 2007-02-02 Jakub Jelinek <jakub (a] redhat.com>
2154
2155 Revert:
2156 2006-07-05 Eric Christopher <echristo (a] apple.com>
2157 * configure.ac: Depend addition of -pthread on host OS.
2158 * configure: Regenerate.
2159
2160 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues (a] gmx.de>
2161
2162 * libgomp.texi: Fix spacing after abbreviations.
2163
2164 2007-01-31 Daniel Franke <franke.daniel (a] gmail.com>
2165
2166 PR libgomp/30546
2167 * configure.ac: Add check for makeinfo
2168 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2169 if an appropiate version of makeinfo is found.
2170 * aclocal.m4: Regenerated.
2171 * configure: Regenerated.
2172 * Makefile.in: Regenerated.
2173 * testsuite/Makefile.in: Regenerated.
2174
2175 2007-01-29 Daniel Franke <franke.daniel (a] gmail.com>
2176
2177 PR libgomp/30540
2178 * libgomp.texi: More about implementation-dependent settings.
2179
2180 2007-01-26 Tobias Burnus <burnus (a] net-b.de>
2181
2182 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2183
2184 2007-01-24 Jakub Jelinek <jakub (a] redhat.com>
2185
2186 PR middle-end/30494
2187 * testsuite/libgomp.c/pr30494.c: New test.
2188
2189 2007-01-15 Tom Tromey <tromey (a] redhat.com>
2190
2191 * configure: Rebuilt.
2192 * configure.ac: Fixed comment.
2193
2194 2007-01-14 Daniel Franke <franke.daniel (a] gmail.com>
2195
2196 * libgomp.texi: Document implementation specific default values of
2197 environment variables.
2198
2199 2006-12-21 Daniel Franke <franke.daniel (a] gmail.com>
2200
2201 PR libgomp/28209
2202 * libgomp.texi: New file.
2203 * configure.ac: Add --enable-generated-files-in-srcdir option.
2204 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2205 files to srcdir.
2206 * Makefile.in: Regenerated.
2207 * config.h.in: Regenerated.
2208 * testsuite/Makefile.in: Regenerated.
2209 * NOTES: Removed.
2210
2211 2006-12-04 Daniel Franke <franke.daniel (a] gmail.com>
2212
2213 PR libgomp/29949
2214 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2215
2216 2006-12-04 Eric Botcazou <ebotcazou (a] libertysurf.fr>
2217
2218 * configure: Regenerate.
2219
2220 2006-12-04 Jakub Jelinek <jakub (a] redhat.com>
2221
2222 PR libgomp/29947
2223 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2224 start if there shouldn't be any loop iterations.
2225 (gomp_loop_ordered_static_start): Remove start == end test.
2226 * testsuite/libgomp.c/pr29947-1.c: New test.
2227 * testsuite/libgomp.c/pr29947-2.c: New test.
2228
2229 2006-12-02 Eric Botcazou <ebotcazou (a] libertysurf.fr>
2230
2231 * configure.tgt: Force initial-exec TLS model on Linux only.
2232
2233 2006-11-13 Daniel Jacobowitz <dan (a] codesourcery.com>
2234
2235 * configure: Regenerated.
2236
2237 2006-11-09 Uros Bizjak <ubizjak (a] gmail.com>
2238
2239 * env.c (parse_schedule): Reject out of range values.
2240 (parse_unsigned_long): Reject out of range, negative or zero values.
2241
2242 2006-10-29 Jakub Jelinek <jakub (a] redhat.com>
2243
2244 PR fortran/29629
2245 * testsuite/libgomp.fortran/pr29629.f90: New test.
2246
2247 2006-10-24 Eric Botcazou <ebotcazou (a] libertysurf.fr>
2248
2249 PR libgomp/29494
2250 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2251 * config/posix95: New directory.
2252 * config/posix95/omp-lock.h: New file.
2253 * config/posix95/lock.c: Likewise.
2254
2255 2006-10-14 Geoffrey Keating <geoffk (a] apple.com>
2256
2257 * aclocal.m4: Regenerate.
2258 * configure: Regenerate.
2259
2260 2006-10-05 Danny Smith <dannysmith (a] users.sourceforge.net>
2261
2262 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2263 '<' to '<='.
2264
2265 2006-10-05 Danny Smith <dannysmith (a] users.sourceforge.net>
2266
2267 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2268 test.
2269 * configure: Regenerate.
2270 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2271
2272 2006-09-26 Jakub Jelinek <jakub (a] redhat.com>
2273
2274 PR middle-end/25261
2275 PR middle-end/28790
2276 * testsuite/libgomp.c/nestedfn-4.c: New test.
2277 * testsuite/libgomp.c/nestedfn-5.c: New test.
2278 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2279
2280 PR fortran/29097
2281 * testsuite/libgomp.fortran/condinc1.f: New test.
2282 * testsuite/libgomp.fortran/condinc2.f: New test.
2283 * testsuite/libgomp.fortran/condinc3.f90: New test.
2284 * testsuite/libgomp.fortran/condinc4.f90: New test.
2285 * testsuite/libgomp.fortran/condinc1.inc: New file.
2286
2287 2006-09-18 Tom Tromey <tromey (a] redhat.com>
2288
2289 * configure: Rebuilt.
2290
2291 2006-09-13 Joseph S. Myers <joseph (a] codesourcery.com>
2292
2293 PR c/28768
2294 PR preprocessor/14634
2295 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2296 to AC_DEFINE.
2297 * configure: Regenerate.
2298
2299 2006-09-08 Steven G. Kargl <kargl (a] gcc.gnu.org>
2300
2301 * testsuite/libgomp.fortran/reduction3.f90: Change
2302 -2147483648 to -huge(i)-1 to avoid overflow.
2303 * testsuite/libgomp.fortran/reduction4.f90: Change
2304 Z'ffffffff' to not(0) to avoid overflow.
2305
2306 2006-08-26 Joseph S. Myers <joseph (a] codesourcery.com>
2307
2308 PR libgomp/25938
2309 * Makefile.am (libsubincludedir): New.
2310 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2311 * Makefile.in: Regenerate.
2312
2313 2006-08-17 Jakub Jelinek <jakub (a] redhat.com>
2314
2315 PR libgomp/28725
2316 * env.c: Include ctype.h.
2317 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2318 leading and/or trailing whitespace and compare strings case
2319 insensitively.
2320
2321 2006-07-16 Jakub Jelinek <jakub (a] redhat.com>
2322
2323 PR fortran/28390
2324 * testsuite/libgomp.fortran/pr28390.f: New test.
2325
2326 2006-07-05 Eric Christopher <echristo (a] apple.com>
2327
2328 * configure.ac: Depend addition of -pthread on host OS.
2329 * configure: Regenerate.
2330
2331 2006-06-21 Jakub Jelinek <jakub (a] redhat.com>
2332
2333 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2334 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2335 defined.
2336
2337 2006-06-20 Jakub Jelinek <jakub (a] redhat.com>
2338
2339 PR libgomp/26175
2340 PR libgomp/26477
2341 * configure.ac: If neither --enable-linux-futex nor
2342 --disable-linux-futex is passed, determine the default by checking
2343 for compiling and/or running against NPTL. With --enable-linux-futex,
2344 check if SYS_gettid and SYS_futex are defined.
2345 * configure: Rebuilt.
2346
2347 2006-06-14 Richard Henderson <rth (a] redhat.com>
2348
2349 PR libgomp/28008
2350 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2351 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2352
2353 2006-06-09 Richard Henderson <rth (a] redhat.com>
2354
2355 * env.c (gomp_nthreads_var): Change to unsigned long.
2356 (gomp_run_sched_chunk): Likewise.
2357 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2358 (initialize_env): Initialize gomp_thread_attr.
2359 * libgomp.h (gomp_nthreads_var): Update decl.
2360 (gomp_run_sched_chunk): Likewise.
2361 (gomp_thread_attr): Declare.
2362 * team.c (gomp_thread_attr): Export.
2363 (initialize_team): Don't initialize it.
2364
2365 2006-06-09 Jakub Jelinek <jakub (a] redhat.com>
2366
2367 PR fortran/27916
2368 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2369 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2370
2371 2006-06-06 Francois-Xavier Coudert <coudert (a] clipper.ens.fr>
2372
2373 * config/mingw32/time.c: New file.
2374 * configure.tgt: Use it.
2375
2376 2006-05-23 Carlos O'Donell <carlos (a] codesourcery.com>
2377
2378 * Makefile.am: Add install-html target. Add install-html to .PHONY
2379 * Makefile.in: Regenerate.
2380
2381 2006-05-22 John David Anglin <dave.anglin (a] nrc-cnrc.gc.ca>
2382
2383 PR libgomp/27612
2384 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2385 * testsuite/libgomp.c/critical-1.c: Likewise.
2386 * testsuite/libgomp.c/loop-1.c: Likewise.
2387 * testsuite/libgomp.c/loop-2.c: Likewise.
2388 * testsuite/libgomp.c/single-1.c: Likewise.
2389 * testsuite/libgomp.c/ordered-1.c: Likewise.
2390 * testsuite/libgomp.c/ordered-2.c: Likewise.
2391
2392 2006-05-15 Jakub Jelinek <jakub (a] redhat.com>
2393
2394 PR middle-end/27416
2395 * libgomp.fortran/pr27416-1.f90: New test.
2396
2397 2006-05-03 Jakub Jelinek <jakub (a] redhat.com>
2398
2399 PR fortran/27395
2400 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2401 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2402
2403 2006-05-02 Jakub Jelinek <jakub (a] redhat.com>
2404
2405 PR c++/26943
2406 * testsuite/libgomp.c/pr26943-1.c: New test.
2407 * testsuite/libgomp.c/pr26943-2.c: New test.
2408 * testsuite/libgomp.c/pr26943-3.c: New test.
2409 * testsuite/libgomp.c/pr26943-4.c: New test.
2410 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2411 * testsuite/libgomp.c++/pr26943.C: New test.
2412
2413 2006-05-02 Jakub Jelinek <jakub (a] redhat.com>
2414
2415 PR middle-end/27337
2416 * testsuite/libgomp.c++/pr27337.C: New test.
2417
2418 2006-04-26 Jakub Jelinek <jakub (a] redhat.com>
2419
2420 PR c/26171
2421 * testsuite/libgomp.c/pr26171.c: New test.
2422
2423 2006-04-25 Richard Henderson <rth (a] redhat.com>
2424
2425 PR libgomp/25865
2426 * configure.ac: Use GCC_CHECK_TLS.
2427 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2428 * Makefile.in, aclocal.m4, configure: Regenerate.
2429
2430 2006-04-10 Matthias Klose <doko (a] debian.org>
2431
2432 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2433 directory names containing underscores.
2434
2435 2006-03-21 Jakub Jelinek <jakub (a] redhat.com>
2436
2437 PR c++/26691
2438 * testsuite/libgomp.c++/pr26691.C: New test.
2439
2440 2006-03-13 Jakub Jelinek <jakub (a] redhat.com>
2441
2442 * testsuite/libgomp.fortran/retval2.f90: New test.
2443
2444 2006-03-09 Diego Novillo <dnovillo (a] redhat.com>
2445
2446 * testsuite/libgomp.c++: New directory.
2447
2448 2006-02-25 Shantonu Sen <ssen (a] opendarwin.org>
2449
2450 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2451 * config/posix/sem.c: Implement the above.
2452
2453 2006-02-25 Andreas Tobler <a.tobler (a] schweiz.ch>
2454
2455 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2456 define HAVE_BROKEN_POSIX_SEMAPHORES.
2457 * configure: Rebuilt.
2458 * config.h.in: Rebuilt.
2459
2460 2006-02-17 Francois-Xavier Coudert <coudert (a] clipper.ens.fr>
2461
2462 PR bootstrap/26161
2463 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2464 for the other pthread check.
2465 * configure: Regenerate.
2466 * config.h.in: Regenerate.
2467
2468 2006-02-15 Jakub Jelinek <jakub (a] redhat.com>
2469
2470 PR libgomp/25938
2471 PR libgomp/25984
2472 * Makefile.am (fincludedir): New variable.
2473 (nodist_include_HEADERS): Remove Fortran files.
2474 (nodist_finclude_HEADERS): New variable.
2475 * Makefile.in: Regenerated.
2476
2477 2006-02-13 Jakub Jelinek <jakub (a] redhat.com>
2478
2479 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2480 Remove tests for returning assumed character length arrays.
2481
2482 2006-02-12 Roger Sayle <roger (a] eyesopen.com>
2483 John David Anglin <dave (a] hiauly1.hia.nrc.ca>
2484
2485 PR libgomp/25936
2486 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2487
2488 2006-02-08 Ulrich Weigand <uweigand (a] de.ibm.com>
2489
2490 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2491
2492 2006-02-07 Eric Botcazou <ebotcazou (a] libertysurf.fr>
2493
2494 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2495 part of LD_LIBRARY_PATH manually.
2496
2497 2006-02-03 H.J. Lu <hongjiu.lu (a] intel.com>
2498
2499 PR libgomp/25852
2500 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2501 libgomp_init.
2502
2503 2005-01-25 Paolo Bonzini <bonzini (a] gnu.org>
2504
2505 PR libgomp/25884
2506 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2507 * configure.ac (PERL): Don't set.
2508 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2509 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2510 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2511 * omp.h.in: Wrap the new configure substitutions with @ characters.
2512 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2513 * aclocal.m4, configure, Makefile.in: Regenerate.
2514 * mkomp_h.pl: Delete.
2515
2516 2005-01-24 Paolo Bonzini <bonzini (a] gnu.org>
2517
2518 PR libgomp/25259
2519 * configure.ac: Use GCC_HEADER_STDINT.
2520 * libgomp.h: Include gstdint.h.
2521 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2522 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2523
2524 2006-01-24 Richard Henderson <rth (a] redhat.com>
2525
2526 PR libgomp/25942
2527 * configure.ac: Add AM_MAINTAINER_MODE.
2528 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2529
2530 2006-01-24 Diego Novillo <dnovillo (a] redhat.com>
2531
2532 * Makefile.in: Regenerate.
2533 * testsuite/Makefile.in: Regenerate.
2534 * aclocal.m4: Regenerate.
2535
2536 2006-01-23 Andreas Tobler <a.tobler (a] schweiz.ch>
2537
2538 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2539 Solaris.
2540 * configure.ac: Add check for loadavg.h.
2541 (link_gomp): Adjust comment.
2542 * configure: Regenerate.
2543 * config.h.in: Regenerate.
2544
2545 2006-01-21 Steve Ellcey <sje (a] cup.hp.com>
2546
2547 PR libgomp/25877
2548 * configure.ac: Remove check for alloca.h.
2549 * configure: Regenerate.
2550 * config.h.in: Regenerate.
2551 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2552 * team.c: Remove use of alloca.h.
2553 Call gomp_alloca instead of alloca.
2554
2555 2006-01-20 Steve Ellcey <sje (a] cup.hp.com>
2556
2557 PR libgomp/25877
2558 * team.c: Add include of alloca.h.
2559 * configure.ac: Add check for alloca.h.
2560 * configure: Regenerate.
2561 * config.h.in: Regenerate.
2562
2563 2006-01-17 Jakub Jelinek <jakub (a] redhat.com>
2564
2565 PR fortran/25219
2566 * testsuite/libgomp.fortran/pr25219.f90: New test.
2567
2568 2005-12-05 Uros Bizjak <uros (a] kss-loka.si>
2569
2570 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2571 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2572 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2573 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2574 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2575 testsuite/libgomp.fortran/threadprivate1.f90,
2576 testsuite/libgomp.fortran/threadprivate2.f90,
2577 testsuite/libgomp.fortran/threadprivate3.f90,
2578 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2579 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2580 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2581 effective-target to TLS runtime.
2582
2583 * testsuite/libgomp.fortran/pr25162.f: Require
2584 effective-target TLS runtime.
2585
2586 2005-12-01 Jakub Jelinek <jakub (a] redhat.com>
2587
2588 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2589 * testsuite/libgomp.c/nestedfn-3.c: New test.
2590
2591 2005-11-30 Jakub Jelinek <jakub (a] redhat.com>
2592
2593 PR fortran/25162
2594 * testsuite/libgomp.fortran/pr25162.f: New test.
2595
2596 2005-11-28 Jakub Jelinek <jakub (a] redhat.com>
2597
2598 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2599 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2600
2601 2005-11-25 Jakub Jelinek <jakub (a] redhat.com>
2602
2603 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2604 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2605 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2606 single.c, team.c, work.c, config/linux/alpha/futex.h,
2607 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2608 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2609 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2610 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2611 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2612 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2613 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2614 FSF address.
2615
2616 2005-11-18 Jakub Jelinek <jakub (a] redhat.com>
2617
2618 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2619 to nodist_noinst_HEADERS.
2620 * Makefile.in: Rebuilt.
2621
2622 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2623 add integer count field.
2624 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2625 omp_nest_lock_t type change.
2626 (omp_init_nest_lock): Likewise. Initialize count to 0.
2627 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2628 Increment count.
2629 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2630 Decrement count.
2631 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2632 Increment count if successful and return the new nesting level.
2633 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2634 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2635 * testsuite/libgomp.c/lib-1.c: New test.
2636 * testsuite/libgomp.fortran/lib1.f90: New test.
2637 * testsuite/libgomp.fortran/lib2.f: New test.
2638 * testsuite/libgomp.fortran/lib3.f: New test.
2639
2640 2005-11-17 Richard Henderson <rth (a] redhat.com>
2641
2642 PR 24845
2643 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2644 * configure.ac (link_gomp): New. Substitute it.
2645 (AC_CONFIG_FILES): Add libgomp.spec.
2646 * libgomp.spec.in: New file.
2647 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2648 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2649
2650 2005-11-18 Jakub Jelinek <jakub (a] redhat.com>
2651
2652 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2653 reduction(-:var) behaving the same as reduction(+:var).
2654 * testsuite/libgomp.c/reduction-4.c: New test.
2655
2656 2005-11-15 Uros Bizjak <uros (a] kss-loka.si>
2657
2658 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2659 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2660 testsuite/libgomp.c/copyin-3.c,
2661 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2662 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2663 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2664 testsuite/libgomp.c++/pr24455.C,
2665 testsuite/libgomp.fortran/threadprivate1.f90,
2666 testsuite/libgomp.fortran/threadprivate2.f90,
2667 testsuite/libgomp.fortran/threadprivate3.f90,
2668 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2669 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2670 testsuite/libgomp.fortran/omp_parse3.f90: Require
2671 effective-target TLS.
2672
2673 2005-11-14 Diego Novillo <dnovillo (a] redhat.com>
2674
2675 * HEADER: Remove.
2676
2677 2005-11-13 Jakub Jelinek <jakub (a] redhat.com>
2678
2679 PR libgomp/24797
2680 * team.c (initialize_team): Pass NULL rather than free as
2681 pthread_key_create destructor. Initialize thread specific data
2682 pointer in initial thread to a static local variable rather than
2683 malloced memory.
2684
2685 2005-11-11 Uros Bizjak <uros (a] kss-loka.si>
2686
2687 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2688 its location to ld_library_path.
2689
2690 2005-11-10 Diego Novillo <dnovillo (a] redhat.com>
2691
2692 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2693
2694 2005-11-10 Diego Novillo <dnovillo (a] redhat.com>
2695
2696 * testsuite/libgomp.c: Rename from libgomp.dg.
2697
2698 2005-11-09 Diego Novillo <dnovillo (a] redhat.com>
2699
2700 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2701 threadprivate variable 'i'.
2702
2703 2005-11-09 Jakub Jelinek <jakub (a] redhat.com>
2704
2705 * config/linux/s390/futex.h: New file.
2706 * configure.tgt: Use it.
2707
2708 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2709 before the parallel.
2710
2711 2005-11-08 Jakub Jelinek <jakub (a] redhat.com>
2712
2713 PR c++/24734
2714 * testsuite/libgomp.c++/master-1.C: New test.
2715
2716 2005-11-07 Jakub Jelinek <jakub (a] redhat.com>
2717
2718 * testsuite/libgomp.dg/copyin-3.c: New test.
2719
2720 2005-11-07 Jakub Jelinek <jakub (a] redhat.com>
2721
2722 * testsuite/libgomp.fortran/retval1.f90: New test.
2723 * testsuite/libgomp.fortran/vla7.f90: New test.
2724
2725 2005-11-06 Jakub Jelinek <jakub (a] redhat.com>
2726
2727 * testsuite/libgomp.fortran/vla2.f90: New test.
2728 * testsuite/libgomp.fortran/vla3.f90: New test.
2729 * testsuite/libgomp.fortran/vla4.f90: New test.
2730 * testsuite/libgomp.fortran/vla5.f90: New test.
2731 * testsuite/libgomp.fortran/vla6.f90: New test.
2732
2733 2005-11-01 Jakub Jelinek <jakub (a] redhat.com>
2734
2735 * config/linux/sparc/futex.h: New file.
2736 * configure.tgt: Use it.
2737 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2738
2739 * critical.c: Include stdlib.h.
2740 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2741 ignoring return value.
2742 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2743 LIBGOMP_CHECK_SYNC_BUILTINS check.
2744 * configure: Rebuilt.
2745
2746 2005-10-31 Jakub Jelinek <jakub (a] redhat.com>
2747
2748 * testsuite/libgomp.fortran/vla1.f90: New test.
2749
2750 2005-10-31 Richard Henderson <rth (a] redhat.com>
2751
2752 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2753 setting 's' in different threads.
2754
2755 2005-10-31 Jakub Jelinek <jakub (a] redhat.com>
2756
2757 * libgomp.h (attribute_hidden, ialias): Define.
2758 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2759 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2760 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2761 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2762 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2763 omp_test_lock, omp_test_nest_lock): Likewise.
2764 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2765 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2766 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2767 omp_test_lock, omp_test_nest_lock): Likewise.
2768 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2769 omp_get_dynamic, omp_get_nested): Likewise.
2770 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2771 omp_get_thread_num, omp_in_parallel): Likewise.
2772 * fortran.c (ialias_redirect): Define.
2773 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2774 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2775 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2776 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2777 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2778 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2779 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2780 omp_get_wtime): Add ialias_redirect.
2781
2782 2005-10-30 Jakub Jelinek <jakub (a] redhat.com>
2783
2784 * fortran.c: Include stdlib.h.
2785
2786 2005-10-29 Jakub Jelinek <jakub (a] redhat.com>
2787
2788 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2789 * Makefile.in: Regenerated.
2790
2791 2005-10-28 Jakub Jelinek <jakub (a] redhat.com>
2792
2793 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2794 * libgomp_f.h.in (omp_check_defines): New function.
2795 * env.c: Include libgomp_f.h.
2796 (initialize_env): Call omp_check_defines.
2797
2798 * testsuite/libgomp.dg/copyin-2.c: New test.
2799 * testsuite/libgomp.c++/copyin-2.C: New test.
2800 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2801
2802 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2803 * testsuite/libgomp.fortran/sharing2.f90: New test.
2804
2805 * testsuite/libgomp.dg/copyin-1.c: New test.
2806 * testsuite/libgomp.c++/copyin-1.C: New test.
2807
2808 2005-10-26 Jakub Jelinek <jakub (a] redhat.com>
2809
2810 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2811
2812 * testsuite/libgomp.fortran/workshare1.f90: New test.
2813
2814 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2815 only test.
2816 * libgomp.fortran/sharing1.f90: New test.
2817
2818 2005-10-24 Jakub Jelinek <jakub (a] redhat.com>
2819
2820 PR c++/24502
2821 * testsuite/libgomp.c++/loop-7.C: New test.
2822
2823 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2824
2825 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2826 * testsuite/libgomp.fortran/reduction6.f90: New test.
2827 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2828
2829 2005-10-23 Richard Henderson <rth (a] redhat.com>
2830
2831 * testsuite/libgomp.c++/ctor-1.C: New.
2832 * testsuite/libgomp.c++/ctor-2.C: New.
2833 * testsuite/libgomp.c++/ctor-3.C: New.
2834 * testsuite/libgomp.c++/ctor-4.C: New.
2835 * testsuite/libgomp.c++/ctor-5.C: New.
2836 * testsuite/libgomp.c++/ctor-6.C: New.
2837 * testsuite/libgomp.c++/ctor-7.C: New.
2838 * testsuite/libgomp.c++/ctor-8.C: New.
2839 * testsuite/libgomp.c++/ctor-9.C: New.
2840
2841 2005-10-21 Diego Novillo <dnovillo (a] redhat.com>
2842
2843 PR 24455
2844 * testsuite/libgomp.c++/pr24455-1.C: New test.
2845 * testsuite/libgomp.c++/pr24455.C: New test.
2846 * testsuite/libgomp.dg/pr24455-1.c: New test.
2847 * testsuite/libgomp.dg/pr24455.c: New test.
2848
2849 2005-10-20 Richard Henderson <rth (a] redhat.com>
2850
2851 * testsuite/libgomp.c++/loop-6.C: New.
2852 * testsuite/libgomp.dg/loop-3.c: New.
2853
2854 2005-10-20 Jakub Jelinek <jakub (a] redhat.com>
2855
2856 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2857 explicitly private.
2858 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2859 explicitly shared.
2860
2861 2005-10-19 Diego Novillo <dnovillo (a] redhat.com>
2862
2863 * testsuite/libgomp.fortran/jacobi.f: New test.
2864
2865 2005-10-19 Richard Henderson <rth (a] redhat.com>
2866
2867 * configure.tgt (i?86-linux): Default to with_arch instead of
2868 CFLAGS. Add -mtune to match target_cpu.
2869 (x86_64-linux): Tune to i686.
2870
2871 * fortran.c (omp_test_nest_lock_): Fix typo.
2872
2873 2005-10-19 Jakub Jelinek <jakub (a] redhat.com>
2874
2875 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2876 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2877 * testsuite/libgomp.dg/ordered-3.c: New test.
2878
2879 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2880 Remove volatile keyword.
2881
2882 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2883 in COMMON block to avoid warnings on 64-bit targets.
2884
2885 2005-10-18 Diego Novillo <dnovillo (a] redhat.com>
2886
2887 * testsuite/libgomp.dg/shared-3.c: New test.
2888
2889 2005-10-18 Jakub Jelinek <jakub (a] redhat.com>
2890
2891 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2892 * testsuite/libgomp.fortran/reduction5.f90: New test.
2893
2894 2005-10-18 Jakub Jelinek <jakub (a] redhat.com>
2895
2896 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2897 dg-options.
2898 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2899 flush loop now that __sync_synchronize has proper memory barrier.
2900 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2901 Add -ffixed-form to dg-options.
2902
2903 2005-10-17 Diego Novillo <dnovillo (a] redhat.com>
2904
2905 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2906 from subdirectories.
2907 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2908 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2909 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2910 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2911 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2912 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2913 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2914 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2915 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2916 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2917 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2918 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2919 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2920 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2921 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2922 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2923 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2924 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2925 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2926 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2927 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2928 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2929 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2930 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2931 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2932
2933 2005-10-17 Jakub Jelinek <jakub (a] redhat.com>
2934
2935 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2936 lang_library_path exists. Use find instead of glob to gather tests.
2937 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2938
2939 2005-10-17 Diego Novillo <dnovillo (a] redhat.com>
2940
2941 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2942 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2943 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2944 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2945 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2946 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2947 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2948 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2949 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2950 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2951 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2952 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2953 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2954
2955 2005-10-15 Jakub Jelinek <jakub (a] redhat.com>
2956
2957 * testsuite/libgomp.dg/vla-1.c: New test.
2958
2959 * testsuite/libgomp.fortran/reference2.f90: New test.
2960
2961 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2962 declaration of omp_get_thread_num.
2963 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2964 use omp_lib.
2965
2966 * testsuite/libgomp.fortran/reduction1.f90: New test.
2967 * testsuite/libgomp.fortran/reduction2.f90: New test.
2968 * testsuite/libgomp.fortran/reduction3.f90: New test.
2969 * testsuite/libgomp.fortran/reduction4.f90: New test.
2970
2971 2005-10-13 Richard Henderson <rth (a] redhat.com>
2972
2973 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2974 * Makefile.in: Regenerate.
2975 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2976 * libgomp.h: Include bar.h.
2977 (struct gomp_barrier): Remove.
2978 (struct gomp_team): Add barrier. Replace master_barrier with
2979 master_release. Replace threads with ordered_release.
2980 (struct gomp_thread): Replace barrier with release.
2981 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2982 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2983 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2984 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2985 (GOMP_single_copy_end): Likewise.
2986 * team.c (gomp_threads_dock): New.
2987 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2988 (gomp_thread_start): Use gomp_barrier_wait.
2989 (new_team, free_team): Update for gomp_team changes.
2990 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2991 (gomp_team_end): Use gomp_barrier_wait.
2992 (initialize_team): Update for gomp_thread changes.
2993 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2994 (gomp_work_share_end_nowait): Use atomic ops when available.
2995 * config/linux/bar.c, config/linux/bar.h: New files.
2996 * config/posix/bar.c, config/posix/bar.h: New files.
2997
2998 2005-10-13 Jakub Jelinek <jakub (a] redhat.com>
2999
3000 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3001 * testsuite/libgomp.dg/single-2.c: New test.
3002
3003 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3004 lang_link_flags): Unset, so that they aren't inherited from previously
3005 sourced *.exp.
3006
3007 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3008
3009 2005-10-12 Richard Henderson <rth (a] redhat.com>
3010
3011 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3012 (libgomp_init): Use lang_test_file, lang_library_path, and
3013 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
3014
3015 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3016 (lang_test_file, lang_link_flags): New.
3017 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3018
3019 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3020 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3021 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3022 testsuite/libgomp.c++/parallel-1.C,
3023 testsuite/libgomp.c++/reduction-1.C,
3024 testsuite/libgomp.c++/reduction-2.C,
3025 testsuite/libgomp.c++/reduction-3.C,
3026 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3027 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3028 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3029 New files, largely cribbed from the C testsuite.
3030
3031 2005-10-12 Jakub Jelinek <jakub (a] redhat.com>
3032
3033 * testsuite/libgomp.fortran/character1.f90: New test.
3034 * testsuite/libgomp.fortran/character2.f90: New test.
3035
3036 * testsuite/libgomp.dg/nested-1.c: New test.
3037 * testsuite/libgomp.dg/nested-2.c: New test.
3038 * testsuite/libgomp.fortran/do1.f90: New test.
3039 * testsuite/libgomp.fortran/do2.f90: New test.
3040
3041 * testsuite/libgomp.fortran/reference1.f90: New test.
3042
3043 2005-10-11 Jakub Jelinek <jakub (a] redhat.com>
3044
3045 * testsuite/libgomp.dg/reduction-1.c: New test.
3046 * testsuite/libgomp.dg/reduction-2.c: New test.
3047 * testsuite/libgomp.dg/reduction-3.c: New test.
3048
3049 2005-10-10 Jakub Jelinek <jakub (a] redhat.com>
3050
3051 * testsuite/libgomp.dg/atomic-1.c: New test.
3052 * testsuite/libgomp.dg/atomic-2.c: New test.
3053
3054 2005-10-09 Richard Henderson <rth (a] redhat.com>
3055
3056 * critical.c (atomic_lock): New.
3057 (initialize_critical): Initialize it.
3058 (GOMP_atomic_start, GOMP_atomic_end): New.
3059 * libgomp.map: Export them.
3060 * libgomp_g.h: Declare them.
3061
3062 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3063
3064 2005-10-02 Richard Henderson <rth (a] redhat.com>
3065
3066 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
3067 to XCFLAGS instead of CFLAGS.
3068
3069 2005-09-30 Richard Henderson <rth (a] redhat.com>
3070
3071 * configure.ac: Determine whether -pthread or -lpthread is needed.
3072 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3073 * Makefine.in, configure: Rebuild.
3074
3075 2005-09-28 Richard Henderson <rth (a] redhat.com>
3076
3077 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3078 * testsuite/libgomp.dg/omp-single-3.c: New test.
3079
3080 2005-09-28 Diego Novillo <dnovillo (a] redhat.com>
3081
3082 * testsuite/libgomp.dg/omp-single-2.c: New test.
3083 * testsuite/libgomp.dg/shared-2.c: Fix return code.
3084
3085 2005-09-27 Richard Henderson <rth (a] redhat.com>
3086
3087 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3088 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3089
3090 2005-09-27 Jakub Jelinek <jakub (a] redhat.com>
3091
3092 * testsuite/libgomp.dg/omp-loop03.c: New test.
3093
3094 2005-09-27 Diego Novillo <dnovillo (a] redhat.com>
3095
3096 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3097
3098 2005-09-27 Diego Novillo <dnovillo (a] redhat.com>
3099
3100 * testsuite/libgomp.dg/omp-single-1.c: New test.
3101 * testsuite/libgomp.dg/shared-1.c: Return 0.
3102 Add prototype for abort.
3103 * testsuite/libgomp.dg/shared-2.c: Likewise.
3104
3105 2005-09-26 Jakub Jelinek <jakub (a] redhat.com>
3106
3107 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
3108 constructs.
3109
3110 2005-09-26 Diego Novillo <dnovillo (a] redhat.com>
3111
3112 * testsuite/libgomp.dg/shared-1.c: New test.
3113 * testsuite/libgomp.dg/shared-2.c: New test.
3114
3115 2005-09-24 Richard Henderson <rth (a] redhat.com>
3116
3117 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
3118
3119 2005-09-24 Richard Henderson <rth (a] redhat.com>
3120
3121 * iter.c (gomp_iter_static_next): Round up when computing number
3122 of iterations. Don't bother distributing a remainder equally.
3123
3124 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
3125 Don't call srand. Zero b before testing.
3126 (main): New.
3127
3128 2005-09-24 Jakub Jelinek <jakub (a] redhat.com>
3129
3130 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
3131 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
3132
3133 2005-09-23 Jakub Jelinek <jakub (a] redhat.com>
3134
3135 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3136 without !$omp end do, followed immediately by subroutine end.
3137
3138 2005-09-23 Diego Novillo <dnovillo (a] redhat.com>
3139
3140 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3141
3142 2005-09-22 Richard Henderson <rth (a] redhat.com>
3143
3144 * critical.c (GOMP_critical_name_start): Change argument to void**.
3145 Reuse the pointer space if the mutex fits.
3146 (GOMP_critical_name_end): Likewise.
3147 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3148 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3149 (GOMP_critical_name_end): Likewise.
3150 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3151 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3152
3153 2005-09-20 Richard Henderson <rth (a] redhat.com>
3154
3155 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3156 (create_lock_lock): New.
3157 (initialize_critical): Initialize it.
3158 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3159 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3160
3161 2005-09-20 Diego Novillo <dnovillo (a] redhat.com>
3162
3163 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3164
3165 2005-09-20 Diego Novillo <dnovillo (a] redhat.com>
3166
3167 * testsuite/libgomp.dg/omp-loop01.c: New test.
3168 * testsuite/libgomp.dg/omp-loop02.c: New test.
3169
3170 2005-09-20 Jakub Jelinek <jakub (a] redhat.com>
3171
3172 * configure.ac (AC_PROG_FC): Add.
3173 (USE_FORTRAN): New automake conditional.
3174 * configure: Rebuilt.
3175 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3176 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3177 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3178 Add rules to build them.
3179 * Makefile.in: Rebuilt.
3180 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3181 OMP_NEST_LOCK_KIND.
3182 * libgomp.map: Add Fortran wrappers.
3183 * libgomp_f.h.in: New file.
3184 * omp_lib.h.in: New file.
3185 * omp_lib.f90.in: New file.
3186 * fortran.c: New file.
3187 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3188 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3189 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3190 libgfortran has been built.
3191 * testsuite/libgomp.fortran/fortran.exp: New file.
3192 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3193 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3194 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3195 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3196 * testsuite/libgomp.fortran/omp_hello.f: New test.
3197 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3198 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3199 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3200 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3201 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3202 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3203 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3204 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3205
3206 2005-08-30 Richard Henderson <rth (a] redhat.com>
3207
3208 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3209 function for when aliases are not usable.
3210 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3211 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3212 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3213 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3214 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3215 GOMP_loop_ordered_guided_next): Likewise.
3216 * ordered.c (GOMP_ordered_start): Likewise.
3217
3218 2005-08-01 Diego Novillo <dnovillo (a] redhat.com>
3219
3220 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3221 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3222 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3223 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3224 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3225 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3226 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3227 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3228 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3229
3230 2005-07-07 Eric Christopher <echristo (a] redhat.com>
3231 Diego Novillo <dnovillo (a] redhat.com>
3232
3233 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3234 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3235 up code.
3236 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3237 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3238 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3239 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3240 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3241 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3242 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3243
3244 2005-06-13 Diego Novillo <dnovillo (a] redhat.com>
3245
3246 * TOPLEVEL.patch: Remove.
3247
3248 2005-05-16 Richard Henderson <rth (a] redhat.com>
3249
3250 * configure.ac: Test for clock_gettime.
3251 * config.h.in, configure: Rebuild.
3252 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3253 (omp_get_wtime): Use clock_gettime if available.
3254 (omp_get_wtick): Use clock_getres if available.
3255
3256 2005-05-11 Richard Henderson <rth (a] redhat.com>
3257
3258 * config/linux/ia64/futex.h: New file.
3259 * configure.tgt: Use it.
3260
3261 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3262
3263 2005-05-07 Richard Henderson <rth (a] redhat.com>
3264
3265 * config/linux/powerpc/futex.h: New file.
3266 * configure.tgt: Use it.
3267
3268 * config/linux/i486/futex.h: Merge ...
3269 * config/linux/x86_64/futex.h: ... into ...
3270 * config/linux/x86/futex.h: ... here.
3271 * configure.tgt: Update to match.
3272
3273 2005-05-06 Richard Henderson <rth (a] redhat.com>
3274
3275 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3276 * config/linux/i486/futex.h: Likewise.
3277 * config/linux/x86_64/futex.h: Likewise.
3278
3279 * config/linux/lock.c: New file.
3280 * config/linux/omp-lock.h: New file.
3281
3282 * critical.c, env.h: Don't include omp.h
3283 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3284 * config/posix/time.c: Likewise.
3285 * config/posix/omp-lock.h: New file.
3286 * libgomp.h: Include omp-lock.h and omp.h.
3287 * Makefile.am (nodist_include_HEADERS): New.
3288 (omp.h): New rule.
3289 * configure.ac (PERL): New.
3290 * mkomp_h.pl: New file.
3291 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3292 with templates.
3293 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3294
3295 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3296 build directory. Re-add -march=i486 hack.
3297
3298 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3299 (libgomp_link_flags): Remove.
3300 (libgomp_initialized): Remove.
3301 (libgomp_init): Don't protect from reinitialization. Copy code
3302 from libstdc++ for getting the multilib set correctly.
3303
3304 2005-05-05 Richard Henderson <rth (a] redhat.com>
3305
3306 * config/linux/alpha/futex.h: New file.
3307 * configure.tgt (alpha*-*-linux*): Use it.
3308
3309 * config/posix/mutex.c: New file.
3310 * config/posix/sem.c: Use libgomp.h.
3311
3312 * configure.tgt (x86_64-linux): Also test CC for -m32.
3313 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3314
3315 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3316 after $gccpath.
3317
3318 * Makefile.am (SUBDIRS): New.
3319 (libgomp_la_LDFLAGS): Add -lpthread.
3320 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3321 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3322
3323 * libgomp_g.h: New file.
3324 * libgomp.h: Split out all public declarations to libgomp_g.h.
3325 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3326 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3327 * config/linux/sem.h: Likewise.
3328 * config/posix/sem.h: Likewise.
3329
3330 * Makefile.am (AM_LDFLAGS): New.
3331 (libgomp_version_script): Split out from ...
3332 (libgomp_la_LDFLAGS): ... here.
3333 (libgomp_version_info): New.
3334 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3335 (LIBGOMP_ENABLE): New.
3336 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3337 (LIBGOMP_ENABLE_SYMVERS): New.
3338 * configure.ac (AC_INIT): Version 1.0.
3339 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3340 (enable-linux-futex): Likewise. Rename from enable-futex.
3341 (libtool_VERSION): New.
3342 (LIBGOMP_ENABLE_SYMVERS): Use it.
3343 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3344 * Makefile.in, aclocal.m4, configure: Rebuild.
3345
3346 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3347 (gomp_mutex_unlock_slow): Fix typo.
3348 * config/linux/sem.c: Similarly.
3349 (gomp_sem_post_slow): Fix typo.
3350 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3351 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3352 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3353
3354 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3355 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3356 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3357 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3358 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3359 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3360 LDFLAGS. Pull enable_futex check to top-level.
3361 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3362 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3363
3364 First attempt at real configury.
3365 * Makefile, config.h: Remove file.
3366 * Makefile.am, Makefile.in: New file.
3367 * acinclude.m4 aclocal.m4: New file.
3368 * configure.ac, configure.tgt, configure: New file.
3369
3370 * config/posix/lock.c: Rename from sys-lock.c.
3371 * config/posix/mutex.h: Rename from sys-mutex.h.
3372 * config/posix/sem.c: Rename from sys-sem.c.
3373 * config/posix/sem.h: Rename from sys-sem.h.
3374 * config/posix/proc.c: Rename from sys-proc.c.
3375 * config/posix/time.c: Rename from sys-proc.c.
3376
3377 * config/linux/mutex.c: New file.
3378 * config/linux/mutex.h: New file.
3379 * config/linux/sem.c: New file.
3380 * config/linux/sem.h: New file.
3381 * config/linux/i486/futex.h: New file.
3382 * config/linux/x86_64/futex.h: New file.
3383
3384 2005-05-04 Richard Henderson <rth (a] redhat.com>
3385
3386 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3387 * libgomp.h: Declare them.
3388 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3389 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3390
3391 2005-05-04 Richard Henderson <rth (a] redhat.com>
3392
3393 * libgomp-1 code drop
3394
3395 2005-05-04 Richard Henderson <rth (a] redhat.com>
3396
3397 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3398 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3399 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3400 (gomp_iter_static_next): Update.
3401 (gomp_ordered_static_next): Update.
3402 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3403 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3404 totally empty range.
3405 (gomp_loop_ordered_static_next): Refine test for calling
3406 gomp_ordered_static_next.
3407 * testsuite/ordered-1.c: Add case for more threads than iterations.
3408
3409 * iter.c (gomp_iter_runtime_next_locked): Remove.
3410 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3411 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3412 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3413 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3414 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3415 gomp_loop_ordered_guided_next): Downcase name, make static, add
3416 an external alias with the old name.
3417 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3418 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3419 switch and call one of the above static functions.
3420 * libgomp.h: Update.
3421
3422 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3423 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3424 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3425 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3426 GOMP_loop_ordered_guided_start): Update to match.
3427 * sections.c (GOMP_sections_start): Likewise.
3428 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3429
3430 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3431 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3432 Use bounds check instead of modulus.
3433 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3434 (gomp_ordered_last): Don't sync with ordered_owner here.
3435 (gomp_ordered_next): Likewise.
3436 (gomp_ordered_static_loop_next): Likewise.
3437 * loop.c, libgomp.h: Update to match.
3438
3439 * libgomp.h (GOMP_barrier): Declare.
3440
3441 * testsuite/barrier-1.c: New file.
3442 * testsuite/critical-1.c: New file.
3443 * testsuite/ordered-2.c: New file.
3444 * testsuite/ordered-1.c: New file.
3445 * testsuite/sections-1.c: New file.
3446 * testsuite/single-1.c: New file.
3447 * testsuite/Makefile (TESTS): Add them.
3448
3449 2005-05-04 Richard Henderson <rth (a] redhat.com>
3450
3451 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3452 * loop.c (GOMP_loop_static_start): If not the startup thread,
3453 acquire the mutex to wait for initialization complete.
3454 (GOMP_loop_ordered_static_start): Likewise.
3455 (GOMP_loop_ordered_runtime_start): Likewise.
3456 (GOMP_loop_ordered_static_first): Remove.
3457 (GOMP_loop_ordered_dynamic_first): Remove.
3458 (GOMP_loop_ordered_guided_first): Remove.
3459 (GOMP_loop_ordered_runtime_first): Remove.
3460 * ordered.c (gomp_ordered_loop_first): Post to own release when
3461 we're the first thread.
3462 (gomp_ordered_loop_last): Wait on release if not owner.
3463 (gomp_ordered_loop_next): Likewise.
3464 (gomp_ordered_static_loop_init): New.
3465 (gomp_ordered_static_loop_next): Use ordered_owner.
3466 (GOMP_ordered_start): Likewise.
3467 * work.c (gomp_new_work_share): Initialize ordered_owner.
3468
3469 2005-05-03 Richard Henderson <rth (a] redhat.com>
3470
3471 * Makefile (OPT): New.
3472 (CFLAGS): Use it.
3473
3474 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3475 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3476 * libgomp.h, libgomp.map, NOTES: Update to match.
3477
3478 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3479 Add initialized and thr members.
3480 (gomp_thread_start): Pause when initially spawned to wait for
3481 the whole team to be created.
3482 (gomp_team_start): Release team members at the end.
3483
3484 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3485 (f_foo_1): Use GOMP_loop_end.
3486 (f_foo_2): Use GOMP_loop_end_nowait.
3487
3488 * testsuite/loop-2.c: New file.
3489 * testsuite/Makefile (TESTS): Add it.
3490
3491 2005-05-03 Richard Henderson <rth (a] redhat.com>
3492
3493 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3494 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3495 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3496 initial work_share.
3497
3498 * testsuite/Makefile: New file.
3499 * testsuite/loop-1.c: New file.
3500
3501 2005-05-03 Richard Henderson <rth (a] redhat.com>
3502
3503 Initial implementation and checkin.
3504