1 2007-06-21 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/pr32362-1.c: New test.
5 * testsuite/libgomp.c/pr32362-2.c: New test.
6 * testsuite/libgomp.c/pr32362-3.c: New test.
8 2007-06-07 Jakub Jelinek <jakub@redhat.com>
10 * team.c (gomp_team_start): Fix setting up thread_attr
13 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
15 * configure: Regenerate.
17 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19 * Makefile.in: Regenerate.
20 * configure: Regenerate.
21 * aclocal.m4: Regenerate.
22 * testsuite/Makefile.in: Regenerate.
24 2007-05-04 Jakub Jelinek <jakub@redhat.com>
26 * config/linux/proc.c: New file.
29 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
31 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
33 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
35 2007-04-16 Matthias Klose <doko@debian.org>
37 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
38 flags if not building with -m64.
39 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
40 flag for i?86-*-* targets, if current target matches -m64.
42 2007-04-14 Steve Ellcey <sje@cup.hp.com>
44 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
45 * Makefile.in: Regenerate.
47 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
50 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
52 * testsuite/libgomp.fortran/fortran.exp: Likewise.
54 2007-04-04 Jakub Jelinek <jakub@redhat.com>
56 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
58 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
59 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
60 (parse_affinity): New function.
61 (initialize_env): Call it and gomp_init_affinity.
62 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
63 create new pthread_attr_t and call gomp_init_thread_affinity
64 on it for each thread before passing the attribute to pthread_create.
65 * config/linux/affinity.c: New file.
66 * config/posix/affinity.c: New file.
67 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
69 * config.h.in: Rebuilt.
70 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
71 * Makefile.in: Rebuilt.
73 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
75 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
77 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
80 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
82 * testsuite/config/default.exp: New file.
83 * testsuite/lib/libgomp.exp: New file.
84 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
85 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
86 load_lib *, load_gcc_lib *): Move to libgomp.exp.
87 (libgomp_load): Remove.
88 * testsuite/lib/libgomp.exp (libgomp_init): Compute
89 always_ld_library_path, not ld_library_path. Set additional_flags
90 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
91 (target_compile): Do not call libgomp_init. Append lang_library_path
92 and lang_link_flags to options.
93 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
94 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
96 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
97 always_ld_library_path. Set LD_LIBRARY_PATH here.
98 * testsuite/libgomp.fortran/fortran.exp: Ditto.
99 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
100 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
102 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
103 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
104 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
105 * testsuite/libgomp.c/pr29947-1.c: Ditto.
106 * testsuite/libgomp.c/atomic-10.c: Ditto.
108 2007-03-21 Jakub Jelinek <jakub@redhat.com>
110 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
111 dg-final cleanup-modules line.
112 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
113 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
114 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
115 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
116 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
117 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
118 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
120 2007-03-18 Andreas Schwab <schwab@suse.de>
122 * acinclude.m4: Adjust regular expression for ld version
124 * configure: Regenerate.
126 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
128 * Makefile.am: Add install-pdf target as copied from
129 automake v1.10 rules.
130 * Makefile.in: Regenerate
132 2007-02-07 Jakub Jelinek <jakub@redhat.com>
135 * configure: Regenerate.
138 * testsuite/libgomp.c++/pr30703.C: New test.
140 2007-02-02 Jakub Jelinek <jakub@redhat.com>
143 2006-07-05 Eric Christopher <echristo@apple.com>
144 * configure.ac: Depend addition of -pthread on host OS.
145 * configure: Regenerate.
147 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
149 * libgomp.texi: Fix spacing after abbreviations.
151 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
154 * configure.ac: Add check for makeinfo
155 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
156 if an appropiate version of makeinfo is found.
157 * aclocal.m4: Regenerated.
158 * configure: Regenerated.
159 * Makefile.in: Regenerated.
160 * testsuite/Makefile.in: Regenerated.
162 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
165 * libgomp.texi: More about implementation-dependent settings.
167 2007-01-26 Tobias Burnus <burnus@net-b.de>
169 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
171 2007-01-24 Jakub Jelinek <jakub@redhat.com>
174 * testsuite/libgomp.c/pr30494.c: New test.
176 2007-01-15 Tom Tromey <tromey@redhat.com>
178 * configure: Rebuilt.
179 * configure.ac: Fixed comment.
181 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
183 * libgomp.texi: Document implementation specific default values of
184 environment variables.
186 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
189 * libgomp.texi: New file.
190 * configure.ac: Add --enable-generated-files-in-srcdir option.
191 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
193 * Makefile.in: Regenerated.
194 * config.h.in: Regenerated.
195 * testsuite/Makefile.in: Regenerated.
198 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
201 * env.c (omp_set_num_threads): Set illegal thread count to 1.
203 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
205 * configure: Regenerate.
207 2006-12-04 Jakub Jelinek <jakub@redhat.com>
210 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
211 start if there shouldn't be any loop iterations.
212 (gomp_loop_ordered_static_start): Remove start == end test.
213 * testsuite/libgomp.c/pr29947-1.c: New test.
214 * testsuite/libgomp.c/pr29947-2.c: New test.
216 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
218 * configure.tgt: Force initial-exec TLS model on Linux only.
220 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
222 * configure: Regenerated.
224 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
226 * env.c (parse_schedule): Reject out of range values.
227 (parse_unsigned_long): Reject out of range, negative or zero values.
229 2006-10-29 Jakub Jelinek <jakub@redhat.com>
232 * testsuite/libgomp.fortran/pr29629.f90: New test.
234 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
237 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
238 * config/posix95: New directory.
239 * config/posix95/omp-lock.h: New file.
240 * config/posix95/lock.c: Likewise.
242 2006-10-14 Geoffrey Keating <geoffk@apple.com>
244 * aclocal.m4: Regenerate.
245 * configure: Regenerate.
247 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
249 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
252 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
254 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
256 * configure: Regenerate.
257 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
259 2006-09-26 Jakub Jelinek <jakub@redhat.com>
263 * testsuite/libgomp.c/nestedfn-4.c: New test.
264 * testsuite/libgomp.c/nestedfn-5.c: New test.
265 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
268 * testsuite/libgomp.fortran/condinc1.f: New test.
269 * testsuite/libgomp.fortran/condinc2.f: New test.
270 * testsuite/libgomp.fortran/condinc3.f90: New test.
271 * testsuite/libgomp.fortran/condinc4.f90: New test.
272 * testsuite/libgomp.fortran/condinc1.inc: New file.
274 2006-09-18 Tom Tromey <tromey@redhat.com>
276 * configure: Rebuilt.
278 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
281 PR preprocessor/14634
282 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
284 * configure: Regenerate.
286 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
288 * testsuite/libgomp.fortran/reduction3.f90: Change
289 -2147483648 to -huge(i)-1 to avoid overflow.
290 * testsuite/libgomp.fortran/reduction4.f90: Change
291 Z'ffffffff' to not(0) to avoid overflow.
293 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
296 * Makefile.am (libsubincludedir): New.
297 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
298 * Makefile.in: Regenerate.
300 2006-08-17 Jakub Jelinek <jakub@redhat.com>
303 * env.c: Include ctype.h.
304 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
305 leading and/or trailing whitespace and compare strings case
308 2006-07-16 Jakub Jelinek <jakub@redhat.com>
311 * testsuite/libgomp.fortran/pr28390.f: New test.
313 2006-07-05 Eric Christopher <echristo@apple.com>
315 * configure.ac: Depend addition of -pthread on host OS.
316 * configure: Regenerate.
318 2006-06-21 Jakub Jelinek <jakub@redhat.com>
320 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
321 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
324 2006-06-20 Jakub Jelinek <jakub@redhat.com>
328 * configure.ac: If neither --enable-linux-futex nor
329 --disable-linux-futex is passed, determine the default by checking
330 for compiling and/or running against NPTL. With --enable-linux-futex,
331 check if SYS_gettid and SYS_futex are defined.
332 * configure: Rebuilt.
334 2006-06-14 Richard Henderson <rth@redhat.com>
337 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
338 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
340 2006-06-09 Richard Henderson <rth@redhat.com>
342 * env.c (gomp_nthreads_var): Change to unsigned long.
343 (gomp_run_sched_chunk): Likewise.
344 (parse_unsigned_long): Rename from parse_num_threads and generalize.
345 (initialize_env): Initialize gomp_thread_attr.
346 * libgomp.h (gomp_nthreads_var): Update decl.
347 (gomp_run_sched_chunk): Likewise.
348 (gomp_thread_attr): Declare.
349 * team.c (gomp_thread_attr): Export.
350 (initialize_team): Don't initialize it.
352 2006-06-09 Jakub Jelinek <jakub@redhat.com>
355 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
356 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
358 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
360 * config/mingw32/time.c: New file.
361 * configure.tgt: Use it.
363 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
365 * Makefile.am: Add install-html target. Add install-html to .PHONY
366 * Makefile.in: Regenerate.
368 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
371 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
372 * testsuite/libgomp.c/critical-1.c: Likewise.
373 * testsuite/libgomp.c/loop-1.c: Likewise.
374 * testsuite/libgomp.c/loop-2.c: Likewise.
375 * testsuite/libgomp.c/single-1.c: Likewise.
376 * testsuite/libgomp.c/ordered-1.c: Likewise.
377 * testsuite/libgomp.c/ordered-2.c: Likewise.
379 2006-05-15 Jakub Jelinek <jakub@redhat.com>
382 * libgomp.fortran/pr27416-1.f90: New test.
384 2006-05-03 Jakub Jelinek <jakub@redhat.com>
387 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
388 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
390 2006-05-02 Jakub Jelinek <jakub@redhat.com>
393 * testsuite/libgomp.c/pr26943-1.c: New test.
394 * testsuite/libgomp.c/pr26943-2.c: New test.
395 * testsuite/libgomp.c/pr26943-3.c: New test.
396 * testsuite/libgomp.c/pr26943-4.c: New test.
397 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
398 * testsuite/libgomp.c++/pr26943.C: New test.
400 2006-05-02 Jakub Jelinek <jakub@redhat.com>
403 * testsuite/libgomp.c++/pr27337.C: New test.
405 2006-04-26 Jakub Jelinek <jakub@redhat.com>
408 * testsuite/libgomp.c/pr26171.c: New test.
410 2006-04-25 Richard Henderson <rth@redhat.com>
413 * configure.ac: Use GCC_CHECK_TLS.
414 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
415 * Makefile.in, aclocal.m4, configure: Regenerate.
417 2006-04-10 Matthias Klose <doko@debian.org>
419 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
420 directory names containing underscores.
422 2006-03-21 Jakub Jelinek <jakub@redhat.com>
425 * testsuite/libgomp.c++/pr26691.C: New test.
427 2006-03-13 Jakub Jelinek <jakub@redhat.com>
429 * testsuite/libgomp.fortran/retval2.f90: New test.
431 2006-03-09 Diego Novillo <dnovillo@redhat.com>
433 * testsuite/libgomp.c++: New directory.
435 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
437 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
438 * config/posix/sem.c: Implement the above.
440 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
442 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
443 define HAVE_BROKEN_POSIX_SEMAPHORES.
444 * configure: Rebuilt.
445 * config.h.in: Rebuilt.
447 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
450 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
451 for the other pthread check.
452 * configure: Regenerate.
453 * config.h.in: Regenerate.
455 2006-02-15 Jakub Jelinek <jakub@redhat.com>
459 * Makefile.am (fincludedir): New variable.
460 (nodist_include_HEADERS): Remove Fortran files.
461 (nodist_finclude_HEADERS): New variable.
462 * Makefile.in: Regenerated.
464 2006-02-13 Jakub Jelinek <jakub@redhat.com>
466 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
467 Remove tests for returning assumed character length arrays.
469 2006-02-12 Roger Sayle <roger@eyesopen.com>
470 John David Anglin <dave@hiauly1.hia.nrc.ca>
473 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
475 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
477 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
479 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
481 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
482 part of LD_LIBRARY_PATH manually.
484 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
487 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
490 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
493 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
494 * configure.ac (PERL): Don't set.
495 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
496 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
497 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
498 * omp.h.in: Wrap the new configure substitutions with @ characters.
499 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
500 * aclocal.m4, configure, Makefile.in: Regenerate.
501 * mkomp_h.pl: Delete.
503 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
506 * configure.ac: Use GCC_HEADER_STDINT.
507 * libgomp.h: Include gstdint.h.
508 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
509 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
511 2006-01-24 Richard Henderson <rth@redhat.com>
514 * configure.ac: Add AM_MAINTAINER_MODE.
515 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
517 2006-01-24 Diego Novillo <dnovillo@redhat.com>
519 * Makefile.in: Regenerate.
520 * testsuite/Makefile.in: Regenerate.
521 * aclocal.m4: Regenerate.
523 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
525 * config/posix/proc.c: Conditional include of sys/loadavg.h for
527 * configure.ac: Add check for loadavg.h.
528 (link_gomp): Adjust comment.
529 * configure: Regenerate.
530 * config.h.in: Regenerate.
532 2006-01-21 Steve Ellcey <sje@cup.hp.com>
535 * configure.ac: Remove check for alloca.h.
536 * configure: Regenerate.
537 * config.h.in: Regenerate.
538 * libgomp.h: define gomp_alloca to be __builtin_alloca.
539 * team.c: Remove use of alloca.h.
540 Call gomp_alloca instead of alloca.
542 2006-01-20 Steve Ellcey <sje@cup.hp.com>
545 * team.c: Add include of alloca.h.
546 * configure.ac: Add check for alloca.h.
547 * configure: Regenerate.
548 * config.h.in: Regenerate.
550 2006-01-17 Jakub Jelinek <jakub@redhat.com>
553 * testsuite/libgomp.fortran/pr25219.f90: New test.
555 2005-12-05 Uros Bizjak <uros@kss-loka.si>
557 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
558 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
559 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
560 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
561 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
562 testsuite/libgomp.fortran/threadprivate1.f90,
563 testsuite/libgomp.fortran/threadprivate2.f90,
564 testsuite/libgomp.fortran/threadprivate3.f90,
565 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
566 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
567 testsuite/libgomp.fortran/omp_parse3.f90: Change required
568 effective-target to TLS runtime.
570 * testsuite/libgomp.fortran/pr25162.f: Require
571 effective-target TLS runtime.
573 2005-12-01 Jakub Jelinek <jakub@redhat.com>
575 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
576 * testsuite/libgomp.c/nestedfn-3.c: New test.
578 2005-11-30 Jakub Jelinek <jakub@redhat.com>
581 * testsuite/libgomp.fortran/pr25162.f: New test.
583 2005-11-28 Jakub Jelinek <jakub@redhat.com>
585 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
586 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
588 2005-11-25 Jakub Jelinek <jakub@redhat.com>
590 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
591 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
592 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
593 single.c, team.c, work.c, config/linux/alpha/futex.h,
594 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
595 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
596 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
597 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
598 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
599 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
600 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
603 2005-11-18 Jakub Jelinek <jakub@redhat.com>
605 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
606 to nodist_noinst_HEADERS.
607 * Makefile.in: Rebuilt.
609 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
610 add integer count field.
611 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
612 omp_nest_lock_t type change.
613 (omp_init_nest_lock): Likewise. Initialize count to 0.
614 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
616 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
618 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
619 Increment count if successful and return the new nesting level.
620 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
621 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
622 * testsuite/libgomp.c/lib-1.c: New test.
623 * testsuite/libgomp.fortran/lib1.f90: New test.
624 * testsuite/libgomp.fortran/lib2.f: New test.
625 * testsuite/libgomp.fortran/lib3.f: New test.
627 2005-11-17 Richard Henderson <rth@redhat.com>
630 * Makefile.am (nodist_toolexeclib_HEADERS): New.
631 * configure.ac (link_gomp): New. Substitute it.
632 (AC_CONFIG_FILES): Add libgomp.spec.
633 * libgomp.spec.in: New file.
634 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
635 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
637 2005-11-18 Jakub Jelinek <jakub@redhat.com>
639 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
640 reduction(-:var) behaving the same as reduction(+:var).
641 * testsuite/libgomp.c/reduction-4.c: New test.
643 2005-11-15 Uros Bizjak <uros@kss-loka.si>
645 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
646 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
647 testsuite/libgomp.c/copyin-3.c,
648 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
649 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
650 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
651 testsuite/libgomp.c++/pr24455.C,
652 testsuite/libgomp.fortran/threadprivate1.f90,
653 testsuite/libgomp.fortran/threadprivate2.f90,
654 testsuite/libgomp.fortran/threadprivate3.f90,
655 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
656 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
657 testsuite/libgomp.fortran/omp_parse3.f90: Require
658 effective-target TLS.
660 2005-11-14 Diego Novillo <dnovillo@redhat.com>
664 2005-11-13 Jakub Jelinek <jakub@redhat.com>
667 * team.c (initialize_team): Pass NULL rather than free as
668 pthread_key_create destructor. Initialize thread specific data
669 pointer in initial thread to a static local variable rather than
672 2005-11-11 Uros Bizjak <uros@kss-loka.si>
674 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
675 its location to ld_library_path.
677 2005-11-10 Diego Novillo <dnovillo@redhat.com>
679 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
681 2005-11-10 Diego Novillo <dnovillo@redhat.com>
683 * testsuite/libgomp.c: Rename from libgomp.dg.
685 2005-11-09 Diego Novillo <dnovillo@redhat.com>
687 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
688 threadprivate variable 'i'.
690 2005-11-09 Jakub Jelinek <jakub@redhat.com>
692 * config/linux/s390/futex.h: New file.
693 * configure.tgt: Use it.
695 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
698 2005-11-08 Jakub Jelinek <jakub@redhat.com>
701 * testsuite/libgomp.c++/master-1.C: New test.
703 2005-11-07 Jakub Jelinek <jakub@redhat.com>
705 * testsuite/libgomp.dg/copyin-3.c: New test.
707 2005-11-07 Jakub Jelinek <jakub@redhat.com>
709 * testsuite/libgomp.fortran/retval1.f90: New test.
710 * testsuite/libgomp.fortran/vla7.f90: New test.
712 2005-11-06 Jakub Jelinek <jakub@redhat.com>
714 * testsuite/libgomp.fortran/vla2.f90: New test.
715 * testsuite/libgomp.fortran/vla3.f90: New test.
716 * testsuite/libgomp.fortran/vla4.f90: New test.
717 * testsuite/libgomp.fortran/vla5.f90: New test.
718 * testsuite/libgomp.fortran/vla6.f90: New test.
720 2005-11-01 Jakub Jelinek <jakub@redhat.com>
722 * config/linux/sparc/futex.h: New file.
723 * configure.tgt: Use it.
724 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
726 * critical.c: Include stdlib.h.
727 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
728 ignoring return value.
729 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
730 LIBGOMP_CHECK_SYNC_BUILTINS check.
731 * configure: Rebuilt.
733 2005-10-31 Jakub Jelinek <jakub@redhat.com>
735 * testsuite/libgomp.fortran/vla1.f90: New test.
737 2005-10-31 Richard Henderson <rth@redhat.com>
739 * testsuite/libgomp.fortran/character2.f90: Fix race condition
740 setting 's' in different threads.
742 2005-10-31 Jakub Jelinek <jakub@redhat.com>
744 * libgomp.h (attribute_hidden, ialias): Define.
745 * config/posix/proc.c (omp_get_num_procs): Add ialias.
746 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
747 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
748 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
749 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
750 omp_test_lock, omp_test_nest_lock): Likewise.
751 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
752 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
753 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
754 omp_test_lock, omp_test_nest_lock): Likewise.
755 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
756 omp_get_dynamic, omp_get_nested): Likewise.
757 * parallel.c (omp_get_num_threads, omp_get_max_threads,
758 omp_get_thread_num, omp_in_parallel): Likewise.
759 * fortran.c (ialias_redirect): Define.
760 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
761 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
762 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
763 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
764 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
765 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
766 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
767 omp_get_wtime): Add ialias_redirect.
769 2005-10-30 Jakub Jelinek <jakub@redhat.com>
771 * fortran.c: Include stdlib.h.
773 2005-10-29 Jakub Jelinek <jakub@redhat.com>
775 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
776 * Makefile.in: Regenerated.
778 2005-10-28 Jakub Jelinek <jakub@redhat.com>
780 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
781 * libgomp_f.h.in (omp_check_defines): New function.
782 * env.c: Include libgomp_f.h.
783 (initialize_env): Call omp_check_defines.
785 * testsuite/libgomp.dg/copyin-2.c: New test.
786 * testsuite/libgomp.c++/copyin-2.C: New test.
787 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
789 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
790 * testsuite/libgomp.fortran/sharing2.f90: New test.
792 * testsuite/libgomp.dg/copyin-1.c: New test.
793 * testsuite/libgomp.c++/copyin-1.C: New test.
795 2005-10-26 Jakub Jelinek <jakub@redhat.com>
797 * testsuite/libgomp.fortran/crayptr1.f90: New test.
799 * testsuite/libgomp.fortran/workshare1.f90: New test.
801 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
803 * libgomp.fortran/sharing1.f90: New test.
805 2005-10-24 Jakub Jelinek <jakub@redhat.com>
808 * testsuite/libgomp.c++/loop-7.C: New test.
810 * testsuite/libgomp.dg/nestedfn-2.c: New test.
812 * testsuite/libgomp.dg/nestedfn-1.c: New test.
813 * testsuite/libgomp.fortran/reduction6.f90: New test.
814 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
816 2005-10-23 Richard Henderson <rth@redhat.com>
818 * testsuite/libgomp.c++/ctor-1.C: New.
819 * testsuite/libgomp.c++/ctor-2.C: New.
820 * testsuite/libgomp.c++/ctor-3.C: New.
821 * testsuite/libgomp.c++/ctor-4.C: New.
822 * testsuite/libgomp.c++/ctor-5.C: New.
823 * testsuite/libgomp.c++/ctor-6.C: New.
824 * testsuite/libgomp.c++/ctor-7.C: New.
825 * testsuite/libgomp.c++/ctor-8.C: New.
826 * testsuite/libgomp.c++/ctor-9.C: New.
828 2005-10-21 Diego Novillo <dnovillo@redhat.com>
831 * testsuite/libgomp.c++/pr24455-1.C: New test.
832 * testsuite/libgomp.c++/pr24455.C: New test.
833 * testsuite/libgomp.dg/pr24455-1.c: New test.
834 * testsuite/libgomp.dg/pr24455.c: New test.
836 2005-10-20 Richard Henderson <rth@redhat.com>
838 * testsuite/libgomp.c++/loop-6.C: New.
839 * testsuite/libgomp.dg/loop-3.c: New.
841 2005-10-20 Jakub Jelinek <jakub@redhat.com>
843 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
845 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
848 2005-10-19 Diego Novillo <dnovillo@redhat.com>
850 * testsuite/libgomp.fortran/jacobi.f: New test.
852 2005-10-19 Richard Henderson <rth@redhat.com>
854 * configure.tgt (i?86-linux): Default to with_arch instead of
855 CFLAGS. Add -mtune to match target_cpu.
856 (x86_64-linux): Tune to i686.
858 * fortran.c (omp_test_nest_lock_): Fix typo.
860 2005-10-19 Jakub Jelinek <jakub@redhat.com>
862 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
863 gomp_ordered_sync): Do nothing if team->nthreads == 1.
864 * testsuite/libgomp.dg/ordered-3.c: New test.
866 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
867 Remove volatile keyword.
869 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
870 in COMMON block to avoid warnings on 64-bit targets.
872 2005-10-18 Diego Novillo <dnovillo@redhat.com>
874 * testsuite/libgomp.dg/shared-3.c: New test.
876 2005-10-18 Jakub Jelinek <jakub@redhat.com>
878 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
879 * testsuite/libgomp.fortran/reduction5.f90: New test.
881 2005-10-18 Jakub Jelinek <jakub@redhat.com>
883 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
885 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
886 flush loop now that __sync_synchronize has proper memory barrier.
887 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
888 Add -ffixed-form to dg-options.
890 2005-10-17 Diego Novillo <dnovillo@redhat.com>
892 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
894 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
895 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
896 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
897 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
898 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
899 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
900 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
901 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
902 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
903 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
904 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
905 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
906 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
907 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
908 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
909 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
910 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
911 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
912 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
913 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
914 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
915 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
916 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
917 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
918 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
920 2005-10-17 Jakub Jelinek <jakub@redhat.com>
922 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
923 lang_library_path exists. Use find instead of glob to gather tests.
924 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
926 2005-10-17 Diego Novillo <dnovillo@redhat.com>
928 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
929 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
930 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
931 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
932 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
933 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
934 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
935 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
936 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
937 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
938 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
939 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
940 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
942 2005-10-15 Jakub Jelinek <jakub@redhat.com>
944 * testsuite/libgomp.dg/vla-1.c: New test.
946 * testsuite/libgomp.fortran/reference2.f90: New test.
948 * testsuite/libgomp.fortran/character2.f90: Remove explicit
949 declaration of omp_get_thread_num.
950 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
953 * testsuite/libgomp.fortran/reduction1.f90: New test.
954 * testsuite/libgomp.fortran/reduction2.f90: New test.
955 * testsuite/libgomp.fortran/reduction3.f90: New test.
956 * testsuite/libgomp.fortran/reduction4.f90: New test.
958 2005-10-13 Richard Henderson <rth@redhat.com>
960 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
961 * Makefile.in: Regenerate.
962 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
963 * libgomp.h: Include bar.h.
964 (struct gomp_barrier): Remove.
965 (struct gomp_team): Add barrier. Replace master_barrier with
966 master_release. Replace threads with ordered_release.
967 (struct gomp_thread): Replace barrier with release.
968 * ordered.c (gomp_ordered_first): Update for ordered_release change.
969 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
970 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
971 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
972 (GOMP_single_copy_end): Likewise.
973 * team.c (gomp_threads_dock): New.
974 (gomp_barrier_init, gomp_barrier_destroy): Remove.
975 (gomp_thread_start): Use gomp_barrier_wait.
976 (new_team, free_team): Update for gomp_team changes.
977 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
978 (gomp_team_end): Use gomp_barrier_wait.
979 (initialize_team): Update for gomp_thread changes.
980 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
981 (gomp_work_share_end_nowait): Use atomic ops when available.
982 * config/linux/bar.c, config/linux/bar.h: New files.
983 * config/posix/bar.c, config/posix/bar.h: New files.
985 2005-10-13 Jakub Jelinek <jakub@redhat.com>
987 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
988 * testsuite/libgomp.dg/single-2.c: New test.
990 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
991 lang_link_flags): Unset, so that they aren't inherited from previously
994 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
996 2005-10-12 Richard Henderson <rth@redhat.com>
998 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
999 (libgomp_init): Use lang_test_file, lang_library_path, and
1000 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1002 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1003 (lang_test_file, lang_link_flags): New.
1004 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1006 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1007 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1008 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1009 testsuite/libgomp.c++/parallel-1.C,
1010 testsuite/libgomp.c++/reduction-1.C,
1011 testsuite/libgomp.c++/reduction-2.C,
1012 testsuite/libgomp.c++/reduction-3.C,
1013 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1014 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1015 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1016 New files, largely cribbed from the C testsuite.
1018 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1020 * testsuite/libgomp.fortran/character1.f90: New test.
1021 * testsuite/libgomp.fortran/character2.f90: New test.
1023 * testsuite/libgomp.dg/nested-1.c: New test.
1024 * testsuite/libgomp.dg/nested-2.c: New test.
1025 * testsuite/libgomp.fortran/do1.f90: New test.
1026 * testsuite/libgomp.fortran/do2.f90: New test.
1028 * testsuite/libgomp.fortran/reference1.f90: New test.
1030 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1032 * testsuite/libgomp.dg/reduction-1.c: New test.
1033 * testsuite/libgomp.dg/reduction-2.c: New test.
1034 * testsuite/libgomp.dg/reduction-3.c: New test.
1036 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1038 * testsuite/libgomp.dg/atomic-1.c: New test.
1039 * testsuite/libgomp.dg/atomic-2.c: New test.
1041 2005-10-09 Richard Henderson <rth@redhat.com>
1043 * critical.c (atomic_lock): New.
1044 (initialize_critical): Initialize it.
1045 (GOMP_atomic_start, GOMP_atomic_end): New.
1046 * libgomp.map: Export them.
1047 * libgomp_g.h: Declare them.
1049 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1051 2005-10-02 Richard Henderson <rth@redhat.com>
1053 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1054 to XCFLAGS instead of CFLAGS.
1056 2005-09-30 Richard Henderson <rth@redhat.com>
1058 * configure.ac: Determine whether -pthread or -lpthread is needed.
1059 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1060 * Makefine.in, configure: Rebuild.
1062 2005-09-28 Richard Henderson <rth@redhat.com>
1064 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1065 * testsuite/libgomp.dg/omp-single-3.c: New test.
1067 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1069 * testsuite/libgomp.dg/omp-single-2.c: New test.
1070 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1072 2005-09-27 Richard Henderson <rth@redhat.com>
1074 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1075 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1077 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1079 * testsuite/libgomp.dg/omp-loop03.c: New test.
1081 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1083 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1085 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1087 * testsuite/libgomp.dg/omp-single-1.c: New test.
1088 * testsuite/libgomp.dg/shared-1.c: Return 0.
1089 Add prototype for abort.
1090 * testsuite/libgomp.dg/shared-2.c: Likewise.
1092 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1094 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1097 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1099 * testsuite/libgomp.dg/shared-1.c: New test.
1100 * testsuite/libgomp.dg/shared-2.c: New test.
1102 2005-09-24 Richard Henderson <rth@redhat.com>
1104 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1106 2005-09-24 Richard Henderson <rth@redhat.com>
1108 * iter.c (gomp_iter_static_next): Round up when computing number
1109 of iterations. Don't bother distributing a remainder equally.
1111 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1112 Don't call srand. Zero b before testing.
1115 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1117 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1118 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1120 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1122 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1123 without !$omp end do, followed immediately by subroutine end.
1125 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1127 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1129 2005-09-22 Richard Henderson <rth@redhat.com>
1131 * critical.c (GOMP_critical_name_start): Change argument to void**.
1132 Reuse the pointer space if the mutex fits.
1133 (GOMP_critical_name_end): Likewise.
1134 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1135 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1136 (GOMP_critical_name_end): Likewise.
1137 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1138 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1140 2005-09-20 Richard Henderson <rth@redhat.com>
1142 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1143 (create_lock_lock): New.
1144 (initialize_critical): Initialize it.
1145 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1146 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1148 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1150 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1152 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1154 * testsuite/libgomp.dg/omp-loop01.c: New test.
1155 * testsuite/libgomp.dg/omp-loop02.c: New test.
1157 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1159 * configure.ac (AC_PROG_FC): Add.
1160 (USE_FORTRAN): New automake conditional.
1161 * configure: Rebuilt.
1162 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1163 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1164 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1165 Add rules to build them.
1166 * Makefile.in: Rebuilt.
1167 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1169 * libgomp.map: Add Fortran wrappers.
1170 * libgomp_f.h.in: New file.
1171 * omp_lib.h.in: New file.
1172 * omp_lib.f90.in: New file.
1173 * fortran.c: New file.
1174 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1175 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1176 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1177 libgfortran has been built.
1178 * testsuite/libgomp.fortran/fortran.exp: New file.
1179 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1180 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1181 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1182 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1183 * testsuite/libgomp.fortran/omp_hello.f: New test.
1184 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1185 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1186 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1187 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1188 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1189 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1190 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1191 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1193 2005-08-30 Richard Henderson <rth@redhat.com>
1195 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1196 function for when aliases are not usable.
1197 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1198 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1199 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1200 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1201 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1202 GOMP_loop_ordered_guided_next): Likewise.
1203 * ordered.c (GOMP_ordered_start): Likewise.
1205 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1207 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1208 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1209 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1210 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1211 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1212 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1213 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1214 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1215 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1217 2005-07-07 Eric Christopher <echristo@redhat.com>
1218 Diego Novillo <dnovillo@redhat.com>
1220 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1221 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1223 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1224 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1225 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1226 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1227 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1228 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1229 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1231 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1233 * TOPLEVEL.patch: Remove.
1235 2005-05-16 Richard Henderson <rth@redhat.com>
1237 * configure.ac: Test for clock_gettime.
1238 * config.h.in, configure: Rebuild.
1239 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1240 (omp_get_wtime): Use clock_gettime if available.
1241 (omp_get_wtick): Use clock_getres if available.
1243 2005-05-11 Richard Henderson <rth@redhat.com>
1245 * config/linux/ia64/futex.h: New file.
1246 * configure.tgt: Use it.
1248 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1250 2005-05-07 Richard Henderson <rth@redhat.com>
1252 * config/linux/powerpc/futex.h: New file.
1253 * configure.tgt: Use it.
1255 * config/linux/i486/futex.h: Merge ...
1256 * config/linux/x86_64/futex.h: ... into ...
1257 * config/linux/x86/futex.h: ... here.
1258 * configure.tgt: Update to match.
1260 2005-05-06 Richard Henderson <rth@redhat.com>
1262 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1263 * config/linux/i486/futex.h: Likewise.
1264 * config/linux/x86_64/futex.h: Likewise.
1266 * config/linux/lock.c: New file.
1267 * config/linux/omp-lock.h: New file.
1269 * critical.c, env.h: Don't include omp.h
1270 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1271 * config/posix/time.c: Likewise.
1272 * config/posix/omp-lock.h: New file.
1273 * libgomp.h: Include omp-lock.h and omp.h.
1274 * Makefile.am (nodist_include_HEADERS): New.
1276 * configure.ac (PERL): New.
1277 * mkomp_h.pl: New file.
1278 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1280 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1282 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1283 build directory. Re-add -march=i486 hack.
1285 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1286 (libgomp_link_flags): Remove.
1287 (libgomp_initialized): Remove.
1288 (libgomp_init): Don't protect from reinitialization. Copy code
1289 from libstdc++ for getting the multilib set correctly.
1291 2005-05-05 Richard Henderson <rth@redhat.com>
1293 * config/linux/alpha/futex.h: New file.
1294 * configure.tgt (alpha*-*-linux*): Use it.
1296 * config/posix/mutex.c: New file.
1297 * config/posix/sem.c: Use libgomp.h.
1299 * configure.tgt (x86_64-linux): Also test CC for -m32.
1300 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1302 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1305 * Makefile.am (SUBDIRS): New.
1306 (libgomp_la_LDFLAGS): Add -lpthread.
1307 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1308 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1310 * libgomp_g.h: New file.
1311 * libgomp.h: Split out all public declarations to libgomp_g.h.
1312 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1313 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1314 * config/linux/sem.h: Likewise.
1315 * config/posix/sem.h: Likewise.
1317 * Makefile.am (AM_LDFLAGS): New.
1318 (libgomp_version_script): Split out from ...
1319 (libgomp_la_LDFLAGS): ... here.
1320 (libgomp_version_info): New.
1321 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1322 (LIBGOMP_ENABLE): New.
1323 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1324 (LIBGOMP_ENABLE_SYMVERS): New.
1325 * configure.ac (AC_INIT): Version 1.0.
1326 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1327 (enable-linux-futex): Likewise. Rename from enable-futex.
1328 (libtool_VERSION): New.
1329 (LIBGOMP_ENABLE_SYMVERS): Use it.
1330 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1331 * Makefile.in, aclocal.m4, configure: Rebuild.
1333 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1334 (gomp_mutex_unlock_slow): Fix typo.
1335 * config/linux/sem.c: Similarly.
1336 (gomp_sem_post_slow): Fix typo.
1337 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1338 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1339 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1341 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1342 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1343 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1344 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1345 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1346 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1347 LDFLAGS. Pull enable_futex check to top-level.
1348 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1349 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1351 First attempt at real configury.
1352 * Makefile, config.h: Remove file.
1353 * Makefile.am, Makefile.in: New file.
1354 * acinclude.m4 aclocal.m4: New file.
1355 * configure.ac, configure.tgt, configure: New file.
1357 * config/posix/lock.c: Rename from sys-lock.c.
1358 * config/posix/mutex.h: Rename from sys-mutex.h.
1359 * config/posix/sem.c: Rename from sys-sem.c.
1360 * config/posix/sem.h: Rename from sys-sem.h.
1361 * config/posix/proc.c: Rename from sys-proc.c.
1362 * config/posix/time.c: Rename from sys-proc.c.
1364 * config/linux/mutex.c: New file.
1365 * config/linux/mutex.h: New file.
1366 * config/linux/sem.c: New file.
1367 * config/linux/sem.h: New file.
1368 * config/linux/i486/futex.h: New file.
1369 * config/linux/x86_64/futex.h: New file.
1371 2005-05-04 Richard Henderson <rth@redhat.com>
1373 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1374 * libgomp.h: Declare them.
1375 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1376 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1378 2005-05-04 Richard Henderson <rth@redhat.com>
1380 * libgomp-1 code drop
1382 2005-05-04 Richard Henderson <rth@redhat.com>
1384 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1385 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1386 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1387 (gomp_iter_static_next): Update.
1388 (gomp_ordered_static_next): Update.
1389 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1390 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1391 totally empty range.
1392 (gomp_loop_ordered_static_next): Refine test for calling
1393 gomp_ordered_static_next.
1394 * testsuite/ordered-1.c: Add case for more threads than iterations.
1396 * iter.c (gomp_iter_runtime_next_locked): Remove.
1397 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1398 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1399 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1400 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1401 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1402 gomp_loop_ordered_guided_next): Downcase name, make static, add
1403 an external alias with the old name.
1404 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1405 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1406 switch and call one of the above static functions.
1407 * libgomp.h: Update.
1409 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1410 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1411 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1412 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1413 GOMP_loop_ordered_guided_start): Update to match.
1414 * sections.c (GOMP_sections_start): Likewise.
1415 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1417 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1418 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1419 Use bounds check instead of modulus.
1420 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1421 (gomp_ordered_last): Don't sync with ordered_owner here.
1422 (gomp_ordered_next): Likewise.
1423 (gomp_ordered_static_loop_next): Likewise.
1424 * loop.c, libgomp.h: Update to match.
1426 * libgomp.h (GOMP_barrier): Declare.
1428 * testsuite/barrier-1.c: New file.
1429 * testsuite/critical-1.c: New file.
1430 * testsuite/ordered-2.c: New file.
1431 * testsuite/ordered-1.c: New file.
1432 * testsuite/sections-1.c: New file.
1433 * testsuite/single-1.c: New file.
1434 * testsuite/Makefile (TESTS): Add them.
1436 2005-05-04 Richard Henderson <rth@redhat.com>
1438 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1439 * loop.c (GOMP_loop_static_start): If not the startup thread,
1440 acquire the mutex to wait for initialization complete.
1441 (GOMP_loop_ordered_static_start): Likewise.
1442 (GOMP_loop_ordered_runtime_start): Likewise.
1443 (GOMP_loop_ordered_static_first): Remove.
1444 (GOMP_loop_ordered_dynamic_first): Remove.
1445 (GOMP_loop_ordered_guided_first): Remove.
1446 (GOMP_loop_ordered_runtime_first): Remove.
1447 * ordered.c (gomp_ordered_loop_first): Post to own release when
1448 we're the first thread.
1449 (gomp_ordered_loop_last): Wait on release if not owner.
1450 (gomp_ordered_loop_next): Likewise.
1451 (gomp_ordered_static_loop_init): New.
1452 (gomp_ordered_static_loop_next): Use ordered_owner.
1453 (GOMP_ordered_start): Likewise.
1454 * work.c (gomp_new_work_share): Initialize ordered_owner.
1456 2005-05-03 Richard Henderson <rth@redhat.com>
1458 * Makefile (OPT): New.
1461 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1462 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1463 * libgomp.h, libgomp.map, NOTES: Update to match.
1465 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1466 Add initialized and thr members.
1467 (gomp_thread_start): Pause when initially spawned to wait for
1468 the whole team to be created.
1469 (gomp_team_start): Release team members at the end.
1471 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1472 (f_foo_1): Use GOMP_loop_end.
1473 (f_foo_2): Use GOMP_loop_end_nowait.
1475 * testsuite/loop-2.c: New file.
1476 * testsuite/Makefile (TESTS): Add it.
1478 2005-05-03 Richard Henderson <rth@redhat.com>
1480 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1481 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1482 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1485 * testsuite/Makefile: New file.
1486 * testsuite/loop-1.c: New file.
1488 2005-05-03 Richard Henderson <rth@redhat.com>
1490 Initial implementation and checkin.