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