1 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3 * Makefile.am: Add install-pdf target as copied from
5 * Makefile.in: Regenerate
7 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10 * configure: Regenerate.
13 * testsuite/libgomp.c++/pr30703.C: New test.
15 2007-02-02 Jakub Jelinek <jakub@redhat.com>
18 2006-07-05 Eric Christopher <echristo@apple.com>
19 * configure.ac: Depend addition of -pthread on host OS.
20 * configure: Regenerate.
22 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24 * libgomp.texi: Fix spacing after abbreviations.
26 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
29 * configure.ac: Add check for makeinfo
30 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
31 if an appropiate version of makeinfo is found.
32 * aclocal.m4: Regenerated.
33 * configure: Regenerated.
34 * Makefile.in: Regenerated.
35 * testsuite/Makefile.in: Regenerated.
37 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
40 * libgomp.texi: More about implementation-dependent settings.
42 2007-01-26 Tobias Burnus <burnus@net-b.de>
44 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
46 2007-01-24 Jakub Jelinek <jakub@redhat.com>
49 * testsuite/libgomp.c/pr30494.c: New test.
51 2007-01-15 Tom Tromey <tromey@redhat.com>
54 * configure.ac: Fixed comment.
56 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
58 * libgomp.texi: Document implementation specific default values of
59 environment variables.
61 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
64 * libgomp.texi: New file.
65 * configure.ac: Add --enable-generated-files-in-srcdir option.
66 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
68 * Makefile.in: Regenerated.
69 * config.h.in: Regenerated.
70 * testsuite/Makefile.in: Regenerated.
73 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
76 * env.c (omp_set_num_threads): Set illegal thread count to 1.
78 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
80 * configure: Regenerate.
82 2006-12-04 Jakub Jelinek <jakub@redhat.com>
85 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
86 start if there shouldn't be any loop iterations.
87 (gomp_loop_ordered_static_start): Remove start == end test.
88 * testsuite/libgomp.c/pr29947-1.c: New test.
89 * testsuite/libgomp.c/pr29947-2.c: New test.
91 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
93 * configure.tgt: Force initial-exec TLS model on Linux only.
95 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
97 * configure: Regenerated.
99 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
101 * env.c (parse_schedule): Reject out of range values.
102 (parse_unsigned_long): Reject out of range, negative or zero values.
104 2006-10-29 Jakub Jelinek <jakub@redhat.com>
107 * testsuite/libgomp.fortran/pr29629.f90: New test.
109 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
112 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
113 * config/posix95: New directory.
114 * config/posix95/omp-lock.h: New file.
115 * config/posix95/lock.c: Likewise.
117 2006-10-14 Geoffrey Keating <geoffk@apple.com>
119 * aclocal.m4: Regenerate.
120 * configure: Regenerate.
122 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
124 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
127 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
129 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
131 * configure: Regenerate.
132 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
134 2006-09-26 Jakub Jelinek <jakub@redhat.com>
138 * testsuite/libgomp.c/nestedfn-4.c: New test.
139 * testsuite/libgomp.c/nestedfn-5.c: New test.
140 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
143 * testsuite/libgomp.fortran/condinc1.f: New test.
144 * testsuite/libgomp.fortran/condinc2.f: New test.
145 * testsuite/libgomp.fortran/condinc3.f90: New test.
146 * testsuite/libgomp.fortran/condinc4.f90: New test.
147 * testsuite/libgomp.fortran/condinc1.inc: New file.
149 2006-09-18 Tom Tromey <tromey@redhat.com>
151 * configure: Rebuilt.
153 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
156 PR preprocessor/14634
157 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
159 * configure: Regenerate.
161 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
163 * testsuite/libgomp.fortran/reduction3.f90: Change
164 -2147483648 to -huge(i)-1 to avoid overflow.
165 * testsuite/libgomp.fortran/reduction4.f90: Change
166 Z'ffffffff' to not(0) to avoid overflow.
168 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
171 * Makefile.am (libsubincludedir): New.
172 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
173 * Makefile.in: Regenerate.
175 2006-08-17 Jakub Jelinek <jakub@redhat.com>
178 * env.c: Include ctype.h.
179 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
180 leading and/or trailing whitespace and compare strings case
183 2006-07-16 Jakub Jelinek <jakub@redhat.com>
186 * testsuite/libgomp.fortran/pr28390.f: New test.
188 2006-07-05 Eric Christopher <echristo@apple.com>
190 * configure.ac: Depend addition of -pthread on host OS.
191 * configure: Regenerate.
193 2006-06-21 Jakub Jelinek <jakub@redhat.com>
195 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
196 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
199 2006-06-20 Jakub Jelinek <jakub@redhat.com>
203 * configure.ac: If neither --enable-linux-futex nor
204 --disable-linux-futex is passed, determine the default by checking
205 for compiling and/or running against NPTL. With --enable-linux-futex,
206 check if SYS_gettid and SYS_futex are defined.
207 * configure: Rebuilt.
209 2006-06-14 Richard Henderson <rth@redhat.com>
212 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
213 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
215 2006-06-09 Richard Henderson <rth@redhat.com>
217 * env.c (gomp_nthreads_var): Change to unsigned long.
218 (gomp_run_sched_chunk): Likewise.
219 (parse_unsigned_long): Rename from parse_num_threads and generalize.
220 (initialize_env): Initialize gomp_thread_attr.
221 * libgomp.h (gomp_nthreads_var): Update decl.
222 (gomp_run_sched_chunk): Likewise.
223 (gomp_thread_attr): Declare.
224 * team.c (gomp_thread_attr): Export.
225 (initialize_team): Don't initialize it.
227 2006-06-09 Jakub Jelinek <jakub@redhat.com>
230 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
231 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
233 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
235 * config/mingw32/time.c: New file.
236 * configure.tgt: Use it.
238 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
240 * Makefile.am: Add install-html target. Add install-html to .PHONY
241 * Makefile.in: Regenerate.
243 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
246 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
247 * testsuite/libgomp.c/critical-1.c: Likewise.
248 * testsuite/libgomp.c/loop-1.c: Likewise.
249 * testsuite/libgomp.c/loop-2.c: Likewise.
250 * testsuite/libgomp.c/single-1.c: Likewise.
251 * testsuite/libgomp.c/ordered-1.c: Likewise.
252 * testsuite/libgomp.c/ordered-2.c: Likewise.
254 2006-05-15 Jakub Jelinek <jakub@redhat.com>
257 * libgomp.fortran/pr27416-1.f90: New test.
259 2006-05-03 Jakub Jelinek <jakub@redhat.com>
262 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
263 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
265 2006-05-02 Jakub Jelinek <jakub@redhat.com>
268 * testsuite/libgomp.c/pr26943-1.c: New test.
269 * testsuite/libgomp.c/pr26943-2.c: New test.
270 * testsuite/libgomp.c/pr26943-3.c: New test.
271 * testsuite/libgomp.c/pr26943-4.c: New test.
272 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
273 * testsuite/libgomp.c++/pr26943.C: New test.
275 2006-05-02 Jakub Jelinek <jakub@redhat.com>
278 * testsuite/libgomp.c++/pr27337.C: New test.
280 2006-04-26 Jakub Jelinek <jakub@redhat.com>
283 * testsuite/libgomp.c/pr26171.c: New test.
285 2006-04-25 Richard Henderson <rth@redhat.com>
288 * configure.ac: Use GCC_CHECK_TLS.
289 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
290 * Makefile.in, aclocal.m4, configure: Regenerate.
292 2006-04-10 Matthias Klose <doko@debian.org>
294 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
295 directory names containing underscores.
297 2006-03-21 Jakub Jelinek <jakub@redhat.com>
300 * testsuite/libgomp.c++/pr26691.C: New test.
302 2006-03-13 Jakub Jelinek <jakub@redhat.com>
304 * testsuite/libgomp.fortran/retval2.f90: New test.
306 2006-03-09 Diego Novillo <dnovillo@redhat.com>
308 * testsuite/libgomp.c++: New directory.
310 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
312 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
313 * config/posix/sem.c: Implement the above.
315 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
317 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
318 define HAVE_BROKEN_POSIX_SEMAPHORES.
319 * configure: Rebuilt.
320 * config.h.in: Rebuilt.
322 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
325 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
326 for the other pthread check.
327 * configure: Regenerate.
328 * config.h.in: Regenerate.
330 2006-02-15 Jakub Jelinek <jakub@redhat.com>
334 * Makefile.am (fincludedir): New variable.
335 (nodist_include_HEADERS): Remove Fortran files.
336 (nodist_finclude_HEADERS): New variable.
337 * Makefile.in: Regenerated.
339 2006-02-13 Jakub Jelinek <jakub@redhat.com>
341 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
342 Remove tests for returning assumed character length arrays.
344 2006-02-12 Roger Sayle <roger@eyesopen.com>
345 John David Anglin <dave@hiauly1.hia.nrc.ca>
348 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
350 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
352 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
354 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
356 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
357 part of LD_LIBRARY_PATH manually.
359 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
362 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
365 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
368 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
369 * configure.ac (PERL): Don't set.
370 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
371 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
372 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
373 * omp.h.in: Wrap the new configure substitutions with @ characters.
374 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
375 * aclocal.m4, configure, Makefile.in: Regenerate.
376 * mkomp_h.pl: Delete.
378 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
381 * configure.ac: Use GCC_HEADER_STDINT.
382 * libgomp.h: Include gstdint.h.
383 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
384 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
386 2006-01-24 Richard Henderson <rth@redhat.com>
389 * configure.ac: Add AM_MAINTAINER_MODE.
390 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
392 2006-01-24 Diego Novillo <dnovillo@redhat.com>
394 * Makefile.in: Regenerate.
395 * testsuite/Makefile.in: Regenerate.
396 * aclocal.m4: Regenerate.
398 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
400 * config/posix/proc.c: Conditional include of sys/loadavg.h for
402 * configure.ac: Add check for loadavg.h.
403 (link_gomp): Adjust comment.
404 * configure: Regenerate.
405 * config.h.in: Regenerate.
407 2006-01-21 Steve Ellcey <sje@cup.hp.com>
410 * configure.ac: Remove check for alloca.h.
411 * configure: Regenerate.
412 * config.h.in: Regenerate.
413 * libgomp.h: define gomp_alloca to be __builtin_alloca.
414 * team.c: Remove use of alloca.h.
415 Call gomp_alloca instead of alloca.
417 2006-01-20 Steve Ellcey <sje@cup.hp.com>
420 * team.c: Add include of alloca.h.
421 * configure.ac: Add check for alloca.h.
422 * configure: Regenerate.
423 * config.h.in: Regenerate.
425 2006-01-17 Jakub Jelinek <jakub@redhat.com>
428 * testsuite/libgomp.fortran/pr25219.f90: New test.
430 2005-12-05 Uros Bizjak <uros@kss-loka.si>
432 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
433 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
434 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
435 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
436 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
437 testsuite/libgomp.fortran/threadprivate1.f90,
438 testsuite/libgomp.fortran/threadprivate2.f90,
439 testsuite/libgomp.fortran/threadprivate3.f90,
440 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
441 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
442 testsuite/libgomp.fortran/omp_parse3.f90: Change required
443 effective-target to TLS runtime.
445 * testsuite/libgomp.fortran/pr25162.f: Require
446 effective-target TLS runtime.
448 2005-12-01 Jakub Jelinek <jakub@redhat.com>
450 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
451 * testsuite/libgomp.c/nestedfn-3.c: New test.
453 2005-11-30 Jakub Jelinek <jakub@redhat.com>
456 * testsuite/libgomp.fortran/pr25162.f: New test.
458 2005-11-28 Jakub Jelinek <jakub@redhat.com>
460 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
461 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
463 2005-11-25 Jakub Jelinek <jakub@redhat.com>
465 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
466 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
467 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
468 single.c, team.c, work.c, config/linux/alpha/futex.h,
469 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
470 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
471 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
472 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
473 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
474 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
475 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
478 2005-11-18 Jakub Jelinek <jakub@redhat.com>
480 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
481 to nodist_noinst_HEADERS.
482 * Makefile.in: Rebuilt.
484 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
485 add integer count field.
486 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
487 omp_nest_lock_t type change.
488 (omp_init_nest_lock): Likewise. Initialize count to 0.
489 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
491 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
493 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
494 Increment count if successful and return the new nesting level.
495 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
496 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
497 * testsuite/libgomp.c/lib-1.c: New test.
498 * testsuite/libgomp.fortran/lib1.f90: New test.
499 * testsuite/libgomp.fortran/lib2.f: New test.
500 * testsuite/libgomp.fortran/lib3.f: New test.
502 2005-11-17 Richard Henderson <rth@redhat.com>
505 * Makefile.am (nodist_toolexeclib_HEADERS): New.
506 * configure.ac (link_gomp): New. Substitute it.
507 (AC_CONFIG_FILES): Add libgomp.spec.
508 * libgomp.spec.in: New file.
509 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
510 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
512 2005-11-18 Jakub Jelinek <jakub@redhat.com>
514 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
515 reduction(-:var) behaving the same as reduction(+:var).
516 * testsuite/libgomp.c/reduction-4.c: New test.
518 2005-11-15 Uros Bizjak <uros@kss-loka.si>
520 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
521 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
522 testsuite/libgomp.c/copyin-3.c,
523 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
524 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
525 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
526 testsuite/libgomp.c++/pr24455.C,
527 testsuite/libgomp.fortran/threadprivate1.f90,
528 testsuite/libgomp.fortran/threadprivate2.f90,
529 testsuite/libgomp.fortran/threadprivate3.f90,
530 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
531 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
532 testsuite/libgomp.fortran/omp_parse3.f90: Require
533 effective-target TLS.
535 2005-11-14 Diego Novillo <dnovillo@redhat.com>
539 2005-11-13 Jakub Jelinek <jakub@redhat.com>
542 * team.c (initialize_team): Pass NULL rather than free as
543 pthread_key_create destructor. Initialize thread specific data
544 pointer in initial thread to a static local variable rather than
547 2005-11-11 Uros Bizjak <uros@kss-loka.si>
549 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
550 its location to ld_library_path.
552 2005-11-10 Diego Novillo <dnovillo@redhat.com>
554 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
556 2005-11-10 Diego Novillo <dnovillo@redhat.com>
558 * testsuite/libgomp.c: Rename from libgomp.dg.
560 2005-11-09 Diego Novillo <dnovillo@redhat.com>
562 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
563 threadprivate variable 'i'.
565 2005-11-09 Jakub Jelinek <jakub@redhat.com>
567 * config/linux/s390/futex.h: New file.
568 * configure.tgt: Use it.
570 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
573 2005-11-08 Jakub Jelinek <jakub@redhat.com>
576 * testsuite/libgomp.c++/master-1.C: New test.
578 2005-11-07 Jakub Jelinek <jakub@redhat.com>
580 * testsuite/libgomp.dg/copyin-3.c: New test.
582 2005-11-07 Jakub Jelinek <jakub@redhat.com>
584 * testsuite/libgomp.fortran/retval1.f90: New test.
585 * testsuite/libgomp.fortran/vla7.f90: New test.
587 2005-11-06 Jakub Jelinek <jakub@redhat.com>
589 * testsuite/libgomp.fortran/vla2.f90: New test.
590 * testsuite/libgomp.fortran/vla3.f90: New test.
591 * testsuite/libgomp.fortran/vla4.f90: New test.
592 * testsuite/libgomp.fortran/vla5.f90: New test.
593 * testsuite/libgomp.fortran/vla6.f90: New test.
595 2005-11-01 Jakub Jelinek <jakub@redhat.com>
597 * config/linux/sparc/futex.h: New file.
598 * configure.tgt: Use it.
599 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
601 * critical.c: Include stdlib.h.
602 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
603 ignoring return value.
604 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
605 LIBGOMP_CHECK_SYNC_BUILTINS check.
606 * configure: Rebuilt.
608 2005-10-31 Jakub Jelinek <jakub@redhat.com>
610 * testsuite/libgomp.fortran/vla1.f90: New test.
612 2005-10-31 Richard Henderson <rth@redhat.com>
614 * testsuite/libgomp.fortran/character2.f90: Fix race condition
615 setting 's' in different threads.
617 2005-10-31 Jakub Jelinek <jakub@redhat.com>
619 * libgomp.h (attribute_hidden, ialias): Define.
620 * config/posix/proc.c (omp_get_num_procs): Add ialias.
621 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
622 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
623 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
624 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
625 omp_test_lock, omp_test_nest_lock): Likewise.
626 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
627 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
628 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
629 omp_test_lock, omp_test_nest_lock): Likewise.
630 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
631 omp_get_dynamic, omp_get_nested): Likewise.
632 * parallel.c (omp_get_num_threads, omp_get_max_threads,
633 omp_get_thread_num, omp_in_parallel): Likewise.
634 * fortran.c (ialias_redirect): Define.
635 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
636 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
637 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
638 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
639 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
640 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
641 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
642 omp_get_wtime): Add ialias_redirect.
644 2005-10-30 Jakub Jelinek <jakub@redhat.com>
646 * fortran.c: Include stdlib.h.
648 2005-10-29 Jakub Jelinek <jakub@redhat.com>
650 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
651 * Makefile.in: Regenerated.
653 2005-10-28 Jakub Jelinek <jakub@redhat.com>
655 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
656 * libgomp_f.h.in (omp_check_defines): New function.
657 * env.c: Include libgomp_f.h.
658 (initialize_env): Call omp_check_defines.
660 * testsuite/libgomp.dg/copyin-2.c: New test.
661 * testsuite/libgomp.c++/copyin-2.C: New test.
662 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
664 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
665 * testsuite/libgomp.fortran/sharing2.f90: New test.
667 * testsuite/libgomp.dg/copyin-1.c: New test.
668 * testsuite/libgomp.c++/copyin-1.C: New test.
670 2005-10-26 Jakub Jelinek <jakub@redhat.com>
672 * testsuite/libgomp.fortran/crayptr1.f90: New test.
674 * testsuite/libgomp.fortran/workshare1.f90: New test.
676 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
678 * libgomp.fortran/sharing1.f90: New test.
680 2005-10-24 Jakub Jelinek <jakub@redhat.com>
683 * testsuite/libgomp.c++/loop-7.C: New test.
685 * testsuite/libgomp.dg/nestedfn-2.c: New test.
687 * testsuite/libgomp.dg/nestedfn-1.c: New test.
688 * testsuite/libgomp.fortran/reduction6.f90: New test.
689 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
691 2005-10-23 Richard Henderson <rth@redhat.com>
693 * testsuite/libgomp.c++/ctor-1.C: New.
694 * testsuite/libgomp.c++/ctor-2.C: New.
695 * testsuite/libgomp.c++/ctor-3.C: New.
696 * testsuite/libgomp.c++/ctor-4.C: New.
697 * testsuite/libgomp.c++/ctor-5.C: New.
698 * testsuite/libgomp.c++/ctor-6.C: New.
699 * testsuite/libgomp.c++/ctor-7.C: New.
700 * testsuite/libgomp.c++/ctor-8.C: New.
701 * testsuite/libgomp.c++/ctor-9.C: New.
703 2005-10-21 Diego Novillo <dnovillo@redhat.com>
706 * testsuite/libgomp.c++/pr24455-1.C: New test.
707 * testsuite/libgomp.c++/pr24455.C: New test.
708 * testsuite/libgomp.dg/pr24455-1.c: New test.
709 * testsuite/libgomp.dg/pr24455.c: New test.
711 2005-10-20 Richard Henderson <rth@redhat.com>
713 * testsuite/libgomp.c++/loop-6.C: New.
714 * testsuite/libgomp.dg/loop-3.c: New.
716 2005-10-20 Jakub Jelinek <jakub@redhat.com>
718 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
720 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
723 2005-10-19 Diego Novillo <dnovillo@redhat.com>
725 * testsuite/libgomp.fortran/jacobi.f: New test.
727 2005-10-19 Richard Henderson <rth@redhat.com>
729 * configure.tgt (i?86-linux): Default to with_arch instead of
730 CFLAGS. Add -mtune to match target_cpu.
731 (x86_64-linux): Tune to i686.
733 * fortran.c (omp_test_nest_lock_): Fix typo.
735 2005-10-19 Jakub Jelinek <jakub@redhat.com>
737 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
738 gomp_ordered_sync): Do nothing if team->nthreads == 1.
739 * testsuite/libgomp.dg/ordered-3.c: New test.
741 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
742 Remove volatile keyword.
744 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
745 in COMMON block to avoid warnings on 64-bit targets.
747 2005-10-18 Diego Novillo <dnovillo@redhat.com>
749 * testsuite/libgomp.dg/shared-3.c: New test.
751 2005-10-18 Jakub Jelinek <jakub@redhat.com>
753 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
754 * testsuite/libgomp.fortran/reduction5.f90: New test.
756 2005-10-18 Jakub Jelinek <jakub@redhat.com>
758 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
760 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
761 flush loop now that __sync_synchronize has proper memory barrier.
762 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
763 Add -ffixed-form to dg-options.
765 2005-10-17 Diego Novillo <dnovillo@redhat.com>
767 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
769 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
770 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
771 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
772 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
773 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
774 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
775 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
776 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
777 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
778 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
779 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
780 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
781 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
782 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
783 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
784 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
785 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
786 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
787 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
788 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
789 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
790 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
791 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
792 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
793 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
795 2005-10-17 Jakub Jelinek <jakub@redhat.com>
797 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
798 lang_library_path exists. Use find instead of glob to gather tests.
799 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
801 2005-10-17 Diego Novillo <dnovillo@redhat.com>
803 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
804 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
805 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
806 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
807 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
808 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
809 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
810 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
811 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
812 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
813 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
814 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
815 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
817 2005-10-15 Jakub Jelinek <jakub@redhat.com>
819 * testsuite/libgomp.dg/vla-1.c: New test.
821 * testsuite/libgomp.fortran/reference2.f90: New test.
823 * testsuite/libgomp.fortran/character2.f90: Remove explicit
824 declaration of omp_get_thread_num.
825 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
828 * testsuite/libgomp.fortran/reduction1.f90: New test.
829 * testsuite/libgomp.fortran/reduction2.f90: New test.
830 * testsuite/libgomp.fortran/reduction3.f90: New test.
831 * testsuite/libgomp.fortran/reduction4.f90: New test.
833 2005-10-13 Richard Henderson <rth@redhat.com>
835 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
836 * Makefile.in: Regenerate.
837 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
838 * libgomp.h: Include bar.h.
839 (struct gomp_barrier): Remove.
840 (struct gomp_team): Add barrier. Replace master_barrier with
841 master_release. Replace threads with ordered_release.
842 (struct gomp_thread): Replace barrier with release.
843 * ordered.c (gomp_ordered_first): Update for ordered_release change.
844 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
845 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
846 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
847 (GOMP_single_copy_end): Likewise.
848 * team.c (gomp_threads_dock): New.
849 (gomp_barrier_init, gomp_barrier_destroy): Remove.
850 (gomp_thread_start): Use gomp_barrier_wait.
851 (new_team, free_team): Update for gomp_team changes.
852 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
853 (gomp_team_end): Use gomp_barrier_wait.
854 (initialize_team): Update for gomp_thread changes.
855 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
856 (gomp_work_share_end_nowait): Use atomic ops when available.
857 * config/linux/bar.c, config/linux/bar.h: New files.
858 * config/posix/bar.c, config/posix/bar.h: New files.
860 2005-10-13 Jakub Jelinek <jakub@redhat.com>
862 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
863 * testsuite/libgomp.dg/single-2.c: New test.
865 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
866 lang_link_flags): Unset, so that they aren't inherited from previously
869 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
871 2005-10-12 Richard Henderson <rth@redhat.com>
873 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
874 (libgomp_init): Use lang_test_file, lang_library_path, and
875 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
877 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
878 (lang_test_file, lang_link_flags): New.
879 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
881 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
882 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
883 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
884 testsuite/libgomp.c++/parallel-1.C,
885 testsuite/libgomp.c++/reduction-1.C,
886 testsuite/libgomp.c++/reduction-2.C,
887 testsuite/libgomp.c++/reduction-3.C,
888 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
889 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
890 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
891 New files, largely cribbed from the C testsuite.
893 2005-10-12 Jakub Jelinek <jakub@redhat.com>
895 * testsuite/libgomp.fortran/character1.f90: New test.
896 * testsuite/libgomp.fortran/character2.f90: New test.
898 * testsuite/libgomp.dg/nested-1.c: New test.
899 * testsuite/libgomp.dg/nested-2.c: New test.
900 * testsuite/libgomp.fortran/do1.f90: New test.
901 * testsuite/libgomp.fortran/do2.f90: New test.
903 * testsuite/libgomp.fortran/reference1.f90: New test.
905 2005-10-11 Jakub Jelinek <jakub@redhat.com>
907 * testsuite/libgomp.dg/reduction-1.c: New test.
908 * testsuite/libgomp.dg/reduction-2.c: New test.
909 * testsuite/libgomp.dg/reduction-3.c: New test.
911 2005-10-10 Jakub Jelinek <jakub@redhat.com>
913 * testsuite/libgomp.dg/atomic-1.c: New test.
914 * testsuite/libgomp.dg/atomic-2.c: New test.
916 2005-10-09 Richard Henderson <rth@redhat.com>
918 * critical.c (atomic_lock): New.
919 (initialize_critical): Initialize it.
920 (GOMP_atomic_start, GOMP_atomic_end): New.
921 * libgomp.map: Export them.
922 * libgomp_g.h: Declare them.
924 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
926 2005-10-02 Richard Henderson <rth@redhat.com>
928 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
929 to XCFLAGS instead of CFLAGS.
931 2005-09-30 Richard Henderson <rth@redhat.com>
933 * configure.ac: Determine whether -pthread or -lpthread is needed.
934 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
935 * Makefine.in, configure: Rebuild.
937 2005-09-28 Richard Henderson <rth@redhat.com>
939 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
940 * testsuite/libgomp.dg/omp-single-3.c: New test.
942 2005-09-28 Diego Novillo <dnovillo@redhat.com>
944 * testsuite/libgomp.dg/omp-single-2.c: New test.
945 * testsuite/libgomp.dg/shared-2.c: Fix return code.
947 2005-09-27 Richard Henderson <rth@redhat.com>
949 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
950 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
952 2005-09-27 Jakub Jelinek <jakub@redhat.com>
954 * testsuite/libgomp.dg/omp-loop03.c: New test.
956 2005-09-27 Diego Novillo <dnovillo@redhat.com>
958 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
960 2005-09-27 Diego Novillo <dnovillo@redhat.com>
962 * testsuite/libgomp.dg/omp-single-1.c: New test.
963 * testsuite/libgomp.dg/shared-1.c: Return 0.
964 Add prototype for abort.
965 * testsuite/libgomp.dg/shared-2.c: Likewise.
967 2005-09-26 Jakub Jelinek <jakub@redhat.com>
969 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
972 2005-09-26 Diego Novillo <dnovillo@redhat.com>
974 * testsuite/libgomp.dg/shared-1.c: New test.
975 * testsuite/libgomp.dg/shared-2.c: New test.
977 2005-09-24 Richard Henderson <rth@redhat.com>
979 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
981 2005-09-24 Richard Henderson <rth@redhat.com>
983 * iter.c (gomp_iter_static_next): Round up when computing number
984 of iterations. Don't bother distributing a remainder equally.
986 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
987 Don't call srand. Zero b before testing.
990 2005-09-24 Jakub Jelinek <jakub@redhat.com>
992 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
993 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
995 2005-09-23 Jakub Jelinek <jakub@redhat.com>
997 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
998 without !$omp end do, followed immediately by subroutine end.
1000 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1002 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1004 2005-09-22 Richard Henderson <rth@redhat.com>
1006 * critical.c (GOMP_critical_name_start): Change argument to void**.
1007 Reuse the pointer space if the mutex fits.
1008 (GOMP_critical_name_end): Likewise.
1009 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1010 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1011 (GOMP_critical_name_end): Likewise.
1012 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1013 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1015 2005-09-20 Richard Henderson <rth@redhat.com>
1017 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1018 (create_lock_lock): New.
1019 (initialize_critical): Initialize it.
1020 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1021 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1023 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1025 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1027 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1029 * testsuite/libgomp.dg/omp-loop01.c: New test.
1030 * testsuite/libgomp.dg/omp-loop02.c: New test.
1032 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1034 * configure.ac (AC_PROG_FC): Add.
1035 (USE_FORTRAN): New automake conditional.
1036 * configure: Rebuilt.
1037 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1038 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1039 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1040 Add rules to build them.
1041 * Makefile.in: Rebuilt.
1042 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1044 * libgomp.map: Add Fortran wrappers.
1045 * libgomp_f.h.in: New file.
1046 * omp_lib.h.in: New file.
1047 * omp_lib.f90.in: New file.
1048 * fortran.c: New file.
1049 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1050 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1051 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1052 libgfortran has been built.
1053 * testsuite/libgomp.fortran/fortran.exp: New file.
1054 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1055 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1056 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1057 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1058 * testsuite/libgomp.fortran/omp_hello.f: New test.
1059 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1060 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1061 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1062 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1063 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1064 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1065 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1066 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1068 2005-08-30 Richard Henderson <rth@redhat.com>
1070 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1071 function for when aliases are not usable.
1072 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1073 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1074 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1075 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1076 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1077 GOMP_loop_ordered_guided_next): Likewise.
1078 * ordered.c (GOMP_ordered_start): Likewise.
1080 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1082 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1083 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1084 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1085 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1086 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1087 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1088 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1089 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1090 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1092 2005-07-07 Eric Christopher <echristo@redhat.com>
1093 Diego Novillo <dnovillo@redhat.com>
1095 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1096 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1098 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1099 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1100 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1101 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1102 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1103 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1104 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1106 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1108 * TOPLEVEL.patch: Remove.
1110 2005-05-16 Richard Henderson <rth@redhat.com>
1112 * configure.ac: Test for clock_gettime.
1113 * config.h.in, configure: Rebuild.
1114 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1115 (omp_get_wtime): Use clock_gettime if available.
1116 (omp_get_wtick): Use clock_getres if available.
1118 2005-05-11 Richard Henderson <rth@redhat.com>
1120 * config/linux/ia64/futex.h: New file.
1121 * configure.tgt: Use it.
1123 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1125 2005-05-07 Richard Henderson <rth@redhat.com>
1127 * config/linux/powerpc/futex.h: New file.
1128 * configure.tgt: Use it.
1130 * config/linux/i486/futex.h: Merge ...
1131 * config/linux/x86_64/futex.h: ... into ...
1132 * config/linux/x86/futex.h: ... here.
1133 * configure.tgt: Update to match.
1135 2005-05-06 Richard Henderson <rth@redhat.com>
1137 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1138 * config/linux/i486/futex.h: Likewise.
1139 * config/linux/x86_64/futex.h: Likewise.
1141 * config/linux/lock.c: New file.
1142 * config/linux/omp-lock.h: New file.
1144 * critical.c, env.h: Don't include omp.h
1145 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1146 * config/posix/time.c: Likewise.
1147 * config/posix/omp-lock.h: New file.
1148 * libgomp.h: Include omp-lock.h and omp.h.
1149 * Makefile.am (nodist_include_HEADERS): New.
1151 * configure.ac (PERL): New.
1152 * mkomp_h.pl: New file.
1153 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1155 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1157 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1158 build directory. Re-add -march=i486 hack.
1160 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1161 (libgomp_link_flags): Remove.
1162 (libgomp_initialized): Remove.
1163 (libgomp_init): Don't protect from reinitialization. Copy code
1164 from libstdc++ for getting the multilib set correctly.
1166 2005-05-05 Richard Henderson <rth@redhat.com>
1168 * config/linux/alpha/futex.h: New file.
1169 * configure.tgt (alpha*-*-linux*): Use it.
1171 * config/posix/mutex.c: New file.
1172 * config/posix/sem.c: Use libgomp.h.
1174 * configure.tgt (x86_64-linux): Also test CC for -m32.
1175 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1177 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1180 * Makefile.am (SUBDIRS): New.
1181 (libgomp_la_LDFLAGS): Add -lpthread.
1182 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1183 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1185 * libgomp_g.h: New file.
1186 * libgomp.h: Split out all public declarations to libgomp_g.h.
1187 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1188 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1189 * config/linux/sem.h: Likewise.
1190 * config/posix/sem.h: Likewise.
1192 * Makefile.am (AM_LDFLAGS): New.
1193 (libgomp_version_script): Split out from ...
1194 (libgomp_la_LDFLAGS): ... here.
1195 (libgomp_version_info): New.
1196 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1197 (LIBGOMP_ENABLE): New.
1198 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1199 (LIBGOMP_ENABLE_SYMVERS): New.
1200 * configure.ac (AC_INIT): Version 1.0.
1201 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1202 (enable-linux-futex): Likewise. Rename from enable-futex.
1203 (libtool_VERSION): New.
1204 (LIBGOMP_ENABLE_SYMVERS): Use it.
1205 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1206 * Makefile.in, aclocal.m4, configure: Rebuild.
1208 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1209 (gomp_mutex_unlock_slow): Fix typo.
1210 * config/linux/sem.c: Similarly.
1211 (gomp_sem_post_slow): Fix typo.
1212 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1213 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1214 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1216 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1217 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1218 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1219 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1220 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1221 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1222 LDFLAGS. Pull enable_futex check to top-level.
1223 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1224 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1226 First attempt at real configury.
1227 * Makefile, config.h: Remove file.
1228 * Makefile.am, Makefile.in: New file.
1229 * acinclude.m4 aclocal.m4: New file.
1230 * configure.ac, configure.tgt, configure: New file.
1232 * config/posix/lock.c: Rename from sys-lock.c.
1233 * config/posix/mutex.h: Rename from sys-mutex.h.
1234 * config/posix/sem.c: Rename from sys-sem.c.
1235 * config/posix/sem.h: Rename from sys-sem.h.
1236 * config/posix/proc.c: Rename from sys-proc.c.
1237 * config/posix/time.c: Rename from sys-proc.c.
1239 * config/linux/mutex.c: New file.
1240 * config/linux/mutex.h: New file.
1241 * config/linux/sem.c: New file.
1242 * config/linux/sem.h: New file.
1243 * config/linux/i486/futex.h: New file.
1244 * config/linux/x86_64/futex.h: New file.
1246 2005-05-04 Richard Henderson <rth@redhat.com>
1248 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1249 * libgomp.h: Declare them.
1250 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1251 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1253 2005-05-04 Richard Henderson <rth@redhat.com>
1255 * libgomp-1 code drop
1257 2005-05-04 Richard Henderson <rth@redhat.com>
1259 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1260 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1261 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1262 (gomp_iter_static_next): Update.
1263 (gomp_ordered_static_next): Update.
1264 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1265 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1266 totally empty range.
1267 (gomp_loop_ordered_static_next): Refine test for calling
1268 gomp_ordered_static_next.
1269 * testsuite/ordered-1.c: Add case for more threads than iterations.
1271 * iter.c (gomp_iter_runtime_next_locked): Remove.
1272 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1273 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1274 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1275 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1276 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1277 gomp_loop_ordered_guided_next): Downcase name, make static, add
1278 an external alias with the old name.
1279 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1280 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1281 switch and call one of the above static functions.
1282 * libgomp.h: Update.
1284 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1285 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1286 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1287 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1288 GOMP_loop_ordered_guided_start): Update to match.
1289 * sections.c (GOMP_sections_start): Likewise.
1290 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1292 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1293 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1294 Use bounds check instead of modulus.
1295 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1296 (gomp_ordered_last): Don't sync with ordered_owner here.
1297 (gomp_ordered_next): Likewise.
1298 (gomp_ordered_static_loop_next): Likewise.
1299 * loop.c, libgomp.h: Update to match.
1301 * libgomp.h (GOMP_barrier): Declare.
1303 * testsuite/barrier-1.c: New file.
1304 * testsuite/critical-1.c: New file.
1305 * testsuite/ordered-2.c: New file.
1306 * testsuite/ordered-1.c: New file.
1307 * testsuite/sections-1.c: New file.
1308 * testsuite/single-1.c: New file.
1309 * testsuite/Makefile (TESTS): Add them.
1311 2005-05-04 Richard Henderson <rth@redhat.com>
1313 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1314 * loop.c (GOMP_loop_static_start): If not the startup thread,
1315 acquire the mutex to wait for initialization complete.
1316 (GOMP_loop_ordered_static_start): Likewise.
1317 (GOMP_loop_ordered_runtime_start): Likewise.
1318 (GOMP_loop_ordered_static_first): Remove.
1319 (GOMP_loop_ordered_dynamic_first): Remove.
1320 (GOMP_loop_ordered_guided_first): Remove.
1321 (GOMP_loop_ordered_runtime_first): Remove.
1322 * ordered.c (gomp_ordered_loop_first): Post to own release when
1323 we're the first thread.
1324 (gomp_ordered_loop_last): Wait on release if not owner.
1325 (gomp_ordered_loop_next): Likewise.
1326 (gomp_ordered_static_loop_init): New.
1327 (gomp_ordered_static_loop_next): Use ordered_owner.
1328 (GOMP_ordered_start): Likewise.
1329 * work.c (gomp_new_work_share): Initialize ordered_owner.
1331 2005-05-03 Richard Henderson <rth@redhat.com>
1333 * Makefile (OPT): New.
1336 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1337 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1338 * libgomp.h, libgomp.map, NOTES: Update to match.
1340 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1341 Add initialized and thr members.
1342 (gomp_thread_start): Pause when initially spawned to wait for
1343 the whole team to be created.
1344 (gomp_team_start): Release team members at the end.
1346 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1347 (f_foo_1): Use GOMP_loop_end.
1348 (f_foo_2): Use GOMP_loop_end_nowait.
1350 * testsuite/loop-2.c: New file.
1351 * testsuite/Makefile (TESTS): Add it.
1353 2005-05-03 Richard Henderson <rth@redhat.com>
1355 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1356 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1357 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1360 * testsuite/Makefile: New file.
1361 * testsuite/loop-1.c: New file.
1363 2005-05-03 Richard Henderson <rth@redhat.com>
1365 Initial implementation and checkin.