1 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3 * configure: Regenerate.
5 2008-12-08 Jakub Jelinek <jakub@redhat.com>
8 * testsuite/libgomp.c/pr36802-1.c: New test.
9 * testsuite/libgomp.c/pr36802-2.c: New test.
10 * testsuite/libgomp.c/pr36802-3.c: New test.
12 2008-12-01 Janis Johnson <janis187@us.ibm.com>
15 * config/linux/powerpc/mutex.h: New.
17 2008-12-01 Jakub Jelinek <jakub@redhat.com>
20 * testsuite/libgomp.c++/for-7.C: New test.
23 * testsuite/libgomp.c++/for-6.C: New test.
25 2008-11-26 Janis Johnson <janis187@us.ibm.com>
28 * testsuite/lib/libgomp.exp: Include new timeout library files.
29 (libgomp_target_compile): Set timeout value from new proc.
31 2008-11-13 Steve Ellcey <sje@cup.hp.com>
34 * config/linux/ia64/mutex.h: New.
36 2008-11-04 Tobias Burnus <burnus@net-b.de>
39 * libgomp.texi (Runtime library routines, environment variables):
40 Update for OpenMP version 3.0.
42 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
43 Steve Ellcey <sje@cup.hp.com>
45 * configure: Regenerate for new libtool.
47 * testsuite/Makefile.in: Ditto.
49 2008-09-19 Jakub Jelinek <jakub@redhat.com>
50 Andreas Tobler <a.tobler@schweiz.org>
52 * config/bsd/proc.c: New file.
53 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
54 * configure.ac: Check for header <sys/sysctl.h>
55 * configure: Regenerate.
56 * config.h.in: Likewise.
58 2008-09-05 Janis Johnson <janis187@us.ibm.com>
60 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
62 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
64 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
65 * Makefile.in: Regenerated.
66 * testsuite/Makefile.in: Regenerated.
68 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
70 * testsuite/libgomp.exp (libgomp_init): Only set things that
71 depend on blddir if blddir exists.
72 (libgomp_target_compile): Likewise.
73 * testsuite/libgomp.c++/c++.exp: Likewise.
74 * testsuite/libgomp.fortran/fortran.exp: Likewise.
76 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
79 Do not list GPL as Invariant Section.
81 2008-07-28 Ilie Garbacea <ilie@mips.com>
82 Chao-ying Fu <fu@mips.com>
84 * configure.tgt: Enable futex for MIPS.
85 * config/linux/mips/futex.h: New file.
87 2008-07-16 Jakub Jelinek <jakub@redhat.com>
89 * team.c (gomp_team_end): Free team immediately if it has
92 2008-07-08 David Edelsohn <edelsohn@gnu.org>
94 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
95 * testsuite/libgomp.fortran/fortran.exp: Same.
96 * testsuite/libgomp.c/c.exp: Same.
97 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
98 directory to library path first.
100 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
102 * env.c (parse_stacksize): Add cast to avoid warning.
103 (parse_spincount): Likewise.
105 2008-06-27 Jakub Jelinek <jakub@redhat.com>
107 * testsuite/libgomp.c/loop-10.c: New test.
108 * libgomp.c/loop-3.c (main): Add lastprivate clause.
109 * libgomp.c++/loop-6.C (main): Likewise.
112 * testsuite/libgomp.c/debug-1.c: New test.
114 2008-06-19 Jakub Jelinek <jakub@redhat.com>
116 * testsuite/libgomp.c/nqueens-1.c: New test.
119 * testsuite/libgomp.c++/task-7.C: New function.
121 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
123 * configure: Regenerate.
125 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
127 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
128 mutex when HAVE_SYNC_BUILTINS isn't defined.
130 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
132 * libgomp.texi (omp_test_lock): Fix typo.
134 2008-06-12 Tobias Burnus <burnus@net-b.de>
136 * omp_lib.f90.in: Add "implicit none".
138 2008-06-12 Jakub Jelinek <jakub@redhat.com>
141 * testsuite/libgomp.c/reduction-5.c: New test.
143 2008-06-11 Jakub Jelinek <jakub@redhat.com>
145 * libgomp.h (struct gomp_task): Add in_tied_task field.
146 * task.c (gomp_init_task): Initialize it.
147 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
148 unconditionally. Don't call gomp_team_barrier_wake if
149 current task is implicit or if(0) from implicit and number of
150 running tasks is equal to nthreads - 1.
153 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
154 omp_get_team_size_8): Fix pastos.
157 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
158 * configure: Regenerated.
159 * config.h.in: Regenerated.
160 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
163 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
166 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
167 (GOMP_loop_ull_dynamic_start): Likewise.
168 (GOMP_loop_ull_guided_start): Likewise.
169 (GOMP_loop_ull_ordered_static_start): Likewise.
170 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
171 (GOMP_loop_ull_ordered_guided_start): Likewise.
173 2008-06-06 Jakub Jelinek <jakub@redhat.com>
174 Richard Henderson <rth@redhat.com>
175 Ulrich Drepper <drepper@redhat.com>
176 Jakob Blomer <jakob.blomer@ira.uka.de>
178 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
179 Substitute also OMP_*LOCK_25*.
180 * configure: Regenerated.
181 * config.h.in: Regenerated.
182 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
183 ptrlock.c and task.c.
184 * Makefile.in: Regenerated.
185 * testsuite/Makefile.in: Regenerated.
187 * loop_ull.c: New file.
188 * iter_ull.c: New file.
189 * libgomp.h: Include ptrlock.h.
190 (enum gomp_task_kind): New type.
191 (struct gomp_team): Add task_lock, task_queue, task_count,
192 task_running_count, single_count fields. Add
193 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
194 Remove work_share_lock, generation_mask,
195 oldest_live_gen, num_live_gen and init_work_shares fields, add
196 work work_share_list_alloc, work_share_list_free and work_share_chunk
197 fields. Change work_shares from pointer to pointers into an array.
198 Change ordered_release field into gomp_sem_t ** from flexible array
199 member. Add implicit_task and initial_work_shares fields.
200 Move close to the end of the struct.
201 (struct gomp_team_state): Add single_count, last_work_share,
202 active_level and level fields, remove work_share_generation.
203 (gomp_barrier_handle_tasks): New prototype.
204 (gomp_finish_task): New inline function.
205 (struct gomp_work_share): Move chunk_size, end, incr into
206 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
207 next_ll fields. Reshuffle fields. Add next_alloc,
208 next_ws, next_free and inline_ordered_team_ids fields, change
209 ordered_team_ids into pointer from flexible array member.
210 Add mode field. Put lock and next into a different cache line
211 from most of the write-once fields.
212 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
213 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
214 gomp_iter_ull_guided_next): New prototypes.
215 (gomp_new_icv): New prototype.
216 (struct gomp_thread): Add thread_pool and task fields.
217 (struct gomp_thread_pool): New type.
218 (gomp_new_team): New prototype.
219 (gomp_team_start): Change type of last argument.
220 (gomp_new_work_share): Removed.
221 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
222 (gomp_work_share_init_done): New static inline.
223 (gomp_throttled_spin_count_var, gomp_available_cpus,
224 gomp_managed_threads): New extern decls.
225 (gomp_init_task): New prototype.
226 (gomp_spin_count_var): New extern var decl.
227 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
228 or no alias support, or if not PIC.
229 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
230 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
231 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
232 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
233 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
234 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
235 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
236 gomp_test_nest_lock_25): New prototypes.
237 (omp_lock_symver, strong_alias): Define.
238 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
240 (gomp_end_task): New.
241 (struct gomp_task_icv, gomp_global_icv): New.
242 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
243 (struct gomp_task): New.
244 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
245 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
247 (gomp_schedule_type): Reorder enum to match
249 * team.c (struct gomp_thread_start_data): Add thread_pool and task
251 (gomp_thread_start): Add gomp_team_barrier_wait call.
252 For non-nested case remove clearing of docked thread thr fields.
253 Use pool fields instead of global gomp_* variables. Use
254 gomp_barrier_wait_last when needed. Initialize ts.active_level.
255 Create tasks for each member thread.
256 (free_team): Only destroy team barrier, task_lock here and free it.
257 (gomp_free_thread): Free last_team if non-NULL.
258 (gomp_team_end): Call gomp_team_barrier_wait instead of
259 gomp_barrier_wait. For nested case call one extra
260 gomp_barrier_wait. Move here some destruction from free_team.
261 Call free_team on pool->last_team if any, rather than freeing
262 current team. Destroy work_share_list_free_lock ifndef
264 (gomp_new_icv): New function.
265 (gomp_threads, gomp_threads_size, gomp_threads_used,
266 gomp_threads_dock): Removed.
267 (gomp_thread_destructor): New variable.
268 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
270 (gomp_team_start): Create new pool if current thread doesn't have
271 one. Use pool fields instead of global gomp_* variables.
272 Initialize thread_pool field for new threads. Clear single_count.
273 Change last argument from ws to team, don't create
274 new team, set ts.work_share to &team->work_shares[0] and clear
275 ts.last_work_share. Don't clear ts.work_share_generation.
276 If number of threads changed, adjust atomically gomp_managed_threads.
277 Use gomp_init_task instead of gomp_new_task,
278 set thr->task to the corresponding implicit_task array entry.
279 Create tasks for each member thread. Initialize ts.level.
280 (initialize_team): Call pthread_key_create on
281 gomp_thread_destructor.
282 (team_destructor): New function.
284 (gomp_new_team): New function.
285 (free_team): Free gomp_work_share blocks chained through next_alloc,
286 instead of freeing work_shares and destroying work_share_lock.
287 (gomp_team_end): Call gomp_fini_work_share. If number of threads
288 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
289 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
290 of gomp_barrier_wait.
291 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
292 instead of gomp_barrier_wait. Call gomp_work_share_init_done
293 if gomp_work_share_start returned true. Don't unlock ws->lock.
294 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
295 of gomp_barrier_wait.
296 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
297 gomp_work_share_init_done if gomp_work_share_start returned true.
298 Don't unlock ws->lock.
299 * work.c: Include stddef.h.
300 (free_work_share): Use work_share_list_free_lock instead
301 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
302 Call gomp_fini_work_share and then either free ws if orphaned, or
303 put it into work_share_list_free list of the current team.
304 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
306 (gomp_work_share_start, gomp_work_share_end,
307 gomp_work_share_end_nowait): Rewritten.
308 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
309 (openmp_version): Set to 200805.
310 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
311 omp_sched_guided, omp_sched_auto): New parameters.
312 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
313 omp_set_max_active_levels, omp_get_max_active_levels,
314 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
315 omp_get_active_level): New interfaces.
316 * omp_lib.h.in (openmp_version): Set to 200805.
317 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
318 omp_sched_guided, omp_sched_auto): New parameters.
319 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
320 omp_set_max_active_levels, omp_get_max_active_levels,
321 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
322 omp_get_active_level): New externals.
323 * loop.c: Include limits.h.
324 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
326 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
327 Likewise. Use gomp_icv.
328 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
330 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
331 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
332 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
333 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
334 don't unlock ws->lock, otherwise lock it.
335 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
336 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
337 (gomp_parallel_loop_start): Call gomp_new_team instead of
338 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
339 Adjust gomp_team_start caller. Pass 0 as second argument to
340 gomp_resolve_num_threads.
341 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
342 If adding ws->chunk_size nthreads + 1 times after end won't
343 overflow, set ws->mode to 1.
344 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
345 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
346 GOMP_loop_ull_ordered_static_start,
347 GOMP_loop_ull_ordered_dynamic_start,
348 GOMP_loop_ull_ordered_guided_start,
349 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
350 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
351 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
352 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
353 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
355 * libgomp.map: Export lock routines also @@OMP_2.0.
356 (GOMP_loop_ordered_dynamic_first,
357 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
358 GOMP_loop_ordered_static_first): Remove.
359 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
360 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
361 GOMP_loop_ull_ordered_dynamic_next,
362 GOMP_loop_ull_ordered_dynamic_start,
363 GOMP_loop_ull_ordered_guided_next,
364 GOMP_loop_ull_ordered_guided_start,
365 GOMP_loop_ull_ordered_runtime_next,
366 GOMP_loop_ull_ordered_runtime_start,
367 GOMP_loop_ull_ordered_static_next,
368 GOMP_loop_ull_ordered_static_start,
369 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
370 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
371 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
372 (omp_set_schedule, omp_get_schedule,
373 omp_get_thread_limit, omp_set_max_active_levels,
374 omp_get_max_active_levels, omp_get_level,
375 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
376 omp_set_schedule_, omp_set_schedule_8_,
377 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
378 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
379 omp_get_max_active_levels_, omp_get_level_,
380 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
381 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
382 New exports @@OMP_3.0.
383 * omp.h.in (omp_sched_t): New type.
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 prototypes.
388 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
389 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
390 gomp_thread_limit_var, gomp_remaining_threads_count,
391 gomp_remaining_threads_lock): New variables.
392 (parse_spincount): New function.
393 (initialize_env): Call gomp_init_num_threads unconditionally.
394 Initialize gomp_available_cpus. Call parse_spincount,
395 initialize gomp_{,throttled_}spin_count_var
396 depending on presence and value of OMP_WAIT_POLICY and
397 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
398 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
399 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
400 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
401 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
402 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
403 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
404 (gomp_global_icv): New.
405 (parse_schedule): Use it. Parse "auto".
406 (omp_set_num_threads): Use gomp_icv.
407 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
409 (omp_get_max_threads): Move from parallel.c.
410 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
411 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
413 (parse_stacksize, parse_wait_policy): New functions.
414 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
415 both wrappers for compatibility and new locks.
416 (omp_set_schedule, omp_get_schedule,
417 omp_get_thread_limit, omp_set_max_active_levels,
418 omp_get_max_active_levels, omp_get_level,
419 omp_get_ancestor_thread_num, omp_get_team_size,
420 omp_get_active_level): New ialias_redirect.
421 (omp_set_schedule_, omp_set_schedule_8_,
422 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
423 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
424 omp_get_max_active_levels_, omp_get_level_,
425 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
426 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
428 * parallel.c: Include limits.h.
429 (gomp_resolve_num_threads): Add count argument. Rewritten.
430 (GOMP_parallel_start): Call gomp_new_team and pass that as last
431 argument to gomp_team_start. Pass 0 as second argument to
432 gomp_resolve_num_threads.
433 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
434 if gomp_thread_limit_var != ULONG_MAX.
435 (omp_in_parallel): Implement using ts.active_level.
436 (omp_get_max_threads): Move to env.c.
437 (omp_get_level, omp_get_ancestor_thread_num,
438 omp_get_team_size, omp_get_active_level): New functions,
440 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
441 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
442 gomp_iter_dynamic_next instead of the _locked variant and don't take
443 lock around it, otherwise acquire it before calling
444 gomp_iter_dynamic_next_locked.
445 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
446 gomp_iter_dynamic_next instead of the _locked variant and don't take
448 (GOMP_parallel_sections_start): Call gomp_new_team instead of
449 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
450 Adjust gomp_team_start caller. Pass count as second argument to
451 gomp_resolve_num_threads, don't adjust num_threads after the call.
453 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
454 ws->chunk_size by incr.
455 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
457 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
459 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
460 (omp_check_defines): Check even the compat defines.
461 * config/linux/ptrlock.c: New file.
462 * config/linux/ptrlock.h: New file.
463 * config/linux/wait.h: New file.
464 * config/posix/ptrlock.c: New file.
465 * config/posix/ptrlock.h: New file.
466 * config/linux/bar.h (gomp_team_barrier_wait,
467 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
468 (gomp_team_barrier_set_task_pending,
469 gomp_team_barrier_clear_task_pending,
470 gomp_team_barrier_set_waiting_for_tasks,
471 gomp_team_barrier_waiting_for_tasks,
472 gomp_team_barrier_done): New inlines.
473 (gomp_barrier_t): Rewritten.
474 (gomp_barrier_state_t): New typedef.
475 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
476 gomp_barrier_wait_start): Rewritten.
477 (gomp_barrier_wait_end): Change second argument to
478 gomp_barrier_state_t.
479 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
481 * config/linux/bar.c: Include wait.h instead of libgomp.h and
483 (gomp_barrier_wait_end): Rewritten.
484 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
485 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
486 * config/posix/bar.h (gomp_barrier_t): Add generation field.
487 (gomp_barrier_state_t): New typedef.
488 (gomp_team_barrier_wait,
489 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
490 (gomp_barrier_wait_start): Or all but low 2 bits from generation
491 into the return value. Return gomp_barrier_state_t.
492 (gomp_team_barrier_set_task_pending,
493 gomp_team_barrier_clear_task_pending,
494 gomp_team_barrier_set_waiting_for_tasks,
495 gomp_team_barrier_waiting_for_tasks,
496 gomp_team_barrier_done): New inlines.
497 (gomp_barrier_wait_end): Change second argument to
498 gomp_barrier_state_t.
499 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
501 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
502 (gomp_barrier_wait_end): Change second argument to
503 gomp_barrier_state_t.
504 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
505 gomp_team_barrier_wake): New functions.
506 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
508 (gomp_futex_wake, gomp_futex_wait): New variables.
509 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
510 * config/linux/lock.c: Rewrite to make locks task owned,
511 for backwards compatibility provide the old entrypoints
512 if symbol versioning. Include wait.h instead of libgomp.h and
514 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
515 * config/posix95/lock.c: Rewrite to make locks task owned,
516 for backwards compatibility provide the old entrypoints
517 if symbol versioning.
518 * config/posix/lock.c: Rewrite to make locks task owned,
519 for backwards compatibility provide the old entrypoints
520 if symbol versioning.
521 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
522 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
523 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
524 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
525 (sys_futex0): Return error code.
526 (futex_wake, futex_wait): If ENOSYS was returned, clear
527 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
528 (cpu_relax, atomic_write_barrier): New static inlines.
529 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
530 (futex_wake, futex_wait): If ENOSYS was returned, clear
531 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
532 (cpu_relax, atomic_write_barrier): New static inlines.
533 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
534 (sys_futex0): Return error code.
535 (futex_wake, futex_wait): If ENOSYS was returned, clear
536 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
537 (cpu_relax, atomic_write_barrier): New static inlines.
538 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
539 (sys_futex0): Return error code.
540 (futex_wake, futex_wait): If ENOSYS was returned, clear
541 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
542 (cpu_relax, atomic_write_barrier): New static inlines.
543 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
544 (sys_futex0): Return error code.
545 (futex_wake, futex_wait): If ENOSYS was returned, clear
546 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
547 (cpu_relax, atomic_write_barrier): New static inlines.
548 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
549 (sys_futex0): Return error code.
550 (futex_wake, futex_wait): If ENOSYS was returned, clear
551 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
552 (cpu_relax, atomic_write_barrier): New static inlines.
553 * config/linux/sem.c: Include wait.h instead of libgomp.h and
555 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
556 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
557 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
559 (omp_nest_lock_t): Change owner into void *, add lock field.
560 * config/posix95/omp-lock.h: Include semaphore.h.
561 (omp_lock_25_t, omp_nest_lock_25_t): New types.
562 (omp_lock_t): Use sem_t instead of mutex if semaphores
564 (omp_nest_lock_t): Likewise. Change owner to void *.
565 * config/posix/omp-lock.h: Include semaphore.h.
566 (omp_lock_25_t, omp_nest_lock_25_t): New types.
567 (omp_lock_t): Use sem_t instead of mutex if semaphores
569 (omp_nest_lock_t): Likewise. Add owner field.
571 2008-06-06 Jakub Jelinek <jakub@redhat.com>
573 * testsuite/libgomp.c/collapse-1.c: New test.
574 * testsuite/libgomp.c/collapse-2.c: New test.
575 * testsuite/libgomp.c/collapse-3.c: New test.
576 * testsuite/libgomp.c/icv-1.c: New test.
577 * testsuite/libgomp.c/icv-2.c: New test.
578 * testsuite/libgomp.c/lib-2.c: New test.
579 * testsuite/libgomp.c/lock-1.c: New test.
580 * testsuite/libgomp.c/lock-2.c: New test.
581 * testsuite/libgomp.c/lock-3.c: New test.
582 * testsuite/libgomp.c/loop-4.c: New test.
583 * testsuite/libgomp.c/loop-5.c: New test.
584 * testsuite/libgomp.c/loop-6.c: New test.
585 * testsuite/libgomp.c/loop-7.c: New test.
586 * testsuite/libgomp.c/loop-8.c: New test.
587 * testsuite/libgomp.c/loop-9.c: New test.
588 * testsuite/libgomp.c/nested-3.c: New test.
589 * testsuite/libgomp.c/nestedfn-6.c: New test.
590 * testsuite/libgomp.c/sort-1.c: New test.
591 * testsuite/libgomp.c/task-1.c: New test.
592 * testsuite/libgomp.c/task-2.c: New test.
593 * testsuite/libgomp.c/task-3.c: New test.
594 * testsuite/libgomp.c/task-4.c: New test.
595 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
596 to C++ testsuite default compiler options.
597 * testsuite/libgomp.c++/collapse-1.C: New test.
598 * testsuite/libgomp.c++/collapse-2.C: New test.
599 * testsuite/libgomp.c++/ctor-10.C: New test.
600 * testsuite/libgomp.c++/for-1.C: New test.
601 * testsuite/libgomp.c++/for-2.C: New test.
602 * testsuite/libgomp.c++/for-3.C: New test.
603 * testsuite/libgomp.c++/for-4.C: New test.
604 * testsuite/libgomp.c++/for-5.C: New test.
605 * testsuite/libgomp.c++/loop-8.C: New test.
606 * testsuite/libgomp.c++/loop-9.C: New test.
607 * testsuite/libgomp.c++/loop-10.C: New test.
608 * testsuite/libgomp.c++/task-1.C: New test.
609 * testsuite/libgomp.c++/task-2.C: New test.
610 * testsuite/libgomp.c++/task-3.C: New test.
611 * testsuite/libgomp.c++/task-4.C: New test.
612 * testsuite/libgomp.c++/task-5.C: New test.
613 * testsuite/libgomp.c++/task-6.C: New test.
614 * testsuite/libgomp.fortran/allocatable1.f90: New test.
615 * testsuite/libgomp.fortran/allocatable2.f90: New test.
616 * testsuite/libgomp.fortran/allocatable3.f90: New test.
617 * testsuite/libgomp.fortran/allocatable4.f90: New test.
618 * testsuite/libgomp.fortran/collapse1.f90: New test.
619 * testsuite/libgomp.fortran/collapse2.f90: New test.
620 * testsuite/libgomp.fortran/collapse3.f90: New test.
621 * testsuite/libgomp.fortran/collapse4.f90: New test.
622 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
623 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
624 * testsuite/libgomp.fortran/lib4.f90: New test.
625 * testsuite/libgomp.fortran/lock-1.f90: New test.
626 * testsuite/libgomp.fortran/lock-2.f90: New test.
627 * testsuite/libgomp.fortran/nested1.f90: New test.
628 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
629 * testsuite/libgomp.fortran/strassen.f90: New test.
630 * testsuite/libgomp.fortran/tabs1.f90: New test.
631 * testsuite/libgomp.fortran/tabs2.f: New test.
632 * testsuite/libgomp.fortran/task1.f90: New test.
633 * testsuite/libgomp.fortran/task2.f90: New test.
634 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
635 * testsuite/libgomp.fortran/vla5.f90: Likewise.
636 * testsuite/libgomp.c/pr26943-2.c: Likewise.
637 * testsuite/libgomp.c/pr26943-3.c: Likewise.
638 * testsuite/libgomp.c/pr26943-4.c: Likewise.
640 2008-05-23 Jakub Jelinek <jakub@redhat.com>
643 * testsuite/libgomp.c++/ctor-11.C: New test.
644 * testsuite/libgomp.c++/ctor-12.C: New test.
646 2008-05-15 Janis Johnson <janis187@us.ibm.com>
648 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
650 2008-05-07 Jakub Jelinek <jakub@redhat.com>
653 * testsuite/libgomp.c/atomic-5.c: New test.
654 * testsuite/libgomp.c/atomic-6.c: New test.
655 * testsuite/libgomp.c/autopar-1.c: New test.
657 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
659 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
660 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
661 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
662 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
663 * configure: Regenerate.
664 * Makefile.in, testsuite/Makefile.in: Likewise.
666 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
669 * aclocal.m4: Regenerate.
670 * configure: Regenerate.
672 2008-03-18 Jakub Jelinek <jakub@redhat.com>
675 * testsuite/libgomp.c/atomic-4.c: New test.
678 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
679 (gomp_iter_guided_next): Likewise.
680 * testsuite/libgomp.c/pr35625.c: New test.
682 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
684 * aclocal.m4: Regenerate.
685 * configure: Likewise.
686 * Makefile.in: Likewise.
687 * testsuite/Makefile.in: Likewise.
689 2008-03-13 Jakub Jelinek <jakub@redhat.com>
692 * testsuite/libgomp.c++/pr35185.C: New test.
694 2008-03-12 Jakub Jelinek <jakub@redhat.com>
697 * testsuite/libgomp.c/pr35549.c: New test.
699 2008-03-06 Jakub Jelinek <jakub@redhat.com>
701 * testsuite/libgomp.c/atomic-3.c: New test.
703 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
706 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
709 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
712 * configure.ac: Add ACX_HEADER_STRING.
713 * env.c: Include strings.h.
714 * aclocal.m4: Regenerate.
715 * config.h.in: Regenerate.
716 * configure: Regenerate.
717 * Makefile.in: Regenerate.
718 * testsuite/Makefile.in: Regenerate.
720 2008-02-15 Jakub Jelinek <jakub@redhat.com>
723 * testsuite/libgomp.c/pr35196.c: New test.
726 * testsuite/libgomp.fortran/pr35130.f90: New test.
727 * testsuite/libgomp.c/pr35130.c: New test.
729 2008-01-25 Jakub Jelinek <jakub@redhat.com>
732 * testsuite/libgomp.c/pr33880.c: New test.
733 * testsuite/libgomp.fortran/pr33880.f90: New test.
735 2008-01-24 David Edelsohn <edelsohn@gnu.org>
737 * configure: Regenerate.
739 2008-01-08 Jakub Jelinek <jakub@redhat.com>
741 * configure.ac: Move futex checking into ../config/futex.m4.
742 * configure: Rebuilt.
743 * aclocal.m4: Rebuilt.
744 * Makefile.in: Rebuilt.
746 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
747 2007-10-15 ../config/tls.m4 change.
749 2007-12-19 Jakub Jelinek <jakub@redhat.com>
752 * testsuite/libgomp.c/pr34513.c: New test.
753 * testsuite/libgomp.c++/pr34513.C: New test.
755 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
758 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
760 2007-12-04 Jakub Jelinek <jakub@redhat.com>
762 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
764 2007-12-03 Jakub Jelinek <jakub@redhat.com>
766 * testsuite/libgomp.c/private-1.c: New test.
768 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
769 Paolo Bonzini <bonzini@gnu.org>
771 * Makefile.am: Use space as vpath separator. Use 'vpath %'
772 instead of 'VPATH ='.
773 * Makefile.in: Regenerate.
775 2007-11-23 Matthias Klose <doko@ubuntu.com>
777 * configure.ac: Adjust makeinfo version check.
778 * configure: Regenerate.
780 2007-11-10 Jakub Jelinek <jakub@redhat.com>
783 * testsuite/libgomp.fortran/pr34020.f90: New test.
785 2007-11-06 Jakub Jelinek <jakub@redhat.com>
788 * testsuite/libgomp.c++/atomic-1.C: New test.
790 2007-10-25 Jakub Jelinek <jakub@redhat.com>
793 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
794 Make x and y integers rather than (implicit) reals. Add private (j)
795 clause to the last omp parallel.
797 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
799 * configure: Regenerate following changes to ../config/tls.m4.
801 2007-09-28 Jakub Jelinek <jakub@redhat.com>
803 * testsuite/libgomp.fortran/stack.f90: New test.
805 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
807 * config/mingw32/proc.c: New file.
809 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
811 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
812 (main): Use __get_cpuid to get i386 target fetaures.
813 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
814 (main): Use __get_cpuid to get x86_64 target fetaures.
816 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
819 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
820 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
822 2007-07-12 Jakub Jelinek <jakub@redhat.com>
825 * testsuite/libgomp.fortran/pr32550.f90: New test.
826 * testsuite/libgomp.fortran/crayptr2.f90: New test.
828 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
830 * aclocal.m4: Regenerated.
832 2007-07-05 Tobias Burnus <burnus@net-b.de>
835 * testsuite/libgomp.fortran/pr32359.f90: New.
837 2007-07-02 Jakub Jelinek <jakub@redhat.com>
840 * sections.c (GOMP_parallel_sections_start): Only decrease
841 number of threads to COUNT if dyn_var is true.
842 * testsuite/libgomp.c/pr32468.c: New test.
844 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
847 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
849 2007-06-21 Jakub Jelinek <jakub@redhat.com>
852 * testsuite/libgomp.c/pr32362-1.c: New test.
853 * testsuite/libgomp.c/pr32362-2.c: New test.
854 * testsuite/libgomp.c/pr32362-3.c: New test.
856 2007-06-07 Jakub Jelinek <jakub@redhat.com>
858 * team.c (gomp_team_start): Fix setting up thread_attr
861 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
863 * configure: Regenerate.
865 2007-05-23 Steve Ellcey <sje@cup.hp.com>
867 * Makefile.in: Regenerate.
868 * configure: Regenerate.
869 * aclocal.m4: Regenerate.
870 * testsuite/Makefile.in: Regenerate.
872 2007-05-04 Jakub Jelinek <jakub@redhat.com>
874 * config/linux/proc.c: New file.
877 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
879 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
881 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
883 2007-04-16 Matthias Klose <doko@debian.org>
885 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
886 flags if not building with -m64.
887 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
888 flag for i?86-*-* targets, if current target matches -m64.
890 2007-04-14 Steve Ellcey <sje@cup.hp.com>
892 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
893 * Makefile.in: Regenerate.
895 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
898 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
900 * testsuite/libgomp.fortran/fortran.exp: Likewise.
902 2007-04-04 Jakub Jelinek <jakub@redhat.com>
904 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
906 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
907 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
908 (parse_affinity): New function.
909 (initialize_env): Call it and gomp_init_affinity.
910 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
911 create new pthread_attr_t and call gomp_init_thread_affinity
912 on it for each thread before passing the attribute to pthread_create.
913 * config/linux/affinity.c: New file.
914 * config/posix/affinity.c: New file.
915 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
916 * configure: Rebuilt.
917 * config.h.in: Rebuilt.
918 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
919 * Makefile.in: Rebuilt.
921 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
923 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
925 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
928 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
930 * testsuite/config/default.exp: New file.
931 * testsuite/lib/libgomp.exp: New file.
932 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
933 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
934 load_lib *, load_gcc_lib *): Move to libgomp.exp.
935 (libgomp_load): Remove.
936 * testsuite/lib/libgomp.exp (libgomp_init): Compute
937 always_ld_library_path, not ld_library_path. Set additional_flags
938 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
939 (target_compile): Do not call libgomp_init. Append lang_library_path
940 and lang_link_flags to options.
941 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
942 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
944 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
945 always_ld_library_path. Set LD_LIBRARY_PATH here.
946 * testsuite/libgomp.fortran/fortran.exp: Ditto.
947 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
948 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
950 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
951 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
952 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
953 * testsuite/libgomp.c/pr29947-1.c: Ditto.
954 * testsuite/libgomp.c/atomic-10.c: Ditto.
956 2007-03-21 Jakub Jelinek <jakub@redhat.com>
958 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
959 dg-final cleanup-modules line.
960 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
961 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
962 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
963 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
964 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
965 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
966 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
968 2007-03-18 Andreas Schwab <schwab@suse.de>
970 * acinclude.m4: Adjust regular expression for ld version
972 * configure: Regenerate.
974 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
976 * Makefile.am: Add install-pdf target as copied from
977 automake v1.10 rules.
978 * Makefile.in: Regenerate
980 2007-02-07 Jakub Jelinek <jakub@redhat.com>
983 * configure: Regenerate.
986 * testsuite/libgomp.c++/pr30703.C: New test.
988 2007-02-02 Jakub Jelinek <jakub@redhat.com>
991 2006-07-05 Eric Christopher <echristo@apple.com>
992 * configure.ac: Depend addition of -pthread on host OS.
993 * configure: Regenerate.
995 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
997 * libgomp.texi: Fix spacing after abbreviations.
999 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
1002 * configure.ac: Add check for makeinfo
1003 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1004 if an appropiate version of makeinfo is found.
1005 * aclocal.m4: Regenerated.
1006 * configure: Regenerated.
1007 * Makefile.in: Regenerated.
1008 * testsuite/Makefile.in: Regenerated.
1010 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1013 * libgomp.texi: More about implementation-dependent settings.
1015 2007-01-26 Tobias Burnus <burnus@net-b.de>
1017 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1019 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1022 * testsuite/libgomp.c/pr30494.c: New test.
1024 2007-01-15 Tom Tromey <tromey@redhat.com>
1026 * configure: Rebuilt.
1027 * configure.ac: Fixed comment.
1029 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1031 * libgomp.texi: Document implementation specific default values of
1032 environment variables.
1034 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1037 * libgomp.texi: New file.
1038 * configure.ac: Add --enable-generated-files-in-srcdir option.
1039 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1041 * Makefile.in: Regenerated.
1042 * config.h.in: Regenerated.
1043 * testsuite/Makefile.in: Regenerated.
1046 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1049 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1051 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1053 * configure: Regenerate.
1055 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1058 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1059 start if there shouldn't be any loop iterations.
1060 (gomp_loop_ordered_static_start): Remove start == end test.
1061 * testsuite/libgomp.c/pr29947-1.c: New test.
1062 * testsuite/libgomp.c/pr29947-2.c: New test.
1064 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1066 * configure.tgt: Force initial-exec TLS model on Linux only.
1068 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1070 * configure: Regenerated.
1072 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1074 * env.c (parse_schedule): Reject out of range values.
1075 (parse_unsigned_long): Reject out of range, negative or zero values.
1077 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1080 * testsuite/libgomp.fortran/pr29629.f90: New test.
1082 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1085 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1086 * config/posix95: New directory.
1087 * config/posix95/omp-lock.h: New file.
1088 * config/posix95/lock.c: Likewise.
1090 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1092 * aclocal.m4: Regenerate.
1093 * configure: Regenerate.
1095 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1097 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1100 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1102 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1104 * configure: Regenerate.
1105 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1107 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1111 * testsuite/libgomp.c/nestedfn-4.c: New test.
1112 * testsuite/libgomp.c/nestedfn-5.c: New test.
1113 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1116 * testsuite/libgomp.fortran/condinc1.f: New test.
1117 * testsuite/libgomp.fortran/condinc2.f: New test.
1118 * testsuite/libgomp.fortran/condinc3.f90: New test.
1119 * testsuite/libgomp.fortran/condinc4.f90: New test.
1120 * testsuite/libgomp.fortran/condinc1.inc: New file.
1122 2006-09-18 Tom Tromey <tromey@redhat.com>
1124 * configure: Rebuilt.
1126 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1129 PR preprocessor/14634
1130 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1132 * configure: Regenerate.
1134 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1136 * testsuite/libgomp.fortran/reduction3.f90: Change
1137 -2147483648 to -huge(i)-1 to avoid overflow.
1138 * testsuite/libgomp.fortran/reduction4.f90: Change
1139 Z'ffffffff' to not(0) to avoid overflow.
1141 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1144 * Makefile.am (libsubincludedir): New.
1145 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1146 * Makefile.in: Regenerate.
1148 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1151 * env.c: Include ctype.h.
1152 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1153 leading and/or trailing whitespace and compare strings case
1156 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1159 * testsuite/libgomp.fortran/pr28390.f: New test.
1161 2006-07-05 Eric Christopher <echristo@apple.com>
1163 * configure.ac: Depend addition of -pthread on host OS.
1164 * configure: Regenerate.
1166 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1168 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1169 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1172 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1176 * configure.ac: If neither --enable-linux-futex nor
1177 --disable-linux-futex is passed, determine the default by checking
1178 for compiling and/or running against NPTL. With --enable-linux-futex,
1179 check if SYS_gettid and SYS_futex are defined.
1180 * configure: Rebuilt.
1182 2006-06-14 Richard Henderson <rth@redhat.com>
1185 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1186 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1188 2006-06-09 Richard Henderson <rth@redhat.com>
1190 * env.c (gomp_nthreads_var): Change to unsigned long.
1191 (gomp_run_sched_chunk): Likewise.
1192 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1193 (initialize_env): Initialize gomp_thread_attr.
1194 * libgomp.h (gomp_nthreads_var): Update decl.
1195 (gomp_run_sched_chunk): Likewise.
1196 (gomp_thread_attr): Declare.
1197 * team.c (gomp_thread_attr): Export.
1198 (initialize_team): Don't initialize it.
1200 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1203 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1204 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1206 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1208 * config/mingw32/time.c: New file.
1209 * configure.tgt: Use it.
1211 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1213 * Makefile.am: Add install-html target. Add install-html to .PHONY
1214 * Makefile.in: Regenerate.
1216 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1219 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1220 * testsuite/libgomp.c/critical-1.c: Likewise.
1221 * testsuite/libgomp.c/loop-1.c: Likewise.
1222 * testsuite/libgomp.c/loop-2.c: Likewise.
1223 * testsuite/libgomp.c/single-1.c: Likewise.
1224 * testsuite/libgomp.c/ordered-1.c: Likewise.
1225 * testsuite/libgomp.c/ordered-2.c: Likewise.
1227 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1230 * libgomp.fortran/pr27416-1.f90: New test.
1232 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1235 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1236 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1238 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1241 * testsuite/libgomp.c/pr26943-1.c: New test.
1242 * testsuite/libgomp.c/pr26943-2.c: New test.
1243 * testsuite/libgomp.c/pr26943-3.c: New test.
1244 * testsuite/libgomp.c/pr26943-4.c: New test.
1245 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1246 * testsuite/libgomp.c++/pr26943.C: New test.
1248 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1251 * testsuite/libgomp.c++/pr27337.C: New test.
1253 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1256 * testsuite/libgomp.c/pr26171.c: New test.
1258 2006-04-25 Richard Henderson <rth@redhat.com>
1261 * configure.ac: Use GCC_CHECK_TLS.
1262 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1263 * Makefile.in, aclocal.m4, configure: Regenerate.
1265 2006-04-10 Matthias Klose <doko@debian.org>
1267 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1268 directory names containing underscores.
1270 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1273 * testsuite/libgomp.c++/pr26691.C: New test.
1275 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1277 * testsuite/libgomp.fortran/retval2.f90: New test.
1279 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1281 * testsuite/libgomp.c++: New directory.
1283 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1285 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1286 * config/posix/sem.c: Implement the above.
1288 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1290 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1291 define HAVE_BROKEN_POSIX_SEMAPHORES.
1292 * configure: Rebuilt.
1293 * config.h.in: Rebuilt.
1295 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1298 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1299 for the other pthread check.
1300 * configure: Regenerate.
1301 * config.h.in: Regenerate.
1303 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1307 * Makefile.am (fincludedir): New variable.
1308 (nodist_include_HEADERS): Remove Fortran files.
1309 (nodist_finclude_HEADERS): New variable.
1310 * Makefile.in: Regenerated.
1312 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1314 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1315 Remove tests for returning assumed character length arrays.
1317 2006-02-12 Roger Sayle <roger@eyesopen.com>
1318 John David Anglin <dave@hiauly1.hia.nrc.ca>
1321 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1323 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1325 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1327 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1329 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1330 part of LD_LIBRARY_PATH manually.
1332 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1335 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1338 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1341 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1342 * configure.ac (PERL): Don't set.
1343 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1344 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1345 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1346 * omp.h.in: Wrap the new configure substitutions with @ characters.
1347 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1348 * aclocal.m4, configure, Makefile.in: Regenerate.
1349 * mkomp_h.pl: Delete.
1351 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1354 * configure.ac: Use GCC_HEADER_STDINT.
1355 * libgomp.h: Include gstdint.h.
1356 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1357 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1359 2006-01-24 Richard Henderson <rth@redhat.com>
1362 * configure.ac: Add AM_MAINTAINER_MODE.
1363 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1365 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1367 * Makefile.in: Regenerate.
1368 * testsuite/Makefile.in: Regenerate.
1369 * aclocal.m4: Regenerate.
1371 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1373 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1375 * configure.ac: Add check for loadavg.h.
1376 (link_gomp): Adjust comment.
1377 * configure: Regenerate.
1378 * config.h.in: Regenerate.
1380 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1383 * configure.ac: Remove check for alloca.h.
1384 * configure: Regenerate.
1385 * config.h.in: Regenerate.
1386 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1387 * team.c: Remove use of alloca.h.
1388 Call gomp_alloca instead of alloca.
1390 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1393 * team.c: Add include of alloca.h.
1394 * configure.ac: Add check for alloca.h.
1395 * configure: Regenerate.
1396 * config.h.in: Regenerate.
1398 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1401 * testsuite/libgomp.fortran/pr25219.f90: New test.
1403 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1405 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1406 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1407 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1408 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1409 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1410 testsuite/libgomp.fortran/threadprivate1.f90,
1411 testsuite/libgomp.fortran/threadprivate2.f90,
1412 testsuite/libgomp.fortran/threadprivate3.f90,
1413 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1414 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1415 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1416 effective-target to TLS runtime.
1418 * testsuite/libgomp.fortran/pr25162.f: Require
1419 effective-target TLS runtime.
1421 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1423 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1424 * testsuite/libgomp.c/nestedfn-3.c: New test.
1426 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1429 * testsuite/libgomp.fortran/pr25162.f: New test.
1431 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1433 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1434 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1436 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1438 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1439 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1440 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1441 single.c, team.c, work.c, config/linux/alpha/futex.h,
1442 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1443 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1444 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1445 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1446 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1447 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1448 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1451 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1453 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1454 to nodist_noinst_HEADERS.
1455 * Makefile.in: Rebuilt.
1457 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1458 add integer count field.
1459 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1460 omp_nest_lock_t type change.
1461 (omp_init_nest_lock): Likewise. Initialize count to 0.
1462 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1464 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1466 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1467 Increment count if successful and return the new nesting level.
1468 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1469 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1470 * testsuite/libgomp.c/lib-1.c: New test.
1471 * testsuite/libgomp.fortran/lib1.f90: New test.
1472 * testsuite/libgomp.fortran/lib2.f: New test.
1473 * testsuite/libgomp.fortran/lib3.f: New test.
1475 2005-11-17 Richard Henderson <rth@redhat.com>
1478 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1479 * configure.ac (link_gomp): New. Substitute it.
1480 (AC_CONFIG_FILES): Add libgomp.spec.
1481 * libgomp.spec.in: New file.
1482 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1483 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1485 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1487 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1488 reduction(-:var) behaving the same as reduction(+:var).
1489 * testsuite/libgomp.c/reduction-4.c: New test.
1491 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1493 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1494 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1495 testsuite/libgomp.c/copyin-3.c,
1496 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1497 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1498 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1499 testsuite/libgomp.c++/pr24455.C,
1500 testsuite/libgomp.fortran/threadprivate1.f90,
1501 testsuite/libgomp.fortran/threadprivate2.f90,
1502 testsuite/libgomp.fortran/threadprivate3.f90,
1503 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1504 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1505 testsuite/libgomp.fortran/omp_parse3.f90: Require
1506 effective-target TLS.
1508 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1512 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1515 * team.c (initialize_team): Pass NULL rather than free as
1516 pthread_key_create destructor. Initialize thread specific data
1517 pointer in initial thread to a static local variable rather than
1520 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1522 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1523 its location to ld_library_path.
1525 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1527 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1529 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1531 * testsuite/libgomp.c: Rename from libgomp.dg.
1533 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1535 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1536 threadprivate variable 'i'.
1538 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1540 * config/linux/s390/futex.h: New file.
1541 * configure.tgt: Use it.
1543 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1544 before the parallel.
1546 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1549 * testsuite/libgomp.c++/master-1.C: New test.
1551 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1553 * testsuite/libgomp.dg/copyin-3.c: New test.
1555 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1557 * testsuite/libgomp.fortran/retval1.f90: New test.
1558 * testsuite/libgomp.fortran/vla7.f90: New test.
1560 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1562 * testsuite/libgomp.fortran/vla2.f90: New test.
1563 * testsuite/libgomp.fortran/vla3.f90: New test.
1564 * testsuite/libgomp.fortran/vla4.f90: New test.
1565 * testsuite/libgomp.fortran/vla5.f90: New test.
1566 * testsuite/libgomp.fortran/vla6.f90: New test.
1568 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1570 * config/linux/sparc/futex.h: New file.
1571 * configure.tgt: Use it.
1572 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1574 * critical.c: Include stdlib.h.
1575 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1576 ignoring return value.
1577 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1578 LIBGOMP_CHECK_SYNC_BUILTINS check.
1579 * configure: Rebuilt.
1581 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1583 * testsuite/libgomp.fortran/vla1.f90: New test.
1585 2005-10-31 Richard Henderson <rth@redhat.com>
1587 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1588 setting 's' in different threads.
1590 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1592 * libgomp.h (attribute_hidden, ialias): Define.
1593 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1594 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1595 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1596 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1597 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1598 omp_test_lock, omp_test_nest_lock): Likewise.
1599 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1600 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1601 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1602 omp_test_lock, omp_test_nest_lock): Likewise.
1603 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1604 omp_get_dynamic, omp_get_nested): Likewise.
1605 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1606 omp_get_thread_num, omp_in_parallel): Likewise.
1607 * fortran.c (ialias_redirect): Define.
1608 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1609 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1610 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1611 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1612 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1613 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1614 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1615 omp_get_wtime): Add ialias_redirect.
1617 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1619 * fortran.c: Include stdlib.h.
1621 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1623 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1624 * Makefile.in: Regenerated.
1626 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1628 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1629 * libgomp_f.h.in (omp_check_defines): New function.
1630 * env.c: Include libgomp_f.h.
1631 (initialize_env): Call omp_check_defines.
1633 * testsuite/libgomp.dg/copyin-2.c: New test.
1634 * testsuite/libgomp.c++/copyin-2.C: New test.
1635 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1637 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1638 * testsuite/libgomp.fortran/sharing2.f90: New test.
1640 * testsuite/libgomp.dg/copyin-1.c: New test.
1641 * testsuite/libgomp.c++/copyin-1.C: New test.
1643 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1645 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1647 * testsuite/libgomp.fortran/workshare1.f90: New test.
1649 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1651 * libgomp.fortran/sharing1.f90: New test.
1653 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1656 * testsuite/libgomp.c++/loop-7.C: New test.
1658 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1660 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1661 * testsuite/libgomp.fortran/reduction6.f90: New test.
1662 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1664 2005-10-23 Richard Henderson <rth@redhat.com>
1666 * testsuite/libgomp.c++/ctor-1.C: New.
1667 * testsuite/libgomp.c++/ctor-2.C: New.
1668 * testsuite/libgomp.c++/ctor-3.C: New.
1669 * testsuite/libgomp.c++/ctor-4.C: New.
1670 * testsuite/libgomp.c++/ctor-5.C: New.
1671 * testsuite/libgomp.c++/ctor-6.C: New.
1672 * testsuite/libgomp.c++/ctor-7.C: New.
1673 * testsuite/libgomp.c++/ctor-8.C: New.
1674 * testsuite/libgomp.c++/ctor-9.C: New.
1676 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1679 * testsuite/libgomp.c++/pr24455-1.C: New test.
1680 * testsuite/libgomp.c++/pr24455.C: New test.
1681 * testsuite/libgomp.dg/pr24455-1.c: New test.
1682 * testsuite/libgomp.dg/pr24455.c: New test.
1684 2005-10-20 Richard Henderson <rth@redhat.com>
1686 * testsuite/libgomp.c++/loop-6.C: New.
1687 * testsuite/libgomp.dg/loop-3.c: New.
1689 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1691 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1693 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1696 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1698 * testsuite/libgomp.fortran/jacobi.f: New test.
1700 2005-10-19 Richard Henderson <rth@redhat.com>
1702 * configure.tgt (i?86-linux): Default to with_arch instead of
1703 CFLAGS. Add -mtune to match target_cpu.
1704 (x86_64-linux): Tune to i686.
1706 * fortran.c (omp_test_nest_lock_): Fix typo.
1708 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1710 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1711 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1712 * testsuite/libgomp.dg/ordered-3.c: New test.
1714 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1715 Remove volatile keyword.
1717 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1718 in COMMON block to avoid warnings on 64-bit targets.
1720 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1722 * testsuite/libgomp.dg/shared-3.c: New test.
1724 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1726 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1727 * testsuite/libgomp.fortran/reduction5.f90: New test.
1729 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1731 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1733 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1734 flush loop now that __sync_synchronize has proper memory barrier.
1735 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1736 Add -ffixed-form to dg-options.
1738 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1740 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1741 from subdirectories.
1742 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1743 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1744 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1745 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1746 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1747 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1748 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1749 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1750 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1751 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1752 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1753 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1754 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1755 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1756 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1757 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1758 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1759 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1760 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1761 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1762 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1763 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1764 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1765 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1766 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1768 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1770 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1771 lang_library_path exists. Use find instead of glob to gather tests.
1772 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1774 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1776 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1777 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1778 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1779 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1780 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1781 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1782 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1783 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1784 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1785 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1786 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1787 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1788 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1790 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1792 * testsuite/libgomp.dg/vla-1.c: New test.
1794 * testsuite/libgomp.fortran/reference2.f90: New test.
1796 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1797 declaration of omp_get_thread_num.
1798 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1801 * testsuite/libgomp.fortran/reduction1.f90: New test.
1802 * testsuite/libgomp.fortran/reduction2.f90: New test.
1803 * testsuite/libgomp.fortran/reduction3.f90: New test.
1804 * testsuite/libgomp.fortran/reduction4.f90: New test.
1806 2005-10-13 Richard Henderson <rth@redhat.com>
1808 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1809 * Makefile.in: Regenerate.
1810 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1811 * libgomp.h: Include bar.h.
1812 (struct gomp_barrier): Remove.
1813 (struct gomp_team): Add barrier. Replace master_barrier with
1814 master_release. Replace threads with ordered_release.
1815 (struct gomp_thread): Replace barrier with release.
1816 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1817 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1818 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1819 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1820 (GOMP_single_copy_end): Likewise.
1821 * team.c (gomp_threads_dock): New.
1822 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1823 (gomp_thread_start): Use gomp_barrier_wait.
1824 (new_team, free_team): Update for gomp_team changes.
1825 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1826 (gomp_team_end): Use gomp_barrier_wait.
1827 (initialize_team): Update for gomp_thread changes.
1828 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1829 (gomp_work_share_end_nowait): Use atomic ops when available.
1830 * config/linux/bar.c, config/linux/bar.h: New files.
1831 * config/posix/bar.c, config/posix/bar.h: New files.
1833 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1835 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1836 * testsuite/libgomp.dg/single-2.c: New test.
1838 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1839 lang_link_flags): Unset, so that they aren't inherited from previously
1842 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1844 2005-10-12 Richard Henderson <rth@redhat.com>
1846 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1847 (libgomp_init): Use lang_test_file, lang_library_path, and
1848 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1850 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1851 (lang_test_file, lang_link_flags): New.
1852 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1854 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1855 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1856 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1857 testsuite/libgomp.c++/parallel-1.C,
1858 testsuite/libgomp.c++/reduction-1.C,
1859 testsuite/libgomp.c++/reduction-2.C,
1860 testsuite/libgomp.c++/reduction-3.C,
1861 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1862 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1863 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1864 New files, largely cribbed from the C testsuite.
1866 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1868 * testsuite/libgomp.fortran/character1.f90: New test.
1869 * testsuite/libgomp.fortran/character2.f90: New test.
1871 * testsuite/libgomp.dg/nested-1.c: New test.
1872 * testsuite/libgomp.dg/nested-2.c: New test.
1873 * testsuite/libgomp.fortran/do1.f90: New test.
1874 * testsuite/libgomp.fortran/do2.f90: New test.
1876 * testsuite/libgomp.fortran/reference1.f90: New test.
1878 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1880 * testsuite/libgomp.dg/reduction-1.c: New test.
1881 * testsuite/libgomp.dg/reduction-2.c: New test.
1882 * testsuite/libgomp.dg/reduction-3.c: New test.
1884 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1886 * testsuite/libgomp.dg/atomic-1.c: New test.
1887 * testsuite/libgomp.dg/atomic-2.c: New test.
1889 2005-10-09 Richard Henderson <rth@redhat.com>
1891 * critical.c (atomic_lock): New.
1892 (initialize_critical): Initialize it.
1893 (GOMP_atomic_start, GOMP_atomic_end): New.
1894 * libgomp.map: Export them.
1895 * libgomp_g.h: Declare them.
1897 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1899 2005-10-02 Richard Henderson <rth@redhat.com>
1901 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1902 to XCFLAGS instead of CFLAGS.
1904 2005-09-30 Richard Henderson <rth@redhat.com>
1906 * configure.ac: Determine whether -pthread or -lpthread is needed.
1907 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1908 * Makefine.in, configure: Rebuild.
1910 2005-09-28 Richard Henderson <rth@redhat.com>
1912 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1913 * testsuite/libgomp.dg/omp-single-3.c: New test.
1915 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1917 * testsuite/libgomp.dg/omp-single-2.c: New test.
1918 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1920 2005-09-27 Richard Henderson <rth@redhat.com>
1922 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1923 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1925 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1927 * testsuite/libgomp.dg/omp-loop03.c: New test.
1929 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1931 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1933 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1935 * testsuite/libgomp.dg/omp-single-1.c: New test.
1936 * testsuite/libgomp.dg/shared-1.c: Return 0.
1937 Add prototype for abort.
1938 * testsuite/libgomp.dg/shared-2.c: Likewise.
1940 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1942 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1945 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1947 * testsuite/libgomp.dg/shared-1.c: New test.
1948 * testsuite/libgomp.dg/shared-2.c: New test.
1950 2005-09-24 Richard Henderson <rth@redhat.com>
1952 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1954 2005-09-24 Richard Henderson <rth@redhat.com>
1956 * iter.c (gomp_iter_static_next): Round up when computing number
1957 of iterations. Don't bother distributing a remainder equally.
1959 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1960 Don't call srand. Zero b before testing.
1963 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1965 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1966 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1968 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1970 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1971 without !$omp end do, followed immediately by subroutine end.
1973 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1975 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1977 2005-09-22 Richard Henderson <rth@redhat.com>
1979 * critical.c (GOMP_critical_name_start): Change argument to void**.
1980 Reuse the pointer space if the mutex fits.
1981 (GOMP_critical_name_end): Likewise.
1982 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1983 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1984 (GOMP_critical_name_end): Likewise.
1985 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1986 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1988 2005-09-20 Richard Henderson <rth@redhat.com>
1990 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1991 (create_lock_lock): New.
1992 (initialize_critical): Initialize it.
1993 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1994 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1996 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1998 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2000 2005-09-20 Diego Novillo <dnovillo@redhat.com>
2002 * testsuite/libgomp.dg/omp-loop01.c: New test.
2003 * testsuite/libgomp.dg/omp-loop02.c: New test.
2005 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2007 * configure.ac (AC_PROG_FC): Add.
2008 (USE_FORTRAN): New automake conditional.
2009 * configure: Rebuilt.
2010 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2011 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2012 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2013 Add rules to build them.
2014 * Makefile.in: Rebuilt.
2015 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2017 * libgomp.map: Add Fortran wrappers.
2018 * libgomp_f.h.in: New file.
2019 * omp_lib.h.in: New file.
2020 * omp_lib.f90.in: New file.
2021 * fortran.c: New file.
2022 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2023 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2024 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2025 libgfortran has been built.
2026 * testsuite/libgomp.fortran/fortran.exp: New file.
2027 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2028 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2029 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2030 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2031 * testsuite/libgomp.fortran/omp_hello.f: New test.
2032 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2033 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2034 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2035 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2036 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2037 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2038 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2039 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2041 2005-08-30 Richard Henderson <rth@redhat.com>
2043 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2044 function for when aliases are not usable.
2045 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2046 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2047 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2048 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2049 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2050 GOMP_loop_ordered_guided_next): Likewise.
2051 * ordered.c (GOMP_ordered_start): Likewise.
2053 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2055 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2056 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2057 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2058 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2059 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2060 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2061 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2062 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2063 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2065 2005-07-07 Eric Christopher <echristo@redhat.com>
2066 Diego Novillo <dnovillo@redhat.com>
2068 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2069 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2071 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2072 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2073 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2074 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2075 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2076 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2077 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2079 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2081 * TOPLEVEL.patch: Remove.
2083 2005-05-16 Richard Henderson <rth@redhat.com>
2085 * configure.ac: Test for clock_gettime.
2086 * config.h.in, configure: Rebuild.
2087 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2088 (omp_get_wtime): Use clock_gettime if available.
2089 (omp_get_wtick): Use clock_getres if available.
2091 2005-05-11 Richard Henderson <rth@redhat.com>
2093 * config/linux/ia64/futex.h: New file.
2094 * configure.tgt: Use it.
2096 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2098 2005-05-07 Richard Henderson <rth@redhat.com>
2100 * config/linux/powerpc/futex.h: New file.
2101 * configure.tgt: Use it.
2103 * config/linux/i486/futex.h: Merge ...
2104 * config/linux/x86_64/futex.h: ... into ...
2105 * config/linux/x86/futex.h: ... here.
2106 * configure.tgt: Update to match.
2108 2005-05-06 Richard Henderson <rth@redhat.com>
2110 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2111 * config/linux/i486/futex.h: Likewise.
2112 * config/linux/x86_64/futex.h: Likewise.
2114 * config/linux/lock.c: New file.
2115 * config/linux/omp-lock.h: New file.
2117 * critical.c, env.h: Don't include omp.h
2118 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2119 * config/posix/time.c: Likewise.
2120 * config/posix/omp-lock.h: New file.
2121 * libgomp.h: Include omp-lock.h and omp.h.
2122 * Makefile.am (nodist_include_HEADERS): New.
2124 * configure.ac (PERL): New.
2125 * mkomp_h.pl: New file.
2126 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2128 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2130 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2131 build directory. Re-add -march=i486 hack.
2133 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2134 (libgomp_link_flags): Remove.
2135 (libgomp_initialized): Remove.
2136 (libgomp_init): Don't protect from reinitialization. Copy code
2137 from libstdc++ for getting the multilib set correctly.
2139 2005-05-05 Richard Henderson <rth@redhat.com>
2141 * config/linux/alpha/futex.h: New file.
2142 * configure.tgt (alpha*-*-linux*): Use it.
2144 * config/posix/mutex.c: New file.
2145 * config/posix/sem.c: Use libgomp.h.
2147 * configure.tgt (x86_64-linux): Also test CC for -m32.
2148 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2150 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2153 * Makefile.am (SUBDIRS): New.
2154 (libgomp_la_LDFLAGS): Add -lpthread.
2155 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2156 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2158 * libgomp_g.h: New file.
2159 * libgomp.h: Split out all public declarations to libgomp_g.h.
2160 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2161 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2162 * config/linux/sem.h: Likewise.
2163 * config/posix/sem.h: Likewise.
2165 * Makefile.am (AM_LDFLAGS): New.
2166 (libgomp_version_script): Split out from ...
2167 (libgomp_la_LDFLAGS): ... here.
2168 (libgomp_version_info): New.
2169 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2170 (LIBGOMP_ENABLE): New.
2171 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2172 (LIBGOMP_ENABLE_SYMVERS): New.
2173 * configure.ac (AC_INIT): Version 1.0.
2174 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2175 (enable-linux-futex): Likewise. Rename from enable-futex.
2176 (libtool_VERSION): New.
2177 (LIBGOMP_ENABLE_SYMVERS): Use it.
2178 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2179 * Makefile.in, aclocal.m4, configure: Rebuild.
2181 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2182 (gomp_mutex_unlock_slow): Fix typo.
2183 * config/linux/sem.c: Similarly.
2184 (gomp_sem_post_slow): Fix typo.
2185 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2186 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2187 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2189 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2190 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2191 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2192 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2193 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2194 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2195 LDFLAGS. Pull enable_futex check to top-level.
2196 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2197 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2199 First attempt at real configury.
2200 * Makefile, config.h: Remove file.
2201 * Makefile.am, Makefile.in: New file.
2202 * acinclude.m4 aclocal.m4: New file.
2203 * configure.ac, configure.tgt, configure: New file.
2205 * config/posix/lock.c: Rename from sys-lock.c.
2206 * config/posix/mutex.h: Rename from sys-mutex.h.
2207 * config/posix/sem.c: Rename from sys-sem.c.
2208 * config/posix/sem.h: Rename from sys-sem.h.
2209 * config/posix/proc.c: Rename from sys-proc.c.
2210 * config/posix/time.c: Rename from sys-proc.c.
2212 * config/linux/mutex.c: New file.
2213 * config/linux/mutex.h: New file.
2214 * config/linux/sem.c: New file.
2215 * config/linux/sem.h: New file.
2216 * config/linux/i486/futex.h: New file.
2217 * config/linux/x86_64/futex.h: New file.
2219 2005-05-04 Richard Henderson <rth@redhat.com>
2221 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2222 * libgomp.h: Declare them.
2223 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2224 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2226 2005-05-04 Richard Henderson <rth@redhat.com>
2228 * libgomp-1 code drop
2230 2005-05-04 Richard Henderson <rth@redhat.com>
2232 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2233 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2234 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2235 (gomp_iter_static_next): Update.
2236 (gomp_ordered_static_next): Update.
2237 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2238 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2239 totally empty range.
2240 (gomp_loop_ordered_static_next): Refine test for calling
2241 gomp_ordered_static_next.
2242 * testsuite/ordered-1.c: Add case for more threads than iterations.
2244 * iter.c (gomp_iter_runtime_next_locked): Remove.
2245 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2246 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2247 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2248 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2249 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2250 gomp_loop_ordered_guided_next): Downcase name, make static, add
2251 an external alias with the old name.
2252 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2253 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2254 switch and call one of the above static functions.
2255 * libgomp.h: Update.
2257 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2258 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2259 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2260 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2261 GOMP_loop_ordered_guided_start): Update to match.
2262 * sections.c (GOMP_sections_start): Likewise.
2263 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2265 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2266 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2267 Use bounds check instead of modulus.
2268 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2269 (gomp_ordered_last): Don't sync with ordered_owner here.
2270 (gomp_ordered_next): Likewise.
2271 (gomp_ordered_static_loop_next): Likewise.
2272 * loop.c, libgomp.h: Update to match.
2274 * libgomp.h (GOMP_barrier): Declare.
2276 * testsuite/barrier-1.c: New file.
2277 * testsuite/critical-1.c: New file.
2278 * testsuite/ordered-2.c: New file.
2279 * testsuite/ordered-1.c: New file.
2280 * testsuite/sections-1.c: New file.
2281 * testsuite/single-1.c: New file.
2282 * testsuite/Makefile (TESTS): Add them.
2284 2005-05-04 Richard Henderson <rth@redhat.com>
2286 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2287 * loop.c (GOMP_loop_static_start): If not the startup thread,
2288 acquire the mutex to wait for initialization complete.
2289 (GOMP_loop_ordered_static_start): Likewise.
2290 (GOMP_loop_ordered_runtime_start): Likewise.
2291 (GOMP_loop_ordered_static_first): Remove.
2292 (GOMP_loop_ordered_dynamic_first): Remove.
2293 (GOMP_loop_ordered_guided_first): Remove.
2294 (GOMP_loop_ordered_runtime_first): Remove.
2295 * ordered.c (gomp_ordered_loop_first): Post to own release when
2296 we're the first thread.
2297 (gomp_ordered_loop_last): Wait on release if not owner.
2298 (gomp_ordered_loop_next): Likewise.
2299 (gomp_ordered_static_loop_init): New.
2300 (gomp_ordered_static_loop_next): Use ordered_owner.
2301 (GOMP_ordered_start): Likewise.
2302 * work.c (gomp_new_work_share): Initialize ordered_owner.
2304 2005-05-03 Richard Henderson <rth@redhat.com>
2306 * Makefile (OPT): New.
2309 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2310 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2311 * libgomp.h, libgomp.map, NOTES: Update to match.
2313 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2314 Add initialized and thr members.
2315 (gomp_thread_start): Pause when initially spawned to wait for
2316 the whole team to be created.
2317 (gomp_team_start): Release team members at the end.
2319 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2320 (f_foo_1): Use GOMP_loop_end.
2321 (f_foo_2): Use GOMP_loop_end_nowait.
2323 * testsuite/loop-2.c: New file.
2324 * testsuite/Makefile (TESTS): Add it.
2326 2005-05-03 Richard Henderson <rth@redhat.com>
2328 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2329 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2330 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2333 * testsuite/Makefile: New file.
2334 * testsuite/loop-1.c: New file.
2336 2005-05-03 Richard Henderson <rth@redhat.com>
2338 Initial implementation and checkin.