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