1 2007-07-02 Jakub Jelinek <jakub@redhat.com>
4 * sections.c (GOMP_parallel_sections_start): Only decrease
5 number of threads to COUNT if dyn_var is true.
6 * testsuite/libgomp.c/pr32468.c: New test.
8 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
13 2007-06-21 Jakub Jelinek <jakub@redhat.com>
16 * testsuite/libgomp.c/pr32362-1.c: New test.
17 * testsuite/libgomp.c/pr32362-2.c: New test.
18 * testsuite/libgomp.c/pr32362-3.c: New test.
20 2007-06-07 Jakub Jelinek <jakub@redhat.com>
22 * team.c (gomp_team_start): Fix setting up thread_attr
25 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
27 * configure: Regenerate.
29 2007-05-23 Steve Ellcey <sje@cup.hp.com>
31 * Makefile.in: Regenerate.
32 * configure: Regenerate.
33 * aclocal.m4: Regenerate.
34 * testsuite/Makefile.in: Regenerate.
36 2007-05-04 Jakub Jelinek <jakub@redhat.com>
38 * config/linux/proc.c: New file.
41 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
43 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
45 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
47 2007-04-16 Matthias Klose <doko@debian.org>
49 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
50 flags if not building with -m64.
51 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
52 flag for i?86-*-* targets, if current target matches -m64.
54 2007-04-14 Steve Ellcey <sje@cup.hp.com>
56 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
57 * Makefile.in: Regenerate.
59 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
62 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
64 * testsuite/libgomp.fortran/fortran.exp: Likewise.
66 2007-04-04 Jakub Jelinek <jakub@redhat.com>
68 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
70 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
71 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
72 (parse_affinity): New function.
73 (initialize_env): Call it and gomp_init_affinity.
74 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
75 create new pthread_attr_t and call gomp_init_thread_affinity
76 on it for each thread before passing the attribute to pthread_create.
77 * config/linux/affinity.c: New file.
78 * config/posix/affinity.c: New file.
79 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
81 * config.h.in: Rebuilt.
82 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
83 * Makefile.in: Rebuilt.
85 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
87 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
89 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
92 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
94 * testsuite/config/default.exp: New file.
95 * testsuite/lib/libgomp.exp: New file.
96 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
97 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
98 load_lib *, load_gcc_lib *): Move to libgomp.exp.
99 (libgomp_load): Remove.
100 * testsuite/lib/libgomp.exp (libgomp_init): Compute
101 always_ld_library_path, not ld_library_path. Set additional_flags
102 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
103 (target_compile): Do not call libgomp_init. Append lang_library_path
104 and lang_link_flags to options.
105 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
106 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
108 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
109 always_ld_library_path. Set LD_LIBRARY_PATH here.
110 * testsuite/libgomp.fortran/fortran.exp: Ditto.
111 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
112 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
114 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
115 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
116 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
117 * testsuite/libgomp.c/pr29947-1.c: Ditto.
118 * testsuite/libgomp.c/atomic-10.c: Ditto.
120 2007-03-21 Jakub Jelinek <jakub@redhat.com>
122 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
123 dg-final cleanup-modules line.
124 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
125 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
126 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
127 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
128 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
129 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
130 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
132 2007-03-18 Andreas Schwab <schwab@suse.de>
134 * acinclude.m4: Adjust regular expression for ld version
136 * configure: Regenerate.
138 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
140 * Makefile.am: Add install-pdf target as copied from
141 automake v1.10 rules.
142 * Makefile.in: Regenerate
144 2007-02-07 Jakub Jelinek <jakub@redhat.com>
147 * configure: Regenerate.
150 * testsuite/libgomp.c++/pr30703.C: New test.
152 2007-02-02 Jakub Jelinek <jakub@redhat.com>
155 2006-07-05 Eric Christopher <echristo@apple.com>
156 * configure.ac: Depend addition of -pthread on host OS.
157 * configure: Regenerate.
159 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
161 * libgomp.texi: Fix spacing after abbreviations.
163 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
166 * configure.ac: Add check for makeinfo
167 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
168 if an appropiate version of makeinfo is found.
169 * aclocal.m4: Regenerated.
170 * configure: Regenerated.
171 * Makefile.in: Regenerated.
172 * testsuite/Makefile.in: Regenerated.
174 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
177 * libgomp.texi: More about implementation-dependent settings.
179 2007-01-26 Tobias Burnus <burnus@net-b.de>
181 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
183 2007-01-24 Jakub Jelinek <jakub@redhat.com>
186 * testsuite/libgomp.c/pr30494.c: New test.
188 2007-01-15 Tom Tromey <tromey@redhat.com>
190 * configure: Rebuilt.
191 * configure.ac: Fixed comment.
193 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
195 * libgomp.texi: Document implementation specific default values of
196 environment variables.
198 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
201 * libgomp.texi: New file.
202 * configure.ac: Add --enable-generated-files-in-srcdir option.
203 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
205 * Makefile.in: Regenerated.
206 * config.h.in: Regenerated.
207 * testsuite/Makefile.in: Regenerated.
210 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
213 * env.c (omp_set_num_threads): Set illegal thread count to 1.
215 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
217 * configure: Regenerate.
219 2006-12-04 Jakub Jelinek <jakub@redhat.com>
222 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
223 start if there shouldn't be any loop iterations.
224 (gomp_loop_ordered_static_start): Remove start == end test.
225 * testsuite/libgomp.c/pr29947-1.c: New test.
226 * testsuite/libgomp.c/pr29947-2.c: New test.
228 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
230 * configure.tgt: Force initial-exec TLS model on Linux only.
232 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
234 * configure: Regenerated.
236 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
238 * env.c (parse_schedule): Reject out of range values.
239 (parse_unsigned_long): Reject out of range, negative or zero values.
241 2006-10-29 Jakub Jelinek <jakub@redhat.com>
244 * testsuite/libgomp.fortran/pr29629.f90: New test.
246 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
249 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
250 * config/posix95: New directory.
251 * config/posix95/omp-lock.h: New file.
252 * config/posix95/lock.c: Likewise.
254 2006-10-14 Geoffrey Keating <geoffk@apple.com>
256 * aclocal.m4: Regenerate.
257 * configure: Regenerate.
259 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
261 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
264 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
266 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
268 * configure: Regenerate.
269 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
271 2006-09-26 Jakub Jelinek <jakub@redhat.com>
275 * testsuite/libgomp.c/nestedfn-4.c: New test.
276 * testsuite/libgomp.c/nestedfn-5.c: New test.
277 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
280 * testsuite/libgomp.fortran/condinc1.f: New test.
281 * testsuite/libgomp.fortran/condinc2.f: New test.
282 * testsuite/libgomp.fortran/condinc3.f90: New test.
283 * testsuite/libgomp.fortran/condinc4.f90: New test.
284 * testsuite/libgomp.fortran/condinc1.inc: New file.
286 2006-09-18 Tom Tromey <tromey@redhat.com>
288 * configure: Rebuilt.
290 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
293 PR preprocessor/14634
294 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
296 * configure: Regenerate.
298 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
300 * testsuite/libgomp.fortran/reduction3.f90: Change
301 -2147483648 to -huge(i)-1 to avoid overflow.
302 * testsuite/libgomp.fortran/reduction4.f90: Change
303 Z'ffffffff' to not(0) to avoid overflow.
305 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
308 * Makefile.am (libsubincludedir): New.
309 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
310 * Makefile.in: Regenerate.
312 2006-08-17 Jakub Jelinek <jakub@redhat.com>
315 * env.c: Include ctype.h.
316 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
317 leading and/or trailing whitespace and compare strings case
320 2006-07-16 Jakub Jelinek <jakub@redhat.com>
323 * testsuite/libgomp.fortran/pr28390.f: New test.
325 2006-07-05 Eric Christopher <echristo@apple.com>
327 * configure.ac: Depend addition of -pthread on host OS.
328 * configure: Regenerate.
330 2006-06-21 Jakub Jelinek <jakub@redhat.com>
332 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
333 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
336 2006-06-20 Jakub Jelinek <jakub@redhat.com>
340 * configure.ac: If neither --enable-linux-futex nor
341 --disable-linux-futex is passed, determine the default by checking
342 for compiling and/or running against NPTL. With --enable-linux-futex,
343 check if SYS_gettid and SYS_futex are defined.
344 * configure: Rebuilt.
346 2006-06-14 Richard Henderson <rth@redhat.com>
349 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
350 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
352 2006-06-09 Richard Henderson <rth@redhat.com>
354 * env.c (gomp_nthreads_var): Change to unsigned long.
355 (gomp_run_sched_chunk): Likewise.
356 (parse_unsigned_long): Rename from parse_num_threads and generalize.
357 (initialize_env): Initialize gomp_thread_attr.
358 * libgomp.h (gomp_nthreads_var): Update decl.
359 (gomp_run_sched_chunk): Likewise.
360 (gomp_thread_attr): Declare.
361 * team.c (gomp_thread_attr): Export.
362 (initialize_team): Don't initialize it.
364 2006-06-09 Jakub Jelinek <jakub@redhat.com>
367 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
368 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
370 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
372 * config/mingw32/time.c: New file.
373 * configure.tgt: Use it.
375 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
377 * Makefile.am: Add install-html target. Add install-html to .PHONY
378 * Makefile.in: Regenerate.
380 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
383 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
384 * testsuite/libgomp.c/critical-1.c: Likewise.
385 * testsuite/libgomp.c/loop-1.c: Likewise.
386 * testsuite/libgomp.c/loop-2.c: Likewise.
387 * testsuite/libgomp.c/single-1.c: Likewise.
388 * testsuite/libgomp.c/ordered-1.c: Likewise.
389 * testsuite/libgomp.c/ordered-2.c: Likewise.
391 2006-05-15 Jakub Jelinek <jakub@redhat.com>
394 * libgomp.fortran/pr27416-1.f90: New test.
396 2006-05-03 Jakub Jelinek <jakub@redhat.com>
399 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
400 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
402 2006-05-02 Jakub Jelinek <jakub@redhat.com>
405 * testsuite/libgomp.c/pr26943-1.c: New test.
406 * testsuite/libgomp.c/pr26943-2.c: New test.
407 * testsuite/libgomp.c/pr26943-3.c: New test.
408 * testsuite/libgomp.c/pr26943-4.c: New test.
409 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
410 * testsuite/libgomp.c++/pr26943.C: New test.
412 2006-05-02 Jakub Jelinek <jakub@redhat.com>
415 * testsuite/libgomp.c++/pr27337.C: New test.
417 2006-04-26 Jakub Jelinek <jakub@redhat.com>
420 * testsuite/libgomp.c/pr26171.c: New test.
422 2006-04-25 Richard Henderson <rth@redhat.com>
425 * configure.ac: Use GCC_CHECK_TLS.
426 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
427 * Makefile.in, aclocal.m4, configure: Regenerate.
429 2006-04-10 Matthias Klose <doko@debian.org>
431 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
432 directory names containing underscores.
434 2006-03-21 Jakub Jelinek <jakub@redhat.com>
437 * testsuite/libgomp.c++/pr26691.C: New test.
439 2006-03-13 Jakub Jelinek <jakub@redhat.com>
441 * testsuite/libgomp.fortran/retval2.f90: New test.
443 2006-03-09 Diego Novillo <dnovillo@redhat.com>
445 * testsuite/libgomp.c++: New directory.
447 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
449 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
450 * config/posix/sem.c: Implement the above.
452 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
454 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
455 define HAVE_BROKEN_POSIX_SEMAPHORES.
456 * configure: Rebuilt.
457 * config.h.in: Rebuilt.
459 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
462 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
463 for the other pthread check.
464 * configure: Regenerate.
465 * config.h.in: Regenerate.
467 2006-02-15 Jakub Jelinek <jakub@redhat.com>
471 * Makefile.am (fincludedir): New variable.
472 (nodist_include_HEADERS): Remove Fortran files.
473 (nodist_finclude_HEADERS): New variable.
474 * Makefile.in: Regenerated.
476 2006-02-13 Jakub Jelinek <jakub@redhat.com>
478 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
479 Remove tests for returning assumed character length arrays.
481 2006-02-12 Roger Sayle <roger@eyesopen.com>
482 John David Anglin <dave@hiauly1.hia.nrc.ca>
485 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
487 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
489 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
491 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
493 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
494 part of LD_LIBRARY_PATH manually.
496 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
499 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
502 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
505 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
506 * configure.ac (PERL): Don't set.
507 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
508 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
509 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
510 * omp.h.in: Wrap the new configure substitutions with @ characters.
511 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
512 * aclocal.m4, configure, Makefile.in: Regenerate.
513 * mkomp_h.pl: Delete.
515 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
518 * configure.ac: Use GCC_HEADER_STDINT.
519 * libgomp.h: Include gstdint.h.
520 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
521 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
523 2006-01-24 Richard Henderson <rth@redhat.com>
526 * configure.ac: Add AM_MAINTAINER_MODE.
527 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
529 2006-01-24 Diego Novillo <dnovillo@redhat.com>
531 * Makefile.in: Regenerate.
532 * testsuite/Makefile.in: Regenerate.
533 * aclocal.m4: Regenerate.
535 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
537 * config/posix/proc.c: Conditional include of sys/loadavg.h for
539 * configure.ac: Add check for loadavg.h.
540 (link_gomp): Adjust comment.
541 * configure: Regenerate.
542 * config.h.in: Regenerate.
544 2006-01-21 Steve Ellcey <sje@cup.hp.com>
547 * configure.ac: Remove check for alloca.h.
548 * configure: Regenerate.
549 * config.h.in: Regenerate.
550 * libgomp.h: define gomp_alloca to be __builtin_alloca.
551 * team.c: Remove use of alloca.h.
552 Call gomp_alloca instead of alloca.
554 2006-01-20 Steve Ellcey <sje@cup.hp.com>
557 * team.c: Add include of alloca.h.
558 * configure.ac: Add check for alloca.h.
559 * configure: Regenerate.
560 * config.h.in: Regenerate.
562 2006-01-17 Jakub Jelinek <jakub@redhat.com>
565 * testsuite/libgomp.fortran/pr25219.f90: New test.
567 2005-12-05 Uros Bizjak <uros@kss-loka.si>
569 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
570 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
571 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
572 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
573 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
574 testsuite/libgomp.fortran/threadprivate1.f90,
575 testsuite/libgomp.fortran/threadprivate2.f90,
576 testsuite/libgomp.fortran/threadprivate3.f90,
577 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
578 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
579 testsuite/libgomp.fortran/omp_parse3.f90: Change required
580 effective-target to TLS runtime.
582 * testsuite/libgomp.fortran/pr25162.f: Require
583 effective-target TLS runtime.
585 2005-12-01 Jakub Jelinek <jakub@redhat.com>
587 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
588 * testsuite/libgomp.c/nestedfn-3.c: New test.
590 2005-11-30 Jakub Jelinek <jakub@redhat.com>
593 * testsuite/libgomp.fortran/pr25162.f: New test.
595 2005-11-28 Jakub Jelinek <jakub@redhat.com>
597 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
598 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
600 2005-11-25 Jakub Jelinek <jakub@redhat.com>
602 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
603 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
604 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
605 single.c, team.c, work.c, config/linux/alpha/futex.h,
606 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
607 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
608 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
609 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
610 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
611 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
612 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
615 2005-11-18 Jakub Jelinek <jakub@redhat.com>
617 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
618 to nodist_noinst_HEADERS.
619 * Makefile.in: Rebuilt.
621 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
622 add integer count field.
623 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
624 omp_nest_lock_t type change.
625 (omp_init_nest_lock): Likewise. Initialize count to 0.
626 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
628 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
630 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
631 Increment count if successful and return the new nesting level.
632 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
633 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
634 * testsuite/libgomp.c/lib-1.c: New test.
635 * testsuite/libgomp.fortran/lib1.f90: New test.
636 * testsuite/libgomp.fortran/lib2.f: New test.
637 * testsuite/libgomp.fortran/lib3.f: New test.
639 2005-11-17 Richard Henderson <rth@redhat.com>
642 * Makefile.am (nodist_toolexeclib_HEADERS): New.
643 * configure.ac (link_gomp): New. Substitute it.
644 (AC_CONFIG_FILES): Add libgomp.spec.
645 * libgomp.spec.in: New file.
646 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
647 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
649 2005-11-18 Jakub Jelinek <jakub@redhat.com>
651 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
652 reduction(-:var) behaving the same as reduction(+:var).
653 * testsuite/libgomp.c/reduction-4.c: New test.
655 2005-11-15 Uros Bizjak <uros@kss-loka.si>
657 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
658 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
659 testsuite/libgomp.c/copyin-3.c,
660 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
661 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
662 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
663 testsuite/libgomp.c++/pr24455.C,
664 testsuite/libgomp.fortran/threadprivate1.f90,
665 testsuite/libgomp.fortran/threadprivate2.f90,
666 testsuite/libgomp.fortran/threadprivate3.f90,
667 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
668 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
669 testsuite/libgomp.fortran/omp_parse3.f90: Require
670 effective-target TLS.
672 2005-11-14 Diego Novillo <dnovillo@redhat.com>
676 2005-11-13 Jakub Jelinek <jakub@redhat.com>
679 * team.c (initialize_team): Pass NULL rather than free as
680 pthread_key_create destructor. Initialize thread specific data
681 pointer in initial thread to a static local variable rather than
684 2005-11-11 Uros Bizjak <uros@kss-loka.si>
686 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
687 its location to ld_library_path.
689 2005-11-10 Diego Novillo <dnovillo@redhat.com>
691 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
693 2005-11-10 Diego Novillo <dnovillo@redhat.com>
695 * testsuite/libgomp.c: Rename from libgomp.dg.
697 2005-11-09 Diego Novillo <dnovillo@redhat.com>
699 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
700 threadprivate variable 'i'.
702 2005-11-09 Jakub Jelinek <jakub@redhat.com>
704 * config/linux/s390/futex.h: New file.
705 * configure.tgt: Use it.
707 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
710 2005-11-08 Jakub Jelinek <jakub@redhat.com>
713 * testsuite/libgomp.c++/master-1.C: New test.
715 2005-11-07 Jakub Jelinek <jakub@redhat.com>
717 * testsuite/libgomp.dg/copyin-3.c: New test.
719 2005-11-07 Jakub Jelinek <jakub@redhat.com>
721 * testsuite/libgomp.fortran/retval1.f90: New test.
722 * testsuite/libgomp.fortran/vla7.f90: New test.
724 2005-11-06 Jakub Jelinek <jakub@redhat.com>
726 * testsuite/libgomp.fortran/vla2.f90: New test.
727 * testsuite/libgomp.fortran/vla3.f90: New test.
728 * testsuite/libgomp.fortran/vla4.f90: New test.
729 * testsuite/libgomp.fortran/vla5.f90: New test.
730 * testsuite/libgomp.fortran/vla6.f90: New test.
732 2005-11-01 Jakub Jelinek <jakub@redhat.com>
734 * config/linux/sparc/futex.h: New file.
735 * configure.tgt: Use it.
736 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
738 * critical.c: Include stdlib.h.
739 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
740 ignoring return value.
741 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
742 LIBGOMP_CHECK_SYNC_BUILTINS check.
743 * configure: Rebuilt.
745 2005-10-31 Jakub Jelinek <jakub@redhat.com>
747 * testsuite/libgomp.fortran/vla1.f90: New test.
749 2005-10-31 Richard Henderson <rth@redhat.com>
751 * testsuite/libgomp.fortran/character2.f90: Fix race condition
752 setting 's' in different threads.
754 2005-10-31 Jakub Jelinek <jakub@redhat.com>
756 * libgomp.h (attribute_hidden, ialias): Define.
757 * config/posix/proc.c (omp_get_num_procs): Add ialias.
758 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
759 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
760 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
761 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
762 omp_test_lock, omp_test_nest_lock): Likewise.
763 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
764 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
765 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
766 omp_test_lock, omp_test_nest_lock): Likewise.
767 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
768 omp_get_dynamic, omp_get_nested): Likewise.
769 * parallel.c (omp_get_num_threads, omp_get_max_threads,
770 omp_get_thread_num, omp_in_parallel): Likewise.
771 * fortran.c (ialias_redirect): Define.
772 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
773 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
774 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
775 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
776 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
777 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
778 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
779 omp_get_wtime): Add ialias_redirect.
781 2005-10-30 Jakub Jelinek <jakub@redhat.com>
783 * fortran.c: Include stdlib.h.
785 2005-10-29 Jakub Jelinek <jakub@redhat.com>
787 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
788 * Makefile.in: Regenerated.
790 2005-10-28 Jakub Jelinek <jakub@redhat.com>
792 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
793 * libgomp_f.h.in (omp_check_defines): New function.
794 * env.c: Include libgomp_f.h.
795 (initialize_env): Call omp_check_defines.
797 * testsuite/libgomp.dg/copyin-2.c: New test.
798 * testsuite/libgomp.c++/copyin-2.C: New test.
799 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
801 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
802 * testsuite/libgomp.fortran/sharing2.f90: New test.
804 * testsuite/libgomp.dg/copyin-1.c: New test.
805 * testsuite/libgomp.c++/copyin-1.C: New test.
807 2005-10-26 Jakub Jelinek <jakub@redhat.com>
809 * testsuite/libgomp.fortran/crayptr1.f90: New test.
811 * testsuite/libgomp.fortran/workshare1.f90: New test.
813 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
815 * libgomp.fortran/sharing1.f90: New test.
817 2005-10-24 Jakub Jelinek <jakub@redhat.com>
820 * testsuite/libgomp.c++/loop-7.C: New test.
822 * testsuite/libgomp.dg/nestedfn-2.c: New test.
824 * testsuite/libgomp.dg/nestedfn-1.c: New test.
825 * testsuite/libgomp.fortran/reduction6.f90: New test.
826 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
828 2005-10-23 Richard Henderson <rth@redhat.com>
830 * testsuite/libgomp.c++/ctor-1.C: New.
831 * testsuite/libgomp.c++/ctor-2.C: New.
832 * testsuite/libgomp.c++/ctor-3.C: New.
833 * testsuite/libgomp.c++/ctor-4.C: New.
834 * testsuite/libgomp.c++/ctor-5.C: New.
835 * testsuite/libgomp.c++/ctor-6.C: New.
836 * testsuite/libgomp.c++/ctor-7.C: New.
837 * testsuite/libgomp.c++/ctor-8.C: New.
838 * testsuite/libgomp.c++/ctor-9.C: New.
840 2005-10-21 Diego Novillo <dnovillo@redhat.com>
843 * testsuite/libgomp.c++/pr24455-1.C: New test.
844 * testsuite/libgomp.c++/pr24455.C: New test.
845 * testsuite/libgomp.dg/pr24455-1.c: New test.
846 * testsuite/libgomp.dg/pr24455.c: New test.
848 2005-10-20 Richard Henderson <rth@redhat.com>
850 * testsuite/libgomp.c++/loop-6.C: New.
851 * testsuite/libgomp.dg/loop-3.c: New.
853 2005-10-20 Jakub Jelinek <jakub@redhat.com>
855 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
857 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
860 2005-10-19 Diego Novillo <dnovillo@redhat.com>
862 * testsuite/libgomp.fortran/jacobi.f: New test.
864 2005-10-19 Richard Henderson <rth@redhat.com>
866 * configure.tgt (i?86-linux): Default to with_arch instead of
867 CFLAGS. Add -mtune to match target_cpu.
868 (x86_64-linux): Tune to i686.
870 * fortran.c (omp_test_nest_lock_): Fix typo.
872 2005-10-19 Jakub Jelinek <jakub@redhat.com>
874 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
875 gomp_ordered_sync): Do nothing if team->nthreads == 1.
876 * testsuite/libgomp.dg/ordered-3.c: New test.
878 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
879 Remove volatile keyword.
881 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
882 in COMMON block to avoid warnings on 64-bit targets.
884 2005-10-18 Diego Novillo <dnovillo@redhat.com>
886 * testsuite/libgomp.dg/shared-3.c: New test.
888 2005-10-18 Jakub Jelinek <jakub@redhat.com>
890 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
891 * testsuite/libgomp.fortran/reduction5.f90: New test.
893 2005-10-18 Jakub Jelinek <jakub@redhat.com>
895 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
897 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
898 flush loop now that __sync_synchronize has proper memory barrier.
899 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
900 Add -ffixed-form to dg-options.
902 2005-10-17 Diego Novillo <dnovillo@redhat.com>
904 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
906 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
907 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
908 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
909 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
910 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
911 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
912 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
913 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
914 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
915 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
916 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
917 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
918 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
919 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
920 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
921 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
922 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
923 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
924 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
925 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
926 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
927 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
928 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
929 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
930 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
932 2005-10-17 Jakub Jelinek <jakub@redhat.com>
934 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
935 lang_library_path exists. Use find instead of glob to gather tests.
936 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
938 2005-10-17 Diego Novillo <dnovillo@redhat.com>
940 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
941 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
942 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
943 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
944 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
945 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
946 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
947 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
948 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
949 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
950 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
951 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
952 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
954 2005-10-15 Jakub Jelinek <jakub@redhat.com>
956 * testsuite/libgomp.dg/vla-1.c: New test.
958 * testsuite/libgomp.fortran/reference2.f90: New test.
960 * testsuite/libgomp.fortran/character2.f90: Remove explicit
961 declaration of omp_get_thread_num.
962 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
965 * testsuite/libgomp.fortran/reduction1.f90: New test.
966 * testsuite/libgomp.fortran/reduction2.f90: New test.
967 * testsuite/libgomp.fortran/reduction3.f90: New test.
968 * testsuite/libgomp.fortran/reduction4.f90: New test.
970 2005-10-13 Richard Henderson <rth@redhat.com>
972 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
973 * Makefile.in: Regenerate.
974 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
975 * libgomp.h: Include bar.h.
976 (struct gomp_barrier): Remove.
977 (struct gomp_team): Add barrier. Replace master_barrier with
978 master_release. Replace threads with ordered_release.
979 (struct gomp_thread): Replace barrier with release.
980 * ordered.c (gomp_ordered_first): Update for ordered_release change.
981 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
982 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
983 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
984 (GOMP_single_copy_end): Likewise.
985 * team.c (gomp_threads_dock): New.
986 (gomp_barrier_init, gomp_barrier_destroy): Remove.
987 (gomp_thread_start): Use gomp_barrier_wait.
988 (new_team, free_team): Update for gomp_team changes.
989 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
990 (gomp_team_end): Use gomp_barrier_wait.
991 (initialize_team): Update for gomp_thread changes.
992 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
993 (gomp_work_share_end_nowait): Use atomic ops when available.
994 * config/linux/bar.c, config/linux/bar.h: New files.
995 * config/posix/bar.c, config/posix/bar.h: New files.
997 2005-10-13 Jakub Jelinek <jakub@redhat.com>
999 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1000 * testsuite/libgomp.dg/single-2.c: New test.
1002 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1003 lang_link_flags): Unset, so that they aren't inherited from previously
1006 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1008 2005-10-12 Richard Henderson <rth@redhat.com>
1010 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1011 (libgomp_init): Use lang_test_file, lang_library_path, and
1012 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1014 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1015 (lang_test_file, lang_link_flags): New.
1016 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1018 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1019 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1020 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1021 testsuite/libgomp.c++/parallel-1.C,
1022 testsuite/libgomp.c++/reduction-1.C,
1023 testsuite/libgomp.c++/reduction-2.C,
1024 testsuite/libgomp.c++/reduction-3.C,
1025 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1026 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1027 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1028 New files, largely cribbed from the C testsuite.
1030 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1032 * testsuite/libgomp.fortran/character1.f90: New test.
1033 * testsuite/libgomp.fortran/character2.f90: New test.
1035 * testsuite/libgomp.dg/nested-1.c: New test.
1036 * testsuite/libgomp.dg/nested-2.c: New test.
1037 * testsuite/libgomp.fortran/do1.f90: New test.
1038 * testsuite/libgomp.fortran/do2.f90: New test.
1040 * testsuite/libgomp.fortran/reference1.f90: New test.
1042 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1044 * testsuite/libgomp.dg/reduction-1.c: New test.
1045 * testsuite/libgomp.dg/reduction-2.c: New test.
1046 * testsuite/libgomp.dg/reduction-3.c: New test.
1048 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1050 * testsuite/libgomp.dg/atomic-1.c: New test.
1051 * testsuite/libgomp.dg/atomic-2.c: New test.
1053 2005-10-09 Richard Henderson <rth@redhat.com>
1055 * critical.c (atomic_lock): New.
1056 (initialize_critical): Initialize it.
1057 (GOMP_atomic_start, GOMP_atomic_end): New.
1058 * libgomp.map: Export them.
1059 * libgomp_g.h: Declare them.
1061 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1063 2005-10-02 Richard Henderson <rth@redhat.com>
1065 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1066 to XCFLAGS instead of CFLAGS.
1068 2005-09-30 Richard Henderson <rth@redhat.com>
1070 * configure.ac: Determine whether -pthread or -lpthread is needed.
1071 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1072 * Makefine.in, configure: Rebuild.
1074 2005-09-28 Richard Henderson <rth@redhat.com>
1076 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1077 * testsuite/libgomp.dg/omp-single-3.c: New test.
1079 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1081 * testsuite/libgomp.dg/omp-single-2.c: New test.
1082 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1084 2005-09-27 Richard Henderson <rth@redhat.com>
1086 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1087 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1089 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1091 * testsuite/libgomp.dg/omp-loop03.c: New test.
1093 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1095 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1097 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1099 * testsuite/libgomp.dg/omp-single-1.c: New test.
1100 * testsuite/libgomp.dg/shared-1.c: Return 0.
1101 Add prototype for abort.
1102 * testsuite/libgomp.dg/shared-2.c: Likewise.
1104 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1106 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1109 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1111 * testsuite/libgomp.dg/shared-1.c: New test.
1112 * testsuite/libgomp.dg/shared-2.c: New test.
1114 2005-09-24 Richard Henderson <rth@redhat.com>
1116 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1118 2005-09-24 Richard Henderson <rth@redhat.com>
1120 * iter.c (gomp_iter_static_next): Round up when computing number
1121 of iterations. Don't bother distributing a remainder equally.
1123 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1124 Don't call srand. Zero b before testing.
1127 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1129 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1130 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1132 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1134 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1135 without !$omp end do, followed immediately by subroutine end.
1137 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1139 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1141 2005-09-22 Richard Henderson <rth@redhat.com>
1143 * critical.c (GOMP_critical_name_start): Change argument to void**.
1144 Reuse the pointer space if the mutex fits.
1145 (GOMP_critical_name_end): Likewise.
1146 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1147 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1148 (GOMP_critical_name_end): Likewise.
1149 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1150 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1152 2005-09-20 Richard Henderson <rth@redhat.com>
1154 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1155 (create_lock_lock): New.
1156 (initialize_critical): Initialize it.
1157 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1158 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1160 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1162 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1164 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1166 * testsuite/libgomp.dg/omp-loop01.c: New test.
1167 * testsuite/libgomp.dg/omp-loop02.c: New test.
1169 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1171 * configure.ac (AC_PROG_FC): Add.
1172 (USE_FORTRAN): New automake conditional.
1173 * configure: Rebuilt.
1174 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1175 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1176 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1177 Add rules to build them.
1178 * Makefile.in: Rebuilt.
1179 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1181 * libgomp.map: Add Fortran wrappers.
1182 * libgomp_f.h.in: New file.
1183 * omp_lib.h.in: New file.
1184 * omp_lib.f90.in: New file.
1185 * fortran.c: New file.
1186 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1187 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1188 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1189 libgfortran has been built.
1190 * testsuite/libgomp.fortran/fortran.exp: New file.
1191 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1192 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1193 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1194 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1195 * testsuite/libgomp.fortran/omp_hello.f: New test.
1196 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1197 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1198 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1199 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1200 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1201 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1202 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1203 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1205 2005-08-30 Richard Henderson <rth@redhat.com>
1207 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1208 function for when aliases are not usable.
1209 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1210 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1211 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1212 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1213 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1214 GOMP_loop_ordered_guided_next): Likewise.
1215 * ordered.c (GOMP_ordered_start): Likewise.
1217 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1219 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1220 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1221 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1222 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1223 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1224 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1225 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1226 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1227 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1229 2005-07-07 Eric Christopher <echristo@redhat.com>
1230 Diego Novillo <dnovillo@redhat.com>
1232 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1233 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1235 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1236 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1237 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1238 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1239 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1240 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1241 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1243 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1245 * TOPLEVEL.patch: Remove.
1247 2005-05-16 Richard Henderson <rth@redhat.com>
1249 * configure.ac: Test for clock_gettime.
1250 * config.h.in, configure: Rebuild.
1251 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1252 (omp_get_wtime): Use clock_gettime if available.
1253 (omp_get_wtick): Use clock_getres if available.
1255 2005-05-11 Richard Henderson <rth@redhat.com>
1257 * config/linux/ia64/futex.h: New file.
1258 * configure.tgt: Use it.
1260 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1262 2005-05-07 Richard Henderson <rth@redhat.com>
1264 * config/linux/powerpc/futex.h: New file.
1265 * configure.tgt: Use it.
1267 * config/linux/i486/futex.h: Merge ...
1268 * config/linux/x86_64/futex.h: ... into ...
1269 * config/linux/x86/futex.h: ... here.
1270 * configure.tgt: Update to match.
1272 2005-05-06 Richard Henderson <rth@redhat.com>
1274 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1275 * config/linux/i486/futex.h: Likewise.
1276 * config/linux/x86_64/futex.h: Likewise.
1278 * config/linux/lock.c: New file.
1279 * config/linux/omp-lock.h: New file.
1281 * critical.c, env.h: Don't include omp.h
1282 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1283 * config/posix/time.c: Likewise.
1284 * config/posix/omp-lock.h: New file.
1285 * libgomp.h: Include omp-lock.h and omp.h.
1286 * Makefile.am (nodist_include_HEADERS): New.
1288 * configure.ac (PERL): New.
1289 * mkomp_h.pl: New file.
1290 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1292 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1294 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1295 build directory. Re-add -march=i486 hack.
1297 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1298 (libgomp_link_flags): Remove.
1299 (libgomp_initialized): Remove.
1300 (libgomp_init): Don't protect from reinitialization. Copy code
1301 from libstdc++ for getting the multilib set correctly.
1303 2005-05-05 Richard Henderson <rth@redhat.com>
1305 * config/linux/alpha/futex.h: New file.
1306 * configure.tgt (alpha*-*-linux*): Use it.
1308 * config/posix/mutex.c: New file.
1309 * config/posix/sem.c: Use libgomp.h.
1311 * configure.tgt (x86_64-linux): Also test CC for -m32.
1312 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1314 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1317 * Makefile.am (SUBDIRS): New.
1318 (libgomp_la_LDFLAGS): Add -lpthread.
1319 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1320 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1322 * libgomp_g.h: New file.
1323 * libgomp.h: Split out all public declarations to libgomp_g.h.
1324 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1325 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1326 * config/linux/sem.h: Likewise.
1327 * config/posix/sem.h: Likewise.
1329 * Makefile.am (AM_LDFLAGS): New.
1330 (libgomp_version_script): Split out from ...
1331 (libgomp_la_LDFLAGS): ... here.
1332 (libgomp_version_info): New.
1333 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1334 (LIBGOMP_ENABLE): New.
1335 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1336 (LIBGOMP_ENABLE_SYMVERS): New.
1337 * configure.ac (AC_INIT): Version 1.0.
1338 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1339 (enable-linux-futex): Likewise. Rename from enable-futex.
1340 (libtool_VERSION): New.
1341 (LIBGOMP_ENABLE_SYMVERS): Use it.
1342 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1343 * Makefile.in, aclocal.m4, configure: Rebuild.
1345 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1346 (gomp_mutex_unlock_slow): Fix typo.
1347 * config/linux/sem.c: Similarly.
1348 (gomp_sem_post_slow): Fix typo.
1349 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1350 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1351 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1353 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1354 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1355 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1356 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1357 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1358 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1359 LDFLAGS. Pull enable_futex check to top-level.
1360 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1361 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1363 First attempt at real configury.
1364 * Makefile, config.h: Remove file.
1365 * Makefile.am, Makefile.in: New file.
1366 * acinclude.m4 aclocal.m4: New file.
1367 * configure.ac, configure.tgt, configure: New file.
1369 * config/posix/lock.c: Rename from sys-lock.c.
1370 * config/posix/mutex.h: Rename from sys-mutex.h.
1371 * config/posix/sem.c: Rename from sys-sem.c.
1372 * config/posix/sem.h: Rename from sys-sem.h.
1373 * config/posix/proc.c: Rename from sys-proc.c.
1374 * config/posix/time.c: Rename from sys-proc.c.
1376 * config/linux/mutex.c: New file.
1377 * config/linux/mutex.h: New file.
1378 * config/linux/sem.c: New file.
1379 * config/linux/sem.h: New file.
1380 * config/linux/i486/futex.h: New file.
1381 * config/linux/x86_64/futex.h: New file.
1383 2005-05-04 Richard Henderson <rth@redhat.com>
1385 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1386 * libgomp.h: Declare them.
1387 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1388 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1390 2005-05-04 Richard Henderson <rth@redhat.com>
1392 * libgomp-1 code drop
1394 2005-05-04 Richard Henderson <rth@redhat.com>
1396 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1397 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1398 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1399 (gomp_iter_static_next): Update.
1400 (gomp_ordered_static_next): Update.
1401 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1402 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1403 totally empty range.
1404 (gomp_loop_ordered_static_next): Refine test for calling
1405 gomp_ordered_static_next.
1406 * testsuite/ordered-1.c: Add case for more threads than iterations.
1408 * iter.c (gomp_iter_runtime_next_locked): Remove.
1409 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1410 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1411 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1412 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1413 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1414 gomp_loop_ordered_guided_next): Downcase name, make static, add
1415 an external alias with the old name.
1416 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1417 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1418 switch and call one of the above static functions.
1419 * libgomp.h: Update.
1421 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1422 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1423 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1424 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1425 GOMP_loop_ordered_guided_start): Update to match.
1426 * sections.c (GOMP_sections_start): Likewise.
1427 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1429 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1430 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1431 Use bounds check instead of modulus.
1432 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1433 (gomp_ordered_last): Don't sync with ordered_owner here.
1434 (gomp_ordered_next): Likewise.
1435 (gomp_ordered_static_loop_next): Likewise.
1436 * loop.c, libgomp.h: Update to match.
1438 * libgomp.h (GOMP_barrier): Declare.
1440 * testsuite/barrier-1.c: New file.
1441 * testsuite/critical-1.c: New file.
1442 * testsuite/ordered-2.c: New file.
1443 * testsuite/ordered-1.c: New file.
1444 * testsuite/sections-1.c: New file.
1445 * testsuite/single-1.c: New file.
1446 * testsuite/Makefile (TESTS): Add them.
1448 2005-05-04 Richard Henderson <rth@redhat.com>
1450 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1451 * loop.c (GOMP_loop_static_start): If not the startup thread,
1452 acquire the mutex to wait for initialization complete.
1453 (GOMP_loop_ordered_static_start): Likewise.
1454 (GOMP_loop_ordered_runtime_start): Likewise.
1455 (GOMP_loop_ordered_static_first): Remove.
1456 (GOMP_loop_ordered_dynamic_first): Remove.
1457 (GOMP_loop_ordered_guided_first): Remove.
1458 (GOMP_loop_ordered_runtime_first): Remove.
1459 * ordered.c (gomp_ordered_loop_first): Post to own release when
1460 we're the first thread.
1461 (gomp_ordered_loop_last): Wait on release if not owner.
1462 (gomp_ordered_loop_next): Likewise.
1463 (gomp_ordered_static_loop_init): New.
1464 (gomp_ordered_static_loop_next): Use ordered_owner.
1465 (GOMP_ordered_start): Likewise.
1466 * work.c (gomp_new_work_share): Initialize ordered_owner.
1468 2005-05-03 Richard Henderson <rth@redhat.com>
1470 * Makefile (OPT): New.
1473 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1474 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1475 * libgomp.h, libgomp.map, NOTES: Update to match.
1477 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1478 Add initialized and thr members.
1479 (gomp_thread_start): Pause when initially spawned to wait for
1480 the whole team to be created.
1481 (gomp_team_start): Release team members at the end.
1483 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1484 (f_foo_1): Use GOMP_loop_end.
1485 (f_foo_2): Use GOMP_loop_end_nowait.
1487 * testsuite/loop-2.c: New file.
1488 * testsuite/Makefile (TESTS): Add it.
1490 2005-05-03 Richard Henderson <rth@redhat.com>
1492 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1493 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1494 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1497 * testsuite/Makefile: New file.
1498 * testsuite/loop-1.c: New file.
1500 2005-05-03 Richard Henderson <rth@redhat.com>
1502 Initial implementation and checkin.