1 2009-11-25 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.fortran/pr42162.f90: New test.
6 2009-11-13 Jakub Jelinek <jakub@redhat.com>
9 * testsuite/libgomp.c/pr42029.c: New test.
11 2009-10-26 Jakub Jelinek <jakub@redhat.com>
13 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
14 *s. Accept ld version without text in ()s.
15 * configure: Regenerated.
17 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
19 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
21 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
25 or a hyphen (happens with fortran language disabled).
26 * configure: Regenerate.
28 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
31 use sed script portable to Solaris /bin/sed for extracting ld
33 * configure: Regenerate.
35 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
37 * testsuite/libgomp.graphite/bounds.c: New test.
39 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41 * Makefile.am (libgomp_la_LINK): New.
42 * Makefile.in: Regenerate.
44 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46 * configure.ac (AC_PREREQ): Bump to 2.64.
48 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50 * Makefile.am (install-html, install-pdf): Remove.
51 * Makefile.in: Regenerate.
53 * Makefile.in: Regenerate.
54 * aclocal.m4: Regenerate.
55 * config.h.in: Regenerate.
56 * configure: Regenerate.
57 * testsuite/Makefile.in: Regenerate.
59 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
62 * Makefile.in: Regenerate.
64 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
66 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
67 * Makefile.in: Regenerate.
69 2009-08-19 Tobias Burnus <burnus@net-b.de>
72 omp_lib.h.in: Fix -std=f95 errors.
75 2009-08-14 David Edelsohn <edelsohn@gnu.org>
77 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
78 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
79 * testsuite/libgomp.graphite/graphite.exp: New.
81 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
83 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
86 2009-08-04 David Daney <ddaney@caviumnetworks.com>
88 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
89 needed memory barrier semantics.
90 * config/linux/mips/mutex.h: New file.
92 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
96 2009-07-16 Joseph Myers <joseph@codesourcery.com>
98 * configure: Regenerate.
100 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
105 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
106 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
107 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
109 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
111 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
112 options when choosing a multilib.
114 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
116 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
117 ld_library_path. Use add_path. Add just find_libgcc_s to
118 ld_library_path, not every libgcc multilib directory.
119 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
120 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
121 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
123 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
125 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
127 * Makefile.am (LTLDFLAGS): Define.
129 * Makefile.in: Regenerate.
131 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
134 * testsuite/libgomp.fortran/fortran.exp: Don't link with
135 libgfortranbegin, check existence of libgfortran.a instead of
138 2009-05-20 Jakub Jelinek <jakub@redhat.com>
141 * team.c (gomp_thread_start): Destroy thr->release semaphore.
142 (gomp_free_pool_helper): Likewise.
144 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
145 Jakub Jelinek <jakub@redhat.com>
148 * testsuite/libgomp.fortran/workshare2.f90: New test.
150 2009-04-09 Nick Clifton <nickc@redhat.com>
152 * iter.c: Change copyright header to refer to version 3 of the
153 GNU General Public License with version 3.1 of the GCC Runtime
154 Library Exception and to point readers at the COPYING3 and
155 COPYING3.RUNTIME files and the FSF's license web page.
157 * barrier.c: Likewise.
158 * config/bsd/proc.c: Likewise.
159 * config/linux/affinity.c: Likewise.
160 * config/linux/alpha/futex.h: Likewise.
161 * config/linux/bar.c: Likewise.
162 * config/linux/bar.h: Likewise.
163 * config/linux/ia64/futex.h: Likewise.
164 * config/linux/ia64/mutex.h: Likewise.
165 * config/linux/lock.c: Likewise.
166 * config/linux/mips/futex.h: Likewise.
167 * config/linux/mutex.c: Likewise.
168 * config/linux/mutex.h: Likewise.
169 * config/linux/powerpc/futex.h: Likewise.
170 * config/linux/proc.c: Likewise.
171 * config/linux/ptrlock.c: Likewise.
172 * config/linux/ptrlock.h: Likewise.
173 * config/linux/s390/futex.h: Likewise.
174 * config/linux/sem.c: Likewise.
175 * config/linux/sem.h: Likewise.
176 * config/linux/sparc/futex.h: Likewise.
177 * config/linux/wait.h: Likewise.
178 * config/linux/x86/futex.h: Likewise.
179 * config/mingw32/proc.c: Likewise.
180 * config/mingw32/time.c: Likewise.
181 * config/posix/affinity.c: Likewise.
182 * config/posix/bar.c: Likewise.
183 * config/posix/bar.h: Likewise.
184 * config/posix/lock.c: Likewise.
185 * config/posix/mutex.h: Likewise.
186 * config/posix/proc.c: Likewise.
187 * config/posix/ptrlock.h: Likewise.
188 * config/posix/sem.c: Likewise.
189 * config/posix/sem.h: Likewise.
190 * config/posix/time.c: Likewise.
191 * config/posix95/lock.c: Likewise.
192 * critical.c: Likewise.
195 * fortran.c: Likewise.
196 * iter_ull.c: Likewise.
197 * libgomp.h: Likewise.
198 * libgomp_f.h.in: Likewise.
199 * libgomp_g.h: Likewise.
201 * loop_ull.c: Likewise.
202 * omp.h.in: Likewise.
203 * omp_lib.f90.in: Likewise.
204 * omp_lib.h.in: Likewise.
205 * ordered.c: Likewise.
206 * parallel.c: Likewise.
207 * sections.c: Likewise.
208 * single.c: Likewise.
213 2009-04-09 Jakub Jelinek <jakub@redhat.com>
215 * testsuite/config/default.exp: Change copyright header to refer to
216 version 3 of the GNU General Public License and to point readers
217 at the COPYING3 file and the FSF's license web page.
219 2009-04-08 Jakub Jelinek <jakub@redhat.com>
222 * libgomp.c++/pr39573.C: New test.
224 2009-04-01 Jakub Jelinek <jakub@redhat.com>
227 * testsuite/libgomp.c/pr39591-1.c: New test.
228 * testsuite/libgomp.c/pr39591-2.c: New test.
229 * testsuite/libgomp.c/pr39591-3.c: New test.
231 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
233 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
234 * testsuite/libgomp.c/atomic-6.c: Ditto.
236 2009-03-23 Jakub Jelinek <jakub@redhat.com>
239 * testsuite/libgomp.c/loop-12.c: New test.
240 * testsuite/libgomp.c/loop-11.c: New test.
241 * testsuite/libgomp.c++/loop-11.C: New test.
242 * testsuite/libgomp.c++/loop-12.C: New test.
243 * testsuite/libgomp.c++/for-8.C: New test.
245 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
247 * configure: Regenerate.
249 2009-02-11 Jakub Jelinek <jakub@redhat.com>
252 * testsuite/libgomp.c/pr39154.c: New test.
254 2009-01-30 Ian Lance Taylor <iant@google.com>
256 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
257 libgomp_ld_is_gold. Get gold version number.
258 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
259 * configure: Rebuild.
261 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
263 * testsuite/lib/libgomp.exp: Add -B option for targets that
264 use libgfortran.a%s in their specs.
266 2009-01-07 Jakub Jelinek <jakub@redhat.com>
269 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
270 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
271 HAVE_AS_SYMVER_DIRECTIVE is not defined.
272 * configure: Regenerated.
273 * config.h.in: Likewise.
275 2008-12-28 Jakub Jelinek <jakub@redhat.com>
278 * testsuite/libgomp.c/pr38650.c: New test.
279 * testsuite/libgomp.c++/pr38650.C: New test.
281 2008-12-27 Jakub Jelinek <jakub@redhat.com>
283 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
285 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
287 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
289 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
291 * configure: Regenerate.
293 2008-12-08 Jakub Jelinek <jakub@redhat.com>
296 * testsuite/libgomp.c/pr36802-1.c: New test.
297 * testsuite/libgomp.c/pr36802-2.c: New test.
298 * testsuite/libgomp.c/pr36802-3.c: New test.
300 2008-12-01 Janis Johnson <janis187@us.ibm.com>
303 * config/linux/powerpc/mutex.h: New.
305 2008-12-01 Jakub Jelinek <jakub@redhat.com>
308 * testsuite/libgomp.c++/for-7.C: New test.
311 * testsuite/libgomp.c++/for-6.C: New test.
313 2008-11-26 Janis Johnson <janis187@us.ibm.com>
316 * testsuite/lib/libgomp.exp: Include new timeout library files.
317 (libgomp_target_compile): Set timeout value from new proc.
319 2008-11-13 Steve Ellcey <sje@cup.hp.com>
322 * config/linux/ia64/mutex.h: New.
324 2008-11-04 Tobias Burnus <burnus@net-b.de>
327 * libgomp.texi (Runtime library routines, environment variables):
328 Update for OpenMP version 3.0.
330 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
331 Steve Ellcey <sje@cup.hp.com>
333 * configure: Regenerate for new libtool.
334 * Makefile.in: Ditto.
335 * testsuite/Makefile.in: Ditto.
337 2008-09-19 Jakub Jelinek <jakub@redhat.com>
338 Andreas Tobler <a.tobler@schweiz.org>
340 * config/bsd/proc.c: New file.
341 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
342 * configure.ac: Check for header <sys/sysctl.h>
343 * configure: Regenerate.
344 * config.h.in: Likewise.
346 2008-09-05 Janis Johnson <janis187@us.ibm.com>
348 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
350 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
352 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
353 * Makefile.in: Regenerated.
354 * testsuite/Makefile.in: Regenerated.
356 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
358 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
359 depend on blddir if blddir exists.
360 (libgomp_target_compile): Likewise.
361 * testsuite/libgomp.c++/c++.exp: Likewise.
362 * testsuite/libgomp.fortran/fortran.exp: Likewise.
364 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
366 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
367 Do not list GPL as Invariant Section.
369 2008-07-28 Ilie Garbacea <ilie@mips.com>
370 Chao-ying Fu <fu@mips.com>
372 * configure.tgt: Enable futex for MIPS.
373 * config/linux/mips/futex.h: New file.
375 2008-07-16 Jakub Jelinek <jakub@redhat.com>
377 * team.c (gomp_team_end): Free team immediately if it has
380 2008-07-08 David Edelsohn <edelsohn@gnu.org>
382 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
383 * testsuite/libgomp.fortran/fortran.exp: Same.
384 * testsuite/libgomp.c/c.exp: Same.
385 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
386 directory to library path first.
388 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
390 * env.c (parse_stacksize): Add cast to avoid warning.
391 (parse_spincount): Likewise.
393 2008-06-27 Jakub Jelinek <jakub@redhat.com>
395 * testsuite/libgomp.c/loop-10.c: New test.
396 * libgomp.c/loop-3.c (main): Add lastprivate clause.
397 * libgomp.c++/loop-6.C (main): Likewise.
400 * testsuite/libgomp.c/debug-1.c: New test.
402 2008-06-19 Jakub Jelinek <jakub@redhat.com>
404 * testsuite/libgomp.c/nqueens-1.c: New test.
407 * testsuite/libgomp.c++/task-7.C: New function.
409 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
411 * configure: Regenerate.
413 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
415 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
416 mutex when HAVE_SYNC_BUILTINS isn't defined.
418 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
420 * libgomp.texi (omp_test_lock): Fix typo.
422 2008-06-12 Tobias Burnus <burnus@net-b.de>
424 * omp_lib.f90.in: Add "implicit none".
426 2008-06-12 Jakub Jelinek <jakub@redhat.com>
429 * testsuite/libgomp.c/reduction-5.c: New test.
431 2008-06-11 Jakub Jelinek <jakub@redhat.com>
433 * libgomp.h (struct gomp_task): Add in_tied_task field.
434 * task.c (gomp_init_task): Initialize it.
435 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
436 unconditionally. Don't call gomp_team_barrier_wake if
437 current task is implicit or if(0) from implicit and number of
438 running tasks is equal to nthreads - 1.
441 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
442 omp_get_team_size_8): Fix pastos.
445 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
446 * configure: Regenerated.
447 * config.h.in: Regenerated.
448 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
451 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
454 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
455 (GOMP_loop_ull_dynamic_start): Likewise.
456 (GOMP_loop_ull_guided_start): Likewise.
457 (GOMP_loop_ull_ordered_static_start): Likewise.
458 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
459 (GOMP_loop_ull_ordered_guided_start): Likewise.
461 2008-06-06 Jakub Jelinek <jakub@redhat.com>
462 Richard Henderson <rth@redhat.com>
463 Ulrich Drepper <drepper@redhat.com>
464 Jakob Blomer <jakob.blomer@ira.uka.de>
466 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
467 Substitute also OMP_*LOCK_25*.
468 * configure: Regenerated.
469 * config.h.in: Regenerated.
470 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
471 ptrlock.c and task.c.
472 * Makefile.in: Regenerated.
473 * testsuite/Makefile.in: Regenerated.
475 * loop_ull.c: New file.
476 * iter_ull.c: New file.
477 * libgomp.h: Include ptrlock.h.
478 (enum gomp_task_kind): New type.
479 (struct gomp_team): Add task_lock, task_queue, task_count,
480 task_running_count, single_count fields. Add
481 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
482 Remove work_share_lock, generation_mask,
483 oldest_live_gen, num_live_gen and init_work_shares fields, add
484 work work_share_list_alloc, work_share_list_free and work_share_chunk
485 fields. Change work_shares from pointer to pointers into an array.
486 Change ordered_release field into gomp_sem_t ** from flexible array
487 member. Add implicit_task and initial_work_shares fields.
488 Move close to the end of the struct.
489 (struct gomp_team_state): Add single_count, last_work_share,
490 active_level and level fields, remove work_share_generation.
491 (gomp_barrier_handle_tasks): New prototype.
492 (gomp_finish_task): New inline function.
493 (struct gomp_work_share): Move chunk_size, end, incr into
494 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
495 next_ll fields. Reshuffle fields. Add next_alloc,
496 next_ws, next_free and inline_ordered_team_ids fields, change
497 ordered_team_ids into pointer from flexible array member.
498 Add mode field. Put lock and next into a different cache line
499 from most of the write-once fields.
500 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
501 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
502 gomp_iter_ull_guided_next): New prototypes.
503 (gomp_new_icv): New prototype.
504 (struct gomp_thread): Add thread_pool and task fields.
505 (struct gomp_thread_pool): New type.
506 (gomp_new_team): New prototype.
507 (gomp_team_start): Change type of last argument.
508 (gomp_new_work_share): Removed.
509 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
510 (gomp_work_share_init_done): New static inline.
511 (gomp_throttled_spin_count_var, gomp_available_cpus,
512 gomp_managed_threads): New extern decls.
513 (gomp_init_task): New prototype.
514 (gomp_spin_count_var): New extern var decl.
515 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
516 or no alias support, or if not PIC.
517 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
518 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
519 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
520 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
521 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
522 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
523 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
524 gomp_test_nest_lock_25): New prototypes.
525 (omp_lock_symver, strong_alias): Define.
526 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
528 (gomp_end_task): New.
529 (struct gomp_task_icv, gomp_global_icv): New.
530 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
531 (struct gomp_task): New.
532 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
533 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
535 (gomp_schedule_type): Reorder enum to match
537 * team.c (struct gomp_thread_start_data): Add thread_pool and task
539 (gomp_thread_start): Add gomp_team_barrier_wait call.
540 For non-nested case remove clearing of docked thread thr fields.
541 Use pool fields instead of global gomp_* variables. Use
542 gomp_barrier_wait_last when needed. Initialize ts.active_level.
543 Create tasks for each member thread.
544 (free_team): Only destroy team barrier, task_lock here and free it.
545 (gomp_free_thread): Free last_team if non-NULL.
546 (gomp_team_end): Call gomp_team_barrier_wait instead of
547 gomp_barrier_wait. For nested case call one extra
548 gomp_barrier_wait. Move here some destruction from free_team.
549 Call free_team on pool->last_team if any, rather than freeing
550 current team. Destroy work_share_list_free_lock ifndef
552 (gomp_new_icv): New function.
553 (gomp_threads, gomp_threads_size, gomp_threads_used,
554 gomp_threads_dock): Removed.
555 (gomp_thread_destructor): New variable.
556 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
558 (gomp_team_start): Create new pool if current thread doesn't have
559 one. Use pool fields instead of global gomp_* variables.
560 Initialize thread_pool field for new threads. Clear single_count.
561 Change last argument from ws to team, don't create
562 new team, set ts.work_share to &team->work_shares[0] and clear
563 ts.last_work_share. Don't clear ts.work_share_generation.
564 If number of threads changed, adjust atomically gomp_managed_threads.
565 Use gomp_init_task instead of gomp_new_task,
566 set thr->task to the corresponding implicit_task array entry.
567 Create tasks for each member thread. Initialize ts.level.
568 (initialize_team): Call pthread_key_create on
569 gomp_thread_destructor.
570 (team_destructor): New function.
572 (gomp_new_team): New function.
573 (free_team): Free gomp_work_share blocks chained through next_alloc,
574 instead of freeing work_shares and destroying work_share_lock.
575 (gomp_team_end): Call gomp_fini_work_share. If number of threads
576 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
577 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
578 of gomp_barrier_wait.
579 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
580 instead of gomp_barrier_wait. Call gomp_work_share_init_done
581 if gomp_work_share_start returned true. Don't unlock ws->lock.
582 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
583 of gomp_barrier_wait.
584 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
585 gomp_work_share_init_done if gomp_work_share_start returned true.
586 Don't unlock ws->lock.
587 * work.c: Include stddef.h.
588 (free_work_share): Use work_share_list_free_lock instead
589 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
590 Call gomp_fini_work_share and then either free ws if orphaned, or
591 put it into work_share_list_free list of the current team.
592 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
594 (gomp_work_share_start, gomp_work_share_end,
595 gomp_work_share_end_nowait): Rewritten.
596 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
597 (openmp_version): Set to 200805.
598 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
599 omp_sched_guided, omp_sched_auto): New parameters.
600 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
601 omp_set_max_active_levels, omp_get_max_active_levels,
602 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
603 omp_get_active_level): New interfaces.
604 * omp_lib.h.in (openmp_version): Set to 200805.
605 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
606 omp_sched_guided, omp_sched_auto): New parameters.
607 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
608 omp_set_max_active_levels, omp_get_max_active_levels,
609 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
610 omp_get_active_level): New externals.
611 * loop.c: Include limits.h.
612 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
614 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
615 Likewise. Use gomp_icv.
616 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
618 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
619 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
620 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
621 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
622 don't unlock ws->lock, otherwise lock it.
623 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
624 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
625 (gomp_parallel_loop_start): Call gomp_new_team instead of
626 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
627 Adjust gomp_team_start caller. Pass 0 as second argument to
628 gomp_resolve_num_threads.
629 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
630 If adding ws->chunk_size nthreads + 1 times after end won't
631 overflow, set ws->mode to 1.
632 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
633 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
634 GOMP_loop_ull_ordered_static_start,
635 GOMP_loop_ull_ordered_dynamic_start,
636 GOMP_loop_ull_ordered_guided_start,
637 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
638 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
639 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
640 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
641 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
643 * libgomp.map: Export lock routines also @@OMP_2.0.
644 (GOMP_loop_ordered_dynamic_first,
645 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
646 GOMP_loop_ordered_static_first): Remove.
647 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
648 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
649 GOMP_loop_ull_ordered_dynamic_next,
650 GOMP_loop_ull_ordered_dynamic_start,
651 GOMP_loop_ull_ordered_guided_next,
652 GOMP_loop_ull_ordered_guided_start,
653 GOMP_loop_ull_ordered_runtime_next,
654 GOMP_loop_ull_ordered_runtime_start,
655 GOMP_loop_ull_ordered_static_next,
656 GOMP_loop_ull_ordered_static_start,
657 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
658 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
659 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
660 (omp_set_schedule, omp_get_schedule,
661 omp_get_thread_limit, omp_set_max_active_levels,
662 omp_get_max_active_levels, omp_get_level,
663 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
664 omp_set_schedule_, omp_set_schedule_8_,
665 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
666 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
667 omp_get_max_active_levels_, omp_get_level_,
668 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
669 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
670 New exports @@OMP_3.0.
671 * omp.h.in (omp_sched_t): New type.
672 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
673 omp_set_max_active_levels, omp_get_max_active_levels,
674 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
675 omp_get_active_level): New prototypes.
676 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
677 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
678 gomp_thread_limit_var, gomp_remaining_threads_count,
679 gomp_remaining_threads_lock): New variables.
680 (parse_spincount): New function.
681 (initialize_env): Call gomp_init_num_threads unconditionally.
682 Initialize gomp_available_cpus. Call parse_spincount,
683 initialize gomp_{,throttled_}spin_count_var
684 depending on presence and value of OMP_WAIT_POLICY and
685 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
686 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
687 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
688 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
689 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
690 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
691 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
692 (gomp_global_icv): New.
693 (parse_schedule): Use it. Parse "auto".
694 (omp_set_num_threads): Use gomp_icv.
695 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
697 (omp_get_max_threads): Move from parallel.c.
698 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
699 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
701 (parse_stacksize, parse_wait_policy): New functions.
702 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
703 both wrappers for compatibility and new locks.
704 (omp_set_schedule, omp_get_schedule,
705 omp_get_thread_limit, omp_set_max_active_levels,
706 omp_get_max_active_levels, omp_get_level,
707 omp_get_ancestor_thread_num, omp_get_team_size,
708 omp_get_active_level): New ialias_redirect.
709 (omp_set_schedule_, omp_set_schedule_8_,
710 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
711 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
712 omp_get_max_active_levels_, omp_get_level_,
713 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
714 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
716 * parallel.c: Include limits.h.
717 (gomp_resolve_num_threads): Add count argument. Rewritten.
718 (GOMP_parallel_start): Call gomp_new_team and pass that as last
719 argument to gomp_team_start. Pass 0 as second argument to
720 gomp_resolve_num_threads.
721 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
722 if gomp_thread_limit_var != ULONG_MAX.
723 (omp_in_parallel): Implement using ts.active_level.
724 (omp_get_max_threads): Move to env.c.
725 (omp_get_level, omp_get_ancestor_thread_num,
726 omp_get_team_size, omp_get_active_level): New functions,
728 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
729 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
730 gomp_iter_dynamic_next instead of the _locked variant and don't take
731 lock around it, otherwise acquire it before calling
732 gomp_iter_dynamic_next_locked.
733 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
734 gomp_iter_dynamic_next instead of the _locked variant and don't take
736 (GOMP_parallel_sections_start): Call gomp_new_team instead of
737 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
738 Adjust gomp_team_start caller. Pass count as second argument to
739 gomp_resolve_num_threads, don't adjust num_threads after the call.
741 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
742 ws->chunk_size by incr.
743 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
745 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
747 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
748 (omp_check_defines): Check even the compat defines.
749 * config/linux/ptrlock.c: New file.
750 * config/linux/ptrlock.h: New file.
751 * config/linux/wait.h: New file.
752 * config/posix/ptrlock.c: New file.
753 * config/posix/ptrlock.h: New file.
754 * config/linux/bar.h (gomp_team_barrier_wait,
755 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
756 (gomp_team_barrier_set_task_pending,
757 gomp_team_barrier_clear_task_pending,
758 gomp_team_barrier_set_waiting_for_tasks,
759 gomp_team_barrier_waiting_for_tasks,
760 gomp_team_barrier_done): New inlines.
761 (gomp_barrier_t): Rewritten.
762 (gomp_barrier_state_t): New typedef.
763 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
764 gomp_barrier_wait_start): Rewritten.
765 (gomp_barrier_wait_end): Change second argument to
766 gomp_barrier_state_t.
767 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
769 * config/linux/bar.c: Include wait.h instead of libgomp.h and
771 (gomp_barrier_wait_end): Rewritten.
772 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
773 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
774 * config/posix/bar.h (gomp_barrier_t): Add generation field.
775 (gomp_barrier_state_t): New typedef.
776 (gomp_team_barrier_wait,
777 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
778 (gomp_barrier_wait_start): Or all but low 2 bits from generation
779 into the return value. Return gomp_barrier_state_t.
780 (gomp_team_barrier_set_task_pending,
781 gomp_team_barrier_clear_task_pending,
782 gomp_team_barrier_set_waiting_for_tasks,
783 gomp_team_barrier_waiting_for_tasks,
784 gomp_team_barrier_done): New inlines.
785 (gomp_barrier_wait_end): Change second argument to
786 gomp_barrier_state_t.
787 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
789 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
790 (gomp_barrier_wait_end): Change second argument to
791 gomp_barrier_state_t.
792 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
793 gomp_team_barrier_wake): New functions.
794 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
796 (gomp_futex_wake, gomp_futex_wait): New variables.
797 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
798 * config/linux/lock.c: Rewrite to make locks task owned,
799 for backwards compatibility provide the old entrypoints
800 if symbol versioning. Include wait.h instead of libgomp.h and
802 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
803 * config/posix95/lock.c: Rewrite to make locks task owned,
804 for backwards compatibility provide the old entrypoints
805 if symbol versioning.
806 * config/posix/lock.c: Rewrite to make locks task owned,
807 for backwards compatibility provide the old entrypoints
808 if symbol versioning.
809 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
810 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
811 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
812 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
813 (sys_futex0): Return error code.
814 (futex_wake, futex_wait): If ENOSYS was returned, clear
815 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
816 (cpu_relax, atomic_write_barrier): New static inlines.
817 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
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/x86/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/s390/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/ia64/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/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
837 (sys_futex0): Return error code.
838 (futex_wake, futex_wait): If ENOSYS was returned, clear
839 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
840 (cpu_relax, atomic_write_barrier): New static inlines.
841 * config/linux/sem.c: Include wait.h instead of libgomp.h and
843 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
844 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
845 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
847 (omp_nest_lock_t): Change owner into void *, add lock field.
848 * config/posix95/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. Change owner to void *.
853 * config/posix/omp-lock.h: Include semaphore.h.
854 (omp_lock_25_t, omp_nest_lock_25_t): New types.
855 (omp_lock_t): Use sem_t instead of mutex if semaphores
857 (omp_nest_lock_t): Likewise. Add owner field.
859 2008-06-06 Jakub Jelinek <jakub@redhat.com>
861 * testsuite/libgomp.c/collapse-1.c: New test.
862 * testsuite/libgomp.c/collapse-2.c: New test.
863 * testsuite/libgomp.c/collapse-3.c: New test.
864 * testsuite/libgomp.c/icv-1.c: New test.
865 * testsuite/libgomp.c/icv-2.c: New test.
866 * testsuite/libgomp.c/lib-2.c: New test.
867 * testsuite/libgomp.c/lock-1.c: New test.
868 * testsuite/libgomp.c/lock-2.c: New test.
869 * testsuite/libgomp.c/lock-3.c: New test.
870 * testsuite/libgomp.c/loop-4.c: New test.
871 * testsuite/libgomp.c/loop-5.c: New test.
872 * testsuite/libgomp.c/loop-6.c: New test.
873 * testsuite/libgomp.c/loop-7.c: New test.
874 * testsuite/libgomp.c/loop-8.c: New test.
875 * testsuite/libgomp.c/loop-9.c: New test.
876 * testsuite/libgomp.c/nested-3.c: New test.
877 * testsuite/libgomp.c/nestedfn-6.c: New test.
878 * testsuite/libgomp.c/sort-1.c: New test.
879 * testsuite/libgomp.c/task-1.c: New test.
880 * testsuite/libgomp.c/task-2.c: New test.
881 * testsuite/libgomp.c/task-3.c: New test.
882 * testsuite/libgomp.c/task-4.c: New test.
883 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
884 to C++ testsuite default compiler options.
885 * testsuite/libgomp.c++/collapse-1.C: New test.
886 * testsuite/libgomp.c++/collapse-2.C: New test.
887 * testsuite/libgomp.c++/ctor-10.C: New test.
888 * testsuite/libgomp.c++/for-1.C: New test.
889 * testsuite/libgomp.c++/for-2.C: New test.
890 * testsuite/libgomp.c++/for-3.C: New test.
891 * testsuite/libgomp.c++/for-4.C: New test.
892 * testsuite/libgomp.c++/for-5.C: New test.
893 * testsuite/libgomp.c++/loop-8.C: New test.
894 * testsuite/libgomp.c++/loop-9.C: New test.
895 * testsuite/libgomp.c++/loop-10.C: New test.
896 * testsuite/libgomp.c++/task-1.C: New test.
897 * testsuite/libgomp.c++/task-2.C: New test.
898 * testsuite/libgomp.c++/task-3.C: New test.
899 * testsuite/libgomp.c++/task-4.C: New test.
900 * testsuite/libgomp.c++/task-5.C: New test.
901 * testsuite/libgomp.c++/task-6.C: New test.
902 * testsuite/libgomp.fortran/allocatable1.f90: New test.
903 * testsuite/libgomp.fortran/allocatable2.f90: New test.
904 * testsuite/libgomp.fortran/allocatable3.f90: New test.
905 * testsuite/libgomp.fortran/allocatable4.f90: New test.
906 * testsuite/libgomp.fortran/collapse1.f90: New test.
907 * testsuite/libgomp.fortran/collapse2.f90: New test.
908 * testsuite/libgomp.fortran/collapse3.f90: New test.
909 * testsuite/libgomp.fortran/collapse4.f90: New test.
910 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
911 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
912 * testsuite/libgomp.fortran/lib4.f90: New test.
913 * testsuite/libgomp.fortran/lock-1.f90: New test.
914 * testsuite/libgomp.fortran/lock-2.f90: New test.
915 * testsuite/libgomp.fortran/nested1.f90: New test.
916 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
917 * testsuite/libgomp.fortran/strassen.f90: New test.
918 * testsuite/libgomp.fortran/tabs1.f90: New test.
919 * testsuite/libgomp.fortran/tabs2.f: New test.
920 * testsuite/libgomp.fortran/task1.f90: New test.
921 * testsuite/libgomp.fortran/task2.f90: New test.
922 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
923 * testsuite/libgomp.fortran/vla5.f90: Likewise.
924 * testsuite/libgomp.c/pr26943-2.c: Likewise.
925 * testsuite/libgomp.c/pr26943-3.c: Likewise.
926 * testsuite/libgomp.c/pr26943-4.c: Likewise.
928 2008-05-23 Jakub Jelinek <jakub@redhat.com>
931 * testsuite/libgomp.c++/ctor-11.C: New test.
932 * testsuite/libgomp.c++/ctor-12.C: New test.
934 2008-05-15 Janis Johnson <janis187@us.ibm.com>
936 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
938 2008-05-07 Jakub Jelinek <jakub@redhat.com>
941 * testsuite/libgomp.c/atomic-5.c: New test.
942 * testsuite/libgomp.c/atomic-6.c: New test.
943 * testsuite/libgomp.c/autopar-1.c: New test.
945 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
947 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
948 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
949 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
950 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
951 * configure: Regenerate.
952 * Makefile.in, testsuite/Makefile.in: Likewise.
954 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
957 * aclocal.m4: Regenerate.
958 * configure: Regenerate.
960 2008-03-18 Jakub Jelinek <jakub@redhat.com>
963 * testsuite/libgomp.c/atomic-4.c: New test.
966 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
967 (gomp_iter_guided_next): Likewise.
968 * testsuite/libgomp.c/pr35625.c: New test.
970 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
972 * aclocal.m4: Regenerate.
973 * configure: Likewise.
974 * Makefile.in: Likewise.
975 * testsuite/Makefile.in: Likewise.
977 2008-03-13 Jakub Jelinek <jakub@redhat.com>
980 * testsuite/libgomp.c++/pr35185.C: New test.
982 2008-03-12 Jakub Jelinek <jakub@redhat.com>
985 * testsuite/libgomp.c/pr35549.c: New test.
987 2008-03-06 Jakub Jelinek <jakub@redhat.com>
989 * testsuite/libgomp.c/atomic-3.c: New test.
991 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
994 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
997 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1000 * configure.ac: Add ACX_HEADER_STRING.
1001 * env.c: Include strings.h.
1002 * aclocal.m4: Regenerate.
1003 * config.h.in: Regenerate.
1004 * configure: Regenerate.
1005 * Makefile.in: Regenerate.
1006 * testsuite/Makefile.in: Regenerate.
1008 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1011 * testsuite/libgomp.c/pr35196.c: New test.
1014 * testsuite/libgomp.fortran/pr35130.f90: New test.
1015 * testsuite/libgomp.c/pr35130.c: New test.
1017 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1020 * testsuite/libgomp.c/pr33880.c: New test.
1021 * testsuite/libgomp.fortran/pr33880.f90: New test.
1023 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1025 * configure: Regenerate.
1027 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1029 * configure.ac: Move futex checking into ../config/futex.m4.
1030 * configure: Rebuilt.
1031 * aclocal.m4: Rebuilt.
1032 * Makefile.in: Rebuilt.
1034 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1035 2007-10-15 ../config/tls.m4 change.
1037 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1040 * testsuite/libgomp.c/pr34513.c: New test.
1041 * testsuite/libgomp.c++/pr34513.C: New test.
1043 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1046 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1048 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1050 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1052 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1054 * testsuite/libgomp.c/private-1.c: New test.
1056 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1057 Paolo Bonzini <bonzini@gnu.org>
1059 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1060 instead of 'VPATH ='.
1061 * Makefile.in: Regenerate.
1063 2007-11-23 Matthias Klose <doko@ubuntu.com>
1065 * configure.ac: Adjust makeinfo version check.
1066 * configure: Regenerate.
1068 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1071 * testsuite/libgomp.fortran/pr34020.f90: New test.
1073 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1076 * testsuite/libgomp.c++/atomic-1.C: New test.
1078 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1081 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1082 Make x and y integers rather than (implicit) reals. Add private (j)
1083 clause to the last omp parallel.
1085 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1087 * configure: Regenerate following changes to ../config/tls.m4.
1089 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1091 * testsuite/libgomp.fortran/stack.f90: New test.
1093 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1095 * config/mingw32/proc.c: New file.
1097 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1099 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1100 (main): Use __get_cpuid to get i386 target fetaures.
1101 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1102 (main): Use __get_cpuid to get x86_64 target fetaures.
1104 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1107 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1108 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1110 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1113 * testsuite/libgomp.fortran/pr32550.f90: New test.
1114 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1116 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1118 * aclocal.m4: Regenerated.
1120 2007-07-05 Tobias Burnus <burnus@net-b.de>
1123 * testsuite/libgomp.fortran/pr32359.f90: New.
1125 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1128 * sections.c (GOMP_parallel_sections_start): Only decrease
1129 number of threads to COUNT if dyn_var is true.
1130 * testsuite/libgomp.c/pr32468.c: New test.
1132 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1135 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1137 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1140 * testsuite/libgomp.c/pr32362-1.c: New test.
1141 * testsuite/libgomp.c/pr32362-2.c: New test.
1142 * testsuite/libgomp.c/pr32362-3.c: New test.
1144 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1146 * team.c (gomp_team_start): Fix setting up thread_attr
1149 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1151 * configure: Regenerate.
1153 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1155 * Makefile.in: Regenerate.
1156 * configure: Regenerate.
1157 * aclocal.m4: Regenerate.
1158 * testsuite/Makefile.in: Regenerate.
1160 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1162 * config/linux/proc.c: New file.
1165 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1167 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1169 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1171 2007-04-16 Matthias Klose <doko@debian.org>
1173 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1174 flags if not building with -m64.
1175 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1176 flag for i?86-*-* targets, if current target matches -m64.
1178 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1180 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1181 * Makefile.in: Regenerate.
1183 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1186 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1188 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1190 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1192 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1194 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1195 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1196 (parse_affinity): New function.
1197 (initialize_env): Call it and gomp_init_affinity.
1198 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1199 create new pthread_attr_t and call gomp_init_thread_affinity
1200 on it for each thread before passing the attribute to pthread_create.
1201 * config/linux/affinity.c: New file.
1202 * config/posix/affinity.c: New file.
1203 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1204 * configure: Rebuilt.
1205 * config.h.in: Rebuilt.
1206 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1207 * Makefile.in: Rebuilt.
1209 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1211 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1213 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1214 and use it if found.
1216 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1218 * testsuite/config/default.exp: New file.
1219 * testsuite/lib/libgomp.exp: New file.
1220 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1221 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1222 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1223 (libgomp_load): Remove.
1224 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1225 always_ld_library_path, not ld_library_path. Set additional_flags
1226 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1227 (target_compile): Do not call libgomp_init. Append lang_library_path
1228 and lang_link_flags to options.
1229 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1230 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1232 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1233 always_ld_library_path. Set LD_LIBRARY_PATH here.
1234 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1235 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1236 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1238 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1239 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1240 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1241 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1242 * testsuite/libgomp.c/atomic-10.c: Ditto.
1244 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1246 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1247 dg-final cleanup-modules line.
1248 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1249 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1250 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1251 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1252 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1253 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1254 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1256 2007-03-18 Andreas Schwab <schwab@suse.de>
1258 * acinclude.m4: Adjust regular expression for ld version
1260 * configure: Regenerate.
1262 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1264 * Makefile.am: Add install-pdf target as copied from
1265 automake v1.10 rules.
1266 * Makefile.in: Regenerate
1268 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1271 * configure: Regenerate.
1274 * testsuite/libgomp.c++/pr30703.C: New test.
1276 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1279 2006-07-05 Eric Christopher <echristo@apple.com>
1280 * configure.ac: Depend addition of -pthread on host OS.
1281 * configure: Regenerate.
1283 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1285 * libgomp.texi: Fix spacing after abbreviations.
1287 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1290 * configure.ac: Add check for makeinfo
1291 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1292 if an appropiate version of makeinfo is found.
1293 * aclocal.m4: Regenerated.
1294 * configure: Regenerated.
1295 * Makefile.in: Regenerated.
1296 * testsuite/Makefile.in: Regenerated.
1298 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1301 * libgomp.texi: More about implementation-dependent settings.
1303 2007-01-26 Tobias Burnus <burnus@net-b.de>
1305 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1307 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1310 * testsuite/libgomp.c/pr30494.c: New test.
1312 2007-01-15 Tom Tromey <tromey@redhat.com>
1314 * configure: Rebuilt.
1315 * configure.ac: Fixed comment.
1317 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1319 * libgomp.texi: Document implementation specific default values of
1320 environment variables.
1322 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1325 * libgomp.texi: New file.
1326 * configure.ac: Add --enable-generated-files-in-srcdir option.
1327 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1329 * Makefile.in: Regenerated.
1330 * config.h.in: Regenerated.
1331 * testsuite/Makefile.in: Regenerated.
1334 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1337 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1339 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1341 * configure: Regenerate.
1343 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1346 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1347 start if there shouldn't be any loop iterations.
1348 (gomp_loop_ordered_static_start): Remove start == end test.
1349 * testsuite/libgomp.c/pr29947-1.c: New test.
1350 * testsuite/libgomp.c/pr29947-2.c: New test.
1352 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1354 * configure.tgt: Force initial-exec TLS model on Linux only.
1356 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1358 * configure: Regenerated.
1360 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1362 * env.c (parse_schedule): Reject out of range values.
1363 (parse_unsigned_long): Reject out of range, negative or zero values.
1365 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1368 * testsuite/libgomp.fortran/pr29629.f90: New test.
1370 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1373 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1374 * config/posix95: New directory.
1375 * config/posix95/omp-lock.h: New file.
1376 * config/posix95/lock.c: Likewise.
1378 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1380 * aclocal.m4: Regenerate.
1381 * configure: Regenerate.
1383 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1385 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1388 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1390 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1392 * configure: Regenerate.
1393 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1395 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1399 * testsuite/libgomp.c/nestedfn-4.c: New test.
1400 * testsuite/libgomp.c/nestedfn-5.c: New test.
1401 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1404 * testsuite/libgomp.fortran/condinc1.f: New test.
1405 * testsuite/libgomp.fortran/condinc2.f: New test.
1406 * testsuite/libgomp.fortran/condinc3.f90: New test.
1407 * testsuite/libgomp.fortran/condinc4.f90: New test.
1408 * testsuite/libgomp.fortran/condinc1.inc: New file.
1410 2006-09-18 Tom Tromey <tromey@redhat.com>
1412 * configure: Rebuilt.
1414 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1417 PR preprocessor/14634
1418 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1420 * configure: Regenerate.
1422 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1424 * testsuite/libgomp.fortran/reduction3.f90: Change
1425 -2147483648 to -huge(i)-1 to avoid overflow.
1426 * testsuite/libgomp.fortran/reduction4.f90: Change
1427 Z'ffffffff' to not(0) to avoid overflow.
1429 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1432 * Makefile.am (libsubincludedir): New.
1433 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1434 * Makefile.in: Regenerate.
1436 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1439 * env.c: Include ctype.h.
1440 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1441 leading and/or trailing whitespace and compare strings case
1444 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1447 * testsuite/libgomp.fortran/pr28390.f: New test.
1449 2006-07-05 Eric Christopher <echristo@apple.com>
1451 * configure.ac: Depend addition of -pthread on host OS.
1452 * configure: Regenerate.
1454 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1456 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1457 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1460 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1464 * configure.ac: If neither --enable-linux-futex nor
1465 --disable-linux-futex is passed, determine the default by checking
1466 for compiling and/or running against NPTL. With --enable-linux-futex,
1467 check if SYS_gettid and SYS_futex are defined.
1468 * configure: Rebuilt.
1470 2006-06-14 Richard Henderson <rth@redhat.com>
1473 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1474 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1476 2006-06-09 Richard Henderson <rth@redhat.com>
1478 * env.c (gomp_nthreads_var): Change to unsigned long.
1479 (gomp_run_sched_chunk): Likewise.
1480 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1481 (initialize_env): Initialize gomp_thread_attr.
1482 * libgomp.h (gomp_nthreads_var): Update decl.
1483 (gomp_run_sched_chunk): Likewise.
1484 (gomp_thread_attr): Declare.
1485 * team.c (gomp_thread_attr): Export.
1486 (initialize_team): Don't initialize it.
1488 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1491 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1492 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1494 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1496 * config/mingw32/time.c: New file.
1497 * configure.tgt: Use it.
1499 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1501 * Makefile.am: Add install-html target. Add install-html to .PHONY
1502 * Makefile.in: Regenerate.
1504 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1507 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1508 * testsuite/libgomp.c/critical-1.c: Likewise.
1509 * testsuite/libgomp.c/loop-1.c: Likewise.
1510 * testsuite/libgomp.c/loop-2.c: Likewise.
1511 * testsuite/libgomp.c/single-1.c: Likewise.
1512 * testsuite/libgomp.c/ordered-1.c: Likewise.
1513 * testsuite/libgomp.c/ordered-2.c: Likewise.
1515 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1518 * libgomp.fortran/pr27416-1.f90: New test.
1520 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1523 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1524 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1526 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1529 * testsuite/libgomp.c/pr26943-1.c: New test.
1530 * testsuite/libgomp.c/pr26943-2.c: New test.
1531 * testsuite/libgomp.c/pr26943-3.c: New test.
1532 * testsuite/libgomp.c/pr26943-4.c: New test.
1533 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1534 * testsuite/libgomp.c++/pr26943.C: New test.
1536 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1539 * testsuite/libgomp.c++/pr27337.C: New test.
1541 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1544 * testsuite/libgomp.c/pr26171.c: New test.
1546 2006-04-25 Richard Henderson <rth@redhat.com>
1549 * configure.ac: Use GCC_CHECK_TLS.
1550 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1551 * Makefile.in, aclocal.m4, configure: Regenerate.
1553 2006-04-10 Matthias Klose <doko@debian.org>
1555 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1556 directory names containing underscores.
1558 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1561 * testsuite/libgomp.c++/pr26691.C: New test.
1563 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1565 * testsuite/libgomp.fortran/retval2.f90: New test.
1567 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1569 * testsuite/libgomp.c++: New directory.
1571 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1573 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1574 * config/posix/sem.c: Implement the above.
1576 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1578 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1579 define HAVE_BROKEN_POSIX_SEMAPHORES.
1580 * configure: Rebuilt.
1581 * config.h.in: Rebuilt.
1583 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1586 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1587 for the other pthread check.
1588 * configure: Regenerate.
1589 * config.h.in: Regenerate.
1591 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1595 * Makefile.am (fincludedir): New variable.
1596 (nodist_include_HEADERS): Remove Fortran files.
1597 (nodist_finclude_HEADERS): New variable.
1598 * Makefile.in: Regenerated.
1600 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1602 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1603 Remove tests for returning assumed character length arrays.
1605 2006-02-12 Roger Sayle <roger@eyesopen.com>
1606 John David Anglin <dave@hiauly1.hia.nrc.ca>
1609 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1611 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1613 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1615 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1617 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1618 part of LD_LIBRARY_PATH manually.
1620 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1623 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1626 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1629 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1630 * configure.ac (PERL): Don't set.
1631 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1632 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1633 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1634 * omp.h.in: Wrap the new configure substitutions with @ characters.
1635 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1636 * aclocal.m4, configure, Makefile.in: Regenerate.
1637 * mkomp_h.pl: Delete.
1639 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1642 * configure.ac: Use GCC_HEADER_STDINT.
1643 * libgomp.h: Include gstdint.h.
1644 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1645 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1647 2006-01-24 Richard Henderson <rth@redhat.com>
1650 * configure.ac: Add AM_MAINTAINER_MODE.
1651 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1653 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1655 * Makefile.in: Regenerate.
1656 * testsuite/Makefile.in: Regenerate.
1657 * aclocal.m4: Regenerate.
1659 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1661 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1663 * configure.ac: Add check for loadavg.h.
1664 (link_gomp): Adjust comment.
1665 * configure: Regenerate.
1666 * config.h.in: Regenerate.
1668 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1671 * configure.ac: Remove check for alloca.h.
1672 * configure: Regenerate.
1673 * config.h.in: Regenerate.
1674 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1675 * team.c: Remove use of alloca.h.
1676 Call gomp_alloca instead of alloca.
1678 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1681 * team.c: Add include of alloca.h.
1682 * configure.ac: Add check for alloca.h.
1683 * configure: Regenerate.
1684 * config.h.in: Regenerate.
1686 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1689 * testsuite/libgomp.fortran/pr25219.f90: New test.
1691 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1693 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1694 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1695 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1696 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1697 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1698 testsuite/libgomp.fortran/threadprivate1.f90,
1699 testsuite/libgomp.fortran/threadprivate2.f90,
1700 testsuite/libgomp.fortran/threadprivate3.f90,
1701 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1702 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1703 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1704 effective-target to TLS runtime.
1706 * testsuite/libgomp.fortran/pr25162.f: Require
1707 effective-target TLS runtime.
1709 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1711 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1712 * testsuite/libgomp.c/nestedfn-3.c: New test.
1714 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1717 * testsuite/libgomp.fortran/pr25162.f: New test.
1719 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1721 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1722 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1724 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1726 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1727 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1728 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1729 single.c, team.c, work.c, config/linux/alpha/futex.h,
1730 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1731 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1732 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1733 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1734 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1735 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1736 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1739 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1741 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1742 to nodist_noinst_HEADERS.
1743 * Makefile.in: Rebuilt.
1745 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1746 add integer count field.
1747 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1748 omp_nest_lock_t type change.
1749 (omp_init_nest_lock): Likewise. Initialize count to 0.
1750 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1752 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1754 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1755 Increment count if successful and return the new nesting level.
1756 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1757 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1758 * testsuite/libgomp.c/lib-1.c: New test.
1759 * testsuite/libgomp.fortran/lib1.f90: New test.
1760 * testsuite/libgomp.fortran/lib2.f: New test.
1761 * testsuite/libgomp.fortran/lib3.f: New test.
1763 2005-11-17 Richard Henderson <rth@redhat.com>
1766 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1767 * configure.ac (link_gomp): New. Substitute it.
1768 (AC_CONFIG_FILES): Add libgomp.spec.
1769 * libgomp.spec.in: New file.
1770 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1771 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1773 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1775 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1776 reduction(-:var) behaving the same as reduction(+:var).
1777 * testsuite/libgomp.c/reduction-4.c: New test.
1779 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1781 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1782 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1783 testsuite/libgomp.c/copyin-3.c,
1784 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1785 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1786 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1787 testsuite/libgomp.c++/pr24455.C,
1788 testsuite/libgomp.fortran/threadprivate1.f90,
1789 testsuite/libgomp.fortran/threadprivate2.f90,
1790 testsuite/libgomp.fortran/threadprivate3.f90,
1791 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1792 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1793 testsuite/libgomp.fortran/omp_parse3.f90: Require
1794 effective-target TLS.
1796 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1800 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1803 * team.c (initialize_team): Pass NULL rather than free as
1804 pthread_key_create destructor. Initialize thread specific data
1805 pointer in initial thread to a static local variable rather than
1808 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1810 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1811 its location to ld_library_path.
1813 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1815 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1817 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1819 * testsuite/libgomp.c: Rename from libgomp.dg.
1821 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1823 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1824 threadprivate variable 'i'.
1826 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1828 * config/linux/s390/futex.h: New file.
1829 * configure.tgt: Use it.
1831 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1832 before the parallel.
1834 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1837 * testsuite/libgomp.c++/master-1.C: New test.
1839 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1841 * testsuite/libgomp.dg/copyin-3.c: New test.
1843 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1845 * testsuite/libgomp.fortran/retval1.f90: New test.
1846 * testsuite/libgomp.fortran/vla7.f90: New test.
1848 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1850 * testsuite/libgomp.fortran/vla2.f90: New test.
1851 * testsuite/libgomp.fortran/vla3.f90: New test.
1852 * testsuite/libgomp.fortran/vla4.f90: New test.
1853 * testsuite/libgomp.fortran/vla5.f90: New test.
1854 * testsuite/libgomp.fortran/vla6.f90: New test.
1856 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1858 * config/linux/sparc/futex.h: New file.
1859 * configure.tgt: Use it.
1860 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1862 * critical.c: Include stdlib.h.
1863 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1864 ignoring return value.
1865 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1866 LIBGOMP_CHECK_SYNC_BUILTINS check.
1867 * configure: Rebuilt.
1869 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1871 * testsuite/libgomp.fortran/vla1.f90: New test.
1873 2005-10-31 Richard Henderson <rth@redhat.com>
1875 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1876 setting 's' in different threads.
1878 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1880 * libgomp.h (attribute_hidden, ialias): Define.
1881 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1882 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1883 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1884 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1885 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1886 omp_test_lock, omp_test_nest_lock): Likewise.
1887 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1888 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1889 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1890 omp_test_lock, omp_test_nest_lock): Likewise.
1891 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1892 omp_get_dynamic, omp_get_nested): Likewise.
1893 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1894 omp_get_thread_num, omp_in_parallel): Likewise.
1895 * fortran.c (ialias_redirect): Define.
1896 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1897 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1898 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1899 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1900 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1901 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1902 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1903 omp_get_wtime): Add ialias_redirect.
1905 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1907 * fortran.c: Include stdlib.h.
1909 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1911 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1912 * Makefile.in: Regenerated.
1914 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1916 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1917 * libgomp_f.h.in (omp_check_defines): New function.
1918 * env.c: Include libgomp_f.h.
1919 (initialize_env): Call omp_check_defines.
1921 * testsuite/libgomp.dg/copyin-2.c: New test.
1922 * testsuite/libgomp.c++/copyin-2.C: New test.
1923 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1925 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1926 * testsuite/libgomp.fortran/sharing2.f90: New test.
1928 * testsuite/libgomp.dg/copyin-1.c: New test.
1929 * testsuite/libgomp.c++/copyin-1.C: New test.
1931 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1933 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1935 * testsuite/libgomp.fortran/workshare1.f90: New test.
1937 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1939 * libgomp.fortran/sharing1.f90: New test.
1941 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1944 * testsuite/libgomp.c++/loop-7.C: New test.
1946 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1948 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1949 * testsuite/libgomp.fortran/reduction6.f90: New test.
1950 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1952 2005-10-23 Richard Henderson <rth@redhat.com>
1954 * testsuite/libgomp.c++/ctor-1.C: New.
1955 * testsuite/libgomp.c++/ctor-2.C: New.
1956 * testsuite/libgomp.c++/ctor-3.C: New.
1957 * testsuite/libgomp.c++/ctor-4.C: New.
1958 * testsuite/libgomp.c++/ctor-5.C: New.
1959 * testsuite/libgomp.c++/ctor-6.C: New.
1960 * testsuite/libgomp.c++/ctor-7.C: New.
1961 * testsuite/libgomp.c++/ctor-8.C: New.
1962 * testsuite/libgomp.c++/ctor-9.C: New.
1964 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1967 * testsuite/libgomp.c++/pr24455-1.C: New test.
1968 * testsuite/libgomp.c++/pr24455.C: New test.
1969 * testsuite/libgomp.dg/pr24455-1.c: New test.
1970 * testsuite/libgomp.dg/pr24455.c: New test.
1972 2005-10-20 Richard Henderson <rth@redhat.com>
1974 * testsuite/libgomp.c++/loop-6.C: New.
1975 * testsuite/libgomp.dg/loop-3.c: New.
1977 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1979 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1981 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1984 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1986 * testsuite/libgomp.fortran/jacobi.f: New test.
1988 2005-10-19 Richard Henderson <rth@redhat.com>
1990 * configure.tgt (i?86-linux): Default to with_arch instead of
1991 CFLAGS. Add -mtune to match target_cpu.
1992 (x86_64-linux): Tune to i686.
1994 * fortran.c (omp_test_nest_lock_): Fix typo.
1996 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1998 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1999 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2000 * testsuite/libgomp.dg/ordered-3.c: New test.
2002 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2003 Remove volatile keyword.
2005 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2006 in COMMON block to avoid warnings on 64-bit targets.
2008 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2010 * testsuite/libgomp.dg/shared-3.c: New test.
2012 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2014 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2015 * testsuite/libgomp.fortran/reduction5.f90: New test.
2017 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2019 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2021 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2022 flush loop now that __sync_synchronize has proper memory barrier.
2023 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2024 Add -ffixed-form to dg-options.
2026 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2028 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2029 from subdirectories.
2030 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2031 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2032 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2033 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2034 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2035 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2036 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2037 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2038 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2039 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2040 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2041 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2042 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2043 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2044 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2045 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2046 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2047 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2048 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2049 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2050 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2051 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2052 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2053 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2054 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2056 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2058 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2059 lang_library_path exists. Use find instead of glob to gather tests.
2060 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2062 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2064 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2065 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2066 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2067 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2068 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2069 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2070 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2071 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2072 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2073 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2074 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2075 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2076 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2078 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2080 * testsuite/libgomp.dg/vla-1.c: New test.
2082 * testsuite/libgomp.fortran/reference2.f90: New test.
2084 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2085 declaration of omp_get_thread_num.
2086 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2089 * testsuite/libgomp.fortran/reduction1.f90: New test.
2090 * testsuite/libgomp.fortran/reduction2.f90: New test.
2091 * testsuite/libgomp.fortran/reduction3.f90: New test.
2092 * testsuite/libgomp.fortran/reduction4.f90: New test.
2094 2005-10-13 Richard Henderson <rth@redhat.com>
2096 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2097 * Makefile.in: Regenerate.
2098 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2099 * libgomp.h: Include bar.h.
2100 (struct gomp_barrier): Remove.
2101 (struct gomp_team): Add barrier. Replace master_barrier with
2102 master_release. Replace threads with ordered_release.
2103 (struct gomp_thread): Replace barrier with release.
2104 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2105 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2106 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2107 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2108 (GOMP_single_copy_end): Likewise.
2109 * team.c (gomp_threads_dock): New.
2110 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2111 (gomp_thread_start): Use gomp_barrier_wait.
2112 (new_team, free_team): Update for gomp_team changes.
2113 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2114 (gomp_team_end): Use gomp_barrier_wait.
2115 (initialize_team): Update for gomp_thread changes.
2116 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2117 (gomp_work_share_end_nowait): Use atomic ops when available.
2118 * config/linux/bar.c, config/linux/bar.h: New files.
2119 * config/posix/bar.c, config/posix/bar.h: New files.
2121 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2123 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2124 * testsuite/libgomp.dg/single-2.c: New test.
2126 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2127 lang_link_flags): Unset, so that they aren't inherited from previously
2130 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2132 2005-10-12 Richard Henderson <rth@redhat.com>
2134 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2135 (libgomp_init): Use lang_test_file, lang_library_path, and
2136 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2138 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2139 (lang_test_file, lang_link_flags): New.
2140 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2142 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2143 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2144 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2145 testsuite/libgomp.c++/parallel-1.C,
2146 testsuite/libgomp.c++/reduction-1.C,
2147 testsuite/libgomp.c++/reduction-2.C,
2148 testsuite/libgomp.c++/reduction-3.C,
2149 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2150 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2151 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2152 New files, largely cribbed from the C testsuite.
2154 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2156 * testsuite/libgomp.fortran/character1.f90: New test.
2157 * testsuite/libgomp.fortran/character2.f90: New test.
2159 * testsuite/libgomp.dg/nested-1.c: New test.
2160 * testsuite/libgomp.dg/nested-2.c: New test.
2161 * testsuite/libgomp.fortran/do1.f90: New test.
2162 * testsuite/libgomp.fortran/do2.f90: New test.
2164 * testsuite/libgomp.fortran/reference1.f90: New test.
2166 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2168 * testsuite/libgomp.dg/reduction-1.c: New test.
2169 * testsuite/libgomp.dg/reduction-2.c: New test.
2170 * testsuite/libgomp.dg/reduction-3.c: New test.
2172 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2174 * testsuite/libgomp.dg/atomic-1.c: New test.
2175 * testsuite/libgomp.dg/atomic-2.c: New test.
2177 2005-10-09 Richard Henderson <rth@redhat.com>
2179 * critical.c (atomic_lock): New.
2180 (initialize_critical): Initialize it.
2181 (GOMP_atomic_start, GOMP_atomic_end): New.
2182 * libgomp.map: Export them.
2183 * libgomp_g.h: Declare them.
2185 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2187 2005-10-02 Richard Henderson <rth@redhat.com>
2189 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2190 to XCFLAGS instead of CFLAGS.
2192 2005-09-30 Richard Henderson <rth@redhat.com>
2194 * configure.ac: Determine whether -pthread or -lpthread is needed.
2195 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2196 * Makefine.in, configure: Rebuild.
2198 2005-09-28 Richard Henderson <rth@redhat.com>
2200 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2201 * testsuite/libgomp.dg/omp-single-3.c: New test.
2203 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2205 * testsuite/libgomp.dg/omp-single-2.c: New test.
2206 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2208 2005-09-27 Richard Henderson <rth@redhat.com>
2210 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2211 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2213 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2215 * testsuite/libgomp.dg/omp-loop03.c: New test.
2217 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2219 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2221 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2223 * testsuite/libgomp.dg/omp-single-1.c: New test.
2224 * testsuite/libgomp.dg/shared-1.c: Return 0.
2225 Add prototype for abort.
2226 * testsuite/libgomp.dg/shared-2.c: Likewise.
2228 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2230 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2233 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2235 * testsuite/libgomp.dg/shared-1.c: New test.
2236 * testsuite/libgomp.dg/shared-2.c: New test.
2238 2005-09-24 Richard Henderson <rth@redhat.com>
2240 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2242 2005-09-24 Richard Henderson <rth@redhat.com>
2244 * iter.c (gomp_iter_static_next): Round up when computing number
2245 of iterations. Don't bother distributing a remainder equally.
2247 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2248 Don't call srand. Zero b before testing.
2251 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2253 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2254 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2256 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2258 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2259 without !$omp end do, followed immediately by subroutine end.
2261 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2263 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2265 2005-09-22 Richard Henderson <rth@redhat.com>
2267 * critical.c (GOMP_critical_name_start): Change argument to void**.
2268 Reuse the pointer space if the mutex fits.
2269 (GOMP_critical_name_end): Likewise.
2270 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2271 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2272 (GOMP_critical_name_end): Likewise.
2273 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2274 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2276 2005-09-20 Richard Henderson <rth@redhat.com>
2278 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2279 (create_lock_lock): New.
2280 (initialize_critical): Initialize it.
2281 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2282 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2284 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2286 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2288 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2290 * testsuite/libgomp.dg/omp-loop01.c: New test.
2291 * testsuite/libgomp.dg/omp-loop02.c: New test.
2293 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2295 * configure.ac (AC_PROG_FC): Add.
2296 (USE_FORTRAN): New automake conditional.
2297 * configure: Rebuilt.
2298 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2299 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2300 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2301 Add rules to build them.
2302 * Makefile.in: Rebuilt.
2303 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2305 * libgomp.map: Add Fortran wrappers.
2306 * libgomp_f.h.in: New file.
2307 * omp_lib.h.in: New file.
2308 * omp_lib.f90.in: New file.
2309 * fortran.c: New file.
2310 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2311 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2312 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2313 libgfortran has been built.
2314 * testsuite/libgomp.fortran/fortran.exp: New file.
2315 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2316 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2317 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2318 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2319 * testsuite/libgomp.fortran/omp_hello.f: New test.
2320 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2321 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2322 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2323 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2324 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2325 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2326 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2327 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2329 2005-08-30 Richard Henderson <rth@redhat.com>
2331 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2332 function for when aliases are not usable.
2333 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2334 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2335 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2336 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2337 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2338 GOMP_loop_ordered_guided_next): Likewise.
2339 * ordered.c (GOMP_ordered_start): Likewise.
2341 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2343 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2344 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2345 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2346 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2347 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2348 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2349 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2350 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2351 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2353 2005-07-07 Eric Christopher <echristo@redhat.com>
2354 Diego Novillo <dnovillo@redhat.com>
2356 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2357 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2359 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2360 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2361 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2362 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2363 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2364 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2365 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2367 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2369 * TOPLEVEL.patch: Remove.
2371 2005-05-16 Richard Henderson <rth@redhat.com>
2373 * configure.ac: Test for clock_gettime.
2374 * config.h.in, configure: Rebuild.
2375 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2376 (omp_get_wtime): Use clock_gettime if available.
2377 (omp_get_wtick): Use clock_getres if available.
2379 2005-05-11 Richard Henderson <rth@redhat.com>
2381 * config/linux/ia64/futex.h: New file.
2382 * configure.tgt: Use it.
2384 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2386 2005-05-07 Richard Henderson <rth@redhat.com>
2388 * config/linux/powerpc/futex.h: New file.
2389 * configure.tgt: Use it.
2391 * config/linux/i486/futex.h: Merge ...
2392 * config/linux/x86_64/futex.h: ... into ...
2393 * config/linux/x86/futex.h: ... here.
2394 * configure.tgt: Update to match.
2396 2005-05-06 Richard Henderson <rth@redhat.com>
2398 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2399 * config/linux/i486/futex.h: Likewise.
2400 * config/linux/x86_64/futex.h: Likewise.
2402 * config/linux/lock.c: New file.
2403 * config/linux/omp-lock.h: New file.
2405 * critical.c, env.h: Don't include omp.h
2406 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2407 * config/posix/time.c: Likewise.
2408 * config/posix/omp-lock.h: New file.
2409 * libgomp.h: Include omp-lock.h and omp.h.
2410 * Makefile.am (nodist_include_HEADERS): New.
2412 * configure.ac (PERL): New.
2413 * mkomp_h.pl: New file.
2414 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2416 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2418 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2419 build directory. Re-add -march=i486 hack.
2421 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2422 (libgomp_link_flags): Remove.
2423 (libgomp_initialized): Remove.
2424 (libgomp_init): Don't protect from reinitialization. Copy code
2425 from libstdc++ for getting the multilib set correctly.
2427 2005-05-05 Richard Henderson <rth@redhat.com>
2429 * config/linux/alpha/futex.h: New file.
2430 * configure.tgt (alpha*-*-linux*): Use it.
2432 * config/posix/mutex.c: New file.
2433 * config/posix/sem.c: Use libgomp.h.
2435 * configure.tgt (x86_64-linux): Also test CC for -m32.
2436 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2438 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2441 * Makefile.am (SUBDIRS): New.
2442 (libgomp_la_LDFLAGS): Add -lpthread.
2443 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2444 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2446 * libgomp_g.h: New file.
2447 * libgomp.h: Split out all public declarations to libgomp_g.h.
2448 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2449 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2450 * config/linux/sem.h: Likewise.
2451 * config/posix/sem.h: Likewise.
2453 * Makefile.am (AM_LDFLAGS): New.
2454 (libgomp_version_script): Split out from ...
2455 (libgomp_la_LDFLAGS): ... here.
2456 (libgomp_version_info): New.
2457 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2458 (LIBGOMP_ENABLE): New.
2459 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2460 (LIBGOMP_ENABLE_SYMVERS): New.
2461 * configure.ac (AC_INIT): Version 1.0.
2462 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2463 (enable-linux-futex): Likewise. Rename from enable-futex.
2464 (libtool_VERSION): New.
2465 (LIBGOMP_ENABLE_SYMVERS): Use it.
2466 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2467 * Makefile.in, aclocal.m4, configure: Rebuild.
2469 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2470 (gomp_mutex_unlock_slow): Fix typo.
2471 * config/linux/sem.c: Similarly.
2472 (gomp_sem_post_slow): Fix typo.
2473 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2474 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2475 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2477 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2478 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2479 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2480 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2481 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2482 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2483 LDFLAGS. Pull enable_futex check to top-level.
2484 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2485 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2487 First attempt at real configury.
2488 * Makefile, config.h: Remove file.
2489 * Makefile.am, Makefile.in: New file.
2490 * acinclude.m4 aclocal.m4: New file.
2491 * configure.ac, configure.tgt, configure: New file.
2493 * config/posix/lock.c: Rename from sys-lock.c.
2494 * config/posix/mutex.h: Rename from sys-mutex.h.
2495 * config/posix/sem.c: Rename from sys-sem.c.
2496 * config/posix/sem.h: Rename from sys-sem.h.
2497 * config/posix/proc.c: Rename from sys-proc.c.
2498 * config/posix/time.c: Rename from sys-proc.c.
2500 * config/linux/mutex.c: New file.
2501 * config/linux/mutex.h: New file.
2502 * config/linux/sem.c: New file.
2503 * config/linux/sem.h: New file.
2504 * config/linux/i486/futex.h: New file.
2505 * config/linux/x86_64/futex.h: New file.
2507 2005-05-04 Richard Henderson <rth@redhat.com>
2509 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2510 * libgomp.h: Declare them.
2511 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2512 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2514 2005-05-04 Richard Henderson <rth@redhat.com>
2516 * libgomp-1 code drop
2518 2005-05-04 Richard Henderson <rth@redhat.com>
2520 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2521 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2522 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2523 (gomp_iter_static_next): Update.
2524 (gomp_ordered_static_next): Update.
2525 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2526 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2527 totally empty range.
2528 (gomp_loop_ordered_static_next): Refine test for calling
2529 gomp_ordered_static_next.
2530 * testsuite/ordered-1.c: Add case for more threads than iterations.
2532 * iter.c (gomp_iter_runtime_next_locked): Remove.
2533 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2534 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2535 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2536 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2537 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2538 gomp_loop_ordered_guided_next): Downcase name, make static, add
2539 an external alias with the old name.
2540 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2541 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2542 switch and call one of the above static functions.
2543 * libgomp.h: Update.
2545 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2546 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2547 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2548 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2549 GOMP_loop_ordered_guided_start): Update to match.
2550 * sections.c (GOMP_sections_start): Likewise.
2551 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2553 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2554 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2555 Use bounds check instead of modulus.
2556 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2557 (gomp_ordered_last): Don't sync with ordered_owner here.
2558 (gomp_ordered_next): Likewise.
2559 (gomp_ordered_static_loop_next): Likewise.
2560 * loop.c, libgomp.h: Update to match.
2562 * libgomp.h (GOMP_barrier): Declare.
2564 * testsuite/barrier-1.c: New file.
2565 * testsuite/critical-1.c: New file.
2566 * testsuite/ordered-2.c: New file.
2567 * testsuite/ordered-1.c: New file.
2568 * testsuite/sections-1.c: New file.
2569 * testsuite/single-1.c: New file.
2570 * testsuite/Makefile (TESTS): Add them.
2572 2005-05-04 Richard Henderson <rth@redhat.com>
2574 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2575 * loop.c (GOMP_loop_static_start): If not the startup thread,
2576 acquire the mutex to wait for initialization complete.
2577 (GOMP_loop_ordered_static_start): Likewise.
2578 (GOMP_loop_ordered_runtime_start): Likewise.
2579 (GOMP_loop_ordered_static_first): Remove.
2580 (GOMP_loop_ordered_dynamic_first): Remove.
2581 (GOMP_loop_ordered_guided_first): Remove.
2582 (GOMP_loop_ordered_runtime_first): Remove.
2583 * ordered.c (gomp_ordered_loop_first): Post to own release when
2584 we're the first thread.
2585 (gomp_ordered_loop_last): Wait on release if not owner.
2586 (gomp_ordered_loop_next): Likewise.
2587 (gomp_ordered_static_loop_init): New.
2588 (gomp_ordered_static_loop_next): Use ordered_owner.
2589 (GOMP_ordered_start): Likewise.
2590 * work.c (gomp_new_work_share): Initialize ordered_owner.
2592 2005-05-03 Richard Henderson <rth@redhat.com>
2594 * Makefile (OPT): New.
2597 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2598 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2599 * libgomp.h, libgomp.map, NOTES: Update to match.
2601 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2602 Add initialized and thr members.
2603 (gomp_thread_start): Pause when initially spawned to wait for
2604 the whole team to be created.
2605 (gomp_team_start): Release team members at the end.
2607 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2608 (f_foo_1): Use GOMP_loop_end.
2609 (f_foo_2): Use GOMP_loop_end_nowait.
2611 * testsuite/loop-2.c: New file.
2612 * testsuite/Makefile (TESTS): Add it.
2614 2005-05-03 Richard Henderson <rth@redhat.com>
2616 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2617 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2618 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2621 * testsuite/Makefile: New file.
2622 * testsuite/loop-1.c: New file.
2624 2005-05-03 Richard Henderson <rth@redhat.com>
2626 Initial implementation and checkin.