]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
Define TRY_EMPTY_VM_SPACE to 0x60000000 for x32
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
b9c23a61
L
12012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR bootstrap/52812
4 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
5
c140ddf3
JJ
62012-03-22 Jakub Jelinek <jakub@redhat.com>
7
8 PR middle-end/52547
9 * testsuite/libgomp.c/pr52547.c: New test.
10
6a26a74d
BRF
112012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12
13 * testsuite/lib/libgomp.exp: load fortran-modules.exp
14
b24513a1
RO
152012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16
17 * configure.tgt (mips-sgi-irix6*): Remove.
18
5c30094f
RO
192012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20
21 * configure.tgt (alpha*-dec-osf*): Remove.
22
23 * config/osf/sem.h: Remove.
24 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
25
a339c9d6
EB
262012-02-29 Eric Botcazou <ebotcazou@adacore.com>
27
28 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
29
cc2de92d
RO
302012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31
32 PR libstdc++/52188
33 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
34 Remove ENABLE_SYMVERS_SOL2.
35 * configure: Regenerate.
36 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
37 (PREPROCESS): New variable.
38 (libgomp.ver): New target.
39 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
40 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
41 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
42 Use libgomp.ver.
43 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
44 * Makefile.in: Regenerate.
45
dd552284
WL
462012-02-14 Walter Lee <walt@tilera.com>
47
48 * configure.tgt: Handle tilegx and tilepro.
49 * config/linux/tile/futex.h: New file.
50
31432e21
RG
512012-02-08 Richard Guenther <rguenther@suse.de>
52
53 PR tree-optimization/46886
54 * testsuite/libgomp.c/pr46886.c: New testcase.
55
b9264b5f
MK
562012-01-25 Matthias Klose <doko@ubuntu.com>
57
58 * config/linux/arm: Remove empty directory.
59 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
60
fbf7be80
AM
612011-12-09 Alan Modra <amodra@gmail.com>
62
63 PR libgomp/51376
64 * task.c (GOMP_taskwait): Don't access task->children outside of
65 task_lock mutex region.
66 (GOMP_task): Likewise.
67
5de62d00
JJ
682011-12-06 Jakub Jelinek <jakub@redhat.com>
69
70 PR libgomp/51132
71 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
72 to file scope.
73 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
74 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
75 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
76 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
77 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
78
45608a43
AM
792011-12-02 Alan Modra <amodra@gmail.com>
80
81 * config/linux/affinity.c: Use atomic rather than sync builtin.
82 * config/linux/lock.c: Likewise.
83 * config/linux/ptrlock.h: Likewise.
84 * config/linux/ptrlock.c: Likewise.
85 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
86 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
87 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
88 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
89 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
90 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
91 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
92 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
93 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
94 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
95
ab6dd406
AM
962011-11-30 Alan Modra <amodra@gmail.com>
97
98 PR libgomp/51298
99 * config/linux/bar.h: Use atomic rather than sync builtins.
100 * config/linux/bar.c: Likewise. Add missing acquire
101 synchronisation on generation field.
102 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
103 double unlock.
104
b40c885f
AM
1052011-11-30 Alan Modra <amodra@gmail.com>
106
107 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
108 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
109 * config/linux/mutex.h: Use atomic rather than sync builtins.
110 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
111 * config/linux/omp-lock.h: Comment fix.
112 * config/linux/arm/mutex.h: Delete.
113 * config/linux/powerpc/mutex.h: Delete.
114 * config/linux/ia64/mutex.h: Delete.
115 * config/linux/mips/mutex.h: Delete.
116
3e348fcc
AM
1172011-11-30 Alan Modra <amodra@gmail.com>
118
119 PR libgomp/51249
120 * config/linux/sem.h: Rewrite.
121 * config/linux/sem.c: Rewrite.
122
cef86eb2
RH
1232011-11-28 Richard Henderson <rth@redhat.com>
124
125 * libgomp.h (enum memmodel): New.
126
c6084f68
AT
1272011-11-21 Andreas Tobler <andreast@fgznet.ch>
128
129 * configure: Regenerate.
130
06fe026c
MK
1312011-10-10 Matthias Klose <doko@ubuntu.com>
132
133 * config/posix95: Remove empty directory.
134
a6c975bd
JJ
1352011-08-26 Jakub Jelinek <jakub@redhat.com>
136
137 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
138
c26dffff
JJ
1392011-08-19 Jakub Jelinek <jakub@redhat.com>
140
141 PR fortran/49792
142 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
143 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
144
ddaad3c8
RO
1452011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
146
147 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
148
98d03683
RO
1492011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
150
151 PR libgomp/49965
152 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
153
e0b23d9f
UB
1542011-08-03 Uros Bizjak <ubizjak@gmail.com>
155
156 * config/linux/proc.h: New.
157 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
158 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
159 (gomp_init_num_threads): Update call to cpuset_popcount.
160 (get_num_procs): Ditto.
161 * config/linux/affinity.c (gomp_init_affinity): Call
162 gomp_cpuset_popcount.
163
20906c66
JJ
1642011-08-02 Jakub Jelinek <jakub@redhat.com>
165
166 PR fortran/42041
167 PR fortran/46752
168 * omp.h.in (omp_in_final): New prototype.
169 * omp_lib.f90.in (omp_in_final): New interface.
170 (omp_integer_kind, omp_logical_kind): Remove
171 and replace all its uses in the module with 4.
172 (openmp_version): Change to 201107.
173 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
174 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
175 kind for the parameters.
176 (omp_in_final): New external.
177 (openmp_version): Change to 201107.
178 * task.c (omp_in_final): New function.
179 (gomp_init_task): Initialize final_task.
180 (GOMP_task): Remove unused attribute from flags. Handle final
181 tasks.
182 (GOMP_taskyield): New function.
183 (omp_in_final): Return true if if (false) or final (true) task
184 or descendant of final (true).
185 * fortran.c (omp_in_final_): New function.
186 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
187 (GOMP_3.0): Export GOMP_taskyield.
188 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
189 variables.
190 (parse_unsigned_long_list): New function.
191 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
192 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
193 even if parse_affinity returned false.
194 * config/linux/affinity.c (gomp_init_affinity): Handle
195 gomp_cpu_affinity_len == 0.
196 * libgomp_g.h (GOMP_taskyield): New prototype.
197 * libgomp.h (struct gomp_task): Add final_task field.
198 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
199 * team.c (gomp_team_start): Override new task's nthreads_var icv
200 if list form OMP_NUM_THREADS has been used and it has value for
201 the new nesting level.
202
203 * testsuite/libgomp.c/atomic-11.c: New test.
204 * testsuite/libgomp.c/atomic-12.c: New test.
205 * testsuite/libgomp.c/atomic-13.c: New test.
206 * testsuite/libgomp.c/atomic-14.c: New test.
207 * testsuite/libgomp.c/reduction-6.c: New test.
208 * testsuite/libgomp.c/task-5.c: New test.
209 * testsuite/libgomp.c++/atomic-2.C: New test.
210 * testsuite/libgomp.c++/atomic-3.C: New test.
211 * testsuite/libgomp.c++/atomic-4.C: New test.
212 * testsuite/libgomp.c++/atomic-5.C: New test.
213 * testsuite/libgomp.c++/atomic-6.C: New test.
214 * testsuite/libgomp.c++/atomic-7.C: New test.
215 * testsuite/libgomp.c++/atomic-8.C: New test.
216 * testsuite/libgomp.c++/atomic-9.C: New test.
217 * testsuite/libgomp.c++/task-8.C: New test.
218 * testsuite/libgomp.c++/reduction-4.C: New test.
219 * testsuite/libgomp.fortran/allocatable7.f90: New test.
220 * testsuite/libgomp.fortran/allocatable8.f90: New test.
221 * testsuite/libgomp.fortran/crayptr3.f90: New test.
222 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
223 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
224 * testsuite/libgomp.fortran/pointer1.f90: New test.
225 * testsuite/libgomp.fortran/pointer2.f90: New test.
226 * testsuite/libgomp.fortran/task4.f90: New test.
227
2282011-08-02 Tobias Burnus <burnus@net-b.de>
229
230 * libgomp.texi: Update OpenMP spec references to 3.1.
231 (omp_in_final,OMP_PROC_BIND): New sections.
232 (OMP_NUM_THREADS): Document that the value can be now a list.
233 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
234
c01ecafc
L
2352011-08-02 H.J. Lu <hongjiu.lu@intel.com>
236
237 * config/linux/x86/futex.h: Check __x86_64__ instead of
238 __LP64__.
239
25142650
JJ
2402011-07-29 Jakub Jelinek <jakub@redhat.com>
241
242 PR middle-end/49897
243 PR middle-end/49898
244 * testsuite/libgomp.c/pr49897-1.c: New test.
245 * testsuite/libgomp.c/pr49897-2.c: New test.
246 * testsuite/libgomp.c/pr49898-1.c: New test.
247 * testsuite/libgomp.c/pr49898-2.c: New test.
248
f53d712f
L
2492011-07-28 H.J. Lu <hongjiu.lu@intel.com>
250
251 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
252 for ia32 instead of ilp32.
253
254 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
255 * testsuite/libgomp.c/atomic-6.c: Likewise.
256
3689198d
SP
2572011-07-23 Sebastian Pop <sebastian.pop@amd.com>
258
259 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
260 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
261
1a79cb73
RO
2622011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
263
264 PR libgomp/45351
265 * config/osf/sem.h: New file.
266 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
267
c1f51484
RO
2682011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
269
270 PR target/49541
271 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
272 ldflags.
273
bfee0724
JJ
2742011-07-15 Jakub Jelinek <jakub@redhat.com>
275
276 * config/linux/wait.h (do_spin): New inline, largely copied
277 from do_wait, just don't do futex_wait here, instead return true if
278 it should be done.
279 (do_wait): Implement using do_spin.
280 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
281 to prototype.
282 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
283 __sync_bool_compare_and_swap, pass the oldval to
284 gomp_mutex_lock_slow.
285 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
286 If all mutex contenders are just spinning and not sleeping, don't
287 change state to 2 unnecessarily. Optimize the loop when state has
288 already become 2 to use just one atomic operation per loop instead
289 of two.
290 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
291 to prototype.
292 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
293 __sync_bool_compare_and_swap, pass the oldval to
294 gomp_mutex_lock_slow.
295
fb79f500
JJ
2962011-06-22 Jakub Jelinek <jakub@redhat.com>
297
298 PR libgomp/49490
299 * iter.c (gomp_iter_static_next): For chunk size 0
300 only use n ceil/ nthreads size for the first
301 n % nthreads threads in the team instead of
302 all threads except for the last few ones which
303 get less work or none at all.
304 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
305 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
306 chunk argument, set run_sched_modifier to 0 for static
307 resp. 1 for other kinds. If chunk argument is 0
308 and not static, set value to 1.
309
4577f730
JJ
3102011-05-19 Jakub Jelinek <jakub@redhat.com>
311
ea93a47b
JJ
312 PR c++/49043
313 * testsuite/libgomp.c++/pr49043.C: New test.
314
4577f730
JJ
315 PR c++/48869
316 * testsuite/libgomp.c++/pr48869.C: New test.
317
e7385332
JJ
3182011-05-06 Jakub Jelinek <jakub@redhat.com>
319
320 PR fortran/48894
321 * fortran.c: Include limits.h.
322 (TO_INT): Define.
323 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
324 *set.
325 (omp_set_num_threads_8_, omp_set_schedule_8_,
326 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
327 omp_get_team_size_8_): Use TO_INT macro.
328 * testsuite/libgomp.fortran/pr48894.f90: New test.
329
20790697
JJ
3302011-04-13 Jakub Jelinek <jakub@redhat.com>
331
332 PR middle-end/48591
333 * testsuite/libgomp.c/pr48591.c: New test.
334
bf382f5f
RO
3352011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
336
337 PR bootstrap/48135
338 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
339 * configure: Regenerate.
340
113a53c1
JJ
3412011-02-27 Jakub Jelinek <jakub@redhat.com>
342
343 PR fortran/47886
344 * testsuite/libgomp.fortran/task3.f90: New test.
345
0024f1af
TB
3462011-02-24 Tobias Burnus <burnus@net-b.de>
347
348 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
349
21e1e594
JJ
3502011-02-23 Jakub Jelinek <jakub@redhat.com>
351
352 PR libgomp/47854
353 * libgomp.texi (omp_get_wtime): Don't say time in the past
354 must be Unix Epoch.
355
67962076
JJ
3562011-02-18 Jakub Jelinek <jakub@redhat.com>
357
358 PR libgomp/47804
359 * testsuite/libgomp.fortran/fortran.exp: Check for both
360 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
361 but $blddir != "", still append ${blddir}/${lang_library_path}
362 to ld_library_path.
363
3808007c
TB
3642011-02-16 Tobias Burnus <burnus@net-b.de>
365
366 PR libgomp/47758
367 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
368 of libquadmath.a before adding its libpath to ldflags.
369
53b4d41d
JJ
3702011-02-14 Jakub Jelinek <jakub@redhat.com>
371
372 PR libgomp/47731
373 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
374 to FUTEX_WAIT futex syscall.
375 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
376
029c8f3e
RW
3772011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
378
379 * configure: Regenerate.
380
bddd6626
BK
3812011-01-20 Benjamin Kosnik <bkoz@redhat.com>
382
383 PR libstdc++/36104
384 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
385
f1d4ab26
GP
3862011-01-16 Gerald Pfeifer
387
388 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
389
2b503136
JJ
3902010-12-14 Jakub Jelinek <jakub@redhat.com>
391
392 PR fortran/46874
393 * libgomp.fortran/allocatable6.f90: New test.
394
c0f9d583
RO
3952010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
396
397 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
398 * configure: Regenerate.
399
7de6ba7a
DK
4002010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
401
402 PR target/40125
403 PR lto/46695
404 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
405 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
406 * aclocal.m4: Regenerate.
407 * configure: Regenerate.
408 * Makefile.in: Regenerate.
409 * testsuite/Makefile.in: Regenerate.
410
b7516041
JJ
4112010-12-02 Jakub Jelinek <jakub@redhat.com>
412
edaadf74
JJ
413 PR fortran/46753
414 * libgomp.fortran/pr46753.f90: New test.
415
4c698cf8
JJ
416 PR libgomp/43706
417 * env.c (initialize_env): Default to spin count 300000
418 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
419 is specified.
420
b7516041
JJ
421 PR libgomp/45240
422 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
423 at the end if sync builtins aren't supported.
424
6b43a34c
RO
4252010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
426
427 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
428
950691fa
RO
4292010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
430
431 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
432
fb9041ea
IS
4332010-11-24 Iain Sandoe <iains@gcc.gnu.org>
434
435 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
436
1ec601bf
FXC
4372010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
438 Tobias Burnus <burnus@net-b.de>
439
440 PR fortran/32049
3e348fcc 441 * configure.ac:
1ec601bf
FXC
442 * configure: Regenerate.
443
d213e92e
MS
4442010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
445
446 * config/linux/futex.h: New.
447 * config/linux/arm/mutex.h: New.
448 * configure.tgt (arm*-*-linux*): Add config path.
449
89d5c66f
SP
4502010-09-30 Sebastian Pop <sebastian.pop@amd.com>
451
452 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
453
87350d4a
TB
4542010-09-23 Tobias Burnus <burnus@net-b.de>
455
456 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
457 Change Fortran datatype to LOGICAL.
458 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
459 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
460
75bc9e5e
RW
4612010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
462
463 * configure: Regenerate.
464
acb5c916
JJ
4652010-07-26 Jakub Jelinek <jakub@redhat.com>
466
467 * libgomp.texi: Add function keyword to a couple of Fortran
468 interfaces, use integer instead of int for Fortran.
469
6a2ba183
AH
4702010-07-26 Aldy Hernandez <aldyh@redhat.com>
471
472 * libgomp.texi: Fix spelling and pasto problems throughout.
473 Adjust prototypes to match code.
474
df161b69
TB
4752010-07-24 Tobias Burnus <burnus@net-b.de>
476
477 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
478 silence -fwhole-file warning.
479
16c9d3b1
RO
4802010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
481
482 * configure.tgt (*-*-solaris2.[56]*): Removed.
483
6d28b933
RO
4842010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
485
486 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
487 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
488 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
489 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
490 targetting solaris2*.
491 * configure: Regenerate.
492 * config.h.in: Regenerate.
493
494 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
495 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
496 Add libgomp_version_dep.
497 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
498 versioning.
499 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
500 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
501 * Makefile.in: Regenerate.
502
503 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
504 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
505 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
506 to common block, protected by
507 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
508
07a67d6a
GP
5092010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
510
511 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
512
dbd34b89
IS
5132010-06-09 Iain Sandoe <iains@gcc.gnu.org>
514
515 PR bootstrap/43170
516 * configure: Regenerate.
517
13917ae3
RW
5182010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
519
520 PR other/43620
521 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
522 * configure: Regenerate.
523 * Makefile.in: Regenerate.
524 * testsuite/Makefile.in: Regenerate.
525
b83a701b
JJ
5262010-04-26 Jakub Jelinek <jakub@redhat.com>
527
528 PR c/43893
529 * testsuite/libgomp.c/pr43893.c: New test.
530 * testsuite/libgomp.c++/pr43893.C: New test.
531
78db7d92
JJ
5322010-04-21 Jakub Jelinek <jakub@redhat.com>
533
534 PR middle-end/43570
535 * testsuite/libgomp.fortran/vla8.f90: New test.
536
5221d7a9
JJ
5372010-04-20 Jakub Jelinek <jakub@redhat.com>
538
e4ba7a60
JJ
539 PR libgomp/43706
540 * config/linux/affinity.c (gomp_init_affinity): Decrease
541 gomp_available_cpus if affinity mask confines the process to fewer
542 CPUs.
543 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
544 non-NULL, just return gomp_available_cpus.
545
5221d7a9
JJ
546 PR libgomp/43569
547 * sections.c (gomp_sections_init): Initialize ws->mode.
548
289a9f86
UB
5492010-04-14 Uros Bizjak <ubizjak@gmail.com>
550
551 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
552 not unused bar variable.
553 * configure: Regenerate.
554
4d9e8446
RW
5552010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
556
557 * Makefile.in: Regenerate.
558 * aclocal.m4: Regenerate.
559 * testsuite/Makefile.in: Regenerate.
560
80f046cc
JJ
5612010-03-22 Jakub Jelinek <jakub@redhat.com>
562
563 PR libgomp/42942
564 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
565 (initialize_env): Adjust callers.
566 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
567 when the argument is 0.
568
569 * testsuite/libgomp.c/pr42942.c: New test.
570
b58543c3
SP
5712010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
572
573 PR middle-end/42644
574 PR middle-end/42130
575 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
576 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
577
41d1138f
RO
5782010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
579
580 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
581 * testsuite/libgomp.c++/task-6.C: Likewise.
582
6684eb28
SE
5832010-01-28 Steve Ellcey <sje@cup.hp.com>
584
585 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
586
2122aa97
PB
5872010-01-26 Paolo Bonzini <bonzini@gnu.org>
588
589 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
590 * configure: Regenerate.
591
057dd91d
JJ
5922010-01-26 Jakub Jelinek <jakub@redhat.com>
593
594 PR fortran/42866
595 * testsuite/libgomp.fortran/allocatable5.f90: New test.
596
d0709b6a
PB
5972010-01-20 Paolo Bonzini <bonzini@gnu.org>
598
599 * configure.ac: Test for executability of GFORTRAN.
600 * configure: Regenerate.
601
b9497ab5
RO
6022010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
603
604 * configure: Regenerate.
605
45de5648
L
6062010-01-04 H.J. Lu <hongjiu.lu@intel.com>
607
608 PR libgomp/42602
609 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
610
e74003a1
RG
6112010-01-03 Richard Guenther <rguenther@suse.de>
612
613 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
614
1b3abda8
SP
6152009-12-23 Sebastian Pop <sebpop@gmail.com>
616
617 * testsuite/libgomp.graphite/pr4118.c: New.
618
e19977d3
IS
6192009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
620
621 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
622 for darwin, protect the test with require-effective-target tls_runtime.
623 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
624
1d32a772
IS
6252009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
626
627 PR target/41605
628 * testsuite/lib/libgomp.exp: Provide -B options to allow for
629 link spec %s substitutions for static libraries.
630
deb109b2
JH
6312009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
632
633 PR testsuite/42135
634 * libgomp.graphite/force-parallel-2.c: Reduce array size.
635
43e02a8a
RW
6362009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
637
638 * Makefile.in: Regenerate.
639 * configure: Regenerate.
640 * testsuite/Makefile.in: Regenerate.
641
17f35e23
DK
6422009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
643
644 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
645 settings for LC_ALL and LANG.
646
281e33e1
JJ
6472009-11-25 Jakub Jelinek <jakub@redhat.com>
648
649 PR fortran/42162
650 * testsuite/libgomp.fortran/pr42162.f90: New test.
651
2b32c27d
JJ
6522009-11-13 Jakub Jelinek <jakub@redhat.com>
653
654 PR middle-end/42029
281e33e1 655 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 656
89c74f4a
JJ
6572009-10-26 Jakub Jelinek <jakub@redhat.com>
658
659 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
660 *s. Accept ld version without text in ()s.
661 * configure: Regenerated.
662
7e06c3d6
EB
6632009-10-22 Razya Ladelsky <razya@il.ibm.com>
664
665 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
666
0046b1a7
RW
6672009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
668
669 PR libgomp/41418
670 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
671 or a hyphen (happens with fortran language disabled).
672 * configure: Regenerate.
673
c82852f7
RW
6742009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
675
676 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
677 use sed script portable to Solaris /bin/sed for extracting ld
678 version.
679 * configure: Regenerate.
680
98f3eb1f
AM
6812009-09-17 Alexander Monakov <amonakov@ispras.ru>
682
683 * testsuite/libgomp.graphite/bounds.c: New test.
684
878f62e5
RW
6852009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
686
687 * Makefile.am (libgomp_la_LINK): New.
688 * Makefile.in: Regenerate.
689
df58e648
RW
6902009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
691
692 * configure.ac (AC_PREREQ): Bump to 2.64.
693
5213506e
RW
6942009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
695
70fa0efa
RW
696 * Makefile.am (install-html, install-pdf): Remove.
697 * Makefile.in: Regenerate.
698
5213506e
RW
699 * Makefile.in: Regenerate.
700 * aclocal.m4: Regenerate.
701 * config.h.in: Regenerate.
702 * configure: Regenerate.
703 * testsuite/Makefile.in: Regenerate.
704
84fec8a5
RW
7052009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
706
707 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
708 * Makefile.in: Regenerate.
709
197c68cc
DK
7102009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
711
712 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
713 * Makefile.in: Regenerate.
714
693d54f2
TB
7152009-08-19 Tobias Burnus <burnus@net-b.de>
716
717 PR fortran/41102
718 omp_lib.h.in: Fix -std=f95 errors.
719
720
8cac884c
DE
7212009-08-14 David Edelsohn <edelsohn@gnu.org>
722
723 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
724 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
725 * testsuite/libgomp.graphite/graphite.exp: New.
726
78729ee2
AT
7272009-08-05 Andreas Tobler <a.tobler@schweiz.org>
728
729 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
730 only build.
731
b13b7f39
DD
7322009-08-04 David Daney <ddaney@caviumnetworks.com>
733
734 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
735 needed memory barrier semantics.
736 * config/linux/mips/mutex.h: New file.
737
1b3b24c2
RW
7382009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
739
740 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
741
396b7fa4
JM
7422009-07-16 Joseph Myers <joseph@codesourcery.com>
743
744 * configure: Regenerate.
745
33cde516
RS
7462009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
747
748 PR testsuite/40699
749 PR testsuite/40707
750 PR testsuite/40709
751 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
752 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
753 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
754
bc21bfa5
RS
7552009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
756
757 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
758 options when choosing a multilib.
759
b30bfd40
RS
7602009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
761
762 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
763 ld_library_path. Use add_path. Add just find_libgcc_s to
764 ld_library_path, not every libgcc multilib directory.
765 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
766 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
767 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
768 Use add_path.
769 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
770
479c15c2
NF
7712009-06-09 Nathan Froyd <froydnj@codesourcery.com>
772
773 * Makefile.am (LTLDFLAGS): Define.
774 (LINK): Define.
775 * Makefile.in: Regenerate.
776
667e6f89
JB
7772009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
778
779 PR fortran/39718
780 * testsuite/libgomp.fortran/fortran.exp: Don't link with
781 libgfortranbegin, check existence of libgfortran.a instead of
782 libgfortranbegin.a.
783
6dea8e99
JJ
7842009-05-20 Jakub Jelinek <jakub@redhat.com>
785
786 PR libgomp/40174
787 * team.c (gomp_thread_start): Destroy thr->release semaphore.
788 (gomp_free_pool_helper): Likewise.
789
34d01e1d
VL
7902009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
791 Jakub Jelinek <jakub@redhat.com>
792
793 PR fortran/35423
794 * testsuite/libgomp.fortran/workshare2.f90: New test.
795
748086b7
JJ
7962009-04-09 Nick Clifton <nickc@redhat.com>
797
798 * iter.c: Change copyright header to refer to version 3 of the
799 GNU General Public License with version 3.1 of the GCC Runtime
800 Library Exception and to point readers at the COPYING3 and
801 COPYING3.RUNTIME files and the FSF's license web page.
802 * alloc.c: Likewise.
803 * barrier.c: Likewise.
804 * config/bsd/proc.c: Likewise.
805 * config/linux/affinity.c: Likewise.
806 * config/linux/alpha/futex.h: Likewise.
807 * config/linux/bar.c: Likewise.
808 * config/linux/bar.h: Likewise.
809 * config/linux/ia64/futex.h: Likewise.
810 * config/linux/ia64/mutex.h: Likewise.
811 * config/linux/lock.c: Likewise.
812 * config/linux/mips/futex.h: Likewise.
813 * config/linux/mutex.c: Likewise.
814 * config/linux/mutex.h: Likewise.
815 * config/linux/powerpc/futex.h: Likewise.
816 * config/linux/proc.c: Likewise.
817 * config/linux/ptrlock.c: Likewise.
818 * config/linux/ptrlock.h: Likewise.
819 * config/linux/s390/futex.h: Likewise.
820 * config/linux/sem.c: Likewise.
821 * config/linux/sem.h: Likewise.
822 * config/linux/sparc/futex.h: Likewise.
823 * config/linux/wait.h: Likewise.
824 * config/linux/x86/futex.h: Likewise.
825 * config/mingw32/proc.c: Likewise.
826 * config/mingw32/time.c: Likewise.
827 * config/posix/affinity.c: Likewise.
828 * config/posix/bar.c: Likewise.
829 * config/posix/bar.h: Likewise.
830 * config/posix/lock.c: Likewise.
831 * config/posix/mutex.h: Likewise.
832 * config/posix/proc.c: Likewise.
833 * config/posix/ptrlock.h: Likewise.
834 * config/posix/sem.c: Likewise.
835 * config/posix/sem.h: Likewise.
836 * config/posix/time.c: Likewise.
837 * config/posix95/lock.c: Likewise.
838 * critical.c: Likewise.
839 * env.c: Likewise.
840 * error.c: Likewise.
841 * fortran.c: Likewise.
842 * iter_ull.c: Likewise.
843 * libgomp.h: Likewise.
844 * libgomp_f.h.in: Likewise.
845 * libgomp_g.h: Likewise.
846 * loop.c: Likewise.
847 * loop_ull.c: Likewise.
848 * omp.h.in: Likewise.
849 * omp_lib.f90.in: Likewise.
850 * omp_lib.h.in: Likewise.
851 * ordered.c: Likewise.
852 * parallel.c: Likewise.
853 * sections.c: Likewise.
854 * single.c: Likewise.
855 * task.c: Likewise.
856 * team.c: Likewise.
857 * work.c: Likewise.
858
8592009-04-09 Jakub Jelinek <jakub@redhat.com>
860
861 * testsuite/config/default.exp: Change copyright header to refer to
862 version 3 of the GNU General Public License and to point readers
863 at the COPYING3 file and the FSF's license web page.
864
4f0ae266
JJ
8652009-04-08 Jakub Jelinek <jakub@redhat.com>
866
867 PR middle-end/39573
868 * libgomp.c++/pr39573.C: New test.
869
03742a9b
JJ
8702009-04-01 Jakub Jelinek <jakub@redhat.com>
871
872 PR other/39591
873 * testsuite/libgomp.c/pr39591-1.c: New test.
874 * testsuite/libgomp.c/pr39591-2.c: New test.
875 * testsuite/libgomp.c/pr39591-3.c: New test.
876
e50ea10b
UB
8772009-03-25 Uros Bizjak <ubizjak@gmail.com>
878
879 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
880 * testsuite/libgomp.c/atomic-6.c: Ditto.
881
c5cdb03f
JJ
8822009-03-23 Jakub Jelinek <jakub@redhat.com>
883
884 PR c/39495
885 * testsuite/libgomp.c/loop-12.c: New test.
886 * testsuite/libgomp.c/loop-11.c: New test.
887 * testsuite/libgomp.c++/loop-11.C: New test.
888 * testsuite/libgomp.c++/loop-12.C: New test.
889 * testsuite/libgomp.c++/for-8.C: New test.
890
7a9d3fe8
RW
8912009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
892
893 * configure: Regenerate.
894
3ad6b266
JJ
8952009-02-11 Jakub Jelinek <jakub@redhat.com>
896
897 PR middle-end/39154
898 * testsuite/libgomp.c/pr39154.c: New test.
899
b39dea08
ILT
9002009-01-30 Ian Lance Taylor <iant@google.com>
901
902 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
903 libgomp_ld_is_gold. Get gold version number.
904 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
905 * configure: Rebuild.
906
72c66596
IS
9072009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
908
e50ea10b 909 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
910 use libgfortran.a%s in their specs.
911
876080ff
JJ
9122009-01-07 Jakub Jelinek <jakub@redhat.com>
913
914 PR libgomp/38086
915 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
916 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
917 HAVE_AS_SYMVER_DIRECTIVE is not defined.
918 * configure: Regenerated.
919 * config.h.in: Likewise.
920
e4ebaef3
JJ
9212008-12-28 Jakub Jelinek <jakub@redhat.com>
922
923 PR c++/38650
924 * testsuite/libgomp.c/pr38650.c: New test.
925 * testsuite/libgomp.c++/pr38650.C: New test.
926
382017a6
JJ
9272008-12-27 Jakub Jelinek <jakub@redhat.com>
928
929 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
930
79644b27
UB
9312008-12-26 Uros Bizjak <ubizjak@gmail.com>
932
933 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
934
baafc534
RW
9352008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
936
937 * configure: Regenerate.
938
d9c194cb
JJ
9392008-12-08 Jakub Jelinek <jakub@redhat.com>
940
941 PR middle-end/36802
942 * testsuite/libgomp.c/pr36802-1.c: New test.
943 * testsuite/libgomp.c/pr36802-2.c: New test.
944 * testsuite/libgomp.c/pr36802-3.c: New test.
945
86a182bf
JJ
9462008-12-01 Janis Johnson <janis187@us.ibm.com>
947
948 PR libgomp/38270
949 * config/linux/powerpc/mutex.h: New.
950
956adfaf
JJ
9512008-12-01 Jakub Jelinek <jakub@redhat.com>
952
a2d4cdc9
JJ
953 PR c++/38257
954 * testsuite/libgomp.c++/for-7.C: New test.
955
956adfaf
JJ
956 PR c++/38348
957 * testsuite/libgomp.c++/for-6.C: New test.
958
d4038ca2
JJ
9592008-11-26 Janis Johnson <janis187@us.ibm.com>
960
961 PR testsuite/28870
962 * testsuite/lib/libgomp.exp: Include new timeout library files.
963 (libgomp_target_compile): Set timeout value from new proc.
964
8b159eea
SE
9652008-11-13 Steve Ellcey <sje@cup.hp.com>
966
967 PR libgomp/37938
968 * config/linux/ia64/mutex.h: New.
969
5c6ed53a
TB
9702008-11-04 Tobias Burnus <burnus@net-b.de>
971
972 PR libgomp/37935
973 * libgomp.texi (Runtime library routines, environment variables):
974 Update for OpenMP version 3.0.
975
6b4a97ed
PG
9762008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
977 Steve Ellcey <sje@cup.hp.com>
978
979 * configure: Regenerate for new libtool.
980 * Makefile.in: Ditto.
981 * testsuite/Makefile.in: Ditto.
982
e2b34106
JJ
9832008-09-19 Jakub Jelinek <jakub@redhat.com>
984 Andreas Tobler <a.tobler@schweiz.org>
985
986 * config/bsd/proc.c: New file.
8c3b3600 987 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
988 * configure.ac: Check for header <sys/sysctl.h>
989 * configure: Regenerate.
990 * config.h.in: Likewise.
991
3606b8bf
JJ
9922008-09-05 Janis Johnson <janis187@us.ibm.com>
993
994 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
995
6528b88d
AL
9962008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
997
998 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
999 * Makefile.in: Regenerated.
1000 * testsuite/Makefile.in: Regenerated.
1001
d9b14b12 10022008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 1003
a16b68bb 1004 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
1005 depend on blddir if blddir exists.
1006 (libgomp_target_compile): Likewise.
1007 * testsuite/libgomp.c++/c++.exp: Likewise.
1008 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1009
70b1e376
RW
10102008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1011
1012 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1013 Do not list GPL as Invariant Section.
1014
318e8c3f
IG
10152008-07-28 Ilie Garbacea <ilie@mips.com>
1016 Chao-ying Fu <fu@mips.com>
1017
1018 * configure.tgt: Enable futex for MIPS.
1019 * config/linux/mips/futex.h: New file.
1020
4db72361
JJ
10212008-07-16 Jakub Jelinek <jakub@redhat.com>
1022
1023 * team.c (gomp_team_end): Free team immediately if it has
1024 just one thread.
1025
87bd23b8
DE
10262008-07-08 David Edelsohn <edelsohn@gnu.org>
1027
1028 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1029 * testsuite/libgomp.fortran/fortran.exp: Same.
1030 * testsuite/libgomp.c/c.exp: Same.
1031 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1032 directory to library path first.
1033
323ff903
KW
10342008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1035
1036 * env.c (parse_stacksize): Add cast to avoid warning.
1037 (parse_spincount): Likewise.
1038
b357f682
JJ
10392008-06-27 Jakub Jelinek <jakub@redhat.com>
1040
ca2b1311
JJ
1041 * testsuite/libgomp.c/loop-10.c: New test.
1042 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1043 * libgomp.c++/loop-6.C (main): Likewise.
1044
b357f682
JJ
1045 PR debug/36617
1046 * testsuite/libgomp.c/debug-1.c: New test.
1047
09a46078
JJ
10482008-06-19 Jakub Jelinek <jakub@redhat.com>
1049
1050 * testsuite/libgomp.c/nqueens-1.c: New test.
1051
2368a460
JJ
1052 PR c++/36523
1053 * testsuite/libgomp.c++/task-7.C: New function.
1054
18c04407
RW
10552008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1056
1057 * configure: Regenerate.
1058
9c4e59e0
JDA
10592008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1060
1061 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1062 mutex when HAVE_SYNC_BUILTINS isn't defined.
1063
6ccde948
RW
10642008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1065
1066 * libgomp.texi (omp_test_lock): Fix typo.
1067
b896f9fd
TB
10682008-06-12 Tobias Burnus <burnus@net-b.de>
1069
1070 * omp_lib.f90.in: Add "implicit none".
1071
c34938a8
JJ
10722008-06-12 Jakub Jelinek <jakub@redhat.com>
1073
1074 PR middle-end/36506
1075 * testsuite/libgomp.c/reduction-5.c: New test.
1076
976e44e3
JJ
10772008-06-11 Jakub Jelinek <jakub@redhat.com>
1078
5f836cbb
JJ
1079 * libgomp.h (struct gomp_task): Add in_tied_task field.
1080 * task.c (gomp_init_task): Initialize it.
1081 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1082 unconditionally. Don't call gomp_team_barrier_wake if
1083 current task is implicit or if(0) from implicit and number of
1084 running tasks is equal to nthreads - 1.
1085
01501fc8
JJ
1086 PR libgomp/36471
1087 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1088 omp_get_team_size_8): Fix pastos.
1089
976e44e3
JJ
1090 PR libgomp/36469
1091 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1092 * configure: Regenerated.
1093 * config.h.in: Regenerated.
1094 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1095 defined.
1096
e919209b
AT
10972008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1098
1099 PR bootstrap/36452
1100 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1101 (GOMP_loop_ull_dynamic_start): Likewise.
1102 (GOMP_loop_ull_guided_start): Likewise.
1103 (GOMP_loop_ull_ordered_static_start): Likewise.
1104 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1105 (GOMP_loop_ull_ordered_guided_start): Likewise.
1106
a68ab351
JJ
11072008-06-06 Jakub Jelinek <jakub@redhat.com>
1108 Richard Henderson <rth@redhat.com>
1109 Ulrich Drepper <drepper@redhat.com>
1110 Jakob Blomer <jakob.blomer@ira.uka.de>
1111
1112 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1113 Substitute also OMP_*LOCK_25*.
1114 * configure: Regenerated.
1115 * config.h.in: Regenerated.
1116 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1117 ptrlock.c and task.c.
1118 * Makefile.in: Regenerated.
1119 * testsuite/Makefile.in: Regenerated.
1120 * task.c: New file.
1121 * loop_ull.c: New file.
1122 * iter_ull.c: New file.
1123 * libgomp.h: Include ptrlock.h.
1124 (enum gomp_task_kind): New type.
1125 (struct gomp_team): Add task_lock, task_queue, task_count,
1126 task_running_count, single_count fields. Add
1127 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1128 Remove work_share_lock, generation_mask,
1129 oldest_live_gen, num_live_gen and init_work_shares fields, add
1130 work work_share_list_alloc, work_share_list_free and work_share_chunk
1131 fields. Change work_shares from pointer to pointers into an array.
1132 Change ordered_release field into gomp_sem_t ** from flexible array
1133 member. Add implicit_task and initial_work_shares fields.
1134 Move close to the end of the struct.
1135 (struct gomp_team_state): Add single_count, last_work_share,
1136 active_level and level fields, remove work_share_generation.
1137 (gomp_barrier_handle_tasks): New prototype.
1138 (gomp_finish_task): New inline function.
1139 (struct gomp_work_share): Move chunk_size, end, incr into
1140 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1141 next_ll fields. Reshuffle fields. Add next_alloc,
1142 next_ws, next_free and inline_ordered_team_ids fields, change
1143 ordered_team_ids into pointer from flexible array member.
1144 Add mode field. Put lock and next into a different cache line
1145 from most of the write-once fields.
1146 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1147 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1148 gomp_iter_ull_guided_next): New prototypes.
1149 (gomp_new_icv): New prototype.
1150 (struct gomp_thread): Add thread_pool and task fields.
1151 (struct gomp_thread_pool): New type.
1152 (gomp_new_team): New prototype.
1153 (gomp_team_start): Change type of last argument.
1154 (gomp_new_work_share): Removed.
1155 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1156 (gomp_work_share_init_done): New static inline.
1157 (gomp_throttled_spin_count_var, gomp_available_cpus,
1158 gomp_managed_threads): New extern decls.
1159 (gomp_init_task): New prototype.
1160 (gomp_spin_count_var): New extern var decl.
1161 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1162 or no alias support, or if not PIC.
1163 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1164 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1165 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1166 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1167 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1168 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1169 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1170 gomp_test_nest_lock_25): New prototypes.
1171 (omp_lock_symver, strong_alias): Define.
1172 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1173 decls.
1174 (gomp_end_task): New.
1175 (struct gomp_task_icv, gomp_global_icv): New.
1176 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1177 (struct gomp_task): New.
1178 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1179 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1180 (gomp_icv): New.
1181 (gomp_schedule_type): Reorder enum to match
1182 omp_sched_t.
1183 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1184 fields.
1185 (gomp_thread_start): Add gomp_team_barrier_wait call.
1186 For non-nested case remove clearing of docked thread thr fields.
1187 Use pool fields instead of global gomp_* variables. Use
1188 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1189 Create tasks for each member thread.
1190 (free_team): Only destroy team barrier, task_lock here and free it.
1191 (gomp_free_thread): Free last_team if non-NULL.
1192 (gomp_team_end): Call gomp_team_barrier_wait instead of
1193 gomp_barrier_wait. For nested case call one extra
1194 gomp_barrier_wait. Move here some destruction from free_team.
1195 Call free_team on pool->last_team if any, rather than freeing
1196 current team. Destroy work_share_list_free_lock ifndef
1197 HAVE_SYNC_BUILTINS.
1198 (gomp_new_icv): New function.
1199 (gomp_threads, gomp_threads_size, gomp_threads_used,
1200 gomp_threads_dock): Removed.
1201 (gomp_thread_destructor): New variable.
1202 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1203 functions.
1204 (gomp_team_start): Create new pool if current thread doesn't have
3e348fcc 1205 one. Use pool fields instead of global gomp_* variables.
a68ab351
JJ
1206 Initialize thread_pool field for new threads. Clear single_count.
1207 Change last argument from ws to team, don't create
1208 new team, set ts.work_share to &team->work_shares[0] and clear
1209 ts.last_work_share. Don't clear ts.work_share_generation.
1210 If number of threads changed, adjust atomically gomp_managed_threads.
1211 Use gomp_init_task instead of gomp_new_task,
1212 set thr->task to the corresponding implicit_task array entry.
1213 Create tasks for each member thread. Initialize ts.level.
1214 (initialize_team): Call pthread_key_create on
1215 gomp_thread_destructor.
1216 (team_destructor): New function.
1217 (new_team): Removed.
1218 (gomp_new_team): New function.
1219 (free_team): Free gomp_work_share blocks chained through next_alloc,
1220 instead of freeing work_shares and destroying work_share_lock.
1221 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1222 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1223 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1224 of gomp_barrier_wait.
1225 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1226 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1227 if gomp_work_share_start returned true. Don't unlock ws->lock.
1228 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1229 of gomp_barrier_wait.
1230 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1231 gomp_work_share_init_done if gomp_work_share_start returned true.
1232 Don't unlock ws->lock.
1233 * work.c: Include stddef.h.
1234 (free_work_share): Use work_share_list_free_lock instead
1235 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1236 Call gomp_fini_work_share and then either free ws if orphaned, or
1237 put it into work_share_list_free list of the current team.
1238 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1239 functions.
1240 (gomp_work_share_start, gomp_work_share_end,
1241 gomp_work_share_end_nowait): Rewritten.
1242 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1243 (openmp_version): Set to 200805.
1244 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1245 omp_sched_guided, omp_sched_auto): New parameters.
1246 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1247 omp_set_max_active_levels, omp_get_max_active_levels,
1248 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1249 omp_get_active_level): New interfaces.
1250 * omp_lib.h.in (openmp_version): Set to 200805.
1251 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1252 omp_sched_guided, omp_sched_auto): New parameters.
1253 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1254 omp_set_max_active_levels, omp_get_max_active_levels,
1255 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1256 omp_get_active_level): New externals.
1257 * loop.c: Include limits.h.
1258 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1259 GFS_AUTO.
1260 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1261 Likewise. Use gomp_icv.
1262 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1263 ts.static_trip here.
1264 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1265 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1266 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1267 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1268 don't unlock ws->lock, otherwise lock it.
1269 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1270 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1271 (gomp_parallel_loop_start): Call gomp_new_team instead of
1272 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1273 Adjust gomp_team_start caller. Pass 0 as second argument to
1274 gomp_resolve_num_threads.
1275 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1276 If adding ws->chunk_size nthreads + 1 times after end won't
1277 overflow, set ws->mode to 1.
1278 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1279 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1280 GOMP_loop_ull_ordered_static_start,
1281 GOMP_loop_ull_ordered_dynamic_start,
1282 GOMP_loop_ull_ordered_guided_start,
1283 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1284 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1285 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1286 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1287 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1288 prototypes.
1289 * libgomp.map: Export lock routines also @@OMP_2.0.
1290 (GOMP_loop_ordered_dynamic_first,
1291 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1292 GOMP_loop_ordered_static_first): Remove.
1293 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1294 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1295 GOMP_loop_ull_ordered_dynamic_next,
1296 GOMP_loop_ull_ordered_dynamic_start,
1297 GOMP_loop_ull_ordered_guided_next,
1298 GOMP_loop_ull_ordered_guided_start,
1299 GOMP_loop_ull_ordered_runtime_next,
1300 GOMP_loop_ull_ordered_runtime_start,
1301 GOMP_loop_ull_ordered_static_next,
1302 GOMP_loop_ull_ordered_static_start,
1303 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1304 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1305 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1306 (omp_set_schedule, omp_get_schedule,
1307 omp_get_thread_limit, omp_set_max_active_levels,
1308 omp_get_max_active_levels, omp_get_level,
1309 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1310 omp_set_schedule_, omp_set_schedule_8_,
1311 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1312 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1313 omp_get_max_active_levels_, omp_get_level_,
1314 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1315 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1316 New exports @@OMP_3.0.
1317 * omp.h.in (omp_sched_t): New type.
1318 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1319 omp_set_max_active_levels, omp_get_max_active_levels,
1320 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1321 omp_get_active_level): New prototypes.
1322 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1323 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1324 gomp_thread_limit_var, gomp_remaining_threads_count,
1325 gomp_remaining_threads_lock): New variables.
1326 (parse_spincount): New function.
1327 (initialize_env): Call gomp_init_num_threads unconditionally.
1328 Initialize gomp_available_cpus. Call parse_spincount,
1329 initialize gomp_{,throttled_}spin_count_var
1330 depending on presence and value of OMP_WAIT_POLICY and
1331 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1332 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1333 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1334 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1335 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1336 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1337 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1338 (gomp_global_icv): New.
1339 (parse_schedule): Use it. Parse "auto".
1340 (omp_set_num_threads): Use gomp_icv.
1341 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1342 Likewise.
1343 (omp_get_max_threads): Move from parallel.c.
1344 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1345 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1346 add ialias.
1347 (parse_stacksize, parse_wait_policy): New functions.
1348 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1349 both wrappers for compatibility and new locks.
1350 (omp_set_schedule, omp_get_schedule,
1351 omp_get_thread_limit, omp_set_max_active_levels,
1352 omp_get_max_active_levels, omp_get_level,
1353 omp_get_ancestor_thread_num, omp_get_team_size,
1354 omp_get_active_level): New ialias_redirect.
1355 (omp_set_schedule_, omp_set_schedule_8_,
1356 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1357 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1358 omp_get_max_active_levels_, omp_get_level_,
1359 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1360 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1361 New functions.
1362 * parallel.c: Include limits.h.
1363 (gomp_resolve_num_threads): Add count argument. Rewritten.
1364 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1365 argument to gomp_team_start. Pass 0 as second argument to
1366 gomp_resolve_num_threads.
1367 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1368 if gomp_thread_limit_var != ULONG_MAX.
1369 (omp_in_parallel): Implement using ts.active_level.
1370 (omp_get_max_threads): Move to env.c.
1371 (omp_get_level, omp_get_ancestor_thread_num,
1372 omp_get_team_size, omp_get_active_level): New functions,
1373 add ialias.
1374 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1375 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1376 gomp_iter_dynamic_next instead of the _locked variant and don't take
1377 lock around it, otherwise acquire it before calling
1378 gomp_iter_dynamic_next_locked.
1379 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1380 gomp_iter_dynamic_next instead of the _locked variant and don't take
1381 lock around it.
1382 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1383 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1384 Adjust gomp_team_start caller. Pass count as second argument to
1385 gomp_resolve_num_threads, don't adjust num_threads after the call.
1386 Use gomp_icv.
1387 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1388 ws->chunk_size by incr.
1389 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1390 code.
1391 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1392 types.
1393 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1394 (omp_check_defines): Check even the compat defines.
1395 * config/linux/ptrlock.c: New file.
1396 * config/linux/ptrlock.h: New file.
1397 * config/linux/wait.h: New file.
1398 * config/posix/ptrlock.c: New file.
1399 * config/posix/ptrlock.h: New file.
1400 * config/linux/bar.h (gomp_team_barrier_wait,
1401 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1402 (gomp_team_barrier_set_task_pending,
1403 gomp_team_barrier_clear_task_pending,
1404 gomp_team_barrier_set_waiting_for_tasks,
1405 gomp_team_barrier_waiting_for_tasks,
1406 gomp_team_barrier_done): New inlines.
1407 (gomp_barrier_t): Rewritten.
1408 (gomp_barrier_state_t): New typedef.
1409 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1410 gomp_barrier_wait_start): Rewritten.
1411 (gomp_barrier_wait_end): Change second argument to
1412 gomp_barrier_state_t.
1413 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1414 inlines.
1415 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1416 futex.h.
1417 (gomp_barrier_wait_end): Rewritten.
1418 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1419 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1420 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1421 (gomp_barrier_state_t): New typedef.
1422 (gomp_team_barrier_wait,
1423 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1424 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1425 into the return value. Return gomp_barrier_state_t.
1426 (gomp_team_barrier_set_task_pending,
1427 gomp_team_barrier_clear_task_pending,
1428 gomp_team_barrier_set_waiting_for_tasks,
1429 gomp_team_barrier_waiting_for_tasks,
1430 gomp_team_barrier_done): New inlines.
1431 (gomp_barrier_wait_end): Change second argument to
1432 gomp_barrier_state_t.
1433 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1434 inlines.
1435 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1436 (gomp_barrier_wait_end): Change second argument to
3e348fcc 1437 gomp_barrier_state_t.
a68ab351
JJ
1438 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1439 gomp_team_barrier_wake): New functions.
1440 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1441 futex.h.
1442 (gomp_futex_wake, gomp_futex_wait): New variables.
1443 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1444 * config/linux/lock.c: Rewrite to make locks task owned,
1445 for backwards compatibility provide the old entrypoints
1446 if symbol versioning. Include wait.h instead of libgomp.h and
1447 futex.h.
1448 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1449 * config/posix95/lock.c: Rewrite to make locks task owned,
1450 for backwards compatibility provide the old entrypoints
1451 if symbol versioning.
1452 * config/posix/lock.c: Rewrite to make locks task owned,
1453 for backwards compatibility provide the old entrypoints
1454 if symbol versioning.
1455 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1456 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1457 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1458 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1459 (sys_futex0): Return error code.
1460 (futex_wake, futex_wait): If ENOSYS was returned, clear
1461 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1462 (cpu_relax, atomic_write_barrier): New static inlines.
1463 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1464 (futex_wake, futex_wait): If ENOSYS was returned, clear
1465 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1466 (cpu_relax, atomic_write_barrier): New static inlines.
1467 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1468 (sys_futex0): Return error code.
1469 (futex_wake, futex_wait): If ENOSYS was returned, clear
1470 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1471 (cpu_relax, atomic_write_barrier): New static inlines.
1472 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1473 (sys_futex0): Return error code.
1474 (futex_wake, futex_wait): If ENOSYS was returned, clear
1475 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1476 (cpu_relax, atomic_write_barrier): New static inlines.
1477 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1478 (sys_futex0): Return error code.
1479 (futex_wake, futex_wait): If ENOSYS was returned, clear
1480 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1481 (cpu_relax, atomic_write_barrier): New static inlines.
1482 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1483 (sys_futex0): Return error code.
1484 (futex_wake, futex_wait): If ENOSYS was returned, clear
1485 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1486 (cpu_relax, atomic_write_barrier): New static inlines.
1487 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1488 futex.h.
1489 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1490 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1491 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1492 types.
1493 (omp_nest_lock_t): Change owner into void *, add lock field.
1494 * config/posix95/omp-lock.h: Include semaphore.h.
1495 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1496 (omp_lock_t): Use sem_t instead of mutex if semaphores
1497 aren't broken.
1498 (omp_nest_lock_t): Likewise. Change owner to void *.
1499 * config/posix/omp-lock.h: Include semaphore.h.
1500 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1501 (omp_lock_t): Use sem_t instead of mutex if semaphores
1502 aren't broken.
1503 (omp_nest_lock_t): Likewise. Add owner field.
1504
15052008-06-06 Jakub Jelinek <jakub@redhat.com>
1506
1507 * testsuite/libgomp.c/collapse-1.c: New test.
1508 * testsuite/libgomp.c/collapse-2.c: New test.
1509 * testsuite/libgomp.c/collapse-3.c: New test.
1510 * testsuite/libgomp.c/icv-1.c: New test.
1511 * testsuite/libgomp.c/icv-2.c: New test.
1512 * testsuite/libgomp.c/lib-2.c: New test.
1513 * testsuite/libgomp.c/lock-1.c: New test.
1514 * testsuite/libgomp.c/lock-2.c: New test.
1515 * testsuite/libgomp.c/lock-3.c: New test.
1516 * testsuite/libgomp.c/loop-4.c: New test.
1517 * testsuite/libgomp.c/loop-5.c: New test.
1518 * testsuite/libgomp.c/loop-6.c: New test.
1519 * testsuite/libgomp.c/loop-7.c: New test.
1520 * testsuite/libgomp.c/loop-8.c: New test.
1521 * testsuite/libgomp.c/loop-9.c: New test.
1522 * testsuite/libgomp.c/nested-3.c: New test.
1523 * testsuite/libgomp.c/nestedfn-6.c: New test.
1524 * testsuite/libgomp.c/sort-1.c: New test.
1525 * testsuite/libgomp.c/task-1.c: New test.
1526 * testsuite/libgomp.c/task-2.c: New test.
1527 * testsuite/libgomp.c/task-3.c: New test.
1528 * testsuite/libgomp.c/task-4.c: New test.
1529 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1530 to C++ testsuite default compiler options.
1531 * testsuite/libgomp.c++/collapse-1.C: New test.
1532 * testsuite/libgomp.c++/collapse-2.C: New test.
1533 * testsuite/libgomp.c++/ctor-10.C: New test.
1534 * testsuite/libgomp.c++/for-1.C: New test.
1535 * testsuite/libgomp.c++/for-2.C: New test.
1536 * testsuite/libgomp.c++/for-3.C: New test.
1537 * testsuite/libgomp.c++/for-4.C: New test.
1538 * testsuite/libgomp.c++/for-5.C: New test.
1539 * testsuite/libgomp.c++/loop-8.C: New test.
1540 * testsuite/libgomp.c++/loop-9.C: New test.
1541 * testsuite/libgomp.c++/loop-10.C: New test.
1542 * testsuite/libgomp.c++/task-1.C: New test.
1543 * testsuite/libgomp.c++/task-2.C: New test.
1544 * testsuite/libgomp.c++/task-3.C: New test.
1545 * testsuite/libgomp.c++/task-4.C: New test.
1546 * testsuite/libgomp.c++/task-5.C: New test.
1547 * testsuite/libgomp.c++/task-6.C: New test.
1548 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1549 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1550 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1551 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1552 * testsuite/libgomp.fortran/collapse1.f90: New test.
1553 * testsuite/libgomp.fortran/collapse2.f90: New test.
1554 * testsuite/libgomp.fortran/collapse3.f90: New test.
1555 * testsuite/libgomp.fortran/collapse4.f90: New test.
1556 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1557 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1558 * testsuite/libgomp.fortran/lib4.f90: New test.
1559 * testsuite/libgomp.fortran/lock-1.f90: New test.
1560 * testsuite/libgomp.fortran/lock-2.f90: New test.
1561 * testsuite/libgomp.fortran/nested1.f90: New test.
1562 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1563 * testsuite/libgomp.fortran/strassen.f90: New test.
1564 * testsuite/libgomp.fortran/tabs1.f90: New test.
1565 * testsuite/libgomp.fortran/tabs2.f: New test.
1566 * testsuite/libgomp.fortran/task1.f90: New test.
1567 * testsuite/libgomp.fortran/task2.f90: New test.
1568 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1569 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1570 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1571 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1572 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1573
7a0112e7
JJ
15742008-05-23 Jakub Jelinek <jakub@redhat.com>
1575
1576 PR c++/36308
1577 * testsuite/libgomp.c++/ctor-11.C: New test.
1578 * testsuite/libgomp.c++/ctor-12.C: New test.
1579
91a5b394
JJ
15802008-05-15 Janis Johnson <janis187@us.ibm.com>
1581
1582 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1583
c18c98c0
JJ
15842008-05-07 Jakub Jelinek <jakub@redhat.com>
1585
1586 PR middle-end/36106
1587 * testsuite/libgomp.c/atomic-5.c: New test.
1588 * testsuite/libgomp.c/atomic-6.c: New test.
1589 * testsuite/libgomp.c/autopar-1.c: New test.
1590
6d26724a
RW
15912008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1592
1593 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1594 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1595 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1596 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1597 * configure: Regenerate.
1598 * Makefile.in, testsuite/Makefile.in: Likewise.
1599
deb984e6
PB
16002008-04-18 Paolo Bonzini <bonzini@gnu.org>
1601
1602 PR bootstrap/35457
1603 * aclocal.m4: Regenerate.
1604 * configure: Regenerate.
1605
9e775963
JJ
16062008-03-18 Jakub Jelinek <jakub@redhat.com>
1607
8119fc93
JJ
1608 PR middle-end/35611
1609 * testsuite/libgomp.c/atomic-4.c: New test.
1610
9e775963
JJ
1611 PR libgomp/35625
1612 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1613 (gomp_iter_guided_next): Likewise.
1614 * testsuite/libgomp.c/pr35625.c: New test.
1615
38d24731
RW
16162008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1617
1618 * aclocal.m4: Regenerate.
1619 * configure: Likewise.
1620 * Makefile.in: Likewise.
1621 * testsuite/Makefile.in: Likewise.
1622
d0fb20be
JJ
16232008-03-13 Jakub Jelinek <jakub@redhat.com>
1624
1625 PR middle-end/35185
1626 * testsuite/libgomp.c++/pr35185.C: New test.
1627
7c8f7639
JJ
16282008-03-12 Jakub Jelinek <jakub@redhat.com>
1629
1630 PR middle-end/35549
1631 * testsuite/libgomp.c/pr35549.c: New test.
1632
251923f5
JJ
16332008-03-06 Jakub Jelinek <jakub@redhat.com>
1634
1635 * testsuite/libgomp.c/atomic-3.c: New test.
1636
f489fba1
FXC
16372008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1638
1639 PR fortran/33197
251923f5 1640 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
1641 .F08 file suffixes.
1642
a1b25e49
PG
16432008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1644
1645 PR libgomp/33131
1646 * configure.ac: Add ACX_HEADER_STRING.
1647 * env.c: Include strings.h.
1648 * aclocal.m4: Regenerate.
1649 * config.h.in: Regenerate.
1650 * configure: Regenerate.
1651 * Makefile.in: Regenerate.
1652 * testsuite/Makefile.in: Regenerate.
1653
6837b3b8
JJ
16542008-02-15 Jakub Jelinek <jakub@redhat.com>
1655
ac84c062
JJ
1656 PR middle-end/35196
1657 * testsuite/libgomp.c/pr35196.c: New test.
1658
6837b3b8
JJ
1659 PR middle-end/35130
1660 * testsuite/libgomp.fortran/pr35130.f90: New test.
1661 * testsuite/libgomp.c/pr35130.c: New test.
1662
c256730c
JJ
16632008-01-25 Jakub Jelinek <jakub@redhat.com>
1664
1665 PR middle-end/33880
1666 * testsuite/libgomp.c/pr33880.c: New test.
1667 * testsuite/libgomp.fortran/pr33880.f90: New test.
1668
c8e95542 16692008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
1670
1671 * configure: Regenerate.
1672
0f3e711e
JJ
16732008-01-08 Jakub Jelinek <jakub@redhat.com>
1674
1675 * configure.ac: Move futex checking into ../config/futex.m4.
1676 * configure: Rebuilt.
1677 * aclocal.m4: Rebuilt.
1678 * Makefile.in: Rebuilt.
1679
1680 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1681 2007-10-15 ../config/tls.m4 change.
1682
5259c813
JJ
16832007-12-19 Jakub Jelinek <jakub@redhat.com>
1684
1685 PR c++/34513
1686 * testsuite/libgomp.c/pr34513.c: New test.
1687 * testsuite/libgomp.c++/pr34513.C: New test.
1688
ae8d8879
JH
16892007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1690
1691 PR target/32765
1692 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1693
2b4cf991
JJ
16942007-12-04 Jakub Jelinek <jakub@redhat.com>
1695
1696 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1697
d2dda7fe
JJ
16982007-12-03 Jakub Jelinek <jakub@redhat.com>
1699
1700 * testsuite/libgomp.c/private-1.c: New test.
1701
d683ec81
PB
17022007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1703 Paolo Bonzini <bonzini@gnu.org>
1704
1705 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1706 instead of 'VPATH ='.
1707 * Makefile.in: Regenerate.
1708
a7415017
MK
17092007-11-23 Matthias Klose <doko@ubuntu.com>
1710
1711 * configure.ac: Adjust makeinfo version check.
1712 * configure: Regenerate.
1713
78e47463
JJ
17142007-11-10 Jakub Jelinek <jakub@redhat.com>
1715
1716 PR fortran/34020
1717 * testsuite/libgomp.fortran/pr34020.f90: New test.
1718
239371f9
JJ
17192007-11-06 Jakub Jelinek <jakub@redhat.com>
1720
1721 PR c++/33894
1722 * testsuite/libgomp.c++/atomic-1.C: New test.
1723
98a5fa94
JJ
17242007-10-25 Jakub Jelinek <jakub@redhat.com>
1725
1726 PR libgomp/33275
1727 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1728 Make x and y integers rather than (implicit) reals. Add private (j)
1729 clause to the last omp parallel.
1730
3afcaaf4
MR
17312007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1732
1733 * configure: Regenerate following changes to ../config/tls.m4.
1734
bd69daef
JJ
17352007-09-28 Jakub Jelinek <jakub@redhat.com>
1736
1737 * testsuite/libgomp.fortran/stack.f90: New test.
1738
1d0bd356
DS
17392007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1740
1741 * config/mingw32/proc.c: New file.
1742
b3172cab
UB
17432007-09-05 Uros Bizjak <ubizjak@gmail.com>
1744
1745 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1746 (main): Use __get_cpuid to get i386 target fetaures.
1747 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1748 (main): Use __get_cpuid to get x86_64 target fetaures.
1749
6da17392
JH
17502007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1751
1752 PR target/32765
1753 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1754 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1755
e1c82219
JJ
17562007-07-12 Jakub Jelinek <jakub@redhat.com>
1757
1758 PR fortran/32550
1759 * testsuite/libgomp.fortran/pr32550.f90: New test.
1760 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1761
12a27363
L
17622007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1763
1764 * aclocal.m4: Regenerated.
1765
5349080d
TB
17662007-07-05 Tobias Burnus <burnus@net-b.de>
1767
1768 PR fortran/32359
1769 * testsuite/libgomp.fortran/pr32359.f90: New.
1770
4f9c450c
JJ
17712007-07-02 Jakub Jelinek <jakub@redhat.com>
1772
1773 PR libgomp/32468
1774 * sections.c (GOMP_parallel_sections_start): Only decrease
1775 number of threads to COUNT if dyn_var is true.
1776 * testsuite/libgomp.c/pr32468.c: New test.
1777
28c67ed7
RO
17782007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1779
1780 PR libgomp/26308
1781 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1782
64964499
JJ
17832007-06-21 Jakub Jelinek <jakub@redhat.com>
1784
1785 PR middle-end/32362
1786 * testsuite/libgomp.c/pr32362-1.c: New test.
1787 * testsuite/libgomp.c/pr32362-2.c: New test.
1788 * testsuite/libgomp.c/pr32362-3.c: New test.
1789
46d8fbd1
JJ
17902007-06-07 Jakub Jelinek <jakub@redhat.com>
1791
1792 * team.c (gomp_team_start): Fix setting up thread_attr
1793 stack size.
1794
82a6cadf
PB
17952007-06-02 Paolo Bonzini <bonzini@gnu.org>
1796
1797 * configure: Regenerate.
1798
1cf3d07d
SE
17992007-05-23 Steve Ellcey <sje@cup.hp.com>
1800
1801 * Makefile.in: Regenerate.
1802 * configure: Regenerate.
1803 * aclocal.m4: Regenerate.
1804 * testsuite/Makefile.in: Regenerate.
1805
12aac30b
JJ
18062007-05-04 Jakub Jelinek <jakub@redhat.com>
1807
1808 * config/linux/proc.c: New file.
1809
f1028b02
JJ
1810 PR libgomp/28482
1811 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1812
06785a48
DF
18132007-04-19 Daniel Franke <franke.daniel@gmail.com>
1814
1815 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1816
b3b08ba0
MK
18172007-04-16 Matthias Klose <doko@debian.org>
1818
1819 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1820 flags if not building with -m64.
1821 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1822 flag for i?86-*-* targets, if current target matches -m64.
1823
6b2c5ce0
SE
18242007-04-14 Steve Ellcey <sje@cup.hp.com>
1825
1826 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1827 * Makefile.in: Regenerate.
1828
dd56fe7c
JDA
18292007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1830
1831 PR testsuite/31369
1832 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1833 ld_library_path.
1834 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1835
a0884cf0
JJ
18362007-04-04 Jakub Jelinek <jakub@redhat.com>
1837
1838 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1839 decls.
1840 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1841 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1842 (parse_affinity): New function.
1843 (initialize_env): Call it and gomp_init_affinity.
1844 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1845 create new pthread_attr_t and call gomp_init_thread_affinity
1846 on it for each thread before passing the attribute to pthread_create.
1847 * config/linux/affinity.c: New file.
1848 * config/posix/affinity.c: New file.
1849 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1850 * configure: Rebuilt.
1851 * config.h.in: Rebuilt.
1852 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1853 * Makefile.in: Rebuilt.
1854
1850744b
AT
18552007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1856
1857 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1858 *-*-darwin*.
1859 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1860 and use it if found.
1861
516f1ed8
UB
18622007-03-18 Uros Bizjak <ubizjak@gmail.com>
1863
1864 * testsuite/config/default.exp: New file.
1865 * testsuite/lib/libgomp.exp: New file.
1866 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1867 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1868 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1869 (libgomp_load): Remove.
1870 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1871 always_ld_library_path, not ld_library_path. Set additional_flags
1872 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1873 (target_compile): Do not call libgomp_init. Append lang_library_path
1874 and lang_link_flags to options.
1875 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1876 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1877 here.
1878 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1879 always_ld_library_path. Set LD_LIBRARY_PATH here.
1880 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1881 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1882 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1883 CX8 flag.
1884 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1885 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1886 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1887 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1888 * testsuite/libgomp.c/atomic-10.c: Ditto.
1889
2ada56f5
JJ
18902007-03-21 Jakub Jelinek <jakub@redhat.com>
1891
1892 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1893 dg-final cleanup-modules line.
1894 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1895 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1896 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1897 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1898 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1899 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1900 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1901
f210f1cd
AS
19022007-03-18 Andreas Schwab <schwab@suse.de>
1903
1904 * acinclude.m4: Adjust regular expression for ld version
1905 extraction.
1906 * configure: Regenerate.
1907
c4dc950d
BM
19082007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1909
1910 * Makefile.am: Add install-pdf target as copied from
1911 automake v1.10 rules.
1912 * Makefile.in: Regenerate
1913
e02a048f
JJ
19142007-02-07 Jakub Jelinek <jakub@redhat.com>
1915
78e075d4
JJ
1916 PR libgomp/28486
1917 * configure: Regenerate.
1918
e02a048f
JJ
1919 PR c++/30703
1920 * testsuite/libgomp.c++/pr30703.C: New test.
1921
60def7ed
JJ
19222007-02-02 Jakub Jelinek <jakub@redhat.com>
1923
1924 Revert:
1925 2006-07-05 Eric Christopher <echristo@apple.com>
1926 * configure.ac: Depend addition of -pthread on host OS.
1927 * configure: Regenerate.
1928
f1b0882e
RW
19292007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1930
1931 * libgomp.texi: Fix spacing after abbreviations.
1932
748b9d7c
DF
19332007-01-31 Daniel Franke <franke.daniel@gmail.com>
1934
1935 PR libgomp/30546
1936 * configure.ac: Add check for makeinfo
1937 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1938 if an appropiate version of makeinfo is found.
1939 * aclocal.m4: Regenerated.
1940 * configure: Regenerated.
1941 * Makefile.in: Regenerated.
1942 * testsuite/Makefile.in: Regenerated.
1943
14734fc7
DF
19442007-01-29 Daniel Franke <franke.daniel@gmail.com>
1945
1946 PR libgomp/30540
1947 * libgomp.texi: More about implementation-dependent settings.
1948
7befd5d2
TB
19492007-01-26 Tobias Burnus <burnus@net-b.de>
1950
1951 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1952
4288fea2
JJ
19532007-01-24 Jakub Jelinek <jakub@redhat.com>
1954
1955 PR middle-end/30494
1956 * testsuite/libgomp.c/pr30494.c: New test.
1957
627ab4b8
TT
19582007-01-15 Tom Tromey <tromey@redhat.com>
1959
1960 * configure: Rebuilt.
1961 * configure.ac: Fixed comment.
1962
7c2b7f45
DF
19632007-01-14 Daniel Franke <franke.daniel@gmail.com>
1964
1965 * libgomp.texi: Document implementation specific default values of
1966 environment variables.
1967
3721b9e1
DF
19682006-12-21 Daniel Franke <franke.daniel@gmail.com>
1969
1970 PR libgomp/28209
1971 * libgomp.texi: New file.
1972 * configure.ac: Add --enable-generated-files-in-srcdir option.
1973 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1974 files to srcdir.
1975 * Makefile.in: Regenerated.
1976 * config.h.in: Regenerated.
1977 * testsuite/Makefile.in: Regenerated.
1978 * NOTES: Removed.
1979
62bd6216
DF
19802006-12-04 Daniel Franke <franke.daniel@gmail.com>
1981
1982 PR libgomp/29949
1983 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1984
aad741f4
EB
19852006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1986
1987 * configure: Regenerate.
1988
22568cc6
JJ
19892006-12-04 Jakub Jelinek <jakub@redhat.com>
1990
1991 PR libgomp/29947
1992 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1993 start if there shouldn't be any loop iterations.
1994 (gomp_loop_ordered_static_start): Remove start == end test.
1995 * testsuite/libgomp.c/pr29947-1.c: New test.
1996 * testsuite/libgomp.c/pr29947-2.c: New test.
1997
a9690009
EB
19982006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1999
2000 * configure.tgt: Force initial-exec TLS model on Linux only.
2001
597c25e6
DJ
20022006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2003
2004 * configure: Regenerated.
2005
6acf0b38
UB
20062006-11-09 Uros Bizjak <ubizjak@gmail.com>
2007
2008 * env.c (parse_schedule): Reject out of range values.
2009 (parse_unsigned_long): Reject out of range, negative or zero values.
2010
a7a53ca5
JJ
20112006-10-29 Jakub Jelinek <jakub@redhat.com>
2012
2013 PR fortran/29629
2014 * testsuite/libgomp.fortran/pr29629.f90: New test.
2015
6d4d216a
EB
20162006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2017
2018 PR libgomp/29494
2019 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2020 * config/posix95: New directory.
2021 * config/posix95/omp-lock.h: New file.
2022 * config/posix95/lock.c: Likewise.
2023
5b043f08
GK
20242006-10-14 Geoffrey Keating <geoffk@apple.com>
2025
2026 * aclocal.m4: Regenerate.
2027 * configure: Regenerate.
2028
b50019f0
DS
20292006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2030
2031 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2032 '<' to '<='.
2033
8887708e
DS
20342006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2035
2036 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2037 test.
2038 * configure: Regenerate.
2039 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2040
9b9e4cd6
JJ
20412006-09-26 Jakub Jelinek <jakub@redhat.com>
2042
a70ad3bb
JJ
2043 PR middle-end/25261
2044 PR middle-end/28790
2045 * testsuite/libgomp.c/nestedfn-4.c: New test.
2046 * testsuite/libgomp.c/nestedfn-5.c: New test.
2047 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2048
9b9e4cd6
JJ
2049 PR fortran/29097
2050 * testsuite/libgomp.fortran/condinc1.f: New test.
2051 * testsuite/libgomp.fortran/condinc2.f: New test.
2052 * testsuite/libgomp.fortran/condinc3.f90: New test.
2053 * testsuite/libgomp.fortran/condinc4.f90: New test.
2054 * testsuite/libgomp.fortran/condinc1.inc: New file.
2055
2fb31455
TT
20562006-09-18 Tom Tromey <tromey@redhat.com>
2057
2058 * configure: Rebuilt.
2059
c663e301
JM
20602006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2061
2062 PR c/28768
2063 PR preprocessor/14634
2064 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2065 to AC_DEFINE.
2066 * configure: Regenerate.
2067
38371be9
SK
20682006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2069
2070 * testsuite/libgomp.fortran/reduction3.f90: Change
2071 -2147483648 to -huge(i)-1 to avoid overflow.
2072 * testsuite/libgomp.fortran/reduction4.f90: Change
2073 Z'ffffffff' to not(0) to avoid overflow.
2074
571d5ac5
JM
20752006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2076
2077 PR libgomp/25938
2078 * Makefile.am (libsubincludedir): New.
2079 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2080 * Makefile.in: Regenerate.
2081
89b3e3cd
JJ
20822006-08-17 Jakub Jelinek <jakub@redhat.com>
2083
2084 PR libgomp/28725
2085 * env.c: Include ctype.h.
2086 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2087 leading and/or trailing whitespace and compare strings case
2088 insensitively.
2089
742fae05
JJ
20902006-07-16 Jakub Jelinek <jakub@redhat.com>
2091
2092 PR fortran/28390
2093 * testsuite/libgomp.fortran/pr28390.f: New test.
2094
a1daed2d
EC
20952006-07-05 Eric Christopher <echristo@apple.com>
2096
2097 * configure.ac: Depend addition of -pthread on host OS.
2098 * configure: Regenerate.
2099
5d7b5199
JJ
21002006-06-21 Jakub Jelinek <jakub@redhat.com>
2101
2102 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2103 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2104 defined.
2105
fe5568e9
JJ
21062006-06-20 Jakub Jelinek <jakub@redhat.com>
2107
2108 PR libgomp/26175
2109 PR libgomp/26477
2110 * configure.ac: If neither --enable-linux-futex nor
2111 --disable-linux-futex is passed, determine the default by checking
2112 for compiling and/or running against NPTL. With --enable-linux-futex,
2113 check if SYS_gettid and SYS_futex are defined.
2114 * configure: Rebuilt.
2115
c3b11a40
RH
21162006-06-14 Richard Henderson <rth@redhat.com>
2117
2118 PR libgomp/28008
2119 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2120 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2121
d0d1b24d
RH
21222006-06-09 Richard Henderson <rth@redhat.com>
2123
2124 * env.c (gomp_nthreads_var): Change to unsigned long.
2125 (gomp_run_sched_chunk): Likewise.
2126 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2127 (initialize_env): Initialize gomp_thread_attr.
2128 * libgomp.h (gomp_nthreads_var): Update decl.
2129 (gomp_run_sched_chunk): Likewise.
2130 (gomp_thread_attr): Declare.
2131 * team.c (gomp_thread_attr): Export.
2132 (initialize_team): Don't initialize it.
2133
cd75853e
JJ
21342006-06-09 Jakub Jelinek <jakub@redhat.com>
2135
2136 PR fortran/27916
2137 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2138 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2139
33815e0c
FXC
21402006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2141
2142 * config/mingw32/time.c: New file.
2143 * configure.tgt: Use it.
2144
6667de0d
CD
21452006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2146
2147 * Makefile.am: Add install-html target. Add install-html to .PHONY
2148 * Makefile.in: Regenerate.
2149
e962c46b
JDA
21502006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2151
2152 PR libgomp/27612
2153 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2154 * testsuite/libgomp.c/critical-1.c: Likewise.
2155 * testsuite/libgomp.c/loop-1.c: Likewise.
2156 * testsuite/libgomp.c/loop-2.c: Likewise.
2157 * testsuite/libgomp.c/single-1.c: Likewise.
2158 * testsuite/libgomp.c/ordered-1.c: Likewise.
2159 * testsuite/libgomp.c/ordered-2.c: Likewise.
2160
eeb1d9e0
JJ
21612006-05-15 Jakub Jelinek <jakub@redhat.com>
2162
2163 PR middle-end/27416
2164 * libgomp.fortran/pr27416-1.f90: New test.
2165
693d710f
JJ
21662006-05-03 Jakub Jelinek <jakub@redhat.com>
2167
2168 PR fortran/27395
2169 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2170 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2171
8ca5b2a2
JJ
21722006-05-02 Jakub Jelinek <jakub@redhat.com>
2173
2174 PR c++/26943
2175 * testsuite/libgomp.c/pr26943-1.c: New test.
2176 * testsuite/libgomp.c/pr26943-2.c: New test.
2177 * testsuite/libgomp.c/pr26943-3.c: New test.
2178 * testsuite/libgomp.c/pr26943-4.c: New test.
2179 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2180 * testsuite/libgomp.c++/pr26943.C: New test.
2181
077b0dfb
JJ
21822006-05-02 Jakub Jelinek <jakub@redhat.com>
2183
2184 PR middle-end/27337
2185 * testsuite/libgomp.c++/pr27337.C: New test.
2186
91b6c26d
JJ
21872006-04-26 Jakub Jelinek <jakub@redhat.com>
2188
2189 PR c/26171
2190 * testsuite/libgomp.c/pr26171.c: New test.
2191
60e1758f
RH
21922006-04-25 Richard Henderson <rth@redhat.com>
2193
2194 PR libgomp/25865
2195 * configure.ac: Use GCC_CHECK_TLS.
2196 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2197 * Makefile.in, aclocal.m4, configure: Regenerate.
2198
615baed7
MK
21992006-04-10 Matthias Klose <doko@debian.org>
2200
2201 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2202 directory names containing underscores.
2203
fae2b46b
JJ
22042006-03-21 Jakub Jelinek <jakub@redhat.com>
2205
2206 PR c++/26691
2207 * testsuite/libgomp.c++/pr26691.C: New test.
2208
11a5f608
JJ
22092006-03-13 Jakub Jelinek <jakub@redhat.com>
2210
2211 * testsuite/libgomp.fortran/retval2.f90: New test.
2212
1799e5d5
RH
22132006-03-09 Diego Novillo <dnovillo@redhat.com>
2214
2215 * testsuite/libgomp.c++: New directory.
2216
d349482e
AT
22172006-02-25 Shantonu Sen <ssen@opendarwin.org>
2218
2219 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2220 * config/posix/sem.c: Implement the above.
2221
22222006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2223
2224 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2225 define HAVE_BROKEN_POSIX_SEMAPHORES.
2226 * configure: Rebuilt.
2227 * config.h.in: Rebuilt.
2228
124452c9
FXC
22292006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2230
2231 PR bootstrap/26161
2232 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2233 for the other pthread check.
2234 * configure: Regenerate.
2235 * config.h.in: Regenerate.
2236
dd8d6dfe
JJ
22372006-02-15 Jakub Jelinek <jakub@redhat.com>
2238
2239 PR libgomp/25938
2240 PR libgomp/25984
2241 * Makefile.am (fincludedir): New variable.
2242 (nodist_include_HEADERS): Remove Fortran files.
2243 (nodist_finclude_HEADERS): New variable.
2244 * Makefile.in: Regenerated.
2245
6c7a4dfd
JJ
22462006-02-13 Jakub Jelinek <jakub@redhat.com>
2247
2248 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2249 Remove tests for returning assumed character length arrays.
2250
5142e08b
RS
22512006-02-12 Roger Sayle <roger@eyesopen.com>
2252 John David Anglin <dave@hiauly1.hia.nrc.ca>
2253
2254 PR libgomp/25936
2255 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 2256
5821fba8
UW
22572006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2258
2259 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2260
cb2bbc67
EB
22612006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2262
2263 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2264 part of LD_LIBRARY_PATH manually.
2265
f05ee80c
L
22662006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2267
2268 PR libgomp/25852
2269 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2270 libgomp_init.
2271
03b8fe49
PB
22722005-01-25 Paolo Bonzini <bonzini@gnu.org>
2273
2274 PR libgomp/25884
f05ee80c
L
2275 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2276 * configure.ac (PERL): Don't set.
2277 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2278 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2279 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2280 * omp.h.in: Wrap the new configure substitutions with @ characters.
2281 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2282 * aclocal.m4, configure, Makefile.in: Regenerate.
2283 * mkomp_h.pl: Delete.
03b8fe49 2284
18cbfd85
PB
22852005-01-24 Paolo Bonzini <bonzini@gnu.org>
2286
2287 PR libgomp/25259
2288 * configure.ac: Use GCC_HEADER_STDINT.
2289 * libgomp.h: Include gstdint.h.
2290 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2291 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2292
c41303c6
RH
22932006-01-24 Richard Henderson <rth@redhat.com>
2294
2295 PR libgomp/25942
2296 * configure.ac: Add AM_MAINTAINER_MODE.
2297 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2298
149b9553
DN
22992006-01-24 Diego Novillo <dnovillo@redhat.com>
2300
2301 * Makefile.in: Regenerate.
2302 * testsuite/Makefile.in: Regenerate.
2303 * aclocal.m4: Regenerate.
2304
192a50ad
AT
23052006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2306
2307 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2308 Solaris.
2309 * configure.ac: Add check for loadavg.h.
2310 (link_gomp): Adjust comment.
2311 * configure: Regenerate.
2312 * config.h.in: Regenerate.
2313
a55b8e18
SE
23142006-01-21 Steve Ellcey <sje@cup.hp.com>
2315
2316 PR libgomp/25877
2317 * configure.ac: Remove check for alloca.h.
2318 * configure: Regenerate.
2319 * config.h.in: Regenerate.
2320 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2321 * team.c: Remove use of alloca.h.
2322 Call gomp_alloca instead of alloca.
2323
692eeb34
SE
23242006-01-20 Steve Ellcey <sje@cup.hp.com>
2325
2326 PR libgomp/25877
2327 * team.c: Add include of alloca.h.
2328 * configure.ac: Add check for alloca.h.
2329 * configure: Regenerate.
2330 * config.h.in: Regenerate.
2331
953ff289
DN
23322006-01-17 Jakub Jelinek <jakub@redhat.com>
2333
2334 PR fortran/25219
2335 * testsuite/libgomp.fortran/pr25219.f90: New test.
2336
23372005-12-05 Uros Bizjak <uros@kss-loka.si>
2338
2339 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2340 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2341 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2342 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2343 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2344 testsuite/libgomp.fortran/threadprivate1.f90,
2345 testsuite/libgomp.fortran/threadprivate2.f90,
2346 testsuite/libgomp.fortran/threadprivate3.f90,
2347 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2348 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2349 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2350 effective-target to TLS runtime.
2351
2352 * testsuite/libgomp.fortran/pr25162.f: Require
2353 effective-target TLS runtime.
2354
23552005-12-01 Jakub Jelinek <jakub@redhat.com>
2356
2357 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2358 * testsuite/libgomp.c/nestedfn-3.c: New test.
2359
23602005-11-30 Jakub Jelinek <jakub@redhat.com>
2361
2362 PR fortran/25162
2363 * testsuite/libgomp.fortran/pr25162.f: New test.
2364
23652005-11-28 Jakub Jelinek <jakub@redhat.com>
2366
2367 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2368 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2369
23702005-11-25 Jakub Jelinek <jakub@redhat.com>
2371
2372 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2373 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2374 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2375 single.c, team.c, work.c, config/linux/alpha/futex.h,
2376 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2377 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2378 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2379 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2380 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2381 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2382 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2383 FSF address.
2384
23852005-11-18 Jakub Jelinek <jakub@redhat.com>
2386
2387 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2388 to nodist_noinst_HEADERS.
2389 * Makefile.in: Rebuilt.
2390
2391 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2392 add integer count field.
2393 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2394 omp_nest_lock_t type change.
2395 (omp_init_nest_lock): Likewise. Initialize count to 0.
2396 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2397 Increment count.
2398 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2399 Decrement count.
2400 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2401 Increment count if successful and return the new nesting level.
2402 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2403 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2404 * testsuite/libgomp.c/lib-1.c: New test.
2405 * testsuite/libgomp.fortran/lib1.f90: New test.
2406 * testsuite/libgomp.fortran/lib2.f: New test.
2407 * testsuite/libgomp.fortran/lib3.f: New test.
2408
24092005-11-17 Richard Henderson <rth@redhat.com>
2410
2411 PR 24845
2412 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2413 * configure.ac (link_gomp): New. Substitute it.
2414 (AC_CONFIG_FILES): Add libgomp.spec.
2415 * libgomp.spec.in: New file.
2416 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2417 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2418
24192005-11-18 Jakub Jelinek <jakub@redhat.com>
2420
2421 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2422 reduction(-:var) behaving the same as reduction(+:var).
2423 * testsuite/libgomp.c/reduction-4.c: New test.
2424
24252005-11-15 Uros Bizjak <uros@kss-loka.si>
2426
2427 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2428 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2429 testsuite/libgomp.c/copyin-3.c,
2430 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2431 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2432 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2433 testsuite/libgomp.c++/pr24455.C,
2434 testsuite/libgomp.fortran/threadprivate1.f90,
2435 testsuite/libgomp.fortran/threadprivate2.f90,
2436 testsuite/libgomp.fortran/threadprivate3.f90,
2437 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2438 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2439 testsuite/libgomp.fortran/omp_parse3.f90: Require
2440 effective-target TLS.
2441
24422005-11-14 Diego Novillo <dnovillo@redhat.com>
2443
2444 * HEADER: Remove.
2445
24462005-11-13 Jakub Jelinek <jakub@redhat.com>
2447
2448 PR libgomp/24797
2449 * team.c (initialize_team): Pass NULL rather than free as
2450 pthread_key_create destructor. Initialize thread specific data
2451 pointer in initial thread to a static local variable rather than
2452 malloced memory.
2453
24542005-11-11 Uros Bizjak <uros@kss-loka.si>
2455
2456 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2457 its location to ld_library_path.
2458
24592005-11-10 Diego Novillo <dnovillo@redhat.com>
2460
2461 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2462
24632005-11-10 Diego Novillo <dnovillo@redhat.com>
2464
2465 * testsuite/libgomp.c: Rename from libgomp.dg.
2466
24672005-11-09 Diego Novillo <dnovillo@redhat.com>
2468
2469 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2470 threadprivate variable 'i'.
2471
24722005-11-09 Jakub Jelinek <jakub@redhat.com>
2473
2474 * config/linux/s390/futex.h: New file.
2475 * configure.tgt: Use it.
2476
2477 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2478 before the parallel.
2479
24802005-11-08 Jakub Jelinek <jakub@redhat.com>
2481
2482 PR c++/24734
2483 * testsuite/libgomp.c++/master-1.C: New test.
2484
24852005-11-07 Jakub Jelinek <jakub@redhat.com>
2486
2487 * testsuite/libgomp.dg/copyin-3.c: New test.
2488
24892005-11-07 Jakub Jelinek <jakub@redhat.com>
2490
2491 * testsuite/libgomp.fortran/retval1.f90: New test.
2492 * testsuite/libgomp.fortran/vla7.f90: New test.
2493
24942005-11-06 Jakub Jelinek <jakub@redhat.com>
2495
2496 * testsuite/libgomp.fortran/vla2.f90: New test.
2497 * testsuite/libgomp.fortran/vla3.f90: New test.
2498 * testsuite/libgomp.fortran/vla4.f90: New test.
2499 * testsuite/libgomp.fortran/vla5.f90: New test.
2500 * testsuite/libgomp.fortran/vla6.f90: New test.
2501
25022005-11-01 Jakub Jelinek <jakub@redhat.com>
2503
2504 * config/linux/sparc/futex.h: New file.
2505 * configure.tgt: Use it.
2506 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2507
2508 * critical.c: Include stdlib.h.
2509 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2510 ignoring return value.
2511 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2512 LIBGOMP_CHECK_SYNC_BUILTINS check.
2513 * configure: Rebuilt.
2514
25152005-10-31 Jakub Jelinek <jakub@redhat.com>
2516
2517 * testsuite/libgomp.fortran/vla1.f90: New test.
2518
25192005-10-31 Richard Henderson <rth@redhat.com>
2520
2521 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2522 setting 's' in different threads.
2523
25242005-10-31 Jakub Jelinek <jakub@redhat.com>
2525
2526 * libgomp.h (attribute_hidden, ialias): Define.
2527 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2528 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2529 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2530 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2531 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2532 omp_test_lock, omp_test_nest_lock): Likewise.
2533 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2534 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2535 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2536 omp_test_lock, omp_test_nest_lock): Likewise.
2537 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2538 omp_get_dynamic, omp_get_nested): Likewise.
2539 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2540 omp_get_thread_num, omp_in_parallel): Likewise.
2541 * fortran.c (ialias_redirect): Define.
2542 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2543 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2544 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2545 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2546 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2547 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2548 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2549 omp_get_wtime): Add ialias_redirect.
2550
25512005-10-30 Jakub Jelinek <jakub@redhat.com>
2552
2553 * fortran.c: Include stdlib.h.
2554
25552005-10-29 Jakub Jelinek <jakub@redhat.com>
2556
2557 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2558 * Makefile.in: Regenerated.
2559
25602005-10-28 Jakub Jelinek <jakub@redhat.com>
2561
2562 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2563 * libgomp_f.h.in (omp_check_defines): New function.
2564 * env.c: Include libgomp_f.h.
2565 (initialize_env): Call omp_check_defines.
2566
2567 * testsuite/libgomp.dg/copyin-2.c: New test.
2568 * testsuite/libgomp.c++/copyin-2.C: New test.
2569 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2570
2571 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2572 * testsuite/libgomp.fortran/sharing2.f90: New test.
2573
2574 * testsuite/libgomp.dg/copyin-1.c: New test.
2575 * testsuite/libgomp.c++/copyin-1.C: New test.
2576
25772005-10-26 Jakub Jelinek <jakub@redhat.com>
2578
2579 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2580
2581 * testsuite/libgomp.fortran/workshare1.f90: New test.
2582
2583 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2584 only test.
2585 * libgomp.fortran/sharing1.f90: New test.
2586
25872005-10-24 Jakub Jelinek <jakub@redhat.com>
2588
2589 PR c++/24502
2590 * testsuite/libgomp.c++/loop-7.C: New test.
2591
2592 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2593
2594 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2595 * testsuite/libgomp.fortran/reduction6.f90: New test.
2596 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2597
25982005-10-23 Richard Henderson <rth@redhat.com>
2599
2600 * testsuite/libgomp.c++/ctor-1.C: New.
2601 * testsuite/libgomp.c++/ctor-2.C: New.
2602 * testsuite/libgomp.c++/ctor-3.C: New.
2603 * testsuite/libgomp.c++/ctor-4.C: New.
2604 * testsuite/libgomp.c++/ctor-5.C: New.
2605 * testsuite/libgomp.c++/ctor-6.C: New.
2606 * testsuite/libgomp.c++/ctor-7.C: New.
2607 * testsuite/libgomp.c++/ctor-8.C: New.
2608 * testsuite/libgomp.c++/ctor-9.C: New.
2609
26102005-10-21 Diego Novillo <dnovillo@redhat.com>
2611
2612 PR 24455
2613 * testsuite/libgomp.c++/pr24455-1.C: New test.
2614 * testsuite/libgomp.c++/pr24455.C: New test.
2615 * testsuite/libgomp.dg/pr24455-1.c: New test.
2616 * testsuite/libgomp.dg/pr24455.c: New test.
2617
26182005-10-20 Richard Henderson <rth@redhat.com>
2619
2620 * testsuite/libgomp.c++/loop-6.C: New.
2621 * testsuite/libgomp.dg/loop-3.c: New.
2622
26232005-10-20 Jakub Jelinek <jakub@redhat.com>
2624
2625 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2626 explicitly private.
2627 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2628 explicitly shared.
2629
26302005-10-19 Diego Novillo <dnovillo@redhat.com>
2631
2632 * testsuite/libgomp.fortran/jacobi.f: New test.
2633
26342005-10-19 Richard Henderson <rth@redhat.com>
2635
2636 * configure.tgt (i?86-linux): Default to with_arch instead of
2637 CFLAGS. Add -mtune to match target_cpu.
2638 (x86_64-linux): Tune to i686.
2639
2640 * fortran.c (omp_test_nest_lock_): Fix typo.
2641
26422005-10-19 Jakub Jelinek <jakub@redhat.com>
2643
2644 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2645 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2646 * testsuite/libgomp.dg/ordered-3.c: New test.
2647
2648 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2649 Remove volatile keyword.
2650
2651 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2652 in COMMON block to avoid warnings on 64-bit targets.
2653
26542005-10-18 Diego Novillo <dnovillo@redhat.com>
2655
2656 * testsuite/libgomp.dg/shared-3.c: New test.
2657
26582005-10-18 Jakub Jelinek <jakub@redhat.com>
2659
2660 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2661 * testsuite/libgomp.fortran/reduction5.f90: New test.
2662
26632005-10-18 Jakub Jelinek <jakub@redhat.com>
2664
2665 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2666 dg-options.
2667 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2668 flush loop now that __sync_synchronize has proper memory barrier.
2669 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2670 Add -ffixed-form to dg-options.
2671
26722005-10-17 Diego Novillo <dnovillo@redhat.com>
2673
2674 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2675 from subdirectories.
2676 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2677 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2678 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2679 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2680 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2681 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2682 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2683 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2684 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2685 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2686 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2687 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2688 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2689 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2690 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2691 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2692 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2693 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2694 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2695 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2696 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2697 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2698 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2699 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2700 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2701
27022005-10-17 Jakub Jelinek <jakub@redhat.com>
2703
2704 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2705 lang_library_path exists. Use find instead of glob to gather tests.
2706 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2707
27082005-10-17 Diego Novillo <dnovillo@redhat.com>
2709
2710 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2711 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2712 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2713 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2714 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2715 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2716 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2717 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2718 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2719 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2720 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2721 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2722 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2723
27242005-10-15 Jakub Jelinek <jakub@redhat.com>
2725
2726 * testsuite/libgomp.dg/vla-1.c: New test.
2727
2728 * testsuite/libgomp.fortran/reference2.f90: New test.
2729
2730 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2731 declaration of omp_get_thread_num.
2732 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2733 use omp_lib.
2734
2735 * testsuite/libgomp.fortran/reduction1.f90: New test.
2736 * testsuite/libgomp.fortran/reduction2.f90: New test.
2737 * testsuite/libgomp.fortran/reduction3.f90: New test.
2738 * testsuite/libgomp.fortran/reduction4.f90: New test.
2739
27402005-10-13 Richard Henderson <rth@redhat.com>
2741
2742 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2743 * Makefile.in: Regenerate.
2744 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2745 * libgomp.h: Include bar.h.
2746 (struct gomp_barrier): Remove.
2747 (struct gomp_team): Add barrier. Replace master_barrier with
2748 master_release. Replace threads with ordered_release.
2749 (struct gomp_thread): Replace barrier with release.
2750 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2751 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2752 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2753 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2754 (GOMP_single_copy_end): Likewise.
2755 * team.c (gomp_threads_dock): New.
2756 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2757 (gomp_thread_start): Use gomp_barrier_wait.
2758 (new_team, free_team): Update for gomp_team changes.
2759 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2760 (gomp_team_end): Use gomp_barrier_wait.
2761 (initialize_team): Update for gomp_thread changes.
2762 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2763 (gomp_work_share_end_nowait): Use atomic ops when available.
2764 * config/linux/bar.c, config/linux/bar.h: New files.
2765 * config/posix/bar.c, config/posix/bar.h: New files.
2766
27672005-10-13 Jakub Jelinek <jakub@redhat.com>
2768
2769 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2770 * testsuite/libgomp.dg/single-2.c: New test.
2771
2772 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2773 lang_link_flags): Unset, so that they aren't inherited from previously
2774 sourced *.exp.
2775
2776 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2777
27782005-10-12 Richard Henderson <rth@redhat.com>
2779
2780 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2781 (libgomp_init): Use lang_test_file, lang_library_path, and
2782 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2783
2784 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2785 (lang_test_file, lang_link_flags): New.
2786 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2787
2788 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2789 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2790 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2791 testsuite/libgomp.c++/parallel-1.C,
2792 testsuite/libgomp.c++/reduction-1.C,
2793 testsuite/libgomp.c++/reduction-2.C,
2794 testsuite/libgomp.c++/reduction-3.C,
2795 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2796 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2797 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2798 New files, largely cribbed from the C testsuite.
2799
28002005-10-12 Jakub Jelinek <jakub@redhat.com>
2801
2802 * testsuite/libgomp.fortran/character1.f90: New test.
2803 * testsuite/libgomp.fortran/character2.f90: New test.
2804
2805 * testsuite/libgomp.dg/nested-1.c: New test.
2806 * testsuite/libgomp.dg/nested-2.c: New test.
2807 * testsuite/libgomp.fortran/do1.f90: New test.
2808 * testsuite/libgomp.fortran/do2.f90: New test.
2809
2810 * testsuite/libgomp.fortran/reference1.f90: New test.
2811
28122005-10-11 Jakub Jelinek <jakub@redhat.com>
2813
2814 * testsuite/libgomp.dg/reduction-1.c: New test.
2815 * testsuite/libgomp.dg/reduction-2.c: New test.
2816 * testsuite/libgomp.dg/reduction-3.c: New test.
2817
28182005-10-10 Jakub Jelinek <jakub@redhat.com>
2819
2820 * testsuite/libgomp.dg/atomic-1.c: New test.
2821 * testsuite/libgomp.dg/atomic-2.c: New test.
2822
28232005-10-09 Richard Henderson <rth@redhat.com>
2824
2825 * critical.c (atomic_lock): New.
2826 (initialize_critical): Initialize it.
2827 (GOMP_atomic_start, GOMP_atomic_end): New.
2828 * libgomp.map: Export them.
2829 * libgomp_g.h: Declare them.
2830
2831 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2832
28332005-10-02 Richard Henderson <rth@redhat.com>
2834
2835 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2836 to XCFLAGS instead of CFLAGS.
2837
28382005-09-30 Richard Henderson <rth@redhat.com>
2839
2840 * configure.ac: Determine whether -pthread or -lpthread is needed.
2841 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2842 * Makefine.in, configure: Rebuild.
2843
28442005-09-28 Richard Henderson <rth@redhat.com>
2845
2846 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2847 * testsuite/libgomp.dg/omp-single-3.c: New test.
2848
28492005-09-28 Diego Novillo <dnovillo@redhat.com>
2850
2851 * testsuite/libgomp.dg/omp-single-2.c: New test.
2852 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2853
28542005-09-27 Richard Henderson <rth@redhat.com>
2855
2856 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2857 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2858
28592005-09-27 Jakub Jelinek <jakub@redhat.com>
2860
2861 * testsuite/libgomp.dg/omp-loop03.c: New test.
2862
28632005-09-27 Diego Novillo <dnovillo@redhat.com>
2864
2865 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2866
28672005-09-27 Diego Novillo <dnovillo@redhat.com>
2868
2869 * testsuite/libgomp.dg/omp-single-1.c: New test.
2870 * testsuite/libgomp.dg/shared-1.c: Return 0.
2871 Add prototype for abort.
2872 * testsuite/libgomp.dg/shared-2.c: Likewise.
2873
28742005-09-26 Jakub Jelinek <jakub@redhat.com>
2875
2876 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2877 constructs.
2878
28792005-09-26 Diego Novillo <dnovillo@redhat.com>
2880
2881 * testsuite/libgomp.dg/shared-1.c: New test.
2882 * testsuite/libgomp.dg/shared-2.c: New test.
2883
28842005-09-24 Richard Henderson <rth@redhat.com>
2885
2886 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2887
28882005-09-24 Richard Henderson <rth@redhat.com>
2889
2890 * iter.c (gomp_iter_static_next): Round up when computing number
2891 of iterations. Don't bother distributing a remainder equally.
2892
2893 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2894 Don't call srand. Zero b before testing.
2895 (main): New.
2896
28972005-09-24 Jakub Jelinek <jakub@redhat.com>
2898
2899 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2900 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2901
29022005-09-23 Jakub Jelinek <jakub@redhat.com>
2903
2904 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2905 without !$omp end do, followed immediately by subroutine end.
2906
29072005-09-23 Diego Novillo <dnovillo@redhat.com>
2908
2909 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2910
29112005-09-22 Richard Henderson <rth@redhat.com>
2912
2913 * critical.c (GOMP_critical_name_start): Change argument to void**.
2914 Reuse the pointer space if the mutex fits.
2915 (GOMP_critical_name_end): Likewise.
2916 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2917 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2918 (GOMP_critical_name_end): Likewise.
2919 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2920 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2921
29222005-09-20 Richard Henderson <rth@redhat.com>
2923
2924 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2925 (create_lock_lock): New.
2926 (initialize_critical): Initialize it.
2927 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2928 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2929
29302005-09-20 Diego Novillo <dnovillo@redhat.com>
2931
2932 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2933
29342005-09-20 Diego Novillo <dnovillo@redhat.com>
2935
2936 * testsuite/libgomp.dg/omp-loop01.c: New test.
2937 * testsuite/libgomp.dg/omp-loop02.c: New test.
2938
29392005-09-20 Jakub Jelinek <jakub@redhat.com>
2940
2941 * configure.ac (AC_PROG_FC): Add.
2942 (USE_FORTRAN): New automake conditional.
2943 * configure: Rebuilt.
2944 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2945 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2946 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2947 Add rules to build them.
2948 * Makefile.in: Rebuilt.
2949 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2950 OMP_NEST_LOCK_KIND.
2951 * libgomp.map: Add Fortran wrappers.
2952 * libgomp_f.h.in: New file.
2953 * omp_lib.h.in: New file.
2954 * omp_lib.f90.in: New file.
2955 * fortran.c: New file.
2956 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2957 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2958 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2959 libgfortran has been built.
2960 * testsuite/libgomp.fortran/fortran.exp: New file.
2961 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2962 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2963 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2964 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2965 * testsuite/libgomp.fortran/omp_hello.f: New test.
2966 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2967 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2968 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2969 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2970 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2971 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2972 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2973 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2974
29752005-08-30 Richard Henderson <rth@redhat.com>
2976
2977 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2978 function for when aliases are not usable.
2979 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2980 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2981 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2982 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2983 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2984 GOMP_loop_ordered_guided_next): Likewise.
2985 * ordered.c (GOMP_ordered_start): Likewise.
2986
29872005-08-01 Diego Novillo <dnovillo@redhat.com>
2988
2989 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2990 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2991 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2992 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2993 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2994 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2995 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2996 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2997 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2998
29992005-07-07 Eric Christopher <echristo@redhat.com>
3000 Diego Novillo <dnovillo@redhat.com>
3001
3002 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3003 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3004 up code.
3005 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3006 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3007 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3008 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3009 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3010 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3011 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3012
30132005-06-13 Diego Novillo <dnovillo@redhat.com>
3014
3015 * TOPLEVEL.patch: Remove.
3016
30172005-05-16 Richard Henderson <rth@redhat.com>
3018
3019 * configure.ac: Test for clock_gettime.
3020 * config.h.in, configure: Rebuild.
3021 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3022 (omp_get_wtime): Use clock_gettime if available.
3023 (omp_get_wtick): Use clock_getres if available.
3024
30252005-05-11 Richard Henderson <rth@redhat.com>
3026
3027 * config/linux/ia64/futex.h: New file.
3028 * configure.tgt: Use it.
3029
3030 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3031
30322005-05-07 Richard Henderson <rth@redhat.com>
3033
3034 * config/linux/powerpc/futex.h: New file.
3035 * configure.tgt: Use it.
3036
3037 * config/linux/i486/futex.h: Merge ...
3038 * config/linux/x86_64/futex.h: ... into ...
3039 * config/linux/x86/futex.h: ... here.
3040 * configure.tgt: Update to match.
3041
30422005-05-06 Richard Henderson <rth@redhat.com>
3043
3044 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3045 * config/linux/i486/futex.h: Likewise.
3046 * config/linux/x86_64/futex.h: Likewise.
3047
3048 * config/linux/lock.c: New file.
3049 * config/linux/omp-lock.h: New file.
3050
3051 * critical.c, env.h: Don't include omp.h
3052 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3053 * config/posix/time.c: Likewise.
3054 * config/posix/omp-lock.h: New file.
3055 * libgomp.h: Include omp-lock.h and omp.h.
3056 * Makefile.am (nodist_include_HEADERS): New.
3057 (omp.h): New rule.
3058 * configure.ac (PERL): New.
3059 * mkomp_h.pl: New file.
3060 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3061 with templates.
3062 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3063
3064 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3065 build directory. Re-add -march=i486 hack.
3066
3067 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3068 (libgomp_link_flags): Remove.
3069 (libgomp_initialized): Remove.
3070 (libgomp_init): Don't protect from reinitialization. Copy code
3071 from libstdc++ for getting the multilib set correctly.
3072
30732005-05-05 Richard Henderson <rth@redhat.com>
3074
3075 * config/linux/alpha/futex.h: New file.
3076 * configure.tgt (alpha*-*-linux*): Use it.
3077
3078 * config/posix/mutex.c: New file.
3079 * config/posix/sem.c: Use libgomp.h.
3080
3081 * configure.tgt (x86_64-linux): Also test CC for -m32.
3082 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3083
a1daed2d 3084 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
3085 after $gccpath.
3086
3087 * Makefile.am (SUBDIRS): New.
3088 (libgomp_la_LDFLAGS): Add -lpthread.
3089 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3090 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3091
3092 * libgomp_g.h: New file.
3093 * libgomp.h: Split out all public declarations to libgomp_g.h.
3094 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3095 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3096 * config/linux/sem.h: Likewise.
3097 * config/posix/sem.h: Likewise.
3098
3099 * Makefile.am (AM_LDFLAGS): New.
3100 (libgomp_version_script): Split out from ...
3101 (libgomp_la_LDFLAGS): ... here.
3102 (libgomp_version_info): New.
3103 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3104 (LIBGOMP_ENABLE): New.
3105 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3106 (LIBGOMP_ENABLE_SYMVERS): New.
3107 * configure.ac (AC_INIT): Version 1.0.
3108 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3109 (enable-linux-futex): Likewise. Rename from enable-futex.
3110 (libtool_VERSION): New.
3111 (LIBGOMP_ENABLE_SYMVERS): Use it.
3112 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3113 * Makefile.in, aclocal.m4, configure: Rebuild.
3114
3115 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3116 (gomp_mutex_unlock_slow): Fix typo.
3117 * config/linux/sem.c: Similarly.
3118 (gomp_sem_post_slow): Fix typo.
3119 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3120 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3121 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3122
3123 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3124 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3125 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3126 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3127 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3128 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3129 LDFLAGS. Pull enable_futex check to top-level.
3130 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3131 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3132
3133 First attempt at real configury.
3134 * Makefile, config.h: Remove file.
3135 * Makefile.am, Makefile.in: New file.
3136 * acinclude.m4 aclocal.m4: New file.
3137 * configure.ac, configure.tgt, configure: New file.
3138
3139 * config/posix/lock.c: Rename from sys-lock.c.
3140 * config/posix/mutex.h: Rename from sys-mutex.h.
3141 * config/posix/sem.c: Rename from sys-sem.c.
3142 * config/posix/sem.h: Rename from sys-sem.h.
3143 * config/posix/proc.c: Rename from sys-proc.c.
3144 * config/posix/time.c: Rename from sys-proc.c.
3145
3146 * config/linux/mutex.c: New file.
3147 * config/linux/mutex.h: New file.
3148 * config/linux/sem.c: New file.
3149 * config/linux/sem.h: New file.
3150 * config/linux/i486/futex.h: New file.
3151 * config/linux/x86_64/futex.h: New file.
3152
31532005-05-04 Richard Henderson <rth@redhat.com>
3154
3155 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3156 * libgomp.h: Declare them.
3157 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3158 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3159
31602005-05-04 Richard Henderson <rth@redhat.com>
3161
3162 * libgomp-1 code drop
3163
31642005-05-04 Richard Henderson <rth@redhat.com>
3165
3166 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3167 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3168 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3169 (gomp_iter_static_next): Update.
3170 (gomp_ordered_static_next): Update.
3171 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3172 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3173 totally empty range.
3174 (gomp_loop_ordered_static_next): Refine test for calling
3175 gomp_ordered_static_next.
3176 * testsuite/ordered-1.c: Add case for more threads than iterations.
3177
3178 * iter.c (gomp_iter_runtime_next_locked): Remove.
3179 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 3180 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
3181 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3182 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3183 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3184 gomp_loop_ordered_guided_next): Downcase name, make static, add
3185 an external alias with the old name.
3186 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3187 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3188 switch and call one of the above static functions.
3189 * libgomp.h: Update.
3190
3191 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3192 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3193 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3194 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3195 GOMP_loop_ordered_guided_start): Update to match.
3196 * sections.c (GOMP_sections_start): Likewise.
3197 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3198
3199 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3200 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3201 Use bounds check instead of modulus.
3202 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3203 (gomp_ordered_last): Don't sync with ordered_owner here.
3204 (gomp_ordered_next): Likewise.
3205 (gomp_ordered_static_loop_next): Likewise.
3206 * loop.c, libgomp.h: Update to match.
3207
3208 * libgomp.h (GOMP_barrier): Declare.
3209
3210 * testsuite/barrier-1.c: New file.
3211 * testsuite/critical-1.c: New file.
3212 * testsuite/ordered-2.c: New file.
3213 * testsuite/ordered-1.c: New file.
3214 * testsuite/sections-1.c: New file.
3215 * testsuite/single-1.c: New file.
3216 * testsuite/Makefile (TESTS): Add them.
3217
32182005-05-04 Richard Henderson <rth@redhat.com>
3219
3220 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3221 * loop.c (GOMP_loop_static_start): If not the startup thread,
3222 acquire the mutex to wait for initialization complete.
3223 (GOMP_loop_ordered_static_start): Likewise.
3224 (GOMP_loop_ordered_runtime_start): Likewise.
3225 (GOMP_loop_ordered_static_first): Remove.
3226 (GOMP_loop_ordered_dynamic_first): Remove.
3227 (GOMP_loop_ordered_guided_first): Remove.
3228 (GOMP_loop_ordered_runtime_first): Remove.
3229 * ordered.c (gomp_ordered_loop_first): Post to own release when
3230 we're the first thread.
3231 (gomp_ordered_loop_last): Wait on release if not owner.
3232 (gomp_ordered_loop_next): Likewise.
3233 (gomp_ordered_static_loop_init): New.
3234 (gomp_ordered_static_loop_next): Use ordered_owner.
3235 (GOMP_ordered_start): Likewise.
3236 * work.c (gomp_new_work_share): Initialize ordered_owner.
3237
32382005-05-03 Richard Henderson <rth@redhat.com>
3239
3240 * Makefile (OPT): New.
3241 (CFLAGS): Use it.
3242
3243 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3244 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3245 * libgomp.h, libgomp.map, NOTES: Update to match.
3246
3247 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3248 Add initialized and thr members.
3249 (gomp_thread_start): Pause when initially spawned to wait for
3250 the whole team to be created.
3251 (gomp_team_start): Release team members at the end.
3252
3253 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3254 (f_foo_1): Use GOMP_loop_end.
3255 (f_foo_2): Use GOMP_loop_end_nowait.
3256
3257 * testsuite/loop-2.c: New file.
3258 * testsuite/Makefile (TESTS): Add it.
3259
32602005-05-03 Richard Henderson <rth@redhat.com>
3261
3262 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3263 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3264 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3265 initial work_share.
3266
3267 * testsuite/Makefile: New file.
3268 * testsuite/loop-1.c: New file.
3269
32702005-05-03 Richard Henderson <rth@redhat.com>
3271
3272 Initial implementation and checkin.