1 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/pr26171.c: New test.
6 2006-04-25 Richard Henderson <rth@redhat.com>
9 * configure.ac: Use GCC_CHECK_TLS.
10 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11 * Makefile.in, aclocal.m4, configure: Regenerate.
13 2006-04-10 Matthias Klose <doko@debian.org>
15 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
16 directory names containing underscores.
18 2006-03-21 Jakub Jelinek <jakub@redhat.com>
21 * testsuite/libgomp.c++/pr26691.C: New test.
23 2006-03-13 Jakub Jelinek <jakub@redhat.com>
25 * testsuite/libgomp.fortran/retval2.f90: New test.
27 2006-03-09 Diego Novillo <dnovillo@redhat.com>
29 * testsuite/libgomp.c++: New directory.
31 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
33 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
34 * config/posix/sem.c: Implement the above.
36 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
38 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
39 define HAVE_BROKEN_POSIX_SEMAPHORES.
41 * config.h.in: Rebuilt.
43 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
46 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
47 for the other pthread check.
48 * configure: Regenerate.
49 * config.h.in: Regenerate.
51 2006-02-15 Jakub Jelinek <jakub@redhat.com>
55 * Makefile.am (fincludedir): New variable.
56 (nodist_include_HEADERS): Remove Fortran files.
57 (nodist_finclude_HEADERS): New variable.
58 * Makefile.in: Regenerated.
60 2006-02-13 Jakub Jelinek <jakub@redhat.com>
62 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
63 Remove tests for returning assumed character length arrays.
65 2006-02-12 Roger Sayle <roger@eyesopen.com>
66 John David Anglin <dave@hiauly1.hia.nrc.ca>
69 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
71 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
73 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
75 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
77 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
78 part of LD_LIBRARY_PATH manually.
80 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
83 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
86 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
89 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
90 * configure.ac (PERL): Don't set.
91 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
92 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
93 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
94 * omp.h.in: Wrap the new configure substitutions with @ characters.
95 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
96 * aclocal.m4, configure, Makefile.in: Regenerate.
99 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
102 * configure.ac: Use GCC_HEADER_STDINT.
103 * libgomp.h: Include gstdint.h.
104 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
105 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
107 2006-01-24 Richard Henderson <rth@redhat.com>
110 * configure.ac: Add AM_MAINTAINER_MODE.
111 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
113 2006-01-24 Diego Novillo <dnovillo@redhat.com>
115 * Makefile.in: Regenerate.
116 * testsuite/Makefile.in: Regenerate.
117 * aclocal.m4: Regenerate.
119 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
121 * config/posix/proc.c: Conditional include of sys/loadavg.h for
123 * configure.ac: Add check for loadavg.h.
124 (link_gomp): Adjust comment.
125 * configure: Regenerate.
126 * config.h.in: Regenerate.
128 2006-01-21 Steve Ellcey <sje@cup.hp.com>
131 * configure.ac: Remove check for alloca.h.
132 * configure: Regenerate.
133 * config.h.in: Regenerate.
134 * libgomp.h: define gomp_alloca to be __builtin_alloca.
135 * team.c: Remove use of alloca.h.
136 Call gomp_alloca instead of alloca.
138 2006-01-20 Steve Ellcey <sje@cup.hp.com>
141 * team.c: Add include of alloca.h.
142 * configure.ac: Add check for alloca.h.
143 * configure: Regenerate.
144 * config.h.in: Regenerate.
146 2006-01-17 Jakub Jelinek <jakub@redhat.com>
149 * testsuite/libgomp.fortran/pr25219.f90: New test.
151 2005-12-05 Uros Bizjak <uros@kss-loka.si>
153 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
154 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
155 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
156 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
157 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
158 testsuite/libgomp.fortran/threadprivate1.f90,
159 testsuite/libgomp.fortran/threadprivate2.f90,
160 testsuite/libgomp.fortran/threadprivate3.f90,
161 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
162 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
163 testsuite/libgomp.fortran/omp_parse3.f90: Change required
164 effective-target to TLS runtime.
166 * testsuite/libgomp.fortran/pr25162.f: Require
167 effective-target TLS runtime.
169 2005-12-01 Jakub Jelinek <jakub@redhat.com>
171 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
172 * testsuite/libgomp.c/nestedfn-3.c: New test.
174 2005-11-30 Jakub Jelinek <jakub@redhat.com>
177 * testsuite/libgomp.fortran/pr25162.f: New test.
179 2005-11-28 Jakub Jelinek <jakub@redhat.com>
181 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
182 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
184 2005-11-25 Jakub Jelinek <jakub@redhat.com>
186 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
187 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
188 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
189 single.c, team.c, work.c, config/linux/alpha/futex.h,
190 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
191 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
192 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
193 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
194 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
195 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
196 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
199 2005-11-18 Jakub Jelinek <jakub@redhat.com>
201 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
202 to nodist_noinst_HEADERS.
203 * Makefile.in: Rebuilt.
205 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
206 add integer count field.
207 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
208 omp_nest_lock_t type change.
209 (omp_init_nest_lock): Likewise. Initialize count to 0.
210 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
212 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
214 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
215 Increment count if successful and return the new nesting level.
216 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
217 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
218 * testsuite/libgomp.c/lib-1.c: New test.
219 * testsuite/libgomp.fortran/lib1.f90: New test.
220 * testsuite/libgomp.fortran/lib2.f: New test.
221 * testsuite/libgomp.fortran/lib3.f: New test.
223 2005-11-17 Richard Henderson <rth@redhat.com>
226 * Makefile.am (nodist_toolexeclib_HEADERS): New.
227 * configure.ac (link_gomp): New. Substitute it.
228 (AC_CONFIG_FILES): Add libgomp.spec.
229 * libgomp.spec.in: New file.
230 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
231 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
233 2005-11-18 Jakub Jelinek <jakub@redhat.com>
235 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
236 reduction(-:var) behaving the same as reduction(+:var).
237 * testsuite/libgomp.c/reduction-4.c: New test.
239 2005-11-15 Uros Bizjak <uros@kss-loka.si>
241 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
242 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
243 testsuite/libgomp.c/copyin-3.c,
244 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
245 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
246 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
247 testsuite/libgomp.c++/pr24455.C,
248 testsuite/libgomp.fortran/threadprivate1.f90,
249 testsuite/libgomp.fortran/threadprivate2.f90,
250 testsuite/libgomp.fortran/threadprivate3.f90,
251 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
252 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
253 testsuite/libgomp.fortran/omp_parse3.f90: Require
254 effective-target TLS.
256 2005-11-14 Diego Novillo <dnovillo@redhat.com>
260 2005-11-13 Jakub Jelinek <jakub@redhat.com>
263 * team.c (initialize_team): Pass NULL rather than free as
264 pthread_key_create destructor. Initialize thread specific data
265 pointer in initial thread to a static local variable rather than
268 2005-11-11 Uros Bizjak <uros@kss-loka.si>
270 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
271 its location to ld_library_path.
273 2005-11-10 Diego Novillo <dnovillo@redhat.com>
275 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
277 2005-11-10 Diego Novillo <dnovillo@redhat.com>
279 * testsuite/libgomp.c: Rename from libgomp.dg.
281 2005-11-09 Diego Novillo <dnovillo@redhat.com>
283 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
284 threadprivate variable 'i'.
286 2005-11-09 Jakub Jelinek <jakub@redhat.com>
288 * config/linux/s390/futex.h: New file.
289 * configure.tgt: Use it.
291 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
294 2005-11-08 Jakub Jelinek <jakub@redhat.com>
297 * testsuite/libgomp.c++/master-1.C: New test.
299 2005-11-07 Jakub Jelinek <jakub@redhat.com>
301 * testsuite/libgomp.dg/copyin-3.c: New test.
303 2005-11-07 Jakub Jelinek <jakub@redhat.com>
305 * testsuite/libgomp.fortran/retval1.f90: New test.
306 * testsuite/libgomp.fortran/vla7.f90: New test.
308 2005-11-06 Jakub Jelinek <jakub@redhat.com>
310 * testsuite/libgomp.fortran/vla2.f90: New test.
311 * testsuite/libgomp.fortran/vla3.f90: New test.
312 * testsuite/libgomp.fortran/vla4.f90: New test.
313 * testsuite/libgomp.fortran/vla5.f90: New test.
314 * testsuite/libgomp.fortran/vla6.f90: New test.
316 2005-11-01 Jakub Jelinek <jakub@redhat.com>
318 * config/linux/sparc/futex.h: New file.
319 * configure.tgt: Use it.
320 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
322 * critical.c: Include stdlib.h.
323 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
324 ignoring return value.
325 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
326 LIBGOMP_CHECK_SYNC_BUILTINS check.
327 * configure: Rebuilt.
329 2005-10-31 Jakub Jelinek <jakub@redhat.com>
331 * testsuite/libgomp.fortran/vla1.f90: New test.
333 2005-10-31 Richard Henderson <rth@redhat.com>
335 * testsuite/libgomp.fortran/character2.f90: Fix race condition
336 setting 's' in different threads.
338 2005-10-31 Jakub Jelinek <jakub@redhat.com>
340 * libgomp.h (attribute_hidden, ialias): Define.
341 * config/posix/proc.c (omp_get_num_procs): Add ialias.
342 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
343 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
344 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
345 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
346 omp_test_lock, omp_test_nest_lock): Likewise.
347 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
348 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
349 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
350 omp_test_lock, omp_test_nest_lock): Likewise.
351 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
352 omp_get_dynamic, omp_get_nested): Likewise.
353 * parallel.c (omp_get_num_threads, omp_get_max_threads,
354 omp_get_thread_num, omp_in_parallel): Likewise.
355 * fortran.c (ialias_redirect): Define.
356 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
357 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
358 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
359 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
360 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
361 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
362 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
363 omp_get_wtime): Add ialias_redirect.
365 2005-10-30 Jakub Jelinek <jakub@redhat.com>
367 * fortran.c: Include stdlib.h.
369 2005-10-29 Jakub Jelinek <jakub@redhat.com>
371 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
372 * Makefile.in: Regenerated.
374 2005-10-28 Jakub Jelinek <jakub@redhat.com>
376 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
377 * libgomp_f.h.in (omp_check_defines): New function.
378 * env.c: Include libgomp_f.h.
379 (initialize_env): Call omp_check_defines.
381 * testsuite/libgomp.dg/copyin-2.c: New test.
382 * testsuite/libgomp.c++/copyin-2.C: New test.
383 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
385 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
386 * testsuite/libgomp.fortran/sharing2.f90: New test.
388 * testsuite/libgomp.dg/copyin-1.c: New test.
389 * testsuite/libgomp.c++/copyin-1.C: New test.
391 2005-10-26 Jakub Jelinek <jakub@redhat.com>
393 * testsuite/libgomp.fortran/crayptr1.f90: New test.
395 * testsuite/libgomp.fortran/workshare1.f90: New test.
397 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
399 * libgomp.fortran/sharing1.f90: New test.
401 2005-10-24 Jakub Jelinek <jakub@redhat.com>
404 * testsuite/libgomp.c++/loop-7.C: New test.
406 * testsuite/libgomp.dg/nestedfn-2.c: New test.
408 * testsuite/libgomp.dg/nestedfn-1.c: New test.
409 * testsuite/libgomp.fortran/reduction6.f90: New test.
410 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
412 2005-10-23 Richard Henderson <rth@redhat.com>
414 * testsuite/libgomp.c++/ctor-1.C: New.
415 * testsuite/libgomp.c++/ctor-2.C: New.
416 * testsuite/libgomp.c++/ctor-3.C: New.
417 * testsuite/libgomp.c++/ctor-4.C: New.
418 * testsuite/libgomp.c++/ctor-5.C: New.
419 * testsuite/libgomp.c++/ctor-6.C: New.
420 * testsuite/libgomp.c++/ctor-7.C: New.
421 * testsuite/libgomp.c++/ctor-8.C: New.
422 * testsuite/libgomp.c++/ctor-9.C: New.
424 2005-10-21 Diego Novillo <dnovillo@redhat.com>
427 * testsuite/libgomp.c++/pr24455-1.C: New test.
428 * testsuite/libgomp.c++/pr24455.C: New test.
429 * testsuite/libgomp.dg/pr24455-1.c: New test.
430 * testsuite/libgomp.dg/pr24455.c: New test.
432 2005-10-20 Richard Henderson <rth@redhat.com>
434 * testsuite/libgomp.c++/loop-6.C: New.
435 * testsuite/libgomp.dg/loop-3.c: New.
437 2005-10-20 Jakub Jelinek <jakub@redhat.com>
439 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
441 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
444 2005-10-19 Diego Novillo <dnovillo@redhat.com>
446 * testsuite/libgomp.fortran/jacobi.f: New test.
448 2005-10-19 Richard Henderson <rth@redhat.com>
450 * configure.tgt (i?86-linux): Default to with_arch instead of
451 CFLAGS. Add -mtune to match target_cpu.
452 (x86_64-linux): Tune to i686.
454 * fortran.c (omp_test_nest_lock_): Fix typo.
456 2005-10-19 Jakub Jelinek <jakub@redhat.com>
458 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
459 gomp_ordered_sync): Do nothing if team->nthreads == 1.
460 * testsuite/libgomp.dg/ordered-3.c: New test.
462 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
463 Remove volatile keyword.
465 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
466 in COMMON block to avoid warnings on 64-bit targets.
468 2005-10-18 Diego Novillo <dnovillo@redhat.com>
470 * testsuite/libgomp.dg/shared-3.c: New test.
472 2005-10-18 Jakub Jelinek <jakub@redhat.com>
474 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
475 * testsuite/libgomp.fortran/reduction5.f90: New test.
477 2005-10-18 Jakub Jelinek <jakub@redhat.com>
479 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
481 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
482 flush loop now that __sync_synchronize has proper memory barrier.
483 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
484 Add -ffixed-form to dg-options.
486 2005-10-17 Diego Novillo <dnovillo@redhat.com>
488 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
490 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
491 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
492 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
493 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
494 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
495 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
496 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
497 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
498 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
499 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
500 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
501 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
502 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
503 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
504 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
505 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
506 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
507 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
508 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
509 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
510 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
511 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
512 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
513 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
514 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
516 2005-10-17 Jakub Jelinek <jakub@redhat.com>
518 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
519 lang_library_path exists. Use find instead of glob to gather tests.
520 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
522 2005-10-17 Diego Novillo <dnovillo@redhat.com>
524 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
525 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
526 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
527 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
528 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
529 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
530 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
531 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
532 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
533 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
534 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
535 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
536 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
538 2005-10-15 Jakub Jelinek <jakub@redhat.com>
540 * testsuite/libgomp.dg/vla-1.c: New test.
542 * testsuite/libgomp.fortran/reference2.f90: New test.
544 * testsuite/libgomp.fortran/character2.f90: Remove explicit
545 declaration of omp_get_thread_num.
546 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
549 * testsuite/libgomp.fortran/reduction1.f90: New test.
550 * testsuite/libgomp.fortran/reduction2.f90: New test.
551 * testsuite/libgomp.fortran/reduction3.f90: New test.
552 * testsuite/libgomp.fortran/reduction4.f90: New test.
554 2005-10-13 Richard Henderson <rth@redhat.com>
556 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
557 * Makefile.in: Regenerate.
558 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
559 * libgomp.h: Include bar.h.
560 (struct gomp_barrier): Remove.
561 (struct gomp_team): Add barrier. Replace master_barrier with
562 master_release. Replace threads with ordered_release.
563 (struct gomp_thread): Replace barrier with release.
564 * ordered.c (gomp_ordered_first): Update for ordered_release change.
565 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
566 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
567 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
568 (GOMP_single_copy_end): Likewise.
569 * team.c (gomp_threads_dock): New.
570 (gomp_barrier_init, gomp_barrier_destroy): Remove.
571 (gomp_thread_start): Use gomp_barrier_wait.
572 (new_team, free_team): Update for gomp_team changes.
573 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
574 (gomp_team_end): Use gomp_barrier_wait.
575 (initialize_team): Update for gomp_thread changes.
576 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
577 (gomp_work_share_end_nowait): Use atomic ops when available.
578 * config/linux/bar.c, config/linux/bar.h: New files.
579 * config/posix/bar.c, config/posix/bar.h: New files.
581 2005-10-13 Jakub Jelinek <jakub@redhat.com>
583 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
584 * testsuite/libgomp.dg/single-2.c: New test.
586 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
587 lang_link_flags): Unset, so that they aren't inherited from previously
590 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
592 2005-10-12 Richard Henderson <rth@redhat.com>
594 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
595 (libgomp_init): Use lang_test_file, lang_library_path, and
596 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
598 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
599 (lang_test_file, lang_link_flags): New.
600 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
602 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
603 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
604 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
605 testsuite/libgomp.c++/parallel-1.C,
606 testsuite/libgomp.c++/reduction-1.C,
607 testsuite/libgomp.c++/reduction-2.C,
608 testsuite/libgomp.c++/reduction-3.C,
609 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
610 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
611 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
612 New files, largely cribbed from the C testsuite.
614 2005-10-12 Jakub Jelinek <jakub@redhat.com>
616 * testsuite/libgomp.fortran/character1.f90: New test.
617 * testsuite/libgomp.fortran/character2.f90: New test.
619 * testsuite/libgomp.dg/nested-1.c: New test.
620 * testsuite/libgomp.dg/nested-2.c: New test.
621 * testsuite/libgomp.fortran/do1.f90: New test.
622 * testsuite/libgomp.fortran/do2.f90: New test.
624 * testsuite/libgomp.fortran/reference1.f90: New test.
626 2005-10-11 Jakub Jelinek <jakub@redhat.com>
628 * testsuite/libgomp.dg/reduction-1.c: New test.
629 * testsuite/libgomp.dg/reduction-2.c: New test.
630 * testsuite/libgomp.dg/reduction-3.c: New test.
632 2005-10-10 Jakub Jelinek <jakub@redhat.com>
634 * testsuite/libgomp.dg/atomic-1.c: New test.
635 * testsuite/libgomp.dg/atomic-2.c: New test.
637 2005-10-09 Richard Henderson <rth@redhat.com>
639 * critical.c (atomic_lock): New.
640 (initialize_critical): Initialize it.
641 (GOMP_atomic_start, GOMP_atomic_end): New.
642 * libgomp.map: Export them.
643 * libgomp_g.h: Declare them.
645 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
647 2005-10-02 Richard Henderson <rth@redhat.com>
649 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
650 to XCFLAGS instead of CFLAGS.
652 2005-09-30 Richard Henderson <rth@redhat.com>
654 * configure.ac: Determine whether -pthread or -lpthread is needed.
655 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
656 * Makefine.in, configure: Rebuild.
658 2005-09-28 Richard Henderson <rth@redhat.com>
660 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
661 * testsuite/libgomp.dg/omp-single-3.c: New test.
663 2005-09-28 Diego Novillo <dnovillo@redhat.com>
665 * testsuite/libgomp.dg/omp-single-2.c: New test.
666 * testsuite/libgomp.dg/shared-2.c: Fix return code.
668 2005-09-27 Richard Henderson <rth@redhat.com>
670 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
671 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
673 2005-09-27 Jakub Jelinek <jakub@redhat.com>
675 * testsuite/libgomp.dg/omp-loop03.c: New test.
677 2005-09-27 Diego Novillo <dnovillo@redhat.com>
679 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
681 2005-09-27 Diego Novillo <dnovillo@redhat.com>
683 * testsuite/libgomp.dg/omp-single-1.c: New test.
684 * testsuite/libgomp.dg/shared-1.c: Return 0.
685 Add prototype for abort.
686 * testsuite/libgomp.dg/shared-2.c: Likewise.
688 2005-09-26 Jakub Jelinek <jakub@redhat.com>
690 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
693 2005-09-26 Diego Novillo <dnovillo@redhat.com>
695 * testsuite/libgomp.dg/shared-1.c: New test.
696 * testsuite/libgomp.dg/shared-2.c: New test.
698 2005-09-24 Richard Henderson <rth@redhat.com>
700 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
702 2005-09-24 Richard Henderson <rth@redhat.com>
704 * iter.c (gomp_iter_static_next): Round up when computing number
705 of iterations. Don't bother distributing a remainder equally.
707 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
708 Don't call srand. Zero b before testing.
711 2005-09-24 Jakub Jelinek <jakub@redhat.com>
713 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
714 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
716 2005-09-23 Jakub Jelinek <jakub@redhat.com>
718 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
719 without !$omp end do, followed immediately by subroutine end.
721 2005-09-23 Diego Novillo <dnovillo@redhat.com>
723 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
725 2005-09-22 Richard Henderson <rth@redhat.com>
727 * critical.c (GOMP_critical_name_start): Change argument to void**.
728 Reuse the pointer space if the mutex fits.
729 (GOMP_critical_name_end): Likewise.
730 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
731 * libgomp_g.h (GOMP_critical_name_start): Update decl.
732 (GOMP_critical_name_end): Likewise.
733 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
734 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
736 2005-09-20 Richard Henderson <rth@redhat.com>
738 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
739 (create_lock_lock): New.
740 (initialize_critical): Initialize it.
741 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
742 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
744 2005-09-20 Diego Novillo <dnovillo@redhat.com>
746 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
748 2005-09-20 Diego Novillo <dnovillo@redhat.com>
750 * testsuite/libgomp.dg/omp-loop01.c: New test.
751 * testsuite/libgomp.dg/omp-loop02.c: New test.
753 2005-09-20 Jakub Jelinek <jakub@redhat.com>
755 * configure.ac (AC_PROG_FC): Add.
756 (USE_FORTRAN): New automake conditional.
757 * configure: Rebuilt.
758 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
759 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
760 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
761 Add rules to build them.
762 * Makefile.in: Rebuilt.
763 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
765 * libgomp.map: Add Fortran wrappers.
766 * libgomp_f.h.in: New file.
767 * omp_lib.h.in: New file.
768 * omp_lib.f90.in: New file.
769 * fortran.c: New file.
770 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
771 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
772 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
773 libgfortran has been built.
774 * testsuite/libgomp.fortran/fortran.exp: New file.
775 * testsuite/libgomp.fortran/omp_cond1.f: New test.
776 * testsuite/libgomp.fortran/omp_cond2.f: New test.
777 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
778 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
779 * testsuite/libgomp.fortran/omp_hello.f: New test.
780 * testsuite/libgomp.fortran/omp_orphan.f: New test.
781 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
782 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
783 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
784 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
785 * testsuite/libgomp.fortran/omp_reduction.f: New test.
786 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
787 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
789 2005-08-30 Richard Henderson <rth@redhat.com>
791 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
792 function for when aliases are not usable.
793 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
794 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
795 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
796 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
797 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
798 GOMP_loop_ordered_guided_next): Likewise.
799 * ordered.c (GOMP_ordered_start): Likewise.
801 2005-08-01 Diego Novillo <dnovillo@redhat.com>
803 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
804 * testsuite/libgomp.dg/omp_hello.c: Fix return code
805 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
806 * testsuite/libgomp.dg/omp_orphan.c: Likewise
807 * testsuite/libgomp.dg/omp_reduction.c: Likewise
808 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
809 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
810 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
811 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
813 2005-07-07 Eric Christopher <echristo@redhat.com>
814 Diego Novillo <dnovillo@redhat.com>
816 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
817 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
819 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
820 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
821 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
822 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
823 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
824 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
825 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
827 2005-06-13 Diego Novillo <dnovillo@redhat.com>
829 * TOPLEVEL.patch: Remove.
831 2005-05-16 Richard Henderson <rth@redhat.com>
833 * configure.ac: Test for clock_gettime.
834 * config.h.in, configure: Rebuild.
835 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
836 (omp_get_wtime): Use clock_gettime if available.
837 (omp_get_wtick): Use clock_getres if available.
839 2005-05-11 Richard Henderson <rth@redhat.com>
841 * config/linux/ia64/futex.h: New file.
842 * configure.tgt: Use it.
844 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
846 2005-05-07 Richard Henderson <rth@redhat.com>
848 * config/linux/powerpc/futex.h: New file.
849 * configure.tgt: Use it.
851 * config/linux/i486/futex.h: Merge ...
852 * config/linux/x86_64/futex.h: ... into ...
853 * config/linux/x86/futex.h: ... here.
854 * configure.tgt: Update to match.
856 2005-05-06 Richard Henderson <rth@redhat.com>
858 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
859 * config/linux/i486/futex.h: Likewise.
860 * config/linux/x86_64/futex.h: Likewise.
862 * config/linux/lock.c: New file.
863 * config/linux/omp-lock.h: New file.
865 * critical.c, env.h: Don't include omp.h
866 * config/posix/lock.c: Include libgomp.h instead of omp.h.
867 * config/posix/time.c: Likewise.
868 * config/posix/omp-lock.h: New file.
869 * libgomp.h: Include omp-lock.h and omp.h.
870 * Makefile.am (nodist_include_HEADERS): New.
872 * configure.ac (PERL): New.
873 * mkomp_h.pl: New file.
874 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
876 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
878 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
879 build directory. Re-add -march=i486 hack.
881 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
882 (libgomp_link_flags): Remove.
883 (libgomp_initialized): Remove.
884 (libgomp_init): Don't protect from reinitialization. Copy code
885 from libstdc++ for getting the multilib set correctly.
887 2005-05-05 Richard Henderson <rth@redhat.com>
889 * config/linux/alpha/futex.h: New file.
890 * configure.tgt (alpha*-*-linux*): Use it.
892 * config/posix/mutex.c: New file.
893 * config/posix/sem.c: Use libgomp.h.
895 * configure.tgt (x86_64-linux): Also test CC for -m32.
896 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
898 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
901 * Makefile.am (SUBDIRS): New.
902 (libgomp_la_LDFLAGS): Add -lpthread.
903 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
904 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
906 * libgomp_g.h: New file.
907 * libgomp.h: Split out all public declarations to libgomp_g.h.
908 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
909 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
910 * config/linux/sem.h: Likewise.
911 * config/posix/sem.h: Likewise.
913 * Makefile.am (AM_LDFLAGS): New.
914 (libgomp_version_script): Split out from ...
915 (libgomp_la_LDFLAGS): ... here.
916 (libgomp_version_info): New.
917 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
918 (LIBGOMP_ENABLE): New.
919 (LIBGOMP_CHECK_LINKER_FEATURES): New.
920 (LIBGOMP_ENABLE_SYMVERS): New.
921 * configure.ac (AC_INIT): Version 1.0.
922 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
923 (enable-linux-futex): Likewise. Rename from enable-futex.
924 (libtool_VERSION): New.
925 (LIBGOMP_ENABLE_SYMVERS): Use it.
926 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
927 * Makefile.in, aclocal.m4, configure: Rebuild.
929 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
930 (gomp_mutex_unlock_slow): Fix typo.
931 * config/linux/sem.c: Similarly.
932 (gomp_sem_post_slow): Fix typo.
933 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
934 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
935 [__PIC__] (sys_futex0): Don't use tmp output in asm.
937 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
938 (libgomp_la_LDFLAGS): Add top_srcdir to path.
939 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
940 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
941 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
942 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
943 LDFLAGS. Pull enable_futex check to top-level.
944 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
945 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
947 First attempt at real configury.
948 * Makefile, config.h: Remove file.
949 * Makefile.am, Makefile.in: New file.
950 * acinclude.m4 aclocal.m4: New file.
951 * configure.ac, configure.tgt, configure: New file.
953 * config/posix/lock.c: Rename from sys-lock.c.
954 * config/posix/mutex.h: Rename from sys-mutex.h.
955 * config/posix/sem.c: Rename from sys-sem.c.
956 * config/posix/sem.h: Rename from sys-sem.h.
957 * config/posix/proc.c: Rename from sys-proc.c.
958 * config/posix/time.c: Rename from sys-proc.c.
960 * config/linux/mutex.c: New file.
961 * config/linux/mutex.h: New file.
962 * config/linux/sem.c: New file.
963 * config/linux/sem.h: New file.
964 * config/linux/i486/futex.h: New file.
965 * config/linux/x86_64/futex.h: New file.
967 2005-05-04 Richard Henderson <rth@redhat.com>
969 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
970 * libgomp.h: Declare them.
971 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
972 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
974 2005-05-04 Richard Henderson <rth@redhat.com>
976 * libgomp-1 code drop
978 2005-05-04 Richard Henderson <rth@redhat.com>
980 * iter.c (gomp_iter_static_next): Return tri-state on 0.
981 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
982 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
983 (gomp_iter_static_next): Update.
984 (gomp_ordered_static_next): Update.
985 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
986 (gomp_loop_ordered_static_start): Likewise. Exit early for a
988 (gomp_loop_ordered_static_next): Refine test for calling
989 gomp_ordered_static_next.
990 * testsuite/ordered-1.c: Add case for more threads than iterations.
992 * iter.c (gomp_iter_runtime_next_locked): Remove.
993 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
994 gomp_loop_guided_start, gomp_loop_ordered_static_start,
995 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
996 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
997 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
998 gomp_loop_ordered_guided_next): Downcase name, make static, add
999 an external alias with the old name.
1000 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1001 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1002 switch and call one of the above static functions.
1003 * libgomp.h: Update.
1005 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1006 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1007 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1008 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1009 GOMP_loop_ordered_guided_start): Update to match.
1010 * sections.c (GOMP_sections_start): Likewise.
1011 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1013 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1014 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1015 Use bounds check instead of modulus.
1016 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1017 (gomp_ordered_last): Don't sync with ordered_owner here.
1018 (gomp_ordered_next): Likewise.
1019 (gomp_ordered_static_loop_next): Likewise.
1020 * loop.c, libgomp.h: Update to match.
1022 * libgomp.h (GOMP_barrier): Declare.
1024 * testsuite/barrier-1.c: New file.
1025 * testsuite/critical-1.c: New file.
1026 * testsuite/ordered-2.c: New file.
1027 * testsuite/ordered-1.c: New file.
1028 * testsuite/sections-1.c: New file.
1029 * testsuite/single-1.c: New file.
1030 * testsuite/Makefile (TESTS): Add them.
1032 2005-05-04 Richard Henderson <rth@redhat.com>
1034 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1035 * loop.c (GOMP_loop_static_start): If not the startup thread,
1036 acquire the mutex to wait for initialization complete.
1037 (GOMP_loop_ordered_static_start): Likewise.
1038 (GOMP_loop_ordered_runtime_start): Likewise.
1039 (GOMP_loop_ordered_static_first): Remove.
1040 (GOMP_loop_ordered_dynamic_first): Remove.
1041 (GOMP_loop_ordered_guided_first): Remove.
1042 (GOMP_loop_ordered_runtime_first): Remove.
1043 * ordered.c (gomp_ordered_loop_first): Post to own release when
1044 we're the first thread.
1045 (gomp_ordered_loop_last): Wait on release if not owner.
1046 (gomp_ordered_loop_next): Likewise.
1047 (gomp_ordered_static_loop_init): New.
1048 (gomp_ordered_static_loop_next): Use ordered_owner.
1049 (GOMP_ordered_start): Likewise.
1050 * work.c (gomp_new_work_share): Initialize ordered_owner.
1052 2005-05-03 Richard Henderson <rth@redhat.com>
1054 * Makefile (OPT): New.
1057 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1058 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1059 * libgomp.h, libgomp.map, NOTES: Update to match.
1061 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1062 Add initialized and thr members.
1063 (gomp_thread_start): Pause when initially spawned to wait for
1064 the whole team to be created.
1065 (gomp_team_start): Release team members at the end.
1067 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1068 (f_foo_1): Use GOMP_loop_end.
1069 (f_foo_2): Use GOMP_loop_end_nowait.
1071 * testsuite/loop-2.c: New file.
1072 * testsuite/Makefile (TESTS): Add it.
1074 2005-05-03 Richard Henderson <rth@redhat.com>
1076 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1077 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1078 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1081 * testsuite/Makefile: New file.
1082 * testsuite/loop-1.c: New file.
1084 2005-05-03 Richard Henderson <rth@redhat.com>
1086 Initial implementation and checkin.