1 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3 * env.c (parse_stacksize): Add cast to avoid warning.
4 (parse_spincount): Likewise.
6 2008-06-27 Jakub Jelinek <jakub@redhat.com>
8 * testsuite/libgomp.c/loop-10.c: New test.
9 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10 * libgomp.c++/loop-6.C (main): Likewise.
13 * testsuite/libgomp.c/debug-1.c: New test.
15 2008-06-19 Jakub Jelinek <jakub@redhat.com>
17 * testsuite/libgomp.c/nqueens-1.c: New test.
20 * testsuite/libgomp.c++/task-7.C: New function.
22 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24 * configure: Regenerate.
26 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
29 mutex when HAVE_SYNC_BUILTINS isn't defined.
31 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33 * libgomp.texi (omp_test_lock): Fix typo.
35 2008-06-12 Tobias Burnus <burnus@net-b.de>
37 * omp_lib.f90.in: Add "implicit none".
39 2008-06-12 Jakub Jelinek <jakub@redhat.com>
42 * testsuite/libgomp.c/reduction-5.c: New test.
44 2008-06-11 Jakub Jelinek <jakub@redhat.com>
46 * libgomp.h (struct gomp_task): Add in_tied_task field.
47 * task.c (gomp_init_task): Initialize it.
48 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
49 unconditionally. Don't call gomp_team_barrier_wake if
50 current task is implicit or if(0) from implicit and number of
51 running tasks is equal to nthreads - 1.
54 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
55 omp_get_team_size_8): Fix pastos.
58 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
59 * configure: Regenerated.
60 * config.h.in: Regenerated.
61 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
64 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
67 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
68 (GOMP_loop_ull_dynamic_start): Likewise.
69 (GOMP_loop_ull_guided_start): Likewise.
70 (GOMP_loop_ull_ordered_static_start): Likewise.
71 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
72 (GOMP_loop_ull_ordered_guided_start): Likewise.
74 2008-06-06 Jakub Jelinek <jakub@redhat.com>
75 Richard Henderson <rth@redhat.com>
76 Ulrich Drepper <drepper@redhat.com>
77 Jakob Blomer <jakob.blomer@ira.uka.de>
79 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
80 Substitute also OMP_*LOCK_25*.
81 * configure: Regenerated.
82 * config.h.in: Regenerated.
83 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
85 * Makefile.in: Regenerated.
86 * testsuite/Makefile.in: Regenerated.
88 * loop_ull.c: New file.
89 * iter_ull.c: New file.
90 * libgomp.h: Include ptrlock.h.
91 (enum gomp_task_kind): New type.
92 (struct gomp_team): Add task_lock, task_queue, task_count,
93 task_running_count, single_count fields. Add
94 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
95 Remove work_share_lock, generation_mask,
96 oldest_live_gen, num_live_gen and init_work_shares fields, add
97 work work_share_list_alloc, work_share_list_free and work_share_chunk
98 fields. Change work_shares from pointer to pointers into an array.
99 Change ordered_release field into gomp_sem_t ** from flexible array
100 member. Add implicit_task and initial_work_shares fields.
101 Move close to the end of the struct.
102 (struct gomp_team_state): Add single_count, last_work_share,
103 active_level and level fields, remove work_share_generation.
104 (gomp_barrier_handle_tasks): New prototype.
105 (gomp_finish_task): New inline function.
106 (struct gomp_work_share): Move chunk_size, end, incr into
107 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
108 next_ll fields. Reshuffle fields. Add next_alloc,
109 next_ws, next_free and inline_ordered_team_ids fields, change
110 ordered_team_ids into pointer from flexible array member.
111 Add mode field. Put lock and next into a different cache line
112 from most of the write-once fields.
113 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
114 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
115 gomp_iter_ull_guided_next): New prototypes.
116 (gomp_new_icv): New prototype.
117 (struct gomp_thread): Add thread_pool and task fields.
118 (struct gomp_thread_pool): New type.
119 (gomp_new_team): New prototype.
120 (gomp_team_start): Change type of last argument.
121 (gomp_new_work_share): Removed.
122 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
123 (gomp_work_share_init_done): New static inline.
124 (gomp_throttled_spin_count_var, gomp_available_cpus,
125 gomp_managed_threads): New extern decls.
126 (gomp_init_task): New prototype.
127 (gomp_spin_count_var): New extern var decl.
128 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
129 or no alias support, or if not PIC.
130 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
131 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
132 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
133 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
134 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
135 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
136 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
137 gomp_test_nest_lock_25): New prototypes.
138 (omp_lock_symver, strong_alias): Define.
139 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
141 (gomp_end_task): New.
142 (struct gomp_task_icv, gomp_global_icv): New.
143 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
144 (struct gomp_task): New.
145 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
146 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
148 (gomp_schedule_type): Reorder enum to match
150 * team.c (struct gomp_thread_start_data): Add thread_pool and task
152 (gomp_thread_start): Add gomp_team_barrier_wait call.
153 For non-nested case remove clearing of docked thread thr fields.
154 Use pool fields instead of global gomp_* variables. Use
155 gomp_barrier_wait_last when needed. Initialize ts.active_level.
156 Create tasks for each member thread.
157 (free_team): Only destroy team barrier, task_lock here and free it.
158 (gomp_free_thread): Free last_team if non-NULL.
159 (gomp_team_end): Call gomp_team_barrier_wait instead of
160 gomp_barrier_wait. For nested case call one extra
161 gomp_barrier_wait. Move here some destruction from free_team.
162 Call free_team on pool->last_team if any, rather than freeing
163 current team. Destroy work_share_list_free_lock ifndef
165 (gomp_new_icv): New function.
166 (gomp_threads, gomp_threads_size, gomp_threads_used,
167 gomp_threads_dock): Removed.
168 (gomp_thread_destructor): New variable.
169 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
171 (gomp_team_start): Create new pool if current thread doesn't have
172 one. Use pool fields instead of global gomp_* variables.
173 Initialize thread_pool field for new threads. Clear single_count.
174 Change last argument from ws to team, don't create
175 new team, set ts.work_share to &team->work_shares[0] and clear
176 ts.last_work_share. Don't clear ts.work_share_generation.
177 If number of threads changed, adjust atomically gomp_managed_threads.
178 Use gomp_init_task instead of gomp_new_task,
179 set thr->task to the corresponding implicit_task array entry.
180 Create tasks for each member thread. Initialize ts.level.
181 (initialize_team): Call pthread_key_create on
182 gomp_thread_destructor.
183 (team_destructor): New function.
185 (gomp_new_team): New function.
186 (free_team): Free gomp_work_share blocks chained through next_alloc,
187 instead of freeing work_shares and destroying work_share_lock.
188 (gomp_team_end): Call gomp_fini_work_share. If number of threads
189 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
190 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
191 of gomp_barrier_wait.
192 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
193 instead of gomp_barrier_wait. Call gomp_work_share_init_done
194 if gomp_work_share_start returned true. Don't unlock ws->lock.
195 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
196 of gomp_barrier_wait.
197 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
198 gomp_work_share_init_done if gomp_work_share_start returned true.
199 Don't unlock ws->lock.
200 * work.c: Include stddef.h.
201 (free_work_share): Use work_share_list_free_lock instead
202 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
203 Call gomp_fini_work_share and then either free ws if orphaned, or
204 put it into work_share_list_free list of the current team.
205 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
207 (gomp_work_share_start, gomp_work_share_end,
208 gomp_work_share_end_nowait): Rewritten.
209 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
210 (openmp_version): Set to 200805.
211 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
212 omp_sched_guided, omp_sched_auto): New parameters.
213 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
214 omp_set_max_active_levels, omp_get_max_active_levels,
215 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
216 omp_get_active_level): New interfaces.
217 * omp_lib.h.in (openmp_version): Set to 200805.
218 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
219 omp_sched_guided, omp_sched_auto): New parameters.
220 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
221 omp_set_max_active_levels, omp_get_max_active_levels,
222 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
223 omp_get_active_level): New externals.
224 * loop.c: Include limits.h.
225 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
227 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
228 Likewise. Use gomp_icv.
229 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
231 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
232 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
233 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
234 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
235 don't unlock ws->lock, otherwise lock it.
236 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
237 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
238 (gomp_parallel_loop_start): Call gomp_new_team instead of
239 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
240 Adjust gomp_team_start caller. Pass 0 as second argument to
241 gomp_resolve_num_threads.
242 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
243 If adding ws->chunk_size nthreads + 1 times after end won't
244 overflow, set ws->mode to 1.
245 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
246 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
247 GOMP_loop_ull_ordered_static_start,
248 GOMP_loop_ull_ordered_dynamic_start,
249 GOMP_loop_ull_ordered_guided_start,
250 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
251 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
252 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
253 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
254 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
256 * libgomp.map: Export lock routines also @@OMP_2.0.
257 (GOMP_loop_ordered_dynamic_first,
258 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
259 GOMP_loop_ordered_static_first): Remove.
260 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
261 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
262 GOMP_loop_ull_ordered_dynamic_next,
263 GOMP_loop_ull_ordered_dynamic_start,
264 GOMP_loop_ull_ordered_guided_next,
265 GOMP_loop_ull_ordered_guided_start,
266 GOMP_loop_ull_ordered_runtime_next,
267 GOMP_loop_ull_ordered_runtime_start,
268 GOMP_loop_ull_ordered_static_next,
269 GOMP_loop_ull_ordered_static_start,
270 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
271 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
272 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
273 (omp_set_schedule, omp_get_schedule,
274 omp_get_thread_limit, omp_set_max_active_levels,
275 omp_get_max_active_levels, omp_get_level,
276 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
277 omp_set_schedule_, omp_set_schedule_8_,
278 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
279 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
280 omp_get_max_active_levels_, omp_get_level_,
281 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
282 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
283 New exports @@OMP_3.0.
284 * omp.h.in (omp_sched_t): New type.
285 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
286 omp_set_max_active_levels, omp_get_max_active_levels,
287 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
288 omp_get_active_level): New prototypes.
289 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
290 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
291 gomp_thread_limit_var, gomp_remaining_threads_count,
292 gomp_remaining_threads_lock): New variables.
293 (parse_spincount): New function.
294 (initialize_env): Call gomp_init_num_threads unconditionally.
295 Initialize gomp_available_cpus. Call parse_spincount,
296 initialize gomp_{,throttled_}spin_count_var
297 depending on presence and value of OMP_WAIT_POLICY and
298 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
299 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
300 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
301 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
302 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
303 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
304 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
305 (gomp_global_icv): New.
306 (parse_schedule): Use it. Parse "auto".
307 (omp_set_num_threads): Use gomp_icv.
308 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
310 (omp_get_max_threads): Move from parallel.c.
311 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
312 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
314 (parse_stacksize, parse_wait_policy): New functions.
315 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
316 both wrappers for compatibility and new locks.
317 (omp_set_schedule, omp_get_schedule,
318 omp_get_thread_limit, omp_set_max_active_levels,
319 omp_get_max_active_levels, omp_get_level,
320 omp_get_ancestor_thread_num, omp_get_team_size,
321 omp_get_active_level): New ialias_redirect.
322 (omp_set_schedule_, omp_set_schedule_8_,
323 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
324 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
325 omp_get_max_active_levels_, omp_get_level_,
326 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
327 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
329 * parallel.c: Include limits.h.
330 (gomp_resolve_num_threads): Add count argument. Rewritten.
331 (GOMP_parallel_start): Call gomp_new_team and pass that as last
332 argument to gomp_team_start. Pass 0 as second argument to
333 gomp_resolve_num_threads.
334 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
335 if gomp_thread_limit_var != ULONG_MAX.
336 (omp_in_parallel): Implement using ts.active_level.
337 (omp_get_max_threads): Move to env.c.
338 (omp_get_level, omp_get_ancestor_thread_num,
339 omp_get_team_size, omp_get_active_level): New functions,
341 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
342 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
343 gomp_iter_dynamic_next instead of the _locked variant and don't take
344 lock around it, otherwise acquire it before calling
345 gomp_iter_dynamic_next_locked.
346 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
347 gomp_iter_dynamic_next instead of the _locked variant and don't take
349 (GOMP_parallel_sections_start): Call gomp_new_team instead of
350 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
351 Adjust gomp_team_start caller. Pass count as second argument to
352 gomp_resolve_num_threads, don't adjust num_threads after the call.
354 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
355 ws->chunk_size by incr.
356 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
358 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
360 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
361 (omp_check_defines): Check even the compat defines.
362 * config/linux/ptrlock.c: New file.
363 * config/linux/ptrlock.h: New file.
364 * config/linux/wait.h: New file.
365 * config/posix/ptrlock.c: New file.
366 * config/posix/ptrlock.h: New file.
367 * config/linux/bar.h (gomp_team_barrier_wait,
368 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
369 (gomp_team_barrier_set_task_pending,
370 gomp_team_barrier_clear_task_pending,
371 gomp_team_barrier_set_waiting_for_tasks,
372 gomp_team_barrier_waiting_for_tasks,
373 gomp_team_barrier_done): New inlines.
374 (gomp_barrier_t): Rewritten.
375 (gomp_barrier_state_t): New typedef.
376 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
377 gomp_barrier_wait_start): Rewritten.
378 (gomp_barrier_wait_end): Change second argument to
379 gomp_barrier_state_t.
380 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
382 * config/linux/bar.c: Include wait.h instead of libgomp.h and
384 (gomp_barrier_wait_end): Rewritten.
385 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
386 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
387 * config/posix/bar.h (gomp_barrier_t): Add generation field.
388 (gomp_barrier_state_t): New typedef.
389 (gomp_team_barrier_wait,
390 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
391 (gomp_barrier_wait_start): Or all but low 2 bits from generation
392 into the return value. Return gomp_barrier_state_t.
393 (gomp_team_barrier_set_task_pending,
394 gomp_team_barrier_clear_task_pending,
395 gomp_team_barrier_set_waiting_for_tasks,
396 gomp_team_barrier_waiting_for_tasks,
397 gomp_team_barrier_done): New inlines.
398 (gomp_barrier_wait_end): Change second argument to
399 gomp_barrier_state_t.
400 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
402 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
403 (gomp_barrier_wait_end): Change second argument to
404 gomp_barrier_state_t.
405 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
406 gomp_team_barrier_wake): New functions.
407 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
409 (gomp_futex_wake, gomp_futex_wait): New variables.
410 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
411 * config/linux/lock.c: Rewrite to make locks task owned,
412 for backwards compatibility provide the old entrypoints
413 if symbol versioning. Include wait.h instead of libgomp.h and
415 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
416 * config/posix95/lock.c: Rewrite to make locks task owned,
417 for backwards compatibility provide the old entrypoints
418 if symbol versioning.
419 * config/posix/lock.c: Rewrite to make locks task owned,
420 for backwards compatibility provide the old entrypoints
421 if symbol versioning.
422 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
423 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
424 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
425 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
426 (sys_futex0): Return error code.
427 (futex_wake, futex_wait): If ENOSYS was returned, clear
428 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
429 (cpu_relax, atomic_write_barrier): New static inlines.
430 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
431 (futex_wake, futex_wait): If ENOSYS was returned, clear
432 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
433 (cpu_relax, atomic_write_barrier): New static inlines.
434 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
435 (sys_futex0): Return error code.
436 (futex_wake, futex_wait): If ENOSYS was returned, clear
437 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
438 (cpu_relax, atomic_write_barrier): New static inlines.
439 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
440 (sys_futex0): Return error code.
441 (futex_wake, futex_wait): If ENOSYS was returned, clear
442 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
443 (cpu_relax, atomic_write_barrier): New static inlines.
444 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
445 (sys_futex0): Return error code.
446 (futex_wake, futex_wait): If ENOSYS was returned, clear
447 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
448 (cpu_relax, atomic_write_barrier): New static inlines.
449 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
450 (sys_futex0): Return error code.
451 (futex_wake, futex_wait): If ENOSYS was returned, clear
452 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
453 (cpu_relax, atomic_write_barrier): New static inlines.
454 * config/linux/sem.c: Include wait.h instead of libgomp.h and
456 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
457 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
458 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
460 (omp_nest_lock_t): Change owner into void *, add lock field.
461 * config/posix95/omp-lock.h: Include semaphore.h.
462 (omp_lock_25_t, omp_nest_lock_25_t): New types.
463 (omp_lock_t): Use sem_t instead of mutex if semaphores
465 (omp_nest_lock_t): Likewise. Change owner to void *.
466 * config/posix/omp-lock.h: Include semaphore.h.
467 (omp_lock_25_t, omp_nest_lock_25_t): New types.
468 (omp_lock_t): Use sem_t instead of mutex if semaphores
470 (omp_nest_lock_t): Likewise. Add owner field.
472 2008-06-06 Jakub Jelinek <jakub@redhat.com>
474 * testsuite/libgomp.c/collapse-1.c: New test.
475 * testsuite/libgomp.c/collapse-2.c: New test.
476 * testsuite/libgomp.c/collapse-3.c: New test.
477 * testsuite/libgomp.c/icv-1.c: New test.
478 * testsuite/libgomp.c/icv-2.c: New test.
479 * testsuite/libgomp.c/lib-2.c: New test.
480 * testsuite/libgomp.c/lock-1.c: New test.
481 * testsuite/libgomp.c/lock-2.c: New test.
482 * testsuite/libgomp.c/lock-3.c: New test.
483 * testsuite/libgomp.c/loop-4.c: New test.
484 * testsuite/libgomp.c/loop-5.c: New test.
485 * testsuite/libgomp.c/loop-6.c: New test.
486 * testsuite/libgomp.c/loop-7.c: New test.
487 * testsuite/libgomp.c/loop-8.c: New test.
488 * testsuite/libgomp.c/loop-9.c: New test.
489 * testsuite/libgomp.c/nested-3.c: New test.
490 * testsuite/libgomp.c/nestedfn-6.c: New test.
491 * testsuite/libgomp.c/sort-1.c: New test.
492 * testsuite/libgomp.c/task-1.c: New test.
493 * testsuite/libgomp.c/task-2.c: New test.
494 * testsuite/libgomp.c/task-3.c: New test.
495 * testsuite/libgomp.c/task-4.c: New test.
496 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
497 to C++ testsuite default compiler options.
498 * testsuite/libgomp.c++/collapse-1.C: New test.
499 * testsuite/libgomp.c++/collapse-2.C: New test.
500 * testsuite/libgomp.c++/ctor-10.C: New test.
501 * testsuite/libgomp.c++/for-1.C: New test.
502 * testsuite/libgomp.c++/for-2.C: New test.
503 * testsuite/libgomp.c++/for-3.C: New test.
504 * testsuite/libgomp.c++/for-4.C: New test.
505 * testsuite/libgomp.c++/for-5.C: New test.
506 * testsuite/libgomp.c++/loop-8.C: New test.
507 * testsuite/libgomp.c++/loop-9.C: New test.
508 * testsuite/libgomp.c++/loop-10.C: New test.
509 * testsuite/libgomp.c++/task-1.C: New test.
510 * testsuite/libgomp.c++/task-2.C: New test.
511 * testsuite/libgomp.c++/task-3.C: New test.
512 * testsuite/libgomp.c++/task-4.C: New test.
513 * testsuite/libgomp.c++/task-5.C: New test.
514 * testsuite/libgomp.c++/task-6.C: New test.
515 * testsuite/libgomp.fortran/allocatable1.f90: New test.
516 * testsuite/libgomp.fortran/allocatable2.f90: New test.
517 * testsuite/libgomp.fortran/allocatable3.f90: New test.
518 * testsuite/libgomp.fortran/allocatable4.f90: New test.
519 * testsuite/libgomp.fortran/collapse1.f90: New test.
520 * testsuite/libgomp.fortran/collapse2.f90: New test.
521 * testsuite/libgomp.fortran/collapse3.f90: New test.
522 * testsuite/libgomp.fortran/collapse4.f90: New test.
523 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
524 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
525 * testsuite/libgomp.fortran/lib4.f90: New test.
526 * testsuite/libgomp.fortran/lock-1.f90: New test.
527 * testsuite/libgomp.fortran/lock-2.f90: New test.
528 * testsuite/libgomp.fortran/nested1.f90: New test.
529 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
530 * testsuite/libgomp.fortran/strassen.f90: New test.
531 * testsuite/libgomp.fortran/tabs1.f90: New test.
532 * testsuite/libgomp.fortran/tabs2.f: New test.
533 * testsuite/libgomp.fortran/task1.f90: New test.
534 * testsuite/libgomp.fortran/task2.f90: New test.
535 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
536 * testsuite/libgomp.fortran/vla5.f90: Likewise.
537 * testsuite/libgomp.c/pr26943-2.c: Likewise.
538 * testsuite/libgomp.c/pr26943-3.c: Likewise.
539 * testsuite/libgomp.c/pr26943-4.c: Likewise.
541 2008-05-23 Jakub Jelinek <jakub@redhat.com>
544 * testsuite/libgomp.c++/ctor-11.C: New test.
545 * testsuite/libgomp.c++/ctor-12.C: New test.
547 2008-05-15 Janis Johnson <janis187@us.ibm.com>
549 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
551 2008-05-07 Jakub Jelinek <jakub@redhat.com>
554 * testsuite/libgomp.c/atomic-5.c: New test.
555 * testsuite/libgomp.c/atomic-6.c: New test.
556 * testsuite/libgomp.c/autopar-1.c: New test.
558 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
560 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
561 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
562 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
563 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
564 * configure: Regenerate.
565 * Makefile.in, testsuite/Makefile.in: Likewise.
567 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
570 * aclocal.m4: Regenerate.
571 * configure: Regenerate.
573 2008-03-18 Jakub Jelinek <jakub@redhat.com>
576 * testsuite/libgomp.c/atomic-4.c: New test.
579 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
580 (gomp_iter_guided_next): Likewise.
581 * testsuite/libgomp.c/pr35625.c: New test.
583 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
585 * aclocal.m4: Regenerate.
586 * configure: Likewise.
587 * Makefile.in: Likewise.
588 * testsuite/Makefile.in: Likewise.
590 2008-03-13 Jakub Jelinek <jakub@redhat.com>
593 * testsuite/libgomp.c++/pr35185.C: New test.
595 2008-03-12 Jakub Jelinek <jakub@redhat.com>
598 * testsuite/libgomp.c/pr35549.c: New test.
600 2008-03-06 Jakub Jelinek <jakub@redhat.com>
602 * testsuite/libgomp.c/atomic-3.c: New test.
604 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
607 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
610 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
613 * configure.ac: Add ACX_HEADER_STRING.
614 * env.c: Include strings.h.
615 * aclocal.m4: Regenerate.
616 * config.h.in: Regenerate.
617 * configure: Regenerate.
618 * Makefile.in: Regenerate.
619 * testsuite/Makefile.in: Regenerate.
621 2008-02-15 Jakub Jelinek <jakub@redhat.com>
624 * testsuite/libgomp.c/pr35196.c: New test.
627 * testsuite/libgomp.fortran/pr35130.f90: New test.
628 * testsuite/libgomp.c/pr35130.c: New test.
630 2008-01-25 Jakub Jelinek <jakub@redhat.com>
633 * testsuite/libgomp.c/pr33880.c: New test.
634 * testsuite/libgomp.fortran/pr33880.f90: New test.
636 2008-01-24 David Edelsohn <edelsohn@gnu.org>
638 * configure: Regenerate.
640 2008-01-08 Jakub Jelinek <jakub@redhat.com>
642 * configure.ac: Move futex checking into ../config/futex.m4.
643 * configure: Rebuilt.
644 * aclocal.m4: Rebuilt.
645 * Makefile.in: Rebuilt.
647 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
648 2007-10-15 ../config/tls.m4 change.
650 2007-12-19 Jakub Jelinek <jakub@redhat.com>
653 * testsuite/libgomp.c/pr34513.c: New test.
654 * testsuite/libgomp.c++/pr34513.C: New test.
656 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
659 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
661 2007-12-04 Jakub Jelinek <jakub@redhat.com>
663 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
665 2007-12-03 Jakub Jelinek <jakub@redhat.com>
667 * testsuite/libgomp.c/private-1.c: New test.
669 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
670 Paolo Bonzini <bonzini@gnu.org>
672 * Makefile.am: Use space as vpath separator. Use 'vpath %'
673 instead of 'VPATH ='.
674 * Makefile.in: Regenerate.
676 2007-11-23 Matthias Klose <doko@ubuntu.com>
678 * configure.ac: Adjust makeinfo version check.
679 * configure: Regenerate.
681 2007-11-10 Jakub Jelinek <jakub@redhat.com>
684 * testsuite/libgomp.fortran/pr34020.f90: New test.
686 2007-11-06 Jakub Jelinek <jakub@redhat.com>
689 * testsuite/libgomp.c++/atomic-1.C: New test.
691 2007-10-25 Jakub Jelinek <jakub@redhat.com>
694 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
695 Make x and y integers rather than (implicit) reals. Add private (j)
696 clause to the last omp parallel.
698 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
700 * configure: Regenerate following changes to ../config/tls.m4.
702 2007-09-28 Jakub Jelinek <jakub@redhat.com>
704 * testsuite/libgomp.fortran/stack.f90: New test.
706 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
708 * config/mingw32/proc.c: New file.
710 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
712 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
713 (main): Use __get_cpuid to get i386 target fetaures.
714 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
715 (main): Use __get_cpuid to get x86_64 target fetaures.
717 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
720 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
721 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
723 2007-07-12 Jakub Jelinek <jakub@redhat.com>
726 * testsuite/libgomp.fortran/pr32550.f90: New test.
727 * testsuite/libgomp.fortran/crayptr2.f90: New test.
729 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
731 * aclocal.m4: Regenerated.
733 2007-07-05 Tobias Burnus <burnus@net-b.de>
736 * testsuite/libgomp.fortran/pr32359.f90: New.
738 2007-07-02 Jakub Jelinek <jakub@redhat.com>
741 * sections.c (GOMP_parallel_sections_start): Only decrease
742 number of threads to COUNT if dyn_var is true.
743 * testsuite/libgomp.c/pr32468.c: New test.
745 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
748 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
750 2007-06-21 Jakub Jelinek <jakub@redhat.com>
753 * testsuite/libgomp.c/pr32362-1.c: New test.
754 * testsuite/libgomp.c/pr32362-2.c: New test.
755 * testsuite/libgomp.c/pr32362-3.c: New test.
757 2007-06-07 Jakub Jelinek <jakub@redhat.com>
759 * team.c (gomp_team_start): Fix setting up thread_attr
762 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
764 * configure: Regenerate.
766 2007-05-23 Steve Ellcey <sje@cup.hp.com>
768 * Makefile.in: Regenerate.
769 * configure: Regenerate.
770 * aclocal.m4: Regenerate.
771 * testsuite/Makefile.in: Regenerate.
773 2007-05-04 Jakub Jelinek <jakub@redhat.com>
775 * config/linux/proc.c: New file.
778 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
780 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
782 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
784 2007-04-16 Matthias Klose <doko@debian.org>
786 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
787 flags if not building with -m64.
788 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
789 flag for i?86-*-* targets, if current target matches -m64.
791 2007-04-14 Steve Ellcey <sje@cup.hp.com>
793 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
794 * Makefile.in: Regenerate.
796 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
799 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
801 * testsuite/libgomp.fortran/fortran.exp: Likewise.
803 2007-04-04 Jakub Jelinek <jakub@redhat.com>
805 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
807 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
808 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
809 (parse_affinity): New function.
810 (initialize_env): Call it and gomp_init_affinity.
811 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
812 create new pthread_attr_t and call gomp_init_thread_affinity
813 on it for each thread before passing the attribute to pthread_create.
814 * config/linux/affinity.c: New file.
815 * config/posix/affinity.c: New file.
816 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
817 * configure: Rebuilt.
818 * config.h.in: Rebuilt.
819 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
820 * Makefile.in: Rebuilt.
822 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
824 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
826 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
829 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
831 * testsuite/config/default.exp: New file.
832 * testsuite/lib/libgomp.exp: New file.
833 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
834 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
835 load_lib *, load_gcc_lib *): Move to libgomp.exp.
836 (libgomp_load): Remove.
837 * testsuite/lib/libgomp.exp (libgomp_init): Compute
838 always_ld_library_path, not ld_library_path. Set additional_flags
839 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
840 (target_compile): Do not call libgomp_init. Append lang_library_path
841 and lang_link_flags to options.
842 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
843 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
845 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
846 always_ld_library_path. Set LD_LIBRARY_PATH here.
847 * testsuite/libgomp.fortran/fortran.exp: Ditto.
848 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
849 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
851 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
852 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
853 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
854 * testsuite/libgomp.c/pr29947-1.c: Ditto.
855 * testsuite/libgomp.c/atomic-10.c: Ditto.
857 2007-03-21 Jakub Jelinek <jakub@redhat.com>
859 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
860 dg-final cleanup-modules line.
861 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
862 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
863 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
864 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
865 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
866 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
867 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
869 2007-03-18 Andreas Schwab <schwab@suse.de>
871 * acinclude.m4: Adjust regular expression for ld version
873 * configure: Regenerate.
875 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
877 * Makefile.am: Add install-pdf target as copied from
878 automake v1.10 rules.
879 * Makefile.in: Regenerate
881 2007-02-07 Jakub Jelinek <jakub@redhat.com>
884 * configure: Regenerate.
887 * testsuite/libgomp.c++/pr30703.C: New test.
889 2007-02-02 Jakub Jelinek <jakub@redhat.com>
892 2006-07-05 Eric Christopher <echristo@apple.com>
893 * configure.ac: Depend addition of -pthread on host OS.
894 * configure: Regenerate.
896 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
898 * libgomp.texi: Fix spacing after abbreviations.
900 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
903 * configure.ac: Add check for makeinfo
904 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
905 if an appropiate version of makeinfo is found.
906 * aclocal.m4: Regenerated.
907 * configure: Regenerated.
908 * Makefile.in: Regenerated.
909 * testsuite/Makefile.in: Regenerated.
911 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
914 * libgomp.texi: More about implementation-dependent settings.
916 2007-01-26 Tobias Burnus <burnus@net-b.de>
918 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
920 2007-01-24 Jakub Jelinek <jakub@redhat.com>
923 * testsuite/libgomp.c/pr30494.c: New test.
925 2007-01-15 Tom Tromey <tromey@redhat.com>
927 * configure: Rebuilt.
928 * configure.ac: Fixed comment.
930 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
932 * libgomp.texi: Document implementation specific default values of
933 environment variables.
935 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
938 * libgomp.texi: New file.
939 * configure.ac: Add --enable-generated-files-in-srcdir option.
940 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
942 * Makefile.in: Regenerated.
943 * config.h.in: Regenerated.
944 * testsuite/Makefile.in: Regenerated.
947 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
950 * env.c (omp_set_num_threads): Set illegal thread count to 1.
952 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
954 * configure: Regenerate.
956 2006-12-04 Jakub Jelinek <jakub@redhat.com>
959 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
960 start if there shouldn't be any loop iterations.
961 (gomp_loop_ordered_static_start): Remove start == end test.
962 * testsuite/libgomp.c/pr29947-1.c: New test.
963 * testsuite/libgomp.c/pr29947-2.c: New test.
965 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
967 * configure.tgt: Force initial-exec TLS model on Linux only.
969 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
971 * configure: Regenerated.
973 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
975 * env.c (parse_schedule): Reject out of range values.
976 (parse_unsigned_long): Reject out of range, negative or zero values.
978 2006-10-29 Jakub Jelinek <jakub@redhat.com>
981 * testsuite/libgomp.fortran/pr29629.f90: New test.
983 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
986 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
987 * config/posix95: New directory.
988 * config/posix95/omp-lock.h: New file.
989 * config/posix95/lock.c: Likewise.
991 2006-10-14 Geoffrey Keating <geoffk@apple.com>
993 * aclocal.m4: Regenerate.
994 * configure: Regenerate.
996 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
998 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1001 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1003 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1005 * configure: Regenerate.
1006 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1008 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1012 * testsuite/libgomp.c/nestedfn-4.c: New test.
1013 * testsuite/libgomp.c/nestedfn-5.c: New test.
1014 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1017 * testsuite/libgomp.fortran/condinc1.f: New test.
1018 * testsuite/libgomp.fortran/condinc2.f: New test.
1019 * testsuite/libgomp.fortran/condinc3.f90: New test.
1020 * testsuite/libgomp.fortran/condinc4.f90: New test.
1021 * testsuite/libgomp.fortran/condinc1.inc: New file.
1023 2006-09-18 Tom Tromey <tromey@redhat.com>
1025 * configure: Rebuilt.
1027 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1030 PR preprocessor/14634
1031 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1033 * configure: Regenerate.
1035 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1037 * testsuite/libgomp.fortran/reduction3.f90: Change
1038 -2147483648 to -huge(i)-1 to avoid overflow.
1039 * testsuite/libgomp.fortran/reduction4.f90: Change
1040 Z'ffffffff' to not(0) to avoid overflow.
1042 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1045 * Makefile.am (libsubincludedir): New.
1046 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1047 * Makefile.in: Regenerate.
1049 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1052 * env.c: Include ctype.h.
1053 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1054 leading and/or trailing whitespace and compare strings case
1057 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1060 * testsuite/libgomp.fortran/pr28390.f: New test.
1062 2006-07-05 Eric Christopher <echristo@apple.com>
1064 * configure.ac: Depend addition of -pthread on host OS.
1065 * configure: Regenerate.
1067 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1069 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1070 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1073 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1077 * configure.ac: If neither --enable-linux-futex nor
1078 --disable-linux-futex is passed, determine the default by checking
1079 for compiling and/or running against NPTL. With --enable-linux-futex,
1080 check if SYS_gettid and SYS_futex are defined.
1081 * configure: Rebuilt.
1083 2006-06-14 Richard Henderson <rth@redhat.com>
1086 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1087 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1089 2006-06-09 Richard Henderson <rth@redhat.com>
1091 * env.c (gomp_nthreads_var): Change to unsigned long.
1092 (gomp_run_sched_chunk): Likewise.
1093 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1094 (initialize_env): Initialize gomp_thread_attr.
1095 * libgomp.h (gomp_nthreads_var): Update decl.
1096 (gomp_run_sched_chunk): Likewise.
1097 (gomp_thread_attr): Declare.
1098 * team.c (gomp_thread_attr): Export.
1099 (initialize_team): Don't initialize it.
1101 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1104 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1105 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1107 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1109 * config/mingw32/time.c: New file.
1110 * configure.tgt: Use it.
1112 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1114 * Makefile.am: Add install-html target. Add install-html to .PHONY
1115 * Makefile.in: Regenerate.
1117 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1120 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1121 * testsuite/libgomp.c/critical-1.c: Likewise.
1122 * testsuite/libgomp.c/loop-1.c: Likewise.
1123 * testsuite/libgomp.c/loop-2.c: Likewise.
1124 * testsuite/libgomp.c/single-1.c: Likewise.
1125 * testsuite/libgomp.c/ordered-1.c: Likewise.
1126 * testsuite/libgomp.c/ordered-2.c: Likewise.
1128 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1131 * libgomp.fortran/pr27416-1.f90: New test.
1133 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1136 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1137 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1139 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1142 * testsuite/libgomp.c/pr26943-1.c: New test.
1143 * testsuite/libgomp.c/pr26943-2.c: New test.
1144 * testsuite/libgomp.c/pr26943-3.c: New test.
1145 * testsuite/libgomp.c/pr26943-4.c: New test.
1146 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1147 * testsuite/libgomp.c++/pr26943.C: New test.
1149 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1152 * testsuite/libgomp.c++/pr27337.C: New test.
1154 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1157 * testsuite/libgomp.c/pr26171.c: New test.
1159 2006-04-25 Richard Henderson <rth@redhat.com>
1162 * configure.ac: Use GCC_CHECK_TLS.
1163 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1164 * Makefile.in, aclocal.m4, configure: Regenerate.
1166 2006-04-10 Matthias Klose <doko@debian.org>
1168 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1169 directory names containing underscores.
1171 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1174 * testsuite/libgomp.c++/pr26691.C: New test.
1176 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1178 * testsuite/libgomp.fortran/retval2.f90: New test.
1180 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1182 * testsuite/libgomp.c++: New directory.
1184 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1186 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1187 * config/posix/sem.c: Implement the above.
1189 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1191 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1192 define HAVE_BROKEN_POSIX_SEMAPHORES.
1193 * configure: Rebuilt.
1194 * config.h.in: Rebuilt.
1196 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1199 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1200 for the other pthread check.
1201 * configure: Regenerate.
1202 * config.h.in: Regenerate.
1204 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1208 * Makefile.am (fincludedir): New variable.
1209 (nodist_include_HEADERS): Remove Fortran files.
1210 (nodist_finclude_HEADERS): New variable.
1211 * Makefile.in: Regenerated.
1213 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1215 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1216 Remove tests for returning assumed character length arrays.
1218 2006-02-12 Roger Sayle <roger@eyesopen.com>
1219 John David Anglin <dave@hiauly1.hia.nrc.ca>
1222 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1224 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1226 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1228 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1230 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1231 part of LD_LIBRARY_PATH manually.
1233 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1236 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1239 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1242 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1243 * configure.ac (PERL): Don't set.
1244 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1245 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1246 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1247 * omp.h.in: Wrap the new configure substitutions with @ characters.
1248 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1249 * aclocal.m4, configure, Makefile.in: Regenerate.
1250 * mkomp_h.pl: Delete.
1252 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1255 * configure.ac: Use GCC_HEADER_STDINT.
1256 * libgomp.h: Include gstdint.h.
1257 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1258 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1260 2006-01-24 Richard Henderson <rth@redhat.com>
1263 * configure.ac: Add AM_MAINTAINER_MODE.
1264 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1266 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1268 * Makefile.in: Regenerate.
1269 * testsuite/Makefile.in: Regenerate.
1270 * aclocal.m4: Regenerate.
1272 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1274 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1276 * configure.ac: Add check for loadavg.h.
1277 (link_gomp): Adjust comment.
1278 * configure: Regenerate.
1279 * config.h.in: Regenerate.
1281 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1284 * configure.ac: Remove check for alloca.h.
1285 * configure: Regenerate.
1286 * config.h.in: Regenerate.
1287 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1288 * team.c: Remove use of alloca.h.
1289 Call gomp_alloca instead of alloca.
1291 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1294 * team.c: Add include of alloca.h.
1295 * configure.ac: Add check for alloca.h.
1296 * configure: Regenerate.
1297 * config.h.in: Regenerate.
1299 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1302 * testsuite/libgomp.fortran/pr25219.f90: New test.
1304 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1306 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1307 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1308 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1309 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1310 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1311 testsuite/libgomp.fortran/threadprivate1.f90,
1312 testsuite/libgomp.fortran/threadprivate2.f90,
1313 testsuite/libgomp.fortran/threadprivate3.f90,
1314 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1315 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1316 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1317 effective-target to TLS runtime.
1319 * testsuite/libgomp.fortran/pr25162.f: Require
1320 effective-target TLS runtime.
1322 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1324 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1325 * testsuite/libgomp.c/nestedfn-3.c: New test.
1327 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1330 * testsuite/libgomp.fortran/pr25162.f: New test.
1332 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1334 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1335 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1337 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1339 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1340 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1341 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1342 single.c, team.c, work.c, config/linux/alpha/futex.h,
1343 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1344 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1345 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1346 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1347 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1348 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1349 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1352 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1354 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1355 to nodist_noinst_HEADERS.
1356 * Makefile.in: Rebuilt.
1358 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1359 add integer count field.
1360 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1361 omp_nest_lock_t type change.
1362 (omp_init_nest_lock): Likewise. Initialize count to 0.
1363 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1365 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1367 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1368 Increment count if successful and return the new nesting level.
1369 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1370 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1371 * testsuite/libgomp.c/lib-1.c: New test.
1372 * testsuite/libgomp.fortran/lib1.f90: New test.
1373 * testsuite/libgomp.fortran/lib2.f: New test.
1374 * testsuite/libgomp.fortran/lib3.f: New test.
1376 2005-11-17 Richard Henderson <rth@redhat.com>
1379 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1380 * configure.ac (link_gomp): New. Substitute it.
1381 (AC_CONFIG_FILES): Add libgomp.spec.
1382 * libgomp.spec.in: New file.
1383 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1384 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1386 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1388 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1389 reduction(-:var) behaving the same as reduction(+:var).
1390 * testsuite/libgomp.c/reduction-4.c: New test.
1392 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1394 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1395 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1396 testsuite/libgomp.c/copyin-3.c,
1397 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1398 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1399 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1400 testsuite/libgomp.c++/pr24455.C,
1401 testsuite/libgomp.fortran/threadprivate1.f90,
1402 testsuite/libgomp.fortran/threadprivate2.f90,
1403 testsuite/libgomp.fortran/threadprivate3.f90,
1404 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1405 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1406 testsuite/libgomp.fortran/omp_parse3.f90: Require
1407 effective-target TLS.
1409 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1413 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1416 * team.c (initialize_team): Pass NULL rather than free as
1417 pthread_key_create destructor. Initialize thread specific data
1418 pointer in initial thread to a static local variable rather than
1421 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1423 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1424 its location to ld_library_path.
1426 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1428 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1430 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1432 * testsuite/libgomp.c: Rename from libgomp.dg.
1434 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1436 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1437 threadprivate variable 'i'.
1439 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1441 * config/linux/s390/futex.h: New file.
1442 * configure.tgt: Use it.
1444 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1445 before the parallel.
1447 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1450 * testsuite/libgomp.c++/master-1.C: New test.
1452 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1454 * testsuite/libgomp.dg/copyin-3.c: New test.
1456 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1458 * testsuite/libgomp.fortran/retval1.f90: New test.
1459 * testsuite/libgomp.fortran/vla7.f90: New test.
1461 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1463 * testsuite/libgomp.fortran/vla2.f90: New test.
1464 * testsuite/libgomp.fortran/vla3.f90: New test.
1465 * testsuite/libgomp.fortran/vla4.f90: New test.
1466 * testsuite/libgomp.fortran/vla5.f90: New test.
1467 * testsuite/libgomp.fortran/vla6.f90: New test.
1469 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1471 * config/linux/sparc/futex.h: New file.
1472 * configure.tgt: Use it.
1473 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1475 * critical.c: Include stdlib.h.
1476 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1477 ignoring return value.
1478 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1479 LIBGOMP_CHECK_SYNC_BUILTINS check.
1480 * configure: Rebuilt.
1482 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1484 * testsuite/libgomp.fortran/vla1.f90: New test.
1486 2005-10-31 Richard Henderson <rth@redhat.com>
1488 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1489 setting 's' in different threads.
1491 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1493 * libgomp.h (attribute_hidden, ialias): Define.
1494 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1495 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1496 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1497 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1498 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1499 omp_test_lock, omp_test_nest_lock): Likewise.
1500 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1501 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1502 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1503 omp_test_lock, omp_test_nest_lock): Likewise.
1504 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1505 omp_get_dynamic, omp_get_nested): Likewise.
1506 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1507 omp_get_thread_num, omp_in_parallel): Likewise.
1508 * fortran.c (ialias_redirect): Define.
1509 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1510 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1511 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1512 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1513 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1514 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1515 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1516 omp_get_wtime): Add ialias_redirect.
1518 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1520 * fortran.c: Include stdlib.h.
1522 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1524 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1525 * Makefile.in: Regenerated.
1527 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1529 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1530 * libgomp_f.h.in (omp_check_defines): New function.
1531 * env.c: Include libgomp_f.h.
1532 (initialize_env): Call omp_check_defines.
1534 * testsuite/libgomp.dg/copyin-2.c: New test.
1535 * testsuite/libgomp.c++/copyin-2.C: New test.
1536 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1538 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1539 * testsuite/libgomp.fortran/sharing2.f90: New test.
1541 * testsuite/libgomp.dg/copyin-1.c: New test.
1542 * testsuite/libgomp.c++/copyin-1.C: New test.
1544 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1546 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1548 * testsuite/libgomp.fortran/workshare1.f90: New test.
1550 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1552 * libgomp.fortran/sharing1.f90: New test.
1554 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1557 * testsuite/libgomp.c++/loop-7.C: New test.
1559 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1561 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1562 * testsuite/libgomp.fortran/reduction6.f90: New test.
1563 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1565 2005-10-23 Richard Henderson <rth@redhat.com>
1567 * testsuite/libgomp.c++/ctor-1.C: New.
1568 * testsuite/libgomp.c++/ctor-2.C: New.
1569 * testsuite/libgomp.c++/ctor-3.C: New.
1570 * testsuite/libgomp.c++/ctor-4.C: New.
1571 * testsuite/libgomp.c++/ctor-5.C: New.
1572 * testsuite/libgomp.c++/ctor-6.C: New.
1573 * testsuite/libgomp.c++/ctor-7.C: New.
1574 * testsuite/libgomp.c++/ctor-8.C: New.
1575 * testsuite/libgomp.c++/ctor-9.C: New.
1577 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1580 * testsuite/libgomp.c++/pr24455-1.C: New test.
1581 * testsuite/libgomp.c++/pr24455.C: New test.
1582 * testsuite/libgomp.dg/pr24455-1.c: New test.
1583 * testsuite/libgomp.dg/pr24455.c: New test.
1585 2005-10-20 Richard Henderson <rth@redhat.com>
1587 * testsuite/libgomp.c++/loop-6.C: New.
1588 * testsuite/libgomp.dg/loop-3.c: New.
1590 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1592 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1594 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1597 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1599 * testsuite/libgomp.fortran/jacobi.f: New test.
1601 2005-10-19 Richard Henderson <rth@redhat.com>
1603 * configure.tgt (i?86-linux): Default to with_arch instead of
1604 CFLAGS. Add -mtune to match target_cpu.
1605 (x86_64-linux): Tune to i686.
1607 * fortran.c (omp_test_nest_lock_): Fix typo.
1609 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1611 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1612 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1613 * testsuite/libgomp.dg/ordered-3.c: New test.
1615 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1616 Remove volatile keyword.
1618 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1619 in COMMON block to avoid warnings on 64-bit targets.
1621 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1623 * testsuite/libgomp.dg/shared-3.c: New test.
1625 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1627 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1628 * testsuite/libgomp.fortran/reduction5.f90: New test.
1630 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1632 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1634 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1635 flush loop now that __sync_synchronize has proper memory barrier.
1636 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1637 Add -ffixed-form to dg-options.
1639 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1641 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1642 from subdirectories.
1643 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1644 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1645 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1646 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1647 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1648 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1649 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1650 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1651 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1652 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1653 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1654 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1655 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1656 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1657 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1658 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1659 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1660 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1661 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1662 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1663 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1664 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1665 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1666 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1667 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1669 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1671 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1672 lang_library_path exists. Use find instead of glob to gather tests.
1673 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1675 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1677 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1678 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1679 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1680 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1681 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1682 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1683 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1684 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1685 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1686 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1687 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1688 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1689 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1691 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1693 * testsuite/libgomp.dg/vla-1.c: New test.
1695 * testsuite/libgomp.fortran/reference2.f90: New test.
1697 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1698 declaration of omp_get_thread_num.
1699 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1702 * testsuite/libgomp.fortran/reduction1.f90: New test.
1703 * testsuite/libgomp.fortran/reduction2.f90: New test.
1704 * testsuite/libgomp.fortran/reduction3.f90: New test.
1705 * testsuite/libgomp.fortran/reduction4.f90: New test.
1707 2005-10-13 Richard Henderson <rth@redhat.com>
1709 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1710 * Makefile.in: Regenerate.
1711 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1712 * libgomp.h: Include bar.h.
1713 (struct gomp_barrier): Remove.
1714 (struct gomp_team): Add barrier. Replace master_barrier with
1715 master_release. Replace threads with ordered_release.
1716 (struct gomp_thread): Replace barrier with release.
1717 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1718 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1719 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1720 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1721 (GOMP_single_copy_end): Likewise.
1722 * team.c (gomp_threads_dock): New.
1723 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1724 (gomp_thread_start): Use gomp_barrier_wait.
1725 (new_team, free_team): Update for gomp_team changes.
1726 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1727 (gomp_team_end): Use gomp_barrier_wait.
1728 (initialize_team): Update for gomp_thread changes.
1729 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1730 (gomp_work_share_end_nowait): Use atomic ops when available.
1731 * config/linux/bar.c, config/linux/bar.h: New files.
1732 * config/posix/bar.c, config/posix/bar.h: New files.
1734 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1736 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1737 * testsuite/libgomp.dg/single-2.c: New test.
1739 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1740 lang_link_flags): Unset, so that they aren't inherited from previously
1743 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1745 2005-10-12 Richard Henderson <rth@redhat.com>
1747 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1748 (libgomp_init): Use lang_test_file, lang_library_path, and
1749 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1751 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1752 (lang_test_file, lang_link_flags): New.
1753 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1755 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1756 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1757 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1758 testsuite/libgomp.c++/parallel-1.C,
1759 testsuite/libgomp.c++/reduction-1.C,
1760 testsuite/libgomp.c++/reduction-2.C,
1761 testsuite/libgomp.c++/reduction-3.C,
1762 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1763 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1764 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1765 New files, largely cribbed from the C testsuite.
1767 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1769 * testsuite/libgomp.fortran/character1.f90: New test.
1770 * testsuite/libgomp.fortran/character2.f90: New test.
1772 * testsuite/libgomp.dg/nested-1.c: New test.
1773 * testsuite/libgomp.dg/nested-2.c: New test.
1774 * testsuite/libgomp.fortran/do1.f90: New test.
1775 * testsuite/libgomp.fortran/do2.f90: New test.
1777 * testsuite/libgomp.fortran/reference1.f90: New test.
1779 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1781 * testsuite/libgomp.dg/reduction-1.c: New test.
1782 * testsuite/libgomp.dg/reduction-2.c: New test.
1783 * testsuite/libgomp.dg/reduction-3.c: New test.
1785 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1787 * testsuite/libgomp.dg/atomic-1.c: New test.
1788 * testsuite/libgomp.dg/atomic-2.c: New test.
1790 2005-10-09 Richard Henderson <rth@redhat.com>
1792 * critical.c (atomic_lock): New.
1793 (initialize_critical): Initialize it.
1794 (GOMP_atomic_start, GOMP_atomic_end): New.
1795 * libgomp.map: Export them.
1796 * libgomp_g.h: Declare them.
1798 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1800 2005-10-02 Richard Henderson <rth@redhat.com>
1802 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1803 to XCFLAGS instead of CFLAGS.
1805 2005-09-30 Richard Henderson <rth@redhat.com>
1807 * configure.ac: Determine whether -pthread or -lpthread is needed.
1808 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1809 * Makefine.in, configure: Rebuild.
1811 2005-09-28 Richard Henderson <rth@redhat.com>
1813 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1814 * testsuite/libgomp.dg/omp-single-3.c: New test.
1816 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1818 * testsuite/libgomp.dg/omp-single-2.c: New test.
1819 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1821 2005-09-27 Richard Henderson <rth@redhat.com>
1823 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1824 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1826 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1828 * testsuite/libgomp.dg/omp-loop03.c: New test.
1830 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1832 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1834 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1836 * testsuite/libgomp.dg/omp-single-1.c: New test.
1837 * testsuite/libgomp.dg/shared-1.c: Return 0.
1838 Add prototype for abort.
1839 * testsuite/libgomp.dg/shared-2.c: Likewise.
1841 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1843 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1846 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1848 * testsuite/libgomp.dg/shared-1.c: New test.
1849 * testsuite/libgomp.dg/shared-2.c: New test.
1851 2005-09-24 Richard Henderson <rth@redhat.com>
1853 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1855 2005-09-24 Richard Henderson <rth@redhat.com>
1857 * iter.c (gomp_iter_static_next): Round up when computing number
1858 of iterations. Don't bother distributing a remainder equally.
1860 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1861 Don't call srand. Zero b before testing.
1864 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1866 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1867 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1869 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1871 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1872 without !$omp end do, followed immediately by subroutine end.
1874 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1876 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1878 2005-09-22 Richard Henderson <rth@redhat.com>
1880 * critical.c (GOMP_critical_name_start): Change argument to void**.
1881 Reuse the pointer space if the mutex fits.
1882 (GOMP_critical_name_end): Likewise.
1883 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1884 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1885 (GOMP_critical_name_end): Likewise.
1886 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1887 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1889 2005-09-20 Richard Henderson <rth@redhat.com>
1891 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1892 (create_lock_lock): New.
1893 (initialize_critical): Initialize it.
1894 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1895 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1897 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1899 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1901 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1903 * testsuite/libgomp.dg/omp-loop01.c: New test.
1904 * testsuite/libgomp.dg/omp-loop02.c: New test.
1906 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1908 * configure.ac (AC_PROG_FC): Add.
1909 (USE_FORTRAN): New automake conditional.
1910 * configure: Rebuilt.
1911 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1912 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1913 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1914 Add rules to build them.
1915 * Makefile.in: Rebuilt.
1916 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1918 * libgomp.map: Add Fortran wrappers.
1919 * libgomp_f.h.in: New file.
1920 * omp_lib.h.in: New file.
1921 * omp_lib.f90.in: New file.
1922 * fortran.c: New file.
1923 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1924 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1925 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1926 libgfortran has been built.
1927 * testsuite/libgomp.fortran/fortran.exp: New file.
1928 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1929 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1930 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1931 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1932 * testsuite/libgomp.fortran/omp_hello.f: New test.
1933 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1934 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1935 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1936 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1937 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1938 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1939 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1940 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1942 2005-08-30 Richard Henderson <rth@redhat.com>
1944 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1945 function for when aliases are not usable.
1946 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1947 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1948 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1949 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1950 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1951 GOMP_loop_ordered_guided_next): Likewise.
1952 * ordered.c (GOMP_ordered_start): Likewise.
1954 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1956 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1957 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1958 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1959 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1960 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1961 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1962 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1963 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1964 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1966 2005-07-07 Eric Christopher <echristo@redhat.com>
1967 Diego Novillo <dnovillo@redhat.com>
1969 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1970 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1972 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1973 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1974 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1975 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1976 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1977 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1978 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1980 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1982 * TOPLEVEL.patch: Remove.
1984 2005-05-16 Richard Henderson <rth@redhat.com>
1986 * configure.ac: Test for clock_gettime.
1987 * config.h.in, configure: Rebuild.
1988 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1989 (omp_get_wtime): Use clock_gettime if available.
1990 (omp_get_wtick): Use clock_getres if available.
1992 2005-05-11 Richard Henderson <rth@redhat.com>
1994 * config/linux/ia64/futex.h: New file.
1995 * configure.tgt: Use it.
1997 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1999 2005-05-07 Richard Henderson <rth@redhat.com>
2001 * config/linux/powerpc/futex.h: New file.
2002 * configure.tgt: Use it.
2004 * config/linux/i486/futex.h: Merge ...
2005 * config/linux/x86_64/futex.h: ... into ...
2006 * config/linux/x86/futex.h: ... here.
2007 * configure.tgt: Update to match.
2009 2005-05-06 Richard Henderson <rth@redhat.com>
2011 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2012 * config/linux/i486/futex.h: Likewise.
2013 * config/linux/x86_64/futex.h: Likewise.
2015 * config/linux/lock.c: New file.
2016 * config/linux/omp-lock.h: New file.
2018 * critical.c, env.h: Don't include omp.h
2019 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2020 * config/posix/time.c: Likewise.
2021 * config/posix/omp-lock.h: New file.
2022 * libgomp.h: Include omp-lock.h and omp.h.
2023 * Makefile.am (nodist_include_HEADERS): New.
2025 * configure.ac (PERL): New.
2026 * mkomp_h.pl: New file.
2027 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2029 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2031 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2032 build directory. Re-add -march=i486 hack.
2034 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2035 (libgomp_link_flags): Remove.
2036 (libgomp_initialized): Remove.
2037 (libgomp_init): Don't protect from reinitialization. Copy code
2038 from libstdc++ for getting the multilib set correctly.
2040 2005-05-05 Richard Henderson <rth@redhat.com>
2042 * config/linux/alpha/futex.h: New file.
2043 * configure.tgt (alpha*-*-linux*): Use it.
2045 * config/posix/mutex.c: New file.
2046 * config/posix/sem.c: Use libgomp.h.
2048 * configure.tgt (x86_64-linux): Also test CC for -m32.
2049 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2051 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2054 * Makefile.am (SUBDIRS): New.
2055 (libgomp_la_LDFLAGS): Add -lpthread.
2056 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2057 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2059 * libgomp_g.h: New file.
2060 * libgomp.h: Split out all public declarations to libgomp_g.h.
2061 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2062 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2063 * config/linux/sem.h: Likewise.
2064 * config/posix/sem.h: Likewise.
2066 * Makefile.am (AM_LDFLAGS): New.
2067 (libgomp_version_script): Split out from ...
2068 (libgomp_la_LDFLAGS): ... here.
2069 (libgomp_version_info): New.
2070 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2071 (LIBGOMP_ENABLE): New.
2072 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2073 (LIBGOMP_ENABLE_SYMVERS): New.
2074 * configure.ac (AC_INIT): Version 1.0.
2075 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2076 (enable-linux-futex): Likewise. Rename from enable-futex.
2077 (libtool_VERSION): New.
2078 (LIBGOMP_ENABLE_SYMVERS): Use it.
2079 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2080 * Makefile.in, aclocal.m4, configure: Rebuild.
2082 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2083 (gomp_mutex_unlock_slow): Fix typo.
2084 * config/linux/sem.c: Similarly.
2085 (gomp_sem_post_slow): Fix typo.
2086 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2087 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2088 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2090 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2091 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2092 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2093 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2094 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2095 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2096 LDFLAGS. Pull enable_futex check to top-level.
2097 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2098 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2100 First attempt at real configury.
2101 * Makefile, config.h: Remove file.
2102 * Makefile.am, Makefile.in: New file.
2103 * acinclude.m4 aclocal.m4: New file.
2104 * configure.ac, configure.tgt, configure: New file.
2106 * config/posix/lock.c: Rename from sys-lock.c.
2107 * config/posix/mutex.h: Rename from sys-mutex.h.
2108 * config/posix/sem.c: Rename from sys-sem.c.
2109 * config/posix/sem.h: Rename from sys-sem.h.
2110 * config/posix/proc.c: Rename from sys-proc.c.
2111 * config/posix/time.c: Rename from sys-proc.c.
2113 * config/linux/mutex.c: New file.
2114 * config/linux/mutex.h: New file.
2115 * config/linux/sem.c: New file.
2116 * config/linux/sem.h: New file.
2117 * config/linux/i486/futex.h: New file.
2118 * config/linux/x86_64/futex.h: New file.
2120 2005-05-04 Richard Henderson <rth@redhat.com>
2122 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2123 * libgomp.h: Declare them.
2124 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2125 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2127 2005-05-04 Richard Henderson <rth@redhat.com>
2129 * libgomp-1 code drop
2131 2005-05-04 Richard Henderson <rth@redhat.com>
2133 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2134 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2135 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2136 (gomp_iter_static_next): Update.
2137 (gomp_ordered_static_next): Update.
2138 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2139 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2140 totally empty range.
2141 (gomp_loop_ordered_static_next): Refine test for calling
2142 gomp_ordered_static_next.
2143 * testsuite/ordered-1.c: Add case for more threads than iterations.
2145 * iter.c (gomp_iter_runtime_next_locked): Remove.
2146 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2147 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2148 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2149 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2150 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2151 gomp_loop_ordered_guided_next): Downcase name, make static, add
2152 an external alias with the old name.
2153 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2154 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2155 switch and call one of the above static functions.
2156 * libgomp.h: Update.
2158 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2159 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2160 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2161 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2162 GOMP_loop_ordered_guided_start): Update to match.
2163 * sections.c (GOMP_sections_start): Likewise.
2164 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2166 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2167 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2168 Use bounds check instead of modulus.
2169 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2170 (gomp_ordered_last): Don't sync with ordered_owner here.
2171 (gomp_ordered_next): Likewise.
2172 (gomp_ordered_static_loop_next): Likewise.
2173 * loop.c, libgomp.h: Update to match.
2175 * libgomp.h (GOMP_barrier): Declare.
2177 * testsuite/barrier-1.c: New file.
2178 * testsuite/critical-1.c: New file.
2179 * testsuite/ordered-2.c: New file.
2180 * testsuite/ordered-1.c: New file.
2181 * testsuite/sections-1.c: New file.
2182 * testsuite/single-1.c: New file.
2183 * testsuite/Makefile (TESTS): Add them.
2185 2005-05-04 Richard Henderson <rth@redhat.com>
2187 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2188 * loop.c (GOMP_loop_static_start): If not the startup thread,
2189 acquire the mutex to wait for initialization complete.
2190 (GOMP_loop_ordered_static_start): Likewise.
2191 (GOMP_loop_ordered_runtime_start): Likewise.
2192 (GOMP_loop_ordered_static_first): Remove.
2193 (GOMP_loop_ordered_dynamic_first): Remove.
2194 (GOMP_loop_ordered_guided_first): Remove.
2195 (GOMP_loop_ordered_runtime_first): Remove.
2196 * ordered.c (gomp_ordered_loop_first): Post to own release when
2197 we're the first thread.
2198 (gomp_ordered_loop_last): Wait on release if not owner.
2199 (gomp_ordered_loop_next): Likewise.
2200 (gomp_ordered_static_loop_init): New.
2201 (gomp_ordered_static_loop_next): Use ordered_owner.
2202 (GOMP_ordered_start): Likewise.
2203 * work.c (gomp_new_work_share): Initialize ordered_owner.
2205 2005-05-03 Richard Henderson <rth@redhat.com>
2207 * Makefile (OPT): New.
2210 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2211 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2212 * libgomp.h, libgomp.map, NOTES: Update to match.
2214 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2215 Add initialized and thr members.
2216 (gomp_thread_start): Pause when initially spawned to wait for
2217 the whole team to be created.
2218 (gomp_team_start): Release team members at the end.
2220 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2221 (f_foo_1): Use GOMP_loop_end.
2222 (f_foo_2): Use GOMP_loop_end_nowait.
2224 * testsuite/loop-2.c: New file.
2225 * testsuite/Makefile (TESTS): Add it.
2227 2005-05-03 Richard Henderson <rth@redhat.com>
2229 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2230 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2231 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2234 * testsuite/Makefile: New file.
2235 * testsuite/loop-1.c: New file.
2237 2005-05-03 Richard Henderson <rth@redhat.com>
2239 Initial implementation and checkin.