1 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
3 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
5 2007-04-16 Matthias Klose <doko@debian.org>
7 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
8 flags if not building with -m64.
9 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
10 flag for i?86-*-* targets, if current target matches -m64.
12 2007-04-14 Steve Ellcey <sje@cup.hp.com>
14 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
15 * Makefile.in: Regenerate.
17 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
22 * testsuite/libgomp.fortran/fortran.exp: Likewise.
24 2007-04-04 Jakub Jelinek <jakub@redhat.com>
26 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
28 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
29 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
30 (parse_affinity): New function.
31 (initialize_env): Call it and gomp_init_affinity.
32 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
33 create new pthread_attr_t and call gomp_init_thread_affinity
34 on it for each thread before passing the attribute to pthread_create.
35 * config/linux/affinity.c: New file.
36 * config/posix/affinity.c: New file.
37 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
39 * config.h.in: Rebuilt.
40 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
41 * Makefile.in: Rebuilt.
43 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
45 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
47 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
50 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
52 * testsuite/config/default.exp: New file.
53 * testsuite/lib/libgomp.exp: New file.
54 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
55 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
56 load_lib *, load_gcc_lib *): Move to libgomp.exp.
57 (libgomp_load): Remove.
58 * testsuite/lib/libgomp.exp (libgomp_init): Compute
59 always_ld_library_path, not ld_library_path. Set additional_flags
60 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
61 (target_compile): Do not call libgomp_init. Append lang_library_path
62 and lang_link_flags to options.
63 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
64 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
66 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
67 always_ld_library_path. Set LD_LIBRARY_PATH here.
68 * testsuite/libgomp.fortran/fortran.exp: Ditto.
69 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
70 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
72 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
73 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
74 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
75 * testsuite/libgomp.c/pr29947-1.c: Ditto.
76 * testsuite/libgomp.c/atomic-10.c: Ditto.
78 2007-03-21 Jakub Jelinek <jakub@redhat.com>
80 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
81 dg-final cleanup-modules line.
82 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
83 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
84 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
85 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
86 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
87 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
88 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
90 2007-03-18 Andreas Schwab <schwab@suse.de>
92 * acinclude.m4: Adjust regular expression for ld version
94 * configure: Regenerate.
96 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
98 * Makefile.am: Add install-pdf target as copied from
100 * Makefile.in: Regenerate
102 2007-02-07 Jakub Jelinek <jakub@redhat.com>
105 * configure: Regenerate.
108 * testsuite/libgomp.c++/pr30703.C: New test.
110 2007-02-02 Jakub Jelinek <jakub@redhat.com>
113 2006-07-05 Eric Christopher <echristo@apple.com>
114 * configure.ac: Depend addition of -pthread on host OS.
115 * configure: Regenerate.
117 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
119 * libgomp.texi: Fix spacing after abbreviations.
121 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
124 * configure.ac: Add check for makeinfo
125 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
126 if an appropiate version of makeinfo is found.
127 * aclocal.m4: Regenerated.
128 * configure: Regenerated.
129 * Makefile.in: Regenerated.
130 * testsuite/Makefile.in: Regenerated.
132 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
135 * libgomp.texi: More about implementation-dependent settings.
137 2007-01-26 Tobias Burnus <burnus@net-b.de>
139 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
141 2007-01-24 Jakub Jelinek <jakub@redhat.com>
144 * testsuite/libgomp.c/pr30494.c: New test.
146 2007-01-15 Tom Tromey <tromey@redhat.com>
148 * configure: Rebuilt.
149 * configure.ac: Fixed comment.
151 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
153 * libgomp.texi: Document implementation specific default values of
154 environment variables.
156 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
159 * libgomp.texi: New file.
160 * configure.ac: Add --enable-generated-files-in-srcdir option.
161 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
163 * Makefile.in: Regenerated.
164 * config.h.in: Regenerated.
165 * testsuite/Makefile.in: Regenerated.
168 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
171 * env.c (omp_set_num_threads): Set illegal thread count to 1.
173 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
175 * configure: Regenerate.
177 2006-12-04 Jakub Jelinek <jakub@redhat.com>
180 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
181 start if there shouldn't be any loop iterations.
182 (gomp_loop_ordered_static_start): Remove start == end test.
183 * testsuite/libgomp.c/pr29947-1.c: New test.
184 * testsuite/libgomp.c/pr29947-2.c: New test.
186 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
188 * configure.tgt: Force initial-exec TLS model on Linux only.
190 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
192 * configure: Regenerated.
194 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
196 * env.c (parse_schedule): Reject out of range values.
197 (parse_unsigned_long): Reject out of range, negative or zero values.
199 2006-10-29 Jakub Jelinek <jakub@redhat.com>
202 * testsuite/libgomp.fortran/pr29629.f90: New test.
204 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
207 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
208 * config/posix95: New directory.
209 * config/posix95/omp-lock.h: New file.
210 * config/posix95/lock.c: Likewise.
212 2006-10-14 Geoffrey Keating <geoffk@apple.com>
214 * aclocal.m4: Regenerate.
215 * configure: Regenerate.
217 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
219 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
222 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
224 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
226 * configure: Regenerate.
227 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
229 2006-09-26 Jakub Jelinek <jakub@redhat.com>
233 * testsuite/libgomp.c/nestedfn-4.c: New test.
234 * testsuite/libgomp.c/nestedfn-5.c: New test.
235 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
238 * testsuite/libgomp.fortran/condinc1.f: New test.
239 * testsuite/libgomp.fortran/condinc2.f: New test.
240 * testsuite/libgomp.fortran/condinc3.f90: New test.
241 * testsuite/libgomp.fortran/condinc4.f90: New test.
242 * testsuite/libgomp.fortran/condinc1.inc: New file.
244 2006-09-18 Tom Tromey <tromey@redhat.com>
246 * configure: Rebuilt.
248 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
251 PR preprocessor/14634
252 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
254 * configure: Regenerate.
256 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
258 * testsuite/libgomp.fortran/reduction3.f90: Change
259 -2147483648 to -huge(i)-1 to avoid overflow.
260 * testsuite/libgomp.fortran/reduction4.f90: Change
261 Z'ffffffff' to not(0) to avoid overflow.
263 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
266 * Makefile.am (libsubincludedir): New.
267 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
268 * Makefile.in: Regenerate.
270 2006-08-17 Jakub Jelinek <jakub@redhat.com>
273 * env.c: Include ctype.h.
274 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
275 leading and/or trailing whitespace and compare strings case
278 2006-07-16 Jakub Jelinek <jakub@redhat.com>
281 * testsuite/libgomp.fortran/pr28390.f: New test.
283 2006-07-05 Eric Christopher <echristo@apple.com>
285 * configure.ac: Depend addition of -pthread on host OS.
286 * configure: Regenerate.
288 2006-06-21 Jakub Jelinek <jakub@redhat.com>
290 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
291 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
294 2006-06-20 Jakub Jelinek <jakub@redhat.com>
298 * configure.ac: If neither --enable-linux-futex nor
299 --disable-linux-futex is passed, determine the default by checking
300 for compiling and/or running against NPTL. With --enable-linux-futex,
301 check if SYS_gettid and SYS_futex are defined.
302 * configure: Rebuilt.
304 2006-06-14 Richard Henderson <rth@redhat.com>
307 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
308 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
310 2006-06-09 Richard Henderson <rth@redhat.com>
312 * env.c (gomp_nthreads_var): Change to unsigned long.
313 (gomp_run_sched_chunk): Likewise.
314 (parse_unsigned_long): Rename from parse_num_threads and generalize.
315 (initialize_env): Initialize gomp_thread_attr.
316 * libgomp.h (gomp_nthreads_var): Update decl.
317 (gomp_run_sched_chunk): Likewise.
318 (gomp_thread_attr): Declare.
319 * team.c (gomp_thread_attr): Export.
320 (initialize_team): Don't initialize it.
322 2006-06-09 Jakub Jelinek <jakub@redhat.com>
325 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
326 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
328 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
330 * config/mingw32/time.c: New file.
331 * configure.tgt: Use it.
333 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
335 * Makefile.am: Add install-html target. Add install-html to .PHONY
336 * Makefile.in: Regenerate.
338 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
341 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
342 * testsuite/libgomp.c/critical-1.c: Likewise.
343 * testsuite/libgomp.c/loop-1.c: Likewise.
344 * testsuite/libgomp.c/loop-2.c: Likewise.
345 * testsuite/libgomp.c/single-1.c: Likewise.
346 * testsuite/libgomp.c/ordered-1.c: Likewise.
347 * testsuite/libgomp.c/ordered-2.c: Likewise.
349 2006-05-15 Jakub Jelinek <jakub@redhat.com>
352 * libgomp.fortran/pr27416-1.f90: New test.
354 2006-05-03 Jakub Jelinek <jakub@redhat.com>
357 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
358 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
360 2006-05-02 Jakub Jelinek <jakub@redhat.com>
363 * testsuite/libgomp.c/pr26943-1.c: New test.
364 * testsuite/libgomp.c/pr26943-2.c: New test.
365 * testsuite/libgomp.c/pr26943-3.c: New test.
366 * testsuite/libgomp.c/pr26943-4.c: New test.
367 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
368 * testsuite/libgomp.c++/pr26943.C: New test.
370 2006-05-02 Jakub Jelinek <jakub@redhat.com>
373 * testsuite/libgomp.c++/pr27337.C: New test.
375 2006-04-26 Jakub Jelinek <jakub@redhat.com>
378 * testsuite/libgomp.c/pr26171.c: New test.
380 2006-04-25 Richard Henderson <rth@redhat.com>
383 * configure.ac: Use GCC_CHECK_TLS.
384 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
385 * Makefile.in, aclocal.m4, configure: Regenerate.
387 2006-04-10 Matthias Klose <doko@debian.org>
389 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
390 directory names containing underscores.
392 2006-03-21 Jakub Jelinek <jakub@redhat.com>
395 * testsuite/libgomp.c++/pr26691.C: New test.
397 2006-03-13 Jakub Jelinek <jakub@redhat.com>
399 * testsuite/libgomp.fortran/retval2.f90: New test.
401 2006-03-09 Diego Novillo <dnovillo@redhat.com>
403 * testsuite/libgomp.c++: New directory.
405 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
407 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
408 * config/posix/sem.c: Implement the above.
410 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
412 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
413 define HAVE_BROKEN_POSIX_SEMAPHORES.
414 * configure: Rebuilt.
415 * config.h.in: Rebuilt.
417 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
420 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
421 for the other pthread check.
422 * configure: Regenerate.
423 * config.h.in: Regenerate.
425 2006-02-15 Jakub Jelinek <jakub@redhat.com>
429 * Makefile.am (fincludedir): New variable.
430 (nodist_include_HEADERS): Remove Fortran files.
431 (nodist_finclude_HEADERS): New variable.
432 * Makefile.in: Regenerated.
434 2006-02-13 Jakub Jelinek <jakub@redhat.com>
436 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
437 Remove tests for returning assumed character length arrays.
439 2006-02-12 Roger Sayle <roger@eyesopen.com>
440 John David Anglin <dave@hiauly1.hia.nrc.ca>
443 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
445 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
447 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
449 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
451 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
452 part of LD_LIBRARY_PATH manually.
454 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
457 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
460 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
463 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
464 * configure.ac (PERL): Don't set.
465 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
466 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
467 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
468 * omp.h.in: Wrap the new configure substitutions with @ characters.
469 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
470 * aclocal.m4, configure, Makefile.in: Regenerate.
471 * mkomp_h.pl: Delete.
473 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
476 * configure.ac: Use GCC_HEADER_STDINT.
477 * libgomp.h: Include gstdint.h.
478 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
479 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
481 2006-01-24 Richard Henderson <rth@redhat.com>
484 * configure.ac: Add AM_MAINTAINER_MODE.
485 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
487 2006-01-24 Diego Novillo <dnovillo@redhat.com>
489 * Makefile.in: Regenerate.
490 * testsuite/Makefile.in: Regenerate.
491 * aclocal.m4: Regenerate.
493 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
495 * config/posix/proc.c: Conditional include of sys/loadavg.h for
497 * configure.ac: Add check for loadavg.h.
498 (link_gomp): Adjust comment.
499 * configure: Regenerate.
500 * config.h.in: Regenerate.
502 2006-01-21 Steve Ellcey <sje@cup.hp.com>
505 * configure.ac: Remove check for alloca.h.
506 * configure: Regenerate.
507 * config.h.in: Regenerate.
508 * libgomp.h: define gomp_alloca to be __builtin_alloca.
509 * team.c: Remove use of alloca.h.
510 Call gomp_alloca instead of alloca.
512 2006-01-20 Steve Ellcey <sje@cup.hp.com>
515 * team.c: Add include of alloca.h.
516 * configure.ac: Add check for alloca.h.
517 * configure: Regenerate.
518 * config.h.in: Regenerate.
520 2006-01-17 Jakub Jelinek <jakub@redhat.com>
523 * testsuite/libgomp.fortran/pr25219.f90: New test.
525 2005-12-05 Uros Bizjak <uros@kss-loka.si>
527 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
528 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
529 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
530 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
531 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
532 testsuite/libgomp.fortran/threadprivate1.f90,
533 testsuite/libgomp.fortran/threadprivate2.f90,
534 testsuite/libgomp.fortran/threadprivate3.f90,
535 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
536 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
537 testsuite/libgomp.fortran/omp_parse3.f90: Change required
538 effective-target to TLS runtime.
540 * testsuite/libgomp.fortran/pr25162.f: Require
541 effective-target TLS runtime.
543 2005-12-01 Jakub Jelinek <jakub@redhat.com>
545 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
546 * testsuite/libgomp.c/nestedfn-3.c: New test.
548 2005-11-30 Jakub Jelinek <jakub@redhat.com>
551 * testsuite/libgomp.fortran/pr25162.f: New test.
553 2005-11-28 Jakub Jelinek <jakub@redhat.com>
555 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
556 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
558 2005-11-25 Jakub Jelinek <jakub@redhat.com>
560 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
561 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
562 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
563 single.c, team.c, work.c, config/linux/alpha/futex.h,
564 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
565 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
566 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
567 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
568 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
569 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
570 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
573 2005-11-18 Jakub Jelinek <jakub@redhat.com>
575 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
576 to nodist_noinst_HEADERS.
577 * Makefile.in: Rebuilt.
579 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
580 add integer count field.
581 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
582 omp_nest_lock_t type change.
583 (omp_init_nest_lock): Likewise. Initialize count to 0.
584 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
586 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
588 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
589 Increment count if successful and return the new nesting level.
590 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
591 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
592 * testsuite/libgomp.c/lib-1.c: New test.
593 * testsuite/libgomp.fortran/lib1.f90: New test.
594 * testsuite/libgomp.fortran/lib2.f: New test.
595 * testsuite/libgomp.fortran/lib3.f: New test.
597 2005-11-17 Richard Henderson <rth@redhat.com>
600 * Makefile.am (nodist_toolexeclib_HEADERS): New.
601 * configure.ac (link_gomp): New. Substitute it.
602 (AC_CONFIG_FILES): Add libgomp.spec.
603 * libgomp.spec.in: New file.
604 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
605 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
607 2005-11-18 Jakub Jelinek <jakub@redhat.com>
609 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
610 reduction(-:var) behaving the same as reduction(+:var).
611 * testsuite/libgomp.c/reduction-4.c: New test.
613 2005-11-15 Uros Bizjak <uros@kss-loka.si>
615 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
616 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
617 testsuite/libgomp.c/copyin-3.c,
618 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
619 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
620 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
621 testsuite/libgomp.c++/pr24455.C,
622 testsuite/libgomp.fortran/threadprivate1.f90,
623 testsuite/libgomp.fortran/threadprivate2.f90,
624 testsuite/libgomp.fortran/threadprivate3.f90,
625 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
626 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
627 testsuite/libgomp.fortran/omp_parse3.f90: Require
628 effective-target TLS.
630 2005-11-14 Diego Novillo <dnovillo@redhat.com>
634 2005-11-13 Jakub Jelinek <jakub@redhat.com>
637 * team.c (initialize_team): Pass NULL rather than free as
638 pthread_key_create destructor. Initialize thread specific data
639 pointer in initial thread to a static local variable rather than
642 2005-11-11 Uros Bizjak <uros@kss-loka.si>
644 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
645 its location to ld_library_path.
647 2005-11-10 Diego Novillo <dnovillo@redhat.com>
649 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
651 2005-11-10 Diego Novillo <dnovillo@redhat.com>
653 * testsuite/libgomp.c: Rename from libgomp.dg.
655 2005-11-09 Diego Novillo <dnovillo@redhat.com>
657 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
658 threadprivate variable 'i'.
660 2005-11-09 Jakub Jelinek <jakub@redhat.com>
662 * config/linux/s390/futex.h: New file.
663 * configure.tgt: Use it.
665 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
668 2005-11-08 Jakub Jelinek <jakub@redhat.com>
671 * testsuite/libgomp.c++/master-1.C: New test.
673 2005-11-07 Jakub Jelinek <jakub@redhat.com>
675 * testsuite/libgomp.dg/copyin-3.c: New test.
677 2005-11-07 Jakub Jelinek <jakub@redhat.com>
679 * testsuite/libgomp.fortran/retval1.f90: New test.
680 * testsuite/libgomp.fortran/vla7.f90: New test.
682 2005-11-06 Jakub Jelinek <jakub@redhat.com>
684 * testsuite/libgomp.fortran/vla2.f90: New test.
685 * testsuite/libgomp.fortran/vla3.f90: New test.
686 * testsuite/libgomp.fortran/vla4.f90: New test.
687 * testsuite/libgomp.fortran/vla5.f90: New test.
688 * testsuite/libgomp.fortran/vla6.f90: New test.
690 2005-11-01 Jakub Jelinek <jakub@redhat.com>
692 * config/linux/sparc/futex.h: New file.
693 * configure.tgt: Use it.
694 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
696 * critical.c: Include stdlib.h.
697 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
698 ignoring return value.
699 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
700 LIBGOMP_CHECK_SYNC_BUILTINS check.
701 * configure: Rebuilt.
703 2005-10-31 Jakub Jelinek <jakub@redhat.com>
705 * testsuite/libgomp.fortran/vla1.f90: New test.
707 2005-10-31 Richard Henderson <rth@redhat.com>
709 * testsuite/libgomp.fortran/character2.f90: Fix race condition
710 setting 's' in different threads.
712 2005-10-31 Jakub Jelinek <jakub@redhat.com>
714 * libgomp.h (attribute_hidden, ialias): Define.
715 * config/posix/proc.c (omp_get_num_procs): Add ialias.
716 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
717 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
718 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
719 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
720 omp_test_lock, omp_test_nest_lock): Likewise.
721 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
722 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
723 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
724 omp_test_lock, omp_test_nest_lock): Likewise.
725 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
726 omp_get_dynamic, omp_get_nested): Likewise.
727 * parallel.c (omp_get_num_threads, omp_get_max_threads,
728 omp_get_thread_num, omp_in_parallel): Likewise.
729 * fortran.c (ialias_redirect): Define.
730 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
731 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
732 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
733 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
734 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
735 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
736 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
737 omp_get_wtime): Add ialias_redirect.
739 2005-10-30 Jakub Jelinek <jakub@redhat.com>
741 * fortran.c: Include stdlib.h.
743 2005-10-29 Jakub Jelinek <jakub@redhat.com>
745 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
746 * Makefile.in: Regenerated.
748 2005-10-28 Jakub Jelinek <jakub@redhat.com>
750 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
751 * libgomp_f.h.in (omp_check_defines): New function.
752 * env.c: Include libgomp_f.h.
753 (initialize_env): Call omp_check_defines.
755 * testsuite/libgomp.dg/copyin-2.c: New test.
756 * testsuite/libgomp.c++/copyin-2.C: New test.
757 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
759 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
760 * testsuite/libgomp.fortran/sharing2.f90: New test.
762 * testsuite/libgomp.dg/copyin-1.c: New test.
763 * testsuite/libgomp.c++/copyin-1.C: New test.
765 2005-10-26 Jakub Jelinek <jakub@redhat.com>
767 * testsuite/libgomp.fortran/crayptr1.f90: New test.
769 * testsuite/libgomp.fortran/workshare1.f90: New test.
771 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
773 * libgomp.fortran/sharing1.f90: New test.
775 2005-10-24 Jakub Jelinek <jakub@redhat.com>
778 * testsuite/libgomp.c++/loop-7.C: New test.
780 * testsuite/libgomp.dg/nestedfn-2.c: New test.
782 * testsuite/libgomp.dg/nestedfn-1.c: New test.
783 * testsuite/libgomp.fortran/reduction6.f90: New test.
784 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
786 2005-10-23 Richard Henderson <rth@redhat.com>
788 * testsuite/libgomp.c++/ctor-1.C: New.
789 * testsuite/libgomp.c++/ctor-2.C: New.
790 * testsuite/libgomp.c++/ctor-3.C: New.
791 * testsuite/libgomp.c++/ctor-4.C: New.
792 * testsuite/libgomp.c++/ctor-5.C: New.
793 * testsuite/libgomp.c++/ctor-6.C: New.
794 * testsuite/libgomp.c++/ctor-7.C: New.
795 * testsuite/libgomp.c++/ctor-8.C: New.
796 * testsuite/libgomp.c++/ctor-9.C: New.
798 2005-10-21 Diego Novillo <dnovillo@redhat.com>
801 * testsuite/libgomp.c++/pr24455-1.C: New test.
802 * testsuite/libgomp.c++/pr24455.C: New test.
803 * testsuite/libgomp.dg/pr24455-1.c: New test.
804 * testsuite/libgomp.dg/pr24455.c: New test.
806 2005-10-20 Richard Henderson <rth@redhat.com>
808 * testsuite/libgomp.c++/loop-6.C: New.
809 * testsuite/libgomp.dg/loop-3.c: New.
811 2005-10-20 Jakub Jelinek <jakub@redhat.com>
813 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
815 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
818 2005-10-19 Diego Novillo <dnovillo@redhat.com>
820 * testsuite/libgomp.fortran/jacobi.f: New test.
822 2005-10-19 Richard Henderson <rth@redhat.com>
824 * configure.tgt (i?86-linux): Default to with_arch instead of
825 CFLAGS. Add -mtune to match target_cpu.
826 (x86_64-linux): Tune to i686.
828 * fortran.c (omp_test_nest_lock_): Fix typo.
830 2005-10-19 Jakub Jelinek <jakub@redhat.com>
832 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
833 gomp_ordered_sync): Do nothing if team->nthreads == 1.
834 * testsuite/libgomp.dg/ordered-3.c: New test.
836 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
837 Remove volatile keyword.
839 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
840 in COMMON block to avoid warnings on 64-bit targets.
842 2005-10-18 Diego Novillo <dnovillo@redhat.com>
844 * testsuite/libgomp.dg/shared-3.c: New test.
846 2005-10-18 Jakub Jelinek <jakub@redhat.com>
848 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
849 * testsuite/libgomp.fortran/reduction5.f90: New test.
851 2005-10-18 Jakub Jelinek <jakub@redhat.com>
853 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
855 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
856 flush loop now that __sync_synchronize has proper memory barrier.
857 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
858 Add -ffixed-form to dg-options.
860 2005-10-17 Diego Novillo <dnovillo@redhat.com>
862 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
864 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
865 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
866 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
867 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
868 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
869 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
870 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
871 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
872 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
873 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
874 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
875 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
876 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
877 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
878 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
879 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
880 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
881 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
882 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
883 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
884 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
885 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
886 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
887 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
888 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
890 2005-10-17 Jakub Jelinek <jakub@redhat.com>
892 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
893 lang_library_path exists. Use find instead of glob to gather tests.
894 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
896 2005-10-17 Diego Novillo <dnovillo@redhat.com>
898 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
899 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
900 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
901 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
902 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
903 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
904 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
905 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
906 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
907 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
908 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
909 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
910 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
912 2005-10-15 Jakub Jelinek <jakub@redhat.com>
914 * testsuite/libgomp.dg/vla-1.c: New test.
916 * testsuite/libgomp.fortran/reference2.f90: New test.
918 * testsuite/libgomp.fortran/character2.f90: Remove explicit
919 declaration of omp_get_thread_num.
920 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
923 * testsuite/libgomp.fortran/reduction1.f90: New test.
924 * testsuite/libgomp.fortran/reduction2.f90: New test.
925 * testsuite/libgomp.fortran/reduction3.f90: New test.
926 * testsuite/libgomp.fortran/reduction4.f90: New test.
928 2005-10-13 Richard Henderson <rth@redhat.com>
930 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
931 * Makefile.in: Regenerate.
932 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
933 * libgomp.h: Include bar.h.
934 (struct gomp_barrier): Remove.
935 (struct gomp_team): Add barrier. Replace master_barrier with
936 master_release. Replace threads with ordered_release.
937 (struct gomp_thread): Replace barrier with release.
938 * ordered.c (gomp_ordered_first): Update for ordered_release change.
939 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
940 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
941 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
942 (GOMP_single_copy_end): Likewise.
943 * team.c (gomp_threads_dock): New.
944 (gomp_barrier_init, gomp_barrier_destroy): Remove.
945 (gomp_thread_start): Use gomp_barrier_wait.
946 (new_team, free_team): Update for gomp_team changes.
947 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
948 (gomp_team_end): Use gomp_barrier_wait.
949 (initialize_team): Update for gomp_thread changes.
950 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
951 (gomp_work_share_end_nowait): Use atomic ops when available.
952 * config/linux/bar.c, config/linux/bar.h: New files.
953 * config/posix/bar.c, config/posix/bar.h: New files.
955 2005-10-13 Jakub Jelinek <jakub@redhat.com>
957 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
958 * testsuite/libgomp.dg/single-2.c: New test.
960 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
961 lang_link_flags): Unset, so that they aren't inherited from previously
964 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
966 2005-10-12 Richard Henderson <rth@redhat.com>
968 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
969 (libgomp_init): Use lang_test_file, lang_library_path, and
970 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
972 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
973 (lang_test_file, lang_link_flags): New.
974 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
976 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
977 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
978 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
979 testsuite/libgomp.c++/parallel-1.C,
980 testsuite/libgomp.c++/reduction-1.C,
981 testsuite/libgomp.c++/reduction-2.C,
982 testsuite/libgomp.c++/reduction-3.C,
983 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
984 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
985 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
986 New files, largely cribbed from the C testsuite.
988 2005-10-12 Jakub Jelinek <jakub@redhat.com>
990 * testsuite/libgomp.fortran/character1.f90: New test.
991 * testsuite/libgomp.fortran/character2.f90: New test.
993 * testsuite/libgomp.dg/nested-1.c: New test.
994 * testsuite/libgomp.dg/nested-2.c: New test.
995 * testsuite/libgomp.fortran/do1.f90: New test.
996 * testsuite/libgomp.fortran/do2.f90: New test.
998 * testsuite/libgomp.fortran/reference1.f90: New test.
1000 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1002 * testsuite/libgomp.dg/reduction-1.c: New test.
1003 * testsuite/libgomp.dg/reduction-2.c: New test.
1004 * testsuite/libgomp.dg/reduction-3.c: New test.
1006 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1008 * testsuite/libgomp.dg/atomic-1.c: New test.
1009 * testsuite/libgomp.dg/atomic-2.c: New test.
1011 2005-10-09 Richard Henderson <rth@redhat.com>
1013 * critical.c (atomic_lock): New.
1014 (initialize_critical): Initialize it.
1015 (GOMP_atomic_start, GOMP_atomic_end): New.
1016 * libgomp.map: Export them.
1017 * libgomp_g.h: Declare them.
1019 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1021 2005-10-02 Richard Henderson <rth@redhat.com>
1023 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1024 to XCFLAGS instead of CFLAGS.
1026 2005-09-30 Richard Henderson <rth@redhat.com>
1028 * configure.ac: Determine whether -pthread or -lpthread is needed.
1029 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1030 * Makefine.in, configure: Rebuild.
1032 2005-09-28 Richard Henderson <rth@redhat.com>
1034 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1035 * testsuite/libgomp.dg/omp-single-3.c: New test.
1037 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1039 * testsuite/libgomp.dg/omp-single-2.c: New test.
1040 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1042 2005-09-27 Richard Henderson <rth@redhat.com>
1044 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1045 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1047 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1049 * testsuite/libgomp.dg/omp-loop03.c: New test.
1051 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1053 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1055 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1057 * testsuite/libgomp.dg/omp-single-1.c: New test.
1058 * testsuite/libgomp.dg/shared-1.c: Return 0.
1059 Add prototype for abort.
1060 * testsuite/libgomp.dg/shared-2.c: Likewise.
1062 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1064 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1067 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1069 * testsuite/libgomp.dg/shared-1.c: New test.
1070 * testsuite/libgomp.dg/shared-2.c: New test.
1072 2005-09-24 Richard Henderson <rth@redhat.com>
1074 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1076 2005-09-24 Richard Henderson <rth@redhat.com>
1078 * iter.c (gomp_iter_static_next): Round up when computing number
1079 of iterations. Don't bother distributing a remainder equally.
1081 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1082 Don't call srand. Zero b before testing.
1085 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1087 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1088 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1090 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1092 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1093 without !$omp end do, followed immediately by subroutine end.
1095 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1097 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1099 2005-09-22 Richard Henderson <rth@redhat.com>
1101 * critical.c (GOMP_critical_name_start): Change argument to void**.
1102 Reuse the pointer space if the mutex fits.
1103 (GOMP_critical_name_end): Likewise.
1104 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1105 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1106 (GOMP_critical_name_end): Likewise.
1107 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1108 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1110 2005-09-20 Richard Henderson <rth@redhat.com>
1112 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1113 (create_lock_lock): New.
1114 (initialize_critical): Initialize it.
1115 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1116 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1118 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1120 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1122 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1124 * testsuite/libgomp.dg/omp-loop01.c: New test.
1125 * testsuite/libgomp.dg/omp-loop02.c: New test.
1127 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1129 * configure.ac (AC_PROG_FC): Add.
1130 (USE_FORTRAN): New automake conditional.
1131 * configure: Rebuilt.
1132 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1133 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1134 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1135 Add rules to build them.
1136 * Makefile.in: Rebuilt.
1137 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1139 * libgomp.map: Add Fortran wrappers.
1140 * libgomp_f.h.in: New file.
1141 * omp_lib.h.in: New file.
1142 * omp_lib.f90.in: New file.
1143 * fortran.c: New file.
1144 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1145 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1146 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1147 libgfortran has been built.
1148 * testsuite/libgomp.fortran/fortran.exp: New file.
1149 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1150 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1151 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1152 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1153 * testsuite/libgomp.fortran/omp_hello.f: New test.
1154 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1155 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1156 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1157 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1158 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1159 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1160 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1161 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1163 2005-08-30 Richard Henderson <rth@redhat.com>
1165 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1166 function for when aliases are not usable.
1167 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1168 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1169 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1170 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1171 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1172 GOMP_loop_ordered_guided_next): Likewise.
1173 * ordered.c (GOMP_ordered_start): Likewise.
1175 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1177 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1178 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1179 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1180 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1181 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1182 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1183 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1184 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1185 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1187 2005-07-07 Eric Christopher <echristo@redhat.com>
1188 Diego Novillo <dnovillo@redhat.com>
1190 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1191 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1193 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1194 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1195 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1196 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1197 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1198 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1199 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1201 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1203 * TOPLEVEL.patch: Remove.
1205 2005-05-16 Richard Henderson <rth@redhat.com>
1207 * configure.ac: Test for clock_gettime.
1208 * config.h.in, configure: Rebuild.
1209 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1210 (omp_get_wtime): Use clock_gettime if available.
1211 (omp_get_wtick): Use clock_getres if available.
1213 2005-05-11 Richard Henderson <rth@redhat.com>
1215 * config/linux/ia64/futex.h: New file.
1216 * configure.tgt: Use it.
1218 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1220 2005-05-07 Richard Henderson <rth@redhat.com>
1222 * config/linux/powerpc/futex.h: New file.
1223 * configure.tgt: Use it.
1225 * config/linux/i486/futex.h: Merge ...
1226 * config/linux/x86_64/futex.h: ... into ...
1227 * config/linux/x86/futex.h: ... here.
1228 * configure.tgt: Update to match.
1230 2005-05-06 Richard Henderson <rth@redhat.com>
1232 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1233 * config/linux/i486/futex.h: Likewise.
1234 * config/linux/x86_64/futex.h: Likewise.
1236 * config/linux/lock.c: New file.
1237 * config/linux/omp-lock.h: New file.
1239 * critical.c, env.h: Don't include omp.h
1240 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1241 * config/posix/time.c: Likewise.
1242 * config/posix/omp-lock.h: New file.
1243 * libgomp.h: Include omp-lock.h and omp.h.
1244 * Makefile.am (nodist_include_HEADERS): New.
1246 * configure.ac (PERL): New.
1247 * mkomp_h.pl: New file.
1248 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1250 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1252 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1253 build directory. Re-add -march=i486 hack.
1255 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1256 (libgomp_link_flags): Remove.
1257 (libgomp_initialized): Remove.
1258 (libgomp_init): Don't protect from reinitialization. Copy code
1259 from libstdc++ for getting the multilib set correctly.
1261 2005-05-05 Richard Henderson <rth@redhat.com>
1263 * config/linux/alpha/futex.h: New file.
1264 * configure.tgt (alpha*-*-linux*): Use it.
1266 * config/posix/mutex.c: New file.
1267 * config/posix/sem.c: Use libgomp.h.
1269 * configure.tgt (x86_64-linux): Also test CC for -m32.
1270 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1272 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1275 * Makefile.am (SUBDIRS): New.
1276 (libgomp_la_LDFLAGS): Add -lpthread.
1277 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1278 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1280 * libgomp_g.h: New file.
1281 * libgomp.h: Split out all public declarations to libgomp_g.h.
1282 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1283 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1284 * config/linux/sem.h: Likewise.
1285 * config/posix/sem.h: Likewise.
1287 * Makefile.am (AM_LDFLAGS): New.
1288 (libgomp_version_script): Split out from ...
1289 (libgomp_la_LDFLAGS): ... here.
1290 (libgomp_version_info): New.
1291 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1292 (LIBGOMP_ENABLE): New.
1293 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1294 (LIBGOMP_ENABLE_SYMVERS): New.
1295 * configure.ac (AC_INIT): Version 1.0.
1296 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1297 (enable-linux-futex): Likewise. Rename from enable-futex.
1298 (libtool_VERSION): New.
1299 (LIBGOMP_ENABLE_SYMVERS): Use it.
1300 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1301 * Makefile.in, aclocal.m4, configure: Rebuild.
1303 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1304 (gomp_mutex_unlock_slow): Fix typo.
1305 * config/linux/sem.c: Similarly.
1306 (gomp_sem_post_slow): Fix typo.
1307 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1308 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1309 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1311 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1312 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1313 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1314 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1315 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1316 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1317 LDFLAGS. Pull enable_futex check to top-level.
1318 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1319 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1321 First attempt at real configury.
1322 * Makefile, config.h: Remove file.
1323 * Makefile.am, Makefile.in: New file.
1324 * acinclude.m4 aclocal.m4: New file.
1325 * configure.ac, configure.tgt, configure: New file.
1327 * config/posix/lock.c: Rename from sys-lock.c.
1328 * config/posix/mutex.h: Rename from sys-mutex.h.
1329 * config/posix/sem.c: Rename from sys-sem.c.
1330 * config/posix/sem.h: Rename from sys-sem.h.
1331 * config/posix/proc.c: Rename from sys-proc.c.
1332 * config/posix/time.c: Rename from sys-proc.c.
1334 * config/linux/mutex.c: New file.
1335 * config/linux/mutex.h: New file.
1336 * config/linux/sem.c: New file.
1337 * config/linux/sem.h: New file.
1338 * config/linux/i486/futex.h: New file.
1339 * config/linux/x86_64/futex.h: New file.
1341 2005-05-04 Richard Henderson <rth@redhat.com>
1343 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1344 * libgomp.h: Declare them.
1345 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1346 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1348 2005-05-04 Richard Henderson <rth@redhat.com>
1350 * libgomp-1 code drop
1352 2005-05-04 Richard Henderson <rth@redhat.com>
1354 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1355 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1356 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1357 (gomp_iter_static_next): Update.
1358 (gomp_ordered_static_next): Update.
1359 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1360 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1361 totally empty range.
1362 (gomp_loop_ordered_static_next): Refine test for calling
1363 gomp_ordered_static_next.
1364 * testsuite/ordered-1.c: Add case for more threads than iterations.
1366 * iter.c (gomp_iter_runtime_next_locked): Remove.
1367 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1368 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1369 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1370 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1371 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1372 gomp_loop_ordered_guided_next): Downcase name, make static, add
1373 an external alias with the old name.
1374 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1375 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1376 switch and call one of the above static functions.
1377 * libgomp.h: Update.
1379 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1380 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1381 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1382 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1383 GOMP_loop_ordered_guided_start): Update to match.
1384 * sections.c (GOMP_sections_start): Likewise.
1385 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1387 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1388 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1389 Use bounds check instead of modulus.
1390 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1391 (gomp_ordered_last): Don't sync with ordered_owner here.
1392 (gomp_ordered_next): Likewise.
1393 (gomp_ordered_static_loop_next): Likewise.
1394 * loop.c, libgomp.h: Update to match.
1396 * libgomp.h (GOMP_barrier): Declare.
1398 * testsuite/barrier-1.c: New file.
1399 * testsuite/critical-1.c: New file.
1400 * testsuite/ordered-2.c: New file.
1401 * testsuite/ordered-1.c: New file.
1402 * testsuite/sections-1.c: New file.
1403 * testsuite/single-1.c: New file.
1404 * testsuite/Makefile (TESTS): Add them.
1406 2005-05-04 Richard Henderson <rth@redhat.com>
1408 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1409 * loop.c (GOMP_loop_static_start): If not the startup thread,
1410 acquire the mutex to wait for initialization complete.
1411 (GOMP_loop_ordered_static_start): Likewise.
1412 (GOMP_loop_ordered_runtime_start): Likewise.
1413 (GOMP_loop_ordered_static_first): Remove.
1414 (GOMP_loop_ordered_dynamic_first): Remove.
1415 (GOMP_loop_ordered_guided_first): Remove.
1416 (GOMP_loop_ordered_runtime_first): Remove.
1417 * ordered.c (gomp_ordered_loop_first): Post to own release when
1418 we're the first thread.
1419 (gomp_ordered_loop_last): Wait on release if not owner.
1420 (gomp_ordered_loop_next): Likewise.
1421 (gomp_ordered_static_loop_init): New.
1422 (gomp_ordered_static_loop_next): Use ordered_owner.
1423 (GOMP_ordered_start): Likewise.
1424 * work.c (gomp_new_work_share): Initialize ordered_owner.
1426 2005-05-03 Richard Henderson <rth@redhat.com>
1428 * Makefile (OPT): New.
1431 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1432 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1433 * libgomp.h, libgomp.map, NOTES: Update to match.
1435 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1436 Add initialized and thr members.
1437 (gomp_thread_start): Pause when initially spawned to wait for
1438 the whole team to be created.
1439 (gomp_team_start): Release team members at the end.
1441 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1442 (f_foo_1): Use GOMP_loop_end.
1443 (f_foo_2): Use GOMP_loop_end_nowait.
1445 * testsuite/loop-2.c: New file.
1446 * testsuite/Makefile (TESTS): Add it.
1448 2005-05-03 Richard Henderson <rth@redhat.com>
1450 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1451 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1452 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1455 * testsuite/Makefile: New file.
1456 * testsuite/loop-1.c: New file.
1458 2005-05-03 Richard Henderson <rth@redhat.com>
1460 Initial implementation and checkin.