1 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3 * configure.tgt: Force initial-exec TLS model on Linux only.
5 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
7 * configure: Regenerated.
9 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11 * env.c (parse_schedule): Reject out of range values.
12 (parse_unsigned_long): Reject out of range, negative or zero values.
14 2006-10-29 Jakub Jelinek <jakub@redhat.com>
17 * testsuite/libgomp.fortran/pr29629.f90: New test.
19 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
22 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
23 * config/posix95: New directory.
24 * config/posix95/omp-lock.h: New file.
25 * config/posix95/lock.c: Likewise.
27 2006-10-14 Geoffrey Keating <geoffk@apple.com>
29 * aclocal.m4: Regenerate.
30 * configure: Regenerate.
32 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
34 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
37 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
39 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
41 * configure: Regenerate.
42 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
44 2006-09-26 Jakub Jelinek <jakub@redhat.com>
48 * testsuite/libgomp.c/nestedfn-4.c: New test.
49 * testsuite/libgomp.c/nestedfn-5.c: New test.
50 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
53 * testsuite/libgomp.fortran/condinc1.f: New test.
54 * testsuite/libgomp.fortran/condinc2.f: New test.
55 * testsuite/libgomp.fortran/condinc3.f90: New test.
56 * testsuite/libgomp.fortran/condinc4.f90: New test.
57 * testsuite/libgomp.fortran/condinc1.inc: New file.
59 2006-09-18 Tom Tromey <tromey@redhat.com>
63 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
67 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
69 * configure: Regenerate.
71 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
73 * testsuite/libgomp.fortran/reduction3.f90: Change
74 -2147483648 to -huge(i)-1 to avoid overflow.
75 * testsuite/libgomp.fortran/reduction4.f90: Change
76 Z'ffffffff' to not(0) to avoid overflow.
78 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
81 * Makefile.am (libsubincludedir): New.
82 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
83 * Makefile.in: Regenerate.
85 2006-08-17 Jakub Jelinek <jakub@redhat.com>
88 * env.c: Include ctype.h.
89 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
90 leading and/or trailing whitespace and compare strings case
93 2006-07-16 Jakub Jelinek <jakub@redhat.com>
96 * testsuite/libgomp.fortran/pr28390.f: New test.
98 2006-07-05 Eric Christopher <echristo@apple.com>
100 * configure.ac: Depend addition of -pthread on host OS.
101 * configure: Regenerate.
103 2006-06-21 Jakub Jelinek <jakub@redhat.com>
105 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
106 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
109 2006-06-20 Jakub Jelinek <jakub@redhat.com>
113 * configure.ac: If neither --enable-linux-futex nor
114 --disable-linux-futex is passed, determine the default by checking
115 for compiling and/or running against NPTL. With --enable-linux-futex,
116 check if SYS_gettid and SYS_futex are defined.
117 * configure: Rebuilt.
119 2006-06-14 Richard Henderson <rth@redhat.com>
122 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
123 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
125 2006-06-09 Richard Henderson <rth@redhat.com>
127 * env.c (gomp_nthreads_var): Change to unsigned long.
128 (gomp_run_sched_chunk): Likewise.
129 (parse_unsigned_long): Rename from parse_num_threads and generalize.
130 (initialize_env): Initialize gomp_thread_attr.
131 * libgomp.h (gomp_nthreads_var): Update decl.
132 (gomp_run_sched_chunk): Likewise.
133 (gomp_thread_attr): Declare.
134 * team.c (gomp_thread_attr): Export.
135 (initialize_team): Don't initialize it.
137 2006-06-09 Jakub Jelinek <jakub@redhat.com>
140 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
141 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
143 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
145 * config/mingw32/time.c: New file.
146 * configure.tgt: Use it.
148 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
150 * Makefile.am: Add install-html target. Add install-html to .PHONY
151 * Makefile.in: Regenerate.
153 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
156 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
157 * testsuite/libgomp.c/critical-1.c: Likewise.
158 * testsuite/libgomp.c/loop-1.c: Likewise.
159 * testsuite/libgomp.c/loop-2.c: Likewise.
160 * testsuite/libgomp.c/single-1.c: Likewise.
161 * testsuite/libgomp.c/ordered-1.c: Likewise.
162 * testsuite/libgomp.c/ordered-2.c: Likewise.
164 2006-05-15 Jakub Jelinek <jakub@redhat.com>
167 * libgomp.fortran/pr27416-1.f90: New test.
169 2006-05-03 Jakub Jelinek <jakub@redhat.com>
172 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
173 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
175 2006-05-02 Jakub Jelinek <jakub@redhat.com>
178 * testsuite/libgomp.c/pr26943-1.c: New test.
179 * testsuite/libgomp.c/pr26943-2.c: New test.
180 * testsuite/libgomp.c/pr26943-3.c: New test.
181 * testsuite/libgomp.c/pr26943-4.c: New test.
182 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
183 * testsuite/libgomp.c++/pr26943.C: New test.
185 2006-05-02 Jakub Jelinek <jakub@redhat.com>
188 * testsuite/libgomp.c++/pr27337.C: New test.
190 2006-04-26 Jakub Jelinek <jakub@redhat.com>
193 * testsuite/libgomp.c/pr26171.c: New test.
195 2006-04-25 Richard Henderson <rth@redhat.com>
198 * configure.ac: Use GCC_CHECK_TLS.
199 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
200 * Makefile.in, aclocal.m4, configure: Regenerate.
202 2006-04-10 Matthias Klose <doko@debian.org>
204 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
205 directory names containing underscores.
207 2006-03-21 Jakub Jelinek <jakub@redhat.com>
210 * testsuite/libgomp.c++/pr26691.C: New test.
212 2006-03-13 Jakub Jelinek <jakub@redhat.com>
214 * testsuite/libgomp.fortran/retval2.f90: New test.
216 2006-03-09 Diego Novillo <dnovillo@redhat.com>
218 * testsuite/libgomp.c++: New directory.
220 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
222 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
223 * config/posix/sem.c: Implement the above.
225 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
227 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
228 define HAVE_BROKEN_POSIX_SEMAPHORES.
229 * configure: Rebuilt.
230 * config.h.in: Rebuilt.
232 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
235 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
236 for the other pthread check.
237 * configure: Regenerate.
238 * config.h.in: Regenerate.
240 2006-02-15 Jakub Jelinek <jakub@redhat.com>
244 * Makefile.am (fincludedir): New variable.
245 (nodist_include_HEADERS): Remove Fortran files.
246 (nodist_finclude_HEADERS): New variable.
247 * Makefile.in: Regenerated.
249 2006-02-13 Jakub Jelinek <jakub@redhat.com>
251 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
252 Remove tests for returning assumed character length arrays.
254 2006-02-12 Roger Sayle <roger@eyesopen.com>
255 John David Anglin <dave@hiauly1.hia.nrc.ca>
258 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
260 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
262 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
264 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
266 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
267 part of LD_LIBRARY_PATH manually.
269 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
272 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
275 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
278 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
279 * configure.ac (PERL): Don't set.
280 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
281 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
282 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
283 * omp.h.in: Wrap the new configure substitutions with @ characters.
284 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
285 * aclocal.m4, configure, Makefile.in: Regenerate.
286 * mkomp_h.pl: Delete.
288 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
291 * configure.ac: Use GCC_HEADER_STDINT.
292 * libgomp.h: Include gstdint.h.
293 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
294 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
296 2006-01-24 Richard Henderson <rth@redhat.com>
299 * configure.ac: Add AM_MAINTAINER_MODE.
300 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
302 2006-01-24 Diego Novillo <dnovillo@redhat.com>
304 * Makefile.in: Regenerate.
305 * testsuite/Makefile.in: Regenerate.
306 * aclocal.m4: Regenerate.
308 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
310 * config/posix/proc.c: Conditional include of sys/loadavg.h for
312 * configure.ac: Add check for loadavg.h.
313 (link_gomp): Adjust comment.
314 * configure: Regenerate.
315 * config.h.in: Regenerate.
317 2006-01-21 Steve Ellcey <sje@cup.hp.com>
320 * configure.ac: Remove check for alloca.h.
321 * configure: Regenerate.
322 * config.h.in: Regenerate.
323 * libgomp.h: define gomp_alloca to be __builtin_alloca.
324 * team.c: Remove use of alloca.h.
325 Call gomp_alloca instead of alloca.
327 2006-01-20 Steve Ellcey <sje@cup.hp.com>
330 * team.c: Add include of alloca.h.
331 * configure.ac: Add check for alloca.h.
332 * configure: Regenerate.
333 * config.h.in: Regenerate.
335 2006-01-17 Jakub Jelinek <jakub@redhat.com>
338 * testsuite/libgomp.fortran/pr25219.f90: New test.
340 2005-12-05 Uros Bizjak <uros@kss-loka.si>
342 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
343 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
344 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
345 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
346 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
347 testsuite/libgomp.fortran/threadprivate1.f90,
348 testsuite/libgomp.fortran/threadprivate2.f90,
349 testsuite/libgomp.fortran/threadprivate3.f90,
350 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
351 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
352 testsuite/libgomp.fortran/omp_parse3.f90: Change required
353 effective-target to TLS runtime.
355 * testsuite/libgomp.fortran/pr25162.f: Require
356 effective-target TLS runtime.
358 2005-12-01 Jakub Jelinek <jakub@redhat.com>
360 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
361 * testsuite/libgomp.c/nestedfn-3.c: New test.
363 2005-11-30 Jakub Jelinek <jakub@redhat.com>
366 * testsuite/libgomp.fortran/pr25162.f: New test.
368 2005-11-28 Jakub Jelinek <jakub@redhat.com>
370 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
371 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
373 2005-11-25 Jakub Jelinek <jakub@redhat.com>
375 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
376 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
377 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
378 single.c, team.c, work.c, config/linux/alpha/futex.h,
379 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
380 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
381 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
382 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
383 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
384 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
385 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
388 2005-11-18 Jakub Jelinek <jakub@redhat.com>
390 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
391 to nodist_noinst_HEADERS.
392 * Makefile.in: Rebuilt.
394 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
395 add integer count field.
396 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
397 omp_nest_lock_t type change.
398 (omp_init_nest_lock): Likewise. Initialize count to 0.
399 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
401 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
403 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
404 Increment count if successful and return the new nesting level.
405 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
406 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
407 * testsuite/libgomp.c/lib-1.c: New test.
408 * testsuite/libgomp.fortran/lib1.f90: New test.
409 * testsuite/libgomp.fortran/lib2.f: New test.
410 * testsuite/libgomp.fortran/lib3.f: New test.
412 2005-11-17 Richard Henderson <rth@redhat.com>
415 * Makefile.am (nodist_toolexeclib_HEADERS): New.
416 * configure.ac (link_gomp): New. Substitute it.
417 (AC_CONFIG_FILES): Add libgomp.spec.
418 * libgomp.spec.in: New file.
419 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
420 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
422 2005-11-18 Jakub Jelinek <jakub@redhat.com>
424 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
425 reduction(-:var) behaving the same as reduction(+:var).
426 * testsuite/libgomp.c/reduction-4.c: New test.
428 2005-11-15 Uros Bizjak <uros@kss-loka.si>
430 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
431 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
432 testsuite/libgomp.c/copyin-3.c,
433 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
434 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
435 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
436 testsuite/libgomp.c++/pr24455.C,
437 testsuite/libgomp.fortran/threadprivate1.f90,
438 testsuite/libgomp.fortran/threadprivate2.f90,
439 testsuite/libgomp.fortran/threadprivate3.f90,
440 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
441 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
442 testsuite/libgomp.fortran/omp_parse3.f90: Require
443 effective-target TLS.
445 2005-11-14 Diego Novillo <dnovillo@redhat.com>
449 2005-11-13 Jakub Jelinek <jakub@redhat.com>
452 * team.c (initialize_team): Pass NULL rather than free as
453 pthread_key_create destructor. Initialize thread specific data
454 pointer in initial thread to a static local variable rather than
457 2005-11-11 Uros Bizjak <uros@kss-loka.si>
459 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
460 its location to ld_library_path.
462 2005-11-10 Diego Novillo <dnovillo@redhat.com>
464 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
466 2005-11-10 Diego Novillo <dnovillo@redhat.com>
468 * testsuite/libgomp.c: Rename from libgomp.dg.
470 2005-11-09 Diego Novillo <dnovillo@redhat.com>
472 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
473 threadprivate variable 'i'.
475 2005-11-09 Jakub Jelinek <jakub@redhat.com>
477 * config/linux/s390/futex.h: New file.
478 * configure.tgt: Use it.
480 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
483 2005-11-08 Jakub Jelinek <jakub@redhat.com>
486 * testsuite/libgomp.c++/master-1.C: New test.
488 2005-11-07 Jakub Jelinek <jakub@redhat.com>
490 * testsuite/libgomp.dg/copyin-3.c: New test.
492 2005-11-07 Jakub Jelinek <jakub@redhat.com>
494 * testsuite/libgomp.fortran/retval1.f90: New test.
495 * testsuite/libgomp.fortran/vla7.f90: New test.
497 2005-11-06 Jakub Jelinek <jakub@redhat.com>
499 * testsuite/libgomp.fortran/vla2.f90: New test.
500 * testsuite/libgomp.fortran/vla3.f90: New test.
501 * testsuite/libgomp.fortran/vla4.f90: New test.
502 * testsuite/libgomp.fortran/vla5.f90: New test.
503 * testsuite/libgomp.fortran/vla6.f90: New test.
505 2005-11-01 Jakub Jelinek <jakub@redhat.com>
507 * config/linux/sparc/futex.h: New file.
508 * configure.tgt: Use it.
509 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
511 * critical.c: Include stdlib.h.
512 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
513 ignoring return value.
514 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
515 LIBGOMP_CHECK_SYNC_BUILTINS check.
516 * configure: Rebuilt.
518 2005-10-31 Jakub Jelinek <jakub@redhat.com>
520 * testsuite/libgomp.fortran/vla1.f90: New test.
522 2005-10-31 Richard Henderson <rth@redhat.com>
524 * testsuite/libgomp.fortran/character2.f90: Fix race condition
525 setting 's' in different threads.
527 2005-10-31 Jakub Jelinek <jakub@redhat.com>
529 * libgomp.h (attribute_hidden, ialias): Define.
530 * config/posix/proc.c (omp_get_num_procs): Add ialias.
531 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
532 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
533 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
534 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
535 omp_test_lock, omp_test_nest_lock): Likewise.
536 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
537 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
538 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
539 omp_test_lock, omp_test_nest_lock): Likewise.
540 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
541 omp_get_dynamic, omp_get_nested): Likewise.
542 * parallel.c (omp_get_num_threads, omp_get_max_threads,
543 omp_get_thread_num, omp_in_parallel): Likewise.
544 * fortran.c (ialias_redirect): Define.
545 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
546 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
547 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
548 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
549 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
550 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
551 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
552 omp_get_wtime): Add ialias_redirect.
554 2005-10-30 Jakub Jelinek <jakub@redhat.com>
556 * fortran.c: Include stdlib.h.
558 2005-10-29 Jakub Jelinek <jakub@redhat.com>
560 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
561 * Makefile.in: Regenerated.
563 2005-10-28 Jakub Jelinek <jakub@redhat.com>
565 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
566 * libgomp_f.h.in (omp_check_defines): New function.
567 * env.c: Include libgomp_f.h.
568 (initialize_env): Call omp_check_defines.
570 * testsuite/libgomp.dg/copyin-2.c: New test.
571 * testsuite/libgomp.c++/copyin-2.C: New test.
572 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
574 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
575 * testsuite/libgomp.fortran/sharing2.f90: New test.
577 * testsuite/libgomp.dg/copyin-1.c: New test.
578 * testsuite/libgomp.c++/copyin-1.C: New test.
580 2005-10-26 Jakub Jelinek <jakub@redhat.com>
582 * testsuite/libgomp.fortran/crayptr1.f90: New test.
584 * testsuite/libgomp.fortran/workshare1.f90: New test.
586 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
588 * libgomp.fortran/sharing1.f90: New test.
590 2005-10-24 Jakub Jelinek <jakub@redhat.com>
593 * testsuite/libgomp.c++/loop-7.C: New test.
595 * testsuite/libgomp.dg/nestedfn-2.c: New test.
597 * testsuite/libgomp.dg/nestedfn-1.c: New test.
598 * testsuite/libgomp.fortran/reduction6.f90: New test.
599 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
601 2005-10-23 Richard Henderson <rth@redhat.com>
603 * testsuite/libgomp.c++/ctor-1.C: New.
604 * testsuite/libgomp.c++/ctor-2.C: New.
605 * testsuite/libgomp.c++/ctor-3.C: New.
606 * testsuite/libgomp.c++/ctor-4.C: New.
607 * testsuite/libgomp.c++/ctor-5.C: New.
608 * testsuite/libgomp.c++/ctor-6.C: New.
609 * testsuite/libgomp.c++/ctor-7.C: New.
610 * testsuite/libgomp.c++/ctor-8.C: New.
611 * testsuite/libgomp.c++/ctor-9.C: New.
613 2005-10-21 Diego Novillo <dnovillo@redhat.com>
616 * testsuite/libgomp.c++/pr24455-1.C: New test.
617 * testsuite/libgomp.c++/pr24455.C: New test.
618 * testsuite/libgomp.dg/pr24455-1.c: New test.
619 * testsuite/libgomp.dg/pr24455.c: New test.
621 2005-10-20 Richard Henderson <rth@redhat.com>
623 * testsuite/libgomp.c++/loop-6.C: New.
624 * testsuite/libgomp.dg/loop-3.c: New.
626 2005-10-20 Jakub Jelinek <jakub@redhat.com>
628 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
630 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
633 2005-10-19 Diego Novillo <dnovillo@redhat.com>
635 * testsuite/libgomp.fortran/jacobi.f: New test.
637 2005-10-19 Richard Henderson <rth@redhat.com>
639 * configure.tgt (i?86-linux): Default to with_arch instead of
640 CFLAGS. Add -mtune to match target_cpu.
641 (x86_64-linux): Tune to i686.
643 * fortran.c (omp_test_nest_lock_): Fix typo.
645 2005-10-19 Jakub Jelinek <jakub@redhat.com>
647 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
648 gomp_ordered_sync): Do nothing if team->nthreads == 1.
649 * testsuite/libgomp.dg/ordered-3.c: New test.
651 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
652 Remove volatile keyword.
654 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
655 in COMMON block to avoid warnings on 64-bit targets.
657 2005-10-18 Diego Novillo <dnovillo@redhat.com>
659 * testsuite/libgomp.dg/shared-3.c: New test.
661 2005-10-18 Jakub Jelinek <jakub@redhat.com>
663 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
664 * testsuite/libgomp.fortran/reduction5.f90: New test.
666 2005-10-18 Jakub Jelinek <jakub@redhat.com>
668 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
670 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
671 flush loop now that __sync_synchronize has proper memory barrier.
672 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
673 Add -ffixed-form to dg-options.
675 2005-10-17 Diego Novillo <dnovillo@redhat.com>
677 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
679 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
680 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
681 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
682 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
683 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
684 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
685 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
686 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
687 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
688 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
689 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
690 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
691 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
692 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
693 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
694 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
695 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
696 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
697 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
698 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
699 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
700 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
701 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
702 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
703 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
705 2005-10-17 Jakub Jelinek <jakub@redhat.com>
707 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
708 lang_library_path exists. Use find instead of glob to gather tests.
709 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
711 2005-10-17 Diego Novillo <dnovillo@redhat.com>
713 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
714 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
715 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
716 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
717 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
718 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
719 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
720 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
721 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
722 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
723 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
724 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
725 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
727 2005-10-15 Jakub Jelinek <jakub@redhat.com>
729 * testsuite/libgomp.dg/vla-1.c: New test.
731 * testsuite/libgomp.fortran/reference2.f90: New test.
733 * testsuite/libgomp.fortran/character2.f90: Remove explicit
734 declaration of omp_get_thread_num.
735 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
738 * testsuite/libgomp.fortran/reduction1.f90: New test.
739 * testsuite/libgomp.fortran/reduction2.f90: New test.
740 * testsuite/libgomp.fortran/reduction3.f90: New test.
741 * testsuite/libgomp.fortran/reduction4.f90: New test.
743 2005-10-13 Richard Henderson <rth@redhat.com>
745 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
746 * Makefile.in: Regenerate.
747 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
748 * libgomp.h: Include bar.h.
749 (struct gomp_barrier): Remove.
750 (struct gomp_team): Add barrier. Replace master_barrier with
751 master_release. Replace threads with ordered_release.
752 (struct gomp_thread): Replace barrier with release.
753 * ordered.c (gomp_ordered_first): Update for ordered_release change.
754 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
755 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
756 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
757 (GOMP_single_copy_end): Likewise.
758 * team.c (gomp_threads_dock): New.
759 (gomp_barrier_init, gomp_barrier_destroy): Remove.
760 (gomp_thread_start): Use gomp_barrier_wait.
761 (new_team, free_team): Update for gomp_team changes.
762 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
763 (gomp_team_end): Use gomp_barrier_wait.
764 (initialize_team): Update for gomp_thread changes.
765 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
766 (gomp_work_share_end_nowait): Use atomic ops when available.
767 * config/linux/bar.c, config/linux/bar.h: New files.
768 * config/posix/bar.c, config/posix/bar.h: New files.
770 2005-10-13 Jakub Jelinek <jakub@redhat.com>
772 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
773 * testsuite/libgomp.dg/single-2.c: New test.
775 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
776 lang_link_flags): Unset, so that they aren't inherited from previously
779 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
781 2005-10-12 Richard Henderson <rth@redhat.com>
783 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
784 (libgomp_init): Use lang_test_file, lang_library_path, and
785 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
787 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
788 (lang_test_file, lang_link_flags): New.
789 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
791 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
792 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
793 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
794 testsuite/libgomp.c++/parallel-1.C,
795 testsuite/libgomp.c++/reduction-1.C,
796 testsuite/libgomp.c++/reduction-2.C,
797 testsuite/libgomp.c++/reduction-3.C,
798 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
799 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
800 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
801 New files, largely cribbed from the C testsuite.
803 2005-10-12 Jakub Jelinek <jakub@redhat.com>
805 * testsuite/libgomp.fortran/character1.f90: New test.
806 * testsuite/libgomp.fortran/character2.f90: New test.
808 * testsuite/libgomp.dg/nested-1.c: New test.
809 * testsuite/libgomp.dg/nested-2.c: New test.
810 * testsuite/libgomp.fortran/do1.f90: New test.
811 * testsuite/libgomp.fortran/do2.f90: New test.
813 * testsuite/libgomp.fortran/reference1.f90: New test.
815 2005-10-11 Jakub Jelinek <jakub@redhat.com>
817 * testsuite/libgomp.dg/reduction-1.c: New test.
818 * testsuite/libgomp.dg/reduction-2.c: New test.
819 * testsuite/libgomp.dg/reduction-3.c: New test.
821 2005-10-10 Jakub Jelinek <jakub@redhat.com>
823 * testsuite/libgomp.dg/atomic-1.c: New test.
824 * testsuite/libgomp.dg/atomic-2.c: New test.
826 2005-10-09 Richard Henderson <rth@redhat.com>
828 * critical.c (atomic_lock): New.
829 (initialize_critical): Initialize it.
830 (GOMP_atomic_start, GOMP_atomic_end): New.
831 * libgomp.map: Export them.
832 * libgomp_g.h: Declare them.
834 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
836 2005-10-02 Richard Henderson <rth@redhat.com>
838 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
839 to XCFLAGS instead of CFLAGS.
841 2005-09-30 Richard Henderson <rth@redhat.com>
843 * configure.ac: Determine whether -pthread or -lpthread is needed.
844 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
845 * Makefine.in, configure: Rebuild.
847 2005-09-28 Richard Henderson <rth@redhat.com>
849 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
850 * testsuite/libgomp.dg/omp-single-3.c: New test.
852 2005-09-28 Diego Novillo <dnovillo@redhat.com>
854 * testsuite/libgomp.dg/omp-single-2.c: New test.
855 * testsuite/libgomp.dg/shared-2.c: Fix return code.
857 2005-09-27 Richard Henderson <rth@redhat.com>
859 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
860 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
862 2005-09-27 Jakub Jelinek <jakub@redhat.com>
864 * testsuite/libgomp.dg/omp-loop03.c: New test.
866 2005-09-27 Diego Novillo <dnovillo@redhat.com>
868 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
870 2005-09-27 Diego Novillo <dnovillo@redhat.com>
872 * testsuite/libgomp.dg/omp-single-1.c: New test.
873 * testsuite/libgomp.dg/shared-1.c: Return 0.
874 Add prototype for abort.
875 * testsuite/libgomp.dg/shared-2.c: Likewise.
877 2005-09-26 Jakub Jelinek <jakub@redhat.com>
879 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
882 2005-09-26 Diego Novillo <dnovillo@redhat.com>
884 * testsuite/libgomp.dg/shared-1.c: New test.
885 * testsuite/libgomp.dg/shared-2.c: New test.
887 2005-09-24 Richard Henderson <rth@redhat.com>
889 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
891 2005-09-24 Richard Henderson <rth@redhat.com>
893 * iter.c (gomp_iter_static_next): Round up when computing number
894 of iterations. Don't bother distributing a remainder equally.
896 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
897 Don't call srand. Zero b before testing.
900 2005-09-24 Jakub Jelinek <jakub@redhat.com>
902 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
903 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
905 2005-09-23 Jakub Jelinek <jakub@redhat.com>
907 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
908 without !$omp end do, followed immediately by subroutine end.
910 2005-09-23 Diego Novillo <dnovillo@redhat.com>
912 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
914 2005-09-22 Richard Henderson <rth@redhat.com>
916 * critical.c (GOMP_critical_name_start): Change argument to void**.
917 Reuse the pointer space if the mutex fits.
918 (GOMP_critical_name_end): Likewise.
919 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
920 * libgomp_g.h (GOMP_critical_name_start): Update decl.
921 (GOMP_critical_name_end): Likewise.
922 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
923 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
925 2005-09-20 Richard Henderson <rth@redhat.com>
927 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
928 (create_lock_lock): New.
929 (initialize_critical): Initialize it.
930 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
931 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
933 2005-09-20 Diego Novillo <dnovillo@redhat.com>
935 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
937 2005-09-20 Diego Novillo <dnovillo@redhat.com>
939 * testsuite/libgomp.dg/omp-loop01.c: New test.
940 * testsuite/libgomp.dg/omp-loop02.c: New test.
942 2005-09-20 Jakub Jelinek <jakub@redhat.com>
944 * configure.ac (AC_PROG_FC): Add.
945 (USE_FORTRAN): New automake conditional.
946 * configure: Rebuilt.
947 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
948 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
949 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
950 Add rules to build them.
951 * Makefile.in: Rebuilt.
952 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
954 * libgomp.map: Add Fortran wrappers.
955 * libgomp_f.h.in: New file.
956 * omp_lib.h.in: New file.
957 * omp_lib.f90.in: New file.
958 * fortran.c: New file.
959 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
960 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
961 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
962 libgfortran has been built.
963 * testsuite/libgomp.fortran/fortran.exp: New file.
964 * testsuite/libgomp.fortran/omp_cond1.f: New test.
965 * testsuite/libgomp.fortran/omp_cond2.f: New test.
966 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
967 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
968 * testsuite/libgomp.fortran/omp_hello.f: New test.
969 * testsuite/libgomp.fortran/omp_orphan.f: New test.
970 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
971 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
972 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
973 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
974 * testsuite/libgomp.fortran/omp_reduction.f: New test.
975 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
976 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
978 2005-08-30 Richard Henderson <rth@redhat.com>
980 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
981 function for when aliases are not usable.
982 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
983 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
984 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
985 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
986 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
987 GOMP_loop_ordered_guided_next): Likewise.
988 * ordered.c (GOMP_ordered_start): Likewise.
990 2005-08-01 Diego Novillo <dnovillo@redhat.com>
992 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
993 * testsuite/libgomp.dg/omp_hello.c: Fix return code
994 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
995 * testsuite/libgomp.dg/omp_orphan.c: Likewise
996 * testsuite/libgomp.dg/omp_reduction.c: Likewise
997 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
998 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
999 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1000 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1002 2005-07-07 Eric Christopher <echristo@redhat.com>
1003 Diego Novillo <dnovillo@redhat.com>
1005 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1006 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1008 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1009 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1010 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1011 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1012 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1013 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1014 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1016 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1018 * TOPLEVEL.patch: Remove.
1020 2005-05-16 Richard Henderson <rth@redhat.com>
1022 * configure.ac: Test for clock_gettime.
1023 * config.h.in, configure: Rebuild.
1024 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1025 (omp_get_wtime): Use clock_gettime if available.
1026 (omp_get_wtick): Use clock_getres if available.
1028 2005-05-11 Richard Henderson <rth@redhat.com>
1030 * config/linux/ia64/futex.h: New file.
1031 * configure.tgt: Use it.
1033 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1035 2005-05-07 Richard Henderson <rth@redhat.com>
1037 * config/linux/powerpc/futex.h: New file.
1038 * configure.tgt: Use it.
1040 * config/linux/i486/futex.h: Merge ...
1041 * config/linux/x86_64/futex.h: ... into ...
1042 * config/linux/x86/futex.h: ... here.
1043 * configure.tgt: Update to match.
1045 2005-05-06 Richard Henderson <rth@redhat.com>
1047 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1048 * config/linux/i486/futex.h: Likewise.
1049 * config/linux/x86_64/futex.h: Likewise.
1051 * config/linux/lock.c: New file.
1052 * config/linux/omp-lock.h: New file.
1054 * critical.c, env.h: Don't include omp.h
1055 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1056 * config/posix/time.c: Likewise.
1057 * config/posix/omp-lock.h: New file.
1058 * libgomp.h: Include omp-lock.h and omp.h.
1059 * Makefile.am (nodist_include_HEADERS): New.
1061 * configure.ac (PERL): New.
1062 * mkomp_h.pl: New file.
1063 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1065 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1067 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1068 build directory. Re-add -march=i486 hack.
1070 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1071 (libgomp_link_flags): Remove.
1072 (libgomp_initialized): Remove.
1073 (libgomp_init): Don't protect from reinitialization. Copy code
1074 from libstdc++ for getting the multilib set correctly.
1076 2005-05-05 Richard Henderson <rth@redhat.com>
1078 * config/linux/alpha/futex.h: New file.
1079 * configure.tgt (alpha*-*-linux*): Use it.
1081 * config/posix/mutex.c: New file.
1082 * config/posix/sem.c: Use libgomp.h.
1084 * configure.tgt (x86_64-linux): Also test CC for -m32.
1085 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1087 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1090 * Makefile.am (SUBDIRS): New.
1091 (libgomp_la_LDFLAGS): Add -lpthread.
1092 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1093 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1095 * libgomp_g.h: New file.
1096 * libgomp.h: Split out all public declarations to libgomp_g.h.
1097 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1098 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1099 * config/linux/sem.h: Likewise.
1100 * config/posix/sem.h: Likewise.
1102 * Makefile.am (AM_LDFLAGS): New.
1103 (libgomp_version_script): Split out from ...
1104 (libgomp_la_LDFLAGS): ... here.
1105 (libgomp_version_info): New.
1106 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1107 (LIBGOMP_ENABLE): New.
1108 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1109 (LIBGOMP_ENABLE_SYMVERS): New.
1110 * configure.ac (AC_INIT): Version 1.0.
1111 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1112 (enable-linux-futex): Likewise. Rename from enable-futex.
1113 (libtool_VERSION): New.
1114 (LIBGOMP_ENABLE_SYMVERS): Use it.
1115 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1116 * Makefile.in, aclocal.m4, configure: Rebuild.
1118 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1119 (gomp_mutex_unlock_slow): Fix typo.
1120 * config/linux/sem.c: Similarly.
1121 (gomp_sem_post_slow): Fix typo.
1122 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1123 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1124 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1126 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1127 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1128 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1129 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1130 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1131 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1132 LDFLAGS. Pull enable_futex check to top-level.
1133 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1134 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1136 First attempt at real configury.
1137 * Makefile, config.h: Remove file.
1138 * Makefile.am, Makefile.in: New file.
1139 * acinclude.m4 aclocal.m4: New file.
1140 * configure.ac, configure.tgt, configure: New file.
1142 * config/posix/lock.c: Rename from sys-lock.c.
1143 * config/posix/mutex.h: Rename from sys-mutex.h.
1144 * config/posix/sem.c: Rename from sys-sem.c.
1145 * config/posix/sem.h: Rename from sys-sem.h.
1146 * config/posix/proc.c: Rename from sys-proc.c.
1147 * config/posix/time.c: Rename from sys-proc.c.
1149 * config/linux/mutex.c: New file.
1150 * config/linux/mutex.h: New file.
1151 * config/linux/sem.c: New file.
1152 * config/linux/sem.h: New file.
1153 * config/linux/i486/futex.h: New file.
1154 * config/linux/x86_64/futex.h: New file.
1156 2005-05-04 Richard Henderson <rth@redhat.com>
1158 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1159 * libgomp.h: Declare them.
1160 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1161 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1163 2005-05-04 Richard Henderson <rth@redhat.com>
1165 * libgomp-1 code drop
1167 2005-05-04 Richard Henderson <rth@redhat.com>
1169 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1170 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1171 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1172 (gomp_iter_static_next): Update.
1173 (gomp_ordered_static_next): Update.
1174 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1175 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1176 totally empty range.
1177 (gomp_loop_ordered_static_next): Refine test for calling
1178 gomp_ordered_static_next.
1179 * testsuite/ordered-1.c: Add case for more threads than iterations.
1181 * iter.c (gomp_iter_runtime_next_locked): Remove.
1182 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1183 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1184 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1185 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1186 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1187 gomp_loop_ordered_guided_next): Downcase name, make static, add
1188 an external alias with the old name.
1189 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1190 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1191 switch and call one of the above static functions.
1192 * libgomp.h: Update.
1194 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1195 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1196 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1197 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1198 GOMP_loop_ordered_guided_start): Update to match.
1199 * sections.c (GOMP_sections_start): Likewise.
1200 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1202 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1203 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1204 Use bounds check instead of modulus.
1205 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1206 (gomp_ordered_last): Don't sync with ordered_owner here.
1207 (gomp_ordered_next): Likewise.
1208 (gomp_ordered_static_loop_next): Likewise.
1209 * loop.c, libgomp.h: Update to match.
1211 * libgomp.h (GOMP_barrier): Declare.
1213 * testsuite/barrier-1.c: New file.
1214 * testsuite/critical-1.c: New file.
1215 * testsuite/ordered-2.c: New file.
1216 * testsuite/ordered-1.c: New file.
1217 * testsuite/sections-1.c: New file.
1218 * testsuite/single-1.c: New file.
1219 * testsuite/Makefile (TESTS): Add them.
1221 2005-05-04 Richard Henderson <rth@redhat.com>
1223 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1224 * loop.c (GOMP_loop_static_start): If not the startup thread,
1225 acquire the mutex to wait for initialization complete.
1226 (GOMP_loop_ordered_static_start): Likewise.
1227 (GOMP_loop_ordered_runtime_start): Likewise.
1228 (GOMP_loop_ordered_static_first): Remove.
1229 (GOMP_loop_ordered_dynamic_first): Remove.
1230 (GOMP_loop_ordered_guided_first): Remove.
1231 (GOMP_loop_ordered_runtime_first): Remove.
1232 * ordered.c (gomp_ordered_loop_first): Post to own release when
1233 we're the first thread.
1234 (gomp_ordered_loop_last): Wait on release if not owner.
1235 (gomp_ordered_loop_next): Likewise.
1236 (gomp_ordered_static_loop_init): New.
1237 (gomp_ordered_static_loop_next): Use ordered_owner.
1238 (GOMP_ordered_start): Likewise.
1239 * work.c (gomp_new_work_share): Initialize ordered_owner.
1241 2005-05-03 Richard Henderson <rth@redhat.com>
1243 * Makefile (OPT): New.
1246 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1247 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1248 * libgomp.h, libgomp.map, NOTES: Update to match.
1250 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1251 Add initialized and thr members.
1252 (gomp_thread_start): Pause when initially spawned to wait for
1253 the whole team to be created.
1254 (gomp_team_start): Release team members at the end.
1256 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1257 (f_foo_1): Use GOMP_loop_end.
1258 (f_foo_2): Use GOMP_loop_end_nowait.
1260 * testsuite/loop-2.c: New file.
1261 * testsuite/Makefile (TESTS): Add it.
1263 2005-05-03 Richard Henderson <rth@redhat.com>
1265 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1266 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1267 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1270 * testsuite/Makefile: New file.
1271 * testsuite/loop-1.c: New file.
1273 2005-05-03 Richard Henderson <rth@redhat.com>
1275 Initial implementation and checkin.