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