1 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
6 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
7 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
12 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13 options when choosing a multilib.
15 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
17 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18 ld_library_path. Use add_path. Add just find_libgcc_s to
19 ld_library_path, not every libgcc multilib directory.
20 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
21 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
22 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
24 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
26 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
28 * Makefile.am (LTLDFLAGS): Define.
30 * Makefile.in: Regenerate.
32 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
35 * testsuite/libgomp.fortran/fortran.exp: Don't link with
36 libgfortranbegin, check existence of libgfortran.a instead of
39 2009-05-20 Jakub Jelinek <jakub@redhat.com>
42 * team.c (gomp_thread_start): Destroy thr->release semaphore.
43 (gomp_free_pool_helper): Likewise.
45 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
46 Jakub Jelinek <jakub@redhat.com>
49 * testsuite/libgomp.fortran/workshare2.f90: New test.
51 2009-04-09 Nick Clifton <nickc@redhat.com>
53 * iter.c: Change copyright header to refer to version 3 of the
54 GNU General Public License with version 3.1 of the GCC Runtime
55 Library Exception and to point readers at the COPYING3 and
56 COPYING3.RUNTIME files and the FSF's license web page.
58 * barrier.c: Likewise.
59 * config/bsd/proc.c: Likewise.
60 * config/linux/affinity.c: Likewise.
61 * config/linux/alpha/futex.h: Likewise.
62 * config/linux/bar.c: Likewise.
63 * config/linux/bar.h: Likewise.
64 * config/linux/ia64/futex.h: Likewise.
65 * config/linux/ia64/mutex.h: Likewise.
66 * config/linux/lock.c: Likewise.
67 * config/linux/mips/futex.h: Likewise.
68 * config/linux/mutex.c: Likewise.
69 * config/linux/mutex.h: Likewise.
70 * config/linux/powerpc/futex.h: Likewise.
71 * config/linux/proc.c: Likewise.
72 * config/linux/ptrlock.c: Likewise.
73 * config/linux/ptrlock.h: Likewise.
74 * config/linux/s390/futex.h: Likewise.
75 * config/linux/sem.c: Likewise.
76 * config/linux/sem.h: Likewise.
77 * config/linux/sparc/futex.h: Likewise.
78 * config/linux/wait.h: Likewise.
79 * config/linux/x86/futex.h: Likewise.
80 * config/mingw32/proc.c: Likewise.
81 * config/mingw32/time.c: Likewise.
82 * config/posix/affinity.c: Likewise.
83 * config/posix/bar.c: Likewise.
84 * config/posix/bar.h: Likewise.
85 * config/posix/lock.c: Likewise.
86 * config/posix/mutex.h: Likewise.
87 * config/posix/proc.c: Likewise.
88 * config/posix/ptrlock.h: Likewise.
89 * config/posix/sem.c: Likewise.
90 * config/posix/sem.h: Likewise.
91 * config/posix/time.c: Likewise.
92 * config/posix95/lock.c: Likewise.
93 * critical.c: Likewise.
96 * fortran.c: Likewise.
97 * iter_ull.c: Likewise.
98 * libgomp.h: Likewise.
99 * libgomp_f.h.in: Likewise.
100 * libgomp_g.h: Likewise.
102 * loop_ull.c: Likewise.
103 * omp.h.in: Likewise.
104 * omp_lib.f90.in: Likewise.
105 * omp_lib.h.in: Likewise.
106 * ordered.c: Likewise.
107 * parallel.c: Likewise.
108 * sections.c: Likewise.
109 * single.c: Likewise.
114 2009-04-09 Jakub Jelinek <jakub@redhat.com>
116 * testsuite/config/default.exp: Change copyright header to refer to
117 version 3 of the GNU General Public License and to point readers
118 at the COPYING3 file and the FSF's license web page.
120 2009-04-08 Jakub Jelinek <jakub@redhat.com>
123 * libgomp.c++/pr39573.C: New test.
125 2009-04-01 Jakub Jelinek <jakub@redhat.com>
128 * testsuite/libgomp.c/pr39591-1.c: New test.
129 * testsuite/libgomp.c/pr39591-2.c: New test.
130 * testsuite/libgomp.c/pr39591-3.c: New test.
132 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
134 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
135 * testsuite/libgomp.c/atomic-6.c: Ditto.
137 2009-03-23 Jakub Jelinek <jakub@redhat.com>
140 * testsuite/libgomp.c/loop-12.c: New test.
141 * testsuite/libgomp.c/loop-11.c: New test.
142 * testsuite/libgomp.c++/loop-11.C: New test.
143 * testsuite/libgomp.c++/loop-12.C: New test.
144 * testsuite/libgomp.c++/for-8.C: New test.
146 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
148 * configure: Regenerate.
150 2009-02-11 Jakub Jelinek <jakub@redhat.com>
153 * testsuite/libgomp.c/pr39154.c: New test.
155 2009-01-30 Ian Lance Taylor <iant@google.com>
157 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
158 libgomp_ld_is_gold. Get gold version number.
159 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
160 * configure: Rebuild.
162 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
164 * testsuite/lib/libgomp.exp: Add -B option for targets that
165 use libgfortran.a%s in their specs.
167 2009-01-07 Jakub Jelinek <jakub@redhat.com>
170 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
171 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
172 HAVE_AS_SYMVER_DIRECTIVE is not defined.
173 * configure: Regenerated.
174 * config.h.in: Likewise.
176 2008-12-28 Jakub Jelinek <jakub@redhat.com>
179 * testsuite/libgomp.c/pr38650.c: New test.
180 * testsuite/libgomp.c++/pr38650.C: New test.
182 2008-12-27 Jakub Jelinek <jakub@redhat.com>
184 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
186 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
188 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
190 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
192 * configure: Regenerate.
194 2008-12-08 Jakub Jelinek <jakub@redhat.com>
197 * testsuite/libgomp.c/pr36802-1.c: New test.
198 * testsuite/libgomp.c/pr36802-2.c: New test.
199 * testsuite/libgomp.c/pr36802-3.c: New test.
201 2008-12-01 Janis Johnson <janis187@us.ibm.com>
204 * config/linux/powerpc/mutex.h: New.
206 2008-12-01 Jakub Jelinek <jakub@redhat.com>
209 * testsuite/libgomp.c++/for-7.C: New test.
212 * testsuite/libgomp.c++/for-6.C: New test.
214 2008-11-26 Janis Johnson <janis187@us.ibm.com>
217 * testsuite/lib/libgomp.exp: Include new timeout library files.
218 (libgomp_target_compile): Set timeout value from new proc.
220 2008-11-13 Steve Ellcey <sje@cup.hp.com>
223 * config/linux/ia64/mutex.h: New.
225 2008-11-04 Tobias Burnus <burnus@net-b.de>
228 * libgomp.texi (Runtime library routines, environment variables):
229 Update for OpenMP version 3.0.
231 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
232 Steve Ellcey <sje@cup.hp.com>
234 * configure: Regenerate for new libtool.
235 * Makefile.in: Ditto.
236 * testsuite/Makefile.in: Ditto.
238 2008-09-19 Jakub Jelinek <jakub@redhat.com>
239 Andreas Tobler <a.tobler@schweiz.org>
241 * config/bsd/proc.c: New file.
242 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
243 * configure.ac: Check for header <sys/sysctl.h>
244 * configure: Regenerate.
245 * config.h.in: Likewise.
247 2008-09-05 Janis Johnson <janis187@us.ibm.com>
249 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
251 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
253 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
254 * Makefile.in: Regenerated.
255 * testsuite/Makefile.in: Regenerated.
257 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
259 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
260 depend on blddir if blddir exists.
261 (libgomp_target_compile): Likewise.
262 * testsuite/libgomp.c++/c++.exp: Likewise.
263 * testsuite/libgomp.fortran/fortran.exp: Likewise.
265 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
267 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
268 Do not list GPL as Invariant Section.
270 2008-07-28 Ilie Garbacea <ilie@mips.com>
271 Chao-ying Fu <fu@mips.com>
273 * configure.tgt: Enable futex for MIPS.
274 * config/linux/mips/futex.h: New file.
276 2008-07-16 Jakub Jelinek <jakub@redhat.com>
278 * team.c (gomp_team_end): Free team immediately if it has
281 2008-07-08 David Edelsohn <edelsohn@gnu.org>
283 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
284 * testsuite/libgomp.fortran/fortran.exp: Same.
285 * testsuite/libgomp.c/c.exp: Same.
286 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
287 directory to library path first.
289 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
291 * env.c (parse_stacksize): Add cast to avoid warning.
292 (parse_spincount): Likewise.
294 2008-06-27 Jakub Jelinek <jakub@redhat.com>
296 * testsuite/libgomp.c/loop-10.c: New test.
297 * libgomp.c/loop-3.c (main): Add lastprivate clause.
298 * libgomp.c++/loop-6.C (main): Likewise.
301 * testsuite/libgomp.c/debug-1.c: New test.
303 2008-06-19 Jakub Jelinek <jakub@redhat.com>
305 * testsuite/libgomp.c/nqueens-1.c: New test.
308 * testsuite/libgomp.c++/task-7.C: New function.
310 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
312 * configure: Regenerate.
314 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
316 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
317 mutex when HAVE_SYNC_BUILTINS isn't defined.
319 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
321 * libgomp.texi (omp_test_lock): Fix typo.
323 2008-06-12 Tobias Burnus <burnus@net-b.de>
325 * omp_lib.f90.in: Add "implicit none".
327 2008-06-12 Jakub Jelinek <jakub@redhat.com>
330 * testsuite/libgomp.c/reduction-5.c: New test.
332 2008-06-11 Jakub Jelinek <jakub@redhat.com>
334 * libgomp.h (struct gomp_task): Add in_tied_task field.
335 * task.c (gomp_init_task): Initialize it.
336 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
337 unconditionally. Don't call gomp_team_barrier_wake if
338 current task is implicit or if(0) from implicit and number of
339 running tasks is equal to nthreads - 1.
342 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
343 omp_get_team_size_8): Fix pastos.
346 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
347 * configure: Regenerated.
348 * config.h.in: Regenerated.
349 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
352 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
355 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
356 (GOMP_loop_ull_dynamic_start): Likewise.
357 (GOMP_loop_ull_guided_start): Likewise.
358 (GOMP_loop_ull_ordered_static_start): Likewise.
359 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
360 (GOMP_loop_ull_ordered_guided_start): Likewise.
362 2008-06-06 Jakub Jelinek <jakub@redhat.com>
363 Richard Henderson <rth@redhat.com>
364 Ulrich Drepper <drepper@redhat.com>
365 Jakob Blomer <jakob.blomer@ira.uka.de>
367 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
368 Substitute also OMP_*LOCK_25*.
369 * configure: Regenerated.
370 * config.h.in: Regenerated.
371 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
372 ptrlock.c and task.c.
373 * Makefile.in: Regenerated.
374 * testsuite/Makefile.in: Regenerated.
376 * loop_ull.c: New file.
377 * iter_ull.c: New file.
378 * libgomp.h: Include ptrlock.h.
379 (enum gomp_task_kind): New type.
380 (struct gomp_team): Add task_lock, task_queue, task_count,
381 task_running_count, single_count fields. Add
382 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
383 Remove work_share_lock, generation_mask,
384 oldest_live_gen, num_live_gen and init_work_shares fields, add
385 work work_share_list_alloc, work_share_list_free and work_share_chunk
386 fields. Change work_shares from pointer to pointers into an array.
387 Change ordered_release field into gomp_sem_t ** from flexible array
388 member. Add implicit_task and initial_work_shares fields.
389 Move close to the end of the struct.
390 (struct gomp_team_state): Add single_count, last_work_share,
391 active_level and level fields, remove work_share_generation.
392 (gomp_barrier_handle_tasks): New prototype.
393 (gomp_finish_task): New inline function.
394 (struct gomp_work_share): Move chunk_size, end, incr into
395 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
396 next_ll fields. Reshuffle fields. Add next_alloc,
397 next_ws, next_free and inline_ordered_team_ids fields, change
398 ordered_team_ids into pointer from flexible array member.
399 Add mode field. Put lock and next into a different cache line
400 from most of the write-once fields.
401 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
402 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
403 gomp_iter_ull_guided_next): New prototypes.
404 (gomp_new_icv): New prototype.
405 (struct gomp_thread): Add thread_pool and task fields.
406 (struct gomp_thread_pool): New type.
407 (gomp_new_team): New prototype.
408 (gomp_team_start): Change type of last argument.
409 (gomp_new_work_share): Removed.
410 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
411 (gomp_work_share_init_done): New static inline.
412 (gomp_throttled_spin_count_var, gomp_available_cpus,
413 gomp_managed_threads): New extern decls.
414 (gomp_init_task): New prototype.
415 (gomp_spin_count_var): New extern var decl.
416 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
417 or no alias support, or if not PIC.
418 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
419 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
420 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
421 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
422 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
423 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
424 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
425 gomp_test_nest_lock_25): New prototypes.
426 (omp_lock_symver, strong_alias): Define.
427 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
429 (gomp_end_task): New.
430 (struct gomp_task_icv, gomp_global_icv): New.
431 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
432 (struct gomp_task): New.
433 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
434 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
436 (gomp_schedule_type): Reorder enum to match
438 * team.c (struct gomp_thread_start_data): Add thread_pool and task
440 (gomp_thread_start): Add gomp_team_barrier_wait call.
441 For non-nested case remove clearing of docked thread thr fields.
442 Use pool fields instead of global gomp_* variables. Use
443 gomp_barrier_wait_last when needed. Initialize ts.active_level.
444 Create tasks for each member thread.
445 (free_team): Only destroy team barrier, task_lock here and free it.
446 (gomp_free_thread): Free last_team if non-NULL.
447 (gomp_team_end): Call gomp_team_barrier_wait instead of
448 gomp_barrier_wait. For nested case call one extra
449 gomp_barrier_wait. Move here some destruction from free_team.
450 Call free_team on pool->last_team if any, rather than freeing
451 current team. Destroy work_share_list_free_lock ifndef
453 (gomp_new_icv): New function.
454 (gomp_threads, gomp_threads_size, gomp_threads_used,
455 gomp_threads_dock): Removed.
456 (gomp_thread_destructor): New variable.
457 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
459 (gomp_team_start): Create new pool if current thread doesn't have
460 one. Use pool fields instead of global gomp_* variables.
461 Initialize thread_pool field for new threads. Clear single_count.
462 Change last argument from ws to team, don't create
463 new team, set ts.work_share to &team->work_shares[0] and clear
464 ts.last_work_share. Don't clear ts.work_share_generation.
465 If number of threads changed, adjust atomically gomp_managed_threads.
466 Use gomp_init_task instead of gomp_new_task,
467 set thr->task to the corresponding implicit_task array entry.
468 Create tasks for each member thread. Initialize ts.level.
469 (initialize_team): Call pthread_key_create on
470 gomp_thread_destructor.
471 (team_destructor): New function.
473 (gomp_new_team): New function.
474 (free_team): Free gomp_work_share blocks chained through next_alloc,
475 instead of freeing work_shares and destroying work_share_lock.
476 (gomp_team_end): Call gomp_fini_work_share. If number of threads
477 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
478 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
479 of gomp_barrier_wait.
480 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
481 instead of gomp_barrier_wait. Call gomp_work_share_init_done
482 if gomp_work_share_start returned true. Don't unlock ws->lock.
483 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
484 of gomp_barrier_wait.
485 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
486 gomp_work_share_init_done if gomp_work_share_start returned true.
487 Don't unlock ws->lock.
488 * work.c: Include stddef.h.
489 (free_work_share): Use work_share_list_free_lock instead
490 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
491 Call gomp_fini_work_share and then either free ws if orphaned, or
492 put it into work_share_list_free list of the current team.
493 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
495 (gomp_work_share_start, gomp_work_share_end,
496 gomp_work_share_end_nowait): Rewritten.
497 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
498 (openmp_version): Set to 200805.
499 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
500 omp_sched_guided, omp_sched_auto): New parameters.
501 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
502 omp_set_max_active_levels, omp_get_max_active_levels,
503 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
504 omp_get_active_level): New interfaces.
505 * omp_lib.h.in (openmp_version): Set to 200805.
506 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
507 omp_sched_guided, omp_sched_auto): New parameters.
508 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
509 omp_set_max_active_levels, omp_get_max_active_levels,
510 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
511 omp_get_active_level): New externals.
512 * loop.c: Include limits.h.
513 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
515 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
516 Likewise. Use gomp_icv.
517 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
519 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
520 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
521 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
522 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
523 don't unlock ws->lock, otherwise lock it.
524 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
525 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
526 (gomp_parallel_loop_start): Call gomp_new_team instead of
527 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
528 Adjust gomp_team_start caller. Pass 0 as second argument to
529 gomp_resolve_num_threads.
530 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
531 If adding ws->chunk_size nthreads + 1 times after end won't
532 overflow, set ws->mode to 1.
533 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
534 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
535 GOMP_loop_ull_ordered_static_start,
536 GOMP_loop_ull_ordered_dynamic_start,
537 GOMP_loop_ull_ordered_guided_start,
538 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
539 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
540 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
541 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
542 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
544 * libgomp.map: Export lock routines also @@OMP_2.0.
545 (GOMP_loop_ordered_dynamic_first,
546 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
547 GOMP_loop_ordered_static_first): Remove.
548 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
549 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
550 GOMP_loop_ull_ordered_dynamic_next,
551 GOMP_loop_ull_ordered_dynamic_start,
552 GOMP_loop_ull_ordered_guided_next,
553 GOMP_loop_ull_ordered_guided_start,
554 GOMP_loop_ull_ordered_runtime_next,
555 GOMP_loop_ull_ordered_runtime_start,
556 GOMP_loop_ull_ordered_static_next,
557 GOMP_loop_ull_ordered_static_start,
558 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
559 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
560 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
561 (omp_set_schedule, omp_get_schedule,
562 omp_get_thread_limit, omp_set_max_active_levels,
563 omp_get_max_active_levels, omp_get_level,
564 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
565 omp_set_schedule_, omp_set_schedule_8_,
566 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
567 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
568 omp_get_max_active_levels_, omp_get_level_,
569 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
570 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
571 New exports @@OMP_3.0.
572 * omp.h.in (omp_sched_t): New type.
573 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
574 omp_set_max_active_levels, omp_get_max_active_levels,
575 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
576 omp_get_active_level): New prototypes.
577 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
578 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
579 gomp_thread_limit_var, gomp_remaining_threads_count,
580 gomp_remaining_threads_lock): New variables.
581 (parse_spincount): New function.
582 (initialize_env): Call gomp_init_num_threads unconditionally.
583 Initialize gomp_available_cpus. Call parse_spincount,
584 initialize gomp_{,throttled_}spin_count_var
585 depending on presence and value of OMP_WAIT_POLICY and
586 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
587 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
588 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
589 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
590 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
591 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
592 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
593 (gomp_global_icv): New.
594 (parse_schedule): Use it. Parse "auto".
595 (omp_set_num_threads): Use gomp_icv.
596 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
598 (omp_get_max_threads): Move from parallel.c.
599 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
600 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
602 (parse_stacksize, parse_wait_policy): New functions.
603 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
604 both wrappers for compatibility and new locks.
605 (omp_set_schedule, omp_get_schedule,
606 omp_get_thread_limit, omp_set_max_active_levels,
607 omp_get_max_active_levels, omp_get_level,
608 omp_get_ancestor_thread_num, omp_get_team_size,
609 omp_get_active_level): New ialias_redirect.
610 (omp_set_schedule_, omp_set_schedule_8_,
611 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
612 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
613 omp_get_max_active_levels_, omp_get_level_,
614 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
615 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
617 * parallel.c: Include limits.h.
618 (gomp_resolve_num_threads): Add count argument. Rewritten.
619 (GOMP_parallel_start): Call gomp_new_team and pass that as last
620 argument to gomp_team_start. Pass 0 as second argument to
621 gomp_resolve_num_threads.
622 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
623 if gomp_thread_limit_var != ULONG_MAX.
624 (omp_in_parallel): Implement using ts.active_level.
625 (omp_get_max_threads): Move to env.c.
626 (omp_get_level, omp_get_ancestor_thread_num,
627 omp_get_team_size, omp_get_active_level): New functions,
629 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
630 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
631 gomp_iter_dynamic_next instead of the _locked variant and don't take
632 lock around it, otherwise acquire it before calling
633 gomp_iter_dynamic_next_locked.
634 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
635 gomp_iter_dynamic_next instead of the _locked variant and don't take
637 (GOMP_parallel_sections_start): Call gomp_new_team instead of
638 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
639 Adjust gomp_team_start caller. Pass count as second argument to
640 gomp_resolve_num_threads, don't adjust num_threads after the call.
642 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
643 ws->chunk_size by incr.
644 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
646 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
648 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
649 (omp_check_defines): Check even the compat defines.
650 * config/linux/ptrlock.c: New file.
651 * config/linux/ptrlock.h: New file.
652 * config/linux/wait.h: New file.
653 * config/posix/ptrlock.c: New file.
654 * config/posix/ptrlock.h: New file.
655 * config/linux/bar.h (gomp_team_barrier_wait,
656 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
657 (gomp_team_barrier_set_task_pending,
658 gomp_team_barrier_clear_task_pending,
659 gomp_team_barrier_set_waiting_for_tasks,
660 gomp_team_barrier_waiting_for_tasks,
661 gomp_team_barrier_done): New inlines.
662 (gomp_barrier_t): Rewritten.
663 (gomp_barrier_state_t): New typedef.
664 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
665 gomp_barrier_wait_start): Rewritten.
666 (gomp_barrier_wait_end): Change second argument to
667 gomp_barrier_state_t.
668 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
670 * config/linux/bar.c: Include wait.h instead of libgomp.h and
672 (gomp_barrier_wait_end): Rewritten.
673 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
674 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
675 * config/posix/bar.h (gomp_barrier_t): Add generation field.
676 (gomp_barrier_state_t): New typedef.
677 (gomp_team_barrier_wait,
678 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
679 (gomp_barrier_wait_start): Or all but low 2 bits from generation
680 into the return value. Return gomp_barrier_state_t.
681 (gomp_team_barrier_set_task_pending,
682 gomp_team_barrier_clear_task_pending,
683 gomp_team_barrier_set_waiting_for_tasks,
684 gomp_team_barrier_waiting_for_tasks,
685 gomp_team_barrier_done): New inlines.
686 (gomp_barrier_wait_end): Change second argument to
687 gomp_barrier_state_t.
688 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
690 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
691 (gomp_barrier_wait_end): Change second argument to
692 gomp_barrier_state_t.
693 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
694 gomp_team_barrier_wake): New functions.
695 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
697 (gomp_futex_wake, gomp_futex_wait): New variables.
698 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
699 * config/linux/lock.c: Rewrite to make locks task owned,
700 for backwards compatibility provide the old entrypoints
701 if symbol versioning. Include wait.h instead of libgomp.h and
703 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
704 * config/posix95/lock.c: Rewrite to make locks task owned,
705 for backwards compatibility provide the old entrypoints
706 if symbol versioning.
707 * config/posix/lock.c: Rewrite to make locks task owned,
708 for backwards compatibility provide the old entrypoints
709 if symbol versioning.
710 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
711 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
712 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
713 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
714 (sys_futex0): Return error code.
715 (futex_wake, futex_wait): If ENOSYS was returned, clear
716 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
717 (cpu_relax, atomic_write_barrier): New static inlines.
718 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
719 (futex_wake, futex_wait): If ENOSYS was returned, clear
720 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
721 (cpu_relax, atomic_write_barrier): New static inlines.
722 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
723 (sys_futex0): Return error code.
724 (futex_wake, futex_wait): If ENOSYS was returned, clear
725 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
726 (cpu_relax, atomic_write_barrier): New static inlines.
727 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
728 (sys_futex0): Return error code.
729 (futex_wake, futex_wait): If ENOSYS was returned, clear
730 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
731 (cpu_relax, atomic_write_barrier): New static inlines.
732 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
733 (sys_futex0): Return error code.
734 (futex_wake, futex_wait): If ENOSYS was returned, clear
735 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
736 (cpu_relax, atomic_write_barrier): New static inlines.
737 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
738 (sys_futex0): Return error code.
739 (futex_wake, futex_wait): If ENOSYS was returned, clear
740 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
741 (cpu_relax, atomic_write_barrier): New static inlines.
742 * config/linux/sem.c: Include wait.h instead of libgomp.h and
744 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
745 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
746 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
748 (omp_nest_lock_t): Change owner into void *, add lock field.
749 * config/posix95/omp-lock.h: Include semaphore.h.
750 (omp_lock_25_t, omp_nest_lock_25_t): New types.
751 (omp_lock_t): Use sem_t instead of mutex if semaphores
753 (omp_nest_lock_t): Likewise. Change owner to void *.
754 * config/posix/omp-lock.h: Include semaphore.h.
755 (omp_lock_25_t, omp_nest_lock_25_t): New types.
756 (omp_lock_t): Use sem_t instead of mutex if semaphores
758 (omp_nest_lock_t): Likewise. Add owner field.
760 2008-06-06 Jakub Jelinek <jakub@redhat.com>
762 * testsuite/libgomp.c/collapse-1.c: New test.
763 * testsuite/libgomp.c/collapse-2.c: New test.
764 * testsuite/libgomp.c/collapse-3.c: New test.
765 * testsuite/libgomp.c/icv-1.c: New test.
766 * testsuite/libgomp.c/icv-2.c: New test.
767 * testsuite/libgomp.c/lib-2.c: New test.
768 * testsuite/libgomp.c/lock-1.c: New test.
769 * testsuite/libgomp.c/lock-2.c: New test.
770 * testsuite/libgomp.c/lock-3.c: New test.
771 * testsuite/libgomp.c/loop-4.c: New test.
772 * testsuite/libgomp.c/loop-5.c: New test.
773 * testsuite/libgomp.c/loop-6.c: New test.
774 * testsuite/libgomp.c/loop-7.c: New test.
775 * testsuite/libgomp.c/loop-8.c: New test.
776 * testsuite/libgomp.c/loop-9.c: New test.
777 * testsuite/libgomp.c/nested-3.c: New test.
778 * testsuite/libgomp.c/nestedfn-6.c: New test.
779 * testsuite/libgomp.c/sort-1.c: New test.
780 * testsuite/libgomp.c/task-1.c: New test.
781 * testsuite/libgomp.c/task-2.c: New test.
782 * testsuite/libgomp.c/task-3.c: New test.
783 * testsuite/libgomp.c/task-4.c: New test.
784 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
785 to C++ testsuite default compiler options.
786 * testsuite/libgomp.c++/collapse-1.C: New test.
787 * testsuite/libgomp.c++/collapse-2.C: New test.
788 * testsuite/libgomp.c++/ctor-10.C: New test.
789 * testsuite/libgomp.c++/for-1.C: New test.
790 * testsuite/libgomp.c++/for-2.C: New test.
791 * testsuite/libgomp.c++/for-3.C: New test.
792 * testsuite/libgomp.c++/for-4.C: New test.
793 * testsuite/libgomp.c++/for-5.C: New test.
794 * testsuite/libgomp.c++/loop-8.C: New test.
795 * testsuite/libgomp.c++/loop-9.C: New test.
796 * testsuite/libgomp.c++/loop-10.C: New test.
797 * testsuite/libgomp.c++/task-1.C: New test.
798 * testsuite/libgomp.c++/task-2.C: New test.
799 * testsuite/libgomp.c++/task-3.C: New test.
800 * testsuite/libgomp.c++/task-4.C: New test.
801 * testsuite/libgomp.c++/task-5.C: New test.
802 * testsuite/libgomp.c++/task-6.C: New test.
803 * testsuite/libgomp.fortran/allocatable1.f90: New test.
804 * testsuite/libgomp.fortran/allocatable2.f90: New test.
805 * testsuite/libgomp.fortran/allocatable3.f90: New test.
806 * testsuite/libgomp.fortran/allocatable4.f90: New test.
807 * testsuite/libgomp.fortran/collapse1.f90: New test.
808 * testsuite/libgomp.fortran/collapse2.f90: New test.
809 * testsuite/libgomp.fortran/collapse3.f90: New test.
810 * testsuite/libgomp.fortran/collapse4.f90: New test.
811 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
812 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
813 * testsuite/libgomp.fortran/lib4.f90: New test.
814 * testsuite/libgomp.fortran/lock-1.f90: New test.
815 * testsuite/libgomp.fortran/lock-2.f90: New test.
816 * testsuite/libgomp.fortran/nested1.f90: New test.
817 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
818 * testsuite/libgomp.fortran/strassen.f90: New test.
819 * testsuite/libgomp.fortran/tabs1.f90: New test.
820 * testsuite/libgomp.fortran/tabs2.f: New test.
821 * testsuite/libgomp.fortran/task1.f90: New test.
822 * testsuite/libgomp.fortran/task2.f90: New test.
823 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
824 * testsuite/libgomp.fortran/vla5.f90: Likewise.
825 * testsuite/libgomp.c/pr26943-2.c: Likewise.
826 * testsuite/libgomp.c/pr26943-3.c: Likewise.
827 * testsuite/libgomp.c/pr26943-4.c: Likewise.
829 2008-05-23 Jakub Jelinek <jakub@redhat.com>
832 * testsuite/libgomp.c++/ctor-11.C: New test.
833 * testsuite/libgomp.c++/ctor-12.C: New test.
835 2008-05-15 Janis Johnson <janis187@us.ibm.com>
837 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
839 2008-05-07 Jakub Jelinek <jakub@redhat.com>
842 * testsuite/libgomp.c/atomic-5.c: New test.
843 * testsuite/libgomp.c/atomic-6.c: New test.
844 * testsuite/libgomp.c/autopar-1.c: New test.
846 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
848 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
849 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
850 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
851 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
852 * configure: Regenerate.
853 * Makefile.in, testsuite/Makefile.in: Likewise.
855 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
858 * aclocal.m4: Regenerate.
859 * configure: Regenerate.
861 2008-03-18 Jakub Jelinek <jakub@redhat.com>
864 * testsuite/libgomp.c/atomic-4.c: New test.
867 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
868 (gomp_iter_guided_next): Likewise.
869 * testsuite/libgomp.c/pr35625.c: New test.
871 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
873 * aclocal.m4: Regenerate.
874 * configure: Likewise.
875 * Makefile.in: Likewise.
876 * testsuite/Makefile.in: Likewise.
878 2008-03-13 Jakub Jelinek <jakub@redhat.com>
881 * testsuite/libgomp.c++/pr35185.C: New test.
883 2008-03-12 Jakub Jelinek <jakub@redhat.com>
886 * testsuite/libgomp.c/pr35549.c: New test.
888 2008-03-06 Jakub Jelinek <jakub@redhat.com>
890 * testsuite/libgomp.c/atomic-3.c: New test.
892 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
895 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
898 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
901 * configure.ac: Add ACX_HEADER_STRING.
902 * env.c: Include strings.h.
903 * aclocal.m4: Regenerate.
904 * config.h.in: Regenerate.
905 * configure: Regenerate.
906 * Makefile.in: Regenerate.
907 * testsuite/Makefile.in: Regenerate.
909 2008-02-15 Jakub Jelinek <jakub@redhat.com>
912 * testsuite/libgomp.c/pr35196.c: New test.
915 * testsuite/libgomp.fortran/pr35130.f90: New test.
916 * testsuite/libgomp.c/pr35130.c: New test.
918 2008-01-25 Jakub Jelinek <jakub@redhat.com>
921 * testsuite/libgomp.c/pr33880.c: New test.
922 * testsuite/libgomp.fortran/pr33880.f90: New test.
924 2008-01-24 David Edelsohn <edelsohn@gnu.org>
926 * configure: Regenerate.
928 2008-01-08 Jakub Jelinek <jakub@redhat.com>
930 * configure.ac: Move futex checking into ../config/futex.m4.
931 * configure: Rebuilt.
932 * aclocal.m4: Rebuilt.
933 * Makefile.in: Rebuilt.
935 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
936 2007-10-15 ../config/tls.m4 change.
938 2007-12-19 Jakub Jelinek <jakub@redhat.com>
941 * testsuite/libgomp.c/pr34513.c: New test.
942 * testsuite/libgomp.c++/pr34513.C: New test.
944 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
947 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
949 2007-12-04 Jakub Jelinek <jakub@redhat.com>
951 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
953 2007-12-03 Jakub Jelinek <jakub@redhat.com>
955 * testsuite/libgomp.c/private-1.c: New test.
957 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
958 Paolo Bonzini <bonzini@gnu.org>
960 * Makefile.am: Use space as vpath separator. Use 'vpath %'
961 instead of 'VPATH ='.
962 * Makefile.in: Regenerate.
964 2007-11-23 Matthias Klose <doko@ubuntu.com>
966 * configure.ac: Adjust makeinfo version check.
967 * configure: Regenerate.
969 2007-11-10 Jakub Jelinek <jakub@redhat.com>
972 * testsuite/libgomp.fortran/pr34020.f90: New test.
974 2007-11-06 Jakub Jelinek <jakub@redhat.com>
977 * testsuite/libgomp.c++/atomic-1.C: New test.
979 2007-10-25 Jakub Jelinek <jakub@redhat.com>
982 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
983 Make x and y integers rather than (implicit) reals. Add private (j)
984 clause to the last omp parallel.
986 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
988 * configure: Regenerate following changes to ../config/tls.m4.
990 2007-09-28 Jakub Jelinek <jakub@redhat.com>
992 * testsuite/libgomp.fortran/stack.f90: New test.
994 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
996 * config/mingw32/proc.c: New file.
998 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1000 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1001 (main): Use __get_cpuid to get i386 target fetaures.
1002 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1003 (main): Use __get_cpuid to get x86_64 target fetaures.
1005 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1008 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1009 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1011 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1014 * testsuite/libgomp.fortran/pr32550.f90: New test.
1015 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1017 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1019 * aclocal.m4: Regenerated.
1021 2007-07-05 Tobias Burnus <burnus@net-b.de>
1024 * testsuite/libgomp.fortran/pr32359.f90: New.
1026 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1029 * sections.c (GOMP_parallel_sections_start): Only decrease
1030 number of threads to COUNT if dyn_var is true.
1031 * testsuite/libgomp.c/pr32468.c: New test.
1033 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1036 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1038 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1041 * testsuite/libgomp.c/pr32362-1.c: New test.
1042 * testsuite/libgomp.c/pr32362-2.c: New test.
1043 * testsuite/libgomp.c/pr32362-3.c: New test.
1045 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1047 * team.c (gomp_team_start): Fix setting up thread_attr
1050 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1052 * configure: Regenerate.
1054 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1056 * Makefile.in: Regenerate.
1057 * configure: Regenerate.
1058 * aclocal.m4: Regenerate.
1059 * testsuite/Makefile.in: Regenerate.
1061 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1063 * config/linux/proc.c: New file.
1066 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1068 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1070 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1072 2007-04-16 Matthias Klose <doko@debian.org>
1074 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1075 flags if not building with -m64.
1076 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1077 flag for i?86-*-* targets, if current target matches -m64.
1079 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1081 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1082 * Makefile.in: Regenerate.
1084 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1087 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1089 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1091 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1093 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1095 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1096 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1097 (parse_affinity): New function.
1098 (initialize_env): Call it and gomp_init_affinity.
1099 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1100 create new pthread_attr_t and call gomp_init_thread_affinity
1101 on it for each thread before passing the attribute to pthread_create.
1102 * config/linux/affinity.c: New file.
1103 * config/posix/affinity.c: New file.
1104 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1105 * configure: Rebuilt.
1106 * config.h.in: Rebuilt.
1107 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1108 * Makefile.in: Rebuilt.
1110 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1112 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1114 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1115 and use it if found.
1117 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1119 * testsuite/config/default.exp: New file.
1120 * testsuite/lib/libgomp.exp: New file.
1121 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1122 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1123 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1124 (libgomp_load): Remove.
1125 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1126 always_ld_library_path, not ld_library_path. Set additional_flags
1127 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1128 (target_compile): Do not call libgomp_init. Append lang_library_path
1129 and lang_link_flags to options.
1130 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1131 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1133 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1134 always_ld_library_path. Set LD_LIBRARY_PATH here.
1135 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1136 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1137 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1139 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1140 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1141 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1142 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1143 * testsuite/libgomp.c/atomic-10.c: Ditto.
1145 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1147 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1148 dg-final cleanup-modules line.
1149 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1150 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1151 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1152 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1153 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1154 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1155 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1157 2007-03-18 Andreas Schwab <schwab@suse.de>
1159 * acinclude.m4: Adjust regular expression for ld version
1161 * configure: Regenerate.
1163 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1165 * Makefile.am: Add install-pdf target as copied from
1166 automake v1.10 rules.
1167 * Makefile.in: Regenerate
1169 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1172 * configure: Regenerate.
1175 * testsuite/libgomp.c++/pr30703.C: New test.
1177 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1180 2006-07-05 Eric Christopher <echristo@apple.com>
1181 * configure.ac: Depend addition of -pthread on host OS.
1182 * configure: Regenerate.
1184 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1186 * libgomp.texi: Fix spacing after abbreviations.
1188 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1191 * configure.ac: Add check for makeinfo
1192 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1193 if an appropiate version of makeinfo is found.
1194 * aclocal.m4: Regenerated.
1195 * configure: Regenerated.
1196 * Makefile.in: Regenerated.
1197 * testsuite/Makefile.in: Regenerated.
1199 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1202 * libgomp.texi: More about implementation-dependent settings.
1204 2007-01-26 Tobias Burnus <burnus@net-b.de>
1206 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1208 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1211 * testsuite/libgomp.c/pr30494.c: New test.
1213 2007-01-15 Tom Tromey <tromey@redhat.com>
1215 * configure: Rebuilt.
1216 * configure.ac: Fixed comment.
1218 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1220 * libgomp.texi: Document implementation specific default values of
1221 environment variables.
1223 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1226 * libgomp.texi: New file.
1227 * configure.ac: Add --enable-generated-files-in-srcdir option.
1228 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1230 * Makefile.in: Regenerated.
1231 * config.h.in: Regenerated.
1232 * testsuite/Makefile.in: Regenerated.
1235 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1238 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1240 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1242 * configure: Regenerate.
1244 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1247 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1248 start if there shouldn't be any loop iterations.
1249 (gomp_loop_ordered_static_start): Remove start == end test.
1250 * testsuite/libgomp.c/pr29947-1.c: New test.
1251 * testsuite/libgomp.c/pr29947-2.c: New test.
1253 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1255 * configure.tgt: Force initial-exec TLS model on Linux only.
1257 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1259 * configure: Regenerated.
1261 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1263 * env.c (parse_schedule): Reject out of range values.
1264 (parse_unsigned_long): Reject out of range, negative or zero values.
1266 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1269 * testsuite/libgomp.fortran/pr29629.f90: New test.
1271 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1274 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1275 * config/posix95: New directory.
1276 * config/posix95/omp-lock.h: New file.
1277 * config/posix95/lock.c: Likewise.
1279 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1281 * aclocal.m4: Regenerate.
1282 * configure: Regenerate.
1284 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1286 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1289 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1291 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1293 * configure: Regenerate.
1294 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1296 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1300 * testsuite/libgomp.c/nestedfn-4.c: New test.
1301 * testsuite/libgomp.c/nestedfn-5.c: New test.
1302 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1305 * testsuite/libgomp.fortran/condinc1.f: New test.
1306 * testsuite/libgomp.fortran/condinc2.f: New test.
1307 * testsuite/libgomp.fortran/condinc3.f90: New test.
1308 * testsuite/libgomp.fortran/condinc4.f90: New test.
1309 * testsuite/libgomp.fortran/condinc1.inc: New file.
1311 2006-09-18 Tom Tromey <tromey@redhat.com>
1313 * configure: Rebuilt.
1315 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1318 PR preprocessor/14634
1319 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1321 * configure: Regenerate.
1323 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1325 * testsuite/libgomp.fortran/reduction3.f90: Change
1326 -2147483648 to -huge(i)-1 to avoid overflow.
1327 * testsuite/libgomp.fortran/reduction4.f90: Change
1328 Z'ffffffff' to not(0) to avoid overflow.
1330 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1333 * Makefile.am (libsubincludedir): New.
1334 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1335 * Makefile.in: Regenerate.
1337 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1340 * env.c: Include ctype.h.
1341 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1342 leading and/or trailing whitespace and compare strings case
1345 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1348 * testsuite/libgomp.fortran/pr28390.f: New test.
1350 2006-07-05 Eric Christopher <echristo@apple.com>
1352 * configure.ac: Depend addition of -pthread on host OS.
1353 * configure: Regenerate.
1355 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1357 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1358 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1361 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1365 * configure.ac: If neither --enable-linux-futex nor
1366 --disable-linux-futex is passed, determine the default by checking
1367 for compiling and/or running against NPTL. With --enable-linux-futex,
1368 check if SYS_gettid and SYS_futex are defined.
1369 * configure: Rebuilt.
1371 2006-06-14 Richard Henderson <rth@redhat.com>
1374 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1375 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1377 2006-06-09 Richard Henderson <rth@redhat.com>
1379 * env.c (gomp_nthreads_var): Change to unsigned long.
1380 (gomp_run_sched_chunk): Likewise.
1381 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1382 (initialize_env): Initialize gomp_thread_attr.
1383 * libgomp.h (gomp_nthreads_var): Update decl.
1384 (gomp_run_sched_chunk): Likewise.
1385 (gomp_thread_attr): Declare.
1386 * team.c (gomp_thread_attr): Export.
1387 (initialize_team): Don't initialize it.
1389 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1392 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1393 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1395 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1397 * config/mingw32/time.c: New file.
1398 * configure.tgt: Use it.
1400 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1402 * Makefile.am: Add install-html target. Add install-html to .PHONY
1403 * Makefile.in: Regenerate.
1405 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1408 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1409 * testsuite/libgomp.c/critical-1.c: Likewise.
1410 * testsuite/libgomp.c/loop-1.c: Likewise.
1411 * testsuite/libgomp.c/loop-2.c: Likewise.
1412 * testsuite/libgomp.c/single-1.c: Likewise.
1413 * testsuite/libgomp.c/ordered-1.c: Likewise.
1414 * testsuite/libgomp.c/ordered-2.c: Likewise.
1416 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1419 * libgomp.fortran/pr27416-1.f90: New test.
1421 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1424 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1425 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1427 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1430 * testsuite/libgomp.c/pr26943-1.c: New test.
1431 * testsuite/libgomp.c/pr26943-2.c: New test.
1432 * testsuite/libgomp.c/pr26943-3.c: New test.
1433 * testsuite/libgomp.c/pr26943-4.c: New test.
1434 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1435 * testsuite/libgomp.c++/pr26943.C: New test.
1437 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1440 * testsuite/libgomp.c++/pr27337.C: New test.
1442 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1445 * testsuite/libgomp.c/pr26171.c: New test.
1447 2006-04-25 Richard Henderson <rth@redhat.com>
1450 * configure.ac: Use GCC_CHECK_TLS.
1451 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1452 * Makefile.in, aclocal.m4, configure: Regenerate.
1454 2006-04-10 Matthias Klose <doko@debian.org>
1456 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1457 directory names containing underscores.
1459 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1462 * testsuite/libgomp.c++/pr26691.C: New test.
1464 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1466 * testsuite/libgomp.fortran/retval2.f90: New test.
1468 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1470 * testsuite/libgomp.c++: New directory.
1472 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1474 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1475 * config/posix/sem.c: Implement the above.
1477 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1479 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1480 define HAVE_BROKEN_POSIX_SEMAPHORES.
1481 * configure: Rebuilt.
1482 * config.h.in: Rebuilt.
1484 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1487 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1488 for the other pthread check.
1489 * configure: Regenerate.
1490 * config.h.in: Regenerate.
1492 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1496 * Makefile.am (fincludedir): New variable.
1497 (nodist_include_HEADERS): Remove Fortran files.
1498 (nodist_finclude_HEADERS): New variable.
1499 * Makefile.in: Regenerated.
1501 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1503 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1504 Remove tests for returning assumed character length arrays.
1506 2006-02-12 Roger Sayle <roger@eyesopen.com>
1507 John David Anglin <dave@hiauly1.hia.nrc.ca>
1510 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1512 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1514 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1516 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1518 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1519 part of LD_LIBRARY_PATH manually.
1521 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1524 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1527 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1530 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1531 * configure.ac (PERL): Don't set.
1532 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1533 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1534 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1535 * omp.h.in: Wrap the new configure substitutions with @ characters.
1536 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1537 * aclocal.m4, configure, Makefile.in: Regenerate.
1538 * mkomp_h.pl: Delete.
1540 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1543 * configure.ac: Use GCC_HEADER_STDINT.
1544 * libgomp.h: Include gstdint.h.
1545 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1546 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1548 2006-01-24 Richard Henderson <rth@redhat.com>
1551 * configure.ac: Add AM_MAINTAINER_MODE.
1552 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1554 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1556 * Makefile.in: Regenerate.
1557 * testsuite/Makefile.in: Regenerate.
1558 * aclocal.m4: Regenerate.
1560 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1562 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1564 * configure.ac: Add check for loadavg.h.
1565 (link_gomp): Adjust comment.
1566 * configure: Regenerate.
1567 * config.h.in: Regenerate.
1569 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1572 * configure.ac: Remove check for alloca.h.
1573 * configure: Regenerate.
1574 * config.h.in: Regenerate.
1575 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1576 * team.c: Remove use of alloca.h.
1577 Call gomp_alloca instead of alloca.
1579 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1582 * team.c: Add include of alloca.h.
1583 * configure.ac: Add check for alloca.h.
1584 * configure: Regenerate.
1585 * config.h.in: Regenerate.
1587 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1590 * testsuite/libgomp.fortran/pr25219.f90: New test.
1592 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1594 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1595 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1596 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1597 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1598 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1599 testsuite/libgomp.fortran/threadprivate1.f90,
1600 testsuite/libgomp.fortran/threadprivate2.f90,
1601 testsuite/libgomp.fortran/threadprivate3.f90,
1602 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1603 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1604 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1605 effective-target to TLS runtime.
1607 * testsuite/libgomp.fortran/pr25162.f: Require
1608 effective-target TLS runtime.
1610 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1612 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1613 * testsuite/libgomp.c/nestedfn-3.c: New test.
1615 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1618 * testsuite/libgomp.fortran/pr25162.f: New test.
1620 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1622 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1623 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1625 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1627 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1628 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1629 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1630 single.c, team.c, work.c, config/linux/alpha/futex.h,
1631 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1632 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1633 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1634 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1635 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1636 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1637 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1640 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1642 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1643 to nodist_noinst_HEADERS.
1644 * Makefile.in: Rebuilt.
1646 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1647 add integer count field.
1648 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1649 omp_nest_lock_t type change.
1650 (omp_init_nest_lock): Likewise. Initialize count to 0.
1651 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1653 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1655 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1656 Increment count if successful and return the new nesting level.
1657 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1658 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1659 * testsuite/libgomp.c/lib-1.c: New test.
1660 * testsuite/libgomp.fortran/lib1.f90: New test.
1661 * testsuite/libgomp.fortran/lib2.f: New test.
1662 * testsuite/libgomp.fortran/lib3.f: New test.
1664 2005-11-17 Richard Henderson <rth@redhat.com>
1667 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1668 * configure.ac (link_gomp): New. Substitute it.
1669 (AC_CONFIG_FILES): Add libgomp.spec.
1670 * libgomp.spec.in: New file.
1671 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1672 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1674 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1676 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1677 reduction(-:var) behaving the same as reduction(+:var).
1678 * testsuite/libgomp.c/reduction-4.c: New test.
1680 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1682 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1683 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1684 testsuite/libgomp.c/copyin-3.c,
1685 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1686 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1687 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1688 testsuite/libgomp.c++/pr24455.C,
1689 testsuite/libgomp.fortran/threadprivate1.f90,
1690 testsuite/libgomp.fortran/threadprivate2.f90,
1691 testsuite/libgomp.fortran/threadprivate3.f90,
1692 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1693 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1694 testsuite/libgomp.fortran/omp_parse3.f90: Require
1695 effective-target TLS.
1697 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1701 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1704 * team.c (initialize_team): Pass NULL rather than free as
1705 pthread_key_create destructor. Initialize thread specific data
1706 pointer in initial thread to a static local variable rather than
1709 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1711 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1712 its location to ld_library_path.
1714 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1716 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1718 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1720 * testsuite/libgomp.c: Rename from libgomp.dg.
1722 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1724 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1725 threadprivate variable 'i'.
1727 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1729 * config/linux/s390/futex.h: New file.
1730 * configure.tgt: Use it.
1732 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1733 before the parallel.
1735 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1738 * testsuite/libgomp.c++/master-1.C: New test.
1740 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1742 * testsuite/libgomp.dg/copyin-3.c: New test.
1744 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1746 * testsuite/libgomp.fortran/retval1.f90: New test.
1747 * testsuite/libgomp.fortran/vla7.f90: New test.
1749 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1751 * testsuite/libgomp.fortran/vla2.f90: New test.
1752 * testsuite/libgomp.fortran/vla3.f90: New test.
1753 * testsuite/libgomp.fortran/vla4.f90: New test.
1754 * testsuite/libgomp.fortran/vla5.f90: New test.
1755 * testsuite/libgomp.fortran/vla6.f90: New test.
1757 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1759 * config/linux/sparc/futex.h: New file.
1760 * configure.tgt: Use it.
1761 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1763 * critical.c: Include stdlib.h.
1764 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1765 ignoring return value.
1766 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1767 LIBGOMP_CHECK_SYNC_BUILTINS check.
1768 * configure: Rebuilt.
1770 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1772 * testsuite/libgomp.fortran/vla1.f90: New test.
1774 2005-10-31 Richard Henderson <rth@redhat.com>
1776 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1777 setting 's' in different threads.
1779 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1781 * libgomp.h (attribute_hidden, ialias): Define.
1782 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1783 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1784 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1785 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1786 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1787 omp_test_lock, omp_test_nest_lock): Likewise.
1788 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1789 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1790 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1791 omp_test_lock, omp_test_nest_lock): Likewise.
1792 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1793 omp_get_dynamic, omp_get_nested): Likewise.
1794 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1795 omp_get_thread_num, omp_in_parallel): Likewise.
1796 * fortran.c (ialias_redirect): Define.
1797 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1798 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1799 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1800 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1801 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1802 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1803 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1804 omp_get_wtime): Add ialias_redirect.
1806 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1808 * fortran.c: Include stdlib.h.
1810 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1812 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1813 * Makefile.in: Regenerated.
1815 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1817 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1818 * libgomp_f.h.in (omp_check_defines): New function.
1819 * env.c: Include libgomp_f.h.
1820 (initialize_env): Call omp_check_defines.
1822 * testsuite/libgomp.dg/copyin-2.c: New test.
1823 * testsuite/libgomp.c++/copyin-2.C: New test.
1824 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1826 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1827 * testsuite/libgomp.fortran/sharing2.f90: New test.
1829 * testsuite/libgomp.dg/copyin-1.c: New test.
1830 * testsuite/libgomp.c++/copyin-1.C: New test.
1832 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1834 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1836 * testsuite/libgomp.fortran/workshare1.f90: New test.
1838 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1840 * libgomp.fortran/sharing1.f90: New test.
1842 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1845 * testsuite/libgomp.c++/loop-7.C: New test.
1847 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1849 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1850 * testsuite/libgomp.fortran/reduction6.f90: New test.
1851 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1853 2005-10-23 Richard Henderson <rth@redhat.com>
1855 * testsuite/libgomp.c++/ctor-1.C: New.
1856 * testsuite/libgomp.c++/ctor-2.C: New.
1857 * testsuite/libgomp.c++/ctor-3.C: New.
1858 * testsuite/libgomp.c++/ctor-4.C: New.
1859 * testsuite/libgomp.c++/ctor-5.C: New.
1860 * testsuite/libgomp.c++/ctor-6.C: New.
1861 * testsuite/libgomp.c++/ctor-7.C: New.
1862 * testsuite/libgomp.c++/ctor-8.C: New.
1863 * testsuite/libgomp.c++/ctor-9.C: New.
1865 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1868 * testsuite/libgomp.c++/pr24455-1.C: New test.
1869 * testsuite/libgomp.c++/pr24455.C: New test.
1870 * testsuite/libgomp.dg/pr24455-1.c: New test.
1871 * testsuite/libgomp.dg/pr24455.c: New test.
1873 2005-10-20 Richard Henderson <rth@redhat.com>
1875 * testsuite/libgomp.c++/loop-6.C: New.
1876 * testsuite/libgomp.dg/loop-3.c: New.
1878 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1880 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1882 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1885 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1887 * testsuite/libgomp.fortran/jacobi.f: New test.
1889 2005-10-19 Richard Henderson <rth@redhat.com>
1891 * configure.tgt (i?86-linux): Default to with_arch instead of
1892 CFLAGS. Add -mtune to match target_cpu.
1893 (x86_64-linux): Tune to i686.
1895 * fortran.c (omp_test_nest_lock_): Fix typo.
1897 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1899 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1900 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1901 * testsuite/libgomp.dg/ordered-3.c: New test.
1903 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1904 Remove volatile keyword.
1906 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1907 in COMMON block to avoid warnings on 64-bit targets.
1909 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1911 * testsuite/libgomp.dg/shared-3.c: New test.
1913 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1915 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1916 * testsuite/libgomp.fortran/reduction5.f90: New test.
1918 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1920 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1922 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1923 flush loop now that __sync_synchronize has proper memory barrier.
1924 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1925 Add -ffixed-form to dg-options.
1927 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1929 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1930 from subdirectories.
1931 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1932 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1933 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1934 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1935 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1936 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1937 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1938 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1939 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1940 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1941 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1942 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1943 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1944 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1945 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1946 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1947 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1948 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1949 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1950 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1951 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1952 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1953 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1954 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1955 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1957 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1959 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1960 lang_library_path exists. Use find instead of glob to gather tests.
1961 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1963 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1965 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1966 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1967 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1968 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1969 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1970 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1971 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1972 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1973 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1974 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1975 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1976 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1977 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1979 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1981 * testsuite/libgomp.dg/vla-1.c: New test.
1983 * testsuite/libgomp.fortran/reference2.f90: New test.
1985 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1986 declaration of omp_get_thread_num.
1987 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1990 * testsuite/libgomp.fortran/reduction1.f90: New test.
1991 * testsuite/libgomp.fortran/reduction2.f90: New test.
1992 * testsuite/libgomp.fortran/reduction3.f90: New test.
1993 * testsuite/libgomp.fortran/reduction4.f90: New test.
1995 2005-10-13 Richard Henderson <rth@redhat.com>
1997 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1998 * Makefile.in: Regenerate.
1999 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2000 * libgomp.h: Include bar.h.
2001 (struct gomp_barrier): Remove.
2002 (struct gomp_team): Add barrier. Replace master_barrier with
2003 master_release. Replace threads with ordered_release.
2004 (struct gomp_thread): Replace barrier with release.
2005 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2006 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2007 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2008 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2009 (GOMP_single_copy_end): Likewise.
2010 * team.c (gomp_threads_dock): New.
2011 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2012 (gomp_thread_start): Use gomp_barrier_wait.
2013 (new_team, free_team): Update for gomp_team changes.
2014 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2015 (gomp_team_end): Use gomp_barrier_wait.
2016 (initialize_team): Update for gomp_thread changes.
2017 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2018 (gomp_work_share_end_nowait): Use atomic ops when available.
2019 * config/linux/bar.c, config/linux/bar.h: New files.
2020 * config/posix/bar.c, config/posix/bar.h: New files.
2022 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2024 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2025 * testsuite/libgomp.dg/single-2.c: New test.
2027 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2028 lang_link_flags): Unset, so that they aren't inherited from previously
2031 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2033 2005-10-12 Richard Henderson <rth@redhat.com>
2035 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2036 (libgomp_init): Use lang_test_file, lang_library_path, and
2037 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2039 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2040 (lang_test_file, lang_link_flags): New.
2041 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2043 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2044 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2045 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2046 testsuite/libgomp.c++/parallel-1.C,
2047 testsuite/libgomp.c++/reduction-1.C,
2048 testsuite/libgomp.c++/reduction-2.C,
2049 testsuite/libgomp.c++/reduction-3.C,
2050 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2051 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2052 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2053 New files, largely cribbed from the C testsuite.
2055 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2057 * testsuite/libgomp.fortran/character1.f90: New test.
2058 * testsuite/libgomp.fortran/character2.f90: New test.
2060 * testsuite/libgomp.dg/nested-1.c: New test.
2061 * testsuite/libgomp.dg/nested-2.c: New test.
2062 * testsuite/libgomp.fortran/do1.f90: New test.
2063 * testsuite/libgomp.fortran/do2.f90: New test.
2065 * testsuite/libgomp.fortran/reference1.f90: New test.
2067 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2069 * testsuite/libgomp.dg/reduction-1.c: New test.
2070 * testsuite/libgomp.dg/reduction-2.c: New test.
2071 * testsuite/libgomp.dg/reduction-3.c: New test.
2073 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2075 * testsuite/libgomp.dg/atomic-1.c: New test.
2076 * testsuite/libgomp.dg/atomic-2.c: New test.
2078 2005-10-09 Richard Henderson <rth@redhat.com>
2080 * critical.c (atomic_lock): New.
2081 (initialize_critical): Initialize it.
2082 (GOMP_atomic_start, GOMP_atomic_end): New.
2083 * libgomp.map: Export them.
2084 * libgomp_g.h: Declare them.
2086 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2088 2005-10-02 Richard Henderson <rth@redhat.com>
2090 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2091 to XCFLAGS instead of CFLAGS.
2093 2005-09-30 Richard Henderson <rth@redhat.com>
2095 * configure.ac: Determine whether -pthread or -lpthread is needed.
2096 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2097 * Makefine.in, configure: Rebuild.
2099 2005-09-28 Richard Henderson <rth@redhat.com>
2101 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2102 * testsuite/libgomp.dg/omp-single-3.c: New test.
2104 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2106 * testsuite/libgomp.dg/omp-single-2.c: New test.
2107 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2109 2005-09-27 Richard Henderson <rth@redhat.com>
2111 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2112 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2114 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2116 * testsuite/libgomp.dg/omp-loop03.c: New test.
2118 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2120 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2122 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2124 * testsuite/libgomp.dg/omp-single-1.c: New test.
2125 * testsuite/libgomp.dg/shared-1.c: Return 0.
2126 Add prototype for abort.
2127 * testsuite/libgomp.dg/shared-2.c: Likewise.
2129 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2131 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2134 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2136 * testsuite/libgomp.dg/shared-1.c: New test.
2137 * testsuite/libgomp.dg/shared-2.c: New test.
2139 2005-09-24 Richard Henderson <rth@redhat.com>
2141 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2143 2005-09-24 Richard Henderson <rth@redhat.com>
2145 * iter.c (gomp_iter_static_next): Round up when computing number
2146 of iterations. Don't bother distributing a remainder equally.
2148 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2149 Don't call srand. Zero b before testing.
2152 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2154 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2155 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2157 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2159 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2160 without !$omp end do, followed immediately by subroutine end.
2162 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2164 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2166 2005-09-22 Richard Henderson <rth@redhat.com>
2168 * critical.c (GOMP_critical_name_start): Change argument to void**.
2169 Reuse the pointer space if the mutex fits.
2170 (GOMP_critical_name_end): Likewise.
2171 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2172 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2173 (GOMP_critical_name_end): Likewise.
2174 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2175 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2177 2005-09-20 Richard Henderson <rth@redhat.com>
2179 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2180 (create_lock_lock): New.
2181 (initialize_critical): Initialize it.
2182 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2183 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2185 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2187 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2189 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2191 * testsuite/libgomp.dg/omp-loop01.c: New test.
2192 * testsuite/libgomp.dg/omp-loop02.c: New test.
2194 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2196 * configure.ac (AC_PROG_FC): Add.
2197 (USE_FORTRAN): New automake conditional.
2198 * configure: Rebuilt.
2199 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2200 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2201 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2202 Add rules to build them.
2203 * Makefile.in: Rebuilt.
2204 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2206 * libgomp.map: Add Fortran wrappers.
2207 * libgomp_f.h.in: New file.
2208 * omp_lib.h.in: New file.
2209 * omp_lib.f90.in: New file.
2210 * fortran.c: New file.
2211 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2212 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2213 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2214 libgfortran has been built.
2215 * testsuite/libgomp.fortran/fortran.exp: New file.
2216 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2217 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2218 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2219 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2220 * testsuite/libgomp.fortran/omp_hello.f: New test.
2221 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2222 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2223 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2224 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2225 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2226 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2227 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2228 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2230 2005-08-30 Richard Henderson <rth@redhat.com>
2232 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2233 function for when aliases are not usable.
2234 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2235 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2236 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2237 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2238 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2239 GOMP_loop_ordered_guided_next): Likewise.
2240 * ordered.c (GOMP_ordered_start): Likewise.
2242 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2244 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2245 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2246 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2247 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2248 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2249 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2250 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2251 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2252 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2254 2005-07-07 Eric Christopher <echristo@redhat.com>
2255 Diego Novillo <dnovillo@redhat.com>
2257 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2258 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2260 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2261 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2262 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2263 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2264 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2265 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2266 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2268 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2270 * TOPLEVEL.patch: Remove.
2272 2005-05-16 Richard Henderson <rth@redhat.com>
2274 * configure.ac: Test for clock_gettime.
2275 * config.h.in, configure: Rebuild.
2276 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2277 (omp_get_wtime): Use clock_gettime if available.
2278 (omp_get_wtick): Use clock_getres if available.
2280 2005-05-11 Richard Henderson <rth@redhat.com>
2282 * config/linux/ia64/futex.h: New file.
2283 * configure.tgt: Use it.
2285 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2287 2005-05-07 Richard Henderson <rth@redhat.com>
2289 * config/linux/powerpc/futex.h: New file.
2290 * configure.tgt: Use it.
2292 * config/linux/i486/futex.h: Merge ...
2293 * config/linux/x86_64/futex.h: ... into ...
2294 * config/linux/x86/futex.h: ... here.
2295 * configure.tgt: Update to match.
2297 2005-05-06 Richard Henderson <rth@redhat.com>
2299 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2300 * config/linux/i486/futex.h: Likewise.
2301 * config/linux/x86_64/futex.h: Likewise.
2303 * config/linux/lock.c: New file.
2304 * config/linux/omp-lock.h: New file.
2306 * critical.c, env.h: Don't include omp.h
2307 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2308 * config/posix/time.c: Likewise.
2309 * config/posix/omp-lock.h: New file.
2310 * libgomp.h: Include omp-lock.h and omp.h.
2311 * Makefile.am (nodist_include_HEADERS): New.
2313 * configure.ac (PERL): New.
2314 * mkomp_h.pl: New file.
2315 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2317 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2319 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2320 build directory. Re-add -march=i486 hack.
2322 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2323 (libgomp_link_flags): Remove.
2324 (libgomp_initialized): Remove.
2325 (libgomp_init): Don't protect from reinitialization. Copy code
2326 from libstdc++ for getting the multilib set correctly.
2328 2005-05-05 Richard Henderson <rth@redhat.com>
2330 * config/linux/alpha/futex.h: New file.
2331 * configure.tgt (alpha*-*-linux*): Use it.
2333 * config/posix/mutex.c: New file.
2334 * config/posix/sem.c: Use libgomp.h.
2336 * configure.tgt (x86_64-linux): Also test CC for -m32.
2337 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2339 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2342 * Makefile.am (SUBDIRS): New.
2343 (libgomp_la_LDFLAGS): Add -lpthread.
2344 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2345 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2347 * libgomp_g.h: New file.
2348 * libgomp.h: Split out all public declarations to libgomp_g.h.
2349 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2350 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2351 * config/linux/sem.h: Likewise.
2352 * config/posix/sem.h: Likewise.
2354 * Makefile.am (AM_LDFLAGS): New.
2355 (libgomp_version_script): Split out from ...
2356 (libgomp_la_LDFLAGS): ... here.
2357 (libgomp_version_info): New.
2358 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2359 (LIBGOMP_ENABLE): New.
2360 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2361 (LIBGOMP_ENABLE_SYMVERS): New.
2362 * configure.ac (AC_INIT): Version 1.0.
2363 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2364 (enable-linux-futex): Likewise. Rename from enable-futex.
2365 (libtool_VERSION): New.
2366 (LIBGOMP_ENABLE_SYMVERS): Use it.
2367 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2368 * Makefile.in, aclocal.m4, configure: Rebuild.
2370 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2371 (gomp_mutex_unlock_slow): Fix typo.
2372 * config/linux/sem.c: Similarly.
2373 (gomp_sem_post_slow): Fix typo.
2374 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2375 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2376 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2378 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2379 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2380 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2381 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2382 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2383 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2384 LDFLAGS. Pull enable_futex check to top-level.
2385 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2386 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2388 First attempt at real configury.
2389 * Makefile, config.h: Remove file.
2390 * Makefile.am, Makefile.in: New file.
2391 * acinclude.m4 aclocal.m4: New file.
2392 * configure.ac, configure.tgt, configure: New file.
2394 * config/posix/lock.c: Rename from sys-lock.c.
2395 * config/posix/mutex.h: Rename from sys-mutex.h.
2396 * config/posix/sem.c: Rename from sys-sem.c.
2397 * config/posix/sem.h: Rename from sys-sem.h.
2398 * config/posix/proc.c: Rename from sys-proc.c.
2399 * config/posix/time.c: Rename from sys-proc.c.
2401 * config/linux/mutex.c: New file.
2402 * config/linux/mutex.h: New file.
2403 * config/linux/sem.c: New file.
2404 * config/linux/sem.h: New file.
2405 * config/linux/i486/futex.h: New file.
2406 * config/linux/x86_64/futex.h: New file.
2408 2005-05-04 Richard Henderson <rth@redhat.com>
2410 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2411 * libgomp.h: Declare them.
2412 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2413 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2415 2005-05-04 Richard Henderson <rth@redhat.com>
2417 * libgomp-1 code drop
2419 2005-05-04 Richard Henderson <rth@redhat.com>
2421 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2422 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2423 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2424 (gomp_iter_static_next): Update.
2425 (gomp_ordered_static_next): Update.
2426 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2427 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2428 totally empty range.
2429 (gomp_loop_ordered_static_next): Refine test for calling
2430 gomp_ordered_static_next.
2431 * testsuite/ordered-1.c: Add case for more threads than iterations.
2433 * iter.c (gomp_iter_runtime_next_locked): Remove.
2434 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2435 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2436 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2437 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2438 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2439 gomp_loop_ordered_guided_next): Downcase name, make static, add
2440 an external alias with the old name.
2441 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2442 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2443 switch and call one of the above static functions.
2444 * libgomp.h: Update.
2446 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2447 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2448 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2449 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2450 GOMP_loop_ordered_guided_start): Update to match.
2451 * sections.c (GOMP_sections_start): Likewise.
2452 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2454 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2455 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2456 Use bounds check instead of modulus.
2457 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2458 (gomp_ordered_last): Don't sync with ordered_owner here.
2459 (gomp_ordered_next): Likewise.
2460 (gomp_ordered_static_loop_next): Likewise.
2461 * loop.c, libgomp.h: Update to match.
2463 * libgomp.h (GOMP_barrier): Declare.
2465 * testsuite/barrier-1.c: New file.
2466 * testsuite/critical-1.c: New file.
2467 * testsuite/ordered-2.c: New file.
2468 * testsuite/ordered-1.c: New file.
2469 * testsuite/sections-1.c: New file.
2470 * testsuite/single-1.c: New file.
2471 * testsuite/Makefile (TESTS): Add them.
2473 2005-05-04 Richard Henderson <rth@redhat.com>
2475 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2476 * loop.c (GOMP_loop_static_start): If not the startup thread,
2477 acquire the mutex to wait for initialization complete.
2478 (GOMP_loop_ordered_static_start): Likewise.
2479 (GOMP_loop_ordered_runtime_start): Likewise.
2480 (GOMP_loop_ordered_static_first): Remove.
2481 (GOMP_loop_ordered_dynamic_first): Remove.
2482 (GOMP_loop_ordered_guided_first): Remove.
2483 (GOMP_loop_ordered_runtime_first): Remove.
2484 * ordered.c (gomp_ordered_loop_first): Post to own release when
2485 we're the first thread.
2486 (gomp_ordered_loop_last): Wait on release if not owner.
2487 (gomp_ordered_loop_next): Likewise.
2488 (gomp_ordered_static_loop_init): New.
2489 (gomp_ordered_static_loop_next): Use ordered_owner.
2490 (GOMP_ordered_start): Likewise.
2491 * work.c (gomp_new_work_share): Initialize ordered_owner.
2493 2005-05-03 Richard Henderson <rth@redhat.com>
2495 * Makefile (OPT): New.
2498 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2499 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2500 * libgomp.h, libgomp.map, NOTES: Update to match.
2502 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2503 Add initialized and thr members.
2504 (gomp_thread_start): Pause when initially spawned to wait for
2505 the whole team to be created.
2506 (gomp_team_start): Release team members at the end.
2508 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2509 (f_foo_1): Use GOMP_loop_end.
2510 (f_foo_2): Use GOMP_loop_end_nowait.
2512 * testsuite/loop-2.c: New file.
2513 * testsuite/Makefile (TESTS): Add it.
2515 2005-05-03 Richard Henderson <rth@redhat.com>
2517 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2518 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2519 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2522 * testsuite/Makefile: New file.
2523 * testsuite/loop-1.c: New file.
2525 2005-05-03 Richard Henderson <rth@redhat.com>
2527 Initial implementation and checkin.