1 2006-03-13 Jakub Jelinek <jakub@redhat.com>
3 * testsuite/libgomp.fortran/retval2.f90: New test.
5 2006-03-09 Diego Novillo <dnovillo@redhat.com>
7 * testsuite/libgomp.c++: New directory.
9 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12 * config/posix/sem.c: Implement the above.
14 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
16 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
17 define HAVE_BROKEN_POSIX_SEMAPHORES.
19 * config.h.in: Rebuilt.
21 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
24 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
25 for the other pthread check.
26 * configure: Regenerate.
27 * config.h.in: Regenerate.
29 2006-02-15 Jakub Jelinek <jakub@redhat.com>
33 * Makefile.am (fincludedir): New variable.
34 (nodist_include_HEADERS): Remove Fortran files.
35 (nodist_finclude_HEADERS): New variable.
36 * Makefile.in: Regenerated.
38 2006-02-13 Jakub Jelinek <jakub@redhat.com>
40 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
41 Remove tests for returning assumed character length arrays.
43 2006-02-12 Roger Sayle <roger@eyesopen.com>
44 John David Anglin <dave@hiauly1.hia.nrc.ca>
47 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
49 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
51 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
53 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
55 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
56 part of LD_LIBRARY_PATH manually.
58 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
61 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
64 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
67 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
68 * configure.ac (PERL): Don't set.
69 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
70 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
71 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
72 * omp.h.in: Wrap the new configure substitutions with @ characters.
73 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
74 * aclocal.m4, configure, Makefile.in: Regenerate.
77 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
80 * configure.ac: Use GCC_HEADER_STDINT.
81 * libgomp.h: Include gstdint.h.
82 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
83 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
85 2006-01-24 Richard Henderson <rth@redhat.com>
88 * configure.ac: Add AM_MAINTAINER_MODE.
89 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
91 2006-01-24 Diego Novillo <dnovillo@redhat.com>
93 * Makefile.in: Regenerate.
94 * testsuite/Makefile.in: Regenerate.
95 * aclocal.m4: Regenerate.
97 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
99 * config/posix/proc.c: Conditional include of sys/loadavg.h for
101 * configure.ac: Add check for loadavg.h.
102 (link_gomp): Adjust comment.
103 * configure: Regenerate.
104 * config.h.in: Regenerate.
106 2006-01-21 Steve Ellcey <sje@cup.hp.com>
109 * configure.ac: Remove check for alloca.h.
110 * configure: Regenerate.
111 * config.h.in: Regenerate.
112 * libgomp.h: define gomp_alloca to be __builtin_alloca.
113 * team.c: Remove use of alloca.h.
114 Call gomp_alloca instead of alloca.
116 2006-01-20 Steve Ellcey <sje@cup.hp.com>
119 * team.c: Add include of alloca.h.
120 * configure.ac: Add check for alloca.h.
121 * configure: Regenerate.
122 * config.h.in: Regenerate.
124 2006-01-17 Jakub Jelinek <jakub@redhat.com>
127 * testsuite/libgomp.fortran/pr25219.f90: New test.
129 2005-12-05 Uros Bizjak <uros@kss-loka.si>
131 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
132 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
133 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
134 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
135 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
136 testsuite/libgomp.fortran/threadprivate1.f90,
137 testsuite/libgomp.fortran/threadprivate2.f90,
138 testsuite/libgomp.fortran/threadprivate3.f90,
139 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
140 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
141 testsuite/libgomp.fortran/omp_parse3.f90: Change required
142 effective-target to TLS runtime.
144 * testsuite/libgomp.fortran/pr25162.f: Require
145 effective-target TLS runtime.
147 2005-12-01 Jakub Jelinek <jakub@redhat.com>
149 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
150 * testsuite/libgomp.c/nestedfn-3.c: New test.
152 2005-11-30 Jakub Jelinek <jakub@redhat.com>
155 * testsuite/libgomp.fortran/pr25162.f: New test.
157 2005-11-28 Jakub Jelinek <jakub@redhat.com>
159 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
160 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
162 2005-11-25 Jakub Jelinek <jakub@redhat.com>
164 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
165 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
166 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
167 single.c, team.c, work.c, config/linux/alpha/futex.h,
168 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
169 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
170 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
171 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
172 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
173 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
174 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
177 2005-11-18 Jakub Jelinek <jakub@redhat.com>
179 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
180 to nodist_noinst_HEADERS.
181 * Makefile.in: Rebuilt.
183 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
184 add integer count field.
185 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
186 omp_nest_lock_t type change.
187 (omp_init_nest_lock): Likewise. Initialize count to 0.
188 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
190 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
192 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
193 Increment count if successful and return the new nesting level.
194 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
195 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
196 * testsuite/libgomp.c/lib-1.c: New test.
197 * testsuite/libgomp.fortran/lib1.f90: New test.
198 * testsuite/libgomp.fortran/lib2.f: New test.
199 * testsuite/libgomp.fortran/lib3.f: New test.
201 2005-11-17 Richard Henderson <rth@redhat.com>
204 * Makefile.am (nodist_toolexeclib_HEADERS): New.
205 * configure.ac (link_gomp): New. Substitute it.
206 (AC_CONFIG_FILES): Add libgomp.spec.
207 * libgomp.spec.in: New file.
208 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
209 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
211 2005-11-18 Jakub Jelinek <jakub@redhat.com>
213 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
214 reduction(-:var) behaving the same as reduction(+:var).
215 * testsuite/libgomp.c/reduction-4.c: New test.
217 2005-11-15 Uros Bizjak <uros@kss-loka.si>
219 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
220 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
221 testsuite/libgomp.c/copyin-3.c,
222 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
223 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
224 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
225 testsuite/libgomp.c++/pr24455.C,
226 testsuite/libgomp.fortran/threadprivate1.f90,
227 testsuite/libgomp.fortran/threadprivate2.f90,
228 testsuite/libgomp.fortran/threadprivate3.f90,
229 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
230 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
231 testsuite/libgomp.fortran/omp_parse3.f90: Require
232 effective-target TLS.
234 2005-11-14 Diego Novillo <dnovillo@redhat.com>
238 2005-11-13 Jakub Jelinek <jakub@redhat.com>
241 * team.c (initialize_team): Pass NULL rather than free as
242 pthread_key_create destructor. Initialize thread specific data
243 pointer in initial thread to a static local variable rather than
246 2005-11-11 Uros Bizjak <uros@kss-loka.si>
248 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
249 its location to ld_library_path.
251 2005-11-10 Diego Novillo <dnovillo@redhat.com>
253 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
255 2005-11-10 Diego Novillo <dnovillo@redhat.com>
257 * testsuite/libgomp.c: Rename from libgomp.dg.
259 2005-11-09 Diego Novillo <dnovillo@redhat.com>
261 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
262 threadprivate variable 'i'.
264 2005-11-09 Jakub Jelinek <jakub@redhat.com>
266 * config/linux/s390/futex.h: New file.
267 * configure.tgt: Use it.
269 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
272 2005-11-08 Jakub Jelinek <jakub@redhat.com>
275 * testsuite/libgomp.c++/master-1.C: New test.
277 2005-11-07 Jakub Jelinek <jakub@redhat.com>
279 * testsuite/libgomp.dg/copyin-3.c: New test.
281 2005-11-07 Jakub Jelinek <jakub@redhat.com>
283 * testsuite/libgomp.fortran/retval1.f90: New test.
284 * testsuite/libgomp.fortran/vla7.f90: New test.
286 2005-11-06 Jakub Jelinek <jakub@redhat.com>
288 * testsuite/libgomp.fortran/vla2.f90: New test.
289 * testsuite/libgomp.fortran/vla3.f90: New test.
290 * testsuite/libgomp.fortran/vla4.f90: New test.
291 * testsuite/libgomp.fortran/vla5.f90: New test.
292 * testsuite/libgomp.fortran/vla6.f90: New test.
294 2005-11-01 Jakub Jelinek <jakub@redhat.com>
296 * config/linux/sparc/futex.h: New file.
297 * configure.tgt: Use it.
298 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
300 * critical.c: Include stdlib.h.
301 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
302 ignoring return value.
303 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
304 LIBGOMP_CHECK_SYNC_BUILTINS check.
305 * configure: Rebuilt.
307 2005-10-31 Jakub Jelinek <jakub@redhat.com>
309 * testsuite/libgomp.fortran/vla1.f90: New test.
311 2005-10-31 Richard Henderson <rth@redhat.com>
313 * testsuite/libgomp.fortran/character2.f90: Fix race condition
314 setting 's' in different threads.
316 2005-10-31 Jakub Jelinek <jakub@redhat.com>
318 * libgomp.h (attribute_hidden, ialias): Define.
319 * config/posix/proc.c (omp_get_num_procs): Add ialias.
320 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
321 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
322 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
323 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
324 omp_test_lock, omp_test_nest_lock): Likewise.
325 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
326 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
327 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
328 omp_test_lock, omp_test_nest_lock): Likewise.
329 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
330 omp_get_dynamic, omp_get_nested): Likewise.
331 * parallel.c (omp_get_num_threads, omp_get_max_threads,
332 omp_get_thread_num, omp_in_parallel): Likewise.
333 * fortran.c (ialias_redirect): Define.
334 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
335 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
336 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
337 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
338 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
339 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
340 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
341 omp_get_wtime): Add ialias_redirect.
343 2005-10-30 Jakub Jelinek <jakub@redhat.com>
345 * fortran.c: Include stdlib.h.
347 2005-10-29 Jakub Jelinek <jakub@redhat.com>
349 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
350 * Makefile.in: Regenerated.
352 2005-10-28 Jakub Jelinek <jakub@redhat.com>
354 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
355 * libgomp_f.h.in (omp_check_defines): New function.
356 * env.c: Include libgomp_f.h.
357 (initialize_env): Call omp_check_defines.
359 * testsuite/libgomp.dg/copyin-2.c: New test.
360 * testsuite/libgomp.c++/copyin-2.C: New test.
361 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
363 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
364 * testsuite/libgomp.fortran/sharing2.f90: New test.
366 * testsuite/libgomp.dg/copyin-1.c: New test.
367 * testsuite/libgomp.c++/copyin-1.C: New test.
369 2005-10-26 Jakub Jelinek <jakub@redhat.com>
371 * testsuite/libgomp.fortran/crayptr1.f90: New test.
373 * testsuite/libgomp.fortran/workshare1.f90: New test.
375 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
377 * libgomp.fortran/sharing1.f90: New test.
379 2005-10-24 Jakub Jelinek <jakub@redhat.com>
382 * testsuite/libgomp.c++/loop-7.C: New test.
384 * testsuite/libgomp.dg/nestedfn-2.c: New test.
386 * testsuite/libgomp.dg/nestedfn-1.c: New test.
387 * testsuite/libgomp.fortran/reduction6.f90: New test.
388 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
390 2005-10-23 Richard Henderson <rth@redhat.com>
392 * testsuite/libgomp.c++/ctor-1.C: New.
393 * testsuite/libgomp.c++/ctor-2.C: New.
394 * testsuite/libgomp.c++/ctor-3.C: New.
395 * testsuite/libgomp.c++/ctor-4.C: New.
396 * testsuite/libgomp.c++/ctor-5.C: New.
397 * testsuite/libgomp.c++/ctor-6.C: New.
398 * testsuite/libgomp.c++/ctor-7.C: New.
399 * testsuite/libgomp.c++/ctor-8.C: New.
400 * testsuite/libgomp.c++/ctor-9.C: New.
402 2005-10-21 Diego Novillo <dnovillo@redhat.com>
405 * testsuite/libgomp.c++/pr24455-1.C: New test.
406 * testsuite/libgomp.c++/pr24455.C: New test.
407 * testsuite/libgomp.dg/pr24455-1.c: New test.
408 * testsuite/libgomp.dg/pr24455.c: New test.
410 2005-10-20 Richard Henderson <rth@redhat.com>
412 * testsuite/libgomp.c++/loop-6.C: New.
413 * testsuite/libgomp.dg/loop-3.c: New.
415 2005-10-20 Jakub Jelinek <jakub@redhat.com>
417 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
419 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
422 2005-10-19 Diego Novillo <dnovillo@redhat.com>
424 * testsuite/libgomp.fortran/jacobi.f: New test.
426 2005-10-19 Richard Henderson <rth@redhat.com>
428 * configure.tgt (i?86-linux): Default to with_arch instead of
429 CFLAGS. Add -mtune to match target_cpu.
430 (x86_64-linux): Tune to i686.
432 * fortran.c (omp_test_nest_lock_): Fix typo.
434 2005-10-19 Jakub Jelinek <jakub@redhat.com>
436 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
437 gomp_ordered_sync): Do nothing if team->nthreads == 1.
438 * testsuite/libgomp.dg/ordered-3.c: New test.
440 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
441 Remove volatile keyword.
443 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
444 in COMMON block to avoid warnings on 64-bit targets.
446 2005-10-18 Diego Novillo <dnovillo@redhat.com>
448 * testsuite/libgomp.dg/shared-3.c: New test.
450 2005-10-18 Jakub Jelinek <jakub@redhat.com>
452 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
453 * testsuite/libgomp.fortran/reduction5.f90: New test.
455 2005-10-18 Jakub Jelinek <jakub@redhat.com>
457 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
459 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
460 flush loop now that __sync_synchronize has proper memory barrier.
461 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
462 Add -ffixed-form to dg-options.
464 2005-10-17 Diego Novillo <dnovillo@redhat.com>
466 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
468 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
469 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
470 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
471 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
472 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
473 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
474 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
475 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
476 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
477 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
478 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
479 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
480 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
481 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
482 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
483 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
484 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
485 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
486 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
487 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
488 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
489 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
490 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
491 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
492 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
494 2005-10-17 Jakub Jelinek <jakub@redhat.com>
496 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
497 lang_library_path exists. Use find instead of glob to gather tests.
498 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
500 2005-10-17 Diego Novillo <dnovillo@redhat.com>
502 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
503 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
504 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
505 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
506 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
507 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
508 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
509 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
510 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
511 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
512 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
513 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
514 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
516 2005-10-15 Jakub Jelinek <jakub@redhat.com>
518 * testsuite/libgomp.dg/vla-1.c: New test.
520 * testsuite/libgomp.fortran/reference2.f90: New test.
522 * testsuite/libgomp.fortran/character2.f90: Remove explicit
523 declaration of omp_get_thread_num.
524 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
527 * testsuite/libgomp.fortran/reduction1.f90: New test.
528 * testsuite/libgomp.fortran/reduction2.f90: New test.
529 * testsuite/libgomp.fortran/reduction3.f90: New test.
530 * testsuite/libgomp.fortran/reduction4.f90: New test.
532 2005-10-13 Richard Henderson <rth@redhat.com>
534 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
535 * Makefile.in: Regenerate.
536 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
537 * libgomp.h: Include bar.h.
538 (struct gomp_barrier): Remove.
539 (struct gomp_team): Add barrier. Replace master_barrier with
540 master_release. Replace threads with ordered_release.
541 (struct gomp_thread): Replace barrier with release.
542 * ordered.c (gomp_ordered_first): Update for ordered_release change.
543 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
544 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
545 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
546 (GOMP_single_copy_end): Likewise.
547 * team.c (gomp_threads_dock): New.
548 (gomp_barrier_init, gomp_barrier_destroy): Remove.
549 (gomp_thread_start): Use gomp_barrier_wait.
550 (new_team, free_team): Update for gomp_team changes.
551 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
552 (gomp_team_end): Use gomp_barrier_wait.
553 (initialize_team): Update for gomp_thread changes.
554 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
555 (gomp_work_share_end_nowait): Use atomic ops when available.
556 * config/linux/bar.c, config/linux/bar.h: New files.
557 * config/posix/bar.c, config/posix/bar.h: New files.
559 2005-10-13 Jakub Jelinek <jakub@redhat.com>
561 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
562 * testsuite/libgomp.dg/single-2.c: New test.
564 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
565 lang_link_flags): Unset, so that they aren't inherited from previously
568 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
570 2005-10-12 Richard Henderson <rth@redhat.com>
572 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
573 (libgomp_init): Use lang_test_file, lang_library_path, and
574 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
576 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
577 (lang_test_file, lang_link_flags): New.
578 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
580 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
581 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
582 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
583 testsuite/libgomp.c++/parallel-1.C,
584 testsuite/libgomp.c++/reduction-1.C,
585 testsuite/libgomp.c++/reduction-2.C,
586 testsuite/libgomp.c++/reduction-3.C,
587 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
588 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
589 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
590 New files, largely cribbed from the C testsuite.
592 2005-10-12 Jakub Jelinek <jakub@redhat.com>
594 * testsuite/libgomp.fortran/character1.f90: New test.
595 * testsuite/libgomp.fortran/character2.f90: New test.
597 * testsuite/libgomp.dg/nested-1.c: New test.
598 * testsuite/libgomp.dg/nested-2.c: New test.
599 * testsuite/libgomp.fortran/do1.f90: New test.
600 * testsuite/libgomp.fortran/do2.f90: New test.
602 * testsuite/libgomp.fortran/reference1.f90: New test.
604 2005-10-11 Jakub Jelinek <jakub@redhat.com>
606 * testsuite/libgomp.dg/reduction-1.c: New test.
607 * testsuite/libgomp.dg/reduction-2.c: New test.
608 * testsuite/libgomp.dg/reduction-3.c: New test.
610 2005-10-10 Jakub Jelinek <jakub@redhat.com>
612 * testsuite/libgomp.dg/atomic-1.c: New test.
613 * testsuite/libgomp.dg/atomic-2.c: New test.
615 2005-10-09 Richard Henderson <rth@redhat.com>
617 * critical.c (atomic_lock): New.
618 (initialize_critical): Initialize it.
619 (GOMP_atomic_start, GOMP_atomic_end): New.
620 * libgomp.map: Export them.
621 * libgomp_g.h: Declare them.
623 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
625 2005-10-02 Richard Henderson <rth@redhat.com>
627 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
628 to XCFLAGS instead of CFLAGS.
630 2005-09-30 Richard Henderson <rth@redhat.com>
632 * configure.ac: Determine whether -pthread or -lpthread is needed.
633 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
634 * Makefine.in, configure: Rebuild.
636 2005-09-28 Richard Henderson <rth@redhat.com>
638 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
639 * testsuite/libgomp.dg/omp-single-3.c: New test.
641 2005-09-28 Diego Novillo <dnovillo@redhat.com>
643 * testsuite/libgomp.dg/omp-single-2.c: New test.
644 * testsuite/libgomp.dg/shared-2.c: Fix return code.
646 2005-09-27 Richard Henderson <rth@redhat.com>
648 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
649 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
651 2005-09-27 Jakub Jelinek <jakub@redhat.com>
653 * testsuite/libgomp.dg/omp-loop03.c: New test.
655 2005-09-27 Diego Novillo <dnovillo@redhat.com>
657 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
659 2005-09-27 Diego Novillo <dnovillo@redhat.com>
661 * testsuite/libgomp.dg/omp-single-1.c: New test.
662 * testsuite/libgomp.dg/shared-1.c: Return 0.
663 Add prototype for abort.
664 * testsuite/libgomp.dg/shared-2.c: Likewise.
666 2005-09-26 Jakub Jelinek <jakub@redhat.com>
668 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
671 2005-09-26 Diego Novillo <dnovillo@redhat.com>
673 * testsuite/libgomp.dg/shared-1.c: New test.
674 * testsuite/libgomp.dg/shared-2.c: New test.
676 2005-09-24 Richard Henderson <rth@redhat.com>
678 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
680 2005-09-24 Richard Henderson <rth@redhat.com>
682 * iter.c (gomp_iter_static_next): Round up when computing number
683 of iterations. Don't bother distributing a remainder equally.
685 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
686 Don't call srand. Zero b before testing.
689 2005-09-24 Jakub Jelinek <jakub@redhat.com>
691 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
692 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
694 2005-09-23 Jakub Jelinek <jakub@redhat.com>
696 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
697 without !$omp end do, followed immediately by subroutine end.
699 2005-09-23 Diego Novillo <dnovillo@redhat.com>
701 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
703 2005-09-22 Richard Henderson <rth@redhat.com>
705 * critical.c (GOMP_critical_name_start): Change argument to void**.
706 Reuse the pointer space if the mutex fits.
707 (GOMP_critical_name_end): Likewise.
708 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
709 * libgomp_g.h (GOMP_critical_name_start): Update decl.
710 (GOMP_critical_name_end): Likewise.
711 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
712 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
714 2005-09-20 Richard Henderson <rth@redhat.com>
716 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
717 (create_lock_lock): New.
718 (initialize_critical): Initialize it.
719 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
720 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
722 2005-09-20 Diego Novillo <dnovillo@redhat.com>
724 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
726 2005-09-20 Diego Novillo <dnovillo@redhat.com>
728 * testsuite/libgomp.dg/omp-loop01.c: New test.
729 * testsuite/libgomp.dg/omp-loop02.c: New test.
731 2005-09-20 Jakub Jelinek <jakub@redhat.com>
733 * configure.ac (AC_PROG_FC): Add.
734 (USE_FORTRAN): New automake conditional.
735 * configure: Rebuilt.
736 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
737 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
738 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
739 Add rules to build them.
740 * Makefile.in: Rebuilt.
741 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
743 * libgomp.map: Add Fortran wrappers.
744 * libgomp_f.h.in: New file.
745 * omp_lib.h.in: New file.
746 * omp_lib.f90.in: New file.
747 * fortran.c: New file.
748 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
749 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
750 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
751 libgfortran has been built.
752 * testsuite/libgomp.fortran/fortran.exp: New file.
753 * testsuite/libgomp.fortran/omp_cond1.f: New test.
754 * testsuite/libgomp.fortran/omp_cond2.f: New test.
755 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
756 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
757 * testsuite/libgomp.fortran/omp_hello.f: New test.
758 * testsuite/libgomp.fortran/omp_orphan.f: New test.
759 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
760 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
761 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
762 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
763 * testsuite/libgomp.fortran/omp_reduction.f: New test.
764 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
765 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
767 2005-08-30 Richard Henderson <rth@redhat.com>
769 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
770 function for when aliases are not usable.
771 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
772 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
773 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
774 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
775 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
776 GOMP_loop_ordered_guided_next): Likewise.
777 * ordered.c (GOMP_ordered_start): Likewise.
779 2005-08-01 Diego Novillo <dnovillo@redhat.com>
781 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
782 * testsuite/libgomp.dg/omp_hello.c: Fix return code
783 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
784 * testsuite/libgomp.dg/omp_orphan.c: Likewise
785 * testsuite/libgomp.dg/omp_reduction.c: Likewise
786 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
787 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
788 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
789 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
791 2005-07-07 Eric Christopher <echristo@redhat.com>
792 Diego Novillo <dnovillo@redhat.com>
794 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
795 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
797 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
798 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
799 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
800 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
801 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
802 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
803 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
805 2005-06-13 Diego Novillo <dnovillo@redhat.com>
807 * TOPLEVEL.patch: Remove.
809 2005-05-16 Richard Henderson <rth@redhat.com>
811 * configure.ac: Test for clock_gettime.
812 * config.h.in, configure: Rebuild.
813 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
814 (omp_get_wtime): Use clock_gettime if available.
815 (omp_get_wtick): Use clock_getres if available.
817 2005-05-11 Richard Henderson <rth@redhat.com>
819 * config/linux/ia64/futex.h: New file.
820 * configure.tgt: Use it.
822 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
824 2005-05-07 Richard Henderson <rth@redhat.com>
826 * config/linux/powerpc/futex.h: New file.
827 * configure.tgt: Use it.
829 * config/linux/i486/futex.h: Merge ...
830 * config/linux/x86_64/futex.h: ... into ...
831 * config/linux/x86/futex.h: ... here.
832 * configure.tgt: Update to match.
834 2005-05-06 Richard Henderson <rth@redhat.com>
836 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
837 * config/linux/i486/futex.h: Likewise.
838 * config/linux/x86_64/futex.h: Likewise.
840 * config/linux/lock.c: New file.
841 * config/linux/omp-lock.h: New file.
843 * critical.c, env.h: Don't include omp.h
844 * config/posix/lock.c: Include libgomp.h instead of omp.h.
845 * config/posix/time.c: Likewise.
846 * config/posix/omp-lock.h: New file.
847 * libgomp.h: Include omp-lock.h and omp.h.
848 * Makefile.am (nodist_include_HEADERS): New.
850 * configure.ac (PERL): New.
851 * mkomp_h.pl: New file.
852 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
854 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
856 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
857 build directory. Re-add -march=i486 hack.
859 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
860 (libgomp_link_flags): Remove.
861 (libgomp_initialized): Remove.
862 (libgomp_init): Don't protect from reinitialization. Copy code
863 from libstdc++ for getting the multilib set correctly.
865 2005-05-05 Richard Henderson <rth@redhat.com>
867 * config/linux/alpha/futex.h: New file.
868 * configure.tgt (alpha*-*-linux*): Use it.
870 * config/posix/mutex.c: New file.
871 * config/posix/sem.c: Use libgomp.h.
873 * configure.tgt (x86_64-linux): Also test CC for -m32.
874 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
876 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
879 * Makefile.am (SUBDIRS): New.
880 (libgomp_la_LDFLAGS): Add -lpthread.
881 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
882 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
884 * libgomp_g.h: New file.
885 * libgomp.h: Split out all public declarations to libgomp_g.h.
886 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
887 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
888 * config/linux/sem.h: Likewise.
889 * config/posix/sem.h: Likewise.
891 * Makefile.am (AM_LDFLAGS): New.
892 (libgomp_version_script): Split out from ...
893 (libgomp_la_LDFLAGS): ... here.
894 (libgomp_version_info): New.
895 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
896 (LIBGOMP_ENABLE): New.
897 (LIBGOMP_CHECK_LINKER_FEATURES): New.
898 (LIBGOMP_ENABLE_SYMVERS): New.
899 * configure.ac (AC_INIT): Version 1.0.
900 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
901 (enable-linux-futex): Likewise. Rename from enable-futex.
902 (libtool_VERSION): New.
903 (LIBGOMP_ENABLE_SYMVERS): Use it.
904 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
905 * Makefile.in, aclocal.m4, configure: Rebuild.
907 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
908 (gomp_mutex_unlock_slow): Fix typo.
909 * config/linux/sem.c: Similarly.
910 (gomp_sem_post_slow): Fix typo.
911 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
912 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
913 [__PIC__] (sys_futex0): Don't use tmp output in asm.
915 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
916 (libgomp_la_LDFLAGS): Add top_srcdir to path.
917 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
918 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
919 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
920 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
921 LDFLAGS. Pull enable_futex check to top-level.
922 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
923 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
925 First attempt at real configury.
926 * Makefile, config.h: Remove file.
927 * Makefile.am, Makefile.in: New file.
928 * acinclude.m4 aclocal.m4: New file.
929 * configure.ac, configure.tgt, configure: New file.
931 * config/posix/lock.c: Rename from sys-lock.c.
932 * config/posix/mutex.h: Rename from sys-mutex.h.
933 * config/posix/sem.c: Rename from sys-sem.c.
934 * config/posix/sem.h: Rename from sys-sem.h.
935 * config/posix/proc.c: Rename from sys-proc.c.
936 * config/posix/time.c: Rename from sys-proc.c.
938 * config/linux/mutex.c: New file.
939 * config/linux/mutex.h: New file.
940 * config/linux/sem.c: New file.
941 * config/linux/sem.h: New file.
942 * config/linux/i486/futex.h: New file.
943 * config/linux/x86_64/futex.h: New file.
945 2005-05-04 Richard Henderson <rth@redhat.com>
947 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
948 * libgomp.h: Declare them.
949 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
950 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
952 2005-05-04 Richard Henderson <rth@redhat.com>
954 * libgomp-1 code drop
956 2005-05-04 Richard Henderson <rth@redhat.com>
958 * iter.c (gomp_iter_static_next): Return tri-state on 0.
959 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
960 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
961 (gomp_iter_static_next): Update.
962 (gomp_ordered_static_next): Update.
963 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
964 (gomp_loop_ordered_static_start): Likewise. Exit early for a
966 (gomp_loop_ordered_static_next): Refine test for calling
967 gomp_ordered_static_next.
968 * testsuite/ordered-1.c: Add case for more threads than iterations.
970 * iter.c (gomp_iter_runtime_next_locked): Remove.
971 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
972 gomp_loop_guided_start, gomp_loop_ordered_static_start,
973 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
974 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
975 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
976 gomp_loop_ordered_guided_next): Downcase name, make static, add
977 an external alias with the old name.
978 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
979 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
980 switch and call one of the above static functions.
983 * work.c (gomp_work_share_start): Lock the mutex for !first too.
984 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
985 GOMP_loop_guided_start, GOMP_loop_runtime_start,
986 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
987 GOMP_loop_ordered_guided_start): Update to match.
988 * sections.c (GOMP_sections_start): Likewise.
989 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
991 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
992 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
993 Use bounds check instead of modulus.
994 (gomp_ordered_sync): Split out of GOMP_ordered_start.
995 (gomp_ordered_last): Don't sync with ordered_owner here.
996 (gomp_ordered_next): Likewise.
997 (gomp_ordered_static_loop_next): Likewise.
998 * loop.c, libgomp.h: Update to match.
1000 * libgomp.h (GOMP_barrier): Declare.
1002 * testsuite/barrier-1.c: New file.
1003 * testsuite/critical-1.c: New file.
1004 * testsuite/ordered-2.c: New file.
1005 * testsuite/ordered-1.c: New file.
1006 * testsuite/sections-1.c: New file.
1007 * testsuite/single-1.c: New file.
1008 * testsuite/Makefile (TESTS): Add them.
1010 2005-05-04 Richard Henderson <rth@redhat.com>
1012 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1013 * loop.c (GOMP_loop_static_start): If not the startup thread,
1014 acquire the mutex to wait for initialization complete.
1015 (GOMP_loop_ordered_static_start): Likewise.
1016 (GOMP_loop_ordered_runtime_start): Likewise.
1017 (GOMP_loop_ordered_static_first): Remove.
1018 (GOMP_loop_ordered_dynamic_first): Remove.
1019 (GOMP_loop_ordered_guided_first): Remove.
1020 (GOMP_loop_ordered_runtime_first): Remove.
1021 * ordered.c (gomp_ordered_loop_first): Post to own release when
1022 we're the first thread.
1023 (gomp_ordered_loop_last): Wait on release if not owner.
1024 (gomp_ordered_loop_next): Likewise.
1025 (gomp_ordered_static_loop_init): New.
1026 (gomp_ordered_static_loop_next): Use ordered_owner.
1027 (GOMP_ordered_start): Likewise.
1028 * work.c (gomp_new_work_share): Initialize ordered_owner.
1030 2005-05-03 Richard Henderson <rth@redhat.com>
1032 * Makefile (OPT): New.
1035 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1036 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1037 * libgomp.h, libgomp.map, NOTES: Update to match.
1039 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1040 Add initialized and thr members.
1041 (gomp_thread_start): Pause when initially spawned to wait for
1042 the whole team to be created.
1043 (gomp_team_start): Release team members at the end.
1045 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1046 (f_foo_1): Use GOMP_loop_end.
1047 (f_foo_2): Use GOMP_loop_end_nowait.
1049 * testsuite/loop-2.c: New file.
1050 * testsuite/Makefile (TESTS): Add it.
1052 2005-05-03 Richard Henderson <rth@redhat.com>
1054 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1055 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1056 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1059 * testsuite/Makefile: New file.
1060 * testsuite/loop-1.c: New file.
1062 2005-05-03 Richard Henderson <rth@redhat.com>
1064 Initial implementation and checkin.