1 2007-04-16 Matthias Klose <doko@debian.org>
3 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
4 flags if not building with -m64.
5 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
6 flag for i?86-*-* targets, if current target matches -m64.
8 2007-04-14 Steve Ellcey <sje@cup.hp.com>
10 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11 * Makefile.in: Regenerate.
13 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18 * testsuite/libgomp.fortran/fortran.exp: Likewise.
20 2007-04-04 Jakub Jelinek <jakub@redhat.com>
22 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
24 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
25 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
26 (parse_affinity): New function.
27 (initialize_env): Call it and gomp_init_affinity.
28 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
29 create new pthread_attr_t and call gomp_init_thread_affinity
30 on it for each thread before passing the attribute to pthread_create.
31 * config/linux/affinity.c: New file.
32 * config/posix/affinity.c: New file.
33 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
35 * config.h.in: Rebuilt.
36 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
37 * Makefile.in: Rebuilt.
39 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
41 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
43 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
46 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
48 * testsuite/config/default.exp: New file.
49 * testsuite/lib/libgomp.exp: New file.
50 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
51 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
52 load_lib *, load_gcc_lib *): Move to libgomp.exp.
53 (libgomp_load): Remove.
54 * testsuite/lib/libgomp.exp (libgomp_init): Compute
55 always_ld_library_path, not ld_library_path. Set additional_flags
56 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
57 (target_compile): Do not call libgomp_init. Append lang_library_path
58 and lang_link_flags to options.
59 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
60 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
62 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
63 always_ld_library_path. Set LD_LIBRARY_PATH here.
64 * testsuite/libgomp.fortran/fortran.exp: Ditto.
65 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
66 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
68 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
69 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
70 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
71 * testsuite/libgomp.c/pr29947-1.c: Ditto.
72 * testsuite/libgomp.c/atomic-10.c: Ditto.
74 2007-03-21 Jakub Jelinek <jakub@redhat.com>
76 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
77 dg-final cleanup-modules line.
78 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
79 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
80 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
81 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
82 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
83 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
84 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
86 2007-03-18 Andreas Schwab <schwab@suse.de>
88 * acinclude.m4: Adjust regular expression for ld version
90 * configure: Regenerate.
92 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
94 * Makefile.am: Add install-pdf target as copied from
96 * Makefile.in: Regenerate
98 2007-02-07 Jakub Jelinek <jakub@redhat.com>
101 * configure: Regenerate.
104 * testsuite/libgomp.c++/pr30703.C: New test.
106 2007-02-02 Jakub Jelinek <jakub@redhat.com>
109 2006-07-05 Eric Christopher <echristo@apple.com>
110 * configure.ac: Depend addition of -pthread on host OS.
111 * configure: Regenerate.
113 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
115 * libgomp.texi: Fix spacing after abbreviations.
117 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
120 * configure.ac: Add check for makeinfo
121 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
122 if an appropiate version of makeinfo is found.
123 * aclocal.m4: Regenerated.
124 * configure: Regenerated.
125 * Makefile.in: Regenerated.
126 * testsuite/Makefile.in: Regenerated.
128 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
131 * libgomp.texi: More about implementation-dependent settings.
133 2007-01-26 Tobias Burnus <burnus@net-b.de>
135 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
137 2007-01-24 Jakub Jelinek <jakub@redhat.com>
140 * testsuite/libgomp.c/pr30494.c: New test.
142 2007-01-15 Tom Tromey <tromey@redhat.com>
144 * configure: Rebuilt.
145 * configure.ac: Fixed comment.
147 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
149 * libgomp.texi: Document implementation specific default values of
150 environment variables.
152 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
155 * libgomp.texi: New file.
156 * configure.ac: Add --enable-generated-files-in-srcdir option.
157 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
159 * Makefile.in: Regenerated.
160 * config.h.in: Regenerated.
161 * testsuite/Makefile.in: Regenerated.
164 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
167 * env.c (omp_set_num_threads): Set illegal thread count to 1.
169 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
171 * configure: Regenerate.
173 2006-12-04 Jakub Jelinek <jakub@redhat.com>
176 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
177 start if there shouldn't be any loop iterations.
178 (gomp_loop_ordered_static_start): Remove start == end test.
179 * testsuite/libgomp.c/pr29947-1.c: New test.
180 * testsuite/libgomp.c/pr29947-2.c: New test.
182 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
184 * configure.tgt: Force initial-exec TLS model on Linux only.
186 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
188 * configure: Regenerated.
190 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
192 * env.c (parse_schedule): Reject out of range values.
193 (parse_unsigned_long): Reject out of range, negative or zero values.
195 2006-10-29 Jakub Jelinek <jakub@redhat.com>
198 * testsuite/libgomp.fortran/pr29629.f90: New test.
200 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
203 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
204 * config/posix95: New directory.
205 * config/posix95/omp-lock.h: New file.
206 * config/posix95/lock.c: Likewise.
208 2006-10-14 Geoffrey Keating <geoffk@apple.com>
210 * aclocal.m4: Regenerate.
211 * configure: Regenerate.
213 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
215 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
218 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
220 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
222 * configure: Regenerate.
223 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
225 2006-09-26 Jakub Jelinek <jakub@redhat.com>
229 * testsuite/libgomp.c/nestedfn-4.c: New test.
230 * testsuite/libgomp.c/nestedfn-5.c: New test.
231 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
234 * testsuite/libgomp.fortran/condinc1.f: New test.
235 * testsuite/libgomp.fortran/condinc2.f: New test.
236 * testsuite/libgomp.fortran/condinc3.f90: New test.
237 * testsuite/libgomp.fortran/condinc4.f90: New test.
238 * testsuite/libgomp.fortran/condinc1.inc: New file.
240 2006-09-18 Tom Tromey <tromey@redhat.com>
242 * configure: Rebuilt.
244 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
247 PR preprocessor/14634
248 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
250 * configure: Regenerate.
252 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
254 * testsuite/libgomp.fortran/reduction3.f90: Change
255 -2147483648 to -huge(i)-1 to avoid overflow.
256 * testsuite/libgomp.fortran/reduction4.f90: Change
257 Z'ffffffff' to not(0) to avoid overflow.
259 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
262 * Makefile.am (libsubincludedir): New.
263 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
264 * Makefile.in: Regenerate.
266 2006-08-17 Jakub Jelinek <jakub@redhat.com>
269 * env.c: Include ctype.h.
270 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
271 leading and/or trailing whitespace and compare strings case
274 2006-07-16 Jakub Jelinek <jakub@redhat.com>
277 * testsuite/libgomp.fortran/pr28390.f: New test.
279 2006-07-05 Eric Christopher <echristo@apple.com>
281 * configure.ac: Depend addition of -pthread on host OS.
282 * configure: Regenerate.
284 2006-06-21 Jakub Jelinek <jakub@redhat.com>
286 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
287 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
290 2006-06-20 Jakub Jelinek <jakub@redhat.com>
294 * configure.ac: If neither --enable-linux-futex nor
295 --disable-linux-futex is passed, determine the default by checking
296 for compiling and/or running against NPTL. With --enable-linux-futex,
297 check if SYS_gettid and SYS_futex are defined.
298 * configure: Rebuilt.
300 2006-06-14 Richard Henderson <rth@redhat.com>
303 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
304 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
306 2006-06-09 Richard Henderson <rth@redhat.com>
308 * env.c (gomp_nthreads_var): Change to unsigned long.
309 (gomp_run_sched_chunk): Likewise.
310 (parse_unsigned_long): Rename from parse_num_threads and generalize.
311 (initialize_env): Initialize gomp_thread_attr.
312 * libgomp.h (gomp_nthreads_var): Update decl.
313 (gomp_run_sched_chunk): Likewise.
314 (gomp_thread_attr): Declare.
315 * team.c (gomp_thread_attr): Export.
316 (initialize_team): Don't initialize it.
318 2006-06-09 Jakub Jelinek <jakub@redhat.com>
321 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
322 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
324 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
326 * config/mingw32/time.c: New file.
327 * configure.tgt: Use it.
329 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
331 * Makefile.am: Add install-html target. Add install-html to .PHONY
332 * Makefile.in: Regenerate.
334 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
337 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
338 * testsuite/libgomp.c/critical-1.c: Likewise.
339 * testsuite/libgomp.c/loop-1.c: Likewise.
340 * testsuite/libgomp.c/loop-2.c: Likewise.
341 * testsuite/libgomp.c/single-1.c: Likewise.
342 * testsuite/libgomp.c/ordered-1.c: Likewise.
343 * testsuite/libgomp.c/ordered-2.c: Likewise.
345 2006-05-15 Jakub Jelinek <jakub@redhat.com>
348 * libgomp.fortran/pr27416-1.f90: New test.
350 2006-05-03 Jakub Jelinek <jakub@redhat.com>
353 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
354 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
356 2006-05-02 Jakub Jelinek <jakub@redhat.com>
359 * testsuite/libgomp.c/pr26943-1.c: New test.
360 * testsuite/libgomp.c/pr26943-2.c: New test.
361 * testsuite/libgomp.c/pr26943-3.c: New test.
362 * testsuite/libgomp.c/pr26943-4.c: New test.
363 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
364 * testsuite/libgomp.c++/pr26943.C: New test.
366 2006-05-02 Jakub Jelinek <jakub@redhat.com>
369 * testsuite/libgomp.c++/pr27337.C: New test.
371 2006-04-26 Jakub Jelinek <jakub@redhat.com>
374 * testsuite/libgomp.c/pr26171.c: New test.
376 2006-04-25 Richard Henderson <rth@redhat.com>
379 * configure.ac: Use GCC_CHECK_TLS.
380 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
381 * Makefile.in, aclocal.m4, configure: Regenerate.
383 2006-04-10 Matthias Klose <doko@debian.org>
385 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
386 directory names containing underscores.
388 2006-03-21 Jakub Jelinek <jakub@redhat.com>
391 * testsuite/libgomp.c++/pr26691.C: New test.
393 2006-03-13 Jakub Jelinek <jakub@redhat.com>
395 * testsuite/libgomp.fortran/retval2.f90: New test.
397 2006-03-09 Diego Novillo <dnovillo@redhat.com>
399 * testsuite/libgomp.c++: New directory.
401 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
403 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
404 * config/posix/sem.c: Implement the above.
406 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
408 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
409 define HAVE_BROKEN_POSIX_SEMAPHORES.
410 * configure: Rebuilt.
411 * config.h.in: Rebuilt.
413 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
416 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
417 for the other pthread check.
418 * configure: Regenerate.
419 * config.h.in: Regenerate.
421 2006-02-15 Jakub Jelinek <jakub@redhat.com>
425 * Makefile.am (fincludedir): New variable.
426 (nodist_include_HEADERS): Remove Fortran files.
427 (nodist_finclude_HEADERS): New variable.
428 * Makefile.in: Regenerated.
430 2006-02-13 Jakub Jelinek <jakub@redhat.com>
432 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
433 Remove tests for returning assumed character length arrays.
435 2006-02-12 Roger Sayle <roger@eyesopen.com>
436 John David Anglin <dave@hiauly1.hia.nrc.ca>
439 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
441 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
443 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
445 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
447 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
448 part of LD_LIBRARY_PATH manually.
450 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
453 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
456 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
459 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
460 * configure.ac (PERL): Don't set.
461 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
462 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
463 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
464 * omp.h.in: Wrap the new configure substitutions with @ characters.
465 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
466 * aclocal.m4, configure, Makefile.in: Regenerate.
467 * mkomp_h.pl: Delete.
469 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
472 * configure.ac: Use GCC_HEADER_STDINT.
473 * libgomp.h: Include gstdint.h.
474 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
475 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
477 2006-01-24 Richard Henderson <rth@redhat.com>
480 * configure.ac: Add AM_MAINTAINER_MODE.
481 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
483 2006-01-24 Diego Novillo <dnovillo@redhat.com>
485 * Makefile.in: Regenerate.
486 * testsuite/Makefile.in: Regenerate.
487 * aclocal.m4: Regenerate.
489 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
491 * config/posix/proc.c: Conditional include of sys/loadavg.h for
493 * configure.ac: Add check for loadavg.h.
494 (link_gomp): Adjust comment.
495 * configure: Regenerate.
496 * config.h.in: Regenerate.
498 2006-01-21 Steve Ellcey <sje@cup.hp.com>
501 * configure.ac: Remove check for alloca.h.
502 * configure: Regenerate.
503 * config.h.in: Regenerate.
504 * libgomp.h: define gomp_alloca to be __builtin_alloca.
505 * team.c: Remove use of alloca.h.
506 Call gomp_alloca instead of alloca.
508 2006-01-20 Steve Ellcey <sje@cup.hp.com>
511 * team.c: Add include of alloca.h.
512 * configure.ac: Add check for alloca.h.
513 * configure: Regenerate.
514 * config.h.in: Regenerate.
516 2006-01-17 Jakub Jelinek <jakub@redhat.com>
519 * testsuite/libgomp.fortran/pr25219.f90: New test.
521 2005-12-05 Uros Bizjak <uros@kss-loka.si>
523 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
524 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
525 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
526 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
527 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
528 testsuite/libgomp.fortran/threadprivate1.f90,
529 testsuite/libgomp.fortran/threadprivate2.f90,
530 testsuite/libgomp.fortran/threadprivate3.f90,
531 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
532 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
533 testsuite/libgomp.fortran/omp_parse3.f90: Change required
534 effective-target to TLS runtime.
536 * testsuite/libgomp.fortran/pr25162.f: Require
537 effective-target TLS runtime.
539 2005-12-01 Jakub Jelinek <jakub@redhat.com>
541 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
542 * testsuite/libgomp.c/nestedfn-3.c: New test.
544 2005-11-30 Jakub Jelinek <jakub@redhat.com>
547 * testsuite/libgomp.fortran/pr25162.f: New test.
549 2005-11-28 Jakub Jelinek <jakub@redhat.com>
551 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
552 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
554 2005-11-25 Jakub Jelinek <jakub@redhat.com>
556 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
557 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
558 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
559 single.c, team.c, work.c, config/linux/alpha/futex.h,
560 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
561 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
562 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
563 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
564 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
565 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
566 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
569 2005-11-18 Jakub Jelinek <jakub@redhat.com>
571 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
572 to nodist_noinst_HEADERS.
573 * Makefile.in: Rebuilt.
575 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
576 add integer count field.
577 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
578 omp_nest_lock_t type change.
579 (omp_init_nest_lock): Likewise. Initialize count to 0.
580 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
582 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
584 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
585 Increment count if successful and return the new nesting level.
586 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
587 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
588 * testsuite/libgomp.c/lib-1.c: New test.
589 * testsuite/libgomp.fortran/lib1.f90: New test.
590 * testsuite/libgomp.fortran/lib2.f: New test.
591 * testsuite/libgomp.fortran/lib3.f: New test.
593 2005-11-17 Richard Henderson <rth@redhat.com>
596 * Makefile.am (nodist_toolexeclib_HEADERS): New.
597 * configure.ac (link_gomp): New. Substitute it.
598 (AC_CONFIG_FILES): Add libgomp.spec.
599 * libgomp.spec.in: New file.
600 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
601 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
603 2005-11-18 Jakub Jelinek <jakub@redhat.com>
605 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
606 reduction(-:var) behaving the same as reduction(+:var).
607 * testsuite/libgomp.c/reduction-4.c: New test.
609 2005-11-15 Uros Bizjak <uros@kss-loka.si>
611 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
612 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
613 testsuite/libgomp.c/copyin-3.c,
614 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
615 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
616 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
617 testsuite/libgomp.c++/pr24455.C,
618 testsuite/libgomp.fortran/threadprivate1.f90,
619 testsuite/libgomp.fortran/threadprivate2.f90,
620 testsuite/libgomp.fortran/threadprivate3.f90,
621 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
622 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
623 testsuite/libgomp.fortran/omp_parse3.f90: Require
624 effective-target TLS.
626 2005-11-14 Diego Novillo <dnovillo@redhat.com>
630 2005-11-13 Jakub Jelinek <jakub@redhat.com>
633 * team.c (initialize_team): Pass NULL rather than free as
634 pthread_key_create destructor. Initialize thread specific data
635 pointer in initial thread to a static local variable rather than
638 2005-11-11 Uros Bizjak <uros@kss-loka.si>
640 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
641 its location to ld_library_path.
643 2005-11-10 Diego Novillo <dnovillo@redhat.com>
645 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
647 2005-11-10 Diego Novillo <dnovillo@redhat.com>
649 * testsuite/libgomp.c: Rename from libgomp.dg.
651 2005-11-09 Diego Novillo <dnovillo@redhat.com>
653 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
654 threadprivate variable 'i'.
656 2005-11-09 Jakub Jelinek <jakub@redhat.com>
658 * config/linux/s390/futex.h: New file.
659 * configure.tgt: Use it.
661 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
664 2005-11-08 Jakub Jelinek <jakub@redhat.com>
667 * testsuite/libgomp.c++/master-1.C: New test.
669 2005-11-07 Jakub Jelinek <jakub@redhat.com>
671 * testsuite/libgomp.dg/copyin-3.c: New test.
673 2005-11-07 Jakub Jelinek <jakub@redhat.com>
675 * testsuite/libgomp.fortran/retval1.f90: New test.
676 * testsuite/libgomp.fortran/vla7.f90: New test.
678 2005-11-06 Jakub Jelinek <jakub@redhat.com>
680 * testsuite/libgomp.fortran/vla2.f90: New test.
681 * testsuite/libgomp.fortran/vla3.f90: New test.
682 * testsuite/libgomp.fortran/vla4.f90: New test.
683 * testsuite/libgomp.fortran/vla5.f90: New test.
684 * testsuite/libgomp.fortran/vla6.f90: New test.
686 2005-11-01 Jakub Jelinek <jakub@redhat.com>
688 * config/linux/sparc/futex.h: New file.
689 * configure.tgt: Use it.
690 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
692 * critical.c: Include stdlib.h.
693 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
694 ignoring return value.
695 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
696 LIBGOMP_CHECK_SYNC_BUILTINS check.
697 * configure: Rebuilt.
699 2005-10-31 Jakub Jelinek <jakub@redhat.com>
701 * testsuite/libgomp.fortran/vla1.f90: New test.
703 2005-10-31 Richard Henderson <rth@redhat.com>
705 * testsuite/libgomp.fortran/character2.f90: Fix race condition
706 setting 's' in different threads.
708 2005-10-31 Jakub Jelinek <jakub@redhat.com>
710 * libgomp.h (attribute_hidden, ialias): Define.
711 * config/posix/proc.c (omp_get_num_procs): Add ialias.
712 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
713 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
714 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
715 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
716 omp_test_lock, omp_test_nest_lock): Likewise.
717 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
718 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
719 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
720 omp_test_lock, omp_test_nest_lock): Likewise.
721 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
722 omp_get_dynamic, omp_get_nested): Likewise.
723 * parallel.c (omp_get_num_threads, omp_get_max_threads,
724 omp_get_thread_num, omp_in_parallel): Likewise.
725 * fortran.c (ialias_redirect): Define.
726 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
727 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
728 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
729 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
730 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
731 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
732 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
733 omp_get_wtime): Add ialias_redirect.
735 2005-10-30 Jakub Jelinek <jakub@redhat.com>
737 * fortran.c: Include stdlib.h.
739 2005-10-29 Jakub Jelinek <jakub@redhat.com>
741 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
742 * Makefile.in: Regenerated.
744 2005-10-28 Jakub Jelinek <jakub@redhat.com>
746 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
747 * libgomp_f.h.in (omp_check_defines): New function.
748 * env.c: Include libgomp_f.h.
749 (initialize_env): Call omp_check_defines.
751 * testsuite/libgomp.dg/copyin-2.c: New test.
752 * testsuite/libgomp.c++/copyin-2.C: New test.
753 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
755 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
756 * testsuite/libgomp.fortran/sharing2.f90: New test.
758 * testsuite/libgomp.dg/copyin-1.c: New test.
759 * testsuite/libgomp.c++/copyin-1.C: New test.
761 2005-10-26 Jakub Jelinek <jakub@redhat.com>
763 * testsuite/libgomp.fortran/crayptr1.f90: New test.
765 * testsuite/libgomp.fortran/workshare1.f90: New test.
767 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
769 * libgomp.fortran/sharing1.f90: New test.
771 2005-10-24 Jakub Jelinek <jakub@redhat.com>
774 * testsuite/libgomp.c++/loop-7.C: New test.
776 * testsuite/libgomp.dg/nestedfn-2.c: New test.
778 * testsuite/libgomp.dg/nestedfn-1.c: New test.
779 * testsuite/libgomp.fortran/reduction6.f90: New test.
780 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
782 2005-10-23 Richard Henderson <rth@redhat.com>
784 * testsuite/libgomp.c++/ctor-1.C: New.
785 * testsuite/libgomp.c++/ctor-2.C: New.
786 * testsuite/libgomp.c++/ctor-3.C: New.
787 * testsuite/libgomp.c++/ctor-4.C: New.
788 * testsuite/libgomp.c++/ctor-5.C: New.
789 * testsuite/libgomp.c++/ctor-6.C: New.
790 * testsuite/libgomp.c++/ctor-7.C: New.
791 * testsuite/libgomp.c++/ctor-8.C: New.
792 * testsuite/libgomp.c++/ctor-9.C: New.
794 2005-10-21 Diego Novillo <dnovillo@redhat.com>
797 * testsuite/libgomp.c++/pr24455-1.C: New test.
798 * testsuite/libgomp.c++/pr24455.C: New test.
799 * testsuite/libgomp.dg/pr24455-1.c: New test.
800 * testsuite/libgomp.dg/pr24455.c: New test.
802 2005-10-20 Richard Henderson <rth@redhat.com>
804 * testsuite/libgomp.c++/loop-6.C: New.
805 * testsuite/libgomp.dg/loop-3.c: New.
807 2005-10-20 Jakub Jelinek <jakub@redhat.com>
809 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
811 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
814 2005-10-19 Diego Novillo <dnovillo@redhat.com>
816 * testsuite/libgomp.fortran/jacobi.f: New test.
818 2005-10-19 Richard Henderson <rth@redhat.com>
820 * configure.tgt (i?86-linux): Default to with_arch instead of
821 CFLAGS. Add -mtune to match target_cpu.
822 (x86_64-linux): Tune to i686.
824 * fortran.c (omp_test_nest_lock_): Fix typo.
826 2005-10-19 Jakub Jelinek <jakub@redhat.com>
828 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
829 gomp_ordered_sync): Do nothing if team->nthreads == 1.
830 * testsuite/libgomp.dg/ordered-3.c: New test.
832 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
833 Remove volatile keyword.
835 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
836 in COMMON block to avoid warnings on 64-bit targets.
838 2005-10-18 Diego Novillo <dnovillo@redhat.com>
840 * testsuite/libgomp.dg/shared-3.c: New test.
842 2005-10-18 Jakub Jelinek <jakub@redhat.com>
844 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
845 * testsuite/libgomp.fortran/reduction5.f90: New test.
847 2005-10-18 Jakub Jelinek <jakub@redhat.com>
849 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
851 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
852 flush loop now that __sync_synchronize has proper memory barrier.
853 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
854 Add -ffixed-form to dg-options.
856 2005-10-17 Diego Novillo <dnovillo@redhat.com>
858 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
860 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
861 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
862 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
863 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
864 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
865 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
866 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
867 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
868 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
869 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
870 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
871 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
872 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
873 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
874 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
875 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
876 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
877 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
878 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
879 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
880 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
881 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
882 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
883 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
884 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
886 2005-10-17 Jakub Jelinek <jakub@redhat.com>
888 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
889 lang_library_path exists. Use find instead of glob to gather tests.
890 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
892 2005-10-17 Diego Novillo <dnovillo@redhat.com>
894 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
895 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
896 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
897 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
898 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
899 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
900 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
901 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
902 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
903 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
904 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
905 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
906 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
908 2005-10-15 Jakub Jelinek <jakub@redhat.com>
910 * testsuite/libgomp.dg/vla-1.c: New test.
912 * testsuite/libgomp.fortran/reference2.f90: New test.
914 * testsuite/libgomp.fortran/character2.f90: Remove explicit
915 declaration of omp_get_thread_num.
916 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
919 * testsuite/libgomp.fortran/reduction1.f90: New test.
920 * testsuite/libgomp.fortran/reduction2.f90: New test.
921 * testsuite/libgomp.fortran/reduction3.f90: New test.
922 * testsuite/libgomp.fortran/reduction4.f90: New test.
924 2005-10-13 Richard Henderson <rth@redhat.com>
926 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
927 * Makefile.in: Regenerate.
928 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
929 * libgomp.h: Include bar.h.
930 (struct gomp_barrier): Remove.
931 (struct gomp_team): Add barrier. Replace master_barrier with
932 master_release. Replace threads with ordered_release.
933 (struct gomp_thread): Replace barrier with release.
934 * ordered.c (gomp_ordered_first): Update for ordered_release change.
935 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
936 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
937 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
938 (GOMP_single_copy_end): Likewise.
939 * team.c (gomp_threads_dock): New.
940 (gomp_barrier_init, gomp_barrier_destroy): Remove.
941 (gomp_thread_start): Use gomp_barrier_wait.
942 (new_team, free_team): Update for gomp_team changes.
943 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
944 (gomp_team_end): Use gomp_barrier_wait.
945 (initialize_team): Update for gomp_thread changes.
946 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
947 (gomp_work_share_end_nowait): Use atomic ops when available.
948 * config/linux/bar.c, config/linux/bar.h: New files.
949 * config/posix/bar.c, config/posix/bar.h: New files.
951 2005-10-13 Jakub Jelinek <jakub@redhat.com>
953 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
954 * testsuite/libgomp.dg/single-2.c: New test.
956 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
957 lang_link_flags): Unset, so that they aren't inherited from previously
960 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
962 2005-10-12 Richard Henderson <rth@redhat.com>
964 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
965 (libgomp_init): Use lang_test_file, lang_library_path, and
966 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
968 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
969 (lang_test_file, lang_link_flags): New.
970 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
972 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
973 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
974 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
975 testsuite/libgomp.c++/parallel-1.C,
976 testsuite/libgomp.c++/reduction-1.C,
977 testsuite/libgomp.c++/reduction-2.C,
978 testsuite/libgomp.c++/reduction-3.C,
979 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
980 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
981 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
982 New files, largely cribbed from the C testsuite.
984 2005-10-12 Jakub Jelinek <jakub@redhat.com>
986 * testsuite/libgomp.fortran/character1.f90: New test.
987 * testsuite/libgomp.fortran/character2.f90: New test.
989 * testsuite/libgomp.dg/nested-1.c: New test.
990 * testsuite/libgomp.dg/nested-2.c: New test.
991 * testsuite/libgomp.fortran/do1.f90: New test.
992 * testsuite/libgomp.fortran/do2.f90: New test.
994 * testsuite/libgomp.fortran/reference1.f90: New test.
996 2005-10-11 Jakub Jelinek <jakub@redhat.com>
998 * testsuite/libgomp.dg/reduction-1.c: New test.
999 * testsuite/libgomp.dg/reduction-2.c: New test.
1000 * testsuite/libgomp.dg/reduction-3.c: New test.
1002 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1004 * testsuite/libgomp.dg/atomic-1.c: New test.
1005 * testsuite/libgomp.dg/atomic-2.c: New test.
1007 2005-10-09 Richard Henderson <rth@redhat.com>
1009 * critical.c (atomic_lock): New.
1010 (initialize_critical): Initialize it.
1011 (GOMP_atomic_start, GOMP_atomic_end): New.
1012 * libgomp.map: Export them.
1013 * libgomp_g.h: Declare them.
1015 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1017 2005-10-02 Richard Henderson <rth@redhat.com>
1019 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1020 to XCFLAGS instead of CFLAGS.
1022 2005-09-30 Richard Henderson <rth@redhat.com>
1024 * configure.ac: Determine whether -pthread or -lpthread is needed.
1025 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1026 * Makefine.in, configure: Rebuild.
1028 2005-09-28 Richard Henderson <rth@redhat.com>
1030 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1031 * testsuite/libgomp.dg/omp-single-3.c: New test.
1033 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1035 * testsuite/libgomp.dg/omp-single-2.c: New test.
1036 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1038 2005-09-27 Richard Henderson <rth@redhat.com>
1040 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1041 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1043 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1045 * testsuite/libgomp.dg/omp-loop03.c: New test.
1047 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1049 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1051 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1053 * testsuite/libgomp.dg/omp-single-1.c: New test.
1054 * testsuite/libgomp.dg/shared-1.c: Return 0.
1055 Add prototype for abort.
1056 * testsuite/libgomp.dg/shared-2.c: Likewise.
1058 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1060 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1063 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1065 * testsuite/libgomp.dg/shared-1.c: New test.
1066 * testsuite/libgomp.dg/shared-2.c: New test.
1068 2005-09-24 Richard Henderson <rth@redhat.com>
1070 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1072 2005-09-24 Richard Henderson <rth@redhat.com>
1074 * iter.c (gomp_iter_static_next): Round up when computing number
1075 of iterations. Don't bother distributing a remainder equally.
1077 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1078 Don't call srand. Zero b before testing.
1081 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1083 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1084 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1086 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1088 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1089 without !$omp end do, followed immediately by subroutine end.
1091 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1093 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1095 2005-09-22 Richard Henderson <rth@redhat.com>
1097 * critical.c (GOMP_critical_name_start): Change argument to void**.
1098 Reuse the pointer space if the mutex fits.
1099 (GOMP_critical_name_end): Likewise.
1100 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1101 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1102 (GOMP_critical_name_end): Likewise.
1103 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1104 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1106 2005-09-20 Richard Henderson <rth@redhat.com>
1108 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1109 (create_lock_lock): New.
1110 (initialize_critical): Initialize it.
1111 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1112 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1114 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1116 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1118 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1120 * testsuite/libgomp.dg/omp-loop01.c: New test.
1121 * testsuite/libgomp.dg/omp-loop02.c: New test.
1123 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1125 * configure.ac (AC_PROG_FC): Add.
1126 (USE_FORTRAN): New automake conditional.
1127 * configure: Rebuilt.
1128 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1129 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1130 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1131 Add rules to build them.
1132 * Makefile.in: Rebuilt.
1133 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1135 * libgomp.map: Add Fortran wrappers.
1136 * libgomp_f.h.in: New file.
1137 * omp_lib.h.in: New file.
1138 * omp_lib.f90.in: New file.
1139 * fortran.c: New file.
1140 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1141 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1142 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1143 libgfortran has been built.
1144 * testsuite/libgomp.fortran/fortran.exp: New file.
1145 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1146 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1147 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1148 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1149 * testsuite/libgomp.fortran/omp_hello.f: New test.
1150 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1151 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1152 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1153 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1154 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1155 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1156 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1157 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1159 2005-08-30 Richard Henderson <rth@redhat.com>
1161 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1162 function for when aliases are not usable.
1163 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1164 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1165 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1166 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1167 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1168 GOMP_loop_ordered_guided_next): Likewise.
1169 * ordered.c (GOMP_ordered_start): Likewise.
1171 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1173 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1174 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1175 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1176 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1177 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1178 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1179 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1180 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1181 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1183 2005-07-07 Eric Christopher <echristo@redhat.com>
1184 Diego Novillo <dnovillo@redhat.com>
1186 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1187 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1189 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1190 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1191 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1192 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1193 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1194 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1195 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1197 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1199 * TOPLEVEL.patch: Remove.
1201 2005-05-16 Richard Henderson <rth@redhat.com>
1203 * configure.ac: Test for clock_gettime.
1204 * config.h.in, configure: Rebuild.
1205 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1206 (omp_get_wtime): Use clock_gettime if available.
1207 (omp_get_wtick): Use clock_getres if available.
1209 2005-05-11 Richard Henderson <rth@redhat.com>
1211 * config/linux/ia64/futex.h: New file.
1212 * configure.tgt: Use it.
1214 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1216 2005-05-07 Richard Henderson <rth@redhat.com>
1218 * config/linux/powerpc/futex.h: New file.
1219 * configure.tgt: Use it.
1221 * config/linux/i486/futex.h: Merge ...
1222 * config/linux/x86_64/futex.h: ... into ...
1223 * config/linux/x86/futex.h: ... here.
1224 * configure.tgt: Update to match.
1226 2005-05-06 Richard Henderson <rth@redhat.com>
1228 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1229 * config/linux/i486/futex.h: Likewise.
1230 * config/linux/x86_64/futex.h: Likewise.
1232 * config/linux/lock.c: New file.
1233 * config/linux/omp-lock.h: New file.
1235 * critical.c, env.h: Don't include omp.h
1236 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1237 * config/posix/time.c: Likewise.
1238 * config/posix/omp-lock.h: New file.
1239 * libgomp.h: Include omp-lock.h and omp.h.
1240 * Makefile.am (nodist_include_HEADERS): New.
1242 * configure.ac (PERL): New.
1243 * mkomp_h.pl: New file.
1244 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1246 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1248 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1249 build directory. Re-add -march=i486 hack.
1251 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1252 (libgomp_link_flags): Remove.
1253 (libgomp_initialized): Remove.
1254 (libgomp_init): Don't protect from reinitialization. Copy code
1255 from libstdc++ for getting the multilib set correctly.
1257 2005-05-05 Richard Henderson <rth@redhat.com>
1259 * config/linux/alpha/futex.h: New file.
1260 * configure.tgt (alpha*-*-linux*): Use it.
1262 * config/posix/mutex.c: New file.
1263 * config/posix/sem.c: Use libgomp.h.
1265 * configure.tgt (x86_64-linux): Also test CC for -m32.
1266 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1268 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1271 * Makefile.am (SUBDIRS): New.
1272 (libgomp_la_LDFLAGS): Add -lpthread.
1273 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1274 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1276 * libgomp_g.h: New file.
1277 * libgomp.h: Split out all public declarations to libgomp_g.h.
1278 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1279 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1280 * config/linux/sem.h: Likewise.
1281 * config/posix/sem.h: Likewise.
1283 * Makefile.am (AM_LDFLAGS): New.
1284 (libgomp_version_script): Split out from ...
1285 (libgomp_la_LDFLAGS): ... here.
1286 (libgomp_version_info): New.
1287 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1288 (LIBGOMP_ENABLE): New.
1289 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1290 (LIBGOMP_ENABLE_SYMVERS): New.
1291 * configure.ac (AC_INIT): Version 1.0.
1292 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1293 (enable-linux-futex): Likewise. Rename from enable-futex.
1294 (libtool_VERSION): New.
1295 (LIBGOMP_ENABLE_SYMVERS): Use it.
1296 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1297 * Makefile.in, aclocal.m4, configure: Rebuild.
1299 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1300 (gomp_mutex_unlock_slow): Fix typo.
1301 * config/linux/sem.c: Similarly.
1302 (gomp_sem_post_slow): Fix typo.
1303 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1304 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1305 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1307 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1308 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1309 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1310 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1311 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1312 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1313 LDFLAGS. Pull enable_futex check to top-level.
1314 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1315 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1317 First attempt at real configury.
1318 * Makefile, config.h: Remove file.
1319 * Makefile.am, Makefile.in: New file.
1320 * acinclude.m4 aclocal.m4: New file.
1321 * configure.ac, configure.tgt, configure: New file.
1323 * config/posix/lock.c: Rename from sys-lock.c.
1324 * config/posix/mutex.h: Rename from sys-mutex.h.
1325 * config/posix/sem.c: Rename from sys-sem.c.
1326 * config/posix/sem.h: Rename from sys-sem.h.
1327 * config/posix/proc.c: Rename from sys-proc.c.
1328 * config/posix/time.c: Rename from sys-proc.c.
1330 * config/linux/mutex.c: New file.
1331 * config/linux/mutex.h: New file.
1332 * config/linux/sem.c: New file.
1333 * config/linux/sem.h: New file.
1334 * config/linux/i486/futex.h: New file.
1335 * config/linux/x86_64/futex.h: New file.
1337 2005-05-04 Richard Henderson <rth@redhat.com>
1339 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1340 * libgomp.h: Declare them.
1341 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1342 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1344 2005-05-04 Richard Henderson <rth@redhat.com>
1346 * libgomp-1 code drop
1348 2005-05-04 Richard Henderson <rth@redhat.com>
1350 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1351 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1352 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1353 (gomp_iter_static_next): Update.
1354 (gomp_ordered_static_next): Update.
1355 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1356 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1357 totally empty range.
1358 (gomp_loop_ordered_static_next): Refine test for calling
1359 gomp_ordered_static_next.
1360 * testsuite/ordered-1.c: Add case for more threads than iterations.
1362 * iter.c (gomp_iter_runtime_next_locked): Remove.
1363 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1364 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1365 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1366 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1367 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1368 gomp_loop_ordered_guided_next): Downcase name, make static, add
1369 an external alias with the old name.
1370 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1371 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1372 switch and call one of the above static functions.
1373 * libgomp.h: Update.
1375 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1376 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1377 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1378 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1379 GOMP_loop_ordered_guided_start): Update to match.
1380 * sections.c (GOMP_sections_start): Likewise.
1381 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1383 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1384 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1385 Use bounds check instead of modulus.
1386 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1387 (gomp_ordered_last): Don't sync with ordered_owner here.
1388 (gomp_ordered_next): Likewise.
1389 (gomp_ordered_static_loop_next): Likewise.
1390 * loop.c, libgomp.h: Update to match.
1392 * libgomp.h (GOMP_barrier): Declare.
1394 * testsuite/barrier-1.c: New file.
1395 * testsuite/critical-1.c: New file.
1396 * testsuite/ordered-2.c: New file.
1397 * testsuite/ordered-1.c: New file.
1398 * testsuite/sections-1.c: New file.
1399 * testsuite/single-1.c: New file.
1400 * testsuite/Makefile (TESTS): Add them.
1402 2005-05-04 Richard Henderson <rth@redhat.com>
1404 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1405 * loop.c (GOMP_loop_static_start): If not the startup thread,
1406 acquire the mutex to wait for initialization complete.
1407 (GOMP_loop_ordered_static_start): Likewise.
1408 (GOMP_loop_ordered_runtime_start): Likewise.
1409 (GOMP_loop_ordered_static_first): Remove.
1410 (GOMP_loop_ordered_dynamic_first): Remove.
1411 (GOMP_loop_ordered_guided_first): Remove.
1412 (GOMP_loop_ordered_runtime_first): Remove.
1413 * ordered.c (gomp_ordered_loop_first): Post to own release when
1414 we're the first thread.
1415 (gomp_ordered_loop_last): Wait on release if not owner.
1416 (gomp_ordered_loop_next): Likewise.
1417 (gomp_ordered_static_loop_init): New.
1418 (gomp_ordered_static_loop_next): Use ordered_owner.
1419 (GOMP_ordered_start): Likewise.
1420 * work.c (gomp_new_work_share): Initialize ordered_owner.
1422 2005-05-03 Richard Henderson <rth@redhat.com>
1424 * Makefile (OPT): New.
1427 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1428 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1429 * libgomp.h, libgomp.map, NOTES: Update to match.
1431 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1432 Add initialized and thr members.
1433 (gomp_thread_start): Pause when initially spawned to wait for
1434 the whole team to be created.
1435 (gomp_team_start): Release team members at the end.
1437 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1438 (f_foo_1): Use GOMP_loop_end.
1439 (f_foo_2): Use GOMP_loop_end_nowait.
1441 * testsuite/loop-2.c: New file.
1442 * testsuite/Makefile (TESTS): Add it.
1444 2005-05-03 Richard Henderson <rth@redhat.com>
1446 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1447 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1448 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1451 * testsuite/Makefile: New file.
1452 * testsuite/loop-1.c: New file.
1454 2005-05-03 Richard Henderson <rth@redhat.com>
1456 Initial implementation and checkin.