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