1 2008-06-27 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/debug-1.c: New test.
6 2008-06-19 Jakub Jelinek <jakub@redhat.com>
8 * testsuite/libgomp.c/nqueens-1.c: New test.
11 * testsuite/libgomp.c++/task-7.C: New function.
13 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 * configure: Regenerate.
17 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
20 mutex when HAVE_SYNC_BUILTINS isn't defined.
22 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24 * libgomp.texi (omp_test_lock): Fix typo.
26 2008-06-12 Tobias Burnus <burnus@net-b.de>
28 * omp_lib.f90.in: Add "implicit none".
30 2008-06-12 Jakub Jelinek <jakub@redhat.com>
33 * testsuite/libgomp.c/reduction-5.c: New test.
35 2008-06-11 Jakub Jelinek <jakub@redhat.com>
37 * libgomp.h (struct gomp_task): Add in_tied_task field.
38 * task.c (gomp_init_task): Initialize it.
39 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
40 unconditionally. Don't call gomp_team_barrier_wake if
41 current task is implicit or if(0) from implicit and number of
42 running tasks is equal to nthreads - 1.
45 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
46 omp_get_team_size_8): Fix pastos.
49 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
50 * configure: Regenerated.
51 * config.h.in: Regenerated.
52 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
55 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
58 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
59 (GOMP_loop_ull_dynamic_start): Likewise.
60 (GOMP_loop_ull_guided_start): Likewise.
61 (GOMP_loop_ull_ordered_static_start): Likewise.
62 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
63 (GOMP_loop_ull_ordered_guided_start): Likewise.
65 2008-06-06 Jakub Jelinek <jakub@redhat.com>
66 Richard Henderson <rth@redhat.com>
67 Ulrich Drepper <drepper@redhat.com>
68 Jakob Blomer <jakob.blomer@ira.uka.de>
70 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
71 Substitute also OMP_*LOCK_25*.
72 * configure: Regenerated.
73 * config.h.in: Regenerated.
74 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
76 * Makefile.in: Regenerated.
77 * testsuite/Makefile.in: Regenerated.
79 * loop_ull.c: New file.
80 * iter_ull.c: New file.
81 * libgomp.h: Include ptrlock.h.
82 (enum gomp_task_kind): New type.
83 (struct gomp_team): Add task_lock, task_queue, task_count,
84 task_running_count, single_count fields. Add
85 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
86 Remove work_share_lock, generation_mask,
87 oldest_live_gen, num_live_gen and init_work_shares fields, add
88 work work_share_list_alloc, work_share_list_free and work_share_chunk
89 fields. Change work_shares from pointer to pointers into an array.
90 Change ordered_release field into gomp_sem_t ** from flexible array
91 member. Add implicit_task and initial_work_shares fields.
92 Move close to the end of the struct.
93 (struct gomp_team_state): Add single_count, last_work_share,
94 active_level and level fields, remove work_share_generation.
95 (gomp_barrier_handle_tasks): New prototype.
96 (gomp_finish_task): New inline function.
97 (struct gomp_work_share): Move chunk_size, end, incr into
98 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
99 next_ll fields. Reshuffle fields. Add next_alloc,
100 next_ws, next_free and inline_ordered_team_ids fields, change
101 ordered_team_ids into pointer from flexible array member.
102 Add mode field. Put lock and next into a different cache line
103 from most of the write-once fields.
104 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
105 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
106 gomp_iter_ull_guided_next): New prototypes.
107 (gomp_new_icv): New prototype.
108 (struct gomp_thread): Add thread_pool and task fields.
109 (struct gomp_thread_pool): New type.
110 (gomp_new_team): New prototype.
111 (gomp_team_start): Change type of last argument.
112 (gomp_new_work_share): Removed.
113 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
114 (gomp_work_share_init_done): New static inline.
115 (gomp_throttled_spin_count_var, gomp_available_cpus,
116 gomp_managed_threads): New extern decls.
117 (gomp_init_task): New prototype.
118 (gomp_spin_count_var): New extern var decl.
119 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
120 or no alias support, or if not PIC.
121 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
122 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
123 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
124 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
125 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
126 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
127 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
128 gomp_test_nest_lock_25): New prototypes.
129 (omp_lock_symver, strong_alias): Define.
130 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
132 (gomp_end_task): New.
133 (struct gomp_task_icv, gomp_global_icv): New.
134 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
135 (struct gomp_task): New.
136 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
137 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
139 (gomp_schedule_type): Reorder enum to match
141 * team.c (struct gomp_thread_start_data): Add thread_pool and task
143 (gomp_thread_start): Add gomp_team_barrier_wait call.
144 For non-nested case remove clearing of docked thread thr fields.
145 Use pool fields instead of global gomp_* variables. Use
146 gomp_barrier_wait_last when needed. Initialize ts.active_level.
147 Create tasks for each member thread.
148 (free_team): Only destroy team barrier, task_lock here and free it.
149 (gomp_free_thread): Free last_team if non-NULL.
150 (gomp_team_end): Call gomp_team_barrier_wait instead of
151 gomp_barrier_wait. For nested case call one extra
152 gomp_barrier_wait. Move here some destruction from free_team.
153 Call free_team on pool->last_team if any, rather than freeing
154 current team. Destroy work_share_list_free_lock ifndef
156 (gomp_new_icv): New function.
157 (gomp_threads, gomp_threads_size, gomp_threads_used,
158 gomp_threads_dock): Removed.
159 (gomp_thread_destructor): New variable.
160 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
162 (gomp_team_start): Create new pool if current thread doesn't have
163 one. Use pool fields instead of global gomp_* variables.
164 Initialize thread_pool field for new threads. Clear single_count.
165 Change last argument from ws to team, don't create
166 new team, set ts.work_share to &team->work_shares[0] and clear
167 ts.last_work_share. Don't clear ts.work_share_generation.
168 If number of threads changed, adjust atomically gomp_managed_threads.
169 Use gomp_init_task instead of gomp_new_task,
170 set thr->task to the corresponding implicit_task array entry.
171 Create tasks for each member thread. Initialize ts.level.
172 (initialize_team): Call pthread_key_create on
173 gomp_thread_destructor.
174 (team_destructor): New function.
176 (gomp_new_team): New function.
177 (free_team): Free gomp_work_share blocks chained through next_alloc,
178 instead of freeing work_shares and destroying work_share_lock.
179 (gomp_team_end): Call gomp_fini_work_share. If number of threads
180 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
181 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
182 of gomp_barrier_wait.
183 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
184 instead of gomp_barrier_wait. Call gomp_work_share_init_done
185 if gomp_work_share_start returned true. Don't unlock ws->lock.
186 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
187 of gomp_barrier_wait.
188 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
189 gomp_work_share_init_done if gomp_work_share_start returned true.
190 Don't unlock ws->lock.
191 * work.c: Include stddef.h.
192 (free_work_share): Use work_share_list_free_lock instead
193 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
194 Call gomp_fini_work_share and then either free ws if orphaned, or
195 put it into work_share_list_free list of the current team.
196 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
198 (gomp_work_share_start, gomp_work_share_end,
199 gomp_work_share_end_nowait): Rewritten.
200 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
201 (openmp_version): Set to 200805.
202 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
203 omp_sched_guided, omp_sched_auto): New parameters.
204 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
205 omp_set_max_active_levels, omp_get_max_active_levels,
206 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
207 omp_get_active_level): New interfaces.
208 * omp_lib.h.in (openmp_version): Set to 200805.
209 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
210 omp_sched_guided, omp_sched_auto): New parameters.
211 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
212 omp_set_max_active_levels, omp_get_max_active_levels,
213 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
214 omp_get_active_level): New externals.
215 * loop.c: Include limits.h.
216 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
218 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
219 Likewise. Use gomp_icv.
220 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
222 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
223 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
224 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
225 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
226 don't unlock ws->lock, otherwise lock it.
227 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
228 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
229 (gomp_parallel_loop_start): Call gomp_new_team instead of
230 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
231 Adjust gomp_team_start caller. Pass 0 as second argument to
232 gomp_resolve_num_threads.
233 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
234 If adding ws->chunk_size nthreads + 1 times after end won't
235 overflow, set ws->mode to 1.
236 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
237 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
238 GOMP_loop_ull_ordered_static_start,
239 GOMP_loop_ull_ordered_dynamic_start,
240 GOMP_loop_ull_ordered_guided_start,
241 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
242 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
243 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
244 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
245 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
247 * libgomp.map: Export lock routines also @@OMP_2.0.
248 (GOMP_loop_ordered_dynamic_first,
249 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
250 GOMP_loop_ordered_static_first): Remove.
251 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
252 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
253 GOMP_loop_ull_ordered_dynamic_next,
254 GOMP_loop_ull_ordered_dynamic_start,
255 GOMP_loop_ull_ordered_guided_next,
256 GOMP_loop_ull_ordered_guided_start,
257 GOMP_loop_ull_ordered_runtime_next,
258 GOMP_loop_ull_ordered_runtime_start,
259 GOMP_loop_ull_ordered_static_next,
260 GOMP_loop_ull_ordered_static_start,
261 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
262 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
263 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
264 (omp_set_schedule, omp_get_schedule,
265 omp_get_thread_limit, omp_set_max_active_levels,
266 omp_get_max_active_levels, omp_get_level,
267 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
268 omp_set_schedule_, omp_set_schedule_8_,
269 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
270 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
271 omp_get_max_active_levels_, omp_get_level_,
272 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
273 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
274 New exports @@OMP_3.0.
275 * omp.h.in (omp_sched_t): New type.
276 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
277 omp_set_max_active_levels, omp_get_max_active_levels,
278 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
279 omp_get_active_level): New prototypes.
280 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
281 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
282 gomp_thread_limit_var, gomp_remaining_threads_count,
283 gomp_remaining_threads_lock): New variables.
284 (parse_spincount): New function.
285 (initialize_env): Call gomp_init_num_threads unconditionally.
286 Initialize gomp_available_cpus. Call parse_spincount,
287 initialize gomp_{,throttled_}spin_count_var
288 depending on presence and value of OMP_WAIT_POLICY and
289 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
290 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
291 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
292 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
293 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
294 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
295 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
296 (gomp_global_icv): New.
297 (parse_schedule): Use it. Parse "auto".
298 (omp_set_num_threads): Use gomp_icv.
299 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
301 (omp_get_max_threads): Move from parallel.c.
302 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
303 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
305 (parse_stacksize, parse_wait_policy): New functions.
306 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
307 both wrappers for compatibility and new locks.
308 (omp_set_schedule, omp_get_schedule,
309 omp_get_thread_limit, omp_set_max_active_levels,
310 omp_get_max_active_levels, omp_get_level,
311 omp_get_ancestor_thread_num, omp_get_team_size,
312 omp_get_active_level): New ialias_redirect.
313 (omp_set_schedule_, omp_set_schedule_8_,
314 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
315 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
316 omp_get_max_active_levels_, omp_get_level_,
317 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
318 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
320 * parallel.c: Include limits.h.
321 (gomp_resolve_num_threads): Add count argument. Rewritten.
322 (GOMP_parallel_start): Call gomp_new_team and pass that as last
323 argument to gomp_team_start. Pass 0 as second argument to
324 gomp_resolve_num_threads.
325 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
326 if gomp_thread_limit_var != ULONG_MAX.
327 (omp_in_parallel): Implement using ts.active_level.
328 (omp_get_max_threads): Move to env.c.
329 (omp_get_level, omp_get_ancestor_thread_num,
330 omp_get_team_size, omp_get_active_level): New functions,
332 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
333 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
334 gomp_iter_dynamic_next instead of the _locked variant and don't take
335 lock around it, otherwise acquire it before calling
336 gomp_iter_dynamic_next_locked.
337 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
338 gomp_iter_dynamic_next instead of the _locked variant and don't take
340 (GOMP_parallel_sections_start): Call gomp_new_team instead of
341 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
342 Adjust gomp_team_start caller. Pass count as second argument to
343 gomp_resolve_num_threads, don't adjust num_threads after the call.
345 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
346 ws->chunk_size by incr.
347 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
349 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
351 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
352 (omp_check_defines): Check even the compat defines.
353 * config/linux/ptrlock.c: New file.
354 * config/linux/ptrlock.h: New file.
355 * config/linux/wait.h: New file.
356 * config/posix/ptrlock.c: New file.
357 * config/posix/ptrlock.h: New file.
358 * config/linux/bar.h (gomp_team_barrier_wait,
359 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
360 (gomp_team_barrier_set_task_pending,
361 gomp_team_barrier_clear_task_pending,
362 gomp_team_barrier_set_waiting_for_tasks,
363 gomp_team_barrier_waiting_for_tasks,
364 gomp_team_barrier_done): New inlines.
365 (gomp_barrier_t): Rewritten.
366 (gomp_barrier_state_t): New typedef.
367 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
368 gomp_barrier_wait_start): Rewritten.
369 (gomp_barrier_wait_end): Change second argument to
370 gomp_barrier_state_t.
371 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
373 * config/linux/bar.c: Include wait.h instead of libgomp.h and
375 (gomp_barrier_wait_end): Rewritten.
376 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
377 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
378 * config/posix/bar.h (gomp_barrier_t): Add generation field.
379 (gomp_barrier_state_t): New typedef.
380 (gomp_team_barrier_wait,
381 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
382 (gomp_barrier_wait_start): Or all but low 2 bits from generation
383 into the return value. Return gomp_barrier_state_t.
384 (gomp_team_barrier_set_task_pending,
385 gomp_team_barrier_clear_task_pending,
386 gomp_team_barrier_set_waiting_for_tasks,
387 gomp_team_barrier_waiting_for_tasks,
388 gomp_team_barrier_done): New inlines.
389 (gomp_barrier_wait_end): Change second argument to
390 gomp_barrier_state_t.
391 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
393 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
394 (gomp_barrier_wait_end): Change second argument to
395 gomp_barrier_state_t.
396 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
397 gomp_team_barrier_wake): New functions.
398 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
400 (gomp_futex_wake, gomp_futex_wait): New variables.
401 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
402 * config/linux/lock.c: Rewrite to make locks task owned,
403 for backwards compatibility provide the old entrypoints
404 if symbol versioning. Include wait.h instead of libgomp.h and
406 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
407 * config/posix95/lock.c: Rewrite to make locks task owned,
408 for backwards compatibility provide the old entrypoints
409 if symbol versioning.
410 * config/posix/lock.c: Rewrite to make locks task owned,
411 for backwards compatibility provide the old entrypoints
412 if symbol versioning.
413 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
414 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
415 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
416 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
417 (sys_futex0): Return error code.
418 (futex_wake, futex_wait): If ENOSYS was returned, clear
419 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
420 (cpu_relax, atomic_write_barrier): New static inlines.
421 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
422 (futex_wake, futex_wait): If ENOSYS was returned, clear
423 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
424 (cpu_relax, atomic_write_barrier): New static inlines.
425 * config/linux/x86/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/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
431 (sys_futex0): Return error code.
432 (futex_wake, futex_wait): If ENOSYS was returned, clear
433 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
434 (cpu_relax, atomic_write_barrier): New static inlines.
435 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
436 (sys_futex0): Return error code.
437 (futex_wake, futex_wait): If ENOSYS was returned, clear
438 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
439 (cpu_relax, atomic_write_barrier): New static inlines.
440 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
441 (sys_futex0): Return error code.
442 (futex_wake, futex_wait): If ENOSYS was returned, clear
443 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
444 (cpu_relax, atomic_write_barrier): New static inlines.
445 * config/linux/sem.c: Include wait.h instead of libgomp.h and
447 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
448 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
449 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
451 (omp_nest_lock_t): Change owner into void *, add lock field.
452 * config/posix95/omp-lock.h: Include semaphore.h.
453 (omp_lock_25_t, omp_nest_lock_25_t): New types.
454 (omp_lock_t): Use sem_t instead of mutex if semaphores
456 (omp_nest_lock_t): Likewise. Change owner to void *.
457 * config/posix/omp-lock.h: Include semaphore.h.
458 (omp_lock_25_t, omp_nest_lock_25_t): New types.
459 (omp_lock_t): Use sem_t instead of mutex if semaphores
461 (omp_nest_lock_t): Likewise. Add owner field.
463 2008-06-06 Jakub Jelinek <jakub@redhat.com>
465 * testsuite/libgomp.c/collapse-1.c: New test.
466 * testsuite/libgomp.c/collapse-2.c: New test.
467 * testsuite/libgomp.c/collapse-3.c: New test.
468 * testsuite/libgomp.c/icv-1.c: New test.
469 * testsuite/libgomp.c/icv-2.c: New test.
470 * testsuite/libgomp.c/lib-2.c: New test.
471 * testsuite/libgomp.c/lock-1.c: New test.
472 * testsuite/libgomp.c/lock-2.c: New test.
473 * testsuite/libgomp.c/lock-3.c: New test.
474 * testsuite/libgomp.c/loop-4.c: New test.
475 * testsuite/libgomp.c/loop-5.c: New test.
476 * testsuite/libgomp.c/loop-6.c: New test.
477 * testsuite/libgomp.c/loop-7.c: New test.
478 * testsuite/libgomp.c/loop-8.c: New test.
479 * testsuite/libgomp.c/loop-9.c: New test.
480 * testsuite/libgomp.c/nested-3.c: New test.
481 * testsuite/libgomp.c/nestedfn-6.c: New test.
482 * testsuite/libgomp.c/sort-1.c: New test.
483 * testsuite/libgomp.c/task-1.c: New test.
484 * testsuite/libgomp.c/task-2.c: New test.
485 * testsuite/libgomp.c/task-3.c: New test.
486 * testsuite/libgomp.c/task-4.c: New test.
487 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
488 to C++ testsuite default compiler options.
489 * testsuite/libgomp.c++/collapse-1.C: New test.
490 * testsuite/libgomp.c++/collapse-2.C: New test.
491 * testsuite/libgomp.c++/ctor-10.C: New test.
492 * testsuite/libgomp.c++/for-1.C: New test.
493 * testsuite/libgomp.c++/for-2.C: New test.
494 * testsuite/libgomp.c++/for-3.C: New test.
495 * testsuite/libgomp.c++/for-4.C: New test.
496 * testsuite/libgomp.c++/for-5.C: New test.
497 * testsuite/libgomp.c++/loop-8.C: New test.
498 * testsuite/libgomp.c++/loop-9.C: New test.
499 * testsuite/libgomp.c++/loop-10.C: New test.
500 * testsuite/libgomp.c++/task-1.C: New test.
501 * testsuite/libgomp.c++/task-2.C: New test.
502 * testsuite/libgomp.c++/task-3.C: New test.
503 * testsuite/libgomp.c++/task-4.C: New test.
504 * testsuite/libgomp.c++/task-5.C: New test.
505 * testsuite/libgomp.c++/task-6.C: New test.
506 * testsuite/libgomp.fortran/allocatable1.f90: New test.
507 * testsuite/libgomp.fortran/allocatable2.f90: New test.
508 * testsuite/libgomp.fortran/allocatable3.f90: New test.
509 * testsuite/libgomp.fortran/allocatable4.f90: New test.
510 * testsuite/libgomp.fortran/collapse1.f90: New test.
511 * testsuite/libgomp.fortran/collapse2.f90: New test.
512 * testsuite/libgomp.fortran/collapse3.f90: New test.
513 * testsuite/libgomp.fortran/collapse4.f90: New test.
514 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
515 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
516 * testsuite/libgomp.fortran/lib4.f90: New test.
517 * testsuite/libgomp.fortran/lock-1.f90: New test.
518 * testsuite/libgomp.fortran/lock-2.f90: New test.
519 * testsuite/libgomp.fortran/nested1.f90: New test.
520 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
521 * testsuite/libgomp.fortran/strassen.f90: New test.
522 * testsuite/libgomp.fortran/tabs1.f90: New test.
523 * testsuite/libgomp.fortran/tabs2.f: New test.
524 * testsuite/libgomp.fortran/task1.f90: New test.
525 * testsuite/libgomp.fortran/task2.f90: New test.
526 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
527 * testsuite/libgomp.fortran/vla5.f90: Likewise.
528 * testsuite/libgomp.c/pr26943-2.c: Likewise.
529 * testsuite/libgomp.c/pr26943-3.c: Likewise.
530 * testsuite/libgomp.c/pr26943-4.c: Likewise.
532 2008-05-23 Jakub Jelinek <jakub@redhat.com>
535 * testsuite/libgomp.c++/ctor-11.C: New test.
536 * testsuite/libgomp.c++/ctor-12.C: New test.
538 2008-05-15 Janis Johnson <janis187@us.ibm.com>
540 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
542 2008-05-07 Jakub Jelinek <jakub@redhat.com>
545 * testsuite/libgomp.c/atomic-5.c: New test.
546 * testsuite/libgomp.c/atomic-6.c: New test.
547 * testsuite/libgomp.c/autopar-1.c: New test.
549 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
551 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
552 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
553 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
554 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
555 * configure: Regenerate.
556 * Makefile.in, testsuite/Makefile.in: Likewise.
558 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
561 * aclocal.m4: Regenerate.
562 * configure: Regenerate.
564 2008-03-18 Jakub Jelinek <jakub@redhat.com>
567 * testsuite/libgomp.c/atomic-4.c: New test.
570 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
571 (gomp_iter_guided_next): Likewise.
572 * testsuite/libgomp.c/pr35625.c: New test.
574 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
576 * aclocal.m4: Regenerate.
577 * configure: Likewise.
578 * Makefile.in: Likewise.
579 * testsuite/Makefile.in: Likewise.
581 2008-03-13 Jakub Jelinek <jakub@redhat.com>
584 * testsuite/libgomp.c++/pr35185.C: New test.
586 2008-03-12 Jakub Jelinek <jakub@redhat.com>
589 * testsuite/libgomp.c/pr35549.c: New test.
591 2008-03-06 Jakub Jelinek <jakub@redhat.com>
593 * testsuite/libgomp.c/atomic-3.c: New test.
595 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
598 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
601 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
604 * configure.ac: Add ACX_HEADER_STRING.
605 * env.c: Include strings.h.
606 * aclocal.m4: Regenerate.
607 * config.h.in: Regenerate.
608 * configure: Regenerate.
609 * Makefile.in: Regenerate.
610 * testsuite/Makefile.in: Regenerate.
612 2008-02-15 Jakub Jelinek <jakub@redhat.com>
615 * testsuite/libgomp.c/pr35196.c: New test.
618 * testsuite/libgomp.fortran/pr35130.f90: New test.
619 * testsuite/libgomp.c/pr35130.c: New test.
621 2008-01-25 Jakub Jelinek <jakub@redhat.com>
624 * testsuite/libgomp.c/pr33880.c: New test.
625 * testsuite/libgomp.fortran/pr33880.f90: New test.
627 2008-01-24 David Edelsohn <edelsohn@gnu.org>
629 * configure: Regenerate.
631 2008-01-08 Jakub Jelinek <jakub@redhat.com>
633 * configure.ac: Move futex checking into ../config/futex.m4.
634 * configure: Rebuilt.
635 * aclocal.m4: Rebuilt.
636 * Makefile.in: Rebuilt.
638 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
639 2007-10-15 ../config/tls.m4 change.
641 2007-12-19 Jakub Jelinek <jakub@redhat.com>
644 * testsuite/libgomp.c/pr34513.c: New test.
645 * testsuite/libgomp.c++/pr34513.C: New test.
647 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
650 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
652 2007-12-04 Jakub Jelinek <jakub@redhat.com>
654 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
656 2007-12-03 Jakub Jelinek <jakub@redhat.com>
658 * testsuite/libgomp.c/private-1.c: New test.
660 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
661 Paolo Bonzini <bonzini@gnu.org>
663 * Makefile.am: Use space as vpath separator. Use 'vpath %'
664 instead of 'VPATH ='.
665 * Makefile.in: Regenerate.
667 2007-11-23 Matthias Klose <doko@ubuntu.com>
669 * configure.ac: Adjust makeinfo version check.
670 * configure: Regenerate.
672 2007-11-10 Jakub Jelinek <jakub@redhat.com>
675 * testsuite/libgomp.fortran/pr34020.f90: New test.
677 2007-11-06 Jakub Jelinek <jakub@redhat.com>
680 * testsuite/libgomp.c++/atomic-1.C: New test.
682 2007-10-25 Jakub Jelinek <jakub@redhat.com>
685 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
686 Make x and y integers rather than (implicit) reals. Add private (j)
687 clause to the last omp parallel.
689 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
691 * configure: Regenerate following changes to ../config/tls.m4.
693 2007-09-28 Jakub Jelinek <jakub@redhat.com>
695 * testsuite/libgomp.fortran/stack.f90: New test.
697 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
699 * config/mingw32/proc.c: New file.
701 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
703 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
704 (main): Use __get_cpuid to get i386 target fetaures.
705 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
706 (main): Use __get_cpuid to get x86_64 target fetaures.
708 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
711 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
712 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
714 2007-07-12 Jakub Jelinek <jakub@redhat.com>
717 * testsuite/libgomp.fortran/pr32550.f90: New test.
718 * testsuite/libgomp.fortran/crayptr2.f90: New test.
720 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
722 * aclocal.m4: Regenerated.
724 2007-07-05 Tobias Burnus <burnus@net-b.de>
727 * testsuite/libgomp.fortran/pr32359.f90: New.
729 2007-07-02 Jakub Jelinek <jakub@redhat.com>
732 * sections.c (GOMP_parallel_sections_start): Only decrease
733 number of threads to COUNT if dyn_var is true.
734 * testsuite/libgomp.c/pr32468.c: New test.
736 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
739 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
741 2007-06-21 Jakub Jelinek <jakub@redhat.com>
744 * testsuite/libgomp.c/pr32362-1.c: New test.
745 * testsuite/libgomp.c/pr32362-2.c: New test.
746 * testsuite/libgomp.c/pr32362-3.c: New test.
748 2007-06-07 Jakub Jelinek <jakub@redhat.com>
750 * team.c (gomp_team_start): Fix setting up thread_attr
753 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
755 * configure: Regenerate.
757 2007-05-23 Steve Ellcey <sje@cup.hp.com>
759 * Makefile.in: Regenerate.
760 * configure: Regenerate.
761 * aclocal.m4: Regenerate.
762 * testsuite/Makefile.in: Regenerate.
764 2007-05-04 Jakub Jelinek <jakub@redhat.com>
766 * config/linux/proc.c: New file.
769 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
771 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
773 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
775 2007-04-16 Matthias Klose <doko@debian.org>
777 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
778 flags if not building with -m64.
779 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
780 flag for i?86-*-* targets, if current target matches -m64.
782 2007-04-14 Steve Ellcey <sje@cup.hp.com>
784 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
785 * Makefile.in: Regenerate.
787 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
790 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
792 * testsuite/libgomp.fortran/fortran.exp: Likewise.
794 2007-04-04 Jakub Jelinek <jakub@redhat.com>
796 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
798 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
799 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
800 (parse_affinity): New function.
801 (initialize_env): Call it and gomp_init_affinity.
802 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
803 create new pthread_attr_t and call gomp_init_thread_affinity
804 on it for each thread before passing the attribute to pthread_create.
805 * config/linux/affinity.c: New file.
806 * config/posix/affinity.c: New file.
807 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
808 * configure: Rebuilt.
809 * config.h.in: Rebuilt.
810 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
811 * Makefile.in: Rebuilt.
813 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
815 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
817 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
820 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
822 * testsuite/config/default.exp: New file.
823 * testsuite/lib/libgomp.exp: New file.
824 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
825 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
826 load_lib *, load_gcc_lib *): Move to libgomp.exp.
827 (libgomp_load): Remove.
828 * testsuite/lib/libgomp.exp (libgomp_init): Compute
829 always_ld_library_path, not ld_library_path. Set additional_flags
830 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
831 (target_compile): Do not call libgomp_init. Append lang_library_path
832 and lang_link_flags to options.
833 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
834 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
836 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
837 always_ld_library_path. Set LD_LIBRARY_PATH here.
838 * testsuite/libgomp.fortran/fortran.exp: Ditto.
839 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
840 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
842 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
843 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
844 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
845 * testsuite/libgomp.c/pr29947-1.c: Ditto.
846 * testsuite/libgomp.c/atomic-10.c: Ditto.
848 2007-03-21 Jakub Jelinek <jakub@redhat.com>
850 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
851 dg-final cleanup-modules line.
852 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
853 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
854 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
855 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
856 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
857 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
858 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
860 2007-03-18 Andreas Schwab <schwab@suse.de>
862 * acinclude.m4: Adjust regular expression for ld version
864 * configure: Regenerate.
866 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
868 * Makefile.am: Add install-pdf target as copied from
869 automake v1.10 rules.
870 * Makefile.in: Regenerate
872 2007-02-07 Jakub Jelinek <jakub@redhat.com>
875 * configure: Regenerate.
878 * testsuite/libgomp.c++/pr30703.C: New test.
880 2007-02-02 Jakub Jelinek <jakub@redhat.com>
883 2006-07-05 Eric Christopher <echristo@apple.com>
884 * configure.ac: Depend addition of -pthread on host OS.
885 * configure: Regenerate.
887 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
889 * libgomp.texi: Fix spacing after abbreviations.
891 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
894 * configure.ac: Add check for makeinfo
895 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
896 if an appropiate version of makeinfo is found.
897 * aclocal.m4: Regenerated.
898 * configure: Regenerated.
899 * Makefile.in: Regenerated.
900 * testsuite/Makefile.in: Regenerated.
902 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
905 * libgomp.texi: More about implementation-dependent settings.
907 2007-01-26 Tobias Burnus <burnus@net-b.de>
909 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
911 2007-01-24 Jakub Jelinek <jakub@redhat.com>
914 * testsuite/libgomp.c/pr30494.c: New test.
916 2007-01-15 Tom Tromey <tromey@redhat.com>
918 * configure: Rebuilt.
919 * configure.ac: Fixed comment.
921 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
923 * libgomp.texi: Document implementation specific default values of
924 environment variables.
926 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
929 * libgomp.texi: New file.
930 * configure.ac: Add --enable-generated-files-in-srcdir option.
931 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
933 * Makefile.in: Regenerated.
934 * config.h.in: Regenerated.
935 * testsuite/Makefile.in: Regenerated.
938 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
941 * env.c (omp_set_num_threads): Set illegal thread count to 1.
943 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
945 * configure: Regenerate.
947 2006-12-04 Jakub Jelinek <jakub@redhat.com>
950 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
951 start if there shouldn't be any loop iterations.
952 (gomp_loop_ordered_static_start): Remove start == end test.
953 * testsuite/libgomp.c/pr29947-1.c: New test.
954 * testsuite/libgomp.c/pr29947-2.c: New test.
956 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
958 * configure.tgt: Force initial-exec TLS model on Linux only.
960 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
962 * configure: Regenerated.
964 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
966 * env.c (parse_schedule): Reject out of range values.
967 (parse_unsigned_long): Reject out of range, negative or zero values.
969 2006-10-29 Jakub Jelinek <jakub@redhat.com>
972 * testsuite/libgomp.fortran/pr29629.f90: New test.
974 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
977 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
978 * config/posix95: New directory.
979 * config/posix95/omp-lock.h: New file.
980 * config/posix95/lock.c: Likewise.
982 2006-10-14 Geoffrey Keating <geoffk@apple.com>
984 * aclocal.m4: Regenerate.
985 * configure: Regenerate.
987 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
989 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
992 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
994 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
996 * configure: Regenerate.
997 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
999 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1003 * testsuite/libgomp.c/nestedfn-4.c: New test.
1004 * testsuite/libgomp.c/nestedfn-5.c: New test.
1005 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1008 * testsuite/libgomp.fortran/condinc1.f: New test.
1009 * testsuite/libgomp.fortran/condinc2.f: New test.
1010 * testsuite/libgomp.fortran/condinc3.f90: New test.
1011 * testsuite/libgomp.fortran/condinc4.f90: New test.
1012 * testsuite/libgomp.fortran/condinc1.inc: New file.
1014 2006-09-18 Tom Tromey <tromey@redhat.com>
1016 * configure: Rebuilt.
1018 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1021 PR preprocessor/14634
1022 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1024 * configure: Regenerate.
1026 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1028 * testsuite/libgomp.fortran/reduction3.f90: Change
1029 -2147483648 to -huge(i)-1 to avoid overflow.
1030 * testsuite/libgomp.fortran/reduction4.f90: Change
1031 Z'ffffffff' to not(0) to avoid overflow.
1033 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1036 * Makefile.am (libsubincludedir): New.
1037 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1038 * Makefile.in: Regenerate.
1040 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1043 * env.c: Include ctype.h.
1044 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1045 leading and/or trailing whitespace and compare strings case
1048 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1051 * testsuite/libgomp.fortran/pr28390.f: New test.
1053 2006-07-05 Eric Christopher <echristo@apple.com>
1055 * configure.ac: Depend addition of -pthread on host OS.
1056 * configure: Regenerate.
1058 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1060 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1061 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1064 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1068 * configure.ac: If neither --enable-linux-futex nor
1069 --disable-linux-futex is passed, determine the default by checking
1070 for compiling and/or running against NPTL. With --enable-linux-futex,
1071 check if SYS_gettid and SYS_futex are defined.
1072 * configure: Rebuilt.
1074 2006-06-14 Richard Henderson <rth@redhat.com>
1077 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1078 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1080 2006-06-09 Richard Henderson <rth@redhat.com>
1082 * env.c (gomp_nthreads_var): Change to unsigned long.
1083 (gomp_run_sched_chunk): Likewise.
1084 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1085 (initialize_env): Initialize gomp_thread_attr.
1086 * libgomp.h (gomp_nthreads_var): Update decl.
1087 (gomp_run_sched_chunk): Likewise.
1088 (gomp_thread_attr): Declare.
1089 * team.c (gomp_thread_attr): Export.
1090 (initialize_team): Don't initialize it.
1092 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1095 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1096 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1098 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1100 * config/mingw32/time.c: New file.
1101 * configure.tgt: Use it.
1103 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1105 * Makefile.am: Add install-html target. Add install-html to .PHONY
1106 * Makefile.in: Regenerate.
1108 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1111 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1112 * testsuite/libgomp.c/critical-1.c: Likewise.
1113 * testsuite/libgomp.c/loop-1.c: Likewise.
1114 * testsuite/libgomp.c/loop-2.c: Likewise.
1115 * testsuite/libgomp.c/single-1.c: Likewise.
1116 * testsuite/libgomp.c/ordered-1.c: Likewise.
1117 * testsuite/libgomp.c/ordered-2.c: Likewise.
1119 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1122 * libgomp.fortran/pr27416-1.f90: New test.
1124 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1127 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1128 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1130 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1133 * testsuite/libgomp.c/pr26943-1.c: New test.
1134 * testsuite/libgomp.c/pr26943-2.c: New test.
1135 * testsuite/libgomp.c/pr26943-3.c: New test.
1136 * testsuite/libgomp.c/pr26943-4.c: New test.
1137 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1138 * testsuite/libgomp.c++/pr26943.C: New test.
1140 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1143 * testsuite/libgomp.c++/pr27337.C: New test.
1145 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1148 * testsuite/libgomp.c/pr26171.c: New test.
1150 2006-04-25 Richard Henderson <rth@redhat.com>
1153 * configure.ac: Use GCC_CHECK_TLS.
1154 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1155 * Makefile.in, aclocal.m4, configure: Regenerate.
1157 2006-04-10 Matthias Klose <doko@debian.org>
1159 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1160 directory names containing underscores.
1162 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1165 * testsuite/libgomp.c++/pr26691.C: New test.
1167 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1169 * testsuite/libgomp.fortran/retval2.f90: New test.
1171 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1173 * testsuite/libgomp.c++: New directory.
1175 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1177 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1178 * config/posix/sem.c: Implement the above.
1180 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1182 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1183 define HAVE_BROKEN_POSIX_SEMAPHORES.
1184 * configure: Rebuilt.
1185 * config.h.in: Rebuilt.
1187 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1190 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1191 for the other pthread check.
1192 * configure: Regenerate.
1193 * config.h.in: Regenerate.
1195 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1199 * Makefile.am (fincludedir): New variable.
1200 (nodist_include_HEADERS): Remove Fortran files.
1201 (nodist_finclude_HEADERS): New variable.
1202 * Makefile.in: Regenerated.
1204 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1206 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1207 Remove tests for returning assumed character length arrays.
1209 2006-02-12 Roger Sayle <roger@eyesopen.com>
1210 John David Anglin <dave@hiauly1.hia.nrc.ca>
1213 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1215 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1217 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1219 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1221 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1222 part of LD_LIBRARY_PATH manually.
1224 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1227 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1230 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1233 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1234 * configure.ac (PERL): Don't set.
1235 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1236 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1237 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1238 * omp.h.in: Wrap the new configure substitutions with @ characters.
1239 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1240 * aclocal.m4, configure, Makefile.in: Regenerate.
1241 * mkomp_h.pl: Delete.
1243 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1246 * configure.ac: Use GCC_HEADER_STDINT.
1247 * libgomp.h: Include gstdint.h.
1248 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1249 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1251 2006-01-24 Richard Henderson <rth@redhat.com>
1254 * configure.ac: Add AM_MAINTAINER_MODE.
1255 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1257 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1259 * Makefile.in: Regenerate.
1260 * testsuite/Makefile.in: Regenerate.
1261 * aclocal.m4: Regenerate.
1263 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1265 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1267 * configure.ac: Add check for loadavg.h.
1268 (link_gomp): Adjust comment.
1269 * configure: Regenerate.
1270 * config.h.in: Regenerate.
1272 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1275 * configure.ac: Remove check for alloca.h.
1276 * configure: Regenerate.
1277 * config.h.in: Regenerate.
1278 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1279 * team.c: Remove use of alloca.h.
1280 Call gomp_alloca instead of alloca.
1282 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1285 * team.c: Add include of alloca.h.
1286 * configure.ac: Add check for alloca.h.
1287 * configure: Regenerate.
1288 * config.h.in: Regenerate.
1290 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1293 * testsuite/libgomp.fortran/pr25219.f90: New test.
1295 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1297 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1298 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1299 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1300 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1301 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1302 testsuite/libgomp.fortran/threadprivate1.f90,
1303 testsuite/libgomp.fortran/threadprivate2.f90,
1304 testsuite/libgomp.fortran/threadprivate3.f90,
1305 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1306 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1307 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1308 effective-target to TLS runtime.
1310 * testsuite/libgomp.fortran/pr25162.f: Require
1311 effective-target TLS runtime.
1313 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1315 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1316 * testsuite/libgomp.c/nestedfn-3.c: New test.
1318 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1321 * testsuite/libgomp.fortran/pr25162.f: New test.
1323 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1325 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1326 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1328 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1330 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1331 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1332 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1333 single.c, team.c, work.c, config/linux/alpha/futex.h,
1334 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1335 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1336 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1337 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1338 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1339 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1340 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1343 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1345 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1346 to nodist_noinst_HEADERS.
1347 * Makefile.in: Rebuilt.
1349 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1350 add integer count field.
1351 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1352 omp_nest_lock_t type change.
1353 (omp_init_nest_lock): Likewise. Initialize count to 0.
1354 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1356 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1358 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1359 Increment count if successful and return the new nesting level.
1360 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1361 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1362 * testsuite/libgomp.c/lib-1.c: New test.
1363 * testsuite/libgomp.fortran/lib1.f90: New test.
1364 * testsuite/libgomp.fortran/lib2.f: New test.
1365 * testsuite/libgomp.fortran/lib3.f: New test.
1367 2005-11-17 Richard Henderson <rth@redhat.com>
1370 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1371 * configure.ac (link_gomp): New. Substitute it.
1372 (AC_CONFIG_FILES): Add libgomp.spec.
1373 * libgomp.spec.in: New file.
1374 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1375 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1377 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1379 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1380 reduction(-:var) behaving the same as reduction(+:var).
1381 * testsuite/libgomp.c/reduction-4.c: New test.
1383 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1385 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1386 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1387 testsuite/libgomp.c/copyin-3.c,
1388 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1389 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1390 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1391 testsuite/libgomp.c++/pr24455.C,
1392 testsuite/libgomp.fortran/threadprivate1.f90,
1393 testsuite/libgomp.fortran/threadprivate2.f90,
1394 testsuite/libgomp.fortran/threadprivate3.f90,
1395 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1396 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1397 testsuite/libgomp.fortran/omp_parse3.f90: Require
1398 effective-target TLS.
1400 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1404 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1407 * team.c (initialize_team): Pass NULL rather than free as
1408 pthread_key_create destructor. Initialize thread specific data
1409 pointer in initial thread to a static local variable rather than
1412 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1414 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1415 its location to ld_library_path.
1417 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1419 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1421 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1423 * testsuite/libgomp.c: Rename from libgomp.dg.
1425 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1427 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1428 threadprivate variable 'i'.
1430 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1432 * config/linux/s390/futex.h: New file.
1433 * configure.tgt: Use it.
1435 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1436 before the parallel.
1438 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1441 * testsuite/libgomp.c++/master-1.C: New test.
1443 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1445 * testsuite/libgomp.dg/copyin-3.c: New test.
1447 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1449 * testsuite/libgomp.fortran/retval1.f90: New test.
1450 * testsuite/libgomp.fortran/vla7.f90: New test.
1452 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1454 * testsuite/libgomp.fortran/vla2.f90: New test.
1455 * testsuite/libgomp.fortran/vla3.f90: New test.
1456 * testsuite/libgomp.fortran/vla4.f90: New test.
1457 * testsuite/libgomp.fortran/vla5.f90: New test.
1458 * testsuite/libgomp.fortran/vla6.f90: New test.
1460 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1462 * config/linux/sparc/futex.h: New file.
1463 * configure.tgt: Use it.
1464 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1466 * critical.c: Include stdlib.h.
1467 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1468 ignoring return value.
1469 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1470 LIBGOMP_CHECK_SYNC_BUILTINS check.
1471 * configure: Rebuilt.
1473 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1475 * testsuite/libgomp.fortran/vla1.f90: New test.
1477 2005-10-31 Richard Henderson <rth@redhat.com>
1479 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1480 setting 's' in different threads.
1482 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1484 * libgomp.h (attribute_hidden, ialias): Define.
1485 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1486 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1487 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1488 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1489 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1490 omp_test_lock, omp_test_nest_lock): Likewise.
1491 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1492 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1493 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1494 omp_test_lock, omp_test_nest_lock): Likewise.
1495 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1496 omp_get_dynamic, omp_get_nested): Likewise.
1497 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1498 omp_get_thread_num, omp_in_parallel): Likewise.
1499 * fortran.c (ialias_redirect): Define.
1500 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1501 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1502 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1503 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1504 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1505 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1506 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1507 omp_get_wtime): Add ialias_redirect.
1509 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1511 * fortran.c: Include stdlib.h.
1513 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1515 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1516 * Makefile.in: Regenerated.
1518 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1520 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1521 * libgomp_f.h.in (omp_check_defines): New function.
1522 * env.c: Include libgomp_f.h.
1523 (initialize_env): Call omp_check_defines.
1525 * testsuite/libgomp.dg/copyin-2.c: New test.
1526 * testsuite/libgomp.c++/copyin-2.C: New test.
1527 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1529 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1530 * testsuite/libgomp.fortran/sharing2.f90: New test.
1532 * testsuite/libgomp.dg/copyin-1.c: New test.
1533 * testsuite/libgomp.c++/copyin-1.C: New test.
1535 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1537 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1539 * testsuite/libgomp.fortran/workshare1.f90: New test.
1541 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1543 * libgomp.fortran/sharing1.f90: New test.
1545 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1548 * testsuite/libgomp.c++/loop-7.C: New test.
1550 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1552 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1553 * testsuite/libgomp.fortran/reduction6.f90: New test.
1554 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1556 2005-10-23 Richard Henderson <rth@redhat.com>
1558 * testsuite/libgomp.c++/ctor-1.C: New.
1559 * testsuite/libgomp.c++/ctor-2.C: New.
1560 * testsuite/libgomp.c++/ctor-3.C: New.
1561 * testsuite/libgomp.c++/ctor-4.C: New.
1562 * testsuite/libgomp.c++/ctor-5.C: New.
1563 * testsuite/libgomp.c++/ctor-6.C: New.
1564 * testsuite/libgomp.c++/ctor-7.C: New.
1565 * testsuite/libgomp.c++/ctor-8.C: New.
1566 * testsuite/libgomp.c++/ctor-9.C: New.
1568 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1571 * testsuite/libgomp.c++/pr24455-1.C: New test.
1572 * testsuite/libgomp.c++/pr24455.C: New test.
1573 * testsuite/libgomp.dg/pr24455-1.c: New test.
1574 * testsuite/libgomp.dg/pr24455.c: New test.
1576 2005-10-20 Richard Henderson <rth@redhat.com>
1578 * testsuite/libgomp.c++/loop-6.C: New.
1579 * testsuite/libgomp.dg/loop-3.c: New.
1581 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1583 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1585 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1588 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1590 * testsuite/libgomp.fortran/jacobi.f: New test.
1592 2005-10-19 Richard Henderson <rth@redhat.com>
1594 * configure.tgt (i?86-linux): Default to with_arch instead of
1595 CFLAGS. Add -mtune to match target_cpu.
1596 (x86_64-linux): Tune to i686.
1598 * fortran.c (omp_test_nest_lock_): Fix typo.
1600 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1602 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1603 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1604 * testsuite/libgomp.dg/ordered-3.c: New test.
1606 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1607 Remove volatile keyword.
1609 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1610 in COMMON block to avoid warnings on 64-bit targets.
1612 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1614 * testsuite/libgomp.dg/shared-3.c: New test.
1616 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1618 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1619 * testsuite/libgomp.fortran/reduction5.f90: New test.
1621 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1623 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1625 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1626 flush loop now that __sync_synchronize has proper memory barrier.
1627 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1628 Add -ffixed-form to dg-options.
1630 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1632 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1633 from subdirectories.
1634 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1635 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1636 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1637 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1638 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1639 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1640 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1641 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1642 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1643 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1644 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1645 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1646 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1647 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1648 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1649 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1650 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1651 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1652 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1653 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1654 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1655 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1656 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1657 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1658 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1660 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1662 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1663 lang_library_path exists. Use find instead of glob to gather tests.
1664 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1666 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1668 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1669 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1670 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1671 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1672 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1673 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1674 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1675 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1676 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1677 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1678 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1679 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1680 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1682 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1684 * testsuite/libgomp.dg/vla-1.c: New test.
1686 * testsuite/libgomp.fortran/reference2.f90: New test.
1688 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1689 declaration of omp_get_thread_num.
1690 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1693 * testsuite/libgomp.fortran/reduction1.f90: New test.
1694 * testsuite/libgomp.fortran/reduction2.f90: New test.
1695 * testsuite/libgomp.fortran/reduction3.f90: New test.
1696 * testsuite/libgomp.fortran/reduction4.f90: New test.
1698 2005-10-13 Richard Henderson <rth@redhat.com>
1700 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1701 * Makefile.in: Regenerate.
1702 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1703 * libgomp.h: Include bar.h.
1704 (struct gomp_barrier): Remove.
1705 (struct gomp_team): Add barrier. Replace master_barrier with
1706 master_release. Replace threads with ordered_release.
1707 (struct gomp_thread): Replace barrier with release.
1708 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1709 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1710 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1711 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1712 (GOMP_single_copy_end): Likewise.
1713 * team.c (gomp_threads_dock): New.
1714 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1715 (gomp_thread_start): Use gomp_barrier_wait.
1716 (new_team, free_team): Update for gomp_team changes.
1717 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1718 (gomp_team_end): Use gomp_barrier_wait.
1719 (initialize_team): Update for gomp_thread changes.
1720 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1721 (gomp_work_share_end_nowait): Use atomic ops when available.
1722 * config/linux/bar.c, config/linux/bar.h: New files.
1723 * config/posix/bar.c, config/posix/bar.h: New files.
1725 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1727 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1728 * testsuite/libgomp.dg/single-2.c: New test.
1730 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1731 lang_link_flags): Unset, so that they aren't inherited from previously
1734 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1736 2005-10-12 Richard Henderson <rth@redhat.com>
1738 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1739 (libgomp_init): Use lang_test_file, lang_library_path, and
1740 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1742 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1743 (lang_test_file, lang_link_flags): New.
1744 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1746 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1747 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1748 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1749 testsuite/libgomp.c++/parallel-1.C,
1750 testsuite/libgomp.c++/reduction-1.C,
1751 testsuite/libgomp.c++/reduction-2.C,
1752 testsuite/libgomp.c++/reduction-3.C,
1753 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1754 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1755 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1756 New files, largely cribbed from the C testsuite.
1758 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1760 * testsuite/libgomp.fortran/character1.f90: New test.
1761 * testsuite/libgomp.fortran/character2.f90: New test.
1763 * testsuite/libgomp.dg/nested-1.c: New test.
1764 * testsuite/libgomp.dg/nested-2.c: New test.
1765 * testsuite/libgomp.fortran/do1.f90: New test.
1766 * testsuite/libgomp.fortran/do2.f90: New test.
1768 * testsuite/libgomp.fortran/reference1.f90: New test.
1770 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1772 * testsuite/libgomp.dg/reduction-1.c: New test.
1773 * testsuite/libgomp.dg/reduction-2.c: New test.
1774 * testsuite/libgomp.dg/reduction-3.c: New test.
1776 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1778 * testsuite/libgomp.dg/atomic-1.c: New test.
1779 * testsuite/libgomp.dg/atomic-2.c: New test.
1781 2005-10-09 Richard Henderson <rth@redhat.com>
1783 * critical.c (atomic_lock): New.
1784 (initialize_critical): Initialize it.
1785 (GOMP_atomic_start, GOMP_atomic_end): New.
1786 * libgomp.map: Export them.
1787 * libgomp_g.h: Declare them.
1789 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1791 2005-10-02 Richard Henderson <rth@redhat.com>
1793 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1794 to XCFLAGS instead of CFLAGS.
1796 2005-09-30 Richard Henderson <rth@redhat.com>
1798 * configure.ac: Determine whether -pthread or -lpthread is needed.
1799 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1800 * Makefine.in, configure: Rebuild.
1802 2005-09-28 Richard Henderson <rth@redhat.com>
1804 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1805 * testsuite/libgomp.dg/omp-single-3.c: New test.
1807 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1809 * testsuite/libgomp.dg/omp-single-2.c: New test.
1810 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1812 2005-09-27 Richard Henderson <rth@redhat.com>
1814 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1815 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1817 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1819 * testsuite/libgomp.dg/omp-loop03.c: New test.
1821 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1823 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1825 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1827 * testsuite/libgomp.dg/omp-single-1.c: New test.
1828 * testsuite/libgomp.dg/shared-1.c: Return 0.
1829 Add prototype for abort.
1830 * testsuite/libgomp.dg/shared-2.c: Likewise.
1832 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1834 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1837 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1839 * testsuite/libgomp.dg/shared-1.c: New test.
1840 * testsuite/libgomp.dg/shared-2.c: New test.
1842 2005-09-24 Richard Henderson <rth@redhat.com>
1844 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1846 2005-09-24 Richard Henderson <rth@redhat.com>
1848 * iter.c (gomp_iter_static_next): Round up when computing number
1849 of iterations. Don't bother distributing a remainder equally.
1851 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1852 Don't call srand. Zero b before testing.
1855 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1857 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1858 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1860 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1862 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1863 without !$omp end do, followed immediately by subroutine end.
1865 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1867 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1869 2005-09-22 Richard Henderson <rth@redhat.com>
1871 * critical.c (GOMP_critical_name_start): Change argument to void**.
1872 Reuse the pointer space if the mutex fits.
1873 (GOMP_critical_name_end): Likewise.
1874 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1875 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1876 (GOMP_critical_name_end): Likewise.
1877 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1878 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1880 2005-09-20 Richard Henderson <rth@redhat.com>
1882 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1883 (create_lock_lock): New.
1884 (initialize_critical): Initialize it.
1885 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1886 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1888 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1890 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1892 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1894 * testsuite/libgomp.dg/omp-loop01.c: New test.
1895 * testsuite/libgomp.dg/omp-loop02.c: New test.
1897 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1899 * configure.ac (AC_PROG_FC): Add.
1900 (USE_FORTRAN): New automake conditional.
1901 * configure: Rebuilt.
1902 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1903 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1904 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1905 Add rules to build them.
1906 * Makefile.in: Rebuilt.
1907 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1909 * libgomp.map: Add Fortran wrappers.
1910 * libgomp_f.h.in: New file.
1911 * omp_lib.h.in: New file.
1912 * omp_lib.f90.in: New file.
1913 * fortran.c: New file.
1914 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1915 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1916 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1917 libgfortran has been built.
1918 * testsuite/libgomp.fortran/fortran.exp: New file.
1919 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1920 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1921 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1922 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1923 * testsuite/libgomp.fortran/omp_hello.f: New test.
1924 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1925 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1926 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1927 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1928 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1929 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1930 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1931 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1933 2005-08-30 Richard Henderson <rth@redhat.com>
1935 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1936 function for when aliases are not usable.
1937 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1938 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1939 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1940 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1941 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1942 GOMP_loop_ordered_guided_next): Likewise.
1943 * ordered.c (GOMP_ordered_start): Likewise.
1945 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1947 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1948 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1949 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1950 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1951 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1952 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1953 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1954 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1955 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1957 2005-07-07 Eric Christopher <echristo@redhat.com>
1958 Diego Novillo <dnovillo@redhat.com>
1960 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1961 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1963 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1964 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1965 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1966 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1967 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1968 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1969 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1971 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1973 * TOPLEVEL.patch: Remove.
1975 2005-05-16 Richard Henderson <rth@redhat.com>
1977 * configure.ac: Test for clock_gettime.
1978 * config.h.in, configure: Rebuild.
1979 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1980 (omp_get_wtime): Use clock_gettime if available.
1981 (omp_get_wtick): Use clock_getres if available.
1983 2005-05-11 Richard Henderson <rth@redhat.com>
1985 * config/linux/ia64/futex.h: New file.
1986 * configure.tgt: Use it.
1988 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1990 2005-05-07 Richard Henderson <rth@redhat.com>
1992 * config/linux/powerpc/futex.h: New file.
1993 * configure.tgt: Use it.
1995 * config/linux/i486/futex.h: Merge ...
1996 * config/linux/x86_64/futex.h: ... into ...
1997 * config/linux/x86/futex.h: ... here.
1998 * configure.tgt: Update to match.
2000 2005-05-06 Richard Henderson <rth@redhat.com>
2002 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2003 * config/linux/i486/futex.h: Likewise.
2004 * config/linux/x86_64/futex.h: Likewise.
2006 * config/linux/lock.c: New file.
2007 * config/linux/omp-lock.h: New file.
2009 * critical.c, env.h: Don't include omp.h
2010 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2011 * config/posix/time.c: Likewise.
2012 * config/posix/omp-lock.h: New file.
2013 * libgomp.h: Include omp-lock.h and omp.h.
2014 * Makefile.am (nodist_include_HEADERS): New.
2016 * configure.ac (PERL): New.
2017 * mkomp_h.pl: New file.
2018 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2020 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2022 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2023 build directory. Re-add -march=i486 hack.
2025 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2026 (libgomp_link_flags): Remove.
2027 (libgomp_initialized): Remove.
2028 (libgomp_init): Don't protect from reinitialization. Copy code
2029 from libstdc++ for getting the multilib set correctly.
2031 2005-05-05 Richard Henderson <rth@redhat.com>
2033 * config/linux/alpha/futex.h: New file.
2034 * configure.tgt (alpha*-*-linux*): Use it.
2036 * config/posix/mutex.c: New file.
2037 * config/posix/sem.c: Use libgomp.h.
2039 * configure.tgt (x86_64-linux): Also test CC for -m32.
2040 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2042 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2045 * Makefile.am (SUBDIRS): New.
2046 (libgomp_la_LDFLAGS): Add -lpthread.
2047 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2048 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2050 * libgomp_g.h: New file.
2051 * libgomp.h: Split out all public declarations to libgomp_g.h.
2052 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2053 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2054 * config/linux/sem.h: Likewise.
2055 * config/posix/sem.h: Likewise.
2057 * Makefile.am (AM_LDFLAGS): New.
2058 (libgomp_version_script): Split out from ...
2059 (libgomp_la_LDFLAGS): ... here.
2060 (libgomp_version_info): New.
2061 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2062 (LIBGOMP_ENABLE): New.
2063 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2064 (LIBGOMP_ENABLE_SYMVERS): New.
2065 * configure.ac (AC_INIT): Version 1.0.
2066 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2067 (enable-linux-futex): Likewise. Rename from enable-futex.
2068 (libtool_VERSION): New.
2069 (LIBGOMP_ENABLE_SYMVERS): Use it.
2070 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2071 * Makefile.in, aclocal.m4, configure: Rebuild.
2073 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2074 (gomp_mutex_unlock_slow): Fix typo.
2075 * config/linux/sem.c: Similarly.
2076 (gomp_sem_post_slow): Fix typo.
2077 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2078 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2079 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2081 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2082 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2083 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2084 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2085 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2086 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2087 LDFLAGS. Pull enable_futex check to top-level.
2088 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2089 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2091 First attempt at real configury.
2092 * Makefile, config.h: Remove file.
2093 * Makefile.am, Makefile.in: New file.
2094 * acinclude.m4 aclocal.m4: New file.
2095 * configure.ac, configure.tgt, configure: New file.
2097 * config/posix/lock.c: Rename from sys-lock.c.
2098 * config/posix/mutex.h: Rename from sys-mutex.h.
2099 * config/posix/sem.c: Rename from sys-sem.c.
2100 * config/posix/sem.h: Rename from sys-sem.h.
2101 * config/posix/proc.c: Rename from sys-proc.c.
2102 * config/posix/time.c: Rename from sys-proc.c.
2104 * config/linux/mutex.c: New file.
2105 * config/linux/mutex.h: New file.
2106 * config/linux/sem.c: New file.
2107 * config/linux/sem.h: New file.
2108 * config/linux/i486/futex.h: New file.
2109 * config/linux/x86_64/futex.h: New file.
2111 2005-05-04 Richard Henderson <rth@redhat.com>
2113 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2114 * libgomp.h: Declare them.
2115 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2116 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2118 2005-05-04 Richard Henderson <rth@redhat.com>
2120 * libgomp-1 code drop
2122 2005-05-04 Richard Henderson <rth@redhat.com>
2124 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2125 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2126 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2127 (gomp_iter_static_next): Update.
2128 (gomp_ordered_static_next): Update.
2129 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2130 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2131 totally empty range.
2132 (gomp_loop_ordered_static_next): Refine test for calling
2133 gomp_ordered_static_next.
2134 * testsuite/ordered-1.c: Add case for more threads than iterations.
2136 * iter.c (gomp_iter_runtime_next_locked): Remove.
2137 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2138 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2139 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2140 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2141 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2142 gomp_loop_ordered_guided_next): Downcase name, make static, add
2143 an external alias with the old name.
2144 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2145 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2146 switch and call one of the above static functions.
2147 * libgomp.h: Update.
2149 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2150 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2151 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2152 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2153 GOMP_loop_ordered_guided_start): Update to match.
2154 * sections.c (GOMP_sections_start): Likewise.
2155 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2157 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2158 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2159 Use bounds check instead of modulus.
2160 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2161 (gomp_ordered_last): Don't sync with ordered_owner here.
2162 (gomp_ordered_next): Likewise.
2163 (gomp_ordered_static_loop_next): Likewise.
2164 * loop.c, libgomp.h: Update to match.
2166 * libgomp.h (GOMP_barrier): Declare.
2168 * testsuite/barrier-1.c: New file.
2169 * testsuite/critical-1.c: New file.
2170 * testsuite/ordered-2.c: New file.
2171 * testsuite/ordered-1.c: New file.
2172 * testsuite/sections-1.c: New file.
2173 * testsuite/single-1.c: New file.
2174 * testsuite/Makefile (TESTS): Add them.
2176 2005-05-04 Richard Henderson <rth@redhat.com>
2178 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2179 * loop.c (GOMP_loop_static_start): If not the startup thread,
2180 acquire the mutex to wait for initialization complete.
2181 (GOMP_loop_ordered_static_start): Likewise.
2182 (GOMP_loop_ordered_runtime_start): Likewise.
2183 (GOMP_loop_ordered_static_first): Remove.
2184 (GOMP_loop_ordered_dynamic_first): Remove.
2185 (GOMP_loop_ordered_guided_first): Remove.
2186 (GOMP_loop_ordered_runtime_first): Remove.
2187 * ordered.c (gomp_ordered_loop_first): Post to own release when
2188 we're the first thread.
2189 (gomp_ordered_loop_last): Wait on release if not owner.
2190 (gomp_ordered_loop_next): Likewise.
2191 (gomp_ordered_static_loop_init): New.
2192 (gomp_ordered_static_loop_next): Use ordered_owner.
2193 (GOMP_ordered_start): Likewise.
2194 * work.c (gomp_new_work_share): Initialize ordered_owner.
2196 2005-05-03 Richard Henderson <rth@redhat.com>
2198 * Makefile (OPT): New.
2201 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2202 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2203 * libgomp.h, libgomp.map, NOTES: Update to match.
2205 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2206 Add initialized and thr members.
2207 (gomp_thread_start): Pause when initially spawned to wait for
2208 the whole team to be created.
2209 (gomp_team_start): Release team members at the end.
2211 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2212 (f_foo_1): Use GOMP_loop_end.
2213 (f_foo_2): Use GOMP_loop_end_nowait.
2215 * testsuite/loop-2.c: New file.
2216 * testsuite/Makefile (TESTS): Add it.
2218 2005-05-03 Richard Henderson <rth@redhat.com>
2220 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2221 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2222 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2225 * testsuite/Makefile: New file.
2226 * testsuite/loop-1.c: New file.
2228 2005-05-03 Richard Henderson <rth@redhat.com>
2230 Initial implementation and checkin.