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