1 2005-10-15 Jakub Jelinek <jakub@redhat.com>
3 * testsuite/libgomp.fortran/character2.f90: Remove explicit
4 declaration of omp_get_thread_num.
5 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
8 * testsuite/libgomp.fortran/reduction1.f90: New test.
9 * testsuite/libgomp.fortran/reduction2.f90: New test.
10 * testsuite/libgomp.fortran/reduction3.f90: New test.
11 * testsuite/libgomp.fortran/reduction4.f90: New test.
13 2005-10-13 Richard Henderson <rth@redhat.com>
15 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
16 * Makefile.in: Regenerate.
17 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
18 * libgomp.h: Include bar.h.
19 (struct gomp_barrier): Remove.
20 (struct gomp_team): Add barrier. Replace master_barrier with
21 master_release. Replace threads with ordered_release.
22 (struct gomp_thread): Replace barrier with release.
23 * ordered.c (gomp_ordered_first): Update for ordered_release change.
24 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
25 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
26 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
27 (GOMP_single_copy_end): Likewise.
28 * team.c (gomp_threads_dock): New.
29 (gomp_barrier_init, gomp_barrier_destroy): Remove.
30 (gomp_thread_start): Use gomp_barrier_wait.
31 (new_team, free_team): Update for gomp_team changes.
32 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
33 (gomp_team_end): Use gomp_barrier_wait.
34 (initialize_team): Update for gomp_thread changes.
35 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
36 (gomp_work_share_end_nowait): Use atomic ops when available.
37 * config/linux/bar.c, config/linux/bar.h: New files.
38 * config/posix/bar.c, config/posix/bar.h: New files.
40 2005-10-13 Jakub Jelinek <jakub@redhat.com>
42 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
43 * testsuite/libgomp.dg/single-2.c: New test.
45 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
46 lang_link_flags): Unset, so that they aren't inherited from previously
49 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
51 2005-10-12 Richard Henderson <rth@redhat.com>
53 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
54 (libgomp_init): Use lang_test_file, lang_library_path, and
55 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
57 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
58 (lang_test_file, lang_link_flags): New.
59 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
61 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
62 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
63 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
64 testsuite/libgomp.c++/parallel-1.C,
65 testsuite/libgomp.c++/reduction-1.C,
66 testsuite/libgomp.c++/reduction-2.C,
67 testsuite/libgomp.c++/reduction-3.C,
68 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
69 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
70 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
71 New files, largely cribbed from the C testsuite.
73 2005-10-12 Jakub Jelinek <jakub@redhat.com>
75 * testsuite/libgomp.fortran/character1.f90: New test.
76 * testsuite/libgomp.fortran/character2.f90: New test.
78 * testsuite/libgomp.dg/nested-1.c: New test.
79 * testsuite/libgomp.dg/nested-2.c: New test.
80 * testsuite/libgomp.fortran/do1.f90: New test.
81 * testsuite/libgomp.fortran/do2.f90: New test.
83 * testsuite/libgomp.fortran/reference1.f90: New test.
85 2005-10-11 Jakub Jelinek <jakub@redhat.com>
87 * testsuite/libgomp.dg/reduction-1.c: New test.
88 * testsuite/libgomp.dg/reduction-2.c: New test.
89 * testsuite/libgomp.dg/reduction-3.c: New test.
91 2005-10-10 Jakub Jelinek <jakub@redhat.com>
93 * testsuite/libgomp.dg/atomic-1.c: New test.
94 * testsuite/libgomp.dg/atomic-2.c: New test.
96 2005-10-09 Richard Henderson <rth@redhat.com>
98 * critical.c (atomic_lock): New.
99 (initialize_critical): Initialize it.
100 (GOMP_atomic_start, GOMP_atomic_end): New.
101 * libgomp.map: Export them.
102 * libgomp_g.h: Declare them.
104 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
106 2005-10-02 Richard Henderson <rth@redhat.com>
108 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
109 to XCFLAGS instead of CFLAGS.
111 2005-09-30 Richard Henderson <rth@redhat.com>
113 * configure.ac: Determine whether -pthread or -lpthread is needed.
114 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
115 * Makefine.in, configure: Rebuild.
117 2005-09-28 Richard Henderson <rth@redhat.com>
119 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
120 * testsuite/libgomp.dg/omp-single-3.c: New test.
122 2005-09-28 Diego Novillo <dnovillo@redhat.com>
124 * testsuite/libgomp.dg/omp-single-2.c: New test.
125 * testsuite/libgomp.dg/shared-2.c: Fix return code.
127 2005-09-27 Richard Henderson <rth@redhat.com>
129 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
130 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
132 2005-09-27 Jakub Jelinek <jakub@redhat.com>
134 * testsuite/libgomp.dg/omp-loop03.c: New test.
136 2005-09-27 Diego Novillo <dnovillo@redhat.com>
138 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
140 2005-09-27 Diego Novillo <dnovillo@redhat.com>
142 * testsuite/libgomp.dg/omp-single-1.c: New test.
143 * testsuite/libgomp.dg/shared-1.c: Return 0.
144 Add prototype for abort.
145 * testsuite/libgomp.dg/shared-2.c: Likewise.
147 2005-09-26 Jakub Jelinek <jakub@redhat.com>
149 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
152 2005-09-26 Diego Novillo <dnovillo@redhat.com>
154 * testsuite/libgomp.dg/shared-1.c: New test.
155 * testsuite/libgomp.dg/shared-2.c: New test.
157 2005-09-24 Richard Henderson <rth@redhat.com>
159 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
161 2005-09-24 Richard Henderson <rth@redhat.com>
163 * iter.c (gomp_iter_static_next): Round up when computing number
164 of iterations. Don't bother distributing a remainder equally.
166 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
167 Don't call srand. Zero b before testing.
170 2005-09-24 Jakub Jelinek <jakub@redhat.com>
172 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
173 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
175 2005-09-23 Jakub Jelinek <jakub@redhat.com>
177 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
178 without !$omp end do, followed immediately by subroutine end.
180 2005-09-23 Diego Novillo <dnovillo@redhat.com>
182 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
184 2005-09-22 Richard Henderson <rth@redhat.com>
186 * critical.c (GOMP_critical_name_start): Change argument to void**.
187 Reuse the pointer space if the mutex fits.
188 (GOMP_critical_name_end): Likewise.
189 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
190 * libgomp_g.h (GOMP_critical_name_start): Update decl.
191 (GOMP_critical_name_end): Likewise.
192 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
193 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
195 2005-09-20 Richard Henderson <rth@redhat.com>
197 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
198 (create_lock_lock): New.
199 (initialize_critical): Initialize it.
200 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
201 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
203 2005-09-20 Diego Novillo <dnovillo@redhat.com>
205 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
207 2005-09-20 Diego Novillo <dnovillo@redhat.com>
209 * testsuite/libgomp.dg/omp-loop01.c: New test.
210 * testsuite/libgomp.dg/omp-loop02.c: New test.
212 2005-09-20 Jakub Jelinek <jakub@redhat.com>
214 * configure.ac (AC_PROG_FC): Add.
215 (USE_FORTRAN): New automake conditional.
216 * configure: Rebuilt.
217 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
218 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
219 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
220 Add rules to build them.
221 * Makefile.in: Rebuilt.
222 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
224 * libgomp.map: Add Fortran wrappers.
225 * libgomp_f.h.in: New file.
226 * omp_lib.h.in: New file.
227 * omp_lib.f90.in: New file.
228 * fortran.c: New file.
229 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
230 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
231 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
232 libgfortran has been built.
233 * testsuite/libgomp.fortran/fortran.exp: New file.
234 * testsuite/libgomp.fortran/omp_cond1.f: New test.
235 * testsuite/libgomp.fortran/omp_cond2.f: New test.
236 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
237 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
238 * testsuite/libgomp.fortran/omp_hello.f: New test.
239 * testsuite/libgomp.fortran/omp_orphan.f: New test.
240 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
241 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
242 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
243 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
244 * testsuite/libgomp.fortran/omp_reduction.f: New test.
245 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
246 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
248 2005-08-30 Richard Henderson <rth@redhat.com>
250 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
251 function for when aliases are not usable.
252 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
253 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
254 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
255 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
256 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
257 GOMP_loop_ordered_guided_next): Likewise.
258 * ordered.c (GOMP_ordered_start): Likewise.
260 2005-08-01 Diego Novillo <dnovillo@redhat.com>
262 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
263 * testsuite/libgomp.dg/omp_hello.c: Fix return code
264 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
265 * testsuite/libgomp.dg/omp_orphan.c: Likewise
266 * testsuite/libgomp.dg/omp_reduction.c: Likewise
267 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
268 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
269 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
270 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
272 2005-07-07 Eric Christopher <echristo@redhat.com>
273 Diego Novillo <dnovillo@redhat.com>
275 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
276 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
278 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
279 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
280 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
281 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
282 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
283 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
284 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
286 2005-06-13 Diego Novillo <dnovillo@redhat.com>
288 * TOPLEVEL.patch: Remove.
290 2005-05-16 Richard Henderson <rth@redhat.com>
292 * configure.ac: Test for clock_gettime.
293 * config.h.in, configure: Rebuild.
294 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
295 (omp_get_wtime): Use clock_gettime if available.
296 (omp_get_wtick): Use clock_getres if available.
298 2005-05-11 Richard Henderson <rth@redhat.com>
300 * config/linux/ia64/futex.h: New file.
301 * configure.tgt: Use it.
303 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
305 2005-05-07 Richard Henderson <rth@redhat.com>
307 * config/linux/powerpc/futex.h: New file.
308 * configure.tgt: Use it.
310 * config/linux/i486/futex.h: Merge ...
311 * config/linux/x86_64/futex.h: ... into ...
312 * config/linux/x86/futex.h: ... here.
313 * configure.tgt: Update to match.
315 2005-05-06 Richard Henderson <rth@redhat.com>
317 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
318 * config/linux/i486/futex.h: Likewise.
319 * config/linux/x86_64/futex.h: Likewise.
321 * config/linux/lock.c: New file.
322 * config/linux/omp-lock.h: New file.
324 * critical.c, env.h: Don't include omp.h
325 * config/posix/lock.c: Include libgomp.h instead of omp.h.
326 * config/posix/time.c: Likewise.
327 * config/posix/omp-lock.h: New file.
328 * libgomp.h: Include omp-lock.h and omp.h.
329 * Makefile.am (nodist_include_HEADERS): New.
331 * configure.ac (PERL): New.
332 * mkomp_h.pl: New file.
333 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
335 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
337 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
338 build directory. Re-add -march=i486 hack.
340 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
341 (libgomp_link_flags): Remove.
342 (libgomp_initialized): Remove.
343 (libgomp_init): Don't protect from reinitialization. Copy code
344 from libstdc++ for getting the multilib set correctly.
346 2005-05-05 Richard Henderson <rth@redhat.com>
348 * config/linux/alpha/futex.h: New file.
349 * configure.tgt (alpha*-*-linux*): Use it.
351 * config/posix/mutex.c: New file.
352 * config/posix/sem.c: Use libgomp.h.
354 * configure.tgt (x86_64-linux): Also test CC for -m32.
355 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
357 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
360 * Makefile.am (SUBDIRS): New.
361 (libgomp_la_LDFLAGS): Add -lpthread.
362 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
363 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
365 * libgomp_g.h: New file.
366 * libgomp.h: Split out all public declarations to libgomp_g.h.
367 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
368 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
369 * config/linux/sem.h: Likewise.
370 * config/posix/sem.h: Likewise.
372 * Makefile.am (AM_LDFLAGS): New.
373 (libgomp_version_script): Split out from ...
374 (libgomp_la_LDFLAGS): ... here.
375 (libgomp_version_info): New.
376 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
377 (LIBGOMP_ENABLE): New.
378 (LIBGOMP_CHECK_LINKER_FEATURES): New.
379 (LIBGOMP_ENABLE_SYMVERS): New.
380 * configure.ac (AC_INIT): Version 1.0.
381 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
382 (enable-linux-futex): Likewise. Rename from enable-futex.
383 (libtool_VERSION): New.
384 (LIBGOMP_ENABLE_SYMVERS): Use it.
385 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
386 * Makefile.in, aclocal.m4, configure: Rebuild.
388 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
389 (gomp_mutex_unlock_slow): Fix typo.
390 * config/linux/sem.c: Similarly.
391 (gomp_sem_post_slow): Fix typo.
392 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
393 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
394 [__PIC__] (sys_futex0): Don't use tmp output in asm.
396 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
397 (libgomp_la_LDFLAGS): Add top_srcdir to path.
398 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
399 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
400 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
401 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
402 LDFLAGS. Pull enable_futex check to top-level.
403 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
404 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
406 First attempt at real configury.
407 * Makefile, config.h: Remove file.
408 * Makefile.am, Makefile.in: New file.
409 * acinclude.m4 aclocal.m4: New file.
410 * configure.ac, configure.tgt, configure: New file.
412 * config/posix/lock.c: Rename from sys-lock.c.
413 * config/posix/mutex.h: Rename from sys-mutex.h.
414 * config/posix/sem.c: Rename from sys-sem.c.
415 * config/posix/sem.h: Rename from sys-sem.h.
416 * config/posix/proc.c: Rename from sys-proc.c.
417 * config/posix/time.c: Rename from sys-proc.c.
419 * config/linux/mutex.c: New file.
420 * config/linux/mutex.h: New file.
421 * config/linux/sem.c: New file.
422 * config/linux/sem.h: New file.
423 * config/linux/i486/futex.h: New file.
424 * config/linux/x86_64/futex.h: New file.
426 2005-05-04 Richard Henderson <rth@redhat.com>
428 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
429 * libgomp.h: Declare them.
430 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
431 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
433 2005-05-04 Richard Henderson <rth@redhat.com>
435 * libgomp-1 code drop
437 2005-05-04 Richard Henderson <rth@redhat.com>
439 * iter.c (gomp_iter_static_next): Return tri-state on 0.
440 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
441 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
442 (gomp_iter_static_next): Update.
443 (gomp_ordered_static_next): Update.
444 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
445 (gomp_loop_ordered_static_start): Likewise. Exit early for a
447 (gomp_loop_ordered_static_next): Refine test for calling
448 gomp_ordered_static_next.
449 * testsuite/ordered-1.c: Add case for more threads than iterations.
451 * iter.c (gomp_iter_runtime_next_locked): Remove.
452 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
453 gomp_loop_guided_start, gomp_loop_ordered_static_start,
454 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
455 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
456 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
457 gomp_loop_ordered_guided_next): Downcase name, make static, add
458 an external alias with the old name.
459 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
460 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
461 switch and call one of the above static functions.
464 * work.c (gomp_work_share_start): Lock the mutex for !first too.
465 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
466 GOMP_loop_guided_start, GOMP_loop_runtime_start,
467 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
468 GOMP_loop_ordered_guided_start): Update to match.
469 * sections.c (GOMP_sections_start): Likewise.
470 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
472 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
473 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
474 Use bounds check instead of modulus.
475 (gomp_ordered_sync): Split out of GOMP_ordered_start.
476 (gomp_ordered_last): Don't sync with ordered_owner here.
477 (gomp_ordered_next): Likewise.
478 (gomp_ordered_static_loop_next): Likewise.
479 * loop.c, libgomp.h: Update to match.
481 * libgomp.h (GOMP_barrier): Declare.
483 * testsuite/barrier-1.c: New file.
484 * testsuite/critical-1.c: New file.
485 * testsuite/ordered-2.c: New file.
486 * testsuite/ordered-1.c: New file.
487 * testsuite/sections-1.c: New file.
488 * testsuite/single-1.c: New file.
489 * testsuite/Makefile (TESTS): Add them.
491 2005-05-04 Richard Henderson <rth@redhat.com>
493 * libgomp.h (struct gomp_work_share): Add ordered_owner.
494 * loop.c (GOMP_loop_static_start): If not the startup thread,
495 acquire the mutex to wait for initialization complete.
496 (GOMP_loop_ordered_static_start): Likewise.
497 (GOMP_loop_ordered_runtime_start): Likewise.
498 (GOMP_loop_ordered_static_first): Remove.
499 (GOMP_loop_ordered_dynamic_first): Remove.
500 (GOMP_loop_ordered_guided_first): Remove.
501 (GOMP_loop_ordered_runtime_first): Remove.
502 * ordered.c (gomp_ordered_loop_first): Post to own release when
503 we're the first thread.
504 (gomp_ordered_loop_last): Wait on release if not owner.
505 (gomp_ordered_loop_next): Likewise.
506 (gomp_ordered_static_loop_init): New.
507 (gomp_ordered_static_loop_next): Use ordered_owner.
508 (GOMP_ordered_start): Likewise.
509 * work.c (gomp_new_work_share): Initialize ordered_owner.
511 2005-05-03 Richard Henderson <rth@redhat.com>
513 * Makefile (OPT): New.
516 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
517 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
518 * libgomp.h, libgomp.map, NOTES: Update to match.
520 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
521 Add initialized and thr members.
522 (gomp_thread_start): Pause when initially spawned to wait for
523 the whole team to be created.
524 (gomp_team_start): Release team members at the end.
526 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
527 (f_foo_1): Use GOMP_loop_end.
528 (f_foo_2): Use GOMP_loop_end_nowait.
530 * testsuite/loop-2.c: New file.
531 * testsuite/Makefile (TESTS): Add it.
533 2005-05-03 Richard Henderson <rth@redhat.com>
535 * iter.c (gomp_iter_static_next): Fix overflow check typo.
536 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
537 * team.c (new_team): Initialize oldest_live_gen to 1 if no
540 * testsuite/Makefile: New file.
541 * testsuite/loop-1.c: New file.
543 2005-05-03 Richard Henderson <rth@redhat.com>
545 Initial implementation and checkin.