1 2009-08-19 Tobias Burnus <burnus@net-b.de>
4 omp_lib.h.in: Fix -std=f95 errors.
7 2009-08-14 David Edelsohn <edelsohn@gnu.org>
9 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
11 * testsuite/libgomp.graphite/graphite.exp: New.
13 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
15 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18 2009-08-04 David Daney <ddaney@caviumnetworks.com>
20 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
21 needed memory barrier semantics.
22 * config/linux/mips/mutex.h: New file.
24 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
28 2009-07-16 Joseph Myers <joseph@codesourcery.com>
30 * configure: Regenerate.
32 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
37 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
38 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
39 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
41 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
43 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
44 options when choosing a multilib.
46 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
48 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
49 ld_library_path. Use add_path. Add just find_libgcc_s to
50 ld_library_path, not every libgcc multilib directory.
51 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
52 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
53 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
55 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
57 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
59 * Makefile.am (LTLDFLAGS): Define.
61 * Makefile.in: Regenerate.
63 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
66 * testsuite/libgomp.fortran/fortran.exp: Don't link with
67 libgfortranbegin, check existence of libgfortran.a instead of
70 2009-05-20 Jakub Jelinek <jakub@redhat.com>
73 * team.c (gomp_thread_start): Destroy thr->release semaphore.
74 (gomp_free_pool_helper): Likewise.
76 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
77 Jakub Jelinek <jakub@redhat.com>
80 * testsuite/libgomp.fortran/workshare2.f90: New test.
82 2009-04-09 Nick Clifton <nickc@redhat.com>
84 * iter.c: Change copyright header to refer to version 3 of the
85 GNU General Public License with version 3.1 of the GCC Runtime
86 Library Exception and to point readers at the COPYING3 and
87 COPYING3.RUNTIME files and the FSF's license web page.
89 * barrier.c: Likewise.
90 * config/bsd/proc.c: Likewise.
91 * config/linux/affinity.c: Likewise.
92 * config/linux/alpha/futex.h: Likewise.
93 * config/linux/bar.c: Likewise.
94 * config/linux/bar.h: Likewise.
95 * config/linux/ia64/futex.h: Likewise.
96 * config/linux/ia64/mutex.h: Likewise.
97 * config/linux/lock.c: Likewise.
98 * config/linux/mips/futex.h: Likewise.
99 * config/linux/mutex.c: Likewise.
100 * config/linux/mutex.h: Likewise.
101 * config/linux/powerpc/futex.h: Likewise.
102 * config/linux/proc.c: Likewise.
103 * config/linux/ptrlock.c: Likewise.
104 * config/linux/ptrlock.h: Likewise.
105 * config/linux/s390/futex.h: Likewise.
106 * config/linux/sem.c: Likewise.
107 * config/linux/sem.h: Likewise.
108 * config/linux/sparc/futex.h: Likewise.
109 * config/linux/wait.h: Likewise.
110 * config/linux/x86/futex.h: Likewise.
111 * config/mingw32/proc.c: Likewise.
112 * config/mingw32/time.c: Likewise.
113 * config/posix/affinity.c: Likewise.
114 * config/posix/bar.c: Likewise.
115 * config/posix/bar.h: Likewise.
116 * config/posix/lock.c: Likewise.
117 * config/posix/mutex.h: Likewise.
118 * config/posix/proc.c: Likewise.
119 * config/posix/ptrlock.h: Likewise.
120 * config/posix/sem.c: Likewise.
121 * config/posix/sem.h: Likewise.
122 * config/posix/time.c: Likewise.
123 * config/posix95/lock.c: Likewise.
124 * critical.c: Likewise.
127 * fortran.c: Likewise.
128 * iter_ull.c: Likewise.
129 * libgomp.h: Likewise.
130 * libgomp_f.h.in: Likewise.
131 * libgomp_g.h: Likewise.
133 * loop_ull.c: Likewise.
134 * omp.h.in: Likewise.
135 * omp_lib.f90.in: Likewise.
136 * omp_lib.h.in: Likewise.
137 * ordered.c: Likewise.
138 * parallel.c: Likewise.
139 * sections.c: Likewise.
140 * single.c: Likewise.
145 2009-04-09 Jakub Jelinek <jakub@redhat.com>
147 * testsuite/config/default.exp: Change copyright header to refer to
148 version 3 of the GNU General Public License and to point readers
149 at the COPYING3 file and the FSF's license web page.
151 2009-04-08 Jakub Jelinek <jakub@redhat.com>
154 * libgomp.c++/pr39573.C: New test.
156 2009-04-01 Jakub Jelinek <jakub@redhat.com>
159 * testsuite/libgomp.c/pr39591-1.c: New test.
160 * testsuite/libgomp.c/pr39591-2.c: New test.
161 * testsuite/libgomp.c/pr39591-3.c: New test.
163 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
165 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
166 * testsuite/libgomp.c/atomic-6.c: Ditto.
168 2009-03-23 Jakub Jelinek <jakub@redhat.com>
171 * testsuite/libgomp.c/loop-12.c: New test.
172 * testsuite/libgomp.c/loop-11.c: New test.
173 * testsuite/libgomp.c++/loop-11.C: New test.
174 * testsuite/libgomp.c++/loop-12.C: New test.
175 * testsuite/libgomp.c++/for-8.C: New test.
177 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
179 * configure: Regenerate.
181 2009-02-11 Jakub Jelinek <jakub@redhat.com>
184 * testsuite/libgomp.c/pr39154.c: New test.
186 2009-01-30 Ian Lance Taylor <iant@google.com>
188 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
189 libgomp_ld_is_gold. Get gold version number.
190 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
191 * configure: Rebuild.
193 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
195 * testsuite/lib/libgomp.exp: Add -B option for targets that
196 use libgfortran.a%s in their specs.
198 2009-01-07 Jakub Jelinek <jakub@redhat.com>
201 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
202 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
203 HAVE_AS_SYMVER_DIRECTIVE is not defined.
204 * configure: Regenerated.
205 * config.h.in: Likewise.
207 2008-12-28 Jakub Jelinek <jakub@redhat.com>
210 * testsuite/libgomp.c/pr38650.c: New test.
211 * testsuite/libgomp.c++/pr38650.C: New test.
213 2008-12-27 Jakub Jelinek <jakub@redhat.com>
215 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
217 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
219 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
221 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
223 * configure: Regenerate.
225 2008-12-08 Jakub Jelinek <jakub@redhat.com>
228 * testsuite/libgomp.c/pr36802-1.c: New test.
229 * testsuite/libgomp.c/pr36802-2.c: New test.
230 * testsuite/libgomp.c/pr36802-3.c: New test.
232 2008-12-01 Janis Johnson <janis187@us.ibm.com>
235 * config/linux/powerpc/mutex.h: New.
237 2008-12-01 Jakub Jelinek <jakub@redhat.com>
240 * testsuite/libgomp.c++/for-7.C: New test.
243 * testsuite/libgomp.c++/for-6.C: New test.
245 2008-11-26 Janis Johnson <janis187@us.ibm.com>
248 * testsuite/lib/libgomp.exp: Include new timeout library files.
249 (libgomp_target_compile): Set timeout value from new proc.
251 2008-11-13 Steve Ellcey <sje@cup.hp.com>
254 * config/linux/ia64/mutex.h: New.
256 2008-11-04 Tobias Burnus <burnus@net-b.de>
259 * libgomp.texi (Runtime library routines, environment variables):
260 Update for OpenMP version 3.0.
262 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
263 Steve Ellcey <sje@cup.hp.com>
265 * configure: Regenerate for new libtool.
266 * Makefile.in: Ditto.
267 * testsuite/Makefile.in: Ditto.
269 2008-09-19 Jakub Jelinek <jakub@redhat.com>
270 Andreas Tobler <a.tobler@schweiz.org>
272 * config/bsd/proc.c: New file.
273 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
274 * configure.ac: Check for header <sys/sysctl.h>
275 * configure: Regenerate.
276 * config.h.in: Likewise.
278 2008-09-05 Janis Johnson <janis187@us.ibm.com>
280 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
282 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
284 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
285 * Makefile.in: Regenerated.
286 * testsuite/Makefile.in: Regenerated.
288 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
290 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
291 depend on blddir if blddir exists.
292 (libgomp_target_compile): Likewise.
293 * testsuite/libgomp.c++/c++.exp: Likewise.
294 * testsuite/libgomp.fortran/fortran.exp: Likewise.
296 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
298 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
299 Do not list GPL as Invariant Section.
301 2008-07-28 Ilie Garbacea <ilie@mips.com>
302 Chao-ying Fu <fu@mips.com>
304 * configure.tgt: Enable futex for MIPS.
305 * config/linux/mips/futex.h: New file.
307 2008-07-16 Jakub Jelinek <jakub@redhat.com>
309 * team.c (gomp_team_end): Free team immediately if it has
312 2008-07-08 David Edelsohn <edelsohn@gnu.org>
314 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
315 * testsuite/libgomp.fortran/fortran.exp: Same.
316 * testsuite/libgomp.c/c.exp: Same.
317 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
318 directory to library path first.
320 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
322 * env.c (parse_stacksize): Add cast to avoid warning.
323 (parse_spincount): Likewise.
325 2008-06-27 Jakub Jelinek <jakub@redhat.com>
327 * testsuite/libgomp.c/loop-10.c: New test.
328 * libgomp.c/loop-3.c (main): Add lastprivate clause.
329 * libgomp.c++/loop-6.C (main): Likewise.
332 * testsuite/libgomp.c/debug-1.c: New test.
334 2008-06-19 Jakub Jelinek <jakub@redhat.com>
336 * testsuite/libgomp.c/nqueens-1.c: New test.
339 * testsuite/libgomp.c++/task-7.C: New function.
341 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
343 * configure: Regenerate.
345 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
347 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
348 mutex when HAVE_SYNC_BUILTINS isn't defined.
350 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
352 * libgomp.texi (omp_test_lock): Fix typo.
354 2008-06-12 Tobias Burnus <burnus@net-b.de>
356 * omp_lib.f90.in: Add "implicit none".
358 2008-06-12 Jakub Jelinek <jakub@redhat.com>
361 * testsuite/libgomp.c/reduction-5.c: New test.
363 2008-06-11 Jakub Jelinek <jakub@redhat.com>
365 * libgomp.h (struct gomp_task): Add in_tied_task field.
366 * task.c (gomp_init_task): Initialize it.
367 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
368 unconditionally. Don't call gomp_team_barrier_wake if
369 current task is implicit or if(0) from implicit and number of
370 running tasks is equal to nthreads - 1.
373 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
374 omp_get_team_size_8): Fix pastos.
377 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
378 * configure: Regenerated.
379 * config.h.in: Regenerated.
380 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
383 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
386 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
387 (GOMP_loop_ull_dynamic_start): Likewise.
388 (GOMP_loop_ull_guided_start): Likewise.
389 (GOMP_loop_ull_ordered_static_start): Likewise.
390 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
391 (GOMP_loop_ull_ordered_guided_start): Likewise.
393 2008-06-06 Jakub Jelinek <jakub@redhat.com>
394 Richard Henderson <rth@redhat.com>
395 Ulrich Drepper <drepper@redhat.com>
396 Jakob Blomer <jakob.blomer@ira.uka.de>
398 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
399 Substitute also OMP_*LOCK_25*.
400 * configure: Regenerated.
401 * config.h.in: Regenerated.
402 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
403 ptrlock.c and task.c.
404 * Makefile.in: Regenerated.
405 * testsuite/Makefile.in: Regenerated.
407 * loop_ull.c: New file.
408 * iter_ull.c: New file.
409 * libgomp.h: Include ptrlock.h.
410 (enum gomp_task_kind): New type.
411 (struct gomp_team): Add task_lock, task_queue, task_count,
412 task_running_count, single_count fields. Add
413 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
414 Remove work_share_lock, generation_mask,
415 oldest_live_gen, num_live_gen and init_work_shares fields, add
416 work work_share_list_alloc, work_share_list_free and work_share_chunk
417 fields. Change work_shares from pointer to pointers into an array.
418 Change ordered_release field into gomp_sem_t ** from flexible array
419 member. Add implicit_task and initial_work_shares fields.
420 Move close to the end of the struct.
421 (struct gomp_team_state): Add single_count, last_work_share,
422 active_level and level fields, remove work_share_generation.
423 (gomp_barrier_handle_tasks): New prototype.
424 (gomp_finish_task): New inline function.
425 (struct gomp_work_share): Move chunk_size, end, incr into
426 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
427 next_ll fields. Reshuffle fields. Add next_alloc,
428 next_ws, next_free and inline_ordered_team_ids fields, change
429 ordered_team_ids into pointer from flexible array member.
430 Add mode field. Put lock and next into a different cache line
431 from most of the write-once fields.
432 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
433 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
434 gomp_iter_ull_guided_next): New prototypes.
435 (gomp_new_icv): New prototype.
436 (struct gomp_thread): Add thread_pool and task fields.
437 (struct gomp_thread_pool): New type.
438 (gomp_new_team): New prototype.
439 (gomp_team_start): Change type of last argument.
440 (gomp_new_work_share): Removed.
441 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
442 (gomp_work_share_init_done): New static inline.
443 (gomp_throttled_spin_count_var, gomp_available_cpus,
444 gomp_managed_threads): New extern decls.
445 (gomp_init_task): New prototype.
446 (gomp_spin_count_var): New extern var decl.
447 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
448 or no alias support, or if not PIC.
449 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
450 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
451 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
452 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
453 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
454 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
455 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
456 gomp_test_nest_lock_25): New prototypes.
457 (omp_lock_symver, strong_alias): Define.
458 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
460 (gomp_end_task): New.
461 (struct gomp_task_icv, gomp_global_icv): New.
462 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
463 (struct gomp_task): New.
464 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
465 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
467 (gomp_schedule_type): Reorder enum to match
469 * team.c (struct gomp_thread_start_data): Add thread_pool and task
471 (gomp_thread_start): Add gomp_team_barrier_wait call.
472 For non-nested case remove clearing of docked thread thr fields.
473 Use pool fields instead of global gomp_* variables. Use
474 gomp_barrier_wait_last when needed. Initialize ts.active_level.
475 Create tasks for each member thread.
476 (free_team): Only destroy team barrier, task_lock here and free it.
477 (gomp_free_thread): Free last_team if non-NULL.
478 (gomp_team_end): Call gomp_team_barrier_wait instead of
479 gomp_barrier_wait. For nested case call one extra
480 gomp_barrier_wait. Move here some destruction from free_team.
481 Call free_team on pool->last_team if any, rather than freeing
482 current team. Destroy work_share_list_free_lock ifndef
484 (gomp_new_icv): New function.
485 (gomp_threads, gomp_threads_size, gomp_threads_used,
486 gomp_threads_dock): Removed.
487 (gomp_thread_destructor): New variable.
488 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
490 (gomp_team_start): Create new pool if current thread doesn't have
491 one. Use pool fields instead of global gomp_* variables.
492 Initialize thread_pool field for new threads. Clear single_count.
493 Change last argument from ws to team, don't create
494 new team, set ts.work_share to &team->work_shares[0] and clear
495 ts.last_work_share. Don't clear ts.work_share_generation.
496 If number of threads changed, adjust atomically gomp_managed_threads.
497 Use gomp_init_task instead of gomp_new_task,
498 set thr->task to the corresponding implicit_task array entry.
499 Create tasks for each member thread. Initialize ts.level.
500 (initialize_team): Call pthread_key_create on
501 gomp_thread_destructor.
502 (team_destructor): New function.
504 (gomp_new_team): New function.
505 (free_team): Free gomp_work_share blocks chained through next_alloc,
506 instead of freeing work_shares and destroying work_share_lock.
507 (gomp_team_end): Call gomp_fini_work_share. If number of threads
508 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
509 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
510 of gomp_barrier_wait.
511 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
512 instead of gomp_barrier_wait. Call gomp_work_share_init_done
513 if gomp_work_share_start returned true. Don't unlock ws->lock.
514 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
515 of gomp_barrier_wait.
516 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
517 gomp_work_share_init_done if gomp_work_share_start returned true.
518 Don't unlock ws->lock.
519 * work.c: Include stddef.h.
520 (free_work_share): Use work_share_list_free_lock instead
521 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
522 Call gomp_fini_work_share and then either free ws if orphaned, or
523 put it into work_share_list_free list of the current team.
524 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
526 (gomp_work_share_start, gomp_work_share_end,
527 gomp_work_share_end_nowait): Rewritten.
528 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
529 (openmp_version): Set to 200805.
530 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
531 omp_sched_guided, omp_sched_auto): New parameters.
532 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
533 omp_set_max_active_levels, omp_get_max_active_levels,
534 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
535 omp_get_active_level): New interfaces.
536 * omp_lib.h.in (openmp_version): Set to 200805.
537 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
538 omp_sched_guided, omp_sched_auto): New parameters.
539 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
540 omp_set_max_active_levels, omp_get_max_active_levels,
541 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
542 omp_get_active_level): New externals.
543 * loop.c: Include limits.h.
544 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
546 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
547 Likewise. Use gomp_icv.
548 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
550 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
551 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
552 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
553 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
554 don't unlock ws->lock, otherwise lock it.
555 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
556 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
557 (gomp_parallel_loop_start): Call gomp_new_team instead of
558 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
559 Adjust gomp_team_start caller. Pass 0 as second argument to
560 gomp_resolve_num_threads.
561 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
562 If adding ws->chunk_size nthreads + 1 times after end won't
563 overflow, set ws->mode to 1.
564 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
565 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
566 GOMP_loop_ull_ordered_static_start,
567 GOMP_loop_ull_ordered_dynamic_start,
568 GOMP_loop_ull_ordered_guided_start,
569 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
570 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
571 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
572 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
573 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
575 * libgomp.map: Export lock routines also @@OMP_2.0.
576 (GOMP_loop_ordered_dynamic_first,
577 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
578 GOMP_loop_ordered_static_first): Remove.
579 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
580 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
581 GOMP_loop_ull_ordered_dynamic_next,
582 GOMP_loop_ull_ordered_dynamic_start,
583 GOMP_loop_ull_ordered_guided_next,
584 GOMP_loop_ull_ordered_guided_start,
585 GOMP_loop_ull_ordered_runtime_next,
586 GOMP_loop_ull_ordered_runtime_start,
587 GOMP_loop_ull_ordered_static_next,
588 GOMP_loop_ull_ordered_static_start,
589 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
590 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
591 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
592 (omp_set_schedule, omp_get_schedule,
593 omp_get_thread_limit, omp_set_max_active_levels,
594 omp_get_max_active_levels, omp_get_level,
595 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
596 omp_set_schedule_, omp_set_schedule_8_,
597 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
598 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
599 omp_get_max_active_levels_, omp_get_level_,
600 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
601 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
602 New exports @@OMP_3.0.
603 * omp.h.in (omp_sched_t): New type.
604 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
605 omp_set_max_active_levels, omp_get_max_active_levels,
606 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
607 omp_get_active_level): New prototypes.
608 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
609 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
610 gomp_thread_limit_var, gomp_remaining_threads_count,
611 gomp_remaining_threads_lock): New variables.
612 (parse_spincount): New function.
613 (initialize_env): Call gomp_init_num_threads unconditionally.
614 Initialize gomp_available_cpus. Call parse_spincount,
615 initialize gomp_{,throttled_}spin_count_var
616 depending on presence and value of OMP_WAIT_POLICY and
617 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
618 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
619 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
620 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
621 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
622 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
623 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
624 (gomp_global_icv): New.
625 (parse_schedule): Use it. Parse "auto".
626 (omp_set_num_threads): Use gomp_icv.
627 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
629 (omp_get_max_threads): Move from parallel.c.
630 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
631 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
633 (parse_stacksize, parse_wait_policy): New functions.
634 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
635 both wrappers for compatibility and new locks.
636 (omp_set_schedule, omp_get_schedule,
637 omp_get_thread_limit, omp_set_max_active_levels,
638 omp_get_max_active_levels, omp_get_level,
639 omp_get_ancestor_thread_num, omp_get_team_size,
640 omp_get_active_level): New ialias_redirect.
641 (omp_set_schedule_, omp_set_schedule_8_,
642 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
643 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
644 omp_get_max_active_levels_, omp_get_level_,
645 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
646 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
648 * parallel.c: Include limits.h.
649 (gomp_resolve_num_threads): Add count argument. Rewritten.
650 (GOMP_parallel_start): Call gomp_new_team and pass that as last
651 argument to gomp_team_start. Pass 0 as second argument to
652 gomp_resolve_num_threads.
653 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
654 if gomp_thread_limit_var != ULONG_MAX.
655 (omp_in_parallel): Implement using ts.active_level.
656 (omp_get_max_threads): Move to env.c.
657 (omp_get_level, omp_get_ancestor_thread_num,
658 omp_get_team_size, omp_get_active_level): New functions,
660 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
661 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
662 gomp_iter_dynamic_next instead of the _locked variant and don't take
663 lock around it, otherwise acquire it before calling
664 gomp_iter_dynamic_next_locked.
665 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
666 gomp_iter_dynamic_next instead of the _locked variant and don't take
668 (GOMP_parallel_sections_start): Call gomp_new_team instead of
669 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
670 Adjust gomp_team_start caller. Pass count as second argument to
671 gomp_resolve_num_threads, don't adjust num_threads after the call.
673 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
674 ws->chunk_size by incr.
675 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
677 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
679 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
680 (omp_check_defines): Check even the compat defines.
681 * config/linux/ptrlock.c: New file.
682 * config/linux/ptrlock.h: New file.
683 * config/linux/wait.h: New file.
684 * config/posix/ptrlock.c: New file.
685 * config/posix/ptrlock.h: New file.
686 * config/linux/bar.h (gomp_team_barrier_wait,
687 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
688 (gomp_team_barrier_set_task_pending,
689 gomp_team_barrier_clear_task_pending,
690 gomp_team_barrier_set_waiting_for_tasks,
691 gomp_team_barrier_waiting_for_tasks,
692 gomp_team_barrier_done): New inlines.
693 (gomp_barrier_t): Rewritten.
694 (gomp_barrier_state_t): New typedef.
695 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
696 gomp_barrier_wait_start): Rewritten.
697 (gomp_barrier_wait_end): Change second argument to
698 gomp_barrier_state_t.
699 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
701 * config/linux/bar.c: Include wait.h instead of libgomp.h and
703 (gomp_barrier_wait_end): Rewritten.
704 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
705 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
706 * config/posix/bar.h (gomp_barrier_t): Add generation field.
707 (gomp_barrier_state_t): New typedef.
708 (gomp_team_barrier_wait,
709 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
710 (gomp_barrier_wait_start): Or all but low 2 bits from generation
711 into the return value. Return gomp_barrier_state_t.
712 (gomp_team_barrier_set_task_pending,
713 gomp_team_barrier_clear_task_pending,
714 gomp_team_barrier_set_waiting_for_tasks,
715 gomp_team_barrier_waiting_for_tasks,
716 gomp_team_barrier_done): New inlines.
717 (gomp_barrier_wait_end): Change second argument to
718 gomp_barrier_state_t.
719 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
721 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
722 (gomp_barrier_wait_end): Change second argument to
723 gomp_barrier_state_t.
724 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
725 gomp_team_barrier_wake): New functions.
726 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
728 (gomp_futex_wake, gomp_futex_wait): New variables.
729 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
730 * config/linux/lock.c: Rewrite to make locks task owned,
731 for backwards compatibility provide the old entrypoints
732 if symbol versioning. Include wait.h instead of libgomp.h and
734 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
735 * config/posix95/lock.c: Rewrite to make locks task owned,
736 for backwards compatibility provide the old entrypoints
737 if symbol versioning.
738 * config/posix/lock.c: Rewrite to make locks task owned,
739 for backwards compatibility provide the old entrypoints
740 if symbol versioning.
741 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
742 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
743 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
744 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
745 (sys_futex0): Return error code.
746 (futex_wake, futex_wait): If ENOSYS was returned, clear
747 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
748 (cpu_relax, atomic_write_barrier): New static inlines.
749 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
750 (futex_wake, futex_wait): If ENOSYS was returned, clear
751 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
752 (cpu_relax, atomic_write_barrier): New static inlines.
753 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
754 (sys_futex0): Return error code.
755 (futex_wake, futex_wait): If ENOSYS was returned, clear
756 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
757 (cpu_relax, atomic_write_barrier): New static inlines.
758 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
759 (sys_futex0): Return error code.
760 (futex_wake, futex_wait): If ENOSYS was returned, clear
761 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
762 (cpu_relax, atomic_write_barrier): New static inlines.
763 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
764 (sys_futex0): Return error code.
765 (futex_wake, futex_wait): If ENOSYS was returned, clear
766 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
767 (cpu_relax, atomic_write_barrier): New static inlines.
768 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
769 (sys_futex0): Return error code.
770 (futex_wake, futex_wait): If ENOSYS was returned, clear
771 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
772 (cpu_relax, atomic_write_barrier): New static inlines.
773 * config/linux/sem.c: Include wait.h instead of libgomp.h and
775 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
776 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
777 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
779 (omp_nest_lock_t): Change owner into void *, add lock field.
780 * config/posix95/omp-lock.h: Include semaphore.h.
781 (omp_lock_25_t, omp_nest_lock_25_t): New types.
782 (omp_lock_t): Use sem_t instead of mutex if semaphores
784 (omp_nest_lock_t): Likewise. Change owner to void *.
785 * config/posix/omp-lock.h: Include semaphore.h.
786 (omp_lock_25_t, omp_nest_lock_25_t): New types.
787 (omp_lock_t): Use sem_t instead of mutex if semaphores
789 (omp_nest_lock_t): Likewise. Add owner field.
791 2008-06-06 Jakub Jelinek <jakub@redhat.com>
793 * testsuite/libgomp.c/collapse-1.c: New test.
794 * testsuite/libgomp.c/collapse-2.c: New test.
795 * testsuite/libgomp.c/collapse-3.c: New test.
796 * testsuite/libgomp.c/icv-1.c: New test.
797 * testsuite/libgomp.c/icv-2.c: New test.
798 * testsuite/libgomp.c/lib-2.c: New test.
799 * testsuite/libgomp.c/lock-1.c: New test.
800 * testsuite/libgomp.c/lock-2.c: New test.
801 * testsuite/libgomp.c/lock-3.c: New test.
802 * testsuite/libgomp.c/loop-4.c: New test.
803 * testsuite/libgomp.c/loop-5.c: New test.
804 * testsuite/libgomp.c/loop-6.c: New test.
805 * testsuite/libgomp.c/loop-7.c: New test.
806 * testsuite/libgomp.c/loop-8.c: New test.
807 * testsuite/libgomp.c/loop-9.c: New test.
808 * testsuite/libgomp.c/nested-3.c: New test.
809 * testsuite/libgomp.c/nestedfn-6.c: New test.
810 * testsuite/libgomp.c/sort-1.c: New test.
811 * testsuite/libgomp.c/task-1.c: New test.
812 * testsuite/libgomp.c/task-2.c: New test.
813 * testsuite/libgomp.c/task-3.c: New test.
814 * testsuite/libgomp.c/task-4.c: New test.
815 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
816 to C++ testsuite default compiler options.
817 * testsuite/libgomp.c++/collapse-1.C: New test.
818 * testsuite/libgomp.c++/collapse-2.C: New test.
819 * testsuite/libgomp.c++/ctor-10.C: New test.
820 * testsuite/libgomp.c++/for-1.C: New test.
821 * testsuite/libgomp.c++/for-2.C: New test.
822 * testsuite/libgomp.c++/for-3.C: New test.
823 * testsuite/libgomp.c++/for-4.C: New test.
824 * testsuite/libgomp.c++/for-5.C: New test.
825 * testsuite/libgomp.c++/loop-8.C: New test.
826 * testsuite/libgomp.c++/loop-9.C: New test.
827 * testsuite/libgomp.c++/loop-10.C: New test.
828 * testsuite/libgomp.c++/task-1.C: New test.
829 * testsuite/libgomp.c++/task-2.C: New test.
830 * testsuite/libgomp.c++/task-3.C: New test.
831 * testsuite/libgomp.c++/task-4.C: New test.
832 * testsuite/libgomp.c++/task-5.C: New test.
833 * testsuite/libgomp.c++/task-6.C: New test.
834 * testsuite/libgomp.fortran/allocatable1.f90: New test.
835 * testsuite/libgomp.fortran/allocatable2.f90: New test.
836 * testsuite/libgomp.fortran/allocatable3.f90: New test.
837 * testsuite/libgomp.fortran/allocatable4.f90: New test.
838 * testsuite/libgomp.fortran/collapse1.f90: New test.
839 * testsuite/libgomp.fortran/collapse2.f90: New test.
840 * testsuite/libgomp.fortran/collapse3.f90: New test.
841 * testsuite/libgomp.fortran/collapse4.f90: New test.
842 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
843 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
844 * testsuite/libgomp.fortran/lib4.f90: New test.
845 * testsuite/libgomp.fortran/lock-1.f90: New test.
846 * testsuite/libgomp.fortran/lock-2.f90: New test.
847 * testsuite/libgomp.fortran/nested1.f90: New test.
848 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
849 * testsuite/libgomp.fortran/strassen.f90: New test.
850 * testsuite/libgomp.fortran/tabs1.f90: New test.
851 * testsuite/libgomp.fortran/tabs2.f: New test.
852 * testsuite/libgomp.fortran/task1.f90: New test.
853 * testsuite/libgomp.fortran/task2.f90: New test.
854 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
855 * testsuite/libgomp.fortran/vla5.f90: Likewise.
856 * testsuite/libgomp.c/pr26943-2.c: Likewise.
857 * testsuite/libgomp.c/pr26943-3.c: Likewise.
858 * testsuite/libgomp.c/pr26943-4.c: Likewise.
860 2008-05-23 Jakub Jelinek <jakub@redhat.com>
863 * testsuite/libgomp.c++/ctor-11.C: New test.
864 * testsuite/libgomp.c++/ctor-12.C: New test.
866 2008-05-15 Janis Johnson <janis187@us.ibm.com>
868 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
870 2008-05-07 Jakub Jelinek <jakub@redhat.com>
873 * testsuite/libgomp.c/atomic-5.c: New test.
874 * testsuite/libgomp.c/atomic-6.c: New test.
875 * testsuite/libgomp.c/autopar-1.c: New test.
877 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
879 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
880 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
881 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
882 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
883 * configure: Regenerate.
884 * Makefile.in, testsuite/Makefile.in: Likewise.
886 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
889 * aclocal.m4: Regenerate.
890 * configure: Regenerate.
892 2008-03-18 Jakub Jelinek <jakub@redhat.com>
895 * testsuite/libgomp.c/atomic-4.c: New test.
898 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
899 (gomp_iter_guided_next): Likewise.
900 * testsuite/libgomp.c/pr35625.c: New test.
902 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
904 * aclocal.m4: Regenerate.
905 * configure: Likewise.
906 * Makefile.in: Likewise.
907 * testsuite/Makefile.in: Likewise.
909 2008-03-13 Jakub Jelinek <jakub@redhat.com>
912 * testsuite/libgomp.c++/pr35185.C: New test.
914 2008-03-12 Jakub Jelinek <jakub@redhat.com>
917 * testsuite/libgomp.c/pr35549.c: New test.
919 2008-03-06 Jakub Jelinek <jakub@redhat.com>
921 * testsuite/libgomp.c/atomic-3.c: New test.
923 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
926 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
929 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
932 * configure.ac: Add ACX_HEADER_STRING.
933 * env.c: Include strings.h.
934 * aclocal.m4: Regenerate.
935 * config.h.in: Regenerate.
936 * configure: Regenerate.
937 * Makefile.in: Regenerate.
938 * testsuite/Makefile.in: Regenerate.
940 2008-02-15 Jakub Jelinek <jakub@redhat.com>
943 * testsuite/libgomp.c/pr35196.c: New test.
946 * testsuite/libgomp.fortran/pr35130.f90: New test.
947 * testsuite/libgomp.c/pr35130.c: New test.
949 2008-01-25 Jakub Jelinek <jakub@redhat.com>
952 * testsuite/libgomp.c/pr33880.c: New test.
953 * testsuite/libgomp.fortran/pr33880.f90: New test.
955 2008-01-24 David Edelsohn <edelsohn@gnu.org>
957 * configure: Regenerate.
959 2008-01-08 Jakub Jelinek <jakub@redhat.com>
961 * configure.ac: Move futex checking into ../config/futex.m4.
962 * configure: Rebuilt.
963 * aclocal.m4: Rebuilt.
964 * Makefile.in: Rebuilt.
966 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
967 2007-10-15 ../config/tls.m4 change.
969 2007-12-19 Jakub Jelinek <jakub@redhat.com>
972 * testsuite/libgomp.c/pr34513.c: New test.
973 * testsuite/libgomp.c++/pr34513.C: New test.
975 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
978 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
980 2007-12-04 Jakub Jelinek <jakub@redhat.com>
982 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
984 2007-12-03 Jakub Jelinek <jakub@redhat.com>
986 * testsuite/libgomp.c/private-1.c: New test.
988 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
989 Paolo Bonzini <bonzini@gnu.org>
991 * Makefile.am: Use space as vpath separator. Use 'vpath %'
992 instead of 'VPATH ='.
993 * Makefile.in: Regenerate.
995 2007-11-23 Matthias Klose <doko@ubuntu.com>
997 * configure.ac: Adjust makeinfo version check.
998 * configure: Regenerate.
1000 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1003 * testsuite/libgomp.fortran/pr34020.f90: New test.
1005 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1008 * testsuite/libgomp.c++/atomic-1.C: New test.
1010 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1013 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1014 Make x and y integers rather than (implicit) reals. Add private (j)
1015 clause to the last omp parallel.
1017 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1019 * configure: Regenerate following changes to ../config/tls.m4.
1021 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1023 * testsuite/libgomp.fortran/stack.f90: New test.
1025 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1027 * config/mingw32/proc.c: New file.
1029 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1031 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1032 (main): Use __get_cpuid to get i386 target fetaures.
1033 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1034 (main): Use __get_cpuid to get x86_64 target fetaures.
1036 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1039 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1040 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1042 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1045 * testsuite/libgomp.fortran/pr32550.f90: New test.
1046 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1048 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1050 * aclocal.m4: Regenerated.
1052 2007-07-05 Tobias Burnus <burnus@net-b.de>
1055 * testsuite/libgomp.fortran/pr32359.f90: New.
1057 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1060 * sections.c (GOMP_parallel_sections_start): Only decrease
1061 number of threads to COUNT if dyn_var is true.
1062 * testsuite/libgomp.c/pr32468.c: New test.
1064 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1067 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1069 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1072 * testsuite/libgomp.c/pr32362-1.c: New test.
1073 * testsuite/libgomp.c/pr32362-2.c: New test.
1074 * testsuite/libgomp.c/pr32362-3.c: New test.
1076 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1078 * team.c (gomp_team_start): Fix setting up thread_attr
1081 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1083 * configure: Regenerate.
1085 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1087 * Makefile.in: Regenerate.
1088 * configure: Regenerate.
1089 * aclocal.m4: Regenerate.
1090 * testsuite/Makefile.in: Regenerate.
1092 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1094 * config/linux/proc.c: New file.
1097 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1099 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1101 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1103 2007-04-16 Matthias Klose <doko@debian.org>
1105 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1106 flags if not building with -m64.
1107 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1108 flag for i?86-*-* targets, if current target matches -m64.
1110 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1112 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1113 * Makefile.in: Regenerate.
1115 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1118 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1120 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1122 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1124 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1126 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1127 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1128 (parse_affinity): New function.
1129 (initialize_env): Call it and gomp_init_affinity.
1130 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1131 create new pthread_attr_t and call gomp_init_thread_affinity
1132 on it for each thread before passing the attribute to pthread_create.
1133 * config/linux/affinity.c: New file.
1134 * config/posix/affinity.c: New file.
1135 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1136 * configure: Rebuilt.
1137 * config.h.in: Rebuilt.
1138 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1139 * Makefile.in: Rebuilt.
1141 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1143 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1145 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1146 and use it if found.
1148 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1150 * testsuite/config/default.exp: New file.
1151 * testsuite/lib/libgomp.exp: New file.
1152 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1153 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1154 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1155 (libgomp_load): Remove.
1156 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1157 always_ld_library_path, not ld_library_path. Set additional_flags
1158 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1159 (target_compile): Do not call libgomp_init. Append lang_library_path
1160 and lang_link_flags to options.
1161 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1162 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1164 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1165 always_ld_library_path. Set LD_LIBRARY_PATH here.
1166 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1167 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1168 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1170 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1171 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1172 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1173 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1174 * testsuite/libgomp.c/atomic-10.c: Ditto.
1176 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1178 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1179 dg-final cleanup-modules line.
1180 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1181 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1182 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1183 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1184 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1185 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1186 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1188 2007-03-18 Andreas Schwab <schwab@suse.de>
1190 * acinclude.m4: Adjust regular expression for ld version
1192 * configure: Regenerate.
1194 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1196 * Makefile.am: Add install-pdf target as copied from
1197 automake v1.10 rules.
1198 * Makefile.in: Regenerate
1200 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1203 * configure: Regenerate.
1206 * testsuite/libgomp.c++/pr30703.C: New test.
1208 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1211 2006-07-05 Eric Christopher <echristo@apple.com>
1212 * configure.ac: Depend addition of -pthread on host OS.
1213 * configure: Regenerate.
1215 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1217 * libgomp.texi: Fix spacing after abbreviations.
1219 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1222 * configure.ac: Add check for makeinfo
1223 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1224 if an appropiate version of makeinfo is found.
1225 * aclocal.m4: Regenerated.
1226 * configure: Regenerated.
1227 * Makefile.in: Regenerated.
1228 * testsuite/Makefile.in: Regenerated.
1230 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1233 * libgomp.texi: More about implementation-dependent settings.
1235 2007-01-26 Tobias Burnus <burnus@net-b.de>
1237 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1239 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1242 * testsuite/libgomp.c/pr30494.c: New test.
1244 2007-01-15 Tom Tromey <tromey@redhat.com>
1246 * configure: Rebuilt.
1247 * configure.ac: Fixed comment.
1249 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1251 * libgomp.texi: Document implementation specific default values of
1252 environment variables.
1254 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1257 * libgomp.texi: New file.
1258 * configure.ac: Add --enable-generated-files-in-srcdir option.
1259 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1261 * Makefile.in: Regenerated.
1262 * config.h.in: Regenerated.
1263 * testsuite/Makefile.in: Regenerated.
1266 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1269 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1271 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1273 * configure: Regenerate.
1275 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1278 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1279 start if there shouldn't be any loop iterations.
1280 (gomp_loop_ordered_static_start): Remove start == end test.
1281 * testsuite/libgomp.c/pr29947-1.c: New test.
1282 * testsuite/libgomp.c/pr29947-2.c: New test.
1284 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1286 * configure.tgt: Force initial-exec TLS model on Linux only.
1288 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1290 * configure: Regenerated.
1292 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1294 * env.c (parse_schedule): Reject out of range values.
1295 (parse_unsigned_long): Reject out of range, negative or zero values.
1297 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1300 * testsuite/libgomp.fortran/pr29629.f90: New test.
1302 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1305 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1306 * config/posix95: New directory.
1307 * config/posix95/omp-lock.h: New file.
1308 * config/posix95/lock.c: Likewise.
1310 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1312 * aclocal.m4: Regenerate.
1313 * configure: Regenerate.
1315 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1317 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1320 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1322 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1324 * configure: Regenerate.
1325 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1327 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1331 * testsuite/libgomp.c/nestedfn-4.c: New test.
1332 * testsuite/libgomp.c/nestedfn-5.c: New test.
1333 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1336 * testsuite/libgomp.fortran/condinc1.f: New test.
1337 * testsuite/libgomp.fortran/condinc2.f: New test.
1338 * testsuite/libgomp.fortran/condinc3.f90: New test.
1339 * testsuite/libgomp.fortran/condinc4.f90: New test.
1340 * testsuite/libgomp.fortran/condinc1.inc: New file.
1342 2006-09-18 Tom Tromey <tromey@redhat.com>
1344 * configure: Rebuilt.
1346 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1349 PR preprocessor/14634
1350 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1352 * configure: Regenerate.
1354 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1356 * testsuite/libgomp.fortran/reduction3.f90: Change
1357 -2147483648 to -huge(i)-1 to avoid overflow.
1358 * testsuite/libgomp.fortran/reduction4.f90: Change
1359 Z'ffffffff' to not(0) to avoid overflow.
1361 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1364 * Makefile.am (libsubincludedir): New.
1365 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1366 * Makefile.in: Regenerate.
1368 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1371 * env.c: Include ctype.h.
1372 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1373 leading and/or trailing whitespace and compare strings case
1376 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1379 * testsuite/libgomp.fortran/pr28390.f: New test.
1381 2006-07-05 Eric Christopher <echristo@apple.com>
1383 * configure.ac: Depend addition of -pthread on host OS.
1384 * configure: Regenerate.
1386 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1388 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1389 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1392 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1396 * configure.ac: If neither --enable-linux-futex nor
1397 --disable-linux-futex is passed, determine the default by checking
1398 for compiling and/or running against NPTL. With --enable-linux-futex,
1399 check if SYS_gettid and SYS_futex are defined.
1400 * configure: Rebuilt.
1402 2006-06-14 Richard Henderson <rth@redhat.com>
1405 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1406 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1408 2006-06-09 Richard Henderson <rth@redhat.com>
1410 * env.c (gomp_nthreads_var): Change to unsigned long.
1411 (gomp_run_sched_chunk): Likewise.
1412 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1413 (initialize_env): Initialize gomp_thread_attr.
1414 * libgomp.h (gomp_nthreads_var): Update decl.
1415 (gomp_run_sched_chunk): Likewise.
1416 (gomp_thread_attr): Declare.
1417 * team.c (gomp_thread_attr): Export.
1418 (initialize_team): Don't initialize it.
1420 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1423 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1424 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1426 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1428 * config/mingw32/time.c: New file.
1429 * configure.tgt: Use it.
1431 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1433 * Makefile.am: Add install-html target. Add install-html to .PHONY
1434 * Makefile.in: Regenerate.
1436 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1439 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1440 * testsuite/libgomp.c/critical-1.c: Likewise.
1441 * testsuite/libgomp.c/loop-1.c: Likewise.
1442 * testsuite/libgomp.c/loop-2.c: Likewise.
1443 * testsuite/libgomp.c/single-1.c: Likewise.
1444 * testsuite/libgomp.c/ordered-1.c: Likewise.
1445 * testsuite/libgomp.c/ordered-2.c: Likewise.
1447 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1450 * libgomp.fortran/pr27416-1.f90: New test.
1452 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1455 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1456 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1458 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1461 * testsuite/libgomp.c/pr26943-1.c: New test.
1462 * testsuite/libgomp.c/pr26943-2.c: New test.
1463 * testsuite/libgomp.c/pr26943-3.c: New test.
1464 * testsuite/libgomp.c/pr26943-4.c: New test.
1465 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1466 * testsuite/libgomp.c++/pr26943.C: New test.
1468 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1471 * testsuite/libgomp.c++/pr27337.C: New test.
1473 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1476 * testsuite/libgomp.c/pr26171.c: New test.
1478 2006-04-25 Richard Henderson <rth@redhat.com>
1481 * configure.ac: Use GCC_CHECK_TLS.
1482 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1483 * Makefile.in, aclocal.m4, configure: Regenerate.
1485 2006-04-10 Matthias Klose <doko@debian.org>
1487 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1488 directory names containing underscores.
1490 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1493 * testsuite/libgomp.c++/pr26691.C: New test.
1495 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1497 * testsuite/libgomp.fortran/retval2.f90: New test.
1499 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1501 * testsuite/libgomp.c++: New directory.
1503 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1505 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1506 * config/posix/sem.c: Implement the above.
1508 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1510 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1511 define HAVE_BROKEN_POSIX_SEMAPHORES.
1512 * configure: Rebuilt.
1513 * config.h.in: Rebuilt.
1515 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1518 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1519 for the other pthread check.
1520 * configure: Regenerate.
1521 * config.h.in: Regenerate.
1523 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1527 * Makefile.am (fincludedir): New variable.
1528 (nodist_include_HEADERS): Remove Fortran files.
1529 (nodist_finclude_HEADERS): New variable.
1530 * Makefile.in: Regenerated.
1532 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1534 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1535 Remove tests for returning assumed character length arrays.
1537 2006-02-12 Roger Sayle <roger@eyesopen.com>
1538 John David Anglin <dave@hiauly1.hia.nrc.ca>
1541 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1543 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1545 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1547 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1549 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1550 part of LD_LIBRARY_PATH manually.
1552 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1555 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1558 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1561 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1562 * configure.ac (PERL): Don't set.
1563 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1564 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1565 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1566 * omp.h.in: Wrap the new configure substitutions with @ characters.
1567 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1568 * aclocal.m4, configure, Makefile.in: Regenerate.
1569 * mkomp_h.pl: Delete.
1571 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1574 * configure.ac: Use GCC_HEADER_STDINT.
1575 * libgomp.h: Include gstdint.h.
1576 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1577 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1579 2006-01-24 Richard Henderson <rth@redhat.com>
1582 * configure.ac: Add AM_MAINTAINER_MODE.
1583 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1585 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1587 * Makefile.in: Regenerate.
1588 * testsuite/Makefile.in: Regenerate.
1589 * aclocal.m4: Regenerate.
1591 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1593 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1595 * configure.ac: Add check for loadavg.h.
1596 (link_gomp): Adjust comment.
1597 * configure: Regenerate.
1598 * config.h.in: Regenerate.
1600 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1603 * configure.ac: Remove check for alloca.h.
1604 * configure: Regenerate.
1605 * config.h.in: Regenerate.
1606 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1607 * team.c: Remove use of alloca.h.
1608 Call gomp_alloca instead of alloca.
1610 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1613 * team.c: Add include of alloca.h.
1614 * configure.ac: Add check for alloca.h.
1615 * configure: Regenerate.
1616 * config.h.in: Regenerate.
1618 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1621 * testsuite/libgomp.fortran/pr25219.f90: New test.
1623 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1625 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1626 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1627 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1628 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1629 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1630 testsuite/libgomp.fortran/threadprivate1.f90,
1631 testsuite/libgomp.fortran/threadprivate2.f90,
1632 testsuite/libgomp.fortran/threadprivate3.f90,
1633 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1634 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1635 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1636 effective-target to TLS runtime.
1638 * testsuite/libgomp.fortran/pr25162.f: Require
1639 effective-target TLS runtime.
1641 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1643 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1644 * testsuite/libgomp.c/nestedfn-3.c: New test.
1646 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1649 * testsuite/libgomp.fortran/pr25162.f: New test.
1651 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1653 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1654 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1656 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1658 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1659 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1660 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1661 single.c, team.c, work.c, config/linux/alpha/futex.h,
1662 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1663 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1664 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1665 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1666 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1667 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1668 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1671 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1673 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1674 to nodist_noinst_HEADERS.
1675 * Makefile.in: Rebuilt.
1677 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1678 add integer count field.
1679 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1680 omp_nest_lock_t type change.
1681 (omp_init_nest_lock): Likewise. Initialize count to 0.
1682 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1684 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1686 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1687 Increment count if successful and return the new nesting level.
1688 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1689 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1690 * testsuite/libgomp.c/lib-1.c: New test.
1691 * testsuite/libgomp.fortran/lib1.f90: New test.
1692 * testsuite/libgomp.fortran/lib2.f: New test.
1693 * testsuite/libgomp.fortran/lib3.f: New test.
1695 2005-11-17 Richard Henderson <rth@redhat.com>
1698 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1699 * configure.ac (link_gomp): New. Substitute it.
1700 (AC_CONFIG_FILES): Add libgomp.spec.
1701 * libgomp.spec.in: New file.
1702 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1703 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1705 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1707 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1708 reduction(-:var) behaving the same as reduction(+:var).
1709 * testsuite/libgomp.c/reduction-4.c: New test.
1711 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1713 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1714 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1715 testsuite/libgomp.c/copyin-3.c,
1716 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1717 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1718 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1719 testsuite/libgomp.c++/pr24455.C,
1720 testsuite/libgomp.fortran/threadprivate1.f90,
1721 testsuite/libgomp.fortran/threadprivate2.f90,
1722 testsuite/libgomp.fortran/threadprivate3.f90,
1723 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1724 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1725 testsuite/libgomp.fortran/omp_parse3.f90: Require
1726 effective-target TLS.
1728 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1732 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1735 * team.c (initialize_team): Pass NULL rather than free as
1736 pthread_key_create destructor. Initialize thread specific data
1737 pointer in initial thread to a static local variable rather than
1740 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1742 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1743 its location to ld_library_path.
1745 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1747 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1749 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1751 * testsuite/libgomp.c: Rename from libgomp.dg.
1753 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1755 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1756 threadprivate variable 'i'.
1758 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1760 * config/linux/s390/futex.h: New file.
1761 * configure.tgt: Use it.
1763 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1764 before the parallel.
1766 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1769 * testsuite/libgomp.c++/master-1.C: New test.
1771 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1773 * testsuite/libgomp.dg/copyin-3.c: New test.
1775 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1777 * testsuite/libgomp.fortran/retval1.f90: New test.
1778 * testsuite/libgomp.fortran/vla7.f90: New test.
1780 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1782 * testsuite/libgomp.fortran/vla2.f90: New test.
1783 * testsuite/libgomp.fortran/vla3.f90: New test.
1784 * testsuite/libgomp.fortran/vla4.f90: New test.
1785 * testsuite/libgomp.fortran/vla5.f90: New test.
1786 * testsuite/libgomp.fortran/vla6.f90: New test.
1788 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1790 * config/linux/sparc/futex.h: New file.
1791 * configure.tgt: Use it.
1792 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1794 * critical.c: Include stdlib.h.
1795 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1796 ignoring return value.
1797 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1798 LIBGOMP_CHECK_SYNC_BUILTINS check.
1799 * configure: Rebuilt.
1801 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1803 * testsuite/libgomp.fortran/vla1.f90: New test.
1805 2005-10-31 Richard Henderson <rth@redhat.com>
1807 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1808 setting 's' in different threads.
1810 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1812 * libgomp.h (attribute_hidden, ialias): Define.
1813 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1814 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1815 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1816 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1817 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1818 omp_test_lock, omp_test_nest_lock): Likewise.
1819 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1820 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1821 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1822 omp_test_lock, omp_test_nest_lock): Likewise.
1823 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1824 omp_get_dynamic, omp_get_nested): Likewise.
1825 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1826 omp_get_thread_num, omp_in_parallel): Likewise.
1827 * fortran.c (ialias_redirect): Define.
1828 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1829 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1830 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1831 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1832 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1833 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1834 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1835 omp_get_wtime): Add ialias_redirect.
1837 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1839 * fortran.c: Include stdlib.h.
1841 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1843 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1844 * Makefile.in: Regenerated.
1846 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1848 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1849 * libgomp_f.h.in (omp_check_defines): New function.
1850 * env.c: Include libgomp_f.h.
1851 (initialize_env): Call omp_check_defines.
1853 * testsuite/libgomp.dg/copyin-2.c: New test.
1854 * testsuite/libgomp.c++/copyin-2.C: New test.
1855 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1857 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1858 * testsuite/libgomp.fortran/sharing2.f90: New test.
1860 * testsuite/libgomp.dg/copyin-1.c: New test.
1861 * testsuite/libgomp.c++/copyin-1.C: New test.
1863 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1865 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1867 * testsuite/libgomp.fortran/workshare1.f90: New test.
1869 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1871 * libgomp.fortran/sharing1.f90: New test.
1873 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1876 * testsuite/libgomp.c++/loop-7.C: New test.
1878 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1880 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1881 * testsuite/libgomp.fortran/reduction6.f90: New test.
1882 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1884 2005-10-23 Richard Henderson <rth@redhat.com>
1886 * testsuite/libgomp.c++/ctor-1.C: New.
1887 * testsuite/libgomp.c++/ctor-2.C: New.
1888 * testsuite/libgomp.c++/ctor-3.C: New.
1889 * testsuite/libgomp.c++/ctor-4.C: New.
1890 * testsuite/libgomp.c++/ctor-5.C: New.
1891 * testsuite/libgomp.c++/ctor-6.C: New.
1892 * testsuite/libgomp.c++/ctor-7.C: New.
1893 * testsuite/libgomp.c++/ctor-8.C: New.
1894 * testsuite/libgomp.c++/ctor-9.C: New.
1896 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1899 * testsuite/libgomp.c++/pr24455-1.C: New test.
1900 * testsuite/libgomp.c++/pr24455.C: New test.
1901 * testsuite/libgomp.dg/pr24455-1.c: New test.
1902 * testsuite/libgomp.dg/pr24455.c: New test.
1904 2005-10-20 Richard Henderson <rth@redhat.com>
1906 * testsuite/libgomp.c++/loop-6.C: New.
1907 * testsuite/libgomp.dg/loop-3.c: New.
1909 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1911 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1913 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1916 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1918 * testsuite/libgomp.fortran/jacobi.f: New test.
1920 2005-10-19 Richard Henderson <rth@redhat.com>
1922 * configure.tgt (i?86-linux): Default to with_arch instead of
1923 CFLAGS. Add -mtune to match target_cpu.
1924 (x86_64-linux): Tune to i686.
1926 * fortran.c (omp_test_nest_lock_): Fix typo.
1928 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1930 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1931 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1932 * testsuite/libgomp.dg/ordered-3.c: New test.
1934 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1935 Remove volatile keyword.
1937 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1938 in COMMON block to avoid warnings on 64-bit targets.
1940 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1942 * testsuite/libgomp.dg/shared-3.c: New test.
1944 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1946 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1947 * testsuite/libgomp.fortran/reduction5.f90: New test.
1949 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1951 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1953 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1954 flush loop now that __sync_synchronize has proper memory barrier.
1955 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1956 Add -ffixed-form to dg-options.
1958 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1960 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1961 from subdirectories.
1962 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1963 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1964 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1965 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1966 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1967 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1968 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1969 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1970 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1971 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1972 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1973 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1974 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1975 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1976 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1977 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1978 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1979 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1980 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1981 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1982 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1983 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1984 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1985 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1986 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1988 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1990 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1991 lang_library_path exists. Use find instead of glob to gather tests.
1992 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1994 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1996 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1997 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1998 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1999 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2000 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2001 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2002 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2003 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2004 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2005 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2006 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2007 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2008 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2010 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2012 * testsuite/libgomp.dg/vla-1.c: New test.
2014 * testsuite/libgomp.fortran/reference2.f90: New test.
2016 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2017 declaration of omp_get_thread_num.
2018 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2021 * testsuite/libgomp.fortran/reduction1.f90: New test.
2022 * testsuite/libgomp.fortran/reduction2.f90: New test.
2023 * testsuite/libgomp.fortran/reduction3.f90: New test.
2024 * testsuite/libgomp.fortran/reduction4.f90: New test.
2026 2005-10-13 Richard Henderson <rth@redhat.com>
2028 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2029 * Makefile.in: Regenerate.
2030 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2031 * libgomp.h: Include bar.h.
2032 (struct gomp_barrier): Remove.
2033 (struct gomp_team): Add barrier. Replace master_barrier with
2034 master_release. Replace threads with ordered_release.
2035 (struct gomp_thread): Replace barrier with release.
2036 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2037 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2038 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2039 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2040 (GOMP_single_copy_end): Likewise.
2041 * team.c (gomp_threads_dock): New.
2042 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2043 (gomp_thread_start): Use gomp_barrier_wait.
2044 (new_team, free_team): Update for gomp_team changes.
2045 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2046 (gomp_team_end): Use gomp_barrier_wait.
2047 (initialize_team): Update for gomp_thread changes.
2048 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2049 (gomp_work_share_end_nowait): Use atomic ops when available.
2050 * config/linux/bar.c, config/linux/bar.h: New files.
2051 * config/posix/bar.c, config/posix/bar.h: New files.
2053 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2055 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2056 * testsuite/libgomp.dg/single-2.c: New test.
2058 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2059 lang_link_flags): Unset, so that they aren't inherited from previously
2062 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2064 2005-10-12 Richard Henderson <rth@redhat.com>
2066 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2067 (libgomp_init): Use lang_test_file, lang_library_path, and
2068 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2070 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2071 (lang_test_file, lang_link_flags): New.
2072 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2074 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2075 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2076 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2077 testsuite/libgomp.c++/parallel-1.C,
2078 testsuite/libgomp.c++/reduction-1.C,
2079 testsuite/libgomp.c++/reduction-2.C,
2080 testsuite/libgomp.c++/reduction-3.C,
2081 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2082 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2083 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2084 New files, largely cribbed from the C testsuite.
2086 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2088 * testsuite/libgomp.fortran/character1.f90: New test.
2089 * testsuite/libgomp.fortran/character2.f90: New test.
2091 * testsuite/libgomp.dg/nested-1.c: New test.
2092 * testsuite/libgomp.dg/nested-2.c: New test.
2093 * testsuite/libgomp.fortran/do1.f90: New test.
2094 * testsuite/libgomp.fortran/do2.f90: New test.
2096 * testsuite/libgomp.fortran/reference1.f90: New test.
2098 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2100 * testsuite/libgomp.dg/reduction-1.c: New test.
2101 * testsuite/libgomp.dg/reduction-2.c: New test.
2102 * testsuite/libgomp.dg/reduction-3.c: New test.
2104 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2106 * testsuite/libgomp.dg/atomic-1.c: New test.
2107 * testsuite/libgomp.dg/atomic-2.c: New test.
2109 2005-10-09 Richard Henderson <rth@redhat.com>
2111 * critical.c (atomic_lock): New.
2112 (initialize_critical): Initialize it.
2113 (GOMP_atomic_start, GOMP_atomic_end): New.
2114 * libgomp.map: Export them.
2115 * libgomp_g.h: Declare them.
2117 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2119 2005-10-02 Richard Henderson <rth@redhat.com>
2121 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2122 to XCFLAGS instead of CFLAGS.
2124 2005-09-30 Richard Henderson <rth@redhat.com>
2126 * configure.ac: Determine whether -pthread or -lpthread is needed.
2127 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2128 * Makefine.in, configure: Rebuild.
2130 2005-09-28 Richard Henderson <rth@redhat.com>
2132 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2133 * testsuite/libgomp.dg/omp-single-3.c: New test.
2135 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2137 * testsuite/libgomp.dg/omp-single-2.c: New test.
2138 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2140 2005-09-27 Richard Henderson <rth@redhat.com>
2142 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2143 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2145 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2147 * testsuite/libgomp.dg/omp-loop03.c: New test.
2149 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2151 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2153 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2155 * testsuite/libgomp.dg/omp-single-1.c: New test.
2156 * testsuite/libgomp.dg/shared-1.c: Return 0.
2157 Add prototype for abort.
2158 * testsuite/libgomp.dg/shared-2.c: Likewise.
2160 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2162 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2165 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2167 * testsuite/libgomp.dg/shared-1.c: New test.
2168 * testsuite/libgomp.dg/shared-2.c: New test.
2170 2005-09-24 Richard Henderson <rth@redhat.com>
2172 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2174 2005-09-24 Richard Henderson <rth@redhat.com>
2176 * iter.c (gomp_iter_static_next): Round up when computing number
2177 of iterations. Don't bother distributing a remainder equally.
2179 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2180 Don't call srand. Zero b before testing.
2183 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2185 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2186 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2188 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2190 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2191 without !$omp end do, followed immediately by subroutine end.
2193 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2195 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2197 2005-09-22 Richard Henderson <rth@redhat.com>
2199 * critical.c (GOMP_critical_name_start): Change argument to void**.
2200 Reuse the pointer space if the mutex fits.
2201 (GOMP_critical_name_end): Likewise.
2202 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2203 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2204 (GOMP_critical_name_end): Likewise.
2205 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2206 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2208 2005-09-20 Richard Henderson <rth@redhat.com>
2210 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2211 (create_lock_lock): New.
2212 (initialize_critical): Initialize it.
2213 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2214 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2216 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2218 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2220 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2222 * testsuite/libgomp.dg/omp-loop01.c: New test.
2223 * testsuite/libgomp.dg/omp-loop02.c: New test.
2225 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2227 * configure.ac (AC_PROG_FC): Add.
2228 (USE_FORTRAN): New automake conditional.
2229 * configure: Rebuilt.
2230 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2231 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2232 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2233 Add rules to build them.
2234 * Makefile.in: Rebuilt.
2235 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2237 * libgomp.map: Add Fortran wrappers.
2238 * libgomp_f.h.in: New file.
2239 * omp_lib.h.in: New file.
2240 * omp_lib.f90.in: New file.
2241 * fortran.c: New file.
2242 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2243 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2244 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2245 libgfortran has been built.
2246 * testsuite/libgomp.fortran/fortran.exp: New file.
2247 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2248 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2249 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2250 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2251 * testsuite/libgomp.fortran/omp_hello.f: New test.
2252 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2253 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2254 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2255 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2256 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2257 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2258 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2259 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2261 2005-08-30 Richard Henderson <rth@redhat.com>
2263 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2264 function for when aliases are not usable.
2265 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2266 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2267 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2268 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2269 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2270 GOMP_loop_ordered_guided_next): Likewise.
2271 * ordered.c (GOMP_ordered_start): Likewise.
2273 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2275 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2276 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2277 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2278 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2279 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2280 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2281 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2282 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2283 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2285 2005-07-07 Eric Christopher <echristo@redhat.com>
2286 Diego Novillo <dnovillo@redhat.com>
2288 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2289 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2291 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2292 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2293 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2294 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2295 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2296 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2297 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2299 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2301 * TOPLEVEL.patch: Remove.
2303 2005-05-16 Richard Henderson <rth@redhat.com>
2305 * configure.ac: Test for clock_gettime.
2306 * config.h.in, configure: Rebuild.
2307 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2308 (omp_get_wtime): Use clock_gettime if available.
2309 (omp_get_wtick): Use clock_getres if available.
2311 2005-05-11 Richard Henderson <rth@redhat.com>
2313 * config/linux/ia64/futex.h: New file.
2314 * configure.tgt: Use it.
2316 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2318 2005-05-07 Richard Henderson <rth@redhat.com>
2320 * config/linux/powerpc/futex.h: New file.
2321 * configure.tgt: Use it.
2323 * config/linux/i486/futex.h: Merge ...
2324 * config/linux/x86_64/futex.h: ... into ...
2325 * config/linux/x86/futex.h: ... here.
2326 * configure.tgt: Update to match.
2328 2005-05-06 Richard Henderson <rth@redhat.com>
2330 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2331 * config/linux/i486/futex.h: Likewise.
2332 * config/linux/x86_64/futex.h: Likewise.
2334 * config/linux/lock.c: New file.
2335 * config/linux/omp-lock.h: New file.
2337 * critical.c, env.h: Don't include omp.h
2338 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2339 * config/posix/time.c: Likewise.
2340 * config/posix/omp-lock.h: New file.
2341 * libgomp.h: Include omp-lock.h and omp.h.
2342 * Makefile.am (nodist_include_HEADERS): New.
2344 * configure.ac (PERL): New.
2345 * mkomp_h.pl: New file.
2346 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2348 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2350 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2351 build directory. Re-add -march=i486 hack.
2353 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2354 (libgomp_link_flags): Remove.
2355 (libgomp_initialized): Remove.
2356 (libgomp_init): Don't protect from reinitialization. Copy code
2357 from libstdc++ for getting the multilib set correctly.
2359 2005-05-05 Richard Henderson <rth@redhat.com>
2361 * config/linux/alpha/futex.h: New file.
2362 * configure.tgt (alpha*-*-linux*): Use it.
2364 * config/posix/mutex.c: New file.
2365 * config/posix/sem.c: Use libgomp.h.
2367 * configure.tgt (x86_64-linux): Also test CC for -m32.
2368 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2370 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2373 * Makefile.am (SUBDIRS): New.
2374 (libgomp_la_LDFLAGS): Add -lpthread.
2375 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2376 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2378 * libgomp_g.h: New file.
2379 * libgomp.h: Split out all public declarations to libgomp_g.h.
2380 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2381 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2382 * config/linux/sem.h: Likewise.
2383 * config/posix/sem.h: Likewise.
2385 * Makefile.am (AM_LDFLAGS): New.
2386 (libgomp_version_script): Split out from ...
2387 (libgomp_la_LDFLAGS): ... here.
2388 (libgomp_version_info): New.
2389 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2390 (LIBGOMP_ENABLE): New.
2391 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2392 (LIBGOMP_ENABLE_SYMVERS): New.
2393 * configure.ac (AC_INIT): Version 1.0.
2394 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2395 (enable-linux-futex): Likewise. Rename from enable-futex.
2396 (libtool_VERSION): New.
2397 (LIBGOMP_ENABLE_SYMVERS): Use it.
2398 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2399 * Makefile.in, aclocal.m4, configure: Rebuild.
2401 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2402 (gomp_mutex_unlock_slow): Fix typo.
2403 * config/linux/sem.c: Similarly.
2404 (gomp_sem_post_slow): Fix typo.
2405 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2406 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2407 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2409 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2410 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2411 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2412 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2413 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2414 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2415 LDFLAGS. Pull enable_futex check to top-level.
2416 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2417 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2419 First attempt at real configury.
2420 * Makefile, config.h: Remove file.
2421 * Makefile.am, Makefile.in: New file.
2422 * acinclude.m4 aclocal.m4: New file.
2423 * configure.ac, configure.tgt, configure: New file.
2425 * config/posix/lock.c: Rename from sys-lock.c.
2426 * config/posix/mutex.h: Rename from sys-mutex.h.
2427 * config/posix/sem.c: Rename from sys-sem.c.
2428 * config/posix/sem.h: Rename from sys-sem.h.
2429 * config/posix/proc.c: Rename from sys-proc.c.
2430 * config/posix/time.c: Rename from sys-proc.c.
2432 * config/linux/mutex.c: New file.
2433 * config/linux/mutex.h: New file.
2434 * config/linux/sem.c: New file.
2435 * config/linux/sem.h: New file.
2436 * config/linux/i486/futex.h: New file.
2437 * config/linux/x86_64/futex.h: New file.
2439 2005-05-04 Richard Henderson <rth@redhat.com>
2441 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2442 * libgomp.h: Declare them.
2443 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2444 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2446 2005-05-04 Richard Henderson <rth@redhat.com>
2448 * libgomp-1 code drop
2450 2005-05-04 Richard Henderson <rth@redhat.com>
2452 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2453 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2454 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2455 (gomp_iter_static_next): Update.
2456 (gomp_ordered_static_next): Update.
2457 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2458 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2459 totally empty range.
2460 (gomp_loop_ordered_static_next): Refine test for calling
2461 gomp_ordered_static_next.
2462 * testsuite/ordered-1.c: Add case for more threads than iterations.
2464 * iter.c (gomp_iter_runtime_next_locked): Remove.
2465 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2466 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2467 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2468 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2469 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2470 gomp_loop_ordered_guided_next): Downcase name, make static, add
2471 an external alias with the old name.
2472 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2473 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2474 switch and call one of the above static functions.
2475 * libgomp.h: Update.
2477 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2478 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2479 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2480 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2481 GOMP_loop_ordered_guided_start): Update to match.
2482 * sections.c (GOMP_sections_start): Likewise.
2483 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2485 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2486 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2487 Use bounds check instead of modulus.
2488 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2489 (gomp_ordered_last): Don't sync with ordered_owner here.
2490 (gomp_ordered_next): Likewise.
2491 (gomp_ordered_static_loop_next): Likewise.
2492 * loop.c, libgomp.h: Update to match.
2494 * libgomp.h (GOMP_barrier): Declare.
2496 * testsuite/barrier-1.c: New file.
2497 * testsuite/critical-1.c: New file.
2498 * testsuite/ordered-2.c: New file.
2499 * testsuite/ordered-1.c: New file.
2500 * testsuite/sections-1.c: New file.
2501 * testsuite/single-1.c: New file.
2502 * testsuite/Makefile (TESTS): Add them.
2504 2005-05-04 Richard Henderson <rth@redhat.com>
2506 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2507 * loop.c (GOMP_loop_static_start): If not the startup thread,
2508 acquire the mutex to wait for initialization complete.
2509 (GOMP_loop_ordered_static_start): Likewise.
2510 (GOMP_loop_ordered_runtime_start): Likewise.
2511 (GOMP_loop_ordered_static_first): Remove.
2512 (GOMP_loop_ordered_dynamic_first): Remove.
2513 (GOMP_loop_ordered_guided_first): Remove.
2514 (GOMP_loop_ordered_runtime_first): Remove.
2515 * ordered.c (gomp_ordered_loop_first): Post to own release when
2516 we're the first thread.
2517 (gomp_ordered_loop_last): Wait on release if not owner.
2518 (gomp_ordered_loop_next): Likewise.
2519 (gomp_ordered_static_loop_init): New.
2520 (gomp_ordered_static_loop_next): Use ordered_owner.
2521 (GOMP_ordered_start): Likewise.
2522 * work.c (gomp_new_work_share): Initialize ordered_owner.
2524 2005-05-03 Richard Henderson <rth@redhat.com>
2526 * Makefile (OPT): New.
2529 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2530 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2531 * libgomp.h, libgomp.map, NOTES: Update to match.
2533 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2534 Add initialized and thr members.
2535 (gomp_thread_start): Pause when initially spawned to wait for
2536 the whole team to be created.
2537 (gomp_team_start): Release team members at the end.
2539 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2540 (f_foo_1): Use GOMP_loop_end.
2541 (f_foo_2): Use GOMP_loop_end_nowait.
2543 * testsuite/loop-2.c: New file.
2544 * testsuite/Makefile (TESTS): Add it.
2546 2005-05-03 Richard Henderson <rth@redhat.com>
2548 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2549 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2550 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2553 * testsuite/Makefile: New file.
2554 * testsuite/loop-1.c: New file.
2556 2005-05-03 Richard Henderson <rth@redhat.com>
2558 Initial implementation and checkin.