1 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/pr39591-1.c: New test.
5 * testsuite/libgomp.c/pr39591-2.c: New test.
6 * testsuite/libgomp.c/pr39591-3.c: New test.
8 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
11 * testsuite/libgomp.c/atomic-6.c: Ditto.
13 2009-03-23 Jakub Jelinek <jakub@redhat.com>
16 * testsuite/libgomp.c/loop-12.c: New test.
17 * testsuite/libgomp.c/loop-11.c: New test.
18 * testsuite/libgomp.c++/loop-11.C: New test.
19 * testsuite/libgomp.c++/loop-12.C: New test.
20 * testsuite/libgomp.c++/for-8.C: New test.
22 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24 * configure: Regenerate.
26 2009-02-11 Jakub Jelinek <jakub@redhat.com>
29 * testsuite/libgomp.c/pr39154.c: New test.
31 2009-01-30 Ian Lance Taylor <iant@google.com>
33 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
34 libgomp_ld_is_gold. Get gold version number.
35 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
38 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
40 * testsuite/lib/libgomp.exp: Add -B option for targets that
41 use libgfortran.a%s in their specs.
43 2009-01-07 Jakub Jelinek <jakub@redhat.com>
46 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
47 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
48 HAVE_AS_SYMVER_DIRECTIVE is not defined.
49 * configure: Regenerated.
50 * config.h.in: Likewise.
52 2008-12-28 Jakub Jelinek <jakub@redhat.com>
55 * testsuite/libgomp.c/pr38650.c: New test.
56 * testsuite/libgomp.c++/pr38650.C: New test.
58 2008-12-27 Jakub Jelinek <jakub@redhat.com>
60 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
62 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
64 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
66 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68 * configure: Regenerate.
70 2008-12-08 Jakub Jelinek <jakub@redhat.com>
73 * testsuite/libgomp.c/pr36802-1.c: New test.
74 * testsuite/libgomp.c/pr36802-2.c: New test.
75 * testsuite/libgomp.c/pr36802-3.c: New test.
77 2008-12-01 Janis Johnson <janis187@us.ibm.com>
80 * config/linux/powerpc/mutex.h: New.
82 2008-12-01 Jakub Jelinek <jakub@redhat.com>
85 * testsuite/libgomp.c++/for-7.C: New test.
88 * testsuite/libgomp.c++/for-6.C: New test.
90 2008-11-26 Janis Johnson <janis187@us.ibm.com>
93 * testsuite/lib/libgomp.exp: Include new timeout library files.
94 (libgomp_target_compile): Set timeout value from new proc.
96 2008-11-13 Steve Ellcey <sje@cup.hp.com>
99 * config/linux/ia64/mutex.h: New.
101 2008-11-04 Tobias Burnus <burnus@net-b.de>
104 * libgomp.texi (Runtime library routines, environment variables):
105 Update for OpenMP version 3.0.
107 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
108 Steve Ellcey <sje@cup.hp.com>
110 * configure: Regenerate for new libtool.
111 * Makefile.in: Ditto.
112 * testsuite/Makefile.in: Ditto.
114 2008-09-19 Jakub Jelinek <jakub@redhat.com>
115 Andreas Tobler <a.tobler@schweiz.org>
117 * config/bsd/proc.c: New file.
118 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
119 * configure.ac: Check for header <sys/sysctl.h>
120 * configure: Regenerate.
121 * config.h.in: Likewise.
123 2008-09-05 Janis Johnson <janis187@us.ibm.com>
125 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
127 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
129 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
130 * Makefile.in: Regenerated.
131 * testsuite/Makefile.in: Regenerated.
133 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
135 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
136 depend on blddir if blddir exists.
137 (libgomp_target_compile): Likewise.
138 * testsuite/libgomp.c++/c++.exp: Likewise.
139 * testsuite/libgomp.fortran/fortran.exp: Likewise.
141 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
143 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
144 Do not list GPL as Invariant Section.
146 2008-07-28 Ilie Garbacea <ilie@mips.com>
147 Chao-ying Fu <fu@mips.com>
149 * configure.tgt: Enable futex for MIPS.
150 * config/linux/mips/futex.h: New file.
152 2008-07-16 Jakub Jelinek <jakub@redhat.com>
154 * team.c (gomp_team_end): Free team immediately if it has
157 2008-07-08 David Edelsohn <edelsohn@gnu.org>
159 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
160 * testsuite/libgomp.fortran/fortran.exp: Same.
161 * testsuite/libgomp.c/c.exp: Same.
162 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
163 directory to library path first.
165 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
167 * env.c (parse_stacksize): Add cast to avoid warning.
168 (parse_spincount): Likewise.
170 2008-06-27 Jakub Jelinek <jakub@redhat.com>
172 * testsuite/libgomp.c/loop-10.c: New test.
173 * libgomp.c/loop-3.c (main): Add lastprivate clause.
174 * libgomp.c++/loop-6.C (main): Likewise.
177 * testsuite/libgomp.c/debug-1.c: New test.
179 2008-06-19 Jakub Jelinek <jakub@redhat.com>
181 * testsuite/libgomp.c/nqueens-1.c: New test.
184 * testsuite/libgomp.c++/task-7.C: New function.
186 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
188 * configure: Regenerate.
190 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
192 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
193 mutex when HAVE_SYNC_BUILTINS isn't defined.
195 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
197 * libgomp.texi (omp_test_lock): Fix typo.
199 2008-06-12 Tobias Burnus <burnus@net-b.de>
201 * omp_lib.f90.in: Add "implicit none".
203 2008-06-12 Jakub Jelinek <jakub@redhat.com>
206 * testsuite/libgomp.c/reduction-5.c: New test.
208 2008-06-11 Jakub Jelinek <jakub@redhat.com>
210 * libgomp.h (struct gomp_task): Add in_tied_task field.
211 * task.c (gomp_init_task): Initialize it.
212 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
213 unconditionally. Don't call gomp_team_barrier_wake if
214 current task is implicit or if(0) from implicit and number of
215 running tasks is equal to nthreads - 1.
218 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
219 omp_get_team_size_8): Fix pastos.
222 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
223 * configure: Regenerated.
224 * config.h.in: Regenerated.
225 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
228 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
231 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
232 (GOMP_loop_ull_dynamic_start): Likewise.
233 (GOMP_loop_ull_guided_start): Likewise.
234 (GOMP_loop_ull_ordered_static_start): Likewise.
235 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
236 (GOMP_loop_ull_ordered_guided_start): Likewise.
238 2008-06-06 Jakub Jelinek <jakub@redhat.com>
239 Richard Henderson <rth@redhat.com>
240 Ulrich Drepper <drepper@redhat.com>
241 Jakob Blomer <jakob.blomer@ira.uka.de>
243 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
244 Substitute also OMP_*LOCK_25*.
245 * configure: Regenerated.
246 * config.h.in: Regenerated.
247 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
248 ptrlock.c and task.c.
249 * Makefile.in: Regenerated.
250 * testsuite/Makefile.in: Regenerated.
252 * loop_ull.c: New file.
253 * iter_ull.c: New file.
254 * libgomp.h: Include ptrlock.h.
255 (enum gomp_task_kind): New type.
256 (struct gomp_team): Add task_lock, task_queue, task_count,
257 task_running_count, single_count fields. Add
258 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
259 Remove work_share_lock, generation_mask,
260 oldest_live_gen, num_live_gen and init_work_shares fields, add
261 work work_share_list_alloc, work_share_list_free and work_share_chunk
262 fields. Change work_shares from pointer to pointers into an array.
263 Change ordered_release field into gomp_sem_t ** from flexible array
264 member. Add implicit_task and initial_work_shares fields.
265 Move close to the end of the struct.
266 (struct gomp_team_state): Add single_count, last_work_share,
267 active_level and level fields, remove work_share_generation.
268 (gomp_barrier_handle_tasks): New prototype.
269 (gomp_finish_task): New inline function.
270 (struct gomp_work_share): Move chunk_size, end, incr into
271 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
272 next_ll fields. Reshuffle fields. Add next_alloc,
273 next_ws, next_free and inline_ordered_team_ids fields, change
274 ordered_team_ids into pointer from flexible array member.
275 Add mode field. Put lock and next into a different cache line
276 from most of the write-once fields.
277 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
278 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
279 gomp_iter_ull_guided_next): New prototypes.
280 (gomp_new_icv): New prototype.
281 (struct gomp_thread): Add thread_pool and task fields.
282 (struct gomp_thread_pool): New type.
283 (gomp_new_team): New prototype.
284 (gomp_team_start): Change type of last argument.
285 (gomp_new_work_share): Removed.
286 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
287 (gomp_work_share_init_done): New static inline.
288 (gomp_throttled_spin_count_var, gomp_available_cpus,
289 gomp_managed_threads): New extern decls.
290 (gomp_init_task): New prototype.
291 (gomp_spin_count_var): New extern var decl.
292 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
293 or no alias support, or if not PIC.
294 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
295 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
296 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
297 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
298 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
299 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
300 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
301 gomp_test_nest_lock_25): New prototypes.
302 (omp_lock_symver, strong_alias): Define.
303 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
305 (gomp_end_task): New.
306 (struct gomp_task_icv, gomp_global_icv): New.
307 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
308 (struct gomp_task): New.
309 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
310 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
312 (gomp_schedule_type): Reorder enum to match
314 * team.c (struct gomp_thread_start_data): Add thread_pool and task
316 (gomp_thread_start): Add gomp_team_barrier_wait call.
317 For non-nested case remove clearing of docked thread thr fields.
318 Use pool fields instead of global gomp_* variables. Use
319 gomp_barrier_wait_last when needed. Initialize ts.active_level.
320 Create tasks for each member thread.
321 (free_team): Only destroy team barrier, task_lock here and free it.
322 (gomp_free_thread): Free last_team if non-NULL.
323 (gomp_team_end): Call gomp_team_barrier_wait instead of
324 gomp_barrier_wait. For nested case call one extra
325 gomp_barrier_wait. Move here some destruction from free_team.
326 Call free_team on pool->last_team if any, rather than freeing
327 current team. Destroy work_share_list_free_lock ifndef
329 (gomp_new_icv): New function.
330 (gomp_threads, gomp_threads_size, gomp_threads_used,
331 gomp_threads_dock): Removed.
332 (gomp_thread_destructor): New variable.
333 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
335 (gomp_team_start): Create new pool if current thread doesn't have
336 one. Use pool fields instead of global gomp_* variables.
337 Initialize thread_pool field for new threads. Clear single_count.
338 Change last argument from ws to team, don't create
339 new team, set ts.work_share to &team->work_shares[0] and clear
340 ts.last_work_share. Don't clear ts.work_share_generation.
341 If number of threads changed, adjust atomically gomp_managed_threads.
342 Use gomp_init_task instead of gomp_new_task,
343 set thr->task to the corresponding implicit_task array entry.
344 Create tasks for each member thread. Initialize ts.level.
345 (initialize_team): Call pthread_key_create on
346 gomp_thread_destructor.
347 (team_destructor): New function.
349 (gomp_new_team): New function.
350 (free_team): Free gomp_work_share blocks chained through next_alloc,
351 instead of freeing work_shares and destroying work_share_lock.
352 (gomp_team_end): Call gomp_fini_work_share. If number of threads
353 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
354 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
355 of gomp_barrier_wait.
356 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
357 instead of gomp_barrier_wait. Call gomp_work_share_init_done
358 if gomp_work_share_start returned true. Don't unlock ws->lock.
359 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
360 of gomp_barrier_wait.
361 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
362 gomp_work_share_init_done if gomp_work_share_start returned true.
363 Don't unlock ws->lock.
364 * work.c: Include stddef.h.
365 (free_work_share): Use work_share_list_free_lock instead
366 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
367 Call gomp_fini_work_share and then either free ws if orphaned, or
368 put it into work_share_list_free list of the current team.
369 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
371 (gomp_work_share_start, gomp_work_share_end,
372 gomp_work_share_end_nowait): Rewritten.
373 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
374 (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 interfaces.
381 * omp_lib.h.in (openmp_version): Set to 200805.
382 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
383 omp_sched_guided, omp_sched_auto): New parameters.
384 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
385 omp_set_max_active_levels, omp_get_max_active_levels,
386 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
387 omp_get_active_level): New externals.
388 * loop.c: Include limits.h.
389 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
391 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
392 Likewise. Use gomp_icv.
393 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
395 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
396 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
397 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
398 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
399 don't unlock ws->lock, otherwise lock it.
400 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
401 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
402 (gomp_parallel_loop_start): Call gomp_new_team instead of
403 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
404 Adjust gomp_team_start caller. Pass 0 as second argument to
405 gomp_resolve_num_threads.
406 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
407 If adding ws->chunk_size nthreads + 1 times after end won't
408 overflow, set ws->mode to 1.
409 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
410 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
411 GOMP_loop_ull_ordered_static_start,
412 GOMP_loop_ull_ordered_dynamic_start,
413 GOMP_loop_ull_ordered_guided_start,
414 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
415 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
416 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
417 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
418 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
420 * libgomp.map: Export lock routines also @@OMP_2.0.
421 (GOMP_loop_ordered_dynamic_first,
422 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
423 GOMP_loop_ordered_static_first): Remove.
424 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
425 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
426 GOMP_loop_ull_ordered_dynamic_next,
427 GOMP_loop_ull_ordered_dynamic_start,
428 GOMP_loop_ull_ordered_guided_next,
429 GOMP_loop_ull_ordered_guided_start,
430 GOMP_loop_ull_ordered_runtime_next,
431 GOMP_loop_ull_ordered_runtime_start,
432 GOMP_loop_ull_ordered_static_next,
433 GOMP_loop_ull_ordered_static_start,
434 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
435 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
436 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
437 (omp_set_schedule, omp_get_schedule,
438 omp_get_thread_limit, omp_set_max_active_levels,
439 omp_get_max_active_levels, omp_get_level,
440 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
441 omp_set_schedule_, omp_set_schedule_8_,
442 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
443 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
444 omp_get_max_active_levels_, omp_get_level_,
445 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
446 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
447 New exports @@OMP_3.0.
448 * omp.h.in (omp_sched_t): New type.
449 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
450 omp_set_max_active_levels, omp_get_max_active_levels,
451 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
452 omp_get_active_level): New prototypes.
453 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
454 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
455 gomp_thread_limit_var, gomp_remaining_threads_count,
456 gomp_remaining_threads_lock): New variables.
457 (parse_spincount): New function.
458 (initialize_env): Call gomp_init_num_threads unconditionally.
459 Initialize gomp_available_cpus. Call parse_spincount,
460 initialize gomp_{,throttled_}spin_count_var
461 depending on presence and value of OMP_WAIT_POLICY and
462 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
463 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
464 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
465 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
466 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
467 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
468 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
469 (gomp_global_icv): New.
470 (parse_schedule): Use it. Parse "auto".
471 (omp_set_num_threads): Use gomp_icv.
472 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
474 (omp_get_max_threads): Move from parallel.c.
475 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
476 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
478 (parse_stacksize, parse_wait_policy): New functions.
479 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
480 both wrappers for compatibility and new locks.
481 (omp_set_schedule, omp_get_schedule,
482 omp_get_thread_limit, omp_set_max_active_levels,
483 omp_get_max_active_levels, omp_get_level,
484 omp_get_ancestor_thread_num, omp_get_team_size,
485 omp_get_active_level): New ialias_redirect.
486 (omp_set_schedule_, omp_set_schedule_8_,
487 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
488 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
489 omp_get_max_active_levels_, omp_get_level_,
490 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
491 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
493 * parallel.c: Include limits.h.
494 (gomp_resolve_num_threads): Add count argument. Rewritten.
495 (GOMP_parallel_start): Call gomp_new_team and pass that as last
496 argument to gomp_team_start. Pass 0 as second argument to
497 gomp_resolve_num_threads.
498 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
499 if gomp_thread_limit_var != ULONG_MAX.
500 (omp_in_parallel): Implement using ts.active_level.
501 (omp_get_max_threads): Move to env.c.
502 (omp_get_level, omp_get_ancestor_thread_num,
503 omp_get_team_size, omp_get_active_level): New functions,
505 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
506 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
507 gomp_iter_dynamic_next instead of the _locked variant and don't take
508 lock around it, otherwise acquire it before calling
509 gomp_iter_dynamic_next_locked.
510 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
511 gomp_iter_dynamic_next instead of the _locked variant and don't take
513 (GOMP_parallel_sections_start): Call gomp_new_team instead of
514 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
515 Adjust gomp_team_start caller. Pass count as second argument to
516 gomp_resolve_num_threads, don't adjust num_threads after the call.
518 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
519 ws->chunk_size by incr.
520 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
522 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
524 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
525 (omp_check_defines): Check even the compat defines.
526 * config/linux/ptrlock.c: New file.
527 * config/linux/ptrlock.h: New file.
528 * config/linux/wait.h: New file.
529 * config/posix/ptrlock.c: New file.
530 * config/posix/ptrlock.h: New file.
531 * config/linux/bar.h (gomp_team_barrier_wait,
532 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
533 (gomp_team_barrier_set_task_pending,
534 gomp_team_barrier_clear_task_pending,
535 gomp_team_barrier_set_waiting_for_tasks,
536 gomp_team_barrier_waiting_for_tasks,
537 gomp_team_barrier_done): New inlines.
538 (gomp_barrier_t): Rewritten.
539 (gomp_barrier_state_t): New typedef.
540 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
541 gomp_barrier_wait_start): Rewritten.
542 (gomp_barrier_wait_end): Change second argument to
543 gomp_barrier_state_t.
544 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
546 * config/linux/bar.c: Include wait.h instead of libgomp.h and
548 (gomp_barrier_wait_end): Rewritten.
549 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
550 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
551 * config/posix/bar.h (gomp_barrier_t): Add generation field.
552 (gomp_barrier_state_t): New typedef.
553 (gomp_team_barrier_wait,
554 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
555 (gomp_barrier_wait_start): Or all but low 2 bits from generation
556 into the return value. Return gomp_barrier_state_t.
557 (gomp_team_barrier_set_task_pending,
558 gomp_team_barrier_clear_task_pending,
559 gomp_team_barrier_set_waiting_for_tasks,
560 gomp_team_barrier_waiting_for_tasks,
561 gomp_team_barrier_done): New inlines.
562 (gomp_barrier_wait_end): Change second argument to
563 gomp_barrier_state_t.
564 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
566 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
567 (gomp_barrier_wait_end): Change second argument to
568 gomp_barrier_state_t.
569 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
570 gomp_team_barrier_wake): New functions.
571 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
573 (gomp_futex_wake, gomp_futex_wait): New variables.
574 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
575 * config/linux/lock.c: Rewrite to make locks task owned,
576 for backwards compatibility provide the old entrypoints
577 if symbol versioning. Include wait.h instead of libgomp.h and
579 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
580 * config/posix95/lock.c: Rewrite to make locks task owned,
581 for backwards compatibility provide the old entrypoints
582 if symbol versioning.
583 * config/posix/lock.c: Rewrite to make locks task owned,
584 for backwards compatibility provide the old entrypoints
585 if symbol versioning.
586 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
587 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
588 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
589 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
590 (sys_futex0): Return error code.
591 (futex_wake, futex_wait): If ENOSYS was returned, clear
592 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
593 (cpu_relax, atomic_write_barrier): New static inlines.
594 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
595 (futex_wake, futex_wait): If ENOSYS was returned, clear
596 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
597 (cpu_relax, atomic_write_barrier): New static inlines.
598 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
599 (sys_futex0): Return error code.
600 (futex_wake, futex_wait): If ENOSYS was returned, clear
601 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
602 (cpu_relax, atomic_write_barrier): New static inlines.
603 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
604 (sys_futex0): Return error code.
605 (futex_wake, futex_wait): If ENOSYS was returned, clear
606 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
607 (cpu_relax, atomic_write_barrier): New static inlines.
608 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
609 (sys_futex0): Return error code.
610 (futex_wake, futex_wait): If ENOSYS was returned, clear
611 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
612 (cpu_relax, atomic_write_barrier): New static inlines.
613 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
614 (sys_futex0): Return error code.
615 (futex_wake, futex_wait): If ENOSYS was returned, clear
616 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
617 (cpu_relax, atomic_write_barrier): New static inlines.
618 * config/linux/sem.c: Include wait.h instead of libgomp.h and
620 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
621 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
622 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
624 (omp_nest_lock_t): Change owner into void *, add lock field.
625 * config/posix95/omp-lock.h: Include semaphore.h.
626 (omp_lock_25_t, omp_nest_lock_25_t): New types.
627 (omp_lock_t): Use sem_t instead of mutex if semaphores
629 (omp_nest_lock_t): Likewise. Change owner to void *.
630 * config/posix/omp-lock.h: Include semaphore.h.
631 (omp_lock_25_t, omp_nest_lock_25_t): New types.
632 (omp_lock_t): Use sem_t instead of mutex if semaphores
634 (omp_nest_lock_t): Likewise. Add owner field.
636 2008-06-06 Jakub Jelinek <jakub@redhat.com>
638 * testsuite/libgomp.c/collapse-1.c: New test.
639 * testsuite/libgomp.c/collapse-2.c: New test.
640 * testsuite/libgomp.c/collapse-3.c: New test.
641 * testsuite/libgomp.c/icv-1.c: New test.
642 * testsuite/libgomp.c/icv-2.c: New test.
643 * testsuite/libgomp.c/lib-2.c: New test.
644 * testsuite/libgomp.c/lock-1.c: New test.
645 * testsuite/libgomp.c/lock-2.c: New test.
646 * testsuite/libgomp.c/lock-3.c: New test.
647 * testsuite/libgomp.c/loop-4.c: New test.
648 * testsuite/libgomp.c/loop-5.c: New test.
649 * testsuite/libgomp.c/loop-6.c: New test.
650 * testsuite/libgomp.c/loop-7.c: New test.
651 * testsuite/libgomp.c/loop-8.c: New test.
652 * testsuite/libgomp.c/loop-9.c: New test.
653 * testsuite/libgomp.c/nested-3.c: New test.
654 * testsuite/libgomp.c/nestedfn-6.c: New test.
655 * testsuite/libgomp.c/sort-1.c: New test.
656 * testsuite/libgomp.c/task-1.c: New test.
657 * testsuite/libgomp.c/task-2.c: New test.
658 * testsuite/libgomp.c/task-3.c: New test.
659 * testsuite/libgomp.c/task-4.c: New test.
660 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
661 to C++ testsuite default compiler options.
662 * testsuite/libgomp.c++/collapse-1.C: New test.
663 * testsuite/libgomp.c++/collapse-2.C: New test.
664 * testsuite/libgomp.c++/ctor-10.C: New test.
665 * testsuite/libgomp.c++/for-1.C: New test.
666 * testsuite/libgomp.c++/for-2.C: New test.
667 * testsuite/libgomp.c++/for-3.C: New test.
668 * testsuite/libgomp.c++/for-4.C: New test.
669 * testsuite/libgomp.c++/for-5.C: New test.
670 * testsuite/libgomp.c++/loop-8.C: New test.
671 * testsuite/libgomp.c++/loop-9.C: New test.
672 * testsuite/libgomp.c++/loop-10.C: New test.
673 * testsuite/libgomp.c++/task-1.C: New test.
674 * testsuite/libgomp.c++/task-2.C: New test.
675 * testsuite/libgomp.c++/task-3.C: New test.
676 * testsuite/libgomp.c++/task-4.C: New test.
677 * testsuite/libgomp.c++/task-5.C: New test.
678 * testsuite/libgomp.c++/task-6.C: New test.
679 * testsuite/libgomp.fortran/allocatable1.f90: New test.
680 * testsuite/libgomp.fortran/allocatable2.f90: New test.
681 * testsuite/libgomp.fortran/allocatable3.f90: New test.
682 * testsuite/libgomp.fortran/allocatable4.f90: New test.
683 * testsuite/libgomp.fortran/collapse1.f90: New test.
684 * testsuite/libgomp.fortran/collapse2.f90: New test.
685 * testsuite/libgomp.fortran/collapse3.f90: New test.
686 * testsuite/libgomp.fortran/collapse4.f90: New test.
687 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
688 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
689 * testsuite/libgomp.fortran/lib4.f90: New test.
690 * testsuite/libgomp.fortran/lock-1.f90: New test.
691 * testsuite/libgomp.fortran/lock-2.f90: New test.
692 * testsuite/libgomp.fortran/nested1.f90: New test.
693 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
694 * testsuite/libgomp.fortran/strassen.f90: New test.
695 * testsuite/libgomp.fortran/tabs1.f90: New test.
696 * testsuite/libgomp.fortran/tabs2.f: New test.
697 * testsuite/libgomp.fortran/task1.f90: New test.
698 * testsuite/libgomp.fortran/task2.f90: New test.
699 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
700 * testsuite/libgomp.fortran/vla5.f90: Likewise.
701 * testsuite/libgomp.c/pr26943-2.c: Likewise.
702 * testsuite/libgomp.c/pr26943-3.c: Likewise.
703 * testsuite/libgomp.c/pr26943-4.c: Likewise.
705 2008-05-23 Jakub Jelinek <jakub@redhat.com>
708 * testsuite/libgomp.c++/ctor-11.C: New test.
709 * testsuite/libgomp.c++/ctor-12.C: New test.
711 2008-05-15 Janis Johnson <janis187@us.ibm.com>
713 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
715 2008-05-07 Jakub Jelinek <jakub@redhat.com>
718 * testsuite/libgomp.c/atomic-5.c: New test.
719 * testsuite/libgomp.c/atomic-6.c: New test.
720 * testsuite/libgomp.c/autopar-1.c: New test.
722 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
724 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
725 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
726 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
727 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
728 * configure: Regenerate.
729 * Makefile.in, testsuite/Makefile.in: Likewise.
731 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
734 * aclocal.m4: Regenerate.
735 * configure: Regenerate.
737 2008-03-18 Jakub Jelinek <jakub@redhat.com>
740 * testsuite/libgomp.c/atomic-4.c: New test.
743 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
744 (gomp_iter_guided_next): Likewise.
745 * testsuite/libgomp.c/pr35625.c: New test.
747 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
749 * aclocal.m4: Regenerate.
750 * configure: Likewise.
751 * Makefile.in: Likewise.
752 * testsuite/Makefile.in: Likewise.
754 2008-03-13 Jakub Jelinek <jakub@redhat.com>
757 * testsuite/libgomp.c++/pr35185.C: New test.
759 2008-03-12 Jakub Jelinek <jakub@redhat.com>
762 * testsuite/libgomp.c/pr35549.c: New test.
764 2008-03-06 Jakub Jelinek <jakub@redhat.com>
766 * testsuite/libgomp.c/atomic-3.c: New test.
768 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
771 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
774 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
777 * configure.ac: Add ACX_HEADER_STRING.
778 * env.c: Include strings.h.
779 * aclocal.m4: Regenerate.
780 * config.h.in: Regenerate.
781 * configure: Regenerate.
782 * Makefile.in: Regenerate.
783 * testsuite/Makefile.in: Regenerate.
785 2008-02-15 Jakub Jelinek <jakub@redhat.com>
788 * testsuite/libgomp.c/pr35196.c: New test.
791 * testsuite/libgomp.fortran/pr35130.f90: New test.
792 * testsuite/libgomp.c/pr35130.c: New test.
794 2008-01-25 Jakub Jelinek <jakub@redhat.com>
797 * testsuite/libgomp.c/pr33880.c: New test.
798 * testsuite/libgomp.fortran/pr33880.f90: New test.
800 2008-01-24 David Edelsohn <edelsohn@gnu.org>
802 * configure: Regenerate.
804 2008-01-08 Jakub Jelinek <jakub@redhat.com>
806 * configure.ac: Move futex checking into ../config/futex.m4.
807 * configure: Rebuilt.
808 * aclocal.m4: Rebuilt.
809 * Makefile.in: Rebuilt.
811 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
812 2007-10-15 ../config/tls.m4 change.
814 2007-12-19 Jakub Jelinek <jakub@redhat.com>
817 * testsuite/libgomp.c/pr34513.c: New test.
818 * testsuite/libgomp.c++/pr34513.C: New test.
820 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
823 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
825 2007-12-04 Jakub Jelinek <jakub@redhat.com>
827 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
829 2007-12-03 Jakub Jelinek <jakub@redhat.com>
831 * testsuite/libgomp.c/private-1.c: New test.
833 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
834 Paolo Bonzini <bonzini@gnu.org>
836 * Makefile.am: Use space as vpath separator. Use 'vpath %'
837 instead of 'VPATH ='.
838 * Makefile.in: Regenerate.
840 2007-11-23 Matthias Klose <doko@ubuntu.com>
842 * configure.ac: Adjust makeinfo version check.
843 * configure: Regenerate.
845 2007-11-10 Jakub Jelinek <jakub@redhat.com>
848 * testsuite/libgomp.fortran/pr34020.f90: New test.
850 2007-11-06 Jakub Jelinek <jakub@redhat.com>
853 * testsuite/libgomp.c++/atomic-1.C: New test.
855 2007-10-25 Jakub Jelinek <jakub@redhat.com>
858 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
859 Make x and y integers rather than (implicit) reals. Add private (j)
860 clause to the last omp parallel.
862 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
864 * configure: Regenerate following changes to ../config/tls.m4.
866 2007-09-28 Jakub Jelinek <jakub@redhat.com>
868 * testsuite/libgomp.fortran/stack.f90: New test.
870 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
872 * config/mingw32/proc.c: New file.
874 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
876 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
877 (main): Use __get_cpuid to get i386 target fetaures.
878 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
879 (main): Use __get_cpuid to get x86_64 target fetaures.
881 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
884 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
885 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
887 2007-07-12 Jakub Jelinek <jakub@redhat.com>
890 * testsuite/libgomp.fortran/pr32550.f90: New test.
891 * testsuite/libgomp.fortran/crayptr2.f90: New test.
893 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
895 * aclocal.m4: Regenerated.
897 2007-07-05 Tobias Burnus <burnus@net-b.de>
900 * testsuite/libgomp.fortran/pr32359.f90: New.
902 2007-07-02 Jakub Jelinek <jakub@redhat.com>
905 * sections.c (GOMP_parallel_sections_start): Only decrease
906 number of threads to COUNT if dyn_var is true.
907 * testsuite/libgomp.c/pr32468.c: New test.
909 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
912 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
914 2007-06-21 Jakub Jelinek <jakub@redhat.com>
917 * testsuite/libgomp.c/pr32362-1.c: New test.
918 * testsuite/libgomp.c/pr32362-2.c: New test.
919 * testsuite/libgomp.c/pr32362-3.c: New test.
921 2007-06-07 Jakub Jelinek <jakub@redhat.com>
923 * team.c (gomp_team_start): Fix setting up thread_attr
926 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
928 * configure: Regenerate.
930 2007-05-23 Steve Ellcey <sje@cup.hp.com>
932 * Makefile.in: Regenerate.
933 * configure: Regenerate.
934 * aclocal.m4: Regenerate.
935 * testsuite/Makefile.in: Regenerate.
937 2007-05-04 Jakub Jelinek <jakub@redhat.com>
939 * config/linux/proc.c: New file.
942 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
944 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
946 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
948 2007-04-16 Matthias Klose <doko@debian.org>
950 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
951 flags if not building with -m64.
952 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
953 flag for i?86-*-* targets, if current target matches -m64.
955 2007-04-14 Steve Ellcey <sje@cup.hp.com>
957 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
958 * Makefile.in: Regenerate.
960 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
963 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
965 * testsuite/libgomp.fortran/fortran.exp: Likewise.
967 2007-04-04 Jakub Jelinek <jakub@redhat.com>
969 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
971 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
972 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
973 (parse_affinity): New function.
974 (initialize_env): Call it and gomp_init_affinity.
975 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
976 create new pthread_attr_t and call gomp_init_thread_affinity
977 on it for each thread before passing the attribute to pthread_create.
978 * config/linux/affinity.c: New file.
979 * config/posix/affinity.c: New file.
980 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
981 * configure: Rebuilt.
982 * config.h.in: Rebuilt.
983 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
984 * Makefile.in: Rebuilt.
986 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
988 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
990 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
993 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
995 * testsuite/config/default.exp: New file.
996 * testsuite/lib/libgomp.exp: New file.
997 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
998 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
999 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1000 (libgomp_load): Remove.
1001 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1002 always_ld_library_path, not ld_library_path. Set additional_flags
1003 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1004 (target_compile): Do not call libgomp_init. Append lang_library_path
1005 and lang_link_flags to options.
1006 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1007 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1009 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1010 always_ld_library_path. Set LD_LIBRARY_PATH here.
1011 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1012 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1013 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1015 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1016 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1017 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1018 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1019 * testsuite/libgomp.c/atomic-10.c: Ditto.
1021 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1023 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1024 dg-final cleanup-modules line.
1025 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1026 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1027 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1028 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1029 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1030 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1031 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1033 2007-03-18 Andreas Schwab <schwab@suse.de>
1035 * acinclude.m4: Adjust regular expression for ld version
1037 * configure: Regenerate.
1039 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1041 * Makefile.am: Add install-pdf target as copied from
1042 automake v1.10 rules.
1043 * Makefile.in: Regenerate
1045 2007-02-07 Jakub Jelinek <jakub@redhat.com>
1048 * configure: Regenerate.
1051 * testsuite/libgomp.c++/pr30703.C: New test.
1053 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1056 2006-07-05 Eric Christopher <echristo@apple.com>
1057 * configure.ac: Depend addition of -pthread on host OS.
1058 * configure: Regenerate.
1060 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1062 * libgomp.texi: Fix spacing after abbreviations.
1064 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1067 * configure.ac: Add check for makeinfo
1068 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1069 if an appropiate version of makeinfo is found.
1070 * aclocal.m4: Regenerated.
1071 * configure: Regenerated.
1072 * Makefile.in: Regenerated.
1073 * testsuite/Makefile.in: Regenerated.
1075 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1078 * libgomp.texi: More about implementation-dependent settings.
1080 2007-01-26 Tobias Burnus <burnus@net-b.de>
1082 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1084 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1087 * testsuite/libgomp.c/pr30494.c: New test.
1089 2007-01-15 Tom Tromey <tromey@redhat.com>
1091 * configure: Rebuilt.
1092 * configure.ac: Fixed comment.
1094 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1096 * libgomp.texi: Document implementation specific default values of
1097 environment variables.
1099 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1102 * libgomp.texi: New file.
1103 * configure.ac: Add --enable-generated-files-in-srcdir option.
1104 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1106 * Makefile.in: Regenerated.
1107 * config.h.in: Regenerated.
1108 * testsuite/Makefile.in: Regenerated.
1111 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1114 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1116 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1118 * configure: Regenerate.
1120 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1123 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1124 start if there shouldn't be any loop iterations.
1125 (gomp_loop_ordered_static_start): Remove start == end test.
1126 * testsuite/libgomp.c/pr29947-1.c: New test.
1127 * testsuite/libgomp.c/pr29947-2.c: New test.
1129 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1131 * configure.tgt: Force initial-exec TLS model on Linux only.
1133 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1135 * configure: Regenerated.
1137 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1139 * env.c (parse_schedule): Reject out of range values.
1140 (parse_unsigned_long): Reject out of range, negative or zero values.
1142 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1145 * testsuite/libgomp.fortran/pr29629.f90: New test.
1147 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1150 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1151 * config/posix95: New directory.
1152 * config/posix95/omp-lock.h: New file.
1153 * config/posix95/lock.c: Likewise.
1155 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1157 * aclocal.m4: Regenerate.
1158 * configure: Regenerate.
1160 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1162 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1165 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1167 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1169 * configure: Regenerate.
1170 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1172 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1176 * testsuite/libgomp.c/nestedfn-4.c: New test.
1177 * testsuite/libgomp.c/nestedfn-5.c: New test.
1178 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1181 * testsuite/libgomp.fortran/condinc1.f: New test.
1182 * testsuite/libgomp.fortran/condinc2.f: New test.
1183 * testsuite/libgomp.fortran/condinc3.f90: New test.
1184 * testsuite/libgomp.fortran/condinc4.f90: New test.
1185 * testsuite/libgomp.fortran/condinc1.inc: New file.
1187 2006-09-18 Tom Tromey <tromey@redhat.com>
1189 * configure: Rebuilt.
1191 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1194 PR preprocessor/14634
1195 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1197 * configure: Regenerate.
1199 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1201 * testsuite/libgomp.fortran/reduction3.f90: Change
1202 -2147483648 to -huge(i)-1 to avoid overflow.
1203 * testsuite/libgomp.fortran/reduction4.f90: Change
1204 Z'ffffffff' to not(0) to avoid overflow.
1206 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1209 * Makefile.am (libsubincludedir): New.
1210 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1211 * Makefile.in: Regenerate.
1213 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1216 * env.c: Include ctype.h.
1217 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1218 leading and/or trailing whitespace and compare strings case
1221 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1224 * testsuite/libgomp.fortran/pr28390.f: New test.
1226 2006-07-05 Eric Christopher <echristo@apple.com>
1228 * configure.ac: Depend addition of -pthread on host OS.
1229 * configure: Regenerate.
1231 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1233 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1234 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1237 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1241 * configure.ac: If neither --enable-linux-futex nor
1242 --disable-linux-futex is passed, determine the default by checking
1243 for compiling and/or running against NPTL. With --enable-linux-futex,
1244 check if SYS_gettid and SYS_futex are defined.
1245 * configure: Rebuilt.
1247 2006-06-14 Richard Henderson <rth@redhat.com>
1250 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1251 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1253 2006-06-09 Richard Henderson <rth@redhat.com>
1255 * env.c (gomp_nthreads_var): Change to unsigned long.
1256 (gomp_run_sched_chunk): Likewise.
1257 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1258 (initialize_env): Initialize gomp_thread_attr.
1259 * libgomp.h (gomp_nthreads_var): Update decl.
1260 (gomp_run_sched_chunk): Likewise.
1261 (gomp_thread_attr): Declare.
1262 * team.c (gomp_thread_attr): Export.
1263 (initialize_team): Don't initialize it.
1265 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1268 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1269 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1271 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1273 * config/mingw32/time.c: New file.
1274 * configure.tgt: Use it.
1276 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1278 * Makefile.am: Add install-html target. Add install-html to .PHONY
1279 * Makefile.in: Regenerate.
1281 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1284 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1285 * testsuite/libgomp.c/critical-1.c: Likewise.
1286 * testsuite/libgomp.c/loop-1.c: Likewise.
1287 * testsuite/libgomp.c/loop-2.c: Likewise.
1288 * testsuite/libgomp.c/single-1.c: Likewise.
1289 * testsuite/libgomp.c/ordered-1.c: Likewise.
1290 * testsuite/libgomp.c/ordered-2.c: Likewise.
1292 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1295 * libgomp.fortran/pr27416-1.f90: New test.
1297 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1300 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1301 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1303 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1306 * testsuite/libgomp.c/pr26943-1.c: New test.
1307 * testsuite/libgomp.c/pr26943-2.c: New test.
1308 * testsuite/libgomp.c/pr26943-3.c: New test.
1309 * testsuite/libgomp.c/pr26943-4.c: New test.
1310 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1311 * testsuite/libgomp.c++/pr26943.C: New test.
1313 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1316 * testsuite/libgomp.c++/pr27337.C: New test.
1318 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1321 * testsuite/libgomp.c/pr26171.c: New test.
1323 2006-04-25 Richard Henderson <rth@redhat.com>
1326 * configure.ac: Use GCC_CHECK_TLS.
1327 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1328 * Makefile.in, aclocal.m4, configure: Regenerate.
1330 2006-04-10 Matthias Klose <doko@debian.org>
1332 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1333 directory names containing underscores.
1335 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1338 * testsuite/libgomp.c++/pr26691.C: New test.
1340 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1342 * testsuite/libgomp.fortran/retval2.f90: New test.
1344 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1346 * testsuite/libgomp.c++: New directory.
1348 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1350 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1351 * config/posix/sem.c: Implement the above.
1353 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1355 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1356 define HAVE_BROKEN_POSIX_SEMAPHORES.
1357 * configure: Rebuilt.
1358 * config.h.in: Rebuilt.
1360 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1363 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1364 for the other pthread check.
1365 * configure: Regenerate.
1366 * config.h.in: Regenerate.
1368 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1372 * Makefile.am (fincludedir): New variable.
1373 (nodist_include_HEADERS): Remove Fortran files.
1374 (nodist_finclude_HEADERS): New variable.
1375 * Makefile.in: Regenerated.
1377 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1379 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1380 Remove tests for returning assumed character length arrays.
1382 2006-02-12 Roger Sayle <roger@eyesopen.com>
1383 John David Anglin <dave@hiauly1.hia.nrc.ca>
1386 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1388 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1390 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1392 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1394 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1395 part of LD_LIBRARY_PATH manually.
1397 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1400 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1403 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1406 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1407 * configure.ac (PERL): Don't set.
1408 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1409 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1410 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1411 * omp.h.in: Wrap the new configure substitutions with @ characters.
1412 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1413 * aclocal.m4, configure, Makefile.in: Regenerate.
1414 * mkomp_h.pl: Delete.
1416 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1419 * configure.ac: Use GCC_HEADER_STDINT.
1420 * libgomp.h: Include gstdint.h.
1421 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1422 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1424 2006-01-24 Richard Henderson <rth@redhat.com>
1427 * configure.ac: Add AM_MAINTAINER_MODE.
1428 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1430 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1432 * Makefile.in: Regenerate.
1433 * testsuite/Makefile.in: Regenerate.
1434 * aclocal.m4: Regenerate.
1436 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1438 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1440 * configure.ac: Add check for loadavg.h.
1441 (link_gomp): Adjust comment.
1442 * configure: Regenerate.
1443 * config.h.in: Regenerate.
1445 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1448 * configure.ac: Remove check for alloca.h.
1449 * configure: Regenerate.
1450 * config.h.in: Regenerate.
1451 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1452 * team.c: Remove use of alloca.h.
1453 Call gomp_alloca instead of alloca.
1455 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1458 * team.c: Add include of alloca.h.
1459 * configure.ac: Add check for alloca.h.
1460 * configure: Regenerate.
1461 * config.h.in: Regenerate.
1463 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1466 * testsuite/libgomp.fortran/pr25219.f90: New test.
1468 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1470 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1471 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1472 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1473 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1474 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1475 testsuite/libgomp.fortran/threadprivate1.f90,
1476 testsuite/libgomp.fortran/threadprivate2.f90,
1477 testsuite/libgomp.fortran/threadprivate3.f90,
1478 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1479 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1480 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1481 effective-target to TLS runtime.
1483 * testsuite/libgomp.fortran/pr25162.f: Require
1484 effective-target TLS runtime.
1486 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1488 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1489 * testsuite/libgomp.c/nestedfn-3.c: New test.
1491 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1494 * testsuite/libgomp.fortran/pr25162.f: New test.
1496 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1498 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1499 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1501 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1503 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1504 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1505 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1506 single.c, team.c, work.c, config/linux/alpha/futex.h,
1507 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1508 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1509 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1510 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1511 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1512 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1513 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1516 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1518 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1519 to nodist_noinst_HEADERS.
1520 * Makefile.in: Rebuilt.
1522 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1523 add integer count field.
1524 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1525 omp_nest_lock_t type change.
1526 (omp_init_nest_lock): Likewise. Initialize count to 0.
1527 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1529 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1531 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1532 Increment count if successful and return the new nesting level.
1533 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1534 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1535 * testsuite/libgomp.c/lib-1.c: New test.
1536 * testsuite/libgomp.fortran/lib1.f90: New test.
1537 * testsuite/libgomp.fortran/lib2.f: New test.
1538 * testsuite/libgomp.fortran/lib3.f: New test.
1540 2005-11-17 Richard Henderson <rth@redhat.com>
1543 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1544 * configure.ac (link_gomp): New. Substitute it.
1545 (AC_CONFIG_FILES): Add libgomp.spec.
1546 * libgomp.spec.in: New file.
1547 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1548 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1550 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1552 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1553 reduction(-:var) behaving the same as reduction(+:var).
1554 * testsuite/libgomp.c/reduction-4.c: New test.
1556 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1558 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1559 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1560 testsuite/libgomp.c/copyin-3.c,
1561 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1562 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1563 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1564 testsuite/libgomp.c++/pr24455.C,
1565 testsuite/libgomp.fortran/threadprivate1.f90,
1566 testsuite/libgomp.fortran/threadprivate2.f90,
1567 testsuite/libgomp.fortran/threadprivate3.f90,
1568 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1569 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1570 testsuite/libgomp.fortran/omp_parse3.f90: Require
1571 effective-target TLS.
1573 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1577 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1580 * team.c (initialize_team): Pass NULL rather than free as
1581 pthread_key_create destructor. Initialize thread specific data
1582 pointer in initial thread to a static local variable rather than
1585 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1587 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1588 its location to ld_library_path.
1590 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1592 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1594 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1596 * testsuite/libgomp.c: Rename from libgomp.dg.
1598 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1600 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1601 threadprivate variable 'i'.
1603 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1605 * config/linux/s390/futex.h: New file.
1606 * configure.tgt: Use it.
1608 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1609 before the parallel.
1611 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1614 * testsuite/libgomp.c++/master-1.C: New test.
1616 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1618 * testsuite/libgomp.dg/copyin-3.c: New test.
1620 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1622 * testsuite/libgomp.fortran/retval1.f90: New test.
1623 * testsuite/libgomp.fortran/vla7.f90: New test.
1625 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1627 * testsuite/libgomp.fortran/vla2.f90: New test.
1628 * testsuite/libgomp.fortran/vla3.f90: New test.
1629 * testsuite/libgomp.fortran/vla4.f90: New test.
1630 * testsuite/libgomp.fortran/vla5.f90: New test.
1631 * testsuite/libgomp.fortran/vla6.f90: New test.
1633 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1635 * config/linux/sparc/futex.h: New file.
1636 * configure.tgt: Use it.
1637 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1639 * critical.c: Include stdlib.h.
1640 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1641 ignoring return value.
1642 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1643 LIBGOMP_CHECK_SYNC_BUILTINS check.
1644 * configure: Rebuilt.
1646 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1648 * testsuite/libgomp.fortran/vla1.f90: New test.
1650 2005-10-31 Richard Henderson <rth@redhat.com>
1652 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1653 setting 's' in different threads.
1655 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1657 * libgomp.h (attribute_hidden, ialias): Define.
1658 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1659 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1660 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1661 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1662 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1663 omp_test_lock, omp_test_nest_lock): Likewise.
1664 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1665 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1666 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1667 omp_test_lock, omp_test_nest_lock): Likewise.
1668 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1669 omp_get_dynamic, omp_get_nested): Likewise.
1670 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1671 omp_get_thread_num, omp_in_parallel): Likewise.
1672 * fortran.c (ialias_redirect): Define.
1673 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1674 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1675 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1676 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1677 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1678 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1679 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1680 omp_get_wtime): Add ialias_redirect.
1682 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1684 * fortran.c: Include stdlib.h.
1686 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1688 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1689 * Makefile.in: Regenerated.
1691 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1693 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1694 * libgomp_f.h.in (omp_check_defines): New function.
1695 * env.c: Include libgomp_f.h.
1696 (initialize_env): Call omp_check_defines.
1698 * testsuite/libgomp.dg/copyin-2.c: New test.
1699 * testsuite/libgomp.c++/copyin-2.C: New test.
1700 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1702 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1703 * testsuite/libgomp.fortran/sharing2.f90: New test.
1705 * testsuite/libgomp.dg/copyin-1.c: New test.
1706 * testsuite/libgomp.c++/copyin-1.C: New test.
1708 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1710 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1712 * testsuite/libgomp.fortran/workshare1.f90: New test.
1714 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1716 * libgomp.fortran/sharing1.f90: New test.
1718 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1721 * testsuite/libgomp.c++/loop-7.C: New test.
1723 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1725 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1726 * testsuite/libgomp.fortran/reduction6.f90: New test.
1727 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1729 2005-10-23 Richard Henderson <rth@redhat.com>
1731 * testsuite/libgomp.c++/ctor-1.C: New.
1732 * testsuite/libgomp.c++/ctor-2.C: New.
1733 * testsuite/libgomp.c++/ctor-3.C: New.
1734 * testsuite/libgomp.c++/ctor-4.C: New.
1735 * testsuite/libgomp.c++/ctor-5.C: New.
1736 * testsuite/libgomp.c++/ctor-6.C: New.
1737 * testsuite/libgomp.c++/ctor-7.C: New.
1738 * testsuite/libgomp.c++/ctor-8.C: New.
1739 * testsuite/libgomp.c++/ctor-9.C: New.
1741 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1744 * testsuite/libgomp.c++/pr24455-1.C: New test.
1745 * testsuite/libgomp.c++/pr24455.C: New test.
1746 * testsuite/libgomp.dg/pr24455-1.c: New test.
1747 * testsuite/libgomp.dg/pr24455.c: New test.
1749 2005-10-20 Richard Henderson <rth@redhat.com>
1751 * testsuite/libgomp.c++/loop-6.C: New.
1752 * testsuite/libgomp.dg/loop-3.c: New.
1754 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1756 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1758 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1761 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1763 * testsuite/libgomp.fortran/jacobi.f: New test.
1765 2005-10-19 Richard Henderson <rth@redhat.com>
1767 * configure.tgt (i?86-linux): Default to with_arch instead of
1768 CFLAGS. Add -mtune to match target_cpu.
1769 (x86_64-linux): Tune to i686.
1771 * fortran.c (omp_test_nest_lock_): Fix typo.
1773 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1775 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1776 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1777 * testsuite/libgomp.dg/ordered-3.c: New test.
1779 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1780 Remove volatile keyword.
1782 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1783 in COMMON block to avoid warnings on 64-bit targets.
1785 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1787 * testsuite/libgomp.dg/shared-3.c: New test.
1789 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1791 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1792 * testsuite/libgomp.fortran/reduction5.f90: New test.
1794 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1796 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1798 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1799 flush loop now that __sync_synchronize has proper memory barrier.
1800 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1801 Add -ffixed-form to dg-options.
1803 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1805 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1806 from subdirectories.
1807 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1808 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1809 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1810 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1811 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1812 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1813 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1814 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1815 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1816 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1817 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1818 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1819 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1820 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1821 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1822 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1823 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1824 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1825 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1826 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1827 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1828 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1829 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1830 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1831 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1833 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1835 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1836 lang_library_path exists. Use find instead of glob to gather tests.
1837 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1839 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1841 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1842 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1843 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1844 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1845 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1846 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1847 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1848 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1849 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1850 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1851 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1852 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1853 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1855 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1857 * testsuite/libgomp.dg/vla-1.c: New test.
1859 * testsuite/libgomp.fortran/reference2.f90: New test.
1861 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1862 declaration of omp_get_thread_num.
1863 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1866 * testsuite/libgomp.fortran/reduction1.f90: New test.
1867 * testsuite/libgomp.fortran/reduction2.f90: New test.
1868 * testsuite/libgomp.fortran/reduction3.f90: New test.
1869 * testsuite/libgomp.fortran/reduction4.f90: New test.
1871 2005-10-13 Richard Henderson <rth@redhat.com>
1873 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1874 * Makefile.in: Regenerate.
1875 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1876 * libgomp.h: Include bar.h.
1877 (struct gomp_barrier): Remove.
1878 (struct gomp_team): Add barrier. Replace master_barrier with
1879 master_release. Replace threads with ordered_release.
1880 (struct gomp_thread): Replace barrier with release.
1881 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1882 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1883 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1884 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1885 (GOMP_single_copy_end): Likewise.
1886 * team.c (gomp_threads_dock): New.
1887 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1888 (gomp_thread_start): Use gomp_barrier_wait.
1889 (new_team, free_team): Update for gomp_team changes.
1890 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1891 (gomp_team_end): Use gomp_barrier_wait.
1892 (initialize_team): Update for gomp_thread changes.
1893 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1894 (gomp_work_share_end_nowait): Use atomic ops when available.
1895 * config/linux/bar.c, config/linux/bar.h: New files.
1896 * config/posix/bar.c, config/posix/bar.h: New files.
1898 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1900 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1901 * testsuite/libgomp.dg/single-2.c: New test.
1903 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1904 lang_link_flags): Unset, so that they aren't inherited from previously
1907 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1909 2005-10-12 Richard Henderson <rth@redhat.com>
1911 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1912 (libgomp_init): Use lang_test_file, lang_library_path, and
1913 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1915 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1916 (lang_test_file, lang_link_flags): New.
1917 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1919 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1920 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1921 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1922 testsuite/libgomp.c++/parallel-1.C,
1923 testsuite/libgomp.c++/reduction-1.C,
1924 testsuite/libgomp.c++/reduction-2.C,
1925 testsuite/libgomp.c++/reduction-3.C,
1926 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1927 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1928 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1929 New files, largely cribbed from the C testsuite.
1931 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1933 * testsuite/libgomp.fortran/character1.f90: New test.
1934 * testsuite/libgomp.fortran/character2.f90: New test.
1936 * testsuite/libgomp.dg/nested-1.c: New test.
1937 * testsuite/libgomp.dg/nested-2.c: New test.
1938 * testsuite/libgomp.fortran/do1.f90: New test.
1939 * testsuite/libgomp.fortran/do2.f90: New test.
1941 * testsuite/libgomp.fortran/reference1.f90: New test.
1943 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1945 * testsuite/libgomp.dg/reduction-1.c: New test.
1946 * testsuite/libgomp.dg/reduction-2.c: New test.
1947 * testsuite/libgomp.dg/reduction-3.c: New test.
1949 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1951 * testsuite/libgomp.dg/atomic-1.c: New test.
1952 * testsuite/libgomp.dg/atomic-2.c: New test.
1954 2005-10-09 Richard Henderson <rth@redhat.com>
1956 * critical.c (atomic_lock): New.
1957 (initialize_critical): Initialize it.
1958 (GOMP_atomic_start, GOMP_atomic_end): New.
1959 * libgomp.map: Export them.
1960 * libgomp_g.h: Declare them.
1962 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1964 2005-10-02 Richard Henderson <rth@redhat.com>
1966 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1967 to XCFLAGS instead of CFLAGS.
1969 2005-09-30 Richard Henderson <rth@redhat.com>
1971 * configure.ac: Determine whether -pthread or -lpthread is needed.
1972 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1973 * Makefine.in, configure: Rebuild.
1975 2005-09-28 Richard Henderson <rth@redhat.com>
1977 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1978 * testsuite/libgomp.dg/omp-single-3.c: New test.
1980 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1982 * testsuite/libgomp.dg/omp-single-2.c: New test.
1983 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1985 2005-09-27 Richard Henderson <rth@redhat.com>
1987 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1988 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1990 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1992 * testsuite/libgomp.dg/omp-loop03.c: New test.
1994 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1996 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1998 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2000 * testsuite/libgomp.dg/omp-single-1.c: New test.
2001 * testsuite/libgomp.dg/shared-1.c: Return 0.
2002 Add prototype for abort.
2003 * testsuite/libgomp.dg/shared-2.c: Likewise.
2005 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2007 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2010 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2012 * testsuite/libgomp.dg/shared-1.c: New test.
2013 * testsuite/libgomp.dg/shared-2.c: New test.
2015 2005-09-24 Richard Henderson <rth@redhat.com>
2017 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2019 2005-09-24 Richard Henderson <rth@redhat.com>
2021 * iter.c (gomp_iter_static_next): Round up when computing number
2022 of iterations. Don't bother distributing a remainder equally.
2024 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2025 Don't call srand. Zero b before testing.
2028 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2030 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2031 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2033 2005-09-23 Jakub Jelinek <jakub@redhat.com>
2035 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2036 without !$omp end do, followed immediately by subroutine end.
2038 2005-09-23 Diego Novillo <dnovillo@redhat.com>
2040 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2042 2005-09-22 Richard Henderson <rth@redhat.com>
2044 * critical.c (GOMP_critical_name_start): Change argument to void**.
2045 Reuse the pointer space if the mutex fits.
2046 (GOMP_critical_name_end): Likewise.
2047 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2048 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2049 (GOMP_critical_name_end): Likewise.
2050 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2051 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2053 2005-09-20 Richard Henderson <rth@redhat.com>
2055 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2056 (create_lock_lock): New.
2057 (initialize_critical): Initialize it.
2058 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2059 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2061 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2063 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2065 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2067 * testsuite/libgomp.dg/omp-loop01.c: New test.
2068 * testsuite/libgomp.dg/omp-loop02.c: New test.
2070 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2072 * configure.ac (AC_PROG_FC): Add.
2073 (USE_FORTRAN): New automake conditional.
2074 * configure: Rebuilt.
2075 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2076 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2077 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2078 Add rules to build them.
2079 * Makefile.in: Rebuilt.
2080 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2082 * libgomp.map: Add Fortran wrappers.
2083 * libgomp_f.h.in: New file.
2084 * omp_lib.h.in: New file.
2085 * omp_lib.f90.in: New file.
2086 * fortran.c: New file.
2087 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2088 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2089 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2090 libgfortran has been built.
2091 * testsuite/libgomp.fortran/fortran.exp: New file.
2092 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2093 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2094 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2095 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2096 * testsuite/libgomp.fortran/omp_hello.f: New test.
2097 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2098 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2099 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2100 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2101 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2102 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2103 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2104 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2106 2005-08-30 Richard Henderson <rth@redhat.com>
2108 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2109 function for when aliases are not usable.
2110 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2111 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2112 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2113 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2114 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2115 GOMP_loop_ordered_guided_next): Likewise.
2116 * ordered.c (GOMP_ordered_start): Likewise.
2118 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2120 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2121 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2122 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2123 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2124 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2125 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2126 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2127 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2128 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2130 2005-07-07 Eric Christopher <echristo@redhat.com>
2131 Diego Novillo <dnovillo@redhat.com>
2133 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2134 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2136 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2137 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2138 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2139 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2140 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2141 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2142 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2144 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2146 * TOPLEVEL.patch: Remove.
2148 2005-05-16 Richard Henderson <rth@redhat.com>
2150 * configure.ac: Test for clock_gettime.
2151 * config.h.in, configure: Rebuild.
2152 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2153 (omp_get_wtime): Use clock_gettime if available.
2154 (omp_get_wtick): Use clock_getres if available.
2156 2005-05-11 Richard Henderson <rth@redhat.com>
2158 * config/linux/ia64/futex.h: New file.
2159 * configure.tgt: Use it.
2161 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2163 2005-05-07 Richard Henderson <rth@redhat.com>
2165 * config/linux/powerpc/futex.h: New file.
2166 * configure.tgt: Use it.
2168 * config/linux/i486/futex.h: Merge ...
2169 * config/linux/x86_64/futex.h: ... into ...
2170 * config/linux/x86/futex.h: ... here.
2171 * configure.tgt: Update to match.
2173 2005-05-06 Richard Henderson <rth@redhat.com>
2175 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2176 * config/linux/i486/futex.h: Likewise.
2177 * config/linux/x86_64/futex.h: Likewise.
2179 * config/linux/lock.c: New file.
2180 * config/linux/omp-lock.h: New file.
2182 * critical.c, env.h: Don't include omp.h
2183 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2184 * config/posix/time.c: Likewise.
2185 * config/posix/omp-lock.h: New file.
2186 * libgomp.h: Include omp-lock.h and omp.h.
2187 * Makefile.am (nodist_include_HEADERS): New.
2189 * configure.ac (PERL): New.
2190 * mkomp_h.pl: New file.
2191 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2193 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2195 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2196 build directory. Re-add -march=i486 hack.
2198 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2199 (libgomp_link_flags): Remove.
2200 (libgomp_initialized): Remove.
2201 (libgomp_init): Don't protect from reinitialization. Copy code
2202 from libstdc++ for getting the multilib set correctly.
2204 2005-05-05 Richard Henderson <rth@redhat.com>
2206 * config/linux/alpha/futex.h: New file.
2207 * configure.tgt (alpha*-*-linux*): Use it.
2209 * config/posix/mutex.c: New file.
2210 * config/posix/sem.c: Use libgomp.h.
2212 * configure.tgt (x86_64-linux): Also test CC for -m32.
2213 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2215 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2218 * Makefile.am (SUBDIRS): New.
2219 (libgomp_la_LDFLAGS): Add -lpthread.
2220 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2221 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2223 * libgomp_g.h: New file.
2224 * libgomp.h: Split out all public declarations to libgomp_g.h.
2225 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2226 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2227 * config/linux/sem.h: Likewise.
2228 * config/posix/sem.h: Likewise.
2230 * Makefile.am (AM_LDFLAGS): New.
2231 (libgomp_version_script): Split out from ...
2232 (libgomp_la_LDFLAGS): ... here.
2233 (libgomp_version_info): New.
2234 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2235 (LIBGOMP_ENABLE): New.
2236 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2237 (LIBGOMP_ENABLE_SYMVERS): New.
2238 * configure.ac (AC_INIT): Version 1.0.
2239 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2240 (enable-linux-futex): Likewise. Rename from enable-futex.
2241 (libtool_VERSION): New.
2242 (LIBGOMP_ENABLE_SYMVERS): Use it.
2243 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2244 * Makefile.in, aclocal.m4, configure: Rebuild.
2246 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2247 (gomp_mutex_unlock_slow): Fix typo.
2248 * config/linux/sem.c: Similarly.
2249 (gomp_sem_post_slow): Fix typo.
2250 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2251 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2252 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2254 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2255 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2256 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2257 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2258 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2259 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2260 LDFLAGS. Pull enable_futex check to top-level.
2261 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2262 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2264 First attempt at real configury.
2265 * Makefile, config.h: Remove file.
2266 * Makefile.am, Makefile.in: New file.
2267 * acinclude.m4 aclocal.m4: New file.
2268 * configure.ac, configure.tgt, configure: New file.
2270 * config/posix/lock.c: Rename from sys-lock.c.
2271 * config/posix/mutex.h: Rename from sys-mutex.h.
2272 * config/posix/sem.c: Rename from sys-sem.c.
2273 * config/posix/sem.h: Rename from sys-sem.h.
2274 * config/posix/proc.c: Rename from sys-proc.c.
2275 * config/posix/time.c: Rename from sys-proc.c.
2277 * config/linux/mutex.c: New file.
2278 * config/linux/mutex.h: New file.
2279 * config/linux/sem.c: New file.
2280 * config/linux/sem.h: New file.
2281 * config/linux/i486/futex.h: New file.
2282 * config/linux/x86_64/futex.h: New file.
2284 2005-05-04 Richard Henderson <rth@redhat.com>
2286 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2287 * libgomp.h: Declare them.
2288 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2289 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2291 2005-05-04 Richard Henderson <rth@redhat.com>
2293 * libgomp-1 code drop
2295 2005-05-04 Richard Henderson <rth@redhat.com>
2297 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2298 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2299 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2300 (gomp_iter_static_next): Update.
2301 (gomp_ordered_static_next): Update.
2302 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2303 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2304 totally empty range.
2305 (gomp_loop_ordered_static_next): Refine test for calling
2306 gomp_ordered_static_next.
2307 * testsuite/ordered-1.c: Add case for more threads than iterations.
2309 * iter.c (gomp_iter_runtime_next_locked): Remove.
2310 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2311 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2312 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2313 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2314 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2315 gomp_loop_ordered_guided_next): Downcase name, make static, add
2316 an external alias with the old name.
2317 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2318 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2319 switch and call one of the above static functions.
2320 * libgomp.h: Update.
2322 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2323 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2324 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2325 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2326 GOMP_loop_ordered_guided_start): Update to match.
2327 * sections.c (GOMP_sections_start): Likewise.
2328 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2330 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2331 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2332 Use bounds check instead of modulus.
2333 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2334 (gomp_ordered_last): Don't sync with ordered_owner here.
2335 (gomp_ordered_next): Likewise.
2336 (gomp_ordered_static_loop_next): Likewise.
2337 * loop.c, libgomp.h: Update to match.
2339 * libgomp.h (GOMP_barrier): Declare.
2341 * testsuite/barrier-1.c: New file.
2342 * testsuite/critical-1.c: New file.
2343 * testsuite/ordered-2.c: New file.
2344 * testsuite/ordered-1.c: New file.
2345 * testsuite/sections-1.c: New file.
2346 * testsuite/single-1.c: New file.
2347 * testsuite/Makefile (TESTS): Add them.
2349 2005-05-04 Richard Henderson <rth@redhat.com>
2351 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2352 * loop.c (GOMP_loop_static_start): If not the startup thread,
2353 acquire the mutex to wait for initialization complete.
2354 (GOMP_loop_ordered_static_start): Likewise.
2355 (GOMP_loop_ordered_runtime_start): Likewise.
2356 (GOMP_loop_ordered_static_first): Remove.
2357 (GOMP_loop_ordered_dynamic_first): Remove.
2358 (GOMP_loop_ordered_guided_first): Remove.
2359 (GOMP_loop_ordered_runtime_first): Remove.
2360 * ordered.c (gomp_ordered_loop_first): Post to own release when
2361 we're the first thread.
2362 (gomp_ordered_loop_last): Wait on release if not owner.
2363 (gomp_ordered_loop_next): Likewise.
2364 (gomp_ordered_static_loop_init): New.
2365 (gomp_ordered_static_loop_next): Use ordered_owner.
2366 (GOMP_ordered_start): Likewise.
2367 * work.c (gomp_new_work_share): Initialize ordered_owner.
2369 2005-05-03 Richard Henderson <rth@redhat.com>
2371 * Makefile (OPT): New.
2374 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2375 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2376 * libgomp.h, libgomp.map, NOTES: Update to match.
2378 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2379 Add initialized and thr members.
2380 (gomp_thread_start): Pause when initially spawned to wait for
2381 the whole team to be created.
2382 (gomp_team_start): Release team members at the end.
2384 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2385 (f_foo_1): Use GOMP_loop_end.
2386 (f_foo_2): Use GOMP_loop_end_nowait.
2388 * testsuite/loop-2.c: New file.
2389 * testsuite/Makefile (TESTS): Add it.
2391 2005-05-03 Richard Henderson <rth@redhat.com>
2393 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2394 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2395 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2398 * testsuite/Makefile: New file.
2399 * testsuite/loop-1.c: New file.
2401 2005-05-03 Richard Henderson <rth@redhat.com>
2403 Initial implementation and checkin.