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