1 2006-06-21 Jakub Jelinek <jakub@redhat.com>
3 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
7 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11 * configure.ac: If neither --enable-linux-futex nor
12 --disable-linux-futex is passed, determine the default by checking
13 for compiling and/or running against NPTL. With --enable-linux-futex,
14 check if SYS_gettid and SYS_futex are defined.
17 2006-06-14 Richard Henderson <rth@redhat.com>
20 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
21 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
23 2006-06-09 Richard Henderson <rth@redhat.com>
25 * env.c (gomp_nthreads_var): Change to unsigned long.
26 (gomp_run_sched_chunk): Likewise.
27 (parse_unsigned_long): Rename from parse_num_threads and generalize.
28 (initialize_env): Initialize gomp_thread_attr.
29 * libgomp.h (gomp_nthreads_var): Update decl.
30 (gomp_run_sched_chunk): Likewise.
31 (gomp_thread_attr): Declare.
32 * team.c (gomp_thread_attr): Export.
33 (initialize_team): Don't initialize it.
35 2006-06-09 Jakub Jelinek <jakub@redhat.com>
38 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
39 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
41 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
43 * config/mingw32/time.c: New file.
44 * configure.tgt: Use it.
46 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
48 * Makefile.am: Add install-html target. Add install-html to .PHONY
49 * Makefile.in: Regenerate.
51 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
54 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
55 * testsuite/libgomp.c/critical-1.c: Likewise.
56 * testsuite/libgomp.c/loop-1.c: Likewise.
57 * testsuite/libgomp.c/loop-2.c: Likewise.
58 * testsuite/libgomp.c/single-1.c: Likewise.
59 * testsuite/libgomp.c/ordered-1.c: Likewise.
60 * testsuite/libgomp.c/ordered-2.c: Likewise.
62 2006-05-15 Jakub Jelinek <jakub@redhat.com>
65 * libgomp.fortran/pr27416-1.f90: New test.
67 2006-05-03 Jakub Jelinek <jakub@redhat.com>
70 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
71 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
73 2006-05-02 Jakub Jelinek <jakub@redhat.com>
76 * testsuite/libgomp.c/pr26943-1.c: New test.
77 * testsuite/libgomp.c/pr26943-2.c: New test.
78 * testsuite/libgomp.c/pr26943-3.c: New test.
79 * testsuite/libgomp.c/pr26943-4.c: New test.
80 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
81 * testsuite/libgomp.c++/pr26943.C: New test.
83 2006-05-02 Jakub Jelinek <jakub@redhat.com>
86 * testsuite/libgomp.c++/pr27337.C: New test.
88 2006-04-26 Jakub Jelinek <jakub@redhat.com>
91 * testsuite/libgomp.c/pr26171.c: New test.
93 2006-04-25 Richard Henderson <rth@redhat.com>
96 * configure.ac: Use GCC_CHECK_TLS.
97 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
98 * Makefile.in, aclocal.m4, configure: Regenerate.
100 2006-04-10 Matthias Klose <doko@debian.org>
102 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
103 directory names containing underscores.
105 2006-03-21 Jakub Jelinek <jakub@redhat.com>
108 * testsuite/libgomp.c++/pr26691.C: New test.
110 2006-03-13 Jakub Jelinek <jakub@redhat.com>
112 * testsuite/libgomp.fortran/retval2.f90: New test.
114 2006-03-09 Diego Novillo <dnovillo@redhat.com>
116 * testsuite/libgomp.c++: New directory.
118 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
120 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
121 * config/posix/sem.c: Implement the above.
123 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
125 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
126 define HAVE_BROKEN_POSIX_SEMAPHORES.
127 * configure: Rebuilt.
128 * config.h.in: Rebuilt.
130 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
133 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
134 for the other pthread check.
135 * configure: Regenerate.
136 * config.h.in: Regenerate.
138 2006-02-15 Jakub Jelinek <jakub@redhat.com>
142 * Makefile.am (fincludedir): New variable.
143 (nodist_include_HEADERS): Remove Fortran files.
144 (nodist_finclude_HEADERS): New variable.
145 * Makefile.in: Regenerated.
147 2006-02-13 Jakub Jelinek <jakub@redhat.com>
149 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
150 Remove tests for returning assumed character length arrays.
152 2006-02-12 Roger Sayle <roger@eyesopen.com>
153 John David Anglin <dave@hiauly1.hia.nrc.ca>
156 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
158 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
160 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
162 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
164 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
165 part of LD_LIBRARY_PATH manually.
167 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
170 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
173 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
176 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
177 * configure.ac (PERL): Don't set.
178 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
179 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
180 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
181 * omp.h.in: Wrap the new configure substitutions with @ characters.
182 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
183 * aclocal.m4, configure, Makefile.in: Regenerate.
184 * mkomp_h.pl: Delete.
186 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
189 * configure.ac: Use GCC_HEADER_STDINT.
190 * libgomp.h: Include gstdint.h.
191 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
192 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
194 2006-01-24 Richard Henderson <rth@redhat.com>
197 * configure.ac: Add AM_MAINTAINER_MODE.
198 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
200 2006-01-24 Diego Novillo <dnovillo@redhat.com>
202 * Makefile.in: Regenerate.
203 * testsuite/Makefile.in: Regenerate.
204 * aclocal.m4: Regenerate.
206 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
208 * config/posix/proc.c: Conditional include of sys/loadavg.h for
210 * configure.ac: Add check for loadavg.h.
211 (link_gomp): Adjust comment.
212 * configure: Regenerate.
213 * config.h.in: Regenerate.
215 2006-01-21 Steve Ellcey <sje@cup.hp.com>
218 * configure.ac: Remove check for alloca.h.
219 * configure: Regenerate.
220 * config.h.in: Regenerate.
221 * libgomp.h: define gomp_alloca to be __builtin_alloca.
222 * team.c: Remove use of alloca.h.
223 Call gomp_alloca instead of alloca.
225 2006-01-20 Steve Ellcey <sje@cup.hp.com>
228 * team.c: Add include of alloca.h.
229 * configure.ac: Add check for alloca.h.
230 * configure: Regenerate.
231 * config.h.in: Regenerate.
233 2006-01-17 Jakub Jelinek <jakub@redhat.com>
236 * testsuite/libgomp.fortran/pr25219.f90: New test.
238 2005-12-05 Uros Bizjak <uros@kss-loka.si>
240 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
241 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
242 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
243 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
244 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
245 testsuite/libgomp.fortran/threadprivate1.f90,
246 testsuite/libgomp.fortran/threadprivate2.f90,
247 testsuite/libgomp.fortran/threadprivate3.f90,
248 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
249 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
250 testsuite/libgomp.fortran/omp_parse3.f90: Change required
251 effective-target to TLS runtime.
253 * testsuite/libgomp.fortran/pr25162.f: Require
254 effective-target TLS runtime.
256 2005-12-01 Jakub Jelinek <jakub@redhat.com>
258 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
259 * testsuite/libgomp.c/nestedfn-3.c: New test.
261 2005-11-30 Jakub Jelinek <jakub@redhat.com>
264 * testsuite/libgomp.fortran/pr25162.f: New test.
266 2005-11-28 Jakub Jelinek <jakub@redhat.com>
268 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
269 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
271 2005-11-25 Jakub Jelinek <jakub@redhat.com>
273 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
274 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
275 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
276 single.c, team.c, work.c, config/linux/alpha/futex.h,
277 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
278 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
279 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
280 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
281 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
282 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
283 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
286 2005-11-18 Jakub Jelinek <jakub@redhat.com>
288 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
289 to nodist_noinst_HEADERS.
290 * Makefile.in: Rebuilt.
292 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
293 add integer count field.
294 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
295 omp_nest_lock_t type change.
296 (omp_init_nest_lock): Likewise. Initialize count to 0.
297 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
299 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
301 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
302 Increment count if successful and return the new nesting level.
303 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
304 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
305 * testsuite/libgomp.c/lib-1.c: New test.
306 * testsuite/libgomp.fortran/lib1.f90: New test.
307 * testsuite/libgomp.fortran/lib2.f: New test.
308 * testsuite/libgomp.fortran/lib3.f: New test.
310 2005-11-17 Richard Henderson <rth@redhat.com>
313 * Makefile.am (nodist_toolexeclib_HEADERS): New.
314 * configure.ac (link_gomp): New. Substitute it.
315 (AC_CONFIG_FILES): Add libgomp.spec.
316 * libgomp.spec.in: New file.
317 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
318 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
320 2005-11-18 Jakub Jelinek <jakub@redhat.com>
322 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
323 reduction(-:var) behaving the same as reduction(+:var).
324 * testsuite/libgomp.c/reduction-4.c: New test.
326 2005-11-15 Uros Bizjak <uros@kss-loka.si>
328 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
329 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
330 testsuite/libgomp.c/copyin-3.c,
331 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
332 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
333 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
334 testsuite/libgomp.c++/pr24455.C,
335 testsuite/libgomp.fortran/threadprivate1.f90,
336 testsuite/libgomp.fortran/threadprivate2.f90,
337 testsuite/libgomp.fortran/threadprivate3.f90,
338 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
339 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
340 testsuite/libgomp.fortran/omp_parse3.f90: Require
341 effective-target TLS.
343 2005-11-14 Diego Novillo <dnovillo@redhat.com>
347 2005-11-13 Jakub Jelinek <jakub@redhat.com>
350 * team.c (initialize_team): Pass NULL rather than free as
351 pthread_key_create destructor. Initialize thread specific data
352 pointer in initial thread to a static local variable rather than
355 2005-11-11 Uros Bizjak <uros@kss-loka.si>
357 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
358 its location to ld_library_path.
360 2005-11-10 Diego Novillo <dnovillo@redhat.com>
362 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
364 2005-11-10 Diego Novillo <dnovillo@redhat.com>
366 * testsuite/libgomp.c: Rename from libgomp.dg.
368 2005-11-09 Diego Novillo <dnovillo@redhat.com>
370 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
371 threadprivate variable 'i'.
373 2005-11-09 Jakub Jelinek <jakub@redhat.com>
375 * config/linux/s390/futex.h: New file.
376 * configure.tgt: Use it.
378 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
381 2005-11-08 Jakub Jelinek <jakub@redhat.com>
384 * testsuite/libgomp.c++/master-1.C: New test.
386 2005-11-07 Jakub Jelinek <jakub@redhat.com>
388 * testsuite/libgomp.dg/copyin-3.c: New test.
390 2005-11-07 Jakub Jelinek <jakub@redhat.com>
392 * testsuite/libgomp.fortran/retval1.f90: New test.
393 * testsuite/libgomp.fortran/vla7.f90: New test.
395 2005-11-06 Jakub Jelinek <jakub@redhat.com>
397 * testsuite/libgomp.fortran/vla2.f90: New test.
398 * testsuite/libgomp.fortran/vla3.f90: New test.
399 * testsuite/libgomp.fortran/vla4.f90: New test.
400 * testsuite/libgomp.fortran/vla5.f90: New test.
401 * testsuite/libgomp.fortran/vla6.f90: New test.
403 2005-11-01 Jakub Jelinek <jakub@redhat.com>
405 * config/linux/sparc/futex.h: New file.
406 * configure.tgt: Use it.
407 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
409 * critical.c: Include stdlib.h.
410 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
411 ignoring return value.
412 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
413 LIBGOMP_CHECK_SYNC_BUILTINS check.
414 * configure: Rebuilt.
416 2005-10-31 Jakub Jelinek <jakub@redhat.com>
418 * testsuite/libgomp.fortran/vla1.f90: New test.
420 2005-10-31 Richard Henderson <rth@redhat.com>
422 * testsuite/libgomp.fortran/character2.f90: Fix race condition
423 setting 's' in different threads.
425 2005-10-31 Jakub Jelinek <jakub@redhat.com>
427 * libgomp.h (attribute_hidden, ialias): Define.
428 * config/posix/proc.c (omp_get_num_procs): Add ialias.
429 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
430 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
431 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
432 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
433 omp_test_lock, omp_test_nest_lock): Likewise.
434 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
435 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
436 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
437 omp_test_lock, omp_test_nest_lock): Likewise.
438 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
439 omp_get_dynamic, omp_get_nested): Likewise.
440 * parallel.c (omp_get_num_threads, omp_get_max_threads,
441 omp_get_thread_num, omp_in_parallel): Likewise.
442 * fortran.c (ialias_redirect): Define.
443 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
444 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
445 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
446 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
447 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
448 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
449 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
450 omp_get_wtime): Add ialias_redirect.
452 2005-10-30 Jakub Jelinek <jakub@redhat.com>
454 * fortran.c: Include stdlib.h.
456 2005-10-29 Jakub Jelinek <jakub@redhat.com>
458 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
459 * Makefile.in: Regenerated.
461 2005-10-28 Jakub Jelinek <jakub@redhat.com>
463 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
464 * libgomp_f.h.in (omp_check_defines): New function.
465 * env.c: Include libgomp_f.h.
466 (initialize_env): Call omp_check_defines.
468 * testsuite/libgomp.dg/copyin-2.c: New test.
469 * testsuite/libgomp.c++/copyin-2.C: New test.
470 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
472 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
473 * testsuite/libgomp.fortran/sharing2.f90: New test.
475 * testsuite/libgomp.dg/copyin-1.c: New test.
476 * testsuite/libgomp.c++/copyin-1.C: New test.
478 2005-10-26 Jakub Jelinek <jakub@redhat.com>
480 * testsuite/libgomp.fortran/crayptr1.f90: New test.
482 * testsuite/libgomp.fortran/workshare1.f90: New test.
484 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
486 * libgomp.fortran/sharing1.f90: New test.
488 2005-10-24 Jakub Jelinek <jakub@redhat.com>
491 * testsuite/libgomp.c++/loop-7.C: New test.
493 * testsuite/libgomp.dg/nestedfn-2.c: New test.
495 * testsuite/libgomp.dg/nestedfn-1.c: New test.
496 * testsuite/libgomp.fortran/reduction6.f90: New test.
497 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
499 2005-10-23 Richard Henderson <rth@redhat.com>
501 * testsuite/libgomp.c++/ctor-1.C: New.
502 * testsuite/libgomp.c++/ctor-2.C: New.
503 * testsuite/libgomp.c++/ctor-3.C: New.
504 * testsuite/libgomp.c++/ctor-4.C: New.
505 * testsuite/libgomp.c++/ctor-5.C: New.
506 * testsuite/libgomp.c++/ctor-6.C: New.
507 * testsuite/libgomp.c++/ctor-7.C: New.
508 * testsuite/libgomp.c++/ctor-8.C: New.
509 * testsuite/libgomp.c++/ctor-9.C: New.
511 2005-10-21 Diego Novillo <dnovillo@redhat.com>
514 * testsuite/libgomp.c++/pr24455-1.C: New test.
515 * testsuite/libgomp.c++/pr24455.C: New test.
516 * testsuite/libgomp.dg/pr24455-1.c: New test.
517 * testsuite/libgomp.dg/pr24455.c: New test.
519 2005-10-20 Richard Henderson <rth@redhat.com>
521 * testsuite/libgomp.c++/loop-6.C: New.
522 * testsuite/libgomp.dg/loop-3.c: New.
524 2005-10-20 Jakub Jelinek <jakub@redhat.com>
526 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
528 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
531 2005-10-19 Diego Novillo <dnovillo@redhat.com>
533 * testsuite/libgomp.fortran/jacobi.f: New test.
535 2005-10-19 Richard Henderson <rth@redhat.com>
537 * configure.tgt (i?86-linux): Default to with_arch instead of
538 CFLAGS. Add -mtune to match target_cpu.
539 (x86_64-linux): Tune to i686.
541 * fortran.c (omp_test_nest_lock_): Fix typo.
543 2005-10-19 Jakub Jelinek <jakub@redhat.com>
545 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
546 gomp_ordered_sync): Do nothing if team->nthreads == 1.
547 * testsuite/libgomp.dg/ordered-3.c: New test.
549 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
550 Remove volatile keyword.
552 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
553 in COMMON block to avoid warnings on 64-bit targets.
555 2005-10-18 Diego Novillo <dnovillo@redhat.com>
557 * testsuite/libgomp.dg/shared-3.c: New test.
559 2005-10-18 Jakub Jelinek <jakub@redhat.com>
561 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
562 * testsuite/libgomp.fortran/reduction5.f90: New test.
564 2005-10-18 Jakub Jelinek <jakub@redhat.com>
566 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
568 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
569 flush loop now that __sync_synchronize has proper memory barrier.
570 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
571 Add -ffixed-form to dg-options.
573 2005-10-17 Diego Novillo <dnovillo@redhat.com>
575 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
577 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
578 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
579 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
580 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
581 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
582 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
583 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
584 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
585 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
586 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
587 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
588 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
589 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
590 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
591 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
592 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
593 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
594 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
595 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
596 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
597 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
598 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
599 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
600 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
601 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
603 2005-10-17 Jakub Jelinek <jakub@redhat.com>
605 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
606 lang_library_path exists. Use find instead of glob to gather tests.
607 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
609 2005-10-17 Diego Novillo <dnovillo@redhat.com>
611 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
612 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
613 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
614 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
615 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
616 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
617 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
618 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
619 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
620 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
621 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
622 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
623 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
625 2005-10-15 Jakub Jelinek <jakub@redhat.com>
627 * testsuite/libgomp.dg/vla-1.c: New test.
629 * testsuite/libgomp.fortran/reference2.f90: New test.
631 * testsuite/libgomp.fortran/character2.f90: Remove explicit
632 declaration of omp_get_thread_num.
633 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
636 * testsuite/libgomp.fortran/reduction1.f90: New test.
637 * testsuite/libgomp.fortran/reduction2.f90: New test.
638 * testsuite/libgomp.fortran/reduction3.f90: New test.
639 * testsuite/libgomp.fortran/reduction4.f90: New test.
641 2005-10-13 Richard Henderson <rth@redhat.com>
643 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
644 * Makefile.in: Regenerate.
645 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
646 * libgomp.h: Include bar.h.
647 (struct gomp_barrier): Remove.
648 (struct gomp_team): Add barrier. Replace master_barrier with
649 master_release. Replace threads with ordered_release.
650 (struct gomp_thread): Replace barrier with release.
651 * ordered.c (gomp_ordered_first): Update for ordered_release change.
652 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
653 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
654 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
655 (GOMP_single_copy_end): Likewise.
656 * team.c (gomp_threads_dock): New.
657 (gomp_barrier_init, gomp_barrier_destroy): Remove.
658 (gomp_thread_start): Use gomp_barrier_wait.
659 (new_team, free_team): Update for gomp_team changes.
660 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
661 (gomp_team_end): Use gomp_barrier_wait.
662 (initialize_team): Update for gomp_thread changes.
663 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
664 (gomp_work_share_end_nowait): Use atomic ops when available.
665 * config/linux/bar.c, config/linux/bar.h: New files.
666 * config/posix/bar.c, config/posix/bar.h: New files.
668 2005-10-13 Jakub Jelinek <jakub@redhat.com>
670 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
671 * testsuite/libgomp.dg/single-2.c: New test.
673 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
674 lang_link_flags): Unset, so that they aren't inherited from previously
677 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
679 2005-10-12 Richard Henderson <rth@redhat.com>
681 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
682 (libgomp_init): Use lang_test_file, lang_library_path, and
683 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
685 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
686 (lang_test_file, lang_link_flags): New.
687 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
689 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
690 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
691 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
692 testsuite/libgomp.c++/parallel-1.C,
693 testsuite/libgomp.c++/reduction-1.C,
694 testsuite/libgomp.c++/reduction-2.C,
695 testsuite/libgomp.c++/reduction-3.C,
696 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
697 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
698 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
699 New files, largely cribbed from the C testsuite.
701 2005-10-12 Jakub Jelinek <jakub@redhat.com>
703 * testsuite/libgomp.fortran/character1.f90: New test.
704 * testsuite/libgomp.fortran/character2.f90: New test.
706 * testsuite/libgomp.dg/nested-1.c: New test.
707 * testsuite/libgomp.dg/nested-2.c: New test.
708 * testsuite/libgomp.fortran/do1.f90: New test.
709 * testsuite/libgomp.fortran/do2.f90: New test.
711 * testsuite/libgomp.fortran/reference1.f90: New test.
713 2005-10-11 Jakub Jelinek <jakub@redhat.com>
715 * testsuite/libgomp.dg/reduction-1.c: New test.
716 * testsuite/libgomp.dg/reduction-2.c: New test.
717 * testsuite/libgomp.dg/reduction-3.c: New test.
719 2005-10-10 Jakub Jelinek <jakub@redhat.com>
721 * testsuite/libgomp.dg/atomic-1.c: New test.
722 * testsuite/libgomp.dg/atomic-2.c: New test.
724 2005-10-09 Richard Henderson <rth@redhat.com>
726 * critical.c (atomic_lock): New.
727 (initialize_critical): Initialize it.
728 (GOMP_atomic_start, GOMP_atomic_end): New.
729 * libgomp.map: Export them.
730 * libgomp_g.h: Declare them.
732 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
734 2005-10-02 Richard Henderson <rth@redhat.com>
736 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
737 to XCFLAGS instead of CFLAGS.
739 2005-09-30 Richard Henderson <rth@redhat.com>
741 * configure.ac: Determine whether -pthread or -lpthread is needed.
742 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
743 * Makefine.in, configure: Rebuild.
745 2005-09-28 Richard Henderson <rth@redhat.com>
747 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
748 * testsuite/libgomp.dg/omp-single-3.c: New test.
750 2005-09-28 Diego Novillo <dnovillo@redhat.com>
752 * testsuite/libgomp.dg/omp-single-2.c: New test.
753 * testsuite/libgomp.dg/shared-2.c: Fix return code.
755 2005-09-27 Richard Henderson <rth@redhat.com>
757 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
758 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
760 2005-09-27 Jakub Jelinek <jakub@redhat.com>
762 * testsuite/libgomp.dg/omp-loop03.c: New test.
764 2005-09-27 Diego Novillo <dnovillo@redhat.com>
766 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
768 2005-09-27 Diego Novillo <dnovillo@redhat.com>
770 * testsuite/libgomp.dg/omp-single-1.c: New test.
771 * testsuite/libgomp.dg/shared-1.c: Return 0.
772 Add prototype for abort.
773 * testsuite/libgomp.dg/shared-2.c: Likewise.
775 2005-09-26 Jakub Jelinek <jakub@redhat.com>
777 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
780 2005-09-26 Diego Novillo <dnovillo@redhat.com>
782 * testsuite/libgomp.dg/shared-1.c: New test.
783 * testsuite/libgomp.dg/shared-2.c: New test.
785 2005-09-24 Richard Henderson <rth@redhat.com>
787 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
789 2005-09-24 Richard Henderson <rth@redhat.com>
791 * iter.c (gomp_iter_static_next): Round up when computing number
792 of iterations. Don't bother distributing a remainder equally.
794 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
795 Don't call srand. Zero b before testing.
798 2005-09-24 Jakub Jelinek <jakub@redhat.com>
800 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
801 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
803 2005-09-23 Jakub Jelinek <jakub@redhat.com>
805 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
806 without !$omp end do, followed immediately by subroutine end.
808 2005-09-23 Diego Novillo <dnovillo@redhat.com>
810 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
812 2005-09-22 Richard Henderson <rth@redhat.com>
814 * critical.c (GOMP_critical_name_start): Change argument to void**.
815 Reuse the pointer space if the mutex fits.
816 (GOMP_critical_name_end): Likewise.
817 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
818 * libgomp_g.h (GOMP_critical_name_start): Update decl.
819 (GOMP_critical_name_end): Likewise.
820 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
821 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
823 2005-09-20 Richard Henderson <rth@redhat.com>
825 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
826 (create_lock_lock): New.
827 (initialize_critical): Initialize it.
828 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
829 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
831 2005-09-20 Diego Novillo <dnovillo@redhat.com>
833 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
835 2005-09-20 Diego Novillo <dnovillo@redhat.com>
837 * testsuite/libgomp.dg/omp-loop01.c: New test.
838 * testsuite/libgomp.dg/omp-loop02.c: New test.
840 2005-09-20 Jakub Jelinek <jakub@redhat.com>
842 * configure.ac (AC_PROG_FC): Add.
843 (USE_FORTRAN): New automake conditional.
844 * configure: Rebuilt.
845 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
846 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
847 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
848 Add rules to build them.
849 * Makefile.in: Rebuilt.
850 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
852 * libgomp.map: Add Fortran wrappers.
853 * libgomp_f.h.in: New file.
854 * omp_lib.h.in: New file.
855 * omp_lib.f90.in: New file.
856 * fortran.c: New file.
857 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
858 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
859 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
860 libgfortran has been built.
861 * testsuite/libgomp.fortran/fortran.exp: New file.
862 * testsuite/libgomp.fortran/omp_cond1.f: New test.
863 * testsuite/libgomp.fortran/omp_cond2.f: New test.
864 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
865 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
866 * testsuite/libgomp.fortran/omp_hello.f: New test.
867 * testsuite/libgomp.fortran/omp_orphan.f: New test.
868 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
869 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
870 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
871 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
872 * testsuite/libgomp.fortran/omp_reduction.f: New test.
873 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
874 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
876 2005-08-30 Richard Henderson <rth@redhat.com>
878 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
879 function for when aliases are not usable.
880 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
881 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
882 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
883 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
884 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
885 GOMP_loop_ordered_guided_next): Likewise.
886 * ordered.c (GOMP_ordered_start): Likewise.
888 2005-08-01 Diego Novillo <dnovillo@redhat.com>
890 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
891 * testsuite/libgomp.dg/omp_hello.c: Fix return code
892 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
893 * testsuite/libgomp.dg/omp_orphan.c: Likewise
894 * testsuite/libgomp.dg/omp_reduction.c: Likewise
895 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
896 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
897 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
898 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
900 2005-07-07 Eric Christopher <echristo@redhat.com>
901 Diego Novillo <dnovillo@redhat.com>
903 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
904 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
906 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
907 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
908 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
909 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
910 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
911 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
912 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
914 2005-06-13 Diego Novillo <dnovillo@redhat.com>
916 * TOPLEVEL.patch: Remove.
918 2005-05-16 Richard Henderson <rth@redhat.com>
920 * configure.ac: Test for clock_gettime.
921 * config.h.in, configure: Rebuild.
922 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
923 (omp_get_wtime): Use clock_gettime if available.
924 (omp_get_wtick): Use clock_getres if available.
926 2005-05-11 Richard Henderson <rth@redhat.com>
928 * config/linux/ia64/futex.h: New file.
929 * configure.tgt: Use it.
931 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
933 2005-05-07 Richard Henderson <rth@redhat.com>
935 * config/linux/powerpc/futex.h: New file.
936 * configure.tgt: Use it.
938 * config/linux/i486/futex.h: Merge ...
939 * config/linux/x86_64/futex.h: ... into ...
940 * config/linux/x86/futex.h: ... here.
941 * configure.tgt: Update to match.
943 2005-05-06 Richard Henderson <rth@redhat.com>
945 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
946 * config/linux/i486/futex.h: Likewise.
947 * config/linux/x86_64/futex.h: Likewise.
949 * config/linux/lock.c: New file.
950 * config/linux/omp-lock.h: New file.
952 * critical.c, env.h: Don't include omp.h
953 * config/posix/lock.c: Include libgomp.h instead of omp.h.
954 * config/posix/time.c: Likewise.
955 * config/posix/omp-lock.h: New file.
956 * libgomp.h: Include omp-lock.h and omp.h.
957 * Makefile.am (nodist_include_HEADERS): New.
959 * configure.ac (PERL): New.
960 * mkomp_h.pl: New file.
961 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
963 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
965 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
966 build directory. Re-add -march=i486 hack.
968 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
969 (libgomp_link_flags): Remove.
970 (libgomp_initialized): Remove.
971 (libgomp_init): Don't protect from reinitialization. Copy code
972 from libstdc++ for getting the multilib set correctly.
974 2005-05-05 Richard Henderson <rth@redhat.com>
976 * config/linux/alpha/futex.h: New file.
977 * configure.tgt (alpha*-*-linux*): Use it.
979 * config/posix/mutex.c: New file.
980 * config/posix/sem.c: Use libgomp.h.
982 * configure.tgt (x86_64-linux): Also test CC for -m32.
983 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
985 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
988 * Makefile.am (SUBDIRS): New.
989 (libgomp_la_LDFLAGS): Add -lpthread.
990 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
991 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
993 * libgomp_g.h: New file.
994 * libgomp.h: Split out all public declarations to libgomp_g.h.
995 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
996 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
997 * config/linux/sem.h: Likewise.
998 * config/posix/sem.h: Likewise.
1000 * Makefile.am (AM_LDFLAGS): New.
1001 (libgomp_version_script): Split out from ...
1002 (libgomp_la_LDFLAGS): ... here.
1003 (libgomp_version_info): New.
1004 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1005 (LIBGOMP_ENABLE): New.
1006 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1007 (LIBGOMP_ENABLE_SYMVERS): New.
1008 * configure.ac (AC_INIT): Version 1.0.
1009 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1010 (enable-linux-futex): Likewise. Rename from enable-futex.
1011 (libtool_VERSION): New.
1012 (LIBGOMP_ENABLE_SYMVERS): Use it.
1013 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1014 * Makefile.in, aclocal.m4, configure: Rebuild.
1016 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1017 (gomp_mutex_unlock_slow): Fix typo.
1018 * config/linux/sem.c: Similarly.
1019 (gomp_sem_post_slow): Fix typo.
1020 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1021 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1022 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1024 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1025 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1026 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1027 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1028 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1029 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1030 LDFLAGS. Pull enable_futex check to top-level.
1031 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1032 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1034 First attempt at real configury.
1035 * Makefile, config.h: Remove file.
1036 * Makefile.am, Makefile.in: New file.
1037 * acinclude.m4 aclocal.m4: New file.
1038 * configure.ac, configure.tgt, configure: New file.
1040 * config/posix/lock.c: Rename from sys-lock.c.
1041 * config/posix/mutex.h: Rename from sys-mutex.h.
1042 * config/posix/sem.c: Rename from sys-sem.c.
1043 * config/posix/sem.h: Rename from sys-sem.h.
1044 * config/posix/proc.c: Rename from sys-proc.c.
1045 * config/posix/time.c: Rename from sys-proc.c.
1047 * config/linux/mutex.c: New file.
1048 * config/linux/mutex.h: New file.
1049 * config/linux/sem.c: New file.
1050 * config/linux/sem.h: New file.
1051 * config/linux/i486/futex.h: New file.
1052 * config/linux/x86_64/futex.h: New file.
1054 2005-05-04 Richard Henderson <rth@redhat.com>
1056 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1057 * libgomp.h: Declare them.
1058 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1059 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1061 2005-05-04 Richard Henderson <rth@redhat.com>
1063 * libgomp-1 code drop
1065 2005-05-04 Richard Henderson <rth@redhat.com>
1067 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1068 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1069 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1070 (gomp_iter_static_next): Update.
1071 (gomp_ordered_static_next): Update.
1072 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1073 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1074 totally empty range.
1075 (gomp_loop_ordered_static_next): Refine test for calling
1076 gomp_ordered_static_next.
1077 * testsuite/ordered-1.c: Add case for more threads than iterations.
1079 * iter.c (gomp_iter_runtime_next_locked): Remove.
1080 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1081 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1082 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1083 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1084 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1085 gomp_loop_ordered_guided_next): Downcase name, make static, add
1086 an external alias with the old name.
1087 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1088 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1089 switch and call one of the above static functions.
1090 * libgomp.h: Update.
1092 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1093 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1094 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1095 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1096 GOMP_loop_ordered_guided_start): Update to match.
1097 * sections.c (GOMP_sections_start): Likewise.
1098 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1100 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1101 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1102 Use bounds check instead of modulus.
1103 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1104 (gomp_ordered_last): Don't sync with ordered_owner here.
1105 (gomp_ordered_next): Likewise.
1106 (gomp_ordered_static_loop_next): Likewise.
1107 * loop.c, libgomp.h: Update to match.
1109 * libgomp.h (GOMP_barrier): Declare.
1111 * testsuite/barrier-1.c: New file.
1112 * testsuite/critical-1.c: New file.
1113 * testsuite/ordered-2.c: New file.
1114 * testsuite/ordered-1.c: New file.
1115 * testsuite/sections-1.c: New file.
1116 * testsuite/single-1.c: New file.
1117 * testsuite/Makefile (TESTS): Add them.
1119 2005-05-04 Richard Henderson <rth@redhat.com>
1121 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1122 * loop.c (GOMP_loop_static_start): If not the startup thread,
1123 acquire the mutex to wait for initialization complete.
1124 (GOMP_loop_ordered_static_start): Likewise.
1125 (GOMP_loop_ordered_runtime_start): Likewise.
1126 (GOMP_loop_ordered_static_first): Remove.
1127 (GOMP_loop_ordered_dynamic_first): Remove.
1128 (GOMP_loop_ordered_guided_first): Remove.
1129 (GOMP_loop_ordered_runtime_first): Remove.
1130 * ordered.c (gomp_ordered_loop_first): Post to own release when
1131 we're the first thread.
1132 (gomp_ordered_loop_last): Wait on release if not owner.
1133 (gomp_ordered_loop_next): Likewise.
1134 (gomp_ordered_static_loop_init): New.
1135 (gomp_ordered_static_loop_next): Use ordered_owner.
1136 (GOMP_ordered_start): Likewise.
1137 * work.c (gomp_new_work_share): Initialize ordered_owner.
1139 2005-05-03 Richard Henderson <rth@redhat.com>
1141 * Makefile (OPT): New.
1144 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1145 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1146 * libgomp.h, libgomp.map, NOTES: Update to match.
1148 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1149 Add initialized and thr members.
1150 (gomp_thread_start): Pause when initially spawned to wait for
1151 the whole team to be created.
1152 (gomp_team_start): Release team members at the end.
1154 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1155 (f_foo_1): Use GOMP_loop_end.
1156 (f_foo_2): Use GOMP_loop_end_nowait.
1158 * testsuite/loop-2.c: New file.
1159 * testsuite/Makefile (TESTS): Add it.
1161 2005-05-03 Richard Henderson <rth@redhat.com>
1163 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1164 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1165 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1168 * testsuite/Makefile: New file.
1169 * testsuite/loop-1.c: New file.
1171 2005-05-03 Richard Henderson <rth@redhat.com>
1173 Initial implementation and checkin.