]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
PR libjava/47484: Install Python modules into versioned directory
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
029c8f3e
RW
12011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2
3 * configure: Regenerate.
4
bddd6626
BK
52011-01-20 Benjamin Kosnik <bkoz@redhat.com>
6
7 PR libstdc++/36104
8 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
9
f1d4ab26
GP
102011-01-16 Gerald Pfeifer
11
12 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13
2b503136
JJ
142010-12-14 Jakub Jelinek <jakub@redhat.com>
15
16 PR fortran/46874
17 * libgomp.fortran/allocatable6.f90: New test.
18
c0f9d583
RO
192010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20
21 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
22 * configure: Regenerate.
23
7de6ba7a
DK
242010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
25
26 PR target/40125
27 PR lto/46695
28 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
29 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
30 * aclocal.m4: Regenerate.
31 * configure: Regenerate.
32 * Makefile.in: Regenerate.
33 * testsuite/Makefile.in: Regenerate.
34
b7516041
JJ
352010-12-02 Jakub Jelinek <jakub@redhat.com>
36
edaadf74
JJ
37 PR fortran/46753
38 * libgomp.fortran/pr46753.f90: New test.
39
4c698cf8
JJ
40 PR libgomp/43706
41 * env.c (initialize_env): Default to spin count 300000
42 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
43 is specified.
44
b7516041
JJ
45 PR libgomp/45240
46 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
47 at the end if sync builtins aren't supported.
48
6b43a34c
RO
492010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
50
51 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
52
950691fa
RO
532010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
54
55 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
56
fb9041ea
IS
572010-11-24 Iain Sandoe <iains@gcc.gnu.org>
58
59 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
60
1ec601bf
FXC
612010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
62 Tobias Burnus <burnus@net-b.de>
63
64 PR fortran/32049
65 * configure.ac:
66 * configure: Regenerate.
67
d213e92e
MS
682010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
69
70 * config/linux/futex.h: New.
71 * config/linux/arm/mutex.h: New.
72 * configure.tgt (arm*-*-linux*): Add config path.
73
89d5c66f
SP
742010-09-30 Sebastian Pop <sebastian.pop@amd.com>
75
76 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
77
87350d4a
TB
782010-09-23 Tobias Burnus <burnus@net-b.de>
79
80 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
81 Change Fortran datatype to LOGICAL.
82 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
83 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
84
75bc9e5e
RW
852010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
86
87 * configure: Regenerate.
88
acb5c916
JJ
892010-07-26 Jakub Jelinek <jakub@redhat.com>
90
91 * libgomp.texi: Add function keyword to a couple of Fortran
92 interfaces, use integer instead of int for Fortran.
93
6a2ba183
AH
942010-07-26 Aldy Hernandez <aldyh@redhat.com>
95
96 * libgomp.texi: Fix spelling and pasto problems throughout.
97 Adjust prototypes to match code.
98
df161b69
TB
992010-07-24 Tobias Burnus <burnus@net-b.de>
100
101 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
102 silence -fwhole-file warning.
103
16c9d3b1
RO
1042010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
105
106 * configure.tgt (*-*-solaris2.[56]*): Removed.
107
6d28b933
RO
1082010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
109
110 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
111 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
112 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
113 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
114 targetting solaris2*.
115 * configure: Regenerate.
116 * config.h.in: Regenerate.
117
118 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
119 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
120 Add libgomp_version_dep.
121 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
122 versioning.
123 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
124 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
125 * Makefile.in: Regenerate.
126
127 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
128 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
129 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
130 to common block, protected by
131 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
132
07a67d6a
GP
1332010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
134
135 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
136
dbd34b89
IS
1372010-06-09 Iain Sandoe <iains@gcc.gnu.org>
138
139 PR bootstrap/43170
140 * configure: Regenerate.
141
13917ae3
RW
1422010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
143
144 PR other/43620
145 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
146 * configure: Regenerate.
147 * Makefile.in: Regenerate.
148 * testsuite/Makefile.in: Regenerate.
149
b83a701b
JJ
1502010-04-26 Jakub Jelinek <jakub@redhat.com>
151
152 PR c/43893
153 * testsuite/libgomp.c/pr43893.c: New test.
154 * testsuite/libgomp.c++/pr43893.C: New test.
155
78db7d92
JJ
1562010-04-21 Jakub Jelinek <jakub@redhat.com>
157
158 PR middle-end/43570
159 * testsuite/libgomp.fortran/vla8.f90: New test.
160
5221d7a9
JJ
1612010-04-20 Jakub Jelinek <jakub@redhat.com>
162
e4ba7a60
JJ
163 PR libgomp/43706
164 * config/linux/affinity.c (gomp_init_affinity): Decrease
165 gomp_available_cpus if affinity mask confines the process to fewer
166 CPUs.
167 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
168 non-NULL, just return gomp_available_cpus.
169
5221d7a9
JJ
170 PR libgomp/43569
171 * sections.c (gomp_sections_init): Initialize ws->mode.
172
289a9f86
UB
1732010-04-14 Uros Bizjak <ubizjak@gmail.com>
174
175 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
176 not unused bar variable.
177 * configure: Regenerate.
178
4d9e8446
RW
1792010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
180
181 * Makefile.in: Regenerate.
182 * aclocal.m4: Regenerate.
183 * testsuite/Makefile.in: Regenerate.
184
80f046cc
JJ
1852010-03-22 Jakub Jelinek <jakub@redhat.com>
186
187 PR libgomp/42942
188 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
189 (initialize_env): Adjust callers.
190 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
191 when the argument is 0.
192
193 * testsuite/libgomp.c/pr42942.c: New test.
194
b58543c3
SP
1952010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
196
197 PR middle-end/42644
198 PR middle-end/42130
199 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
200 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
201
41d1138f
RO
2022010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
203
204 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
205 * testsuite/libgomp.c++/task-6.C: Likewise.
206
6684eb28
SE
2072010-01-28 Steve Ellcey <sje@cup.hp.com>
208
209 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
210
2122aa97
PB
2112010-01-26 Paolo Bonzini <bonzini@gnu.org>
212
213 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
214 * configure: Regenerate.
215
057dd91d
JJ
2162010-01-26 Jakub Jelinek <jakub@redhat.com>
217
218 PR fortran/42866
219 * testsuite/libgomp.fortran/allocatable5.f90: New test.
220
d0709b6a
PB
2212010-01-20 Paolo Bonzini <bonzini@gnu.org>
222
223 * configure.ac: Test for executability of GFORTRAN.
224 * configure: Regenerate.
225
b9497ab5
RO
2262010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
227
228 * configure: Regenerate.
229
45de5648
L
2302010-01-04 H.J. Lu <hongjiu.lu@intel.com>
231
232 PR libgomp/42602
233 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
234
e74003a1
RG
2352010-01-03 Richard Guenther <rguenther@suse.de>
236
237 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
238
1b3abda8
SP
2392009-12-23 Sebastian Pop <sebpop@gmail.com>
240
241 * testsuite/libgomp.graphite/pr4118.c: New.
242
e19977d3
IS
2432009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
244
245 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
246 for darwin, protect the test with require-effective-target tls_runtime.
247 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
248
1d32a772
IS
2492009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
250
251 PR target/41605
252 * testsuite/lib/libgomp.exp: Provide -B options to allow for
253 link spec %s substitutions for static libraries.
254
deb109b2
JH
2552009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
256
257 PR testsuite/42135
258 * libgomp.graphite/force-parallel-2.c: Reduce array size.
259
43e02a8a
RW
2602009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
261
262 * Makefile.in: Regenerate.
263 * configure: Regenerate.
264 * testsuite/Makefile.in: Regenerate.
265
17f35e23
DK
2662009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
267
268 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
269 settings for LC_ALL and LANG.
270
281e33e1
JJ
2712009-11-25 Jakub Jelinek <jakub@redhat.com>
272
273 PR fortran/42162
274 * testsuite/libgomp.fortran/pr42162.f90: New test.
275
2b32c27d
JJ
2762009-11-13 Jakub Jelinek <jakub@redhat.com>
277
278 PR middle-end/42029
281e33e1 279 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 280
89c74f4a
JJ
2812009-10-26 Jakub Jelinek <jakub@redhat.com>
282
283 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
284 *s. Accept ld version without text in ()s.
285 * configure: Regenerated.
286
7e06c3d6
EB
2872009-10-22 Razya Ladelsky <razya@il.ibm.com>
288
289 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
290
0046b1a7
RW
2912009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
292
293 PR libgomp/41418
294 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
295 or a hyphen (happens with fortran language disabled).
296 * configure: Regenerate.
297
c82852f7
RW
2982009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
299
300 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
301 use sed script portable to Solaris /bin/sed for extracting ld
302 version.
303 * configure: Regenerate.
304
98f3eb1f
AM
3052009-09-17 Alexander Monakov <amonakov@ispras.ru>
306
307 * testsuite/libgomp.graphite/bounds.c: New test.
308
878f62e5
RW
3092009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
310
311 * Makefile.am (libgomp_la_LINK): New.
312 * Makefile.in: Regenerate.
313
df58e648
RW
3142009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
315
316 * configure.ac (AC_PREREQ): Bump to 2.64.
317
5213506e
RW
3182009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
319
70fa0efa
RW
320 * Makefile.am (install-html, install-pdf): Remove.
321 * Makefile.in: Regenerate.
322
5213506e
RW
323 * Makefile.in: Regenerate.
324 * aclocal.m4: Regenerate.
325 * config.h.in: Regenerate.
326 * configure: Regenerate.
327 * testsuite/Makefile.in: Regenerate.
328
84fec8a5
RW
3292009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
330
331 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
332 * Makefile.in: Regenerate.
333
197c68cc
DK
3342009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
335
336 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
337 * Makefile.in: Regenerate.
338
693d54f2
TB
3392009-08-19 Tobias Burnus <burnus@net-b.de>
340
341 PR fortran/41102
342 omp_lib.h.in: Fix -std=f95 errors.
343
344
8cac884c
DE
3452009-08-14 David Edelsohn <edelsohn@gnu.org>
346
347 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
348 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
349 * testsuite/libgomp.graphite/graphite.exp: New.
350
78729ee2
AT
3512009-08-05 Andreas Tobler <a.tobler@schweiz.org>
352
353 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
354 only build.
355
b13b7f39
DD
3562009-08-04 David Daney <ddaney@caviumnetworks.com>
357
358 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
359 needed memory barrier semantics.
360 * config/linux/mips/mutex.h: New file.
361
1b3b24c2
RW
3622009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
363
364 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
365
396b7fa4
JM
3662009-07-16 Joseph Myers <joseph@codesourcery.com>
367
368 * configure: Regenerate.
369
33cde516
RS
3702009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
371
372 PR testsuite/40699
373 PR testsuite/40707
374 PR testsuite/40709
375 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
376 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
377 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
378
bc21bfa5
RS
3792009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
380
381 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
382 options when choosing a multilib.
383
b30bfd40
RS
3842009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
385
386 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
387 ld_library_path. Use add_path. Add just find_libgcc_s to
388 ld_library_path, not every libgcc multilib directory.
389 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
390 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
391 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
392 Use add_path.
393 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
394
479c15c2
NF
3952009-06-09 Nathan Froyd <froydnj@codesourcery.com>
396
397 * Makefile.am (LTLDFLAGS): Define.
398 (LINK): Define.
399 * Makefile.in: Regenerate.
400
667e6f89
JB
4012009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
402
403 PR fortran/39718
404 * testsuite/libgomp.fortran/fortran.exp: Don't link with
405 libgfortranbegin, check existence of libgfortran.a instead of
406 libgfortranbegin.a.
407
6dea8e99
JJ
4082009-05-20 Jakub Jelinek <jakub@redhat.com>
409
410 PR libgomp/40174
411 * team.c (gomp_thread_start): Destroy thr->release semaphore.
412 (gomp_free_pool_helper): Likewise.
413
34d01e1d
VL
4142009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
415 Jakub Jelinek <jakub@redhat.com>
416
417 PR fortran/35423
418 * testsuite/libgomp.fortran/workshare2.f90: New test.
419
748086b7
JJ
4202009-04-09 Nick Clifton <nickc@redhat.com>
421
422 * iter.c: Change copyright header to refer to version 3 of the
423 GNU General Public License with version 3.1 of the GCC Runtime
424 Library Exception and to point readers at the COPYING3 and
425 COPYING3.RUNTIME files and the FSF's license web page.
426 * alloc.c: Likewise.
427 * barrier.c: Likewise.
428 * config/bsd/proc.c: Likewise.
429 * config/linux/affinity.c: Likewise.
430 * config/linux/alpha/futex.h: Likewise.
431 * config/linux/bar.c: Likewise.
432 * config/linux/bar.h: Likewise.
433 * config/linux/ia64/futex.h: Likewise.
434 * config/linux/ia64/mutex.h: Likewise.
435 * config/linux/lock.c: Likewise.
436 * config/linux/mips/futex.h: Likewise.
437 * config/linux/mutex.c: Likewise.
438 * config/linux/mutex.h: Likewise.
439 * config/linux/powerpc/futex.h: Likewise.
440 * config/linux/proc.c: Likewise.
441 * config/linux/ptrlock.c: Likewise.
442 * config/linux/ptrlock.h: Likewise.
443 * config/linux/s390/futex.h: Likewise.
444 * config/linux/sem.c: Likewise.
445 * config/linux/sem.h: Likewise.
446 * config/linux/sparc/futex.h: Likewise.
447 * config/linux/wait.h: Likewise.
448 * config/linux/x86/futex.h: Likewise.
449 * config/mingw32/proc.c: Likewise.
450 * config/mingw32/time.c: Likewise.
451 * config/posix/affinity.c: Likewise.
452 * config/posix/bar.c: Likewise.
453 * config/posix/bar.h: Likewise.
454 * config/posix/lock.c: Likewise.
455 * config/posix/mutex.h: Likewise.
456 * config/posix/proc.c: Likewise.
457 * config/posix/ptrlock.h: Likewise.
458 * config/posix/sem.c: Likewise.
459 * config/posix/sem.h: Likewise.
460 * config/posix/time.c: Likewise.
461 * config/posix95/lock.c: Likewise.
462 * critical.c: Likewise.
463 * env.c: Likewise.
464 * error.c: Likewise.
465 * fortran.c: Likewise.
466 * iter_ull.c: Likewise.
467 * libgomp.h: Likewise.
468 * libgomp_f.h.in: Likewise.
469 * libgomp_g.h: Likewise.
470 * loop.c: Likewise.
471 * loop_ull.c: Likewise.
472 * omp.h.in: Likewise.
473 * omp_lib.f90.in: Likewise.
474 * omp_lib.h.in: Likewise.
475 * ordered.c: Likewise.
476 * parallel.c: Likewise.
477 * sections.c: Likewise.
478 * single.c: Likewise.
479 * task.c: Likewise.
480 * team.c: Likewise.
481 * work.c: Likewise.
482
4832009-04-09 Jakub Jelinek <jakub@redhat.com>
484
485 * testsuite/config/default.exp: Change copyright header to refer to
486 version 3 of the GNU General Public License and to point readers
487 at the COPYING3 file and the FSF's license web page.
488
4f0ae266
JJ
4892009-04-08 Jakub Jelinek <jakub@redhat.com>
490
491 PR middle-end/39573
492 * libgomp.c++/pr39573.C: New test.
493
03742a9b
JJ
4942009-04-01 Jakub Jelinek <jakub@redhat.com>
495
496 PR other/39591
497 * testsuite/libgomp.c/pr39591-1.c: New test.
498 * testsuite/libgomp.c/pr39591-2.c: New test.
499 * testsuite/libgomp.c/pr39591-3.c: New test.
500
e50ea10b
UB
5012009-03-25 Uros Bizjak <ubizjak@gmail.com>
502
503 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
504 * testsuite/libgomp.c/atomic-6.c: Ditto.
505
c5cdb03f
JJ
5062009-03-23 Jakub Jelinek <jakub@redhat.com>
507
508 PR c/39495
509 * testsuite/libgomp.c/loop-12.c: New test.
510 * testsuite/libgomp.c/loop-11.c: New test.
511 * testsuite/libgomp.c++/loop-11.C: New test.
512 * testsuite/libgomp.c++/loop-12.C: New test.
513 * testsuite/libgomp.c++/for-8.C: New test.
514
7a9d3fe8
RW
5152009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
516
517 * configure: Regenerate.
518
3ad6b266
JJ
5192009-02-11 Jakub Jelinek <jakub@redhat.com>
520
521 PR middle-end/39154
522 * testsuite/libgomp.c/pr39154.c: New test.
523
b39dea08
ILT
5242009-01-30 Ian Lance Taylor <iant@google.com>
525
526 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
527 libgomp_ld_is_gold. Get gold version number.
528 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
529 * configure: Rebuild.
530
72c66596
IS
5312009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
532
e50ea10b 533 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
534 use libgfortran.a%s in their specs.
535
876080ff
JJ
5362009-01-07 Jakub Jelinek <jakub@redhat.com>
537
538 PR libgomp/38086
539 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
540 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
541 HAVE_AS_SYMVER_DIRECTIVE is not defined.
542 * configure: Regenerated.
543 * config.h.in: Likewise.
544
e4ebaef3
JJ
5452008-12-28 Jakub Jelinek <jakub@redhat.com>
546
547 PR c++/38650
548 * testsuite/libgomp.c/pr38650.c: New test.
549 * testsuite/libgomp.c++/pr38650.C: New test.
550
382017a6
JJ
5512008-12-27 Jakub Jelinek <jakub@redhat.com>
552
553 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
554
79644b27
UB
5552008-12-26 Uros Bizjak <ubizjak@gmail.com>
556
557 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
558
baafc534
RW
5592008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
560
561 * configure: Regenerate.
562
d9c194cb
JJ
5632008-12-08 Jakub Jelinek <jakub@redhat.com>
564
565 PR middle-end/36802
566 * testsuite/libgomp.c/pr36802-1.c: New test.
567 * testsuite/libgomp.c/pr36802-2.c: New test.
568 * testsuite/libgomp.c/pr36802-3.c: New test.
569
86a182bf
JJ
5702008-12-01 Janis Johnson <janis187@us.ibm.com>
571
572 PR libgomp/38270
573 * config/linux/powerpc/mutex.h: New.
574
956adfaf
JJ
5752008-12-01 Jakub Jelinek <jakub@redhat.com>
576
a2d4cdc9
JJ
577 PR c++/38257
578 * testsuite/libgomp.c++/for-7.C: New test.
579
956adfaf
JJ
580 PR c++/38348
581 * testsuite/libgomp.c++/for-6.C: New test.
582
d4038ca2
JJ
5832008-11-26 Janis Johnson <janis187@us.ibm.com>
584
585 PR testsuite/28870
586 * testsuite/lib/libgomp.exp: Include new timeout library files.
587 (libgomp_target_compile): Set timeout value from new proc.
588
8b159eea
SE
5892008-11-13 Steve Ellcey <sje@cup.hp.com>
590
591 PR libgomp/37938
592 * config/linux/ia64/mutex.h: New.
593
5c6ed53a
TB
5942008-11-04 Tobias Burnus <burnus@net-b.de>
595
596 PR libgomp/37935
597 * libgomp.texi (Runtime library routines, environment variables):
598 Update for OpenMP version 3.0.
599
6b4a97ed
PG
6002008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
601 Steve Ellcey <sje@cup.hp.com>
602
603 * configure: Regenerate for new libtool.
604 * Makefile.in: Ditto.
605 * testsuite/Makefile.in: Ditto.
606
e2b34106
JJ
6072008-09-19 Jakub Jelinek <jakub@redhat.com>
608 Andreas Tobler <a.tobler@schweiz.org>
609
610 * config/bsd/proc.c: New file.
8c3b3600 611 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
612 * configure.ac: Check for header <sys/sysctl.h>
613 * configure: Regenerate.
614 * config.h.in: Likewise.
615
3606b8bf
JJ
6162008-09-05 Janis Johnson <janis187@us.ibm.com>
617
618 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
619
6528b88d
AL
6202008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
621
622 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
623 * Makefile.in: Regenerated.
624 * testsuite/Makefile.in: Regenerated.
625
d9b14b12 6262008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 627
a16b68bb 628 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
629 depend on blddir if blddir exists.
630 (libgomp_target_compile): Likewise.
631 * testsuite/libgomp.c++/c++.exp: Likewise.
632 * testsuite/libgomp.fortran/fortran.exp: Likewise.
633
70b1e376
RW
6342008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
635
636 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
637 Do not list GPL as Invariant Section.
638
318e8c3f
IG
6392008-07-28 Ilie Garbacea <ilie@mips.com>
640 Chao-ying Fu <fu@mips.com>
641
642 * configure.tgt: Enable futex for MIPS.
643 * config/linux/mips/futex.h: New file.
644
4db72361
JJ
6452008-07-16 Jakub Jelinek <jakub@redhat.com>
646
647 * team.c (gomp_team_end): Free team immediately if it has
648 just one thread.
649
87bd23b8
DE
6502008-07-08 David Edelsohn <edelsohn@gnu.org>
651
652 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
653 * testsuite/libgomp.fortran/fortran.exp: Same.
654 * testsuite/libgomp.c/c.exp: Same.
655 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
656 directory to library path first.
657
323ff903
KW
6582008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
659
660 * env.c (parse_stacksize): Add cast to avoid warning.
661 (parse_spincount): Likewise.
662
b357f682
JJ
6632008-06-27 Jakub Jelinek <jakub@redhat.com>
664
ca2b1311
JJ
665 * testsuite/libgomp.c/loop-10.c: New test.
666 * libgomp.c/loop-3.c (main): Add lastprivate clause.
667 * libgomp.c++/loop-6.C (main): Likewise.
668
b357f682
JJ
669 PR debug/36617
670 * testsuite/libgomp.c/debug-1.c: New test.
671
09a46078
JJ
6722008-06-19 Jakub Jelinek <jakub@redhat.com>
673
674 * testsuite/libgomp.c/nqueens-1.c: New test.
675
2368a460
JJ
676 PR c++/36523
677 * testsuite/libgomp.c++/task-7.C: New function.
678
18c04407
RW
6792008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
680
681 * configure: Regenerate.
682
9c4e59e0
JDA
6832008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
684
685 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
686 mutex when HAVE_SYNC_BUILTINS isn't defined.
687
6ccde948
RW
6882008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
689
690 * libgomp.texi (omp_test_lock): Fix typo.
691
b896f9fd
TB
6922008-06-12 Tobias Burnus <burnus@net-b.de>
693
694 * omp_lib.f90.in: Add "implicit none".
695
c34938a8
JJ
6962008-06-12 Jakub Jelinek <jakub@redhat.com>
697
698 PR middle-end/36506
699 * testsuite/libgomp.c/reduction-5.c: New test.
700
976e44e3
JJ
7012008-06-11 Jakub Jelinek <jakub@redhat.com>
702
5f836cbb
JJ
703 * libgomp.h (struct gomp_task): Add in_tied_task field.
704 * task.c (gomp_init_task): Initialize it.
705 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
706 unconditionally. Don't call gomp_team_barrier_wake if
707 current task is implicit or if(0) from implicit and number of
708 running tasks is equal to nthreads - 1.
709
01501fc8
JJ
710 PR libgomp/36471
711 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
712 omp_get_team_size_8): Fix pastos.
713
976e44e3
JJ
714 PR libgomp/36469
715 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
716 * configure: Regenerated.
717 * config.h.in: Regenerated.
718 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
719 defined.
720
e919209b
AT
7212008-06-06 Andreas Tobler <a.tobler@schweiz.org>
722
723 PR bootstrap/36452
724 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
725 (GOMP_loop_ull_dynamic_start): Likewise.
726 (GOMP_loop_ull_guided_start): Likewise.
727 (GOMP_loop_ull_ordered_static_start): Likewise.
728 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
729 (GOMP_loop_ull_ordered_guided_start): Likewise.
730
a68ab351
JJ
7312008-06-06 Jakub Jelinek <jakub@redhat.com>
732 Richard Henderson <rth@redhat.com>
733 Ulrich Drepper <drepper@redhat.com>
734 Jakob Blomer <jakob.blomer@ira.uka.de>
735
736 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
737 Substitute also OMP_*LOCK_25*.
738 * configure: Regenerated.
739 * config.h.in: Regenerated.
740 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
741 ptrlock.c and task.c.
742 * Makefile.in: Regenerated.
743 * testsuite/Makefile.in: Regenerated.
744 * task.c: New file.
745 * loop_ull.c: New file.
746 * iter_ull.c: New file.
747 * libgomp.h: Include ptrlock.h.
748 (enum gomp_task_kind): New type.
749 (struct gomp_team): Add task_lock, task_queue, task_count,
750 task_running_count, single_count fields. Add
751 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
752 Remove work_share_lock, generation_mask,
753 oldest_live_gen, num_live_gen and init_work_shares fields, add
754 work work_share_list_alloc, work_share_list_free and work_share_chunk
755 fields. Change work_shares from pointer to pointers into an array.
756 Change ordered_release field into gomp_sem_t ** from flexible array
757 member. Add implicit_task and initial_work_shares fields.
758 Move close to the end of the struct.
759 (struct gomp_team_state): Add single_count, last_work_share,
760 active_level and level fields, remove work_share_generation.
761 (gomp_barrier_handle_tasks): New prototype.
762 (gomp_finish_task): New inline function.
763 (struct gomp_work_share): Move chunk_size, end, incr into
764 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
765 next_ll fields. Reshuffle fields. Add next_alloc,
766 next_ws, next_free and inline_ordered_team_ids fields, change
767 ordered_team_ids into pointer from flexible array member.
768 Add mode field. Put lock and next into a different cache line
769 from most of the write-once fields.
770 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
771 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
772 gomp_iter_ull_guided_next): New prototypes.
773 (gomp_new_icv): New prototype.
774 (struct gomp_thread): Add thread_pool and task fields.
775 (struct gomp_thread_pool): New type.
776 (gomp_new_team): New prototype.
777 (gomp_team_start): Change type of last argument.
778 (gomp_new_work_share): Removed.
779 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
780 (gomp_work_share_init_done): New static inline.
781 (gomp_throttled_spin_count_var, gomp_available_cpus,
782 gomp_managed_threads): New extern decls.
783 (gomp_init_task): New prototype.
784 (gomp_spin_count_var): New extern var decl.
785 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
786 or no alias support, or if not PIC.
787 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
788 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
789 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
790 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
791 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
792 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
793 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
794 gomp_test_nest_lock_25): New prototypes.
795 (omp_lock_symver, strong_alias): Define.
796 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
797 decls.
798 (gomp_end_task): New.
799 (struct gomp_task_icv, gomp_global_icv): New.
800 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
801 (struct gomp_task): New.
802 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
803 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
804 (gomp_icv): New.
805 (gomp_schedule_type): Reorder enum to match
806 omp_sched_t.
807 * team.c (struct gomp_thread_start_data): Add thread_pool and task
808 fields.
809 (gomp_thread_start): Add gomp_team_barrier_wait call.
810 For non-nested case remove clearing of docked thread thr fields.
811 Use pool fields instead of global gomp_* variables. Use
812 gomp_barrier_wait_last when needed. Initialize ts.active_level.
813 Create tasks for each member thread.
814 (free_team): Only destroy team barrier, task_lock here and free it.
815 (gomp_free_thread): Free last_team if non-NULL.
816 (gomp_team_end): Call gomp_team_barrier_wait instead of
817 gomp_barrier_wait. For nested case call one extra
818 gomp_barrier_wait. Move here some destruction from free_team.
819 Call free_team on pool->last_team if any, rather than freeing
820 current team. Destroy work_share_list_free_lock ifndef
821 HAVE_SYNC_BUILTINS.
822 (gomp_new_icv): New function.
823 (gomp_threads, gomp_threads_size, gomp_threads_used,
824 gomp_threads_dock): Removed.
825 (gomp_thread_destructor): New variable.
826 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
827 functions.
828 (gomp_team_start): Create new pool if current thread doesn't have
829 one. Use pool fields instead of global gomp_* variables.
830 Initialize thread_pool field for new threads. Clear single_count.
831 Change last argument from ws to team, don't create
832 new team, set ts.work_share to &team->work_shares[0] and clear
833 ts.last_work_share. Don't clear ts.work_share_generation.
834 If number of threads changed, adjust atomically gomp_managed_threads.
835 Use gomp_init_task instead of gomp_new_task,
836 set thr->task to the corresponding implicit_task array entry.
837 Create tasks for each member thread. Initialize ts.level.
838 (initialize_team): Call pthread_key_create on
839 gomp_thread_destructor.
840 (team_destructor): New function.
841 (new_team): Removed.
842 (gomp_new_team): New function.
843 (free_team): Free gomp_work_share blocks chained through next_alloc,
844 instead of freeing work_shares and destroying work_share_lock.
845 (gomp_team_end): Call gomp_fini_work_share. If number of threads
846 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
847 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
848 of gomp_barrier_wait.
849 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
850 instead of gomp_barrier_wait. Call gomp_work_share_init_done
851 if gomp_work_share_start returned true. Don't unlock ws->lock.
852 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
853 of gomp_barrier_wait.
854 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
855 gomp_work_share_init_done if gomp_work_share_start returned true.
856 Don't unlock ws->lock.
857 * work.c: Include stddef.h.
858 (free_work_share): Use work_share_list_free_lock instead
859 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
860 Call gomp_fini_work_share and then either free ws if orphaned, or
861 put it into work_share_list_free list of the current team.
862 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
863 functions.
864 (gomp_work_share_start, gomp_work_share_end,
865 gomp_work_share_end_nowait): Rewritten.
866 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
867 (openmp_version): Set to 200805.
868 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
869 omp_sched_guided, omp_sched_auto): New parameters.
870 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
871 omp_set_max_active_levels, omp_get_max_active_levels,
872 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
873 omp_get_active_level): New interfaces.
874 * omp_lib.h.in (openmp_version): Set to 200805.
875 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
876 omp_sched_guided, omp_sched_auto): New parameters.
877 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
878 omp_set_max_active_levels, omp_get_max_active_levels,
879 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
880 omp_get_active_level): New externals.
881 * loop.c: Include limits.h.
882 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
883 GFS_AUTO.
884 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
885 Likewise. Use gomp_icv.
886 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
887 ts.static_trip here.
888 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
889 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
890 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
891 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
892 don't unlock ws->lock, otherwise lock it.
893 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
894 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
895 (gomp_parallel_loop_start): Call gomp_new_team instead of
896 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
897 Adjust gomp_team_start caller. Pass 0 as second argument to
898 gomp_resolve_num_threads.
899 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
900 If adding ws->chunk_size nthreads + 1 times after end won't
901 overflow, set ws->mode to 1.
902 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
903 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
904 GOMP_loop_ull_ordered_static_start,
905 GOMP_loop_ull_ordered_dynamic_start,
906 GOMP_loop_ull_ordered_guided_start,
907 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
908 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
909 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
910 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
911 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
912 prototypes.
913 * libgomp.map: Export lock routines also @@OMP_2.0.
914 (GOMP_loop_ordered_dynamic_first,
915 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
916 GOMP_loop_ordered_static_first): Remove.
917 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
918 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
919 GOMP_loop_ull_ordered_dynamic_next,
920 GOMP_loop_ull_ordered_dynamic_start,
921 GOMP_loop_ull_ordered_guided_next,
922 GOMP_loop_ull_ordered_guided_start,
923 GOMP_loop_ull_ordered_runtime_next,
924 GOMP_loop_ull_ordered_runtime_start,
925 GOMP_loop_ull_ordered_static_next,
926 GOMP_loop_ull_ordered_static_start,
927 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
928 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
929 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
930 (omp_set_schedule, omp_get_schedule,
931 omp_get_thread_limit, omp_set_max_active_levels,
932 omp_get_max_active_levels, omp_get_level,
933 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
934 omp_set_schedule_, omp_set_schedule_8_,
935 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
936 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
937 omp_get_max_active_levels_, omp_get_level_,
938 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
939 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
940 New exports @@OMP_3.0.
941 * omp.h.in (omp_sched_t): New type.
942 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
943 omp_set_max_active_levels, omp_get_max_active_levels,
944 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
945 omp_get_active_level): New prototypes.
946 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
947 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
948 gomp_thread_limit_var, gomp_remaining_threads_count,
949 gomp_remaining_threads_lock): New variables.
950 (parse_spincount): New function.
951 (initialize_env): Call gomp_init_num_threads unconditionally.
952 Initialize gomp_available_cpus. Call parse_spincount,
953 initialize gomp_{,throttled_}spin_count_var
954 depending on presence and value of OMP_WAIT_POLICY and
955 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
956 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
957 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
958 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
959 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
960 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
961 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
962 (gomp_global_icv): New.
963 (parse_schedule): Use it. Parse "auto".
964 (omp_set_num_threads): Use gomp_icv.
965 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
966 Likewise.
967 (omp_get_max_threads): Move from parallel.c.
968 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
969 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
970 add ialias.
971 (parse_stacksize, parse_wait_policy): New functions.
972 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
973 both wrappers for compatibility and new locks.
974 (omp_set_schedule, omp_get_schedule,
975 omp_get_thread_limit, omp_set_max_active_levels,
976 omp_get_max_active_levels, omp_get_level,
977 omp_get_ancestor_thread_num, omp_get_team_size,
978 omp_get_active_level): New ialias_redirect.
979 (omp_set_schedule_, omp_set_schedule_8_,
980 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
981 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
982 omp_get_max_active_levels_, omp_get_level_,
983 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
984 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
985 New functions.
986 * parallel.c: Include limits.h.
987 (gomp_resolve_num_threads): Add count argument. Rewritten.
988 (GOMP_parallel_start): Call gomp_new_team and pass that as last
989 argument to gomp_team_start. Pass 0 as second argument to
990 gomp_resolve_num_threads.
991 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
992 if gomp_thread_limit_var != ULONG_MAX.
993 (omp_in_parallel): Implement using ts.active_level.
994 (omp_get_max_threads): Move to env.c.
995 (omp_get_level, omp_get_ancestor_thread_num,
996 omp_get_team_size, omp_get_active_level): New functions,
997 add ialias.
998 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
999 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1000 gomp_iter_dynamic_next instead of the _locked variant and don't take
1001 lock around it, otherwise acquire it before calling
1002 gomp_iter_dynamic_next_locked.
1003 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1004 gomp_iter_dynamic_next instead of the _locked variant and don't take
1005 lock around it.
1006 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1007 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1008 Adjust gomp_team_start caller. Pass count as second argument to
1009 gomp_resolve_num_threads, don't adjust num_threads after the call.
1010 Use gomp_icv.
1011 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1012 ws->chunk_size by incr.
1013 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1014 code.
1015 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1016 types.
1017 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1018 (omp_check_defines): Check even the compat defines.
1019 * config/linux/ptrlock.c: New file.
1020 * config/linux/ptrlock.h: New file.
1021 * config/linux/wait.h: New file.
1022 * config/posix/ptrlock.c: New file.
1023 * config/posix/ptrlock.h: New file.
1024 * config/linux/bar.h (gomp_team_barrier_wait,
1025 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1026 (gomp_team_barrier_set_task_pending,
1027 gomp_team_barrier_clear_task_pending,
1028 gomp_team_barrier_set_waiting_for_tasks,
1029 gomp_team_barrier_waiting_for_tasks,
1030 gomp_team_barrier_done): New inlines.
1031 (gomp_barrier_t): Rewritten.
1032 (gomp_barrier_state_t): New typedef.
1033 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1034 gomp_barrier_wait_start): Rewritten.
1035 (gomp_barrier_wait_end): Change second argument to
1036 gomp_barrier_state_t.
1037 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1038 inlines.
1039 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1040 futex.h.
1041 (gomp_barrier_wait_end): Rewritten.
1042 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1043 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1044 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1045 (gomp_barrier_state_t): New typedef.
1046 (gomp_team_barrier_wait,
1047 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1048 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1049 into the return value. Return gomp_barrier_state_t.
1050 (gomp_team_barrier_set_task_pending,
1051 gomp_team_barrier_clear_task_pending,
1052 gomp_team_barrier_set_waiting_for_tasks,
1053 gomp_team_barrier_waiting_for_tasks,
1054 gomp_team_barrier_done): New inlines.
1055 (gomp_barrier_wait_end): Change second argument to
1056 gomp_barrier_state_t.
1057 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1058 inlines.
1059 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1060 (gomp_barrier_wait_end): Change second argument to
1061 gomp_barrier_state_t.
1062 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1063 gomp_team_barrier_wake): New functions.
1064 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1065 futex.h.
1066 (gomp_futex_wake, gomp_futex_wait): New variables.
1067 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1068 * config/linux/lock.c: Rewrite to make locks task owned,
1069 for backwards compatibility provide the old entrypoints
1070 if symbol versioning. Include wait.h instead of libgomp.h and
1071 futex.h.
1072 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1073 * config/posix95/lock.c: Rewrite to make locks task owned,
1074 for backwards compatibility provide the old entrypoints
1075 if symbol versioning.
1076 * config/posix/lock.c: Rewrite to make locks task owned,
1077 for backwards compatibility provide the old entrypoints
1078 if symbol versioning.
1079 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1080 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1081 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1082 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1083 (sys_futex0): Return error code.
1084 (futex_wake, futex_wait): If ENOSYS was returned, clear
1085 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1086 (cpu_relax, atomic_write_barrier): New static inlines.
1087 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1088 (futex_wake, futex_wait): If ENOSYS was returned, clear
1089 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1090 (cpu_relax, atomic_write_barrier): New static inlines.
1091 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1092 (sys_futex0): Return error code.
1093 (futex_wake, futex_wait): If ENOSYS was returned, clear
1094 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1095 (cpu_relax, atomic_write_barrier): New static inlines.
1096 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1097 (sys_futex0): Return error code.
1098 (futex_wake, futex_wait): If ENOSYS was returned, clear
1099 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1100 (cpu_relax, atomic_write_barrier): New static inlines.
1101 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1102 (sys_futex0): Return error code.
1103 (futex_wake, futex_wait): If ENOSYS was returned, clear
1104 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1105 (cpu_relax, atomic_write_barrier): New static inlines.
1106 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1107 (sys_futex0): Return error code.
1108 (futex_wake, futex_wait): If ENOSYS was returned, clear
1109 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1110 (cpu_relax, atomic_write_barrier): New static inlines.
1111 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1112 futex.h.
1113 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1114 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1115 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1116 types.
1117 (omp_nest_lock_t): Change owner into void *, add lock field.
1118 * config/posix95/omp-lock.h: Include semaphore.h.
1119 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1120 (omp_lock_t): Use sem_t instead of mutex if semaphores
1121 aren't broken.
1122 (omp_nest_lock_t): Likewise. Change owner to void *.
1123 * config/posix/omp-lock.h: Include semaphore.h.
1124 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1125 (omp_lock_t): Use sem_t instead of mutex if semaphores
1126 aren't broken.
1127 (omp_nest_lock_t): Likewise. Add owner field.
1128
11292008-06-06 Jakub Jelinek <jakub@redhat.com>
1130
1131 * testsuite/libgomp.c/collapse-1.c: New test.
1132 * testsuite/libgomp.c/collapse-2.c: New test.
1133 * testsuite/libgomp.c/collapse-3.c: New test.
1134 * testsuite/libgomp.c/icv-1.c: New test.
1135 * testsuite/libgomp.c/icv-2.c: New test.
1136 * testsuite/libgomp.c/lib-2.c: New test.
1137 * testsuite/libgomp.c/lock-1.c: New test.
1138 * testsuite/libgomp.c/lock-2.c: New test.
1139 * testsuite/libgomp.c/lock-3.c: New test.
1140 * testsuite/libgomp.c/loop-4.c: New test.
1141 * testsuite/libgomp.c/loop-5.c: New test.
1142 * testsuite/libgomp.c/loop-6.c: New test.
1143 * testsuite/libgomp.c/loop-7.c: New test.
1144 * testsuite/libgomp.c/loop-8.c: New test.
1145 * testsuite/libgomp.c/loop-9.c: New test.
1146 * testsuite/libgomp.c/nested-3.c: New test.
1147 * testsuite/libgomp.c/nestedfn-6.c: New test.
1148 * testsuite/libgomp.c/sort-1.c: New test.
1149 * testsuite/libgomp.c/task-1.c: New test.
1150 * testsuite/libgomp.c/task-2.c: New test.
1151 * testsuite/libgomp.c/task-3.c: New test.
1152 * testsuite/libgomp.c/task-4.c: New test.
1153 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1154 to C++ testsuite default compiler options.
1155 * testsuite/libgomp.c++/collapse-1.C: New test.
1156 * testsuite/libgomp.c++/collapse-2.C: New test.
1157 * testsuite/libgomp.c++/ctor-10.C: New test.
1158 * testsuite/libgomp.c++/for-1.C: New test.
1159 * testsuite/libgomp.c++/for-2.C: New test.
1160 * testsuite/libgomp.c++/for-3.C: New test.
1161 * testsuite/libgomp.c++/for-4.C: New test.
1162 * testsuite/libgomp.c++/for-5.C: New test.
1163 * testsuite/libgomp.c++/loop-8.C: New test.
1164 * testsuite/libgomp.c++/loop-9.C: New test.
1165 * testsuite/libgomp.c++/loop-10.C: New test.
1166 * testsuite/libgomp.c++/task-1.C: New test.
1167 * testsuite/libgomp.c++/task-2.C: New test.
1168 * testsuite/libgomp.c++/task-3.C: New test.
1169 * testsuite/libgomp.c++/task-4.C: New test.
1170 * testsuite/libgomp.c++/task-5.C: New test.
1171 * testsuite/libgomp.c++/task-6.C: New test.
1172 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1173 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1174 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1175 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1176 * testsuite/libgomp.fortran/collapse1.f90: New test.
1177 * testsuite/libgomp.fortran/collapse2.f90: New test.
1178 * testsuite/libgomp.fortran/collapse3.f90: New test.
1179 * testsuite/libgomp.fortran/collapse4.f90: New test.
1180 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1181 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1182 * testsuite/libgomp.fortran/lib4.f90: New test.
1183 * testsuite/libgomp.fortran/lock-1.f90: New test.
1184 * testsuite/libgomp.fortran/lock-2.f90: New test.
1185 * testsuite/libgomp.fortran/nested1.f90: New test.
1186 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1187 * testsuite/libgomp.fortran/strassen.f90: New test.
1188 * testsuite/libgomp.fortran/tabs1.f90: New test.
1189 * testsuite/libgomp.fortran/tabs2.f: New test.
1190 * testsuite/libgomp.fortran/task1.f90: New test.
1191 * testsuite/libgomp.fortran/task2.f90: New test.
1192 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1193 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1194 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1195 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1196 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1197
7a0112e7
JJ
11982008-05-23 Jakub Jelinek <jakub@redhat.com>
1199
1200 PR c++/36308
1201 * testsuite/libgomp.c++/ctor-11.C: New test.
1202 * testsuite/libgomp.c++/ctor-12.C: New test.
1203
91a5b394
JJ
12042008-05-15 Janis Johnson <janis187@us.ibm.com>
1205
1206 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1207
c18c98c0
JJ
12082008-05-07 Jakub Jelinek <jakub@redhat.com>
1209
1210 PR middle-end/36106
1211 * testsuite/libgomp.c/atomic-5.c: New test.
1212 * testsuite/libgomp.c/atomic-6.c: New test.
1213 * testsuite/libgomp.c/autopar-1.c: New test.
1214
6d26724a
RW
12152008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1216
1217 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1218 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1219 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1220 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1221 * configure: Regenerate.
1222 * Makefile.in, testsuite/Makefile.in: Likewise.
1223
deb984e6
PB
12242008-04-18 Paolo Bonzini <bonzini@gnu.org>
1225
1226 PR bootstrap/35457
1227 * aclocal.m4: Regenerate.
1228 * configure: Regenerate.
1229
9e775963
JJ
12302008-03-18 Jakub Jelinek <jakub@redhat.com>
1231
8119fc93
JJ
1232 PR middle-end/35611
1233 * testsuite/libgomp.c/atomic-4.c: New test.
1234
9e775963
JJ
1235 PR libgomp/35625
1236 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1237 (gomp_iter_guided_next): Likewise.
1238 * testsuite/libgomp.c/pr35625.c: New test.
1239
38d24731
RW
12402008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1241
1242 * aclocal.m4: Regenerate.
1243 * configure: Likewise.
1244 * Makefile.in: Likewise.
1245 * testsuite/Makefile.in: Likewise.
1246
d0fb20be
JJ
12472008-03-13 Jakub Jelinek <jakub@redhat.com>
1248
1249 PR middle-end/35185
1250 * testsuite/libgomp.c++/pr35185.C: New test.
1251
7c8f7639
JJ
12522008-03-12 Jakub Jelinek <jakub@redhat.com>
1253
1254 PR middle-end/35549
1255 * testsuite/libgomp.c/pr35549.c: New test.
1256
251923f5
JJ
12572008-03-06 Jakub Jelinek <jakub@redhat.com>
1258
1259 * testsuite/libgomp.c/atomic-3.c: New test.
1260
f489fba1
FXC
12612008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1262
1263 PR fortran/33197
251923f5 1264 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
1265 .F08 file suffixes.
1266
a1b25e49
PG
12672008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1268
1269 PR libgomp/33131
1270 * configure.ac: Add ACX_HEADER_STRING.
1271 * env.c: Include strings.h.
1272 * aclocal.m4: Regenerate.
1273 * config.h.in: Regenerate.
1274 * configure: Regenerate.
1275 * Makefile.in: Regenerate.
1276 * testsuite/Makefile.in: Regenerate.
1277
6837b3b8
JJ
12782008-02-15 Jakub Jelinek <jakub@redhat.com>
1279
ac84c062
JJ
1280 PR middle-end/35196
1281 * testsuite/libgomp.c/pr35196.c: New test.
1282
6837b3b8
JJ
1283 PR middle-end/35130
1284 * testsuite/libgomp.fortran/pr35130.f90: New test.
1285 * testsuite/libgomp.c/pr35130.c: New test.
1286
c256730c
JJ
12872008-01-25 Jakub Jelinek <jakub@redhat.com>
1288
1289 PR middle-end/33880
1290 * testsuite/libgomp.c/pr33880.c: New test.
1291 * testsuite/libgomp.fortran/pr33880.f90: New test.
1292
c8e95542 12932008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
1294
1295 * configure: Regenerate.
1296
0f3e711e
JJ
12972008-01-08 Jakub Jelinek <jakub@redhat.com>
1298
1299 * configure.ac: Move futex checking into ../config/futex.m4.
1300 * configure: Rebuilt.
1301 * aclocal.m4: Rebuilt.
1302 * Makefile.in: Rebuilt.
1303
1304 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1305 2007-10-15 ../config/tls.m4 change.
1306
5259c813
JJ
13072007-12-19 Jakub Jelinek <jakub@redhat.com>
1308
1309 PR c++/34513
1310 * testsuite/libgomp.c/pr34513.c: New test.
1311 * testsuite/libgomp.c++/pr34513.C: New test.
1312
ae8d8879
JH
13132007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1314
1315 PR target/32765
1316 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1317
2b4cf991
JJ
13182007-12-04 Jakub Jelinek <jakub@redhat.com>
1319
1320 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1321
d2dda7fe
JJ
13222007-12-03 Jakub Jelinek <jakub@redhat.com>
1323
1324 * testsuite/libgomp.c/private-1.c: New test.
1325
d683ec81
PB
13262007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1327 Paolo Bonzini <bonzini@gnu.org>
1328
1329 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1330 instead of 'VPATH ='.
1331 * Makefile.in: Regenerate.
1332
a7415017
MK
13332007-11-23 Matthias Klose <doko@ubuntu.com>
1334
1335 * configure.ac: Adjust makeinfo version check.
1336 * configure: Regenerate.
1337
78e47463
JJ
13382007-11-10 Jakub Jelinek <jakub@redhat.com>
1339
1340 PR fortran/34020
1341 * testsuite/libgomp.fortran/pr34020.f90: New test.
1342
239371f9
JJ
13432007-11-06 Jakub Jelinek <jakub@redhat.com>
1344
1345 PR c++/33894
1346 * testsuite/libgomp.c++/atomic-1.C: New test.
1347
98a5fa94
JJ
13482007-10-25 Jakub Jelinek <jakub@redhat.com>
1349
1350 PR libgomp/33275
1351 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1352 Make x and y integers rather than (implicit) reals. Add private (j)
1353 clause to the last omp parallel.
1354
3afcaaf4
MR
13552007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1356
1357 * configure: Regenerate following changes to ../config/tls.m4.
1358
bd69daef
JJ
13592007-09-28 Jakub Jelinek <jakub@redhat.com>
1360
1361 * testsuite/libgomp.fortran/stack.f90: New test.
1362
1d0bd356
DS
13632007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1364
1365 * config/mingw32/proc.c: New file.
1366
b3172cab
UB
13672007-09-05 Uros Bizjak <ubizjak@gmail.com>
1368
1369 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1370 (main): Use __get_cpuid to get i386 target fetaures.
1371 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1372 (main): Use __get_cpuid to get x86_64 target fetaures.
1373
6da17392
JH
13742007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1375
1376 PR target/32765
1377 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1378 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1379
e1c82219
JJ
13802007-07-12 Jakub Jelinek <jakub@redhat.com>
1381
1382 PR fortran/32550
1383 * testsuite/libgomp.fortran/pr32550.f90: New test.
1384 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1385
12a27363
L
13862007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1387
1388 * aclocal.m4: Regenerated.
1389
5349080d
TB
13902007-07-05 Tobias Burnus <burnus@net-b.de>
1391
1392 PR fortran/32359
1393 * testsuite/libgomp.fortran/pr32359.f90: New.
1394
4f9c450c
JJ
13952007-07-02 Jakub Jelinek <jakub@redhat.com>
1396
1397 PR libgomp/32468
1398 * sections.c (GOMP_parallel_sections_start): Only decrease
1399 number of threads to COUNT if dyn_var is true.
1400 * testsuite/libgomp.c/pr32468.c: New test.
1401
28c67ed7
RO
14022007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1403
1404 PR libgomp/26308
1405 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1406
64964499
JJ
14072007-06-21 Jakub Jelinek <jakub@redhat.com>
1408
1409 PR middle-end/32362
1410 * testsuite/libgomp.c/pr32362-1.c: New test.
1411 * testsuite/libgomp.c/pr32362-2.c: New test.
1412 * testsuite/libgomp.c/pr32362-3.c: New test.
1413
46d8fbd1
JJ
14142007-06-07 Jakub Jelinek <jakub@redhat.com>
1415
1416 * team.c (gomp_team_start): Fix setting up thread_attr
1417 stack size.
1418
82a6cadf
PB
14192007-06-02 Paolo Bonzini <bonzini@gnu.org>
1420
1421 * configure: Regenerate.
1422
1cf3d07d
SE
14232007-05-23 Steve Ellcey <sje@cup.hp.com>
1424
1425 * Makefile.in: Regenerate.
1426 * configure: Regenerate.
1427 * aclocal.m4: Regenerate.
1428 * testsuite/Makefile.in: Regenerate.
1429
12aac30b
JJ
14302007-05-04 Jakub Jelinek <jakub@redhat.com>
1431
1432 * config/linux/proc.c: New file.
1433
f1028b02
JJ
1434 PR libgomp/28482
1435 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1436
06785a48
DF
14372007-04-19 Daniel Franke <franke.daniel@gmail.com>
1438
1439 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1440
b3b08ba0
MK
14412007-04-16 Matthias Klose <doko@debian.org>
1442
1443 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1444 flags if not building with -m64.
1445 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1446 flag for i?86-*-* targets, if current target matches -m64.
1447
6b2c5ce0
SE
14482007-04-14 Steve Ellcey <sje@cup.hp.com>
1449
1450 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1451 * Makefile.in: Regenerate.
1452
dd56fe7c
JDA
14532007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1454
1455 PR testsuite/31369
1456 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1457 ld_library_path.
1458 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1459
a0884cf0
JJ
14602007-04-04 Jakub Jelinek <jakub@redhat.com>
1461
1462 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1463 decls.
1464 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1465 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1466 (parse_affinity): New function.
1467 (initialize_env): Call it and gomp_init_affinity.
1468 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1469 create new pthread_attr_t and call gomp_init_thread_affinity
1470 on it for each thread before passing the attribute to pthread_create.
1471 * config/linux/affinity.c: New file.
1472 * config/posix/affinity.c: New file.
1473 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1474 * configure: Rebuilt.
1475 * config.h.in: Rebuilt.
1476 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1477 * Makefile.in: Rebuilt.
1478
1850744b
AT
14792007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1480
1481 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1482 *-*-darwin*.
1483 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1484 and use it if found.
1485
516f1ed8
UB
14862007-03-18 Uros Bizjak <ubizjak@gmail.com>
1487
1488 * testsuite/config/default.exp: New file.
1489 * testsuite/lib/libgomp.exp: New file.
1490 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1491 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1492 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1493 (libgomp_load): Remove.
1494 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1495 always_ld_library_path, not ld_library_path. Set additional_flags
1496 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1497 (target_compile): Do not call libgomp_init. Append lang_library_path
1498 and lang_link_flags to options.
1499 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1500 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1501 here.
1502 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1503 always_ld_library_path. Set LD_LIBRARY_PATH here.
1504 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1505 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1506 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1507 CX8 flag.
1508 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1509 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1510 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1511 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1512 * testsuite/libgomp.c/atomic-10.c: Ditto.
1513
2ada56f5
JJ
15142007-03-21 Jakub Jelinek <jakub@redhat.com>
1515
1516 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1517 dg-final cleanup-modules line.
1518 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1519 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1520 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1521 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1522 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1523 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1524 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1525
f210f1cd
AS
15262007-03-18 Andreas Schwab <schwab@suse.de>
1527
1528 * acinclude.m4: Adjust regular expression for ld version
1529 extraction.
1530 * configure: Regenerate.
1531
c4dc950d
BM
15322007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1533
1534 * Makefile.am: Add install-pdf target as copied from
1535 automake v1.10 rules.
1536 * Makefile.in: Regenerate
1537
e02a048f
JJ
15382007-02-07 Jakub Jelinek <jakub@redhat.com>
1539
78e075d4
JJ
1540 PR libgomp/28486
1541 * configure: Regenerate.
1542
e02a048f
JJ
1543 PR c++/30703
1544 * testsuite/libgomp.c++/pr30703.C: New test.
1545
60def7ed
JJ
15462007-02-02 Jakub Jelinek <jakub@redhat.com>
1547
1548 Revert:
1549 2006-07-05 Eric Christopher <echristo@apple.com>
1550 * configure.ac: Depend addition of -pthread on host OS.
1551 * configure: Regenerate.
1552
f1b0882e
RW
15532007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1554
1555 * libgomp.texi: Fix spacing after abbreviations.
1556
748b9d7c
DF
15572007-01-31 Daniel Franke <franke.daniel@gmail.com>
1558
1559 PR libgomp/30546
1560 * configure.ac: Add check for makeinfo
1561 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1562 if an appropiate version of makeinfo is found.
1563 * aclocal.m4: Regenerated.
1564 * configure: Regenerated.
1565 * Makefile.in: Regenerated.
1566 * testsuite/Makefile.in: Regenerated.
1567
14734fc7
DF
15682007-01-29 Daniel Franke <franke.daniel@gmail.com>
1569
1570 PR libgomp/30540
1571 * libgomp.texi: More about implementation-dependent settings.
1572
7befd5d2
TB
15732007-01-26 Tobias Burnus <burnus@net-b.de>
1574
1575 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1576
4288fea2
JJ
15772007-01-24 Jakub Jelinek <jakub@redhat.com>
1578
1579 PR middle-end/30494
1580 * testsuite/libgomp.c/pr30494.c: New test.
1581
627ab4b8
TT
15822007-01-15 Tom Tromey <tromey@redhat.com>
1583
1584 * configure: Rebuilt.
1585 * configure.ac: Fixed comment.
1586
7c2b7f45
DF
15872007-01-14 Daniel Franke <franke.daniel@gmail.com>
1588
1589 * libgomp.texi: Document implementation specific default values of
1590 environment variables.
1591
3721b9e1
DF
15922006-12-21 Daniel Franke <franke.daniel@gmail.com>
1593
1594 PR libgomp/28209
1595 * libgomp.texi: New file.
1596 * configure.ac: Add --enable-generated-files-in-srcdir option.
1597 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1598 files to srcdir.
1599 * Makefile.in: Regenerated.
1600 * config.h.in: Regenerated.
1601 * testsuite/Makefile.in: Regenerated.
1602 * NOTES: Removed.
1603
62bd6216
DF
16042006-12-04 Daniel Franke <franke.daniel@gmail.com>
1605
1606 PR libgomp/29949
1607 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1608
aad741f4
EB
16092006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1610
1611 * configure: Regenerate.
1612
22568cc6
JJ
16132006-12-04 Jakub Jelinek <jakub@redhat.com>
1614
1615 PR libgomp/29947
1616 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1617 start if there shouldn't be any loop iterations.
1618 (gomp_loop_ordered_static_start): Remove start == end test.
1619 * testsuite/libgomp.c/pr29947-1.c: New test.
1620 * testsuite/libgomp.c/pr29947-2.c: New test.
1621
a9690009
EB
16222006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1623
1624 * configure.tgt: Force initial-exec TLS model on Linux only.
1625
597c25e6
DJ
16262006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1627
1628 * configure: Regenerated.
1629
6acf0b38
UB
16302006-11-09 Uros Bizjak <ubizjak@gmail.com>
1631
1632 * env.c (parse_schedule): Reject out of range values.
1633 (parse_unsigned_long): Reject out of range, negative or zero values.
1634
a7a53ca5
JJ
16352006-10-29 Jakub Jelinek <jakub@redhat.com>
1636
1637 PR fortran/29629
1638 * testsuite/libgomp.fortran/pr29629.f90: New test.
1639
6d4d216a
EB
16402006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1641
1642 PR libgomp/29494
1643 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1644 * config/posix95: New directory.
1645 * config/posix95/omp-lock.h: New file.
1646 * config/posix95/lock.c: Likewise.
1647
5b043f08
GK
16482006-10-14 Geoffrey Keating <geoffk@apple.com>
1649
1650 * aclocal.m4: Regenerate.
1651 * configure: Regenerate.
1652
b50019f0
DS
16532006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1654
1655 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1656 '<' to '<='.
1657
8887708e
DS
16582006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1659
1660 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1661 test.
1662 * configure: Regenerate.
1663 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1664
9b9e4cd6
JJ
16652006-09-26 Jakub Jelinek <jakub@redhat.com>
1666
a70ad3bb
JJ
1667 PR middle-end/25261
1668 PR middle-end/28790
1669 * testsuite/libgomp.c/nestedfn-4.c: New test.
1670 * testsuite/libgomp.c/nestedfn-5.c: New test.
1671 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1672
9b9e4cd6
JJ
1673 PR fortran/29097
1674 * testsuite/libgomp.fortran/condinc1.f: New test.
1675 * testsuite/libgomp.fortran/condinc2.f: New test.
1676 * testsuite/libgomp.fortran/condinc3.f90: New test.
1677 * testsuite/libgomp.fortran/condinc4.f90: New test.
1678 * testsuite/libgomp.fortran/condinc1.inc: New file.
1679
2fb31455
TT
16802006-09-18 Tom Tromey <tromey@redhat.com>
1681
1682 * configure: Rebuilt.
1683
c663e301
JM
16842006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1685
1686 PR c/28768
1687 PR preprocessor/14634
1688 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1689 to AC_DEFINE.
1690 * configure: Regenerate.
1691
38371be9
SK
16922006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1693
1694 * testsuite/libgomp.fortran/reduction3.f90: Change
1695 -2147483648 to -huge(i)-1 to avoid overflow.
1696 * testsuite/libgomp.fortran/reduction4.f90: Change
1697 Z'ffffffff' to not(0) to avoid overflow.
1698
571d5ac5
JM
16992006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1700
1701 PR libgomp/25938
1702 * Makefile.am (libsubincludedir): New.
1703 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1704 * Makefile.in: Regenerate.
1705
89b3e3cd
JJ
17062006-08-17 Jakub Jelinek <jakub@redhat.com>
1707
1708 PR libgomp/28725
1709 * env.c: Include ctype.h.
1710 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1711 leading and/or trailing whitespace and compare strings case
1712 insensitively.
1713
742fae05
JJ
17142006-07-16 Jakub Jelinek <jakub@redhat.com>
1715
1716 PR fortran/28390
1717 * testsuite/libgomp.fortran/pr28390.f: New test.
1718
a1daed2d
EC
17192006-07-05 Eric Christopher <echristo@apple.com>
1720
1721 * configure.ac: Depend addition of -pthread on host OS.
1722 * configure: Regenerate.
1723
5d7b5199
JJ
17242006-06-21 Jakub Jelinek <jakub@redhat.com>
1725
1726 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1727 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1728 defined.
1729
fe5568e9
JJ
17302006-06-20 Jakub Jelinek <jakub@redhat.com>
1731
1732 PR libgomp/26175
1733 PR libgomp/26477
1734 * configure.ac: If neither --enable-linux-futex nor
1735 --disable-linux-futex is passed, determine the default by checking
1736 for compiling and/or running against NPTL. With --enable-linux-futex,
1737 check if SYS_gettid and SYS_futex are defined.
1738 * configure: Rebuilt.
1739
c3b11a40
RH
17402006-06-14 Richard Henderson <rth@redhat.com>
1741
1742 PR libgomp/28008
1743 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1744 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1745
d0d1b24d
RH
17462006-06-09 Richard Henderson <rth@redhat.com>
1747
1748 * env.c (gomp_nthreads_var): Change to unsigned long.
1749 (gomp_run_sched_chunk): Likewise.
1750 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1751 (initialize_env): Initialize gomp_thread_attr.
1752 * libgomp.h (gomp_nthreads_var): Update decl.
1753 (gomp_run_sched_chunk): Likewise.
1754 (gomp_thread_attr): Declare.
1755 * team.c (gomp_thread_attr): Export.
1756 (initialize_team): Don't initialize it.
1757
cd75853e
JJ
17582006-06-09 Jakub Jelinek <jakub@redhat.com>
1759
1760 PR fortran/27916
1761 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1762 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1763
33815e0c
FXC
17642006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1765
1766 * config/mingw32/time.c: New file.
1767 * configure.tgt: Use it.
1768
6667de0d
CD
17692006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1770
1771 * Makefile.am: Add install-html target. Add install-html to .PHONY
1772 * Makefile.in: Regenerate.
1773
e962c46b
JDA
17742006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1775
1776 PR libgomp/27612
1777 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1778 * testsuite/libgomp.c/critical-1.c: Likewise.
1779 * testsuite/libgomp.c/loop-1.c: Likewise.
1780 * testsuite/libgomp.c/loop-2.c: Likewise.
1781 * testsuite/libgomp.c/single-1.c: Likewise.
1782 * testsuite/libgomp.c/ordered-1.c: Likewise.
1783 * testsuite/libgomp.c/ordered-2.c: Likewise.
1784
eeb1d9e0
JJ
17852006-05-15 Jakub Jelinek <jakub@redhat.com>
1786
1787 PR middle-end/27416
1788 * libgomp.fortran/pr27416-1.f90: New test.
1789
693d710f
JJ
17902006-05-03 Jakub Jelinek <jakub@redhat.com>
1791
1792 PR fortran/27395
1793 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1794 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1795
8ca5b2a2
JJ
17962006-05-02 Jakub Jelinek <jakub@redhat.com>
1797
1798 PR c++/26943
1799 * testsuite/libgomp.c/pr26943-1.c: New test.
1800 * testsuite/libgomp.c/pr26943-2.c: New test.
1801 * testsuite/libgomp.c/pr26943-3.c: New test.
1802 * testsuite/libgomp.c/pr26943-4.c: New test.
1803 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1804 * testsuite/libgomp.c++/pr26943.C: New test.
1805
077b0dfb
JJ
18062006-05-02 Jakub Jelinek <jakub@redhat.com>
1807
1808 PR middle-end/27337
1809 * testsuite/libgomp.c++/pr27337.C: New test.
1810
91b6c26d
JJ
18112006-04-26 Jakub Jelinek <jakub@redhat.com>
1812
1813 PR c/26171
1814 * testsuite/libgomp.c/pr26171.c: New test.
1815
60e1758f
RH
18162006-04-25 Richard Henderson <rth@redhat.com>
1817
1818 PR libgomp/25865
1819 * configure.ac: Use GCC_CHECK_TLS.
1820 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1821 * Makefile.in, aclocal.m4, configure: Regenerate.
1822
615baed7
MK
18232006-04-10 Matthias Klose <doko@debian.org>
1824
1825 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1826 directory names containing underscores.
1827
fae2b46b
JJ
18282006-03-21 Jakub Jelinek <jakub@redhat.com>
1829
1830 PR c++/26691
1831 * testsuite/libgomp.c++/pr26691.C: New test.
1832
11a5f608
JJ
18332006-03-13 Jakub Jelinek <jakub@redhat.com>
1834
1835 * testsuite/libgomp.fortran/retval2.f90: New test.
1836
1799e5d5
RH
18372006-03-09 Diego Novillo <dnovillo@redhat.com>
1838
1839 * testsuite/libgomp.c++: New directory.
1840
d349482e
AT
18412006-02-25 Shantonu Sen <ssen@opendarwin.org>
1842
1843 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1844 * config/posix/sem.c: Implement the above.
1845
18462006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1847
1848 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1849 define HAVE_BROKEN_POSIX_SEMAPHORES.
1850 * configure: Rebuilt.
1851 * config.h.in: Rebuilt.
1852
124452c9
FXC
18532006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1854
1855 PR bootstrap/26161
1856 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1857 for the other pthread check.
1858 * configure: Regenerate.
1859 * config.h.in: Regenerate.
1860
dd8d6dfe
JJ
18612006-02-15 Jakub Jelinek <jakub@redhat.com>
1862
1863 PR libgomp/25938
1864 PR libgomp/25984
1865 * Makefile.am (fincludedir): New variable.
1866 (nodist_include_HEADERS): Remove Fortran files.
1867 (nodist_finclude_HEADERS): New variable.
1868 * Makefile.in: Regenerated.
1869
6c7a4dfd
JJ
18702006-02-13 Jakub Jelinek <jakub@redhat.com>
1871
1872 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1873 Remove tests for returning assumed character length arrays.
1874
5142e08b
RS
18752006-02-12 Roger Sayle <roger@eyesopen.com>
1876 John David Anglin <dave@hiauly1.hia.nrc.ca>
1877
1878 PR libgomp/25936
1879 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 1880
5821fba8
UW
18812006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1882
1883 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1884
cb2bbc67
EB
18852006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1886
1887 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1888 part of LD_LIBRARY_PATH manually.
1889
f05ee80c
L
18902006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1891
1892 PR libgomp/25852
1893 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1894 libgomp_init.
1895
03b8fe49
PB
18962005-01-25 Paolo Bonzini <bonzini@gnu.org>
1897
1898 PR libgomp/25884
f05ee80c
L
1899 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1900 * configure.ac (PERL): Don't set.
1901 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1902 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1903 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1904 * omp.h.in: Wrap the new configure substitutions with @ characters.
1905 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1906 * aclocal.m4, configure, Makefile.in: Regenerate.
1907 * mkomp_h.pl: Delete.
03b8fe49 1908
18cbfd85
PB
19092005-01-24 Paolo Bonzini <bonzini@gnu.org>
1910
1911 PR libgomp/25259
1912 * configure.ac: Use GCC_HEADER_STDINT.
1913 * libgomp.h: Include gstdint.h.
1914 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1915 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1916
c41303c6
RH
19172006-01-24 Richard Henderson <rth@redhat.com>
1918
1919 PR libgomp/25942
1920 * configure.ac: Add AM_MAINTAINER_MODE.
1921 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1922
149b9553
DN
19232006-01-24 Diego Novillo <dnovillo@redhat.com>
1924
1925 * Makefile.in: Regenerate.
1926 * testsuite/Makefile.in: Regenerate.
1927 * aclocal.m4: Regenerate.
1928
192a50ad
AT
19292006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1930
1931 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1932 Solaris.
1933 * configure.ac: Add check for loadavg.h.
1934 (link_gomp): Adjust comment.
1935 * configure: Regenerate.
1936 * config.h.in: Regenerate.
1937
a55b8e18
SE
19382006-01-21 Steve Ellcey <sje@cup.hp.com>
1939
1940 PR libgomp/25877
1941 * configure.ac: Remove check for alloca.h.
1942 * configure: Regenerate.
1943 * config.h.in: Regenerate.
1944 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1945 * team.c: Remove use of alloca.h.
1946 Call gomp_alloca instead of alloca.
1947
692eeb34
SE
19482006-01-20 Steve Ellcey <sje@cup.hp.com>
1949
1950 PR libgomp/25877
1951 * team.c: Add include of alloca.h.
1952 * configure.ac: Add check for alloca.h.
1953 * configure: Regenerate.
1954 * config.h.in: Regenerate.
1955
953ff289
DN
19562006-01-17 Jakub Jelinek <jakub@redhat.com>
1957
1958 PR fortran/25219
1959 * testsuite/libgomp.fortran/pr25219.f90: New test.
1960
19612005-12-05 Uros Bizjak <uros@kss-loka.si>
1962
1963 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1964 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1965 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1966 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1967 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1968 testsuite/libgomp.fortran/threadprivate1.f90,
1969 testsuite/libgomp.fortran/threadprivate2.f90,
1970 testsuite/libgomp.fortran/threadprivate3.f90,
1971 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1972 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1973 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1974 effective-target to TLS runtime.
1975
1976 * testsuite/libgomp.fortran/pr25162.f: Require
1977 effective-target TLS runtime.
1978
19792005-12-01 Jakub Jelinek <jakub@redhat.com>
1980
1981 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1982 * testsuite/libgomp.c/nestedfn-3.c: New test.
1983
19842005-11-30 Jakub Jelinek <jakub@redhat.com>
1985
1986 PR fortran/25162
1987 * testsuite/libgomp.fortran/pr25162.f: New test.
1988
19892005-11-28 Jakub Jelinek <jakub@redhat.com>
1990
1991 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1992 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1993
19942005-11-25 Jakub Jelinek <jakub@redhat.com>
1995
1996 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1997 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1998 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1999 single.c, team.c, work.c, config/linux/alpha/futex.h,
2000 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2001 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2002 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2003 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2004 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2005 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2006 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2007 FSF address.
2008
20092005-11-18 Jakub Jelinek <jakub@redhat.com>
2010
2011 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2012 to nodist_noinst_HEADERS.
2013 * Makefile.in: Rebuilt.
2014
2015 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2016 add integer count field.
2017 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2018 omp_nest_lock_t type change.
2019 (omp_init_nest_lock): Likewise. Initialize count to 0.
2020 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2021 Increment count.
2022 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2023 Decrement count.
2024 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2025 Increment count if successful and return the new nesting level.
2026 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2027 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2028 * testsuite/libgomp.c/lib-1.c: New test.
2029 * testsuite/libgomp.fortran/lib1.f90: New test.
2030 * testsuite/libgomp.fortran/lib2.f: New test.
2031 * testsuite/libgomp.fortran/lib3.f: New test.
2032
20332005-11-17 Richard Henderson <rth@redhat.com>
2034
2035 PR 24845
2036 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2037 * configure.ac (link_gomp): New. Substitute it.
2038 (AC_CONFIG_FILES): Add libgomp.spec.
2039 * libgomp.spec.in: New file.
2040 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2041 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2042
20432005-11-18 Jakub Jelinek <jakub@redhat.com>
2044
2045 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2046 reduction(-:var) behaving the same as reduction(+:var).
2047 * testsuite/libgomp.c/reduction-4.c: New test.
2048
20492005-11-15 Uros Bizjak <uros@kss-loka.si>
2050
2051 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2052 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2053 testsuite/libgomp.c/copyin-3.c,
2054 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2055 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2056 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2057 testsuite/libgomp.c++/pr24455.C,
2058 testsuite/libgomp.fortran/threadprivate1.f90,
2059 testsuite/libgomp.fortran/threadprivate2.f90,
2060 testsuite/libgomp.fortran/threadprivate3.f90,
2061 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2062 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2063 testsuite/libgomp.fortran/omp_parse3.f90: Require
2064 effective-target TLS.
2065
20662005-11-14 Diego Novillo <dnovillo@redhat.com>
2067
2068 * HEADER: Remove.
2069
20702005-11-13 Jakub Jelinek <jakub@redhat.com>
2071
2072 PR libgomp/24797
2073 * team.c (initialize_team): Pass NULL rather than free as
2074 pthread_key_create destructor. Initialize thread specific data
2075 pointer in initial thread to a static local variable rather than
2076 malloced memory.
2077
20782005-11-11 Uros Bizjak <uros@kss-loka.si>
2079
2080 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2081 its location to ld_library_path.
2082
20832005-11-10 Diego Novillo <dnovillo@redhat.com>
2084
2085 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2086
20872005-11-10 Diego Novillo <dnovillo@redhat.com>
2088
2089 * testsuite/libgomp.c: Rename from libgomp.dg.
2090
20912005-11-09 Diego Novillo <dnovillo@redhat.com>
2092
2093 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2094 threadprivate variable 'i'.
2095
20962005-11-09 Jakub Jelinek <jakub@redhat.com>
2097
2098 * config/linux/s390/futex.h: New file.
2099 * configure.tgt: Use it.
2100
2101 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2102 before the parallel.
2103
21042005-11-08 Jakub Jelinek <jakub@redhat.com>
2105
2106 PR c++/24734
2107 * testsuite/libgomp.c++/master-1.C: New test.
2108
21092005-11-07 Jakub Jelinek <jakub@redhat.com>
2110
2111 * testsuite/libgomp.dg/copyin-3.c: New test.
2112
21132005-11-07 Jakub Jelinek <jakub@redhat.com>
2114
2115 * testsuite/libgomp.fortran/retval1.f90: New test.
2116 * testsuite/libgomp.fortran/vla7.f90: New test.
2117
21182005-11-06 Jakub Jelinek <jakub@redhat.com>
2119
2120 * testsuite/libgomp.fortran/vla2.f90: New test.
2121 * testsuite/libgomp.fortran/vla3.f90: New test.
2122 * testsuite/libgomp.fortran/vla4.f90: New test.
2123 * testsuite/libgomp.fortran/vla5.f90: New test.
2124 * testsuite/libgomp.fortran/vla6.f90: New test.
2125
21262005-11-01 Jakub Jelinek <jakub@redhat.com>
2127
2128 * config/linux/sparc/futex.h: New file.
2129 * configure.tgt: Use it.
2130 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2131
2132 * critical.c: Include stdlib.h.
2133 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2134 ignoring return value.
2135 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2136 LIBGOMP_CHECK_SYNC_BUILTINS check.
2137 * configure: Rebuilt.
2138
21392005-10-31 Jakub Jelinek <jakub@redhat.com>
2140
2141 * testsuite/libgomp.fortran/vla1.f90: New test.
2142
21432005-10-31 Richard Henderson <rth@redhat.com>
2144
2145 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2146 setting 's' in different threads.
2147
21482005-10-31 Jakub Jelinek <jakub@redhat.com>
2149
2150 * libgomp.h (attribute_hidden, ialias): Define.
2151 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2152 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2153 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2154 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2155 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2156 omp_test_lock, omp_test_nest_lock): Likewise.
2157 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2158 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2159 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2160 omp_test_lock, omp_test_nest_lock): Likewise.
2161 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2162 omp_get_dynamic, omp_get_nested): Likewise.
2163 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2164 omp_get_thread_num, omp_in_parallel): Likewise.
2165 * fortran.c (ialias_redirect): Define.
2166 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2167 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2168 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2169 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2170 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2171 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2172 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2173 omp_get_wtime): Add ialias_redirect.
2174
21752005-10-30 Jakub Jelinek <jakub@redhat.com>
2176
2177 * fortran.c: Include stdlib.h.
2178
21792005-10-29 Jakub Jelinek <jakub@redhat.com>
2180
2181 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2182 * Makefile.in: Regenerated.
2183
21842005-10-28 Jakub Jelinek <jakub@redhat.com>
2185
2186 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2187 * libgomp_f.h.in (omp_check_defines): New function.
2188 * env.c: Include libgomp_f.h.
2189 (initialize_env): Call omp_check_defines.
2190
2191 * testsuite/libgomp.dg/copyin-2.c: New test.
2192 * testsuite/libgomp.c++/copyin-2.C: New test.
2193 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2194
2195 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2196 * testsuite/libgomp.fortran/sharing2.f90: New test.
2197
2198 * testsuite/libgomp.dg/copyin-1.c: New test.
2199 * testsuite/libgomp.c++/copyin-1.C: New test.
2200
22012005-10-26 Jakub Jelinek <jakub@redhat.com>
2202
2203 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2204
2205 * testsuite/libgomp.fortran/workshare1.f90: New test.
2206
2207 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2208 only test.
2209 * libgomp.fortran/sharing1.f90: New test.
2210
22112005-10-24 Jakub Jelinek <jakub@redhat.com>
2212
2213 PR c++/24502
2214 * testsuite/libgomp.c++/loop-7.C: New test.
2215
2216 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2217
2218 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2219 * testsuite/libgomp.fortran/reduction6.f90: New test.
2220 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2221
22222005-10-23 Richard Henderson <rth@redhat.com>
2223
2224 * testsuite/libgomp.c++/ctor-1.C: New.
2225 * testsuite/libgomp.c++/ctor-2.C: New.
2226 * testsuite/libgomp.c++/ctor-3.C: New.
2227 * testsuite/libgomp.c++/ctor-4.C: New.
2228 * testsuite/libgomp.c++/ctor-5.C: New.
2229 * testsuite/libgomp.c++/ctor-6.C: New.
2230 * testsuite/libgomp.c++/ctor-7.C: New.
2231 * testsuite/libgomp.c++/ctor-8.C: New.
2232 * testsuite/libgomp.c++/ctor-9.C: New.
2233
22342005-10-21 Diego Novillo <dnovillo@redhat.com>
2235
2236 PR 24455
2237 * testsuite/libgomp.c++/pr24455-1.C: New test.
2238 * testsuite/libgomp.c++/pr24455.C: New test.
2239 * testsuite/libgomp.dg/pr24455-1.c: New test.
2240 * testsuite/libgomp.dg/pr24455.c: New test.
2241
22422005-10-20 Richard Henderson <rth@redhat.com>
2243
2244 * testsuite/libgomp.c++/loop-6.C: New.
2245 * testsuite/libgomp.dg/loop-3.c: New.
2246
22472005-10-20 Jakub Jelinek <jakub@redhat.com>
2248
2249 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2250 explicitly private.
2251 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2252 explicitly shared.
2253
22542005-10-19 Diego Novillo <dnovillo@redhat.com>
2255
2256 * testsuite/libgomp.fortran/jacobi.f: New test.
2257
22582005-10-19 Richard Henderson <rth@redhat.com>
2259
2260 * configure.tgt (i?86-linux): Default to with_arch instead of
2261 CFLAGS. Add -mtune to match target_cpu.
2262 (x86_64-linux): Tune to i686.
2263
2264 * fortran.c (omp_test_nest_lock_): Fix typo.
2265
22662005-10-19 Jakub Jelinek <jakub@redhat.com>
2267
2268 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2269 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2270 * testsuite/libgomp.dg/ordered-3.c: New test.
2271
2272 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2273 Remove volatile keyword.
2274
2275 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2276 in COMMON block to avoid warnings on 64-bit targets.
2277
22782005-10-18 Diego Novillo <dnovillo@redhat.com>
2279
2280 * testsuite/libgomp.dg/shared-3.c: New test.
2281
22822005-10-18 Jakub Jelinek <jakub@redhat.com>
2283
2284 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2285 * testsuite/libgomp.fortran/reduction5.f90: New test.
2286
22872005-10-18 Jakub Jelinek <jakub@redhat.com>
2288
2289 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2290 dg-options.
2291 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2292 flush loop now that __sync_synchronize has proper memory barrier.
2293 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2294 Add -ffixed-form to dg-options.
2295
22962005-10-17 Diego Novillo <dnovillo@redhat.com>
2297
2298 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2299 from subdirectories.
2300 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2301 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2302 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2303 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2304 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2305 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2306 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2307 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2308 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2309 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2310 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2311 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2312 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2313 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2314 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2315 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2316 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2317 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2318 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2319 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2320 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2321 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2322 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2323 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2324 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2325
23262005-10-17 Jakub Jelinek <jakub@redhat.com>
2327
2328 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2329 lang_library_path exists. Use find instead of glob to gather tests.
2330 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2331
23322005-10-17 Diego Novillo <dnovillo@redhat.com>
2333
2334 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2335 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2336 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2337 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2338 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2339 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2340 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2341 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2342 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2343 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2344 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2345 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2346 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2347
23482005-10-15 Jakub Jelinek <jakub@redhat.com>
2349
2350 * testsuite/libgomp.dg/vla-1.c: New test.
2351
2352 * testsuite/libgomp.fortran/reference2.f90: New test.
2353
2354 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2355 declaration of omp_get_thread_num.
2356 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2357 use omp_lib.
2358
2359 * testsuite/libgomp.fortran/reduction1.f90: New test.
2360 * testsuite/libgomp.fortran/reduction2.f90: New test.
2361 * testsuite/libgomp.fortran/reduction3.f90: New test.
2362 * testsuite/libgomp.fortran/reduction4.f90: New test.
2363
23642005-10-13 Richard Henderson <rth@redhat.com>
2365
2366 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2367 * Makefile.in: Regenerate.
2368 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2369 * libgomp.h: Include bar.h.
2370 (struct gomp_barrier): Remove.
2371 (struct gomp_team): Add barrier. Replace master_barrier with
2372 master_release. Replace threads with ordered_release.
2373 (struct gomp_thread): Replace barrier with release.
2374 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2375 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2376 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2377 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2378 (GOMP_single_copy_end): Likewise.
2379 * team.c (gomp_threads_dock): New.
2380 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2381 (gomp_thread_start): Use gomp_barrier_wait.
2382 (new_team, free_team): Update for gomp_team changes.
2383 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2384 (gomp_team_end): Use gomp_barrier_wait.
2385 (initialize_team): Update for gomp_thread changes.
2386 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2387 (gomp_work_share_end_nowait): Use atomic ops when available.
2388 * config/linux/bar.c, config/linux/bar.h: New files.
2389 * config/posix/bar.c, config/posix/bar.h: New files.
2390
23912005-10-13 Jakub Jelinek <jakub@redhat.com>
2392
2393 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2394 * testsuite/libgomp.dg/single-2.c: New test.
2395
2396 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2397 lang_link_flags): Unset, so that they aren't inherited from previously
2398 sourced *.exp.
2399
2400 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2401
24022005-10-12 Richard Henderson <rth@redhat.com>
2403
2404 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2405 (libgomp_init): Use lang_test_file, lang_library_path, and
2406 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2407
2408 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2409 (lang_test_file, lang_link_flags): New.
2410 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2411
2412 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2413 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2414 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2415 testsuite/libgomp.c++/parallel-1.C,
2416 testsuite/libgomp.c++/reduction-1.C,
2417 testsuite/libgomp.c++/reduction-2.C,
2418 testsuite/libgomp.c++/reduction-3.C,
2419 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2420 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2421 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2422 New files, largely cribbed from the C testsuite.
2423
24242005-10-12 Jakub Jelinek <jakub@redhat.com>
2425
2426 * testsuite/libgomp.fortran/character1.f90: New test.
2427 * testsuite/libgomp.fortran/character2.f90: New test.
2428
2429 * testsuite/libgomp.dg/nested-1.c: New test.
2430 * testsuite/libgomp.dg/nested-2.c: New test.
2431 * testsuite/libgomp.fortran/do1.f90: New test.
2432 * testsuite/libgomp.fortran/do2.f90: New test.
2433
2434 * testsuite/libgomp.fortran/reference1.f90: New test.
2435
24362005-10-11 Jakub Jelinek <jakub@redhat.com>
2437
2438 * testsuite/libgomp.dg/reduction-1.c: New test.
2439 * testsuite/libgomp.dg/reduction-2.c: New test.
2440 * testsuite/libgomp.dg/reduction-3.c: New test.
2441
24422005-10-10 Jakub Jelinek <jakub@redhat.com>
2443
2444 * testsuite/libgomp.dg/atomic-1.c: New test.
2445 * testsuite/libgomp.dg/atomic-2.c: New test.
2446
24472005-10-09 Richard Henderson <rth@redhat.com>
2448
2449 * critical.c (atomic_lock): New.
2450 (initialize_critical): Initialize it.
2451 (GOMP_atomic_start, GOMP_atomic_end): New.
2452 * libgomp.map: Export them.
2453 * libgomp_g.h: Declare them.
2454
2455 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2456
24572005-10-02 Richard Henderson <rth@redhat.com>
2458
2459 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2460 to XCFLAGS instead of CFLAGS.
2461
24622005-09-30 Richard Henderson <rth@redhat.com>
2463
2464 * configure.ac: Determine whether -pthread or -lpthread is needed.
2465 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2466 * Makefine.in, configure: Rebuild.
2467
24682005-09-28 Richard Henderson <rth@redhat.com>
2469
2470 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2471 * testsuite/libgomp.dg/omp-single-3.c: New test.
2472
24732005-09-28 Diego Novillo <dnovillo@redhat.com>
2474
2475 * testsuite/libgomp.dg/omp-single-2.c: New test.
2476 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2477
24782005-09-27 Richard Henderson <rth@redhat.com>
2479
2480 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2481 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2482
24832005-09-27 Jakub Jelinek <jakub@redhat.com>
2484
2485 * testsuite/libgomp.dg/omp-loop03.c: New test.
2486
24872005-09-27 Diego Novillo <dnovillo@redhat.com>
2488
2489 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2490
24912005-09-27 Diego Novillo <dnovillo@redhat.com>
2492
2493 * testsuite/libgomp.dg/omp-single-1.c: New test.
2494 * testsuite/libgomp.dg/shared-1.c: Return 0.
2495 Add prototype for abort.
2496 * testsuite/libgomp.dg/shared-2.c: Likewise.
2497
24982005-09-26 Jakub Jelinek <jakub@redhat.com>
2499
2500 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2501 constructs.
2502
25032005-09-26 Diego Novillo <dnovillo@redhat.com>
2504
2505 * testsuite/libgomp.dg/shared-1.c: New test.
2506 * testsuite/libgomp.dg/shared-2.c: New test.
2507
25082005-09-24 Richard Henderson <rth@redhat.com>
2509
2510 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2511
25122005-09-24 Richard Henderson <rth@redhat.com>
2513
2514 * iter.c (gomp_iter_static_next): Round up when computing number
2515 of iterations. Don't bother distributing a remainder equally.
2516
2517 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2518 Don't call srand. Zero b before testing.
2519 (main): New.
2520
25212005-09-24 Jakub Jelinek <jakub@redhat.com>
2522
2523 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2524 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2525
25262005-09-23 Jakub Jelinek <jakub@redhat.com>
2527
2528 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2529 without !$omp end do, followed immediately by subroutine end.
2530
25312005-09-23 Diego Novillo <dnovillo@redhat.com>
2532
2533 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2534
25352005-09-22 Richard Henderson <rth@redhat.com>
2536
2537 * critical.c (GOMP_critical_name_start): Change argument to void**.
2538 Reuse the pointer space if the mutex fits.
2539 (GOMP_critical_name_end): Likewise.
2540 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2541 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2542 (GOMP_critical_name_end): Likewise.
2543 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2544 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2545
25462005-09-20 Richard Henderson <rth@redhat.com>
2547
2548 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2549 (create_lock_lock): New.
2550 (initialize_critical): Initialize it.
2551 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2552 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2553
25542005-09-20 Diego Novillo <dnovillo@redhat.com>
2555
2556 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2557
25582005-09-20 Diego Novillo <dnovillo@redhat.com>
2559
2560 * testsuite/libgomp.dg/omp-loop01.c: New test.
2561 * testsuite/libgomp.dg/omp-loop02.c: New test.
2562
25632005-09-20 Jakub Jelinek <jakub@redhat.com>
2564
2565 * configure.ac (AC_PROG_FC): Add.
2566 (USE_FORTRAN): New automake conditional.
2567 * configure: Rebuilt.
2568 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2569 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2570 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2571 Add rules to build them.
2572 * Makefile.in: Rebuilt.
2573 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2574 OMP_NEST_LOCK_KIND.
2575 * libgomp.map: Add Fortran wrappers.
2576 * libgomp_f.h.in: New file.
2577 * omp_lib.h.in: New file.
2578 * omp_lib.f90.in: New file.
2579 * fortran.c: New file.
2580 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2581 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2582 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2583 libgfortran has been built.
2584 * testsuite/libgomp.fortran/fortran.exp: New file.
2585 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2586 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2587 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2588 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2589 * testsuite/libgomp.fortran/omp_hello.f: New test.
2590 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2591 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2592 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2593 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2594 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2595 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2596 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2597 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2598
25992005-08-30 Richard Henderson <rth@redhat.com>
2600
2601 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2602 function for when aliases are not usable.
2603 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2604 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2605 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2606 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2607 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2608 GOMP_loop_ordered_guided_next): Likewise.
2609 * ordered.c (GOMP_ordered_start): Likewise.
2610
26112005-08-01 Diego Novillo <dnovillo@redhat.com>
2612
2613 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2614 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2615 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2616 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2617 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2618 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2619 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2620 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2621 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2622
26232005-07-07 Eric Christopher <echristo@redhat.com>
2624 Diego Novillo <dnovillo@redhat.com>
2625
2626 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2627 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2628 up code.
2629 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2630 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2631 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2632 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2633 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2634 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2635 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2636
26372005-06-13 Diego Novillo <dnovillo@redhat.com>
2638
2639 * TOPLEVEL.patch: Remove.
2640
26412005-05-16 Richard Henderson <rth@redhat.com>
2642
2643 * configure.ac: Test for clock_gettime.
2644 * config.h.in, configure: Rebuild.
2645 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2646 (omp_get_wtime): Use clock_gettime if available.
2647 (omp_get_wtick): Use clock_getres if available.
2648
26492005-05-11 Richard Henderson <rth@redhat.com>
2650
2651 * config/linux/ia64/futex.h: New file.
2652 * configure.tgt: Use it.
2653
2654 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2655
26562005-05-07 Richard Henderson <rth@redhat.com>
2657
2658 * config/linux/powerpc/futex.h: New file.
2659 * configure.tgt: Use it.
2660
2661 * config/linux/i486/futex.h: Merge ...
2662 * config/linux/x86_64/futex.h: ... into ...
2663 * config/linux/x86/futex.h: ... here.
2664 * configure.tgt: Update to match.
2665
26662005-05-06 Richard Henderson <rth@redhat.com>
2667
2668 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2669 * config/linux/i486/futex.h: Likewise.
2670 * config/linux/x86_64/futex.h: Likewise.
2671
2672 * config/linux/lock.c: New file.
2673 * config/linux/omp-lock.h: New file.
2674
2675 * critical.c, env.h: Don't include omp.h
2676 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2677 * config/posix/time.c: Likewise.
2678 * config/posix/omp-lock.h: New file.
2679 * libgomp.h: Include omp-lock.h and omp.h.
2680 * Makefile.am (nodist_include_HEADERS): New.
2681 (omp.h): New rule.
2682 * configure.ac (PERL): New.
2683 * mkomp_h.pl: New file.
2684 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2685 with templates.
2686 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2687
2688 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2689 build directory. Re-add -march=i486 hack.
2690
2691 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2692 (libgomp_link_flags): Remove.
2693 (libgomp_initialized): Remove.
2694 (libgomp_init): Don't protect from reinitialization. Copy code
2695 from libstdc++ for getting the multilib set correctly.
2696
26972005-05-05 Richard Henderson <rth@redhat.com>
2698
2699 * config/linux/alpha/futex.h: New file.
2700 * configure.tgt (alpha*-*-linux*): Use it.
2701
2702 * config/posix/mutex.c: New file.
2703 * config/posix/sem.c: Use libgomp.h.
2704
2705 * configure.tgt (x86_64-linux): Also test CC for -m32.
2706 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2707
a1daed2d 2708 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
2709 after $gccpath.
2710
2711 * Makefile.am (SUBDIRS): New.
2712 (libgomp_la_LDFLAGS): Add -lpthread.
2713 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2714 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2715
2716 * libgomp_g.h: New file.
2717 * libgomp.h: Split out all public declarations to libgomp_g.h.
2718 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2719 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2720 * config/linux/sem.h: Likewise.
2721 * config/posix/sem.h: Likewise.
2722
2723 * Makefile.am (AM_LDFLAGS): New.
2724 (libgomp_version_script): Split out from ...
2725 (libgomp_la_LDFLAGS): ... here.
2726 (libgomp_version_info): New.
2727 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2728 (LIBGOMP_ENABLE): New.
2729 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2730 (LIBGOMP_ENABLE_SYMVERS): New.
2731 * configure.ac (AC_INIT): Version 1.0.
2732 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2733 (enable-linux-futex): Likewise. Rename from enable-futex.
2734 (libtool_VERSION): New.
2735 (LIBGOMP_ENABLE_SYMVERS): Use it.
2736 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2737 * Makefile.in, aclocal.m4, configure: Rebuild.
2738
2739 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2740 (gomp_mutex_unlock_slow): Fix typo.
2741 * config/linux/sem.c: Similarly.
2742 (gomp_sem_post_slow): Fix typo.
2743 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2744 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2745 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2746
2747 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2748 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2749 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2750 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2751 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2752 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2753 LDFLAGS. Pull enable_futex check to top-level.
2754 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2755 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2756
2757 First attempt at real configury.
2758 * Makefile, config.h: Remove file.
2759 * Makefile.am, Makefile.in: New file.
2760 * acinclude.m4 aclocal.m4: New file.
2761 * configure.ac, configure.tgt, configure: New file.
2762
2763 * config/posix/lock.c: Rename from sys-lock.c.
2764 * config/posix/mutex.h: Rename from sys-mutex.h.
2765 * config/posix/sem.c: Rename from sys-sem.c.
2766 * config/posix/sem.h: Rename from sys-sem.h.
2767 * config/posix/proc.c: Rename from sys-proc.c.
2768 * config/posix/time.c: Rename from sys-proc.c.
2769
2770 * config/linux/mutex.c: New file.
2771 * config/linux/mutex.h: New file.
2772 * config/linux/sem.c: New file.
2773 * config/linux/sem.h: New file.
2774 * config/linux/i486/futex.h: New file.
2775 * config/linux/x86_64/futex.h: New file.
2776
27772005-05-04 Richard Henderson <rth@redhat.com>
2778
2779 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2780 * libgomp.h: Declare them.
2781 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2782 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2783
27842005-05-04 Richard Henderson <rth@redhat.com>
2785
2786 * libgomp-1 code drop
2787
27882005-05-04 Richard Henderson <rth@redhat.com>
2789
2790 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2791 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2792 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2793 (gomp_iter_static_next): Update.
2794 (gomp_ordered_static_next): Update.
2795 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2796 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2797 totally empty range.
2798 (gomp_loop_ordered_static_next): Refine test for calling
2799 gomp_ordered_static_next.
2800 * testsuite/ordered-1.c: Add case for more threads than iterations.
2801
2802 * iter.c (gomp_iter_runtime_next_locked): Remove.
2803 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 2804 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
2805 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2806 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2807 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2808 gomp_loop_ordered_guided_next): Downcase name, make static, add
2809 an external alias with the old name.
2810 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2811 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2812 switch and call one of the above static functions.
2813 * libgomp.h: Update.
2814
2815 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2816 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2817 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2818 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2819 GOMP_loop_ordered_guided_start): Update to match.
2820 * sections.c (GOMP_sections_start): Likewise.
2821 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2822
2823 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2824 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2825 Use bounds check instead of modulus.
2826 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2827 (gomp_ordered_last): Don't sync with ordered_owner here.
2828 (gomp_ordered_next): Likewise.
2829 (gomp_ordered_static_loop_next): Likewise.
2830 * loop.c, libgomp.h: Update to match.
2831
2832 * libgomp.h (GOMP_barrier): Declare.
2833
2834 * testsuite/barrier-1.c: New file.
2835 * testsuite/critical-1.c: New file.
2836 * testsuite/ordered-2.c: New file.
2837 * testsuite/ordered-1.c: New file.
2838 * testsuite/sections-1.c: New file.
2839 * testsuite/single-1.c: New file.
2840 * testsuite/Makefile (TESTS): Add them.
2841
28422005-05-04 Richard Henderson <rth@redhat.com>
2843
2844 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2845 * loop.c (GOMP_loop_static_start): If not the startup thread,
2846 acquire the mutex to wait for initialization complete.
2847 (GOMP_loop_ordered_static_start): Likewise.
2848 (GOMP_loop_ordered_runtime_start): Likewise.
2849 (GOMP_loop_ordered_static_first): Remove.
2850 (GOMP_loop_ordered_dynamic_first): Remove.
2851 (GOMP_loop_ordered_guided_first): Remove.
2852 (GOMP_loop_ordered_runtime_first): Remove.
2853 * ordered.c (gomp_ordered_loop_first): Post to own release when
2854 we're the first thread.
2855 (gomp_ordered_loop_last): Wait on release if not owner.
2856 (gomp_ordered_loop_next): Likewise.
2857 (gomp_ordered_static_loop_init): New.
2858 (gomp_ordered_static_loop_next): Use ordered_owner.
2859 (GOMP_ordered_start): Likewise.
2860 * work.c (gomp_new_work_share): Initialize ordered_owner.
2861
28622005-05-03 Richard Henderson <rth@redhat.com>
2863
2864 * Makefile (OPT): New.
2865 (CFLAGS): Use it.
2866
2867 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2868 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2869 * libgomp.h, libgomp.map, NOTES: Update to match.
2870
2871 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2872 Add initialized and thr members.
2873 (gomp_thread_start): Pause when initially spawned to wait for
2874 the whole team to be created.
2875 (gomp_team_start): Release team members at the end.
2876
2877 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2878 (f_foo_1): Use GOMP_loop_end.
2879 (f_foo_2): Use GOMP_loop_end_nowait.
2880
2881 * testsuite/loop-2.c: New file.
2882 * testsuite/Makefile (TESTS): Add it.
2883
28842005-05-03 Richard Henderson <rth@redhat.com>
2885
2886 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2887 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2888 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2889 initial work_share.
2890
2891 * testsuite/Makefile: New file.
2892 * testsuite/loop-1.c: New file.
2893
28942005-05-03 Richard Henderson <rth@redhat.com>
2895
2896 Initial implementation and checkin.