1 2008-12-08 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/pr36802-1.c: New test.
5 * testsuite/libgomp.c/pr36802-2.c: New test.
6 * testsuite/libgomp.c/pr36802-3.c: New test.
8 2008-12-01 Janis Johnson <janis187@us.ibm.com>
11 * config/linux/powerpc/mutex.h: New.
13 2008-12-01 Jakub Jelinek <jakub@redhat.com>
16 * testsuite/libgomp.c++/for-7.C: New test.
19 * testsuite/libgomp.c++/for-6.C: New test.
21 2008-11-26 Janis Johnson <janis187@us.ibm.com>
24 * testsuite/lib/libgomp.exp: Include new timeout library files.
25 (libgomp_target_compile): Set timeout value from new proc.
27 2008-11-13 Steve Ellcey <sje@cup.hp.com>
30 * config/linux/ia64/mutex.h: New.
32 2008-11-04 Tobias Burnus <burnus@net-b.de>
35 * libgomp.texi (Runtime library routines, environment variables):
36 Update for OpenMP version 3.0.
38 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
39 Steve Ellcey <sje@cup.hp.com>
41 * configure: Regenerate for new libtool.
43 * testsuite/Makefile.in: Ditto.
45 2008-09-19 Jakub Jelinek <jakub@redhat.com>
46 Andreas Tobler <a.tobler@schweiz.org>
48 * config/bsd/proc.c: New file.
49 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
50 * configure.ac: Check for header <sys/sysctl.h>
51 * configure: Regenerate.
52 * config.h.in: Likewise.
54 2008-09-05 Janis Johnson <janis187@us.ibm.com>
56 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
58 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
60 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
61 * Makefile.in: Regenerated.
62 * testsuite/Makefile.in: Regenerated.
64 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
66 * testsuite/libgomp.exp (libgomp_init): Only set things that
67 depend on blddir if blddir exists.
68 (libgomp_target_compile): Likewise.
69 * testsuite/libgomp.c++/c++.exp: Likewise.
70 * testsuite/libgomp.fortran/fortran.exp: Likewise.
72 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
75 Do not list GPL as Invariant Section.
77 2008-07-28 Ilie Garbacea <ilie@mips.com>
78 Chao-ying Fu <fu@mips.com>
80 * configure.tgt: Enable futex for MIPS.
81 * config/linux/mips/futex.h: New file.
83 2008-07-16 Jakub Jelinek <jakub@redhat.com>
85 * team.c (gomp_team_end): Free team immediately if it has
88 2008-07-08 David Edelsohn <edelsohn@gnu.org>
90 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
91 * testsuite/libgomp.fortran/fortran.exp: Same.
92 * testsuite/libgomp.c/c.exp: Same.
93 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
94 directory to library path first.
96 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
98 * env.c (parse_stacksize): Add cast to avoid warning.
99 (parse_spincount): Likewise.
101 2008-06-27 Jakub Jelinek <jakub@redhat.com>
103 * testsuite/libgomp.c/loop-10.c: New test.
104 * libgomp.c/loop-3.c (main): Add lastprivate clause.
105 * libgomp.c++/loop-6.C (main): Likewise.
108 * testsuite/libgomp.c/debug-1.c: New test.
110 2008-06-19 Jakub Jelinek <jakub@redhat.com>
112 * testsuite/libgomp.c/nqueens-1.c: New test.
115 * testsuite/libgomp.c++/task-7.C: New function.
117 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
119 * configure: Regenerate.
121 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
123 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
124 mutex when HAVE_SYNC_BUILTINS isn't defined.
126 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
128 * libgomp.texi (omp_test_lock): Fix typo.
130 2008-06-12 Tobias Burnus <burnus@net-b.de>
132 * omp_lib.f90.in: Add "implicit none".
134 2008-06-12 Jakub Jelinek <jakub@redhat.com>
137 * testsuite/libgomp.c/reduction-5.c: New test.
139 2008-06-11 Jakub Jelinek <jakub@redhat.com>
141 * libgomp.h (struct gomp_task): Add in_tied_task field.
142 * task.c (gomp_init_task): Initialize it.
143 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
144 unconditionally. Don't call gomp_team_barrier_wake if
145 current task is implicit or if(0) from implicit and number of
146 running tasks is equal to nthreads - 1.
149 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
150 omp_get_team_size_8): Fix pastos.
153 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
154 * configure: Regenerated.
155 * config.h.in: Regenerated.
156 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
159 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
162 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
163 (GOMP_loop_ull_dynamic_start): Likewise.
164 (GOMP_loop_ull_guided_start): Likewise.
165 (GOMP_loop_ull_ordered_static_start): Likewise.
166 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
167 (GOMP_loop_ull_ordered_guided_start): Likewise.
169 2008-06-06 Jakub Jelinek <jakub@redhat.com>
170 Richard Henderson <rth@redhat.com>
171 Ulrich Drepper <drepper@redhat.com>
172 Jakob Blomer <jakob.blomer@ira.uka.de>
174 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
175 Substitute also OMP_*LOCK_25*.
176 * configure: Regenerated.
177 * config.h.in: Regenerated.
178 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
179 ptrlock.c and task.c.
180 * Makefile.in: Regenerated.
181 * testsuite/Makefile.in: Regenerated.
183 * loop_ull.c: New file.
184 * iter_ull.c: New file.
185 * libgomp.h: Include ptrlock.h.
186 (enum gomp_task_kind): New type.
187 (struct gomp_team): Add task_lock, task_queue, task_count,
188 task_running_count, single_count fields. Add
189 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
190 Remove work_share_lock, generation_mask,
191 oldest_live_gen, num_live_gen and init_work_shares fields, add
192 work work_share_list_alloc, work_share_list_free and work_share_chunk
193 fields. Change work_shares from pointer to pointers into an array.
194 Change ordered_release field into gomp_sem_t ** from flexible array
195 member. Add implicit_task and initial_work_shares fields.
196 Move close to the end of the struct.
197 (struct gomp_team_state): Add single_count, last_work_share,
198 active_level and level fields, remove work_share_generation.
199 (gomp_barrier_handle_tasks): New prototype.
200 (gomp_finish_task): New inline function.
201 (struct gomp_work_share): Move chunk_size, end, incr into
202 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
203 next_ll fields. Reshuffle fields. Add next_alloc,
204 next_ws, next_free and inline_ordered_team_ids fields, change
205 ordered_team_ids into pointer from flexible array member.
206 Add mode field. Put lock and next into a different cache line
207 from most of the write-once fields.
208 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
209 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
210 gomp_iter_ull_guided_next): New prototypes.
211 (gomp_new_icv): New prototype.
212 (struct gomp_thread): Add thread_pool and task fields.
213 (struct gomp_thread_pool): New type.
214 (gomp_new_team): New prototype.
215 (gomp_team_start): Change type of last argument.
216 (gomp_new_work_share): Removed.
217 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
218 (gomp_work_share_init_done): New static inline.
219 (gomp_throttled_spin_count_var, gomp_available_cpus,
220 gomp_managed_threads): New extern decls.
221 (gomp_init_task): New prototype.
222 (gomp_spin_count_var): New extern var decl.
223 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
224 or no alias support, or if not PIC.
225 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
226 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
227 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
228 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
229 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
230 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
231 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
232 gomp_test_nest_lock_25): New prototypes.
233 (omp_lock_symver, strong_alias): Define.
234 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
236 (gomp_end_task): New.
237 (struct gomp_task_icv, gomp_global_icv): New.
238 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
239 (struct gomp_task): New.
240 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
241 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
243 (gomp_schedule_type): Reorder enum to match
245 * team.c (struct gomp_thread_start_data): Add thread_pool and task
247 (gomp_thread_start): Add gomp_team_barrier_wait call.
248 For non-nested case remove clearing of docked thread thr fields.
249 Use pool fields instead of global gomp_* variables. Use
250 gomp_barrier_wait_last when needed. Initialize ts.active_level.
251 Create tasks for each member thread.
252 (free_team): Only destroy team barrier, task_lock here and free it.
253 (gomp_free_thread): Free last_team if non-NULL.
254 (gomp_team_end): Call gomp_team_barrier_wait instead of
255 gomp_barrier_wait. For nested case call one extra
256 gomp_barrier_wait. Move here some destruction from free_team.
257 Call free_team on pool->last_team if any, rather than freeing
258 current team. Destroy work_share_list_free_lock ifndef
260 (gomp_new_icv): New function.
261 (gomp_threads, gomp_threads_size, gomp_threads_used,
262 gomp_threads_dock): Removed.
263 (gomp_thread_destructor): New variable.
264 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
266 (gomp_team_start): Create new pool if current thread doesn't have
267 one. Use pool fields instead of global gomp_* variables.
268 Initialize thread_pool field for new threads. Clear single_count.
269 Change last argument from ws to team, don't create
270 new team, set ts.work_share to &team->work_shares[0] and clear
271 ts.last_work_share. Don't clear ts.work_share_generation.
272 If number of threads changed, adjust atomically gomp_managed_threads.
273 Use gomp_init_task instead of gomp_new_task,
274 set thr->task to the corresponding implicit_task array entry.
275 Create tasks for each member thread. Initialize ts.level.
276 (initialize_team): Call pthread_key_create on
277 gomp_thread_destructor.
278 (team_destructor): New function.
280 (gomp_new_team): New function.
281 (free_team): Free gomp_work_share blocks chained through next_alloc,
282 instead of freeing work_shares and destroying work_share_lock.
283 (gomp_team_end): Call gomp_fini_work_share. If number of threads
284 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
285 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
286 of gomp_barrier_wait.
287 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
288 instead of gomp_barrier_wait. Call gomp_work_share_init_done
289 if gomp_work_share_start returned true. Don't unlock ws->lock.
290 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
291 of gomp_barrier_wait.
292 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
293 gomp_work_share_init_done if gomp_work_share_start returned true.
294 Don't unlock ws->lock.
295 * work.c: Include stddef.h.
296 (free_work_share): Use work_share_list_free_lock instead
297 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
298 Call gomp_fini_work_share and then either free ws if orphaned, or
299 put it into work_share_list_free list of the current team.
300 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
302 (gomp_work_share_start, gomp_work_share_end,
303 gomp_work_share_end_nowait): Rewritten.
304 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
305 (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 interfaces.
312 * omp_lib.h.in (openmp_version): Set to 200805.
313 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
314 omp_sched_guided, omp_sched_auto): New parameters.
315 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
316 omp_set_max_active_levels, omp_get_max_active_levels,
317 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
318 omp_get_active_level): New externals.
319 * loop.c: Include limits.h.
320 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
322 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
323 Likewise. Use gomp_icv.
324 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
326 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
327 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
328 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
329 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
330 don't unlock ws->lock, otherwise lock it.
331 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
332 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
333 (gomp_parallel_loop_start): Call gomp_new_team instead of
334 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
335 Adjust gomp_team_start caller. Pass 0 as second argument to
336 gomp_resolve_num_threads.
337 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
338 If adding ws->chunk_size nthreads + 1 times after end won't
339 overflow, set ws->mode to 1.
340 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
341 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
342 GOMP_loop_ull_ordered_static_start,
343 GOMP_loop_ull_ordered_dynamic_start,
344 GOMP_loop_ull_ordered_guided_start,
345 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
346 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
347 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
348 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
349 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
351 * libgomp.map: Export lock routines also @@OMP_2.0.
352 (GOMP_loop_ordered_dynamic_first,
353 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
354 GOMP_loop_ordered_static_first): Remove.
355 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
356 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
357 GOMP_loop_ull_ordered_dynamic_next,
358 GOMP_loop_ull_ordered_dynamic_start,
359 GOMP_loop_ull_ordered_guided_next,
360 GOMP_loop_ull_ordered_guided_start,
361 GOMP_loop_ull_ordered_runtime_next,
362 GOMP_loop_ull_ordered_runtime_start,
363 GOMP_loop_ull_ordered_static_next,
364 GOMP_loop_ull_ordered_static_start,
365 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
366 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
367 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
368 (omp_set_schedule, omp_get_schedule,
369 omp_get_thread_limit, omp_set_max_active_levels,
370 omp_get_max_active_levels, omp_get_level,
371 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
372 omp_set_schedule_, omp_set_schedule_8_,
373 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
374 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
375 omp_get_max_active_levels_, omp_get_level_,
376 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
377 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
378 New exports @@OMP_3.0.
379 * omp.h.in (omp_sched_t): New type.
380 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
381 omp_set_max_active_levels, omp_get_max_active_levels,
382 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
383 omp_get_active_level): New prototypes.
384 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
385 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
386 gomp_thread_limit_var, gomp_remaining_threads_count,
387 gomp_remaining_threads_lock): New variables.
388 (parse_spincount): New function.
389 (initialize_env): Call gomp_init_num_threads unconditionally.
390 Initialize gomp_available_cpus. Call parse_spincount,
391 initialize gomp_{,throttled_}spin_count_var
392 depending on presence and value of OMP_WAIT_POLICY and
393 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
394 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
395 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
396 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
397 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
398 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
399 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
400 (gomp_global_icv): New.
401 (parse_schedule): Use it. Parse "auto".
402 (omp_set_num_threads): Use gomp_icv.
403 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
405 (omp_get_max_threads): Move from parallel.c.
406 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
407 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
409 (parse_stacksize, parse_wait_policy): New functions.
410 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
411 both wrappers for compatibility and new locks.
412 (omp_set_schedule, omp_get_schedule,
413 omp_get_thread_limit, omp_set_max_active_levels,
414 omp_get_max_active_levels, omp_get_level,
415 omp_get_ancestor_thread_num, omp_get_team_size,
416 omp_get_active_level): New ialias_redirect.
417 (omp_set_schedule_, omp_set_schedule_8_,
418 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
419 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
420 omp_get_max_active_levels_, omp_get_level_,
421 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
422 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
424 * parallel.c: Include limits.h.
425 (gomp_resolve_num_threads): Add count argument. Rewritten.
426 (GOMP_parallel_start): Call gomp_new_team and pass that as last
427 argument to gomp_team_start. Pass 0 as second argument to
428 gomp_resolve_num_threads.
429 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
430 if gomp_thread_limit_var != ULONG_MAX.
431 (omp_in_parallel): Implement using ts.active_level.
432 (omp_get_max_threads): Move to env.c.
433 (omp_get_level, omp_get_ancestor_thread_num,
434 omp_get_team_size, omp_get_active_level): New functions,
436 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
437 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
438 gomp_iter_dynamic_next instead of the _locked variant and don't take
439 lock around it, otherwise acquire it before calling
440 gomp_iter_dynamic_next_locked.
441 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
442 gomp_iter_dynamic_next instead of the _locked variant and don't take
444 (GOMP_parallel_sections_start): Call gomp_new_team instead of
445 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
446 Adjust gomp_team_start caller. Pass count as second argument to
447 gomp_resolve_num_threads, don't adjust num_threads after the call.
449 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
450 ws->chunk_size by incr.
451 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
453 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
455 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
456 (omp_check_defines): Check even the compat defines.
457 * config/linux/ptrlock.c: New file.
458 * config/linux/ptrlock.h: New file.
459 * config/linux/wait.h: New file.
460 * config/posix/ptrlock.c: New file.
461 * config/posix/ptrlock.h: New file.
462 * config/linux/bar.h (gomp_team_barrier_wait,
463 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
464 (gomp_team_barrier_set_task_pending,
465 gomp_team_barrier_clear_task_pending,
466 gomp_team_barrier_set_waiting_for_tasks,
467 gomp_team_barrier_waiting_for_tasks,
468 gomp_team_barrier_done): New inlines.
469 (gomp_barrier_t): Rewritten.
470 (gomp_barrier_state_t): New typedef.
471 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
472 gomp_barrier_wait_start): Rewritten.
473 (gomp_barrier_wait_end): Change second argument to
474 gomp_barrier_state_t.
475 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
477 * config/linux/bar.c: Include wait.h instead of libgomp.h and
479 (gomp_barrier_wait_end): Rewritten.
480 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
481 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
482 * config/posix/bar.h (gomp_barrier_t): Add generation field.
483 (gomp_barrier_state_t): New typedef.
484 (gomp_team_barrier_wait,
485 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
486 (gomp_barrier_wait_start): Or all but low 2 bits from generation
487 into the return value. Return gomp_barrier_state_t.
488 (gomp_team_barrier_set_task_pending,
489 gomp_team_barrier_clear_task_pending,
490 gomp_team_barrier_set_waiting_for_tasks,
491 gomp_team_barrier_waiting_for_tasks,
492 gomp_team_barrier_done): New inlines.
493 (gomp_barrier_wait_end): Change second argument to
494 gomp_barrier_state_t.
495 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
497 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
498 (gomp_barrier_wait_end): Change second argument to
499 gomp_barrier_state_t.
500 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
501 gomp_team_barrier_wake): New functions.
502 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
504 (gomp_futex_wake, gomp_futex_wait): New variables.
505 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
506 * config/linux/lock.c: Rewrite to make locks task owned,
507 for backwards compatibility provide the old entrypoints
508 if symbol versioning. Include wait.h instead of libgomp.h and
510 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
511 * config/posix95/lock.c: Rewrite to make locks task owned,
512 for backwards compatibility provide the old entrypoints
513 if symbol versioning.
514 * config/posix/lock.c: Rewrite to make locks task owned,
515 for backwards compatibility provide the old entrypoints
516 if symbol versioning.
517 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
518 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
519 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
520 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
521 (sys_futex0): Return error code.
522 (futex_wake, futex_wait): If ENOSYS was returned, clear
523 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
524 (cpu_relax, atomic_write_barrier): New static inlines.
525 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
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/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
530 (sys_futex0): Return error code.
531 (futex_wake, futex_wait): If ENOSYS was returned, clear
532 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
533 (cpu_relax, atomic_write_barrier): New static inlines.
534 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
535 (sys_futex0): Return error code.
536 (futex_wake, futex_wait): If ENOSYS was returned, clear
537 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
538 (cpu_relax, atomic_write_barrier): New static inlines.
539 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
540 (sys_futex0): Return error code.
541 (futex_wake, futex_wait): If ENOSYS was returned, clear
542 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
543 (cpu_relax, atomic_write_barrier): New static inlines.
544 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
545 (sys_futex0): Return error code.
546 (futex_wake, futex_wait): If ENOSYS was returned, clear
547 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
548 (cpu_relax, atomic_write_barrier): New static inlines.
549 * config/linux/sem.c: Include wait.h instead of libgomp.h and
551 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
552 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
553 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
555 (omp_nest_lock_t): Change owner into void *, add lock field.
556 * config/posix95/omp-lock.h: Include semaphore.h.
557 (omp_lock_25_t, omp_nest_lock_25_t): New types.
558 (omp_lock_t): Use sem_t instead of mutex if semaphores
560 (omp_nest_lock_t): Likewise. Change owner to void *.
561 * config/posix/omp-lock.h: Include semaphore.h.
562 (omp_lock_25_t, omp_nest_lock_25_t): New types.
563 (omp_lock_t): Use sem_t instead of mutex if semaphores
565 (omp_nest_lock_t): Likewise. Add owner field.
567 2008-06-06 Jakub Jelinek <jakub@redhat.com>
569 * testsuite/libgomp.c/collapse-1.c: New test.
570 * testsuite/libgomp.c/collapse-2.c: New test.
571 * testsuite/libgomp.c/collapse-3.c: New test.
572 * testsuite/libgomp.c/icv-1.c: New test.
573 * testsuite/libgomp.c/icv-2.c: New test.
574 * testsuite/libgomp.c/lib-2.c: New test.
575 * testsuite/libgomp.c/lock-1.c: New test.
576 * testsuite/libgomp.c/lock-2.c: New test.
577 * testsuite/libgomp.c/lock-3.c: New test.
578 * testsuite/libgomp.c/loop-4.c: New test.
579 * testsuite/libgomp.c/loop-5.c: New test.
580 * testsuite/libgomp.c/loop-6.c: New test.
581 * testsuite/libgomp.c/loop-7.c: New test.
582 * testsuite/libgomp.c/loop-8.c: New test.
583 * testsuite/libgomp.c/loop-9.c: New test.
584 * testsuite/libgomp.c/nested-3.c: New test.
585 * testsuite/libgomp.c/nestedfn-6.c: New test.
586 * testsuite/libgomp.c/sort-1.c: New test.
587 * testsuite/libgomp.c/task-1.c: New test.
588 * testsuite/libgomp.c/task-2.c: New test.
589 * testsuite/libgomp.c/task-3.c: New test.
590 * testsuite/libgomp.c/task-4.c: New test.
591 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
592 to C++ testsuite default compiler options.
593 * testsuite/libgomp.c++/collapse-1.C: New test.
594 * testsuite/libgomp.c++/collapse-2.C: New test.
595 * testsuite/libgomp.c++/ctor-10.C: New test.
596 * testsuite/libgomp.c++/for-1.C: New test.
597 * testsuite/libgomp.c++/for-2.C: New test.
598 * testsuite/libgomp.c++/for-3.C: New test.
599 * testsuite/libgomp.c++/for-4.C: New test.
600 * testsuite/libgomp.c++/for-5.C: New test.
601 * testsuite/libgomp.c++/loop-8.C: New test.
602 * testsuite/libgomp.c++/loop-9.C: New test.
603 * testsuite/libgomp.c++/loop-10.C: New test.
604 * testsuite/libgomp.c++/task-1.C: New test.
605 * testsuite/libgomp.c++/task-2.C: New test.
606 * testsuite/libgomp.c++/task-3.C: New test.
607 * testsuite/libgomp.c++/task-4.C: New test.
608 * testsuite/libgomp.c++/task-5.C: New test.
609 * testsuite/libgomp.c++/task-6.C: New test.
610 * testsuite/libgomp.fortran/allocatable1.f90: New test.
611 * testsuite/libgomp.fortran/allocatable2.f90: New test.
612 * testsuite/libgomp.fortran/allocatable3.f90: New test.
613 * testsuite/libgomp.fortran/allocatable4.f90: New test.
614 * testsuite/libgomp.fortran/collapse1.f90: New test.
615 * testsuite/libgomp.fortran/collapse2.f90: New test.
616 * testsuite/libgomp.fortran/collapse3.f90: New test.
617 * testsuite/libgomp.fortran/collapse4.f90: New test.
618 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
619 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
620 * testsuite/libgomp.fortran/lib4.f90: New test.
621 * testsuite/libgomp.fortran/lock-1.f90: New test.
622 * testsuite/libgomp.fortran/lock-2.f90: New test.
623 * testsuite/libgomp.fortran/nested1.f90: New test.
624 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
625 * testsuite/libgomp.fortran/strassen.f90: New test.
626 * testsuite/libgomp.fortran/tabs1.f90: New test.
627 * testsuite/libgomp.fortran/tabs2.f: New test.
628 * testsuite/libgomp.fortran/task1.f90: New test.
629 * testsuite/libgomp.fortran/task2.f90: New test.
630 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
631 * testsuite/libgomp.fortran/vla5.f90: Likewise.
632 * testsuite/libgomp.c/pr26943-2.c: Likewise.
633 * testsuite/libgomp.c/pr26943-3.c: Likewise.
634 * testsuite/libgomp.c/pr26943-4.c: Likewise.
636 2008-05-23 Jakub Jelinek <jakub@redhat.com>
639 * testsuite/libgomp.c++/ctor-11.C: New test.
640 * testsuite/libgomp.c++/ctor-12.C: New test.
642 2008-05-15 Janis Johnson <janis187@us.ibm.com>
644 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
646 2008-05-07 Jakub Jelinek <jakub@redhat.com>
649 * testsuite/libgomp.c/atomic-5.c: New test.
650 * testsuite/libgomp.c/atomic-6.c: New test.
651 * testsuite/libgomp.c/autopar-1.c: New test.
653 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
655 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
656 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
657 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
658 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
659 * configure: Regenerate.
660 * Makefile.in, testsuite/Makefile.in: Likewise.
662 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
665 * aclocal.m4: Regenerate.
666 * configure: Regenerate.
668 2008-03-18 Jakub Jelinek <jakub@redhat.com>
671 * testsuite/libgomp.c/atomic-4.c: New test.
674 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
675 (gomp_iter_guided_next): Likewise.
676 * testsuite/libgomp.c/pr35625.c: New test.
678 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
680 * aclocal.m4: Regenerate.
681 * configure: Likewise.
682 * Makefile.in: Likewise.
683 * testsuite/Makefile.in: Likewise.
685 2008-03-13 Jakub Jelinek <jakub@redhat.com>
688 * testsuite/libgomp.c++/pr35185.C: New test.
690 2008-03-12 Jakub Jelinek <jakub@redhat.com>
693 * testsuite/libgomp.c/pr35549.c: New test.
695 2008-03-06 Jakub Jelinek <jakub@redhat.com>
697 * testsuite/libgomp.c/atomic-3.c: New test.
699 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
702 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
705 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
708 * configure.ac: Add ACX_HEADER_STRING.
709 * env.c: Include strings.h.
710 * aclocal.m4: Regenerate.
711 * config.h.in: Regenerate.
712 * configure: Regenerate.
713 * Makefile.in: Regenerate.
714 * testsuite/Makefile.in: Regenerate.
716 2008-02-15 Jakub Jelinek <jakub@redhat.com>
719 * testsuite/libgomp.c/pr35196.c: New test.
722 * testsuite/libgomp.fortran/pr35130.f90: New test.
723 * testsuite/libgomp.c/pr35130.c: New test.
725 2008-01-25 Jakub Jelinek <jakub@redhat.com>
728 * testsuite/libgomp.c/pr33880.c: New test.
729 * testsuite/libgomp.fortran/pr33880.f90: New test.
731 2008-01-24 David Edelsohn <edelsohn@gnu.org>
733 * configure: Regenerate.
735 2008-01-08 Jakub Jelinek <jakub@redhat.com>
737 * configure.ac: Move futex checking into ../config/futex.m4.
738 * configure: Rebuilt.
739 * aclocal.m4: Rebuilt.
740 * Makefile.in: Rebuilt.
742 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
743 2007-10-15 ../config/tls.m4 change.
745 2007-12-19 Jakub Jelinek <jakub@redhat.com>
748 * testsuite/libgomp.c/pr34513.c: New test.
749 * testsuite/libgomp.c++/pr34513.C: New test.
751 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
754 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
756 2007-12-04 Jakub Jelinek <jakub@redhat.com>
758 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
760 2007-12-03 Jakub Jelinek <jakub@redhat.com>
762 * testsuite/libgomp.c/private-1.c: New test.
764 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
765 Paolo Bonzini <bonzini@gnu.org>
767 * Makefile.am: Use space as vpath separator. Use 'vpath %'
768 instead of 'VPATH ='.
769 * Makefile.in: Regenerate.
771 2007-11-23 Matthias Klose <doko@ubuntu.com>
773 * configure.ac: Adjust makeinfo version check.
774 * configure: Regenerate.
776 2007-11-10 Jakub Jelinek <jakub@redhat.com>
779 * testsuite/libgomp.fortran/pr34020.f90: New test.
781 2007-11-06 Jakub Jelinek <jakub@redhat.com>
784 * testsuite/libgomp.c++/atomic-1.C: New test.
786 2007-10-25 Jakub Jelinek <jakub@redhat.com>
789 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
790 Make x and y integers rather than (implicit) reals. Add private (j)
791 clause to the last omp parallel.
793 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
795 * configure: Regenerate following changes to ../config/tls.m4.
797 2007-09-28 Jakub Jelinek <jakub@redhat.com>
799 * testsuite/libgomp.fortran/stack.f90: New test.
801 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
803 * config/mingw32/proc.c: New file.
805 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
807 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
808 (main): Use __get_cpuid to get i386 target fetaures.
809 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
810 (main): Use __get_cpuid to get x86_64 target fetaures.
812 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
815 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
816 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
818 2007-07-12 Jakub Jelinek <jakub@redhat.com>
821 * testsuite/libgomp.fortran/pr32550.f90: New test.
822 * testsuite/libgomp.fortran/crayptr2.f90: New test.
824 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
826 * aclocal.m4: Regenerated.
828 2007-07-05 Tobias Burnus <burnus@net-b.de>
831 * testsuite/libgomp.fortran/pr32359.f90: New.
833 2007-07-02 Jakub Jelinek <jakub@redhat.com>
836 * sections.c (GOMP_parallel_sections_start): Only decrease
837 number of threads to COUNT if dyn_var is true.
838 * testsuite/libgomp.c/pr32468.c: New test.
840 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
843 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
845 2007-06-21 Jakub Jelinek <jakub@redhat.com>
848 * testsuite/libgomp.c/pr32362-1.c: New test.
849 * testsuite/libgomp.c/pr32362-2.c: New test.
850 * testsuite/libgomp.c/pr32362-3.c: New test.
852 2007-06-07 Jakub Jelinek <jakub@redhat.com>
854 * team.c (gomp_team_start): Fix setting up thread_attr
857 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
859 * configure: Regenerate.
861 2007-05-23 Steve Ellcey <sje@cup.hp.com>
863 * Makefile.in: Regenerate.
864 * configure: Regenerate.
865 * aclocal.m4: Regenerate.
866 * testsuite/Makefile.in: Regenerate.
868 2007-05-04 Jakub Jelinek <jakub@redhat.com>
870 * config/linux/proc.c: New file.
873 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
875 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
877 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
879 2007-04-16 Matthias Klose <doko@debian.org>
881 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
882 flags if not building with -m64.
883 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
884 flag for i?86-*-* targets, if current target matches -m64.
886 2007-04-14 Steve Ellcey <sje@cup.hp.com>
888 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
889 * Makefile.in: Regenerate.
891 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
894 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
896 * testsuite/libgomp.fortran/fortran.exp: Likewise.
898 2007-04-04 Jakub Jelinek <jakub@redhat.com>
900 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
902 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
903 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
904 (parse_affinity): New function.
905 (initialize_env): Call it and gomp_init_affinity.
906 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
907 create new pthread_attr_t and call gomp_init_thread_affinity
908 on it for each thread before passing the attribute to pthread_create.
909 * config/linux/affinity.c: New file.
910 * config/posix/affinity.c: New file.
911 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
912 * configure: Rebuilt.
913 * config.h.in: Rebuilt.
914 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
915 * Makefile.in: Rebuilt.
917 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
919 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
921 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
924 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
926 * testsuite/config/default.exp: New file.
927 * testsuite/lib/libgomp.exp: New file.
928 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
929 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
930 load_lib *, load_gcc_lib *): Move to libgomp.exp.
931 (libgomp_load): Remove.
932 * testsuite/lib/libgomp.exp (libgomp_init): Compute
933 always_ld_library_path, not ld_library_path. Set additional_flags
934 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
935 (target_compile): Do not call libgomp_init. Append lang_library_path
936 and lang_link_flags to options.
937 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
938 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
940 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
941 always_ld_library_path. Set LD_LIBRARY_PATH here.
942 * testsuite/libgomp.fortran/fortran.exp: Ditto.
943 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
944 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
946 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
947 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
948 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
949 * testsuite/libgomp.c/pr29947-1.c: Ditto.
950 * testsuite/libgomp.c/atomic-10.c: Ditto.
952 2007-03-21 Jakub Jelinek <jakub@redhat.com>
954 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
955 dg-final cleanup-modules line.
956 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
957 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
958 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
959 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
960 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
961 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
962 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
964 2007-03-18 Andreas Schwab <schwab@suse.de>
966 * acinclude.m4: Adjust regular expression for ld version
968 * configure: Regenerate.
970 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
972 * Makefile.am: Add install-pdf target as copied from
973 automake v1.10 rules.
974 * Makefile.in: Regenerate
976 2007-02-07 Jakub Jelinek <jakub@redhat.com>
979 * configure: Regenerate.
982 * testsuite/libgomp.c++/pr30703.C: New test.
984 2007-02-02 Jakub Jelinek <jakub@redhat.com>
987 2006-07-05 Eric Christopher <echristo@apple.com>
988 * configure.ac: Depend addition of -pthread on host OS.
989 * configure: Regenerate.
991 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
993 * libgomp.texi: Fix spacing after abbreviations.
995 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
998 * configure.ac: Add check for makeinfo
999 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1000 if an appropiate version of makeinfo is found.
1001 * aclocal.m4: Regenerated.
1002 * configure: Regenerated.
1003 * Makefile.in: Regenerated.
1004 * testsuite/Makefile.in: Regenerated.
1006 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
1009 * libgomp.texi: More about implementation-dependent settings.
1011 2007-01-26 Tobias Burnus <burnus@net-b.de>
1013 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1015 2007-01-24 Jakub Jelinek <jakub@redhat.com>
1018 * testsuite/libgomp.c/pr30494.c: New test.
1020 2007-01-15 Tom Tromey <tromey@redhat.com>
1022 * configure: Rebuilt.
1023 * configure.ac: Fixed comment.
1025 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
1027 * libgomp.texi: Document implementation specific default values of
1028 environment variables.
1030 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
1033 * libgomp.texi: New file.
1034 * configure.ac: Add --enable-generated-files-in-srcdir option.
1035 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1037 * Makefile.in: Regenerated.
1038 * config.h.in: Regenerated.
1039 * testsuite/Makefile.in: Regenerated.
1042 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
1045 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1047 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1049 * configure: Regenerate.
1051 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1054 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1055 start if there shouldn't be any loop iterations.
1056 (gomp_loop_ordered_static_start): Remove start == end test.
1057 * testsuite/libgomp.c/pr29947-1.c: New test.
1058 * testsuite/libgomp.c/pr29947-2.c: New test.
1060 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1062 * configure.tgt: Force initial-exec TLS model on Linux only.
1064 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1066 * configure: Regenerated.
1068 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1070 * env.c (parse_schedule): Reject out of range values.
1071 (parse_unsigned_long): Reject out of range, negative or zero values.
1073 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1076 * testsuite/libgomp.fortran/pr29629.f90: New test.
1078 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1081 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1082 * config/posix95: New directory.
1083 * config/posix95/omp-lock.h: New file.
1084 * config/posix95/lock.c: Likewise.
1086 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1088 * aclocal.m4: Regenerate.
1089 * configure: Regenerate.
1091 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1093 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1096 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1098 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1100 * configure: Regenerate.
1101 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1103 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1107 * testsuite/libgomp.c/nestedfn-4.c: New test.
1108 * testsuite/libgomp.c/nestedfn-5.c: New test.
1109 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1112 * testsuite/libgomp.fortran/condinc1.f: New test.
1113 * testsuite/libgomp.fortran/condinc2.f: New test.
1114 * testsuite/libgomp.fortran/condinc3.f90: New test.
1115 * testsuite/libgomp.fortran/condinc4.f90: New test.
1116 * testsuite/libgomp.fortran/condinc1.inc: New file.
1118 2006-09-18 Tom Tromey <tromey@redhat.com>
1120 * configure: Rebuilt.
1122 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1125 PR preprocessor/14634
1126 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1128 * configure: Regenerate.
1130 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1132 * testsuite/libgomp.fortran/reduction3.f90: Change
1133 -2147483648 to -huge(i)-1 to avoid overflow.
1134 * testsuite/libgomp.fortran/reduction4.f90: Change
1135 Z'ffffffff' to not(0) to avoid overflow.
1137 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1140 * Makefile.am (libsubincludedir): New.
1141 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1142 * Makefile.in: Regenerate.
1144 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1147 * env.c: Include ctype.h.
1148 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1149 leading and/or trailing whitespace and compare strings case
1152 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1155 * testsuite/libgomp.fortran/pr28390.f: New test.
1157 2006-07-05 Eric Christopher <echristo@apple.com>
1159 * configure.ac: Depend addition of -pthread on host OS.
1160 * configure: Regenerate.
1162 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1164 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1165 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1168 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1172 * configure.ac: If neither --enable-linux-futex nor
1173 --disable-linux-futex is passed, determine the default by checking
1174 for compiling and/or running against NPTL. With --enable-linux-futex,
1175 check if SYS_gettid and SYS_futex are defined.
1176 * configure: Rebuilt.
1178 2006-06-14 Richard Henderson <rth@redhat.com>
1181 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1182 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1184 2006-06-09 Richard Henderson <rth@redhat.com>
1186 * env.c (gomp_nthreads_var): Change to unsigned long.
1187 (gomp_run_sched_chunk): Likewise.
1188 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1189 (initialize_env): Initialize gomp_thread_attr.
1190 * libgomp.h (gomp_nthreads_var): Update decl.
1191 (gomp_run_sched_chunk): Likewise.
1192 (gomp_thread_attr): Declare.
1193 * team.c (gomp_thread_attr): Export.
1194 (initialize_team): Don't initialize it.
1196 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1199 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1200 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1202 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1204 * config/mingw32/time.c: New file.
1205 * configure.tgt: Use it.
1207 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1209 * Makefile.am: Add install-html target. Add install-html to .PHONY
1210 * Makefile.in: Regenerate.
1212 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1215 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1216 * testsuite/libgomp.c/critical-1.c: Likewise.
1217 * testsuite/libgomp.c/loop-1.c: Likewise.
1218 * testsuite/libgomp.c/loop-2.c: Likewise.
1219 * testsuite/libgomp.c/single-1.c: Likewise.
1220 * testsuite/libgomp.c/ordered-1.c: Likewise.
1221 * testsuite/libgomp.c/ordered-2.c: Likewise.
1223 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1226 * libgomp.fortran/pr27416-1.f90: New test.
1228 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1231 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1232 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1234 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1237 * testsuite/libgomp.c/pr26943-1.c: New test.
1238 * testsuite/libgomp.c/pr26943-2.c: New test.
1239 * testsuite/libgomp.c/pr26943-3.c: New test.
1240 * testsuite/libgomp.c/pr26943-4.c: New test.
1241 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1242 * testsuite/libgomp.c++/pr26943.C: New test.
1244 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1247 * testsuite/libgomp.c++/pr27337.C: New test.
1249 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1252 * testsuite/libgomp.c/pr26171.c: New test.
1254 2006-04-25 Richard Henderson <rth@redhat.com>
1257 * configure.ac: Use GCC_CHECK_TLS.
1258 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1259 * Makefile.in, aclocal.m4, configure: Regenerate.
1261 2006-04-10 Matthias Klose <doko@debian.org>
1263 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1264 directory names containing underscores.
1266 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1269 * testsuite/libgomp.c++/pr26691.C: New test.
1271 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1273 * testsuite/libgomp.fortran/retval2.f90: New test.
1275 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1277 * testsuite/libgomp.c++: New directory.
1279 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1281 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1282 * config/posix/sem.c: Implement the above.
1284 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1286 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1287 define HAVE_BROKEN_POSIX_SEMAPHORES.
1288 * configure: Rebuilt.
1289 * config.h.in: Rebuilt.
1291 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1294 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1295 for the other pthread check.
1296 * configure: Regenerate.
1297 * config.h.in: Regenerate.
1299 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1303 * Makefile.am (fincludedir): New variable.
1304 (nodist_include_HEADERS): Remove Fortran files.
1305 (nodist_finclude_HEADERS): New variable.
1306 * Makefile.in: Regenerated.
1308 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1310 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1311 Remove tests for returning assumed character length arrays.
1313 2006-02-12 Roger Sayle <roger@eyesopen.com>
1314 John David Anglin <dave@hiauly1.hia.nrc.ca>
1317 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1319 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1321 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1323 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1325 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1326 part of LD_LIBRARY_PATH manually.
1328 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1331 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1334 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1337 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1338 * configure.ac (PERL): Don't set.
1339 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1340 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1341 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1342 * omp.h.in: Wrap the new configure substitutions with @ characters.
1343 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1344 * aclocal.m4, configure, Makefile.in: Regenerate.
1345 * mkomp_h.pl: Delete.
1347 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1350 * configure.ac: Use GCC_HEADER_STDINT.
1351 * libgomp.h: Include gstdint.h.
1352 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1353 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1355 2006-01-24 Richard Henderson <rth@redhat.com>
1358 * configure.ac: Add AM_MAINTAINER_MODE.
1359 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1361 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1363 * Makefile.in: Regenerate.
1364 * testsuite/Makefile.in: Regenerate.
1365 * aclocal.m4: Regenerate.
1367 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1369 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1371 * configure.ac: Add check for loadavg.h.
1372 (link_gomp): Adjust comment.
1373 * configure: Regenerate.
1374 * config.h.in: Regenerate.
1376 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1379 * configure.ac: Remove check for alloca.h.
1380 * configure: Regenerate.
1381 * config.h.in: Regenerate.
1382 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1383 * team.c: Remove use of alloca.h.
1384 Call gomp_alloca instead of alloca.
1386 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1389 * team.c: Add include of alloca.h.
1390 * configure.ac: Add check for alloca.h.
1391 * configure: Regenerate.
1392 * config.h.in: Regenerate.
1394 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1397 * testsuite/libgomp.fortran/pr25219.f90: New test.
1399 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1401 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1402 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1403 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1404 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1405 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1406 testsuite/libgomp.fortran/threadprivate1.f90,
1407 testsuite/libgomp.fortran/threadprivate2.f90,
1408 testsuite/libgomp.fortran/threadprivate3.f90,
1409 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1410 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1411 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1412 effective-target to TLS runtime.
1414 * testsuite/libgomp.fortran/pr25162.f: Require
1415 effective-target TLS runtime.
1417 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1419 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1420 * testsuite/libgomp.c/nestedfn-3.c: New test.
1422 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1425 * testsuite/libgomp.fortran/pr25162.f: New test.
1427 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1429 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1430 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1432 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1434 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1435 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1436 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1437 single.c, team.c, work.c, config/linux/alpha/futex.h,
1438 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1439 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1440 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1441 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1442 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1443 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1444 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1447 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1449 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1450 to nodist_noinst_HEADERS.
1451 * Makefile.in: Rebuilt.
1453 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1454 add integer count field.
1455 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1456 omp_nest_lock_t type change.
1457 (omp_init_nest_lock): Likewise. Initialize count to 0.
1458 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1460 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1462 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1463 Increment count if successful and return the new nesting level.
1464 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1465 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1466 * testsuite/libgomp.c/lib-1.c: New test.
1467 * testsuite/libgomp.fortran/lib1.f90: New test.
1468 * testsuite/libgomp.fortran/lib2.f: New test.
1469 * testsuite/libgomp.fortran/lib3.f: New test.
1471 2005-11-17 Richard Henderson <rth@redhat.com>
1474 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1475 * configure.ac (link_gomp): New. Substitute it.
1476 (AC_CONFIG_FILES): Add libgomp.spec.
1477 * libgomp.spec.in: New file.
1478 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1479 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1481 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1483 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1484 reduction(-:var) behaving the same as reduction(+:var).
1485 * testsuite/libgomp.c/reduction-4.c: New test.
1487 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1489 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1490 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1491 testsuite/libgomp.c/copyin-3.c,
1492 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1493 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1494 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1495 testsuite/libgomp.c++/pr24455.C,
1496 testsuite/libgomp.fortran/threadprivate1.f90,
1497 testsuite/libgomp.fortran/threadprivate2.f90,
1498 testsuite/libgomp.fortran/threadprivate3.f90,
1499 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1500 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1501 testsuite/libgomp.fortran/omp_parse3.f90: Require
1502 effective-target TLS.
1504 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1508 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1511 * team.c (initialize_team): Pass NULL rather than free as
1512 pthread_key_create destructor. Initialize thread specific data
1513 pointer in initial thread to a static local variable rather than
1516 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1518 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1519 its location to ld_library_path.
1521 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1523 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1525 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1527 * testsuite/libgomp.c: Rename from libgomp.dg.
1529 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1531 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1532 threadprivate variable 'i'.
1534 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1536 * config/linux/s390/futex.h: New file.
1537 * configure.tgt: Use it.
1539 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1540 before the parallel.
1542 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1545 * testsuite/libgomp.c++/master-1.C: New test.
1547 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1549 * testsuite/libgomp.dg/copyin-3.c: New test.
1551 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1553 * testsuite/libgomp.fortran/retval1.f90: New test.
1554 * testsuite/libgomp.fortran/vla7.f90: New test.
1556 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1558 * testsuite/libgomp.fortran/vla2.f90: New test.
1559 * testsuite/libgomp.fortran/vla3.f90: New test.
1560 * testsuite/libgomp.fortran/vla4.f90: New test.
1561 * testsuite/libgomp.fortran/vla5.f90: New test.
1562 * testsuite/libgomp.fortran/vla6.f90: New test.
1564 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1566 * config/linux/sparc/futex.h: New file.
1567 * configure.tgt: Use it.
1568 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1570 * critical.c: Include stdlib.h.
1571 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1572 ignoring return value.
1573 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1574 LIBGOMP_CHECK_SYNC_BUILTINS check.
1575 * configure: Rebuilt.
1577 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1579 * testsuite/libgomp.fortran/vla1.f90: New test.
1581 2005-10-31 Richard Henderson <rth@redhat.com>
1583 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1584 setting 's' in different threads.
1586 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1588 * libgomp.h (attribute_hidden, ialias): Define.
1589 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1590 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1591 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1592 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1593 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1594 omp_test_lock, omp_test_nest_lock): Likewise.
1595 * config/linux/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 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1600 omp_get_dynamic, omp_get_nested): Likewise.
1601 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1602 omp_get_thread_num, omp_in_parallel): Likewise.
1603 * fortran.c (ialias_redirect): Define.
1604 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1605 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1606 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1607 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1608 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1609 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1610 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1611 omp_get_wtime): Add ialias_redirect.
1613 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1615 * fortran.c: Include stdlib.h.
1617 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1619 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1620 * Makefile.in: Regenerated.
1622 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1624 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1625 * libgomp_f.h.in (omp_check_defines): New function.
1626 * env.c: Include libgomp_f.h.
1627 (initialize_env): Call omp_check_defines.
1629 * testsuite/libgomp.dg/copyin-2.c: New test.
1630 * testsuite/libgomp.c++/copyin-2.C: New test.
1631 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1633 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1634 * testsuite/libgomp.fortran/sharing2.f90: New test.
1636 * testsuite/libgomp.dg/copyin-1.c: New test.
1637 * testsuite/libgomp.c++/copyin-1.C: New test.
1639 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1641 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1643 * testsuite/libgomp.fortran/workshare1.f90: New test.
1645 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1647 * libgomp.fortran/sharing1.f90: New test.
1649 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1652 * testsuite/libgomp.c++/loop-7.C: New test.
1654 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1656 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1657 * testsuite/libgomp.fortran/reduction6.f90: New test.
1658 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1660 2005-10-23 Richard Henderson <rth@redhat.com>
1662 * testsuite/libgomp.c++/ctor-1.C: New.
1663 * testsuite/libgomp.c++/ctor-2.C: New.
1664 * testsuite/libgomp.c++/ctor-3.C: New.
1665 * testsuite/libgomp.c++/ctor-4.C: New.
1666 * testsuite/libgomp.c++/ctor-5.C: New.
1667 * testsuite/libgomp.c++/ctor-6.C: New.
1668 * testsuite/libgomp.c++/ctor-7.C: New.
1669 * testsuite/libgomp.c++/ctor-8.C: New.
1670 * testsuite/libgomp.c++/ctor-9.C: New.
1672 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1675 * testsuite/libgomp.c++/pr24455-1.C: New test.
1676 * testsuite/libgomp.c++/pr24455.C: New test.
1677 * testsuite/libgomp.dg/pr24455-1.c: New test.
1678 * testsuite/libgomp.dg/pr24455.c: New test.
1680 2005-10-20 Richard Henderson <rth@redhat.com>
1682 * testsuite/libgomp.c++/loop-6.C: New.
1683 * testsuite/libgomp.dg/loop-3.c: New.
1685 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1687 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1689 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1692 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1694 * testsuite/libgomp.fortran/jacobi.f: New test.
1696 2005-10-19 Richard Henderson <rth@redhat.com>
1698 * configure.tgt (i?86-linux): Default to with_arch instead of
1699 CFLAGS. Add -mtune to match target_cpu.
1700 (x86_64-linux): Tune to i686.
1702 * fortran.c (omp_test_nest_lock_): Fix typo.
1704 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1706 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1707 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1708 * testsuite/libgomp.dg/ordered-3.c: New test.
1710 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1711 Remove volatile keyword.
1713 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1714 in COMMON block to avoid warnings on 64-bit targets.
1716 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1718 * testsuite/libgomp.dg/shared-3.c: New test.
1720 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1722 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1723 * testsuite/libgomp.fortran/reduction5.f90: New test.
1725 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1727 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1729 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1730 flush loop now that __sync_synchronize has proper memory barrier.
1731 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1732 Add -ffixed-form to dg-options.
1734 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1736 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1737 from subdirectories.
1738 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1739 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1740 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1741 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1742 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1743 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1744 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1745 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1746 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1747 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1748 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1749 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1750 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1751 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1752 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1753 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1754 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1755 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1756 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1757 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1758 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1759 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1760 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1761 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1762 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1764 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1766 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1767 lang_library_path exists. Use find instead of glob to gather tests.
1768 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1770 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1772 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1773 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1774 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1775 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1776 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1777 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1778 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1779 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1780 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1781 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1782 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1783 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1784 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1786 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1788 * testsuite/libgomp.dg/vla-1.c: New test.
1790 * testsuite/libgomp.fortran/reference2.f90: New test.
1792 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1793 declaration of omp_get_thread_num.
1794 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1797 * testsuite/libgomp.fortran/reduction1.f90: New test.
1798 * testsuite/libgomp.fortran/reduction2.f90: New test.
1799 * testsuite/libgomp.fortran/reduction3.f90: New test.
1800 * testsuite/libgomp.fortran/reduction4.f90: New test.
1802 2005-10-13 Richard Henderson <rth@redhat.com>
1804 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1805 * Makefile.in: Regenerate.
1806 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1807 * libgomp.h: Include bar.h.
1808 (struct gomp_barrier): Remove.
1809 (struct gomp_team): Add barrier. Replace master_barrier with
1810 master_release. Replace threads with ordered_release.
1811 (struct gomp_thread): Replace barrier with release.
1812 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1813 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1814 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1815 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1816 (GOMP_single_copy_end): Likewise.
1817 * team.c (gomp_threads_dock): New.
1818 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1819 (gomp_thread_start): Use gomp_barrier_wait.
1820 (new_team, free_team): Update for gomp_team changes.
1821 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1822 (gomp_team_end): Use gomp_barrier_wait.
1823 (initialize_team): Update for gomp_thread changes.
1824 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1825 (gomp_work_share_end_nowait): Use atomic ops when available.
1826 * config/linux/bar.c, config/linux/bar.h: New files.
1827 * config/posix/bar.c, config/posix/bar.h: New files.
1829 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1831 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1832 * testsuite/libgomp.dg/single-2.c: New test.
1834 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1835 lang_link_flags): Unset, so that they aren't inherited from previously
1838 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1840 2005-10-12 Richard Henderson <rth@redhat.com>
1842 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1843 (libgomp_init): Use lang_test_file, lang_library_path, and
1844 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1846 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1847 (lang_test_file, lang_link_flags): New.
1848 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1850 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1851 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1852 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1853 testsuite/libgomp.c++/parallel-1.C,
1854 testsuite/libgomp.c++/reduction-1.C,
1855 testsuite/libgomp.c++/reduction-2.C,
1856 testsuite/libgomp.c++/reduction-3.C,
1857 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1858 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1859 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1860 New files, largely cribbed from the C testsuite.
1862 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1864 * testsuite/libgomp.fortran/character1.f90: New test.
1865 * testsuite/libgomp.fortran/character2.f90: New test.
1867 * testsuite/libgomp.dg/nested-1.c: New test.
1868 * testsuite/libgomp.dg/nested-2.c: New test.
1869 * testsuite/libgomp.fortran/do1.f90: New test.
1870 * testsuite/libgomp.fortran/do2.f90: New test.
1872 * testsuite/libgomp.fortran/reference1.f90: New test.
1874 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1876 * testsuite/libgomp.dg/reduction-1.c: New test.
1877 * testsuite/libgomp.dg/reduction-2.c: New test.
1878 * testsuite/libgomp.dg/reduction-3.c: New test.
1880 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1882 * testsuite/libgomp.dg/atomic-1.c: New test.
1883 * testsuite/libgomp.dg/atomic-2.c: New test.
1885 2005-10-09 Richard Henderson <rth@redhat.com>
1887 * critical.c (atomic_lock): New.
1888 (initialize_critical): Initialize it.
1889 (GOMP_atomic_start, GOMP_atomic_end): New.
1890 * libgomp.map: Export them.
1891 * libgomp_g.h: Declare them.
1893 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1895 2005-10-02 Richard Henderson <rth@redhat.com>
1897 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1898 to XCFLAGS instead of CFLAGS.
1900 2005-09-30 Richard Henderson <rth@redhat.com>
1902 * configure.ac: Determine whether -pthread or -lpthread is needed.
1903 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1904 * Makefine.in, configure: Rebuild.
1906 2005-09-28 Richard Henderson <rth@redhat.com>
1908 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1909 * testsuite/libgomp.dg/omp-single-3.c: New test.
1911 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1913 * testsuite/libgomp.dg/omp-single-2.c: New test.
1914 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1916 2005-09-27 Richard Henderson <rth@redhat.com>
1918 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1919 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1921 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1923 * testsuite/libgomp.dg/omp-loop03.c: New test.
1925 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1927 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1929 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1931 * testsuite/libgomp.dg/omp-single-1.c: New test.
1932 * testsuite/libgomp.dg/shared-1.c: Return 0.
1933 Add prototype for abort.
1934 * testsuite/libgomp.dg/shared-2.c: Likewise.
1936 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1938 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1941 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1943 * testsuite/libgomp.dg/shared-1.c: New test.
1944 * testsuite/libgomp.dg/shared-2.c: New test.
1946 2005-09-24 Richard Henderson <rth@redhat.com>
1948 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1950 2005-09-24 Richard Henderson <rth@redhat.com>
1952 * iter.c (gomp_iter_static_next): Round up when computing number
1953 of iterations. Don't bother distributing a remainder equally.
1955 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1956 Don't call srand. Zero b before testing.
1959 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1961 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1962 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1964 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1966 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1967 without !$omp end do, followed immediately by subroutine end.
1969 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1971 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1973 2005-09-22 Richard Henderson <rth@redhat.com>
1975 * critical.c (GOMP_critical_name_start): Change argument to void**.
1976 Reuse the pointer space if the mutex fits.
1977 (GOMP_critical_name_end): Likewise.
1978 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1979 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1980 (GOMP_critical_name_end): Likewise.
1981 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1982 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1984 2005-09-20 Richard Henderson <rth@redhat.com>
1986 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1987 (create_lock_lock): New.
1988 (initialize_critical): Initialize it.
1989 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1990 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1992 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1994 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1996 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1998 * testsuite/libgomp.dg/omp-loop01.c: New test.
1999 * testsuite/libgomp.dg/omp-loop02.c: New test.
2001 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2003 * configure.ac (AC_PROG_FC): Add.
2004 (USE_FORTRAN): New automake conditional.
2005 * configure: Rebuilt.
2006 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2007 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2008 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2009 Add rules to build them.
2010 * Makefile.in: Rebuilt.
2011 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2013 * libgomp.map: Add Fortran wrappers.
2014 * libgomp_f.h.in: New file.
2015 * omp_lib.h.in: New file.
2016 * omp_lib.f90.in: New file.
2017 * fortran.c: New file.
2018 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2019 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2020 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2021 libgfortran has been built.
2022 * testsuite/libgomp.fortran/fortran.exp: New file.
2023 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2024 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2025 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2026 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2027 * testsuite/libgomp.fortran/omp_hello.f: New test.
2028 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2029 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2030 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2031 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2032 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2033 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2034 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2035 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2037 2005-08-30 Richard Henderson <rth@redhat.com>
2039 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2040 function for when aliases are not usable.
2041 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2042 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2043 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2044 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2045 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2046 GOMP_loop_ordered_guided_next): Likewise.
2047 * ordered.c (GOMP_ordered_start): Likewise.
2049 2005-08-01 Diego Novillo <dnovillo@redhat.com>
2051 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2052 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2053 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2054 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2055 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2056 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2057 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2058 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2059 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2061 2005-07-07 Eric Christopher <echristo@redhat.com>
2062 Diego Novillo <dnovillo@redhat.com>
2064 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2065 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2067 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2068 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2069 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2070 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2071 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2072 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2073 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2075 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2077 * TOPLEVEL.patch: Remove.
2079 2005-05-16 Richard Henderson <rth@redhat.com>
2081 * configure.ac: Test for clock_gettime.
2082 * config.h.in, configure: Rebuild.
2083 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2084 (omp_get_wtime): Use clock_gettime if available.
2085 (omp_get_wtick): Use clock_getres if available.
2087 2005-05-11 Richard Henderson <rth@redhat.com>
2089 * config/linux/ia64/futex.h: New file.
2090 * configure.tgt: Use it.
2092 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2094 2005-05-07 Richard Henderson <rth@redhat.com>
2096 * config/linux/powerpc/futex.h: New file.
2097 * configure.tgt: Use it.
2099 * config/linux/i486/futex.h: Merge ...
2100 * config/linux/x86_64/futex.h: ... into ...
2101 * config/linux/x86/futex.h: ... here.
2102 * configure.tgt: Update to match.
2104 2005-05-06 Richard Henderson <rth@redhat.com>
2106 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2107 * config/linux/i486/futex.h: Likewise.
2108 * config/linux/x86_64/futex.h: Likewise.
2110 * config/linux/lock.c: New file.
2111 * config/linux/omp-lock.h: New file.
2113 * critical.c, env.h: Don't include omp.h
2114 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2115 * config/posix/time.c: Likewise.
2116 * config/posix/omp-lock.h: New file.
2117 * libgomp.h: Include omp-lock.h and omp.h.
2118 * Makefile.am (nodist_include_HEADERS): New.
2120 * configure.ac (PERL): New.
2121 * mkomp_h.pl: New file.
2122 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2124 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2126 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2127 build directory. Re-add -march=i486 hack.
2129 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2130 (libgomp_link_flags): Remove.
2131 (libgomp_initialized): Remove.
2132 (libgomp_init): Don't protect from reinitialization. Copy code
2133 from libstdc++ for getting the multilib set correctly.
2135 2005-05-05 Richard Henderson <rth@redhat.com>
2137 * config/linux/alpha/futex.h: New file.
2138 * configure.tgt (alpha*-*-linux*): Use it.
2140 * config/posix/mutex.c: New file.
2141 * config/posix/sem.c: Use libgomp.h.
2143 * configure.tgt (x86_64-linux): Also test CC for -m32.
2144 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2146 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2149 * Makefile.am (SUBDIRS): New.
2150 (libgomp_la_LDFLAGS): Add -lpthread.
2151 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2152 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2154 * libgomp_g.h: New file.
2155 * libgomp.h: Split out all public declarations to libgomp_g.h.
2156 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2157 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2158 * config/linux/sem.h: Likewise.
2159 * config/posix/sem.h: Likewise.
2161 * Makefile.am (AM_LDFLAGS): New.
2162 (libgomp_version_script): Split out from ...
2163 (libgomp_la_LDFLAGS): ... here.
2164 (libgomp_version_info): New.
2165 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2166 (LIBGOMP_ENABLE): New.
2167 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2168 (LIBGOMP_ENABLE_SYMVERS): New.
2169 * configure.ac (AC_INIT): Version 1.0.
2170 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2171 (enable-linux-futex): Likewise. Rename from enable-futex.
2172 (libtool_VERSION): New.
2173 (LIBGOMP_ENABLE_SYMVERS): Use it.
2174 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2175 * Makefile.in, aclocal.m4, configure: Rebuild.
2177 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2178 (gomp_mutex_unlock_slow): Fix typo.
2179 * config/linux/sem.c: Similarly.
2180 (gomp_sem_post_slow): Fix typo.
2181 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2182 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2183 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2185 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2186 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2187 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2188 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2189 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2190 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2191 LDFLAGS. Pull enable_futex check to top-level.
2192 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2193 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2195 First attempt at real configury.
2196 * Makefile, config.h: Remove file.
2197 * Makefile.am, Makefile.in: New file.
2198 * acinclude.m4 aclocal.m4: New file.
2199 * configure.ac, configure.tgt, configure: New file.
2201 * config/posix/lock.c: Rename from sys-lock.c.
2202 * config/posix/mutex.h: Rename from sys-mutex.h.
2203 * config/posix/sem.c: Rename from sys-sem.c.
2204 * config/posix/sem.h: Rename from sys-sem.h.
2205 * config/posix/proc.c: Rename from sys-proc.c.
2206 * config/posix/time.c: Rename from sys-proc.c.
2208 * config/linux/mutex.c: New file.
2209 * config/linux/mutex.h: New file.
2210 * config/linux/sem.c: New file.
2211 * config/linux/sem.h: New file.
2212 * config/linux/i486/futex.h: New file.
2213 * config/linux/x86_64/futex.h: New file.
2215 2005-05-04 Richard Henderson <rth@redhat.com>
2217 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2218 * libgomp.h: Declare them.
2219 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2220 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2222 2005-05-04 Richard Henderson <rth@redhat.com>
2224 * libgomp-1 code drop
2226 2005-05-04 Richard Henderson <rth@redhat.com>
2228 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2229 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2230 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2231 (gomp_iter_static_next): Update.
2232 (gomp_ordered_static_next): Update.
2233 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2234 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2235 totally empty range.
2236 (gomp_loop_ordered_static_next): Refine test for calling
2237 gomp_ordered_static_next.
2238 * testsuite/ordered-1.c: Add case for more threads than iterations.
2240 * iter.c (gomp_iter_runtime_next_locked): Remove.
2241 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2242 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2243 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2244 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2245 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2246 gomp_loop_ordered_guided_next): Downcase name, make static, add
2247 an external alias with the old name.
2248 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2249 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2250 switch and call one of the above static functions.
2251 * libgomp.h: Update.
2253 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2254 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2255 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2256 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2257 GOMP_loop_ordered_guided_start): Update to match.
2258 * sections.c (GOMP_sections_start): Likewise.
2259 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2261 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2262 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2263 Use bounds check instead of modulus.
2264 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2265 (gomp_ordered_last): Don't sync with ordered_owner here.
2266 (gomp_ordered_next): Likewise.
2267 (gomp_ordered_static_loop_next): Likewise.
2268 * loop.c, libgomp.h: Update to match.
2270 * libgomp.h (GOMP_barrier): Declare.
2272 * testsuite/barrier-1.c: New file.
2273 * testsuite/critical-1.c: New file.
2274 * testsuite/ordered-2.c: New file.
2275 * testsuite/ordered-1.c: New file.
2276 * testsuite/sections-1.c: New file.
2277 * testsuite/single-1.c: New file.
2278 * testsuite/Makefile (TESTS): Add them.
2280 2005-05-04 Richard Henderson <rth@redhat.com>
2282 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2283 * loop.c (GOMP_loop_static_start): If not the startup thread,
2284 acquire the mutex to wait for initialization complete.
2285 (GOMP_loop_ordered_static_start): Likewise.
2286 (GOMP_loop_ordered_runtime_start): Likewise.
2287 (GOMP_loop_ordered_static_first): Remove.
2288 (GOMP_loop_ordered_dynamic_first): Remove.
2289 (GOMP_loop_ordered_guided_first): Remove.
2290 (GOMP_loop_ordered_runtime_first): Remove.
2291 * ordered.c (gomp_ordered_loop_first): Post to own release when
2292 we're the first thread.
2293 (gomp_ordered_loop_last): Wait on release if not owner.
2294 (gomp_ordered_loop_next): Likewise.
2295 (gomp_ordered_static_loop_init): New.
2296 (gomp_ordered_static_loop_next): Use ordered_owner.
2297 (GOMP_ordered_start): Likewise.
2298 * work.c (gomp_new_work_share): Initialize ordered_owner.
2300 2005-05-03 Richard Henderson <rth@redhat.com>
2302 * Makefile (OPT): New.
2305 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2306 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2307 * libgomp.h, libgomp.map, NOTES: Update to match.
2309 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2310 Add initialized and thr members.
2311 (gomp_thread_start): Pause when initially spawned to wait for
2312 the whole team to be created.
2313 (gomp_team_start): Release team members at the end.
2315 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2316 (f_foo_1): Use GOMP_loop_end.
2317 (f_foo_2): Use GOMP_loop_end_nowait.
2319 * testsuite/loop-2.c: New file.
2320 * testsuite/Makefile (TESTS): Add it.
2322 2005-05-03 Richard Henderson <rth@redhat.com>
2324 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2325 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2326 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2329 * testsuite/Makefile: New file.
2330 * testsuite/loop-1.c: New file.
2332 2005-05-03 Richard Henderson <rth@redhat.com>
2334 Initial implementation and checkin.