1 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
4 * testsuite/libgomp.fortran/fortran.exp: Don't link with
5 libgfortranbegin, check existence of libgfortran.a instead of
8 2009-05-20 Jakub Jelinek <jakub@redhat.com>
11 * team.c (gomp_thread_start): Destroy thr->release semaphore.
12 (gomp_free_pool_helper): Likewise.
14 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
15 Jakub Jelinek <jakub@redhat.com>
18 * testsuite/libgomp.fortran/workshare2.f90: New test.
20 2009-04-09 Nick Clifton <nickc@redhat.com>
22 * iter.c: Change copyright header to refer to version 3 of the
23 GNU General Public License with version 3.1 of the GCC Runtime
24 Library Exception and to point readers at the COPYING3 and
25 COPYING3.RUNTIME files and the FSF's license web page.
27 * barrier.c: Likewise.
28 * config/bsd/proc.c: Likewise.
29 * config/linux/affinity.c: Likewise.
30 * config/linux/alpha/futex.h: Likewise.
31 * config/linux/bar.c: Likewise.
32 * config/linux/bar.h: Likewise.
33 * config/linux/ia64/futex.h: Likewise.
34 * config/linux/ia64/mutex.h: Likewise.
35 * config/linux/lock.c: Likewise.
36 * config/linux/mips/futex.h: Likewise.
37 * config/linux/mutex.c: Likewise.
38 * config/linux/mutex.h: Likewise.
39 * config/linux/powerpc/futex.h: Likewise.
40 * config/linux/proc.c: Likewise.
41 * config/linux/ptrlock.c: Likewise.
42 * config/linux/ptrlock.h: Likewise.
43 * config/linux/s390/futex.h: Likewise.
44 * config/linux/sem.c: Likewise.
45 * config/linux/sem.h: Likewise.
46 * config/linux/sparc/futex.h: Likewise.
47 * config/linux/wait.h: Likewise.
48 * config/linux/x86/futex.h: Likewise.
49 * config/mingw32/proc.c: Likewise.
50 * config/mingw32/time.c: Likewise.
51 * config/posix/affinity.c: Likewise.
52 * config/posix/bar.c: Likewise.
53 * config/posix/bar.h: Likewise.
54 * config/posix/lock.c: Likewise.
55 * config/posix/mutex.h: Likewise.
56 * config/posix/proc.c: Likewise.
57 * config/posix/ptrlock.h: Likewise.
58 * config/posix/sem.c: Likewise.
59 * config/posix/sem.h: Likewise.
60 * config/posix/time.c: Likewise.
61 * config/posix95/lock.c: Likewise.
62 * critical.c: Likewise.
65 * fortran.c: Likewise.
66 * iter_ull.c: Likewise.
67 * libgomp.h: Likewise.
68 * libgomp_f.h.in: Likewise.
69 * libgomp_g.h: Likewise.
71 * loop_ull.c: Likewise.
73 * omp_lib.f90.in: Likewise.
74 * omp_lib.h.in: Likewise.
75 * ordered.c: Likewise.
76 * parallel.c: Likewise.
77 * sections.c: Likewise.
83 2009-04-09 Jakub Jelinek <jakub@redhat.com>
85 * testsuite/config/default.exp: Change copyright header to refer to
86 version 3 of the GNU General Public License and to point readers
87 at the COPYING3 file and the FSF's license web page.
89 2009-04-08 Jakub Jelinek <jakub@redhat.com>
92 * libgomp.c++/pr39573.C: New test.
94 2009-04-01 Jakub Jelinek <jakub@redhat.com>
97 * testsuite/libgomp.c/pr39591-1.c: New test.
98 * testsuite/libgomp.c/pr39591-2.c: New test.
99 * testsuite/libgomp.c/pr39591-3.c: New test.
101 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
103 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
104 * testsuite/libgomp.c/atomic-6.c: Ditto.
106 2009-03-23 Jakub Jelinek <jakub@redhat.com>
109 * testsuite/libgomp.c/loop-12.c: New test.
110 * testsuite/libgomp.c/loop-11.c: New test.
111 * testsuite/libgomp.c++/loop-11.C: New test.
112 * testsuite/libgomp.c++/loop-12.C: New test.
113 * testsuite/libgomp.c++/for-8.C: New test.
115 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
117 * configure: Regenerate.
119 2009-02-11 Jakub Jelinek <jakub@redhat.com>
122 * testsuite/libgomp.c/pr39154.c: New test.
124 2009-01-30 Ian Lance Taylor <iant@google.com>
126 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
127 libgomp_ld_is_gold. Get gold version number.
128 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
129 * configure: Rebuild.
131 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
133 * testsuite/lib/libgomp.exp: Add -B option for targets that
134 use libgfortran.a%s in their specs.
136 2009-01-07 Jakub Jelinek <jakub@redhat.com>
139 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
140 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
141 HAVE_AS_SYMVER_DIRECTIVE is not defined.
142 * configure: Regenerated.
143 * config.h.in: Likewise.
145 2008-12-28 Jakub Jelinek <jakub@redhat.com>
148 * testsuite/libgomp.c/pr38650.c: New test.
149 * testsuite/libgomp.c++/pr38650.C: New test.
151 2008-12-27 Jakub Jelinek <jakub@redhat.com>
153 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
155 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
157 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
159 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
161 * configure: Regenerate.
163 2008-12-08 Jakub Jelinek <jakub@redhat.com>
166 * testsuite/libgomp.c/pr36802-1.c: New test.
167 * testsuite/libgomp.c/pr36802-2.c: New test.
168 * testsuite/libgomp.c/pr36802-3.c: New test.
170 2008-12-01 Janis Johnson <janis187@us.ibm.com>
173 * config/linux/powerpc/mutex.h: New.
175 2008-12-01 Jakub Jelinek <jakub@redhat.com>
178 * testsuite/libgomp.c++/for-7.C: New test.
181 * testsuite/libgomp.c++/for-6.C: New test.
183 2008-11-26 Janis Johnson <janis187@us.ibm.com>
186 * testsuite/lib/libgomp.exp: Include new timeout library files.
187 (libgomp_target_compile): Set timeout value from new proc.
189 2008-11-13 Steve Ellcey <sje@cup.hp.com>
192 * config/linux/ia64/mutex.h: New.
194 2008-11-04 Tobias Burnus <burnus@net-b.de>
197 * libgomp.texi (Runtime library routines, environment variables):
198 Update for OpenMP version 3.0.
200 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
201 Steve Ellcey <sje@cup.hp.com>
203 * configure: Regenerate for new libtool.
204 * Makefile.in: Ditto.
205 * testsuite/Makefile.in: Ditto.
207 2008-09-19 Jakub Jelinek <jakub@redhat.com>
208 Andreas Tobler <a.tobler@schweiz.org>
210 * config/bsd/proc.c: New file.
211 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
212 * configure.ac: Check for header <sys/sysctl.h>
213 * configure: Regenerate.
214 * config.h.in: Likewise.
216 2008-09-05 Janis Johnson <janis187@us.ibm.com>
218 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
220 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
222 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
223 * Makefile.in: Regenerated.
224 * testsuite/Makefile.in: Regenerated.
226 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
228 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
229 depend on blddir if blddir exists.
230 (libgomp_target_compile): Likewise.
231 * testsuite/libgomp.c++/c++.exp: Likewise.
232 * testsuite/libgomp.fortran/fortran.exp: Likewise.
234 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
236 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
237 Do not list GPL as Invariant Section.
239 2008-07-28 Ilie Garbacea <ilie@mips.com>
240 Chao-ying Fu <fu@mips.com>
242 * configure.tgt: Enable futex for MIPS.
243 * config/linux/mips/futex.h: New file.
245 2008-07-16 Jakub Jelinek <jakub@redhat.com>
247 * team.c (gomp_team_end): Free team immediately if it has
250 2008-07-08 David Edelsohn <edelsohn@gnu.org>
252 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
253 * testsuite/libgomp.fortran/fortran.exp: Same.
254 * testsuite/libgomp.c/c.exp: Same.
255 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
256 directory to library path first.
258 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
260 * env.c (parse_stacksize): Add cast to avoid warning.
261 (parse_spincount): Likewise.
263 2008-06-27 Jakub Jelinek <jakub@redhat.com>
265 * testsuite/libgomp.c/loop-10.c: New test.
266 * libgomp.c/loop-3.c (main): Add lastprivate clause.
267 * libgomp.c++/loop-6.C (main): Likewise.
270 * testsuite/libgomp.c/debug-1.c: New test.
272 2008-06-19 Jakub Jelinek <jakub@redhat.com>
274 * testsuite/libgomp.c/nqueens-1.c: New test.
277 * testsuite/libgomp.c++/task-7.C: New function.
279 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
281 * configure: Regenerate.
283 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
285 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
286 mutex when HAVE_SYNC_BUILTINS isn't defined.
288 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
290 * libgomp.texi (omp_test_lock): Fix typo.
292 2008-06-12 Tobias Burnus <burnus@net-b.de>
294 * omp_lib.f90.in: Add "implicit none".
296 2008-06-12 Jakub Jelinek <jakub@redhat.com>
299 * testsuite/libgomp.c/reduction-5.c: New test.
301 2008-06-11 Jakub Jelinek <jakub@redhat.com>
303 * libgomp.h (struct gomp_task): Add in_tied_task field.
304 * task.c (gomp_init_task): Initialize it.
305 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
306 unconditionally. Don't call gomp_team_barrier_wake if
307 current task is implicit or if(0) from implicit and number of
308 running tasks is equal to nthreads - 1.
311 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
312 omp_get_team_size_8): Fix pastos.
315 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
316 * configure: Regenerated.
317 * config.h.in: Regenerated.
318 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
321 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
324 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
325 (GOMP_loop_ull_dynamic_start): Likewise.
326 (GOMP_loop_ull_guided_start): Likewise.
327 (GOMP_loop_ull_ordered_static_start): Likewise.
328 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
329 (GOMP_loop_ull_ordered_guided_start): Likewise.
331 2008-06-06 Jakub Jelinek <jakub@redhat.com>
332 Richard Henderson <rth@redhat.com>
333 Ulrich Drepper <drepper@redhat.com>
334 Jakob Blomer <jakob.blomer@ira.uka.de>
336 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
337 Substitute also OMP_*LOCK_25*.
338 * configure: Regenerated.
339 * config.h.in: Regenerated.
340 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
341 ptrlock.c and task.c.
342 * Makefile.in: Regenerated.
343 * testsuite/Makefile.in: Regenerated.
345 * loop_ull.c: New file.
346 * iter_ull.c: New file.
347 * libgomp.h: Include ptrlock.h.
348 (enum gomp_task_kind): New type.
349 (struct gomp_team): Add task_lock, task_queue, task_count,
350 task_running_count, single_count fields. Add
351 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
352 Remove work_share_lock, generation_mask,
353 oldest_live_gen, num_live_gen and init_work_shares fields, add
354 work work_share_list_alloc, work_share_list_free and work_share_chunk
355 fields. Change work_shares from pointer to pointers into an array.
356 Change ordered_release field into gomp_sem_t ** from flexible array
357 member. Add implicit_task and initial_work_shares fields.
358 Move close to the end of the struct.
359 (struct gomp_team_state): Add single_count, last_work_share,
360 active_level and level fields, remove work_share_generation.
361 (gomp_barrier_handle_tasks): New prototype.
362 (gomp_finish_task): New inline function.
363 (struct gomp_work_share): Move chunk_size, end, incr into
364 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
365 next_ll fields. Reshuffle fields. Add next_alloc,
366 next_ws, next_free and inline_ordered_team_ids fields, change
367 ordered_team_ids into pointer from flexible array member.
368 Add mode field. Put lock and next into a different cache line
369 from most of the write-once fields.
370 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
371 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
372 gomp_iter_ull_guided_next): New prototypes.
373 (gomp_new_icv): New prototype.
374 (struct gomp_thread): Add thread_pool and task fields.
375 (struct gomp_thread_pool): New type.
376 (gomp_new_team): New prototype.
377 (gomp_team_start): Change type of last argument.
378 (gomp_new_work_share): Removed.
379 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
380 (gomp_work_share_init_done): New static inline.
381 (gomp_throttled_spin_count_var, gomp_available_cpus,
382 gomp_managed_threads): New extern decls.
383 (gomp_init_task): New prototype.
384 (gomp_spin_count_var): New extern var decl.
385 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
386 or no alias support, or if not PIC.
387 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
388 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
389 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
390 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
391 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
392 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
393 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
394 gomp_test_nest_lock_25): New prototypes.
395 (omp_lock_symver, strong_alias): Define.
396 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
398 (gomp_end_task): New.
399 (struct gomp_task_icv, gomp_global_icv): New.
400 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
401 (struct gomp_task): New.
402 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
403 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
405 (gomp_schedule_type): Reorder enum to match
407 * team.c (struct gomp_thread_start_data): Add thread_pool and task
409 (gomp_thread_start): Add gomp_team_barrier_wait call.
410 For non-nested case remove clearing of docked thread thr fields.
411 Use pool fields instead of global gomp_* variables. Use
412 gomp_barrier_wait_last when needed. Initialize ts.active_level.
413 Create tasks for each member thread.
414 (free_team): Only destroy team barrier, task_lock here and free it.
415 (gomp_free_thread): Free last_team if non-NULL.
416 (gomp_team_end): Call gomp_team_barrier_wait instead of
417 gomp_barrier_wait. For nested case call one extra
418 gomp_barrier_wait. Move here some destruction from free_team.
419 Call free_team on pool->last_team if any, rather than freeing
420 current team. Destroy work_share_list_free_lock ifndef
422 (gomp_new_icv): New function.
423 (gomp_threads, gomp_threads_size, gomp_threads_used,
424 gomp_threads_dock): Removed.
425 (gomp_thread_destructor): New variable.
426 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
428 (gomp_team_start): Create new pool if current thread doesn't have
429 one. Use pool fields instead of global gomp_* variables.
430 Initialize thread_pool field for new threads. Clear single_count.
431 Change last argument from ws to team, don't create
432 new team, set ts.work_share to &team->work_shares[0] and clear
433 ts.last_work_share. Don't clear ts.work_share_generation.
434 If number of threads changed, adjust atomically gomp_managed_threads.
435 Use gomp_init_task instead of gomp_new_task,
436 set thr->task to the corresponding implicit_task array entry.
437 Create tasks for each member thread. Initialize ts.level.
438 (initialize_team): Call pthread_key_create on
439 gomp_thread_destructor.
440 (team_destructor): New function.
442 (gomp_new_team): New function.
443 (free_team): Free gomp_work_share blocks chained through next_alloc,
444 instead of freeing work_shares and destroying work_share_lock.
445 (gomp_team_end): Call gomp_fini_work_share. If number of threads
446 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
447 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
448 of gomp_barrier_wait.
449 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
450 instead of gomp_barrier_wait. Call gomp_work_share_init_done
451 if gomp_work_share_start returned true. Don't unlock ws->lock.
452 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
453 of gomp_barrier_wait.
454 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
455 gomp_work_share_init_done if gomp_work_share_start returned true.
456 Don't unlock ws->lock.
457 * work.c: Include stddef.h.
458 (free_work_share): Use work_share_list_free_lock instead
459 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
460 Call gomp_fini_work_share and then either free ws if orphaned, or
461 put it into work_share_list_free list of the current team.
462 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
464 (gomp_work_share_start, gomp_work_share_end,
465 gomp_work_share_end_nowait): Rewritten.
466 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
467 (openmp_version): Set to 200805.
468 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
469 omp_sched_guided, omp_sched_auto): New parameters.
470 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
471 omp_set_max_active_levels, omp_get_max_active_levels,
472 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
473 omp_get_active_level): New interfaces.
474 * omp_lib.h.in (openmp_version): Set to 200805.
475 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
476 omp_sched_guided, omp_sched_auto): New parameters.
477 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
478 omp_set_max_active_levels, omp_get_max_active_levels,
479 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
480 omp_get_active_level): New externals.
481 * loop.c: Include limits.h.
482 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
484 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
485 Likewise. Use gomp_icv.
486 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
488 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
489 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
490 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
491 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
492 don't unlock ws->lock, otherwise lock it.
493 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
494 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
495 (gomp_parallel_loop_start): Call gomp_new_team instead of
496 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
497 Adjust gomp_team_start caller. Pass 0 as second argument to
498 gomp_resolve_num_threads.
499 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
500 If adding ws->chunk_size nthreads + 1 times after end won't
501 overflow, set ws->mode to 1.
502 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
503 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
504 GOMP_loop_ull_ordered_static_start,
505 GOMP_loop_ull_ordered_dynamic_start,
506 GOMP_loop_ull_ordered_guided_start,
507 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
508 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
509 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
510 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
511 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
513 * libgomp.map: Export lock routines also @@OMP_2.0.
514 (GOMP_loop_ordered_dynamic_first,
515 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
516 GOMP_loop_ordered_static_first): Remove.
517 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
518 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
519 GOMP_loop_ull_ordered_dynamic_next,
520 GOMP_loop_ull_ordered_dynamic_start,
521 GOMP_loop_ull_ordered_guided_next,
522 GOMP_loop_ull_ordered_guided_start,
523 GOMP_loop_ull_ordered_runtime_next,
524 GOMP_loop_ull_ordered_runtime_start,
525 GOMP_loop_ull_ordered_static_next,
526 GOMP_loop_ull_ordered_static_start,
527 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
528 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
529 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
530 (omp_set_schedule, omp_get_schedule,
531 omp_get_thread_limit, omp_set_max_active_levels,
532 omp_get_max_active_levels, omp_get_level,
533 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
534 omp_set_schedule_, omp_set_schedule_8_,
535 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
536 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
537 omp_get_max_active_levels_, omp_get_level_,
538 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
539 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
540 New exports @@OMP_3.0.
541 * omp.h.in (omp_sched_t): New type.
542 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
543 omp_set_max_active_levels, omp_get_max_active_levels,
544 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
545 omp_get_active_level): New prototypes.
546 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
547 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
548 gomp_thread_limit_var, gomp_remaining_threads_count,
549 gomp_remaining_threads_lock): New variables.
550 (parse_spincount): New function.
551 (initialize_env): Call gomp_init_num_threads unconditionally.
552 Initialize gomp_available_cpus. Call parse_spincount,
553 initialize gomp_{,throttled_}spin_count_var
554 depending on presence and value of OMP_WAIT_POLICY and
555 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
556 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
557 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
558 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
559 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
560 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
561 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
562 (gomp_global_icv): New.
563 (parse_schedule): Use it. Parse "auto".
564 (omp_set_num_threads): Use gomp_icv.
565 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
567 (omp_get_max_threads): Move from parallel.c.
568 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
569 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
571 (parse_stacksize, parse_wait_policy): New functions.
572 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
573 both wrappers for compatibility and new locks.
574 (omp_set_schedule, omp_get_schedule,
575 omp_get_thread_limit, omp_set_max_active_levels,
576 omp_get_max_active_levels, omp_get_level,
577 omp_get_ancestor_thread_num, omp_get_team_size,
578 omp_get_active_level): New ialias_redirect.
579 (omp_set_schedule_, omp_set_schedule_8_,
580 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
581 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
582 omp_get_max_active_levels_, omp_get_level_,
583 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
584 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
586 * parallel.c: Include limits.h.
587 (gomp_resolve_num_threads): Add count argument. Rewritten.
588 (GOMP_parallel_start): Call gomp_new_team and pass that as last
589 argument to gomp_team_start. Pass 0 as second argument to
590 gomp_resolve_num_threads.
591 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
592 if gomp_thread_limit_var != ULONG_MAX.
593 (omp_in_parallel): Implement using ts.active_level.
594 (omp_get_max_threads): Move to env.c.
595 (omp_get_level, omp_get_ancestor_thread_num,
596 omp_get_team_size, omp_get_active_level): New functions,
598 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
599 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
600 gomp_iter_dynamic_next instead of the _locked variant and don't take
601 lock around it, otherwise acquire it before calling
602 gomp_iter_dynamic_next_locked.
603 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
604 gomp_iter_dynamic_next instead of the _locked variant and don't take
606 (GOMP_parallel_sections_start): Call gomp_new_team instead of
607 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
608 Adjust gomp_team_start caller. Pass count as second argument to
609 gomp_resolve_num_threads, don't adjust num_threads after the call.
611 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
612 ws->chunk_size by incr.
613 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
615 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
617 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
618 (omp_check_defines): Check even the compat defines.
619 * config/linux/ptrlock.c: New file.
620 * config/linux/ptrlock.h: New file.
621 * config/linux/wait.h: New file.
622 * config/posix/ptrlock.c: New file.
623 * config/posix/ptrlock.h: New file.
624 * config/linux/bar.h (gomp_team_barrier_wait,
625 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
626 (gomp_team_barrier_set_task_pending,
627 gomp_team_barrier_clear_task_pending,
628 gomp_team_barrier_set_waiting_for_tasks,
629 gomp_team_barrier_waiting_for_tasks,
630 gomp_team_barrier_done): New inlines.
631 (gomp_barrier_t): Rewritten.
632 (gomp_barrier_state_t): New typedef.
633 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
634 gomp_barrier_wait_start): Rewritten.
635 (gomp_barrier_wait_end): Change second argument to
636 gomp_barrier_state_t.
637 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
639 * config/linux/bar.c: Include wait.h instead of libgomp.h and
641 (gomp_barrier_wait_end): Rewritten.
642 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
643 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
644 * config/posix/bar.h (gomp_barrier_t): Add generation field.
645 (gomp_barrier_state_t): New typedef.
646 (gomp_team_barrier_wait,
647 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
648 (gomp_barrier_wait_start): Or all but low 2 bits from generation
649 into the return value. Return gomp_barrier_state_t.
650 (gomp_team_barrier_set_task_pending,
651 gomp_team_barrier_clear_task_pending,
652 gomp_team_barrier_set_waiting_for_tasks,
653 gomp_team_barrier_waiting_for_tasks,
654 gomp_team_barrier_done): New inlines.
655 (gomp_barrier_wait_end): Change second argument to
656 gomp_barrier_state_t.
657 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
659 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
660 (gomp_barrier_wait_end): Change second argument to
661 gomp_barrier_state_t.
662 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
663 gomp_team_barrier_wake): New functions.
664 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
666 (gomp_futex_wake, gomp_futex_wait): New variables.
667 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
668 * config/linux/lock.c: Rewrite to make locks task owned,
669 for backwards compatibility provide the old entrypoints
670 if symbol versioning. Include wait.h instead of libgomp.h and
672 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
673 * config/posix95/lock.c: Rewrite to make locks task owned,
674 for backwards compatibility provide the old entrypoints
675 if symbol versioning.
676 * config/posix/lock.c: Rewrite to make locks task owned,
677 for backwards compatibility provide the old entrypoints
678 if symbol versioning.
679 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
680 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
681 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
682 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
683 (sys_futex0): Return error code.
684 (futex_wake, futex_wait): If ENOSYS was returned, clear
685 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
686 (cpu_relax, atomic_write_barrier): New static inlines.
687 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
688 (futex_wake, futex_wait): If ENOSYS was returned, clear
689 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
690 (cpu_relax, atomic_write_barrier): New static inlines.
691 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
692 (sys_futex0): Return error code.
693 (futex_wake, futex_wait): If ENOSYS was returned, clear
694 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
695 (cpu_relax, atomic_write_barrier): New static inlines.
696 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
697 (sys_futex0): Return error code.
698 (futex_wake, futex_wait): If ENOSYS was returned, clear
699 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
700 (cpu_relax, atomic_write_barrier): New static inlines.
701 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
702 (sys_futex0): Return error code.
703 (futex_wake, futex_wait): If ENOSYS was returned, clear
704 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
705 (cpu_relax, atomic_write_barrier): New static inlines.
706 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
707 (sys_futex0): Return error code.
708 (futex_wake, futex_wait): If ENOSYS was returned, clear
709 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
710 (cpu_relax, atomic_write_barrier): New static inlines.
711 * config/linux/sem.c: Include wait.h instead of libgomp.h and
713 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
714 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
715 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
717 (omp_nest_lock_t): Change owner into void *, add lock field.
718 * config/posix95/omp-lock.h: Include semaphore.h.
719 (omp_lock_25_t, omp_nest_lock_25_t): New types.
720 (omp_lock_t): Use sem_t instead of mutex if semaphores
722 (omp_nest_lock_t): Likewise. Change owner to void *.
723 * config/posix/omp-lock.h: Include semaphore.h.
724 (omp_lock_25_t, omp_nest_lock_25_t): New types.
725 (omp_lock_t): Use sem_t instead of mutex if semaphores
727 (omp_nest_lock_t): Likewise. Add owner field.
729 2008-06-06 Jakub Jelinek <jakub@redhat.com>
731 * testsuite/libgomp.c/collapse-1.c: New test.
732 * testsuite/libgomp.c/collapse-2.c: New test.
733 * testsuite/libgomp.c/collapse-3.c: New test.
734 * testsuite/libgomp.c/icv-1.c: New test.
735 * testsuite/libgomp.c/icv-2.c: New test.
736 * testsuite/libgomp.c/lib-2.c: New test.
737 * testsuite/libgomp.c/lock-1.c: New test.
738 * testsuite/libgomp.c/lock-2.c: New test.
739 * testsuite/libgomp.c/lock-3.c: New test.
740 * testsuite/libgomp.c/loop-4.c: New test.
741 * testsuite/libgomp.c/loop-5.c: New test.
742 * testsuite/libgomp.c/loop-6.c: New test.
743 * testsuite/libgomp.c/loop-7.c: New test.
744 * testsuite/libgomp.c/loop-8.c: New test.
745 * testsuite/libgomp.c/loop-9.c: New test.
746 * testsuite/libgomp.c/nested-3.c: New test.
747 * testsuite/libgomp.c/nestedfn-6.c: New test.
748 * testsuite/libgomp.c/sort-1.c: New test.
749 * testsuite/libgomp.c/task-1.c: New test.
750 * testsuite/libgomp.c/task-2.c: New test.
751 * testsuite/libgomp.c/task-3.c: New test.
752 * testsuite/libgomp.c/task-4.c: New test.
753 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
754 to C++ testsuite default compiler options.
755 * testsuite/libgomp.c++/collapse-1.C: New test.
756 * testsuite/libgomp.c++/collapse-2.C: New test.
757 * testsuite/libgomp.c++/ctor-10.C: New test.
758 * testsuite/libgomp.c++/for-1.C: New test.
759 * testsuite/libgomp.c++/for-2.C: New test.
760 * testsuite/libgomp.c++/for-3.C: New test.
761 * testsuite/libgomp.c++/for-4.C: New test.
762 * testsuite/libgomp.c++/for-5.C: New test.
763 * testsuite/libgomp.c++/loop-8.C: New test.
764 * testsuite/libgomp.c++/loop-9.C: New test.
765 * testsuite/libgomp.c++/loop-10.C: New test.
766 * testsuite/libgomp.c++/task-1.C: New test.
767 * testsuite/libgomp.c++/task-2.C: New test.
768 * testsuite/libgomp.c++/task-3.C: New test.
769 * testsuite/libgomp.c++/task-4.C: New test.
770 * testsuite/libgomp.c++/task-5.C: New test.
771 * testsuite/libgomp.c++/task-6.C: New test.
772 * testsuite/libgomp.fortran/allocatable1.f90: New test.
773 * testsuite/libgomp.fortran/allocatable2.f90: New test.
774 * testsuite/libgomp.fortran/allocatable3.f90: New test.
775 * testsuite/libgomp.fortran/allocatable4.f90: New test.
776 * testsuite/libgomp.fortran/collapse1.f90: New test.
777 * testsuite/libgomp.fortran/collapse2.f90: New test.
778 * testsuite/libgomp.fortran/collapse3.f90: New test.
779 * testsuite/libgomp.fortran/collapse4.f90: New test.
780 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
781 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
782 * testsuite/libgomp.fortran/lib4.f90: New test.
783 * testsuite/libgomp.fortran/lock-1.f90: New test.
784 * testsuite/libgomp.fortran/lock-2.f90: New test.
785 * testsuite/libgomp.fortran/nested1.f90: New test.
786 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
787 * testsuite/libgomp.fortran/strassen.f90: New test.
788 * testsuite/libgomp.fortran/tabs1.f90: New test.
789 * testsuite/libgomp.fortran/tabs2.f: New test.
790 * testsuite/libgomp.fortran/task1.f90: New test.
791 * testsuite/libgomp.fortran/task2.f90: New test.
792 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
793 * testsuite/libgomp.fortran/vla5.f90: Likewise.
794 * testsuite/libgomp.c/pr26943-2.c: Likewise.
795 * testsuite/libgomp.c/pr26943-3.c: Likewise.
796 * testsuite/libgomp.c/pr26943-4.c: Likewise.
798 2008-05-23 Jakub Jelinek <jakub@redhat.com>
801 * testsuite/libgomp.c++/ctor-11.C: New test.
802 * testsuite/libgomp.c++/ctor-12.C: New test.
804 2008-05-15 Janis Johnson <janis187@us.ibm.com>
806 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
808 2008-05-07 Jakub Jelinek <jakub@redhat.com>
811 * testsuite/libgomp.c/atomic-5.c: New test.
812 * testsuite/libgomp.c/atomic-6.c: New test.
813 * testsuite/libgomp.c/autopar-1.c: New test.
815 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
817 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
818 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
819 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
820 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
821 * configure: Regenerate.
822 * Makefile.in, testsuite/Makefile.in: Likewise.
824 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
827 * aclocal.m4: Regenerate.
828 * configure: Regenerate.
830 2008-03-18 Jakub Jelinek <jakub@redhat.com>
833 * testsuite/libgomp.c/atomic-4.c: New test.
836 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
837 (gomp_iter_guided_next): Likewise.
838 * testsuite/libgomp.c/pr35625.c: New test.
840 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
842 * aclocal.m4: Regenerate.
843 * configure: Likewise.
844 * Makefile.in: Likewise.
845 * testsuite/Makefile.in: Likewise.
847 2008-03-13 Jakub Jelinek <jakub@redhat.com>
850 * testsuite/libgomp.c++/pr35185.C: New test.
852 2008-03-12 Jakub Jelinek <jakub@redhat.com>
855 * testsuite/libgomp.c/pr35549.c: New test.
857 2008-03-06 Jakub Jelinek <jakub@redhat.com>
859 * testsuite/libgomp.c/atomic-3.c: New test.
861 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
864 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
867 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
870 * configure.ac: Add ACX_HEADER_STRING.
871 * env.c: Include strings.h.
872 * aclocal.m4: Regenerate.
873 * config.h.in: Regenerate.
874 * configure: Regenerate.
875 * Makefile.in: Regenerate.
876 * testsuite/Makefile.in: Regenerate.
878 2008-02-15 Jakub Jelinek <jakub@redhat.com>
881 * testsuite/libgomp.c/pr35196.c: New test.
884 * testsuite/libgomp.fortran/pr35130.f90: New test.
885 * testsuite/libgomp.c/pr35130.c: New test.
887 2008-01-25 Jakub Jelinek <jakub@redhat.com>
890 * testsuite/libgomp.c/pr33880.c: New test.
891 * testsuite/libgomp.fortran/pr33880.f90: New test.
893 2008-01-24 David Edelsohn <edelsohn@gnu.org>
895 * configure: Regenerate.
897 2008-01-08 Jakub Jelinek <jakub@redhat.com>
899 * configure.ac: Move futex checking into ../config/futex.m4.
900 * configure: Rebuilt.
901 * aclocal.m4: Rebuilt.
902 * Makefile.in: Rebuilt.
904 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
905 2007-10-15 ../config/tls.m4 change.
907 2007-12-19 Jakub Jelinek <jakub@redhat.com>
910 * testsuite/libgomp.c/pr34513.c: New test.
911 * testsuite/libgomp.c++/pr34513.C: New test.
913 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
916 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
918 2007-12-04 Jakub Jelinek <jakub@redhat.com>
920 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
922 2007-12-03 Jakub Jelinek <jakub@redhat.com>
924 * testsuite/libgomp.c/private-1.c: New test.
926 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
927 Paolo Bonzini <bonzini@gnu.org>
929 * Makefile.am: Use space as vpath separator. Use 'vpath %'
930 instead of 'VPATH ='.
931 * Makefile.in: Regenerate.
933 2007-11-23 Matthias Klose <doko@ubuntu.com>
935 * configure.ac: Adjust makeinfo version check.
936 * configure: Regenerate.
938 2007-11-10 Jakub Jelinek <jakub@redhat.com>
941 * testsuite/libgomp.fortran/pr34020.f90: New test.
943 2007-11-06 Jakub Jelinek <jakub@redhat.com>
946 * testsuite/libgomp.c++/atomic-1.C: New test.
948 2007-10-25 Jakub Jelinek <jakub@redhat.com>
951 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
952 Make x and y integers rather than (implicit) reals. Add private (j)
953 clause to the last omp parallel.
955 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
957 * configure: Regenerate following changes to ../config/tls.m4.
959 2007-09-28 Jakub Jelinek <jakub@redhat.com>
961 * testsuite/libgomp.fortran/stack.f90: New test.
963 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
965 * config/mingw32/proc.c: New file.
967 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
969 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
970 (main): Use __get_cpuid to get i386 target fetaures.
971 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
972 (main): Use __get_cpuid to get x86_64 target fetaures.
974 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
977 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
978 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
980 2007-07-12 Jakub Jelinek <jakub@redhat.com>
983 * testsuite/libgomp.fortran/pr32550.f90: New test.
984 * testsuite/libgomp.fortran/crayptr2.f90: New test.
986 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
988 * aclocal.m4: Regenerated.
990 2007-07-05 Tobias Burnus <burnus@net-b.de>
993 * testsuite/libgomp.fortran/pr32359.f90: New.
995 2007-07-02 Jakub Jelinek <jakub@redhat.com>
998 * sections.c (GOMP_parallel_sections_start): Only decrease
999 number of threads to COUNT if dyn_var is true.
1000 * testsuite/libgomp.c/pr32468.c: New test.
1002 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1005 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1007 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1010 * testsuite/libgomp.c/pr32362-1.c: New test.
1011 * testsuite/libgomp.c/pr32362-2.c: New test.
1012 * testsuite/libgomp.c/pr32362-3.c: New test.
1014 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1016 * team.c (gomp_team_start): Fix setting up thread_attr
1019 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1021 * configure: Regenerate.
1023 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1025 * Makefile.in: Regenerate.
1026 * configure: Regenerate.
1027 * aclocal.m4: Regenerate.
1028 * testsuite/Makefile.in: Regenerate.
1030 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1032 * config/linux/proc.c: New file.
1035 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1037 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1039 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1041 2007-04-16 Matthias Klose <doko@debian.org>
1043 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1044 flags if not building with -m64.
1045 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1046 flag for i?86-*-* targets, if current target matches -m64.
1048 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1050 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1051 * Makefile.in: Regenerate.
1053 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1056 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1058 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1060 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1062 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1064 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1065 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1066 (parse_affinity): New function.
1067 (initialize_env): Call it and gomp_init_affinity.
1068 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1069 create new pthread_attr_t and call gomp_init_thread_affinity
1070 on it for each thread before passing the attribute to pthread_create.
1071 * config/linux/affinity.c: New file.
1072 * config/posix/affinity.c: New file.
1073 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1074 * configure: Rebuilt.
1075 * config.h.in: Rebuilt.
1076 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1077 * Makefile.in: Rebuilt.
1079 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1081 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1083 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1084 and use it if found.
1086 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1088 * testsuite/config/default.exp: New file.
1089 * testsuite/lib/libgomp.exp: New file.
1090 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1091 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1092 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1093 (libgomp_load): Remove.
1094 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1095 always_ld_library_path, not ld_library_path. Set additional_flags
1096 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1097 (target_compile): Do not call libgomp_init. Append lang_library_path
1098 and lang_link_flags to options.
1099 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1100 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1102 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1103 always_ld_library_path. Set LD_LIBRARY_PATH here.
1104 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1105 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1106 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1108 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1109 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1110 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1111 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1112 * testsuite/libgomp.c/atomic-10.c: Ditto.
1114 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1116 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1117 dg-final cleanup-modules line.
1118 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1119 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1120 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1121 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1122 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1123 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1124 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1126 2007-03-18 Andreas Schwab <schwab@suse.de>
1128 * acinclude.m4: Adjust regular expression for ld version
1130 * configure: Regenerate.
1132 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1134 * Makefile.am: Add install-pdf target as copied from
1135 automake v1.10 rules.
1136 * Makefile.in: Regenerate
1138 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1141 * configure: Regenerate.
1144 * testsuite/libgomp.c++/pr30703.C: New test.
1146 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1149 2006-07-05 Eric Christopher <echristo@apple.com>
1150 * configure.ac: Depend addition of -pthread on host OS.
1151 * configure: Regenerate.
1153 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1155 * libgomp.texi: Fix spacing after abbreviations.
1157 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1160 * configure.ac: Add check for makeinfo
1161 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1162 if an appropiate version of makeinfo is found.
1163 * aclocal.m4: Regenerated.
1164 * configure: Regenerated.
1165 * Makefile.in: Regenerated.
1166 * testsuite/Makefile.in: Regenerated.
1168 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1171 * libgomp.texi: More about implementation-dependent settings.
1173 2007-01-26 Tobias Burnus <burnus@net-b.de>
1175 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1177 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1180 * testsuite/libgomp.c/pr30494.c: New test.
1182 2007-01-15 Tom Tromey <tromey@redhat.com>
1184 * configure: Rebuilt.
1185 * configure.ac: Fixed comment.
1187 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1189 * libgomp.texi: Document implementation specific default values of
1190 environment variables.
1192 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1195 * libgomp.texi: New file.
1196 * configure.ac: Add --enable-generated-files-in-srcdir option.
1197 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1199 * Makefile.in: Regenerated.
1200 * config.h.in: Regenerated.
1201 * testsuite/Makefile.in: Regenerated.
1204 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1207 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1209 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1211 * configure: Regenerate.
1213 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1216 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1217 start if there shouldn't be any loop iterations.
1218 (gomp_loop_ordered_static_start): Remove start == end test.
1219 * testsuite/libgomp.c/pr29947-1.c: New test.
1220 * testsuite/libgomp.c/pr29947-2.c: New test.
1222 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1224 * configure.tgt: Force initial-exec TLS model on Linux only.
1226 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1228 * configure: Regenerated.
1230 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1232 * env.c (parse_schedule): Reject out of range values.
1233 (parse_unsigned_long): Reject out of range, negative or zero values.
1235 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1238 * testsuite/libgomp.fortran/pr29629.f90: New test.
1240 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1243 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1244 * config/posix95: New directory.
1245 * config/posix95/omp-lock.h: New file.
1246 * config/posix95/lock.c: Likewise.
1248 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1250 * aclocal.m4: Regenerate.
1251 * configure: Regenerate.
1253 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1255 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1258 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1260 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1262 * configure: Regenerate.
1263 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1265 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1269 * testsuite/libgomp.c/nestedfn-4.c: New test.
1270 * testsuite/libgomp.c/nestedfn-5.c: New test.
1271 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1274 * testsuite/libgomp.fortran/condinc1.f: New test.
1275 * testsuite/libgomp.fortran/condinc2.f: New test.
1276 * testsuite/libgomp.fortran/condinc3.f90: New test.
1277 * testsuite/libgomp.fortran/condinc4.f90: New test.
1278 * testsuite/libgomp.fortran/condinc1.inc: New file.
1280 2006-09-18 Tom Tromey <tromey@redhat.com>
1282 * configure: Rebuilt.
1284 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1287 PR preprocessor/14634
1288 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1290 * configure: Regenerate.
1292 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1294 * testsuite/libgomp.fortran/reduction3.f90: Change
1295 -2147483648 to -huge(i)-1 to avoid overflow.
1296 * testsuite/libgomp.fortran/reduction4.f90: Change
1297 Z'ffffffff' to not(0) to avoid overflow.
1299 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1302 * Makefile.am (libsubincludedir): New.
1303 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1304 * Makefile.in: Regenerate.
1306 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1309 * env.c: Include ctype.h.
1310 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1311 leading and/or trailing whitespace and compare strings case
1314 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1317 * testsuite/libgomp.fortran/pr28390.f: New test.
1319 2006-07-05 Eric Christopher <echristo@apple.com>
1321 * configure.ac: Depend addition of -pthread on host OS.
1322 * configure: Regenerate.
1324 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1326 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1327 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1330 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1334 * configure.ac: If neither --enable-linux-futex nor
1335 --disable-linux-futex is passed, determine the default by checking
1336 for compiling and/or running against NPTL. With --enable-linux-futex,
1337 check if SYS_gettid and SYS_futex are defined.
1338 * configure: Rebuilt.
1340 2006-06-14 Richard Henderson <rth@redhat.com>
1343 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1344 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1346 2006-06-09 Richard Henderson <rth@redhat.com>
1348 * env.c (gomp_nthreads_var): Change to unsigned long.
1349 (gomp_run_sched_chunk): Likewise.
1350 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1351 (initialize_env): Initialize gomp_thread_attr.
1352 * libgomp.h (gomp_nthreads_var): Update decl.
1353 (gomp_run_sched_chunk): Likewise.
1354 (gomp_thread_attr): Declare.
1355 * team.c (gomp_thread_attr): Export.
1356 (initialize_team): Don't initialize it.
1358 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1361 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1362 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1364 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1366 * config/mingw32/time.c: New file.
1367 * configure.tgt: Use it.
1369 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1371 * Makefile.am: Add install-html target. Add install-html to .PHONY
1372 * Makefile.in: Regenerate.
1374 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1377 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1378 * testsuite/libgomp.c/critical-1.c: Likewise.
1379 * testsuite/libgomp.c/loop-1.c: Likewise.
1380 * testsuite/libgomp.c/loop-2.c: Likewise.
1381 * testsuite/libgomp.c/single-1.c: Likewise.
1382 * testsuite/libgomp.c/ordered-1.c: Likewise.
1383 * testsuite/libgomp.c/ordered-2.c: Likewise.
1385 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1388 * libgomp.fortran/pr27416-1.f90: New test.
1390 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1393 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1394 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1396 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1399 * testsuite/libgomp.c/pr26943-1.c: New test.
1400 * testsuite/libgomp.c/pr26943-2.c: New test.
1401 * testsuite/libgomp.c/pr26943-3.c: New test.
1402 * testsuite/libgomp.c/pr26943-4.c: New test.
1403 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1404 * testsuite/libgomp.c++/pr26943.C: New test.
1406 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1409 * testsuite/libgomp.c++/pr27337.C: New test.
1411 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1414 * testsuite/libgomp.c/pr26171.c: New test.
1416 2006-04-25 Richard Henderson <rth@redhat.com>
1419 * configure.ac: Use GCC_CHECK_TLS.
1420 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1421 * Makefile.in, aclocal.m4, configure: Regenerate.
1423 2006-04-10 Matthias Klose <doko@debian.org>
1425 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1426 directory names containing underscores.
1428 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1431 * testsuite/libgomp.c++/pr26691.C: New test.
1433 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1435 * testsuite/libgomp.fortran/retval2.f90: New test.
1437 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1439 * testsuite/libgomp.c++: New directory.
1441 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1443 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1444 * config/posix/sem.c: Implement the above.
1446 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1448 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1449 define HAVE_BROKEN_POSIX_SEMAPHORES.
1450 * configure: Rebuilt.
1451 * config.h.in: Rebuilt.
1453 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1456 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1457 for the other pthread check.
1458 * configure: Regenerate.
1459 * config.h.in: Regenerate.
1461 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1465 * Makefile.am (fincludedir): New variable.
1466 (nodist_include_HEADERS): Remove Fortran files.
1467 (nodist_finclude_HEADERS): New variable.
1468 * Makefile.in: Regenerated.
1470 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1472 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1473 Remove tests for returning assumed character length arrays.
1475 2006-02-12 Roger Sayle <roger@eyesopen.com>
1476 John David Anglin <dave@hiauly1.hia.nrc.ca>
1479 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1481 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1483 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1485 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1487 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1488 part of LD_LIBRARY_PATH manually.
1490 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1493 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1496 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1499 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1500 * configure.ac (PERL): Don't set.
1501 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1502 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1503 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1504 * omp.h.in: Wrap the new configure substitutions with @ characters.
1505 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1506 * aclocal.m4, configure, Makefile.in: Regenerate.
1507 * mkomp_h.pl: Delete.
1509 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1512 * configure.ac: Use GCC_HEADER_STDINT.
1513 * libgomp.h: Include gstdint.h.
1514 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1515 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1517 2006-01-24 Richard Henderson <rth@redhat.com>
1520 * configure.ac: Add AM_MAINTAINER_MODE.
1521 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1523 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1525 * Makefile.in: Regenerate.
1526 * testsuite/Makefile.in: Regenerate.
1527 * aclocal.m4: Regenerate.
1529 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1531 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1533 * configure.ac: Add check for loadavg.h.
1534 (link_gomp): Adjust comment.
1535 * configure: Regenerate.
1536 * config.h.in: Regenerate.
1538 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1541 * configure.ac: Remove check for alloca.h.
1542 * configure: Regenerate.
1543 * config.h.in: Regenerate.
1544 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1545 * team.c: Remove use of alloca.h.
1546 Call gomp_alloca instead of alloca.
1548 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1551 * team.c: Add include of alloca.h.
1552 * configure.ac: Add check for alloca.h.
1553 * configure: Regenerate.
1554 * config.h.in: Regenerate.
1556 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1559 * testsuite/libgomp.fortran/pr25219.f90: New test.
1561 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1563 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1564 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1565 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1566 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1567 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1568 testsuite/libgomp.fortran/threadprivate1.f90,
1569 testsuite/libgomp.fortran/threadprivate2.f90,
1570 testsuite/libgomp.fortran/threadprivate3.f90,
1571 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1572 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1573 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1574 effective-target to TLS runtime.
1576 * testsuite/libgomp.fortran/pr25162.f: Require
1577 effective-target TLS runtime.
1579 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1581 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1582 * testsuite/libgomp.c/nestedfn-3.c: New test.
1584 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1587 * testsuite/libgomp.fortran/pr25162.f: New test.
1589 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1591 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1592 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1594 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1596 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1597 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1598 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1599 single.c, team.c, work.c, config/linux/alpha/futex.h,
1600 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1601 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1602 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1603 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1604 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1605 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1606 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1609 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1611 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1612 to nodist_noinst_HEADERS.
1613 * Makefile.in: Rebuilt.
1615 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1616 add integer count field.
1617 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1618 omp_nest_lock_t type change.
1619 (omp_init_nest_lock): Likewise. Initialize count to 0.
1620 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1622 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1624 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1625 Increment count if successful and return the new nesting level.
1626 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1627 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1628 * testsuite/libgomp.c/lib-1.c: New test.
1629 * testsuite/libgomp.fortran/lib1.f90: New test.
1630 * testsuite/libgomp.fortran/lib2.f: New test.
1631 * testsuite/libgomp.fortran/lib3.f: New test.
1633 2005-11-17 Richard Henderson <rth@redhat.com>
1636 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1637 * configure.ac (link_gomp): New. Substitute it.
1638 (AC_CONFIG_FILES): Add libgomp.spec.
1639 * libgomp.spec.in: New file.
1640 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1641 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1643 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1645 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1646 reduction(-:var) behaving the same as reduction(+:var).
1647 * testsuite/libgomp.c/reduction-4.c: New test.
1649 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1651 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1652 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1653 testsuite/libgomp.c/copyin-3.c,
1654 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1655 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1656 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1657 testsuite/libgomp.c++/pr24455.C,
1658 testsuite/libgomp.fortran/threadprivate1.f90,
1659 testsuite/libgomp.fortran/threadprivate2.f90,
1660 testsuite/libgomp.fortran/threadprivate3.f90,
1661 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1662 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1663 testsuite/libgomp.fortran/omp_parse3.f90: Require
1664 effective-target TLS.
1666 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1670 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1673 * team.c (initialize_team): Pass NULL rather than free as
1674 pthread_key_create destructor. Initialize thread specific data
1675 pointer in initial thread to a static local variable rather than
1678 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1680 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1681 its location to ld_library_path.
1683 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1685 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1687 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1689 * testsuite/libgomp.c: Rename from libgomp.dg.
1691 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1693 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1694 threadprivate variable 'i'.
1696 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1698 * config/linux/s390/futex.h: New file.
1699 * configure.tgt: Use it.
1701 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1702 before the parallel.
1704 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1707 * testsuite/libgomp.c++/master-1.C: New test.
1709 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1711 * testsuite/libgomp.dg/copyin-3.c: New test.
1713 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1715 * testsuite/libgomp.fortran/retval1.f90: New test.
1716 * testsuite/libgomp.fortran/vla7.f90: New test.
1718 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1720 * testsuite/libgomp.fortran/vla2.f90: New test.
1721 * testsuite/libgomp.fortran/vla3.f90: New test.
1722 * testsuite/libgomp.fortran/vla4.f90: New test.
1723 * testsuite/libgomp.fortran/vla5.f90: New test.
1724 * testsuite/libgomp.fortran/vla6.f90: New test.
1726 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1728 * config/linux/sparc/futex.h: New file.
1729 * configure.tgt: Use it.
1730 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1732 * critical.c: Include stdlib.h.
1733 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1734 ignoring return value.
1735 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1736 LIBGOMP_CHECK_SYNC_BUILTINS check.
1737 * configure: Rebuilt.
1739 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1741 * testsuite/libgomp.fortran/vla1.f90: New test.
1743 2005-10-31 Richard Henderson <rth@redhat.com>
1745 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1746 setting 's' in different threads.
1748 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1750 * libgomp.h (attribute_hidden, ialias): Define.
1751 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1752 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1753 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1754 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1755 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1756 omp_test_lock, omp_test_nest_lock): Likewise.
1757 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1758 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1759 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1760 omp_test_lock, omp_test_nest_lock): Likewise.
1761 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1762 omp_get_dynamic, omp_get_nested): Likewise.
1763 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1764 omp_get_thread_num, omp_in_parallel): Likewise.
1765 * fortran.c (ialias_redirect): Define.
1766 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1767 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1768 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1769 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1770 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1771 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1772 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1773 omp_get_wtime): Add ialias_redirect.
1775 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1777 * fortran.c: Include stdlib.h.
1779 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1781 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1782 * Makefile.in: Regenerated.
1784 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1786 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1787 * libgomp_f.h.in (omp_check_defines): New function.
1788 * env.c: Include libgomp_f.h.
1789 (initialize_env): Call omp_check_defines.
1791 * testsuite/libgomp.dg/copyin-2.c: New test.
1792 * testsuite/libgomp.c++/copyin-2.C: New test.
1793 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1795 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1796 * testsuite/libgomp.fortran/sharing2.f90: New test.
1798 * testsuite/libgomp.dg/copyin-1.c: New test.
1799 * testsuite/libgomp.c++/copyin-1.C: New test.
1801 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1803 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1805 * testsuite/libgomp.fortran/workshare1.f90: New test.
1807 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1809 * libgomp.fortran/sharing1.f90: New test.
1811 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1814 * testsuite/libgomp.c++/loop-7.C: New test.
1816 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1818 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1819 * testsuite/libgomp.fortran/reduction6.f90: New test.
1820 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1822 2005-10-23 Richard Henderson <rth@redhat.com>
1824 * testsuite/libgomp.c++/ctor-1.C: New.
1825 * testsuite/libgomp.c++/ctor-2.C: New.
1826 * testsuite/libgomp.c++/ctor-3.C: New.
1827 * testsuite/libgomp.c++/ctor-4.C: New.
1828 * testsuite/libgomp.c++/ctor-5.C: New.
1829 * testsuite/libgomp.c++/ctor-6.C: New.
1830 * testsuite/libgomp.c++/ctor-7.C: New.
1831 * testsuite/libgomp.c++/ctor-8.C: New.
1832 * testsuite/libgomp.c++/ctor-9.C: New.
1834 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1837 * testsuite/libgomp.c++/pr24455-1.C: New test.
1838 * testsuite/libgomp.c++/pr24455.C: New test.
1839 * testsuite/libgomp.dg/pr24455-1.c: New test.
1840 * testsuite/libgomp.dg/pr24455.c: New test.
1842 2005-10-20 Richard Henderson <rth@redhat.com>
1844 * testsuite/libgomp.c++/loop-6.C: New.
1845 * testsuite/libgomp.dg/loop-3.c: New.
1847 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1849 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1851 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1854 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1856 * testsuite/libgomp.fortran/jacobi.f: New test.
1858 2005-10-19 Richard Henderson <rth@redhat.com>
1860 * configure.tgt (i?86-linux): Default to with_arch instead of
1861 CFLAGS. Add -mtune to match target_cpu.
1862 (x86_64-linux): Tune to i686.
1864 * fortran.c (omp_test_nest_lock_): Fix typo.
1866 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1868 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1869 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1870 * testsuite/libgomp.dg/ordered-3.c: New test.
1872 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1873 Remove volatile keyword.
1875 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1876 in COMMON block to avoid warnings on 64-bit targets.
1878 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1880 * testsuite/libgomp.dg/shared-3.c: New test.
1882 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1884 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1885 * testsuite/libgomp.fortran/reduction5.f90: New test.
1887 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1889 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1891 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1892 flush loop now that __sync_synchronize has proper memory barrier.
1893 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1894 Add -ffixed-form to dg-options.
1896 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1898 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1899 from subdirectories.
1900 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1901 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1902 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1903 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1904 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1905 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1906 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1907 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1908 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1909 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1910 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1911 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1912 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1913 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1914 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1915 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1916 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1917 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1918 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1919 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1920 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1921 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1922 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1923 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1924 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1926 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1928 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1929 lang_library_path exists. Use find instead of glob to gather tests.
1930 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1932 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1934 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1935 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1936 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1937 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1938 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1939 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1940 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1941 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1942 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1943 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1944 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1945 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1946 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1948 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1950 * testsuite/libgomp.dg/vla-1.c: New test.
1952 * testsuite/libgomp.fortran/reference2.f90: New test.
1954 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1955 declaration of omp_get_thread_num.
1956 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1959 * testsuite/libgomp.fortran/reduction1.f90: New test.
1960 * testsuite/libgomp.fortran/reduction2.f90: New test.
1961 * testsuite/libgomp.fortran/reduction3.f90: New test.
1962 * testsuite/libgomp.fortran/reduction4.f90: New test.
1964 2005-10-13 Richard Henderson <rth@redhat.com>
1966 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1967 * Makefile.in: Regenerate.
1968 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1969 * libgomp.h: Include bar.h.
1970 (struct gomp_barrier): Remove.
1971 (struct gomp_team): Add barrier. Replace master_barrier with
1972 master_release. Replace threads with ordered_release.
1973 (struct gomp_thread): Replace barrier with release.
1974 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1975 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1976 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1977 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1978 (GOMP_single_copy_end): Likewise.
1979 * team.c (gomp_threads_dock): New.
1980 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1981 (gomp_thread_start): Use gomp_barrier_wait.
1982 (new_team, free_team): Update for gomp_team changes.
1983 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1984 (gomp_team_end): Use gomp_barrier_wait.
1985 (initialize_team): Update for gomp_thread changes.
1986 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1987 (gomp_work_share_end_nowait): Use atomic ops when available.
1988 * config/linux/bar.c, config/linux/bar.h: New files.
1989 * config/posix/bar.c, config/posix/bar.h: New files.
1991 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1993 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1994 * testsuite/libgomp.dg/single-2.c: New test.
1996 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1997 lang_link_flags): Unset, so that they aren't inherited from previously
2000 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2002 2005-10-12 Richard Henderson <rth@redhat.com>
2004 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2005 (libgomp_init): Use lang_test_file, lang_library_path, and
2006 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2008 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2009 (lang_test_file, lang_link_flags): New.
2010 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2012 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2013 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2014 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2015 testsuite/libgomp.c++/parallel-1.C,
2016 testsuite/libgomp.c++/reduction-1.C,
2017 testsuite/libgomp.c++/reduction-2.C,
2018 testsuite/libgomp.c++/reduction-3.C,
2019 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2020 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2021 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2022 New files, largely cribbed from the C testsuite.
2024 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2026 * testsuite/libgomp.fortran/character1.f90: New test.
2027 * testsuite/libgomp.fortran/character2.f90: New test.
2029 * testsuite/libgomp.dg/nested-1.c: New test.
2030 * testsuite/libgomp.dg/nested-2.c: New test.
2031 * testsuite/libgomp.fortran/do1.f90: New test.
2032 * testsuite/libgomp.fortran/do2.f90: New test.
2034 * testsuite/libgomp.fortran/reference1.f90: New test.
2036 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2038 * testsuite/libgomp.dg/reduction-1.c: New test.
2039 * testsuite/libgomp.dg/reduction-2.c: New test.
2040 * testsuite/libgomp.dg/reduction-3.c: New test.
2042 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2044 * testsuite/libgomp.dg/atomic-1.c: New test.
2045 * testsuite/libgomp.dg/atomic-2.c: New test.
2047 2005-10-09 Richard Henderson <rth@redhat.com>
2049 * critical.c (atomic_lock): New.
2050 (initialize_critical): Initialize it.
2051 (GOMP_atomic_start, GOMP_atomic_end): New.
2052 * libgomp.map: Export them.
2053 * libgomp_g.h: Declare them.
2055 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2057 2005-10-02 Richard Henderson <rth@redhat.com>
2059 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2060 to XCFLAGS instead of CFLAGS.
2062 2005-09-30 Richard Henderson <rth@redhat.com>
2064 * configure.ac: Determine whether -pthread or -lpthread is needed.
2065 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2066 * Makefine.in, configure: Rebuild.
2068 2005-09-28 Richard Henderson <rth@redhat.com>
2070 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2071 * testsuite/libgomp.dg/omp-single-3.c: New test.
2073 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2075 * testsuite/libgomp.dg/omp-single-2.c: New test.
2076 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2078 2005-09-27 Richard Henderson <rth@redhat.com>
2080 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2081 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2083 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2085 * testsuite/libgomp.dg/omp-loop03.c: New test.
2087 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2089 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2091 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2093 * testsuite/libgomp.dg/omp-single-1.c: New test.
2094 * testsuite/libgomp.dg/shared-1.c: Return 0.
2095 Add prototype for abort.
2096 * testsuite/libgomp.dg/shared-2.c: Likewise.
2098 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2100 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2103 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2105 * testsuite/libgomp.dg/shared-1.c: New test.
2106 * testsuite/libgomp.dg/shared-2.c: New test.
2108 2005-09-24 Richard Henderson <rth@redhat.com>
2110 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2112 2005-09-24 Richard Henderson <rth@redhat.com>
2114 * iter.c (gomp_iter_static_next): Round up when computing number
2115 of iterations. Don't bother distributing a remainder equally.
2117 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2118 Don't call srand. Zero b before testing.
2121 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2123 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2124 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2126 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2128 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2129 without !$omp end do, followed immediately by subroutine end.
2131 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2133 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2135 2005-09-22 Richard Henderson <rth@redhat.com>
2137 * critical.c (GOMP_critical_name_start): Change argument to void**.
2138 Reuse the pointer space if the mutex fits.
2139 (GOMP_critical_name_end): Likewise.
2140 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2141 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2142 (GOMP_critical_name_end): Likewise.
2143 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2144 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2146 2005-09-20 Richard Henderson <rth@redhat.com>
2148 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2149 (create_lock_lock): New.
2150 (initialize_critical): Initialize it.
2151 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2152 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2154 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2156 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2158 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2160 * testsuite/libgomp.dg/omp-loop01.c: New test.
2161 * testsuite/libgomp.dg/omp-loop02.c: New test.
2163 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2165 * configure.ac (AC_PROG_FC): Add.
2166 (USE_FORTRAN): New automake conditional.
2167 * configure: Rebuilt.
2168 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2169 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2170 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2171 Add rules to build them.
2172 * Makefile.in: Rebuilt.
2173 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2175 * libgomp.map: Add Fortran wrappers.
2176 * libgomp_f.h.in: New file.
2177 * omp_lib.h.in: New file.
2178 * omp_lib.f90.in: New file.
2179 * fortran.c: New file.
2180 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2181 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2182 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2183 libgfortran has been built.
2184 * testsuite/libgomp.fortran/fortran.exp: New file.
2185 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2186 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2187 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2188 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2189 * testsuite/libgomp.fortran/omp_hello.f: New test.
2190 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2191 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2192 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2193 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2194 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2195 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2196 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2197 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2199 2005-08-30 Richard Henderson <rth@redhat.com>
2201 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2202 function for when aliases are not usable.
2203 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2204 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2205 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2206 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2207 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2208 GOMP_loop_ordered_guided_next): Likewise.
2209 * ordered.c (GOMP_ordered_start): Likewise.
2211 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2213 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2214 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2215 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2216 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2217 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2218 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2219 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2220 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2221 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2223 2005-07-07 Eric Christopher <echristo@redhat.com>
2224 Diego Novillo <dnovillo@redhat.com>
2226 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2227 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2229 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2230 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2231 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2232 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2233 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2234 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2235 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2237 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2239 * TOPLEVEL.patch: Remove.
2241 2005-05-16 Richard Henderson <rth@redhat.com>
2243 * configure.ac: Test for clock_gettime.
2244 * config.h.in, configure: Rebuild.
2245 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2246 (omp_get_wtime): Use clock_gettime if available.
2247 (omp_get_wtick): Use clock_getres if available.
2249 2005-05-11 Richard Henderson <rth@redhat.com>
2251 * config/linux/ia64/futex.h: New file.
2252 * configure.tgt: Use it.
2254 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2256 2005-05-07 Richard Henderson <rth@redhat.com>
2258 * config/linux/powerpc/futex.h: New file.
2259 * configure.tgt: Use it.
2261 * config/linux/i486/futex.h: Merge ...
2262 * config/linux/x86_64/futex.h: ... into ...
2263 * config/linux/x86/futex.h: ... here.
2264 * configure.tgt: Update to match.
2266 2005-05-06 Richard Henderson <rth@redhat.com>
2268 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2269 * config/linux/i486/futex.h: Likewise.
2270 * config/linux/x86_64/futex.h: Likewise.
2272 * config/linux/lock.c: New file.
2273 * config/linux/omp-lock.h: New file.
2275 * critical.c, env.h: Don't include omp.h
2276 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2277 * config/posix/time.c: Likewise.
2278 * config/posix/omp-lock.h: New file.
2279 * libgomp.h: Include omp-lock.h and omp.h.
2280 * Makefile.am (nodist_include_HEADERS): New.
2282 * configure.ac (PERL): New.
2283 * mkomp_h.pl: New file.
2284 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2286 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2288 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2289 build directory. Re-add -march=i486 hack.
2291 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2292 (libgomp_link_flags): Remove.
2293 (libgomp_initialized): Remove.
2294 (libgomp_init): Don't protect from reinitialization. Copy code
2295 from libstdc++ for getting the multilib set correctly.
2297 2005-05-05 Richard Henderson <rth@redhat.com>
2299 * config/linux/alpha/futex.h: New file.
2300 * configure.tgt (alpha*-*-linux*): Use it.
2302 * config/posix/mutex.c: New file.
2303 * config/posix/sem.c: Use libgomp.h.
2305 * configure.tgt (x86_64-linux): Also test CC for -m32.
2306 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2308 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2311 * Makefile.am (SUBDIRS): New.
2312 (libgomp_la_LDFLAGS): Add -lpthread.
2313 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2314 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2316 * libgomp_g.h: New file.
2317 * libgomp.h: Split out all public declarations to libgomp_g.h.
2318 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2319 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2320 * config/linux/sem.h: Likewise.
2321 * config/posix/sem.h: Likewise.
2323 * Makefile.am (AM_LDFLAGS): New.
2324 (libgomp_version_script): Split out from ...
2325 (libgomp_la_LDFLAGS): ... here.
2326 (libgomp_version_info): New.
2327 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2328 (LIBGOMP_ENABLE): New.
2329 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2330 (LIBGOMP_ENABLE_SYMVERS): New.
2331 * configure.ac (AC_INIT): Version 1.0.
2332 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2333 (enable-linux-futex): Likewise. Rename from enable-futex.
2334 (libtool_VERSION): New.
2335 (LIBGOMP_ENABLE_SYMVERS): Use it.
2336 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2337 * Makefile.in, aclocal.m4, configure: Rebuild.
2339 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2340 (gomp_mutex_unlock_slow): Fix typo.
2341 * config/linux/sem.c: Similarly.
2342 (gomp_sem_post_slow): Fix typo.
2343 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2344 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2345 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2347 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2348 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2349 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2350 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2351 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2352 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2353 LDFLAGS. Pull enable_futex check to top-level.
2354 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2355 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2357 First attempt at real configury.
2358 * Makefile, config.h: Remove file.
2359 * Makefile.am, Makefile.in: New file.
2360 * acinclude.m4 aclocal.m4: New file.
2361 * configure.ac, configure.tgt, configure: New file.
2363 * config/posix/lock.c: Rename from sys-lock.c.
2364 * config/posix/mutex.h: Rename from sys-mutex.h.
2365 * config/posix/sem.c: Rename from sys-sem.c.
2366 * config/posix/sem.h: Rename from sys-sem.h.
2367 * config/posix/proc.c: Rename from sys-proc.c.
2368 * config/posix/time.c: Rename from sys-proc.c.
2370 * config/linux/mutex.c: New file.
2371 * config/linux/mutex.h: New file.
2372 * config/linux/sem.c: New file.
2373 * config/linux/sem.h: New file.
2374 * config/linux/i486/futex.h: New file.
2375 * config/linux/x86_64/futex.h: New file.
2377 2005-05-04 Richard Henderson <rth@redhat.com>
2379 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2380 * libgomp.h: Declare them.
2381 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2382 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2384 2005-05-04 Richard Henderson <rth@redhat.com>
2386 * libgomp-1 code drop
2388 2005-05-04 Richard Henderson <rth@redhat.com>
2390 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2391 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2392 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2393 (gomp_iter_static_next): Update.
2394 (gomp_ordered_static_next): Update.
2395 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2396 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2397 totally empty range.
2398 (gomp_loop_ordered_static_next): Refine test for calling
2399 gomp_ordered_static_next.
2400 * testsuite/ordered-1.c: Add case for more threads than iterations.
2402 * iter.c (gomp_iter_runtime_next_locked): Remove.
2403 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2404 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2405 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2406 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2407 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2408 gomp_loop_ordered_guided_next): Downcase name, make static, add
2409 an external alias with the old name.
2410 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2411 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2412 switch and call one of the above static functions.
2413 * libgomp.h: Update.
2415 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2416 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2417 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2418 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2419 GOMP_loop_ordered_guided_start): Update to match.
2420 * sections.c (GOMP_sections_start): Likewise.
2421 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2423 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2424 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2425 Use bounds check instead of modulus.
2426 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2427 (gomp_ordered_last): Don't sync with ordered_owner here.
2428 (gomp_ordered_next): Likewise.
2429 (gomp_ordered_static_loop_next): Likewise.
2430 * loop.c, libgomp.h: Update to match.
2432 * libgomp.h (GOMP_barrier): Declare.
2434 * testsuite/barrier-1.c: New file.
2435 * testsuite/critical-1.c: New file.
2436 * testsuite/ordered-2.c: New file.
2437 * testsuite/ordered-1.c: New file.
2438 * testsuite/sections-1.c: New file.
2439 * testsuite/single-1.c: New file.
2440 * testsuite/Makefile (TESTS): Add them.
2442 2005-05-04 Richard Henderson <rth@redhat.com>
2444 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2445 * loop.c (GOMP_loop_static_start): If not the startup thread,
2446 acquire the mutex to wait for initialization complete.
2447 (GOMP_loop_ordered_static_start): Likewise.
2448 (GOMP_loop_ordered_runtime_start): Likewise.
2449 (GOMP_loop_ordered_static_first): Remove.
2450 (GOMP_loop_ordered_dynamic_first): Remove.
2451 (GOMP_loop_ordered_guided_first): Remove.
2452 (GOMP_loop_ordered_runtime_first): Remove.
2453 * ordered.c (gomp_ordered_loop_first): Post to own release when
2454 we're the first thread.
2455 (gomp_ordered_loop_last): Wait on release if not owner.
2456 (gomp_ordered_loop_next): Likewise.
2457 (gomp_ordered_static_loop_init): New.
2458 (gomp_ordered_static_loop_next): Use ordered_owner.
2459 (GOMP_ordered_start): Likewise.
2460 * work.c (gomp_new_work_share): Initialize ordered_owner.
2462 2005-05-03 Richard Henderson <rth@redhat.com>
2464 * Makefile (OPT): New.
2467 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2468 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2469 * libgomp.h, libgomp.map, NOTES: Update to match.
2471 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2472 Add initialized and thr members.
2473 (gomp_thread_start): Pause when initially spawned to wait for
2474 the whole team to be created.
2475 (gomp_team_start): Release team members at the end.
2477 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2478 (f_foo_1): Use GOMP_loop_end.
2479 (f_foo_2): Use GOMP_loop_end_nowait.
2481 * testsuite/loop-2.c: New file.
2482 * testsuite/Makefile (TESTS): Add it.
2484 2005-05-03 Richard Henderson <rth@redhat.com>
2486 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2487 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2488 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2491 * testsuite/Makefile: New file.
2492 * testsuite/loop-1.c: New file.
2494 2005-05-03 Richard Henderson <rth@redhat.com>
2496 Initial implementation and checkin.