1 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
3 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
4 * testsuite/libgomp.c/atomic-6.c: Ditto.
6 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9 * testsuite/libgomp.c/loop-12.c: New test.
10 * testsuite/libgomp.c/loop-11.c: New test.
11 * testsuite/libgomp.c++/loop-11.C: New test.
12 * testsuite/libgomp.c++/loop-12.C: New test.
13 * testsuite/libgomp.c++/for-8.C: New test.
15 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 * configure: Regenerate.
19 2009-02-11 Jakub Jelinek <jakub@redhat.com>
22 * testsuite/libgomp.c/pr39154.c: New test.
24 2009-01-30 Ian Lance Taylor <iant@google.com>
26 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
27 libgomp_ld_is_gold. Get gold version number.
28 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
31 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
33 * testsuite/lib/libgomp.exp: Add -B option for targets that
34 use libgfortran.a%s in their specs.
36 2009-01-07 Jakub Jelinek <jakub@redhat.com>
39 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
40 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
41 HAVE_AS_SYMVER_DIRECTIVE is not defined.
42 * configure: Regenerated.
43 * config.h.in: Likewise.
45 2008-12-28 Jakub Jelinek <jakub@redhat.com>
48 * testsuite/libgomp.c/pr38650.c: New test.
49 * testsuite/libgomp.c++/pr38650.C: New test.
51 2008-12-27 Jakub Jelinek <jakub@redhat.com>
53 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
55 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
57 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
59 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61 * configure: Regenerate.
63 2008-12-08 Jakub Jelinek <jakub@redhat.com>
66 * testsuite/libgomp.c/pr36802-1.c: New test.
67 * testsuite/libgomp.c/pr36802-2.c: New test.
68 * testsuite/libgomp.c/pr36802-3.c: New test.
70 2008-12-01 Janis Johnson <janis187@us.ibm.com>
73 * config/linux/powerpc/mutex.h: New.
75 2008-12-01 Jakub Jelinek <jakub@redhat.com>
78 * testsuite/libgomp.c++/for-7.C: New test.
81 * testsuite/libgomp.c++/for-6.C: New test.
83 2008-11-26 Janis Johnson <janis187@us.ibm.com>
86 * testsuite/lib/libgomp.exp: Include new timeout library files.
87 (libgomp_target_compile): Set timeout value from new proc.
89 2008-11-13 Steve Ellcey <sje@cup.hp.com>
92 * config/linux/ia64/mutex.h: New.
94 2008-11-04 Tobias Burnus <burnus@net-b.de>
97 * libgomp.texi (Runtime library routines, environment variables):
98 Update for OpenMP version 3.0.
100 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
101 Steve Ellcey <sje@cup.hp.com>
103 * configure: Regenerate for new libtool.
104 * Makefile.in: Ditto.
105 * testsuite/Makefile.in: Ditto.
107 2008-09-19 Jakub Jelinek <jakub@redhat.com>
108 Andreas Tobler <a.tobler@schweiz.org>
110 * config/bsd/proc.c: New file.
111 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
112 * configure.ac: Check for header <sys/sysctl.h>
113 * configure: Regenerate.
114 * config.h.in: Likewise.
116 2008-09-05 Janis Johnson <janis187@us.ibm.com>
118 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
120 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
122 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
123 * Makefile.in: Regenerated.
124 * testsuite/Makefile.in: Regenerated.
126 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
128 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
129 depend on blddir if blddir exists.
130 (libgomp_target_compile): Likewise.
131 * testsuite/libgomp.c++/c++.exp: Likewise.
132 * testsuite/libgomp.fortran/fortran.exp: Likewise.
134 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
136 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
137 Do not list GPL as Invariant Section.
139 2008-07-28 Ilie Garbacea <ilie@mips.com>
140 Chao-ying Fu <fu@mips.com>
142 * configure.tgt: Enable futex for MIPS.
143 * config/linux/mips/futex.h: New file.
145 2008-07-16 Jakub Jelinek <jakub@redhat.com>
147 * team.c (gomp_team_end): Free team immediately if it has
150 2008-07-08 David Edelsohn <edelsohn@gnu.org>
152 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
153 * testsuite/libgomp.fortran/fortran.exp: Same.
154 * testsuite/libgomp.c/c.exp: Same.
155 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
156 directory to library path first.
158 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
160 * env.c (parse_stacksize): Add cast to avoid warning.
161 (parse_spincount): Likewise.
163 2008-06-27 Jakub Jelinek <jakub@redhat.com>
165 * testsuite/libgomp.c/loop-10.c: New test.
166 * libgomp.c/loop-3.c (main): Add lastprivate clause.
167 * libgomp.c++/loop-6.C (main): Likewise.
170 * testsuite/libgomp.c/debug-1.c: New test.
172 2008-06-19 Jakub Jelinek <jakub@redhat.com>
174 * testsuite/libgomp.c/nqueens-1.c: New test.
177 * testsuite/libgomp.c++/task-7.C: New function.
179 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
181 * configure: Regenerate.
183 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
185 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
186 mutex when HAVE_SYNC_BUILTINS isn't defined.
188 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
190 * libgomp.texi (omp_test_lock): Fix typo.
192 2008-06-12 Tobias Burnus <burnus@net-b.de>
194 * omp_lib.f90.in: Add "implicit none".
196 2008-06-12 Jakub Jelinek <jakub@redhat.com>
199 * testsuite/libgomp.c/reduction-5.c: New test.
201 2008-06-11 Jakub Jelinek <jakub@redhat.com>
203 * libgomp.h (struct gomp_task): Add in_tied_task field.
204 * task.c (gomp_init_task): Initialize it.
205 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
206 unconditionally. Don't call gomp_team_barrier_wake if
207 current task is implicit or if(0) from implicit and number of
208 running tasks is equal to nthreads - 1.
211 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
212 omp_get_team_size_8): Fix pastos.
215 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
216 * configure: Regenerated.
217 * config.h.in: Regenerated.
218 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
221 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
224 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
225 (GOMP_loop_ull_dynamic_start): Likewise.
226 (GOMP_loop_ull_guided_start): Likewise.
227 (GOMP_loop_ull_ordered_static_start): Likewise.
228 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
229 (GOMP_loop_ull_ordered_guided_start): Likewise.
231 2008-06-06 Jakub Jelinek <jakub@redhat.com>
232 Richard Henderson <rth@redhat.com>
233 Ulrich Drepper <drepper@redhat.com>
234 Jakob Blomer <jakob.blomer@ira.uka.de>
236 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
237 Substitute also OMP_*LOCK_25*.
238 * configure: Regenerated.
239 * config.h.in: Regenerated.
240 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
241 ptrlock.c and task.c.
242 * Makefile.in: Regenerated.
243 * testsuite/Makefile.in: Regenerated.
245 * loop_ull.c: New file.
246 * iter_ull.c: New file.
247 * libgomp.h: Include ptrlock.h.
248 (enum gomp_task_kind): New type.
249 (struct gomp_team): Add task_lock, task_queue, task_count,
250 task_running_count, single_count fields. Add
251 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
252 Remove work_share_lock, generation_mask,
253 oldest_live_gen, num_live_gen and init_work_shares fields, add
254 work work_share_list_alloc, work_share_list_free and work_share_chunk
255 fields. Change work_shares from pointer to pointers into an array.
256 Change ordered_release field into gomp_sem_t ** from flexible array
257 member. Add implicit_task and initial_work_shares fields.
258 Move close to the end of the struct.
259 (struct gomp_team_state): Add single_count, last_work_share,
260 active_level and level fields, remove work_share_generation.
261 (gomp_barrier_handle_tasks): New prototype.
262 (gomp_finish_task): New inline function.
263 (struct gomp_work_share): Move chunk_size, end, incr into
264 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
265 next_ll fields. Reshuffle fields. Add next_alloc,
266 next_ws, next_free and inline_ordered_team_ids fields, change
267 ordered_team_ids into pointer from flexible array member.
268 Add mode field. Put lock and next into a different cache line
269 from most of the write-once fields.
270 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
271 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
272 gomp_iter_ull_guided_next): New prototypes.
273 (gomp_new_icv): New prototype.
274 (struct gomp_thread): Add thread_pool and task fields.
275 (struct gomp_thread_pool): New type.
276 (gomp_new_team): New prototype.
277 (gomp_team_start): Change type of last argument.
278 (gomp_new_work_share): Removed.
279 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
280 (gomp_work_share_init_done): New static inline.
281 (gomp_throttled_spin_count_var, gomp_available_cpus,
282 gomp_managed_threads): New extern decls.
283 (gomp_init_task): New prototype.
284 (gomp_spin_count_var): New extern var decl.
285 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
286 or no alias support, or if not PIC.
287 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
288 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
289 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
290 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
291 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
292 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
293 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
294 gomp_test_nest_lock_25): New prototypes.
295 (omp_lock_symver, strong_alias): Define.
296 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
298 (gomp_end_task): New.
299 (struct gomp_task_icv, gomp_global_icv): New.
300 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
301 (struct gomp_task): New.
302 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
303 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
305 (gomp_schedule_type): Reorder enum to match
307 * team.c (struct gomp_thread_start_data): Add thread_pool and task
309 (gomp_thread_start): Add gomp_team_barrier_wait call.
310 For non-nested case remove clearing of docked thread thr fields.
311 Use pool fields instead of global gomp_* variables. Use
312 gomp_barrier_wait_last when needed. Initialize ts.active_level.
313 Create tasks for each member thread.
314 (free_team): Only destroy team barrier, task_lock here and free it.
315 (gomp_free_thread): Free last_team if non-NULL.
316 (gomp_team_end): Call gomp_team_barrier_wait instead of
317 gomp_barrier_wait. For nested case call one extra
318 gomp_barrier_wait. Move here some destruction from free_team.
319 Call free_team on pool->last_team if any, rather than freeing
320 current team. Destroy work_share_list_free_lock ifndef
322 (gomp_new_icv): New function.
323 (gomp_threads, gomp_threads_size, gomp_threads_used,
324 gomp_threads_dock): Removed.
325 (gomp_thread_destructor): New variable.
326 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
328 (gomp_team_start): Create new pool if current thread doesn't have
329 one. Use pool fields instead of global gomp_* variables.
330 Initialize thread_pool field for new threads. Clear single_count.
331 Change last argument from ws to team, don't create
332 new team, set ts.work_share to &team->work_shares[0] and clear
333 ts.last_work_share. Don't clear ts.work_share_generation.
334 If number of threads changed, adjust atomically gomp_managed_threads.
335 Use gomp_init_task instead of gomp_new_task,
336 set thr->task to the corresponding implicit_task array entry.
337 Create tasks for each member thread. Initialize ts.level.
338 (initialize_team): Call pthread_key_create on
339 gomp_thread_destructor.
340 (team_destructor): New function.
342 (gomp_new_team): New function.
343 (free_team): Free gomp_work_share blocks chained through next_alloc,
344 instead of freeing work_shares and destroying work_share_lock.
345 (gomp_team_end): Call gomp_fini_work_share. If number of threads
346 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
347 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
348 of gomp_barrier_wait.
349 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
350 instead of gomp_barrier_wait. Call gomp_work_share_init_done
351 if gomp_work_share_start returned true. Don't unlock ws->lock.
352 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
353 of gomp_barrier_wait.
354 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
355 gomp_work_share_init_done if gomp_work_share_start returned true.
356 Don't unlock ws->lock.
357 * work.c: Include stddef.h.
358 (free_work_share): Use work_share_list_free_lock instead
359 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
360 Call gomp_fini_work_share and then either free ws if orphaned, or
361 put it into work_share_list_free list of the current team.
362 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
364 (gomp_work_share_start, gomp_work_share_end,
365 gomp_work_share_end_nowait): Rewritten.
366 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
367 (openmp_version): Set to 200805.
368 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
369 omp_sched_guided, omp_sched_auto): New parameters.
370 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
371 omp_set_max_active_levels, omp_get_max_active_levels,
372 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
373 omp_get_active_level): New interfaces.
374 * omp_lib.h.in (openmp_version): Set to 200805.
375 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
376 omp_sched_guided, omp_sched_auto): New parameters.
377 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
378 omp_set_max_active_levels, omp_get_max_active_levels,
379 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
380 omp_get_active_level): New externals.
381 * loop.c: Include limits.h.
382 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
384 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
385 Likewise. Use gomp_icv.
386 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
388 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
389 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
390 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
391 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
392 don't unlock ws->lock, otherwise lock it.
393 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
394 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
395 (gomp_parallel_loop_start): Call gomp_new_team instead of
396 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
397 Adjust gomp_team_start caller. Pass 0 as second argument to
398 gomp_resolve_num_threads.
399 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
400 If adding ws->chunk_size nthreads + 1 times after end won't
401 overflow, set ws->mode to 1.
402 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
403 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
404 GOMP_loop_ull_ordered_static_start,
405 GOMP_loop_ull_ordered_dynamic_start,
406 GOMP_loop_ull_ordered_guided_start,
407 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
408 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
409 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
410 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
411 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
413 * libgomp.map: Export lock routines also @@OMP_2.0.
414 (GOMP_loop_ordered_dynamic_first,
415 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
416 GOMP_loop_ordered_static_first): Remove.
417 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
418 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
419 GOMP_loop_ull_ordered_dynamic_next,
420 GOMP_loop_ull_ordered_dynamic_start,
421 GOMP_loop_ull_ordered_guided_next,
422 GOMP_loop_ull_ordered_guided_start,
423 GOMP_loop_ull_ordered_runtime_next,
424 GOMP_loop_ull_ordered_runtime_start,
425 GOMP_loop_ull_ordered_static_next,
426 GOMP_loop_ull_ordered_static_start,
427 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
428 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
429 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
430 (omp_set_schedule, omp_get_schedule,
431 omp_get_thread_limit, omp_set_max_active_levels,
432 omp_get_max_active_levels, omp_get_level,
433 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
434 omp_set_schedule_, omp_set_schedule_8_,
435 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
436 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
437 omp_get_max_active_levels_, omp_get_level_,
438 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
439 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
440 New exports @@OMP_3.0.
441 * omp.h.in (omp_sched_t): New type.
442 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
443 omp_set_max_active_levels, omp_get_max_active_levels,
444 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
445 omp_get_active_level): New prototypes.
446 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
447 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
448 gomp_thread_limit_var, gomp_remaining_threads_count,
449 gomp_remaining_threads_lock): New variables.
450 (parse_spincount): New function.
451 (initialize_env): Call gomp_init_num_threads unconditionally.
452 Initialize gomp_available_cpus. Call parse_spincount,
453 initialize gomp_{,throttled_}spin_count_var
454 depending on presence and value of OMP_WAIT_POLICY and
455 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
456 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
457 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
458 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
459 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
460 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
461 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
462 (gomp_global_icv): New.
463 (parse_schedule): Use it. Parse "auto".
464 (omp_set_num_threads): Use gomp_icv.
465 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
467 (omp_get_max_threads): Move from parallel.c.
468 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
469 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
471 (parse_stacksize, parse_wait_policy): New functions.
472 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
473 both wrappers for compatibility and new locks.
474 (omp_set_schedule, omp_get_schedule,
475 omp_get_thread_limit, omp_set_max_active_levels,
476 omp_get_max_active_levels, omp_get_level,
477 omp_get_ancestor_thread_num, omp_get_team_size,
478 omp_get_active_level): New ialias_redirect.
479 (omp_set_schedule_, omp_set_schedule_8_,
480 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
481 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
482 omp_get_max_active_levels_, omp_get_level_,
483 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
484 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
486 * parallel.c: Include limits.h.
487 (gomp_resolve_num_threads): Add count argument. Rewritten.
488 (GOMP_parallel_start): Call gomp_new_team and pass that as last
489 argument to gomp_team_start. Pass 0 as second argument to
490 gomp_resolve_num_threads.
491 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
492 if gomp_thread_limit_var != ULONG_MAX.
493 (omp_in_parallel): Implement using ts.active_level.
494 (omp_get_max_threads): Move to env.c.
495 (omp_get_level, omp_get_ancestor_thread_num,
496 omp_get_team_size, omp_get_active_level): New functions,
498 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
499 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
500 gomp_iter_dynamic_next instead of the _locked variant and don't take
501 lock around it, otherwise acquire it before calling
502 gomp_iter_dynamic_next_locked.
503 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
504 gomp_iter_dynamic_next instead of the _locked variant and don't take
506 (GOMP_parallel_sections_start): Call gomp_new_team instead of
507 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
508 Adjust gomp_team_start caller. Pass count as second argument to
509 gomp_resolve_num_threads, don't adjust num_threads after the call.
511 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
512 ws->chunk_size by incr.
513 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
515 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
517 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
518 (omp_check_defines): Check even the compat defines.
519 * config/linux/ptrlock.c: New file.
520 * config/linux/ptrlock.h: New file.
521 * config/linux/wait.h: New file.
522 * config/posix/ptrlock.c: New file.
523 * config/posix/ptrlock.h: New file.
524 * config/linux/bar.h (gomp_team_barrier_wait,
525 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
526 (gomp_team_barrier_set_task_pending,
527 gomp_team_barrier_clear_task_pending,
528 gomp_team_barrier_set_waiting_for_tasks,
529 gomp_team_barrier_waiting_for_tasks,
530 gomp_team_barrier_done): New inlines.
531 (gomp_barrier_t): Rewritten.
532 (gomp_barrier_state_t): New typedef.
533 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
534 gomp_barrier_wait_start): Rewritten.
535 (gomp_barrier_wait_end): Change second argument to
536 gomp_barrier_state_t.
537 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
539 * config/linux/bar.c: Include wait.h instead of libgomp.h and
541 (gomp_barrier_wait_end): Rewritten.
542 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
543 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
544 * config/posix/bar.h (gomp_barrier_t): Add generation field.
545 (gomp_barrier_state_t): New typedef.
546 (gomp_team_barrier_wait,
547 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
548 (gomp_barrier_wait_start): Or all but low 2 bits from generation
549 into the return value. Return gomp_barrier_state_t.
550 (gomp_team_barrier_set_task_pending,
551 gomp_team_barrier_clear_task_pending,
552 gomp_team_barrier_set_waiting_for_tasks,
553 gomp_team_barrier_waiting_for_tasks,
554 gomp_team_barrier_done): New inlines.
555 (gomp_barrier_wait_end): Change second argument to
556 gomp_barrier_state_t.
557 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
559 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
560 (gomp_barrier_wait_end): Change second argument to
561 gomp_barrier_state_t.
562 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
563 gomp_team_barrier_wake): New functions.
564 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
566 (gomp_futex_wake, gomp_futex_wait): New variables.
567 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
568 * config/linux/lock.c: Rewrite to make locks task owned,
569 for backwards compatibility provide the old entrypoints
570 if symbol versioning. Include wait.h instead of libgomp.h and
572 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
573 * config/posix95/lock.c: Rewrite to make locks task owned,
574 for backwards compatibility provide the old entrypoints
575 if symbol versioning.
576 * config/posix/lock.c: Rewrite to make locks task owned,
577 for backwards compatibility provide the old entrypoints
578 if symbol versioning.
579 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
580 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
581 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
582 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
583 (sys_futex0): Return error code.
584 (futex_wake, futex_wait): If ENOSYS was returned, clear
585 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
586 (cpu_relax, atomic_write_barrier): New static inlines.
587 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
588 (futex_wake, futex_wait): If ENOSYS was returned, clear
589 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
590 (cpu_relax, atomic_write_barrier): New static inlines.
591 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
592 (sys_futex0): Return error code.
593 (futex_wake, futex_wait): If ENOSYS was returned, clear
594 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
595 (cpu_relax, atomic_write_barrier): New static inlines.
596 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
597 (sys_futex0): Return error code.
598 (futex_wake, futex_wait): If ENOSYS was returned, clear
599 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
600 (cpu_relax, atomic_write_barrier): New static inlines.
601 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
602 (sys_futex0): Return error code.
603 (futex_wake, futex_wait): If ENOSYS was returned, clear
604 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
605 (cpu_relax, atomic_write_barrier): New static inlines.
606 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
607 (sys_futex0): Return error code.
608 (futex_wake, futex_wait): If ENOSYS was returned, clear
609 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
610 (cpu_relax, atomic_write_barrier): New static inlines.
611 * config/linux/sem.c: Include wait.h instead of libgomp.h and
613 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
614 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
615 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
617 (omp_nest_lock_t): Change owner into void *, add lock field.
618 * config/posix95/omp-lock.h: Include semaphore.h.
619 (omp_lock_25_t, omp_nest_lock_25_t): New types.
620 (omp_lock_t): Use sem_t instead of mutex if semaphores
622 (omp_nest_lock_t): Likewise. Change owner to void *.
623 * config/posix/omp-lock.h: Include semaphore.h.
624 (omp_lock_25_t, omp_nest_lock_25_t): New types.
625 (omp_lock_t): Use sem_t instead of mutex if semaphores
627 (omp_nest_lock_t): Likewise. Add owner field.
629 2008-06-06 Jakub Jelinek <jakub@redhat.com>
631 * testsuite/libgomp.c/collapse-1.c: New test.
632 * testsuite/libgomp.c/collapse-2.c: New test.
633 * testsuite/libgomp.c/collapse-3.c: New test.
634 * testsuite/libgomp.c/icv-1.c: New test.
635 * testsuite/libgomp.c/icv-2.c: New test.
636 * testsuite/libgomp.c/lib-2.c: New test.
637 * testsuite/libgomp.c/lock-1.c: New test.
638 * testsuite/libgomp.c/lock-2.c: New test.
639 * testsuite/libgomp.c/lock-3.c: New test.
640 * testsuite/libgomp.c/loop-4.c: New test.
641 * testsuite/libgomp.c/loop-5.c: New test.
642 * testsuite/libgomp.c/loop-6.c: New test.
643 * testsuite/libgomp.c/loop-7.c: New test.
644 * testsuite/libgomp.c/loop-8.c: New test.
645 * testsuite/libgomp.c/loop-9.c: New test.
646 * testsuite/libgomp.c/nested-3.c: New test.
647 * testsuite/libgomp.c/nestedfn-6.c: New test.
648 * testsuite/libgomp.c/sort-1.c: New test.
649 * testsuite/libgomp.c/task-1.c: New test.
650 * testsuite/libgomp.c/task-2.c: New test.
651 * testsuite/libgomp.c/task-3.c: New test.
652 * testsuite/libgomp.c/task-4.c: New test.
653 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
654 to C++ testsuite default compiler options.
655 * testsuite/libgomp.c++/collapse-1.C: New test.
656 * testsuite/libgomp.c++/collapse-2.C: New test.
657 * testsuite/libgomp.c++/ctor-10.C: New test.
658 * testsuite/libgomp.c++/for-1.C: New test.
659 * testsuite/libgomp.c++/for-2.C: New test.
660 * testsuite/libgomp.c++/for-3.C: New test.
661 * testsuite/libgomp.c++/for-4.C: New test.
662 * testsuite/libgomp.c++/for-5.C: New test.
663 * testsuite/libgomp.c++/loop-8.C: New test.
664 * testsuite/libgomp.c++/loop-9.C: New test.
665 * testsuite/libgomp.c++/loop-10.C: New test.
666 * testsuite/libgomp.c++/task-1.C: New test.
667 * testsuite/libgomp.c++/task-2.C: New test.
668 * testsuite/libgomp.c++/task-3.C: New test.
669 * testsuite/libgomp.c++/task-4.C: New test.
670 * testsuite/libgomp.c++/task-5.C: New test.
671 * testsuite/libgomp.c++/task-6.C: New test.
672 * testsuite/libgomp.fortran/allocatable1.f90: New test.
673 * testsuite/libgomp.fortran/allocatable2.f90: New test.
674 * testsuite/libgomp.fortran/allocatable3.f90: New test.
675 * testsuite/libgomp.fortran/allocatable4.f90: New test.
676 * testsuite/libgomp.fortran/collapse1.f90: New test.
677 * testsuite/libgomp.fortran/collapse2.f90: New test.
678 * testsuite/libgomp.fortran/collapse3.f90: New test.
679 * testsuite/libgomp.fortran/collapse4.f90: New test.
680 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
681 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
682 * testsuite/libgomp.fortran/lib4.f90: New test.
683 * testsuite/libgomp.fortran/lock-1.f90: New test.
684 * testsuite/libgomp.fortran/lock-2.f90: New test.
685 * testsuite/libgomp.fortran/nested1.f90: New test.
686 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
687 * testsuite/libgomp.fortran/strassen.f90: New test.
688 * testsuite/libgomp.fortran/tabs1.f90: New test.
689 * testsuite/libgomp.fortran/tabs2.f: New test.
690 * testsuite/libgomp.fortran/task1.f90: New test.
691 * testsuite/libgomp.fortran/task2.f90: New test.
692 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
693 * testsuite/libgomp.fortran/vla5.f90: Likewise.
694 * testsuite/libgomp.c/pr26943-2.c: Likewise.
695 * testsuite/libgomp.c/pr26943-3.c: Likewise.
696 * testsuite/libgomp.c/pr26943-4.c: Likewise.
698 2008-05-23 Jakub Jelinek <jakub@redhat.com>
701 * testsuite/libgomp.c++/ctor-11.C: New test.
702 * testsuite/libgomp.c++/ctor-12.C: New test.
704 2008-05-15 Janis Johnson <janis187@us.ibm.com>
706 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
708 2008-05-07 Jakub Jelinek <jakub@redhat.com>
711 * testsuite/libgomp.c/atomic-5.c: New test.
712 * testsuite/libgomp.c/atomic-6.c: New test.
713 * testsuite/libgomp.c/autopar-1.c: New test.
715 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
717 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
718 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
719 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
720 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
721 * configure: Regenerate.
722 * Makefile.in, testsuite/Makefile.in: Likewise.
724 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
727 * aclocal.m4: Regenerate.
728 * configure: Regenerate.
730 2008-03-18 Jakub Jelinek <jakub@redhat.com>
733 * testsuite/libgomp.c/atomic-4.c: New test.
736 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
737 (gomp_iter_guided_next): Likewise.
738 * testsuite/libgomp.c/pr35625.c: New test.
740 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
742 * aclocal.m4: Regenerate.
743 * configure: Likewise.
744 * Makefile.in: Likewise.
745 * testsuite/Makefile.in: Likewise.
747 2008-03-13 Jakub Jelinek <jakub@redhat.com>
750 * testsuite/libgomp.c++/pr35185.C: New test.
752 2008-03-12 Jakub Jelinek <jakub@redhat.com>
755 * testsuite/libgomp.c/pr35549.c: New test.
757 2008-03-06 Jakub Jelinek <jakub@redhat.com>
759 * testsuite/libgomp.c/atomic-3.c: New test.
761 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
764 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
767 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
770 * configure.ac: Add ACX_HEADER_STRING.
771 * env.c: Include strings.h.
772 * aclocal.m4: Regenerate.
773 * config.h.in: Regenerate.
774 * configure: Regenerate.
775 * Makefile.in: Regenerate.
776 * testsuite/Makefile.in: Regenerate.
778 2008-02-15 Jakub Jelinek <jakub@redhat.com>
781 * testsuite/libgomp.c/pr35196.c: New test.
784 * testsuite/libgomp.fortran/pr35130.f90: New test.
785 * testsuite/libgomp.c/pr35130.c: New test.
787 2008-01-25 Jakub Jelinek <jakub@redhat.com>
790 * testsuite/libgomp.c/pr33880.c: New test.
791 * testsuite/libgomp.fortran/pr33880.f90: New test.
793 2008-01-24 David Edelsohn <edelsohn@gnu.org>
795 * configure: Regenerate.
797 2008-01-08 Jakub Jelinek <jakub@redhat.com>
799 * configure.ac: Move futex checking into ../config/futex.m4.
800 * configure: Rebuilt.
801 * aclocal.m4: Rebuilt.
802 * Makefile.in: Rebuilt.
804 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
805 2007-10-15 ../config/tls.m4 change.
807 2007-12-19 Jakub Jelinek <jakub@redhat.com>
810 * testsuite/libgomp.c/pr34513.c: New test.
811 * testsuite/libgomp.c++/pr34513.C: New test.
813 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
816 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
818 2007-12-04 Jakub Jelinek <jakub@redhat.com>
820 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
822 2007-12-03 Jakub Jelinek <jakub@redhat.com>
824 * testsuite/libgomp.c/private-1.c: New test.
826 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
827 Paolo Bonzini <bonzini@gnu.org>
829 * Makefile.am: Use space as vpath separator. Use 'vpath %'
830 instead of 'VPATH ='.
831 * Makefile.in: Regenerate.
833 2007-11-23 Matthias Klose <doko@ubuntu.com>
835 * configure.ac: Adjust makeinfo version check.
836 * configure: Regenerate.
838 2007-11-10 Jakub Jelinek <jakub@redhat.com>
841 * testsuite/libgomp.fortran/pr34020.f90: New test.
843 2007-11-06 Jakub Jelinek <jakub@redhat.com>
846 * testsuite/libgomp.c++/atomic-1.C: New test.
848 2007-10-25 Jakub Jelinek <jakub@redhat.com>
851 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
852 Make x and y integers rather than (implicit) reals. Add private (j)
853 clause to the last omp parallel.
855 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
857 * configure: Regenerate following changes to ../config/tls.m4.
859 2007-09-28 Jakub Jelinek <jakub@redhat.com>
861 * testsuite/libgomp.fortran/stack.f90: New test.
863 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
865 * config/mingw32/proc.c: New file.
867 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
869 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
870 (main): Use __get_cpuid to get i386 target fetaures.
871 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
872 (main): Use __get_cpuid to get x86_64 target fetaures.
874 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
877 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
878 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
880 2007-07-12 Jakub Jelinek <jakub@redhat.com>
883 * testsuite/libgomp.fortran/pr32550.f90: New test.
884 * testsuite/libgomp.fortran/crayptr2.f90: New test.
886 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
888 * aclocal.m4: Regenerated.
890 2007-07-05 Tobias Burnus <burnus@net-b.de>
893 * testsuite/libgomp.fortran/pr32359.f90: New.
895 2007-07-02 Jakub Jelinek <jakub@redhat.com>
898 * sections.c (GOMP_parallel_sections_start): Only decrease
899 number of threads to COUNT if dyn_var is true.
900 * testsuite/libgomp.c/pr32468.c: New test.
902 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
905 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
907 2007-06-21 Jakub Jelinek <jakub@redhat.com>
910 * testsuite/libgomp.c/pr32362-1.c: New test.
911 * testsuite/libgomp.c/pr32362-2.c: New test.
912 * testsuite/libgomp.c/pr32362-3.c: New test.
914 2007-06-07 Jakub Jelinek <jakub@redhat.com>
916 * team.c (gomp_team_start): Fix setting up thread_attr
919 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
921 * configure: Regenerate.
923 2007-05-23 Steve Ellcey <sje@cup.hp.com>
925 * Makefile.in: Regenerate.
926 * configure: Regenerate.
927 * aclocal.m4: Regenerate.
928 * testsuite/Makefile.in: Regenerate.
930 2007-05-04 Jakub Jelinek <jakub@redhat.com>
932 * config/linux/proc.c: New file.
935 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
937 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
939 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
941 2007-04-16 Matthias Klose <doko@debian.org>
943 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
944 flags if not building with -m64.
945 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
946 flag for i?86-*-* targets, if current target matches -m64.
948 2007-04-14 Steve Ellcey <sje@cup.hp.com>
950 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
951 * Makefile.in: Regenerate.
953 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
956 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
958 * testsuite/libgomp.fortran/fortran.exp: Likewise.
960 2007-04-04 Jakub Jelinek <jakub@redhat.com>
962 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
964 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
965 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
966 (parse_affinity): New function.
967 (initialize_env): Call it and gomp_init_affinity.
968 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
969 create new pthread_attr_t and call gomp_init_thread_affinity
970 on it for each thread before passing the attribute to pthread_create.
971 * config/linux/affinity.c: New file.
972 * config/posix/affinity.c: New file.
973 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
974 * configure: Rebuilt.
975 * config.h.in: Rebuilt.
976 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
977 * Makefile.in: Rebuilt.
979 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
981 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
983 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
986 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
988 * testsuite/config/default.exp: New file.
989 * testsuite/lib/libgomp.exp: New file.
990 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
991 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
992 load_lib *, load_gcc_lib *): Move to libgomp.exp.
993 (libgomp_load): Remove.
994 * testsuite/lib/libgomp.exp (libgomp_init): Compute
995 always_ld_library_path, not ld_library_path. Set additional_flags
996 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
997 (target_compile): Do not call libgomp_init. Append lang_library_path
998 and lang_link_flags to options.
999 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1000 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1002 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1003 always_ld_library_path. Set LD_LIBRARY_PATH here.
1004 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1005 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1006 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1008 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1009 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1010 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1011 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1012 * testsuite/libgomp.c/atomic-10.c: Ditto.
1014 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1016 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1017 dg-final cleanup-modules line.
1018 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1019 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1020 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1021 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1022 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1023 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1024 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1026 2007-03-18 Andreas Schwab <schwab@suse.de>
1028 * acinclude.m4: Adjust regular expression for ld version
1030 * configure: Regenerate.
1032 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1034 * Makefile.am: Add install-pdf target as copied from
1035 automake v1.10 rules.
1036 * Makefile.in: Regenerate
1038 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1041 * configure: Regenerate.
1044 * testsuite/libgomp.c++/pr30703.C: New test.
1046 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1049 2006-07-05 Eric Christopher <echristo@apple.com>
1050 * configure.ac: Depend addition of -pthread on host OS.
1051 * configure: Regenerate.
1053 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1055 * libgomp.texi: Fix spacing after abbreviations.
1057 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1060 * configure.ac: Add check for makeinfo
1061 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1062 if an appropiate version of makeinfo is found.
1063 * aclocal.m4: Regenerated.
1064 * configure: Regenerated.
1065 * Makefile.in: Regenerated.
1066 * testsuite/Makefile.in: Regenerated.
1068 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1071 * libgomp.texi: More about implementation-dependent settings.
1073 2007-01-26 Tobias Burnus <burnus@net-b.de>
1075 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1077 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1080 * testsuite/libgomp.c/pr30494.c: New test.
1082 2007-01-15 Tom Tromey <tromey@redhat.com>
1084 * configure: Rebuilt.
1085 * configure.ac: Fixed comment.
1087 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1089 * libgomp.texi: Document implementation specific default values of
1090 environment variables.
1092 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1095 * libgomp.texi: New file.
1096 * configure.ac: Add --enable-generated-files-in-srcdir option.
1097 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1099 * Makefile.in: Regenerated.
1100 * config.h.in: Regenerated.
1101 * testsuite/Makefile.in: Regenerated.
1104 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1107 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1109 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1111 * configure: Regenerate.
1113 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1116 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1117 start if there shouldn't be any loop iterations.
1118 (gomp_loop_ordered_static_start): Remove start == end test.
1119 * testsuite/libgomp.c/pr29947-1.c: New test.
1120 * testsuite/libgomp.c/pr29947-2.c: New test.
1122 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1124 * configure.tgt: Force initial-exec TLS model on Linux only.
1126 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1128 * configure: Regenerated.
1130 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1132 * env.c (parse_schedule): Reject out of range values.
1133 (parse_unsigned_long): Reject out of range, negative or zero values.
1135 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1138 * testsuite/libgomp.fortran/pr29629.f90: New test.
1140 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1143 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1144 * config/posix95: New directory.
1145 * config/posix95/omp-lock.h: New file.
1146 * config/posix95/lock.c: Likewise.
1148 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1150 * aclocal.m4: Regenerate.
1151 * configure: Regenerate.
1153 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1155 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1158 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1160 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1162 * configure: Regenerate.
1163 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1165 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1169 * testsuite/libgomp.c/nestedfn-4.c: New test.
1170 * testsuite/libgomp.c/nestedfn-5.c: New test.
1171 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1174 * testsuite/libgomp.fortran/condinc1.f: New test.
1175 * testsuite/libgomp.fortran/condinc2.f: New test.
1176 * testsuite/libgomp.fortran/condinc3.f90: New test.
1177 * testsuite/libgomp.fortran/condinc4.f90: New test.
1178 * testsuite/libgomp.fortran/condinc1.inc: New file.
1180 2006-09-18 Tom Tromey <tromey@redhat.com>
1182 * configure: Rebuilt.
1184 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1187 PR preprocessor/14634
1188 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1190 * configure: Regenerate.
1192 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1194 * testsuite/libgomp.fortran/reduction3.f90: Change
1195 -2147483648 to -huge(i)-1 to avoid overflow.
1196 * testsuite/libgomp.fortran/reduction4.f90: Change
1197 Z'ffffffff' to not(0) to avoid overflow.
1199 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1202 * Makefile.am (libsubincludedir): New.
1203 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1204 * Makefile.in: Regenerate.
1206 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1209 * env.c: Include ctype.h.
1210 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1211 leading and/or trailing whitespace and compare strings case
1214 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1217 * testsuite/libgomp.fortran/pr28390.f: New test.
1219 2006-07-05 Eric Christopher <echristo@apple.com>
1221 * configure.ac: Depend addition of -pthread on host OS.
1222 * configure: Regenerate.
1224 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1226 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1227 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1230 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1234 * configure.ac: If neither --enable-linux-futex nor
1235 --disable-linux-futex is passed, determine the default by checking
1236 for compiling and/or running against NPTL. With --enable-linux-futex,
1237 check if SYS_gettid and SYS_futex are defined.
1238 * configure: Rebuilt.
1240 2006-06-14 Richard Henderson <rth@redhat.com>
1243 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1244 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1246 2006-06-09 Richard Henderson <rth@redhat.com>
1248 * env.c (gomp_nthreads_var): Change to unsigned long.
1249 (gomp_run_sched_chunk): Likewise.
1250 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1251 (initialize_env): Initialize gomp_thread_attr.
1252 * libgomp.h (gomp_nthreads_var): Update decl.
1253 (gomp_run_sched_chunk): Likewise.
1254 (gomp_thread_attr): Declare.
1255 * team.c (gomp_thread_attr): Export.
1256 (initialize_team): Don't initialize it.
1258 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1261 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1262 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1264 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1266 * config/mingw32/time.c: New file.
1267 * configure.tgt: Use it.
1269 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1271 * Makefile.am: Add install-html target. Add install-html to .PHONY
1272 * Makefile.in: Regenerate.
1274 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1277 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1278 * testsuite/libgomp.c/critical-1.c: Likewise.
1279 * testsuite/libgomp.c/loop-1.c: Likewise.
1280 * testsuite/libgomp.c/loop-2.c: Likewise.
1281 * testsuite/libgomp.c/single-1.c: Likewise.
1282 * testsuite/libgomp.c/ordered-1.c: Likewise.
1283 * testsuite/libgomp.c/ordered-2.c: Likewise.
1285 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1288 * libgomp.fortran/pr27416-1.f90: New test.
1290 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1293 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1294 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1296 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1299 * testsuite/libgomp.c/pr26943-1.c: New test.
1300 * testsuite/libgomp.c/pr26943-2.c: New test.
1301 * testsuite/libgomp.c/pr26943-3.c: New test.
1302 * testsuite/libgomp.c/pr26943-4.c: New test.
1303 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1304 * testsuite/libgomp.c++/pr26943.C: New test.
1306 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1309 * testsuite/libgomp.c++/pr27337.C: New test.
1311 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1314 * testsuite/libgomp.c/pr26171.c: New test.
1316 2006-04-25 Richard Henderson <rth@redhat.com>
1319 * configure.ac: Use GCC_CHECK_TLS.
1320 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1321 * Makefile.in, aclocal.m4, configure: Regenerate.
1323 2006-04-10 Matthias Klose <doko@debian.org>
1325 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1326 directory names containing underscores.
1328 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1331 * testsuite/libgomp.c++/pr26691.C: New test.
1333 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1335 * testsuite/libgomp.fortran/retval2.f90: New test.
1337 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1339 * testsuite/libgomp.c++: New directory.
1341 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1343 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1344 * config/posix/sem.c: Implement the above.
1346 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1348 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1349 define HAVE_BROKEN_POSIX_SEMAPHORES.
1350 * configure: Rebuilt.
1351 * config.h.in: Rebuilt.
1353 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1356 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1357 for the other pthread check.
1358 * configure: Regenerate.
1359 * config.h.in: Regenerate.
1361 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1365 * Makefile.am (fincludedir): New variable.
1366 (nodist_include_HEADERS): Remove Fortran files.
1367 (nodist_finclude_HEADERS): New variable.
1368 * Makefile.in: Regenerated.
1370 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1372 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1373 Remove tests for returning assumed character length arrays.
1375 2006-02-12 Roger Sayle <roger@eyesopen.com>
1376 John David Anglin <dave@hiauly1.hia.nrc.ca>
1379 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1381 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1383 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1385 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1387 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1388 part of LD_LIBRARY_PATH manually.
1390 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1393 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1396 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1399 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1400 * configure.ac (PERL): Don't set.
1401 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1402 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1403 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1404 * omp.h.in: Wrap the new configure substitutions with @ characters.
1405 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1406 * aclocal.m4, configure, Makefile.in: Regenerate.
1407 * mkomp_h.pl: Delete.
1409 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1412 * configure.ac: Use GCC_HEADER_STDINT.
1413 * libgomp.h: Include gstdint.h.
1414 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1415 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1417 2006-01-24 Richard Henderson <rth@redhat.com>
1420 * configure.ac: Add AM_MAINTAINER_MODE.
1421 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1423 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1425 * Makefile.in: Regenerate.
1426 * testsuite/Makefile.in: Regenerate.
1427 * aclocal.m4: Regenerate.
1429 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1431 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1433 * configure.ac: Add check for loadavg.h.
1434 (link_gomp): Adjust comment.
1435 * configure: Regenerate.
1436 * config.h.in: Regenerate.
1438 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1441 * configure.ac: Remove check for alloca.h.
1442 * configure: Regenerate.
1443 * config.h.in: Regenerate.
1444 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1445 * team.c: Remove use of alloca.h.
1446 Call gomp_alloca instead of alloca.
1448 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1451 * team.c: Add include of alloca.h.
1452 * configure.ac: Add check for alloca.h.
1453 * configure: Regenerate.
1454 * config.h.in: Regenerate.
1456 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1459 * testsuite/libgomp.fortran/pr25219.f90: New test.
1461 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1463 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1464 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1465 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1466 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1467 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1468 testsuite/libgomp.fortran/threadprivate1.f90,
1469 testsuite/libgomp.fortran/threadprivate2.f90,
1470 testsuite/libgomp.fortran/threadprivate3.f90,
1471 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1472 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1473 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1474 effective-target to TLS runtime.
1476 * testsuite/libgomp.fortran/pr25162.f: Require
1477 effective-target TLS runtime.
1479 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1481 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1482 * testsuite/libgomp.c/nestedfn-3.c: New test.
1484 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1487 * testsuite/libgomp.fortran/pr25162.f: New test.
1489 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1491 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1492 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1494 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1496 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1497 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1498 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1499 single.c, team.c, work.c, config/linux/alpha/futex.h,
1500 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1501 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1502 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1503 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1504 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1505 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1506 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1509 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1511 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1512 to nodist_noinst_HEADERS.
1513 * Makefile.in: Rebuilt.
1515 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1516 add integer count field.
1517 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1518 omp_nest_lock_t type change.
1519 (omp_init_nest_lock): Likewise. Initialize count to 0.
1520 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1522 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1524 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1525 Increment count if successful and return the new nesting level.
1526 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1527 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1528 * testsuite/libgomp.c/lib-1.c: New test.
1529 * testsuite/libgomp.fortran/lib1.f90: New test.
1530 * testsuite/libgomp.fortran/lib2.f: New test.
1531 * testsuite/libgomp.fortran/lib3.f: New test.
1533 2005-11-17 Richard Henderson <rth@redhat.com>
1536 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1537 * configure.ac (link_gomp): New. Substitute it.
1538 (AC_CONFIG_FILES): Add libgomp.spec.
1539 * libgomp.spec.in: New file.
1540 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1541 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1543 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1545 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1546 reduction(-:var) behaving the same as reduction(+:var).
1547 * testsuite/libgomp.c/reduction-4.c: New test.
1549 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1551 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1552 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1553 testsuite/libgomp.c/copyin-3.c,
1554 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1555 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1556 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1557 testsuite/libgomp.c++/pr24455.C,
1558 testsuite/libgomp.fortran/threadprivate1.f90,
1559 testsuite/libgomp.fortran/threadprivate2.f90,
1560 testsuite/libgomp.fortran/threadprivate3.f90,
1561 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1562 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1563 testsuite/libgomp.fortran/omp_parse3.f90: Require
1564 effective-target TLS.
1566 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1570 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1573 * team.c (initialize_team): Pass NULL rather than free as
1574 pthread_key_create destructor. Initialize thread specific data
1575 pointer in initial thread to a static local variable rather than
1578 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1580 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1581 its location to ld_library_path.
1583 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1585 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1587 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1589 * testsuite/libgomp.c: Rename from libgomp.dg.
1591 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1593 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1594 threadprivate variable 'i'.
1596 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1598 * config/linux/s390/futex.h: New file.
1599 * configure.tgt: Use it.
1601 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1602 before the parallel.
1604 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1607 * testsuite/libgomp.c++/master-1.C: New test.
1609 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1611 * testsuite/libgomp.dg/copyin-3.c: New test.
1613 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1615 * testsuite/libgomp.fortran/retval1.f90: New test.
1616 * testsuite/libgomp.fortran/vla7.f90: New test.
1618 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1620 * testsuite/libgomp.fortran/vla2.f90: New test.
1621 * testsuite/libgomp.fortran/vla3.f90: New test.
1622 * testsuite/libgomp.fortran/vla4.f90: New test.
1623 * testsuite/libgomp.fortran/vla5.f90: New test.
1624 * testsuite/libgomp.fortran/vla6.f90: New test.
1626 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1628 * config/linux/sparc/futex.h: New file.
1629 * configure.tgt: Use it.
1630 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1632 * critical.c: Include stdlib.h.
1633 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1634 ignoring return value.
1635 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1636 LIBGOMP_CHECK_SYNC_BUILTINS check.
1637 * configure: Rebuilt.
1639 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1641 * testsuite/libgomp.fortran/vla1.f90: New test.
1643 2005-10-31 Richard Henderson <rth@redhat.com>
1645 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1646 setting 's' in different threads.
1648 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1650 * libgomp.h (attribute_hidden, ialias): Define.
1651 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1652 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1653 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1654 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1655 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1656 omp_test_lock, omp_test_nest_lock): Likewise.
1657 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1658 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1659 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1660 omp_test_lock, omp_test_nest_lock): Likewise.
1661 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1662 omp_get_dynamic, omp_get_nested): Likewise.
1663 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1664 omp_get_thread_num, omp_in_parallel): Likewise.
1665 * fortran.c (ialias_redirect): Define.
1666 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1667 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1668 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1669 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1670 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1671 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1672 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1673 omp_get_wtime): Add ialias_redirect.
1675 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1677 * fortran.c: Include stdlib.h.
1679 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1681 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1682 * Makefile.in: Regenerated.
1684 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1686 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1687 * libgomp_f.h.in (omp_check_defines): New function.
1688 * env.c: Include libgomp_f.h.
1689 (initialize_env): Call omp_check_defines.
1691 * testsuite/libgomp.dg/copyin-2.c: New test.
1692 * testsuite/libgomp.c++/copyin-2.C: New test.
1693 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1695 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1696 * testsuite/libgomp.fortran/sharing2.f90: New test.
1698 * testsuite/libgomp.dg/copyin-1.c: New test.
1699 * testsuite/libgomp.c++/copyin-1.C: New test.
1701 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1703 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1705 * testsuite/libgomp.fortran/workshare1.f90: New test.
1707 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1709 * libgomp.fortran/sharing1.f90: New test.
1711 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1714 * testsuite/libgomp.c++/loop-7.C: New test.
1716 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1718 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1719 * testsuite/libgomp.fortran/reduction6.f90: New test.
1720 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1722 2005-10-23 Richard Henderson <rth@redhat.com>
1724 * testsuite/libgomp.c++/ctor-1.C: New.
1725 * testsuite/libgomp.c++/ctor-2.C: New.
1726 * testsuite/libgomp.c++/ctor-3.C: New.
1727 * testsuite/libgomp.c++/ctor-4.C: New.
1728 * testsuite/libgomp.c++/ctor-5.C: New.
1729 * testsuite/libgomp.c++/ctor-6.C: New.
1730 * testsuite/libgomp.c++/ctor-7.C: New.
1731 * testsuite/libgomp.c++/ctor-8.C: New.
1732 * testsuite/libgomp.c++/ctor-9.C: New.
1734 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1737 * testsuite/libgomp.c++/pr24455-1.C: New test.
1738 * testsuite/libgomp.c++/pr24455.C: New test.
1739 * testsuite/libgomp.dg/pr24455-1.c: New test.
1740 * testsuite/libgomp.dg/pr24455.c: New test.
1742 2005-10-20 Richard Henderson <rth@redhat.com>
1744 * testsuite/libgomp.c++/loop-6.C: New.
1745 * testsuite/libgomp.dg/loop-3.c: New.
1747 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1749 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1751 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1754 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1756 * testsuite/libgomp.fortran/jacobi.f: New test.
1758 2005-10-19 Richard Henderson <rth@redhat.com>
1760 * configure.tgt (i?86-linux): Default to with_arch instead of
1761 CFLAGS. Add -mtune to match target_cpu.
1762 (x86_64-linux): Tune to i686.
1764 * fortran.c (omp_test_nest_lock_): Fix typo.
1766 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1768 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1769 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1770 * testsuite/libgomp.dg/ordered-3.c: New test.
1772 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1773 Remove volatile keyword.
1775 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1776 in COMMON block to avoid warnings on 64-bit targets.
1778 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1780 * testsuite/libgomp.dg/shared-3.c: New test.
1782 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1784 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1785 * testsuite/libgomp.fortran/reduction5.f90: New test.
1787 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1789 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1791 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1792 flush loop now that __sync_synchronize has proper memory barrier.
1793 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1794 Add -ffixed-form to dg-options.
1796 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1798 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1799 from subdirectories.
1800 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1801 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1802 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1803 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1804 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1805 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1806 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1807 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1808 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1809 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1810 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1811 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1812 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1813 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1814 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1815 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1816 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1817 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1818 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1819 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1820 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1821 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1822 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1823 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1824 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1826 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1828 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1829 lang_library_path exists. Use find instead of glob to gather tests.
1830 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1832 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1834 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1835 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1836 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1837 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1838 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1839 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1840 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1841 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1842 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1843 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1844 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1845 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1846 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1848 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1850 * testsuite/libgomp.dg/vla-1.c: New test.
1852 * testsuite/libgomp.fortran/reference2.f90: New test.
1854 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1855 declaration of omp_get_thread_num.
1856 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1859 * testsuite/libgomp.fortran/reduction1.f90: New test.
1860 * testsuite/libgomp.fortran/reduction2.f90: New test.
1861 * testsuite/libgomp.fortran/reduction3.f90: New test.
1862 * testsuite/libgomp.fortran/reduction4.f90: New test.
1864 2005-10-13 Richard Henderson <rth@redhat.com>
1866 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1867 * Makefile.in: Regenerate.
1868 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1869 * libgomp.h: Include bar.h.
1870 (struct gomp_barrier): Remove.
1871 (struct gomp_team): Add barrier. Replace master_barrier with
1872 master_release. Replace threads with ordered_release.
1873 (struct gomp_thread): Replace barrier with release.
1874 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1875 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1876 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1877 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1878 (GOMP_single_copy_end): Likewise.
1879 * team.c (gomp_threads_dock): New.
1880 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1881 (gomp_thread_start): Use gomp_barrier_wait.
1882 (new_team, free_team): Update for gomp_team changes.
1883 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1884 (gomp_team_end): Use gomp_barrier_wait.
1885 (initialize_team): Update for gomp_thread changes.
1886 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1887 (gomp_work_share_end_nowait): Use atomic ops when available.
1888 * config/linux/bar.c, config/linux/bar.h: New files.
1889 * config/posix/bar.c, config/posix/bar.h: New files.
1891 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1893 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1894 * testsuite/libgomp.dg/single-2.c: New test.
1896 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1897 lang_link_flags): Unset, so that they aren't inherited from previously
1900 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1902 2005-10-12 Richard Henderson <rth@redhat.com>
1904 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1905 (libgomp_init): Use lang_test_file, lang_library_path, and
1906 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1908 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1909 (lang_test_file, lang_link_flags): New.
1910 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1912 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1913 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1914 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1915 testsuite/libgomp.c++/parallel-1.C,
1916 testsuite/libgomp.c++/reduction-1.C,
1917 testsuite/libgomp.c++/reduction-2.C,
1918 testsuite/libgomp.c++/reduction-3.C,
1919 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1920 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1921 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1922 New files, largely cribbed from the C testsuite.
1924 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1926 * testsuite/libgomp.fortran/character1.f90: New test.
1927 * testsuite/libgomp.fortran/character2.f90: New test.
1929 * testsuite/libgomp.dg/nested-1.c: New test.
1930 * testsuite/libgomp.dg/nested-2.c: New test.
1931 * testsuite/libgomp.fortran/do1.f90: New test.
1932 * testsuite/libgomp.fortran/do2.f90: New test.
1934 * testsuite/libgomp.fortran/reference1.f90: New test.
1936 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1938 * testsuite/libgomp.dg/reduction-1.c: New test.
1939 * testsuite/libgomp.dg/reduction-2.c: New test.
1940 * testsuite/libgomp.dg/reduction-3.c: New test.
1942 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1944 * testsuite/libgomp.dg/atomic-1.c: New test.
1945 * testsuite/libgomp.dg/atomic-2.c: New test.
1947 2005-10-09 Richard Henderson <rth@redhat.com>
1949 * critical.c (atomic_lock): New.
1950 (initialize_critical): Initialize it.
1951 (GOMP_atomic_start, GOMP_atomic_end): New.
1952 * libgomp.map: Export them.
1953 * libgomp_g.h: Declare them.
1955 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1957 2005-10-02 Richard Henderson <rth@redhat.com>
1959 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1960 to XCFLAGS instead of CFLAGS.
1962 2005-09-30 Richard Henderson <rth@redhat.com>
1964 * configure.ac: Determine whether -pthread or -lpthread is needed.
1965 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1966 * Makefine.in, configure: Rebuild.
1968 2005-09-28 Richard Henderson <rth@redhat.com>
1970 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1971 * testsuite/libgomp.dg/omp-single-3.c: New test.
1973 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1975 * testsuite/libgomp.dg/omp-single-2.c: New test.
1976 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1978 2005-09-27 Richard Henderson <rth@redhat.com>
1980 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1981 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1983 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1985 * testsuite/libgomp.dg/omp-loop03.c: New test.
1987 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1989 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1991 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1993 * testsuite/libgomp.dg/omp-single-1.c: New test.
1994 * testsuite/libgomp.dg/shared-1.c: Return 0.
1995 Add prototype for abort.
1996 * testsuite/libgomp.dg/shared-2.c: Likewise.
1998 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2000 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2003 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2005 * testsuite/libgomp.dg/shared-1.c: New test.
2006 * testsuite/libgomp.dg/shared-2.c: New test.
2008 2005-09-24 Richard Henderson <rth@redhat.com>
2010 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2012 2005-09-24 Richard Henderson <rth@redhat.com>
2014 * iter.c (gomp_iter_static_next): Round up when computing number
2015 of iterations. Don't bother distributing a remainder equally.
2017 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2018 Don't call srand. Zero b before testing.
2021 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2023 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2024 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2026 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2028 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2029 without !$omp end do, followed immediately by subroutine end.
2031 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2033 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2035 2005-09-22 Richard Henderson <rth@redhat.com>
2037 * critical.c (GOMP_critical_name_start): Change argument to void**.
2038 Reuse the pointer space if the mutex fits.
2039 (GOMP_critical_name_end): Likewise.
2040 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2041 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2042 (GOMP_critical_name_end): Likewise.
2043 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2044 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2046 2005-09-20 Richard Henderson <rth@redhat.com>
2048 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2049 (create_lock_lock): New.
2050 (initialize_critical): Initialize it.
2051 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2052 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2054 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2056 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2058 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2060 * testsuite/libgomp.dg/omp-loop01.c: New test.
2061 * testsuite/libgomp.dg/omp-loop02.c: New test.
2063 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2065 * configure.ac (AC_PROG_FC): Add.
2066 (USE_FORTRAN): New automake conditional.
2067 * configure: Rebuilt.
2068 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2069 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2070 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2071 Add rules to build them.
2072 * Makefile.in: Rebuilt.
2073 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2075 * libgomp.map: Add Fortran wrappers.
2076 * libgomp_f.h.in: New file.
2077 * omp_lib.h.in: New file.
2078 * omp_lib.f90.in: New file.
2079 * fortran.c: New file.
2080 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2081 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2082 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2083 libgfortran has been built.
2084 * testsuite/libgomp.fortran/fortran.exp: New file.
2085 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2086 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2087 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2088 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2089 * testsuite/libgomp.fortran/omp_hello.f: New test.
2090 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2091 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2092 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2093 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2094 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2095 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2096 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2097 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2099 2005-08-30 Richard Henderson <rth@redhat.com>
2101 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2102 function for when aliases are not usable.
2103 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2104 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2105 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2106 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2107 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2108 GOMP_loop_ordered_guided_next): Likewise.
2109 * ordered.c (GOMP_ordered_start): Likewise.
2111 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2113 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2114 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2115 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2116 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2117 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2118 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2119 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2120 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2121 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2123 2005-07-07 Eric Christopher <echristo@redhat.com>
2124 Diego Novillo <dnovillo@redhat.com>
2126 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2127 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2129 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2130 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2131 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2132 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2133 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2134 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2135 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2137 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2139 * TOPLEVEL.patch: Remove.
2141 2005-05-16 Richard Henderson <rth@redhat.com>
2143 * configure.ac: Test for clock_gettime.
2144 * config.h.in, configure: Rebuild.
2145 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2146 (omp_get_wtime): Use clock_gettime if available.
2147 (omp_get_wtick): Use clock_getres if available.
2149 2005-05-11 Richard Henderson <rth@redhat.com>
2151 * config/linux/ia64/futex.h: New file.
2152 * configure.tgt: Use it.
2154 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2156 2005-05-07 Richard Henderson <rth@redhat.com>
2158 * config/linux/powerpc/futex.h: New file.
2159 * configure.tgt: Use it.
2161 * config/linux/i486/futex.h: Merge ...
2162 * config/linux/x86_64/futex.h: ... into ...
2163 * config/linux/x86/futex.h: ... here.
2164 * configure.tgt: Update to match.
2166 2005-05-06 Richard Henderson <rth@redhat.com>
2168 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2169 * config/linux/i486/futex.h: Likewise.
2170 * config/linux/x86_64/futex.h: Likewise.
2172 * config/linux/lock.c: New file.
2173 * config/linux/omp-lock.h: New file.
2175 * critical.c, env.h: Don't include omp.h
2176 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2177 * config/posix/time.c: Likewise.
2178 * config/posix/omp-lock.h: New file.
2179 * libgomp.h: Include omp-lock.h and omp.h.
2180 * Makefile.am (nodist_include_HEADERS): New.
2182 * configure.ac (PERL): New.
2183 * mkomp_h.pl: New file.
2184 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2186 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2188 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2189 build directory. Re-add -march=i486 hack.
2191 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2192 (libgomp_link_flags): Remove.
2193 (libgomp_initialized): Remove.
2194 (libgomp_init): Don't protect from reinitialization. Copy code
2195 from libstdc++ for getting the multilib set correctly.
2197 2005-05-05 Richard Henderson <rth@redhat.com>
2199 * config/linux/alpha/futex.h: New file.
2200 * configure.tgt (alpha*-*-linux*): Use it.
2202 * config/posix/mutex.c: New file.
2203 * config/posix/sem.c: Use libgomp.h.
2205 * configure.tgt (x86_64-linux): Also test CC for -m32.
2206 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2208 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2211 * Makefile.am (SUBDIRS): New.
2212 (libgomp_la_LDFLAGS): Add -lpthread.
2213 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2214 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2216 * libgomp_g.h: New file.
2217 * libgomp.h: Split out all public declarations to libgomp_g.h.
2218 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2219 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2220 * config/linux/sem.h: Likewise.
2221 * config/posix/sem.h: Likewise.
2223 * Makefile.am (AM_LDFLAGS): New.
2224 (libgomp_version_script): Split out from ...
2225 (libgomp_la_LDFLAGS): ... here.
2226 (libgomp_version_info): New.
2227 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2228 (LIBGOMP_ENABLE): New.
2229 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2230 (LIBGOMP_ENABLE_SYMVERS): New.
2231 * configure.ac (AC_INIT): Version 1.0.
2232 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2233 (enable-linux-futex): Likewise. Rename from enable-futex.
2234 (libtool_VERSION): New.
2235 (LIBGOMP_ENABLE_SYMVERS): Use it.
2236 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2237 * Makefile.in, aclocal.m4, configure: Rebuild.
2239 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2240 (gomp_mutex_unlock_slow): Fix typo.
2241 * config/linux/sem.c: Similarly.
2242 (gomp_sem_post_slow): Fix typo.
2243 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2244 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2245 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2247 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2248 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2249 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2250 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2251 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2252 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2253 LDFLAGS. Pull enable_futex check to top-level.
2254 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2255 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2257 First attempt at real configury.
2258 * Makefile, config.h: Remove file.
2259 * Makefile.am, Makefile.in: New file.
2260 * acinclude.m4 aclocal.m4: New file.
2261 * configure.ac, configure.tgt, configure: New file.
2263 * config/posix/lock.c: Rename from sys-lock.c.
2264 * config/posix/mutex.h: Rename from sys-mutex.h.
2265 * config/posix/sem.c: Rename from sys-sem.c.
2266 * config/posix/sem.h: Rename from sys-sem.h.
2267 * config/posix/proc.c: Rename from sys-proc.c.
2268 * config/posix/time.c: Rename from sys-proc.c.
2270 * config/linux/mutex.c: New file.
2271 * config/linux/mutex.h: New file.
2272 * config/linux/sem.c: New file.
2273 * config/linux/sem.h: New file.
2274 * config/linux/i486/futex.h: New file.
2275 * config/linux/x86_64/futex.h: New file.
2277 2005-05-04 Richard Henderson <rth@redhat.com>
2279 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2280 * libgomp.h: Declare them.
2281 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2282 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2284 2005-05-04 Richard Henderson <rth@redhat.com>
2286 * libgomp-1 code drop
2288 2005-05-04 Richard Henderson <rth@redhat.com>
2290 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2291 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2292 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2293 (gomp_iter_static_next): Update.
2294 (gomp_ordered_static_next): Update.
2295 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2296 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2297 totally empty range.
2298 (gomp_loop_ordered_static_next): Refine test for calling
2299 gomp_ordered_static_next.
2300 * testsuite/ordered-1.c: Add case for more threads than iterations.
2302 * iter.c (gomp_iter_runtime_next_locked): Remove.
2303 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2304 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2305 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2306 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2307 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2308 gomp_loop_ordered_guided_next): Downcase name, make static, add
2309 an external alias with the old name.
2310 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2311 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2312 switch and call one of the above static functions.
2313 * libgomp.h: Update.
2315 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2316 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2317 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2318 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2319 GOMP_loop_ordered_guided_start): Update to match.
2320 * sections.c (GOMP_sections_start): Likewise.
2321 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2323 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2324 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2325 Use bounds check instead of modulus.
2326 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2327 (gomp_ordered_last): Don't sync with ordered_owner here.
2328 (gomp_ordered_next): Likewise.
2329 (gomp_ordered_static_loop_next): Likewise.
2330 * loop.c, libgomp.h: Update to match.
2332 * libgomp.h (GOMP_barrier): Declare.
2334 * testsuite/barrier-1.c: New file.
2335 * testsuite/critical-1.c: New file.
2336 * testsuite/ordered-2.c: New file.
2337 * testsuite/ordered-1.c: New file.
2338 * testsuite/sections-1.c: New file.
2339 * testsuite/single-1.c: New file.
2340 * testsuite/Makefile (TESTS): Add them.
2342 2005-05-04 Richard Henderson <rth@redhat.com>
2344 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2345 * loop.c (GOMP_loop_static_start): If not the startup thread,
2346 acquire the mutex to wait for initialization complete.
2347 (GOMP_loop_ordered_static_start): Likewise.
2348 (GOMP_loop_ordered_runtime_start): Likewise.
2349 (GOMP_loop_ordered_static_first): Remove.
2350 (GOMP_loop_ordered_dynamic_first): Remove.
2351 (GOMP_loop_ordered_guided_first): Remove.
2352 (GOMP_loop_ordered_runtime_first): Remove.
2353 * ordered.c (gomp_ordered_loop_first): Post to own release when
2354 we're the first thread.
2355 (gomp_ordered_loop_last): Wait on release if not owner.
2356 (gomp_ordered_loop_next): Likewise.
2357 (gomp_ordered_static_loop_init): New.
2358 (gomp_ordered_static_loop_next): Use ordered_owner.
2359 (GOMP_ordered_start): Likewise.
2360 * work.c (gomp_new_work_share): Initialize ordered_owner.
2362 2005-05-03 Richard Henderson <rth@redhat.com>
2364 * Makefile (OPT): New.
2367 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2368 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2369 * libgomp.h, libgomp.map, NOTES: Update to match.
2371 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2372 Add initialized and thr members.
2373 (gomp_thread_start): Pause when initially spawned to wait for
2374 the whole team to be created.
2375 (gomp_team_start): Release team members at the end.
2377 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2378 (f_foo_1): Use GOMP_loop_end.
2379 (f_foo_2): Use GOMP_loop_end_nowait.
2381 * testsuite/loop-2.c: New file.
2382 * testsuite/Makefile (TESTS): Add it.
2384 2005-05-03 Richard Henderson <rth@redhat.com>
2386 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2387 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2388 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2391 * testsuite/Makefile: New file.
2392 * testsuite/loop-1.c: New file.
2394 2005-05-03 Richard Henderson <rth@redhat.com>
2396 Initial implementation and checkin.