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