1 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3 * testsuite/libgomp.c/private-1.c: New test.
5 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
6 Paolo Bonzini <bonzini@gnu.org>
8 * Makefile.am: Use space as vpath separator. Use 'vpath %'
10 * Makefile.in: Regenerate.
12 2007-11-23 Matthias Klose <doko@ubuntu.com>
14 * configure.ac: Adjust makeinfo version check.
15 * configure: Regenerate.
17 2007-11-10 Jakub Jelinek <jakub@redhat.com>
20 * testsuite/libgomp.fortran/pr34020.f90: New test.
22 2007-11-06 Jakub Jelinek <jakub@redhat.com>
25 * testsuite/libgomp.c++/atomic-1.C: New test.
27 2007-10-25 Jakub Jelinek <jakub@redhat.com>
30 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
31 Make x and y integers rather than (implicit) reals. Add private (j)
32 clause to the last omp parallel.
34 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
36 * configure: Regenerate following changes to ../config/tls.m4.
38 2007-09-28 Jakub Jelinek <jakub@redhat.com>
40 * testsuite/libgomp.fortran/stack.f90: New test.
42 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
44 * config/mingw32/proc.c: New file.
46 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
48 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
49 (main): Use __get_cpuid to get i386 target fetaures.
50 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
51 (main): Use __get_cpuid to get x86_64 target fetaures.
53 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
56 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
57 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
59 2007-07-12 Jakub Jelinek <jakub@redhat.com>
62 * testsuite/libgomp.fortran/pr32550.f90: New test.
63 * testsuite/libgomp.fortran/crayptr2.f90: New test.
65 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
67 * aclocal.m4: Regenerated.
69 2007-07-05 Tobias Burnus <burnus@net-b.de>
72 * testsuite/libgomp.fortran/pr32359.f90: New.
74 2007-07-02 Jakub Jelinek <jakub@redhat.com>
77 * sections.c (GOMP_parallel_sections_start): Only decrease
78 number of threads to COUNT if dyn_var is true.
79 * testsuite/libgomp.c/pr32468.c: New test.
81 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
84 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
86 2007-06-21 Jakub Jelinek <jakub@redhat.com>
89 * testsuite/libgomp.c/pr32362-1.c: New test.
90 * testsuite/libgomp.c/pr32362-2.c: New test.
91 * testsuite/libgomp.c/pr32362-3.c: New test.
93 2007-06-07 Jakub Jelinek <jakub@redhat.com>
95 * team.c (gomp_team_start): Fix setting up thread_attr
98 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
100 * configure: Regenerate.
102 2007-05-23 Steve Ellcey <sje@cup.hp.com>
104 * Makefile.in: Regenerate.
105 * configure: Regenerate.
106 * aclocal.m4: Regenerate.
107 * testsuite/Makefile.in: Regenerate.
109 2007-05-04 Jakub Jelinek <jakub@redhat.com>
111 * config/linux/proc.c: New file.
114 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
116 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
118 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
120 2007-04-16 Matthias Klose <doko@debian.org>
122 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
123 flags if not building with -m64.
124 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
125 flag for i?86-*-* targets, if current target matches -m64.
127 2007-04-14 Steve Ellcey <sje@cup.hp.com>
129 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
130 * Makefile.in: Regenerate.
132 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
135 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
137 * testsuite/libgomp.fortran/fortran.exp: Likewise.
139 2007-04-04 Jakub Jelinek <jakub@redhat.com>
141 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
143 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
144 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
145 (parse_affinity): New function.
146 (initialize_env): Call it and gomp_init_affinity.
147 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
148 create new pthread_attr_t and call gomp_init_thread_affinity
149 on it for each thread before passing the attribute to pthread_create.
150 * config/linux/affinity.c: New file.
151 * config/posix/affinity.c: New file.
152 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
153 * configure: Rebuilt.
154 * config.h.in: Rebuilt.
155 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
156 * Makefile.in: Rebuilt.
158 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
160 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
162 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
165 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
167 * testsuite/config/default.exp: New file.
168 * testsuite/lib/libgomp.exp: New file.
169 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
170 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
171 load_lib *, load_gcc_lib *): Move to libgomp.exp.
172 (libgomp_load): Remove.
173 * testsuite/lib/libgomp.exp (libgomp_init): Compute
174 always_ld_library_path, not ld_library_path. Set additional_flags
175 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
176 (target_compile): Do not call libgomp_init. Append lang_library_path
177 and lang_link_flags to options.
178 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
179 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
181 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
182 always_ld_library_path. Set LD_LIBRARY_PATH here.
183 * testsuite/libgomp.fortran/fortran.exp: Ditto.
184 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
185 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
187 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
188 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
189 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
190 * testsuite/libgomp.c/pr29947-1.c: Ditto.
191 * testsuite/libgomp.c/atomic-10.c: Ditto.
193 2007-03-21 Jakub Jelinek <jakub@redhat.com>
195 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
196 dg-final cleanup-modules line.
197 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
198 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
199 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
200 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
201 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
202 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
203 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
205 2007-03-18 Andreas Schwab <schwab@suse.de>
207 * acinclude.m4: Adjust regular expression for ld version
209 * configure: Regenerate.
211 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
213 * Makefile.am: Add install-pdf target as copied from
214 automake v1.10 rules.
215 * Makefile.in: Regenerate
217 2007-02-07 Jakub Jelinek <jakub@redhat.com>
220 * configure: Regenerate.
223 * testsuite/libgomp.c++/pr30703.C: New test.
225 2007-02-02 Jakub Jelinek <jakub@redhat.com>
228 2006-07-05 Eric Christopher <echristo@apple.com>
229 * configure.ac: Depend addition of -pthread on host OS.
230 * configure: Regenerate.
232 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
234 * libgomp.texi: Fix spacing after abbreviations.
236 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
239 * configure.ac: Add check for makeinfo
240 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
241 if an appropiate version of makeinfo is found.
242 * aclocal.m4: Regenerated.
243 * configure: Regenerated.
244 * Makefile.in: Regenerated.
245 * testsuite/Makefile.in: Regenerated.
247 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
250 * libgomp.texi: More about implementation-dependent settings.
252 2007-01-26 Tobias Burnus <burnus@net-b.de>
254 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
256 2007-01-24 Jakub Jelinek <jakub@redhat.com>
259 * testsuite/libgomp.c/pr30494.c: New test.
261 2007-01-15 Tom Tromey <tromey@redhat.com>
263 * configure: Rebuilt.
264 * configure.ac: Fixed comment.
266 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
268 * libgomp.texi: Document implementation specific default values of
269 environment variables.
271 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
274 * libgomp.texi: New file.
275 * configure.ac: Add --enable-generated-files-in-srcdir option.
276 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
278 * Makefile.in: Regenerated.
279 * config.h.in: Regenerated.
280 * testsuite/Makefile.in: Regenerated.
283 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
286 * env.c (omp_set_num_threads): Set illegal thread count to 1.
288 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
290 * configure: Regenerate.
292 2006-12-04 Jakub Jelinek <jakub@redhat.com>
295 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
296 start if there shouldn't be any loop iterations.
297 (gomp_loop_ordered_static_start): Remove start == end test.
298 * testsuite/libgomp.c/pr29947-1.c: New test.
299 * testsuite/libgomp.c/pr29947-2.c: New test.
301 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
303 * configure.tgt: Force initial-exec TLS model on Linux only.
305 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
307 * configure: Regenerated.
309 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
311 * env.c (parse_schedule): Reject out of range values.
312 (parse_unsigned_long): Reject out of range, negative or zero values.
314 2006-10-29 Jakub Jelinek <jakub@redhat.com>
317 * testsuite/libgomp.fortran/pr29629.f90: New test.
319 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
322 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
323 * config/posix95: New directory.
324 * config/posix95/omp-lock.h: New file.
325 * config/posix95/lock.c: Likewise.
327 2006-10-14 Geoffrey Keating <geoffk@apple.com>
329 * aclocal.m4: Regenerate.
330 * configure: Regenerate.
332 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
334 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
337 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
339 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
341 * configure: Regenerate.
342 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
344 2006-09-26 Jakub Jelinek <jakub@redhat.com>
348 * testsuite/libgomp.c/nestedfn-4.c: New test.
349 * testsuite/libgomp.c/nestedfn-5.c: New test.
350 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
353 * testsuite/libgomp.fortran/condinc1.f: New test.
354 * testsuite/libgomp.fortran/condinc2.f: New test.
355 * testsuite/libgomp.fortran/condinc3.f90: New test.
356 * testsuite/libgomp.fortran/condinc4.f90: New test.
357 * testsuite/libgomp.fortran/condinc1.inc: New file.
359 2006-09-18 Tom Tromey <tromey@redhat.com>
361 * configure: Rebuilt.
363 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
366 PR preprocessor/14634
367 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
369 * configure: Regenerate.
371 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
373 * testsuite/libgomp.fortran/reduction3.f90: Change
374 -2147483648 to -huge(i)-1 to avoid overflow.
375 * testsuite/libgomp.fortran/reduction4.f90: Change
376 Z'ffffffff' to not(0) to avoid overflow.
378 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
381 * Makefile.am (libsubincludedir): New.
382 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
383 * Makefile.in: Regenerate.
385 2006-08-17 Jakub Jelinek <jakub@redhat.com>
388 * env.c: Include ctype.h.
389 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
390 leading and/or trailing whitespace and compare strings case
393 2006-07-16 Jakub Jelinek <jakub@redhat.com>
396 * testsuite/libgomp.fortran/pr28390.f: New test.
398 2006-07-05 Eric Christopher <echristo@apple.com>
400 * configure.ac: Depend addition of -pthread on host OS.
401 * configure: Regenerate.
403 2006-06-21 Jakub Jelinek <jakub@redhat.com>
405 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
406 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
409 2006-06-20 Jakub Jelinek <jakub@redhat.com>
413 * configure.ac: If neither --enable-linux-futex nor
414 --disable-linux-futex is passed, determine the default by checking
415 for compiling and/or running against NPTL. With --enable-linux-futex,
416 check if SYS_gettid and SYS_futex are defined.
417 * configure: Rebuilt.
419 2006-06-14 Richard Henderson <rth@redhat.com>
422 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
423 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
425 2006-06-09 Richard Henderson <rth@redhat.com>
427 * env.c (gomp_nthreads_var): Change to unsigned long.
428 (gomp_run_sched_chunk): Likewise.
429 (parse_unsigned_long): Rename from parse_num_threads and generalize.
430 (initialize_env): Initialize gomp_thread_attr.
431 * libgomp.h (gomp_nthreads_var): Update decl.
432 (gomp_run_sched_chunk): Likewise.
433 (gomp_thread_attr): Declare.
434 * team.c (gomp_thread_attr): Export.
435 (initialize_team): Don't initialize it.
437 2006-06-09 Jakub Jelinek <jakub@redhat.com>
440 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
441 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
443 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
445 * config/mingw32/time.c: New file.
446 * configure.tgt: Use it.
448 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
450 * Makefile.am: Add install-html target. Add install-html to .PHONY
451 * Makefile.in: Regenerate.
453 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
456 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
457 * testsuite/libgomp.c/critical-1.c: Likewise.
458 * testsuite/libgomp.c/loop-1.c: Likewise.
459 * testsuite/libgomp.c/loop-2.c: Likewise.
460 * testsuite/libgomp.c/single-1.c: Likewise.
461 * testsuite/libgomp.c/ordered-1.c: Likewise.
462 * testsuite/libgomp.c/ordered-2.c: Likewise.
464 2006-05-15 Jakub Jelinek <jakub@redhat.com>
467 * libgomp.fortran/pr27416-1.f90: New test.
469 2006-05-03 Jakub Jelinek <jakub@redhat.com>
472 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
473 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
475 2006-05-02 Jakub Jelinek <jakub@redhat.com>
478 * testsuite/libgomp.c/pr26943-1.c: New test.
479 * testsuite/libgomp.c/pr26943-2.c: New test.
480 * testsuite/libgomp.c/pr26943-3.c: New test.
481 * testsuite/libgomp.c/pr26943-4.c: New test.
482 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
483 * testsuite/libgomp.c++/pr26943.C: New test.
485 2006-05-02 Jakub Jelinek <jakub@redhat.com>
488 * testsuite/libgomp.c++/pr27337.C: New test.
490 2006-04-26 Jakub Jelinek <jakub@redhat.com>
493 * testsuite/libgomp.c/pr26171.c: New test.
495 2006-04-25 Richard Henderson <rth@redhat.com>
498 * configure.ac: Use GCC_CHECK_TLS.
499 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
500 * Makefile.in, aclocal.m4, configure: Regenerate.
502 2006-04-10 Matthias Klose <doko@debian.org>
504 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
505 directory names containing underscores.
507 2006-03-21 Jakub Jelinek <jakub@redhat.com>
510 * testsuite/libgomp.c++/pr26691.C: New test.
512 2006-03-13 Jakub Jelinek <jakub@redhat.com>
514 * testsuite/libgomp.fortran/retval2.f90: New test.
516 2006-03-09 Diego Novillo <dnovillo@redhat.com>
518 * testsuite/libgomp.c++: New directory.
520 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
522 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
523 * config/posix/sem.c: Implement the above.
525 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
527 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
528 define HAVE_BROKEN_POSIX_SEMAPHORES.
529 * configure: Rebuilt.
530 * config.h.in: Rebuilt.
532 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
535 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
536 for the other pthread check.
537 * configure: Regenerate.
538 * config.h.in: Regenerate.
540 2006-02-15 Jakub Jelinek <jakub@redhat.com>
544 * Makefile.am (fincludedir): New variable.
545 (nodist_include_HEADERS): Remove Fortran files.
546 (nodist_finclude_HEADERS): New variable.
547 * Makefile.in: Regenerated.
549 2006-02-13 Jakub Jelinek <jakub@redhat.com>
551 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
552 Remove tests for returning assumed character length arrays.
554 2006-02-12 Roger Sayle <roger@eyesopen.com>
555 John David Anglin <dave@hiauly1.hia.nrc.ca>
558 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
560 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
562 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
564 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
566 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
567 part of LD_LIBRARY_PATH manually.
569 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
572 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
575 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
578 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
579 * configure.ac (PERL): Don't set.
580 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
581 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
582 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
583 * omp.h.in: Wrap the new configure substitutions with @ characters.
584 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
585 * aclocal.m4, configure, Makefile.in: Regenerate.
586 * mkomp_h.pl: Delete.
588 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
591 * configure.ac: Use GCC_HEADER_STDINT.
592 * libgomp.h: Include gstdint.h.
593 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
594 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
596 2006-01-24 Richard Henderson <rth@redhat.com>
599 * configure.ac: Add AM_MAINTAINER_MODE.
600 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
602 2006-01-24 Diego Novillo <dnovillo@redhat.com>
604 * Makefile.in: Regenerate.
605 * testsuite/Makefile.in: Regenerate.
606 * aclocal.m4: Regenerate.
608 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
610 * config/posix/proc.c: Conditional include of sys/loadavg.h for
612 * configure.ac: Add check for loadavg.h.
613 (link_gomp): Adjust comment.
614 * configure: Regenerate.
615 * config.h.in: Regenerate.
617 2006-01-21 Steve Ellcey <sje@cup.hp.com>
620 * configure.ac: Remove check for alloca.h.
621 * configure: Regenerate.
622 * config.h.in: Regenerate.
623 * libgomp.h: define gomp_alloca to be __builtin_alloca.
624 * team.c: Remove use of alloca.h.
625 Call gomp_alloca instead of alloca.
627 2006-01-20 Steve Ellcey <sje@cup.hp.com>
630 * team.c: Add include of alloca.h.
631 * configure.ac: Add check for alloca.h.
632 * configure: Regenerate.
633 * config.h.in: Regenerate.
635 2006-01-17 Jakub Jelinek <jakub@redhat.com>
638 * testsuite/libgomp.fortran/pr25219.f90: New test.
640 2005-12-05 Uros Bizjak <uros@kss-loka.si>
642 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
643 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
644 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
645 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
646 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
647 testsuite/libgomp.fortran/threadprivate1.f90,
648 testsuite/libgomp.fortran/threadprivate2.f90,
649 testsuite/libgomp.fortran/threadprivate3.f90,
650 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
651 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
652 testsuite/libgomp.fortran/omp_parse3.f90: Change required
653 effective-target to TLS runtime.
655 * testsuite/libgomp.fortran/pr25162.f: Require
656 effective-target TLS runtime.
658 2005-12-01 Jakub Jelinek <jakub@redhat.com>
660 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
661 * testsuite/libgomp.c/nestedfn-3.c: New test.
663 2005-11-30 Jakub Jelinek <jakub@redhat.com>
666 * testsuite/libgomp.fortran/pr25162.f: New test.
668 2005-11-28 Jakub Jelinek <jakub@redhat.com>
670 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
671 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
673 2005-11-25 Jakub Jelinek <jakub@redhat.com>
675 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
676 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
677 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
678 single.c, team.c, work.c, config/linux/alpha/futex.h,
679 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
680 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
681 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
682 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
683 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
684 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
685 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
688 2005-11-18 Jakub Jelinek <jakub@redhat.com>
690 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
691 to nodist_noinst_HEADERS.
692 * Makefile.in: Rebuilt.
694 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
695 add integer count field.
696 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
697 omp_nest_lock_t type change.
698 (omp_init_nest_lock): Likewise. Initialize count to 0.
699 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
701 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
703 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
704 Increment count if successful and return the new nesting level.
705 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
706 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
707 * testsuite/libgomp.c/lib-1.c: New test.
708 * testsuite/libgomp.fortran/lib1.f90: New test.
709 * testsuite/libgomp.fortran/lib2.f: New test.
710 * testsuite/libgomp.fortran/lib3.f: New test.
712 2005-11-17 Richard Henderson <rth@redhat.com>
715 * Makefile.am (nodist_toolexeclib_HEADERS): New.
716 * configure.ac (link_gomp): New. Substitute it.
717 (AC_CONFIG_FILES): Add libgomp.spec.
718 * libgomp.spec.in: New file.
719 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
720 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
722 2005-11-18 Jakub Jelinek <jakub@redhat.com>
724 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
725 reduction(-:var) behaving the same as reduction(+:var).
726 * testsuite/libgomp.c/reduction-4.c: New test.
728 2005-11-15 Uros Bizjak <uros@kss-loka.si>
730 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
731 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
732 testsuite/libgomp.c/copyin-3.c,
733 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
734 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
735 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
736 testsuite/libgomp.c++/pr24455.C,
737 testsuite/libgomp.fortran/threadprivate1.f90,
738 testsuite/libgomp.fortran/threadprivate2.f90,
739 testsuite/libgomp.fortran/threadprivate3.f90,
740 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
741 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
742 testsuite/libgomp.fortran/omp_parse3.f90: Require
743 effective-target TLS.
745 2005-11-14 Diego Novillo <dnovillo@redhat.com>
749 2005-11-13 Jakub Jelinek <jakub@redhat.com>
752 * team.c (initialize_team): Pass NULL rather than free as
753 pthread_key_create destructor. Initialize thread specific data
754 pointer in initial thread to a static local variable rather than
757 2005-11-11 Uros Bizjak <uros@kss-loka.si>
759 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
760 its location to ld_library_path.
762 2005-11-10 Diego Novillo <dnovillo@redhat.com>
764 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
766 2005-11-10 Diego Novillo <dnovillo@redhat.com>
768 * testsuite/libgomp.c: Rename from libgomp.dg.
770 2005-11-09 Diego Novillo <dnovillo@redhat.com>
772 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
773 threadprivate variable 'i'.
775 2005-11-09 Jakub Jelinek <jakub@redhat.com>
777 * config/linux/s390/futex.h: New file.
778 * configure.tgt: Use it.
780 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
783 2005-11-08 Jakub Jelinek <jakub@redhat.com>
786 * testsuite/libgomp.c++/master-1.C: New test.
788 2005-11-07 Jakub Jelinek <jakub@redhat.com>
790 * testsuite/libgomp.dg/copyin-3.c: New test.
792 2005-11-07 Jakub Jelinek <jakub@redhat.com>
794 * testsuite/libgomp.fortran/retval1.f90: New test.
795 * testsuite/libgomp.fortran/vla7.f90: New test.
797 2005-11-06 Jakub Jelinek <jakub@redhat.com>
799 * testsuite/libgomp.fortran/vla2.f90: New test.
800 * testsuite/libgomp.fortran/vla3.f90: New test.
801 * testsuite/libgomp.fortran/vla4.f90: New test.
802 * testsuite/libgomp.fortran/vla5.f90: New test.
803 * testsuite/libgomp.fortran/vla6.f90: New test.
805 2005-11-01 Jakub Jelinek <jakub@redhat.com>
807 * config/linux/sparc/futex.h: New file.
808 * configure.tgt: Use it.
809 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
811 * critical.c: Include stdlib.h.
812 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
813 ignoring return value.
814 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
815 LIBGOMP_CHECK_SYNC_BUILTINS check.
816 * configure: Rebuilt.
818 2005-10-31 Jakub Jelinek <jakub@redhat.com>
820 * testsuite/libgomp.fortran/vla1.f90: New test.
822 2005-10-31 Richard Henderson <rth@redhat.com>
824 * testsuite/libgomp.fortran/character2.f90: Fix race condition
825 setting 's' in different threads.
827 2005-10-31 Jakub Jelinek <jakub@redhat.com>
829 * libgomp.h (attribute_hidden, ialias): Define.
830 * config/posix/proc.c (omp_get_num_procs): Add ialias.
831 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
832 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
833 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
834 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
835 omp_test_lock, omp_test_nest_lock): Likewise.
836 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
837 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
838 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
839 omp_test_lock, omp_test_nest_lock): Likewise.
840 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
841 omp_get_dynamic, omp_get_nested): Likewise.
842 * parallel.c (omp_get_num_threads, omp_get_max_threads,
843 omp_get_thread_num, omp_in_parallel): Likewise.
844 * fortran.c (ialias_redirect): Define.
845 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
846 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
847 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
848 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
849 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
850 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
851 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
852 omp_get_wtime): Add ialias_redirect.
854 2005-10-30 Jakub Jelinek <jakub@redhat.com>
856 * fortran.c: Include stdlib.h.
858 2005-10-29 Jakub Jelinek <jakub@redhat.com>
860 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
861 * Makefile.in: Regenerated.
863 2005-10-28 Jakub Jelinek <jakub@redhat.com>
865 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
866 * libgomp_f.h.in (omp_check_defines): New function.
867 * env.c: Include libgomp_f.h.
868 (initialize_env): Call omp_check_defines.
870 * testsuite/libgomp.dg/copyin-2.c: New test.
871 * testsuite/libgomp.c++/copyin-2.C: New test.
872 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
874 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
875 * testsuite/libgomp.fortran/sharing2.f90: New test.
877 * testsuite/libgomp.dg/copyin-1.c: New test.
878 * testsuite/libgomp.c++/copyin-1.C: New test.
880 2005-10-26 Jakub Jelinek <jakub@redhat.com>
882 * testsuite/libgomp.fortran/crayptr1.f90: New test.
884 * testsuite/libgomp.fortran/workshare1.f90: New test.
886 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
888 * libgomp.fortran/sharing1.f90: New test.
890 2005-10-24 Jakub Jelinek <jakub@redhat.com>
893 * testsuite/libgomp.c++/loop-7.C: New test.
895 * testsuite/libgomp.dg/nestedfn-2.c: New test.
897 * testsuite/libgomp.dg/nestedfn-1.c: New test.
898 * testsuite/libgomp.fortran/reduction6.f90: New test.
899 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
901 2005-10-23 Richard Henderson <rth@redhat.com>
903 * testsuite/libgomp.c++/ctor-1.C: New.
904 * testsuite/libgomp.c++/ctor-2.C: New.
905 * testsuite/libgomp.c++/ctor-3.C: New.
906 * testsuite/libgomp.c++/ctor-4.C: New.
907 * testsuite/libgomp.c++/ctor-5.C: New.
908 * testsuite/libgomp.c++/ctor-6.C: New.
909 * testsuite/libgomp.c++/ctor-7.C: New.
910 * testsuite/libgomp.c++/ctor-8.C: New.
911 * testsuite/libgomp.c++/ctor-9.C: New.
913 2005-10-21 Diego Novillo <dnovillo@redhat.com>
916 * testsuite/libgomp.c++/pr24455-1.C: New test.
917 * testsuite/libgomp.c++/pr24455.C: New test.
918 * testsuite/libgomp.dg/pr24455-1.c: New test.
919 * testsuite/libgomp.dg/pr24455.c: New test.
921 2005-10-20 Richard Henderson <rth@redhat.com>
923 * testsuite/libgomp.c++/loop-6.C: New.
924 * testsuite/libgomp.dg/loop-3.c: New.
926 2005-10-20 Jakub Jelinek <jakub@redhat.com>
928 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
930 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
933 2005-10-19 Diego Novillo <dnovillo@redhat.com>
935 * testsuite/libgomp.fortran/jacobi.f: New test.
937 2005-10-19 Richard Henderson <rth@redhat.com>
939 * configure.tgt (i?86-linux): Default to with_arch instead of
940 CFLAGS. Add -mtune to match target_cpu.
941 (x86_64-linux): Tune to i686.
943 * fortran.c (omp_test_nest_lock_): Fix typo.
945 2005-10-19 Jakub Jelinek <jakub@redhat.com>
947 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
948 gomp_ordered_sync): Do nothing if team->nthreads == 1.
949 * testsuite/libgomp.dg/ordered-3.c: New test.
951 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
952 Remove volatile keyword.
954 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
955 in COMMON block to avoid warnings on 64-bit targets.
957 2005-10-18 Diego Novillo <dnovillo@redhat.com>
959 * testsuite/libgomp.dg/shared-3.c: New test.
961 2005-10-18 Jakub Jelinek <jakub@redhat.com>
963 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
964 * testsuite/libgomp.fortran/reduction5.f90: New test.
966 2005-10-18 Jakub Jelinek <jakub@redhat.com>
968 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
970 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
971 flush loop now that __sync_synchronize has proper memory barrier.
972 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
973 Add -ffixed-form to dg-options.
975 2005-10-17 Diego Novillo <dnovillo@redhat.com>
977 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
979 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
980 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
981 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
982 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
983 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
984 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
985 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
986 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
987 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
988 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
989 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
990 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
991 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
992 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
993 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
994 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
995 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
996 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
997 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
998 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
999 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1000 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1001 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1002 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1003 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1005 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1007 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1008 lang_library_path exists. Use find instead of glob to gather tests.
1009 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1011 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1013 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1014 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1015 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1016 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1017 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1018 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1019 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1020 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1021 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1022 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1023 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1024 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1025 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1027 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1029 * testsuite/libgomp.dg/vla-1.c: New test.
1031 * testsuite/libgomp.fortran/reference2.f90: New test.
1033 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1034 declaration of omp_get_thread_num.
1035 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1038 * testsuite/libgomp.fortran/reduction1.f90: New test.
1039 * testsuite/libgomp.fortran/reduction2.f90: New test.
1040 * testsuite/libgomp.fortran/reduction3.f90: New test.
1041 * testsuite/libgomp.fortran/reduction4.f90: New test.
1043 2005-10-13 Richard Henderson <rth@redhat.com>
1045 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1046 * Makefile.in: Regenerate.
1047 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1048 * libgomp.h: Include bar.h.
1049 (struct gomp_barrier): Remove.
1050 (struct gomp_team): Add barrier. Replace master_barrier with
1051 master_release. Replace threads with ordered_release.
1052 (struct gomp_thread): Replace barrier with release.
1053 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1054 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1055 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1056 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1057 (GOMP_single_copy_end): Likewise.
1058 * team.c (gomp_threads_dock): New.
1059 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1060 (gomp_thread_start): Use gomp_barrier_wait.
1061 (new_team, free_team): Update for gomp_team changes.
1062 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1063 (gomp_team_end): Use gomp_barrier_wait.
1064 (initialize_team): Update for gomp_thread changes.
1065 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1066 (gomp_work_share_end_nowait): Use atomic ops when available.
1067 * config/linux/bar.c, config/linux/bar.h: New files.
1068 * config/posix/bar.c, config/posix/bar.h: New files.
1070 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1072 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1073 * testsuite/libgomp.dg/single-2.c: New test.
1075 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1076 lang_link_flags): Unset, so that they aren't inherited from previously
1079 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1081 2005-10-12 Richard Henderson <rth@redhat.com>
1083 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1084 (libgomp_init): Use lang_test_file, lang_library_path, and
1085 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1087 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1088 (lang_test_file, lang_link_flags): New.
1089 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1091 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1092 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1093 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1094 testsuite/libgomp.c++/parallel-1.C,
1095 testsuite/libgomp.c++/reduction-1.C,
1096 testsuite/libgomp.c++/reduction-2.C,
1097 testsuite/libgomp.c++/reduction-3.C,
1098 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1099 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1100 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1101 New files, largely cribbed from the C testsuite.
1103 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1105 * testsuite/libgomp.fortran/character1.f90: New test.
1106 * testsuite/libgomp.fortran/character2.f90: New test.
1108 * testsuite/libgomp.dg/nested-1.c: New test.
1109 * testsuite/libgomp.dg/nested-2.c: New test.
1110 * testsuite/libgomp.fortran/do1.f90: New test.
1111 * testsuite/libgomp.fortran/do2.f90: New test.
1113 * testsuite/libgomp.fortran/reference1.f90: New test.
1115 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1117 * testsuite/libgomp.dg/reduction-1.c: New test.
1118 * testsuite/libgomp.dg/reduction-2.c: New test.
1119 * testsuite/libgomp.dg/reduction-3.c: New test.
1121 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1123 * testsuite/libgomp.dg/atomic-1.c: New test.
1124 * testsuite/libgomp.dg/atomic-2.c: New test.
1126 2005-10-09 Richard Henderson <rth@redhat.com>
1128 * critical.c (atomic_lock): New.
1129 (initialize_critical): Initialize it.
1130 (GOMP_atomic_start, GOMP_atomic_end): New.
1131 * libgomp.map: Export them.
1132 * libgomp_g.h: Declare them.
1134 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1136 2005-10-02 Richard Henderson <rth@redhat.com>
1138 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1139 to XCFLAGS instead of CFLAGS.
1141 2005-09-30 Richard Henderson <rth@redhat.com>
1143 * configure.ac: Determine whether -pthread or -lpthread is needed.
1144 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1145 * Makefine.in, configure: Rebuild.
1147 2005-09-28 Richard Henderson <rth@redhat.com>
1149 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1150 * testsuite/libgomp.dg/omp-single-3.c: New test.
1152 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1154 * testsuite/libgomp.dg/omp-single-2.c: New test.
1155 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1157 2005-09-27 Richard Henderson <rth@redhat.com>
1159 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1160 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1162 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1164 * testsuite/libgomp.dg/omp-loop03.c: New test.
1166 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1168 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1170 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1172 * testsuite/libgomp.dg/omp-single-1.c: New test.
1173 * testsuite/libgomp.dg/shared-1.c: Return 0.
1174 Add prototype for abort.
1175 * testsuite/libgomp.dg/shared-2.c: Likewise.
1177 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1179 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1182 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1184 * testsuite/libgomp.dg/shared-1.c: New test.
1185 * testsuite/libgomp.dg/shared-2.c: New test.
1187 2005-09-24 Richard Henderson <rth@redhat.com>
1189 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1191 2005-09-24 Richard Henderson <rth@redhat.com>
1193 * iter.c (gomp_iter_static_next): Round up when computing number
1194 of iterations. Don't bother distributing a remainder equally.
1196 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1197 Don't call srand. Zero b before testing.
1200 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1202 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1203 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1205 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1207 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1208 without !$omp end do, followed immediately by subroutine end.
1210 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1212 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1214 2005-09-22 Richard Henderson <rth@redhat.com>
1216 * critical.c (GOMP_critical_name_start): Change argument to void**.
1217 Reuse the pointer space if the mutex fits.
1218 (GOMP_critical_name_end): Likewise.
1219 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1220 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1221 (GOMP_critical_name_end): Likewise.
1222 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1223 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1225 2005-09-20 Richard Henderson <rth@redhat.com>
1227 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1228 (create_lock_lock): New.
1229 (initialize_critical): Initialize it.
1230 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1231 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1233 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1235 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1237 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1239 * testsuite/libgomp.dg/omp-loop01.c: New test.
1240 * testsuite/libgomp.dg/omp-loop02.c: New test.
1242 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1244 * configure.ac (AC_PROG_FC): Add.
1245 (USE_FORTRAN): New automake conditional.
1246 * configure: Rebuilt.
1247 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1248 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1249 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1250 Add rules to build them.
1251 * Makefile.in: Rebuilt.
1252 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1254 * libgomp.map: Add Fortran wrappers.
1255 * libgomp_f.h.in: New file.
1256 * omp_lib.h.in: New file.
1257 * omp_lib.f90.in: New file.
1258 * fortran.c: New file.
1259 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1260 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1261 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1262 libgfortran has been built.
1263 * testsuite/libgomp.fortran/fortran.exp: New file.
1264 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1265 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1266 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1267 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1268 * testsuite/libgomp.fortran/omp_hello.f: New test.
1269 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1270 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1271 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1272 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1273 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1274 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1275 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1276 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1278 2005-08-30 Richard Henderson <rth@redhat.com>
1280 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1281 function for when aliases are not usable.
1282 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1283 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1284 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1285 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1286 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1287 GOMP_loop_ordered_guided_next): Likewise.
1288 * ordered.c (GOMP_ordered_start): Likewise.
1290 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1292 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1293 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1294 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1295 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1296 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1297 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1298 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1299 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1300 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1302 2005-07-07 Eric Christopher <echristo@redhat.com>
1303 Diego Novillo <dnovillo@redhat.com>
1305 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1306 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1308 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1309 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1310 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1311 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1312 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1313 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1314 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1316 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1318 * TOPLEVEL.patch: Remove.
1320 2005-05-16 Richard Henderson <rth@redhat.com>
1322 * configure.ac: Test for clock_gettime.
1323 * config.h.in, configure: Rebuild.
1324 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1325 (omp_get_wtime): Use clock_gettime if available.
1326 (omp_get_wtick): Use clock_getres if available.
1328 2005-05-11 Richard Henderson <rth@redhat.com>
1330 * config/linux/ia64/futex.h: New file.
1331 * configure.tgt: Use it.
1333 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1335 2005-05-07 Richard Henderson <rth@redhat.com>
1337 * config/linux/powerpc/futex.h: New file.
1338 * configure.tgt: Use it.
1340 * config/linux/i486/futex.h: Merge ...
1341 * config/linux/x86_64/futex.h: ... into ...
1342 * config/linux/x86/futex.h: ... here.
1343 * configure.tgt: Update to match.
1345 2005-05-06 Richard Henderson <rth@redhat.com>
1347 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1348 * config/linux/i486/futex.h: Likewise.
1349 * config/linux/x86_64/futex.h: Likewise.
1351 * config/linux/lock.c: New file.
1352 * config/linux/omp-lock.h: New file.
1354 * critical.c, env.h: Don't include omp.h
1355 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1356 * config/posix/time.c: Likewise.
1357 * config/posix/omp-lock.h: New file.
1358 * libgomp.h: Include omp-lock.h and omp.h.
1359 * Makefile.am (nodist_include_HEADERS): New.
1361 * configure.ac (PERL): New.
1362 * mkomp_h.pl: New file.
1363 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1365 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1367 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1368 build directory. Re-add -march=i486 hack.
1370 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1371 (libgomp_link_flags): Remove.
1372 (libgomp_initialized): Remove.
1373 (libgomp_init): Don't protect from reinitialization. Copy code
1374 from libstdc++ for getting the multilib set correctly.
1376 2005-05-05 Richard Henderson <rth@redhat.com>
1378 * config/linux/alpha/futex.h: New file.
1379 * configure.tgt (alpha*-*-linux*): Use it.
1381 * config/posix/mutex.c: New file.
1382 * config/posix/sem.c: Use libgomp.h.
1384 * configure.tgt (x86_64-linux): Also test CC for -m32.
1385 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1387 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1390 * Makefile.am (SUBDIRS): New.
1391 (libgomp_la_LDFLAGS): Add -lpthread.
1392 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1393 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1395 * libgomp_g.h: New file.
1396 * libgomp.h: Split out all public declarations to libgomp_g.h.
1397 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1398 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1399 * config/linux/sem.h: Likewise.
1400 * config/posix/sem.h: Likewise.
1402 * Makefile.am (AM_LDFLAGS): New.
1403 (libgomp_version_script): Split out from ...
1404 (libgomp_la_LDFLAGS): ... here.
1405 (libgomp_version_info): New.
1406 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1407 (LIBGOMP_ENABLE): New.
1408 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1409 (LIBGOMP_ENABLE_SYMVERS): New.
1410 * configure.ac (AC_INIT): Version 1.0.
1411 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1412 (enable-linux-futex): Likewise. Rename from enable-futex.
1413 (libtool_VERSION): New.
1414 (LIBGOMP_ENABLE_SYMVERS): Use it.
1415 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1416 * Makefile.in, aclocal.m4, configure: Rebuild.
1418 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1419 (gomp_mutex_unlock_slow): Fix typo.
1420 * config/linux/sem.c: Similarly.
1421 (gomp_sem_post_slow): Fix typo.
1422 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1423 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1424 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1426 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1427 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1428 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1429 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1430 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1431 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1432 LDFLAGS. Pull enable_futex check to top-level.
1433 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1434 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1436 First attempt at real configury.
1437 * Makefile, config.h: Remove file.
1438 * Makefile.am, Makefile.in: New file.
1439 * acinclude.m4 aclocal.m4: New file.
1440 * configure.ac, configure.tgt, configure: New file.
1442 * config/posix/lock.c: Rename from sys-lock.c.
1443 * config/posix/mutex.h: Rename from sys-mutex.h.
1444 * config/posix/sem.c: Rename from sys-sem.c.
1445 * config/posix/sem.h: Rename from sys-sem.h.
1446 * config/posix/proc.c: Rename from sys-proc.c.
1447 * config/posix/time.c: Rename from sys-proc.c.
1449 * config/linux/mutex.c: New file.
1450 * config/linux/mutex.h: New file.
1451 * config/linux/sem.c: New file.
1452 * config/linux/sem.h: New file.
1453 * config/linux/i486/futex.h: New file.
1454 * config/linux/x86_64/futex.h: New file.
1456 2005-05-04 Richard Henderson <rth@redhat.com>
1458 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1459 * libgomp.h: Declare them.
1460 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1461 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1463 2005-05-04 Richard Henderson <rth@redhat.com>
1465 * libgomp-1 code drop
1467 2005-05-04 Richard Henderson <rth@redhat.com>
1469 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1470 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1471 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1472 (gomp_iter_static_next): Update.
1473 (gomp_ordered_static_next): Update.
1474 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1475 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1476 totally empty range.
1477 (gomp_loop_ordered_static_next): Refine test for calling
1478 gomp_ordered_static_next.
1479 * testsuite/ordered-1.c: Add case for more threads than iterations.
1481 * iter.c (gomp_iter_runtime_next_locked): Remove.
1482 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1483 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1484 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1485 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1486 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1487 gomp_loop_ordered_guided_next): Downcase name, make static, add
1488 an external alias with the old name.
1489 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1490 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1491 switch and call one of the above static functions.
1492 * libgomp.h: Update.
1494 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1495 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1496 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1497 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1498 GOMP_loop_ordered_guided_start): Update to match.
1499 * sections.c (GOMP_sections_start): Likewise.
1500 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1502 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1503 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1504 Use bounds check instead of modulus.
1505 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1506 (gomp_ordered_last): Don't sync with ordered_owner here.
1507 (gomp_ordered_next): Likewise.
1508 (gomp_ordered_static_loop_next): Likewise.
1509 * loop.c, libgomp.h: Update to match.
1511 * libgomp.h (GOMP_barrier): Declare.
1513 * testsuite/barrier-1.c: New file.
1514 * testsuite/critical-1.c: New file.
1515 * testsuite/ordered-2.c: New file.
1516 * testsuite/ordered-1.c: New file.
1517 * testsuite/sections-1.c: New file.
1518 * testsuite/single-1.c: New file.
1519 * testsuite/Makefile (TESTS): Add them.
1521 2005-05-04 Richard Henderson <rth@redhat.com>
1523 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1524 * loop.c (GOMP_loop_static_start): If not the startup thread,
1525 acquire the mutex to wait for initialization complete.
1526 (GOMP_loop_ordered_static_start): Likewise.
1527 (GOMP_loop_ordered_runtime_start): Likewise.
1528 (GOMP_loop_ordered_static_first): Remove.
1529 (GOMP_loop_ordered_dynamic_first): Remove.
1530 (GOMP_loop_ordered_guided_first): Remove.
1531 (GOMP_loop_ordered_runtime_first): Remove.
1532 * ordered.c (gomp_ordered_loop_first): Post to own release when
1533 we're the first thread.
1534 (gomp_ordered_loop_last): Wait on release if not owner.
1535 (gomp_ordered_loop_next): Likewise.
1536 (gomp_ordered_static_loop_init): New.
1537 (gomp_ordered_static_loop_next): Use ordered_owner.
1538 (GOMP_ordered_start): Likewise.
1539 * work.c (gomp_new_work_share): Initialize ordered_owner.
1541 2005-05-03 Richard Henderson <rth@redhat.com>
1543 * Makefile (OPT): New.
1546 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1547 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1548 * libgomp.h, libgomp.map, NOTES: Update to match.
1550 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1551 Add initialized and thr members.
1552 (gomp_thread_start): Pause when initially spawned to wait for
1553 the whole team to be created.
1554 (gomp_team_start): Release team members at the end.
1556 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1557 (f_foo_1): Use GOMP_loop_end.
1558 (f_foo_2): Use GOMP_loop_end_nowait.
1560 * testsuite/loop-2.c: New file.
1561 * testsuite/Makefile (TESTS): Add it.
1563 2005-05-03 Richard Henderson <rth@redhat.com>
1565 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1566 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1567 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1570 * testsuite/Makefile: New file.
1571 * testsuite/loop-1.c: New file.
1573 2005-05-03 Richard Henderson <rth@redhat.com>
1575 Initial implementation and checkin.