1 2009-10-26 Jakub Jelinek <jakub@redhat.com>
3 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
4 *s. Accept ld version without text in ()s.
5 * configure: Regenerated.
7 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
11 or a hyphen (happens with fortran language disabled).
12 * configure: Regenerate.
14 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17 use sed script portable to Solaris /bin/sed for extracting ld
19 * configure: Regenerate.
21 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
23 * testsuite/libgomp.graphite/bounds.c: New test.
25 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27 * Makefile.am (libgomp_la_LINK): New.
28 * Makefile.in: Regenerate.
30 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32 * configure.ac (AC_PREREQ): Bump to 2.64.
34 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36 * Makefile.am (install-html, install-pdf): Remove.
37 * Makefile.in: Regenerate.
39 * Makefile.in: Regenerate.
40 * aclocal.m4: Regenerate.
41 * config.h.in: Regenerate.
42 * configure: Regenerate.
43 * testsuite/Makefile.in: Regenerate.
45 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
48 * Makefile.in: Regenerate.
50 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
52 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
53 * Makefile.in: Regenerate.
55 2009-08-19 Tobias Burnus <burnus@net-b.de>
58 omp_lib.h.in: Fix -std=f95 errors.
61 2009-08-14 David Edelsohn <edelsohn@gnu.org>
63 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
64 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
65 * testsuite/libgomp.graphite/graphite.exp: New.
67 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
69 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
72 2009-08-04 David Daney <ddaney@caviumnetworks.com>
74 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
75 needed memory barrier semantics.
76 * config/linux/mips/mutex.h: New file.
78 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
82 2009-07-16 Joseph Myers <joseph@codesourcery.com>
84 * configure: Regenerate.
86 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
91 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
92 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
93 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
95 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
97 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
98 options when choosing a multilib.
100 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
102 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
103 ld_library_path. Use add_path. Add just find_libgcc_s to
104 ld_library_path, not every libgcc multilib directory.
105 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
106 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
107 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
109 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
111 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
113 * Makefile.am (LTLDFLAGS): Define.
115 * Makefile.in: Regenerate.
117 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
120 * testsuite/libgomp.fortran/fortran.exp: Don't link with
121 libgfortranbegin, check existence of libgfortran.a instead of
124 2009-05-20 Jakub Jelinek <jakub@redhat.com>
127 * team.c (gomp_thread_start): Destroy thr->release semaphore.
128 (gomp_free_pool_helper): Likewise.
130 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
131 Jakub Jelinek <jakub@redhat.com>
134 * testsuite/libgomp.fortran/workshare2.f90: New test.
136 2009-04-09 Nick Clifton <nickc@redhat.com>
138 * iter.c: Change copyright header to refer to version 3 of the
139 GNU General Public License with version 3.1 of the GCC Runtime
140 Library Exception and to point readers at the COPYING3 and
141 COPYING3.RUNTIME files and the FSF's license web page.
143 * barrier.c: Likewise.
144 * config/bsd/proc.c: Likewise.
145 * config/linux/affinity.c: Likewise.
146 * config/linux/alpha/futex.h: Likewise.
147 * config/linux/bar.c: Likewise.
148 * config/linux/bar.h: Likewise.
149 * config/linux/ia64/futex.h: Likewise.
150 * config/linux/ia64/mutex.h: Likewise.
151 * config/linux/lock.c: Likewise.
152 * config/linux/mips/futex.h: Likewise.
153 * config/linux/mutex.c: Likewise.
154 * config/linux/mutex.h: Likewise.
155 * config/linux/powerpc/futex.h: Likewise.
156 * config/linux/proc.c: Likewise.
157 * config/linux/ptrlock.c: Likewise.
158 * config/linux/ptrlock.h: Likewise.
159 * config/linux/s390/futex.h: Likewise.
160 * config/linux/sem.c: Likewise.
161 * config/linux/sem.h: Likewise.
162 * config/linux/sparc/futex.h: Likewise.
163 * config/linux/wait.h: Likewise.
164 * config/linux/x86/futex.h: Likewise.
165 * config/mingw32/proc.c: Likewise.
166 * config/mingw32/time.c: Likewise.
167 * config/posix/affinity.c: Likewise.
168 * config/posix/bar.c: Likewise.
169 * config/posix/bar.h: Likewise.
170 * config/posix/lock.c: Likewise.
171 * config/posix/mutex.h: Likewise.
172 * config/posix/proc.c: Likewise.
173 * config/posix/ptrlock.h: Likewise.
174 * config/posix/sem.c: Likewise.
175 * config/posix/sem.h: Likewise.
176 * config/posix/time.c: Likewise.
177 * config/posix95/lock.c: Likewise.
178 * critical.c: Likewise.
181 * fortran.c: Likewise.
182 * iter_ull.c: Likewise.
183 * libgomp.h: Likewise.
184 * libgomp_f.h.in: Likewise.
185 * libgomp_g.h: Likewise.
187 * loop_ull.c: Likewise.
188 * omp.h.in: Likewise.
189 * omp_lib.f90.in: Likewise.
190 * omp_lib.h.in: Likewise.
191 * ordered.c: Likewise.
192 * parallel.c: Likewise.
193 * sections.c: Likewise.
194 * single.c: Likewise.
199 2009-04-09 Jakub Jelinek <jakub@redhat.com>
201 * testsuite/config/default.exp: Change copyright header to refer to
202 version 3 of the GNU General Public License and to point readers
203 at the COPYING3 file and the FSF's license web page.
205 2009-04-08 Jakub Jelinek <jakub@redhat.com>
208 * libgomp.c++/pr39573.C: New test.
210 2009-04-01 Jakub Jelinek <jakub@redhat.com>
213 * testsuite/libgomp.c/pr39591-1.c: New test.
214 * testsuite/libgomp.c/pr39591-2.c: New test.
215 * testsuite/libgomp.c/pr39591-3.c: New test.
217 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
219 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
220 * testsuite/libgomp.c/atomic-6.c: Ditto.
222 2009-03-23 Jakub Jelinek <jakub@redhat.com>
225 * testsuite/libgomp.c/loop-12.c: New test.
226 * testsuite/libgomp.c/loop-11.c: New test.
227 * testsuite/libgomp.c++/loop-11.C: New test.
228 * testsuite/libgomp.c++/loop-12.C: New test.
229 * testsuite/libgomp.c++/for-8.C: New test.
231 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
233 * configure: Regenerate.
235 2009-02-11 Jakub Jelinek <jakub@redhat.com>
238 * testsuite/libgomp.c/pr39154.c: New test.
240 2009-01-30 Ian Lance Taylor <iant@google.com>
242 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
243 libgomp_ld_is_gold. Get gold version number.
244 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
245 * configure: Rebuild.
247 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
249 * testsuite/lib/libgomp.exp: Add -B option for targets that
250 use libgfortran.a%s in their specs.
252 2009-01-07 Jakub Jelinek <jakub@redhat.com>
255 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
256 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
257 HAVE_AS_SYMVER_DIRECTIVE is not defined.
258 * configure: Regenerated.
259 * config.h.in: Likewise.
261 2008-12-28 Jakub Jelinek <jakub@redhat.com>
264 * testsuite/libgomp.c/pr38650.c: New test.
265 * testsuite/libgomp.c++/pr38650.C: New test.
267 2008-12-27 Jakub Jelinek <jakub@redhat.com>
269 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
271 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
273 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
275 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
277 * configure: Regenerate.
279 2008-12-08 Jakub Jelinek <jakub@redhat.com>
282 * testsuite/libgomp.c/pr36802-1.c: New test.
283 * testsuite/libgomp.c/pr36802-2.c: New test.
284 * testsuite/libgomp.c/pr36802-3.c: New test.
286 2008-12-01 Janis Johnson <janis187@us.ibm.com>
289 * config/linux/powerpc/mutex.h: New.
291 2008-12-01 Jakub Jelinek <jakub@redhat.com>
294 * testsuite/libgomp.c++/for-7.C: New test.
297 * testsuite/libgomp.c++/for-6.C: New test.
299 2008-11-26 Janis Johnson <janis187@us.ibm.com>
302 * testsuite/lib/libgomp.exp: Include new timeout library files.
303 (libgomp_target_compile): Set timeout value from new proc.
305 2008-11-13 Steve Ellcey <sje@cup.hp.com>
308 * config/linux/ia64/mutex.h: New.
310 2008-11-04 Tobias Burnus <burnus@net-b.de>
313 * libgomp.texi (Runtime library routines, environment variables):
314 Update for OpenMP version 3.0.
316 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
317 Steve Ellcey <sje@cup.hp.com>
319 * configure: Regenerate for new libtool.
320 * Makefile.in: Ditto.
321 * testsuite/Makefile.in: Ditto.
323 2008-09-19 Jakub Jelinek <jakub@redhat.com>
324 Andreas Tobler <a.tobler@schweiz.org>
326 * config/bsd/proc.c: New file.
327 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
328 * configure.ac: Check for header <sys/sysctl.h>
329 * configure: Regenerate.
330 * config.h.in: Likewise.
332 2008-09-05 Janis Johnson <janis187@us.ibm.com>
334 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
336 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
338 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
339 * Makefile.in: Regenerated.
340 * testsuite/Makefile.in: Regenerated.
342 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
344 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
345 depend on blddir if blddir exists.
346 (libgomp_target_compile): Likewise.
347 * testsuite/libgomp.c++/c++.exp: Likewise.
348 * testsuite/libgomp.fortran/fortran.exp: Likewise.
350 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
352 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
353 Do not list GPL as Invariant Section.
355 2008-07-28 Ilie Garbacea <ilie@mips.com>
356 Chao-ying Fu <fu@mips.com>
358 * configure.tgt: Enable futex for MIPS.
359 * config/linux/mips/futex.h: New file.
361 2008-07-16 Jakub Jelinek <jakub@redhat.com>
363 * team.c (gomp_team_end): Free team immediately if it has
366 2008-07-08 David Edelsohn <edelsohn@gnu.org>
368 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
369 * testsuite/libgomp.fortran/fortran.exp: Same.
370 * testsuite/libgomp.c/c.exp: Same.
371 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
372 directory to library path first.
374 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
376 * env.c (parse_stacksize): Add cast to avoid warning.
377 (parse_spincount): Likewise.
379 2008-06-27 Jakub Jelinek <jakub@redhat.com>
381 * testsuite/libgomp.c/loop-10.c: New test.
382 * libgomp.c/loop-3.c (main): Add lastprivate clause.
383 * libgomp.c++/loop-6.C (main): Likewise.
386 * testsuite/libgomp.c/debug-1.c: New test.
388 2008-06-19 Jakub Jelinek <jakub@redhat.com>
390 * testsuite/libgomp.c/nqueens-1.c: New test.
393 * testsuite/libgomp.c++/task-7.C: New function.
395 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
397 * configure: Regenerate.
399 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
401 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
402 mutex when HAVE_SYNC_BUILTINS isn't defined.
404 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
406 * libgomp.texi (omp_test_lock): Fix typo.
408 2008-06-12 Tobias Burnus <burnus@net-b.de>
410 * omp_lib.f90.in: Add "implicit none".
412 2008-06-12 Jakub Jelinek <jakub@redhat.com>
415 * testsuite/libgomp.c/reduction-5.c: New test.
417 2008-06-11 Jakub Jelinek <jakub@redhat.com>
419 * libgomp.h (struct gomp_task): Add in_tied_task field.
420 * task.c (gomp_init_task): Initialize it.
421 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
422 unconditionally. Don't call gomp_team_barrier_wake if
423 current task is implicit or if(0) from implicit and number of
424 running tasks is equal to nthreads - 1.
427 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
428 omp_get_team_size_8): Fix pastos.
431 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
432 * configure: Regenerated.
433 * config.h.in: Regenerated.
434 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
437 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
440 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
441 (GOMP_loop_ull_dynamic_start): Likewise.
442 (GOMP_loop_ull_guided_start): Likewise.
443 (GOMP_loop_ull_ordered_static_start): Likewise.
444 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
445 (GOMP_loop_ull_ordered_guided_start): Likewise.
447 2008-06-06 Jakub Jelinek <jakub@redhat.com>
448 Richard Henderson <rth@redhat.com>
449 Ulrich Drepper <drepper@redhat.com>
450 Jakob Blomer <jakob.blomer@ira.uka.de>
452 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
453 Substitute also OMP_*LOCK_25*.
454 * configure: Regenerated.
455 * config.h.in: Regenerated.
456 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
457 ptrlock.c and task.c.
458 * Makefile.in: Regenerated.
459 * testsuite/Makefile.in: Regenerated.
461 * loop_ull.c: New file.
462 * iter_ull.c: New file.
463 * libgomp.h: Include ptrlock.h.
464 (enum gomp_task_kind): New type.
465 (struct gomp_team): Add task_lock, task_queue, task_count,
466 task_running_count, single_count fields. Add
467 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
468 Remove work_share_lock, generation_mask,
469 oldest_live_gen, num_live_gen and init_work_shares fields, add
470 work work_share_list_alloc, work_share_list_free and work_share_chunk
471 fields. Change work_shares from pointer to pointers into an array.
472 Change ordered_release field into gomp_sem_t ** from flexible array
473 member. Add implicit_task and initial_work_shares fields.
474 Move close to the end of the struct.
475 (struct gomp_team_state): Add single_count, last_work_share,
476 active_level and level fields, remove work_share_generation.
477 (gomp_barrier_handle_tasks): New prototype.
478 (gomp_finish_task): New inline function.
479 (struct gomp_work_share): Move chunk_size, end, incr into
480 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
481 next_ll fields. Reshuffle fields. Add next_alloc,
482 next_ws, next_free and inline_ordered_team_ids fields, change
483 ordered_team_ids into pointer from flexible array member.
484 Add mode field. Put lock and next into a different cache line
485 from most of the write-once fields.
486 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
487 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
488 gomp_iter_ull_guided_next): New prototypes.
489 (gomp_new_icv): New prototype.
490 (struct gomp_thread): Add thread_pool and task fields.
491 (struct gomp_thread_pool): New type.
492 (gomp_new_team): New prototype.
493 (gomp_team_start): Change type of last argument.
494 (gomp_new_work_share): Removed.
495 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
496 (gomp_work_share_init_done): New static inline.
497 (gomp_throttled_spin_count_var, gomp_available_cpus,
498 gomp_managed_threads): New extern decls.
499 (gomp_init_task): New prototype.
500 (gomp_spin_count_var): New extern var decl.
501 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
502 or no alias support, or if not PIC.
503 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
504 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
505 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
506 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
507 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
508 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
509 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
510 gomp_test_nest_lock_25): New prototypes.
511 (omp_lock_symver, strong_alias): Define.
512 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
514 (gomp_end_task): New.
515 (struct gomp_task_icv, gomp_global_icv): New.
516 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
517 (struct gomp_task): New.
518 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
519 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
521 (gomp_schedule_type): Reorder enum to match
523 * team.c (struct gomp_thread_start_data): Add thread_pool and task
525 (gomp_thread_start): Add gomp_team_barrier_wait call.
526 For non-nested case remove clearing of docked thread thr fields.
527 Use pool fields instead of global gomp_* variables. Use
528 gomp_barrier_wait_last when needed. Initialize ts.active_level.
529 Create tasks for each member thread.
530 (free_team): Only destroy team barrier, task_lock here and free it.
531 (gomp_free_thread): Free last_team if non-NULL.
532 (gomp_team_end): Call gomp_team_barrier_wait instead of
533 gomp_barrier_wait. For nested case call one extra
534 gomp_barrier_wait. Move here some destruction from free_team.
535 Call free_team on pool->last_team if any, rather than freeing
536 current team. Destroy work_share_list_free_lock ifndef
538 (gomp_new_icv): New function.
539 (gomp_threads, gomp_threads_size, gomp_threads_used,
540 gomp_threads_dock): Removed.
541 (gomp_thread_destructor): New variable.
542 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
544 (gomp_team_start): Create new pool if current thread doesn't have
545 one. Use pool fields instead of global gomp_* variables.
546 Initialize thread_pool field for new threads. Clear single_count.
547 Change last argument from ws to team, don't create
548 new team, set ts.work_share to &team->work_shares[0] and clear
549 ts.last_work_share. Don't clear ts.work_share_generation.
550 If number of threads changed, adjust atomically gomp_managed_threads.
551 Use gomp_init_task instead of gomp_new_task,
552 set thr->task to the corresponding implicit_task array entry.
553 Create tasks for each member thread. Initialize ts.level.
554 (initialize_team): Call pthread_key_create on
555 gomp_thread_destructor.
556 (team_destructor): New function.
558 (gomp_new_team): New function.
559 (free_team): Free gomp_work_share blocks chained through next_alloc,
560 instead of freeing work_shares and destroying work_share_lock.
561 (gomp_team_end): Call gomp_fini_work_share. If number of threads
562 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
563 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
564 of gomp_barrier_wait.
565 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
566 instead of gomp_barrier_wait. Call gomp_work_share_init_done
567 if gomp_work_share_start returned true. Don't unlock ws->lock.
568 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
569 of gomp_barrier_wait.
570 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
571 gomp_work_share_init_done if gomp_work_share_start returned true.
572 Don't unlock ws->lock.
573 * work.c: Include stddef.h.
574 (free_work_share): Use work_share_list_free_lock instead
575 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
576 Call gomp_fini_work_share and then either free ws if orphaned, or
577 put it into work_share_list_free list of the current team.
578 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
580 (gomp_work_share_start, gomp_work_share_end,
581 gomp_work_share_end_nowait): Rewritten.
582 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
583 (openmp_version): Set to 200805.
584 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
585 omp_sched_guided, omp_sched_auto): New parameters.
586 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
587 omp_set_max_active_levels, omp_get_max_active_levels,
588 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
589 omp_get_active_level): New interfaces.
590 * omp_lib.h.in (openmp_version): Set to 200805.
591 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
592 omp_sched_guided, omp_sched_auto): New parameters.
593 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
594 omp_set_max_active_levels, omp_get_max_active_levels,
595 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
596 omp_get_active_level): New externals.
597 * loop.c: Include limits.h.
598 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
600 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
601 Likewise. Use gomp_icv.
602 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
604 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
605 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
606 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
607 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
608 don't unlock ws->lock, otherwise lock it.
609 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
610 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
611 (gomp_parallel_loop_start): Call gomp_new_team instead of
612 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
613 Adjust gomp_team_start caller. Pass 0 as second argument to
614 gomp_resolve_num_threads.
615 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
616 If adding ws->chunk_size nthreads + 1 times after end won't
617 overflow, set ws->mode to 1.
618 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
619 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
620 GOMP_loop_ull_ordered_static_start,
621 GOMP_loop_ull_ordered_dynamic_start,
622 GOMP_loop_ull_ordered_guided_start,
623 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
624 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
625 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
626 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
627 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
629 * libgomp.map: Export lock routines also @@OMP_2.0.
630 (GOMP_loop_ordered_dynamic_first,
631 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
632 GOMP_loop_ordered_static_first): Remove.
633 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
634 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
635 GOMP_loop_ull_ordered_dynamic_next,
636 GOMP_loop_ull_ordered_dynamic_start,
637 GOMP_loop_ull_ordered_guided_next,
638 GOMP_loop_ull_ordered_guided_start,
639 GOMP_loop_ull_ordered_runtime_next,
640 GOMP_loop_ull_ordered_runtime_start,
641 GOMP_loop_ull_ordered_static_next,
642 GOMP_loop_ull_ordered_static_start,
643 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
644 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
645 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
646 (omp_set_schedule, omp_get_schedule,
647 omp_get_thread_limit, omp_set_max_active_levels,
648 omp_get_max_active_levels, omp_get_level,
649 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
650 omp_set_schedule_, omp_set_schedule_8_,
651 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
652 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
653 omp_get_max_active_levels_, omp_get_level_,
654 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
655 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
656 New exports @@OMP_3.0.
657 * omp.h.in (omp_sched_t): New type.
658 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
659 omp_set_max_active_levels, omp_get_max_active_levels,
660 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
661 omp_get_active_level): New prototypes.
662 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
663 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
664 gomp_thread_limit_var, gomp_remaining_threads_count,
665 gomp_remaining_threads_lock): New variables.
666 (parse_spincount): New function.
667 (initialize_env): Call gomp_init_num_threads unconditionally.
668 Initialize gomp_available_cpus. Call parse_spincount,
669 initialize gomp_{,throttled_}spin_count_var
670 depending on presence and value of OMP_WAIT_POLICY and
671 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
672 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
673 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
674 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
675 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
676 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
677 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
678 (gomp_global_icv): New.
679 (parse_schedule): Use it. Parse "auto".
680 (omp_set_num_threads): Use gomp_icv.
681 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
683 (omp_get_max_threads): Move from parallel.c.
684 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
685 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
687 (parse_stacksize, parse_wait_policy): New functions.
688 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
689 both wrappers for compatibility and new locks.
690 (omp_set_schedule, omp_get_schedule,
691 omp_get_thread_limit, omp_set_max_active_levels,
692 omp_get_max_active_levels, omp_get_level,
693 omp_get_ancestor_thread_num, omp_get_team_size,
694 omp_get_active_level): New ialias_redirect.
695 (omp_set_schedule_, omp_set_schedule_8_,
696 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
697 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
698 omp_get_max_active_levels_, omp_get_level_,
699 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
700 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
702 * parallel.c: Include limits.h.
703 (gomp_resolve_num_threads): Add count argument. Rewritten.
704 (GOMP_parallel_start): Call gomp_new_team and pass that as last
705 argument to gomp_team_start. Pass 0 as second argument to
706 gomp_resolve_num_threads.
707 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
708 if gomp_thread_limit_var != ULONG_MAX.
709 (omp_in_parallel): Implement using ts.active_level.
710 (omp_get_max_threads): Move to env.c.
711 (omp_get_level, omp_get_ancestor_thread_num,
712 omp_get_team_size, omp_get_active_level): New functions,
714 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
715 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
716 gomp_iter_dynamic_next instead of the _locked variant and don't take
717 lock around it, otherwise acquire it before calling
718 gomp_iter_dynamic_next_locked.
719 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
720 gomp_iter_dynamic_next instead of the _locked variant and don't take
722 (GOMP_parallel_sections_start): Call gomp_new_team instead of
723 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
724 Adjust gomp_team_start caller. Pass count as second argument to
725 gomp_resolve_num_threads, don't adjust num_threads after the call.
727 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
728 ws->chunk_size by incr.
729 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
731 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
733 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
734 (omp_check_defines): Check even the compat defines.
735 * config/linux/ptrlock.c: New file.
736 * config/linux/ptrlock.h: New file.
737 * config/linux/wait.h: New file.
738 * config/posix/ptrlock.c: New file.
739 * config/posix/ptrlock.h: New file.
740 * config/linux/bar.h (gomp_team_barrier_wait,
741 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
742 (gomp_team_barrier_set_task_pending,
743 gomp_team_barrier_clear_task_pending,
744 gomp_team_barrier_set_waiting_for_tasks,
745 gomp_team_barrier_waiting_for_tasks,
746 gomp_team_barrier_done): New inlines.
747 (gomp_barrier_t): Rewritten.
748 (gomp_barrier_state_t): New typedef.
749 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
750 gomp_barrier_wait_start): Rewritten.
751 (gomp_barrier_wait_end): Change second argument to
752 gomp_barrier_state_t.
753 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
755 * config/linux/bar.c: Include wait.h instead of libgomp.h and
757 (gomp_barrier_wait_end): Rewritten.
758 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
759 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
760 * config/posix/bar.h (gomp_barrier_t): Add generation field.
761 (gomp_barrier_state_t): New typedef.
762 (gomp_team_barrier_wait,
763 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
764 (gomp_barrier_wait_start): Or all but low 2 bits from generation
765 into the return value. Return gomp_barrier_state_t.
766 (gomp_team_barrier_set_task_pending,
767 gomp_team_barrier_clear_task_pending,
768 gomp_team_barrier_set_waiting_for_tasks,
769 gomp_team_barrier_waiting_for_tasks,
770 gomp_team_barrier_done): New inlines.
771 (gomp_barrier_wait_end): Change second argument to
772 gomp_barrier_state_t.
773 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
775 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
776 (gomp_barrier_wait_end): Change second argument to
777 gomp_barrier_state_t.
778 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
779 gomp_team_barrier_wake): New functions.
780 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
782 (gomp_futex_wake, gomp_futex_wait): New variables.
783 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
784 * config/linux/lock.c: Rewrite to make locks task owned,
785 for backwards compatibility provide the old entrypoints
786 if symbol versioning. Include wait.h instead of libgomp.h and
788 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
789 * config/posix95/lock.c: Rewrite to make locks task owned,
790 for backwards compatibility provide the old entrypoints
791 if symbol versioning.
792 * config/posix/lock.c: Rewrite to make locks task owned,
793 for backwards compatibility provide the old entrypoints
794 if symbol versioning.
795 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
796 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
797 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
798 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
799 (sys_futex0): Return error code.
800 (futex_wake, futex_wait): If ENOSYS was returned, clear
801 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
802 (cpu_relax, atomic_write_barrier): New static inlines.
803 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
804 (futex_wake, futex_wait): If ENOSYS was returned, clear
805 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
806 (cpu_relax, atomic_write_barrier): New static inlines.
807 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
808 (sys_futex0): Return error code.
809 (futex_wake, futex_wait): If ENOSYS was returned, clear
810 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
811 (cpu_relax, atomic_write_barrier): New static inlines.
812 * config/linux/s390/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/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
818 (sys_futex0): Return error code.
819 (futex_wake, futex_wait): If ENOSYS was returned, clear
820 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
821 (cpu_relax, atomic_write_barrier): New static inlines.
822 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
823 (sys_futex0): Return error code.
824 (futex_wake, futex_wait): If ENOSYS was returned, clear
825 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
826 (cpu_relax, atomic_write_barrier): New static inlines.
827 * config/linux/sem.c: Include wait.h instead of libgomp.h and
829 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
830 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
831 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
833 (omp_nest_lock_t): Change owner into void *, add lock field.
834 * config/posix95/omp-lock.h: Include semaphore.h.
835 (omp_lock_25_t, omp_nest_lock_25_t): New types.
836 (omp_lock_t): Use sem_t instead of mutex if semaphores
838 (omp_nest_lock_t): Likewise. Change owner to void *.
839 * config/posix/omp-lock.h: Include semaphore.h.
840 (omp_lock_25_t, omp_nest_lock_25_t): New types.
841 (omp_lock_t): Use sem_t instead of mutex if semaphores
843 (omp_nest_lock_t): Likewise. Add owner field.
845 2008-06-06 Jakub Jelinek <jakub@redhat.com>
847 * testsuite/libgomp.c/collapse-1.c: New test.
848 * testsuite/libgomp.c/collapse-2.c: New test.
849 * testsuite/libgomp.c/collapse-3.c: New test.
850 * testsuite/libgomp.c/icv-1.c: New test.
851 * testsuite/libgomp.c/icv-2.c: New test.
852 * testsuite/libgomp.c/lib-2.c: New test.
853 * testsuite/libgomp.c/lock-1.c: New test.
854 * testsuite/libgomp.c/lock-2.c: New test.
855 * testsuite/libgomp.c/lock-3.c: New test.
856 * testsuite/libgomp.c/loop-4.c: New test.
857 * testsuite/libgomp.c/loop-5.c: New test.
858 * testsuite/libgomp.c/loop-6.c: New test.
859 * testsuite/libgomp.c/loop-7.c: New test.
860 * testsuite/libgomp.c/loop-8.c: New test.
861 * testsuite/libgomp.c/loop-9.c: New test.
862 * testsuite/libgomp.c/nested-3.c: New test.
863 * testsuite/libgomp.c/nestedfn-6.c: New test.
864 * testsuite/libgomp.c/sort-1.c: New test.
865 * testsuite/libgomp.c/task-1.c: New test.
866 * testsuite/libgomp.c/task-2.c: New test.
867 * testsuite/libgomp.c/task-3.c: New test.
868 * testsuite/libgomp.c/task-4.c: New test.
869 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
870 to C++ testsuite default compiler options.
871 * testsuite/libgomp.c++/collapse-1.C: New test.
872 * testsuite/libgomp.c++/collapse-2.C: New test.
873 * testsuite/libgomp.c++/ctor-10.C: New test.
874 * testsuite/libgomp.c++/for-1.C: New test.
875 * testsuite/libgomp.c++/for-2.C: New test.
876 * testsuite/libgomp.c++/for-3.C: New test.
877 * testsuite/libgomp.c++/for-4.C: New test.
878 * testsuite/libgomp.c++/for-5.C: New test.
879 * testsuite/libgomp.c++/loop-8.C: New test.
880 * testsuite/libgomp.c++/loop-9.C: New test.
881 * testsuite/libgomp.c++/loop-10.C: New test.
882 * testsuite/libgomp.c++/task-1.C: New test.
883 * testsuite/libgomp.c++/task-2.C: New test.
884 * testsuite/libgomp.c++/task-3.C: New test.
885 * testsuite/libgomp.c++/task-4.C: New test.
886 * testsuite/libgomp.c++/task-5.C: New test.
887 * testsuite/libgomp.c++/task-6.C: New test.
888 * testsuite/libgomp.fortran/allocatable1.f90: New test.
889 * testsuite/libgomp.fortran/allocatable2.f90: New test.
890 * testsuite/libgomp.fortran/allocatable3.f90: New test.
891 * testsuite/libgomp.fortran/allocatable4.f90: New test.
892 * testsuite/libgomp.fortran/collapse1.f90: New test.
893 * testsuite/libgomp.fortran/collapse2.f90: New test.
894 * testsuite/libgomp.fortran/collapse3.f90: New test.
895 * testsuite/libgomp.fortran/collapse4.f90: New test.
896 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
897 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
898 * testsuite/libgomp.fortran/lib4.f90: New test.
899 * testsuite/libgomp.fortran/lock-1.f90: New test.
900 * testsuite/libgomp.fortran/lock-2.f90: New test.
901 * testsuite/libgomp.fortran/nested1.f90: New test.
902 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
903 * testsuite/libgomp.fortran/strassen.f90: New test.
904 * testsuite/libgomp.fortran/tabs1.f90: New test.
905 * testsuite/libgomp.fortran/tabs2.f: New test.
906 * testsuite/libgomp.fortran/task1.f90: New test.
907 * testsuite/libgomp.fortran/task2.f90: New test.
908 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
909 * testsuite/libgomp.fortran/vla5.f90: Likewise.
910 * testsuite/libgomp.c/pr26943-2.c: Likewise.
911 * testsuite/libgomp.c/pr26943-3.c: Likewise.
912 * testsuite/libgomp.c/pr26943-4.c: Likewise.
914 2008-05-23 Jakub Jelinek <jakub@redhat.com>
917 * testsuite/libgomp.c++/ctor-11.C: New test.
918 * testsuite/libgomp.c++/ctor-12.C: New test.
920 2008-05-15 Janis Johnson <janis187@us.ibm.com>
922 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
924 2008-05-07 Jakub Jelinek <jakub@redhat.com>
927 * testsuite/libgomp.c/atomic-5.c: New test.
928 * testsuite/libgomp.c/atomic-6.c: New test.
929 * testsuite/libgomp.c/autopar-1.c: New test.
931 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
933 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
934 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
935 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
936 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
937 * configure: Regenerate.
938 * Makefile.in, testsuite/Makefile.in: Likewise.
940 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
943 * aclocal.m4: Regenerate.
944 * configure: Regenerate.
946 2008-03-18 Jakub Jelinek <jakub@redhat.com>
949 * testsuite/libgomp.c/atomic-4.c: New test.
952 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
953 (gomp_iter_guided_next): Likewise.
954 * testsuite/libgomp.c/pr35625.c: New test.
956 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
958 * aclocal.m4: Regenerate.
959 * configure: Likewise.
960 * Makefile.in: Likewise.
961 * testsuite/Makefile.in: Likewise.
963 2008-03-13 Jakub Jelinek <jakub@redhat.com>
966 * testsuite/libgomp.c++/pr35185.C: New test.
968 2008-03-12 Jakub Jelinek <jakub@redhat.com>
971 * testsuite/libgomp.c/pr35549.c: New test.
973 2008-03-06 Jakub Jelinek <jakub@redhat.com>
975 * testsuite/libgomp.c/atomic-3.c: New test.
977 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
980 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
983 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
986 * configure.ac: Add ACX_HEADER_STRING.
987 * env.c: Include strings.h.
988 * aclocal.m4: Regenerate.
989 * config.h.in: Regenerate.
990 * configure: Regenerate.
991 * Makefile.in: Regenerate.
992 * testsuite/Makefile.in: Regenerate.
994 2008-02-15 Jakub Jelinek <jakub@redhat.com>
997 * testsuite/libgomp.c/pr35196.c: New test.
1000 * testsuite/libgomp.fortran/pr35130.f90: New test.
1001 * testsuite/libgomp.c/pr35130.c: New test.
1003 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1006 * testsuite/libgomp.c/pr33880.c: New test.
1007 * testsuite/libgomp.fortran/pr33880.f90: New test.
1009 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1011 * configure: Regenerate.
1013 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1015 * configure.ac: Move futex checking into ../config/futex.m4.
1016 * configure: Rebuilt.
1017 * aclocal.m4: Rebuilt.
1018 * Makefile.in: Rebuilt.
1020 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1021 2007-10-15 ../config/tls.m4 change.
1023 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1026 * testsuite/libgomp.c/pr34513.c: New test.
1027 * testsuite/libgomp.c++/pr34513.C: New test.
1029 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1032 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1034 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1036 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1038 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1040 * testsuite/libgomp.c/private-1.c: New test.
1042 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1043 Paolo Bonzini <bonzini@gnu.org>
1045 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1046 instead of 'VPATH ='.
1047 * Makefile.in: Regenerate.
1049 2007-11-23 Matthias Klose <doko@ubuntu.com>
1051 * configure.ac: Adjust makeinfo version check.
1052 * configure: Regenerate.
1054 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1057 * testsuite/libgomp.fortran/pr34020.f90: New test.
1059 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1062 * testsuite/libgomp.c++/atomic-1.C: New test.
1064 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1067 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1068 Make x and y integers rather than (implicit) reals. Add private (j)
1069 clause to the last omp parallel.
1071 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1073 * configure: Regenerate following changes to ../config/tls.m4.
1075 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1077 * testsuite/libgomp.fortran/stack.f90: New test.
1079 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1081 * config/mingw32/proc.c: New file.
1083 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1085 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1086 (main): Use __get_cpuid to get i386 target fetaures.
1087 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1088 (main): Use __get_cpuid to get x86_64 target fetaures.
1090 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1093 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1094 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1096 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1099 * testsuite/libgomp.fortran/pr32550.f90: New test.
1100 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1102 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1104 * aclocal.m4: Regenerated.
1106 2007-07-05 Tobias Burnus <burnus@net-b.de>
1109 * testsuite/libgomp.fortran/pr32359.f90: New.
1111 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1114 * sections.c (GOMP_parallel_sections_start): Only decrease
1115 number of threads to COUNT if dyn_var is true.
1116 * testsuite/libgomp.c/pr32468.c: New test.
1118 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1121 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1123 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1126 * testsuite/libgomp.c/pr32362-1.c: New test.
1127 * testsuite/libgomp.c/pr32362-2.c: New test.
1128 * testsuite/libgomp.c/pr32362-3.c: New test.
1130 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1132 * team.c (gomp_team_start): Fix setting up thread_attr
1135 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1137 * configure: Regenerate.
1139 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1141 * Makefile.in: Regenerate.
1142 * configure: Regenerate.
1143 * aclocal.m4: Regenerate.
1144 * testsuite/Makefile.in: Regenerate.
1146 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1148 * config/linux/proc.c: New file.
1151 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1153 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1155 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1157 2007-04-16 Matthias Klose <doko@debian.org>
1159 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1160 flags if not building with -m64.
1161 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1162 flag for i?86-*-* targets, if current target matches -m64.
1164 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1166 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1167 * Makefile.in: Regenerate.
1169 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1172 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1174 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1176 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1178 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1180 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1181 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1182 (parse_affinity): New function.
1183 (initialize_env): Call it and gomp_init_affinity.
1184 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1185 create new pthread_attr_t and call gomp_init_thread_affinity
1186 on it for each thread before passing the attribute to pthread_create.
1187 * config/linux/affinity.c: New file.
1188 * config/posix/affinity.c: New file.
1189 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1190 * configure: Rebuilt.
1191 * config.h.in: Rebuilt.
1192 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1193 * Makefile.in: Rebuilt.
1195 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1197 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1199 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1200 and use it if found.
1202 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1204 * testsuite/config/default.exp: New file.
1205 * testsuite/lib/libgomp.exp: New file.
1206 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1207 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1208 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1209 (libgomp_load): Remove.
1210 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1211 always_ld_library_path, not ld_library_path. Set additional_flags
1212 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1213 (target_compile): Do not call libgomp_init. Append lang_library_path
1214 and lang_link_flags to options.
1215 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1216 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1218 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1219 always_ld_library_path. Set LD_LIBRARY_PATH here.
1220 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1221 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1222 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1224 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1225 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1226 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1227 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1228 * testsuite/libgomp.c/atomic-10.c: Ditto.
1230 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1232 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1233 dg-final cleanup-modules line.
1234 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1235 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1236 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1237 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1238 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1239 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1240 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1242 2007-03-18 Andreas Schwab <schwab@suse.de>
1244 * acinclude.m4: Adjust regular expression for ld version
1246 * configure: Regenerate.
1248 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1250 * Makefile.am: Add install-pdf target as copied from
1251 automake v1.10 rules.
1252 * Makefile.in: Regenerate
1254 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1257 * configure: Regenerate.
1260 * testsuite/libgomp.c++/pr30703.C: New test.
1262 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1265 2006-07-05 Eric Christopher <echristo@apple.com>
1266 * configure.ac: Depend addition of -pthread on host OS.
1267 * configure: Regenerate.
1269 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1271 * libgomp.texi: Fix spacing after abbreviations.
1273 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1276 * configure.ac: Add check for makeinfo
1277 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1278 if an appropiate version of makeinfo is found.
1279 * aclocal.m4: Regenerated.
1280 * configure: Regenerated.
1281 * Makefile.in: Regenerated.
1282 * testsuite/Makefile.in: Regenerated.
1284 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1287 * libgomp.texi: More about implementation-dependent settings.
1289 2007-01-26 Tobias Burnus <burnus@net-b.de>
1291 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1293 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1296 * testsuite/libgomp.c/pr30494.c: New test.
1298 2007-01-15 Tom Tromey <tromey@redhat.com>
1300 * configure: Rebuilt.
1301 * configure.ac: Fixed comment.
1303 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1305 * libgomp.texi: Document implementation specific default values of
1306 environment variables.
1308 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1311 * libgomp.texi: New file.
1312 * configure.ac: Add --enable-generated-files-in-srcdir option.
1313 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1315 * Makefile.in: Regenerated.
1316 * config.h.in: Regenerated.
1317 * testsuite/Makefile.in: Regenerated.
1320 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1323 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1325 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1327 * configure: Regenerate.
1329 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1332 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1333 start if there shouldn't be any loop iterations.
1334 (gomp_loop_ordered_static_start): Remove start == end test.
1335 * testsuite/libgomp.c/pr29947-1.c: New test.
1336 * testsuite/libgomp.c/pr29947-2.c: New test.
1338 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1340 * configure.tgt: Force initial-exec TLS model on Linux only.
1342 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1344 * configure: Regenerated.
1346 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1348 * env.c (parse_schedule): Reject out of range values.
1349 (parse_unsigned_long): Reject out of range, negative or zero values.
1351 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1354 * testsuite/libgomp.fortran/pr29629.f90: New test.
1356 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1359 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1360 * config/posix95: New directory.
1361 * config/posix95/omp-lock.h: New file.
1362 * config/posix95/lock.c: Likewise.
1364 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1366 * aclocal.m4: Regenerate.
1367 * configure: Regenerate.
1369 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1371 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1374 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1376 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1378 * configure: Regenerate.
1379 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1381 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1385 * testsuite/libgomp.c/nestedfn-4.c: New test.
1386 * testsuite/libgomp.c/nestedfn-5.c: New test.
1387 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1390 * testsuite/libgomp.fortran/condinc1.f: New test.
1391 * testsuite/libgomp.fortran/condinc2.f: New test.
1392 * testsuite/libgomp.fortran/condinc3.f90: New test.
1393 * testsuite/libgomp.fortran/condinc4.f90: New test.
1394 * testsuite/libgomp.fortran/condinc1.inc: New file.
1396 2006-09-18 Tom Tromey <tromey@redhat.com>
1398 * configure: Rebuilt.
1400 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1403 PR preprocessor/14634
1404 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1406 * configure: Regenerate.
1408 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1410 * testsuite/libgomp.fortran/reduction3.f90: Change
1411 -2147483648 to -huge(i)-1 to avoid overflow.
1412 * testsuite/libgomp.fortran/reduction4.f90: Change
1413 Z'ffffffff' to not(0) to avoid overflow.
1415 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1418 * Makefile.am (libsubincludedir): New.
1419 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1420 * Makefile.in: Regenerate.
1422 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1425 * env.c: Include ctype.h.
1426 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1427 leading and/or trailing whitespace and compare strings case
1430 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1433 * testsuite/libgomp.fortran/pr28390.f: New test.
1435 2006-07-05 Eric Christopher <echristo@apple.com>
1437 * configure.ac: Depend addition of -pthread on host OS.
1438 * configure: Regenerate.
1440 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1442 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1443 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1446 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1450 * configure.ac: If neither --enable-linux-futex nor
1451 --disable-linux-futex is passed, determine the default by checking
1452 for compiling and/or running against NPTL. With --enable-linux-futex,
1453 check if SYS_gettid and SYS_futex are defined.
1454 * configure: Rebuilt.
1456 2006-06-14 Richard Henderson <rth@redhat.com>
1459 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1460 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1462 2006-06-09 Richard Henderson <rth@redhat.com>
1464 * env.c (gomp_nthreads_var): Change to unsigned long.
1465 (gomp_run_sched_chunk): Likewise.
1466 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1467 (initialize_env): Initialize gomp_thread_attr.
1468 * libgomp.h (gomp_nthreads_var): Update decl.
1469 (gomp_run_sched_chunk): Likewise.
1470 (gomp_thread_attr): Declare.
1471 * team.c (gomp_thread_attr): Export.
1472 (initialize_team): Don't initialize it.
1474 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1477 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1478 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1480 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1482 * config/mingw32/time.c: New file.
1483 * configure.tgt: Use it.
1485 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1487 * Makefile.am: Add install-html target. Add install-html to .PHONY
1488 * Makefile.in: Regenerate.
1490 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1493 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1494 * testsuite/libgomp.c/critical-1.c: Likewise.
1495 * testsuite/libgomp.c/loop-1.c: Likewise.
1496 * testsuite/libgomp.c/loop-2.c: Likewise.
1497 * testsuite/libgomp.c/single-1.c: Likewise.
1498 * testsuite/libgomp.c/ordered-1.c: Likewise.
1499 * testsuite/libgomp.c/ordered-2.c: Likewise.
1501 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1504 * libgomp.fortran/pr27416-1.f90: New test.
1506 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1509 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1510 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1512 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1515 * testsuite/libgomp.c/pr26943-1.c: New test.
1516 * testsuite/libgomp.c/pr26943-2.c: New test.
1517 * testsuite/libgomp.c/pr26943-3.c: New test.
1518 * testsuite/libgomp.c/pr26943-4.c: New test.
1519 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1520 * testsuite/libgomp.c++/pr26943.C: New test.
1522 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1525 * testsuite/libgomp.c++/pr27337.C: New test.
1527 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1530 * testsuite/libgomp.c/pr26171.c: New test.
1532 2006-04-25 Richard Henderson <rth@redhat.com>
1535 * configure.ac: Use GCC_CHECK_TLS.
1536 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1537 * Makefile.in, aclocal.m4, configure: Regenerate.
1539 2006-04-10 Matthias Klose <doko@debian.org>
1541 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1542 directory names containing underscores.
1544 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1547 * testsuite/libgomp.c++/pr26691.C: New test.
1549 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1551 * testsuite/libgomp.fortran/retval2.f90: New test.
1553 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1555 * testsuite/libgomp.c++: New directory.
1557 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1559 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1560 * config/posix/sem.c: Implement the above.
1562 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1564 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1565 define HAVE_BROKEN_POSIX_SEMAPHORES.
1566 * configure: Rebuilt.
1567 * config.h.in: Rebuilt.
1569 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1572 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1573 for the other pthread check.
1574 * configure: Regenerate.
1575 * config.h.in: Regenerate.
1577 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1581 * Makefile.am (fincludedir): New variable.
1582 (nodist_include_HEADERS): Remove Fortran files.
1583 (nodist_finclude_HEADERS): New variable.
1584 * Makefile.in: Regenerated.
1586 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1588 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1589 Remove tests for returning assumed character length arrays.
1591 2006-02-12 Roger Sayle <roger@eyesopen.com>
1592 John David Anglin <dave@hiauly1.hia.nrc.ca>
1595 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1597 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1599 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1601 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1603 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1604 part of LD_LIBRARY_PATH manually.
1606 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1609 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1612 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1615 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1616 * configure.ac (PERL): Don't set.
1617 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1618 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1619 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1620 * omp.h.in: Wrap the new configure substitutions with @ characters.
1621 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1622 * aclocal.m4, configure, Makefile.in: Regenerate.
1623 * mkomp_h.pl: Delete.
1625 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1628 * configure.ac: Use GCC_HEADER_STDINT.
1629 * libgomp.h: Include gstdint.h.
1630 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1631 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1633 2006-01-24 Richard Henderson <rth@redhat.com>
1636 * configure.ac: Add AM_MAINTAINER_MODE.
1637 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1639 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1641 * Makefile.in: Regenerate.
1642 * testsuite/Makefile.in: Regenerate.
1643 * aclocal.m4: Regenerate.
1645 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1647 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1649 * configure.ac: Add check for loadavg.h.
1650 (link_gomp): Adjust comment.
1651 * configure: Regenerate.
1652 * config.h.in: Regenerate.
1654 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1657 * configure.ac: Remove check for alloca.h.
1658 * configure: Regenerate.
1659 * config.h.in: Regenerate.
1660 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1661 * team.c: Remove use of alloca.h.
1662 Call gomp_alloca instead of alloca.
1664 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1667 * team.c: Add include of alloca.h.
1668 * configure.ac: Add check for alloca.h.
1669 * configure: Regenerate.
1670 * config.h.in: Regenerate.
1672 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1675 * testsuite/libgomp.fortran/pr25219.f90: New test.
1677 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1679 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1680 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1681 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1682 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1683 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1684 testsuite/libgomp.fortran/threadprivate1.f90,
1685 testsuite/libgomp.fortran/threadprivate2.f90,
1686 testsuite/libgomp.fortran/threadprivate3.f90,
1687 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1688 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1689 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1690 effective-target to TLS runtime.
1692 * testsuite/libgomp.fortran/pr25162.f: Require
1693 effective-target TLS runtime.
1695 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1697 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1698 * testsuite/libgomp.c/nestedfn-3.c: New test.
1700 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1703 * testsuite/libgomp.fortran/pr25162.f: New test.
1705 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1707 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1708 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1710 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1712 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1713 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1714 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1715 single.c, team.c, work.c, config/linux/alpha/futex.h,
1716 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1717 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1718 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1719 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1720 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1721 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1722 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1725 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1727 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1728 to nodist_noinst_HEADERS.
1729 * Makefile.in: Rebuilt.
1731 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1732 add integer count field.
1733 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1734 omp_nest_lock_t type change.
1735 (omp_init_nest_lock): Likewise. Initialize count to 0.
1736 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1738 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1740 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1741 Increment count if successful and return the new nesting level.
1742 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1743 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1744 * testsuite/libgomp.c/lib-1.c: New test.
1745 * testsuite/libgomp.fortran/lib1.f90: New test.
1746 * testsuite/libgomp.fortran/lib2.f: New test.
1747 * testsuite/libgomp.fortran/lib3.f: New test.
1749 2005-11-17 Richard Henderson <rth@redhat.com>
1752 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1753 * configure.ac (link_gomp): New. Substitute it.
1754 (AC_CONFIG_FILES): Add libgomp.spec.
1755 * libgomp.spec.in: New file.
1756 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1757 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1759 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1761 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1762 reduction(-:var) behaving the same as reduction(+:var).
1763 * testsuite/libgomp.c/reduction-4.c: New test.
1765 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1767 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1768 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1769 testsuite/libgomp.c/copyin-3.c,
1770 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1771 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1772 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1773 testsuite/libgomp.c++/pr24455.C,
1774 testsuite/libgomp.fortran/threadprivate1.f90,
1775 testsuite/libgomp.fortran/threadprivate2.f90,
1776 testsuite/libgomp.fortran/threadprivate3.f90,
1777 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1778 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1779 testsuite/libgomp.fortran/omp_parse3.f90: Require
1780 effective-target TLS.
1782 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1786 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1789 * team.c (initialize_team): Pass NULL rather than free as
1790 pthread_key_create destructor. Initialize thread specific data
1791 pointer in initial thread to a static local variable rather than
1794 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1796 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1797 its location to ld_library_path.
1799 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1801 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1803 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1805 * testsuite/libgomp.c: Rename from libgomp.dg.
1807 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1809 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1810 threadprivate variable 'i'.
1812 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1814 * config/linux/s390/futex.h: New file.
1815 * configure.tgt: Use it.
1817 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1818 before the parallel.
1820 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1823 * testsuite/libgomp.c++/master-1.C: New test.
1825 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1827 * testsuite/libgomp.dg/copyin-3.c: New test.
1829 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1831 * testsuite/libgomp.fortran/retval1.f90: New test.
1832 * testsuite/libgomp.fortran/vla7.f90: New test.
1834 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1836 * testsuite/libgomp.fortran/vla2.f90: New test.
1837 * testsuite/libgomp.fortran/vla3.f90: New test.
1838 * testsuite/libgomp.fortran/vla4.f90: New test.
1839 * testsuite/libgomp.fortran/vla5.f90: New test.
1840 * testsuite/libgomp.fortran/vla6.f90: New test.
1842 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1844 * config/linux/sparc/futex.h: New file.
1845 * configure.tgt: Use it.
1846 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1848 * critical.c: Include stdlib.h.
1849 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1850 ignoring return value.
1851 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1852 LIBGOMP_CHECK_SYNC_BUILTINS check.
1853 * configure: Rebuilt.
1855 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1857 * testsuite/libgomp.fortran/vla1.f90: New test.
1859 2005-10-31 Richard Henderson <rth@redhat.com>
1861 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1862 setting 's' in different threads.
1864 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1866 * libgomp.h (attribute_hidden, ialias): Define.
1867 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1868 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1869 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1870 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1871 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1872 omp_test_lock, omp_test_nest_lock): Likewise.
1873 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1874 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1875 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1876 omp_test_lock, omp_test_nest_lock): Likewise.
1877 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1878 omp_get_dynamic, omp_get_nested): Likewise.
1879 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1880 omp_get_thread_num, omp_in_parallel): Likewise.
1881 * fortran.c (ialias_redirect): Define.
1882 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1883 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1884 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1885 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1886 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1887 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1888 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1889 omp_get_wtime): Add ialias_redirect.
1891 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1893 * fortran.c: Include stdlib.h.
1895 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1897 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1898 * Makefile.in: Regenerated.
1900 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1902 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1903 * libgomp_f.h.in (omp_check_defines): New function.
1904 * env.c: Include libgomp_f.h.
1905 (initialize_env): Call omp_check_defines.
1907 * testsuite/libgomp.dg/copyin-2.c: New test.
1908 * testsuite/libgomp.c++/copyin-2.C: New test.
1909 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1911 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1912 * testsuite/libgomp.fortran/sharing2.f90: New test.
1914 * testsuite/libgomp.dg/copyin-1.c: New test.
1915 * testsuite/libgomp.c++/copyin-1.C: New test.
1917 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1919 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1921 * testsuite/libgomp.fortran/workshare1.f90: New test.
1923 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1925 * libgomp.fortran/sharing1.f90: New test.
1927 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1930 * testsuite/libgomp.c++/loop-7.C: New test.
1932 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1934 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1935 * testsuite/libgomp.fortran/reduction6.f90: New test.
1936 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1938 2005-10-23 Richard Henderson <rth@redhat.com>
1940 * testsuite/libgomp.c++/ctor-1.C: New.
1941 * testsuite/libgomp.c++/ctor-2.C: New.
1942 * testsuite/libgomp.c++/ctor-3.C: New.
1943 * testsuite/libgomp.c++/ctor-4.C: New.
1944 * testsuite/libgomp.c++/ctor-5.C: New.
1945 * testsuite/libgomp.c++/ctor-6.C: New.
1946 * testsuite/libgomp.c++/ctor-7.C: New.
1947 * testsuite/libgomp.c++/ctor-8.C: New.
1948 * testsuite/libgomp.c++/ctor-9.C: New.
1950 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1953 * testsuite/libgomp.c++/pr24455-1.C: New test.
1954 * testsuite/libgomp.c++/pr24455.C: New test.
1955 * testsuite/libgomp.dg/pr24455-1.c: New test.
1956 * testsuite/libgomp.dg/pr24455.c: New test.
1958 2005-10-20 Richard Henderson <rth@redhat.com>
1960 * testsuite/libgomp.c++/loop-6.C: New.
1961 * testsuite/libgomp.dg/loop-3.c: New.
1963 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1965 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1967 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1970 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1972 * testsuite/libgomp.fortran/jacobi.f: New test.
1974 2005-10-19 Richard Henderson <rth@redhat.com>
1976 * configure.tgt (i?86-linux): Default to with_arch instead of
1977 CFLAGS. Add -mtune to match target_cpu.
1978 (x86_64-linux): Tune to i686.
1980 * fortran.c (omp_test_nest_lock_): Fix typo.
1982 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1984 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1985 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1986 * testsuite/libgomp.dg/ordered-3.c: New test.
1988 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1989 Remove volatile keyword.
1991 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1992 in COMMON block to avoid warnings on 64-bit targets.
1994 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1996 * testsuite/libgomp.dg/shared-3.c: New test.
1998 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2000 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2001 * testsuite/libgomp.fortran/reduction5.f90: New test.
2003 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2005 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2007 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2008 flush loop now that __sync_synchronize has proper memory barrier.
2009 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2010 Add -ffixed-form to dg-options.
2012 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2014 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2015 from subdirectories.
2016 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2017 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2018 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2019 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2020 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2021 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2022 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2023 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2024 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2025 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2026 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2027 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2028 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2029 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2030 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2031 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2032 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2033 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2034 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2035 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2036 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2037 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2038 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2039 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2040 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2042 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2044 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2045 lang_library_path exists. Use find instead of glob to gather tests.
2046 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2048 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2050 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2051 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2052 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2053 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2054 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2055 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2056 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2057 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2058 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2059 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2060 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2061 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2062 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2064 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2066 * testsuite/libgomp.dg/vla-1.c: New test.
2068 * testsuite/libgomp.fortran/reference2.f90: New test.
2070 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2071 declaration of omp_get_thread_num.
2072 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2075 * testsuite/libgomp.fortran/reduction1.f90: New test.
2076 * testsuite/libgomp.fortran/reduction2.f90: New test.
2077 * testsuite/libgomp.fortran/reduction3.f90: New test.
2078 * testsuite/libgomp.fortran/reduction4.f90: New test.
2080 2005-10-13 Richard Henderson <rth@redhat.com>
2082 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2083 * Makefile.in: Regenerate.
2084 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2085 * libgomp.h: Include bar.h.
2086 (struct gomp_barrier): Remove.
2087 (struct gomp_team): Add barrier. Replace master_barrier with
2088 master_release. Replace threads with ordered_release.
2089 (struct gomp_thread): Replace barrier with release.
2090 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2091 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2092 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2093 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2094 (GOMP_single_copy_end): Likewise.
2095 * team.c (gomp_threads_dock): New.
2096 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2097 (gomp_thread_start): Use gomp_barrier_wait.
2098 (new_team, free_team): Update for gomp_team changes.
2099 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2100 (gomp_team_end): Use gomp_barrier_wait.
2101 (initialize_team): Update for gomp_thread changes.
2102 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2103 (gomp_work_share_end_nowait): Use atomic ops when available.
2104 * config/linux/bar.c, config/linux/bar.h: New files.
2105 * config/posix/bar.c, config/posix/bar.h: New files.
2107 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2109 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2110 * testsuite/libgomp.dg/single-2.c: New test.
2112 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2113 lang_link_flags): Unset, so that they aren't inherited from previously
2116 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2118 2005-10-12 Richard Henderson <rth@redhat.com>
2120 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2121 (libgomp_init): Use lang_test_file, lang_library_path, and
2122 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2124 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2125 (lang_test_file, lang_link_flags): New.
2126 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2128 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2129 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2130 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2131 testsuite/libgomp.c++/parallel-1.C,
2132 testsuite/libgomp.c++/reduction-1.C,
2133 testsuite/libgomp.c++/reduction-2.C,
2134 testsuite/libgomp.c++/reduction-3.C,
2135 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2136 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2137 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2138 New files, largely cribbed from the C testsuite.
2140 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2142 * testsuite/libgomp.fortran/character1.f90: New test.
2143 * testsuite/libgomp.fortran/character2.f90: New test.
2145 * testsuite/libgomp.dg/nested-1.c: New test.
2146 * testsuite/libgomp.dg/nested-2.c: New test.
2147 * testsuite/libgomp.fortran/do1.f90: New test.
2148 * testsuite/libgomp.fortran/do2.f90: New test.
2150 * testsuite/libgomp.fortran/reference1.f90: New test.
2152 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2154 * testsuite/libgomp.dg/reduction-1.c: New test.
2155 * testsuite/libgomp.dg/reduction-2.c: New test.
2156 * testsuite/libgomp.dg/reduction-3.c: New test.
2158 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2160 * testsuite/libgomp.dg/atomic-1.c: New test.
2161 * testsuite/libgomp.dg/atomic-2.c: New test.
2163 2005-10-09 Richard Henderson <rth@redhat.com>
2165 * critical.c (atomic_lock): New.
2166 (initialize_critical): Initialize it.
2167 (GOMP_atomic_start, GOMP_atomic_end): New.
2168 * libgomp.map: Export them.
2169 * libgomp_g.h: Declare them.
2171 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2173 2005-10-02 Richard Henderson <rth@redhat.com>
2175 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2176 to XCFLAGS instead of CFLAGS.
2178 2005-09-30 Richard Henderson <rth@redhat.com>
2180 * configure.ac: Determine whether -pthread or -lpthread is needed.
2181 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2182 * Makefine.in, configure: Rebuild.
2184 2005-09-28 Richard Henderson <rth@redhat.com>
2186 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2187 * testsuite/libgomp.dg/omp-single-3.c: New test.
2189 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2191 * testsuite/libgomp.dg/omp-single-2.c: New test.
2192 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2194 2005-09-27 Richard Henderson <rth@redhat.com>
2196 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2197 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2199 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2201 * testsuite/libgomp.dg/omp-loop03.c: New test.
2203 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2205 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2207 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2209 * testsuite/libgomp.dg/omp-single-1.c: New test.
2210 * testsuite/libgomp.dg/shared-1.c: Return 0.
2211 Add prototype for abort.
2212 * testsuite/libgomp.dg/shared-2.c: Likewise.
2214 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2216 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2219 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2221 * testsuite/libgomp.dg/shared-1.c: New test.
2222 * testsuite/libgomp.dg/shared-2.c: New test.
2224 2005-09-24 Richard Henderson <rth@redhat.com>
2226 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2228 2005-09-24 Richard Henderson <rth@redhat.com>
2230 * iter.c (gomp_iter_static_next): Round up when computing number
2231 of iterations. Don't bother distributing a remainder equally.
2233 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2234 Don't call srand. Zero b before testing.
2237 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2239 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2240 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2242 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2244 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2245 without !$omp end do, followed immediately by subroutine end.
2247 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2249 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2251 2005-09-22 Richard Henderson <rth@redhat.com>
2253 * critical.c (GOMP_critical_name_start): Change argument to void**.
2254 Reuse the pointer space if the mutex fits.
2255 (GOMP_critical_name_end): Likewise.
2256 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2257 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2258 (GOMP_critical_name_end): Likewise.
2259 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2260 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2262 2005-09-20 Richard Henderson <rth@redhat.com>
2264 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2265 (create_lock_lock): New.
2266 (initialize_critical): Initialize it.
2267 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2268 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2270 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2272 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2274 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2276 * testsuite/libgomp.dg/omp-loop01.c: New test.
2277 * testsuite/libgomp.dg/omp-loop02.c: New test.
2279 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2281 * configure.ac (AC_PROG_FC): Add.
2282 (USE_FORTRAN): New automake conditional.
2283 * configure: Rebuilt.
2284 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2285 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2286 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2287 Add rules to build them.
2288 * Makefile.in: Rebuilt.
2289 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2291 * libgomp.map: Add Fortran wrappers.
2292 * libgomp_f.h.in: New file.
2293 * omp_lib.h.in: New file.
2294 * omp_lib.f90.in: New file.
2295 * fortran.c: New file.
2296 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2297 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2298 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2299 libgfortran has been built.
2300 * testsuite/libgomp.fortran/fortran.exp: New file.
2301 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2302 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2303 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2304 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2305 * testsuite/libgomp.fortran/omp_hello.f: New test.
2306 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2307 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2308 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2309 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2310 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2311 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2312 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2313 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2315 2005-08-30 Richard Henderson <rth@redhat.com>
2317 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2318 function for when aliases are not usable.
2319 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2320 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2321 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2322 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2323 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2324 GOMP_loop_ordered_guided_next): Likewise.
2325 * ordered.c (GOMP_ordered_start): Likewise.
2327 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2329 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2330 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2331 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2332 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2333 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2334 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2335 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2336 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2337 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2339 2005-07-07 Eric Christopher <echristo@redhat.com>
2340 Diego Novillo <dnovillo@redhat.com>
2342 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2343 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2345 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2346 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2347 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2348 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2349 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2350 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2351 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2353 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2355 * TOPLEVEL.patch: Remove.
2357 2005-05-16 Richard Henderson <rth@redhat.com>
2359 * configure.ac: Test for clock_gettime.
2360 * config.h.in, configure: Rebuild.
2361 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2362 (omp_get_wtime): Use clock_gettime if available.
2363 (omp_get_wtick): Use clock_getres if available.
2365 2005-05-11 Richard Henderson <rth@redhat.com>
2367 * config/linux/ia64/futex.h: New file.
2368 * configure.tgt: Use it.
2370 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2372 2005-05-07 Richard Henderson <rth@redhat.com>
2374 * config/linux/powerpc/futex.h: New file.
2375 * configure.tgt: Use it.
2377 * config/linux/i486/futex.h: Merge ...
2378 * config/linux/x86_64/futex.h: ... into ...
2379 * config/linux/x86/futex.h: ... here.
2380 * configure.tgt: Update to match.
2382 2005-05-06 Richard Henderson <rth@redhat.com>
2384 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2385 * config/linux/i486/futex.h: Likewise.
2386 * config/linux/x86_64/futex.h: Likewise.
2388 * config/linux/lock.c: New file.
2389 * config/linux/omp-lock.h: New file.
2391 * critical.c, env.h: Don't include omp.h
2392 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2393 * config/posix/time.c: Likewise.
2394 * config/posix/omp-lock.h: New file.
2395 * libgomp.h: Include omp-lock.h and omp.h.
2396 * Makefile.am (nodist_include_HEADERS): New.
2398 * configure.ac (PERL): New.
2399 * mkomp_h.pl: New file.
2400 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2402 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2404 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2405 build directory. Re-add -march=i486 hack.
2407 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2408 (libgomp_link_flags): Remove.
2409 (libgomp_initialized): Remove.
2410 (libgomp_init): Don't protect from reinitialization. Copy code
2411 from libstdc++ for getting the multilib set correctly.
2413 2005-05-05 Richard Henderson <rth@redhat.com>
2415 * config/linux/alpha/futex.h: New file.
2416 * configure.tgt (alpha*-*-linux*): Use it.
2418 * config/posix/mutex.c: New file.
2419 * config/posix/sem.c: Use libgomp.h.
2421 * configure.tgt (x86_64-linux): Also test CC for -m32.
2422 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2424 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2427 * Makefile.am (SUBDIRS): New.
2428 (libgomp_la_LDFLAGS): Add -lpthread.
2429 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2430 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2432 * libgomp_g.h: New file.
2433 * libgomp.h: Split out all public declarations to libgomp_g.h.
2434 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2435 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2436 * config/linux/sem.h: Likewise.
2437 * config/posix/sem.h: Likewise.
2439 * Makefile.am (AM_LDFLAGS): New.
2440 (libgomp_version_script): Split out from ...
2441 (libgomp_la_LDFLAGS): ... here.
2442 (libgomp_version_info): New.
2443 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2444 (LIBGOMP_ENABLE): New.
2445 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2446 (LIBGOMP_ENABLE_SYMVERS): New.
2447 * configure.ac (AC_INIT): Version 1.0.
2448 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2449 (enable-linux-futex): Likewise. Rename from enable-futex.
2450 (libtool_VERSION): New.
2451 (LIBGOMP_ENABLE_SYMVERS): Use it.
2452 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2453 * Makefile.in, aclocal.m4, configure: Rebuild.
2455 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2456 (gomp_mutex_unlock_slow): Fix typo.
2457 * config/linux/sem.c: Similarly.
2458 (gomp_sem_post_slow): Fix typo.
2459 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2460 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2461 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2463 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2464 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2465 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2466 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2467 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2468 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2469 LDFLAGS. Pull enable_futex check to top-level.
2470 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2471 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2473 First attempt at real configury.
2474 * Makefile, config.h: Remove file.
2475 * Makefile.am, Makefile.in: New file.
2476 * acinclude.m4 aclocal.m4: New file.
2477 * configure.ac, configure.tgt, configure: New file.
2479 * config/posix/lock.c: Rename from sys-lock.c.
2480 * config/posix/mutex.h: Rename from sys-mutex.h.
2481 * config/posix/sem.c: Rename from sys-sem.c.
2482 * config/posix/sem.h: Rename from sys-sem.h.
2483 * config/posix/proc.c: Rename from sys-proc.c.
2484 * config/posix/time.c: Rename from sys-proc.c.
2486 * config/linux/mutex.c: New file.
2487 * config/linux/mutex.h: New file.
2488 * config/linux/sem.c: New file.
2489 * config/linux/sem.h: New file.
2490 * config/linux/i486/futex.h: New file.
2491 * config/linux/x86_64/futex.h: New file.
2493 2005-05-04 Richard Henderson <rth@redhat.com>
2495 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2496 * libgomp.h: Declare them.
2497 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2498 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2500 2005-05-04 Richard Henderson <rth@redhat.com>
2502 * libgomp-1 code drop
2504 2005-05-04 Richard Henderson <rth@redhat.com>
2506 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2507 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2508 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2509 (gomp_iter_static_next): Update.
2510 (gomp_ordered_static_next): Update.
2511 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2512 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2513 totally empty range.
2514 (gomp_loop_ordered_static_next): Refine test for calling
2515 gomp_ordered_static_next.
2516 * testsuite/ordered-1.c: Add case for more threads than iterations.
2518 * iter.c (gomp_iter_runtime_next_locked): Remove.
2519 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2520 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2521 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2522 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2523 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2524 gomp_loop_ordered_guided_next): Downcase name, make static, add
2525 an external alias with the old name.
2526 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2527 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2528 switch and call one of the above static functions.
2529 * libgomp.h: Update.
2531 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2532 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2533 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2534 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2535 GOMP_loop_ordered_guided_start): Update to match.
2536 * sections.c (GOMP_sections_start): Likewise.
2537 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2539 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2540 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2541 Use bounds check instead of modulus.
2542 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2543 (gomp_ordered_last): Don't sync with ordered_owner here.
2544 (gomp_ordered_next): Likewise.
2545 (gomp_ordered_static_loop_next): Likewise.
2546 * loop.c, libgomp.h: Update to match.
2548 * libgomp.h (GOMP_barrier): Declare.
2550 * testsuite/barrier-1.c: New file.
2551 * testsuite/critical-1.c: New file.
2552 * testsuite/ordered-2.c: New file.
2553 * testsuite/ordered-1.c: New file.
2554 * testsuite/sections-1.c: New file.
2555 * testsuite/single-1.c: New file.
2556 * testsuite/Makefile (TESTS): Add them.
2558 2005-05-04 Richard Henderson <rth@redhat.com>
2560 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2561 * loop.c (GOMP_loop_static_start): If not the startup thread,
2562 acquire the mutex to wait for initialization complete.
2563 (GOMP_loop_ordered_static_start): Likewise.
2564 (GOMP_loop_ordered_runtime_start): Likewise.
2565 (GOMP_loop_ordered_static_first): Remove.
2566 (GOMP_loop_ordered_dynamic_first): Remove.
2567 (GOMP_loop_ordered_guided_first): Remove.
2568 (GOMP_loop_ordered_runtime_first): Remove.
2569 * ordered.c (gomp_ordered_loop_first): Post to own release when
2570 we're the first thread.
2571 (gomp_ordered_loop_last): Wait on release if not owner.
2572 (gomp_ordered_loop_next): Likewise.
2573 (gomp_ordered_static_loop_init): New.
2574 (gomp_ordered_static_loop_next): Use ordered_owner.
2575 (GOMP_ordered_start): Likewise.
2576 * work.c (gomp_new_work_share): Initialize ordered_owner.
2578 2005-05-03 Richard Henderson <rth@redhat.com>
2580 * Makefile (OPT): New.
2583 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2584 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2585 * libgomp.h, libgomp.map, NOTES: Update to match.
2587 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2588 Add initialized and thr members.
2589 (gomp_thread_start): Pause when initially spawned to wait for
2590 the whole team to be created.
2591 (gomp_team_start): Release team members at the end.
2593 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2594 (f_foo_1): Use GOMP_loop_end.
2595 (f_foo_2): Use GOMP_loop_end_nowait.
2597 * testsuite/loop-2.c: New file.
2598 * testsuite/Makefile (TESTS): Add it.
2600 2005-05-03 Richard Henderson <rth@redhat.com>
2602 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2603 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2604 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2607 * testsuite/Makefile: New file.
2608 * testsuite/loop-1.c: New file.
2610 2005-05-03 Richard Henderson <rth@redhat.com>
2612 Initial implementation and checkin.