]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
stdint.m4 (GCC_HEADER_STDINT): Don't typedef uint8_t etc.
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
b9497ab5
RO
12010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * configure: Regenerate.
4
45de5648
L
52010-01-04 H.J. Lu <hongjiu.lu@intel.com>
6
7 PR libgomp/42602
8 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
9
e74003a1
RG
102010-01-03 Richard Guenther <rguenther@suse.de>
11
12 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13
1b3abda8
SP
142009-12-23 Sebastian Pop <sebpop@gmail.com>
15
16 * testsuite/libgomp.graphite/pr4118.c: New.
17
e19977d3
IS
182009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
19
20 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
21 for darwin, protect the test with require-effective-target tls_runtime.
22 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
23
1d32a772
IS
242009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
25
26 PR target/41605
27 * testsuite/lib/libgomp.exp: Provide -B options to allow for
28 link spec %s substitutions for static libraries.
29
deb109b2
JH
302009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
31
32 PR testsuite/42135
33 * libgomp.graphite/force-parallel-2.c: Reduce array size.
34
43e02a8a
RW
352009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36
37 * Makefile.in: Regenerate.
38 * configure: Regenerate.
39 * testsuite/Makefile.in: Regenerate.
40
17f35e23
DK
412009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
42
43 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
44 settings for LC_ALL and LANG.
45
281e33e1
JJ
462009-11-25 Jakub Jelinek <jakub@redhat.com>
47
48 PR fortran/42162
49 * testsuite/libgomp.fortran/pr42162.f90: New test.
50
2b32c27d
JJ
512009-11-13 Jakub Jelinek <jakub@redhat.com>
52
53 PR middle-end/42029
281e33e1 54 * testsuite/libgomp.c/pr42029.c: New test.
2b32c27d 55
89c74f4a
JJ
562009-10-26 Jakub Jelinek <jakub@redhat.com>
57
58 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
59 *s. Accept ld version without text in ()s.
60 * configure: Regenerated.
61
7e06c3d6
EB
622009-10-22 Razya Ladelsky <razya@il.ibm.com>
63
64 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
65
0046b1a7
RW
662009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67
68 PR libgomp/41418
69 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
70 or a hyphen (happens with fortran language disabled).
71 * configure: Regenerate.
72
c82852f7
RW
732009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74
75 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
76 use sed script portable to Solaris /bin/sed for extracting ld
77 version.
78 * configure: Regenerate.
79
98f3eb1f
AM
802009-09-17 Alexander Monakov <amonakov@ispras.ru>
81
82 * testsuite/libgomp.graphite/bounds.c: New test.
83
878f62e5
RW
842009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
85
86 * Makefile.am (libgomp_la_LINK): New.
87 * Makefile.in: Regenerate.
88
df58e648
RW
892009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
90
91 * configure.ac (AC_PREREQ): Bump to 2.64.
92
5213506e
RW
932009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94
70fa0efa
RW
95 * Makefile.am (install-html, install-pdf): Remove.
96 * Makefile.in: Regenerate.
97
5213506e
RW
98 * Makefile.in: Regenerate.
99 * aclocal.m4: Regenerate.
100 * config.h.in: Regenerate.
101 * configure: Regenerate.
102 * testsuite/Makefile.in: Regenerate.
103
84fec8a5
RW
1042009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
105
106 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
107 * Makefile.in: Regenerate.
108
197c68cc
DK
1092009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
110
111 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
112 * Makefile.in: Regenerate.
113
693d54f2
TB
1142009-08-19 Tobias Burnus <burnus@net-b.de>
115
116 PR fortran/41102
117 omp_lib.h.in: Fix -std=f95 errors.
118
119
8cac884c
DE
1202009-08-14 David Edelsohn <edelsohn@gnu.org>
121
122 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
123 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
124 * testsuite/libgomp.graphite/graphite.exp: New.
125
78729ee2
AT
1262009-08-05 Andreas Tobler <a.tobler@schweiz.org>
127
128 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
129 only build.
130
b13b7f39
DD
1312009-08-04 David Daney <ddaney@caviumnetworks.com>
132
133 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
134 needed memory barrier semantics.
135 * config/linux/mips/mutex.h: New file.
136
1b3b24c2
RW
1372009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
138
139 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
140
396b7fa4
JM
1412009-07-16 Joseph Myers <joseph@codesourcery.com>
142
143 * configure: Regenerate.
144
33cde516
RS
1452009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
146
147 PR testsuite/40699
148 PR testsuite/40707
149 PR testsuite/40709
150 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
151 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
152 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
153
bc21bfa5
RS
1542009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
155
156 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
157 options when choosing a multilib.
158
b30bfd40
RS
1592009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
160
161 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
162 ld_library_path. Use add_path. Add just find_libgcc_s to
163 ld_library_path, not every libgcc multilib directory.
164 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
165 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
166 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
167 Use add_path.
168 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
169
479c15c2
NF
1702009-06-09 Nathan Froyd <froydnj@codesourcery.com>
171
172 * Makefile.am (LTLDFLAGS): Define.
173 (LINK): Define.
174 * Makefile.in: Regenerate.
175
667e6f89
JB
1762009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
177
178 PR fortran/39718
179 * testsuite/libgomp.fortran/fortran.exp: Don't link with
180 libgfortranbegin, check existence of libgfortran.a instead of
181 libgfortranbegin.a.
182
6dea8e99
JJ
1832009-05-20 Jakub Jelinek <jakub@redhat.com>
184
185 PR libgomp/40174
186 * team.c (gomp_thread_start): Destroy thr->release semaphore.
187 (gomp_free_pool_helper): Likewise.
188
34d01e1d
VL
1892009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
190 Jakub Jelinek <jakub@redhat.com>
191
192 PR fortran/35423
193 * testsuite/libgomp.fortran/workshare2.f90: New test.
194
748086b7
JJ
1952009-04-09 Nick Clifton <nickc@redhat.com>
196
197 * iter.c: Change copyright header to refer to version 3 of the
198 GNU General Public License with version 3.1 of the GCC Runtime
199 Library Exception and to point readers at the COPYING3 and
200 COPYING3.RUNTIME files and the FSF's license web page.
201 * alloc.c: Likewise.
202 * barrier.c: Likewise.
203 * config/bsd/proc.c: Likewise.
204 * config/linux/affinity.c: Likewise.
205 * config/linux/alpha/futex.h: Likewise.
206 * config/linux/bar.c: Likewise.
207 * config/linux/bar.h: Likewise.
208 * config/linux/ia64/futex.h: Likewise.
209 * config/linux/ia64/mutex.h: Likewise.
210 * config/linux/lock.c: Likewise.
211 * config/linux/mips/futex.h: Likewise.
212 * config/linux/mutex.c: Likewise.
213 * config/linux/mutex.h: Likewise.
214 * config/linux/powerpc/futex.h: Likewise.
215 * config/linux/proc.c: Likewise.
216 * config/linux/ptrlock.c: Likewise.
217 * config/linux/ptrlock.h: Likewise.
218 * config/linux/s390/futex.h: Likewise.
219 * config/linux/sem.c: Likewise.
220 * config/linux/sem.h: Likewise.
221 * config/linux/sparc/futex.h: Likewise.
222 * config/linux/wait.h: Likewise.
223 * config/linux/x86/futex.h: Likewise.
224 * config/mingw32/proc.c: Likewise.
225 * config/mingw32/time.c: Likewise.
226 * config/posix/affinity.c: Likewise.
227 * config/posix/bar.c: Likewise.
228 * config/posix/bar.h: Likewise.
229 * config/posix/lock.c: Likewise.
230 * config/posix/mutex.h: Likewise.
231 * config/posix/proc.c: Likewise.
232 * config/posix/ptrlock.h: Likewise.
233 * config/posix/sem.c: Likewise.
234 * config/posix/sem.h: Likewise.
235 * config/posix/time.c: Likewise.
236 * config/posix95/lock.c: Likewise.
237 * critical.c: Likewise.
238 * env.c: Likewise.
239 * error.c: Likewise.
240 * fortran.c: Likewise.
241 * iter_ull.c: Likewise.
242 * libgomp.h: Likewise.
243 * libgomp_f.h.in: Likewise.
244 * libgomp_g.h: Likewise.
245 * loop.c: Likewise.
246 * loop_ull.c: Likewise.
247 * omp.h.in: Likewise.
248 * omp_lib.f90.in: Likewise.
249 * omp_lib.h.in: Likewise.
250 * ordered.c: Likewise.
251 * parallel.c: Likewise.
252 * sections.c: Likewise.
253 * single.c: Likewise.
254 * task.c: Likewise.
255 * team.c: Likewise.
256 * work.c: Likewise.
257
2582009-04-09 Jakub Jelinek <jakub@redhat.com>
259
260 * testsuite/config/default.exp: Change copyright header to refer to
261 version 3 of the GNU General Public License and to point readers
262 at the COPYING3 file and the FSF's license web page.
263
4f0ae266
JJ
2642009-04-08 Jakub Jelinek <jakub@redhat.com>
265
266 PR middle-end/39573
267 * libgomp.c++/pr39573.C: New test.
268
03742a9b
JJ
2692009-04-01 Jakub Jelinek <jakub@redhat.com>
270
271 PR other/39591
272 * testsuite/libgomp.c/pr39591-1.c: New test.
273 * testsuite/libgomp.c/pr39591-2.c: New test.
274 * testsuite/libgomp.c/pr39591-3.c: New test.
275
e50ea10b
UB
2762009-03-25 Uros Bizjak <ubizjak@gmail.com>
277
278 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
279 * testsuite/libgomp.c/atomic-6.c: Ditto.
280
c5cdb03f
JJ
2812009-03-23 Jakub Jelinek <jakub@redhat.com>
282
283 PR c/39495
284 * testsuite/libgomp.c/loop-12.c: New test.
285 * testsuite/libgomp.c/loop-11.c: New test.
286 * testsuite/libgomp.c++/loop-11.C: New test.
287 * testsuite/libgomp.c++/loop-12.C: New test.
288 * testsuite/libgomp.c++/for-8.C: New test.
289
7a9d3fe8
RW
2902009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
291
292 * configure: Regenerate.
293
3ad6b266
JJ
2942009-02-11 Jakub Jelinek <jakub@redhat.com>
295
296 PR middle-end/39154
297 * testsuite/libgomp.c/pr39154.c: New test.
298
b39dea08
ILT
2992009-01-30 Ian Lance Taylor <iant@google.com>
300
301 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
302 libgomp_ld_is_gold. Get gold version number.
303 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
304 * configure: Rebuild.
305
72c66596
IS
3062009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
307
e50ea10b 308 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
309 use libgfortran.a%s in their specs.
310
876080ff
JJ
3112009-01-07 Jakub Jelinek <jakub@redhat.com>
312
313 PR libgomp/38086
314 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
315 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
316 HAVE_AS_SYMVER_DIRECTIVE is not defined.
317 * configure: Regenerated.
318 * config.h.in: Likewise.
319
e4ebaef3
JJ
3202008-12-28 Jakub Jelinek <jakub@redhat.com>
321
322 PR c++/38650
323 * testsuite/libgomp.c/pr38650.c: New test.
324 * testsuite/libgomp.c++/pr38650.C: New test.
325
382017a6
JJ
3262008-12-27 Jakub Jelinek <jakub@redhat.com>
327
328 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
329
79644b27
UB
3302008-12-26 Uros Bizjak <ubizjak@gmail.com>
331
332 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
333
baafc534
RW
3342008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
335
336 * configure: Regenerate.
337
d9c194cb
JJ
3382008-12-08 Jakub Jelinek <jakub@redhat.com>
339
340 PR middle-end/36802
341 * testsuite/libgomp.c/pr36802-1.c: New test.
342 * testsuite/libgomp.c/pr36802-2.c: New test.
343 * testsuite/libgomp.c/pr36802-3.c: New test.
344
86a182bf
JJ
3452008-12-01 Janis Johnson <janis187@us.ibm.com>
346
347 PR libgomp/38270
348 * config/linux/powerpc/mutex.h: New.
349
956adfaf
JJ
3502008-12-01 Jakub Jelinek <jakub@redhat.com>
351
a2d4cdc9
JJ
352 PR c++/38257
353 * testsuite/libgomp.c++/for-7.C: New test.
354
956adfaf
JJ
355 PR c++/38348
356 * testsuite/libgomp.c++/for-6.C: New test.
357
d4038ca2
JJ
3582008-11-26 Janis Johnson <janis187@us.ibm.com>
359
360 PR testsuite/28870
361 * testsuite/lib/libgomp.exp: Include new timeout library files.
362 (libgomp_target_compile): Set timeout value from new proc.
363
8b159eea
SE
3642008-11-13 Steve Ellcey <sje@cup.hp.com>
365
366 PR libgomp/37938
367 * config/linux/ia64/mutex.h: New.
368
5c6ed53a
TB
3692008-11-04 Tobias Burnus <burnus@net-b.de>
370
371 PR libgomp/37935
372 * libgomp.texi (Runtime library routines, environment variables):
373 Update for OpenMP version 3.0.
374
6b4a97ed
PG
3752008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
376 Steve Ellcey <sje@cup.hp.com>
377
378 * configure: Regenerate for new libtool.
379 * Makefile.in: Ditto.
380 * testsuite/Makefile.in: Ditto.
381
e2b34106
JJ
3822008-09-19 Jakub Jelinek <jakub@redhat.com>
383 Andreas Tobler <a.tobler@schweiz.org>
384
385 * config/bsd/proc.c: New file.
8c3b3600 386 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
387 * configure.ac: Check for header <sys/sysctl.h>
388 * configure: Regenerate.
389 * config.h.in: Likewise.
390
3606b8bf
JJ
3912008-09-05 Janis Johnson <janis187@us.ibm.com>
392
393 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
394
6528b88d
AL
3952008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
396
397 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
398 * Makefile.in: Regenerated.
399 * testsuite/Makefile.in: Regenerated.
400
d9b14b12 4012008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 402
a16b68bb 403 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
404 depend on blddir if blddir exists.
405 (libgomp_target_compile): Likewise.
406 * testsuite/libgomp.c++/c++.exp: Likewise.
407 * testsuite/libgomp.fortran/fortran.exp: Likewise.
408
70b1e376
RW
4092008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
410
411 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
412 Do not list GPL as Invariant Section.
413
318e8c3f
IG
4142008-07-28 Ilie Garbacea <ilie@mips.com>
415 Chao-ying Fu <fu@mips.com>
416
417 * configure.tgt: Enable futex for MIPS.
418 * config/linux/mips/futex.h: New file.
419
4db72361
JJ
4202008-07-16 Jakub Jelinek <jakub@redhat.com>
421
422 * team.c (gomp_team_end): Free team immediately if it has
423 just one thread.
424
87bd23b8
DE
4252008-07-08 David Edelsohn <edelsohn@gnu.org>
426
427 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
428 * testsuite/libgomp.fortran/fortran.exp: Same.
429 * testsuite/libgomp.c/c.exp: Same.
430 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
431 directory to library path first.
432
323ff903
KW
4332008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
434
435 * env.c (parse_stacksize): Add cast to avoid warning.
436 (parse_spincount): Likewise.
437
b357f682
JJ
4382008-06-27 Jakub Jelinek <jakub@redhat.com>
439
ca2b1311
JJ
440 * testsuite/libgomp.c/loop-10.c: New test.
441 * libgomp.c/loop-3.c (main): Add lastprivate clause.
442 * libgomp.c++/loop-6.C (main): Likewise.
443
b357f682
JJ
444 PR debug/36617
445 * testsuite/libgomp.c/debug-1.c: New test.
446
09a46078
JJ
4472008-06-19 Jakub Jelinek <jakub@redhat.com>
448
449 * testsuite/libgomp.c/nqueens-1.c: New test.
450
2368a460
JJ
451 PR c++/36523
452 * testsuite/libgomp.c++/task-7.C: New function.
453
18c04407
RW
4542008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
455
456 * configure: Regenerate.
457
9c4e59e0
JDA
4582008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
459
460 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
461 mutex when HAVE_SYNC_BUILTINS isn't defined.
462
6ccde948
RW
4632008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
464
465 * libgomp.texi (omp_test_lock): Fix typo.
466
b896f9fd
TB
4672008-06-12 Tobias Burnus <burnus@net-b.de>
468
469 * omp_lib.f90.in: Add "implicit none".
470
c34938a8
JJ
4712008-06-12 Jakub Jelinek <jakub@redhat.com>
472
473 PR middle-end/36506
474 * testsuite/libgomp.c/reduction-5.c: New test.
475
976e44e3
JJ
4762008-06-11 Jakub Jelinek <jakub@redhat.com>
477
5f836cbb
JJ
478 * libgomp.h (struct gomp_task): Add in_tied_task field.
479 * task.c (gomp_init_task): Initialize it.
480 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
481 unconditionally. Don't call gomp_team_barrier_wake if
482 current task is implicit or if(0) from implicit and number of
483 running tasks is equal to nthreads - 1.
484
01501fc8
JJ
485 PR libgomp/36471
486 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
487 omp_get_team_size_8): Fix pastos.
488
976e44e3
JJ
489 PR libgomp/36469
490 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
491 * configure: Regenerated.
492 * config.h.in: Regenerated.
493 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
494 defined.
495
e919209b
AT
4962008-06-06 Andreas Tobler <a.tobler@schweiz.org>
497
498 PR bootstrap/36452
499 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
500 (GOMP_loop_ull_dynamic_start): Likewise.
501 (GOMP_loop_ull_guided_start): Likewise.
502 (GOMP_loop_ull_ordered_static_start): Likewise.
503 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
504 (GOMP_loop_ull_ordered_guided_start): Likewise.
505
a68ab351
JJ
5062008-06-06 Jakub Jelinek <jakub@redhat.com>
507 Richard Henderson <rth@redhat.com>
508 Ulrich Drepper <drepper@redhat.com>
509 Jakob Blomer <jakob.blomer@ira.uka.de>
510
511 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
512 Substitute also OMP_*LOCK_25*.
513 * configure: Regenerated.
514 * config.h.in: Regenerated.
515 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
516 ptrlock.c and task.c.
517 * Makefile.in: Regenerated.
518 * testsuite/Makefile.in: Regenerated.
519 * task.c: New file.
520 * loop_ull.c: New file.
521 * iter_ull.c: New file.
522 * libgomp.h: Include ptrlock.h.
523 (enum gomp_task_kind): New type.
524 (struct gomp_team): Add task_lock, task_queue, task_count,
525 task_running_count, single_count fields. Add
526 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
527 Remove work_share_lock, generation_mask,
528 oldest_live_gen, num_live_gen and init_work_shares fields, add
529 work work_share_list_alloc, work_share_list_free and work_share_chunk
530 fields. Change work_shares from pointer to pointers into an array.
531 Change ordered_release field into gomp_sem_t ** from flexible array
532 member. Add implicit_task and initial_work_shares fields.
533 Move close to the end of the struct.
534 (struct gomp_team_state): Add single_count, last_work_share,
535 active_level and level fields, remove work_share_generation.
536 (gomp_barrier_handle_tasks): New prototype.
537 (gomp_finish_task): New inline function.
538 (struct gomp_work_share): Move chunk_size, end, incr into
539 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
540 next_ll fields. Reshuffle fields. Add next_alloc,
541 next_ws, next_free and inline_ordered_team_ids fields, change
542 ordered_team_ids into pointer from flexible array member.
543 Add mode field. Put lock and next into a different cache line
544 from most of the write-once fields.
545 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
546 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
547 gomp_iter_ull_guided_next): New prototypes.
548 (gomp_new_icv): New prototype.
549 (struct gomp_thread): Add thread_pool and task fields.
550 (struct gomp_thread_pool): New type.
551 (gomp_new_team): New prototype.
552 (gomp_team_start): Change type of last argument.
553 (gomp_new_work_share): Removed.
554 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
555 (gomp_work_share_init_done): New static inline.
556 (gomp_throttled_spin_count_var, gomp_available_cpus,
557 gomp_managed_threads): New extern decls.
558 (gomp_init_task): New prototype.
559 (gomp_spin_count_var): New extern var decl.
560 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
561 or no alias support, or if not PIC.
562 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
563 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
564 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
565 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
566 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
567 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
568 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
569 gomp_test_nest_lock_25): New prototypes.
570 (omp_lock_symver, strong_alias): Define.
571 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
572 decls.
573 (gomp_end_task): New.
574 (struct gomp_task_icv, gomp_global_icv): New.
575 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
576 (struct gomp_task): New.
577 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
578 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
579 (gomp_icv): New.
580 (gomp_schedule_type): Reorder enum to match
581 omp_sched_t.
582 * team.c (struct gomp_thread_start_data): Add thread_pool and task
583 fields.
584 (gomp_thread_start): Add gomp_team_barrier_wait call.
585 For non-nested case remove clearing of docked thread thr fields.
586 Use pool fields instead of global gomp_* variables. Use
587 gomp_barrier_wait_last when needed. Initialize ts.active_level.
588 Create tasks for each member thread.
589 (free_team): Only destroy team barrier, task_lock here and free it.
590 (gomp_free_thread): Free last_team if non-NULL.
591 (gomp_team_end): Call gomp_team_barrier_wait instead of
592 gomp_barrier_wait. For nested case call one extra
593 gomp_barrier_wait. Move here some destruction from free_team.
594 Call free_team on pool->last_team if any, rather than freeing
595 current team. Destroy work_share_list_free_lock ifndef
596 HAVE_SYNC_BUILTINS.
597 (gomp_new_icv): New function.
598 (gomp_threads, gomp_threads_size, gomp_threads_used,
599 gomp_threads_dock): Removed.
600 (gomp_thread_destructor): New variable.
601 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
602 functions.
603 (gomp_team_start): Create new pool if current thread doesn't have
604 one. Use pool fields instead of global gomp_* variables.
605 Initialize thread_pool field for new threads. Clear single_count.
606 Change last argument from ws to team, don't create
607 new team, set ts.work_share to &team->work_shares[0] and clear
608 ts.last_work_share. Don't clear ts.work_share_generation.
609 If number of threads changed, adjust atomically gomp_managed_threads.
610 Use gomp_init_task instead of gomp_new_task,
611 set thr->task to the corresponding implicit_task array entry.
612 Create tasks for each member thread. Initialize ts.level.
613 (initialize_team): Call pthread_key_create on
614 gomp_thread_destructor.
615 (team_destructor): New function.
616 (new_team): Removed.
617 (gomp_new_team): New function.
618 (free_team): Free gomp_work_share blocks chained through next_alloc,
619 instead of freeing work_shares and destroying work_share_lock.
620 (gomp_team_end): Call gomp_fini_work_share. If number of threads
621 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
622 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
623 of gomp_barrier_wait.
624 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
625 instead of gomp_barrier_wait. Call gomp_work_share_init_done
626 if gomp_work_share_start returned true. Don't unlock ws->lock.
627 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
628 of gomp_barrier_wait.
629 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
630 gomp_work_share_init_done if gomp_work_share_start returned true.
631 Don't unlock ws->lock.
632 * work.c: Include stddef.h.
633 (free_work_share): Use work_share_list_free_lock instead
634 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
635 Call gomp_fini_work_share and then either free ws if orphaned, or
636 put it into work_share_list_free list of the current team.
637 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
638 functions.
639 (gomp_work_share_start, gomp_work_share_end,
640 gomp_work_share_end_nowait): Rewritten.
641 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
642 (openmp_version): Set to 200805.
643 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
644 omp_sched_guided, omp_sched_auto): New parameters.
645 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
646 omp_set_max_active_levels, omp_get_max_active_levels,
647 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
648 omp_get_active_level): New interfaces.
649 * omp_lib.h.in (openmp_version): Set to 200805.
650 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
651 omp_sched_guided, omp_sched_auto): New parameters.
652 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
653 omp_set_max_active_levels, omp_get_max_active_levels,
654 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
655 omp_get_active_level): New externals.
656 * loop.c: Include limits.h.
657 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
658 GFS_AUTO.
659 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
660 Likewise. Use gomp_icv.
661 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
662 ts.static_trip here.
663 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
664 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
665 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
666 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
667 don't unlock ws->lock, otherwise lock it.
668 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
669 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
670 (gomp_parallel_loop_start): Call gomp_new_team instead of
671 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
672 Adjust gomp_team_start caller. Pass 0 as second argument to
673 gomp_resolve_num_threads.
674 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
675 If adding ws->chunk_size nthreads + 1 times after end won't
676 overflow, set ws->mode to 1.
677 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
678 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
679 GOMP_loop_ull_ordered_static_start,
680 GOMP_loop_ull_ordered_dynamic_start,
681 GOMP_loop_ull_ordered_guided_start,
682 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
683 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
684 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
685 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
686 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
687 prototypes.
688 * libgomp.map: Export lock routines also @@OMP_2.0.
689 (GOMP_loop_ordered_dynamic_first,
690 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
691 GOMP_loop_ordered_static_first): Remove.
692 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
693 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
694 GOMP_loop_ull_ordered_dynamic_next,
695 GOMP_loop_ull_ordered_dynamic_start,
696 GOMP_loop_ull_ordered_guided_next,
697 GOMP_loop_ull_ordered_guided_start,
698 GOMP_loop_ull_ordered_runtime_next,
699 GOMP_loop_ull_ordered_runtime_start,
700 GOMP_loop_ull_ordered_static_next,
701 GOMP_loop_ull_ordered_static_start,
702 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
703 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
704 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
705 (omp_set_schedule, omp_get_schedule,
706 omp_get_thread_limit, omp_set_max_active_levels,
707 omp_get_max_active_levels, omp_get_level,
708 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
709 omp_set_schedule_, omp_set_schedule_8_,
710 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
711 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
712 omp_get_max_active_levels_, omp_get_level_,
713 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
714 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
715 New exports @@OMP_3.0.
716 * omp.h.in (omp_sched_t): New type.
717 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
718 omp_set_max_active_levels, omp_get_max_active_levels,
719 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
720 omp_get_active_level): New prototypes.
721 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
722 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
723 gomp_thread_limit_var, gomp_remaining_threads_count,
724 gomp_remaining_threads_lock): New variables.
725 (parse_spincount): New function.
726 (initialize_env): Call gomp_init_num_threads unconditionally.
727 Initialize gomp_available_cpus. Call parse_spincount,
728 initialize gomp_{,throttled_}spin_count_var
729 depending on presence and value of OMP_WAIT_POLICY and
730 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
731 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
732 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
733 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
734 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
735 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
736 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
737 (gomp_global_icv): New.
738 (parse_schedule): Use it. Parse "auto".
739 (omp_set_num_threads): Use gomp_icv.
740 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
741 Likewise.
742 (omp_get_max_threads): Move from parallel.c.
743 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
744 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
745 add ialias.
746 (parse_stacksize, parse_wait_policy): New functions.
747 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
748 both wrappers for compatibility and new locks.
749 (omp_set_schedule, omp_get_schedule,
750 omp_get_thread_limit, omp_set_max_active_levels,
751 omp_get_max_active_levels, omp_get_level,
752 omp_get_ancestor_thread_num, omp_get_team_size,
753 omp_get_active_level): New ialias_redirect.
754 (omp_set_schedule_, omp_set_schedule_8_,
755 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
756 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
757 omp_get_max_active_levels_, omp_get_level_,
758 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
759 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
760 New functions.
761 * parallel.c: Include limits.h.
762 (gomp_resolve_num_threads): Add count argument. Rewritten.
763 (GOMP_parallel_start): Call gomp_new_team and pass that as last
764 argument to gomp_team_start. Pass 0 as second argument to
765 gomp_resolve_num_threads.
766 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
767 if gomp_thread_limit_var != ULONG_MAX.
768 (omp_in_parallel): Implement using ts.active_level.
769 (omp_get_max_threads): Move to env.c.
770 (omp_get_level, omp_get_ancestor_thread_num,
771 omp_get_team_size, omp_get_active_level): New functions,
772 add ialias.
773 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
774 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
775 gomp_iter_dynamic_next instead of the _locked variant and don't take
776 lock around it, otherwise acquire it before calling
777 gomp_iter_dynamic_next_locked.
778 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
779 gomp_iter_dynamic_next instead of the _locked variant and don't take
780 lock around it.
781 (GOMP_parallel_sections_start): Call gomp_new_team instead of
782 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
783 Adjust gomp_team_start caller. Pass count as second argument to
784 gomp_resolve_num_threads, don't adjust num_threads after the call.
785 Use gomp_icv.
786 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
787 ws->chunk_size by incr.
788 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
789 code.
790 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
791 types.
792 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
793 (omp_check_defines): Check even the compat defines.
794 * config/linux/ptrlock.c: New file.
795 * config/linux/ptrlock.h: New file.
796 * config/linux/wait.h: New file.
797 * config/posix/ptrlock.c: New file.
798 * config/posix/ptrlock.h: New file.
799 * config/linux/bar.h (gomp_team_barrier_wait,
800 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
801 (gomp_team_barrier_set_task_pending,
802 gomp_team_barrier_clear_task_pending,
803 gomp_team_barrier_set_waiting_for_tasks,
804 gomp_team_barrier_waiting_for_tasks,
805 gomp_team_barrier_done): New inlines.
806 (gomp_barrier_t): Rewritten.
807 (gomp_barrier_state_t): New typedef.
808 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
809 gomp_barrier_wait_start): Rewritten.
810 (gomp_barrier_wait_end): Change second argument to
811 gomp_barrier_state_t.
812 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
813 inlines.
814 * config/linux/bar.c: Include wait.h instead of libgomp.h and
815 futex.h.
816 (gomp_barrier_wait_end): Rewritten.
817 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
818 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
819 * config/posix/bar.h (gomp_barrier_t): Add generation field.
820 (gomp_barrier_state_t): New typedef.
821 (gomp_team_barrier_wait,
822 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
823 (gomp_barrier_wait_start): Or all but low 2 bits from generation
824 into the return value. Return gomp_barrier_state_t.
825 (gomp_team_barrier_set_task_pending,
826 gomp_team_barrier_clear_task_pending,
827 gomp_team_barrier_set_waiting_for_tasks,
828 gomp_team_barrier_waiting_for_tasks,
829 gomp_team_barrier_done): New inlines.
830 (gomp_barrier_wait_end): Change second argument to
831 gomp_barrier_state_t.
832 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
833 inlines.
834 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
835 (gomp_barrier_wait_end): Change second argument to
836 gomp_barrier_state_t.
837 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
838 gomp_team_barrier_wake): New functions.
839 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
840 futex.h.
841 (gomp_futex_wake, gomp_futex_wait): New variables.
842 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
843 * config/linux/lock.c: Rewrite to make locks task owned,
844 for backwards compatibility provide the old entrypoints
845 if symbol versioning. Include wait.h instead of libgomp.h and
846 futex.h.
847 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
848 * config/posix95/lock.c: Rewrite to make locks task owned,
849 for backwards compatibility provide the old entrypoints
850 if symbol versioning.
851 * config/posix/lock.c: Rewrite to make locks task owned,
852 for backwards compatibility provide the old entrypoints
853 if symbol versioning.
854 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
855 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
856 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
857 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
858 (sys_futex0): Return error code.
859 (futex_wake, futex_wait): If ENOSYS was returned, clear
860 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
861 (cpu_relax, atomic_write_barrier): New static inlines.
862 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
863 (futex_wake, futex_wait): If ENOSYS was returned, clear
864 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
865 (cpu_relax, atomic_write_barrier): New static inlines.
866 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
867 (sys_futex0): Return error code.
868 (futex_wake, futex_wait): If ENOSYS was returned, clear
869 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
870 (cpu_relax, atomic_write_barrier): New static inlines.
871 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
872 (sys_futex0): Return error code.
873 (futex_wake, futex_wait): If ENOSYS was returned, clear
874 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
875 (cpu_relax, atomic_write_barrier): New static inlines.
876 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
877 (sys_futex0): Return error code.
878 (futex_wake, futex_wait): If ENOSYS was returned, clear
879 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
880 (cpu_relax, atomic_write_barrier): New static inlines.
881 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
882 (sys_futex0): Return error code.
883 (futex_wake, futex_wait): If ENOSYS was returned, clear
884 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
885 (cpu_relax, atomic_write_barrier): New static inlines.
886 * config/linux/sem.c: Include wait.h instead of libgomp.h and
887 futex.h.
888 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
889 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
890 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
891 types.
892 (omp_nest_lock_t): Change owner into void *, add lock field.
893 * config/posix95/omp-lock.h: Include semaphore.h.
894 (omp_lock_25_t, omp_nest_lock_25_t): New types.
895 (omp_lock_t): Use sem_t instead of mutex if semaphores
896 aren't broken.
897 (omp_nest_lock_t): Likewise. Change owner to void *.
898 * config/posix/omp-lock.h: Include semaphore.h.
899 (omp_lock_25_t, omp_nest_lock_25_t): New types.
900 (omp_lock_t): Use sem_t instead of mutex if semaphores
901 aren't broken.
902 (omp_nest_lock_t): Likewise. Add owner field.
903
9042008-06-06 Jakub Jelinek <jakub@redhat.com>
905
906 * testsuite/libgomp.c/collapse-1.c: New test.
907 * testsuite/libgomp.c/collapse-2.c: New test.
908 * testsuite/libgomp.c/collapse-3.c: New test.
909 * testsuite/libgomp.c/icv-1.c: New test.
910 * testsuite/libgomp.c/icv-2.c: New test.
911 * testsuite/libgomp.c/lib-2.c: New test.
912 * testsuite/libgomp.c/lock-1.c: New test.
913 * testsuite/libgomp.c/lock-2.c: New test.
914 * testsuite/libgomp.c/lock-3.c: New test.
915 * testsuite/libgomp.c/loop-4.c: New test.
916 * testsuite/libgomp.c/loop-5.c: New test.
917 * testsuite/libgomp.c/loop-6.c: New test.
918 * testsuite/libgomp.c/loop-7.c: New test.
919 * testsuite/libgomp.c/loop-8.c: New test.
920 * testsuite/libgomp.c/loop-9.c: New test.
921 * testsuite/libgomp.c/nested-3.c: New test.
922 * testsuite/libgomp.c/nestedfn-6.c: New test.
923 * testsuite/libgomp.c/sort-1.c: New test.
924 * testsuite/libgomp.c/task-1.c: New test.
925 * testsuite/libgomp.c/task-2.c: New test.
926 * testsuite/libgomp.c/task-3.c: New test.
927 * testsuite/libgomp.c/task-4.c: New test.
928 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
929 to C++ testsuite default compiler options.
930 * testsuite/libgomp.c++/collapse-1.C: New test.
931 * testsuite/libgomp.c++/collapse-2.C: New test.
932 * testsuite/libgomp.c++/ctor-10.C: New test.
933 * testsuite/libgomp.c++/for-1.C: New test.
934 * testsuite/libgomp.c++/for-2.C: New test.
935 * testsuite/libgomp.c++/for-3.C: New test.
936 * testsuite/libgomp.c++/for-4.C: New test.
937 * testsuite/libgomp.c++/for-5.C: New test.
938 * testsuite/libgomp.c++/loop-8.C: New test.
939 * testsuite/libgomp.c++/loop-9.C: New test.
940 * testsuite/libgomp.c++/loop-10.C: New test.
941 * testsuite/libgomp.c++/task-1.C: New test.
942 * testsuite/libgomp.c++/task-2.C: New test.
943 * testsuite/libgomp.c++/task-3.C: New test.
944 * testsuite/libgomp.c++/task-4.C: New test.
945 * testsuite/libgomp.c++/task-5.C: New test.
946 * testsuite/libgomp.c++/task-6.C: New test.
947 * testsuite/libgomp.fortran/allocatable1.f90: New test.
948 * testsuite/libgomp.fortran/allocatable2.f90: New test.
949 * testsuite/libgomp.fortran/allocatable3.f90: New test.
950 * testsuite/libgomp.fortran/allocatable4.f90: New test.
951 * testsuite/libgomp.fortran/collapse1.f90: New test.
952 * testsuite/libgomp.fortran/collapse2.f90: New test.
953 * testsuite/libgomp.fortran/collapse3.f90: New test.
954 * testsuite/libgomp.fortran/collapse4.f90: New test.
955 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
956 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
957 * testsuite/libgomp.fortran/lib4.f90: New test.
958 * testsuite/libgomp.fortran/lock-1.f90: New test.
959 * testsuite/libgomp.fortran/lock-2.f90: New test.
960 * testsuite/libgomp.fortran/nested1.f90: New test.
961 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
962 * testsuite/libgomp.fortran/strassen.f90: New test.
963 * testsuite/libgomp.fortran/tabs1.f90: New test.
964 * testsuite/libgomp.fortran/tabs2.f: New test.
965 * testsuite/libgomp.fortran/task1.f90: New test.
966 * testsuite/libgomp.fortran/task2.f90: New test.
967 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
968 * testsuite/libgomp.fortran/vla5.f90: Likewise.
969 * testsuite/libgomp.c/pr26943-2.c: Likewise.
970 * testsuite/libgomp.c/pr26943-3.c: Likewise.
971 * testsuite/libgomp.c/pr26943-4.c: Likewise.
972
7a0112e7
JJ
9732008-05-23 Jakub Jelinek <jakub@redhat.com>
974
975 PR c++/36308
976 * testsuite/libgomp.c++/ctor-11.C: New test.
977 * testsuite/libgomp.c++/ctor-12.C: New test.
978
91a5b394
JJ
9792008-05-15 Janis Johnson <janis187@us.ibm.com>
980
981 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
982
c18c98c0
JJ
9832008-05-07 Jakub Jelinek <jakub@redhat.com>
984
985 PR middle-end/36106
986 * testsuite/libgomp.c/atomic-5.c: New test.
987 * testsuite/libgomp.c/atomic-6.c: New test.
988 * testsuite/libgomp.c/autopar-1.c: New test.
989
6d26724a
RW
9902008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
991
992 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
993 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
994 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
995 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
996 * configure: Regenerate.
997 * Makefile.in, testsuite/Makefile.in: Likewise.
998
deb984e6
PB
9992008-04-18 Paolo Bonzini <bonzini@gnu.org>
1000
1001 PR bootstrap/35457
1002 * aclocal.m4: Regenerate.
1003 * configure: Regenerate.
1004
9e775963
JJ
10052008-03-18 Jakub Jelinek <jakub@redhat.com>
1006
8119fc93
JJ
1007 PR middle-end/35611
1008 * testsuite/libgomp.c/atomic-4.c: New test.
1009
9e775963
JJ
1010 PR libgomp/35625
1011 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1012 (gomp_iter_guided_next): Likewise.
1013 * testsuite/libgomp.c/pr35625.c: New test.
1014
38d24731
RW
10152008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1016
1017 * aclocal.m4: Regenerate.
1018 * configure: Likewise.
1019 * Makefile.in: Likewise.
1020 * testsuite/Makefile.in: Likewise.
1021
d0fb20be
JJ
10222008-03-13 Jakub Jelinek <jakub@redhat.com>
1023
1024 PR middle-end/35185
1025 * testsuite/libgomp.c++/pr35185.C: New test.
1026
7c8f7639
JJ
10272008-03-12 Jakub Jelinek <jakub@redhat.com>
1028
1029 PR middle-end/35549
1030 * testsuite/libgomp.c/pr35549.c: New test.
1031
251923f5
JJ
10322008-03-06 Jakub Jelinek <jakub@redhat.com>
1033
1034 * testsuite/libgomp.c/atomic-3.c: New test.
1035
f489fba1
FXC
10362008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1037
1038 PR fortran/33197
251923f5 1039 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
1040 .F08 file suffixes.
1041
a1b25e49
PG
10422008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1043
1044 PR libgomp/33131
1045 * configure.ac: Add ACX_HEADER_STRING.
1046 * env.c: Include strings.h.
1047 * aclocal.m4: Regenerate.
1048 * config.h.in: Regenerate.
1049 * configure: Regenerate.
1050 * Makefile.in: Regenerate.
1051 * testsuite/Makefile.in: Regenerate.
1052
6837b3b8
JJ
10532008-02-15 Jakub Jelinek <jakub@redhat.com>
1054
ac84c062
JJ
1055 PR middle-end/35196
1056 * testsuite/libgomp.c/pr35196.c: New test.
1057
6837b3b8
JJ
1058 PR middle-end/35130
1059 * testsuite/libgomp.fortran/pr35130.f90: New test.
1060 * testsuite/libgomp.c/pr35130.c: New test.
1061
c256730c
JJ
10622008-01-25 Jakub Jelinek <jakub@redhat.com>
1063
1064 PR middle-end/33880
1065 * testsuite/libgomp.c/pr33880.c: New test.
1066 * testsuite/libgomp.fortran/pr33880.f90: New test.
1067
c8e95542 10682008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
1069
1070 * configure: Regenerate.
1071
0f3e711e
JJ
10722008-01-08 Jakub Jelinek <jakub@redhat.com>
1073
1074 * configure.ac: Move futex checking into ../config/futex.m4.
1075 * configure: Rebuilt.
1076 * aclocal.m4: Rebuilt.
1077 * Makefile.in: Rebuilt.
1078
1079 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1080 2007-10-15 ../config/tls.m4 change.
1081
5259c813
JJ
10822007-12-19 Jakub Jelinek <jakub@redhat.com>
1083
1084 PR c++/34513
1085 * testsuite/libgomp.c/pr34513.c: New test.
1086 * testsuite/libgomp.c++/pr34513.C: New test.
1087
ae8d8879
JH
10882007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1089
1090 PR target/32765
1091 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1092
2b4cf991
JJ
10932007-12-04 Jakub Jelinek <jakub@redhat.com>
1094
1095 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1096
d2dda7fe
JJ
10972007-12-03 Jakub Jelinek <jakub@redhat.com>
1098
1099 * testsuite/libgomp.c/private-1.c: New test.
1100
d683ec81
PB
11012007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1102 Paolo Bonzini <bonzini@gnu.org>
1103
1104 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1105 instead of 'VPATH ='.
1106 * Makefile.in: Regenerate.
1107
a7415017
MK
11082007-11-23 Matthias Klose <doko@ubuntu.com>
1109
1110 * configure.ac: Adjust makeinfo version check.
1111 * configure: Regenerate.
1112
78e47463
JJ
11132007-11-10 Jakub Jelinek <jakub@redhat.com>
1114
1115 PR fortran/34020
1116 * testsuite/libgomp.fortran/pr34020.f90: New test.
1117
239371f9
JJ
11182007-11-06 Jakub Jelinek <jakub@redhat.com>
1119
1120 PR c++/33894
1121 * testsuite/libgomp.c++/atomic-1.C: New test.
1122
98a5fa94
JJ
11232007-10-25 Jakub Jelinek <jakub@redhat.com>
1124
1125 PR libgomp/33275
1126 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1127 Make x and y integers rather than (implicit) reals. Add private (j)
1128 clause to the last omp parallel.
1129
3afcaaf4
MR
11302007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1131
1132 * configure: Regenerate following changes to ../config/tls.m4.
1133
bd69daef
JJ
11342007-09-28 Jakub Jelinek <jakub@redhat.com>
1135
1136 * testsuite/libgomp.fortran/stack.f90: New test.
1137
1d0bd356
DS
11382007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1139
1140 * config/mingw32/proc.c: New file.
1141
b3172cab
UB
11422007-09-05 Uros Bizjak <ubizjak@gmail.com>
1143
1144 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1145 (main): Use __get_cpuid to get i386 target fetaures.
1146 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1147 (main): Use __get_cpuid to get x86_64 target fetaures.
1148
6da17392
JH
11492007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1150
1151 PR target/32765
1152 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1153 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1154
e1c82219
JJ
11552007-07-12 Jakub Jelinek <jakub@redhat.com>
1156
1157 PR fortran/32550
1158 * testsuite/libgomp.fortran/pr32550.f90: New test.
1159 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1160
12a27363
L
11612007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1162
1163 * aclocal.m4: Regenerated.
1164
5349080d
TB
11652007-07-05 Tobias Burnus <burnus@net-b.de>
1166
1167 PR fortran/32359
1168 * testsuite/libgomp.fortran/pr32359.f90: New.
1169
4f9c450c
JJ
11702007-07-02 Jakub Jelinek <jakub@redhat.com>
1171
1172 PR libgomp/32468
1173 * sections.c (GOMP_parallel_sections_start): Only decrease
1174 number of threads to COUNT if dyn_var is true.
1175 * testsuite/libgomp.c/pr32468.c: New test.
1176
28c67ed7
RO
11772007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1178
1179 PR libgomp/26308
1180 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1181
64964499
JJ
11822007-06-21 Jakub Jelinek <jakub@redhat.com>
1183
1184 PR middle-end/32362
1185 * testsuite/libgomp.c/pr32362-1.c: New test.
1186 * testsuite/libgomp.c/pr32362-2.c: New test.
1187 * testsuite/libgomp.c/pr32362-3.c: New test.
1188
46d8fbd1
JJ
11892007-06-07 Jakub Jelinek <jakub@redhat.com>
1190
1191 * team.c (gomp_team_start): Fix setting up thread_attr
1192 stack size.
1193
82a6cadf
PB
11942007-06-02 Paolo Bonzini <bonzini@gnu.org>
1195
1196 * configure: Regenerate.
1197
1cf3d07d
SE
11982007-05-23 Steve Ellcey <sje@cup.hp.com>
1199
1200 * Makefile.in: Regenerate.
1201 * configure: Regenerate.
1202 * aclocal.m4: Regenerate.
1203 * testsuite/Makefile.in: Regenerate.
1204
12aac30b
JJ
12052007-05-04 Jakub Jelinek <jakub@redhat.com>
1206
1207 * config/linux/proc.c: New file.
1208
f1028b02
JJ
1209 PR libgomp/28482
1210 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1211
06785a48
DF
12122007-04-19 Daniel Franke <franke.daniel@gmail.com>
1213
1214 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1215
b3b08ba0
MK
12162007-04-16 Matthias Klose <doko@debian.org>
1217
1218 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1219 flags if not building with -m64.
1220 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1221 flag for i?86-*-* targets, if current target matches -m64.
1222
6b2c5ce0
SE
12232007-04-14 Steve Ellcey <sje@cup.hp.com>
1224
1225 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1226 * Makefile.in: Regenerate.
1227
dd56fe7c
JDA
12282007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1229
1230 PR testsuite/31369
1231 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1232 ld_library_path.
1233 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1234
a0884cf0
JJ
12352007-04-04 Jakub Jelinek <jakub@redhat.com>
1236
1237 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1238 decls.
1239 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1240 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1241 (parse_affinity): New function.
1242 (initialize_env): Call it and gomp_init_affinity.
1243 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1244 create new pthread_attr_t and call gomp_init_thread_affinity
1245 on it for each thread before passing the attribute to pthread_create.
1246 * config/linux/affinity.c: New file.
1247 * config/posix/affinity.c: New file.
1248 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1249 * configure: Rebuilt.
1250 * config.h.in: Rebuilt.
1251 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1252 * Makefile.in: Rebuilt.
1253
1850744b
AT
12542007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1255
1256 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1257 *-*-darwin*.
1258 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1259 and use it if found.
1260
516f1ed8
UB
12612007-03-18 Uros Bizjak <ubizjak@gmail.com>
1262
1263 * testsuite/config/default.exp: New file.
1264 * testsuite/lib/libgomp.exp: New file.
1265 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1266 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1267 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1268 (libgomp_load): Remove.
1269 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1270 always_ld_library_path, not ld_library_path. Set additional_flags
1271 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1272 (target_compile): Do not call libgomp_init. Append lang_library_path
1273 and lang_link_flags to options.
1274 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1275 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1276 here.
1277 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1278 always_ld_library_path. Set LD_LIBRARY_PATH here.
1279 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1280 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1281 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1282 CX8 flag.
1283 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1284 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1285 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1286 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1287 * testsuite/libgomp.c/atomic-10.c: Ditto.
1288
2ada56f5
JJ
12892007-03-21 Jakub Jelinek <jakub@redhat.com>
1290
1291 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1292 dg-final cleanup-modules line.
1293 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1294 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1295 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1296 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1297 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1298 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1299 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1300
f210f1cd
AS
13012007-03-18 Andreas Schwab <schwab@suse.de>
1302
1303 * acinclude.m4: Adjust regular expression for ld version
1304 extraction.
1305 * configure: Regenerate.
1306
c4dc950d
BM
13072007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1308
1309 * Makefile.am: Add install-pdf target as copied from
1310 automake v1.10 rules.
1311 * Makefile.in: Regenerate
1312
e02a048f
JJ
13132007-02-07 Jakub Jelinek <jakub@redhat.com>
1314
78e075d4
JJ
1315 PR libgomp/28486
1316 * configure: Regenerate.
1317
e02a048f
JJ
1318 PR c++/30703
1319 * testsuite/libgomp.c++/pr30703.C: New test.
1320
60def7ed
JJ
13212007-02-02 Jakub Jelinek <jakub@redhat.com>
1322
1323 Revert:
1324 2006-07-05 Eric Christopher <echristo@apple.com>
1325 * configure.ac: Depend addition of -pthread on host OS.
1326 * configure: Regenerate.
1327
f1b0882e
RW
13282007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1329
1330 * libgomp.texi: Fix spacing after abbreviations.
1331
748b9d7c
DF
13322007-01-31 Daniel Franke <franke.daniel@gmail.com>
1333
1334 PR libgomp/30546
1335 * configure.ac: Add check for makeinfo
1336 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1337 if an appropiate version of makeinfo is found.
1338 * aclocal.m4: Regenerated.
1339 * configure: Regenerated.
1340 * Makefile.in: Regenerated.
1341 * testsuite/Makefile.in: Regenerated.
1342
14734fc7
DF
13432007-01-29 Daniel Franke <franke.daniel@gmail.com>
1344
1345 PR libgomp/30540
1346 * libgomp.texi: More about implementation-dependent settings.
1347
7befd5d2
TB
13482007-01-26 Tobias Burnus <burnus@net-b.de>
1349
1350 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1351
4288fea2
JJ
13522007-01-24 Jakub Jelinek <jakub@redhat.com>
1353
1354 PR middle-end/30494
1355 * testsuite/libgomp.c/pr30494.c: New test.
1356
627ab4b8
TT
13572007-01-15 Tom Tromey <tromey@redhat.com>
1358
1359 * configure: Rebuilt.
1360 * configure.ac: Fixed comment.
1361
7c2b7f45
DF
13622007-01-14 Daniel Franke <franke.daniel@gmail.com>
1363
1364 * libgomp.texi: Document implementation specific default values of
1365 environment variables.
1366
3721b9e1
DF
13672006-12-21 Daniel Franke <franke.daniel@gmail.com>
1368
1369 PR libgomp/28209
1370 * libgomp.texi: New file.
1371 * configure.ac: Add --enable-generated-files-in-srcdir option.
1372 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1373 files to srcdir.
1374 * Makefile.in: Regenerated.
1375 * config.h.in: Regenerated.
1376 * testsuite/Makefile.in: Regenerated.
1377 * NOTES: Removed.
1378
62bd6216
DF
13792006-12-04 Daniel Franke <franke.daniel@gmail.com>
1380
1381 PR libgomp/29949
1382 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1383
aad741f4
EB
13842006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1385
1386 * configure: Regenerate.
1387
22568cc6
JJ
13882006-12-04 Jakub Jelinek <jakub@redhat.com>
1389
1390 PR libgomp/29947
1391 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1392 start if there shouldn't be any loop iterations.
1393 (gomp_loop_ordered_static_start): Remove start == end test.
1394 * testsuite/libgomp.c/pr29947-1.c: New test.
1395 * testsuite/libgomp.c/pr29947-2.c: New test.
1396
a9690009
EB
13972006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1398
1399 * configure.tgt: Force initial-exec TLS model on Linux only.
1400
597c25e6
DJ
14012006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1402
1403 * configure: Regenerated.
1404
6acf0b38
UB
14052006-11-09 Uros Bizjak <ubizjak@gmail.com>
1406
1407 * env.c (parse_schedule): Reject out of range values.
1408 (parse_unsigned_long): Reject out of range, negative or zero values.
1409
a7a53ca5
JJ
14102006-10-29 Jakub Jelinek <jakub@redhat.com>
1411
1412 PR fortran/29629
1413 * testsuite/libgomp.fortran/pr29629.f90: New test.
1414
6d4d216a
EB
14152006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1416
1417 PR libgomp/29494
1418 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1419 * config/posix95: New directory.
1420 * config/posix95/omp-lock.h: New file.
1421 * config/posix95/lock.c: Likewise.
1422
5b043f08
GK
14232006-10-14 Geoffrey Keating <geoffk@apple.com>
1424
1425 * aclocal.m4: Regenerate.
1426 * configure: Regenerate.
1427
b50019f0
DS
14282006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1429
1430 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1431 '<' to '<='.
1432
8887708e
DS
14332006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1434
1435 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1436 test.
1437 * configure: Regenerate.
1438 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1439
9b9e4cd6
JJ
14402006-09-26 Jakub Jelinek <jakub@redhat.com>
1441
a70ad3bb
JJ
1442 PR middle-end/25261
1443 PR middle-end/28790
1444 * testsuite/libgomp.c/nestedfn-4.c: New test.
1445 * testsuite/libgomp.c/nestedfn-5.c: New test.
1446 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1447
9b9e4cd6
JJ
1448 PR fortran/29097
1449 * testsuite/libgomp.fortran/condinc1.f: New test.
1450 * testsuite/libgomp.fortran/condinc2.f: New test.
1451 * testsuite/libgomp.fortran/condinc3.f90: New test.
1452 * testsuite/libgomp.fortran/condinc4.f90: New test.
1453 * testsuite/libgomp.fortran/condinc1.inc: New file.
1454
2fb31455
TT
14552006-09-18 Tom Tromey <tromey@redhat.com>
1456
1457 * configure: Rebuilt.
1458
c663e301
JM
14592006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1460
1461 PR c/28768
1462 PR preprocessor/14634
1463 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1464 to AC_DEFINE.
1465 * configure: Regenerate.
1466
38371be9
SK
14672006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1468
1469 * testsuite/libgomp.fortran/reduction3.f90: Change
1470 -2147483648 to -huge(i)-1 to avoid overflow.
1471 * testsuite/libgomp.fortran/reduction4.f90: Change
1472 Z'ffffffff' to not(0) to avoid overflow.
1473
571d5ac5
JM
14742006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1475
1476 PR libgomp/25938
1477 * Makefile.am (libsubincludedir): New.
1478 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1479 * Makefile.in: Regenerate.
1480
89b3e3cd
JJ
14812006-08-17 Jakub Jelinek <jakub@redhat.com>
1482
1483 PR libgomp/28725
1484 * env.c: Include ctype.h.
1485 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1486 leading and/or trailing whitespace and compare strings case
1487 insensitively.
1488
742fae05
JJ
14892006-07-16 Jakub Jelinek <jakub@redhat.com>
1490
1491 PR fortran/28390
1492 * testsuite/libgomp.fortran/pr28390.f: New test.
1493
a1daed2d
EC
14942006-07-05 Eric Christopher <echristo@apple.com>
1495
1496 * configure.ac: Depend addition of -pthread on host OS.
1497 * configure: Regenerate.
1498
5d7b5199
JJ
14992006-06-21 Jakub Jelinek <jakub@redhat.com>
1500
1501 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1502 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1503 defined.
1504
fe5568e9
JJ
15052006-06-20 Jakub Jelinek <jakub@redhat.com>
1506
1507 PR libgomp/26175
1508 PR libgomp/26477
1509 * configure.ac: If neither --enable-linux-futex nor
1510 --disable-linux-futex is passed, determine the default by checking
1511 for compiling and/or running against NPTL. With --enable-linux-futex,
1512 check if SYS_gettid and SYS_futex are defined.
1513 * configure: Rebuilt.
1514
c3b11a40
RH
15152006-06-14 Richard Henderson <rth@redhat.com>
1516
1517 PR libgomp/28008
1518 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1519 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1520
d0d1b24d
RH
15212006-06-09 Richard Henderson <rth@redhat.com>
1522
1523 * env.c (gomp_nthreads_var): Change to unsigned long.
1524 (gomp_run_sched_chunk): Likewise.
1525 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1526 (initialize_env): Initialize gomp_thread_attr.
1527 * libgomp.h (gomp_nthreads_var): Update decl.
1528 (gomp_run_sched_chunk): Likewise.
1529 (gomp_thread_attr): Declare.
1530 * team.c (gomp_thread_attr): Export.
1531 (initialize_team): Don't initialize it.
1532
cd75853e
JJ
15332006-06-09 Jakub Jelinek <jakub@redhat.com>
1534
1535 PR fortran/27916
1536 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1537 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1538
33815e0c
FXC
15392006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1540
1541 * config/mingw32/time.c: New file.
1542 * configure.tgt: Use it.
1543
6667de0d
CD
15442006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1545
1546 * Makefile.am: Add install-html target. Add install-html to .PHONY
1547 * Makefile.in: Regenerate.
1548
e962c46b
JDA
15492006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1550
1551 PR libgomp/27612
1552 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1553 * testsuite/libgomp.c/critical-1.c: Likewise.
1554 * testsuite/libgomp.c/loop-1.c: Likewise.
1555 * testsuite/libgomp.c/loop-2.c: Likewise.
1556 * testsuite/libgomp.c/single-1.c: Likewise.
1557 * testsuite/libgomp.c/ordered-1.c: Likewise.
1558 * testsuite/libgomp.c/ordered-2.c: Likewise.
1559
eeb1d9e0
JJ
15602006-05-15 Jakub Jelinek <jakub@redhat.com>
1561
1562 PR middle-end/27416
1563 * libgomp.fortran/pr27416-1.f90: New test.
1564
693d710f
JJ
15652006-05-03 Jakub Jelinek <jakub@redhat.com>
1566
1567 PR fortran/27395
1568 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1569 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1570
8ca5b2a2
JJ
15712006-05-02 Jakub Jelinek <jakub@redhat.com>
1572
1573 PR c++/26943
1574 * testsuite/libgomp.c/pr26943-1.c: New test.
1575 * testsuite/libgomp.c/pr26943-2.c: New test.
1576 * testsuite/libgomp.c/pr26943-3.c: New test.
1577 * testsuite/libgomp.c/pr26943-4.c: New test.
1578 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1579 * testsuite/libgomp.c++/pr26943.C: New test.
1580
077b0dfb
JJ
15812006-05-02 Jakub Jelinek <jakub@redhat.com>
1582
1583 PR middle-end/27337
1584 * testsuite/libgomp.c++/pr27337.C: New test.
1585
91b6c26d
JJ
15862006-04-26 Jakub Jelinek <jakub@redhat.com>
1587
1588 PR c/26171
1589 * testsuite/libgomp.c/pr26171.c: New test.
1590
60e1758f
RH
15912006-04-25 Richard Henderson <rth@redhat.com>
1592
1593 PR libgomp/25865
1594 * configure.ac: Use GCC_CHECK_TLS.
1595 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1596 * Makefile.in, aclocal.m4, configure: Regenerate.
1597
615baed7
MK
15982006-04-10 Matthias Klose <doko@debian.org>
1599
1600 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1601 directory names containing underscores.
1602
fae2b46b
JJ
16032006-03-21 Jakub Jelinek <jakub@redhat.com>
1604
1605 PR c++/26691
1606 * testsuite/libgomp.c++/pr26691.C: New test.
1607
11a5f608
JJ
16082006-03-13 Jakub Jelinek <jakub@redhat.com>
1609
1610 * testsuite/libgomp.fortran/retval2.f90: New test.
1611
1799e5d5
RH
16122006-03-09 Diego Novillo <dnovillo@redhat.com>
1613
1614 * testsuite/libgomp.c++: New directory.
1615
d349482e
AT
16162006-02-25 Shantonu Sen <ssen@opendarwin.org>
1617
1618 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1619 * config/posix/sem.c: Implement the above.
1620
16212006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1622
1623 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1624 define HAVE_BROKEN_POSIX_SEMAPHORES.
1625 * configure: Rebuilt.
1626 * config.h.in: Rebuilt.
1627
124452c9
FXC
16282006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1629
1630 PR bootstrap/26161
1631 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1632 for the other pthread check.
1633 * configure: Regenerate.
1634 * config.h.in: Regenerate.
1635
dd8d6dfe
JJ
16362006-02-15 Jakub Jelinek <jakub@redhat.com>
1637
1638 PR libgomp/25938
1639 PR libgomp/25984
1640 * Makefile.am (fincludedir): New variable.
1641 (nodist_include_HEADERS): Remove Fortran files.
1642 (nodist_finclude_HEADERS): New variable.
1643 * Makefile.in: Regenerated.
1644
6c7a4dfd
JJ
16452006-02-13 Jakub Jelinek <jakub@redhat.com>
1646
1647 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1648 Remove tests for returning assumed character length arrays.
1649
5142e08b
RS
16502006-02-12 Roger Sayle <roger@eyesopen.com>
1651 John David Anglin <dave@hiauly1.hia.nrc.ca>
1652
1653 PR libgomp/25936
1654 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 1655
5821fba8
UW
16562006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1657
1658 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1659
cb2bbc67
EB
16602006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1661
1662 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1663 part of LD_LIBRARY_PATH manually.
1664
f05ee80c
L
16652006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1666
1667 PR libgomp/25852
1668 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1669 libgomp_init.
1670
03b8fe49
PB
16712005-01-25 Paolo Bonzini <bonzini@gnu.org>
1672
1673 PR libgomp/25884
f05ee80c
L
1674 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1675 * configure.ac (PERL): Don't set.
1676 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1677 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1678 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1679 * omp.h.in: Wrap the new configure substitutions with @ characters.
1680 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1681 * aclocal.m4, configure, Makefile.in: Regenerate.
1682 * mkomp_h.pl: Delete.
03b8fe49 1683
18cbfd85
PB
16842005-01-24 Paolo Bonzini <bonzini@gnu.org>
1685
1686 PR libgomp/25259
1687 * configure.ac: Use GCC_HEADER_STDINT.
1688 * libgomp.h: Include gstdint.h.
1689 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1690 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1691
c41303c6
RH
16922006-01-24 Richard Henderson <rth@redhat.com>
1693
1694 PR libgomp/25942
1695 * configure.ac: Add AM_MAINTAINER_MODE.
1696 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1697
149b9553
DN
16982006-01-24 Diego Novillo <dnovillo@redhat.com>
1699
1700 * Makefile.in: Regenerate.
1701 * testsuite/Makefile.in: Regenerate.
1702 * aclocal.m4: Regenerate.
1703
192a50ad
AT
17042006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1705
1706 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1707 Solaris.
1708 * configure.ac: Add check for loadavg.h.
1709 (link_gomp): Adjust comment.
1710 * configure: Regenerate.
1711 * config.h.in: Regenerate.
1712
a55b8e18
SE
17132006-01-21 Steve Ellcey <sje@cup.hp.com>
1714
1715 PR libgomp/25877
1716 * configure.ac: Remove check for alloca.h.
1717 * configure: Regenerate.
1718 * config.h.in: Regenerate.
1719 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1720 * team.c: Remove use of alloca.h.
1721 Call gomp_alloca instead of alloca.
1722
692eeb34
SE
17232006-01-20 Steve Ellcey <sje@cup.hp.com>
1724
1725 PR libgomp/25877
1726 * team.c: Add include of alloca.h.
1727 * configure.ac: Add check for alloca.h.
1728 * configure: Regenerate.
1729 * config.h.in: Regenerate.
1730
953ff289
DN
17312006-01-17 Jakub Jelinek <jakub@redhat.com>
1732
1733 PR fortran/25219
1734 * testsuite/libgomp.fortran/pr25219.f90: New test.
1735
17362005-12-05 Uros Bizjak <uros@kss-loka.si>
1737
1738 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1739 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1740 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1741 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1742 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1743 testsuite/libgomp.fortran/threadprivate1.f90,
1744 testsuite/libgomp.fortran/threadprivate2.f90,
1745 testsuite/libgomp.fortran/threadprivate3.f90,
1746 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1747 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1748 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1749 effective-target to TLS runtime.
1750
1751 * testsuite/libgomp.fortran/pr25162.f: Require
1752 effective-target TLS runtime.
1753
17542005-12-01 Jakub Jelinek <jakub@redhat.com>
1755
1756 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1757 * testsuite/libgomp.c/nestedfn-3.c: New test.
1758
17592005-11-30 Jakub Jelinek <jakub@redhat.com>
1760
1761 PR fortran/25162
1762 * testsuite/libgomp.fortran/pr25162.f: New test.
1763
17642005-11-28 Jakub Jelinek <jakub@redhat.com>
1765
1766 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1767 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1768
17692005-11-25 Jakub Jelinek <jakub@redhat.com>
1770
1771 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1772 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1773 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1774 single.c, team.c, work.c, config/linux/alpha/futex.h,
1775 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1776 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1777 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1778 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1779 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1780 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1781 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1782 FSF address.
1783
17842005-11-18 Jakub Jelinek <jakub@redhat.com>
1785
1786 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1787 to nodist_noinst_HEADERS.
1788 * Makefile.in: Rebuilt.
1789
1790 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1791 add integer count field.
1792 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1793 omp_nest_lock_t type change.
1794 (omp_init_nest_lock): Likewise. Initialize count to 0.
1795 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1796 Increment count.
1797 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1798 Decrement count.
1799 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1800 Increment count if successful and return the new nesting level.
1801 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1802 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1803 * testsuite/libgomp.c/lib-1.c: New test.
1804 * testsuite/libgomp.fortran/lib1.f90: New test.
1805 * testsuite/libgomp.fortran/lib2.f: New test.
1806 * testsuite/libgomp.fortran/lib3.f: New test.
1807
18082005-11-17 Richard Henderson <rth@redhat.com>
1809
1810 PR 24845
1811 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1812 * configure.ac (link_gomp): New. Substitute it.
1813 (AC_CONFIG_FILES): Add libgomp.spec.
1814 * libgomp.spec.in: New file.
1815 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1816 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1817
18182005-11-18 Jakub Jelinek <jakub@redhat.com>
1819
1820 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1821 reduction(-:var) behaving the same as reduction(+:var).
1822 * testsuite/libgomp.c/reduction-4.c: New test.
1823
18242005-11-15 Uros Bizjak <uros@kss-loka.si>
1825
1826 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1827 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1828 testsuite/libgomp.c/copyin-3.c,
1829 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1830 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1831 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1832 testsuite/libgomp.c++/pr24455.C,
1833 testsuite/libgomp.fortran/threadprivate1.f90,
1834 testsuite/libgomp.fortran/threadprivate2.f90,
1835 testsuite/libgomp.fortran/threadprivate3.f90,
1836 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1837 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1838 testsuite/libgomp.fortran/omp_parse3.f90: Require
1839 effective-target TLS.
1840
18412005-11-14 Diego Novillo <dnovillo@redhat.com>
1842
1843 * HEADER: Remove.
1844
18452005-11-13 Jakub Jelinek <jakub@redhat.com>
1846
1847 PR libgomp/24797
1848 * team.c (initialize_team): Pass NULL rather than free as
1849 pthread_key_create destructor. Initialize thread specific data
1850 pointer in initial thread to a static local variable rather than
1851 malloced memory.
1852
18532005-11-11 Uros Bizjak <uros@kss-loka.si>
1854
1855 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1856 its location to ld_library_path.
1857
18582005-11-10 Diego Novillo <dnovillo@redhat.com>
1859
1860 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1861
18622005-11-10 Diego Novillo <dnovillo@redhat.com>
1863
1864 * testsuite/libgomp.c: Rename from libgomp.dg.
1865
18662005-11-09 Diego Novillo <dnovillo@redhat.com>
1867
1868 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1869 threadprivate variable 'i'.
1870
18712005-11-09 Jakub Jelinek <jakub@redhat.com>
1872
1873 * config/linux/s390/futex.h: New file.
1874 * configure.tgt: Use it.
1875
1876 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1877 before the parallel.
1878
18792005-11-08 Jakub Jelinek <jakub@redhat.com>
1880
1881 PR c++/24734
1882 * testsuite/libgomp.c++/master-1.C: New test.
1883
18842005-11-07 Jakub Jelinek <jakub@redhat.com>
1885
1886 * testsuite/libgomp.dg/copyin-3.c: New test.
1887
18882005-11-07 Jakub Jelinek <jakub@redhat.com>
1889
1890 * testsuite/libgomp.fortran/retval1.f90: New test.
1891 * testsuite/libgomp.fortran/vla7.f90: New test.
1892
18932005-11-06 Jakub Jelinek <jakub@redhat.com>
1894
1895 * testsuite/libgomp.fortran/vla2.f90: New test.
1896 * testsuite/libgomp.fortran/vla3.f90: New test.
1897 * testsuite/libgomp.fortran/vla4.f90: New test.
1898 * testsuite/libgomp.fortran/vla5.f90: New test.
1899 * testsuite/libgomp.fortran/vla6.f90: New test.
1900
19012005-11-01 Jakub Jelinek <jakub@redhat.com>
1902
1903 * config/linux/sparc/futex.h: New file.
1904 * configure.tgt: Use it.
1905 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1906
1907 * critical.c: Include stdlib.h.
1908 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1909 ignoring return value.
1910 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1911 LIBGOMP_CHECK_SYNC_BUILTINS check.
1912 * configure: Rebuilt.
1913
19142005-10-31 Jakub Jelinek <jakub@redhat.com>
1915
1916 * testsuite/libgomp.fortran/vla1.f90: New test.
1917
19182005-10-31 Richard Henderson <rth@redhat.com>
1919
1920 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1921 setting 's' in different threads.
1922
19232005-10-31 Jakub Jelinek <jakub@redhat.com>
1924
1925 * libgomp.h (attribute_hidden, ialias): Define.
1926 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1927 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1928 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1929 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1930 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1931 omp_test_lock, omp_test_nest_lock): Likewise.
1932 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1933 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1934 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1935 omp_test_lock, omp_test_nest_lock): Likewise.
1936 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1937 omp_get_dynamic, omp_get_nested): Likewise.
1938 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1939 omp_get_thread_num, omp_in_parallel): Likewise.
1940 * fortran.c (ialias_redirect): Define.
1941 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1942 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1943 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1944 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1945 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1946 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1947 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1948 omp_get_wtime): Add ialias_redirect.
1949
19502005-10-30 Jakub Jelinek <jakub@redhat.com>
1951
1952 * fortran.c: Include stdlib.h.
1953
19542005-10-29 Jakub Jelinek <jakub@redhat.com>
1955
1956 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1957 * Makefile.in: Regenerated.
1958
19592005-10-28 Jakub Jelinek <jakub@redhat.com>
1960
1961 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1962 * libgomp_f.h.in (omp_check_defines): New function.
1963 * env.c: Include libgomp_f.h.
1964 (initialize_env): Call omp_check_defines.
1965
1966 * testsuite/libgomp.dg/copyin-2.c: New test.
1967 * testsuite/libgomp.c++/copyin-2.C: New test.
1968 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1969
1970 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1971 * testsuite/libgomp.fortran/sharing2.f90: New test.
1972
1973 * testsuite/libgomp.dg/copyin-1.c: New test.
1974 * testsuite/libgomp.c++/copyin-1.C: New test.
1975
19762005-10-26 Jakub Jelinek <jakub@redhat.com>
1977
1978 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1979
1980 * testsuite/libgomp.fortran/workshare1.f90: New test.
1981
1982 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1983 only test.
1984 * libgomp.fortran/sharing1.f90: New test.
1985
19862005-10-24 Jakub Jelinek <jakub@redhat.com>
1987
1988 PR c++/24502
1989 * testsuite/libgomp.c++/loop-7.C: New test.
1990
1991 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1992
1993 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1994 * testsuite/libgomp.fortran/reduction6.f90: New test.
1995 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1996
19972005-10-23 Richard Henderson <rth@redhat.com>
1998
1999 * testsuite/libgomp.c++/ctor-1.C: New.
2000 * testsuite/libgomp.c++/ctor-2.C: New.
2001 * testsuite/libgomp.c++/ctor-3.C: New.
2002 * testsuite/libgomp.c++/ctor-4.C: New.
2003 * testsuite/libgomp.c++/ctor-5.C: New.
2004 * testsuite/libgomp.c++/ctor-6.C: New.
2005 * testsuite/libgomp.c++/ctor-7.C: New.
2006 * testsuite/libgomp.c++/ctor-8.C: New.
2007 * testsuite/libgomp.c++/ctor-9.C: New.
2008
20092005-10-21 Diego Novillo <dnovillo@redhat.com>
2010
2011 PR 24455
2012 * testsuite/libgomp.c++/pr24455-1.C: New test.
2013 * testsuite/libgomp.c++/pr24455.C: New test.
2014 * testsuite/libgomp.dg/pr24455-1.c: New test.
2015 * testsuite/libgomp.dg/pr24455.c: New test.
2016
20172005-10-20 Richard Henderson <rth@redhat.com>
2018
2019 * testsuite/libgomp.c++/loop-6.C: New.
2020 * testsuite/libgomp.dg/loop-3.c: New.
2021
20222005-10-20 Jakub Jelinek <jakub@redhat.com>
2023
2024 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2025 explicitly private.
2026 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2027 explicitly shared.
2028
20292005-10-19 Diego Novillo <dnovillo@redhat.com>
2030
2031 * testsuite/libgomp.fortran/jacobi.f: New test.
2032
20332005-10-19 Richard Henderson <rth@redhat.com>
2034
2035 * configure.tgt (i?86-linux): Default to with_arch instead of
2036 CFLAGS. Add -mtune to match target_cpu.
2037 (x86_64-linux): Tune to i686.
2038
2039 * fortran.c (omp_test_nest_lock_): Fix typo.
2040
20412005-10-19 Jakub Jelinek <jakub@redhat.com>
2042
2043 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2044 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2045 * testsuite/libgomp.dg/ordered-3.c: New test.
2046
2047 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2048 Remove volatile keyword.
2049
2050 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2051 in COMMON block to avoid warnings on 64-bit targets.
2052
20532005-10-18 Diego Novillo <dnovillo@redhat.com>
2054
2055 * testsuite/libgomp.dg/shared-3.c: New test.
2056
20572005-10-18 Jakub Jelinek <jakub@redhat.com>
2058
2059 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2060 * testsuite/libgomp.fortran/reduction5.f90: New test.
2061
20622005-10-18 Jakub Jelinek <jakub@redhat.com>
2063
2064 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2065 dg-options.
2066 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2067 flush loop now that __sync_synchronize has proper memory barrier.
2068 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2069 Add -ffixed-form to dg-options.
2070
20712005-10-17 Diego Novillo <dnovillo@redhat.com>
2072
2073 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2074 from subdirectories.
2075 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2076 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2077 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2078 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2079 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2080 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2081 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2082 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2083 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2084 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2085 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2086 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2087 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2088 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2089 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2090 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2091 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2092 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2093 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2094 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2095 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2096 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2097 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2098 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2099 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2100
21012005-10-17 Jakub Jelinek <jakub@redhat.com>
2102
2103 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2104 lang_library_path exists. Use find instead of glob to gather tests.
2105 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2106
21072005-10-17 Diego Novillo <dnovillo@redhat.com>
2108
2109 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2110 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2111 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2112 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2113 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2114 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2115 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2116 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2117 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2118 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2119 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2120 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2121 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2122
21232005-10-15 Jakub Jelinek <jakub@redhat.com>
2124
2125 * testsuite/libgomp.dg/vla-1.c: New test.
2126
2127 * testsuite/libgomp.fortran/reference2.f90: New test.
2128
2129 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2130 declaration of omp_get_thread_num.
2131 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2132 use omp_lib.
2133
2134 * testsuite/libgomp.fortran/reduction1.f90: New test.
2135 * testsuite/libgomp.fortran/reduction2.f90: New test.
2136 * testsuite/libgomp.fortran/reduction3.f90: New test.
2137 * testsuite/libgomp.fortran/reduction4.f90: New test.
2138
21392005-10-13 Richard Henderson <rth@redhat.com>
2140
2141 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2142 * Makefile.in: Regenerate.
2143 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2144 * libgomp.h: Include bar.h.
2145 (struct gomp_barrier): Remove.
2146 (struct gomp_team): Add barrier. Replace master_barrier with
2147 master_release. Replace threads with ordered_release.
2148 (struct gomp_thread): Replace barrier with release.
2149 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2150 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2151 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2152 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2153 (GOMP_single_copy_end): Likewise.
2154 * team.c (gomp_threads_dock): New.
2155 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2156 (gomp_thread_start): Use gomp_barrier_wait.
2157 (new_team, free_team): Update for gomp_team changes.
2158 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2159 (gomp_team_end): Use gomp_barrier_wait.
2160 (initialize_team): Update for gomp_thread changes.
2161 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2162 (gomp_work_share_end_nowait): Use atomic ops when available.
2163 * config/linux/bar.c, config/linux/bar.h: New files.
2164 * config/posix/bar.c, config/posix/bar.h: New files.
2165
21662005-10-13 Jakub Jelinek <jakub@redhat.com>
2167
2168 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2169 * testsuite/libgomp.dg/single-2.c: New test.
2170
2171 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2172 lang_link_flags): Unset, so that they aren't inherited from previously
2173 sourced *.exp.
2174
2175 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2176
21772005-10-12 Richard Henderson <rth@redhat.com>
2178
2179 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2180 (libgomp_init): Use lang_test_file, lang_library_path, and
2181 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2182
2183 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2184 (lang_test_file, lang_link_flags): New.
2185 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2186
2187 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2188 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2189 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2190 testsuite/libgomp.c++/parallel-1.C,
2191 testsuite/libgomp.c++/reduction-1.C,
2192 testsuite/libgomp.c++/reduction-2.C,
2193 testsuite/libgomp.c++/reduction-3.C,
2194 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2195 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2196 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2197 New files, largely cribbed from the C testsuite.
2198
21992005-10-12 Jakub Jelinek <jakub@redhat.com>
2200
2201 * testsuite/libgomp.fortran/character1.f90: New test.
2202 * testsuite/libgomp.fortran/character2.f90: New test.
2203
2204 * testsuite/libgomp.dg/nested-1.c: New test.
2205 * testsuite/libgomp.dg/nested-2.c: New test.
2206 * testsuite/libgomp.fortran/do1.f90: New test.
2207 * testsuite/libgomp.fortran/do2.f90: New test.
2208
2209 * testsuite/libgomp.fortran/reference1.f90: New test.
2210
22112005-10-11 Jakub Jelinek <jakub@redhat.com>
2212
2213 * testsuite/libgomp.dg/reduction-1.c: New test.
2214 * testsuite/libgomp.dg/reduction-2.c: New test.
2215 * testsuite/libgomp.dg/reduction-3.c: New test.
2216
22172005-10-10 Jakub Jelinek <jakub@redhat.com>
2218
2219 * testsuite/libgomp.dg/atomic-1.c: New test.
2220 * testsuite/libgomp.dg/atomic-2.c: New test.
2221
22222005-10-09 Richard Henderson <rth@redhat.com>
2223
2224 * critical.c (atomic_lock): New.
2225 (initialize_critical): Initialize it.
2226 (GOMP_atomic_start, GOMP_atomic_end): New.
2227 * libgomp.map: Export them.
2228 * libgomp_g.h: Declare them.
2229
2230 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2231
22322005-10-02 Richard Henderson <rth@redhat.com>
2233
2234 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2235 to XCFLAGS instead of CFLAGS.
2236
22372005-09-30 Richard Henderson <rth@redhat.com>
2238
2239 * configure.ac: Determine whether -pthread or -lpthread is needed.
2240 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2241 * Makefine.in, configure: Rebuild.
2242
22432005-09-28 Richard Henderson <rth@redhat.com>
2244
2245 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2246 * testsuite/libgomp.dg/omp-single-3.c: New test.
2247
22482005-09-28 Diego Novillo <dnovillo@redhat.com>
2249
2250 * testsuite/libgomp.dg/omp-single-2.c: New test.
2251 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2252
22532005-09-27 Richard Henderson <rth@redhat.com>
2254
2255 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2256 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2257
22582005-09-27 Jakub Jelinek <jakub@redhat.com>
2259
2260 * testsuite/libgomp.dg/omp-loop03.c: New test.
2261
22622005-09-27 Diego Novillo <dnovillo@redhat.com>
2263
2264 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2265
22662005-09-27 Diego Novillo <dnovillo@redhat.com>
2267
2268 * testsuite/libgomp.dg/omp-single-1.c: New test.
2269 * testsuite/libgomp.dg/shared-1.c: Return 0.
2270 Add prototype for abort.
2271 * testsuite/libgomp.dg/shared-2.c: Likewise.
2272
22732005-09-26 Jakub Jelinek <jakub@redhat.com>
2274
2275 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2276 constructs.
2277
22782005-09-26 Diego Novillo <dnovillo@redhat.com>
2279
2280 * testsuite/libgomp.dg/shared-1.c: New test.
2281 * testsuite/libgomp.dg/shared-2.c: New test.
2282
22832005-09-24 Richard Henderson <rth@redhat.com>
2284
2285 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2286
22872005-09-24 Richard Henderson <rth@redhat.com>
2288
2289 * iter.c (gomp_iter_static_next): Round up when computing number
2290 of iterations. Don't bother distributing a remainder equally.
2291
2292 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2293 Don't call srand. Zero b before testing.
2294 (main): New.
2295
22962005-09-24 Jakub Jelinek <jakub@redhat.com>
2297
2298 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2299 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2300
23012005-09-23 Jakub Jelinek <jakub@redhat.com>
2302
2303 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2304 without !$omp end do, followed immediately by subroutine end.
2305
23062005-09-23 Diego Novillo <dnovillo@redhat.com>
2307
2308 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2309
23102005-09-22 Richard Henderson <rth@redhat.com>
2311
2312 * critical.c (GOMP_critical_name_start): Change argument to void**.
2313 Reuse the pointer space if the mutex fits.
2314 (GOMP_critical_name_end): Likewise.
2315 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2316 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2317 (GOMP_critical_name_end): Likewise.
2318 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2319 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2320
23212005-09-20 Richard Henderson <rth@redhat.com>
2322
2323 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2324 (create_lock_lock): New.
2325 (initialize_critical): Initialize it.
2326 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2327 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2328
23292005-09-20 Diego Novillo <dnovillo@redhat.com>
2330
2331 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2332
23332005-09-20 Diego Novillo <dnovillo@redhat.com>
2334
2335 * testsuite/libgomp.dg/omp-loop01.c: New test.
2336 * testsuite/libgomp.dg/omp-loop02.c: New test.
2337
23382005-09-20 Jakub Jelinek <jakub@redhat.com>
2339
2340 * configure.ac (AC_PROG_FC): Add.
2341 (USE_FORTRAN): New automake conditional.
2342 * configure: Rebuilt.
2343 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2344 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2345 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2346 Add rules to build them.
2347 * Makefile.in: Rebuilt.
2348 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2349 OMP_NEST_LOCK_KIND.
2350 * libgomp.map: Add Fortran wrappers.
2351 * libgomp_f.h.in: New file.
2352 * omp_lib.h.in: New file.
2353 * omp_lib.f90.in: New file.
2354 * fortran.c: New file.
2355 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2356 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2357 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2358 libgfortran has been built.
2359 * testsuite/libgomp.fortran/fortran.exp: New file.
2360 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2361 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2362 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2363 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2364 * testsuite/libgomp.fortran/omp_hello.f: New test.
2365 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2366 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2367 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2368 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2369 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2370 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2371 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2372 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2373
23742005-08-30 Richard Henderson <rth@redhat.com>
2375
2376 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2377 function for when aliases are not usable.
2378 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2379 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2380 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2381 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2382 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2383 GOMP_loop_ordered_guided_next): Likewise.
2384 * ordered.c (GOMP_ordered_start): Likewise.
2385
23862005-08-01 Diego Novillo <dnovillo@redhat.com>
2387
2388 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2389 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2390 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2391 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2392 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2393 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2394 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2395 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2396 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2397
23982005-07-07 Eric Christopher <echristo@redhat.com>
2399 Diego Novillo <dnovillo@redhat.com>
2400
2401 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2402 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2403 up code.
2404 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2405 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2406 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2407 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2408 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2409 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2410 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2411
24122005-06-13 Diego Novillo <dnovillo@redhat.com>
2413
2414 * TOPLEVEL.patch: Remove.
2415
24162005-05-16 Richard Henderson <rth@redhat.com>
2417
2418 * configure.ac: Test for clock_gettime.
2419 * config.h.in, configure: Rebuild.
2420 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2421 (omp_get_wtime): Use clock_gettime if available.
2422 (omp_get_wtick): Use clock_getres if available.
2423
24242005-05-11 Richard Henderson <rth@redhat.com>
2425
2426 * config/linux/ia64/futex.h: New file.
2427 * configure.tgt: Use it.
2428
2429 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2430
24312005-05-07 Richard Henderson <rth@redhat.com>
2432
2433 * config/linux/powerpc/futex.h: New file.
2434 * configure.tgt: Use it.
2435
2436 * config/linux/i486/futex.h: Merge ...
2437 * config/linux/x86_64/futex.h: ... into ...
2438 * config/linux/x86/futex.h: ... here.
2439 * configure.tgt: Update to match.
2440
24412005-05-06 Richard Henderson <rth@redhat.com>
2442
2443 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2444 * config/linux/i486/futex.h: Likewise.
2445 * config/linux/x86_64/futex.h: Likewise.
2446
2447 * config/linux/lock.c: New file.
2448 * config/linux/omp-lock.h: New file.
2449
2450 * critical.c, env.h: Don't include omp.h
2451 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2452 * config/posix/time.c: Likewise.
2453 * config/posix/omp-lock.h: New file.
2454 * libgomp.h: Include omp-lock.h and omp.h.
2455 * Makefile.am (nodist_include_HEADERS): New.
2456 (omp.h): New rule.
2457 * configure.ac (PERL): New.
2458 * mkomp_h.pl: New file.
2459 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2460 with templates.
2461 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2462
2463 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2464 build directory. Re-add -march=i486 hack.
2465
2466 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2467 (libgomp_link_flags): Remove.
2468 (libgomp_initialized): Remove.
2469 (libgomp_init): Don't protect from reinitialization. Copy code
2470 from libstdc++ for getting the multilib set correctly.
2471
24722005-05-05 Richard Henderson <rth@redhat.com>
2473
2474 * config/linux/alpha/futex.h: New file.
2475 * configure.tgt (alpha*-*-linux*): Use it.
2476
2477 * config/posix/mutex.c: New file.
2478 * config/posix/sem.c: Use libgomp.h.
2479
2480 * configure.tgt (x86_64-linux): Also test CC for -m32.
2481 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2482
a1daed2d 2483 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
2484 after $gccpath.
2485
2486 * Makefile.am (SUBDIRS): New.
2487 (libgomp_la_LDFLAGS): Add -lpthread.
2488 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2489 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2490
2491 * libgomp_g.h: New file.
2492 * libgomp.h: Split out all public declarations to libgomp_g.h.
2493 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2494 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2495 * config/linux/sem.h: Likewise.
2496 * config/posix/sem.h: Likewise.
2497
2498 * Makefile.am (AM_LDFLAGS): New.
2499 (libgomp_version_script): Split out from ...
2500 (libgomp_la_LDFLAGS): ... here.
2501 (libgomp_version_info): New.
2502 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2503 (LIBGOMP_ENABLE): New.
2504 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2505 (LIBGOMP_ENABLE_SYMVERS): New.
2506 * configure.ac (AC_INIT): Version 1.0.
2507 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2508 (enable-linux-futex): Likewise. Rename from enable-futex.
2509 (libtool_VERSION): New.
2510 (LIBGOMP_ENABLE_SYMVERS): Use it.
2511 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2512 * Makefile.in, aclocal.m4, configure: Rebuild.
2513
2514 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2515 (gomp_mutex_unlock_slow): Fix typo.
2516 * config/linux/sem.c: Similarly.
2517 (gomp_sem_post_slow): Fix typo.
2518 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2519 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2520 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2521
2522 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2523 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2524 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2525 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2526 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2527 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2528 LDFLAGS. Pull enable_futex check to top-level.
2529 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2530 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2531
2532 First attempt at real configury.
2533 * Makefile, config.h: Remove file.
2534 * Makefile.am, Makefile.in: New file.
2535 * acinclude.m4 aclocal.m4: New file.
2536 * configure.ac, configure.tgt, configure: New file.
2537
2538 * config/posix/lock.c: Rename from sys-lock.c.
2539 * config/posix/mutex.h: Rename from sys-mutex.h.
2540 * config/posix/sem.c: Rename from sys-sem.c.
2541 * config/posix/sem.h: Rename from sys-sem.h.
2542 * config/posix/proc.c: Rename from sys-proc.c.
2543 * config/posix/time.c: Rename from sys-proc.c.
2544
2545 * config/linux/mutex.c: New file.
2546 * config/linux/mutex.h: New file.
2547 * config/linux/sem.c: New file.
2548 * config/linux/sem.h: New file.
2549 * config/linux/i486/futex.h: New file.
2550 * config/linux/x86_64/futex.h: New file.
2551
25522005-05-04 Richard Henderson <rth@redhat.com>
2553
2554 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2555 * libgomp.h: Declare them.
2556 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2557 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2558
25592005-05-04 Richard Henderson <rth@redhat.com>
2560
2561 * libgomp-1 code drop
2562
25632005-05-04 Richard Henderson <rth@redhat.com>
2564
2565 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2566 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2567 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2568 (gomp_iter_static_next): Update.
2569 (gomp_ordered_static_next): Update.
2570 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2571 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2572 totally empty range.
2573 (gomp_loop_ordered_static_next): Refine test for calling
2574 gomp_ordered_static_next.
2575 * testsuite/ordered-1.c: Add case for more threads than iterations.
2576
2577 * iter.c (gomp_iter_runtime_next_locked): Remove.
2578 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 2579 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
2580 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2581 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2582 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2583 gomp_loop_ordered_guided_next): Downcase name, make static, add
2584 an external alias with the old name.
2585 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2586 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2587 switch and call one of the above static functions.
2588 * libgomp.h: Update.
2589
2590 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2591 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2592 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2593 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2594 GOMP_loop_ordered_guided_start): Update to match.
2595 * sections.c (GOMP_sections_start): Likewise.
2596 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2597
2598 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2599 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2600 Use bounds check instead of modulus.
2601 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2602 (gomp_ordered_last): Don't sync with ordered_owner here.
2603 (gomp_ordered_next): Likewise.
2604 (gomp_ordered_static_loop_next): Likewise.
2605 * loop.c, libgomp.h: Update to match.
2606
2607 * libgomp.h (GOMP_barrier): Declare.
2608
2609 * testsuite/barrier-1.c: New file.
2610 * testsuite/critical-1.c: New file.
2611 * testsuite/ordered-2.c: New file.
2612 * testsuite/ordered-1.c: New file.
2613 * testsuite/sections-1.c: New file.
2614 * testsuite/single-1.c: New file.
2615 * testsuite/Makefile (TESTS): Add them.
2616
26172005-05-04 Richard Henderson <rth@redhat.com>
2618
2619 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2620 * loop.c (GOMP_loop_static_start): If not the startup thread,
2621 acquire the mutex to wait for initialization complete.
2622 (GOMP_loop_ordered_static_start): Likewise.
2623 (GOMP_loop_ordered_runtime_start): Likewise.
2624 (GOMP_loop_ordered_static_first): Remove.
2625 (GOMP_loop_ordered_dynamic_first): Remove.
2626 (GOMP_loop_ordered_guided_first): Remove.
2627 (GOMP_loop_ordered_runtime_first): Remove.
2628 * ordered.c (gomp_ordered_loop_first): Post to own release when
2629 we're the first thread.
2630 (gomp_ordered_loop_last): Wait on release if not owner.
2631 (gomp_ordered_loop_next): Likewise.
2632 (gomp_ordered_static_loop_init): New.
2633 (gomp_ordered_static_loop_next): Use ordered_owner.
2634 (GOMP_ordered_start): Likewise.
2635 * work.c (gomp_new_work_share): Initialize ordered_owner.
2636
26372005-05-03 Richard Henderson <rth@redhat.com>
2638
2639 * Makefile (OPT): New.
2640 (CFLAGS): Use it.
2641
2642 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2643 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2644 * libgomp.h, libgomp.map, NOTES: Update to match.
2645
2646 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2647 Add initialized and thr members.
2648 (gomp_thread_start): Pause when initially spawned to wait for
2649 the whole team to be created.
2650 (gomp_team_start): Release team members at the end.
2651
2652 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2653 (f_foo_1): Use GOMP_loop_end.
2654 (f_foo_2): Use GOMP_loop_end_nowait.
2655
2656 * testsuite/loop-2.c: New file.
2657 * testsuite/Makefile (TESTS): Add it.
2658
26592005-05-03 Richard Henderson <rth@redhat.com>
2660
2661 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2662 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2663 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2664 initial work_share.
2665
2666 * testsuite/Makefile: New file.
2667 * testsuite/loop-1.c: New file.
2668
26692005-05-03 Richard Henderson <rth@redhat.com>
2670
2671 Initial implementation and checkin.