1 2007-04-14 Steve Ellcey <sje@cup.hp.com>
3 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
4 * Makefile.in: Regenerate.
6 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11 * testsuite/libgomp.fortran/fortran.exp: Likewise.
13 2007-04-04 Jakub Jelinek <jakub@redhat.com>
15 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
17 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19 (parse_affinity): New function.
20 (initialize_env): Call it and gomp_init_affinity.
21 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
22 create new pthread_attr_t and call gomp_init_thread_affinity
23 on it for each thread before passing the attribute to pthread_create.
24 * config/linux/affinity.c: New file.
25 * config/posix/affinity.c: New file.
26 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
28 * config.h.in: Rebuilt.
29 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
30 * Makefile.in: Rebuilt.
32 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
34 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
36 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
39 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
41 * testsuite/config/default.exp: New file.
42 * testsuite/lib/libgomp.exp: New file.
43 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
44 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
45 load_lib *, load_gcc_lib *): Move to libgomp.exp.
46 (libgomp_load): Remove.
47 * testsuite/lib/libgomp.exp (libgomp_init): Compute
48 always_ld_library_path, not ld_library_path. Set additional_flags
49 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
50 (target_compile): Do not call libgomp_init. Append lang_library_path
51 and lang_link_flags to options.
52 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
53 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
55 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
56 always_ld_library_path. Set LD_LIBRARY_PATH here.
57 * testsuite/libgomp.fortran/fortran.exp: Ditto.
58 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
59 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
61 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
62 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
63 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
64 * testsuite/libgomp.c/pr29947-1.c: Ditto.
65 * testsuite/libgomp.c/atomic-10.c: Ditto.
67 2007-03-21 Jakub Jelinek <jakub@redhat.com>
69 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
70 dg-final cleanup-modules line.
71 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
72 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
73 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
74 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
75 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
76 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
77 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
79 2007-03-18 Andreas Schwab <schwab@suse.de>
81 * acinclude.m4: Adjust regular expression for ld version
83 * configure: Regenerate.
85 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
87 * Makefile.am: Add install-pdf target as copied from
89 * Makefile.in: Regenerate
91 2007-02-07 Jakub Jelinek <jakub@redhat.com>
94 * configure: Regenerate.
97 * testsuite/libgomp.c++/pr30703.C: New test.
99 2007-02-02 Jakub Jelinek <jakub@redhat.com>
102 2006-07-05 Eric Christopher <echristo@apple.com>
103 * configure.ac: Depend addition of -pthread on host OS.
104 * configure: Regenerate.
106 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
108 * libgomp.texi: Fix spacing after abbreviations.
110 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
113 * configure.ac: Add check for makeinfo
114 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
115 if an appropiate version of makeinfo is found.
116 * aclocal.m4: Regenerated.
117 * configure: Regenerated.
118 * Makefile.in: Regenerated.
119 * testsuite/Makefile.in: Regenerated.
121 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
124 * libgomp.texi: More about implementation-dependent settings.
126 2007-01-26 Tobias Burnus <burnus@net-b.de>
128 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
130 2007-01-24 Jakub Jelinek <jakub@redhat.com>
133 * testsuite/libgomp.c/pr30494.c: New test.
135 2007-01-15 Tom Tromey <tromey@redhat.com>
137 * configure: Rebuilt.
138 * configure.ac: Fixed comment.
140 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
142 * libgomp.texi: Document implementation specific default values of
143 environment variables.
145 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
148 * libgomp.texi: New file.
149 * configure.ac: Add --enable-generated-files-in-srcdir option.
150 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
152 * Makefile.in: Regenerated.
153 * config.h.in: Regenerated.
154 * testsuite/Makefile.in: Regenerated.
157 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
160 * env.c (omp_set_num_threads): Set illegal thread count to 1.
162 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
164 * configure: Regenerate.
166 2006-12-04 Jakub Jelinek <jakub@redhat.com>
169 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
170 start if there shouldn't be any loop iterations.
171 (gomp_loop_ordered_static_start): Remove start == end test.
172 * testsuite/libgomp.c/pr29947-1.c: New test.
173 * testsuite/libgomp.c/pr29947-2.c: New test.
175 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
177 * configure.tgt: Force initial-exec TLS model on Linux only.
179 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
181 * configure: Regenerated.
183 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
185 * env.c (parse_schedule): Reject out of range values.
186 (parse_unsigned_long): Reject out of range, negative or zero values.
188 2006-10-29 Jakub Jelinek <jakub@redhat.com>
191 * testsuite/libgomp.fortran/pr29629.f90: New test.
193 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
196 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
197 * config/posix95: New directory.
198 * config/posix95/omp-lock.h: New file.
199 * config/posix95/lock.c: Likewise.
201 2006-10-14 Geoffrey Keating <geoffk@apple.com>
203 * aclocal.m4: Regenerate.
204 * configure: Regenerate.
206 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
208 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
211 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
213 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
215 * configure: Regenerate.
216 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
218 2006-09-26 Jakub Jelinek <jakub@redhat.com>
222 * testsuite/libgomp.c/nestedfn-4.c: New test.
223 * testsuite/libgomp.c/nestedfn-5.c: New test.
224 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
227 * testsuite/libgomp.fortran/condinc1.f: New test.
228 * testsuite/libgomp.fortran/condinc2.f: New test.
229 * testsuite/libgomp.fortran/condinc3.f90: New test.
230 * testsuite/libgomp.fortran/condinc4.f90: New test.
231 * testsuite/libgomp.fortran/condinc1.inc: New file.
233 2006-09-18 Tom Tromey <tromey@redhat.com>
235 * configure: Rebuilt.
237 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
240 PR preprocessor/14634
241 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
243 * configure: Regenerate.
245 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
247 * testsuite/libgomp.fortran/reduction3.f90: Change
248 -2147483648 to -huge(i)-1 to avoid overflow.
249 * testsuite/libgomp.fortran/reduction4.f90: Change
250 Z'ffffffff' to not(0) to avoid overflow.
252 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
255 * Makefile.am (libsubincludedir): New.
256 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
257 * Makefile.in: Regenerate.
259 2006-08-17 Jakub Jelinek <jakub@redhat.com>
262 * env.c: Include ctype.h.
263 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
264 leading and/or trailing whitespace and compare strings case
267 2006-07-16 Jakub Jelinek <jakub@redhat.com>
270 * testsuite/libgomp.fortran/pr28390.f: New test.
272 2006-07-05 Eric Christopher <echristo@apple.com>
274 * configure.ac: Depend addition of -pthread on host OS.
275 * configure: Regenerate.
277 2006-06-21 Jakub Jelinek <jakub@redhat.com>
279 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
280 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
283 2006-06-20 Jakub Jelinek <jakub@redhat.com>
287 * configure.ac: If neither --enable-linux-futex nor
288 --disable-linux-futex is passed, determine the default by checking
289 for compiling and/or running against NPTL. With --enable-linux-futex,
290 check if SYS_gettid and SYS_futex are defined.
291 * configure: Rebuilt.
293 2006-06-14 Richard Henderson <rth@redhat.com>
296 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
297 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
299 2006-06-09 Richard Henderson <rth@redhat.com>
301 * env.c (gomp_nthreads_var): Change to unsigned long.
302 (gomp_run_sched_chunk): Likewise.
303 (parse_unsigned_long): Rename from parse_num_threads and generalize.
304 (initialize_env): Initialize gomp_thread_attr.
305 * libgomp.h (gomp_nthreads_var): Update decl.
306 (gomp_run_sched_chunk): Likewise.
307 (gomp_thread_attr): Declare.
308 * team.c (gomp_thread_attr): Export.
309 (initialize_team): Don't initialize it.
311 2006-06-09 Jakub Jelinek <jakub@redhat.com>
314 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
315 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
317 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
319 * config/mingw32/time.c: New file.
320 * configure.tgt: Use it.
322 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
324 * Makefile.am: Add install-html target. Add install-html to .PHONY
325 * Makefile.in: Regenerate.
327 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
330 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
331 * testsuite/libgomp.c/critical-1.c: Likewise.
332 * testsuite/libgomp.c/loop-1.c: Likewise.
333 * testsuite/libgomp.c/loop-2.c: Likewise.
334 * testsuite/libgomp.c/single-1.c: Likewise.
335 * testsuite/libgomp.c/ordered-1.c: Likewise.
336 * testsuite/libgomp.c/ordered-2.c: Likewise.
338 2006-05-15 Jakub Jelinek <jakub@redhat.com>
341 * libgomp.fortran/pr27416-1.f90: New test.
343 2006-05-03 Jakub Jelinek <jakub@redhat.com>
346 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
347 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
349 2006-05-02 Jakub Jelinek <jakub@redhat.com>
352 * testsuite/libgomp.c/pr26943-1.c: New test.
353 * testsuite/libgomp.c/pr26943-2.c: New test.
354 * testsuite/libgomp.c/pr26943-3.c: New test.
355 * testsuite/libgomp.c/pr26943-4.c: New test.
356 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
357 * testsuite/libgomp.c++/pr26943.C: New test.
359 2006-05-02 Jakub Jelinek <jakub@redhat.com>
362 * testsuite/libgomp.c++/pr27337.C: New test.
364 2006-04-26 Jakub Jelinek <jakub@redhat.com>
367 * testsuite/libgomp.c/pr26171.c: New test.
369 2006-04-25 Richard Henderson <rth@redhat.com>
372 * configure.ac: Use GCC_CHECK_TLS.
373 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
374 * Makefile.in, aclocal.m4, configure: Regenerate.
376 2006-04-10 Matthias Klose <doko@debian.org>
378 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
379 directory names containing underscores.
381 2006-03-21 Jakub Jelinek <jakub@redhat.com>
384 * testsuite/libgomp.c++/pr26691.C: New test.
386 2006-03-13 Jakub Jelinek <jakub@redhat.com>
388 * testsuite/libgomp.fortran/retval2.f90: New test.
390 2006-03-09 Diego Novillo <dnovillo@redhat.com>
392 * testsuite/libgomp.c++: New directory.
394 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
396 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
397 * config/posix/sem.c: Implement the above.
399 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
401 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
402 define HAVE_BROKEN_POSIX_SEMAPHORES.
403 * configure: Rebuilt.
404 * config.h.in: Rebuilt.
406 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
409 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
410 for the other pthread check.
411 * configure: Regenerate.
412 * config.h.in: Regenerate.
414 2006-02-15 Jakub Jelinek <jakub@redhat.com>
418 * Makefile.am (fincludedir): New variable.
419 (nodist_include_HEADERS): Remove Fortran files.
420 (nodist_finclude_HEADERS): New variable.
421 * Makefile.in: Regenerated.
423 2006-02-13 Jakub Jelinek <jakub@redhat.com>
425 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
426 Remove tests for returning assumed character length arrays.
428 2006-02-12 Roger Sayle <roger@eyesopen.com>
429 John David Anglin <dave@hiauly1.hia.nrc.ca>
432 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
434 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
436 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
438 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
440 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
441 part of LD_LIBRARY_PATH manually.
443 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
446 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
449 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
452 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
453 * configure.ac (PERL): Don't set.
454 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
455 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
456 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
457 * omp.h.in: Wrap the new configure substitutions with @ characters.
458 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
459 * aclocal.m4, configure, Makefile.in: Regenerate.
460 * mkomp_h.pl: Delete.
462 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
465 * configure.ac: Use GCC_HEADER_STDINT.
466 * libgomp.h: Include gstdint.h.
467 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
468 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
470 2006-01-24 Richard Henderson <rth@redhat.com>
473 * configure.ac: Add AM_MAINTAINER_MODE.
474 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
476 2006-01-24 Diego Novillo <dnovillo@redhat.com>
478 * Makefile.in: Regenerate.
479 * testsuite/Makefile.in: Regenerate.
480 * aclocal.m4: Regenerate.
482 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
484 * config/posix/proc.c: Conditional include of sys/loadavg.h for
486 * configure.ac: Add check for loadavg.h.
487 (link_gomp): Adjust comment.
488 * configure: Regenerate.
489 * config.h.in: Regenerate.
491 2006-01-21 Steve Ellcey <sje@cup.hp.com>
494 * configure.ac: Remove check for alloca.h.
495 * configure: Regenerate.
496 * config.h.in: Regenerate.
497 * libgomp.h: define gomp_alloca to be __builtin_alloca.
498 * team.c: Remove use of alloca.h.
499 Call gomp_alloca instead of alloca.
501 2006-01-20 Steve Ellcey <sje@cup.hp.com>
504 * team.c: Add include of alloca.h.
505 * configure.ac: Add check for alloca.h.
506 * configure: Regenerate.
507 * config.h.in: Regenerate.
509 2006-01-17 Jakub Jelinek <jakub@redhat.com>
512 * testsuite/libgomp.fortran/pr25219.f90: New test.
514 2005-12-05 Uros Bizjak <uros@kss-loka.si>
516 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
517 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
518 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
519 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
520 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
521 testsuite/libgomp.fortran/threadprivate1.f90,
522 testsuite/libgomp.fortran/threadprivate2.f90,
523 testsuite/libgomp.fortran/threadprivate3.f90,
524 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
525 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
526 testsuite/libgomp.fortran/omp_parse3.f90: Change required
527 effective-target to TLS runtime.
529 * testsuite/libgomp.fortran/pr25162.f: Require
530 effective-target TLS runtime.
532 2005-12-01 Jakub Jelinek <jakub@redhat.com>
534 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
535 * testsuite/libgomp.c/nestedfn-3.c: New test.
537 2005-11-30 Jakub Jelinek <jakub@redhat.com>
540 * testsuite/libgomp.fortran/pr25162.f: New test.
542 2005-11-28 Jakub Jelinek <jakub@redhat.com>
544 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
545 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
547 2005-11-25 Jakub Jelinek <jakub@redhat.com>
549 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
550 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
551 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
552 single.c, team.c, work.c, config/linux/alpha/futex.h,
553 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
554 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
555 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
556 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
557 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
558 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
559 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
562 2005-11-18 Jakub Jelinek <jakub@redhat.com>
564 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
565 to nodist_noinst_HEADERS.
566 * Makefile.in: Rebuilt.
568 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
569 add integer count field.
570 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
571 omp_nest_lock_t type change.
572 (omp_init_nest_lock): Likewise. Initialize count to 0.
573 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
575 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
577 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
578 Increment count if successful and return the new nesting level.
579 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
580 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
581 * testsuite/libgomp.c/lib-1.c: New test.
582 * testsuite/libgomp.fortran/lib1.f90: New test.
583 * testsuite/libgomp.fortran/lib2.f: New test.
584 * testsuite/libgomp.fortran/lib3.f: New test.
586 2005-11-17 Richard Henderson <rth@redhat.com>
589 * Makefile.am (nodist_toolexeclib_HEADERS): New.
590 * configure.ac (link_gomp): New. Substitute it.
591 (AC_CONFIG_FILES): Add libgomp.spec.
592 * libgomp.spec.in: New file.
593 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
594 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
596 2005-11-18 Jakub Jelinek <jakub@redhat.com>
598 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
599 reduction(-:var) behaving the same as reduction(+:var).
600 * testsuite/libgomp.c/reduction-4.c: New test.
602 2005-11-15 Uros Bizjak <uros@kss-loka.si>
604 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
605 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
606 testsuite/libgomp.c/copyin-3.c,
607 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
608 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
609 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
610 testsuite/libgomp.c++/pr24455.C,
611 testsuite/libgomp.fortran/threadprivate1.f90,
612 testsuite/libgomp.fortran/threadprivate2.f90,
613 testsuite/libgomp.fortran/threadprivate3.f90,
614 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
615 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
616 testsuite/libgomp.fortran/omp_parse3.f90: Require
617 effective-target TLS.
619 2005-11-14 Diego Novillo <dnovillo@redhat.com>
623 2005-11-13 Jakub Jelinek <jakub@redhat.com>
626 * team.c (initialize_team): Pass NULL rather than free as
627 pthread_key_create destructor. Initialize thread specific data
628 pointer in initial thread to a static local variable rather than
631 2005-11-11 Uros Bizjak <uros@kss-loka.si>
633 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
634 its location to ld_library_path.
636 2005-11-10 Diego Novillo <dnovillo@redhat.com>
638 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
640 2005-11-10 Diego Novillo <dnovillo@redhat.com>
642 * testsuite/libgomp.c: Rename from libgomp.dg.
644 2005-11-09 Diego Novillo <dnovillo@redhat.com>
646 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
647 threadprivate variable 'i'.
649 2005-11-09 Jakub Jelinek <jakub@redhat.com>
651 * config/linux/s390/futex.h: New file.
652 * configure.tgt: Use it.
654 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
657 2005-11-08 Jakub Jelinek <jakub@redhat.com>
660 * testsuite/libgomp.c++/master-1.C: New test.
662 2005-11-07 Jakub Jelinek <jakub@redhat.com>
664 * testsuite/libgomp.dg/copyin-3.c: New test.
666 2005-11-07 Jakub Jelinek <jakub@redhat.com>
668 * testsuite/libgomp.fortran/retval1.f90: New test.
669 * testsuite/libgomp.fortran/vla7.f90: New test.
671 2005-11-06 Jakub Jelinek <jakub@redhat.com>
673 * testsuite/libgomp.fortran/vla2.f90: New test.
674 * testsuite/libgomp.fortran/vla3.f90: New test.
675 * testsuite/libgomp.fortran/vla4.f90: New test.
676 * testsuite/libgomp.fortran/vla5.f90: New test.
677 * testsuite/libgomp.fortran/vla6.f90: New test.
679 2005-11-01 Jakub Jelinek <jakub@redhat.com>
681 * config/linux/sparc/futex.h: New file.
682 * configure.tgt: Use it.
683 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
685 * critical.c: Include stdlib.h.
686 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
687 ignoring return value.
688 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
689 LIBGOMP_CHECK_SYNC_BUILTINS check.
690 * configure: Rebuilt.
692 2005-10-31 Jakub Jelinek <jakub@redhat.com>
694 * testsuite/libgomp.fortran/vla1.f90: New test.
696 2005-10-31 Richard Henderson <rth@redhat.com>
698 * testsuite/libgomp.fortran/character2.f90: Fix race condition
699 setting 's' in different threads.
701 2005-10-31 Jakub Jelinek <jakub@redhat.com>
703 * libgomp.h (attribute_hidden, ialias): Define.
704 * config/posix/proc.c (omp_get_num_procs): Add ialias.
705 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
706 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
707 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
708 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
709 omp_test_lock, omp_test_nest_lock): Likewise.
710 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
711 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
712 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
713 omp_test_lock, omp_test_nest_lock): Likewise.
714 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
715 omp_get_dynamic, omp_get_nested): Likewise.
716 * parallel.c (omp_get_num_threads, omp_get_max_threads,
717 omp_get_thread_num, omp_in_parallel): Likewise.
718 * fortran.c (ialias_redirect): Define.
719 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
720 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
721 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
722 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
723 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
724 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
725 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
726 omp_get_wtime): Add ialias_redirect.
728 2005-10-30 Jakub Jelinek <jakub@redhat.com>
730 * fortran.c: Include stdlib.h.
732 2005-10-29 Jakub Jelinek <jakub@redhat.com>
734 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
735 * Makefile.in: Regenerated.
737 2005-10-28 Jakub Jelinek <jakub@redhat.com>
739 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
740 * libgomp_f.h.in (omp_check_defines): New function.
741 * env.c: Include libgomp_f.h.
742 (initialize_env): Call omp_check_defines.
744 * testsuite/libgomp.dg/copyin-2.c: New test.
745 * testsuite/libgomp.c++/copyin-2.C: New test.
746 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
748 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
749 * testsuite/libgomp.fortran/sharing2.f90: New test.
751 * testsuite/libgomp.dg/copyin-1.c: New test.
752 * testsuite/libgomp.c++/copyin-1.C: New test.
754 2005-10-26 Jakub Jelinek <jakub@redhat.com>
756 * testsuite/libgomp.fortran/crayptr1.f90: New test.
758 * testsuite/libgomp.fortran/workshare1.f90: New test.
760 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
762 * libgomp.fortran/sharing1.f90: New test.
764 2005-10-24 Jakub Jelinek <jakub@redhat.com>
767 * testsuite/libgomp.c++/loop-7.C: New test.
769 * testsuite/libgomp.dg/nestedfn-2.c: New test.
771 * testsuite/libgomp.dg/nestedfn-1.c: New test.
772 * testsuite/libgomp.fortran/reduction6.f90: New test.
773 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
775 2005-10-23 Richard Henderson <rth@redhat.com>
777 * testsuite/libgomp.c++/ctor-1.C: New.
778 * testsuite/libgomp.c++/ctor-2.C: New.
779 * testsuite/libgomp.c++/ctor-3.C: New.
780 * testsuite/libgomp.c++/ctor-4.C: New.
781 * testsuite/libgomp.c++/ctor-5.C: New.
782 * testsuite/libgomp.c++/ctor-6.C: New.
783 * testsuite/libgomp.c++/ctor-7.C: New.
784 * testsuite/libgomp.c++/ctor-8.C: New.
785 * testsuite/libgomp.c++/ctor-9.C: New.
787 2005-10-21 Diego Novillo <dnovillo@redhat.com>
790 * testsuite/libgomp.c++/pr24455-1.C: New test.
791 * testsuite/libgomp.c++/pr24455.C: New test.
792 * testsuite/libgomp.dg/pr24455-1.c: New test.
793 * testsuite/libgomp.dg/pr24455.c: New test.
795 2005-10-20 Richard Henderson <rth@redhat.com>
797 * testsuite/libgomp.c++/loop-6.C: New.
798 * testsuite/libgomp.dg/loop-3.c: New.
800 2005-10-20 Jakub Jelinek <jakub@redhat.com>
802 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
804 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
807 2005-10-19 Diego Novillo <dnovillo@redhat.com>
809 * testsuite/libgomp.fortran/jacobi.f: New test.
811 2005-10-19 Richard Henderson <rth@redhat.com>
813 * configure.tgt (i?86-linux): Default to with_arch instead of
814 CFLAGS. Add -mtune to match target_cpu.
815 (x86_64-linux): Tune to i686.
817 * fortran.c (omp_test_nest_lock_): Fix typo.
819 2005-10-19 Jakub Jelinek <jakub@redhat.com>
821 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
822 gomp_ordered_sync): Do nothing if team->nthreads == 1.
823 * testsuite/libgomp.dg/ordered-3.c: New test.
825 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
826 Remove volatile keyword.
828 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
829 in COMMON block to avoid warnings on 64-bit targets.
831 2005-10-18 Diego Novillo <dnovillo@redhat.com>
833 * testsuite/libgomp.dg/shared-3.c: New test.
835 2005-10-18 Jakub Jelinek <jakub@redhat.com>
837 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
838 * testsuite/libgomp.fortran/reduction5.f90: New test.
840 2005-10-18 Jakub Jelinek <jakub@redhat.com>
842 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
844 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
845 flush loop now that __sync_synchronize has proper memory barrier.
846 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
847 Add -ffixed-form to dg-options.
849 2005-10-17 Diego Novillo <dnovillo@redhat.com>
851 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
853 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
854 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
855 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
856 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
857 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
858 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
859 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
860 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
861 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
862 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
863 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
864 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
865 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
866 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
867 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
868 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
869 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
870 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
871 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
872 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
873 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
874 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
875 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
876 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
877 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
879 2005-10-17 Jakub Jelinek <jakub@redhat.com>
881 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
882 lang_library_path exists. Use find instead of glob to gather tests.
883 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
885 2005-10-17 Diego Novillo <dnovillo@redhat.com>
887 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
888 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
889 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
890 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
891 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
892 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
893 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
894 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
895 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
896 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
897 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
898 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
899 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
901 2005-10-15 Jakub Jelinek <jakub@redhat.com>
903 * testsuite/libgomp.dg/vla-1.c: New test.
905 * testsuite/libgomp.fortran/reference2.f90: New test.
907 * testsuite/libgomp.fortran/character2.f90: Remove explicit
908 declaration of omp_get_thread_num.
909 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
912 * testsuite/libgomp.fortran/reduction1.f90: New test.
913 * testsuite/libgomp.fortran/reduction2.f90: New test.
914 * testsuite/libgomp.fortran/reduction3.f90: New test.
915 * testsuite/libgomp.fortran/reduction4.f90: New test.
917 2005-10-13 Richard Henderson <rth@redhat.com>
919 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
920 * Makefile.in: Regenerate.
921 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
922 * libgomp.h: Include bar.h.
923 (struct gomp_barrier): Remove.
924 (struct gomp_team): Add barrier. Replace master_barrier with
925 master_release. Replace threads with ordered_release.
926 (struct gomp_thread): Replace barrier with release.
927 * ordered.c (gomp_ordered_first): Update for ordered_release change.
928 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
929 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
930 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
931 (GOMP_single_copy_end): Likewise.
932 * team.c (gomp_threads_dock): New.
933 (gomp_barrier_init, gomp_barrier_destroy): Remove.
934 (gomp_thread_start): Use gomp_barrier_wait.
935 (new_team, free_team): Update for gomp_team changes.
936 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
937 (gomp_team_end): Use gomp_barrier_wait.
938 (initialize_team): Update for gomp_thread changes.
939 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
940 (gomp_work_share_end_nowait): Use atomic ops when available.
941 * config/linux/bar.c, config/linux/bar.h: New files.
942 * config/posix/bar.c, config/posix/bar.h: New files.
944 2005-10-13 Jakub Jelinek <jakub@redhat.com>
946 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
947 * testsuite/libgomp.dg/single-2.c: New test.
949 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
950 lang_link_flags): Unset, so that they aren't inherited from previously
953 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
955 2005-10-12 Richard Henderson <rth@redhat.com>
957 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
958 (libgomp_init): Use lang_test_file, lang_library_path, and
959 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
961 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
962 (lang_test_file, lang_link_flags): New.
963 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
965 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
966 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
967 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
968 testsuite/libgomp.c++/parallel-1.C,
969 testsuite/libgomp.c++/reduction-1.C,
970 testsuite/libgomp.c++/reduction-2.C,
971 testsuite/libgomp.c++/reduction-3.C,
972 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
973 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
974 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
975 New files, largely cribbed from the C testsuite.
977 2005-10-12 Jakub Jelinek <jakub@redhat.com>
979 * testsuite/libgomp.fortran/character1.f90: New test.
980 * testsuite/libgomp.fortran/character2.f90: New test.
982 * testsuite/libgomp.dg/nested-1.c: New test.
983 * testsuite/libgomp.dg/nested-2.c: New test.
984 * testsuite/libgomp.fortran/do1.f90: New test.
985 * testsuite/libgomp.fortran/do2.f90: New test.
987 * testsuite/libgomp.fortran/reference1.f90: New test.
989 2005-10-11 Jakub Jelinek <jakub@redhat.com>
991 * testsuite/libgomp.dg/reduction-1.c: New test.
992 * testsuite/libgomp.dg/reduction-2.c: New test.
993 * testsuite/libgomp.dg/reduction-3.c: New test.
995 2005-10-10 Jakub Jelinek <jakub@redhat.com>
997 * testsuite/libgomp.dg/atomic-1.c: New test.
998 * testsuite/libgomp.dg/atomic-2.c: New test.
1000 2005-10-09 Richard Henderson <rth@redhat.com>
1002 * critical.c (atomic_lock): New.
1003 (initialize_critical): Initialize it.
1004 (GOMP_atomic_start, GOMP_atomic_end): New.
1005 * libgomp.map: Export them.
1006 * libgomp_g.h: Declare them.
1008 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1010 2005-10-02 Richard Henderson <rth@redhat.com>
1012 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1013 to XCFLAGS instead of CFLAGS.
1015 2005-09-30 Richard Henderson <rth@redhat.com>
1017 * configure.ac: Determine whether -pthread or -lpthread is needed.
1018 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1019 * Makefine.in, configure: Rebuild.
1021 2005-09-28 Richard Henderson <rth@redhat.com>
1023 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1024 * testsuite/libgomp.dg/omp-single-3.c: New test.
1026 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1028 * testsuite/libgomp.dg/omp-single-2.c: New test.
1029 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1031 2005-09-27 Richard Henderson <rth@redhat.com>
1033 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1034 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1036 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1038 * testsuite/libgomp.dg/omp-loop03.c: New test.
1040 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1042 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1044 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1046 * testsuite/libgomp.dg/omp-single-1.c: New test.
1047 * testsuite/libgomp.dg/shared-1.c: Return 0.
1048 Add prototype for abort.
1049 * testsuite/libgomp.dg/shared-2.c: Likewise.
1051 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1053 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1056 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1058 * testsuite/libgomp.dg/shared-1.c: New test.
1059 * testsuite/libgomp.dg/shared-2.c: New test.
1061 2005-09-24 Richard Henderson <rth@redhat.com>
1063 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1065 2005-09-24 Richard Henderson <rth@redhat.com>
1067 * iter.c (gomp_iter_static_next): Round up when computing number
1068 of iterations. Don't bother distributing a remainder equally.
1070 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1071 Don't call srand. Zero b before testing.
1074 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1076 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1077 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1079 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1081 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1082 without !$omp end do, followed immediately by subroutine end.
1084 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1086 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1088 2005-09-22 Richard Henderson <rth@redhat.com>
1090 * critical.c (GOMP_critical_name_start): Change argument to void**.
1091 Reuse the pointer space if the mutex fits.
1092 (GOMP_critical_name_end): Likewise.
1093 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1094 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1095 (GOMP_critical_name_end): Likewise.
1096 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1097 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1099 2005-09-20 Richard Henderson <rth@redhat.com>
1101 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1102 (create_lock_lock): New.
1103 (initialize_critical): Initialize it.
1104 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1105 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1107 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1109 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1111 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1113 * testsuite/libgomp.dg/omp-loop01.c: New test.
1114 * testsuite/libgomp.dg/omp-loop02.c: New test.
1116 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1118 * configure.ac (AC_PROG_FC): Add.
1119 (USE_FORTRAN): New automake conditional.
1120 * configure: Rebuilt.
1121 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1122 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1123 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1124 Add rules to build them.
1125 * Makefile.in: Rebuilt.
1126 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1128 * libgomp.map: Add Fortran wrappers.
1129 * libgomp_f.h.in: New file.
1130 * omp_lib.h.in: New file.
1131 * omp_lib.f90.in: New file.
1132 * fortran.c: New file.
1133 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1134 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1135 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1136 libgfortran has been built.
1137 * testsuite/libgomp.fortran/fortran.exp: New file.
1138 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1139 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1140 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1141 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1142 * testsuite/libgomp.fortran/omp_hello.f: New test.
1143 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1144 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1145 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1146 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1147 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1148 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1149 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1150 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1152 2005-08-30 Richard Henderson <rth@redhat.com>
1154 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1155 function for when aliases are not usable.
1156 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1157 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1158 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1159 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1160 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1161 GOMP_loop_ordered_guided_next): Likewise.
1162 * ordered.c (GOMP_ordered_start): Likewise.
1164 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1166 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1167 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1168 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1169 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1170 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1171 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1172 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1173 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1174 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1176 2005-07-07 Eric Christopher <echristo@redhat.com>
1177 Diego Novillo <dnovillo@redhat.com>
1179 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1180 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1182 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1183 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1184 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1185 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1186 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1187 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1188 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1190 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1192 * TOPLEVEL.patch: Remove.
1194 2005-05-16 Richard Henderson <rth@redhat.com>
1196 * configure.ac: Test for clock_gettime.
1197 * config.h.in, configure: Rebuild.
1198 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1199 (omp_get_wtime): Use clock_gettime if available.
1200 (omp_get_wtick): Use clock_getres if available.
1202 2005-05-11 Richard Henderson <rth@redhat.com>
1204 * config/linux/ia64/futex.h: New file.
1205 * configure.tgt: Use it.
1207 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1209 2005-05-07 Richard Henderson <rth@redhat.com>
1211 * config/linux/powerpc/futex.h: New file.
1212 * configure.tgt: Use it.
1214 * config/linux/i486/futex.h: Merge ...
1215 * config/linux/x86_64/futex.h: ... into ...
1216 * config/linux/x86/futex.h: ... here.
1217 * configure.tgt: Update to match.
1219 2005-05-06 Richard Henderson <rth@redhat.com>
1221 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1222 * config/linux/i486/futex.h: Likewise.
1223 * config/linux/x86_64/futex.h: Likewise.
1225 * config/linux/lock.c: New file.
1226 * config/linux/omp-lock.h: New file.
1228 * critical.c, env.h: Don't include omp.h
1229 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1230 * config/posix/time.c: Likewise.
1231 * config/posix/omp-lock.h: New file.
1232 * libgomp.h: Include omp-lock.h and omp.h.
1233 * Makefile.am (nodist_include_HEADERS): New.
1235 * configure.ac (PERL): New.
1236 * mkomp_h.pl: New file.
1237 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1239 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1241 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1242 build directory. Re-add -march=i486 hack.
1244 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1245 (libgomp_link_flags): Remove.
1246 (libgomp_initialized): Remove.
1247 (libgomp_init): Don't protect from reinitialization. Copy code
1248 from libstdc++ for getting the multilib set correctly.
1250 2005-05-05 Richard Henderson <rth@redhat.com>
1252 * config/linux/alpha/futex.h: New file.
1253 * configure.tgt (alpha*-*-linux*): Use it.
1255 * config/posix/mutex.c: New file.
1256 * config/posix/sem.c: Use libgomp.h.
1258 * configure.tgt (x86_64-linux): Also test CC for -m32.
1259 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1261 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1264 * Makefile.am (SUBDIRS): New.
1265 (libgomp_la_LDFLAGS): Add -lpthread.
1266 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1267 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1269 * libgomp_g.h: New file.
1270 * libgomp.h: Split out all public declarations to libgomp_g.h.
1271 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1272 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1273 * config/linux/sem.h: Likewise.
1274 * config/posix/sem.h: Likewise.
1276 * Makefile.am (AM_LDFLAGS): New.
1277 (libgomp_version_script): Split out from ...
1278 (libgomp_la_LDFLAGS): ... here.
1279 (libgomp_version_info): New.
1280 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1281 (LIBGOMP_ENABLE): New.
1282 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1283 (LIBGOMP_ENABLE_SYMVERS): New.
1284 * configure.ac (AC_INIT): Version 1.0.
1285 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1286 (enable-linux-futex): Likewise. Rename from enable-futex.
1287 (libtool_VERSION): New.
1288 (LIBGOMP_ENABLE_SYMVERS): Use it.
1289 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1290 * Makefile.in, aclocal.m4, configure: Rebuild.
1292 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1293 (gomp_mutex_unlock_slow): Fix typo.
1294 * config/linux/sem.c: Similarly.
1295 (gomp_sem_post_slow): Fix typo.
1296 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1297 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1298 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1300 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1301 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1302 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1303 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1304 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1305 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1306 LDFLAGS. Pull enable_futex check to top-level.
1307 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1308 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1310 First attempt at real configury.
1311 * Makefile, config.h: Remove file.
1312 * Makefile.am, Makefile.in: New file.
1313 * acinclude.m4 aclocal.m4: New file.
1314 * configure.ac, configure.tgt, configure: New file.
1316 * config/posix/lock.c: Rename from sys-lock.c.
1317 * config/posix/mutex.h: Rename from sys-mutex.h.
1318 * config/posix/sem.c: Rename from sys-sem.c.
1319 * config/posix/sem.h: Rename from sys-sem.h.
1320 * config/posix/proc.c: Rename from sys-proc.c.
1321 * config/posix/time.c: Rename from sys-proc.c.
1323 * config/linux/mutex.c: New file.
1324 * config/linux/mutex.h: New file.
1325 * config/linux/sem.c: New file.
1326 * config/linux/sem.h: New file.
1327 * config/linux/i486/futex.h: New file.
1328 * config/linux/x86_64/futex.h: New file.
1330 2005-05-04 Richard Henderson <rth@redhat.com>
1332 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1333 * libgomp.h: Declare them.
1334 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1335 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1337 2005-05-04 Richard Henderson <rth@redhat.com>
1339 * libgomp-1 code drop
1341 2005-05-04 Richard Henderson <rth@redhat.com>
1343 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1344 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1345 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1346 (gomp_iter_static_next): Update.
1347 (gomp_ordered_static_next): Update.
1348 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1349 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1350 totally empty range.
1351 (gomp_loop_ordered_static_next): Refine test for calling
1352 gomp_ordered_static_next.
1353 * testsuite/ordered-1.c: Add case for more threads than iterations.
1355 * iter.c (gomp_iter_runtime_next_locked): Remove.
1356 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1357 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1358 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1359 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1360 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1361 gomp_loop_ordered_guided_next): Downcase name, make static, add
1362 an external alias with the old name.
1363 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1364 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1365 switch and call one of the above static functions.
1366 * libgomp.h: Update.
1368 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1369 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1370 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1371 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1372 GOMP_loop_ordered_guided_start): Update to match.
1373 * sections.c (GOMP_sections_start): Likewise.
1374 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1376 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1377 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1378 Use bounds check instead of modulus.
1379 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1380 (gomp_ordered_last): Don't sync with ordered_owner here.
1381 (gomp_ordered_next): Likewise.
1382 (gomp_ordered_static_loop_next): Likewise.
1383 * loop.c, libgomp.h: Update to match.
1385 * libgomp.h (GOMP_barrier): Declare.
1387 * testsuite/barrier-1.c: New file.
1388 * testsuite/critical-1.c: New file.
1389 * testsuite/ordered-2.c: New file.
1390 * testsuite/ordered-1.c: New file.
1391 * testsuite/sections-1.c: New file.
1392 * testsuite/single-1.c: New file.
1393 * testsuite/Makefile (TESTS): Add them.
1395 2005-05-04 Richard Henderson <rth@redhat.com>
1397 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1398 * loop.c (GOMP_loop_static_start): If not the startup thread,
1399 acquire the mutex to wait for initialization complete.
1400 (GOMP_loop_ordered_static_start): Likewise.
1401 (GOMP_loop_ordered_runtime_start): Likewise.
1402 (GOMP_loop_ordered_static_first): Remove.
1403 (GOMP_loop_ordered_dynamic_first): Remove.
1404 (GOMP_loop_ordered_guided_first): Remove.
1405 (GOMP_loop_ordered_runtime_first): Remove.
1406 * ordered.c (gomp_ordered_loop_first): Post to own release when
1407 we're the first thread.
1408 (gomp_ordered_loop_last): Wait on release if not owner.
1409 (gomp_ordered_loop_next): Likewise.
1410 (gomp_ordered_static_loop_init): New.
1411 (gomp_ordered_static_loop_next): Use ordered_owner.
1412 (GOMP_ordered_start): Likewise.
1413 * work.c (gomp_new_work_share): Initialize ordered_owner.
1415 2005-05-03 Richard Henderson <rth@redhat.com>
1417 * Makefile (OPT): New.
1420 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1421 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1422 * libgomp.h, libgomp.map, NOTES: Update to match.
1424 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1425 Add initialized and thr members.
1426 (gomp_thread_start): Pause when initially spawned to wait for
1427 the whole team to be created.
1428 (gomp_team_start): Release team members at the end.
1430 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1431 (f_foo_1): Use GOMP_loop_end.
1432 (f_foo_2): Use GOMP_loop_end_nowait.
1434 * testsuite/loop-2.c: New file.
1435 * testsuite/Makefile (TESTS): Add it.
1437 2005-05-03 Richard Henderson <rth@redhat.com>
1439 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1440 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1441 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1444 * testsuite/Makefile: New file.
1445 * testsuite/loop-1.c: New file.
1447 2005-05-03 Richard Henderson <rth@redhat.com>
1449 Initial implementation and checkin.