1 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
4 * configure.ac: Add check for makeinfo
5 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
6 if an appropiate version of makeinfo is found.
7 * aclocal.m4: Regenerated.
8 * configure: Regenerated.
9 * Makefile.in: Regenerated.
10 * testsuite/Makefile.in: Regenerated.
12 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
15 * libgomp.texi: More about implementation-dependent settings.
17 2007-01-26 Tobias Burnus <burnus@net-b.de>
19 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
21 2007-01-24 Jakub Jelinek <jakub@redhat.com>
24 * testsuite/libgomp.c/pr30494.c: New test.
26 2007-01-15 Tom Tromey <tromey@redhat.com>
29 * configure.ac: Fixed comment.
31 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
33 * libgomp.texi: Document implementation specific default values of
34 environment variables.
36 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
39 * libgomp.texi: New file.
40 * configure.ac: Add --enable-generated-files-in-srcdir option.
41 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
43 * Makefile.in: Regenerated.
44 * config.h.in: Regenerated.
45 * testsuite/Makefile.in: Regenerated.
48 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
51 * env.c (omp_set_num_threads): Set illegal thread count to 1.
53 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
55 * configure: Regenerate.
57 2006-12-04 Jakub Jelinek <jakub@redhat.com>
60 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
61 start if there shouldn't be any loop iterations.
62 (gomp_loop_ordered_static_start): Remove start == end test.
63 * testsuite/libgomp.c/pr29947-1.c: New test.
64 * testsuite/libgomp.c/pr29947-2.c: New test.
66 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
68 * configure.tgt: Force initial-exec TLS model on Linux only.
70 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
72 * configure: Regenerated.
74 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
76 * env.c (parse_schedule): Reject out of range values.
77 (parse_unsigned_long): Reject out of range, negative or zero values.
79 2006-10-29 Jakub Jelinek <jakub@redhat.com>
82 * testsuite/libgomp.fortran/pr29629.f90: New test.
84 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
87 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
88 * config/posix95: New directory.
89 * config/posix95/omp-lock.h: New file.
90 * config/posix95/lock.c: Likewise.
92 2006-10-14 Geoffrey Keating <geoffk@apple.com>
94 * aclocal.m4: Regenerate.
95 * configure: Regenerate.
97 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
99 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
102 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
104 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
106 * configure: Regenerate.
107 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
109 2006-09-26 Jakub Jelinek <jakub@redhat.com>
113 * testsuite/libgomp.c/nestedfn-4.c: New test.
114 * testsuite/libgomp.c/nestedfn-5.c: New test.
115 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
118 * testsuite/libgomp.fortran/condinc1.f: New test.
119 * testsuite/libgomp.fortran/condinc2.f: New test.
120 * testsuite/libgomp.fortran/condinc3.f90: New test.
121 * testsuite/libgomp.fortran/condinc4.f90: New test.
122 * testsuite/libgomp.fortran/condinc1.inc: New file.
124 2006-09-18 Tom Tromey <tromey@redhat.com>
126 * configure: Rebuilt.
128 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
131 PR preprocessor/14634
132 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
134 * configure: Regenerate.
136 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
138 * testsuite/libgomp.fortran/reduction3.f90: Change
139 -2147483648 to -huge(i)-1 to avoid overflow.
140 * testsuite/libgomp.fortran/reduction4.f90: Change
141 Z'ffffffff' to not(0) to avoid overflow.
143 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
146 * Makefile.am (libsubincludedir): New.
147 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
148 * Makefile.in: Regenerate.
150 2006-08-17 Jakub Jelinek <jakub@redhat.com>
153 * env.c: Include ctype.h.
154 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
155 leading and/or trailing whitespace and compare strings case
158 2006-07-16 Jakub Jelinek <jakub@redhat.com>
161 * testsuite/libgomp.fortran/pr28390.f: New test.
163 2006-07-05 Eric Christopher <echristo@apple.com>
165 * configure.ac: Depend addition of -pthread on host OS.
166 * configure: Regenerate.
168 2006-06-21 Jakub Jelinek <jakub@redhat.com>
170 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
171 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
174 2006-06-20 Jakub Jelinek <jakub@redhat.com>
178 * configure.ac: If neither --enable-linux-futex nor
179 --disable-linux-futex is passed, determine the default by checking
180 for compiling and/or running against NPTL. With --enable-linux-futex,
181 check if SYS_gettid and SYS_futex are defined.
182 * configure: Rebuilt.
184 2006-06-14 Richard Henderson <rth@redhat.com>
187 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
188 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
190 2006-06-09 Richard Henderson <rth@redhat.com>
192 * env.c (gomp_nthreads_var): Change to unsigned long.
193 (gomp_run_sched_chunk): Likewise.
194 (parse_unsigned_long): Rename from parse_num_threads and generalize.
195 (initialize_env): Initialize gomp_thread_attr.
196 * libgomp.h (gomp_nthreads_var): Update decl.
197 (gomp_run_sched_chunk): Likewise.
198 (gomp_thread_attr): Declare.
199 * team.c (gomp_thread_attr): Export.
200 (initialize_team): Don't initialize it.
202 2006-06-09 Jakub Jelinek <jakub@redhat.com>
205 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
206 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
208 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
210 * config/mingw32/time.c: New file.
211 * configure.tgt: Use it.
213 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
215 * Makefile.am: Add install-html target. Add install-html to .PHONY
216 * Makefile.in: Regenerate.
218 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
221 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
222 * testsuite/libgomp.c/critical-1.c: Likewise.
223 * testsuite/libgomp.c/loop-1.c: Likewise.
224 * testsuite/libgomp.c/loop-2.c: Likewise.
225 * testsuite/libgomp.c/single-1.c: Likewise.
226 * testsuite/libgomp.c/ordered-1.c: Likewise.
227 * testsuite/libgomp.c/ordered-2.c: Likewise.
229 2006-05-15 Jakub Jelinek <jakub@redhat.com>
232 * libgomp.fortran/pr27416-1.f90: New test.
234 2006-05-03 Jakub Jelinek <jakub@redhat.com>
237 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
238 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
240 2006-05-02 Jakub Jelinek <jakub@redhat.com>
243 * testsuite/libgomp.c/pr26943-1.c: New test.
244 * testsuite/libgomp.c/pr26943-2.c: New test.
245 * testsuite/libgomp.c/pr26943-3.c: New test.
246 * testsuite/libgomp.c/pr26943-4.c: New test.
247 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
248 * testsuite/libgomp.c++/pr26943.C: New test.
250 2006-05-02 Jakub Jelinek <jakub@redhat.com>
253 * testsuite/libgomp.c++/pr27337.C: New test.
255 2006-04-26 Jakub Jelinek <jakub@redhat.com>
258 * testsuite/libgomp.c/pr26171.c: New test.
260 2006-04-25 Richard Henderson <rth@redhat.com>
263 * configure.ac: Use GCC_CHECK_TLS.
264 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
265 * Makefile.in, aclocal.m4, configure: Regenerate.
267 2006-04-10 Matthias Klose <doko@debian.org>
269 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
270 directory names containing underscores.
272 2006-03-21 Jakub Jelinek <jakub@redhat.com>
275 * testsuite/libgomp.c++/pr26691.C: New test.
277 2006-03-13 Jakub Jelinek <jakub@redhat.com>
279 * testsuite/libgomp.fortran/retval2.f90: New test.
281 2006-03-09 Diego Novillo <dnovillo@redhat.com>
283 * testsuite/libgomp.c++: New directory.
285 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
287 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
288 * config/posix/sem.c: Implement the above.
290 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
292 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
293 define HAVE_BROKEN_POSIX_SEMAPHORES.
294 * configure: Rebuilt.
295 * config.h.in: Rebuilt.
297 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
300 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
301 for the other pthread check.
302 * configure: Regenerate.
303 * config.h.in: Regenerate.
305 2006-02-15 Jakub Jelinek <jakub@redhat.com>
309 * Makefile.am (fincludedir): New variable.
310 (nodist_include_HEADERS): Remove Fortran files.
311 (nodist_finclude_HEADERS): New variable.
312 * Makefile.in: Regenerated.
314 2006-02-13 Jakub Jelinek <jakub@redhat.com>
316 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
317 Remove tests for returning assumed character length arrays.
319 2006-02-12 Roger Sayle <roger@eyesopen.com>
320 John David Anglin <dave@hiauly1.hia.nrc.ca>
323 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
325 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
327 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
329 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
331 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
332 part of LD_LIBRARY_PATH manually.
334 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
337 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
340 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
343 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
344 * configure.ac (PERL): Don't set.
345 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
346 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
347 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
348 * omp.h.in: Wrap the new configure substitutions with @ characters.
349 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
350 * aclocal.m4, configure, Makefile.in: Regenerate.
351 * mkomp_h.pl: Delete.
353 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
356 * configure.ac: Use GCC_HEADER_STDINT.
357 * libgomp.h: Include gstdint.h.
358 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
359 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
361 2006-01-24 Richard Henderson <rth@redhat.com>
364 * configure.ac: Add AM_MAINTAINER_MODE.
365 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
367 2006-01-24 Diego Novillo <dnovillo@redhat.com>
369 * Makefile.in: Regenerate.
370 * testsuite/Makefile.in: Regenerate.
371 * aclocal.m4: Regenerate.
373 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
375 * config/posix/proc.c: Conditional include of sys/loadavg.h for
377 * configure.ac: Add check for loadavg.h.
378 (link_gomp): Adjust comment.
379 * configure: Regenerate.
380 * config.h.in: Regenerate.
382 2006-01-21 Steve Ellcey <sje@cup.hp.com>
385 * configure.ac: Remove check for alloca.h.
386 * configure: Regenerate.
387 * config.h.in: Regenerate.
388 * libgomp.h: define gomp_alloca to be __builtin_alloca.
389 * team.c: Remove use of alloca.h.
390 Call gomp_alloca instead of alloca.
392 2006-01-20 Steve Ellcey <sje@cup.hp.com>
395 * team.c: Add include of alloca.h.
396 * configure.ac: Add check for alloca.h.
397 * configure: Regenerate.
398 * config.h.in: Regenerate.
400 2006-01-17 Jakub Jelinek <jakub@redhat.com>
403 * testsuite/libgomp.fortran/pr25219.f90: New test.
405 2005-12-05 Uros Bizjak <uros@kss-loka.si>
407 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
408 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
409 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
410 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
411 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
412 testsuite/libgomp.fortran/threadprivate1.f90,
413 testsuite/libgomp.fortran/threadprivate2.f90,
414 testsuite/libgomp.fortran/threadprivate3.f90,
415 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
416 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
417 testsuite/libgomp.fortran/omp_parse3.f90: Change required
418 effective-target to TLS runtime.
420 * testsuite/libgomp.fortran/pr25162.f: Require
421 effective-target TLS runtime.
423 2005-12-01 Jakub Jelinek <jakub@redhat.com>
425 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
426 * testsuite/libgomp.c/nestedfn-3.c: New test.
428 2005-11-30 Jakub Jelinek <jakub@redhat.com>
431 * testsuite/libgomp.fortran/pr25162.f: New test.
433 2005-11-28 Jakub Jelinek <jakub@redhat.com>
435 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
436 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
438 2005-11-25 Jakub Jelinek <jakub@redhat.com>
440 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
441 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
442 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
443 single.c, team.c, work.c, config/linux/alpha/futex.h,
444 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
445 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
446 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
447 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
448 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
449 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
450 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
453 2005-11-18 Jakub Jelinek <jakub@redhat.com>
455 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
456 to nodist_noinst_HEADERS.
457 * Makefile.in: Rebuilt.
459 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
460 add integer count field.
461 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
462 omp_nest_lock_t type change.
463 (omp_init_nest_lock): Likewise. Initialize count to 0.
464 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
466 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
468 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
469 Increment count if successful and return the new nesting level.
470 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
471 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
472 * testsuite/libgomp.c/lib-1.c: New test.
473 * testsuite/libgomp.fortran/lib1.f90: New test.
474 * testsuite/libgomp.fortran/lib2.f: New test.
475 * testsuite/libgomp.fortran/lib3.f: New test.
477 2005-11-17 Richard Henderson <rth@redhat.com>
480 * Makefile.am (nodist_toolexeclib_HEADERS): New.
481 * configure.ac (link_gomp): New. Substitute it.
482 (AC_CONFIG_FILES): Add libgomp.spec.
483 * libgomp.spec.in: New file.
484 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
485 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
487 2005-11-18 Jakub Jelinek <jakub@redhat.com>
489 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
490 reduction(-:var) behaving the same as reduction(+:var).
491 * testsuite/libgomp.c/reduction-4.c: New test.
493 2005-11-15 Uros Bizjak <uros@kss-loka.si>
495 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
496 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
497 testsuite/libgomp.c/copyin-3.c,
498 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
499 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
500 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
501 testsuite/libgomp.c++/pr24455.C,
502 testsuite/libgomp.fortran/threadprivate1.f90,
503 testsuite/libgomp.fortran/threadprivate2.f90,
504 testsuite/libgomp.fortran/threadprivate3.f90,
505 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
506 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
507 testsuite/libgomp.fortran/omp_parse3.f90: Require
508 effective-target TLS.
510 2005-11-14 Diego Novillo <dnovillo@redhat.com>
514 2005-11-13 Jakub Jelinek <jakub@redhat.com>
517 * team.c (initialize_team): Pass NULL rather than free as
518 pthread_key_create destructor. Initialize thread specific data
519 pointer in initial thread to a static local variable rather than
522 2005-11-11 Uros Bizjak <uros@kss-loka.si>
524 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
525 its location to ld_library_path.
527 2005-11-10 Diego Novillo <dnovillo@redhat.com>
529 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
531 2005-11-10 Diego Novillo <dnovillo@redhat.com>
533 * testsuite/libgomp.c: Rename from libgomp.dg.
535 2005-11-09 Diego Novillo <dnovillo@redhat.com>
537 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
538 threadprivate variable 'i'.
540 2005-11-09 Jakub Jelinek <jakub@redhat.com>
542 * config/linux/s390/futex.h: New file.
543 * configure.tgt: Use it.
545 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
548 2005-11-08 Jakub Jelinek <jakub@redhat.com>
551 * testsuite/libgomp.c++/master-1.C: New test.
553 2005-11-07 Jakub Jelinek <jakub@redhat.com>
555 * testsuite/libgomp.dg/copyin-3.c: New test.
557 2005-11-07 Jakub Jelinek <jakub@redhat.com>
559 * testsuite/libgomp.fortran/retval1.f90: New test.
560 * testsuite/libgomp.fortran/vla7.f90: New test.
562 2005-11-06 Jakub Jelinek <jakub@redhat.com>
564 * testsuite/libgomp.fortran/vla2.f90: New test.
565 * testsuite/libgomp.fortran/vla3.f90: New test.
566 * testsuite/libgomp.fortran/vla4.f90: New test.
567 * testsuite/libgomp.fortran/vla5.f90: New test.
568 * testsuite/libgomp.fortran/vla6.f90: New test.
570 2005-11-01 Jakub Jelinek <jakub@redhat.com>
572 * config/linux/sparc/futex.h: New file.
573 * configure.tgt: Use it.
574 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
576 * critical.c: Include stdlib.h.
577 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
578 ignoring return value.
579 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
580 LIBGOMP_CHECK_SYNC_BUILTINS check.
581 * configure: Rebuilt.
583 2005-10-31 Jakub Jelinek <jakub@redhat.com>
585 * testsuite/libgomp.fortran/vla1.f90: New test.
587 2005-10-31 Richard Henderson <rth@redhat.com>
589 * testsuite/libgomp.fortran/character2.f90: Fix race condition
590 setting 's' in different threads.
592 2005-10-31 Jakub Jelinek <jakub@redhat.com>
594 * libgomp.h (attribute_hidden, ialias): Define.
595 * config/posix/proc.c (omp_get_num_procs): Add ialias.
596 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
597 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
598 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
599 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
600 omp_test_lock, omp_test_nest_lock): Likewise.
601 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
602 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
603 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
604 omp_test_lock, omp_test_nest_lock): Likewise.
605 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
606 omp_get_dynamic, omp_get_nested): Likewise.
607 * parallel.c (omp_get_num_threads, omp_get_max_threads,
608 omp_get_thread_num, omp_in_parallel): Likewise.
609 * fortran.c (ialias_redirect): Define.
610 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
611 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
612 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
613 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
614 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
615 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
616 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
617 omp_get_wtime): Add ialias_redirect.
619 2005-10-30 Jakub Jelinek <jakub@redhat.com>
621 * fortran.c: Include stdlib.h.
623 2005-10-29 Jakub Jelinek <jakub@redhat.com>
625 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
626 * Makefile.in: Regenerated.
628 2005-10-28 Jakub Jelinek <jakub@redhat.com>
630 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
631 * libgomp_f.h.in (omp_check_defines): New function.
632 * env.c: Include libgomp_f.h.
633 (initialize_env): Call omp_check_defines.
635 * testsuite/libgomp.dg/copyin-2.c: New test.
636 * testsuite/libgomp.c++/copyin-2.C: New test.
637 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
639 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
640 * testsuite/libgomp.fortran/sharing2.f90: New test.
642 * testsuite/libgomp.dg/copyin-1.c: New test.
643 * testsuite/libgomp.c++/copyin-1.C: New test.
645 2005-10-26 Jakub Jelinek <jakub@redhat.com>
647 * testsuite/libgomp.fortran/crayptr1.f90: New test.
649 * testsuite/libgomp.fortran/workshare1.f90: New test.
651 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
653 * libgomp.fortran/sharing1.f90: New test.
655 2005-10-24 Jakub Jelinek <jakub@redhat.com>
658 * testsuite/libgomp.c++/loop-7.C: New test.
660 * testsuite/libgomp.dg/nestedfn-2.c: New test.
662 * testsuite/libgomp.dg/nestedfn-1.c: New test.
663 * testsuite/libgomp.fortran/reduction6.f90: New test.
664 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
666 2005-10-23 Richard Henderson <rth@redhat.com>
668 * testsuite/libgomp.c++/ctor-1.C: New.
669 * testsuite/libgomp.c++/ctor-2.C: New.
670 * testsuite/libgomp.c++/ctor-3.C: New.
671 * testsuite/libgomp.c++/ctor-4.C: New.
672 * testsuite/libgomp.c++/ctor-5.C: New.
673 * testsuite/libgomp.c++/ctor-6.C: New.
674 * testsuite/libgomp.c++/ctor-7.C: New.
675 * testsuite/libgomp.c++/ctor-8.C: New.
676 * testsuite/libgomp.c++/ctor-9.C: New.
678 2005-10-21 Diego Novillo <dnovillo@redhat.com>
681 * testsuite/libgomp.c++/pr24455-1.C: New test.
682 * testsuite/libgomp.c++/pr24455.C: New test.
683 * testsuite/libgomp.dg/pr24455-1.c: New test.
684 * testsuite/libgomp.dg/pr24455.c: New test.
686 2005-10-20 Richard Henderson <rth@redhat.com>
688 * testsuite/libgomp.c++/loop-6.C: New.
689 * testsuite/libgomp.dg/loop-3.c: New.
691 2005-10-20 Jakub Jelinek <jakub@redhat.com>
693 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
695 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
698 2005-10-19 Diego Novillo <dnovillo@redhat.com>
700 * testsuite/libgomp.fortran/jacobi.f: New test.
702 2005-10-19 Richard Henderson <rth@redhat.com>
704 * configure.tgt (i?86-linux): Default to with_arch instead of
705 CFLAGS. Add -mtune to match target_cpu.
706 (x86_64-linux): Tune to i686.
708 * fortran.c (omp_test_nest_lock_): Fix typo.
710 2005-10-19 Jakub Jelinek <jakub@redhat.com>
712 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
713 gomp_ordered_sync): Do nothing if team->nthreads == 1.
714 * testsuite/libgomp.dg/ordered-3.c: New test.
716 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
717 Remove volatile keyword.
719 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
720 in COMMON block to avoid warnings on 64-bit targets.
722 2005-10-18 Diego Novillo <dnovillo@redhat.com>
724 * testsuite/libgomp.dg/shared-3.c: New test.
726 2005-10-18 Jakub Jelinek <jakub@redhat.com>
728 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
729 * testsuite/libgomp.fortran/reduction5.f90: New test.
731 2005-10-18 Jakub Jelinek <jakub@redhat.com>
733 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
735 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
736 flush loop now that __sync_synchronize has proper memory barrier.
737 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
738 Add -ffixed-form to dg-options.
740 2005-10-17 Diego Novillo <dnovillo@redhat.com>
742 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
744 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
745 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
746 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
747 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
748 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
749 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
750 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
751 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
752 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
753 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
754 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
755 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
756 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
757 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
758 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
759 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
760 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
761 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
762 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
763 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
764 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
765 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
766 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
767 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
768 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
770 2005-10-17 Jakub Jelinek <jakub@redhat.com>
772 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
773 lang_library_path exists. Use find instead of glob to gather tests.
774 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
776 2005-10-17 Diego Novillo <dnovillo@redhat.com>
778 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
779 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
780 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
781 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
782 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
783 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
784 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
785 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
786 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
787 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
788 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
789 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
790 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
792 2005-10-15 Jakub Jelinek <jakub@redhat.com>
794 * testsuite/libgomp.dg/vla-1.c: New test.
796 * testsuite/libgomp.fortran/reference2.f90: New test.
798 * testsuite/libgomp.fortran/character2.f90: Remove explicit
799 declaration of omp_get_thread_num.
800 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
803 * testsuite/libgomp.fortran/reduction1.f90: New test.
804 * testsuite/libgomp.fortran/reduction2.f90: New test.
805 * testsuite/libgomp.fortran/reduction3.f90: New test.
806 * testsuite/libgomp.fortran/reduction4.f90: New test.
808 2005-10-13 Richard Henderson <rth@redhat.com>
810 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
811 * Makefile.in: Regenerate.
812 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
813 * libgomp.h: Include bar.h.
814 (struct gomp_barrier): Remove.
815 (struct gomp_team): Add barrier. Replace master_barrier with
816 master_release. Replace threads with ordered_release.
817 (struct gomp_thread): Replace barrier with release.
818 * ordered.c (gomp_ordered_first): Update for ordered_release change.
819 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
820 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
821 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
822 (GOMP_single_copy_end): Likewise.
823 * team.c (gomp_threads_dock): New.
824 (gomp_barrier_init, gomp_barrier_destroy): Remove.
825 (gomp_thread_start): Use gomp_barrier_wait.
826 (new_team, free_team): Update for gomp_team changes.
827 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
828 (gomp_team_end): Use gomp_barrier_wait.
829 (initialize_team): Update for gomp_thread changes.
830 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
831 (gomp_work_share_end_nowait): Use atomic ops when available.
832 * config/linux/bar.c, config/linux/bar.h: New files.
833 * config/posix/bar.c, config/posix/bar.h: New files.
835 2005-10-13 Jakub Jelinek <jakub@redhat.com>
837 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
838 * testsuite/libgomp.dg/single-2.c: New test.
840 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
841 lang_link_flags): Unset, so that they aren't inherited from previously
844 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
846 2005-10-12 Richard Henderson <rth@redhat.com>
848 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
849 (libgomp_init): Use lang_test_file, lang_library_path, and
850 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
852 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
853 (lang_test_file, lang_link_flags): New.
854 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
856 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
857 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
858 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
859 testsuite/libgomp.c++/parallel-1.C,
860 testsuite/libgomp.c++/reduction-1.C,
861 testsuite/libgomp.c++/reduction-2.C,
862 testsuite/libgomp.c++/reduction-3.C,
863 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
864 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
865 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
866 New files, largely cribbed from the C testsuite.
868 2005-10-12 Jakub Jelinek <jakub@redhat.com>
870 * testsuite/libgomp.fortran/character1.f90: New test.
871 * testsuite/libgomp.fortran/character2.f90: New test.
873 * testsuite/libgomp.dg/nested-1.c: New test.
874 * testsuite/libgomp.dg/nested-2.c: New test.
875 * testsuite/libgomp.fortran/do1.f90: New test.
876 * testsuite/libgomp.fortran/do2.f90: New test.
878 * testsuite/libgomp.fortran/reference1.f90: New test.
880 2005-10-11 Jakub Jelinek <jakub@redhat.com>
882 * testsuite/libgomp.dg/reduction-1.c: New test.
883 * testsuite/libgomp.dg/reduction-2.c: New test.
884 * testsuite/libgomp.dg/reduction-3.c: New test.
886 2005-10-10 Jakub Jelinek <jakub@redhat.com>
888 * testsuite/libgomp.dg/atomic-1.c: New test.
889 * testsuite/libgomp.dg/atomic-2.c: New test.
891 2005-10-09 Richard Henderson <rth@redhat.com>
893 * critical.c (atomic_lock): New.
894 (initialize_critical): Initialize it.
895 (GOMP_atomic_start, GOMP_atomic_end): New.
896 * libgomp.map: Export them.
897 * libgomp_g.h: Declare them.
899 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
901 2005-10-02 Richard Henderson <rth@redhat.com>
903 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
904 to XCFLAGS instead of CFLAGS.
906 2005-09-30 Richard Henderson <rth@redhat.com>
908 * configure.ac: Determine whether -pthread or -lpthread is needed.
909 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
910 * Makefine.in, configure: Rebuild.
912 2005-09-28 Richard Henderson <rth@redhat.com>
914 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
915 * testsuite/libgomp.dg/omp-single-3.c: New test.
917 2005-09-28 Diego Novillo <dnovillo@redhat.com>
919 * testsuite/libgomp.dg/omp-single-2.c: New test.
920 * testsuite/libgomp.dg/shared-2.c: Fix return code.
922 2005-09-27 Richard Henderson <rth@redhat.com>
924 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
925 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
927 2005-09-27 Jakub Jelinek <jakub@redhat.com>
929 * testsuite/libgomp.dg/omp-loop03.c: New test.
931 2005-09-27 Diego Novillo <dnovillo@redhat.com>
933 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
935 2005-09-27 Diego Novillo <dnovillo@redhat.com>
937 * testsuite/libgomp.dg/omp-single-1.c: New test.
938 * testsuite/libgomp.dg/shared-1.c: Return 0.
939 Add prototype for abort.
940 * testsuite/libgomp.dg/shared-2.c: Likewise.
942 2005-09-26 Jakub Jelinek <jakub@redhat.com>
944 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
947 2005-09-26 Diego Novillo <dnovillo@redhat.com>
949 * testsuite/libgomp.dg/shared-1.c: New test.
950 * testsuite/libgomp.dg/shared-2.c: New test.
952 2005-09-24 Richard Henderson <rth@redhat.com>
954 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
956 2005-09-24 Richard Henderson <rth@redhat.com>
958 * iter.c (gomp_iter_static_next): Round up when computing number
959 of iterations. Don't bother distributing a remainder equally.
961 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
962 Don't call srand. Zero b before testing.
965 2005-09-24 Jakub Jelinek <jakub@redhat.com>
967 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
968 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
970 2005-09-23 Jakub Jelinek <jakub@redhat.com>
972 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
973 without !$omp end do, followed immediately by subroutine end.
975 2005-09-23 Diego Novillo <dnovillo@redhat.com>
977 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
979 2005-09-22 Richard Henderson <rth@redhat.com>
981 * critical.c (GOMP_critical_name_start): Change argument to void**.
982 Reuse the pointer space if the mutex fits.
983 (GOMP_critical_name_end): Likewise.
984 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
985 * libgomp_g.h (GOMP_critical_name_start): Update decl.
986 (GOMP_critical_name_end): Likewise.
987 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
988 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
990 2005-09-20 Richard Henderson <rth@redhat.com>
992 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
993 (create_lock_lock): New.
994 (initialize_critical): Initialize it.
995 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
996 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
998 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1000 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1002 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1004 * testsuite/libgomp.dg/omp-loop01.c: New test.
1005 * testsuite/libgomp.dg/omp-loop02.c: New test.
1007 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1009 * configure.ac (AC_PROG_FC): Add.
1010 (USE_FORTRAN): New automake conditional.
1011 * configure: Rebuilt.
1012 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1013 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1014 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1015 Add rules to build them.
1016 * Makefile.in: Rebuilt.
1017 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1019 * libgomp.map: Add Fortran wrappers.
1020 * libgomp_f.h.in: New file.
1021 * omp_lib.h.in: New file.
1022 * omp_lib.f90.in: New file.
1023 * fortran.c: New file.
1024 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1025 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1026 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1027 libgfortran has been built.
1028 * testsuite/libgomp.fortran/fortran.exp: New file.
1029 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1030 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1031 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1032 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1033 * testsuite/libgomp.fortran/omp_hello.f: New test.
1034 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1035 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1036 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1037 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1038 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1039 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1040 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1041 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1043 2005-08-30 Richard Henderson <rth@redhat.com>
1045 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1046 function for when aliases are not usable.
1047 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1048 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1049 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1050 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1051 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1052 GOMP_loop_ordered_guided_next): Likewise.
1053 * ordered.c (GOMP_ordered_start): Likewise.
1055 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1057 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1058 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1059 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1060 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1061 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1062 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1063 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1064 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1065 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1067 2005-07-07 Eric Christopher <echristo@redhat.com>
1068 Diego Novillo <dnovillo@redhat.com>
1070 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1071 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1073 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1074 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1075 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1076 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1077 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1078 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1079 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1081 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1083 * TOPLEVEL.patch: Remove.
1085 2005-05-16 Richard Henderson <rth@redhat.com>
1087 * configure.ac: Test for clock_gettime.
1088 * config.h.in, configure: Rebuild.
1089 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1090 (omp_get_wtime): Use clock_gettime if available.
1091 (omp_get_wtick): Use clock_getres if available.
1093 2005-05-11 Richard Henderson <rth@redhat.com>
1095 * config/linux/ia64/futex.h: New file.
1096 * configure.tgt: Use it.
1098 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1100 2005-05-07 Richard Henderson <rth@redhat.com>
1102 * config/linux/powerpc/futex.h: New file.
1103 * configure.tgt: Use it.
1105 * config/linux/i486/futex.h: Merge ...
1106 * config/linux/x86_64/futex.h: ... into ...
1107 * config/linux/x86/futex.h: ... here.
1108 * configure.tgt: Update to match.
1110 2005-05-06 Richard Henderson <rth@redhat.com>
1112 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1113 * config/linux/i486/futex.h: Likewise.
1114 * config/linux/x86_64/futex.h: Likewise.
1116 * config/linux/lock.c: New file.
1117 * config/linux/omp-lock.h: New file.
1119 * critical.c, env.h: Don't include omp.h
1120 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1121 * config/posix/time.c: Likewise.
1122 * config/posix/omp-lock.h: New file.
1123 * libgomp.h: Include omp-lock.h and omp.h.
1124 * Makefile.am (nodist_include_HEADERS): New.
1126 * configure.ac (PERL): New.
1127 * mkomp_h.pl: New file.
1128 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1130 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1132 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1133 build directory. Re-add -march=i486 hack.
1135 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1136 (libgomp_link_flags): Remove.
1137 (libgomp_initialized): Remove.
1138 (libgomp_init): Don't protect from reinitialization. Copy code
1139 from libstdc++ for getting the multilib set correctly.
1141 2005-05-05 Richard Henderson <rth@redhat.com>
1143 * config/linux/alpha/futex.h: New file.
1144 * configure.tgt (alpha*-*-linux*): Use it.
1146 * config/posix/mutex.c: New file.
1147 * config/posix/sem.c: Use libgomp.h.
1149 * configure.tgt (x86_64-linux): Also test CC for -m32.
1150 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1152 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1155 * Makefile.am (SUBDIRS): New.
1156 (libgomp_la_LDFLAGS): Add -lpthread.
1157 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1158 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1160 * libgomp_g.h: New file.
1161 * libgomp.h: Split out all public declarations to libgomp_g.h.
1162 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1163 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1164 * config/linux/sem.h: Likewise.
1165 * config/posix/sem.h: Likewise.
1167 * Makefile.am (AM_LDFLAGS): New.
1168 (libgomp_version_script): Split out from ...
1169 (libgomp_la_LDFLAGS): ... here.
1170 (libgomp_version_info): New.
1171 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1172 (LIBGOMP_ENABLE): New.
1173 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1174 (LIBGOMP_ENABLE_SYMVERS): New.
1175 * configure.ac (AC_INIT): Version 1.0.
1176 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1177 (enable-linux-futex): Likewise. Rename from enable-futex.
1178 (libtool_VERSION): New.
1179 (LIBGOMP_ENABLE_SYMVERS): Use it.
1180 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1181 * Makefile.in, aclocal.m4, configure: Rebuild.
1183 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1184 (gomp_mutex_unlock_slow): Fix typo.
1185 * config/linux/sem.c: Similarly.
1186 (gomp_sem_post_slow): Fix typo.
1187 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1188 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1189 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1191 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1192 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1193 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1194 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1195 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1196 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1197 LDFLAGS. Pull enable_futex check to top-level.
1198 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1199 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1201 First attempt at real configury.
1202 * Makefile, config.h: Remove file.
1203 * Makefile.am, Makefile.in: New file.
1204 * acinclude.m4 aclocal.m4: New file.
1205 * configure.ac, configure.tgt, configure: New file.
1207 * config/posix/lock.c: Rename from sys-lock.c.
1208 * config/posix/mutex.h: Rename from sys-mutex.h.
1209 * config/posix/sem.c: Rename from sys-sem.c.
1210 * config/posix/sem.h: Rename from sys-sem.h.
1211 * config/posix/proc.c: Rename from sys-proc.c.
1212 * config/posix/time.c: Rename from sys-proc.c.
1214 * config/linux/mutex.c: New file.
1215 * config/linux/mutex.h: New file.
1216 * config/linux/sem.c: New file.
1217 * config/linux/sem.h: New file.
1218 * config/linux/i486/futex.h: New file.
1219 * config/linux/x86_64/futex.h: New file.
1221 2005-05-04 Richard Henderson <rth@redhat.com>
1223 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1224 * libgomp.h: Declare them.
1225 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1226 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1228 2005-05-04 Richard Henderson <rth@redhat.com>
1230 * libgomp-1 code drop
1232 2005-05-04 Richard Henderson <rth@redhat.com>
1234 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1235 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1236 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1237 (gomp_iter_static_next): Update.
1238 (gomp_ordered_static_next): Update.
1239 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1240 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1241 totally empty range.
1242 (gomp_loop_ordered_static_next): Refine test for calling
1243 gomp_ordered_static_next.
1244 * testsuite/ordered-1.c: Add case for more threads than iterations.
1246 * iter.c (gomp_iter_runtime_next_locked): Remove.
1247 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1248 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1249 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1250 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1251 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1252 gomp_loop_ordered_guided_next): Downcase name, make static, add
1253 an external alias with the old name.
1254 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1255 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1256 switch and call one of the above static functions.
1257 * libgomp.h: Update.
1259 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1260 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1261 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1262 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1263 GOMP_loop_ordered_guided_start): Update to match.
1264 * sections.c (GOMP_sections_start): Likewise.
1265 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1267 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1268 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1269 Use bounds check instead of modulus.
1270 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1271 (gomp_ordered_last): Don't sync with ordered_owner here.
1272 (gomp_ordered_next): Likewise.
1273 (gomp_ordered_static_loop_next): Likewise.
1274 * loop.c, libgomp.h: Update to match.
1276 * libgomp.h (GOMP_barrier): Declare.
1278 * testsuite/barrier-1.c: New file.
1279 * testsuite/critical-1.c: New file.
1280 * testsuite/ordered-2.c: New file.
1281 * testsuite/ordered-1.c: New file.
1282 * testsuite/sections-1.c: New file.
1283 * testsuite/single-1.c: New file.
1284 * testsuite/Makefile (TESTS): Add them.
1286 2005-05-04 Richard Henderson <rth@redhat.com>
1288 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1289 * loop.c (GOMP_loop_static_start): If not the startup thread,
1290 acquire the mutex to wait for initialization complete.
1291 (GOMP_loop_ordered_static_start): Likewise.
1292 (GOMP_loop_ordered_runtime_start): Likewise.
1293 (GOMP_loop_ordered_static_first): Remove.
1294 (GOMP_loop_ordered_dynamic_first): Remove.
1295 (GOMP_loop_ordered_guided_first): Remove.
1296 (GOMP_loop_ordered_runtime_first): Remove.
1297 * ordered.c (gomp_ordered_loop_first): Post to own release when
1298 we're the first thread.
1299 (gomp_ordered_loop_last): Wait on release if not owner.
1300 (gomp_ordered_loop_next): Likewise.
1301 (gomp_ordered_static_loop_init): New.
1302 (gomp_ordered_static_loop_next): Use ordered_owner.
1303 (GOMP_ordered_start): Likewise.
1304 * work.c (gomp_new_work_share): Initialize ordered_owner.
1306 2005-05-03 Richard Henderson <rth@redhat.com>
1308 * Makefile (OPT): New.
1311 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1312 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1313 * libgomp.h, libgomp.map, NOTES: Update to match.
1315 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1316 Add initialized and thr members.
1317 (gomp_thread_start): Pause when initially spawned to wait for
1318 the whole team to be created.
1319 (gomp_team_start): Release team members at the end.
1321 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1322 (f_foo_1): Use GOMP_loop_end.
1323 (f_foo_2): Use GOMP_loop_end_nowait.
1325 * testsuite/loop-2.c: New file.
1326 * testsuite/Makefile (TESTS): Add it.
1328 2005-05-03 Richard Henderson <rth@redhat.com>
1330 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1331 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1332 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1335 * testsuite/Makefile: New file.
1336 * testsuite/loop-1.c: New file.
1338 2005-05-03 Richard Henderson <rth@redhat.com>
1340 Initial implementation and checkin.