1 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3 * Makefile.in: Regenerate.
4 * aclocal.m4: Regenerate.
5 * config.h.in: Regenerate.
6 * configure: Regenerate.
7 * testsuite/Makefile.in: Regenerate.
9 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
12 * Makefile.in: Regenerate.
14 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
16 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17 * Makefile.in: Regenerate.
19 2009-08-19 Tobias Burnus <burnus@net-b.de>
22 omp_lib.h.in: Fix -std=f95 errors.
25 2009-08-14 David Edelsohn <edelsohn@gnu.org>
27 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
28 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
29 * testsuite/libgomp.graphite/graphite.exp: New.
31 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
33 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
36 2009-08-04 David Daney <ddaney@caviumnetworks.com>
38 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
39 needed memory barrier semantics.
40 * config/linux/mips/mutex.h: New file.
42 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
46 2009-07-16 Joseph Myers <joseph@codesourcery.com>
48 * configure: Regenerate.
50 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
55 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
56 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
57 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
59 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
61 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
62 options when choosing a multilib.
64 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
66 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
67 ld_library_path. Use add_path. Add just find_libgcc_s to
68 ld_library_path, not every libgcc multilib directory.
69 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
70 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
71 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
73 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
75 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
77 * Makefile.am (LTLDFLAGS): Define.
79 * Makefile.in: Regenerate.
81 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
84 * testsuite/libgomp.fortran/fortran.exp: Don't link with
85 libgfortranbegin, check existence of libgfortran.a instead of
88 2009-05-20 Jakub Jelinek <jakub@redhat.com>
91 * team.c (gomp_thread_start): Destroy thr->release semaphore.
92 (gomp_free_pool_helper): Likewise.
94 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
95 Jakub Jelinek <jakub@redhat.com>
98 * testsuite/libgomp.fortran/workshare2.f90: New test.
100 2009-04-09 Nick Clifton <nickc@redhat.com>
102 * iter.c: Change copyright header to refer to version 3 of the
103 GNU General Public License with version 3.1 of the GCC Runtime
104 Library Exception and to point readers at the COPYING3 and
105 COPYING3.RUNTIME files and the FSF's license web page.
107 * barrier.c: Likewise.
108 * config/bsd/proc.c: Likewise.
109 * config/linux/affinity.c: Likewise.
110 * config/linux/alpha/futex.h: Likewise.
111 * config/linux/bar.c: Likewise.
112 * config/linux/bar.h: Likewise.
113 * config/linux/ia64/futex.h: Likewise.
114 * config/linux/ia64/mutex.h: Likewise.
115 * config/linux/lock.c: Likewise.
116 * config/linux/mips/futex.h: Likewise.
117 * config/linux/mutex.c: Likewise.
118 * config/linux/mutex.h: Likewise.
119 * config/linux/powerpc/futex.h: Likewise.
120 * config/linux/proc.c: Likewise.
121 * config/linux/ptrlock.c: Likewise.
122 * config/linux/ptrlock.h: Likewise.
123 * config/linux/s390/futex.h: Likewise.
124 * config/linux/sem.c: Likewise.
125 * config/linux/sem.h: Likewise.
126 * config/linux/sparc/futex.h: Likewise.
127 * config/linux/wait.h: Likewise.
128 * config/linux/x86/futex.h: Likewise.
129 * config/mingw32/proc.c: Likewise.
130 * config/mingw32/time.c: Likewise.
131 * config/posix/affinity.c: Likewise.
132 * config/posix/bar.c: Likewise.
133 * config/posix/bar.h: Likewise.
134 * config/posix/lock.c: Likewise.
135 * config/posix/mutex.h: Likewise.
136 * config/posix/proc.c: Likewise.
137 * config/posix/ptrlock.h: Likewise.
138 * config/posix/sem.c: Likewise.
139 * config/posix/sem.h: Likewise.
140 * config/posix/time.c: Likewise.
141 * config/posix95/lock.c: Likewise.
142 * critical.c: Likewise.
145 * fortran.c: Likewise.
146 * iter_ull.c: Likewise.
147 * libgomp.h: Likewise.
148 * libgomp_f.h.in: Likewise.
149 * libgomp_g.h: Likewise.
151 * loop_ull.c: Likewise.
152 * omp.h.in: Likewise.
153 * omp_lib.f90.in: Likewise.
154 * omp_lib.h.in: Likewise.
155 * ordered.c: Likewise.
156 * parallel.c: Likewise.
157 * sections.c: Likewise.
158 * single.c: Likewise.
163 2009-04-09 Jakub Jelinek <jakub@redhat.com>
165 * testsuite/config/default.exp: Change copyright header to refer to
166 version 3 of the GNU General Public License and to point readers
167 at the COPYING3 file and the FSF's license web page.
169 2009-04-08 Jakub Jelinek <jakub@redhat.com>
172 * libgomp.c++/pr39573.C: New test.
174 2009-04-01 Jakub Jelinek <jakub@redhat.com>
177 * testsuite/libgomp.c/pr39591-1.c: New test.
178 * testsuite/libgomp.c/pr39591-2.c: New test.
179 * testsuite/libgomp.c/pr39591-3.c: New test.
181 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
183 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
184 * testsuite/libgomp.c/atomic-6.c: Ditto.
186 2009-03-23 Jakub Jelinek <jakub@redhat.com>
189 * testsuite/libgomp.c/loop-12.c: New test.
190 * testsuite/libgomp.c/loop-11.c: New test.
191 * testsuite/libgomp.c++/loop-11.C: New test.
192 * testsuite/libgomp.c++/loop-12.C: New test.
193 * testsuite/libgomp.c++/for-8.C: New test.
195 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
197 * configure: Regenerate.
199 2009-02-11 Jakub Jelinek <jakub@redhat.com>
202 * testsuite/libgomp.c/pr39154.c: New test.
204 2009-01-30 Ian Lance Taylor <iant@google.com>
206 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
207 libgomp_ld_is_gold. Get gold version number.
208 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
209 * configure: Rebuild.
211 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
213 * testsuite/lib/libgomp.exp: Add -B option for targets that
214 use libgfortran.a%s in their specs.
216 2009-01-07 Jakub Jelinek <jakub@redhat.com>
219 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
220 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
221 HAVE_AS_SYMVER_DIRECTIVE is not defined.
222 * configure: Regenerated.
223 * config.h.in: Likewise.
225 2008-12-28 Jakub Jelinek <jakub@redhat.com>
228 * testsuite/libgomp.c/pr38650.c: New test.
229 * testsuite/libgomp.c++/pr38650.C: New test.
231 2008-12-27 Jakub Jelinek <jakub@redhat.com>
233 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
235 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
237 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
239 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
241 * configure: Regenerate.
243 2008-12-08 Jakub Jelinek <jakub@redhat.com>
246 * testsuite/libgomp.c/pr36802-1.c: New test.
247 * testsuite/libgomp.c/pr36802-2.c: New test.
248 * testsuite/libgomp.c/pr36802-3.c: New test.
250 2008-12-01 Janis Johnson <janis187@us.ibm.com>
253 * config/linux/powerpc/mutex.h: New.
255 2008-12-01 Jakub Jelinek <jakub@redhat.com>
258 * testsuite/libgomp.c++/for-7.C: New test.
261 * testsuite/libgomp.c++/for-6.C: New test.
263 2008-11-26 Janis Johnson <janis187@us.ibm.com>
266 * testsuite/lib/libgomp.exp: Include new timeout library files.
267 (libgomp_target_compile): Set timeout value from new proc.
269 2008-11-13 Steve Ellcey <sje@cup.hp.com>
272 * config/linux/ia64/mutex.h: New.
274 2008-11-04 Tobias Burnus <burnus@net-b.de>
277 * libgomp.texi (Runtime library routines, environment variables):
278 Update for OpenMP version 3.0.
280 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
281 Steve Ellcey <sje@cup.hp.com>
283 * configure: Regenerate for new libtool.
284 * Makefile.in: Ditto.
285 * testsuite/Makefile.in: Ditto.
287 2008-09-19 Jakub Jelinek <jakub@redhat.com>
288 Andreas Tobler <a.tobler@schweiz.org>
290 * config/bsd/proc.c: New file.
291 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
292 * configure.ac: Check for header <sys/sysctl.h>
293 * configure: Regenerate.
294 * config.h.in: Likewise.
296 2008-09-05 Janis Johnson <janis187@us.ibm.com>
298 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
300 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
302 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
303 * Makefile.in: Regenerated.
304 * testsuite/Makefile.in: Regenerated.
306 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
308 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
309 depend on blddir if blddir exists.
310 (libgomp_target_compile): Likewise.
311 * testsuite/libgomp.c++/c++.exp: Likewise.
312 * testsuite/libgomp.fortran/fortran.exp: Likewise.
314 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
316 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
317 Do not list GPL as Invariant Section.
319 2008-07-28 Ilie Garbacea <ilie@mips.com>
320 Chao-ying Fu <fu@mips.com>
322 * configure.tgt: Enable futex for MIPS.
323 * config/linux/mips/futex.h: New file.
325 2008-07-16 Jakub Jelinek <jakub@redhat.com>
327 * team.c (gomp_team_end): Free team immediately if it has
330 2008-07-08 David Edelsohn <edelsohn@gnu.org>
332 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
333 * testsuite/libgomp.fortran/fortran.exp: Same.
334 * testsuite/libgomp.c/c.exp: Same.
335 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
336 directory to library path first.
338 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
340 * env.c (parse_stacksize): Add cast to avoid warning.
341 (parse_spincount): Likewise.
343 2008-06-27 Jakub Jelinek <jakub@redhat.com>
345 * testsuite/libgomp.c/loop-10.c: New test.
346 * libgomp.c/loop-3.c (main): Add lastprivate clause.
347 * libgomp.c++/loop-6.C (main): Likewise.
350 * testsuite/libgomp.c/debug-1.c: New test.
352 2008-06-19 Jakub Jelinek <jakub@redhat.com>
354 * testsuite/libgomp.c/nqueens-1.c: New test.
357 * testsuite/libgomp.c++/task-7.C: New function.
359 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
361 * configure: Regenerate.
363 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
365 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
366 mutex when HAVE_SYNC_BUILTINS isn't defined.
368 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
370 * libgomp.texi (omp_test_lock): Fix typo.
372 2008-06-12 Tobias Burnus <burnus@net-b.de>
374 * omp_lib.f90.in: Add "implicit none".
376 2008-06-12 Jakub Jelinek <jakub@redhat.com>
379 * testsuite/libgomp.c/reduction-5.c: New test.
381 2008-06-11 Jakub Jelinek <jakub@redhat.com>
383 * libgomp.h (struct gomp_task): Add in_tied_task field.
384 * task.c (gomp_init_task): Initialize it.
385 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
386 unconditionally. Don't call gomp_team_barrier_wake if
387 current task is implicit or if(0) from implicit and number of
388 running tasks is equal to nthreads - 1.
391 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
392 omp_get_team_size_8): Fix pastos.
395 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
396 * configure: Regenerated.
397 * config.h.in: Regenerated.
398 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
401 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
404 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
405 (GOMP_loop_ull_dynamic_start): Likewise.
406 (GOMP_loop_ull_guided_start): Likewise.
407 (GOMP_loop_ull_ordered_static_start): Likewise.
408 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
409 (GOMP_loop_ull_ordered_guided_start): Likewise.
411 2008-06-06 Jakub Jelinek <jakub@redhat.com>
412 Richard Henderson <rth@redhat.com>
413 Ulrich Drepper <drepper@redhat.com>
414 Jakob Blomer <jakob.blomer@ira.uka.de>
416 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
417 Substitute also OMP_*LOCK_25*.
418 * configure: Regenerated.
419 * config.h.in: Regenerated.
420 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
421 ptrlock.c and task.c.
422 * Makefile.in: Regenerated.
423 * testsuite/Makefile.in: Regenerated.
425 * loop_ull.c: New file.
426 * iter_ull.c: New file.
427 * libgomp.h: Include ptrlock.h.
428 (enum gomp_task_kind): New type.
429 (struct gomp_team): Add task_lock, task_queue, task_count,
430 task_running_count, single_count fields. Add
431 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
432 Remove work_share_lock, generation_mask,
433 oldest_live_gen, num_live_gen and init_work_shares fields, add
434 work work_share_list_alloc, work_share_list_free and work_share_chunk
435 fields. Change work_shares from pointer to pointers into an array.
436 Change ordered_release field into gomp_sem_t ** from flexible array
437 member. Add implicit_task and initial_work_shares fields.
438 Move close to the end of the struct.
439 (struct gomp_team_state): Add single_count, last_work_share,
440 active_level and level fields, remove work_share_generation.
441 (gomp_barrier_handle_tasks): New prototype.
442 (gomp_finish_task): New inline function.
443 (struct gomp_work_share): Move chunk_size, end, incr into
444 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
445 next_ll fields. Reshuffle fields. Add next_alloc,
446 next_ws, next_free and inline_ordered_team_ids fields, change
447 ordered_team_ids into pointer from flexible array member.
448 Add mode field. Put lock and next into a different cache line
449 from most of the write-once fields.
450 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
451 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
452 gomp_iter_ull_guided_next): New prototypes.
453 (gomp_new_icv): New prototype.
454 (struct gomp_thread): Add thread_pool and task fields.
455 (struct gomp_thread_pool): New type.
456 (gomp_new_team): New prototype.
457 (gomp_team_start): Change type of last argument.
458 (gomp_new_work_share): Removed.
459 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
460 (gomp_work_share_init_done): New static inline.
461 (gomp_throttled_spin_count_var, gomp_available_cpus,
462 gomp_managed_threads): New extern decls.
463 (gomp_init_task): New prototype.
464 (gomp_spin_count_var): New extern var decl.
465 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
466 or no alias support, or if not PIC.
467 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
468 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
469 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
470 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
471 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
472 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
473 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
474 gomp_test_nest_lock_25): New prototypes.
475 (omp_lock_symver, strong_alias): Define.
476 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
478 (gomp_end_task): New.
479 (struct gomp_task_icv, gomp_global_icv): New.
480 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
481 (struct gomp_task): New.
482 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
483 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
485 (gomp_schedule_type): Reorder enum to match
487 * team.c (struct gomp_thread_start_data): Add thread_pool and task
489 (gomp_thread_start): Add gomp_team_barrier_wait call.
490 For non-nested case remove clearing of docked thread thr fields.
491 Use pool fields instead of global gomp_* variables. Use
492 gomp_barrier_wait_last when needed. Initialize ts.active_level.
493 Create tasks for each member thread.
494 (free_team): Only destroy team barrier, task_lock here and free it.
495 (gomp_free_thread): Free last_team if non-NULL.
496 (gomp_team_end): Call gomp_team_barrier_wait instead of
497 gomp_barrier_wait. For nested case call one extra
498 gomp_barrier_wait. Move here some destruction from free_team.
499 Call free_team on pool->last_team if any, rather than freeing
500 current team. Destroy work_share_list_free_lock ifndef
502 (gomp_new_icv): New function.
503 (gomp_threads, gomp_threads_size, gomp_threads_used,
504 gomp_threads_dock): Removed.
505 (gomp_thread_destructor): New variable.
506 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
508 (gomp_team_start): Create new pool if current thread doesn't have
509 one. Use pool fields instead of global gomp_* variables.
510 Initialize thread_pool field for new threads. Clear single_count.
511 Change last argument from ws to team, don't create
512 new team, set ts.work_share to &team->work_shares[0] and clear
513 ts.last_work_share. Don't clear ts.work_share_generation.
514 If number of threads changed, adjust atomically gomp_managed_threads.
515 Use gomp_init_task instead of gomp_new_task,
516 set thr->task to the corresponding implicit_task array entry.
517 Create tasks for each member thread. Initialize ts.level.
518 (initialize_team): Call pthread_key_create on
519 gomp_thread_destructor.
520 (team_destructor): New function.
522 (gomp_new_team): New function.
523 (free_team): Free gomp_work_share blocks chained through next_alloc,
524 instead of freeing work_shares and destroying work_share_lock.
525 (gomp_team_end): Call gomp_fini_work_share. If number of threads
526 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
527 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
528 of gomp_barrier_wait.
529 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
530 instead of gomp_barrier_wait. Call gomp_work_share_init_done
531 if gomp_work_share_start returned true. Don't unlock ws->lock.
532 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
533 of gomp_barrier_wait.
534 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
535 gomp_work_share_init_done if gomp_work_share_start returned true.
536 Don't unlock ws->lock.
537 * work.c: Include stddef.h.
538 (free_work_share): Use work_share_list_free_lock instead
539 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
540 Call gomp_fini_work_share and then either free ws if orphaned, or
541 put it into work_share_list_free list of the current team.
542 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
544 (gomp_work_share_start, gomp_work_share_end,
545 gomp_work_share_end_nowait): Rewritten.
546 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
547 (openmp_version): Set to 200805.
548 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
549 omp_sched_guided, omp_sched_auto): New parameters.
550 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
551 omp_set_max_active_levels, omp_get_max_active_levels,
552 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
553 omp_get_active_level): New interfaces.
554 * omp_lib.h.in (openmp_version): Set to 200805.
555 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
556 omp_sched_guided, omp_sched_auto): New parameters.
557 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
558 omp_set_max_active_levels, omp_get_max_active_levels,
559 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
560 omp_get_active_level): New externals.
561 * loop.c: Include limits.h.
562 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
564 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
565 Likewise. Use gomp_icv.
566 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
568 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
569 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
570 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
571 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
572 don't unlock ws->lock, otherwise lock it.
573 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
574 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
575 (gomp_parallel_loop_start): Call gomp_new_team instead of
576 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
577 Adjust gomp_team_start caller. Pass 0 as second argument to
578 gomp_resolve_num_threads.
579 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
580 If adding ws->chunk_size nthreads + 1 times after end won't
581 overflow, set ws->mode to 1.
582 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
583 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
584 GOMP_loop_ull_ordered_static_start,
585 GOMP_loop_ull_ordered_dynamic_start,
586 GOMP_loop_ull_ordered_guided_start,
587 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
588 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
589 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
590 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
591 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
593 * libgomp.map: Export lock routines also @@OMP_2.0.
594 (GOMP_loop_ordered_dynamic_first,
595 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
596 GOMP_loop_ordered_static_first): Remove.
597 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
598 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
599 GOMP_loop_ull_ordered_dynamic_next,
600 GOMP_loop_ull_ordered_dynamic_start,
601 GOMP_loop_ull_ordered_guided_next,
602 GOMP_loop_ull_ordered_guided_start,
603 GOMP_loop_ull_ordered_runtime_next,
604 GOMP_loop_ull_ordered_runtime_start,
605 GOMP_loop_ull_ordered_static_next,
606 GOMP_loop_ull_ordered_static_start,
607 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
608 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
609 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
610 (omp_set_schedule, omp_get_schedule,
611 omp_get_thread_limit, omp_set_max_active_levels,
612 omp_get_max_active_levels, omp_get_level,
613 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
614 omp_set_schedule_, omp_set_schedule_8_,
615 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
616 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
617 omp_get_max_active_levels_, omp_get_level_,
618 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
619 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
620 New exports @@OMP_3.0.
621 * omp.h.in (omp_sched_t): New type.
622 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
623 omp_set_max_active_levels, omp_get_max_active_levels,
624 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
625 omp_get_active_level): New prototypes.
626 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
627 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
628 gomp_thread_limit_var, gomp_remaining_threads_count,
629 gomp_remaining_threads_lock): New variables.
630 (parse_spincount): New function.
631 (initialize_env): Call gomp_init_num_threads unconditionally.
632 Initialize gomp_available_cpus. Call parse_spincount,
633 initialize gomp_{,throttled_}spin_count_var
634 depending on presence and value of OMP_WAIT_POLICY and
635 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
636 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
637 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
638 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
639 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
640 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
641 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
642 (gomp_global_icv): New.
643 (parse_schedule): Use it. Parse "auto".
644 (omp_set_num_threads): Use gomp_icv.
645 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
647 (omp_get_max_threads): Move from parallel.c.
648 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
649 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
651 (parse_stacksize, parse_wait_policy): New functions.
652 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
653 both wrappers for compatibility and new locks.
654 (omp_set_schedule, omp_get_schedule,
655 omp_get_thread_limit, omp_set_max_active_levels,
656 omp_get_max_active_levels, omp_get_level,
657 omp_get_ancestor_thread_num, omp_get_team_size,
658 omp_get_active_level): New ialias_redirect.
659 (omp_set_schedule_, omp_set_schedule_8_,
660 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
661 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
662 omp_get_max_active_levels_, omp_get_level_,
663 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
664 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
666 * parallel.c: Include limits.h.
667 (gomp_resolve_num_threads): Add count argument. Rewritten.
668 (GOMP_parallel_start): Call gomp_new_team and pass that as last
669 argument to gomp_team_start. Pass 0 as second argument to
670 gomp_resolve_num_threads.
671 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
672 if gomp_thread_limit_var != ULONG_MAX.
673 (omp_in_parallel): Implement using ts.active_level.
674 (omp_get_max_threads): Move to env.c.
675 (omp_get_level, omp_get_ancestor_thread_num,
676 omp_get_team_size, omp_get_active_level): New functions,
678 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
679 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
680 gomp_iter_dynamic_next instead of the _locked variant and don't take
681 lock around it, otherwise acquire it before calling
682 gomp_iter_dynamic_next_locked.
683 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
684 gomp_iter_dynamic_next instead of the _locked variant and don't take
686 (GOMP_parallel_sections_start): Call gomp_new_team instead of
687 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
688 Adjust gomp_team_start caller. Pass count as second argument to
689 gomp_resolve_num_threads, don't adjust num_threads after the call.
691 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
692 ws->chunk_size by incr.
693 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
695 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
697 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
698 (omp_check_defines): Check even the compat defines.
699 * config/linux/ptrlock.c: New file.
700 * config/linux/ptrlock.h: New file.
701 * config/linux/wait.h: New file.
702 * config/posix/ptrlock.c: New file.
703 * config/posix/ptrlock.h: New file.
704 * config/linux/bar.h (gomp_team_barrier_wait,
705 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
706 (gomp_team_barrier_set_task_pending,
707 gomp_team_barrier_clear_task_pending,
708 gomp_team_barrier_set_waiting_for_tasks,
709 gomp_team_barrier_waiting_for_tasks,
710 gomp_team_barrier_done): New inlines.
711 (gomp_barrier_t): Rewritten.
712 (gomp_barrier_state_t): New typedef.
713 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
714 gomp_barrier_wait_start): Rewritten.
715 (gomp_barrier_wait_end): Change second argument to
716 gomp_barrier_state_t.
717 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
719 * config/linux/bar.c: Include wait.h instead of libgomp.h and
721 (gomp_barrier_wait_end): Rewritten.
722 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
723 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
724 * config/posix/bar.h (gomp_barrier_t): Add generation field.
725 (gomp_barrier_state_t): New typedef.
726 (gomp_team_barrier_wait,
727 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
728 (gomp_barrier_wait_start): Or all but low 2 bits from generation
729 into the return value. Return gomp_barrier_state_t.
730 (gomp_team_barrier_set_task_pending,
731 gomp_team_barrier_clear_task_pending,
732 gomp_team_barrier_set_waiting_for_tasks,
733 gomp_team_barrier_waiting_for_tasks,
734 gomp_team_barrier_done): New inlines.
735 (gomp_barrier_wait_end): Change second argument to
736 gomp_barrier_state_t.
737 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
739 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
740 (gomp_barrier_wait_end): Change second argument to
741 gomp_barrier_state_t.
742 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
743 gomp_team_barrier_wake): New functions.
744 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
746 (gomp_futex_wake, gomp_futex_wait): New variables.
747 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
748 * config/linux/lock.c: Rewrite to make locks task owned,
749 for backwards compatibility provide the old entrypoints
750 if symbol versioning. Include wait.h instead of libgomp.h and
752 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
753 * config/posix95/lock.c: Rewrite to make locks task owned,
754 for backwards compatibility provide the old entrypoints
755 if symbol versioning.
756 * config/posix/lock.c: Rewrite to make locks task owned,
757 for backwards compatibility provide the old entrypoints
758 if symbol versioning.
759 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
760 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
761 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
762 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
763 (sys_futex0): Return error code.
764 (futex_wake, futex_wait): If ENOSYS was returned, clear
765 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
766 (cpu_relax, atomic_write_barrier): New static inlines.
767 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
768 (futex_wake, futex_wait): If ENOSYS was returned, clear
769 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
770 (cpu_relax, atomic_write_barrier): New static inlines.
771 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
772 (sys_futex0): Return error code.
773 (futex_wake, futex_wait): If ENOSYS was returned, clear
774 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
775 (cpu_relax, atomic_write_barrier): New static inlines.
776 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
777 (sys_futex0): Return error code.
778 (futex_wake, futex_wait): If ENOSYS was returned, clear
779 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
780 (cpu_relax, atomic_write_barrier): New static inlines.
781 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
782 (sys_futex0): Return error code.
783 (futex_wake, futex_wait): If ENOSYS was returned, clear
784 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
785 (cpu_relax, atomic_write_barrier): New static inlines.
786 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
787 (sys_futex0): Return error code.
788 (futex_wake, futex_wait): If ENOSYS was returned, clear
789 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
790 (cpu_relax, atomic_write_barrier): New static inlines.
791 * config/linux/sem.c: Include wait.h instead of libgomp.h and
793 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
794 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
795 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
797 (omp_nest_lock_t): Change owner into void *, add lock field.
798 * config/posix95/omp-lock.h: Include semaphore.h.
799 (omp_lock_25_t, omp_nest_lock_25_t): New types.
800 (omp_lock_t): Use sem_t instead of mutex if semaphores
802 (omp_nest_lock_t): Likewise. Change owner to void *.
803 * config/posix/omp-lock.h: Include semaphore.h.
804 (omp_lock_25_t, omp_nest_lock_25_t): New types.
805 (omp_lock_t): Use sem_t instead of mutex if semaphores
807 (omp_nest_lock_t): Likewise. Add owner field.
809 2008-06-06 Jakub Jelinek <jakub@redhat.com>
811 * testsuite/libgomp.c/collapse-1.c: New test.
812 * testsuite/libgomp.c/collapse-2.c: New test.
813 * testsuite/libgomp.c/collapse-3.c: New test.
814 * testsuite/libgomp.c/icv-1.c: New test.
815 * testsuite/libgomp.c/icv-2.c: New test.
816 * testsuite/libgomp.c/lib-2.c: New test.
817 * testsuite/libgomp.c/lock-1.c: New test.
818 * testsuite/libgomp.c/lock-2.c: New test.
819 * testsuite/libgomp.c/lock-3.c: New test.
820 * testsuite/libgomp.c/loop-4.c: New test.
821 * testsuite/libgomp.c/loop-5.c: New test.
822 * testsuite/libgomp.c/loop-6.c: New test.
823 * testsuite/libgomp.c/loop-7.c: New test.
824 * testsuite/libgomp.c/loop-8.c: New test.
825 * testsuite/libgomp.c/loop-9.c: New test.
826 * testsuite/libgomp.c/nested-3.c: New test.
827 * testsuite/libgomp.c/nestedfn-6.c: New test.
828 * testsuite/libgomp.c/sort-1.c: New test.
829 * testsuite/libgomp.c/task-1.c: New test.
830 * testsuite/libgomp.c/task-2.c: New test.
831 * testsuite/libgomp.c/task-3.c: New test.
832 * testsuite/libgomp.c/task-4.c: New test.
833 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
834 to C++ testsuite default compiler options.
835 * testsuite/libgomp.c++/collapse-1.C: New test.
836 * testsuite/libgomp.c++/collapse-2.C: New test.
837 * testsuite/libgomp.c++/ctor-10.C: New test.
838 * testsuite/libgomp.c++/for-1.C: New test.
839 * testsuite/libgomp.c++/for-2.C: New test.
840 * testsuite/libgomp.c++/for-3.C: New test.
841 * testsuite/libgomp.c++/for-4.C: New test.
842 * testsuite/libgomp.c++/for-5.C: New test.
843 * testsuite/libgomp.c++/loop-8.C: New test.
844 * testsuite/libgomp.c++/loop-9.C: New test.
845 * testsuite/libgomp.c++/loop-10.C: New test.
846 * testsuite/libgomp.c++/task-1.C: New test.
847 * testsuite/libgomp.c++/task-2.C: New test.
848 * testsuite/libgomp.c++/task-3.C: New test.
849 * testsuite/libgomp.c++/task-4.C: New test.
850 * testsuite/libgomp.c++/task-5.C: New test.
851 * testsuite/libgomp.c++/task-6.C: New test.
852 * testsuite/libgomp.fortran/allocatable1.f90: New test.
853 * testsuite/libgomp.fortran/allocatable2.f90: New test.
854 * testsuite/libgomp.fortran/allocatable3.f90: New test.
855 * testsuite/libgomp.fortran/allocatable4.f90: New test.
856 * testsuite/libgomp.fortran/collapse1.f90: New test.
857 * testsuite/libgomp.fortran/collapse2.f90: New test.
858 * testsuite/libgomp.fortran/collapse3.f90: New test.
859 * testsuite/libgomp.fortran/collapse4.f90: New test.
860 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
861 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
862 * testsuite/libgomp.fortran/lib4.f90: New test.
863 * testsuite/libgomp.fortran/lock-1.f90: New test.
864 * testsuite/libgomp.fortran/lock-2.f90: New test.
865 * testsuite/libgomp.fortran/nested1.f90: New test.
866 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
867 * testsuite/libgomp.fortran/strassen.f90: New test.
868 * testsuite/libgomp.fortran/tabs1.f90: New test.
869 * testsuite/libgomp.fortran/tabs2.f: New test.
870 * testsuite/libgomp.fortran/task1.f90: New test.
871 * testsuite/libgomp.fortran/task2.f90: New test.
872 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
873 * testsuite/libgomp.fortran/vla5.f90: Likewise.
874 * testsuite/libgomp.c/pr26943-2.c: Likewise.
875 * testsuite/libgomp.c/pr26943-3.c: Likewise.
876 * testsuite/libgomp.c/pr26943-4.c: Likewise.
878 2008-05-23 Jakub Jelinek <jakub@redhat.com>
881 * testsuite/libgomp.c++/ctor-11.C: New test.
882 * testsuite/libgomp.c++/ctor-12.C: New test.
884 2008-05-15 Janis Johnson <janis187@us.ibm.com>
886 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
888 2008-05-07 Jakub Jelinek <jakub@redhat.com>
891 * testsuite/libgomp.c/atomic-5.c: New test.
892 * testsuite/libgomp.c/atomic-6.c: New test.
893 * testsuite/libgomp.c/autopar-1.c: New test.
895 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
897 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
898 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
899 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
900 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
901 * configure: Regenerate.
902 * Makefile.in, testsuite/Makefile.in: Likewise.
904 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
907 * aclocal.m4: Regenerate.
908 * configure: Regenerate.
910 2008-03-18 Jakub Jelinek <jakub@redhat.com>
913 * testsuite/libgomp.c/atomic-4.c: New test.
916 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
917 (gomp_iter_guided_next): Likewise.
918 * testsuite/libgomp.c/pr35625.c: New test.
920 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
922 * aclocal.m4: Regenerate.
923 * configure: Likewise.
924 * Makefile.in: Likewise.
925 * testsuite/Makefile.in: Likewise.
927 2008-03-13 Jakub Jelinek <jakub@redhat.com>
930 * testsuite/libgomp.c++/pr35185.C: New test.
932 2008-03-12 Jakub Jelinek <jakub@redhat.com>
935 * testsuite/libgomp.c/pr35549.c: New test.
937 2008-03-06 Jakub Jelinek <jakub@redhat.com>
939 * testsuite/libgomp.c/atomic-3.c: New test.
941 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
944 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
947 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
950 * configure.ac: Add ACX_HEADER_STRING.
951 * env.c: Include strings.h.
952 * aclocal.m4: Regenerate.
953 * config.h.in: Regenerate.
954 * configure: Regenerate.
955 * Makefile.in: Regenerate.
956 * testsuite/Makefile.in: Regenerate.
958 2008-02-15 Jakub Jelinek <jakub@redhat.com>
961 * testsuite/libgomp.c/pr35196.c: New test.
964 * testsuite/libgomp.fortran/pr35130.f90: New test.
965 * testsuite/libgomp.c/pr35130.c: New test.
967 2008-01-25 Jakub Jelinek <jakub@redhat.com>
970 * testsuite/libgomp.c/pr33880.c: New test.
971 * testsuite/libgomp.fortran/pr33880.f90: New test.
973 2008-01-24 David Edelsohn <edelsohn@gnu.org>
975 * configure: Regenerate.
977 2008-01-08 Jakub Jelinek <jakub@redhat.com>
979 * configure.ac: Move futex checking into ../config/futex.m4.
980 * configure: Rebuilt.
981 * aclocal.m4: Rebuilt.
982 * Makefile.in: Rebuilt.
984 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
985 2007-10-15 ../config/tls.m4 change.
987 2007-12-19 Jakub Jelinek <jakub@redhat.com>
990 * testsuite/libgomp.c/pr34513.c: New test.
991 * testsuite/libgomp.c++/pr34513.C: New test.
993 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
996 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
998 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1000 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1002 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1004 * testsuite/libgomp.c/private-1.c: New test.
1006 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1007 Paolo Bonzini <bonzini@gnu.org>
1009 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1010 instead of 'VPATH ='.
1011 * Makefile.in: Regenerate.
1013 2007-11-23 Matthias Klose <doko@ubuntu.com>
1015 * configure.ac: Adjust makeinfo version check.
1016 * configure: Regenerate.
1018 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1021 * testsuite/libgomp.fortran/pr34020.f90: New test.
1023 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1026 * testsuite/libgomp.c++/atomic-1.C: New test.
1028 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1031 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1032 Make x and y integers rather than (implicit) reals. Add private (j)
1033 clause to the last omp parallel.
1035 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1037 * configure: Regenerate following changes to ../config/tls.m4.
1039 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1041 * testsuite/libgomp.fortran/stack.f90: New test.
1043 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1045 * config/mingw32/proc.c: New file.
1047 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1049 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1050 (main): Use __get_cpuid to get i386 target fetaures.
1051 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1052 (main): Use __get_cpuid to get x86_64 target fetaures.
1054 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1057 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1058 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1060 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1063 * testsuite/libgomp.fortran/pr32550.f90: New test.
1064 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1066 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1068 * aclocal.m4: Regenerated.
1070 2007-07-05 Tobias Burnus <burnus@net-b.de>
1073 * testsuite/libgomp.fortran/pr32359.f90: New.
1075 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1078 * sections.c (GOMP_parallel_sections_start): Only decrease
1079 number of threads to COUNT if dyn_var is true.
1080 * testsuite/libgomp.c/pr32468.c: New test.
1082 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1085 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1087 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1090 * testsuite/libgomp.c/pr32362-1.c: New test.
1091 * testsuite/libgomp.c/pr32362-2.c: New test.
1092 * testsuite/libgomp.c/pr32362-3.c: New test.
1094 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1096 * team.c (gomp_team_start): Fix setting up thread_attr
1099 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1101 * configure: Regenerate.
1103 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1105 * Makefile.in: Regenerate.
1106 * configure: Regenerate.
1107 * aclocal.m4: Regenerate.
1108 * testsuite/Makefile.in: Regenerate.
1110 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1112 * config/linux/proc.c: New file.
1115 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1117 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1119 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1121 2007-04-16 Matthias Klose <doko@debian.org>
1123 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1124 flags if not building with -m64.
1125 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1126 flag for i?86-*-* targets, if current target matches -m64.
1128 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1130 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1131 * Makefile.in: Regenerate.
1133 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1136 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1138 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1140 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1142 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1144 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1145 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1146 (parse_affinity): New function.
1147 (initialize_env): Call it and gomp_init_affinity.
1148 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1149 create new pthread_attr_t and call gomp_init_thread_affinity
1150 on it for each thread before passing the attribute to pthread_create.
1151 * config/linux/affinity.c: New file.
1152 * config/posix/affinity.c: New file.
1153 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1154 * configure: Rebuilt.
1155 * config.h.in: Rebuilt.
1156 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1157 * Makefile.in: Rebuilt.
1159 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1161 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1163 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1164 and use it if found.
1166 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1168 * testsuite/config/default.exp: New file.
1169 * testsuite/lib/libgomp.exp: New file.
1170 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1171 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1172 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1173 (libgomp_load): Remove.
1174 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1175 always_ld_library_path, not ld_library_path. Set additional_flags
1176 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1177 (target_compile): Do not call libgomp_init. Append lang_library_path
1178 and lang_link_flags to options.
1179 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1180 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1182 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1183 always_ld_library_path. Set LD_LIBRARY_PATH here.
1184 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1185 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1186 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1188 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1189 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1190 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1191 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1192 * testsuite/libgomp.c/atomic-10.c: Ditto.
1194 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1196 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1197 dg-final cleanup-modules line.
1198 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1199 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1200 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1201 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1202 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1203 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1204 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1206 2007-03-18 Andreas Schwab <schwab@suse.de>
1208 * acinclude.m4: Adjust regular expression for ld version
1210 * configure: Regenerate.
1212 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1214 * Makefile.am: Add install-pdf target as copied from
1215 automake v1.10 rules.
1216 * Makefile.in: Regenerate
1218 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1221 * configure: Regenerate.
1224 * testsuite/libgomp.c++/pr30703.C: New test.
1226 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1229 2006-07-05 Eric Christopher <echristo@apple.com>
1230 * configure.ac: Depend addition of -pthread on host OS.
1231 * configure: Regenerate.
1233 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1235 * libgomp.texi: Fix spacing after abbreviations.
1237 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1240 * configure.ac: Add check for makeinfo
1241 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1242 if an appropiate version of makeinfo is found.
1243 * aclocal.m4: Regenerated.
1244 * configure: Regenerated.
1245 * Makefile.in: Regenerated.
1246 * testsuite/Makefile.in: Regenerated.
1248 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1251 * libgomp.texi: More about implementation-dependent settings.
1253 2007-01-26 Tobias Burnus <burnus@net-b.de>
1255 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1257 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1260 * testsuite/libgomp.c/pr30494.c: New test.
1262 2007-01-15 Tom Tromey <tromey@redhat.com>
1264 * configure: Rebuilt.
1265 * configure.ac: Fixed comment.
1267 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1269 * libgomp.texi: Document implementation specific default values of
1270 environment variables.
1272 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1275 * libgomp.texi: New file.
1276 * configure.ac: Add --enable-generated-files-in-srcdir option.
1277 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1279 * Makefile.in: Regenerated.
1280 * config.h.in: Regenerated.
1281 * testsuite/Makefile.in: Regenerated.
1284 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1287 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1289 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1291 * configure: Regenerate.
1293 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1296 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1297 start if there shouldn't be any loop iterations.
1298 (gomp_loop_ordered_static_start): Remove start == end test.
1299 * testsuite/libgomp.c/pr29947-1.c: New test.
1300 * testsuite/libgomp.c/pr29947-2.c: New test.
1302 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1304 * configure.tgt: Force initial-exec TLS model on Linux only.
1306 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1308 * configure: Regenerated.
1310 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1312 * env.c (parse_schedule): Reject out of range values.
1313 (parse_unsigned_long): Reject out of range, negative or zero values.
1315 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1318 * testsuite/libgomp.fortran/pr29629.f90: New test.
1320 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1323 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1324 * config/posix95: New directory.
1325 * config/posix95/omp-lock.h: New file.
1326 * config/posix95/lock.c: Likewise.
1328 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1330 * aclocal.m4: Regenerate.
1331 * configure: Regenerate.
1333 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1335 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1338 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1340 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1342 * configure: Regenerate.
1343 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1345 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1349 * testsuite/libgomp.c/nestedfn-4.c: New test.
1350 * testsuite/libgomp.c/nestedfn-5.c: New test.
1351 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1354 * testsuite/libgomp.fortran/condinc1.f: New test.
1355 * testsuite/libgomp.fortran/condinc2.f: New test.
1356 * testsuite/libgomp.fortran/condinc3.f90: New test.
1357 * testsuite/libgomp.fortran/condinc4.f90: New test.
1358 * testsuite/libgomp.fortran/condinc1.inc: New file.
1360 2006-09-18 Tom Tromey <tromey@redhat.com>
1362 * configure: Rebuilt.
1364 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1367 PR preprocessor/14634
1368 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1370 * configure: Regenerate.
1372 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1374 * testsuite/libgomp.fortran/reduction3.f90: Change
1375 -2147483648 to -huge(i)-1 to avoid overflow.
1376 * testsuite/libgomp.fortran/reduction4.f90: Change
1377 Z'ffffffff' to not(0) to avoid overflow.
1379 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1382 * Makefile.am (libsubincludedir): New.
1383 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1384 * Makefile.in: Regenerate.
1386 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1389 * env.c: Include ctype.h.
1390 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1391 leading and/or trailing whitespace and compare strings case
1394 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1397 * testsuite/libgomp.fortran/pr28390.f: New test.
1399 2006-07-05 Eric Christopher <echristo@apple.com>
1401 * configure.ac: Depend addition of -pthread on host OS.
1402 * configure: Regenerate.
1404 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1406 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1407 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1410 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1414 * configure.ac: If neither --enable-linux-futex nor
1415 --disable-linux-futex is passed, determine the default by checking
1416 for compiling and/or running against NPTL. With --enable-linux-futex,
1417 check if SYS_gettid and SYS_futex are defined.
1418 * configure: Rebuilt.
1420 2006-06-14 Richard Henderson <rth@redhat.com>
1423 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1424 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1426 2006-06-09 Richard Henderson <rth@redhat.com>
1428 * env.c (gomp_nthreads_var): Change to unsigned long.
1429 (gomp_run_sched_chunk): Likewise.
1430 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1431 (initialize_env): Initialize gomp_thread_attr.
1432 * libgomp.h (gomp_nthreads_var): Update decl.
1433 (gomp_run_sched_chunk): Likewise.
1434 (gomp_thread_attr): Declare.
1435 * team.c (gomp_thread_attr): Export.
1436 (initialize_team): Don't initialize it.
1438 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1441 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1442 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1444 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1446 * config/mingw32/time.c: New file.
1447 * configure.tgt: Use it.
1449 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1451 * Makefile.am: Add install-html target. Add install-html to .PHONY
1452 * Makefile.in: Regenerate.
1454 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1457 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1458 * testsuite/libgomp.c/critical-1.c: Likewise.
1459 * testsuite/libgomp.c/loop-1.c: Likewise.
1460 * testsuite/libgomp.c/loop-2.c: Likewise.
1461 * testsuite/libgomp.c/single-1.c: Likewise.
1462 * testsuite/libgomp.c/ordered-1.c: Likewise.
1463 * testsuite/libgomp.c/ordered-2.c: Likewise.
1465 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1468 * libgomp.fortran/pr27416-1.f90: New test.
1470 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1473 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1474 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1476 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1479 * testsuite/libgomp.c/pr26943-1.c: New test.
1480 * testsuite/libgomp.c/pr26943-2.c: New test.
1481 * testsuite/libgomp.c/pr26943-3.c: New test.
1482 * testsuite/libgomp.c/pr26943-4.c: New test.
1483 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1484 * testsuite/libgomp.c++/pr26943.C: New test.
1486 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1489 * testsuite/libgomp.c++/pr27337.C: New test.
1491 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1494 * testsuite/libgomp.c/pr26171.c: New test.
1496 2006-04-25 Richard Henderson <rth@redhat.com>
1499 * configure.ac: Use GCC_CHECK_TLS.
1500 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1501 * Makefile.in, aclocal.m4, configure: Regenerate.
1503 2006-04-10 Matthias Klose <doko@debian.org>
1505 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1506 directory names containing underscores.
1508 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1511 * testsuite/libgomp.c++/pr26691.C: New test.
1513 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1515 * testsuite/libgomp.fortran/retval2.f90: New test.
1517 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1519 * testsuite/libgomp.c++: New directory.
1521 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1523 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1524 * config/posix/sem.c: Implement the above.
1526 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1528 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1529 define HAVE_BROKEN_POSIX_SEMAPHORES.
1530 * configure: Rebuilt.
1531 * config.h.in: Rebuilt.
1533 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1536 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1537 for the other pthread check.
1538 * configure: Regenerate.
1539 * config.h.in: Regenerate.
1541 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1545 * Makefile.am (fincludedir): New variable.
1546 (nodist_include_HEADERS): Remove Fortran files.
1547 (nodist_finclude_HEADERS): New variable.
1548 * Makefile.in: Regenerated.
1550 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1552 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1553 Remove tests for returning assumed character length arrays.
1555 2006-02-12 Roger Sayle <roger@eyesopen.com>
1556 John David Anglin <dave@hiauly1.hia.nrc.ca>
1559 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1561 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1563 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1565 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1567 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1568 part of LD_LIBRARY_PATH manually.
1570 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1573 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1576 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1579 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1580 * configure.ac (PERL): Don't set.
1581 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1582 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1583 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1584 * omp.h.in: Wrap the new configure substitutions with @ characters.
1585 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1586 * aclocal.m4, configure, Makefile.in: Regenerate.
1587 * mkomp_h.pl: Delete.
1589 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1592 * configure.ac: Use GCC_HEADER_STDINT.
1593 * libgomp.h: Include gstdint.h.
1594 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1595 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1597 2006-01-24 Richard Henderson <rth@redhat.com>
1600 * configure.ac: Add AM_MAINTAINER_MODE.
1601 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1603 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1605 * Makefile.in: Regenerate.
1606 * testsuite/Makefile.in: Regenerate.
1607 * aclocal.m4: Regenerate.
1609 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1611 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1613 * configure.ac: Add check for loadavg.h.
1614 (link_gomp): Adjust comment.
1615 * configure: Regenerate.
1616 * config.h.in: Regenerate.
1618 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1621 * configure.ac: Remove check for alloca.h.
1622 * configure: Regenerate.
1623 * config.h.in: Regenerate.
1624 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1625 * team.c: Remove use of alloca.h.
1626 Call gomp_alloca instead of alloca.
1628 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1631 * team.c: Add include of alloca.h.
1632 * configure.ac: Add check for alloca.h.
1633 * configure: Regenerate.
1634 * config.h.in: Regenerate.
1636 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1639 * testsuite/libgomp.fortran/pr25219.f90: New test.
1641 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1643 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1644 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1645 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1646 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1647 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1648 testsuite/libgomp.fortran/threadprivate1.f90,
1649 testsuite/libgomp.fortran/threadprivate2.f90,
1650 testsuite/libgomp.fortran/threadprivate3.f90,
1651 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1652 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1653 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1654 effective-target to TLS runtime.
1656 * testsuite/libgomp.fortran/pr25162.f: Require
1657 effective-target TLS runtime.
1659 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1661 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1662 * testsuite/libgomp.c/nestedfn-3.c: New test.
1664 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1667 * testsuite/libgomp.fortran/pr25162.f: New test.
1669 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1671 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1672 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1674 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1676 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1677 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1678 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1679 single.c, team.c, work.c, config/linux/alpha/futex.h,
1680 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1681 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1682 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1683 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1684 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1685 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1686 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1689 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1691 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1692 to nodist_noinst_HEADERS.
1693 * Makefile.in: Rebuilt.
1695 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1696 add integer count field.
1697 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1698 omp_nest_lock_t type change.
1699 (omp_init_nest_lock): Likewise. Initialize count to 0.
1700 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1702 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1704 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1705 Increment count if successful and return the new nesting level.
1706 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1707 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1708 * testsuite/libgomp.c/lib-1.c: New test.
1709 * testsuite/libgomp.fortran/lib1.f90: New test.
1710 * testsuite/libgomp.fortran/lib2.f: New test.
1711 * testsuite/libgomp.fortran/lib3.f: New test.
1713 2005-11-17 Richard Henderson <rth@redhat.com>
1716 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1717 * configure.ac (link_gomp): New. Substitute it.
1718 (AC_CONFIG_FILES): Add libgomp.spec.
1719 * libgomp.spec.in: New file.
1720 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1721 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1723 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1725 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1726 reduction(-:var) behaving the same as reduction(+:var).
1727 * testsuite/libgomp.c/reduction-4.c: New test.
1729 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1731 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1732 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1733 testsuite/libgomp.c/copyin-3.c,
1734 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1735 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1736 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1737 testsuite/libgomp.c++/pr24455.C,
1738 testsuite/libgomp.fortran/threadprivate1.f90,
1739 testsuite/libgomp.fortran/threadprivate2.f90,
1740 testsuite/libgomp.fortran/threadprivate3.f90,
1741 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1742 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1743 testsuite/libgomp.fortran/omp_parse3.f90: Require
1744 effective-target TLS.
1746 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1750 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1753 * team.c (initialize_team): Pass NULL rather than free as
1754 pthread_key_create destructor. Initialize thread specific data
1755 pointer in initial thread to a static local variable rather than
1758 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1760 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1761 its location to ld_library_path.
1763 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1765 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1767 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1769 * testsuite/libgomp.c: Rename from libgomp.dg.
1771 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1773 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1774 threadprivate variable 'i'.
1776 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1778 * config/linux/s390/futex.h: New file.
1779 * configure.tgt: Use it.
1781 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1782 before the parallel.
1784 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1787 * testsuite/libgomp.c++/master-1.C: New test.
1789 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1791 * testsuite/libgomp.dg/copyin-3.c: New test.
1793 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1795 * testsuite/libgomp.fortran/retval1.f90: New test.
1796 * testsuite/libgomp.fortran/vla7.f90: New test.
1798 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1800 * testsuite/libgomp.fortran/vla2.f90: New test.
1801 * testsuite/libgomp.fortran/vla3.f90: New test.
1802 * testsuite/libgomp.fortran/vla4.f90: New test.
1803 * testsuite/libgomp.fortran/vla5.f90: New test.
1804 * testsuite/libgomp.fortran/vla6.f90: New test.
1806 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1808 * config/linux/sparc/futex.h: New file.
1809 * configure.tgt: Use it.
1810 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1812 * critical.c: Include stdlib.h.
1813 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1814 ignoring return value.
1815 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1816 LIBGOMP_CHECK_SYNC_BUILTINS check.
1817 * configure: Rebuilt.
1819 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1821 * testsuite/libgomp.fortran/vla1.f90: New test.
1823 2005-10-31 Richard Henderson <rth@redhat.com>
1825 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1826 setting 's' in different threads.
1828 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1830 * libgomp.h (attribute_hidden, ialias): Define.
1831 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1832 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1833 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1834 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1835 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1836 omp_test_lock, omp_test_nest_lock): Likewise.
1837 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1838 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1839 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1840 omp_test_lock, omp_test_nest_lock): Likewise.
1841 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1842 omp_get_dynamic, omp_get_nested): Likewise.
1843 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1844 omp_get_thread_num, omp_in_parallel): Likewise.
1845 * fortran.c (ialias_redirect): Define.
1846 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1847 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1848 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1849 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1850 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1851 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1852 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1853 omp_get_wtime): Add ialias_redirect.
1855 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1857 * fortran.c: Include stdlib.h.
1859 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1861 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1862 * Makefile.in: Regenerated.
1864 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1866 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1867 * libgomp_f.h.in (omp_check_defines): New function.
1868 * env.c: Include libgomp_f.h.
1869 (initialize_env): Call omp_check_defines.
1871 * testsuite/libgomp.dg/copyin-2.c: New test.
1872 * testsuite/libgomp.c++/copyin-2.C: New test.
1873 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1875 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1876 * testsuite/libgomp.fortran/sharing2.f90: New test.
1878 * testsuite/libgomp.dg/copyin-1.c: New test.
1879 * testsuite/libgomp.c++/copyin-1.C: New test.
1881 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1883 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1885 * testsuite/libgomp.fortran/workshare1.f90: New test.
1887 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1889 * libgomp.fortran/sharing1.f90: New test.
1891 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1894 * testsuite/libgomp.c++/loop-7.C: New test.
1896 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1898 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1899 * testsuite/libgomp.fortran/reduction6.f90: New test.
1900 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1902 2005-10-23 Richard Henderson <rth@redhat.com>
1904 * testsuite/libgomp.c++/ctor-1.C: New.
1905 * testsuite/libgomp.c++/ctor-2.C: New.
1906 * testsuite/libgomp.c++/ctor-3.C: New.
1907 * testsuite/libgomp.c++/ctor-4.C: New.
1908 * testsuite/libgomp.c++/ctor-5.C: New.
1909 * testsuite/libgomp.c++/ctor-6.C: New.
1910 * testsuite/libgomp.c++/ctor-7.C: New.
1911 * testsuite/libgomp.c++/ctor-8.C: New.
1912 * testsuite/libgomp.c++/ctor-9.C: New.
1914 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1917 * testsuite/libgomp.c++/pr24455-1.C: New test.
1918 * testsuite/libgomp.c++/pr24455.C: New test.
1919 * testsuite/libgomp.dg/pr24455-1.c: New test.
1920 * testsuite/libgomp.dg/pr24455.c: New test.
1922 2005-10-20 Richard Henderson <rth@redhat.com>
1924 * testsuite/libgomp.c++/loop-6.C: New.
1925 * testsuite/libgomp.dg/loop-3.c: New.
1927 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1929 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1931 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1934 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1936 * testsuite/libgomp.fortran/jacobi.f: New test.
1938 2005-10-19 Richard Henderson <rth@redhat.com>
1940 * configure.tgt (i?86-linux): Default to with_arch instead of
1941 CFLAGS. Add -mtune to match target_cpu.
1942 (x86_64-linux): Tune to i686.
1944 * fortran.c (omp_test_nest_lock_): Fix typo.
1946 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1948 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1949 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1950 * testsuite/libgomp.dg/ordered-3.c: New test.
1952 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1953 Remove volatile keyword.
1955 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1956 in COMMON block to avoid warnings on 64-bit targets.
1958 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1960 * testsuite/libgomp.dg/shared-3.c: New test.
1962 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1964 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1965 * testsuite/libgomp.fortran/reduction5.f90: New test.
1967 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1969 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1971 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1972 flush loop now that __sync_synchronize has proper memory barrier.
1973 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1974 Add -ffixed-form to dg-options.
1976 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1978 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1979 from subdirectories.
1980 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1981 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1982 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1983 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1984 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1985 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1986 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1987 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1988 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1989 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1990 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1991 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1992 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1993 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1994 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1995 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1996 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1997 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1998 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1999 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2000 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2001 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2002 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2003 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2004 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2006 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2008 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2009 lang_library_path exists. Use find instead of glob to gather tests.
2010 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2012 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2014 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2015 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2016 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2017 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2018 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2019 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2020 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2021 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2022 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2023 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2024 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2025 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2026 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2028 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2030 * testsuite/libgomp.dg/vla-1.c: New test.
2032 * testsuite/libgomp.fortran/reference2.f90: New test.
2034 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2035 declaration of omp_get_thread_num.
2036 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2039 * testsuite/libgomp.fortran/reduction1.f90: New test.
2040 * testsuite/libgomp.fortran/reduction2.f90: New test.
2041 * testsuite/libgomp.fortran/reduction3.f90: New test.
2042 * testsuite/libgomp.fortran/reduction4.f90: New test.
2044 2005-10-13 Richard Henderson <rth@redhat.com>
2046 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2047 * Makefile.in: Regenerate.
2048 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2049 * libgomp.h: Include bar.h.
2050 (struct gomp_barrier): Remove.
2051 (struct gomp_team): Add barrier. Replace master_barrier with
2052 master_release. Replace threads with ordered_release.
2053 (struct gomp_thread): Replace barrier with release.
2054 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2055 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2056 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2057 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2058 (GOMP_single_copy_end): Likewise.
2059 * team.c (gomp_threads_dock): New.
2060 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2061 (gomp_thread_start): Use gomp_barrier_wait.
2062 (new_team, free_team): Update for gomp_team changes.
2063 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2064 (gomp_team_end): Use gomp_barrier_wait.
2065 (initialize_team): Update for gomp_thread changes.
2066 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2067 (gomp_work_share_end_nowait): Use atomic ops when available.
2068 * config/linux/bar.c, config/linux/bar.h: New files.
2069 * config/posix/bar.c, config/posix/bar.h: New files.
2071 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2073 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2074 * testsuite/libgomp.dg/single-2.c: New test.
2076 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2077 lang_link_flags): Unset, so that they aren't inherited from previously
2080 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2082 2005-10-12 Richard Henderson <rth@redhat.com>
2084 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2085 (libgomp_init): Use lang_test_file, lang_library_path, and
2086 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2088 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2089 (lang_test_file, lang_link_flags): New.
2090 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2092 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2093 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2094 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2095 testsuite/libgomp.c++/parallel-1.C,
2096 testsuite/libgomp.c++/reduction-1.C,
2097 testsuite/libgomp.c++/reduction-2.C,
2098 testsuite/libgomp.c++/reduction-3.C,
2099 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2100 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2101 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2102 New files, largely cribbed from the C testsuite.
2104 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2106 * testsuite/libgomp.fortran/character1.f90: New test.
2107 * testsuite/libgomp.fortran/character2.f90: New test.
2109 * testsuite/libgomp.dg/nested-1.c: New test.
2110 * testsuite/libgomp.dg/nested-2.c: New test.
2111 * testsuite/libgomp.fortran/do1.f90: New test.
2112 * testsuite/libgomp.fortran/do2.f90: New test.
2114 * testsuite/libgomp.fortran/reference1.f90: New test.
2116 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2118 * testsuite/libgomp.dg/reduction-1.c: New test.
2119 * testsuite/libgomp.dg/reduction-2.c: New test.
2120 * testsuite/libgomp.dg/reduction-3.c: New test.
2122 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2124 * testsuite/libgomp.dg/atomic-1.c: New test.
2125 * testsuite/libgomp.dg/atomic-2.c: New test.
2127 2005-10-09 Richard Henderson <rth@redhat.com>
2129 * critical.c (atomic_lock): New.
2130 (initialize_critical): Initialize it.
2131 (GOMP_atomic_start, GOMP_atomic_end): New.
2132 * libgomp.map: Export them.
2133 * libgomp_g.h: Declare them.
2135 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2137 2005-10-02 Richard Henderson <rth@redhat.com>
2139 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2140 to XCFLAGS instead of CFLAGS.
2142 2005-09-30 Richard Henderson <rth@redhat.com>
2144 * configure.ac: Determine whether -pthread or -lpthread is needed.
2145 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2146 * Makefine.in, configure: Rebuild.
2148 2005-09-28 Richard Henderson <rth@redhat.com>
2150 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2151 * testsuite/libgomp.dg/omp-single-3.c: New test.
2153 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2155 * testsuite/libgomp.dg/omp-single-2.c: New test.
2156 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2158 2005-09-27 Richard Henderson <rth@redhat.com>
2160 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2161 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2163 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2165 * testsuite/libgomp.dg/omp-loop03.c: New test.
2167 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2169 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2171 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2173 * testsuite/libgomp.dg/omp-single-1.c: New test.
2174 * testsuite/libgomp.dg/shared-1.c: Return 0.
2175 Add prototype for abort.
2176 * testsuite/libgomp.dg/shared-2.c: Likewise.
2178 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2180 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2183 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2185 * testsuite/libgomp.dg/shared-1.c: New test.
2186 * testsuite/libgomp.dg/shared-2.c: New test.
2188 2005-09-24 Richard Henderson <rth@redhat.com>
2190 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2192 2005-09-24 Richard Henderson <rth@redhat.com>
2194 * iter.c (gomp_iter_static_next): Round up when computing number
2195 of iterations. Don't bother distributing a remainder equally.
2197 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2198 Don't call srand. Zero b before testing.
2201 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2203 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2204 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2206 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2208 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2209 without !$omp end do, followed immediately by subroutine end.
2211 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2213 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2215 2005-09-22 Richard Henderson <rth@redhat.com>
2217 * critical.c (GOMP_critical_name_start): Change argument to void**.
2218 Reuse the pointer space if the mutex fits.
2219 (GOMP_critical_name_end): Likewise.
2220 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2221 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2222 (GOMP_critical_name_end): Likewise.
2223 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2224 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2226 2005-09-20 Richard Henderson <rth@redhat.com>
2228 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2229 (create_lock_lock): New.
2230 (initialize_critical): Initialize it.
2231 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2232 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2234 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2236 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2238 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2240 * testsuite/libgomp.dg/omp-loop01.c: New test.
2241 * testsuite/libgomp.dg/omp-loop02.c: New test.
2243 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2245 * configure.ac (AC_PROG_FC): Add.
2246 (USE_FORTRAN): New automake conditional.
2247 * configure: Rebuilt.
2248 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2249 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2250 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2251 Add rules to build them.
2252 * Makefile.in: Rebuilt.
2253 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2255 * libgomp.map: Add Fortran wrappers.
2256 * libgomp_f.h.in: New file.
2257 * omp_lib.h.in: New file.
2258 * omp_lib.f90.in: New file.
2259 * fortran.c: New file.
2260 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2261 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2262 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2263 libgfortran has been built.
2264 * testsuite/libgomp.fortran/fortran.exp: New file.
2265 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2266 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2267 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2268 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2269 * testsuite/libgomp.fortran/omp_hello.f: New test.
2270 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2271 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2272 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2273 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2274 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2275 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2276 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2277 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2279 2005-08-30 Richard Henderson <rth@redhat.com>
2281 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2282 function for when aliases are not usable.
2283 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2284 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2285 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2286 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2287 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2288 GOMP_loop_ordered_guided_next): Likewise.
2289 * ordered.c (GOMP_ordered_start): Likewise.
2291 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2293 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2294 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2295 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2296 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2297 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2298 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2299 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2300 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2301 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2303 2005-07-07 Eric Christopher <echristo@redhat.com>
2304 Diego Novillo <dnovillo@redhat.com>
2306 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2307 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2309 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2310 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2311 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2312 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2313 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2314 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2315 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2317 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2319 * TOPLEVEL.patch: Remove.
2321 2005-05-16 Richard Henderson <rth@redhat.com>
2323 * configure.ac: Test for clock_gettime.
2324 * config.h.in, configure: Rebuild.
2325 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2326 (omp_get_wtime): Use clock_gettime if available.
2327 (omp_get_wtick): Use clock_getres if available.
2329 2005-05-11 Richard Henderson <rth@redhat.com>
2331 * config/linux/ia64/futex.h: New file.
2332 * configure.tgt: Use it.
2334 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2336 2005-05-07 Richard Henderson <rth@redhat.com>
2338 * config/linux/powerpc/futex.h: New file.
2339 * configure.tgt: Use it.
2341 * config/linux/i486/futex.h: Merge ...
2342 * config/linux/x86_64/futex.h: ... into ...
2343 * config/linux/x86/futex.h: ... here.
2344 * configure.tgt: Update to match.
2346 2005-05-06 Richard Henderson <rth@redhat.com>
2348 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2349 * config/linux/i486/futex.h: Likewise.
2350 * config/linux/x86_64/futex.h: Likewise.
2352 * config/linux/lock.c: New file.
2353 * config/linux/omp-lock.h: New file.
2355 * critical.c, env.h: Don't include omp.h
2356 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2357 * config/posix/time.c: Likewise.
2358 * config/posix/omp-lock.h: New file.
2359 * libgomp.h: Include omp-lock.h and omp.h.
2360 * Makefile.am (nodist_include_HEADERS): New.
2362 * configure.ac (PERL): New.
2363 * mkomp_h.pl: New file.
2364 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2366 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2368 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2369 build directory. Re-add -march=i486 hack.
2371 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2372 (libgomp_link_flags): Remove.
2373 (libgomp_initialized): Remove.
2374 (libgomp_init): Don't protect from reinitialization. Copy code
2375 from libstdc++ for getting the multilib set correctly.
2377 2005-05-05 Richard Henderson <rth@redhat.com>
2379 * config/linux/alpha/futex.h: New file.
2380 * configure.tgt (alpha*-*-linux*): Use it.
2382 * config/posix/mutex.c: New file.
2383 * config/posix/sem.c: Use libgomp.h.
2385 * configure.tgt (x86_64-linux): Also test CC for -m32.
2386 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2388 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2391 * Makefile.am (SUBDIRS): New.
2392 (libgomp_la_LDFLAGS): Add -lpthread.
2393 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2394 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2396 * libgomp_g.h: New file.
2397 * libgomp.h: Split out all public declarations to libgomp_g.h.
2398 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2399 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2400 * config/linux/sem.h: Likewise.
2401 * config/posix/sem.h: Likewise.
2403 * Makefile.am (AM_LDFLAGS): New.
2404 (libgomp_version_script): Split out from ...
2405 (libgomp_la_LDFLAGS): ... here.
2406 (libgomp_version_info): New.
2407 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2408 (LIBGOMP_ENABLE): New.
2409 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2410 (LIBGOMP_ENABLE_SYMVERS): New.
2411 * configure.ac (AC_INIT): Version 1.0.
2412 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2413 (enable-linux-futex): Likewise. Rename from enable-futex.
2414 (libtool_VERSION): New.
2415 (LIBGOMP_ENABLE_SYMVERS): Use it.
2416 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2417 * Makefile.in, aclocal.m4, configure: Rebuild.
2419 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2420 (gomp_mutex_unlock_slow): Fix typo.
2421 * config/linux/sem.c: Similarly.
2422 (gomp_sem_post_slow): Fix typo.
2423 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2424 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2425 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2427 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2428 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2429 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2430 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2431 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2432 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2433 LDFLAGS. Pull enable_futex check to top-level.
2434 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2435 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2437 First attempt at real configury.
2438 * Makefile, config.h: Remove file.
2439 * Makefile.am, Makefile.in: New file.
2440 * acinclude.m4 aclocal.m4: New file.
2441 * configure.ac, configure.tgt, configure: New file.
2443 * config/posix/lock.c: Rename from sys-lock.c.
2444 * config/posix/mutex.h: Rename from sys-mutex.h.
2445 * config/posix/sem.c: Rename from sys-sem.c.
2446 * config/posix/sem.h: Rename from sys-sem.h.
2447 * config/posix/proc.c: Rename from sys-proc.c.
2448 * config/posix/time.c: Rename from sys-proc.c.
2450 * config/linux/mutex.c: New file.
2451 * config/linux/mutex.h: New file.
2452 * config/linux/sem.c: New file.
2453 * config/linux/sem.h: New file.
2454 * config/linux/i486/futex.h: New file.
2455 * config/linux/x86_64/futex.h: New file.
2457 2005-05-04 Richard Henderson <rth@redhat.com>
2459 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2460 * libgomp.h: Declare them.
2461 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2462 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2464 2005-05-04 Richard Henderson <rth@redhat.com>
2466 * libgomp-1 code drop
2468 2005-05-04 Richard Henderson <rth@redhat.com>
2470 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2471 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2472 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2473 (gomp_iter_static_next): Update.
2474 (gomp_ordered_static_next): Update.
2475 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2476 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2477 totally empty range.
2478 (gomp_loop_ordered_static_next): Refine test for calling
2479 gomp_ordered_static_next.
2480 * testsuite/ordered-1.c: Add case for more threads than iterations.
2482 * iter.c (gomp_iter_runtime_next_locked): Remove.
2483 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2484 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2485 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2486 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2487 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2488 gomp_loop_ordered_guided_next): Downcase name, make static, add
2489 an external alias with the old name.
2490 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2491 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2492 switch and call one of the above static functions.
2493 * libgomp.h: Update.
2495 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2496 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2497 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2498 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2499 GOMP_loop_ordered_guided_start): Update to match.
2500 * sections.c (GOMP_sections_start): Likewise.
2501 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2503 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2504 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2505 Use bounds check instead of modulus.
2506 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2507 (gomp_ordered_last): Don't sync with ordered_owner here.
2508 (gomp_ordered_next): Likewise.
2509 (gomp_ordered_static_loop_next): Likewise.
2510 * loop.c, libgomp.h: Update to match.
2512 * libgomp.h (GOMP_barrier): Declare.
2514 * testsuite/barrier-1.c: New file.
2515 * testsuite/critical-1.c: New file.
2516 * testsuite/ordered-2.c: New file.
2517 * testsuite/ordered-1.c: New file.
2518 * testsuite/sections-1.c: New file.
2519 * testsuite/single-1.c: New file.
2520 * testsuite/Makefile (TESTS): Add them.
2522 2005-05-04 Richard Henderson <rth@redhat.com>
2524 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2525 * loop.c (GOMP_loop_static_start): If not the startup thread,
2526 acquire the mutex to wait for initialization complete.
2527 (GOMP_loop_ordered_static_start): Likewise.
2528 (GOMP_loop_ordered_runtime_start): Likewise.
2529 (GOMP_loop_ordered_static_first): Remove.
2530 (GOMP_loop_ordered_dynamic_first): Remove.
2531 (GOMP_loop_ordered_guided_first): Remove.
2532 (GOMP_loop_ordered_runtime_first): Remove.
2533 * ordered.c (gomp_ordered_loop_first): Post to own release when
2534 we're the first thread.
2535 (gomp_ordered_loop_last): Wait on release if not owner.
2536 (gomp_ordered_loop_next): Likewise.
2537 (gomp_ordered_static_loop_init): New.
2538 (gomp_ordered_static_loop_next): Use ordered_owner.
2539 (GOMP_ordered_start): Likewise.
2540 * work.c (gomp_new_work_share): Initialize ordered_owner.
2542 2005-05-03 Richard Henderson <rth@redhat.com>
2544 * Makefile (OPT): New.
2547 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2548 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2549 * libgomp.h, libgomp.map, NOTES: Update to match.
2551 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2552 Add initialized and thr members.
2553 (gomp_thread_start): Pause when initially spawned to wait for
2554 the whole team to be created.
2555 (gomp_team_start): Release team members at the end.
2557 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2558 (f_foo_1): Use GOMP_loop_end.
2559 (f_foo_2): Use GOMP_loop_end_nowait.
2561 * testsuite/loop-2.c: New file.
2562 * testsuite/Makefile (TESTS): Add it.
2564 2005-05-03 Richard Henderson <rth@redhat.com>
2566 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2567 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2568 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2571 * testsuite/Makefile: New file.
2572 * testsuite/loop-1.c: New file.
2574 2005-05-03 Richard Henderson <rth@redhat.com>
2576 Initial implementation and checkin.