1 2009-11-13 Jakub Jelinek <jakub@redhat.com>
4 * libgomp.c/pr42029.c: New test.
6 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
9 *s. Accept ld version without text in ()s.
10 * configure: Regenerated.
12 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
14 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
16 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
20 or a hyphen (happens with fortran language disabled).
21 * configure: Regenerate.
23 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
26 use sed script portable to Solaris /bin/sed for extracting ld
28 * configure: Regenerate.
30 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
32 * testsuite/libgomp.graphite/bounds.c: New test.
34 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36 * Makefile.am (libgomp_la_LINK): New.
37 * Makefile.in: Regenerate.
39 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41 * configure.ac (AC_PREREQ): Bump to 2.64.
43 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45 * Makefile.am (install-html, install-pdf): Remove.
46 * Makefile.in: Regenerate.
48 * Makefile.in: Regenerate.
49 * aclocal.m4: Regenerate.
50 * config.h.in: Regenerate.
51 * configure: Regenerate.
52 * testsuite/Makefile.in: Regenerate.
54 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
57 * Makefile.in: Regenerate.
59 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
61 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
62 * Makefile.in: Regenerate.
64 2009-08-19 Tobias Burnus <burnus@net-b.de>
67 omp_lib.h.in: Fix -std=f95 errors.
70 2009-08-14 David Edelsohn <edelsohn@gnu.org>
72 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
73 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
74 * testsuite/libgomp.graphite/graphite.exp: New.
76 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
78 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
81 2009-08-04 David Daney <ddaney@caviumnetworks.com>
83 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
84 needed memory barrier semantics.
85 * config/linux/mips/mutex.h: New file.
87 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
89 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
91 2009-07-16 Joseph Myers <joseph@codesourcery.com>
93 * configure: Regenerate.
95 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
100 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
101 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
102 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
104 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
106 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
107 options when choosing a multilib.
109 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
111 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
112 ld_library_path. Use add_path. Add just find_libgcc_s to
113 ld_library_path, not every libgcc multilib directory.
114 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
115 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
116 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
118 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
120 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
122 * Makefile.am (LTLDFLAGS): Define.
124 * Makefile.in: Regenerate.
126 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
129 * testsuite/libgomp.fortran/fortran.exp: Don't link with
130 libgfortranbegin, check existence of libgfortran.a instead of
133 2009-05-20 Jakub Jelinek <jakub@redhat.com>
136 * team.c (gomp_thread_start): Destroy thr->release semaphore.
137 (gomp_free_pool_helper): Likewise.
139 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
140 Jakub Jelinek <jakub@redhat.com>
143 * testsuite/libgomp.fortran/workshare2.f90: New test.
145 2009-04-09 Nick Clifton <nickc@redhat.com>
147 * iter.c: Change copyright header to refer to version 3 of the
148 GNU General Public License with version 3.1 of the GCC Runtime
149 Library Exception and to point readers at the COPYING3 and
150 COPYING3.RUNTIME files and the FSF's license web page.
152 * barrier.c: Likewise.
153 * config/bsd/proc.c: Likewise.
154 * config/linux/affinity.c: Likewise.
155 * config/linux/alpha/futex.h: Likewise.
156 * config/linux/bar.c: Likewise.
157 * config/linux/bar.h: Likewise.
158 * config/linux/ia64/futex.h: Likewise.
159 * config/linux/ia64/mutex.h: Likewise.
160 * config/linux/lock.c: Likewise.
161 * config/linux/mips/futex.h: Likewise.
162 * config/linux/mutex.c: Likewise.
163 * config/linux/mutex.h: Likewise.
164 * config/linux/powerpc/futex.h: Likewise.
165 * config/linux/proc.c: Likewise.
166 * config/linux/ptrlock.c: Likewise.
167 * config/linux/ptrlock.h: Likewise.
168 * config/linux/s390/futex.h: Likewise.
169 * config/linux/sem.c: Likewise.
170 * config/linux/sem.h: Likewise.
171 * config/linux/sparc/futex.h: Likewise.
172 * config/linux/wait.h: Likewise.
173 * config/linux/x86/futex.h: Likewise.
174 * config/mingw32/proc.c: Likewise.
175 * config/mingw32/time.c: Likewise.
176 * config/posix/affinity.c: Likewise.
177 * config/posix/bar.c: Likewise.
178 * config/posix/bar.h: Likewise.
179 * config/posix/lock.c: Likewise.
180 * config/posix/mutex.h: Likewise.
181 * config/posix/proc.c: Likewise.
182 * config/posix/ptrlock.h: Likewise.
183 * config/posix/sem.c: Likewise.
184 * config/posix/sem.h: Likewise.
185 * config/posix/time.c: Likewise.
186 * config/posix95/lock.c: Likewise.
187 * critical.c: Likewise.
190 * fortran.c: Likewise.
191 * iter_ull.c: Likewise.
192 * libgomp.h: Likewise.
193 * libgomp_f.h.in: Likewise.
194 * libgomp_g.h: Likewise.
196 * loop_ull.c: Likewise.
197 * omp.h.in: Likewise.
198 * omp_lib.f90.in: Likewise.
199 * omp_lib.h.in: Likewise.
200 * ordered.c: Likewise.
201 * parallel.c: Likewise.
202 * sections.c: Likewise.
203 * single.c: Likewise.
208 2009-04-09 Jakub Jelinek <jakub@redhat.com>
210 * testsuite/config/default.exp: Change copyright header to refer to
211 version 3 of the GNU General Public License and to point readers
212 at the COPYING3 file and the FSF's license web page.
214 2009-04-08 Jakub Jelinek <jakub@redhat.com>
217 * libgomp.c++/pr39573.C: New test.
219 2009-04-01 Jakub Jelinek <jakub@redhat.com>
222 * testsuite/libgomp.c/pr39591-1.c: New test.
223 * testsuite/libgomp.c/pr39591-2.c: New test.
224 * testsuite/libgomp.c/pr39591-3.c: New test.
226 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
228 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
229 * testsuite/libgomp.c/atomic-6.c: Ditto.
231 2009-03-23 Jakub Jelinek <jakub@redhat.com>
234 * testsuite/libgomp.c/loop-12.c: New test.
235 * testsuite/libgomp.c/loop-11.c: New test.
236 * testsuite/libgomp.c++/loop-11.C: New test.
237 * testsuite/libgomp.c++/loop-12.C: New test.
238 * testsuite/libgomp.c++/for-8.C: New test.
240 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
242 * configure: Regenerate.
244 2009-02-11 Jakub Jelinek <jakub@redhat.com>
247 * testsuite/libgomp.c/pr39154.c: New test.
249 2009-01-30 Ian Lance Taylor <iant@google.com>
251 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
252 libgomp_ld_is_gold. Get gold version number.
253 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
254 * configure: Rebuild.
256 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
258 * testsuite/lib/libgomp.exp: Add -B option for targets that
259 use libgfortran.a%s in their specs.
261 2009-01-07 Jakub Jelinek <jakub@redhat.com>
264 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
265 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
266 HAVE_AS_SYMVER_DIRECTIVE is not defined.
267 * configure: Regenerated.
268 * config.h.in: Likewise.
270 2008-12-28 Jakub Jelinek <jakub@redhat.com>
273 * testsuite/libgomp.c/pr38650.c: New test.
274 * testsuite/libgomp.c++/pr38650.C: New test.
276 2008-12-27 Jakub Jelinek <jakub@redhat.com>
278 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
280 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
282 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
284 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
286 * configure: Regenerate.
288 2008-12-08 Jakub Jelinek <jakub@redhat.com>
291 * testsuite/libgomp.c/pr36802-1.c: New test.
292 * testsuite/libgomp.c/pr36802-2.c: New test.
293 * testsuite/libgomp.c/pr36802-3.c: New test.
295 2008-12-01 Janis Johnson <janis187@us.ibm.com>
298 * config/linux/powerpc/mutex.h: New.
300 2008-12-01 Jakub Jelinek <jakub@redhat.com>
303 * testsuite/libgomp.c++/for-7.C: New test.
306 * testsuite/libgomp.c++/for-6.C: New test.
308 2008-11-26 Janis Johnson <janis187@us.ibm.com>
311 * testsuite/lib/libgomp.exp: Include new timeout library files.
312 (libgomp_target_compile): Set timeout value from new proc.
314 2008-11-13 Steve Ellcey <sje@cup.hp.com>
317 * config/linux/ia64/mutex.h: New.
319 2008-11-04 Tobias Burnus <burnus@net-b.de>
322 * libgomp.texi (Runtime library routines, environment variables):
323 Update for OpenMP version 3.0.
325 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
326 Steve Ellcey <sje@cup.hp.com>
328 * configure: Regenerate for new libtool.
329 * Makefile.in: Ditto.
330 * testsuite/Makefile.in: Ditto.
332 2008-09-19 Jakub Jelinek <jakub@redhat.com>
333 Andreas Tobler <a.tobler@schweiz.org>
335 * config/bsd/proc.c: New file.
336 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
337 * configure.ac: Check for header <sys/sysctl.h>
338 * configure: Regenerate.
339 * config.h.in: Likewise.
341 2008-09-05 Janis Johnson <janis187@us.ibm.com>
343 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
345 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
347 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
348 * Makefile.in: Regenerated.
349 * testsuite/Makefile.in: Regenerated.
351 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
353 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
354 depend on blddir if blddir exists.
355 (libgomp_target_compile): Likewise.
356 * testsuite/libgomp.c++/c++.exp: Likewise.
357 * testsuite/libgomp.fortran/fortran.exp: Likewise.
359 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
361 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
362 Do not list GPL as Invariant Section.
364 2008-07-28 Ilie Garbacea <ilie@mips.com>
365 Chao-ying Fu <fu@mips.com>
367 * configure.tgt: Enable futex for MIPS.
368 * config/linux/mips/futex.h: New file.
370 2008-07-16 Jakub Jelinek <jakub@redhat.com>
372 * team.c (gomp_team_end): Free team immediately if it has
375 2008-07-08 David Edelsohn <edelsohn@gnu.org>
377 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
378 * testsuite/libgomp.fortran/fortran.exp: Same.
379 * testsuite/libgomp.c/c.exp: Same.
380 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
381 directory to library path first.
383 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
385 * env.c (parse_stacksize): Add cast to avoid warning.
386 (parse_spincount): Likewise.
388 2008-06-27 Jakub Jelinek <jakub@redhat.com>
390 * testsuite/libgomp.c/loop-10.c: New test.
391 * libgomp.c/loop-3.c (main): Add lastprivate clause.
392 * libgomp.c++/loop-6.C (main): Likewise.
395 * testsuite/libgomp.c/debug-1.c: New test.
397 2008-06-19 Jakub Jelinek <jakub@redhat.com>
399 * testsuite/libgomp.c/nqueens-1.c: New test.
402 * testsuite/libgomp.c++/task-7.C: New function.
404 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
406 * configure: Regenerate.
408 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
410 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
411 mutex when HAVE_SYNC_BUILTINS isn't defined.
413 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
415 * libgomp.texi (omp_test_lock): Fix typo.
417 2008-06-12 Tobias Burnus <burnus@net-b.de>
419 * omp_lib.f90.in: Add "implicit none".
421 2008-06-12 Jakub Jelinek <jakub@redhat.com>
424 * testsuite/libgomp.c/reduction-5.c: New test.
426 2008-06-11 Jakub Jelinek <jakub@redhat.com>
428 * libgomp.h (struct gomp_task): Add in_tied_task field.
429 * task.c (gomp_init_task): Initialize it.
430 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
431 unconditionally. Don't call gomp_team_barrier_wake if
432 current task is implicit or if(0) from implicit and number of
433 running tasks is equal to nthreads - 1.
436 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
437 omp_get_team_size_8): Fix pastos.
440 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
441 * configure: Regenerated.
442 * config.h.in: Regenerated.
443 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
446 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
449 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
450 (GOMP_loop_ull_dynamic_start): Likewise.
451 (GOMP_loop_ull_guided_start): Likewise.
452 (GOMP_loop_ull_ordered_static_start): Likewise.
453 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
454 (GOMP_loop_ull_ordered_guided_start): Likewise.
456 2008-06-06 Jakub Jelinek <jakub@redhat.com>
457 Richard Henderson <rth@redhat.com>
458 Ulrich Drepper <drepper@redhat.com>
459 Jakob Blomer <jakob.blomer@ira.uka.de>
461 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
462 Substitute also OMP_*LOCK_25*.
463 * configure: Regenerated.
464 * config.h.in: Regenerated.
465 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
466 ptrlock.c and task.c.
467 * Makefile.in: Regenerated.
468 * testsuite/Makefile.in: Regenerated.
470 * loop_ull.c: New file.
471 * iter_ull.c: New file.
472 * libgomp.h: Include ptrlock.h.
473 (enum gomp_task_kind): New type.
474 (struct gomp_team): Add task_lock, task_queue, task_count,
475 task_running_count, single_count fields. Add
476 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
477 Remove work_share_lock, generation_mask,
478 oldest_live_gen, num_live_gen and init_work_shares fields, add
479 work work_share_list_alloc, work_share_list_free and work_share_chunk
480 fields. Change work_shares from pointer to pointers into an array.
481 Change ordered_release field into gomp_sem_t ** from flexible array
482 member. Add implicit_task and initial_work_shares fields.
483 Move close to the end of the struct.
484 (struct gomp_team_state): Add single_count, last_work_share,
485 active_level and level fields, remove work_share_generation.
486 (gomp_barrier_handle_tasks): New prototype.
487 (gomp_finish_task): New inline function.
488 (struct gomp_work_share): Move chunk_size, end, incr into
489 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
490 next_ll fields. Reshuffle fields. Add next_alloc,
491 next_ws, next_free and inline_ordered_team_ids fields, change
492 ordered_team_ids into pointer from flexible array member.
493 Add mode field. Put lock and next into a different cache line
494 from most of the write-once fields.
495 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
496 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
497 gomp_iter_ull_guided_next): New prototypes.
498 (gomp_new_icv): New prototype.
499 (struct gomp_thread): Add thread_pool and task fields.
500 (struct gomp_thread_pool): New type.
501 (gomp_new_team): New prototype.
502 (gomp_team_start): Change type of last argument.
503 (gomp_new_work_share): Removed.
504 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
505 (gomp_work_share_init_done): New static inline.
506 (gomp_throttled_spin_count_var, gomp_available_cpus,
507 gomp_managed_threads): New extern decls.
508 (gomp_init_task): New prototype.
509 (gomp_spin_count_var): New extern var decl.
510 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
511 or no alias support, or if not PIC.
512 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
513 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
514 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
515 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
516 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
517 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
518 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
519 gomp_test_nest_lock_25): New prototypes.
520 (omp_lock_symver, strong_alias): Define.
521 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
523 (gomp_end_task): New.
524 (struct gomp_task_icv, gomp_global_icv): New.
525 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
526 (struct gomp_task): New.
527 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
528 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
530 (gomp_schedule_type): Reorder enum to match
532 * team.c (struct gomp_thread_start_data): Add thread_pool and task
534 (gomp_thread_start): Add gomp_team_barrier_wait call.
535 For non-nested case remove clearing of docked thread thr fields.
536 Use pool fields instead of global gomp_* variables. Use
537 gomp_barrier_wait_last when needed. Initialize ts.active_level.
538 Create tasks for each member thread.
539 (free_team): Only destroy team barrier, task_lock here and free it.
540 (gomp_free_thread): Free last_team if non-NULL.
541 (gomp_team_end): Call gomp_team_barrier_wait instead of
542 gomp_barrier_wait. For nested case call one extra
543 gomp_barrier_wait. Move here some destruction from free_team.
544 Call free_team on pool->last_team if any, rather than freeing
545 current team. Destroy work_share_list_free_lock ifndef
547 (gomp_new_icv): New function.
548 (gomp_threads, gomp_threads_size, gomp_threads_used,
549 gomp_threads_dock): Removed.
550 (gomp_thread_destructor): New variable.
551 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
553 (gomp_team_start): Create new pool if current thread doesn't have
554 one. Use pool fields instead of global gomp_* variables.
555 Initialize thread_pool field for new threads. Clear single_count.
556 Change last argument from ws to team, don't create
557 new team, set ts.work_share to &team->work_shares[0] and clear
558 ts.last_work_share. Don't clear ts.work_share_generation.
559 If number of threads changed, adjust atomically gomp_managed_threads.
560 Use gomp_init_task instead of gomp_new_task,
561 set thr->task to the corresponding implicit_task array entry.
562 Create tasks for each member thread. Initialize ts.level.
563 (initialize_team): Call pthread_key_create on
564 gomp_thread_destructor.
565 (team_destructor): New function.
567 (gomp_new_team): New function.
568 (free_team): Free gomp_work_share blocks chained through next_alloc,
569 instead of freeing work_shares and destroying work_share_lock.
570 (gomp_team_end): Call gomp_fini_work_share. If number of threads
571 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
572 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
573 of gomp_barrier_wait.
574 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
575 instead of gomp_barrier_wait. Call gomp_work_share_init_done
576 if gomp_work_share_start returned true. Don't unlock ws->lock.
577 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
578 of gomp_barrier_wait.
579 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
580 gomp_work_share_init_done if gomp_work_share_start returned true.
581 Don't unlock ws->lock.
582 * work.c: Include stddef.h.
583 (free_work_share): Use work_share_list_free_lock instead
584 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
585 Call gomp_fini_work_share and then either free ws if orphaned, or
586 put it into work_share_list_free list of the current team.
587 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
589 (gomp_work_share_start, gomp_work_share_end,
590 gomp_work_share_end_nowait): Rewritten.
591 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
592 (openmp_version): Set to 200805.
593 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
594 omp_sched_guided, omp_sched_auto): New parameters.
595 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
596 omp_set_max_active_levels, omp_get_max_active_levels,
597 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
598 omp_get_active_level): New interfaces.
599 * omp_lib.h.in (openmp_version): Set to 200805.
600 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
601 omp_sched_guided, omp_sched_auto): New parameters.
602 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
603 omp_set_max_active_levels, omp_get_max_active_levels,
604 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
605 omp_get_active_level): New externals.
606 * loop.c: Include limits.h.
607 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
609 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
610 Likewise. Use gomp_icv.
611 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
613 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
614 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
615 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
616 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
617 don't unlock ws->lock, otherwise lock it.
618 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
619 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
620 (gomp_parallel_loop_start): Call gomp_new_team instead of
621 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
622 Adjust gomp_team_start caller. Pass 0 as second argument to
623 gomp_resolve_num_threads.
624 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
625 If adding ws->chunk_size nthreads + 1 times after end won't
626 overflow, set ws->mode to 1.
627 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
628 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
629 GOMP_loop_ull_ordered_static_start,
630 GOMP_loop_ull_ordered_dynamic_start,
631 GOMP_loop_ull_ordered_guided_start,
632 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
633 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
634 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
635 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
636 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
638 * libgomp.map: Export lock routines also @@OMP_2.0.
639 (GOMP_loop_ordered_dynamic_first,
640 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
641 GOMP_loop_ordered_static_first): Remove.
642 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
643 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
644 GOMP_loop_ull_ordered_dynamic_next,
645 GOMP_loop_ull_ordered_dynamic_start,
646 GOMP_loop_ull_ordered_guided_next,
647 GOMP_loop_ull_ordered_guided_start,
648 GOMP_loop_ull_ordered_runtime_next,
649 GOMP_loop_ull_ordered_runtime_start,
650 GOMP_loop_ull_ordered_static_next,
651 GOMP_loop_ull_ordered_static_start,
652 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
653 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
654 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
655 (omp_set_schedule, omp_get_schedule,
656 omp_get_thread_limit, omp_set_max_active_levels,
657 omp_get_max_active_levels, omp_get_level,
658 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
659 omp_set_schedule_, omp_set_schedule_8_,
660 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
661 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
662 omp_get_max_active_levels_, omp_get_level_,
663 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
664 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
665 New exports @@OMP_3.0.
666 * omp.h.in (omp_sched_t): New type.
667 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
668 omp_set_max_active_levels, omp_get_max_active_levels,
669 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
670 omp_get_active_level): New prototypes.
671 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
672 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
673 gomp_thread_limit_var, gomp_remaining_threads_count,
674 gomp_remaining_threads_lock): New variables.
675 (parse_spincount): New function.
676 (initialize_env): Call gomp_init_num_threads unconditionally.
677 Initialize gomp_available_cpus. Call parse_spincount,
678 initialize gomp_{,throttled_}spin_count_var
679 depending on presence and value of OMP_WAIT_POLICY and
680 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
681 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
682 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
683 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
684 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
685 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
686 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
687 (gomp_global_icv): New.
688 (parse_schedule): Use it. Parse "auto".
689 (omp_set_num_threads): Use gomp_icv.
690 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
692 (omp_get_max_threads): Move from parallel.c.
693 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
694 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
696 (parse_stacksize, parse_wait_policy): New functions.
697 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
698 both wrappers for compatibility and new locks.
699 (omp_set_schedule, omp_get_schedule,
700 omp_get_thread_limit, omp_set_max_active_levels,
701 omp_get_max_active_levels, omp_get_level,
702 omp_get_ancestor_thread_num, omp_get_team_size,
703 omp_get_active_level): New ialias_redirect.
704 (omp_set_schedule_, omp_set_schedule_8_,
705 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
706 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
707 omp_get_max_active_levels_, omp_get_level_,
708 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
709 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
711 * parallel.c: Include limits.h.
712 (gomp_resolve_num_threads): Add count argument. Rewritten.
713 (GOMP_parallel_start): Call gomp_new_team and pass that as last
714 argument to gomp_team_start. Pass 0 as second argument to
715 gomp_resolve_num_threads.
716 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
717 if gomp_thread_limit_var != ULONG_MAX.
718 (omp_in_parallel): Implement using ts.active_level.
719 (omp_get_max_threads): Move to env.c.
720 (omp_get_level, omp_get_ancestor_thread_num,
721 omp_get_team_size, omp_get_active_level): New functions,
723 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
724 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
725 gomp_iter_dynamic_next instead of the _locked variant and don't take
726 lock around it, otherwise acquire it before calling
727 gomp_iter_dynamic_next_locked.
728 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
729 gomp_iter_dynamic_next instead of the _locked variant and don't take
731 (GOMP_parallel_sections_start): Call gomp_new_team instead of
732 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
733 Adjust gomp_team_start caller. Pass count as second argument to
734 gomp_resolve_num_threads, don't adjust num_threads after the call.
736 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
737 ws->chunk_size by incr.
738 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
740 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
742 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
743 (omp_check_defines): Check even the compat defines.
744 * config/linux/ptrlock.c: New file.
745 * config/linux/ptrlock.h: New file.
746 * config/linux/wait.h: New file.
747 * config/posix/ptrlock.c: New file.
748 * config/posix/ptrlock.h: New file.
749 * config/linux/bar.h (gomp_team_barrier_wait,
750 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
751 (gomp_team_barrier_set_task_pending,
752 gomp_team_barrier_clear_task_pending,
753 gomp_team_barrier_set_waiting_for_tasks,
754 gomp_team_barrier_waiting_for_tasks,
755 gomp_team_barrier_done): New inlines.
756 (gomp_barrier_t): Rewritten.
757 (gomp_barrier_state_t): New typedef.
758 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
759 gomp_barrier_wait_start): Rewritten.
760 (gomp_barrier_wait_end): Change second argument to
761 gomp_barrier_state_t.
762 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
764 * config/linux/bar.c: Include wait.h instead of libgomp.h and
766 (gomp_barrier_wait_end): Rewritten.
767 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
768 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
769 * config/posix/bar.h (gomp_barrier_t): Add generation field.
770 (gomp_barrier_state_t): New typedef.
771 (gomp_team_barrier_wait,
772 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
773 (gomp_barrier_wait_start): Or all but low 2 bits from generation
774 into the return value. Return gomp_barrier_state_t.
775 (gomp_team_barrier_set_task_pending,
776 gomp_team_barrier_clear_task_pending,
777 gomp_team_barrier_set_waiting_for_tasks,
778 gomp_team_barrier_waiting_for_tasks,
779 gomp_team_barrier_done): New inlines.
780 (gomp_barrier_wait_end): Change second argument to
781 gomp_barrier_state_t.
782 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
784 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
785 (gomp_barrier_wait_end): Change second argument to
786 gomp_barrier_state_t.
787 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
788 gomp_team_barrier_wake): New functions.
789 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
791 (gomp_futex_wake, gomp_futex_wait): New variables.
792 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
793 * config/linux/lock.c: Rewrite to make locks task owned,
794 for backwards compatibility provide the old entrypoints
795 if symbol versioning. Include wait.h instead of libgomp.h and
797 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
798 * config/posix95/lock.c: Rewrite to make locks task owned,
799 for backwards compatibility provide the old entrypoints
800 if symbol versioning.
801 * config/posix/lock.c: Rewrite to make locks task owned,
802 for backwards compatibility provide the old entrypoints
803 if symbol versioning.
804 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
805 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
806 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
807 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
808 (sys_futex0): Return error code.
809 (futex_wake, futex_wait): If ENOSYS was returned, clear
810 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
811 (cpu_relax, atomic_write_barrier): New static inlines.
812 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
813 (futex_wake, futex_wait): If ENOSYS was returned, clear
814 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
815 (cpu_relax, atomic_write_barrier): New static inlines.
816 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
817 (sys_futex0): Return error code.
818 (futex_wake, futex_wait): If ENOSYS was returned, clear
819 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
820 (cpu_relax, atomic_write_barrier): New static inlines.
821 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
822 (sys_futex0): Return error code.
823 (futex_wake, futex_wait): If ENOSYS was returned, clear
824 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
825 (cpu_relax, atomic_write_barrier): New static inlines.
826 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
827 (sys_futex0): Return error code.
828 (futex_wake, futex_wait): If ENOSYS was returned, clear
829 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
830 (cpu_relax, atomic_write_barrier): New static inlines.
831 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
832 (sys_futex0): Return error code.
833 (futex_wake, futex_wait): If ENOSYS was returned, clear
834 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
835 (cpu_relax, atomic_write_barrier): New static inlines.
836 * config/linux/sem.c: Include wait.h instead of libgomp.h and
838 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
839 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
840 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
842 (omp_nest_lock_t): Change owner into void *, add lock field.
843 * config/posix95/omp-lock.h: Include semaphore.h.
844 (omp_lock_25_t, omp_nest_lock_25_t): New types.
845 (omp_lock_t): Use sem_t instead of mutex if semaphores
847 (omp_nest_lock_t): Likewise. Change owner to void *.
848 * config/posix/omp-lock.h: Include semaphore.h.
849 (omp_lock_25_t, omp_nest_lock_25_t): New types.
850 (omp_lock_t): Use sem_t instead of mutex if semaphores
852 (omp_nest_lock_t): Likewise. Add owner field.
854 2008-06-06 Jakub Jelinek <jakub@redhat.com>
856 * testsuite/libgomp.c/collapse-1.c: New test.
857 * testsuite/libgomp.c/collapse-2.c: New test.
858 * testsuite/libgomp.c/collapse-3.c: New test.
859 * testsuite/libgomp.c/icv-1.c: New test.
860 * testsuite/libgomp.c/icv-2.c: New test.
861 * testsuite/libgomp.c/lib-2.c: New test.
862 * testsuite/libgomp.c/lock-1.c: New test.
863 * testsuite/libgomp.c/lock-2.c: New test.
864 * testsuite/libgomp.c/lock-3.c: New test.
865 * testsuite/libgomp.c/loop-4.c: New test.
866 * testsuite/libgomp.c/loop-5.c: New test.
867 * testsuite/libgomp.c/loop-6.c: New test.
868 * testsuite/libgomp.c/loop-7.c: New test.
869 * testsuite/libgomp.c/loop-8.c: New test.
870 * testsuite/libgomp.c/loop-9.c: New test.
871 * testsuite/libgomp.c/nested-3.c: New test.
872 * testsuite/libgomp.c/nestedfn-6.c: New test.
873 * testsuite/libgomp.c/sort-1.c: New test.
874 * testsuite/libgomp.c/task-1.c: New test.
875 * testsuite/libgomp.c/task-2.c: New test.
876 * testsuite/libgomp.c/task-3.c: New test.
877 * testsuite/libgomp.c/task-4.c: New test.
878 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
879 to C++ testsuite default compiler options.
880 * testsuite/libgomp.c++/collapse-1.C: New test.
881 * testsuite/libgomp.c++/collapse-2.C: New test.
882 * testsuite/libgomp.c++/ctor-10.C: New test.
883 * testsuite/libgomp.c++/for-1.C: New test.
884 * testsuite/libgomp.c++/for-2.C: New test.
885 * testsuite/libgomp.c++/for-3.C: New test.
886 * testsuite/libgomp.c++/for-4.C: New test.
887 * testsuite/libgomp.c++/for-5.C: New test.
888 * testsuite/libgomp.c++/loop-8.C: New test.
889 * testsuite/libgomp.c++/loop-9.C: New test.
890 * testsuite/libgomp.c++/loop-10.C: New test.
891 * testsuite/libgomp.c++/task-1.C: New test.
892 * testsuite/libgomp.c++/task-2.C: New test.
893 * testsuite/libgomp.c++/task-3.C: New test.
894 * testsuite/libgomp.c++/task-4.C: New test.
895 * testsuite/libgomp.c++/task-5.C: New test.
896 * testsuite/libgomp.c++/task-6.C: New test.
897 * testsuite/libgomp.fortran/allocatable1.f90: New test.
898 * testsuite/libgomp.fortran/allocatable2.f90: New test.
899 * testsuite/libgomp.fortran/allocatable3.f90: New test.
900 * testsuite/libgomp.fortran/allocatable4.f90: New test.
901 * testsuite/libgomp.fortran/collapse1.f90: New test.
902 * testsuite/libgomp.fortran/collapse2.f90: New test.
903 * testsuite/libgomp.fortran/collapse3.f90: New test.
904 * testsuite/libgomp.fortran/collapse4.f90: New test.
905 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
906 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
907 * testsuite/libgomp.fortran/lib4.f90: New test.
908 * testsuite/libgomp.fortran/lock-1.f90: New test.
909 * testsuite/libgomp.fortran/lock-2.f90: New test.
910 * testsuite/libgomp.fortran/nested1.f90: New test.
911 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
912 * testsuite/libgomp.fortran/strassen.f90: New test.
913 * testsuite/libgomp.fortran/tabs1.f90: New test.
914 * testsuite/libgomp.fortran/tabs2.f: New test.
915 * testsuite/libgomp.fortran/task1.f90: New test.
916 * testsuite/libgomp.fortran/task2.f90: New test.
917 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
918 * testsuite/libgomp.fortran/vla5.f90: Likewise.
919 * testsuite/libgomp.c/pr26943-2.c: Likewise.
920 * testsuite/libgomp.c/pr26943-3.c: Likewise.
921 * testsuite/libgomp.c/pr26943-4.c: Likewise.
923 2008-05-23 Jakub Jelinek <jakub@redhat.com>
926 * testsuite/libgomp.c++/ctor-11.C: New test.
927 * testsuite/libgomp.c++/ctor-12.C: New test.
929 2008-05-15 Janis Johnson <janis187@us.ibm.com>
931 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
933 2008-05-07 Jakub Jelinek <jakub@redhat.com>
936 * testsuite/libgomp.c/atomic-5.c: New test.
937 * testsuite/libgomp.c/atomic-6.c: New test.
938 * testsuite/libgomp.c/autopar-1.c: New test.
940 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
942 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
943 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
944 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
945 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
946 * configure: Regenerate.
947 * Makefile.in, testsuite/Makefile.in: Likewise.
949 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
952 * aclocal.m4: Regenerate.
953 * configure: Regenerate.
955 2008-03-18 Jakub Jelinek <jakub@redhat.com>
958 * testsuite/libgomp.c/atomic-4.c: New test.
961 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
962 (gomp_iter_guided_next): Likewise.
963 * testsuite/libgomp.c/pr35625.c: New test.
965 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
967 * aclocal.m4: Regenerate.
968 * configure: Likewise.
969 * Makefile.in: Likewise.
970 * testsuite/Makefile.in: Likewise.
972 2008-03-13 Jakub Jelinek <jakub@redhat.com>
975 * testsuite/libgomp.c++/pr35185.C: New test.
977 2008-03-12 Jakub Jelinek <jakub@redhat.com>
980 * testsuite/libgomp.c/pr35549.c: New test.
982 2008-03-06 Jakub Jelinek <jakub@redhat.com>
984 * testsuite/libgomp.c/atomic-3.c: New test.
986 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
989 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
992 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
995 * configure.ac: Add ACX_HEADER_STRING.
996 * env.c: Include strings.h.
997 * aclocal.m4: Regenerate.
998 * config.h.in: Regenerate.
999 * configure: Regenerate.
1000 * Makefile.in: Regenerate.
1001 * testsuite/Makefile.in: Regenerate.
1003 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1006 * testsuite/libgomp.c/pr35196.c: New test.
1009 * testsuite/libgomp.fortran/pr35130.f90: New test.
1010 * testsuite/libgomp.c/pr35130.c: New test.
1012 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1015 * testsuite/libgomp.c/pr33880.c: New test.
1016 * testsuite/libgomp.fortran/pr33880.f90: New test.
1018 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1020 * configure: Regenerate.
1022 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1024 * configure.ac: Move futex checking into ../config/futex.m4.
1025 * configure: Rebuilt.
1026 * aclocal.m4: Rebuilt.
1027 * Makefile.in: Rebuilt.
1029 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1030 2007-10-15 ../config/tls.m4 change.
1032 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1035 * testsuite/libgomp.c/pr34513.c: New test.
1036 * testsuite/libgomp.c++/pr34513.C: New test.
1038 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1041 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1043 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1045 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1047 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1049 * testsuite/libgomp.c/private-1.c: New test.
1051 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1052 Paolo Bonzini <bonzini@gnu.org>
1054 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1055 instead of 'VPATH ='.
1056 * Makefile.in: Regenerate.
1058 2007-11-23 Matthias Klose <doko@ubuntu.com>
1060 * configure.ac: Adjust makeinfo version check.
1061 * configure: Regenerate.
1063 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1066 * testsuite/libgomp.fortran/pr34020.f90: New test.
1068 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1071 * testsuite/libgomp.c++/atomic-1.C: New test.
1073 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1076 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1077 Make x and y integers rather than (implicit) reals. Add private (j)
1078 clause to the last omp parallel.
1080 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1082 * configure: Regenerate following changes to ../config/tls.m4.
1084 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1086 * testsuite/libgomp.fortran/stack.f90: New test.
1088 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1090 * config/mingw32/proc.c: New file.
1092 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1094 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1095 (main): Use __get_cpuid to get i386 target fetaures.
1096 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1097 (main): Use __get_cpuid to get x86_64 target fetaures.
1099 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1102 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1103 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1105 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1108 * testsuite/libgomp.fortran/pr32550.f90: New test.
1109 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1111 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1113 * aclocal.m4: Regenerated.
1115 2007-07-05 Tobias Burnus <burnus@net-b.de>
1118 * testsuite/libgomp.fortran/pr32359.f90: New.
1120 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1123 * sections.c (GOMP_parallel_sections_start): Only decrease
1124 number of threads to COUNT if dyn_var is true.
1125 * testsuite/libgomp.c/pr32468.c: New test.
1127 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1130 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1132 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1135 * testsuite/libgomp.c/pr32362-1.c: New test.
1136 * testsuite/libgomp.c/pr32362-2.c: New test.
1137 * testsuite/libgomp.c/pr32362-3.c: New test.
1139 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1141 * team.c (gomp_team_start): Fix setting up thread_attr
1144 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1146 * configure: Regenerate.
1148 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1150 * Makefile.in: Regenerate.
1151 * configure: Regenerate.
1152 * aclocal.m4: Regenerate.
1153 * testsuite/Makefile.in: Regenerate.
1155 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1157 * config/linux/proc.c: New file.
1160 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1162 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1164 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1166 2007-04-16 Matthias Klose <doko@debian.org>
1168 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1169 flags if not building with -m64.
1170 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1171 flag for i?86-*-* targets, if current target matches -m64.
1173 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1175 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1176 * Makefile.in: Regenerate.
1178 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1181 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1183 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1185 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1187 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1189 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1190 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1191 (parse_affinity): New function.
1192 (initialize_env): Call it and gomp_init_affinity.
1193 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1194 create new pthread_attr_t and call gomp_init_thread_affinity
1195 on it for each thread before passing the attribute to pthread_create.
1196 * config/linux/affinity.c: New file.
1197 * config/posix/affinity.c: New file.
1198 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1199 * configure: Rebuilt.
1200 * config.h.in: Rebuilt.
1201 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1202 * Makefile.in: Rebuilt.
1204 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1206 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1208 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1209 and use it if found.
1211 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1213 * testsuite/config/default.exp: New file.
1214 * testsuite/lib/libgomp.exp: New file.
1215 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1216 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1217 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1218 (libgomp_load): Remove.
1219 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1220 always_ld_library_path, not ld_library_path. Set additional_flags
1221 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1222 (target_compile): Do not call libgomp_init. Append lang_library_path
1223 and lang_link_flags to options.
1224 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1225 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1227 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1228 always_ld_library_path. Set LD_LIBRARY_PATH here.
1229 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1230 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1231 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1233 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1234 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1235 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1236 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1237 * testsuite/libgomp.c/atomic-10.c: Ditto.
1239 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1241 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1242 dg-final cleanup-modules line.
1243 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1244 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1245 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1246 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1247 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1248 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1249 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1251 2007-03-18 Andreas Schwab <schwab@suse.de>
1253 * acinclude.m4: Adjust regular expression for ld version
1255 * configure: Regenerate.
1257 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1259 * Makefile.am: Add install-pdf target as copied from
1260 automake v1.10 rules.
1261 * Makefile.in: Regenerate
1263 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1266 * configure: Regenerate.
1269 * testsuite/libgomp.c++/pr30703.C: New test.
1271 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1274 2006-07-05 Eric Christopher <echristo@apple.com>
1275 * configure.ac: Depend addition of -pthread on host OS.
1276 * configure: Regenerate.
1278 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1280 * libgomp.texi: Fix spacing after abbreviations.
1282 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1285 * configure.ac: Add check for makeinfo
1286 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1287 if an appropiate version of makeinfo is found.
1288 * aclocal.m4: Regenerated.
1289 * configure: Regenerated.
1290 * Makefile.in: Regenerated.
1291 * testsuite/Makefile.in: Regenerated.
1293 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1296 * libgomp.texi: More about implementation-dependent settings.
1298 2007-01-26 Tobias Burnus <burnus@net-b.de>
1300 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1302 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1305 * testsuite/libgomp.c/pr30494.c: New test.
1307 2007-01-15 Tom Tromey <tromey@redhat.com>
1309 * configure: Rebuilt.
1310 * configure.ac: Fixed comment.
1312 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1314 * libgomp.texi: Document implementation specific default values of
1315 environment variables.
1317 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1320 * libgomp.texi: New file.
1321 * configure.ac: Add --enable-generated-files-in-srcdir option.
1322 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1324 * Makefile.in: Regenerated.
1325 * config.h.in: Regenerated.
1326 * testsuite/Makefile.in: Regenerated.
1329 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1332 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1334 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1336 * configure: Regenerate.
1338 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1341 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1342 start if there shouldn't be any loop iterations.
1343 (gomp_loop_ordered_static_start): Remove start == end test.
1344 * testsuite/libgomp.c/pr29947-1.c: New test.
1345 * testsuite/libgomp.c/pr29947-2.c: New test.
1347 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1349 * configure.tgt: Force initial-exec TLS model on Linux only.
1351 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1353 * configure: Regenerated.
1355 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1357 * env.c (parse_schedule): Reject out of range values.
1358 (parse_unsigned_long): Reject out of range, negative or zero values.
1360 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1363 * testsuite/libgomp.fortran/pr29629.f90: New test.
1365 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1368 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1369 * config/posix95: New directory.
1370 * config/posix95/omp-lock.h: New file.
1371 * config/posix95/lock.c: Likewise.
1373 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1375 * aclocal.m4: Regenerate.
1376 * configure: Regenerate.
1378 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1380 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1383 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1385 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1387 * configure: Regenerate.
1388 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1390 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1394 * testsuite/libgomp.c/nestedfn-4.c: New test.
1395 * testsuite/libgomp.c/nestedfn-5.c: New test.
1396 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1399 * testsuite/libgomp.fortran/condinc1.f: New test.
1400 * testsuite/libgomp.fortran/condinc2.f: New test.
1401 * testsuite/libgomp.fortran/condinc3.f90: New test.
1402 * testsuite/libgomp.fortran/condinc4.f90: New test.
1403 * testsuite/libgomp.fortran/condinc1.inc: New file.
1405 2006-09-18 Tom Tromey <tromey@redhat.com>
1407 * configure: Rebuilt.
1409 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1412 PR preprocessor/14634
1413 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1415 * configure: Regenerate.
1417 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1419 * testsuite/libgomp.fortran/reduction3.f90: Change
1420 -2147483648 to -huge(i)-1 to avoid overflow.
1421 * testsuite/libgomp.fortran/reduction4.f90: Change
1422 Z'ffffffff' to not(0) to avoid overflow.
1424 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1427 * Makefile.am (libsubincludedir): New.
1428 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1429 * Makefile.in: Regenerate.
1431 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1434 * env.c: Include ctype.h.
1435 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1436 leading and/or trailing whitespace and compare strings case
1439 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1442 * testsuite/libgomp.fortran/pr28390.f: New test.
1444 2006-07-05 Eric Christopher <echristo@apple.com>
1446 * configure.ac: Depend addition of -pthread on host OS.
1447 * configure: Regenerate.
1449 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1451 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1452 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1455 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1459 * configure.ac: If neither --enable-linux-futex nor
1460 --disable-linux-futex is passed, determine the default by checking
1461 for compiling and/or running against NPTL. With --enable-linux-futex,
1462 check if SYS_gettid and SYS_futex are defined.
1463 * configure: Rebuilt.
1465 2006-06-14 Richard Henderson <rth@redhat.com>
1468 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1469 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1471 2006-06-09 Richard Henderson <rth@redhat.com>
1473 * env.c (gomp_nthreads_var): Change to unsigned long.
1474 (gomp_run_sched_chunk): Likewise.
1475 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1476 (initialize_env): Initialize gomp_thread_attr.
1477 * libgomp.h (gomp_nthreads_var): Update decl.
1478 (gomp_run_sched_chunk): Likewise.
1479 (gomp_thread_attr): Declare.
1480 * team.c (gomp_thread_attr): Export.
1481 (initialize_team): Don't initialize it.
1483 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1486 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1487 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1489 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1491 * config/mingw32/time.c: New file.
1492 * configure.tgt: Use it.
1494 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1496 * Makefile.am: Add install-html target. Add install-html to .PHONY
1497 * Makefile.in: Regenerate.
1499 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1502 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1503 * testsuite/libgomp.c/critical-1.c: Likewise.
1504 * testsuite/libgomp.c/loop-1.c: Likewise.
1505 * testsuite/libgomp.c/loop-2.c: Likewise.
1506 * testsuite/libgomp.c/single-1.c: Likewise.
1507 * testsuite/libgomp.c/ordered-1.c: Likewise.
1508 * testsuite/libgomp.c/ordered-2.c: Likewise.
1510 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1513 * libgomp.fortran/pr27416-1.f90: New test.
1515 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1518 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1519 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1521 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1524 * testsuite/libgomp.c/pr26943-1.c: New test.
1525 * testsuite/libgomp.c/pr26943-2.c: New test.
1526 * testsuite/libgomp.c/pr26943-3.c: New test.
1527 * testsuite/libgomp.c/pr26943-4.c: New test.
1528 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1529 * testsuite/libgomp.c++/pr26943.C: New test.
1531 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1534 * testsuite/libgomp.c++/pr27337.C: New test.
1536 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1539 * testsuite/libgomp.c/pr26171.c: New test.
1541 2006-04-25 Richard Henderson <rth@redhat.com>
1544 * configure.ac: Use GCC_CHECK_TLS.
1545 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1546 * Makefile.in, aclocal.m4, configure: Regenerate.
1548 2006-04-10 Matthias Klose <doko@debian.org>
1550 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1551 directory names containing underscores.
1553 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1556 * testsuite/libgomp.c++/pr26691.C: New test.
1558 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1560 * testsuite/libgomp.fortran/retval2.f90: New test.
1562 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1564 * testsuite/libgomp.c++: New directory.
1566 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1568 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1569 * config/posix/sem.c: Implement the above.
1571 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1573 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1574 define HAVE_BROKEN_POSIX_SEMAPHORES.
1575 * configure: Rebuilt.
1576 * config.h.in: Rebuilt.
1578 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1581 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1582 for the other pthread check.
1583 * configure: Regenerate.
1584 * config.h.in: Regenerate.
1586 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1590 * Makefile.am (fincludedir): New variable.
1591 (nodist_include_HEADERS): Remove Fortran files.
1592 (nodist_finclude_HEADERS): New variable.
1593 * Makefile.in: Regenerated.
1595 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1597 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1598 Remove tests for returning assumed character length arrays.
1600 2006-02-12 Roger Sayle <roger@eyesopen.com>
1601 John David Anglin <dave@hiauly1.hia.nrc.ca>
1604 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1606 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1608 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1610 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1612 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1613 part of LD_LIBRARY_PATH manually.
1615 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1618 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1621 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1624 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1625 * configure.ac (PERL): Don't set.
1626 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1627 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1628 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1629 * omp.h.in: Wrap the new configure substitutions with @ characters.
1630 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1631 * aclocal.m4, configure, Makefile.in: Regenerate.
1632 * mkomp_h.pl: Delete.
1634 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1637 * configure.ac: Use GCC_HEADER_STDINT.
1638 * libgomp.h: Include gstdint.h.
1639 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1640 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1642 2006-01-24 Richard Henderson <rth@redhat.com>
1645 * configure.ac: Add AM_MAINTAINER_MODE.
1646 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1648 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1650 * Makefile.in: Regenerate.
1651 * testsuite/Makefile.in: Regenerate.
1652 * aclocal.m4: Regenerate.
1654 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1656 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1658 * configure.ac: Add check for loadavg.h.
1659 (link_gomp): Adjust comment.
1660 * configure: Regenerate.
1661 * config.h.in: Regenerate.
1663 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1666 * configure.ac: Remove check for alloca.h.
1667 * configure: Regenerate.
1668 * config.h.in: Regenerate.
1669 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1670 * team.c: Remove use of alloca.h.
1671 Call gomp_alloca instead of alloca.
1673 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1676 * team.c: Add include of alloca.h.
1677 * configure.ac: Add check for alloca.h.
1678 * configure: Regenerate.
1679 * config.h.in: Regenerate.
1681 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1684 * testsuite/libgomp.fortran/pr25219.f90: New test.
1686 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1688 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1689 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1690 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1691 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1692 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1693 testsuite/libgomp.fortran/threadprivate1.f90,
1694 testsuite/libgomp.fortran/threadprivate2.f90,
1695 testsuite/libgomp.fortran/threadprivate3.f90,
1696 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1697 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1698 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1699 effective-target to TLS runtime.
1701 * testsuite/libgomp.fortran/pr25162.f: Require
1702 effective-target TLS runtime.
1704 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1706 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1707 * testsuite/libgomp.c/nestedfn-3.c: New test.
1709 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1712 * testsuite/libgomp.fortran/pr25162.f: New test.
1714 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1716 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1717 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1719 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1721 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1722 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1723 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1724 single.c, team.c, work.c, config/linux/alpha/futex.h,
1725 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1726 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1727 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1728 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1729 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1730 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1731 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1734 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1736 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1737 to nodist_noinst_HEADERS.
1738 * Makefile.in: Rebuilt.
1740 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1741 add integer count field.
1742 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1743 omp_nest_lock_t type change.
1744 (omp_init_nest_lock): Likewise. Initialize count to 0.
1745 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1747 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1749 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1750 Increment count if successful and return the new nesting level.
1751 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1752 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1753 * testsuite/libgomp.c/lib-1.c: New test.
1754 * testsuite/libgomp.fortran/lib1.f90: New test.
1755 * testsuite/libgomp.fortran/lib2.f: New test.
1756 * testsuite/libgomp.fortran/lib3.f: New test.
1758 2005-11-17 Richard Henderson <rth@redhat.com>
1761 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1762 * configure.ac (link_gomp): New. Substitute it.
1763 (AC_CONFIG_FILES): Add libgomp.spec.
1764 * libgomp.spec.in: New file.
1765 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1766 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1768 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1770 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1771 reduction(-:var) behaving the same as reduction(+:var).
1772 * testsuite/libgomp.c/reduction-4.c: New test.
1774 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1776 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1777 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1778 testsuite/libgomp.c/copyin-3.c,
1779 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1780 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1781 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1782 testsuite/libgomp.c++/pr24455.C,
1783 testsuite/libgomp.fortran/threadprivate1.f90,
1784 testsuite/libgomp.fortran/threadprivate2.f90,
1785 testsuite/libgomp.fortran/threadprivate3.f90,
1786 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1787 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1788 testsuite/libgomp.fortran/omp_parse3.f90: Require
1789 effective-target TLS.
1791 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1795 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1798 * team.c (initialize_team): Pass NULL rather than free as
1799 pthread_key_create destructor. Initialize thread specific data
1800 pointer in initial thread to a static local variable rather than
1803 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1805 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1806 its location to ld_library_path.
1808 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1810 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1812 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1814 * testsuite/libgomp.c: Rename from libgomp.dg.
1816 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1818 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1819 threadprivate variable 'i'.
1821 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1823 * config/linux/s390/futex.h: New file.
1824 * configure.tgt: Use it.
1826 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1827 before the parallel.
1829 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1832 * testsuite/libgomp.c++/master-1.C: New test.
1834 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1836 * testsuite/libgomp.dg/copyin-3.c: New test.
1838 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1840 * testsuite/libgomp.fortran/retval1.f90: New test.
1841 * testsuite/libgomp.fortran/vla7.f90: New test.
1843 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1845 * testsuite/libgomp.fortran/vla2.f90: New test.
1846 * testsuite/libgomp.fortran/vla3.f90: New test.
1847 * testsuite/libgomp.fortran/vla4.f90: New test.
1848 * testsuite/libgomp.fortran/vla5.f90: New test.
1849 * testsuite/libgomp.fortran/vla6.f90: New test.
1851 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1853 * config/linux/sparc/futex.h: New file.
1854 * configure.tgt: Use it.
1855 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1857 * critical.c: Include stdlib.h.
1858 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1859 ignoring return value.
1860 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1861 LIBGOMP_CHECK_SYNC_BUILTINS check.
1862 * configure: Rebuilt.
1864 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1866 * testsuite/libgomp.fortran/vla1.f90: New test.
1868 2005-10-31 Richard Henderson <rth@redhat.com>
1870 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1871 setting 's' in different threads.
1873 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1875 * libgomp.h (attribute_hidden, ialias): Define.
1876 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1877 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1878 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1879 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1880 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1881 omp_test_lock, omp_test_nest_lock): Likewise.
1882 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1883 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1884 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1885 omp_test_lock, omp_test_nest_lock): Likewise.
1886 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1887 omp_get_dynamic, omp_get_nested): Likewise.
1888 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1889 omp_get_thread_num, omp_in_parallel): Likewise.
1890 * fortran.c (ialias_redirect): Define.
1891 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1892 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1893 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1894 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1895 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1896 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1897 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1898 omp_get_wtime): Add ialias_redirect.
1900 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1902 * fortran.c: Include stdlib.h.
1904 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1906 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1907 * Makefile.in: Regenerated.
1909 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1911 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1912 * libgomp_f.h.in (omp_check_defines): New function.
1913 * env.c: Include libgomp_f.h.
1914 (initialize_env): Call omp_check_defines.
1916 * testsuite/libgomp.dg/copyin-2.c: New test.
1917 * testsuite/libgomp.c++/copyin-2.C: New test.
1918 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1920 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1921 * testsuite/libgomp.fortran/sharing2.f90: New test.
1923 * testsuite/libgomp.dg/copyin-1.c: New test.
1924 * testsuite/libgomp.c++/copyin-1.C: New test.
1926 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1928 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1930 * testsuite/libgomp.fortran/workshare1.f90: New test.
1932 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1934 * libgomp.fortran/sharing1.f90: New test.
1936 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1939 * testsuite/libgomp.c++/loop-7.C: New test.
1941 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1943 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1944 * testsuite/libgomp.fortran/reduction6.f90: New test.
1945 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1947 2005-10-23 Richard Henderson <rth@redhat.com>
1949 * testsuite/libgomp.c++/ctor-1.C: New.
1950 * testsuite/libgomp.c++/ctor-2.C: New.
1951 * testsuite/libgomp.c++/ctor-3.C: New.
1952 * testsuite/libgomp.c++/ctor-4.C: New.
1953 * testsuite/libgomp.c++/ctor-5.C: New.
1954 * testsuite/libgomp.c++/ctor-6.C: New.
1955 * testsuite/libgomp.c++/ctor-7.C: New.
1956 * testsuite/libgomp.c++/ctor-8.C: New.
1957 * testsuite/libgomp.c++/ctor-9.C: New.
1959 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1962 * testsuite/libgomp.c++/pr24455-1.C: New test.
1963 * testsuite/libgomp.c++/pr24455.C: New test.
1964 * testsuite/libgomp.dg/pr24455-1.c: New test.
1965 * testsuite/libgomp.dg/pr24455.c: New test.
1967 2005-10-20 Richard Henderson <rth@redhat.com>
1969 * testsuite/libgomp.c++/loop-6.C: New.
1970 * testsuite/libgomp.dg/loop-3.c: New.
1972 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1974 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1976 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1979 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1981 * testsuite/libgomp.fortran/jacobi.f: New test.
1983 2005-10-19 Richard Henderson <rth@redhat.com>
1985 * configure.tgt (i?86-linux): Default to with_arch instead of
1986 CFLAGS. Add -mtune to match target_cpu.
1987 (x86_64-linux): Tune to i686.
1989 * fortran.c (omp_test_nest_lock_): Fix typo.
1991 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1993 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1994 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1995 * testsuite/libgomp.dg/ordered-3.c: New test.
1997 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1998 Remove volatile keyword.
2000 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2001 in COMMON block to avoid warnings on 64-bit targets.
2003 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2005 * testsuite/libgomp.dg/shared-3.c: New test.
2007 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2009 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2010 * testsuite/libgomp.fortran/reduction5.f90: New test.
2012 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2014 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2016 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2017 flush loop now that __sync_synchronize has proper memory barrier.
2018 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2019 Add -ffixed-form to dg-options.
2021 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2023 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2024 from subdirectories.
2025 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2026 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2027 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2028 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2029 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2030 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2031 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2032 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2033 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2034 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2035 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2036 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2037 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2038 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2039 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2040 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2041 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2042 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2043 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2044 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2045 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2046 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2047 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2048 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2049 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2051 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2053 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2054 lang_library_path exists. Use find instead of glob to gather tests.
2055 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2057 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2059 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2060 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2061 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2062 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2063 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2064 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2065 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2066 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2067 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2068 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2069 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2070 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2071 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2073 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2075 * testsuite/libgomp.dg/vla-1.c: New test.
2077 * testsuite/libgomp.fortran/reference2.f90: New test.
2079 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2080 declaration of omp_get_thread_num.
2081 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2084 * testsuite/libgomp.fortran/reduction1.f90: New test.
2085 * testsuite/libgomp.fortran/reduction2.f90: New test.
2086 * testsuite/libgomp.fortran/reduction3.f90: New test.
2087 * testsuite/libgomp.fortran/reduction4.f90: New test.
2089 2005-10-13 Richard Henderson <rth@redhat.com>
2091 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2092 * Makefile.in: Regenerate.
2093 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2094 * libgomp.h: Include bar.h.
2095 (struct gomp_barrier): Remove.
2096 (struct gomp_team): Add barrier. Replace master_barrier with
2097 master_release. Replace threads with ordered_release.
2098 (struct gomp_thread): Replace barrier with release.
2099 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2100 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2101 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2102 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2103 (GOMP_single_copy_end): Likewise.
2104 * team.c (gomp_threads_dock): New.
2105 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2106 (gomp_thread_start): Use gomp_barrier_wait.
2107 (new_team, free_team): Update for gomp_team changes.
2108 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2109 (gomp_team_end): Use gomp_barrier_wait.
2110 (initialize_team): Update for gomp_thread changes.
2111 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2112 (gomp_work_share_end_nowait): Use atomic ops when available.
2113 * config/linux/bar.c, config/linux/bar.h: New files.
2114 * config/posix/bar.c, config/posix/bar.h: New files.
2116 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2118 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2119 * testsuite/libgomp.dg/single-2.c: New test.
2121 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2122 lang_link_flags): Unset, so that they aren't inherited from previously
2125 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2127 2005-10-12 Richard Henderson <rth@redhat.com>
2129 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2130 (libgomp_init): Use lang_test_file, lang_library_path, and
2131 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2133 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2134 (lang_test_file, lang_link_flags): New.
2135 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2137 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2138 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2139 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2140 testsuite/libgomp.c++/parallel-1.C,
2141 testsuite/libgomp.c++/reduction-1.C,
2142 testsuite/libgomp.c++/reduction-2.C,
2143 testsuite/libgomp.c++/reduction-3.C,
2144 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2145 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2146 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2147 New files, largely cribbed from the C testsuite.
2149 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2151 * testsuite/libgomp.fortran/character1.f90: New test.
2152 * testsuite/libgomp.fortran/character2.f90: New test.
2154 * testsuite/libgomp.dg/nested-1.c: New test.
2155 * testsuite/libgomp.dg/nested-2.c: New test.
2156 * testsuite/libgomp.fortran/do1.f90: New test.
2157 * testsuite/libgomp.fortran/do2.f90: New test.
2159 * testsuite/libgomp.fortran/reference1.f90: New test.
2161 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2163 * testsuite/libgomp.dg/reduction-1.c: New test.
2164 * testsuite/libgomp.dg/reduction-2.c: New test.
2165 * testsuite/libgomp.dg/reduction-3.c: New test.
2167 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2169 * testsuite/libgomp.dg/atomic-1.c: New test.
2170 * testsuite/libgomp.dg/atomic-2.c: New test.
2172 2005-10-09 Richard Henderson <rth@redhat.com>
2174 * critical.c (atomic_lock): New.
2175 (initialize_critical): Initialize it.
2176 (GOMP_atomic_start, GOMP_atomic_end): New.
2177 * libgomp.map: Export them.
2178 * libgomp_g.h: Declare them.
2180 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2182 2005-10-02 Richard Henderson <rth@redhat.com>
2184 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2185 to XCFLAGS instead of CFLAGS.
2187 2005-09-30 Richard Henderson <rth@redhat.com>
2189 * configure.ac: Determine whether -pthread or -lpthread is needed.
2190 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2191 * Makefine.in, configure: Rebuild.
2193 2005-09-28 Richard Henderson <rth@redhat.com>
2195 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2196 * testsuite/libgomp.dg/omp-single-3.c: New test.
2198 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2200 * testsuite/libgomp.dg/omp-single-2.c: New test.
2201 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2203 2005-09-27 Richard Henderson <rth@redhat.com>
2205 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2206 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2208 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2210 * testsuite/libgomp.dg/omp-loop03.c: New test.
2212 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2214 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2216 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2218 * testsuite/libgomp.dg/omp-single-1.c: New test.
2219 * testsuite/libgomp.dg/shared-1.c: Return 0.
2220 Add prototype for abort.
2221 * testsuite/libgomp.dg/shared-2.c: Likewise.
2223 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2225 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2228 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2230 * testsuite/libgomp.dg/shared-1.c: New test.
2231 * testsuite/libgomp.dg/shared-2.c: New test.
2233 2005-09-24 Richard Henderson <rth@redhat.com>
2235 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2237 2005-09-24 Richard Henderson <rth@redhat.com>
2239 * iter.c (gomp_iter_static_next): Round up when computing number
2240 of iterations. Don't bother distributing a remainder equally.
2242 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2243 Don't call srand. Zero b before testing.
2246 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2248 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2249 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2251 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2253 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2254 without !$omp end do, followed immediately by subroutine end.
2256 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2258 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2260 2005-09-22 Richard Henderson <rth@redhat.com>
2262 * critical.c (GOMP_critical_name_start): Change argument to void**.
2263 Reuse the pointer space if the mutex fits.
2264 (GOMP_critical_name_end): Likewise.
2265 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2266 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2267 (GOMP_critical_name_end): Likewise.
2268 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2269 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2271 2005-09-20 Richard Henderson <rth@redhat.com>
2273 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2274 (create_lock_lock): New.
2275 (initialize_critical): Initialize it.
2276 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2277 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2279 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2281 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2283 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2285 * testsuite/libgomp.dg/omp-loop01.c: New test.
2286 * testsuite/libgomp.dg/omp-loop02.c: New test.
2288 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2290 * configure.ac (AC_PROG_FC): Add.
2291 (USE_FORTRAN): New automake conditional.
2292 * configure: Rebuilt.
2293 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2294 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2295 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2296 Add rules to build them.
2297 * Makefile.in: Rebuilt.
2298 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2300 * libgomp.map: Add Fortran wrappers.
2301 * libgomp_f.h.in: New file.
2302 * omp_lib.h.in: New file.
2303 * omp_lib.f90.in: New file.
2304 * fortran.c: New file.
2305 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2306 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2307 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2308 libgfortran has been built.
2309 * testsuite/libgomp.fortran/fortran.exp: New file.
2310 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2311 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2312 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2313 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2314 * testsuite/libgomp.fortran/omp_hello.f: New test.
2315 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2316 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2317 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2318 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2319 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2320 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2321 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2322 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2324 2005-08-30 Richard Henderson <rth@redhat.com>
2326 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2327 function for when aliases are not usable.
2328 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2329 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2330 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2331 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2332 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2333 GOMP_loop_ordered_guided_next): Likewise.
2334 * ordered.c (GOMP_ordered_start): Likewise.
2336 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2338 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2339 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2340 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2341 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2342 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2343 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2344 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2345 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2346 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2348 2005-07-07 Eric Christopher <echristo@redhat.com>
2349 Diego Novillo <dnovillo@redhat.com>
2351 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2352 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2354 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2355 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2356 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2357 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2358 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2359 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2360 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2362 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2364 * TOPLEVEL.patch: Remove.
2366 2005-05-16 Richard Henderson <rth@redhat.com>
2368 * configure.ac: Test for clock_gettime.
2369 * config.h.in, configure: Rebuild.
2370 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2371 (omp_get_wtime): Use clock_gettime if available.
2372 (omp_get_wtick): Use clock_getres if available.
2374 2005-05-11 Richard Henderson <rth@redhat.com>
2376 * config/linux/ia64/futex.h: New file.
2377 * configure.tgt: Use it.
2379 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2381 2005-05-07 Richard Henderson <rth@redhat.com>
2383 * config/linux/powerpc/futex.h: New file.
2384 * configure.tgt: Use it.
2386 * config/linux/i486/futex.h: Merge ...
2387 * config/linux/x86_64/futex.h: ... into ...
2388 * config/linux/x86/futex.h: ... here.
2389 * configure.tgt: Update to match.
2391 2005-05-06 Richard Henderson <rth@redhat.com>
2393 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2394 * config/linux/i486/futex.h: Likewise.
2395 * config/linux/x86_64/futex.h: Likewise.
2397 * config/linux/lock.c: New file.
2398 * config/linux/omp-lock.h: New file.
2400 * critical.c, env.h: Don't include omp.h
2401 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2402 * config/posix/time.c: Likewise.
2403 * config/posix/omp-lock.h: New file.
2404 * libgomp.h: Include omp-lock.h and omp.h.
2405 * Makefile.am (nodist_include_HEADERS): New.
2407 * configure.ac (PERL): New.
2408 * mkomp_h.pl: New file.
2409 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2411 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2413 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2414 build directory. Re-add -march=i486 hack.
2416 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2417 (libgomp_link_flags): Remove.
2418 (libgomp_initialized): Remove.
2419 (libgomp_init): Don't protect from reinitialization. Copy code
2420 from libstdc++ for getting the multilib set correctly.
2422 2005-05-05 Richard Henderson <rth@redhat.com>
2424 * config/linux/alpha/futex.h: New file.
2425 * configure.tgt (alpha*-*-linux*): Use it.
2427 * config/posix/mutex.c: New file.
2428 * config/posix/sem.c: Use libgomp.h.
2430 * configure.tgt (x86_64-linux): Also test CC for -m32.
2431 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2433 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2436 * Makefile.am (SUBDIRS): New.
2437 (libgomp_la_LDFLAGS): Add -lpthread.
2438 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2439 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2441 * libgomp_g.h: New file.
2442 * libgomp.h: Split out all public declarations to libgomp_g.h.
2443 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2444 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2445 * config/linux/sem.h: Likewise.
2446 * config/posix/sem.h: Likewise.
2448 * Makefile.am (AM_LDFLAGS): New.
2449 (libgomp_version_script): Split out from ...
2450 (libgomp_la_LDFLAGS): ... here.
2451 (libgomp_version_info): New.
2452 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2453 (LIBGOMP_ENABLE): New.
2454 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2455 (LIBGOMP_ENABLE_SYMVERS): New.
2456 * configure.ac (AC_INIT): Version 1.0.
2457 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2458 (enable-linux-futex): Likewise. Rename from enable-futex.
2459 (libtool_VERSION): New.
2460 (LIBGOMP_ENABLE_SYMVERS): Use it.
2461 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2462 * Makefile.in, aclocal.m4, configure: Rebuild.
2464 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2465 (gomp_mutex_unlock_slow): Fix typo.
2466 * config/linux/sem.c: Similarly.
2467 (gomp_sem_post_slow): Fix typo.
2468 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2469 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2470 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2472 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2473 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2474 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2475 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2476 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2477 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2478 LDFLAGS. Pull enable_futex check to top-level.
2479 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2480 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2482 First attempt at real configury.
2483 * Makefile, config.h: Remove file.
2484 * Makefile.am, Makefile.in: New file.
2485 * acinclude.m4 aclocal.m4: New file.
2486 * configure.ac, configure.tgt, configure: New file.
2488 * config/posix/lock.c: Rename from sys-lock.c.
2489 * config/posix/mutex.h: Rename from sys-mutex.h.
2490 * config/posix/sem.c: Rename from sys-sem.c.
2491 * config/posix/sem.h: Rename from sys-sem.h.
2492 * config/posix/proc.c: Rename from sys-proc.c.
2493 * config/posix/time.c: Rename from sys-proc.c.
2495 * config/linux/mutex.c: New file.
2496 * config/linux/mutex.h: New file.
2497 * config/linux/sem.c: New file.
2498 * config/linux/sem.h: New file.
2499 * config/linux/i486/futex.h: New file.
2500 * config/linux/x86_64/futex.h: New file.
2502 2005-05-04 Richard Henderson <rth@redhat.com>
2504 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2505 * libgomp.h: Declare them.
2506 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2507 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2509 2005-05-04 Richard Henderson <rth@redhat.com>
2511 * libgomp-1 code drop
2513 2005-05-04 Richard Henderson <rth@redhat.com>
2515 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2516 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2517 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2518 (gomp_iter_static_next): Update.
2519 (gomp_ordered_static_next): Update.
2520 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2521 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2522 totally empty range.
2523 (gomp_loop_ordered_static_next): Refine test for calling
2524 gomp_ordered_static_next.
2525 * testsuite/ordered-1.c: Add case for more threads than iterations.
2527 * iter.c (gomp_iter_runtime_next_locked): Remove.
2528 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2529 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2530 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2531 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2532 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2533 gomp_loop_ordered_guided_next): Downcase name, make static, add
2534 an external alias with the old name.
2535 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2536 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2537 switch and call one of the above static functions.
2538 * libgomp.h: Update.
2540 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2541 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2542 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2543 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2544 GOMP_loop_ordered_guided_start): Update to match.
2545 * sections.c (GOMP_sections_start): Likewise.
2546 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2548 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2549 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2550 Use bounds check instead of modulus.
2551 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2552 (gomp_ordered_last): Don't sync with ordered_owner here.
2553 (gomp_ordered_next): Likewise.
2554 (gomp_ordered_static_loop_next): Likewise.
2555 * loop.c, libgomp.h: Update to match.
2557 * libgomp.h (GOMP_barrier): Declare.
2559 * testsuite/barrier-1.c: New file.
2560 * testsuite/critical-1.c: New file.
2561 * testsuite/ordered-2.c: New file.
2562 * testsuite/ordered-1.c: New file.
2563 * testsuite/sections-1.c: New file.
2564 * testsuite/single-1.c: New file.
2565 * testsuite/Makefile (TESTS): Add them.
2567 2005-05-04 Richard Henderson <rth@redhat.com>
2569 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2570 * loop.c (GOMP_loop_static_start): If not the startup thread,
2571 acquire the mutex to wait for initialization complete.
2572 (GOMP_loop_ordered_static_start): Likewise.
2573 (GOMP_loop_ordered_runtime_start): Likewise.
2574 (GOMP_loop_ordered_static_first): Remove.
2575 (GOMP_loop_ordered_dynamic_first): Remove.
2576 (GOMP_loop_ordered_guided_first): Remove.
2577 (GOMP_loop_ordered_runtime_first): Remove.
2578 * ordered.c (gomp_ordered_loop_first): Post to own release when
2579 we're the first thread.
2580 (gomp_ordered_loop_last): Wait on release if not owner.
2581 (gomp_ordered_loop_next): Likewise.
2582 (gomp_ordered_static_loop_init): New.
2583 (gomp_ordered_static_loop_next): Use ordered_owner.
2584 (GOMP_ordered_start): Likewise.
2585 * work.c (gomp_new_work_share): Initialize ordered_owner.
2587 2005-05-03 Richard Henderson <rth@redhat.com>
2589 * Makefile (OPT): New.
2592 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2593 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2594 * libgomp.h, libgomp.map, NOTES: Update to match.
2596 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2597 Add initialized and thr members.
2598 (gomp_thread_start): Pause when initially spawned to wait for
2599 the whole team to be created.
2600 (gomp_team_start): Release team members at the end.
2602 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2603 (f_foo_1): Use GOMP_loop_end.
2604 (f_foo_2): Use GOMP_loop_end_nowait.
2606 * testsuite/loop-2.c: New file.
2607 * testsuite/Makefile (TESTS): Add it.
2609 2005-05-03 Richard Henderson <rth@redhat.com>
2611 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2612 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2613 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2616 * testsuite/Makefile: New file.
2617 * testsuite/loop-1.c: New file.
2619 2005-05-03 Richard Henderson <rth@redhat.com>
2621 Initial implementation and checkin.