1 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4 * libgomp.fortran/pr27416-1.f90: New test.
6 2006-05-03 Jakub Jelinek <jakub@redhat.com>
9 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12 2006-05-02 Jakub Jelinek <jakub@redhat.com>
15 * testsuite/libgomp.c/pr26943-1.c: New test.
16 * testsuite/libgomp.c/pr26943-2.c: New test.
17 * testsuite/libgomp.c/pr26943-3.c: New test.
18 * testsuite/libgomp.c/pr26943-4.c: New test.
19 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
20 * testsuite/libgomp.c++/pr26943.C: New test.
22 2006-05-02 Jakub Jelinek <jakub@redhat.com>
25 * testsuite/libgomp.c++/pr27337.C: New test.
27 2006-04-26 Jakub Jelinek <jakub@redhat.com>
30 * testsuite/libgomp.c/pr26171.c: New test.
32 2006-04-25 Richard Henderson <rth@redhat.com>
35 * configure.ac: Use GCC_CHECK_TLS.
36 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
37 * Makefile.in, aclocal.m4, configure: Regenerate.
39 2006-04-10 Matthias Klose <doko@debian.org>
41 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
42 directory names containing underscores.
44 2006-03-21 Jakub Jelinek <jakub@redhat.com>
47 * testsuite/libgomp.c++/pr26691.C: New test.
49 2006-03-13 Jakub Jelinek <jakub@redhat.com>
51 * testsuite/libgomp.fortran/retval2.f90: New test.
53 2006-03-09 Diego Novillo <dnovillo@redhat.com>
55 * testsuite/libgomp.c++: New directory.
57 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
59 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
60 * config/posix/sem.c: Implement the above.
62 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
64 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
65 define HAVE_BROKEN_POSIX_SEMAPHORES.
67 * config.h.in: Rebuilt.
69 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
72 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
73 for the other pthread check.
74 * configure: Regenerate.
75 * config.h.in: Regenerate.
77 2006-02-15 Jakub Jelinek <jakub@redhat.com>
81 * Makefile.am (fincludedir): New variable.
82 (nodist_include_HEADERS): Remove Fortran files.
83 (nodist_finclude_HEADERS): New variable.
84 * Makefile.in: Regenerated.
86 2006-02-13 Jakub Jelinek <jakub@redhat.com>
88 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
89 Remove tests for returning assumed character length arrays.
91 2006-02-12 Roger Sayle <roger@eyesopen.com>
92 John David Anglin <dave@hiauly1.hia.nrc.ca>
95 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
97 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
99 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
101 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
103 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
104 part of LD_LIBRARY_PATH manually.
106 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
109 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
112 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
115 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
116 * configure.ac (PERL): Don't set.
117 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
118 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
119 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
120 * omp.h.in: Wrap the new configure substitutions with @ characters.
121 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
122 * aclocal.m4, configure, Makefile.in: Regenerate.
123 * mkomp_h.pl: Delete.
125 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
128 * configure.ac: Use GCC_HEADER_STDINT.
129 * libgomp.h: Include gstdint.h.
130 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
131 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
133 2006-01-24 Richard Henderson <rth@redhat.com>
136 * configure.ac: Add AM_MAINTAINER_MODE.
137 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
139 2006-01-24 Diego Novillo <dnovillo@redhat.com>
141 * Makefile.in: Regenerate.
142 * testsuite/Makefile.in: Regenerate.
143 * aclocal.m4: Regenerate.
145 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
147 * config/posix/proc.c: Conditional include of sys/loadavg.h for
149 * configure.ac: Add check for loadavg.h.
150 (link_gomp): Adjust comment.
151 * configure: Regenerate.
152 * config.h.in: Regenerate.
154 2006-01-21 Steve Ellcey <sje@cup.hp.com>
157 * configure.ac: Remove check for alloca.h.
158 * configure: Regenerate.
159 * config.h.in: Regenerate.
160 * libgomp.h: define gomp_alloca to be __builtin_alloca.
161 * team.c: Remove use of alloca.h.
162 Call gomp_alloca instead of alloca.
164 2006-01-20 Steve Ellcey <sje@cup.hp.com>
167 * team.c: Add include of alloca.h.
168 * configure.ac: Add check for alloca.h.
169 * configure: Regenerate.
170 * config.h.in: Regenerate.
172 2006-01-17 Jakub Jelinek <jakub@redhat.com>
175 * testsuite/libgomp.fortran/pr25219.f90: New test.
177 2005-12-05 Uros Bizjak <uros@kss-loka.si>
179 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
180 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
181 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
182 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
183 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
184 testsuite/libgomp.fortran/threadprivate1.f90,
185 testsuite/libgomp.fortran/threadprivate2.f90,
186 testsuite/libgomp.fortran/threadprivate3.f90,
187 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
188 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
189 testsuite/libgomp.fortran/omp_parse3.f90: Change required
190 effective-target to TLS runtime.
192 * testsuite/libgomp.fortran/pr25162.f: Require
193 effective-target TLS runtime.
195 2005-12-01 Jakub Jelinek <jakub@redhat.com>
197 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
198 * testsuite/libgomp.c/nestedfn-3.c: New test.
200 2005-11-30 Jakub Jelinek <jakub@redhat.com>
203 * testsuite/libgomp.fortran/pr25162.f: New test.
205 2005-11-28 Jakub Jelinek <jakub@redhat.com>
207 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
208 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
210 2005-11-25 Jakub Jelinek <jakub@redhat.com>
212 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
213 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
214 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
215 single.c, team.c, work.c, config/linux/alpha/futex.h,
216 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
217 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
218 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
219 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
220 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
221 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
222 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
225 2005-11-18 Jakub Jelinek <jakub@redhat.com>
227 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
228 to nodist_noinst_HEADERS.
229 * Makefile.in: Rebuilt.
231 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
232 add integer count field.
233 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
234 omp_nest_lock_t type change.
235 (omp_init_nest_lock): Likewise. Initialize count to 0.
236 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
238 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
240 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
241 Increment count if successful and return the new nesting level.
242 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
243 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
244 * testsuite/libgomp.c/lib-1.c: New test.
245 * testsuite/libgomp.fortran/lib1.f90: New test.
246 * testsuite/libgomp.fortran/lib2.f: New test.
247 * testsuite/libgomp.fortran/lib3.f: New test.
249 2005-11-17 Richard Henderson <rth@redhat.com>
252 * Makefile.am (nodist_toolexeclib_HEADERS): New.
253 * configure.ac (link_gomp): New. Substitute it.
254 (AC_CONFIG_FILES): Add libgomp.spec.
255 * libgomp.spec.in: New file.
256 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
257 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
259 2005-11-18 Jakub Jelinek <jakub@redhat.com>
261 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
262 reduction(-:var) behaving the same as reduction(+:var).
263 * testsuite/libgomp.c/reduction-4.c: New test.
265 2005-11-15 Uros Bizjak <uros@kss-loka.si>
267 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
268 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
269 testsuite/libgomp.c/copyin-3.c,
270 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
271 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
272 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
273 testsuite/libgomp.c++/pr24455.C,
274 testsuite/libgomp.fortran/threadprivate1.f90,
275 testsuite/libgomp.fortran/threadprivate2.f90,
276 testsuite/libgomp.fortran/threadprivate3.f90,
277 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
278 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
279 testsuite/libgomp.fortran/omp_parse3.f90: Require
280 effective-target TLS.
282 2005-11-14 Diego Novillo <dnovillo@redhat.com>
286 2005-11-13 Jakub Jelinek <jakub@redhat.com>
289 * team.c (initialize_team): Pass NULL rather than free as
290 pthread_key_create destructor. Initialize thread specific data
291 pointer in initial thread to a static local variable rather than
294 2005-11-11 Uros Bizjak <uros@kss-loka.si>
296 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
297 its location to ld_library_path.
299 2005-11-10 Diego Novillo <dnovillo@redhat.com>
301 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
303 2005-11-10 Diego Novillo <dnovillo@redhat.com>
305 * testsuite/libgomp.c: Rename from libgomp.dg.
307 2005-11-09 Diego Novillo <dnovillo@redhat.com>
309 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
310 threadprivate variable 'i'.
312 2005-11-09 Jakub Jelinek <jakub@redhat.com>
314 * config/linux/s390/futex.h: New file.
315 * configure.tgt: Use it.
317 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
320 2005-11-08 Jakub Jelinek <jakub@redhat.com>
323 * testsuite/libgomp.c++/master-1.C: New test.
325 2005-11-07 Jakub Jelinek <jakub@redhat.com>
327 * testsuite/libgomp.dg/copyin-3.c: New test.
329 2005-11-07 Jakub Jelinek <jakub@redhat.com>
331 * testsuite/libgomp.fortran/retval1.f90: New test.
332 * testsuite/libgomp.fortran/vla7.f90: New test.
334 2005-11-06 Jakub Jelinek <jakub@redhat.com>
336 * testsuite/libgomp.fortran/vla2.f90: New test.
337 * testsuite/libgomp.fortran/vla3.f90: New test.
338 * testsuite/libgomp.fortran/vla4.f90: New test.
339 * testsuite/libgomp.fortran/vla5.f90: New test.
340 * testsuite/libgomp.fortran/vla6.f90: New test.
342 2005-11-01 Jakub Jelinek <jakub@redhat.com>
344 * config/linux/sparc/futex.h: New file.
345 * configure.tgt: Use it.
346 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
348 * critical.c: Include stdlib.h.
349 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
350 ignoring return value.
351 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
352 LIBGOMP_CHECK_SYNC_BUILTINS check.
353 * configure: Rebuilt.
355 2005-10-31 Jakub Jelinek <jakub@redhat.com>
357 * testsuite/libgomp.fortran/vla1.f90: New test.
359 2005-10-31 Richard Henderson <rth@redhat.com>
361 * testsuite/libgomp.fortran/character2.f90: Fix race condition
362 setting 's' in different threads.
364 2005-10-31 Jakub Jelinek <jakub@redhat.com>
366 * libgomp.h (attribute_hidden, ialias): Define.
367 * config/posix/proc.c (omp_get_num_procs): Add ialias.
368 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
369 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
370 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
371 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
372 omp_test_lock, omp_test_nest_lock): Likewise.
373 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
374 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
375 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
376 omp_test_lock, omp_test_nest_lock): Likewise.
377 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
378 omp_get_dynamic, omp_get_nested): Likewise.
379 * parallel.c (omp_get_num_threads, omp_get_max_threads,
380 omp_get_thread_num, omp_in_parallel): Likewise.
381 * fortran.c (ialias_redirect): Define.
382 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
383 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
384 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
385 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
386 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
387 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
388 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
389 omp_get_wtime): Add ialias_redirect.
391 2005-10-30 Jakub Jelinek <jakub@redhat.com>
393 * fortran.c: Include stdlib.h.
395 2005-10-29 Jakub Jelinek <jakub@redhat.com>
397 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
398 * Makefile.in: Regenerated.
400 2005-10-28 Jakub Jelinek <jakub@redhat.com>
402 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
403 * libgomp_f.h.in (omp_check_defines): New function.
404 * env.c: Include libgomp_f.h.
405 (initialize_env): Call omp_check_defines.
407 * testsuite/libgomp.dg/copyin-2.c: New test.
408 * testsuite/libgomp.c++/copyin-2.C: New test.
409 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
411 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
412 * testsuite/libgomp.fortran/sharing2.f90: New test.
414 * testsuite/libgomp.dg/copyin-1.c: New test.
415 * testsuite/libgomp.c++/copyin-1.C: New test.
417 2005-10-26 Jakub Jelinek <jakub@redhat.com>
419 * testsuite/libgomp.fortran/crayptr1.f90: New test.
421 * testsuite/libgomp.fortran/workshare1.f90: New test.
423 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
425 * libgomp.fortran/sharing1.f90: New test.
427 2005-10-24 Jakub Jelinek <jakub@redhat.com>
430 * testsuite/libgomp.c++/loop-7.C: New test.
432 * testsuite/libgomp.dg/nestedfn-2.c: New test.
434 * testsuite/libgomp.dg/nestedfn-1.c: New test.
435 * testsuite/libgomp.fortran/reduction6.f90: New test.
436 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
438 2005-10-23 Richard Henderson <rth@redhat.com>
440 * testsuite/libgomp.c++/ctor-1.C: New.
441 * testsuite/libgomp.c++/ctor-2.C: New.
442 * testsuite/libgomp.c++/ctor-3.C: New.
443 * testsuite/libgomp.c++/ctor-4.C: New.
444 * testsuite/libgomp.c++/ctor-5.C: New.
445 * testsuite/libgomp.c++/ctor-6.C: New.
446 * testsuite/libgomp.c++/ctor-7.C: New.
447 * testsuite/libgomp.c++/ctor-8.C: New.
448 * testsuite/libgomp.c++/ctor-9.C: New.
450 2005-10-21 Diego Novillo <dnovillo@redhat.com>
453 * testsuite/libgomp.c++/pr24455-1.C: New test.
454 * testsuite/libgomp.c++/pr24455.C: New test.
455 * testsuite/libgomp.dg/pr24455-1.c: New test.
456 * testsuite/libgomp.dg/pr24455.c: New test.
458 2005-10-20 Richard Henderson <rth@redhat.com>
460 * testsuite/libgomp.c++/loop-6.C: New.
461 * testsuite/libgomp.dg/loop-3.c: New.
463 2005-10-20 Jakub Jelinek <jakub@redhat.com>
465 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
467 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
470 2005-10-19 Diego Novillo <dnovillo@redhat.com>
472 * testsuite/libgomp.fortran/jacobi.f: New test.
474 2005-10-19 Richard Henderson <rth@redhat.com>
476 * configure.tgt (i?86-linux): Default to with_arch instead of
477 CFLAGS. Add -mtune to match target_cpu.
478 (x86_64-linux): Tune to i686.
480 * fortran.c (omp_test_nest_lock_): Fix typo.
482 2005-10-19 Jakub Jelinek <jakub@redhat.com>
484 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
485 gomp_ordered_sync): Do nothing if team->nthreads == 1.
486 * testsuite/libgomp.dg/ordered-3.c: New test.
488 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
489 Remove volatile keyword.
491 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
492 in COMMON block to avoid warnings on 64-bit targets.
494 2005-10-18 Diego Novillo <dnovillo@redhat.com>
496 * testsuite/libgomp.dg/shared-3.c: New test.
498 2005-10-18 Jakub Jelinek <jakub@redhat.com>
500 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
501 * testsuite/libgomp.fortran/reduction5.f90: New test.
503 2005-10-18 Jakub Jelinek <jakub@redhat.com>
505 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
507 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
508 flush loop now that __sync_synchronize has proper memory barrier.
509 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
510 Add -ffixed-form to dg-options.
512 2005-10-17 Diego Novillo <dnovillo@redhat.com>
514 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
516 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
517 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
518 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
519 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
520 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
521 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
522 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
523 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
524 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
525 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
526 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
527 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
528 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
529 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
530 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
531 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
532 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
533 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
534 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
535 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
536 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
537 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
538 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
539 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
540 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
542 2005-10-17 Jakub Jelinek <jakub@redhat.com>
544 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
545 lang_library_path exists. Use find instead of glob to gather tests.
546 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
548 2005-10-17 Diego Novillo <dnovillo@redhat.com>
550 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
551 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
552 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
553 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
554 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
555 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
556 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
557 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
558 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
559 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
560 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
561 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
562 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
564 2005-10-15 Jakub Jelinek <jakub@redhat.com>
566 * testsuite/libgomp.dg/vla-1.c: New test.
568 * testsuite/libgomp.fortran/reference2.f90: New test.
570 * testsuite/libgomp.fortran/character2.f90: Remove explicit
571 declaration of omp_get_thread_num.
572 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
575 * testsuite/libgomp.fortran/reduction1.f90: New test.
576 * testsuite/libgomp.fortran/reduction2.f90: New test.
577 * testsuite/libgomp.fortran/reduction3.f90: New test.
578 * testsuite/libgomp.fortran/reduction4.f90: New test.
580 2005-10-13 Richard Henderson <rth@redhat.com>
582 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
583 * Makefile.in: Regenerate.
584 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
585 * libgomp.h: Include bar.h.
586 (struct gomp_barrier): Remove.
587 (struct gomp_team): Add barrier. Replace master_barrier with
588 master_release. Replace threads with ordered_release.
589 (struct gomp_thread): Replace barrier with release.
590 * ordered.c (gomp_ordered_first): Update for ordered_release change.
591 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
592 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
593 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
594 (GOMP_single_copy_end): Likewise.
595 * team.c (gomp_threads_dock): New.
596 (gomp_barrier_init, gomp_barrier_destroy): Remove.
597 (gomp_thread_start): Use gomp_barrier_wait.
598 (new_team, free_team): Update for gomp_team changes.
599 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
600 (gomp_team_end): Use gomp_barrier_wait.
601 (initialize_team): Update for gomp_thread changes.
602 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
603 (gomp_work_share_end_nowait): Use atomic ops when available.
604 * config/linux/bar.c, config/linux/bar.h: New files.
605 * config/posix/bar.c, config/posix/bar.h: New files.
607 2005-10-13 Jakub Jelinek <jakub@redhat.com>
609 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
610 * testsuite/libgomp.dg/single-2.c: New test.
612 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
613 lang_link_flags): Unset, so that they aren't inherited from previously
616 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
618 2005-10-12 Richard Henderson <rth@redhat.com>
620 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
621 (libgomp_init): Use lang_test_file, lang_library_path, and
622 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
624 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
625 (lang_test_file, lang_link_flags): New.
626 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
628 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
629 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
630 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
631 testsuite/libgomp.c++/parallel-1.C,
632 testsuite/libgomp.c++/reduction-1.C,
633 testsuite/libgomp.c++/reduction-2.C,
634 testsuite/libgomp.c++/reduction-3.C,
635 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
636 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
637 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
638 New files, largely cribbed from the C testsuite.
640 2005-10-12 Jakub Jelinek <jakub@redhat.com>
642 * testsuite/libgomp.fortran/character1.f90: New test.
643 * testsuite/libgomp.fortran/character2.f90: New test.
645 * testsuite/libgomp.dg/nested-1.c: New test.
646 * testsuite/libgomp.dg/nested-2.c: New test.
647 * testsuite/libgomp.fortran/do1.f90: New test.
648 * testsuite/libgomp.fortran/do2.f90: New test.
650 * testsuite/libgomp.fortran/reference1.f90: New test.
652 2005-10-11 Jakub Jelinek <jakub@redhat.com>
654 * testsuite/libgomp.dg/reduction-1.c: New test.
655 * testsuite/libgomp.dg/reduction-2.c: New test.
656 * testsuite/libgomp.dg/reduction-3.c: New test.
658 2005-10-10 Jakub Jelinek <jakub@redhat.com>
660 * testsuite/libgomp.dg/atomic-1.c: New test.
661 * testsuite/libgomp.dg/atomic-2.c: New test.
663 2005-10-09 Richard Henderson <rth@redhat.com>
665 * critical.c (atomic_lock): New.
666 (initialize_critical): Initialize it.
667 (GOMP_atomic_start, GOMP_atomic_end): New.
668 * libgomp.map: Export them.
669 * libgomp_g.h: Declare them.
671 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
673 2005-10-02 Richard Henderson <rth@redhat.com>
675 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
676 to XCFLAGS instead of CFLAGS.
678 2005-09-30 Richard Henderson <rth@redhat.com>
680 * configure.ac: Determine whether -pthread or -lpthread is needed.
681 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
682 * Makefine.in, configure: Rebuild.
684 2005-09-28 Richard Henderson <rth@redhat.com>
686 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
687 * testsuite/libgomp.dg/omp-single-3.c: New test.
689 2005-09-28 Diego Novillo <dnovillo@redhat.com>
691 * testsuite/libgomp.dg/omp-single-2.c: New test.
692 * testsuite/libgomp.dg/shared-2.c: Fix return code.
694 2005-09-27 Richard Henderson <rth@redhat.com>
696 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
697 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
699 2005-09-27 Jakub Jelinek <jakub@redhat.com>
701 * testsuite/libgomp.dg/omp-loop03.c: New test.
703 2005-09-27 Diego Novillo <dnovillo@redhat.com>
705 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
707 2005-09-27 Diego Novillo <dnovillo@redhat.com>
709 * testsuite/libgomp.dg/omp-single-1.c: New test.
710 * testsuite/libgomp.dg/shared-1.c: Return 0.
711 Add prototype for abort.
712 * testsuite/libgomp.dg/shared-2.c: Likewise.
714 2005-09-26 Jakub Jelinek <jakub@redhat.com>
716 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
719 2005-09-26 Diego Novillo <dnovillo@redhat.com>
721 * testsuite/libgomp.dg/shared-1.c: New test.
722 * testsuite/libgomp.dg/shared-2.c: New test.
724 2005-09-24 Richard Henderson <rth@redhat.com>
726 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
728 2005-09-24 Richard Henderson <rth@redhat.com>
730 * iter.c (gomp_iter_static_next): Round up when computing number
731 of iterations. Don't bother distributing a remainder equally.
733 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
734 Don't call srand. Zero b before testing.
737 2005-09-24 Jakub Jelinek <jakub@redhat.com>
739 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
740 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
742 2005-09-23 Jakub Jelinek <jakub@redhat.com>
744 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
745 without !$omp end do, followed immediately by subroutine end.
747 2005-09-23 Diego Novillo <dnovillo@redhat.com>
749 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
751 2005-09-22 Richard Henderson <rth@redhat.com>
753 * critical.c (GOMP_critical_name_start): Change argument to void**.
754 Reuse the pointer space if the mutex fits.
755 (GOMP_critical_name_end): Likewise.
756 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
757 * libgomp_g.h (GOMP_critical_name_start): Update decl.
758 (GOMP_critical_name_end): Likewise.
759 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
760 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
762 2005-09-20 Richard Henderson <rth@redhat.com>
764 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
765 (create_lock_lock): New.
766 (initialize_critical): Initialize it.
767 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
768 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
770 2005-09-20 Diego Novillo <dnovillo@redhat.com>
772 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
774 2005-09-20 Diego Novillo <dnovillo@redhat.com>
776 * testsuite/libgomp.dg/omp-loop01.c: New test.
777 * testsuite/libgomp.dg/omp-loop02.c: New test.
779 2005-09-20 Jakub Jelinek <jakub@redhat.com>
781 * configure.ac (AC_PROG_FC): Add.
782 (USE_FORTRAN): New automake conditional.
783 * configure: Rebuilt.
784 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
785 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
786 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
787 Add rules to build them.
788 * Makefile.in: Rebuilt.
789 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
791 * libgomp.map: Add Fortran wrappers.
792 * libgomp_f.h.in: New file.
793 * omp_lib.h.in: New file.
794 * omp_lib.f90.in: New file.
795 * fortran.c: New file.
796 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
797 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
798 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
799 libgfortran has been built.
800 * testsuite/libgomp.fortran/fortran.exp: New file.
801 * testsuite/libgomp.fortran/omp_cond1.f: New test.
802 * testsuite/libgomp.fortran/omp_cond2.f: New test.
803 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
804 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
805 * testsuite/libgomp.fortran/omp_hello.f: New test.
806 * testsuite/libgomp.fortran/omp_orphan.f: New test.
807 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
808 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
809 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
810 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
811 * testsuite/libgomp.fortran/omp_reduction.f: New test.
812 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
813 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
815 2005-08-30 Richard Henderson <rth@redhat.com>
817 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
818 function for when aliases are not usable.
819 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
820 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
821 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
822 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
823 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
824 GOMP_loop_ordered_guided_next): Likewise.
825 * ordered.c (GOMP_ordered_start): Likewise.
827 2005-08-01 Diego Novillo <dnovillo@redhat.com>
829 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
830 * testsuite/libgomp.dg/omp_hello.c: Fix return code
831 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
832 * testsuite/libgomp.dg/omp_orphan.c: Likewise
833 * testsuite/libgomp.dg/omp_reduction.c: Likewise
834 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
835 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
836 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
837 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
839 2005-07-07 Eric Christopher <echristo@redhat.com>
840 Diego Novillo <dnovillo@redhat.com>
842 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
843 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
845 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
846 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
847 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
848 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
849 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
850 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
851 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
853 2005-06-13 Diego Novillo <dnovillo@redhat.com>
855 * TOPLEVEL.patch: Remove.
857 2005-05-16 Richard Henderson <rth@redhat.com>
859 * configure.ac: Test for clock_gettime.
860 * config.h.in, configure: Rebuild.
861 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
862 (omp_get_wtime): Use clock_gettime if available.
863 (omp_get_wtick): Use clock_getres if available.
865 2005-05-11 Richard Henderson <rth@redhat.com>
867 * config/linux/ia64/futex.h: New file.
868 * configure.tgt: Use it.
870 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
872 2005-05-07 Richard Henderson <rth@redhat.com>
874 * config/linux/powerpc/futex.h: New file.
875 * configure.tgt: Use it.
877 * config/linux/i486/futex.h: Merge ...
878 * config/linux/x86_64/futex.h: ... into ...
879 * config/linux/x86/futex.h: ... here.
880 * configure.tgt: Update to match.
882 2005-05-06 Richard Henderson <rth@redhat.com>
884 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
885 * config/linux/i486/futex.h: Likewise.
886 * config/linux/x86_64/futex.h: Likewise.
888 * config/linux/lock.c: New file.
889 * config/linux/omp-lock.h: New file.
891 * critical.c, env.h: Don't include omp.h
892 * config/posix/lock.c: Include libgomp.h instead of omp.h.
893 * config/posix/time.c: Likewise.
894 * config/posix/omp-lock.h: New file.
895 * libgomp.h: Include omp-lock.h and omp.h.
896 * Makefile.am (nodist_include_HEADERS): New.
898 * configure.ac (PERL): New.
899 * mkomp_h.pl: New file.
900 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
902 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
904 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
905 build directory. Re-add -march=i486 hack.
907 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
908 (libgomp_link_flags): Remove.
909 (libgomp_initialized): Remove.
910 (libgomp_init): Don't protect from reinitialization. Copy code
911 from libstdc++ for getting the multilib set correctly.
913 2005-05-05 Richard Henderson <rth@redhat.com>
915 * config/linux/alpha/futex.h: New file.
916 * configure.tgt (alpha*-*-linux*): Use it.
918 * config/posix/mutex.c: New file.
919 * config/posix/sem.c: Use libgomp.h.
921 * configure.tgt (x86_64-linux): Also test CC for -m32.
922 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
924 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
927 * Makefile.am (SUBDIRS): New.
928 (libgomp_la_LDFLAGS): Add -lpthread.
929 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
930 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
932 * libgomp_g.h: New file.
933 * libgomp.h: Split out all public declarations to libgomp_g.h.
934 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
935 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
936 * config/linux/sem.h: Likewise.
937 * config/posix/sem.h: Likewise.
939 * Makefile.am (AM_LDFLAGS): New.
940 (libgomp_version_script): Split out from ...
941 (libgomp_la_LDFLAGS): ... here.
942 (libgomp_version_info): New.
943 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
944 (LIBGOMP_ENABLE): New.
945 (LIBGOMP_CHECK_LINKER_FEATURES): New.
946 (LIBGOMP_ENABLE_SYMVERS): New.
947 * configure.ac (AC_INIT): Version 1.0.
948 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
949 (enable-linux-futex): Likewise. Rename from enable-futex.
950 (libtool_VERSION): New.
951 (LIBGOMP_ENABLE_SYMVERS): Use it.
952 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
953 * Makefile.in, aclocal.m4, configure: Rebuild.
955 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
956 (gomp_mutex_unlock_slow): Fix typo.
957 * config/linux/sem.c: Similarly.
958 (gomp_sem_post_slow): Fix typo.
959 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
960 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
961 [__PIC__] (sys_futex0): Don't use tmp output in asm.
963 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
964 (libgomp_la_LDFLAGS): Add top_srcdir to path.
965 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
966 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
967 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
968 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
969 LDFLAGS. Pull enable_futex check to top-level.
970 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
971 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
973 First attempt at real configury.
974 * Makefile, config.h: Remove file.
975 * Makefile.am, Makefile.in: New file.
976 * acinclude.m4 aclocal.m4: New file.
977 * configure.ac, configure.tgt, configure: New file.
979 * config/posix/lock.c: Rename from sys-lock.c.
980 * config/posix/mutex.h: Rename from sys-mutex.h.
981 * config/posix/sem.c: Rename from sys-sem.c.
982 * config/posix/sem.h: Rename from sys-sem.h.
983 * config/posix/proc.c: Rename from sys-proc.c.
984 * config/posix/time.c: Rename from sys-proc.c.
986 * config/linux/mutex.c: New file.
987 * config/linux/mutex.h: New file.
988 * config/linux/sem.c: New file.
989 * config/linux/sem.h: New file.
990 * config/linux/i486/futex.h: New file.
991 * config/linux/x86_64/futex.h: New file.
993 2005-05-04 Richard Henderson <rth@redhat.com>
995 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
996 * libgomp.h: Declare them.
997 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
998 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1000 2005-05-04 Richard Henderson <rth@redhat.com>
1002 * libgomp-1 code drop
1004 2005-05-04 Richard Henderson <rth@redhat.com>
1006 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1007 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1008 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1009 (gomp_iter_static_next): Update.
1010 (gomp_ordered_static_next): Update.
1011 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1012 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1013 totally empty range.
1014 (gomp_loop_ordered_static_next): Refine test for calling
1015 gomp_ordered_static_next.
1016 * testsuite/ordered-1.c: Add case for more threads than iterations.
1018 * iter.c (gomp_iter_runtime_next_locked): Remove.
1019 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1020 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1021 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1022 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1023 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1024 gomp_loop_ordered_guided_next): Downcase name, make static, add
1025 an external alias with the old name.
1026 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1027 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1028 switch and call one of the above static functions.
1029 * libgomp.h: Update.
1031 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1032 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1033 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1034 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1035 GOMP_loop_ordered_guided_start): Update to match.
1036 * sections.c (GOMP_sections_start): Likewise.
1037 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1039 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1040 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1041 Use bounds check instead of modulus.
1042 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1043 (gomp_ordered_last): Don't sync with ordered_owner here.
1044 (gomp_ordered_next): Likewise.
1045 (gomp_ordered_static_loop_next): Likewise.
1046 * loop.c, libgomp.h: Update to match.
1048 * libgomp.h (GOMP_barrier): Declare.
1050 * testsuite/barrier-1.c: New file.
1051 * testsuite/critical-1.c: New file.
1052 * testsuite/ordered-2.c: New file.
1053 * testsuite/ordered-1.c: New file.
1054 * testsuite/sections-1.c: New file.
1055 * testsuite/single-1.c: New file.
1056 * testsuite/Makefile (TESTS): Add them.
1058 2005-05-04 Richard Henderson <rth@redhat.com>
1060 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1061 * loop.c (GOMP_loop_static_start): If not the startup thread,
1062 acquire the mutex to wait for initialization complete.
1063 (GOMP_loop_ordered_static_start): Likewise.
1064 (GOMP_loop_ordered_runtime_start): Likewise.
1065 (GOMP_loop_ordered_static_first): Remove.
1066 (GOMP_loop_ordered_dynamic_first): Remove.
1067 (GOMP_loop_ordered_guided_first): Remove.
1068 (GOMP_loop_ordered_runtime_first): Remove.
1069 * ordered.c (gomp_ordered_loop_first): Post to own release when
1070 we're the first thread.
1071 (gomp_ordered_loop_last): Wait on release if not owner.
1072 (gomp_ordered_loop_next): Likewise.
1073 (gomp_ordered_static_loop_init): New.
1074 (gomp_ordered_static_loop_next): Use ordered_owner.
1075 (GOMP_ordered_start): Likewise.
1076 * work.c (gomp_new_work_share): Initialize ordered_owner.
1078 2005-05-03 Richard Henderson <rth@redhat.com>
1080 * Makefile (OPT): New.
1083 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1084 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1085 * libgomp.h, libgomp.map, NOTES: Update to match.
1087 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1088 Add initialized and thr members.
1089 (gomp_thread_start): Pause when initially spawned to wait for
1090 the whole team to be created.
1091 (gomp_team_start): Release team members at the end.
1093 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1094 (f_foo_1): Use GOMP_loop_end.
1095 (f_foo_2): Use GOMP_loop_end_nowait.
1097 * testsuite/loop-2.c: New file.
1098 * testsuite/Makefile (TESTS): Add it.
1100 2005-05-03 Richard Henderson <rth@redhat.com>
1102 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1103 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1104 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1107 * testsuite/Makefile: New file.
1108 * testsuite/loop-1.c: New file.
1110 2005-05-03 Richard Henderson <rth@redhat.com>
1112 Initial implementation and checkin.