1 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4 * testsuite/lib/libgomp.exp: Provide -B options to allow for
5 link spec %s substitutions for static libraries.
7 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10 * libgomp.graphite/force-parallel-2.c: Reduce array size.
12 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 * Makefile.in: Regenerate.
15 * configure: Regenerate.
16 * testsuite/Makefile.in: Regenerate.
18 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
20 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
21 settings for LC_ALL and LANG.
23 2009-11-25 Jakub Jelinek <jakub@redhat.com>
26 * testsuite/libgomp.fortran/pr42162.f90: New test.
28 2009-11-13 Jakub Jelinek <jakub@redhat.com>
31 * testsuite/libgomp.c/pr42029.c: New test.
33 2009-10-26 Jakub Jelinek <jakub@redhat.com>
35 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
36 *s. Accept ld version without text in ()s.
37 * configure: Regenerated.
39 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
41 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
43 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
47 or a hyphen (happens with fortran language disabled).
48 * configure: Regenerate.
50 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
53 use sed script portable to Solaris /bin/sed for extracting ld
55 * configure: Regenerate.
57 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
59 * testsuite/libgomp.graphite/bounds.c: New test.
61 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63 * Makefile.am (libgomp_la_LINK): New.
64 * Makefile.in: Regenerate.
66 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68 * configure.ac (AC_PREREQ): Bump to 2.64.
70 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72 * Makefile.am (install-html, install-pdf): Remove.
73 * Makefile.in: Regenerate.
75 * Makefile.in: Regenerate.
76 * aclocal.m4: Regenerate.
77 * config.h.in: Regenerate.
78 * configure: Regenerate.
79 * testsuite/Makefile.in: Regenerate.
81 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
83 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
84 * Makefile.in: Regenerate.
86 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
88 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
89 * Makefile.in: Regenerate.
91 2009-08-19 Tobias Burnus <burnus@net-b.de>
94 omp_lib.h.in: Fix -std=f95 errors.
97 2009-08-14 David Edelsohn <edelsohn@gnu.org>
99 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
100 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
101 * testsuite/libgomp.graphite/graphite.exp: New.
103 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
105 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
108 2009-08-04 David Daney <ddaney@caviumnetworks.com>
110 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
111 needed memory barrier semantics.
112 * config/linux/mips/mutex.h: New file.
114 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
116 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
118 2009-07-16 Joseph Myers <joseph@codesourcery.com>
120 * configure: Regenerate.
122 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
127 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
128 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
129 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
131 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
133 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
134 options when choosing a multilib.
136 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
138 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
139 ld_library_path. Use add_path. Add just find_libgcc_s to
140 ld_library_path, not every libgcc multilib directory.
141 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
142 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
143 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
145 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
147 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
149 * Makefile.am (LTLDFLAGS): Define.
151 * Makefile.in: Regenerate.
153 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
156 * testsuite/libgomp.fortran/fortran.exp: Don't link with
157 libgfortranbegin, check existence of libgfortran.a instead of
160 2009-05-20 Jakub Jelinek <jakub@redhat.com>
163 * team.c (gomp_thread_start): Destroy thr->release semaphore.
164 (gomp_free_pool_helper): Likewise.
166 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
167 Jakub Jelinek <jakub@redhat.com>
170 * testsuite/libgomp.fortran/workshare2.f90: New test.
172 2009-04-09 Nick Clifton <nickc@redhat.com>
174 * iter.c: Change copyright header to refer to version 3 of the
175 GNU General Public License with version 3.1 of the GCC Runtime
176 Library Exception and to point readers at the COPYING3 and
177 COPYING3.RUNTIME files and the FSF's license web page.
179 * barrier.c: Likewise.
180 * config/bsd/proc.c: Likewise.
181 * config/linux/affinity.c: Likewise.
182 * config/linux/alpha/futex.h: Likewise.
183 * config/linux/bar.c: Likewise.
184 * config/linux/bar.h: Likewise.
185 * config/linux/ia64/futex.h: Likewise.
186 * config/linux/ia64/mutex.h: Likewise.
187 * config/linux/lock.c: Likewise.
188 * config/linux/mips/futex.h: Likewise.
189 * config/linux/mutex.c: Likewise.
190 * config/linux/mutex.h: Likewise.
191 * config/linux/powerpc/futex.h: Likewise.
192 * config/linux/proc.c: Likewise.
193 * config/linux/ptrlock.c: Likewise.
194 * config/linux/ptrlock.h: Likewise.
195 * config/linux/s390/futex.h: Likewise.
196 * config/linux/sem.c: Likewise.
197 * config/linux/sem.h: Likewise.
198 * config/linux/sparc/futex.h: Likewise.
199 * config/linux/wait.h: Likewise.
200 * config/linux/x86/futex.h: Likewise.
201 * config/mingw32/proc.c: Likewise.
202 * config/mingw32/time.c: Likewise.
203 * config/posix/affinity.c: Likewise.
204 * config/posix/bar.c: Likewise.
205 * config/posix/bar.h: Likewise.
206 * config/posix/lock.c: Likewise.
207 * config/posix/mutex.h: Likewise.
208 * config/posix/proc.c: Likewise.
209 * config/posix/ptrlock.h: Likewise.
210 * config/posix/sem.c: Likewise.
211 * config/posix/sem.h: Likewise.
212 * config/posix/time.c: Likewise.
213 * config/posix95/lock.c: Likewise.
214 * critical.c: Likewise.
217 * fortran.c: Likewise.
218 * iter_ull.c: Likewise.
219 * libgomp.h: Likewise.
220 * libgomp_f.h.in: Likewise.
221 * libgomp_g.h: Likewise.
223 * loop_ull.c: Likewise.
224 * omp.h.in: Likewise.
225 * omp_lib.f90.in: Likewise.
226 * omp_lib.h.in: Likewise.
227 * ordered.c: Likewise.
228 * parallel.c: Likewise.
229 * sections.c: Likewise.
230 * single.c: Likewise.
235 2009-04-09 Jakub Jelinek <jakub@redhat.com>
237 * testsuite/config/default.exp: Change copyright header to refer to
238 version 3 of the GNU General Public License and to point readers
239 at the COPYING3 file and the FSF's license web page.
241 2009-04-08 Jakub Jelinek <jakub@redhat.com>
244 * libgomp.c++/pr39573.C: New test.
246 2009-04-01 Jakub Jelinek <jakub@redhat.com>
249 * testsuite/libgomp.c/pr39591-1.c: New test.
250 * testsuite/libgomp.c/pr39591-2.c: New test.
251 * testsuite/libgomp.c/pr39591-3.c: New test.
253 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
255 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
256 * testsuite/libgomp.c/atomic-6.c: Ditto.
258 2009-03-23 Jakub Jelinek <jakub@redhat.com>
261 * testsuite/libgomp.c/loop-12.c: New test.
262 * testsuite/libgomp.c/loop-11.c: New test.
263 * testsuite/libgomp.c++/loop-11.C: New test.
264 * testsuite/libgomp.c++/loop-12.C: New test.
265 * testsuite/libgomp.c++/for-8.C: New test.
267 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
269 * configure: Regenerate.
271 2009-02-11 Jakub Jelinek <jakub@redhat.com>
274 * testsuite/libgomp.c/pr39154.c: New test.
276 2009-01-30 Ian Lance Taylor <iant@google.com>
278 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
279 libgomp_ld_is_gold. Get gold version number.
280 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
281 * configure: Rebuild.
283 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
285 * testsuite/lib/libgomp.exp: Add -B option for targets that
286 use libgfortran.a%s in their specs.
288 2009-01-07 Jakub Jelinek <jakub@redhat.com>
291 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
292 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
293 HAVE_AS_SYMVER_DIRECTIVE is not defined.
294 * configure: Regenerated.
295 * config.h.in: Likewise.
297 2008-12-28 Jakub Jelinek <jakub@redhat.com>
300 * testsuite/libgomp.c/pr38650.c: New test.
301 * testsuite/libgomp.c++/pr38650.C: New test.
303 2008-12-27 Jakub Jelinek <jakub@redhat.com>
305 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
307 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
309 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
311 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
313 * configure: Regenerate.
315 2008-12-08 Jakub Jelinek <jakub@redhat.com>
318 * testsuite/libgomp.c/pr36802-1.c: New test.
319 * testsuite/libgomp.c/pr36802-2.c: New test.
320 * testsuite/libgomp.c/pr36802-3.c: New test.
322 2008-12-01 Janis Johnson <janis187@us.ibm.com>
325 * config/linux/powerpc/mutex.h: New.
327 2008-12-01 Jakub Jelinek <jakub@redhat.com>
330 * testsuite/libgomp.c++/for-7.C: New test.
333 * testsuite/libgomp.c++/for-6.C: New test.
335 2008-11-26 Janis Johnson <janis187@us.ibm.com>
338 * testsuite/lib/libgomp.exp: Include new timeout library files.
339 (libgomp_target_compile): Set timeout value from new proc.
341 2008-11-13 Steve Ellcey <sje@cup.hp.com>
344 * config/linux/ia64/mutex.h: New.
346 2008-11-04 Tobias Burnus <burnus@net-b.de>
349 * libgomp.texi (Runtime library routines, environment variables):
350 Update for OpenMP version 3.0.
352 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
353 Steve Ellcey <sje@cup.hp.com>
355 * configure: Regenerate for new libtool.
356 * Makefile.in: Ditto.
357 * testsuite/Makefile.in: Ditto.
359 2008-09-19 Jakub Jelinek <jakub@redhat.com>
360 Andreas Tobler <a.tobler@schweiz.org>
362 * config/bsd/proc.c: New file.
363 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
364 * configure.ac: Check for header <sys/sysctl.h>
365 * configure: Regenerate.
366 * config.h.in: Likewise.
368 2008-09-05 Janis Johnson <janis187@us.ibm.com>
370 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
372 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
374 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
375 * Makefile.in: Regenerated.
376 * testsuite/Makefile.in: Regenerated.
378 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
380 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
381 depend on blddir if blddir exists.
382 (libgomp_target_compile): Likewise.
383 * testsuite/libgomp.c++/c++.exp: Likewise.
384 * testsuite/libgomp.fortran/fortran.exp: Likewise.
386 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
388 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
389 Do not list GPL as Invariant Section.
391 2008-07-28 Ilie Garbacea <ilie@mips.com>
392 Chao-ying Fu <fu@mips.com>
394 * configure.tgt: Enable futex for MIPS.
395 * config/linux/mips/futex.h: New file.
397 2008-07-16 Jakub Jelinek <jakub@redhat.com>
399 * team.c (gomp_team_end): Free team immediately if it has
402 2008-07-08 David Edelsohn <edelsohn@gnu.org>
404 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
405 * testsuite/libgomp.fortran/fortran.exp: Same.
406 * testsuite/libgomp.c/c.exp: Same.
407 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
408 directory to library path first.
410 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
412 * env.c (parse_stacksize): Add cast to avoid warning.
413 (parse_spincount): Likewise.
415 2008-06-27 Jakub Jelinek <jakub@redhat.com>
417 * testsuite/libgomp.c/loop-10.c: New test.
418 * libgomp.c/loop-3.c (main): Add lastprivate clause.
419 * libgomp.c++/loop-6.C (main): Likewise.
422 * testsuite/libgomp.c/debug-1.c: New test.
424 2008-06-19 Jakub Jelinek <jakub@redhat.com>
426 * testsuite/libgomp.c/nqueens-1.c: New test.
429 * testsuite/libgomp.c++/task-7.C: New function.
431 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
433 * configure: Regenerate.
435 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
437 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
438 mutex when HAVE_SYNC_BUILTINS isn't defined.
440 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
442 * libgomp.texi (omp_test_lock): Fix typo.
444 2008-06-12 Tobias Burnus <burnus@net-b.de>
446 * omp_lib.f90.in: Add "implicit none".
448 2008-06-12 Jakub Jelinek <jakub@redhat.com>
451 * testsuite/libgomp.c/reduction-5.c: New test.
453 2008-06-11 Jakub Jelinek <jakub@redhat.com>
455 * libgomp.h (struct gomp_task): Add in_tied_task field.
456 * task.c (gomp_init_task): Initialize it.
457 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
458 unconditionally. Don't call gomp_team_barrier_wake if
459 current task is implicit or if(0) from implicit and number of
460 running tasks is equal to nthreads - 1.
463 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
464 omp_get_team_size_8): Fix pastos.
467 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
468 * configure: Regenerated.
469 * config.h.in: Regenerated.
470 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
473 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
476 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
477 (GOMP_loop_ull_dynamic_start): Likewise.
478 (GOMP_loop_ull_guided_start): Likewise.
479 (GOMP_loop_ull_ordered_static_start): Likewise.
480 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
481 (GOMP_loop_ull_ordered_guided_start): Likewise.
483 2008-06-06 Jakub Jelinek <jakub@redhat.com>
484 Richard Henderson <rth@redhat.com>
485 Ulrich Drepper <drepper@redhat.com>
486 Jakob Blomer <jakob.blomer@ira.uka.de>
488 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
489 Substitute also OMP_*LOCK_25*.
490 * configure: Regenerated.
491 * config.h.in: Regenerated.
492 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
493 ptrlock.c and task.c.
494 * Makefile.in: Regenerated.
495 * testsuite/Makefile.in: Regenerated.
497 * loop_ull.c: New file.
498 * iter_ull.c: New file.
499 * libgomp.h: Include ptrlock.h.
500 (enum gomp_task_kind): New type.
501 (struct gomp_team): Add task_lock, task_queue, task_count,
502 task_running_count, single_count fields. Add
503 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
504 Remove work_share_lock, generation_mask,
505 oldest_live_gen, num_live_gen and init_work_shares fields, add
506 work work_share_list_alloc, work_share_list_free and work_share_chunk
507 fields. Change work_shares from pointer to pointers into an array.
508 Change ordered_release field into gomp_sem_t ** from flexible array
509 member. Add implicit_task and initial_work_shares fields.
510 Move close to the end of the struct.
511 (struct gomp_team_state): Add single_count, last_work_share,
512 active_level and level fields, remove work_share_generation.
513 (gomp_barrier_handle_tasks): New prototype.
514 (gomp_finish_task): New inline function.
515 (struct gomp_work_share): Move chunk_size, end, incr into
516 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
517 next_ll fields. Reshuffle fields. Add next_alloc,
518 next_ws, next_free and inline_ordered_team_ids fields, change
519 ordered_team_ids into pointer from flexible array member.
520 Add mode field. Put lock and next into a different cache line
521 from most of the write-once fields.
522 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
523 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
524 gomp_iter_ull_guided_next): New prototypes.
525 (gomp_new_icv): New prototype.
526 (struct gomp_thread): Add thread_pool and task fields.
527 (struct gomp_thread_pool): New type.
528 (gomp_new_team): New prototype.
529 (gomp_team_start): Change type of last argument.
530 (gomp_new_work_share): Removed.
531 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
532 (gomp_work_share_init_done): New static inline.
533 (gomp_throttled_spin_count_var, gomp_available_cpus,
534 gomp_managed_threads): New extern decls.
535 (gomp_init_task): New prototype.
536 (gomp_spin_count_var): New extern var decl.
537 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
538 or no alias support, or if not PIC.
539 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
540 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
541 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
542 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
543 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
544 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
545 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
546 gomp_test_nest_lock_25): New prototypes.
547 (omp_lock_symver, strong_alias): Define.
548 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
550 (gomp_end_task): New.
551 (struct gomp_task_icv, gomp_global_icv): New.
552 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
553 (struct gomp_task): New.
554 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
555 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
557 (gomp_schedule_type): Reorder enum to match
559 * team.c (struct gomp_thread_start_data): Add thread_pool and task
561 (gomp_thread_start): Add gomp_team_barrier_wait call.
562 For non-nested case remove clearing of docked thread thr fields.
563 Use pool fields instead of global gomp_* variables. Use
564 gomp_barrier_wait_last when needed. Initialize ts.active_level.
565 Create tasks for each member thread.
566 (free_team): Only destroy team barrier, task_lock here and free it.
567 (gomp_free_thread): Free last_team if non-NULL.
568 (gomp_team_end): Call gomp_team_barrier_wait instead of
569 gomp_barrier_wait. For nested case call one extra
570 gomp_barrier_wait. Move here some destruction from free_team.
571 Call free_team on pool->last_team if any, rather than freeing
572 current team. Destroy work_share_list_free_lock ifndef
574 (gomp_new_icv): New function.
575 (gomp_threads, gomp_threads_size, gomp_threads_used,
576 gomp_threads_dock): Removed.
577 (gomp_thread_destructor): New variable.
578 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
580 (gomp_team_start): Create new pool if current thread doesn't have
581 one. Use pool fields instead of global gomp_* variables.
582 Initialize thread_pool field for new threads. Clear single_count.
583 Change last argument from ws to team, don't create
584 new team, set ts.work_share to &team->work_shares[0] and clear
585 ts.last_work_share. Don't clear ts.work_share_generation.
586 If number of threads changed, adjust atomically gomp_managed_threads.
587 Use gomp_init_task instead of gomp_new_task,
588 set thr->task to the corresponding implicit_task array entry.
589 Create tasks for each member thread. Initialize ts.level.
590 (initialize_team): Call pthread_key_create on
591 gomp_thread_destructor.
592 (team_destructor): New function.
594 (gomp_new_team): New function.
595 (free_team): Free gomp_work_share blocks chained through next_alloc,
596 instead of freeing work_shares and destroying work_share_lock.
597 (gomp_team_end): Call gomp_fini_work_share. If number of threads
598 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
599 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
600 of gomp_barrier_wait.
601 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
602 instead of gomp_barrier_wait. Call gomp_work_share_init_done
603 if gomp_work_share_start returned true. Don't unlock ws->lock.
604 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
605 of gomp_barrier_wait.
606 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
607 gomp_work_share_init_done if gomp_work_share_start returned true.
608 Don't unlock ws->lock.
609 * work.c: Include stddef.h.
610 (free_work_share): Use work_share_list_free_lock instead
611 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
612 Call gomp_fini_work_share and then either free ws if orphaned, or
613 put it into work_share_list_free list of the current team.
614 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
616 (gomp_work_share_start, gomp_work_share_end,
617 gomp_work_share_end_nowait): Rewritten.
618 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
619 (openmp_version): Set to 200805.
620 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
621 omp_sched_guided, omp_sched_auto): New parameters.
622 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
623 omp_set_max_active_levels, omp_get_max_active_levels,
624 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
625 omp_get_active_level): New interfaces.
626 * omp_lib.h.in (openmp_version): Set to 200805.
627 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
628 omp_sched_guided, omp_sched_auto): New parameters.
629 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
630 omp_set_max_active_levels, omp_get_max_active_levels,
631 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
632 omp_get_active_level): New externals.
633 * loop.c: Include limits.h.
634 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
636 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
637 Likewise. Use gomp_icv.
638 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
640 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
641 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
642 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
643 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
644 don't unlock ws->lock, otherwise lock it.
645 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
646 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
647 (gomp_parallel_loop_start): Call gomp_new_team instead of
648 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
649 Adjust gomp_team_start caller. Pass 0 as second argument to
650 gomp_resolve_num_threads.
651 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
652 If adding ws->chunk_size nthreads + 1 times after end won't
653 overflow, set ws->mode to 1.
654 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
655 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
656 GOMP_loop_ull_ordered_static_start,
657 GOMP_loop_ull_ordered_dynamic_start,
658 GOMP_loop_ull_ordered_guided_start,
659 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
660 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
661 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
662 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
663 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
665 * libgomp.map: Export lock routines also @@OMP_2.0.
666 (GOMP_loop_ordered_dynamic_first,
667 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
668 GOMP_loop_ordered_static_first): Remove.
669 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
670 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
671 GOMP_loop_ull_ordered_dynamic_next,
672 GOMP_loop_ull_ordered_dynamic_start,
673 GOMP_loop_ull_ordered_guided_next,
674 GOMP_loop_ull_ordered_guided_start,
675 GOMP_loop_ull_ordered_runtime_next,
676 GOMP_loop_ull_ordered_runtime_start,
677 GOMP_loop_ull_ordered_static_next,
678 GOMP_loop_ull_ordered_static_start,
679 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
680 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
681 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
682 (omp_set_schedule, omp_get_schedule,
683 omp_get_thread_limit, omp_set_max_active_levels,
684 omp_get_max_active_levels, omp_get_level,
685 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
686 omp_set_schedule_, omp_set_schedule_8_,
687 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
688 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
689 omp_get_max_active_levels_, omp_get_level_,
690 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
691 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
692 New exports @@OMP_3.0.
693 * omp.h.in (omp_sched_t): New type.
694 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
695 omp_set_max_active_levels, omp_get_max_active_levels,
696 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
697 omp_get_active_level): New prototypes.
698 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
699 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
700 gomp_thread_limit_var, gomp_remaining_threads_count,
701 gomp_remaining_threads_lock): New variables.
702 (parse_spincount): New function.
703 (initialize_env): Call gomp_init_num_threads unconditionally.
704 Initialize gomp_available_cpus. Call parse_spincount,
705 initialize gomp_{,throttled_}spin_count_var
706 depending on presence and value of OMP_WAIT_POLICY and
707 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
708 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
709 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
710 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
711 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
712 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
713 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
714 (gomp_global_icv): New.
715 (parse_schedule): Use it. Parse "auto".
716 (omp_set_num_threads): Use gomp_icv.
717 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
719 (omp_get_max_threads): Move from parallel.c.
720 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
721 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
723 (parse_stacksize, parse_wait_policy): New functions.
724 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
725 both wrappers for compatibility and new locks.
726 (omp_set_schedule, omp_get_schedule,
727 omp_get_thread_limit, omp_set_max_active_levels,
728 omp_get_max_active_levels, omp_get_level,
729 omp_get_ancestor_thread_num, omp_get_team_size,
730 omp_get_active_level): New ialias_redirect.
731 (omp_set_schedule_, omp_set_schedule_8_,
732 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
733 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
734 omp_get_max_active_levels_, omp_get_level_,
735 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
736 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
738 * parallel.c: Include limits.h.
739 (gomp_resolve_num_threads): Add count argument. Rewritten.
740 (GOMP_parallel_start): Call gomp_new_team and pass that as last
741 argument to gomp_team_start. Pass 0 as second argument to
742 gomp_resolve_num_threads.
743 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
744 if gomp_thread_limit_var != ULONG_MAX.
745 (omp_in_parallel): Implement using ts.active_level.
746 (omp_get_max_threads): Move to env.c.
747 (omp_get_level, omp_get_ancestor_thread_num,
748 omp_get_team_size, omp_get_active_level): New functions,
750 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
751 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
752 gomp_iter_dynamic_next instead of the _locked variant and don't take
753 lock around it, otherwise acquire it before calling
754 gomp_iter_dynamic_next_locked.
755 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
756 gomp_iter_dynamic_next instead of the _locked variant and don't take
758 (GOMP_parallel_sections_start): Call gomp_new_team instead of
759 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
760 Adjust gomp_team_start caller. Pass count as second argument to
761 gomp_resolve_num_threads, don't adjust num_threads after the call.
763 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
764 ws->chunk_size by incr.
765 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
767 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
769 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
770 (omp_check_defines): Check even the compat defines.
771 * config/linux/ptrlock.c: New file.
772 * config/linux/ptrlock.h: New file.
773 * config/linux/wait.h: New file.
774 * config/posix/ptrlock.c: New file.
775 * config/posix/ptrlock.h: New file.
776 * config/linux/bar.h (gomp_team_barrier_wait,
777 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
778 (gomp_team_barrier_set_task_pending,
779 gomp_team_barrier_clear_task_pending,
780 gomp_team_barrier_set_waiting_for_tasks,
781 gomp_team_barrier_waiting_for_tasks,
782 gomp_team_barrier_done): New inlines.
783 (gomp_barrier_t): Rewritten.
784 (gomp_barrier_state_t): New typedef.
785 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
786 gomp_barrier_wait_start): Rewritten.
787 (gomp_barrier_wait_end): Change second argument to
788 gomp_barrier_state_t.
789 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
791 * config/linux/bar.c: Include wait.h instead of libgomp.h and
793 (gomp_barrier_wait_end): Rewritten.
794 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
795 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
796 * config/posix/bar.h (gomp_barrier_t): Add generation field.
797 (gomp_barrier_state_t): New typedef.
798 (gomp_team_barrier_wait,
799 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
800 (gomp_barrier_wait_start): Or all but low 2 bits from generation
801 into the return value. Return gomp_barrier_state_t.
802 (gomp_team_barrier_set_task_pending,
803 gomp_team_barrier_clear_task_pending,
804 gomp_team_barrier_set_waiting_for_tasks,
805 gomp_team_barrier_waiting_for_tasks,
806 gomp_team_barrier_done): New inlines.
807 (gomp_barrier_wait_end): Change second argument to
808 gomp_barrier_state_t.
809 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
811 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
812 (gomp_barrier_wait_end): Change second argument to
813 gomp_barrier_state_t.
814 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
815 gomp_team_barrier_wake): New functions.
816 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
818 (gomp_futex_wake, gomp_futex_wait): New variables.
819 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
820 * config/linux/lock.c: Rewrite to make locks task owned,
821 for backwards compatibility provide the old entrypoints
822 if symbol versioning. Include wait.h instead of libgomp.h and
824 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
825 * config/posix95/lock.c: Rewrite to make locks task owned,
826 for backwards compatibility provide the old entrypoints
827 if symbol versioning.
828 * config/posix/lock.c: Rewrite to make locks task owned,
829 for backwards compatibility provide the old entrypoints
830 if symbol versioning.
831 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
832 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
833 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
834 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
835 (sys_futex0): Return error code.
836 (futex_wake, futex_wait): If ENOSYS was returned, clear
837 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
838 (cpu_relax, atomic_write_barrier): New static inlines.
839 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
840 (futex_wake, futex_wait): If ENOSYS was returned, clear
841 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
842 (cpu_relax, atomic_write_barrier): New static inlines.
843 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
844 (sys_futex0): Return error code.
845 (futex_wake, futex_wait): If ENOSYS was returned, clear
846 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
847 (cpu_relax, atomic_write_barrier): New static inlines.
848 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
849 (sys_futex0): Return error code.
850 (futex_wake, futex_wait): If ENOSYS was returned, clear
851 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
852 (cpu_relax, atomic_write_barrier): New static inlines.
853 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
854 (sys_futex0): Return error code.
855 (futex_wake, futex_wait): If ENOSYS was returned, clear
856 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
857 (cpu_relax, atomic_write_barrier): New static inlines.
858 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
859 (sys_futex0): Return error code.
860 (futex_wake, futex_wait): If ENOSYS was returned, clear
861 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
862 (cpu_relax, atomic_write_barrier): New static inlines.
863 * config/linux/sem.c: Include wait.h instead of libgomp.h and
865 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
866 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
867 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
869 (omp_nest_lock_t): Change owner into void *, add lock field.
870 * config/posix95/omp-lock.h: Include semaphore.h.
871 (omp_lock_25_t, omp_nest_lock_25_t): New types.
872 (omp_lock_t): Use sem_t instead of mutex if semaphores
874 (omp_nest_lock_t): Likewise. Change owner to void *.
875 * config/posix/omp-lock.h: Include semaphore.h.
876 (omp_lock_25_t, omp_nest_lock_25_t): New types.
877 (omp_lock_t): Use sem_t instead of mutex if semaphores
879 (omp_nest_lock_t): Likewise. Add owner field.
881 2008-06-06 Jakub Jelinek <jakub@redhat.com>
883 * testsuite/libgomp.c/collapse-1.c: New test.
884 * testsuite/libgomp.c/collapse-2.c: New test.
885 * testsuite/libgomp.c/collapse-3.c: New test.
886 * testsuite/libgomp.c/icv-1.c: New test.
887 * testsuite/libgomp.c/icv-2.c: New test.
888 * testsuite/libgomp.c/lib-2.c: New test.
889 * testsuite/libgomp.c/lock-1.c: New test.
890 * testsuite/libgomp.c/lock-2.c: New test.
891 * testsuite/libgomp.c/lock-3.c: New test.
892 * testsuite/libgomp.c/loop-4.c: New test.
893 * testsuite/libgomp.c/loop-5.c: New test.
894 * testsuite/libgomp.c/loop-6.c: New test.
895 * testsuite/libgomp.c/loop-7.c: New test.
896 * testsuite/libgomp.c/loop-8.c: New test.
897 * testsuite/libgomp.c/loop-9.c: New test.
898 * testsuite/libgomp.c/nested-3.c: New test.
899 * testsuite/libgomp.c/nestedfn-6.c: New test.
900 * testsuite/libgomp.c/sort-1.c: New test.
901 * testsuite/libgomp.c/task-1.c: New test.
902 * testsuite/libgomp.c/task-2.c: New test.
903 * testsuite/libgomp.c/task-3.c: New test.
904 * testsuite/libgomp.c/task-4.c: New test.
905 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
906 to C++ testsuite default compiler options.
907 * testsuite/libgomp.c++/collapse-1.C: New test.
908 * testsuite/libgomp.c++/collapse-2.C: New test.
909 * testsuite/libgomp.c++/ctor-10.C: New test.
910 * testsuite/libgomp.c++/for-1.C: New test.
911 * testsuite/libgomp.c++/for-2.C: New test.
912 * testsuite/libgomp.c++/for-3.C: New test.
913 * testsuite/libgomp.c++/for-4.C: New test.
914 * testsuite/libgomp.c++/for-5.C: New test.
915 * testsuite/libgomp.c++/loop-8.C: New test.
916 * testsuite/libgomp.c++/loop-9.C: New test.
917 * testsuite/libgomp.c++/loop-10.C: New test.
918 * testsuite/libgomp.c++/task-1.C: New test.
919 * testsuite/libgomp.c++/task-2.C: New test.
920 * testsuite/libgomp.c++/task-3.C: New test.
921 * testsuite/libgomp.c++/task-4.C: New test.
922 * testsuite/libgomp.c++/task-5.C: New test.
923 * testsuite/libgomp.c++/task-6.C: New test.
924 * testsuite/libgomp.fortran/allocatable1.f90: New test.
925 * testsuite/libgomp.fortran/allocatable2.f90: New test.
926 * testsuite/libgomp.fortran/allocatable3.f90: New test.
927 * testsuite/libgomp.fortran/allocatable4.f90: New test.
928 * testsuite/libgomp.fortran/collapse1.f90: New test.
929 * testsuite/libgomp.fortran/collapse2.f90: New test.
930 * testsuite/libgomp.fortran/collapse3.f90: New test.
931 * testsuite/libgomp.fortran/collapse4.f90: New test.
932 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
933 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
934 * testsuite/libgomp.fortran/lib4.f90: New test.
935 * testsuite/libgomp.fortran/lock-1.f90: New test.
936 * testsuite/libgomp.fortran/lock-2.f90: New test.
937 * testsuite/libgomp.fortran/nested1.f90: New test.
938 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
939 * testsuite/libgomp.fortran/strassen.f90: New test.
940 * testsuite/libgomp.fortran/tabs1.f90: New test.
941 * testsuite/libgomp.fortran/tabs2.f: New test.
942 * testsuite/libgomp.fortran/task1.f90: New test.
943 * testsuite/libgomp.fortran/task2.f90: New test.
944 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
945 * testsuite/libgomp.fortran/vla5.f90: Likewise.
946 * testsuite/libgomp.c/pr26943-2.c: Likewise.
947 * testsuite/libgomp.c/pr26943-3.c: Likewise.
948 * testsuite/libgomp.c/pr26943-4.c: Likewise.
950 2008-05-23 Jakub Jelinek <jakub@redhat.com>
953 * testsuite/libgomp.c++/ctor-11.C: New test.
954 * testsuite/libgomp.c++/ctor-12.C: New test.
956 2008-05-15 Janis Johnson <janis187@us.ibm.com>
958 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
960 2008-05-07 Jakub Jelinek <jakub@redhat.com>
963 * testsuite/libgomp.c/atomic-5.c: New test.
964 * testsuite/libgomp.c/atomic-6.c: New test.
965 * testsuite/libgomp.c/autopar-1.c: New test.
967 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
969 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
970 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
971 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
972 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
973 * configure: Regenerate.
974 * Makefile.in, testsuite/Makefile.in: Likewise.
976 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
979 * aclocal.m4: Regenerate.
980 * configure: Regenerate.
982 2008-03-18 Jakub Jelinek <jakub@redhat.com>
985 * testsuite/libgomp.c/atomic-4.c: New test.
988 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
989 (gomp_iter_guided_next): Likewise.
990 * testsuite/libgomp.c/pr35625.c: New test.
992 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
994 * aclocal.m4: Regenerate.
995 * configure: Likewise.
996 * Makefile.in: Likewise.
997 * testsuite/Makefile.in: Likewise.
999 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1002 * testsuite/libgomp.c++/pr35185.C: New test.
1004 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1007 * testsuite/libgomp.c/pr35549.c: New test.
1009 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1011 * testsuite/libgomp.c/atomic-3.c: New test.
1013 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1016 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1019 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1022 * configure.ac: Add ACX_HEADER_STRING.
1023 * env.c: Include strings.h.
1024 * aclocal.m4: Regenerate.
1025 * config.h.in: Regenerate.
1026 * configure: Regenerate.
1027 * Makefile.in: Regenerate.
1028 * testsuite/Makefile.in: Regenerate.
1030 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1033 * testsuite/libgomp.c/pr35196.c: New test.
1036 * testsuite/libgomp.fortran/pr35130.f90: New test.
1037 * testsuite/libgomp.c/pr35130.c: New test.
1039 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1042 * testsuite/libgomp.c/pr33880.c: New test.
1043 * testsuite/libgomp.fortran/pr33880.f90: New test.
1045 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1047 * configure: Regenerate.
1049 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1051 * configure.ac: Move futex checking into ../config/futex.m4.
1052 * configure: Rebuilt.
1053 * aclocal.m4: Rebuilt.
1054 * Makefile.in: Rebuilt.
1056 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1057 2007-10-15 ../config/tls.m4 change.
1059 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1062 * testsuite/libgomp.c/pr34513.c: New test.
1063 * testsuite/libgomp.c++/pr34513.C: New test.
1065 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1068 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1070 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1072 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1074 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1076 * testsuite/libgomp.c/private-1.c: New test.
1078 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1079 Paolo Bonzini <bonzini@gnu.org>
1081 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1082 instead of 'VPATH ='.
1083 * Makefile.in: Regenerate.
1085 2007-11-23 Matthias Klose <doko@ubuntu.com>
1087 * configure.ac: Adjust makeinfo version check.
1088 * configure: Regenerate.
1090 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1093 * testsuite/libgomp.fortran/pr34020.f90: New test.
1095 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1098 * testsuite/libgomp.c++/atomic-1.C: New test.
1100 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1103 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1104 Make x and y integers rather than (implicit) reals. Add private (j)
1105 clause to the last omp parallel.
1107 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1109 * configure: Regenerate following changes to ../config/tls.m4.
1111 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1113 * testsuite/libgomp.fortran/stack.f90: New test.
1115 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1117 * config/mingw32/proc.c: New file.
1119 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1121 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1122 (main): Use __get_cpuid to get i386 target fetaures.
1123 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1124 (main): Use __get_cpuid to get x86_64 target fetaures.
1126 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1129 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1130 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1132 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1135 * testsuite/libgomp.fortran/pr32550.f90: New test.
1136 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1138 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1140 * aclocal.m4: Regenerated.
1142 2007-07-05 Tobias Burnus <burnus@net-b.de>
1145 * testsuite/libgomp.fortran/pr32359.f90: New.
1147 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1150 * sections.c (GOMP_parallel_sections_start): Only decrease
1151 number of threads to COUNT if dyn_var is true.
1152 * testsuite/libgomp.c/pr32468.c: New test.
1154 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1157 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1159 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1162 * testsuite/libgomp.c/pr32362-1.c: New test.
1163 * testsuite/libgomp.c/pr32362-2.c: New test.
1164 * testsuite/libgomp.c/pr32362-3.c: New test.
1166 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1168 * team.c (gomp_team_start): Fix setting up thread_attr
1171 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1173 * configure: Regenerate.
1175 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1177 * Makefile.in: Regenerate.
1178 * configure: Regenerate.
1179 * aclocal.m4: Regenerate.
1180 * testsuite/Makefile.in: Regenerate.
1182 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1184 * config/linux/proc.c: New file.
1187 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1189 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1191 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1193 2007-04-16 Matthias Klose <doko@debian.org>
1195 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1196 flags if not building with -m64.
1197 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1198 flag for i?86-*-* targets, if current target matches -m64.
1200 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1202 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1203 * Makefile.in: Regenerate.
1205 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1208 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1210 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1212 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1214 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1216 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1217 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1218 (parse_affinity): New function.
1219 (initialize_env): Call it and gomp_init_affinity.
1220 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1221 create new pthread_attr_t and call gomp_init_thread_affinity
1222 on it for each thread before passing the attribute to pthread_create.
1223 * config/linux/affinity.c: New file.
1224 * config/posix/affinity.c: New file.
1225 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1226 * configure: Rebuilt.
1227 * config.h.in: Rebuilt.
1228 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1229 * Makefile.in: Rebuilt.
1231 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1233 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1235 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1236 and use it if found.
1238 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1240 * testsuite/config/default.exp: New file.
1241 * testsuite/lib/libgomp.exp: New file.
1242 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1243 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1244 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1245 (libgomp_load): Remove.
1246 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1247 always_ld_library_path, not ld_library_path. Set additional_flags
1248 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1249 (target_compile): Do not call libgomp_init. Append lang_library_path
1250 and lang_link_flags to options.
1251 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1252 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1254 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1255 always_ld_library_path. Set LD_LIBRARY_PATH here.
1256 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1257 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1258 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1260 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1261 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1262 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1263 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1264 * testsuite/libgomp.c/atomic-10.c: Ditto.
1266 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1268 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1269 dg-final cleanup-modules line.
1270 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1271 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1272 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1273 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1274 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1275 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1276 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1278 2007-03-18 Andreas Schwab <schwab@suse.de>
1280 * acinclude.m4: Adjust regular expression for ld version
1282 * configure: Regenerate.
1284 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1286 * Makefile.am: Add install-pdf target as copied from
1287 automake v1.10 rules.
1288 * Makefile.in: Regenerate
1290 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1293 * configure: Regenerate.
1296 * testsuite/libgomp.c++/pr30703.C: New test.
1298 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1301 2006-07-05 Eric Christopher <echristo@apple.com>
1302 * configure.ac: Depend addition of -pthread on host OS.
1303 * configure: Regenerate.
1305 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1307 * libgomp.texi: Fix spacing after abbreviations.
1309 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1312 * configure.ac: Add check for makeinfo
1313 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1314 if an appropiate version of makeinfo is found.
1315 * aclocal.m4: Regenerated.
1316 * configure: Regenerated.
1317 * Makefile.in: Regenerated.
1318 * testsuite/Makefile.in: Regenerated.
1320 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1323 * libgomp.texi: More about implementation-dependent settings.
1325 2007-01-26 Tobias Burnus <burnus@net-b.de>
1327 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1329 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1332 * testsuite/libgomp.c/pr30494.c: New test.
1334 2007-01-15 Tom Tromey <tromey@redhat.com>
1336 * configure: Rebuilt.
1337 * configure.ac: Fixed comment.
1339 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1341 * libgomp.texi: Document implementation specific default values of
1342 environment variables.
1344 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1347 * libgomp.texi: New file.
1348 * configure.ac: Add --enable-generated-files-in-srcdir option.
1349 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1351 * Makefile.in: Regenerated.
1352 * config.h.in: Regenerated.
1353 * testsuite/Makefile.in: Regenerated.
1356 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1359 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1361 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1363 * configure: Regenerate.
1365 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1368 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1369 start if there shouldn't be any loop iterations.
1370 (gomp_loop_ordered_static_start): Remove start == end test.
1371 * testsuite/libgomp.c/pr29947-1.c: New test.
1372 * testsuite/libgomp.c/pr29947-2.c: New test.
1374 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1376 * configure.tgt: Force initial-exec TLS model on Linux only.
1378 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1380 * configure: Regenerated.
1382 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1384 * env.c (parse_schedule): Reject out of range values.
1385 (parse_unsigned_long): Reject out of range, negative or zero values.
1387 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1390 * testsuite/libgomp.fortran/pr29629.f90: New test.
1392 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1395 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1396 * config/posix95: New directory.
1397 * config/posix95/omp-lock.h: New file.
1398 * config/posix95/lock.c: Likewise.
1400 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1402 * aclocal.m4: Regenerate.
1403 * configure: Regenerate.
1405 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1407 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1410 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1412 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1414 * configure: Regenerate.
1415 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1417 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1421 * testsuite/libgomp.c/nestedfn-4.c: New test.
1422 * testsuite/libgomp.c/nestedfn-5.c: New test.
1423 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1426 * testsuite/libgomp.fortran/condinc1.f: New test.
1427 * testsuite/libgomp.fortran/condinc2.f: New test.
1428 * testsuite/libgomp.fortran/condinc3.f90: New test.
1429 * testsuite/libgomp.fortran/condinc4.f90: New test.
1430 * testsuite/libgomp.fortran/condinc1.inc: New file.
1432 2006-09-18 Tom Tromey <tromey@redhat.com>
1434 * configure: Rebuilt.
1436 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1439 PR preprocessor/14634
1440 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1442 * configure: Regenerate.
1444 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1446 * testsuite/libgomp.fortran/reduction3.f90: Change
1447 -2147483648 to -huge(i)-1 to avoid overflow.
1448 * testsuite/libgomp.fortran/reduction4.f90: Change
1449 Z'ffffffff' to not(0) to avoid overflow.
1451 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1454 * Makefile.am (libsubincludedir): New.
1455 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1456 * Makefile.in: Regenerate.
1458 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1461 * env.c: Include ctype.h.
1462 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1463 leading and/or trailing whitespace and compare strings case
1466 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1469 * testsuite/libgomp.fortran/pr28390.f: New test.
1471 2006-07-05 Eric Christopher <echristo@apple.com>
1473 * configure.ac: Depend addition of -pthread on host OS.
1474 * configure: Regenerate.
1476 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1478 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1479 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1482 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1486 * configure.ac: If neither --enable-linux-futex nor
1487 --disable-linux-futex is passed, determine the default by checking
1488 for compiling and/or running against NPTL. With --enable-linux-futex,
1489 check if SYS_gettid and SYS_futex are defined.
1490 * configure: Rebuilt.
1492 2006-06-14 Richard Henderson <rth@redhat.com>
1495 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1496 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1498 2006-06-09 Richard Henderson <rth@redhat.com>
1500 * env.c (gomp_nthreads_var): Change to unsigned long.
1501 (gomp_run_sched_chunk): Likewise.
1502 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1503 (initialize_env): Initialize gomp_thread_attr.
1504 * libgomp.h (gomp_nthreads_var): Update decl.
1505 (gomp_run_sched_chunk): Likewise.
1506 (gomp_thread_attr): Declare.
1507 * team.c (gomp_thread_attr): Export.
1508 (initialize_team): Don't initialize it.
1510 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1513 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1514 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1516 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1518 * config/mingw32/time.c: New file.
1519 * configure.tgt: Use it.
1521 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1523 * Makefile.am: Add install-html target. Add install-html to .PHONY
1524 * Makefile.in: Regenerate.
1526 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1529 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1530 * testsuite/libgomp.c/critical-1.c: Likewise.
1531 * testsuite/libgomp.c/loop-1.c: Likewise.
1532 * testsuite/libgomp.c/loop-2.c: Likewise.
1533 * testsuite/libgomp.c/single-1.c: Likewise.
1534 * testsuite/libgomp.c/ordered-1.c: Likewise.
1535 * testsuite/libgomp.c/ordered-2.c: Likewise.
1537 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1540 * libgomp.fortran/pr27416-1.f90: New test.
1542 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1545 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1546 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1548 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1551 * testsuite/libgomp.c/pr26943-1.c: New test.
1552 * testsuite/libgomp.c/pr26943-2.c: New test.
1553 * testsuite/libgomp.c/pr26943-3.c: New test.
1554 * testsuite/libgomp.c/pr26943-4.c: New test.
1555 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1556 * testsuite/libgomp.c++/pr26943.C: New test.
1558 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1561 * testsuite/libgomp.c++/pr27337.C: New test.
1563 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1566 * testsuite/libgomp.c/pr26171.c: New test.
1568 2006-04-25 Richard Henderson <rth@redhat.com>
1571 * configure.ac: Use GCC_CHECK_TLS.
1572 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1573 * Makefile.in, aclocal.m4, configure: Regenerate.
1575 2006-04-10 Matthias Klose <doko@debian.org>
1577 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1578 directory names containing underscores.
1580 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1583 * testsuite/libgomp.c++/pr26691.C: New test.
1585 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1587 * testsuite/libgomp.fortran/retval2.f90: New test.
1589 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1591 * testsuite/libgomp.c++: New directory.
1593 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1595 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1596 * config/posix/sem.c: Implement the above.
1598 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1600 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1601 define HAVE_BROKEN_POSIX_SEMAPHORES.
1602 * configure: Rebuilt.
1603 * config.h.in: Rebuilt.
1605 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1608 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1609 for the other pthread check.
1610 * configure: Regenerate.
1611 * config.h.in: Regenerate.
1613 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1617 * Makefile.am (fincludedir): New variable.
1618 (nodist_include_HEADERS): Remove Fortran files.
1619 (nodist_finclude_HEADERS): New variable.
1620 * Makefile.in: Regenerated.
1622 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1624 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1625 Remove tests for returning assumed character length arrays.
1627 2006-02-12 Roger Sayle <roger@eyesopen.com>
1628 John David Anglin <dave@hiauly1.hia.nrc.ca>
1631 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1633 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1635 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1637 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1639 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1640 part of LD_LIBRARY_PATH manually.
1642 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1645 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1648 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1651 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1652 * configure.ac (PERL): Don't set.
1653 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1654 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1655 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1656 * omp.h.in: Wrap the new configure substitutions with @ characters.
1657 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1658 * aclocal.m4, configure, Makefile.in: Regenerate.
1659 * mkomp_h.pl: Delete.
1661 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1664 * configure.ac: Use GCC_HEADER_STDINT.
1665 * libgomp.h: Include gstdint.h.
1666 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1667 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1669 2006-01-24 Richard Henderson <rth@redhat.com>
1672 * configure.ac: Add AM_MAINTAINER_MODE.
1673 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1675 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1677 * Makefile.in: Regenerate.
1678 * testsuite/Makefile.in: Regenerate.
1679 * aclocal.m4: Regenerate.
1681 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1683 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1685 * configure.ac: Add check for loadavg.h.
1686 (link_gomp): Adjust comment.
1687 * configure: Regenerate.
1688 * config.h.in: Regenerate.
1690 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1693 * configure.ac: Remove check for alloca.h.
1694 * configure: Regenerate.
1695 * config.h.in: Regenerate.
1696 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1697 * team.c: Remove use of alloca.h.
1698 Call gomp_alloca instead of alloca.
1700 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1703 * team.c: Add include of alloca.h.
1704 * configure.ac: Add check for alloca.h.
1705 * configure: Regenerate.
1706 * config.h.in: Regenerate.
1708 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1711 * testsuite/libgomp.fortran/pr25219.f90: New test.
1713 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1715 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1716 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1717 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1718 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1719 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1720 testsuite/libgomp.fortran/threadprivate1.f90,
1721 testsuite/libgomp.fortran/threadprivate2.f90,
1722 testsuite/libgomp.fortran/threadprivate3.f90,
1723 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1724 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1725 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1726 effective-target to TLS runtime.
1728 * testsuite/libgomp.fortran/pr25162.f: Require
1729 effective-target TLS runtime.
1731 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1733 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1734 * testsuite/libgomp.c/nestedfn-3.c: New test.
1736 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1739 * testsuite/libgomp.fortran/pr25162.f: New test.
1741 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1743 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1744 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1746 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1748 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1749 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1750 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1751 single.c, team.c, work.c, config/linux/alpha/futex.h,
1752 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1753 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1754 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1755 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1756 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1757 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1758 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1761 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1763 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1764 to nodist_noinst_HEADERS.
1765 * Makefile.in: Rebuilt.
1767 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1768 add integer count field.
1769 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1770 omp_nest_lock_t type change.
1771 (omp_init_nest_lock): Likewise. Initialize count to 0.
1772 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1774 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1776 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1777 Increment count if successful and return the new nesting level.
1778 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1779 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1780 * testsuite/libgomp.c/lib-1.c: New test.
1781 * testsuite/libgomp.fortran/lib1.f90: New test.
1782 * testsuite/libgomp.fortran/lib2.f: New test.
1783 * testsuite/libgomp.fortran/lib3.f: New test.
1785 2005-11-17 Richard Henderson <rth@redhat.com>
1788 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1789 * configure.ac (link_gomp): New. Substitute it.
1790 (AC_CONFIG_FILES): Add libgomp.spec.
1791 * libgomp.spec.in: New file.
1792 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1793 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1795 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1797 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1798 reduction(-:var) behaving the same as reduction(+:var).
1799 * testsuite/libgomp.c/reduction-4.c: New test.
1801 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1803 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1804 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1805 testsuite/libgomp.c/copyin-3.c,
1806 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1807 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1808 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1809 testsuite/libgomp.c++/pr24455.C,
1810 testsuite/libgomp.fortran/threadprivate1.f90,
1811 testsuite/libgomp.fortran/threadprivate2.f90,
1812 testsuite/libgomp.fortran/threadprivate3.f90,
1813 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1814 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1815 testsuite/libgomp.fortran/omp_parse3.f90: Require
1816 effective-target TLS.
1818 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1822 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1825 * team.c (initialize_team): Pass NULL rather than free as
1826 pthread_key_create destructor. Initialize thread specific data
1827 pointer in initial thread to a static local variable rather than
1830 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1832 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1833 its location to ld_library_path.
1835 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1837 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1839 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1841 * testsuite/libgomp.c: Rename from libgomp.dg.
1843 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1845 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1846 threadprivate variable 'i'.
1848 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1850 * config/linux/s390/futex.h: New file.
1851 * configure.tgt: Use it.
1853 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1854 before the parallel.
1856 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1859 * testsuite/libgomp.c++/master-1.C: New test.
1861 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1863 * testsuite/libgomp.dg/copyin-3.c: New test.
1865 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1867 * testsuite/libgomp.fortran/retval1.f90: New test.
1868 * testsuite/libgomp.fortran/vla7.f90: New test.
1870 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1872 * testsuite/libgomp.fortran/vla2.f90: New test.
1873 * testsuite/libgomp.fortran/vla3.f90: New test.
1874 * testsuite/libgomp.fortran/vla4.f90: New test.
1875 * testsuite/libgomp.fortran/vla5.f90: New test.
1876 * testsuite/libgomp.fortran/vla6.f90: New test.
1878 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1880 * config/linux/sparc/futex.h: New file.
1881 * configure.tgt: Use it.
1882 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1884 * critical.c: Include stdlib.h.
1885 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1886 ignoring return value.
1887 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1888 LIBGOMP_CHECK_SYNC_BUILTINS check.
1889 * configure: Rebuilt.
1891 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1893 * testsuite/libgomp.fortran/vla1.f90: New test.
1895 2005-10-31 Richard Henderson <rth@redhat.com>
1897 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1898 setting 's' in different threads.
1900 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1902 * libgomp.h (attribute_hidden, ialias): Define.
1903 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1904 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1905 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1906 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1907 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1908 omp_test_lock, omp_test_nest_lock): Likewise.
1909 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1910 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1911 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1912 omp_test_lock, omp_test_nest_lock): Likewise.
1913 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1914 omp_get_dynamic, omp_get_nested): Likewise.
1915 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1916 omp_get_thread_num, omp_in_parallel): Likewise.
1917 * fortran.c (ialias_redirect): Define.
1918 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1919 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1920 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1921 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1922 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1923 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1924 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1925 omp_get_wtime): Add ialias_redirect.
1927 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1929 * fortran.c: Include stdlib.h.
1931 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1933 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1934 * Makefile.in: Regenerated.
1936 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1938 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1939 * libgomp_f.h.in (omp_check_defines): New function.
1940 * env.c: Include libgomp_f.h.
1941 (initialize_env): Call omp_check_defines.
1943 * testsuite/libgomp.dg/copyin-2.c: New test.
1944 * testsuite/libgomp.c++/copyin-2.C: New test.
1945 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1947 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1948 * testsuite/libgomp.fortran/sharing2.f90: New test.
1950 * testsuite/libgomp.dg/copyin-1.c: New test.
1951 * testsuite/libgomp.c++/copyin-1.C: New test.
1953 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1955 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1957 * testsuite/libgomp.fortran/workshare1.f90: New test.
1959 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1961 * libgomp.fortran/sharing1.f90: New test.
1963 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1966 * testsuite/libgomp.c++/loop-7.C: New test.
1968 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1970 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1971 * testsuite/libgomp.fortran/reduction6.f90: New test.
1972 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1974 2005-10-23 Richard Henderson <rth@redhat.com>
1976 * testsuite/libgomp.c++/ctor-1.C: New.
1977 * testsuite/libgomp.c++/ctor-2.C: New.
1978 * testsuite/libgomp.c++/ctor-3.C: New.
1979 * testsuite/libgomp.c++/ctor-4.C: New.
1980 * testsuite/libgomp.c++/ctor-5.C: New.
1981 * testsuite/libgomp.c++/ctor-6.C: New.
1982 * testsuite/libgomp.c++/ctor-7.C: New.
1983 * testsuite/libgomp.c++/ctor-8.C: New.
1984 * testsuite/libgomp.c++/ctor-9.C: New.
1986 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1989 * testsuite/libgomp.c++/pr24455-1.C: New test.
1990 * testsuite/libgomp.c++/pr24455.C: New test.
1991 * testsuite/libgomp.dg/pr24455-1.c: New test.
1992 * testsuite/libgomp.dg/pr24455.c: New test.
1994 2005-10-20 Richard Henderson <rth@redhat.com>
1996 * testsuite/libgomp.c++/loop-6.C: New.
1997 * testsuite/libgomp.dg/loop-3.c: New.
1999 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2001 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2003 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2006 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2008 * testsuite/libgomp.fortran/jacobi.f: New test.
2010 2005-10-19 Richard Henderson <rth@redhat.com>
2012 * configure.tgt (i?86-linux): Default to with_arch instead of
2013 CFLAGS. Add -mtune to match target_cpu.
2014 (x86_64-linux): Tune to i686.
2016 * fortran.c (omp_test_nest_lock_): Fix typo.
2018 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2020 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2021 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2022 * testsuite/libgomp.dg/ordered-3.c: New test.
2024 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2025 Remove volatile keyword.
2027 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2028 in COMMON block to avoid warnings on 64-bit targets.
2030 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2032 * testsuite/libgomp.dg/shared-3.c: New test.
2034 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2036 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2037 * testsuite/libgomp.fortran/reduction5.f90: New test.
2039 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2041 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2043 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2044 flush loop now that __sync_synchronize has proper memory barrier.
2045 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2046 Add -ffixed-form to dg-options.
2048 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2050 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2051 from subdirectories.
2052 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2053 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2054 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2055 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2056 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2057 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2058 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2059 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2060 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2061 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2062 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2063 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2064 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2065 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2066 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2067 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2068 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2069 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2070 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2071 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2072 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2073 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2074 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2075 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2076 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2078 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2080 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2081 lang_library_path exists. Use find instead of glob to gather tests.
2082 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2084 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2086 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2087 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2088 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2089 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2090 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2091 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2092 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2093 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2094 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2095 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2096 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2097 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2098 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2100 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2102 * testsuite/libgomp.dg/vla-1.c: New test.
2104 * testsuite/libgomp.fortran/reference2.f90: New test.
2106 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2107 declaration of omp_get_thread_num.
2108 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2111 * testsuite/libgomp.fortran/reduction1.f90: New test.
2112 * testsuite/libgomp.fortran/reduction2.f90: New test.
2113 * testsuite/libgomp.fortran/reduction3.f90: New test.
2114 * testsuite/libgomp.fortran/reduction4.f90: New test.
2116 2005-10-13 Richard Henderson <rth@redhat.com>
2118 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2119 * Makefile.in: Regenerate.
2120 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2121 * libgomp.h: Include bar.h.
2122 (struct gomp_barrier): Remove.
2123 (struct gomp_team): Add barrier. Replace master_barrier with
2124 master_release. Replace threads with ordered_release.
2125 (struct gomp_thread): Replace barrier with release.
2126 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2127 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2128 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2129 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2130 (GOMP_single_copy_end): Likewise.
2131 * team.c (gomp_threads_dock): New.
2132 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2133 (gomp_thread_start): Use gomp_barrier_wait.
2134 (new_team, free_team): Update for gomp_team changes.
2135 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2136 (gomp_team_end): Use gomp_barrier_wait.
2137 (initialize_team): Update for gomp_thread changes.
2138 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2139 (gomp_work_share_end_nowait): Use atomic ops when available.
2140 * config/linux/bar.c, config/linux/bar.h: New files.
2141 * config/posix/bar.c, config/posix/bar.h: New files.
2143 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2145 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2146 * testsuite/libgomp.dg/single-2.c: New test.
2148 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2149 lang_link_flags): Unset, so that they aren't inherited from previously
2152 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2154 2005-10-12 Richard Henderson <rth@redhat.com>
2156 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2157 (libgomp_init): Use lang_test_file, lang_library_path, and
2158 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2160 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2161 (lang_test_file, lang_link_flags): New.
2162 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2164 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2165 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2166 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2167 testsuite/libgomp.c++/parallel-1.C,
2168 testsuite/libgomp.c++/reduction-1.C,
2169 testsuite/libgomp.c++/reduction-2.C,
2170 testsuite/libgomp.c++/reduction-3.C,
2171 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2172 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2173 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2174 New files, largely cribbed from the C testsuite.
2176 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2178 * testsuite/libgomp.fortran/character1.f90: New test.
2179 * testsuite/libgomp.fortran/character2.f90: New test.
2181 * testsuite/libgomp.dg/nested-1.c: New test.
2182 * testsuite/libgomp.dg/nested-2.c: New test.
2183 * testsuite/libgomp.fortran/do1.f90: New test.
2184 * testsuite/libgomp.fortran/do2.f90: New test.
2186 * testsuite/libgomp.fortran/reference1.f90: New test.
2188 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2190 * testsuite/libgomp.dg/reduction-1.c: New test.
2191 * testsuite/libgomp.dg/reduction-2.c: New test.
2192 * testsuite/libgomp.dg/reduction-3.c: New test.
2194 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2196 * testsuite/libgomp.dg/atomic-1.c: New test.
2197 * testsuite/libgomp.dg/atomic-2.c: New test.
2199 2005-10-09 Richard Henderson <rth@redhat.com>
2201 * critical.c (atomic_lock): New.
2202 (initialize_critical): Initialize it.
2203 (GOMP_atomic_start, GOMP_atomic_end): New.
2204 * libgomp.map: Export them.
2205 * libgomp_g.h: Declare them.
2207 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2209 2005-10-02 Richard Henderson <rth@redhat.com>
2211 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2212 to XCFLAGS instead of CFLAGS.
2214 2005-09-30 Richard Henderson <rth@redhat.com>
2216 * configure.ac: Determine whether -pthread or -lpthread is needed.
2217 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2218 * Makefine.in, configure: Rebuild.
2220 2005-09-28 Richard Henderson <rth@redhat.com>
2222 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2223 * testsuite/libgomp.dg/omp-single-3.c: New test.
2225 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2227 * testsuite/libgomp.dg/omp-single-2.c: New test.
2228 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2230 2005-09-27 Richard Henderson <rth@redhat.com>
2232 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2233 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2235 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2237 * testsuite/libgomp.dg/omp-loop03.c: New test.
2239 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2241 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2243 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2245 * testsuite/libgomp.dg/omp-single-1.c: New test.
2246 * testsuite/libgomp.dg/shared-1.c: Return 0.
2247 Add prototype for abort.
2248 * testsuite/libgomp.dg/shared-2.c: Likewise.
2250 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2252 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2255 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2257 * testsuite/libgomp.dg/shared-1.c: New test.
2258 * testsuite/libgomp.dg/shared-2.c: New test.
2260 2005-09-24 Richard Henderson <rth@redhat.com>
2262 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2264 2005-09-24 Richard Henderson <rth@redhat.com>
2266 * iter.c (gomp_iter_static_next): Round up when computing number
2267 of iterations. Don't bother distributing a remainder equally.
2269 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2270 Don't call srand. Zero b before testing.
2273 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2275 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2276 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2278 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2280 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2281 without !$omp end do, followed immediately by subroutine end.
2283 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2285 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2287 2005-09-22 Richard Henderson <rth@redhat.com>
2289 * critical.c (GOMP_critical_name_start): Change argument to void**.
2290 Reuse the pointer space if the mutex fits.
2291 (GOMP_critical_name_end): Likewise.
2292 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2293 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2294 (GOMP_critical_name_end): Likewise.
2295 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2296 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2298 2005-09-20 Richard Henderson <rth@redhat.com>
2300 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2301 (create_lock_lock): New.
2302 (initialize_critical): Initialize it.
2303 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2304 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2306 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2308 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2310 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2312 * testsuite/libgomp.dg/omp-loop01.c: New test.
2313 * testsuite/libgomp.dg/omp-loop02.c: New test.
2315 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2317 * configure.ac (AC_PROG_FC): Add.
2318 (USE_FORTRAN): New automake conditional.
2319 * configure: Rebuilt.
2320 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2321 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2322 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2323 Add rules to build them.
2324 * Makefile.in: Rebuilt.
2325 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2327 * libgomp.map: Add Fortran wrappers.
2328 * libgomp_f.h.in: New file.
2329 * omp_lib.h.in: New file.
2330 * omp_lib.f90.in: New file.
2331 * fortran.c: New file.
2332 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2333 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2334 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2335 libgfortran has been built.
2336 * testsuite/libgomp.fortran/fortran.exp: New file.
2337 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2338 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2339 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2340 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2341 * testsuite/libgomp.fortran/omp_hello.f: New test.
2342 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2343 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2344 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2345 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2346 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2347 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2348 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2349 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2351 2005-08-30 Richard Henderson <rth@redhat.com>
2353 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2354 function for when aliases are not usable.
2355 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2356 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2357 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2358 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2359 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2360 GOMP_loop_ordered_guided_next): Likewise.
2361 * ordered.c (GOMP_ordered_start): Likewise.
2363 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2365 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2366 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2367 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2368 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2369 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2370 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2371 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2372 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2373 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2375 2005-07-07 Eric Christopher <echristo@redhat.com>
2376 Diego Novillo <dnovillo@redhat.com>
2378 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2379 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2381 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2382 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2383 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2384 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2385 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2386 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2387 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2389 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2391 * TOPLEVEL.patch: Remove.
2393 2005-05-16 Richard Henderson <rth@redhat.com>
2395 * configure.ac: Test for clock_gettime.
2396 * config.h.in, configure: Rebuild.
2397 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2398 (omp_get_wtime): Use clock_gettime if available.
2399 (omp_get_wtick): Use clock_getres if available.
2401 2005-05-11 Richard Henderson <rth@redhat.com>
2403 * config/linux/ia64/futex.h: New file.
2404 * configure.tgt: Use it.
2406 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2408 2005-05-07 Richard Henderson <rth@redhat.com>
2410 * config/linux/powerpc/futex.h: New file.
2411 * configure.tgt: Use it.
2413 * config/linux/i486/futex.h: Merge ...
2414 * config/linux/x86_64/futex.h: ... into ...
2415 * config/linux/x86/futex.h: ... here.
2416 * configure.tgt: Update to match.
2418 2005-05-06 Richard Henderson <rth@redhat.com>
2420 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2421 * config/linux/i486/futex.h: Likewise.
2422 * config/linux/x86_64/futex.h: Likewise.
2424 * config/linux/lock.c: New file.
2425 * config/linux/omp-lock.h: New file.
2427 * critical.c, env.h: Don't include omp.h
2428 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2429 * config/posix/time.c: Likewise.
2430 * config/posix/omp-lock.h: New file.
2431 * libgomp.h: Include omp-lock.h and omp.h.
2432 * Makefile.am (nodist_include_HEADERS): New.
2434 * configure.ac (PERL): New.
2435 * mkomp_h.pl: New file.
2436 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2438 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2440 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2441 build directory. Re-add -march=i486 hack.
2443 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2444 (libgomp_link_flags): Remove.
2445 (libgomp_initialized): Remove.
2446 (libgomp_init): Don't protect from reinitialization. Copy code
2447 from libstdc++ for getting the multilib set correctly.
2449 2005-05-05 Richard Henderson <rth@redhat.com>
2451 * config/linux/alpha/futex.h: New file.
2452 * configure.tgt (alpha*-*-linux*): Use it.
2454 * config/posix/mutex.c: New file.
2455 * config/posix/sem.c: Use libgomp.h.
2457 * configure.tgt (x86_64-linux): Also test CC for -m32.
2458 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2460 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2463 * Makefile.am (SUBDIRS): New.
2464 (libgomp_la_LDFLAGS): Add -lpthread.
2465 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2466 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2468 * libgomp_g.h: New file.
2469 * libgomp.h: Split out all public declarations to libgomp_g.h.
2470 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2471 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2472 * config/linux/sem.h: Likewise.
2473 * config/posix/sem.h: Likewise.
2475 * Makefile.am (AM_LDFLAGS): New.
2476 (libgomp_version_script): Split out from ...
2477 (libgomp_la_LDFLAGS): ... here.
2478 (libgomp_version_info): New.
2479 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2480 (LIBGOMP_ENABLE): New.
2481 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2482 (LIBGOMP_ENABLE_SYMVERS): New.
2483 * configure.ac (AC_INIT): Version 1.0.
2484 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2485 (enable-linux-futex): Likewise. Rename from enable-futex.
2486 (libtool_VERSION): New.
2487 (LIBGOMP_ENABLE_SYMVERS): Use it.
2488 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2489 * Makefile.in, aclocal.m4, configure: Rebuild.
2491 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2492 (gomp_mutex_unlock_slow): Fix typo.
2493 * config/linux/sem.c: Similarly.
2494 (gomp_sem_post_slow): Fix typo.
2495 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2496 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2497 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2499 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2500 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2501 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2502 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2503 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2504 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2505 LDFLAGS. Pull enable_futex check to top-level.
2506 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2507 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2509 First attempt at real configury.
2510 * Makefile, config.h: Remove file.
2511 * Makefile.am, Makefile.in: New file.
2512 * acinclude.m4 aclocal.m4: New file.
2513 * configure.ac, configure.tgt, configure: New file.
2515 * config/posix/lock.c: Rename from sys-lock.c.
2516 * config/posix/mutex.h: Rename from sys-mutex.h.
2517 * config/posix/sem.c: Rename from sys-sem.c.
2518 * config/posix/sem.h: Rename from sys-sem.h.
2519 * config/posix/proc.c: Rename from sys-proc.c.
2520 * config/posix/time.c: Rename from sys-proc.c.
2522 * config/linux/mutex.c: New file.
2523 * config/linux/mutex.h: New file.
2524 * config/linux/sem.c: New file.
2525 * config/linux/sem.h: New file.
2526 * config/linux/i486/futex.h: New file.
2527 * config/linux/x86_64/futex.h: New file.
2529 2005-05-04 Richard Henderson <rth@redhat.com>
2531 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2532 * libgomp.h: Declare them.
2533 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2534 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2536 2005-05-04 Richard Henderson <rth@redhat.com>
2538 * libgomp-1 code drop
2540 2005-05-04 Richard Henderson <rth@redhat.com>
2542 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2543 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2544 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2545 (gomp_iter_static_next): Update.
2546 (gomp_ordered_static_next): Update.
2547 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2548 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2549 totally empty range.
2550 (gomp_loop_ordered_static_next): Refine test for calling
2551 gomp_ordered_static_next.
2552 * testsuite/ordered-1.c: Add case for more threads than iterations.
2554 * iter.c (gomp_iter_runtime_next_locked): Remove.
2555 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2556 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2557 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2558 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2559 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2560 gomp_loop_ordered_guided_next): Downcase name, make static, add
2561 an external alias with the old name.
2562 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2563 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2564 switch and call one of the above static functions.
2565 * libgomp.h: Update.
2567 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2568 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2569 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2570 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2571 GOMP_loop_ordered_guided_start): Update to match.
2572 * sections.c (GOMP_sections_start): Likewise.
2573 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2575 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2576 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2577 Use bounds check instead of modulus.
2578 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2579 (gomp_ordered_last): Don't sync with ordered_owner here.
2580 (gomp_ordered_next): Likewise.
2581 (gomp_ordered_static_loop_next): Likewise.
2582 * loop.c, libgomp.h: Update to match.
2584 * libgomp.h (GOMP_barrier): Declare.
2586 * testsuite/barrier-1.c: New file.
2587 * testsuite/critical-1.c: New file.
2588 * testsuite/ordered-2.c: New file.
2589 * testsuite/ordered-1.c: New file.
2590 * testsuite/sections-1.c: New file.
2591 * testsuite/single-1.c: New file.
2592 * testsuite/Makefile (TESTS): Add them.
2594 2005-05-04 Richard Henderson <rth@redhat.com>
2596 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2597 * loop.c (GOMP_loop_static_start): If not the startup thread,
2598 acquire the mutex to wait for initialization complete.
2599 (GOMP_loop_ordered_static_start): Likewise.
2600 (GOMP_loop_ordered_runtime_start): Likewise.
2601 (GOMP_loop_ordered_static_first): Remove.
2602 (GOMP_loop_ordered_dynamic_first): Remove.
2603 (GOMP_loop_ordered_guided_first): Remove.
2604 (GOMP_loop_ordered_runtime_first): Remove.
2605 * ordered.c (gomp_ordered_loop_first): Post to own release when
2606 we're the first thread.
2607 (gomp_ordered_loop_last): Wait on release if not owner.
2608 (gomp_ordered_loop_next): Likewise.
2609 (gomp_ordered_static_loop_init): New.
2610 (gomp_ordered_static_loop_next): Use ordered_owner.
2611 (GOMP_ordered_start): Likewise.
2612 * work.c (gomp_new_work_share): Initialize ordered_owner.
2614 2005-05-03 Richard Henderson <rth@redhat.com>
2616 * Makefile (OPT): New.
2619 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2620 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2621 * libgomp.h, libgomp.map, NOTES: Update to match.
2623 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2624 Add initialized and thr members.
2625 (gomp_thread_start): Pause when initially spawned to wait for
2626 the whole team to be created.
2627 (gomp_team_start): Release team members at the end.
2629 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2630 (f_foo_1): Use GOMP_loop_end.
2631 (f_foo_2): Use GOMP_loop_end_nowait.
2633 * testsuite/loop-2.c: New file.
2634 * testsuite/Makefile (TESTS): Add it.
2636 2005-05-03 Richard Henderson <rth@redhat.com>
2638 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2639 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2640 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2643 * testsuite/Makefile: New file.
2644 * testsuite/loop-1.c: New file.
2646 2005-05-03 Richard Henderson <rth@redhat.com>
2648 Initial implementation and checkin.