1 2008-12-01 Janis Johnson <janis187@us.ibm.com>
4 * config/linux/powerpc/mutex.h: New.
6 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9 * testsuite/libgomp.c++/for-7.C: New test.
12 * testsuite/libgomp.c++/for-6.C: New test.
14 2008-11-26 Janis Johnson <janis187@us.ibm.com>
17 * testsuite/lib/libgomp.exp: Include new timeout library files.
18 (libgomp_target_compile): Set timeout value from new proc.
20 2008-11-13 Steve Ellcey <sje@cup.hp.com>
23 * config/linux/ia64/mutex.h: New.
25 2008-11-04 Tobias Burnus <burnus@net-b.de>
28 * libgomp.texi (Runtime library routines, environment variables):
29 Update for OpenMP version 3.0.
31 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
32 Steve Ellcey <sje@cup.hp.com>
34 * configure: Regenerate for new libtool.
36 * testsuite/Makefile.in: Ditto.
38 2008-09-19 Jakub Jelinek <jakub@redhat.com>
39 Andreas Tobler <a.tobler@schweiz.org>
41 * config/bsd/proc.c: New file.
42 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
43 * configure.ac: Check for header <sys/sysctl.h>
44 * configure: Regenerate.
45 * config.h.in: Likewise.
47 2008-09-05 Janis Johnson <janis187@us.ibm.com>
49 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
51 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
53 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
54 * Makefile.in: Regenerated.
55 * testsuite/Makefile.in: Regenerated.
57 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
59 * testsuite/libgomp.exp (libgomp_init): Only set things that
60 depend on blddir if blddir exists.
61 (libgomp_target_compile): Likewise.
62 * testsuite/libgomp.c++/c++.exp: Likewise.
63 * testsuite/libgomp.fortran/fortran.exp: Likewise.
65 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
68 Do not list GPL as Invariant Section.
70 2008-07-28 Ilie Garbacea <ilie@mips.com>
71 Chao-ying Fu <fu@mips.com>
73 * configure.tgt: Enable futex for MIPS.
74 * config/linux/mips/futex.h: New file.
76 2008-07-16 Jakub Jelinek <jakub@redhat.com>
78 * team.c (gomp_team_end): Free team immediately if it has
81 2008-07-08 David Edelsohn <edelsohn@gnu.org>
83 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
84 * testsuite/libgomp.fortran/fortran.exp: Same.
85 * testsuite/libgomp.c/c.exp: Same.
86 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
87 directory to library path first.
89 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
91 * env.c (parse_stacksize): Add cast to avoid warning.
92 (parse_spincount): Likewise.
94 2008-06-27 Jakub Jelinek <jakub@redhat.com>
96 * testsuite/libgomp.c/loop-10.c: New test.
97 * libgomp.c/loop-3.c (main): Add lastprivate clause.
98 * libgomp.c++/loop-6.C (main): Likewise.
101 * testsuite/libgomp.c/debug-1.c: New test.
103 2008-06-19 Jakub Jelinek <jakub@redhat.com>
105 * testsuite/libgomp.c/nqueens-1.c: New test.
108 * testsuite/libgomp.c++/task-7.C: New function.
110 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112 * configure: Regenerate.
114 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
116 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
117 mutex when HAVE_SYNC_BUILTINS isn't defined.
119 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
121 * libgomp.texi (omp_test_lock): Fix typo.
123 2008-06-12 Tobias Burnus <burnus@net-b.de>
125 * omp_lib.f90.in: Add "implicit none".
127 2008-06-12 Jakub Jelinek <jakub@redhat.com>
130 * testsuite/libgomp.c/reduction-5.c: New test.
132 2008-06-11 Jakub Jelinek <jakub@redhat.com>
134 * libgomp.h (struct gomp_task): Add in_tied_task field.
135 * task.c (gomp_init_task): Initialize it.
136 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
137 unconditionally. Don't call gomp_team_barrier_wake if
138 current task is implicit or if(0) from implicit and number of
139 running tasks is equal to nthreads - 1.
142 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
143 omp_get_team_size_8): Fix pastos.
146 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
147 * configure: Regenerated.
148 * config.h.in: Regenerated.
149 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
152 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
155 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
156 (GOMP_loop_ull_dynamic_start): Likewise.
157 (GOMP_loop_ull_guided_start): Likewise.
158 (GOMP_loop_ull_ordered_static_start): Likewise.
159 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
160 (GOMP_loop_ull_ordered_guided_start): Likewise.
162 2008-06-06 Jakub Jelinek <jakub@redhat.com>
163 Richard Henderson <rth@redhat.com>
164 Ulrich Drepper <drepper@redhat.com>
165 Jakob Blomer <jakob.blomer@ira.uka.de>
167 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
168 Substitute also OMP_*LOCK_25*.
169 * configure: Regenerated.
170 * config.h.in: Regenerated.
171 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
172 ptrlock.c and task.c.
173 * Makefile.in: Regenerated.
174 * testsuite/Makefile.in: Regenerated.
176 * loop_ull.c: New file.
177 * iter_ull.c: New file.
178 * libgomp.h: Include ptrlock.h.
179 (enum gomp_task_kind): New type.
180 (struct gomp_team): Add task_lock, task_queue, task_count,
181 task_running_count, single_count fields. Add
182 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
183 Remove work_share_lock, generation_mask,
184 oldest_live_gen, num_live_gen and init_work_shares fields, add
185 work work_share_list_alloc, work_share_list_free and work_share_chunk
186 fields. Change work_shares from pointer to pointers into an array.
187 Change ordered_release field into gomp_sem_t ** from flexible array
188 member. Add implicit_task and initial_work_shares fields.
189 Move close to the end of the struct.
190 (struct gomp_team_state): Add single_count, last_work_share,
191 active_level and level fields, remove work_share_generation.
192 (gomp_barrier_handle_tasks): New prototype.
193 (gomp_finish_task): New inline function.
194 (struct gomp_work_share): Move chunk_size, end, incr into
195 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
196 next_ll fields. Reshuffle fields. Add next_alloc,
197 next_ws, next_free and inline_ordered_team_ids fields, change
198 ordered_team_ids into pointer from flexible array member.
199 Add mode field. Put lock and next into a different cache line
200 from most of the write-once fields.
201 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
202 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
203 gomp_iter_ull_guided_next): New prototypes.
204 (gomp_new_icv): New prototype.
205 (struct gomp_thread): Add thread_pool and task fields.
206 (struct gomp_thread_pool): New type.
207 (gomp_new_team): New prototype.
208 (gomp_team_start): Change type of last argument.
209 (gomp_new_work_share): Removed.
210 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
211 (gomp_work_share_init_done): New static inline.
212 (gomp_throttled_spin_count_var, gomp_available_cpus,
213 gomp_managed_threads): New extern decls.
214 (gomp_init_task): New prototype.
215 (gomp_spin_count_var): New extern var decl.
216 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
217 or no alias support, or if not PIC.
218 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
219 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
220 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
221 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
222 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
223 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
224 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
225 gomp_test_nest_lock_25): New prototypes.
226 (omp_lock_symver, strong_alias): Define.
227 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
229 (gomp_end_task): New.
230 (struct gomp_task_icv, gomp_global_icv): New.
231 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
232 (struct gomp_task): New.
233 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
234 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
236 (gomp_schedule_type): Reorder enum to match
238 * team.c (struct gomp_thread_start_data): Add thread_pool and task
240 (gomp_thread_start): Add gomp_team_barrier_wait call.
241 For non-nested case remove clearing of docked thread thr fields.
242 Use pool fields instead of global gomp_* variables. Use
243 gomp_barrier_wait_last when needed. Initialize ts.active_level.
244 Create tasks for each member thread.
245 (free_team): Only destroy team barrier, task_lock here and free it.
246 (gomp_free_thread): Free last_team if non-NULL.
247 (gomp_team_end): Call gomp_team_barrier_wait instead of
248 gomp_barrier_wait. For nested case call one extra
249 gomp_barrier_wait. Move here some destruction from free_team.
250 Call free_team on pool->last_team if any, rather than freeing
251 current team. Destroy work_share_list_free_lock ifndef
253 (gomp_new_icv): New function.
254 (gomp_threads, gomp_threads_size, gomp_threads_used,
255 gomp_threads_dock): Removed.
256 (gomp_thread_destructor): New variable.
257 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
259 (gomp_team_start): Create new pool if current thread doesn't have
260 one. Use pool fields instead of global gomp_* variables.
261 Initialize thread_pool field for new threads. Clear single_count.
262 Change last argument from ws to team, don't create
263 new team, set ts.work_share to &team->work_shares[0] and clear
264 ts.last_work_share. Don't clear ts.work_share_generation.
265 If number of threads changed, adjust atomically gomp_managed_threads.
266 Use gomp_init_task instead of gomp_new_task,
267 set thr->task to the corresponding implicit_task array entry.
268 Create tasks for each member thread. Initialize ts.level.
269 (initialize_team): Call pthread_key_create on
270 gomp_thread_destructor.
271 (team_destructor): New function.
273 (gomp_new_team): New function.
274 (free_team): Free gomp_work_share blocks chained through next_alloc,
275 instead of freeing work_shares and destroying work_share_lock.
276 (gomp_team_end): Call gomp_fini_work_share. If number of threads
277 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
278 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
279 of gomp_barrier_wait.
280 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
281 instead of gomp_barrier_wait. Call gomp_work_share_init_done
282 if gomp_work_share_start returned true. Don't unlock ws->lock.
283 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
284 of gomp_barrier_wait.
285 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
286 gomp_work_share_init_done if gomp_work_share_start returned true.
287 Don't unlock ws->lock.
288 * work.c: Include stddef.h.
289 (free_work_share): Use work_share_list_free_lock instead
290 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
291 Call gomp_fini_work_share and then either free ws if orphaned, or
292 put it into work_share_list_free list of the current team.
293 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
295 (gomp_work_share_start, gomp_work_share_end,
296 gomp_work_share_end_nowait): Rewritten.
297 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
298 (openmp_version): Set to 200805.
299 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
300 omp_sched_guided, omp_sched_auto): New parameters.
301 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
302 omp_set_max_active_levels, omp_get_max_active_levels,
303 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
304 omp_get_active_level): New interfaces.
305 * omp_lib.h.in (openmp_version): Set to 200805.
306 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
307 omp_sched_guided, omp_sched_auto): New parameters.
308 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
309 omp_set_max_active_levels, omp_get_max_active_levels,
310 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
311 omp_get_active_level): New externals.
312 * loop.c: Include limits.h.
313 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
315 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
316 Likewise. Use gomp_icv.
317 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
319 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
320 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
321 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
322 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
323 don't unlock ws->lock, otherwise lock it.
324 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
325 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
326 (gomp_parallel_loop_start): Call gomp_new_team instead of
327 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
328 Adjust gomp_team_start caller. Pass 0 as second argument to
329 gomp_resolve_num_threads.
330 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
331 If adding ws->chunk_size nthreads + 1 times after end won't
332 overflow, set ws->mode to 1.
333 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
334 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
335 GOMP_loop_ull_ordered_static_start,
336 GOMP_loop_ull_ordered_dynamic_start,
337 GOMP_loop_ull_ordered_guided_start,
338 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
339 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
340 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
341 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
342 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
344 * libgomp.map: Export lock routines also @@OMP_2.0.
345 (GOMP_loop_ordered_dynamic_first,
346 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
347 GOMP_loop_ordered_static_first): Remove.
348 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
349 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
350 GOMP_loop_ull_ordered_dynamic_next,
351 GOMP_loop_ull_ordered_dynamic_start,
352 GOMP_loop_ull_ordered_guided_next,
353 GOMP_loop_ull_ordered_guided_start,
354 GOMP_loop_ull_ordered_runtime_next,
355 GOMP_loop_ull_ordered_runtime_start,
356 GOMP_loop_ull_ordered_static_next,
357 GOMP_loop_ull_ordered_static_start,
358 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
359 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
360 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
361 (omp_set_schedule, omp_get_schedule,
362 omp_get_thread_limit, omp_set_max_active_levels,
363 omp_get_max_active_levels, omp_get_level,
364 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
365 omp_set_schedule_, omp_set_schedule_8_,
366 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
367 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
368 omp_get_max_active_levels_, omp_get_level_,
369 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
370 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
371 New exports @@OMP_3.0.
372 * omp.h.in (omp_sched_t): New type.
373 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
374 omp_set_max_active_levels, omp_get_max_active_levels,
375 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
376 omp_get_active_level): New prototypes.
377 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
378 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
379 gomp_thread_limit_var, gomp_remaining_threads_count,
380 gomp_remaining_threads_lock): New variables.
381 (parse_spincount): New function.
382 (initialize_env): Call gomp_init_num_threads unconditionally.
383 Initialize gomp_available_cpus. Call parse_spincount,
384 initialize gomp_{,throttled_}spin_count_var
385 depending on presence and value of OMP_WAIT_POLICY and
386 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
387 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
388 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
389 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
390 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
391 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
392 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
393 (gomp_global_icv): New.
394 (parse_schedule): Use it. Parse "auto".
395 (omp_set_num_threads): Use gomp_icv.
396 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
398 (omp_get_max_threads): Move from parallel.c.
399 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
400 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
402 (parse_stacksize, parse_wait_policy): New functions.
403 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
404 both wrappers for compatibility and new locks.
405 (omp_set_schedule, omp_get_schedule,
406 omp_get_thread_limit, omp_set_max_active_levels,
407 omp_get_max_active_levels, omp_get_level,
408 omp_get_ancestor_thread_num, omp_get_team_size,
409 omp_get_active_level): New ialias_redirect.
410 (omp_set_schedule_, omp_set_schedule_8_,
411 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
412 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
413 omp_get_max_active_levels_, omp_get_level_,
414 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
415 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
417 * parallel.c: Include limits.h.
418 (gomp_resolve_num_threads): Add count argument. Rewritten.
419 (GOMP_parallel_start): Call gomp_new_team and pass that as last
420 argument to gomp_team_start. Pass 0 as second argument to
421 gomp_resolve_num_threads.
422 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
423 if gomp_thread_limit_var != ULONG_MAX.
424 (omp_in_parallel): Implement using ts.active_level.
425 (omp_get_max_threads): Move to env.c.
426 (omp_get_level, omp_get_ancestor_thread_num,
427 omp_get_team_size, omp_get_active_level): New functions,
429 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
430 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
431 gomp_iter_dynamic_next instead of the _locked variant and don't take
432 lock around it, otherwise acquire it before calling
433 gomp_iter_dynamic_next_locked.
434 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
435 gomp_iter_dynamic_next instead of the _locked variant and don't take
437 (GOMP_parallel_sections_start): Call gomp_new_team instead of
438 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
439 Adjust gomp_team_start caller. Pass count as second argument to
440 gomp_resolve_num_threads, don't adjust num_threads after the call.
442 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
443 ws->chunk_size by incr.
444 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
446 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
448 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
449 (omp_check_defines): Check even the compat defines.
450 * config/linux/ptrlock.c: New file.
451 * config/linux/ptrlock.h: New file.
452 * config/linux/wait.h: New file.
453 * config/posix/ptrlock.c: New file.
454 * config/posix/ptrlock.h: New file.
455 * config/linux/bar.h (gomp_team_barrier_wait,
456 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
457 (gomp_team_barrier_set_task_pending,
458 gomp_team_barrier_clear_task_pending,
459 gomp_team_barrier_set_waiting_for_tasks,
460 gomp_team_barrier_waiting_for_tasks,
461 gomp_team_barrier_done): New inlines.
462 (gomp_barrier_t): Rewritten.
463 (gomp_barrier_state_t): New typedef.
464 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
465 gomp_barrier_wait_start): Rewritten.
466 (gomp_barrier_wait_end): Change second argument to
467 gomp_barrier_state_t.
468 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
470 * config/linux/bar.c: Include wait.h instead of libgomp.h and
472 (gomp_barrier_wait_end): Rewritten.
473 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
474 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
475 * config/posix/bar.h (gomp_barrier_t): Add generation field.
476 (gomp_barrier_state_t): New typedef.
477 (gomp_team_barrier_wait,
478 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
479 (gomp_barrier_wait_start): Or all but low 2 bits from generation
480 into the return value. Return gomp_barrier_state_t.
481 (gomp_team_barrier_set_task_pending,
482 gomp_team_barrier_clear_task_pending,
483 gomp_team_barrier_set_waiting_for_tasks,
484 gomp_team_barrier_waiting_for_tasks,
485 gomp_team_barrier_done): New inlines.
486 (gomp_barrier_wait_end): Change second argument to
487 gomp_barrier_state_t.
488 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
490 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
491 (gomp_barrier_wait_end): Change second argument to
492 gomp_barrier_state_t.
493 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
494 gomp_team_barrier_wake): New functions.
495 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
497 (gomp_futex_wake, gomp_futex_wait): New variables.
498 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
499 * config/linux/lock.c: Rewrite to make locks task owned,
500 for backwards compatibility provide the old entrypoints
501 if symbol versioning. Include wait.h instead of libgomp.h and
503 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
504 * config/posix95/lock.c: Rewrite to make locks task owned,
505 for backwards compatibility provide the old entrypoints
506 if symbol versioning.
507 * config/posix/lock.c: Rewrite to make locks task owned,
508 for backwards compatibility provide the old entrypoints
509 if symbol versioning.
510 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
511 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
512 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
513 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
514 (sys_futex0): Return error code.
515 (futex_wake, futex_wait): If ENOSYS was returned, clear
516 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
517 (cpu_relax, atomic_write_barrier): New static inlines.
518 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
519 (futex_wake, futex_wait): If ENOSYS was returned, clear
520 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
521 (cpu_relax, atomic_write_barrier): New static inlines.
522 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
523 (sys_futex0): Return error code.
524 (futex_wake, futex_wait): If ENOSYS was returned, clear
525 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
526 (cpu_relax, atomic_write_barrier): New static inlines.
527 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
528 (sys_futex0): Return error code.
529 (futex_wake, futex_wait): If ENOSYS was returned, clear
530 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
531 (cpu_relax, atomic_write_barrier): New static inlines.
532 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
533 (sys_futex0): Return error code.
534 (futex_wake, futex_wait): If ENOSYS was returned, clear
535 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
536 (cpu_relax, atomic_write_barrier): New static inlines.
537 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
538 (sys_futex0): Return error code.
539 (futex_wake, futex_wait): If ENOSYS was returned, clear
540 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
541 (cpu_relax, atomic_write_barrier): New static inlines.
542 * config/linux/sem.c: Include wait.h instead of libgomp.h and
544 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
545 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
546 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
548 (omp_nest_lock_t): Change owner into void *, add lock field.
549 * config/posix95/omp-lock.h: Include semaphore.h.
550 (omp_lock_25_t, omp_nest_lock_25_t): New types.
551 (omp_lock_t): Use sem_t instead of mutex if semaphores
553 (omp_nest_lock_t): Likewise. Change owner to void *.
554 * config/posix/omp-lock.h: Include semaphore.h.
555 (omp_lock_25_t, omp_nest_lock_25_t): New types.
556 (omp_lock_t): Use sem_t instead of mutex if semaphores
558 (omp_nest_lock_t): Likewise. Add owner field.
560 2008-06-06 Jakub Jelinek <jakub@redhat.com>
562 * testsuite/libgomp.c/collapse-1.c: New test.
563 * testsuite/libgomp.c/collapse-2.c: New test.
564 * testsuite/libgomp.c/collapse-3.c: New test.
565 * testsuite/libgomp.c/icv-1.c: New test.
566 * testsuite/libgomp.c/icv-2.c: New test.
567 * testsuite/libgomp.c/lib-2.c: New test.
568 * testsuite/libgomp.c/lock-1.c: New test.
569 * testsuite/libgomp.c/lock-2.c: New test.
570 * testsuite/libgomp.c/lock-3.c: New test.
571 * testsuite/libgomp.c/loop-4.c: New test.
572 * testsuite/libgomp.c/loop-5.c: New test.
573 * testsuite/libgomp.c/loop-6.c: New test.
574 * testsuite/libgomp.c/loop-7.c: New test.
575 * testsuite/libgomp.c/loop-8.c: New test.
576 * testsuite/libgomp.c/loop-9.c: New test.
577 * testsuite/libgomp.c/nested-3.c: New test.
578 * testsuite/libgomp.c/nestedfn-6.c: New test.
579 * testsuite/libgomp.c/sort-1.c: New test.
580 * testsuite/libgomp.c/task-1.c: New test.
581 * testsuite/libgomp.c/task-2.c: New test.
582 * testsuite/libgomp.c/task-3.c: New test.
583 * testsuite/libgomp.c/task-4.c: New test.
584 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
585 to C++ testsuite default compiler options.
586 * testsuite/libgomp.c++/collapse-1.C: New test.
587 * testsuite/libgomp.c++/collapse-2.C: New test.
588 * testsuite/libgomp.c++/ctor-10.C: New test.
589 * testsuite/libgomp.c++/for-1.C: New test.
590 * testsuite/libgomp.c++/for-2.C: New test.
591 * testsuite/libgomp.c++/for-3.C: New test.
592 * testsuite/libgomp.c++/for-4.C: New test.
593 * testsuite/libgomp.c++/for-5.C: New test.
594 * testsuite/libgomp.c++/loop-8.C: New test.
595 * testsuite/libgomp.c++/loop-9.C: New test.
596 * testsuite/libgomp.c++/loop-10.C: New test.
597 * testsuite/libgomp.c++/task-1.C: New test.
598 * testsuite/libgomp.c++/task-2.C: New test.
599 * testsuite/libgomp.c++/task-3.C: New test.
600 * testsuite/libgomp.c++/task-4.C: New test.
601 * testsuite/libgomp.c++/task-5.C: New test.
602 * testsuite/libgomp.c++/task-6.C: New test.
603 * testsuite/libgomp.fortran/allocatable1.f90: New test.
604 * testsuite/libgomp.fortran/allocatable2.f90: New test.
605 * testsuite/libgomp.fortran/allocatable3.f90: New test.
606 * testsuite/libgomp.fortran/allocatable4.f90: New test.
607 * testsuite/libgomp.fortran/collapse1.f90: New test.
608 * testsuite/libgomp.fortran/collapse2.f90: New test.
609 * testsuite/libgomp.fortran/collapse3.f90: New test.
610 * testsuite/libgomp.fortran/collapse4.f90: New test.
611 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
612 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
613 * testsuite/libgomp.fortran/lib4.f90: New test.
614 * testsuite/libgomp.fortran/lock-1.f90: New test.
615 * testsuite/libgomp.fortran/lock-2.f90: New test.
616 * testsuite/libgomp.fortran/nested1.f90: New test.
617 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
618 * testsuite/libgomp.fortran/strassen.f90: New test.
619 * testsuite/libgomp.fortran/tabs1.f90: New test.
620 * testsuite/libgomp.fortran/tabs2.f: New test.
621 * testsuite/libgomp.fortran/task1.f90: New test.
622 * testsuite/libgomp.fortran/task2.f90: New test.
623 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
624 * testsuite/libgomp.fortran/vla5.f90: Likewise.
625 * testsuite/libgomp.c/pr26943-2.c: Likewise.
626 * testsuite/libgomp.c/pr26943-3.c: Likewise.
627 * testsuite/libgomp.c/pr26943-4.c: Likewise.
629 2008-05-23 Jakub Jelinek <jakub@redhat.com>
632 * testsuite/libgomp.c++/ctor-11.C: New test.
633 * testsuite/libgomp.c++/ctor-12.C: New test.
635 2008-05-15 Janis Johnson <janis187@us.ibm.com>
637 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
639 2008-05-07 Jakub Jelinek <jakub@redhat.com>
642 * testsuite/libgomp.c/atomic-5.c: New test.
643 * testsuite/libgomp.c/atomic-6.c: New test.
644 * testsuite/libgomp.c/autopar-1.c: New test.
646 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
648 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
649 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
650 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
651 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
652 * configure: Regenerate.
653 * Makefile.in, testsuite/Makefile.in: Likewise.
655 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
658 * aclocal.m4: Regenerate.
659 * configure: Regenerate.
661 2008-03-18 Jakub Jelinek <jakub@redhat.com>
664 * testsuite/libgomp.c/atomic-4.c: New test.
667 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
668 (gomp_iter_guided_next): Likewise.
669 * testsuite/libgomp.c/pr35625.c: New test.
671 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
673 * aclocal.m4: Regenerate.
674 * configure: Likewise.
675 * Makefile.in: Likewise.
676 * testsuite/Makefile.in: Likewise.
678 2008-03-13 Jakub Jelinek <jakub@redhat.com>
681 * testsuite/libgomp.c++/pr35185.C: New test.
683 2008-03-12 Jakub Jelinek <jakub@redhat.com>
686 * testsuite/libgomp.c/pr35549.c: New test.
688 2008-03-06 Jakub Jelinek <jakub@redhat.com>
690 * testsuite/libgomp.c/atomic-3.c: New test.
692 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
695 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
698 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
701 * configure.ac: Add ACX_HEADER_STRING.
702 * env.c: Include strings.h.
703 * aclocal.m4: Regenerate.
704 * config.h.in: Regenerate.
705 * configure: Regenerate.
706 * Makefile.in: Regenerate.
707 * testsuite/Makefile.in: Regenerate.
709 2008-02-15 Jakub Jelinek <jakub@redhat.com>
712 * testsuite/libgomp.c/pr35196.c: New test.
715 * testsuite/libgomp.fortran/pr35130.f90: New test.
716 * testsuite/libgomp.c/pr35130.c: New test.
718 2008-01-25 Jakub Jelinek <jakub@redhat.com>
721 * testsuite/libgomp.c/pr33880.c: New test.
722 * testsuite/libgomp.fortran/pr33880.f90: New test.
724 2008-01-24 David Edelsohn <edelsohn@gnu.org>
726 * configure: Regenerate.
728 2008-01-08 Jakub Jelinek <jakub@redhat.com>
730 * configure.ac: Move futex checking into ../config/futex.m4.
731 * configure: Rebuilt.
732 * aclocal.m4: Rebuilt.
733 * Makefile.in: Rebuilt.
735 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
736 2007-10-15 ../config/tls.m4 change.
738 2007-12-19 Jakub Jelinek <jakub@redhat.com>
741 * testsuite/libgomp.c/pr34513.c: New test.
742 * testsuite/libgomp.c++/pr34513.C: New test.
744 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
747 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
749 2007-12-04 Jakub Jelinek <jakub@redhat.com>
751 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
753 2007-12-03 Jakub Jelinek <jakub@redhat.com>
755 * testsuite/libgomp.c/private-1.c: New test.
757 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
758 Paolo Bonzini <bonzini@gnu.org>
760 * Makefile.am: Use space as vpath separator. Use 'vpath %'
761 instead of 'VPATH ='.
762 * Makefile.in: Regenerate.
764 2007-11-23 Matthias Klose <doko@ubuntu.com>
766 * configure.ac: Adjust makeinfo version check.
767 * configure: Regenerate.
769 2007-11-10 Jakub Jelinek <jakub@redhat.com>
772 * testsuite/libgomp.fortran/pr34020.f90: New test.
774 2007-11-06 Jakub Jelinek <jakub@redhat.com>
777 * testsuite/libgomp.c++/atomic-1.C: New test.
779 2007-10-25 Jakub Jelinek <jakub@redhat.com>
782 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
783 Make x and y integers rather than (implicit) reals. Add private (j)
784 clause to the last omp parallel.
786 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
788 * configure: Regenerate following changes to ../config/tls.m4.
790 2007-09-28 Jakub Jelinek <jakub@redhat.com>
792 * testsuite/libgomp.fortran/stack.f90: New test.
794 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
796 * config/mingw32/proc.c: New file.
798 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
800 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
801 (main): Use __get_cpuid to get i386 target fetaures.
802 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
803 (main): Use __get_cpuid to get x86_64 target fetaures.
805 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
808 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
809 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
811 2007-07-12 Jakub Jelinek <jakub@redhat.com>
814 * testsuite/libgomp.fortran/pr32550.f90: New test.
815 * testsuite/libgomp.fortran/crayptr2.f90: New test.
817 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
819 * aclocal.m4: Regenerated.
821 2007-07-05 Tobias Burnus <burnus@net-b.de>
824 * testsuite/libgomp.fortran/pr32359.f90: New.
826 2007-07-02 Jakub Jelinek <jakub@redhat.com>
829 * sections.c (GOMP_parallel_sections_start): Only decrease
830 number of threads to COUNT if dyn_var is true.
831 * testsuite/libgomp.c/pr32468.c: New test.
833 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
836 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
838 2007-06-21 Jakub Jelinek <jakub@redhat.com>
841 * testsuite/libgomp.c/pr32362-1.c: New test.
842 * testsuite/libgomp.c/pr32362-2.c: New test.
843 * testsuite/libgomp.c/pr32362-3.c: New test.
845 2007-06-07 Jakub Jelinek <jakub@redhat.com>
847 * team.c (gomp_team_start): Fix setting up thread_attr
850 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
852 * configure: Regenerate.
854 2007-05-23 Steve Ellcey <sje@cup.hp.com>
856 * Makefile.in: Regenerate.
857 * configure: Regenerate.
858 * aclocal.m4: Regenerate.
859 * testsuite/Makefile.in: Regenerate.
861 2007-05-04 Jakub Jelinek <jakub@redhat.com>
863 * config/linux/proc.c: New file.
866 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
868 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
870 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
872 2007-04-16 Matthias Klose <doko@debian.org>
874 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
875 flags if not building with -m64.
876 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
877 flag for i?86-*-* targets, if current target matches -m64.
879 2007-04-14 Steve Ellcey <sje@cup.hp.com>
881 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
882 * Makefile.in: Regenerate.
884 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
887 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
889 * testsuite/libgomp.fortran/fortran.exp: Likewise.
891 2007-04-04 Jakub Jelinek <jakub@redhat.com>
893 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
895 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
896 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
897 (parse_affinity): New function.
898 (initialize_env): Call it and gomp_init_affinity.
899 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
900 create new pthread_attr_t and call gomp_init_thread_affinity
901 on it for each thread before passing the attribute to pthread_create.
902 * config/linux/affinity.c: New file.
903 * config/posix/affinity.c: New file.
904 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
905 * configure: Rebuilt.
906 * config.h.in: Rebuilt.
907 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
908 * Makefile.in: Rebuilt.
910 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
912 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
914 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
917 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
919 * testsuite/config/default.exp: New file.
920 * testsuite/lib/libgomp.exp: New file.
921 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
922 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
923 load_lib *, load_gcc_lib *): Move to libgomp.exp.
924 (libgomp_load): Remove.
925 * testsuite/lib/libgomp.exp (libgomp_init): Compute
926 always_ld_library_path, not ld_library_path. Set additional_flags
927 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
928 (target_compile): Do not call libgomp_init. Append lang_library_path
929 and lang_link_flags to options.
930 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
931 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
933 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
934 always_ld_library_path. Set LD_LIBRARY_PATH here.
935 * testsuite/libgomp.fortran/fortran.exp: Ditto.
936 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
937 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
939 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
940 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
941 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
942 * testsuite/libgomp.c/pr29947-1.c: Ditto.
943 * testsuite/libgomp.c/atomic-10.c: Ditto.
945 2007-03-21 Jakub Jelinek <jakub@redhat.com>
947 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
948 dg-final cleanup-modules line.
949 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
950 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
951 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
952 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
953 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
954 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
955 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
957 2007-03-18 Andreas Schwab <schwab@suse.de>
959 * acinclude.m4: Adjust regular expression for ld version
961 * configure: Regenerate.
963 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
965 * Makefile.am: Add install-pdf target as copied from
966 automake v1.10 rules.
967 * Makefile.in: Regenerate
969 2007-02-07 Jakub Jelinek <jakub@redhat.com>
972 * configure: Regenerate.
975 * testsuite/libgomp.c++/pr30703.C: New test.
977 2007-02-02 Jakub Jelinek <jakub@redhat.com>
980 2006-07-05 Eric Christopher <echristo@apple.com>
981 * configure.ac: Depend addition of -pthread on host OS.
982 * configure: Regenerate.
984 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
986 * libgomp.texi: Fix spacing after abbreviations.
988 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
991 * configure.ac: Add check for makeinfo
992 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
993 if an appropiate version of makeinfo is found.
994 * aclocal.m4: Regenerated.
995 * configure: Regenerated.
996 * Makefile.in: Regenerated.
997 * testsuite/Makefile.in: Regenerated.
999 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1002 * libgomp.texi: More about implementation-dependent settings.
1004 2007-01-26 Tobias Burnus <burnus@net-b.de>
1006 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1008 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1011 * testsuite/libgomp.c/pr30494.c: New test.
1013 2007-01-15 Tom Tromey <tromey@redhat.com>
1015 * configure: Rebuilt.
1016 * configure.ac: Fixed comment.
1018 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1020 * libgomp.texi: Document implementation specific default values of
1021 environment variables.
1023 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1026 * libgomp.texi: New file.
1027 * configure.ac: Add --enable-generated-files-in-srcdir option.
1028 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1030 * Makefile.in: Regenerated.
1031 * config.h.in: Regenerated.
1032 * testsuite/Makefile.in: Regenerated.
1035 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1038 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1040 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1042 * configure: Regenerate.
1044 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1047 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1048 start if there shouldn't be any loop iterations.
1049 (gomp_loop_ordered_static_start): Remove start == end test.
1050 * testsuite/libgomp.c/pr29947-1.c: New test.
1051 * testsuite/libgomp.c/pr29947-2.c: New test.
1053 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1055 * configure.tgt: Force initial-exec TLS model on Linux only.
1057 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1059 * configure: Regenerated.
1061 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1063 * env.c (parse_schedule): Reject out of range values.
1064 (parse_unsigned_long): Reject out of range, negative or zero values.
1066 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1069 * testsuite/libgomp.fortran/pr29629.f90: New test.
1071 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1074 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1075 * config/posix95: New directory.
1076 * config/posix95/omp-lock.h: New file.
1077 * config/posix95/lock.c: Likewise.
1079 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1081 * aclocal.m4: Regenerate.
1082 * configure: Regenerate.
1084 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1086 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1089 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1091 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1093 * configure: Regenerate.
1094 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1096 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1100 * testsuite/libgomp.c/nestedfn-4.c: New test.
1101 * testsuite/libgomp.c/nestedfn-5.c: New test.
1102 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1105 * testsuite/libgomp.fortran/condinc1.f: New test.
1106 * testsuite/libgomp.fortran/condinc2.f: New test.
1107 * testsuite/libgomp.fortran/condinc3.f90: New test.
1108 * testsuite/libgomp.fortran/condinc4.f90: New test.
1109 * testsuite/libgomp.fortran/condinc1.inc: New file.
1111 2006-09-18 Tom Tromey <tromey@redhat.com>
1113 * configure: Rebuilt.
1115 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1118 PR preprocessor/14634
1119 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1121 * configure: Regenerate.
1123 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1125 * testsuite/libgomp.fortran/reduction3.f90: Change
1126 -2147483648 to -huge(i)-1 to avoid overflow.
1127 * testsuite/libgomp.fortran/reduction4.f90: Change
1128 Z'ffffffff' to not(0) to avoid overflow.
1130 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1133 * Makefile.am (libsubincludedir): New.
1134 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1135 * Makefile.in: Regenerate.
1137 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1140 * env.c: Include ctype.h.
1141 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1142 leading and/or trailing whitespace and compare strings case
1145 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1148 * testsuite/libgomp.fortran/pr28390.f: New test.
1150 2006-07-05 Eric Christopher <echristo@apple.com>
1152 * configure.ac: Depend addition of -pthread on host OS.
1153 * configure: Regenerate.
1155 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1157 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1158 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1161 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1165 * configure.ac: If neither --enable-linux-futex nor
1166 --disable-linux-futex is passed, determine the default by checking
1167 for compiling and/or running against NPTL. With --enable-linux-futex,
1168 check if SYS_gettid and SYS_futex are defined.
1169 * configure: Rebuilt.
1171 2006-06-14 Richard Henderson <rth@redhat.com>
1174 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1175 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1177 2006-06-09 Richard Henderson <rth@redhat.com>
1179 * env.c (gomp_nthreads_var): Change to unsigned long.
1180 (gomp_run_sched_chunk): Likewise.
1181 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1182 (initialize_env): Initialize gomp_thread_attr.
1183 * libgomp.h (gomp_nthreads_var): Update decl.
1184 (gomp_run_sched_chunk): Likewise.
1185 (gomp_thread_attr): Declare.
1186 * team.c (gomp_thread_attr): Export.
1187 (initialize_team): Don't initialize it.
1189 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1192 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1193 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1195 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1197 * config/mingw32/time.c: New file.
1198 * configure.tgt: Use it.
1200 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1202 * Makefile.am: Add install-html target. Add install-html to .PHONY
1203 * Makefile.in: Regenerate.
1205 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1208 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1209 * testsuite/libgomp.c/critical-1.c: Likewise.
1210 * testsuite/libgomp.c/loop-1.c: Likewise.
1211 * testsuite/libgomp.c/loop-2.c: Likewise.
1212 * testsuite/libgomp.c/single-1.c: Likewise.
1213 * testsuite/libgomp.c/ordered-1.c: Likewise.
1214 * testsuite/libgomp.c/ordered-2.c: Likewise.
1216 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1219 * libgomp.fortran/pr27416-1.f90: New test.
1221 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1224 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1225 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1227 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1230 * testsuite/libgomp.c/pr26943-1.c: New test.
1231 * testsuite/libgomp.c/pr26943-2.c: New test.
1232 * testsuite/libgomp.c/pr26943-3.c: New test.
1233 * testsuite/libgomp.c/pr26943-4.c: New test.
1234 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1235 * testsuite/libgomp.c++/pr26943.C: New test.
1237 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1240 * testsuite/libgomp.c++/pr27337.C: New test.
1242 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1245 * testsuite/libgomp.c/pr26171.c: New test.
1247 2006-04-25 Richard Henderson <rth@redhat.com>
1250 * configure.ac: Use GCC_CHECK_TLS.
1251 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1252 * Makefile.in, aclocal.m4, configure: Regenerate.
1254 2006-04-10 Matthias Klose <doko@debian.org>
1256 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1257 directory names containing underscores.
1259 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1262 * testsuite/libgomp.c++/pr26691.C: New test.
1264 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1266 * testsuite/libgomp.fortran/retval2.f90: New test.
1268 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1270 * testsuite/libgomp.c++: New directory.
1272 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1274 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1275 * config/posix/sem.c: Implement the above.
1277 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1279 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1280 define HAVE_BROKEN_POSIX_SEMAPHORES.
1281 * configure: Rebuilt.
1282 * config.h.in: Rebuilt.
1284 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1287 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1288 for the other pthread check.
1289 * configure: Regenerate.
1290 * config.h.in: Regenerate.
1292 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1296 * Makefile.am (fincludedir): New variable.
1297 (nodist_include_HEADERS): Remove Fortran files.
1298 (nodist_finclude_HEADERS): New variable.
1299 * Makefile.in: Regenerated.
1301 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1303 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1304 Remove tests for returning assumed character length arrays.
1306 2006-02-12 Roger Sayle <roger@eyesopen.com>
1307 John David Anglin <dave@hiauly1.hia.nrc.ca>
1310 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1312 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1314 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1316 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1318 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1319 part of LD_LIBRARY_PATH manually.
1321 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1324 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1327 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1330 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1331 * configure.ac (PERL): Don't set.
1332 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1333 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1334 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1335 * omp.h.in: Wrap the new configure substitutions with @ characters.
1336 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1337 * aclocal.m4, configure, Makefile.in: Regenerate.
1338 * mkomp_h.pl: Delete.
1340 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1343 * configure.ac: Use GCC_HEADER_STDINT.
1344 * libgomp.h: Include gstdint.h.
1345 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1346 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1348 2006-01-24 Richard Henderson <rth@redhat.com>
1351 * configure.ac: Add AM_MAINTAINER_MODE.
1352 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1354 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1356 * Makefile.in: Regenerate.
1357 * testsuite/Makefile.in: Regenerate.
1358 * aclocal.m4: Regenerate.
1360 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1362 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1364 * configure.ac: Add check for loadavg.h.
1365 (link_gomp): Adjust comment.
1366 * configure: Regenerate.
1367 * config.h.in: Regenerate.
1369 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1372 * configure.ac: Remove check for alloca.h.
1373 * configure: Regenerate.
1374 * config.h.in: Regenerate.
1375 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1376 * team.c: Remove use of alloca.h.
1377 Call gomp_alloca instead of alloca.
1379 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1382 * team.c: Add include of alloca.h.
1383 * configure.ac: Add check for alloca.h.
1384 * configure: Regenerate.
1385 * config.h.in: Regenerate.
1387 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1390 * testsuite/libgomp.fortran/pr25219.f90: New test.
1392 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1394 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1395 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1396 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1397 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1398 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1399 testsuite/libgomp.fortran/threadprivate1.f90,
1400 testsuite/libgomp.fortran/threadprivate2.f90,
1401 testsuite/libgomp.fortran/threadprivate3.f90,
1402 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1403 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1404 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1405 effective-target to TLS runtime.
1407 * testsuite/libgomp.fortran/pr25162.f: Require
1408 effective-target TLS runtime.
1410 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1412 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1413 * testsuite/libgomp.c/nestedfn-3.c: New test.
1415 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1418 * testsuite/libgomp.fortran/pr25162.f: New test.
1420 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1422 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1423 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1425 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1427 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1428 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1429 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1430 single.c, team.c, work.c, config/linux/alpha/futex.h,
1431 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1432 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1433 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1434 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1435 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1436 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1437 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1440 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1442 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1443 to nodist_noinst_HEADERS.
1444 * Makefile.in: Rebuilt.
1446 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1447 add integer count field.
1448 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1449 omp_nest_lock_t type change.
1450 (omp_init_nest_lock): Likewise. Initialize count to 0.
1451 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1453 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1455 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1456 Increment count if successful and return the new nesting level.
1457 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1458 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1459 * testsuite/libgomp.c/lib-1.c: New test.
1460 * testsuite/libgomp.fortran/lib1.f90: New test.
1461 * testsuite/libgomp.fortran/lib2.f: New test.
1462 * testsuite/libgomp.fortran/lib3.f: New test.
1464 2005-11-17 Richard Henderson <rth@redhat.com>
1467 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1468 * configure.ac (link_gomp): New. Substitute it.
1469 (AC_CONFIG_FILES): Add libgomp.spec.
1470 * libgomp.spec.in: New file.
1471 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1472 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1474 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1476 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1477 reduction(-:var) behaving the same as reduction(+:var).
1478 * testsuite/libgomp.c/reduction-4.c: New test.
1480 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1482 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1483 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1484 testsuite/libgomp.c/copyin-3.c,
1485 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1486 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1487 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1488 testsuite/libgomp.c++/pr24455.C,
1489 testsuite/libgomp.fortran/threadprivate1.f90,
1490 testsuite/libgomp.fortran/threadprivate2.f90,
1491 testsuite/libgomp.fortran/threadprivate3.f90,
1492 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1493 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1494 testsuite/libgomp.fortran/omp_parse3.f90: Require
1495 effective-target TLS.
1497 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1501 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1504 * team.c (initialize_team): Pass NULL rather than free as
1505 pthread_key_create destructor. Initialize thread specific data
1506 pointer in initial thread to a static local variable rather than
1509 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1511 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1512 its location to ld_library_path.
1514 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1516 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1518 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1520 * testsuite/libgomp.c: Rename from libgomp.dg.
1522 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1524 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1525 threadprivate variable 'i'.
1527 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1529 * config/linux/s390/futex.h: New file.
1530 * configure.tgt: Use it.
1532 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1533 before the parallel.
1535 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1538 * testsuite/libgomp.c++/master-1.C: New test.
1540 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1542 * testsuite/libgomp.dg/copyin-3.c: New test.
1544 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1546 * testsuite/libgomp.fortran/retval1.f90: New test.
1547 * testsuite/libgomp.fortran/vla7.f90: New test.
1549 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1551 * testsuite/libgomp.fortran/vla2.f90: New test.
1552 * testsuite/libgomp.fortran/vla3.f90: New test.
1553 * testsuite/libgomp.fortran/vla4.f90: New test.
1554 * testsuite/libgomp.fortran/vla5.f90: New test.
1555 * testsuite/libgomp.fortran/vla6.f90: New test.
1557 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1559 * config/linux/sparc/futex.h: New file.
1560 * configure.tgt: Use it.
1561 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1563 * critical.c: Include stdlib.h.
1564 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1565 ignoring return value.
1566 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1567 LIBGOMP_CHECK_SYNC_BUILTINS check.
1568 * configure: Rebuilt.
1570 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1572 * testsuite/libgomp.fortran/vla1.f90: New test.
1574 2005-10-31 Richard Henderson <rth@redhat.com>
1576 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1577 setting 's' in different threads.
1579 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1581 * libgomp.h (attribute_hidden, ialias): Define.
1582 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1583 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1584 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1585 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1586 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1587 omp_test_lock, omp_test_nest_lock): Likewise.
1588 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1589 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1590 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1591 omp_test_lock, omp_test_nest_lock): Likewise.
1592 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1593 omp_get_dynamic, omp_get_nested): Likewise.
1594 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1595 omp_get_thread_num, omp_in_parallel): Likewise.
1596 * fortran.c (ialias_redirect): Define.
1597 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1598 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1599 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1600 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1601 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1602 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1603 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1604 omp_get_wtime): Add ialias_redirect.
1606 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1608 * fortran.c: Include stdlib.h.
1610 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1612 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1613 * Makefile.in: Regenerated.
1615 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1617 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1618 * libgomp_f.h.in (omp_check_defines): New function.
1619 * env.c: Include libgomp_f.h.
1620 (initialize_env): Call omp_check_defines.
1622 * testsuite/libgomp.dg/copyin-2.c: New test.
1623 * testsuite/libgomp.c++/copyin-2.C: New test.
1624 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1626 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1627 * testsuite/libgomp.fortran/sharing2.f90: New test.
1629 * testsuite/libgomp.dg/copyin-1.c: New test.
1630 * testsuite/libgomp.c++/copyin-1.C: New test.
1632 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1634 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1636 * testsuite/libgomp.fortran/workshare1.f90: New test.
1638 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1640 * libgomp.fortran/sharing1.f90: New test.
1642 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1645 * testsuite/libgomp.c++/loop-7.C: New test.
1647 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1649 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1650 * testsuite/libgomp.fortran/reduction6.f90: New test.
1651 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1653 2005-10-23 Richard Henderson <rth@redhat.com>
1655 * testsuite/libgomp.c++/ctor-1.C: New.
1656 * testsuite/libgomp.c++/ctor-2.C: New.
1657 * testsuite/libgomp.c++/ctor-3.C: New.
1658 * testsuite/libgomp.c++/ctor-4.C: New.
1659 * testsuite/libgomp.c++/ctor-5.C: New.
1660 * testsuite/libgomp.c++/ctor-6.C: New.
1661 * testsuite/libgomp.c++/ctor-7.C: New.
1662 * testsuite/libgomp.c++/ctor-8.C: New.
1663 * testsuite/libgomp.c++/ctor-9.C: New.
1665 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1668 * testsuite/libgomp.c++/pr24455-1.C: New test.
1669 * testsuite/libgomp.c++/pr24455.C: New test.
1670 * testsuite/libgomp.dg/pr24455-1.c: New test.
1671 * testsuite/libgomp.dg/pr24455.c: New test.
1673 2005-10-20 Richard Henderson <rth@redhat.com>
1675 * testsuite/libgomp.c++/loop-6.C: New.
1676 * testsuite/libgomp.dg/loop-3.c: New.
1678 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1680 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1682 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1685 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1687 * testsuite/libgomp.fortran/jacobi.f: New test.
1689 2005-10-19 Richard Henderson <rth@redhat.com>
1691 * configure.tgt (i?86-linux): Default to with_arch instead of
1692 CFLAGS. Add -mtune to match target_cpu.
1693 (x86_64-linux): Tune to i686.
1695 * fortran.c (omp_test_nest_lock_): Fix typo.
1697 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1699 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1700 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1701 * testsuite/libgomp.dg/ordered-3.c: New test.
1703 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1704 Remove volatile keyword.
1706 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1707 in COMMON block to avoid warnings on 64-bit targets.
1709 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1711 * testsuite/libgomp.dg/shared-3.c: New test.
1713 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1715 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1716 * testsuite/libgomp.fortran/reduction5.f90: New test.
1718 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1720 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1722 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1723 flush loop now that __sync_synchronize has proper memory barrier.
1724 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1725 Add -ffixed-form to dg-options.
1727 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1729 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1730 from subdirectories.
1731 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1732 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1733 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1734 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1735 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1736 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1737 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1738 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1739 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1740 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1741 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1742 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1743 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1744 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1745 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1746 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1747 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1748 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1749 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1750 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1751 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1752 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1753 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1754 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1755 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1757 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1759 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1760 lang_library_path exists. Use find instead of glob to gather tests.
1761 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1763 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1765 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1766 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1767 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1768 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1769 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1770 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1771 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1772 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1773 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1774 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1775 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1776 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1777 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1779 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1781 * testsuite/libgomp.dg/vla-1.c: New test.
1783 * testsuite/libgomp.fortran/reference2.f90: New test.
1785 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1786 declaration of omp_get_thread_num.
1787 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1790 * testsuite/libgomp.fortran/reduction1.f90: New test.
1791 * testsuite/libgomp.fortran/reduction2.f90: New test.
1792 * testsuite/libgomp.fortran/reduction3.f90: New test.
1793 * testsuite/libgomp.fortran/reduction4.f90: New test.
1795 2005-10-13 Richard Henderson <rth@redhat.com>
1797 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1798 * Makefile.in: Regenerate.
1799 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1800 * libgomp.h: Include bar.h.
1801 (struct gomp_barrier): Remove.
1802 (struct gomp_team): Add barrier. Replace master_barrier with
1803 master_release. Replace threads with ordered_release.
1804 (struct gomp_thread): Replace barrier with release.
1805 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1806 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1807 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1808 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1809 (GOMP_single_copy_end): Likewise.
1810 * team.c (gomp_threads_dock): New.
1811 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1812 (gomp_thread_start): Use gomp_barrier_wait.
1813 (new_team, free_team): Update for gomp_team changes.
1814 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1815 (gomp_team_end): Use gomp_barrier_wait.
1816 (initialize_team): Update for gomp_thread changes.
1817 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1818 (gomp_work_share_end_nowait): Use atomic ops when available.
1819 * config/linux/bar.c, config/linux/bar.h: New files.
1820 * config/posix/bar.c, config/posix/bar.h: New files.
1822 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1824 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1825 * testsuite/libgomp.dg/single-2.c: New test.
1827 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1828 lang_link_flags): Unset, so that they aren't inherited from previously
1831 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1833 2005-10-12 Richard Henderson <rth@redhat.com>
1835 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1836 (libgomp_init): Use lang_test_file, lang_library_path, and
1837 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1839 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1840 (lang_test_file, lang_link_flags): New.
1841 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1843 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1844 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1845 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1846 testsuite/libgomp.c++/parallel-1.C,
1847 testsuite/libgomp.c++/reduction-1.C,
1848 testsuite/libgomp.c++/reduction-2.C,
1849 testsuite/libgomp.c++/reduction-3.C,
1850 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1851 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1852 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1853 New files, largely cribbed from the C testsuite.
1855 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1857 * testsuite/libgomp.fortran/character1.f90: New test.
1858 * testsuite/libgomp.fortran/character2.f90: New test.
1860 * testsuite/libgomp.dg/nested-1.c: New test.
1861 * testsuite/libgomp.dg/nested-2.c: New test.
1862 * testsuite/libgomp.fortran/do1.f90: New test.
1863 * testsuite/libgomp.fortran/do2.f90: New test.
1865 * testsuite/libgomp.fortran/reference1.f90: New test.
1867 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1869 * testsuite/libgomp.dg/reduction-1.c: New test.
1870 * testsuite/libgomp.dg/reduction-2.c: New test.
1871 * testsuite/libgomp.dg/reduction-3.c: New test.
1873 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1875 * testsuite/libgomp.dg/atomic-1.c: New test.
1876 * testsuite/libgomp.dg/atomic-2.c: New test.
1878 2005-10-09 Richard Henderson <rth@redhat.com>
1880 * critical.c (atomic_lock): New.
1881 (initialize_critical): Initialize it.
1882 (GOMP_atomic_start, GOMP_atomic_end): New.
1883 * libgomp.map: Export them.
1884 * libgomp_g.h: Declare them.
1886 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1888 2005-10-02 Richard Henderson <rth@redhat.com>
1890 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1891 to XCFLAGS instead of CFLAGS.
1893 2005-09-30 Richard Henderson <rth@redhat.com>
1895 * configure.ac: Determine whether -pthread or -lpthread is needed.
1896 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1897 * Makefine.in, configure: Rebuild.
1899 2005-09-28 Richard Henderson <rth@redhat.com>
1901 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1902 * testsuite/libgomp.dg/omp-single-3.c: New test.
1904 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1906 * testsuite/libgomp.dg/omp-single-2.c: New test.
1907 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1909 2005-09-27 Richard Henderson <rth@redhat.com>
1911 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1912 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1914 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1916 * testsuite/libgomp.dg/omp-loop03.c: New test.
1918 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1920 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1922 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1924 * testsuite/libgomp.dg/omp-single-1.c: New test.
1925 * testsuite/libgomp.dg/shared-1.c: Return 0.
1926 Add prototype for abort.
1927 * testsuite/libgomp.dg/shared-2.c: Likewise.
1929 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1931 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1934 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1936 * testsuite/libgomp.dg/shared-1.c: New test.
1937 * testsuite/libgomp.dg/shared-2.c: New test.
1939 2005-09-24 Richard Henderson <rth@redhat.com>
1941 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1943 2005-09-24 Richard Henderson <rth@redhat.com>
1945 * iter.c (gomp_iter_static_next): Round up when computing number
1946 of iterations. Don't bother distributing a remainder equally.
1948 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1949 Don't call srand. Zero b before testing.
1952 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1954 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1955 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1957 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1959 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1960 without !$omp end do, followed immediately by subroutine end.
1962 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1964 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1966 2005-09-22 Richard Henderson <rth@redhat.com>
1968 * critical.c (GOMP_critical_name_start): Change argument to void**.
1969 Reuse the pointer space if the mutex fits.
1970 (GOMP_critical_name_end): Likewise.
1971 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1972 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1973 (GOMP_critical_name_end): Likewise.
1974 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1975 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1977 2005-09-20 Richard Henderson <rth@redhat.com>
1979 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1980 (create_lock_lock): New.
1981 (initialize_critical): Initialize it.
1982 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1983 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1985 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1987 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1989 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1991 * testsuite/libgomp.dg/omp-loop01.c: New test.
1992 * testsuite/libgomp.dg/omp-loop02.c: New test.
1994 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1996 * configure.ac (AC_PROG_FC): Add.
1997 (USE_FORTRAN): New automake conditional.
1998 * configure: Rebuilt.
1999 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2000 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2001 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2002 Add rules to build them.
2003 * Makefile.in: Rebuilt.
2004 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2006 * libgomp.map: Add Fortran wrappers.
2007 * libgomp_f.h.in: New file.
2008 * omp_lib.h.in: New file.
2009 * omp_lib.f90.in: New file.
2010 * fortran.c: New file.
2011 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2012 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2013 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2014 libgfortran has been built.
2015 * testsuite/libgomp.fortran/fortran.exp: New file.
2016 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2017 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2018 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2019 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2020 * testsuite/libgomp.fortran/omp_hello.f: New test.
2021 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2022 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2023 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2024 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2025 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2026 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2027 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2028 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2030 2005-08-30 Richard Henderson <rth@redhat.com>
2032 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2033 function for when aliases are not usable.
2034 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2035 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2036 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2037 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2038 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2039 GOMP_loop_ordered_guided_next): Likewise.
2040 * ordered.c (GOMP_ordered_start): Likewise.
2042 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2044 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2045 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2046 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2047 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2048 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2049 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2050 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2051 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2052 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2054 2005-07-07 Eric Christopher <echristo@redhat.com>
2055 Diego Novillo <dnovillo@redhat.com>
2057 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2058 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2060 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2061 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2062 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2063 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2064 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2065 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2066 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2068 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2070 * TOPLEVEL.patch: Remove.
2072 2005-05-16 Richard Henderson <rth@redhat.com>
2074 * configure.ac: Test for clock_gettime.
2075 * config.h.in, configure: Rebuild.
2076 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2077 (omp_get_wtime): Use clock_gettime if available.
2078 (omp_get_wtick): Use clock_getres if available.
2080 2005-05-11 Richard Henderson <rth@redhat.com>
2082 * config/linux/ia64/futex.h: New file.
2083 * configure.tgt: Use it.
2085 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2087 2005-05-07 Richard Henderson <rth@redhat.com>
2089 * config/linux/powerpc/futex.h: New file.
2090 * configure.tgt: Use it.
2092 * config/linux/i486/futex.h: Merge ...
2093 * config/linux/x86_64/futex.h: ... into ...
2094 * config/linux/x86/futex.h: ... here.
2095 * configure.tgt: Update to match.
2097 2005-05-06 Richard Henderson <rth@redhat.com>
2099 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2100 * config/linux/i486/futex.h: Likewise.
2101 * config/linux/x86_64/futex.h: Likewise.
2103 * config/linux/lock.c: New file.
2104 * config/linux/omp-lock.h: New file.
2106 * critical.c, env.h: Don't include omp.h
2107 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2108 * config/posix/time.c: Likewise.
2109 * config/posix/omp-lock.h: New file.
2110 * libgomp.h: Include omp-lock.h and omp.h.
2111 * Makefile.am (nodist_include_HEADERS): New.
2113 * configure.ac (PERL): New.
2114 * mkomp_h.pl: New file.
2115 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2117 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2119 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2120 build directory. Re-add -march=i486 hack.
2122 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2123 (libgomp_link_flags): Remove.
2124 (libgomp_initialized): Remove.
2125 (libgomp_init): Don't protect from reinitialization. Copy code
2126 from libstdc++ for getting the multilib set correctly.
2128 2005-05-05 Richard Henderson <rth@redhat.com>
2130 * config/linux/alpha/futex.h: New file.
2131 * configure.tgt (alpha*-*-linux*): Use it.
2133 * config/posix/mutex.c: New file.
2134 * config/posix/sem.c: Use libgomp.h.
2136 * configure.tgt (x86_64-linux): Also test CC for -m32.
2137 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2139 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2142 * Makefile.am (SUBDIRS): New.
2143 (libgomp_la_LDFLAGS): Add -lpthread.
2144 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2145 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2147 * libgomp_g.h: New file.
2148 * libgomp.h: Split out all public declarations to libgomp_g.h.
2149 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2150 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2151 * config/linux/sem.h: Likewise.
2152 * config/posix/sem.h: Likewise.
2154 * Makefile.am (AM_LDFLAGS): New.
2155 (libgomp_version_script): Split out from ...
2156 (libgomp_la_LDFLAGS): ... here.
2157 (libgomp_version_info): New.
2158 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2159 (LIBGOMP_ENABLE): New.
2160 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2161 (LIBGOMP_ENABLE_SYMVERS): New.
2162 * configure.ac (AC_INIT): Version 1.0.
2163 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2164 (enable-linux-futex): Likewise. Rename from enable-futex.
2165 (libtool_VERSION): New.
2166 (LIBGOMP_ENABLE_SYMVERS): Use it.
2167 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2168 * Makefile.in, aclocal.m4, configure: Rebuild.
2170 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2171 (gomp_mutex_unlock_slow): Fix typo.
2172 * config/linux/sem.c: Similarly.
2173 (gomp_sem_post_slow): Fix typo.
2174 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2175 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2176 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2178 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2179 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2180 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2181 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2182 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2183 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2184 LDFLAGS. Pull enable_futex check to top-level.
2185 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2186 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2188 First attempt at real configury.
2189 * Makefile, config.h: Remove file.
2190 * Makefile.am, Makefile.in: New file.
2191 * acinclude.m4 aclocal.m4: New file.
2192 * configure.ac, configure.tgt, configure: New file.
2194 * config/posix/lock.c: Rename from sys-lock.c.
2195 * config/posix/mutex.h: Rename from sys-mutex.h.
2196 * config/posix/sem.c: Rename from sys-sem.c.
2197 * config/posix/sem.h: Rename from sys-sem.h.
2198 * config/posix/proc.c: Rename from sys-proc.c.
2199 * config/posix/time.c: Rename from sys-proc.c.
2201 * config/linux/mutex.c: New file.
2202 * config/linux/mutex.h: New file.
2203 * config/linux/sem.c: New file.
2204 * config/linux/sem.h: New file.
2205 * config/linux/i486/futex.h: New file.
2206 * config/linux/x86_64/futex.h: New file.
2208 2005-05-04 Richard Henderson <rth@redhat.com>
2210 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2211 * libgomp.h: Declare them.
2212 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2213 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2215 2005-05-04 Richard Henderson <rth@redhat.com>
2217 * libgomp-1 code drop
2219 2005-05-04 Richard Henderson <rth@redhat.com>
2221 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2222 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2223 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2224 (gomp_iter_static_next): Update.
2225 (gomp_ordered_static_next): Update.
2226 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2227 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2228 totally empty range.
2229 (gomp_loop_ordered_static_next): Refine test for calling
2230 gomp_ordered_static_next.
2231 * testsuite/ordered-1.c: Add case for more threads than iterations.
2233 * iter.c (gomp_iter_runtime_next_locked): Remove.
2234 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2235 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2236 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2237 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2238 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2239 gomp_loop_ordered_guided_next): Downcase name, make static, add
2240 an external alias with the old name.
2241 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2242 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2243 switch and call one of the above static functions.
2244 * libgomp.h: Update.
2246 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2247 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2248 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2249 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2250 GOMP_loop_ordered_guided_start): Update to match.
2251 * sections.c (GOMP_sections_start): Likewise.
2252 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2254 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2255 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2256 Use bounds check instead of modulus.
2257 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2258 (gomp_ordered_last): Don't sync with ordered_owner here.
2259 (gomp_ordered_next): Likewise.
2260 (gomp_ordered_static_loop_next): Likewise.
2261 * loop.c, libgomp.h: Update to match.
2263 * libgomp.h (GOMP_barrier): Declare.
2265 * testsuite/barrier-1.c: New file.
2266 * testsuite/critical-1.c: New file.
2267 * testsuite/ordered-2.c: New file.
2268 * testsuite/ordered-1.c: New file.
2269 * testsuite/sections-1.c: New file.
2270 * testsuite/single-1.c: New file.
2271 * testsuite/Makefile (TESTS): Add them.
2273 2005-05-04 Richard Henderson <rth@redhat.com>
2275 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2276 * loop.c (GOMP_loop_static_start): If not the startup thread,
2277 acquire the mutex to wait for initialization complete.
2278 (GOMP_loop_ordered_static_start): Likewise.
2279 (GOMP_loop_ordered_runtime_start): Likewise.
2280 (GOMP_loop_ordered_static_first): Remove.
2281 (GOMP_loop_ordered_dynamic_first): Remove.
2282 (GOMP_loop_ordered_guided_first): Remove.
2283 (GOMP_loop_ordered_runtime_first): Remove.
2284 * ordered.c (gomp_ordered_loop_first): Post to own release when
2285 we're the first thread.
2286 (gomp_ordered_loop_last): Wait on release if not owner.
2287 (gomp_ordered_loop_next): Likewise.
2288 (gomp_ordered_static_loop_init): New.
2289 (gomp_ordered_static_loop_next): Use ordered_owner.
2290 (GOMP_ordered_start): Likewise.
2291 * work.c (gomp_new_work_share): Initialize ordered_owner.
2293 2005-05-03 Richard Henderson <rth@redhat.com>
2295 * Makefile (OPT): New.
2298 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2299 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2300 * libgomp.h, libgomp.map, NOTES: Update to match.
2302 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2303 Add initialized and thr members.
2304 (gomp_thread_start): Pause when initially spawned to wait for
2305 the whole team to be created.
2306 (gomp_team_start): Release team members at the end.
2308 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2309 (f_foo_1): Use GOMP_loop_end.
2310 (f_foo_2): Use GOMP_loop_end_nowait.
2312 * testsuite/loop-2.c: New file.
2313 * testsuite/Makefile (TESTS): Add it.
2315 2005-05-03 Richard Henderson <rth@redhat.com>
2317 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2318 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2319 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2322 * testsuite/Makefile: New file.
2323 * testsuite/loop-1.c: New file.
2325 2005-05-03 Richard Henderson <rth@redhat.com>
2327 Initial implementation and checkin.