1 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
4 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
5 (GOMP_loop_ull_dynamic_start): Likewise.
6 (GOMP_loop_ull_guided_start): Likewise.
7 (GOMP_loop_ull_ordered_static_start): Likewise.
8 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9 (GOMP_loop_ull_ordered_guided_start): Likewise.
11 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12 Richard Henderson <rth@redhat.com>
13 Ulrich Drepper <drepper@redhat.com>
14 Jakob Blomer <jakob.blomer@ira.uka.de>
16 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17 Substitute also OMP_*LOCK_25*.
18 * configure: Regenerated.
19 * config.h.in: Regenerated.
20 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
22 * Makefile.in: Regenerated.
23 * testsuite/Makefile.in: Regenerated.
25 * loop_ull.c: New file.
26 * iter_ull.c: New file.
27 * libgomp.h: Include ptrlock.h.
28 (enum gomp_task_kind): New type.
29 (struct gomp_team): Add task_lock, task_queue, task_count,
30 task_running_count, single_count fields. Add
31 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
32 Remove work_share_lock, generation_mask,
33 oldest_live_gen, num_live_gen and init_work_shares fields, add
34 work work_share_list_alloc, work_share_list_free and work_share_chunk
35 fields. Change work_shares from pointer to pointers into an array.
36 Change ordered_release field into gomp_sem_t ** from flexible array
37 member. Add implicit_task and initial_work_shares fields.
38 Move close to the end of the struct.
39 (struct gomp_team_state): Add single_count, last_work_share,
40 active_level and level fields, remove work_share_generation.
41 (gomp_barrier_handle_tasks): New prototype.
42 (gomp_finish_task): New inline function.
43 (struct gomp_work_share): Move chunk_size, end, incr into
44 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
45 next_ll fields. Reshuffle fields. Add next_alloc,
46 next_ws, next_free and inline_ordered_team_ids fields, change
47 ordered_team_ids into pointer from flexible array member.
48 Add mode field. Put lock and next into a different cache line
49 from most of the write-once fields.
50 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
51 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
52 gomp_iter_ull_guided_next): New prototypes.
53 (gomp_new_icv): New prototype.
54 (struct gomp_thread): Add thread_pool and task fields.
55 (struct gomp_thread_pool): New type.
56 (gomp_new_team): New prototype.
57 (gomp_team_start): Change type of last argument.
58 (gomp_new_work_share): Removed.
59 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
60 (gomp_work_share_init_done): New static inline.
61 (gomp_throttled_spin_count_var, gomp_available_cpus,
62 gomp_managed_threads): New extern decls.
63 (gomp_init_task): New prototype.
64 (gomp_spin_count_var): New extern var decl.
65 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
66 or no alias support, or if not PIC.
67 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
68 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
69 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
70 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
71 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
72 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
73 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
74 gomp_test_nest_lock_25): New prototypes.
75 (omp_lock_symver, strong_alias): Define.
76 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
79 (struct gomp_task_icv, gomp_global_icv): New.
80 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
81 (struct gomp_task): New.
82 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
83 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
85 (gomp_schedule_type): Reorder enum to match
87 * team.c (struct gomp_thread_start_data): Add thread_pool and task
89 (gomp_thread_start): Add gomp_team_barrier_wait call.
90 For non-nested case remove clearing of docked thread thr fields.
91 Use pool fields instead of global gomp_* variables. Use
92 gomp_barrier_wait_last when needed. Initialize ts.active_level.
93 Create tasks for each member thread.
94 (free_team): Only destroy team barrier, task_lock here and free it.
95 (gomp_free_thread): Free last_team if non-NULL.
96 (gomp_team_end): Call gomp_team_barrier_wait instead of
97 gomp_barrier_wait. For nested case call one extra
98 gomp_barrier_wait. Move here some destruction from free_team.
99 Call free_team on pool->last_team if any, rather than freeing
100 current team. Destroy work_share_list_free_lock ifndef
102 (gomp_new_icv): New function.
103 (gomp_threads, gomp_threads_size, gomp_threads_used,
104 gomp_threads_dock): Removed.
105 (gomp_thread_destructor): New variable.
106 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
108 (gomp_team_start): Create new pool if current thread doesn't have
109 one. Use pool fields instead of global gomp_* variables.
110 Initialize thread_pool field for new threads. Clear single_count.
111 Change last argument from ws to team, don't create
112 new team, set ts.work_share to &team->work_shares[0] and clear
113 ts.last_work_share. Don't clear ts.work_share_generation.
114 If number of threads changed, adjust atomically gomp_managed_threads.
115 Use gomp_init_task instead of gomp_new_task,
116 set thr->task to the corresponding implicit_task array entry.
117 Create tasks for each member thread. Initialize ts.level.
118 (initialize_team): Call pthread_key_create on
119 gomp_thread_destructor.
120 (team_destructor): New function.
122 (gomp_new_team): New function.
123 (free_team): Free gomp_work_share blocks chained through next_alloc,
124 instead of freeing work_shares and destroying work_share_lock.
125 (gomp_team_end): Call gomp_fini_work_share. If number of threads
126 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
127 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
128 of gomp_barrier_wait.
129 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
130 instead of gomp_barrier_wait. Call gomp_work_share_init_done
131 if gomp_work_share_start returned true. Don't unlock ws->lock.
132 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
133 of gomp_barrier_wait.
134 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
135 gomp_work_share_init_done if gomp_work_share_start returned true.
136 Don't unlock ws->lock.
137 * work.c: Include stddef.h.
138 (free_work_share): Use work_share_list_free_lock instead
139 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
140 Call gomp_fini_work_share and then either free ws if orphaned, or
141 put it into work_share_list_free list of the current team.
142 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
144 (gomp_work_share_start, gomp_work_share_end,
145 gomp_work_share_end_nowait): Rewritten.
146 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
147 (openmp_version): Set to 200805.
148 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
149 omp_sched_guided, omp_sched_auto): New parameters.
150 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
151 omp_set_max_active_levels, omp_get_max_active_levels,
152 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
153 omp_get_active_level): New interfaces.
154 * omp_lib.h.in (openmp_version): Set to 200805.
155 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
156 omp_sched_guided, omp_sched_auto): New parameters.
157 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
158 omp_set_max_active_levels, omp_get_max_active_levels,
159 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
160 omp_get_active_level): New externals.
161 * loop.c: Include limits.h.
162 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
164 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
165 Likewise. Use gomp_icv.
166 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
168 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
169 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
170 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
171 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
172 don't unlock ws->lock, otherwise lock it.
173 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
174 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
175 (gomp_parallel_loop_start): Call gomp_new_team instead of
176 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
177 Adjust gomp_team_start caller. Pass 0 as second argument to
178 gomp_resolve_num_threads.
179 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
180 If adding ws->chunk_size nthreads + 1 times after end won't
181 overflow, set ws->mode to 1.
182 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
183 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
184 GOMP_loop_ull_ordered_static_start,
185 GOMP_loop_ull_ordered_dynamic_start,
186 GOMP_loop_ull_ordered_guided_start,
187 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
188 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
189 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
190 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
191 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
193 * libgomp.map: Export lock routines also @@OMP_2.0.
194 (GOMP_loop_ordered_dynamic_first,
195 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
196 GOMP_loop_ordered_static_first): Remove.
197 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
198 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
199 GOMP_loop_ull_ordered_dynamic_next,
200 GOMP_loop_ull_ordered_dynamic_start,
201 GOMP_loop_ull_ordered_guided_next,
202 GOMP_loop_ull_ordered_guided_start,
203 GOMP_loop_ull_ordered_runtime_next,
204 GOMP_loop_ull_ordered_runtime_start,
205 GOMP_loop_ull_ordered_static_next,
206 GOMP_loop_ull_ordered_static_start,
207 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
208 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
209 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
210 (omp_set_schedule, omp_get_schedule,
211 omp_get_thread_limit, omp_set_max_active_levels,
212 omp_get_max_active_levels, omp_get_level,
213 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
214 omp_set_schedule_, omp_set_schedule_8_,
215 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
216 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
217 omp_get_max_active_levels_, omp_get_level_,
218 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
219 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
220 New exports @@OMP_3.0.
221 * omp.h.in (omp_sched_t): New type.
222 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
223 omp_set_max_active_levels, omp_get_max_active_levels,
224 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
225 omp_get_active_level): New prototypes.
226 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
227 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
228 gomp_thread_limit_var, gomp_remaining_threads_count,
229 gomp_remaining_threads_lock): New variables.
230 (parse_spincount): New function.
231 (initialize_env): Call gomp_init_num_threads unconditionally.
232 Initialize gomp_available_cpus. Call parse_spincount,
233 initialize gomp_{,throttled_}spin_count_var
234 depending on presence and value of OMP_WAIT_POLICY and
235 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
236 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
237 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
238 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
239 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
240 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
241 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
242 (gomp_global_icv): New.
243 (parse_schedule): Use it. Parse "auto".
244 (omp_set_num_threads): Use gomp_icv.
245 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
247 (omp_get_max_threads): Move from parallel.c.
248 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
249 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
251 (parse_stacksize, parse_wait_policy): New functions.
252 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
253 both wrappers for compatibility and new locks.
254 (omp_set_schedule, omp_get_schedule,
255 omp_get_thread_limit, omp_set_max_active_levels,
256 omp_get_max_active_levels, omp_get_level,
257 omp_get_ancestor_thread_num, omp_get_team_size,
258 omp_get_active_level): New ialias_redirect.
259 (omp_set_schedule_, omp_set_schedule_8_,
260 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
261 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
262 omp_get_max_active_levels_, omp_get_level_,
263 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
264 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
266 * parallel.c: Include limits.h.
267 (gomp_resolve_num_threads): Add count argument. Rewritten.
268 (GOMP_parallel_start): Call gomp_new_team and pass that as last
269 argument to gomp_team_start. Pass 0 as second argument to
270 gomp_resolve_num_threads.
271 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
272 if gomp_thread_limit_var != ULONG_MAX.
273 (omp_in_parallel): Implement using ts.active_level.
274 (omp_get_max_threads): Move to env.c.
275 (omp_get_level, omp_get_ancestor_thread_num,
276 omp_get_team_size, omp_get_active_level): New functions,
278 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
279 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
280 gomp_iter_dynamic_next instead of the _locked variant and don't take
281 lock around it, otherwise acquire it before calling
282 gomp_iter_dynamic_next_locked.
283 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
284 gomp_iter_dynamic_next instead of the _locked variant and don't take
286 (GOMP_parallel_sections_start): Call gomp_new_team instead of
287 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
288 Adjust gomp_team_start caller. Pass count as second argument to
289 gomp_resolve_num_threads, don't adjust num_threads after the call.
291 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
292 ws->chunk_size by incr.
293 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
295 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
297 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
298 (omp_check_defines): Check even the compat defines.
299 * config/linux/ptrlock.c: New file.
300 * config/linux/ptrlock.h: New file.
301 * config/linux/wait.h: New file.
302 * config/posix/ptrlock.c: New file.
303 * config/posix/ptrlock.h: New file.
304 * config/linux/bar.h (gomp_team_barrier_wait,
305 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
306 (gomp_team_barrier_set_task_pending,
307 gomp_team_barrier_clear_task_pending,
308 gomp_team_barrier_set_waiting_for_tasks,
309 gomp_team_barrier_waiting_for_tasks,
310 gomp_team_barrier_done): New inlines.
311 (gomp_barrier_t): Rewritten.
312 (gomp_barrier_state_t): New typedef.
313 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
314 gomp_barrier_wait_start): Rewritten.
315 (gomp_barrier_wait_end): Change second argument to
316 gomp_barrier_state_t.
317 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
319 * config/linux/bar.c: Include wait.h instead of libgomp.h and
321 (gomp_barrier_wait_end): Rewritten.
322 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
323 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
324 * config/posix/bar.h (gomp_barrier_t): Add generation field.
325 (gomp_barrier_state_t): New typedef.
326 (gomp_team_barrier_wait,
327 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
328 (gomp_barrier_wait_start): Or all but low 2 bits from generation
329 into the return value. Return gomp_barrier_state_t.
330 (gomp_team_barrier_set_task_pending,
331 gomp_team_barrier_clear_task_pending,
332 gomp_team_barrier_set_waiting_for_tasks,
333 gomp_team_barrier_waiting_for_tasks,
334 gomp_team_barrier_done): New inlines.
335 (gomp_barrier_wait_end): Change second argument to
336 gomp_barrier_state_t.
337 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
339 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
340 (gomp_barrier_wait_end): Change second argument to
341 gomp_barrier_state_t.
342 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
343 gomp_team_barrier_wake): New functions.
344 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
346 (gomp_futex_wake, gomp_futex_wait): New variables.
347 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
348 * config/linux/lock.c: Rewrite to make locks task owned,
349 for backwards compatibility provide the old entrypoints
350 if symbol versioning. Include wait.h instead of libgomp.h and
352 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
353 * config/posix95/lock.c: Rewrite to make locks task owned,
354 for backwards compatibility provide the old entrypoints
355 if symbol versioning.
356 * config/posix/lock.c: Rewrite to make locks task owned,
357 for backwards compatibility provide the old entrypoints
358 if symbol versioning.
359 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
360 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
361 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
362 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
363 (sys_futex0): Return error code.
364 (futex_wake, futex_wait): If ENOSYS was returned, clear
365 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
366 (cpu_relax, atomic_write_barrier): New static inlines.
367 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
368 (futex_wake, futex_wait): If ENOSYS was returned, clear
369 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
370 (cpu_relax, atomic_write_barrier): New static inlines.
371 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
372 (sys_futex0): Return error code.
373 (futex_wake, futex_wait): If ENOSYS was returned, clear
374 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
375 (cpu_relax, atomic_write_barrier): New static inlines.
376 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
377 (sys_futex0): Return error code.
378 (futex_wake, futex_wait): If ENOSYS was returned, clear
379 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
380 (cpu_relax, atomic_write_barrier): New static inlines.
381 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
382 (sys_futex0): Return error code.
383 (futex_wake, futex_wait): If ENOSYS was returned, clear
384 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
385 (cpu_relax, atomic_write_barrier): New static inlines.
386 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
387 (sys_futex0): Return error code.
388 (futex_wake, futex_wait): If ENOSYS was returned, clear
389 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
390 (cpu_relax, atomic_write_barrier): New static inlines.
391 * config/linux/sem.c: Include wait.h instead of libgomp.h and
393 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
394 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
395 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
397 (omp_nest_lock_t): Change owner into void *, add lock field.
398 * config/posix95/omp-lock.h: Include semaphore.h.
399 (omp_lock_25_t, omp_nest_lock_25_t): New types.
400 (omp_lock_t): Use sem_t instead of mutex if semaphores
402 (omp_nest_lock_t): Likewise. Change owner to void *.
403 * config/posix/omp-lock.h: Include semaphore.h.
404 (omp_lock_25_t, omp_nest_lock_25_t): New types.
405 (omp_lock_t): Use sem_t instead of mutex if semaphores
407 (omp_nest_lock_t): Likewise. Add owner field.
409 2008-06-06 Jakub Jelinek <jakub@redhat.com>
411 * testsuite/libgomp.c/collapse-1.c: New test.
412 * testsuite/libgomp.c/collapse-2.c: New test.
413 * testsuite/libgomp.c/collapse-3.c: New test.
414 * testsuite/libgomp.c/icv-1.c: New test.
415 * testsuite/libgomp.c/icv-2.c: New test.
416 * testsuite/libgomp.c/lib-2.c: New test.
417 * testsuite/libgomp.c/lock-1.c: New test.
418 * testsuite/libgomp.c/lock-2.c: New test.
419 * testsuite/libgomp.c/lock-3.c: New test.
420 * testsuite/libgomp.c/loop-4.c: New test.
421 * testsuite/libgomp.c/loop-5.c: New test.
422 * testsuite/libgomp.c/loop-6.c: New test.
423 * testsuite/libgomp.c/loop-7.c: New test.
424 * testsuite/libgomp.c/loop-8.c: New test.
425 * testsuite/libgomp.c/loop-9.c: New test.
426 * testsuite/libgomp.c/nested-3.c: New test.
427 * testsuite/libgomp.c/nestedfn-6.c: New test.
428 * testsuite/libgomp.c/sort-1.c: New test.
429 * testsuite/libgomp.c/task-1.c: New test.
430 * testsuite/libgomp.c/task-2.c: New test.
431 * testsuite/libgomp.c/task-3.c: New test.
432 * testsuite/libgomp.c/task-4.c: New test.
433 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
434 to C++ testsuite default compiler options.
435 * testsuite/libgomp.c++/collapse-1.C: New test.
436 * testsuite/libgomp.c++/collapse-2.C: New test.
437 * testsuite/libgomp.c++/ctor-10.C: New test.
438 * testsuite/libgomp.c++/for-1.C: New test.
439 * testsuite/libgomp.c++/for-2.C: New test.
440 * testsuite/libgomp.c++/for-3.C: New test.
441 * testsuite/libgomp.c++/for-4.C: New test.
442 * testsuite/libgomp.c++/for-5.C: New test.
443 * testsuite/libgomp.c++/loop-8.C: New test.
444 * testsuite/libgomp.c++/loop-9.C: New test.
445 * testsuite/libgomp.c++/loop-10.C: New test.
446 * testsuite/libgomp.c++/task-1.C: New test.
447 * testsuite/libgomp.c++/task-2.C: New test.
448 * testsuite/libgomp.c++/task-3.C: New test.
449 * testsuite/libgomp.c++/task-4.C: New test.
450 * testsuite/libgomp.c++/task-5.C: New test.
451 * testsuite/libgomp.c++/task-6.C: New test.
452 * testsuite/libgomp.fortran/allocatable1.f90: New test.
453 * testsuite/libgomp.fortran/allocatable2.f90: New test.
454 * testsuite/libgomp.fortran/allocatable3.f90: New test.
455 * testsuite/libgomp.fortran/allocatable4.f90: New test.
456 * testsuite/libgomp.fortran/collapse1.f90: New test.
457 * testsuite/libgomp.fortran/collapse2.f90: New test.
458 * testsuite/libgomp.fortran/collapse3.f90: New test.
459 * testsuite/libgomp.fortran/collapse4.f90: New test.
460 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
461 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
462 * testsuite/libgomp.fortran/lib4.f90: New test.
463 * testsuite/libgomp.fortran/lock-1.f90: New test.
464 * testsuite/libgomp.fortran/lock-2.f90: New test.
465 * testsuite/libgomp.fortran/nested1.f90: New test.
466 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
467 * testsuite/libgomp.fortran/strassen.f90: New test.
468 * testsuite/libgomp.fortran/tabs1.f90: New test.
469 * testsuite/libgomp.fortran/tabs2.f: New test.
470 * testsuite/libgomp.fortran/task1.f90: New test.
471 * testsuite/libgomp.fortran/task2.f90: New test.
472 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
473 * testsuite/libgomp.fortran/vla5.f90: Likewise.
474 * testsuite/libgomp.c/pr26943-2.c: Likewise.
475 * testsuite/libgomp.c/pr26943-3.c: Likewise.
476 * testsuite/libgomp.c/pr26943-4.c: Likewise.
478 2008-05-23 Jakub Jelinek <jakub@redhat.com>
481 * testsuite/libgomp.c++/ctor-11.C: New test.
482 * testsuite/libgomp.c++/ctor-12.C: New test.
484 2008-05-15 Janis Johnson <janis187@us.ibm.com>
486 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
488 2008-05-07 Jakub Jelinek <jakub@redhat.com>
491 * testsuite/libgomp.c/atomic-5.c: New test.
492 * testsuite/libgomp.c/atomic-6.c: New test.
493 * testsuite/libgomp.c/autopar-1.c: New test.
495 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
497 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
498 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
499 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
500 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
501 * configure: Regenerate.
502 * Makefile.in, testsuite/Makefile.in: Likewise.
504 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
507 * aclocal.m4: Regenerate.
508 * configure: Regenerate.
510 2008-03-18 Jakub Jelinek <jakub@redhat.com>
513 * testsuite/libgomp.c/atomic-4.c: New test.
516 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
517 (gomp_iter_guided_next): Likewise.
518 * testsuite/libgomp.c/pr35625.c: New test.
520 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
522 * aclocal.m4: Regenerate.
523 * configure: Likewise.
524 * Makefile.in: Likewise.
525 * testsuite/Makefile.in: Likewise.
527 2008-03-13 Jakub Jelinek <jakub@redhat.com>
530 * testsuite/libgomp.c++/pr35185.C: New test.
532 2008-03-12 Jakub Jelinek <jakub@redhat.com>
535 * testsuite/libgomp.c/pr35549.c: New test.
537 2008-03-06 Jakub Jelinek <jakub@redhat.com>
539 * testsuite/libgomp.c/atomic-3.c: New test.
541 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
544 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
547 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
550 * configure.ac: Add ACX_HEADER_STRING.
551 * env.c: Include strings.h.
552 * aclocal.m4: Regenerate.
553 * config.h.in: Regenerate.
554 * configure: Regenerate.
555 * Makefile.in: Regenerate.
556 * testsuite/Makefile.in: Regenerate.
558 2008-02-15 Jakub Jelinek <jakub@redhat.com>
561 * testsuite/libgomp.c/pr35196.c: New test.
564 * testsuite/libgomp.fortran/pr35130.f90: New test.
565 * testsuite/libgomp.c/pr35130.c: New test.
567 2008-01-25 Jakub Jelinek <jakub@redhat.com>
570 * testsuite/libgomp.c/pr33880.c: New test.
571 * testsuite/libgomp.fortran/pr33880.f90: New test.
573 2008-01-24 David Edelsohn <edelsohn@gnu.org>
575 * configure: Regenerate.
577 2008-01-08 Jakub Jelinek <jakub@redhat.com>
579 * configure.ac: Move futex checking into ../config/futex.m4.
580 * configure: Rebuilt.
581 * aclocal.m4: Rebuilt.
582 * Makefile.in: Rebuilt.
584 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
585 2007-10-15 ../config/tls.m4 change.
587 2007-12-19 Jakub Jelinek <jakub@redhat.com>
590 * testsuite/libgomp.c/pr34513.c: New test.
591 * testsuite/libgomp.c++/pr34513.C: New test.
593 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
596 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
598 2007-12-04 Jakub Jelinek <jakub@redhat.com>
600 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
602 2007-12-03 Jakub Jelinek <jakub@redhat.com>
604 * testsuite/libgomp.c/private-1.c: New test.
606 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
607 Paolo Bonzini <bonzini@gnu.org>
609 * Makefile.am: Use space as vpath separator. Use 'vpath %'
610 instead of 'VPATH ='.
611 * Makefile.in: Regenerate.
613 2007-11-23 Matthias Klose <doko@ubuntu.com>
615 * configure.ac: Adjust makeinfo version check.
616 * configure: Regenerate.
618 2007-11-10 Jakub Jelinek <jakub@redhat.com>
621 * testsuite/libgomp.fortran/pr34020.f90: New test.
623 2007-11-06 Jakub Jelinek <jakub@redhat.com>
626 * testsuite/libgomp.c++/atomic-1.C: New test.
628 2007-10-25 Jakub Jelinek <jakub@redhat.com>
631 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
632 Make x and y integers rather than (implicit) reals. Add private (j)
633 clause to the last omp parallel.
635 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
637 * configure: Regenerate following changes to ../config/tls.m4.
639 2007-09-28 Jakub Jelinek <jakub@redhat.com>
641 * testsuite/libgomp.fortran/stack.f90: New test.
643 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
645 * config/mingw32/proc.c: New file.
647 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
649 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
650 (main): Use __get_cpuid to get i386 target fetaures.
651 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
652 (main): Use __get_cpuid to get x86_64 target fetaures.
654 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
657 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
658 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
660 2007-07-12 Jakub Jelinek <jakub@redhat.com>
663 * testsuite/libgomp.fortran/pr32550.f90: New test.
664 * testsuite/libgomp.fortran/crayptr2.f90: New test.
666 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
668 * aclocal.m4: Regenerated.
670 2007-07-05 Tobias Burnus <burnus@net-b.de>
673 * testsuite/libgomp.fortran/pr32359.f90: New.
675 2007-07-02 Jakub Jelinek <jakub@redhat.com>
678 * sections.c (GOMP_parallel_sections_start): Only decrease
679 number of threads to COUNT if dyn_var is true.
680 * testsuite/libgomp.c/pr32468.c: New test.
682 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
685 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
687 2007-06-21 Jakub Jelinek <jakub@redhat.com>
690 * testsuite/libgomp.c/pr32362-1.c: New test.
691 * testsuite/libgomp.c/pr32362-2.c: New test.
692 * testsuite/libgomp.c/pr32362-3.c: New test.
694 2007-06-07 Jakub Jelinek <jakub@redhat.com>
696 * team.c (gomp_team_start): Fix setting up thread_attr
699 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
701 * configure: Regenerate.
703 2007-05-23 Steve Ellcey <sje@cup.hp.com>
705 * Makefile.in: Regenerate.
706 * configure: Regenerate.
707 * aclocal.m4: Regenerate.
708 * testsuite/Makefile.in: Regenerate.
710 2007-05-04 Jakub Jelinek <jakub@redhat.com>
712 * config/linux/proc.c: New file.
715 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
717 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
719 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
721 2007-04-16 Matthias Klose <doko@debian.org>
723 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
724 flags if not building with -m64.
725 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
726 flag for i?86-*-* targets, if current target matches -m64.
728 2007-04-14 Steve Ellcey <sje@cup.hp.com>
730 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
731 * Makefile.in: Regenerate.
733 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
736 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
738 * testsuite/libgomp.fortran/fortran.exp: Likewise.
740 2007-04-04 Jakub Jelinek <jakub@redhat.com>
742 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
744 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
745 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
746 (parse_affinity): New function.
747 (initialize_env): Call it and gomp_init_affinity.
748 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
749 create new pthread_attr_t and call gomp_init_thread_affinity
750 on it for each thread before passing the attribute to pthread_create.
751 * config/linux/affinity.c: New file.
752 * config/posix/affinity.c: New file.
753 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
754 * configure: Rebuilt.
755 * config.h.in: Rebuilt.
756 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
757 * Makefile.in: Rebuilt.
759 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
761 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
763 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
766 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
768 * testsuite/config/default.exp: New file.
769 * testsuite/lib/libgomp.exp: New file.
770 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
771 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
772 load_lib *, load_gcc_lib *): Move to libgomp.exp.
773 (libgomp_load): Remove.
774 * testsuite/lib/libgomp.exp (libgomp_init): Compute
775 always_ld_library_path, not ld_library_path. Set additional_flags
776 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
777 (target_compile): Do not call libgomp_init. Append lang_library_path
778 and lang_link_flags to options.
779 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
780 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
782 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
783 always_ld_library_path. Set LD_LIBRARY_PATH here.
784 * testsuite/libgomp.fortran/fortran.exp: Ditto.
785 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
786 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
788 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
789 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
790 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
791 * testsuite/libgomp.c/pr29947-1.c: Ditto.
792 * testsuite/libgomp.c/atomic-10.c: Ditto.
794 2007-03-21 Jakub Jelinek <jakub@redhat.com>
796 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
797 dg-final cleanup-modules line.
798 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
799 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
800 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
801 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
802 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
803 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
804 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
806 2007-03-18 Andreas Schwab <schwab@suse.de>
808 * acinclude.m4: Adjust regular expression for ld version
810 * configure: Regenerate.
812 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
814 * Makefile.am: Add install-pdf target as copied from
815 automake v1.10 rules.
816 * Makefile.in: Regenerate
818 2007-02-07 Jakub Jelinek <jakub@redhat.com>
821 * configure: Regenerate.
824 * testsuite/libgomp.c++/pr30703.C: New test.
826 2007-02-02 Jakub Jelinek <jakub@redhat.com>
829 2006-07-05 Eric Christopher <echristo@apple.com>
830 * configure.ac: Depend addition of -pthread on host OS.
831 * configure: Regenerate.
833 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
835 * libgomp.texi: Fix spacing after abbreviations.
837 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
840 * configure.ac: Add check for makeinfo
841 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
842 if an appropiate version of makeinfo is found.
843 * aclocal.m4: Regenerated.
844 * configure: Regenerated.
845 * Makefile.in: Regenerated.
846 * testsuite/Makefile.in: Regenerated.
848 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
851 * libgomp.texi: More about implementation-dependent settings.
853 2007-01-26 Tobias Burnus <burnus@net-b.de>
855 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
857 2007-01-24 Jakub Jelinek <jakub@redhat.com>
860 * testsuite/libgomp.c/pr30494.c: New test.
862 2007-01-15 Tom Tromey <tromey@redhat.com>
864 * configure: Rebuilt.
865 * configure.ac: Fixed comment.
867 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
869 * libgomp.texi: Document implementation specific default values of
870 environment variables.
872 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
875 * libgomp.texi: New file.
876 * configure.ac: Add --enable-generated-files-in-srcdir option.
877 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
879 * Makefile.in: Regenerated.
880 * config.h.in: Regenerated.
881 * testsuite/Makefile.in: Regenerated.
884 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
887 * env.c (omp_set_num_threads): Set illegal thread count to 1.
889 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
891 * configure: Regenerate.
893 2006-12-04 Jakub Jelinek <jakub@redhat.com>
896 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
897 start if there shouldn't be any loop iterations.
898 (gomp_loop_ordered_static_start): Remove start == end test.
899 * testsuite/libgomp.c/pr29947-1.c: New test.
900 * testsuite/libgomp.c/pr29947-2.c: New test.
902 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
904 * configure.tgt: Force initial-exec TLS model on Linux only.
906 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
908 * configure: Regenerated.
910 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
912 * env.c (parse_schedule): Reject out of range values.
913 (parse_unsigned_long): Reject out of range, negative or zero values.
915 2006-10-29 Jakub Jelinek <jakub@redhat.com>
918 * testsuite/libgomp.fortran/pr29629.f90: New test.
920 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
923 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
924 * config/posix95: New directory.
925 * config/posix95/omp-lock.h: New file.
926 * config/posix95/lock.c: Likewise.
928 2006-10-14 Geoffrey Keating <geoffk@apple.com>
930 * aclocal.m4: Regenerate.
931 * configure: Regenerate.
933 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
935 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
938 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
940 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
942 * configure: Regenerate.
943 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
945 2006-09-26 Jakub Jelinek <jakub@redhat.com>
949 * testsuite/libgomp.c/nestedfn-4.c: New test.
950 * testsuite/libgomp.c/nestedfn-5.c: New test.
951 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
954 * testsuite/libgomp.fortran/condinc1.f: New test.
955 * testsuite/libgomp.fortran/condinc2.f: New test.
956 * testsuite/libgomp.fortran/condinc3.f90: New test.
957 * testsuite/libgomp.fortran/condinc4.f90: New test.
958 * testsuite/libgomp.fortran/condinc1.inc: New file.
960 2006-09-18 Tom Tromey <tromey@redhat.com>
962 * configure: Rebuilt.
964 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
967 PR preprocessor/14634
968 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
970 * configure: Regenerate.
972 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
974 * testsuite/libgomp.fortran/reduction3.f90: Change
975 -2147483648 to -huge(i)-1 to avoid overflow.
976 * testsuite/libgomp.fortran/reduction4.f90: Change
977 Z'ffffffff' to not(0) to avoid overflow.
979 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
982 * Makefile.am (libsubincludedir): New.
983 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
984 * Makefile.in: Regenerate.
986 2006-08-17 Jakub Jelinek <jakub@redhat.com>
989 * env.c: Include ctype.h.
990 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
991 leading and/or trailing whitespace and compare strings case
994 2006-07-16 Jakub Jelinek <jakub@redhat.com>
997 * testsuite/libgomp.fortran/pr28390.f: New test.
999 2006-07-05 Eric Christopher <echristo@apple.com>
1001 * configure.ac: Depend addition of -pthread on host OS.
1002 * configure: Regenerate.
1004 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1006 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1007 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1010 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1014 * configure.ac: If neither --enable-linux-futex nor
1015 --disable-linux-futex is passed, determine the default by checking
1016 for compiling and/or running against NPTL. With --enable-linux-futex,
1017 check if SYS_gettid and SYS_futex are defined.
1018 * configure: Rebuilt.
1020 2006-06-14 Richard Henderson <rth@redhat.com>
1023 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1024 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1026 2006-06-09 Richard Henderson <rth@redhat.com>
1028 * env.c (gomp_nthreads_var): Change to unsigned long.
1029 (gomp_run_sched_chunk): Likewise.
1030 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1031 (initialize_env): Initialize gomp_thread_attr.
1032 * libgomp.h (gomp_nthreads_var): Update decl.
1033 (gomp_run_sched_chunk): Likewise.
1034 (gomp_thread_attr): Declare.
1035 * team.c (gomp_thread_attr): Export.
1036 (initialize_team): Don't initialize it.
1038 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1041 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1042 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1044 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1046 * config/mingw32/time.c: New file.
1047 * configure.tgt: Use it.
1049 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1051 * Makefile.am: Add install-html target. Add install-html to .PHONY
1052 * Makefile.in: Regenerate.
1054 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1057 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1058 * testsuite/libgomp.c/critical-1.c: Likewise.
1059 * testsuite/libgomp.c/loop-1.c: Likewise.
1060 * testsuite/libgomp.c/loop-2.c: Likewise.
1061 * testsuite/libgomp.c/single-1.c: Likewise.
1062 * testsuite/libgomp.c/ordered-1.c: Likewise.
1063 * testsuite/libgomp.c/ordered-2.c: Likewise.
1065 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1068 * libgomp.fortran/pr27416-1.f90: New test.
1070 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1073 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1074 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1076 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1079 * testsuite/libgomp.c/pr26943-1.c: New test.
1080 * testsuite/libgomp.c/pr26943-2.c: New test.
1081 * testsuite/libgomp.c/pr26943-3.c: New test.
1082 * testsuite/libgomp.c/pr26943-4.c: New test.
1083 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1084 * testsuite/libgomp.c++/pr26943.C: New test.
1086 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1089 * testsuite/libgomp.c++/pr27337.C: New test.
1091 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1094 * testsuite/libgomp.c/pr26171.c: New test.
1096 2006-04-25 Richard Henderson <rth@redhat.com>
1099 * configure.ac: Use GCC_CHECK_TLS.
1100 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1101 * Makefile.in, aclocal.m4, configure: Regenerate.
1103 2006-04-10 Matthias Klose <doko@debian.org>
1105 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1106 directory names containing underscores.
1108 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1111 * testsuite/libgomp.c++/pr26691.C: New test.
1113 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1115 * testsuite/libgomp.fortran/retval2.f90: New test.
1117 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1119 * testsuite/libgomp.c++: New directory.
1121 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1123 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1124 * config/posix/sem.c: Implement the above.
1126 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1128 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1129 define HAVE_BROKEN_POSIX_SEMAPHORES.
1130 * configure: Rebuilt.
1131 * config.h.in: Rebuilt.
1133 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1136 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1137 for the other pthread check.
1138 * configure: Regenerate.
1139 * config.h.in: Regenerate.
1141 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1145 * Makefile.am (fincludedir): New variable.
1146 (nodist_include_HEADERS): Remove Fortran files.
1147 (nodist_finclude_HEADERS): New variable.
1148 * Makefile.in: Regenerated.
1150 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1152 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1153 Remove tests for returning assumed character length arrays.
1155 2006-02-12 Roger Sayle <roger@eyesopen.com>
1156 John David Anglin <dave@hiauly1.hia.nrc.ca>
1159 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1161 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1163 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1165 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1167 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1168 part of LD_LIBRARY_PATH manually.
1170 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1173 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1176 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1179 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1180 * configure.ac (PERL): Don't set.
1181 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1182 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1183 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1184 * omp.h.in: Wrap the new configure substitutions with @ characters.
1185 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1186 * aclocal.m4, configure, Makefile.in: Regenerate.
1187 * mkomp_h.pl: Delete.
1189 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1192 * configure.ac: Use GCC_HEADER_STDINT.
1193 * libgomp.h: Include gstdint.h.
1194 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1195 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1197 2006-01-24 Richard Henderson <rth@redhat.com>
1200 * configure.ac: Add AM_MAINTAINER_MODE.
1201 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1203 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1205 * Makefile.in: Regenerate.
1206 * testsuite/Makefile.in: Regenerate.
1207 * aclocal.m4: Regenerate.
1209 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1211 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1213 * configure.ac: Add check for loadavg.h.
1214 (link_gomp): Adjust comment.
1215 * configure: Regenerate.
1216 * config.h.in: Regenerate.
1218 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1221 * configure.ac: Remove check for alloca.h.
1222 * configure: Regenerate.
1223 * config.h.in: Regenerate.
1224 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1225 * team.c: Remove use of alloca.h.
1226 Call gomp_alloca instead of alloca.
1228 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1231 * team.c: Add include of alloca.h.
1232 * configure.ac: Add check for alloca.h.
1233 * configure: Regenerate.
1234 * config.h.in: Regenerate.
1236 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1239 * testsuite/libgomp.fortran/pr25219.f90: New test.
1241 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1243 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1244 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1245 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1246 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1247 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1248 testsuite/libgomp.fortran/threadprivate1.f90,
1249 testsuite/libgomp.fortran/threadprivate2.f90,
1250 testsuite/libgomp.fortran/threadprivate3.f90,
1251 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1252 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1253 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1254 effective-target to TLS runtime.
1256 * testsuite/libgomp.fortran/pr25162.f: Require
1257 effective-target TLS runtime.
1259 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1261 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1262 * testsuite/libgomp.c/nestedfn-3.c: New test.
1264 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1267 * testsuite/libgomp.fortran/pr25162.f: New test.
1269 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1271 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1272 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1274 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1276 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1277 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1278 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1279 single.c, team.c, work.c, config/linux/alpha/futex.h,
1280 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1281 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1282 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1283 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1284 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1285 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1286 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1289 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1291 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1292 to nodist_noinst_HEADERS.
1293 * Makefile.in: Rebuilt.
1295 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1296 add integer count field.
1297 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1298 omp_nest_lock_t type change.
1299 (omp_init_nest_lock): Likewise. Initialize count to 0.
1300 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1302 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1304 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1305 Increment count if successful and return the new nesting level.
1306 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1307 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1308 * testsuite/libgomp.c/lib-1.c: New test.
1309 * testsuite/libgomp.fortran/lib1.f90: New test.
1310 * testsuite/libgomp.fortran/lib2.f: New test.
1311 * testsuite/libgomp.fortran/lib3.f: New test.
1313 2005-11-17 Richard Henderson <rth@redhat.com>
1316 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1317 * configure.ac (link_gomp): New. Substitute it.
1318 (AC_CONFIG_FILES): Add libgomp.spec.
1319 * libgomp.spec.in: New file.
1320 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1321 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1323 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1325 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1326 reduction(-:var) behaving the same as reduction(+:var).
1327 * testsuite/libgomp.c/reduction-4.c: New test.
1329 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1331 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1332 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1333 testsuite/libgomp.c/copyin-3.c,
1334 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1335 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1336 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1337 testsuite/libgomp.c++/pr24455.C,
1338 testsuite/libgomp.fortran/threadprivate1.f90,
1339 testsuite/libgomp.fortran/threadprivate2.f90,
1340 testsuite/libgomp.fortran/threadprivate3.f90,
1341 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1342 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1343 testsuite/libgomp.fortran/omp_parse3.f90: Require
1344 effective-target TLS.
1346 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1350 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1353 * team.c (initialize_team): Pass NULL rather than free as
1354 pthread_key_create destructor. Initialize thread specific data
1355 pointer in initial thread to a static local variable rather than
1358 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1360 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1361 its location to ld_library_path.
1363 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1365 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1367 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1369 * testsuite/libgomp.c: Rename from libgomp.dg.
1371 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1373 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1374 threadprivate variable 'i'.
1376 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1378 * config/linux/s390/futex.h: New file.
1379 * configure.tgt: Use it.
1381 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1382 before the parallel.
1384 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1387 * testsuite/libgomp.c++/master-1.C: New test.
1389 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1391 * testsuite/libgomp.dg/copyin-3.c: New test.
1393 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1395 * testsuite/libgomp.fortran/retval1.f90: New test.
1396 * testsuite/libgomp.fortran/vla7.f90: New test.
1398 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1400 * testsuite/libgomp.fortran/vla2.f90: New test.
1401 * testsuite/libgomp.fortran/vla3.f90: New test.
1402 * testsuite/libgomp.fortran/vla4.f90: New test.
1403 * testsuite/libgomp.fortran/vla5.f90: New test.
1404 * testsuite/libgomp.fortran/vla6.f90: New test.
1406 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1408 * config/linux/sparc/futex.h: New file.
1409 * configure.tgt: Use it.
1410 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1412 * critical.c: Include stdlib.h.
1413 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1414 ignoring return value.
1415 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1416 LIBGOMP_CHECK_SYNC_BUILTINS check.
1417 * configure: Rebuilt.
1419 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1421 * testsuite/libgomp.fortran/vla1.f90: New test.
1423 2005-10-31 Richard Henderson <rth@redhat.com>
1425 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1426 setting 's' in different threads.
1428 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1430 * libgomp.h (attribute_hidden, ialias): Define.
1431 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1432 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1433 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1434 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1435 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1436 omp_test_lock, omp_test_nest_lock): Likewise.
1437 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1438 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1439 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1440 omp_test_lock, omp_test_nest_lock): Likewise.
1441 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1442 omp_get_dynamic, omp_get_nested): Likewise.
1443 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1444 omp_get_thread_num, omp_in_parallel): Likewise.
1445 * fortran.c (ialias_redirect): Define.
1446 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1447 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1448 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1449 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1450 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1451 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1452 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1453 omp_get_wtime): Add ialias_redirect.
1455 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1457 * fortran.c: Include stdlib.h.
1459 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1461 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1462 * Makefile.in: Regenerated.
1464 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1466 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1467 * libgomp_f.h.in (omp_check_defines): New function.
1468 * env.c: Include libgomp_f.h.
1469 (initialize_env): Call omp_check_defines.
1471 * testsuite/libgomp.dg/copyin-2.c: New test.
1472 * testsuite/libgomp.c++/copyin-2.C: New test.
1473 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1475 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1476 * testsuite/libgomp.fortran/sharing2.f90: New test.
1478 * testsuite/libgomp.dg/copyin-1.c: New test.
1479 * testsuite/libgomp.c++/copyin-1.C: New test.
1481 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1483 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1485 * testsuite/libgomp.fortran/workshare1.f90: New test.
1487 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1489 * libgomp.fortran/sharing1.f90: New test.
1491 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1494 * testsuite/libgomp.c++/loop-7.C: New test.
1496 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1498 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1499 * testsuite/libgomp.fortran/reduction6.f90: New test.
1500 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1502 2005-10-23 Richard Henderson <rth@redhat.com>
1504 * testsuite/libgomp.c++/ctor-1.C: New.
1505 * testsuite/libgomp.c++/ctor-2.C: New.
1506 * testsuite/libgomp.c++/ctor-3.C: New.
1507 * testsuite/libgomp.c++/ctor-4.C: New.
1508 * testsuite/libgomp.c++/ctor-5.C: New.
1509 * testsuite/libgomp.c++/ctor-6.C: New.
1510 * testsuite/libgomp.c++/ctor-7.C: New.
1511 * testsuite/libgomp.c++/ctor-8.C: New.
1512 * testsuite/libgomp.c++/ctor-9.C: New.
1514 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1517 * testsuite/libgomp.c++/pr24455-1.C: New test.
1518 * testsuite/libgomp.c++/pr24455.C: New test.
1519 * testsuite/libgomp.dg/pr24455-1.c: New test.
1520 * testsuite/libgomp.dg/pr24455.c: New test.
1522 2005-10-20 Richard Henderson <rth@redhat.com>
1524 * testsuite/libgomp.c++/loop-6.C: New.
1525 * testsuite/libgomp.dg/loop-3.c: New.
1527 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1529 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1531 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1534 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1536 * testsuite/libgomp.fortran/jacobi.f: New test.
1538 2005-10-19 Richard Henderson <rth@redhat.com>
1540 * configure.tgt (i?86-linux): Default to with_arch instead of
1541 CFLAGS. Add -mtune to match target_cpu.
1542 (x86_64-linux): Tune to i686.
1544 * fortran.c (omp_test_nest_lock_): Fix typo.
1546 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1548 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1549 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1550 * testsuite/libgomp.dg/ordered-3.c: New test.
1552 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1553 Remove volatile keyword.
1555 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1556 in COMMON block to avoid warnings on 64-bit targets.
1558 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1560 * testsuite/libgomp.dg/shared-3.c: New test.
1562 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1564 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1565 * testsuite/libgomp.fortran/reduction5.f90: New test.
1567 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1569 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1571 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1572 flush loop now that __sync_synchronize has proper memory barrier.
1573 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1574 Add -ffixed-form to dg-options.
1576 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1578 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1579 from subdirectories.
1580 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1581 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1582 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1583 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1584 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1585 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1586 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1587 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1588 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1589 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1590 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1591 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1592 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1593 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1594 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1595 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1596 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1597 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1598 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1599 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1600 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1601 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1602 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1603 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1604 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1606 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1608 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1609 lang_library_path exists. Use find instead of glob to gather tests.
1610 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1612 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1614 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1615 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1616 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1617 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1618 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1619 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1620 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1621 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1622 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1623 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1624 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1625 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1626 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1628 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1630 * testsuite/libgomp.dg/vla-1.c: New test.
1632 * testsuite/libgomp.fortran/reference2.f90: New test.
1634 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1635 declaration of omp_get_thread_num.
1636 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1639 * testsuite/libgomp.fortran/reduction1.f90: New test.
1640 * testsuite/libgomp.fortran/reduction2.f90: New test.
1641 * testsuite/libgomp.fortran/reduction3.f90: New test.
1642 * testsuite/libgomp.fortran/reduction4.f90: New test.
1644 2005-10-13 Richard Henderson <rth@redhat.com>
1646 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1647 * Makefile.in: Regenerate.
1648 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1649 * libgomp.h: Include bar.h.
1650 (struct gomp_barrier): Remove.
1651 (struct gomp_team): Add barrier. Replace master_barrier with
1652 master_release. Replace threads with ordered_release.
1653 (struct gomp_thread): Replace barrier with release.
1654 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1655 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1656 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1657 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1658 (GOMP_single_copy_end): Likewise.
1659 * team.c (gomp_threads_dock): New.
1660 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1661 (gomp_thread_start): Use gomp_barrier_wait.
1662 (new_team, free_team): Update for gomp_team changes.
1663 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1664 (gomp_team_end): Use gomp_barrier_wait.
1665 (initialize_team): Update for gomp_thread changes.
1666 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1667 (gomp_work_share_end_nowait): Use atomic ops when available.
1668 * config/linux/bar.c, config/linux/bar.h: New files.
1669 * config/posix/bar.c, config/posix/bar.h: New files.
1671 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1673 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1674 * testsuite/libgomp.dg/single-2.c: New test.
1676 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1677 lang_link_flags): Unset, so that they aren't inherited from previously
1680 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1682 2005-10-12 Richard Henderson <rth@redhat.com>
1684 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1685 (libgomp_init): Use lang_test_file, lang_library_path, and
1686 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1688 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1689 (lang_test_file, lang_link_flags): New.
1690 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1692 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1693 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1694 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1695 testsuite/libgomp.c++/parallel-1.C,
1696 testsuite/libgomp.c++/reduction-1.C,
1697 testsuite/libgomp.c++/reduction-2.C,
1698 testsuite/libgomp.c++/reduction-3.C,
1699 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1700 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1701 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1702 New files, largely cribbed from the C testsuite.
1704 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1706 * testsuite/libgomp.fortran/character1.f90: New test.
1707 * testsuite/libgomp.fortran/character2.f90: New test.
1709 * testsuite/libgomp.dg/nested-1.c: New test.
1710 * testsuite/libgomp.dg/nested-2.c: New test.
1711 * testsuite/libgomp.fortran/do1.f90: New test.
1712 * testsuite/libgomp.fortran/do2.f90: New test.
1714 * testsuite/libgomp.fortran/reference1.f90: New test.
1716 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1718 * testsuite/libgomp.dg/reduction-1.c: New test.
1719 * testsuite/libgomp.dg/reduction-2.c: New test.
1720 * testsuite/libgomp.dg/reduction-3.c: New test.
1722 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1724 * testsuite/libgomp.dg/atomic-1.c: New test.
1725 * testsuite/libgomp.dg/atomic-2.c: New test.
1727 2005-10-09 Richard Henderson <rth@redhat.com>
1729 * critical.c (atomic_lock): New.
1730 (initialize_critical): Initialize it.
1731 (GOMP_atomic_start, GOMP_atomic_end): New.
1732 * libgomp.map: Export them.
1733 * libgomp_g.h: Declare them.
1735 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1737 2005-10-02 Richard Henderson <rth@redhat.com>
1739 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1740 to XCFLAGS instead of CFLAGS.
1742 2005-09-30 Richard Henderson <rth@redhat.com>
1744 * configure.ac: Determine whether -pthread or -lpthread is needed.
1745 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1746 * Makefine.in, configure: Rebuild.
1748 2005-09-28 Richard Henderson <rth@redhat.com>
1750 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1751 * testsuite/libgomp.dg/omp-single-3.c: New test.
1753 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1755 * testsuite/libgomp.dg/omp-single-2.c: New test.
1756 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1758 2005-09-27 Richard Henderson <rth@redhat.com>
1760 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1761 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1763 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1765 * testsuite/libgomp.dg/omp-loop03.c: New test.
1767 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1769 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1771 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1773 * testsuite/libgomp.dg/omp-single-1.c: New test.
1774 * testsuite/libgomp.dg/shared-1.c: Return 0.
1775 Add prototype for abort.
1776 * testsuite/libgomp.dg/shared-2.c: Likewise.
1778 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1780 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1783 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1785 * testsuite/libgomp.dg/shared-1.c: New test.
1786 * testsuite/libgomp.dg/shared-2.c: New test.
1788 2005-09-24 Richard Henderson <rth@redhat.com>
1790 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1792 2005-09-24 Richard Henderson <rth@redhat.com>
1794 * iter.c (gomp_iter_static_next): Round up when computing number
1795 of iterations. Don't bother distributing a remainder equally.
1797 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1798 Don't call srand. Zero b before testing.
1801 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1803 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1804 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1806 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1808 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1809 without !$omp end do, followed immediately by subroutine end.
1811 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1813 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1815 2005-09-22 Richard Henderson <rth@redhat.com>
1817 * critical.c (GOMP_critical_name_start): Change argument to void**.
1818 Reuse the pointer space if the mutex fits.
1819 (GOMP_critical_name_end): Likewise.
1820 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1821 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1822 (GOMP_critical_name_end): Likewise.
1823 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1824 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1826 2005-09-20 Richard Henderson <rth@redhat.com>
1828 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1829 (create_lock_lock): New.
1830 (initialize_critical): Initialize it.
1831 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1832 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1834 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1836 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1838 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1840 * testsuite/libgomp.dg/omp-loop01.c: New test.
1841 * testsuite/libgomp.dg/omp-loop02.c: New test.
1843 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1845 * configure.ac (AC_PROG_FC): Add.
1846 (USE_FORTRAN): New automake conditional.
1847 * configure: Rebuilt.
1848 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1849 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1850 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1851 Add rules to build them.
1852 * Makefile.in: Rebuilt.
1853 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1855 * libgomp.map: Add Fortran wrappers.
1856 * libgomp_f.h.in: New file.
1857 * omp_lib.h.in: New file.
1858 * omp_lib.f90.in: New file.
1859 * fortran.c: New file.
1860 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1861 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1862 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1863 libgfortran has been built.
1864 * testsuite/libgomp.fortran/fortran.exp: New file.
1865 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1866 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1867 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1868 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1869 * testsuite/libgomp.fortran/omp_hello.f: New test.
1870 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1871 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1872 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1873 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1874 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1875 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1876 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1877 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1879 2005-08-30 Richard Henderson <rth@redhat.com>
1881 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1882 function for when aliases are not usable.
1883 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1884 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1885 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1886 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1887 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1888 GOMP_loop_ordered_guided_next): Likewise.
1889 * ordered.c (GOMP_ordered_start): Likewise.
1891 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1893 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1894 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1895 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1896 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1897 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1898 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1899 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1900 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1901 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1903 2005-07-07 Eric Christopher <echristo@redhat.com>
1904 Diego Novillo <dnovillo@redhat.com>
1906 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1907 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1909 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1910 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1911 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1912 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1913 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1914 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1915 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1917 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1919 * TOPLEVEL.patch: Remove.
1921 2005-05-16 Richard Henderson <rth@redhat.com>
1923 * configure.ac: Test for clock_gettime.
1924 * config.h.in, configure: Rebuild.
1925 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1926 (omp_get_wtime): Use clock_gettime if available.
1927 (omp_get_wtick): Use clock_getres if available.
1929 2005-05-11 Richard Henderson <rth@redhat.com>
1931 * config/linux/ia64/futex.h: New file.
1932 * configure.tgt: Use it.
1934 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1936 2005-05-07 Richard Henderson <rth@redhat.com>
1938 * config/linux/powerpc/futex.h: New file.
1939 * configure.tgt: Use it.
1941 * config/linux/i486/futex.h: Merge ...
1942 * config/linux/x86_64/futex.h: ... into ...
1943 * config/linux/x86/futex.h: ... here.
1944 * configure.tgt: Update to match.
1946 2005-05-06 Richard Henderson <rth@redhat.com>
1948 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1949 * config/linux/i486/futex.h: Likewise.
1950 * config/linux/x86_64/futex.h: Likewise.
1952 * config/linux/lock.c: New file.
1953 * config/linux/omp-lock.h: New file.
1955 * critical.c, env.h: Don't include omp.h
1956 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1957 * config/posix/time.c: Likewise.
1958 * config/posix/omp-lock.h: New file.
1959 * libgomp.h: Include omp-lock.h and omp.h.
1960 * Makefile.am (nodist_include_HEADERS): New.
1962 * configure.ac (PERL): New.
1963 * mkomp_h.pl: New file.
1964 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1966 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1968 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1969 build directory. Re-add -march=i486 hack.
1971 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1972 (libgomp_link_flags): Remove.
1973 (libgomp_initialized): Remove.
1974 (libgomp_init): Don't protect from reinitialization. Copy code
1975 from libstdc++ for getting the multilib set correctly.
1977 2005-05-05 Richard Henderson <rth@redhat.com>
1979 * config/linux/alpha/futex.h: New file.
1980 * configure.tgt (alpha*-*-linux*): Use it.
1982 * config/posix/mutex.c: New file.
1983 * config/posix/sem.c: Use libgomp.h.
1985 * configure.tgt (x86_64-linux): Also test CC for -m32.
1986 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1988 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1991 * Makefile.am (SUBDIRS): New.
1992 (libgomp_la_LDFLAGS): Add -lpthread.
1993 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1994 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1996 * libgomp_g.h: New file.
1997 * libgomp.h: Split out all public declarations to libgomp_g.h.
1998 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1999 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2000 * config/linux/sem.h: Likewise.
2001 * config/posix/sem.h: Likewise.
2003 * Makefile.am (AM_LDFLAGS): New.
2004 (libgomp_version_script): Split out from ...
2005 (libgomp_la_LDFLAGS): ... here.
2006 (libgomp_version_info): New.
2007 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2008 (LIBGOMP_ENABLE): New.
2009 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2010 (LIBGOMP_ENABLE_SYMVERS): New.
2011 * configure.ac (AC_INIT): Version 1.0.
2012 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2013 (enable-linux-futex): Likewise. Rename from enable-futex.
2014 (libtool_VERSION): New.
2015 (LIBGOMP_ENABLE_SYMVERS): Use it.
2016 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2017 * Makefile.in, aclocal.m4, configure: Rebuild.
2019 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2020 (gomp_mutex_unlock_slow): Fix typo.
2021 * config/linux/sem.c: Similarly.
2022 (gomp_sem_post_slow): Fix typo.
2023 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2024 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2025 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2027 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2028 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2029 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2030 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2031 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2032 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2033 LDFLAGS. Pull enable_futex check to top-level.
2034 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2035 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2037 First attempt at real configury.
2038 * Makefile, config.h: Remove file.
2039 * Makefile.am, Makefile.in: New file.
2040 * acinclude.m4 aclocal.m4: New file.
2041 * configure.ac, configure.tgt, configure: New file.
2043 * config/posix/lock.c: Rename from sys-lock.c.
2044 * config/posix/mutex.h: Rename from sys-mutex.h.
2045 * config/posix/sem.c: Rename from sys-sem.c.
2046 * config/posix/sem.h: Rename from sys-sem.h.
2047 * config/posix/proc.c: Rename from sys-proc.c.
2048 * config/posix/time.c: Rename from sys-proc.c.
2050 * config/linux/mutex.c: New file.
2051 * config/linux/mutex.h: New file.
2052 * config/linux/sem.c: New file.
2053 * config/linux/sem.h: New file.
2054 * config/linux/i486/futex.h: New file.
2055 * config/linux/x86_64/futex.h: New file.
2057 2005-05-04 Richard Henderson <rth@redhat.com>
2059 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2060 * libgomp.h: Declare them.
2061 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2062 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2064 2005-05-04 Richard Henderson <rth@redhat.com>
2066 * libgomp-1 code drop
2068 2005-05-04 Richard Henderson <rth@redhat.com>
2070 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2071 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2072 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2073 (gomp_iter_static_next): Update.
2074 (gomp_ordered_static_next): Update.
2075 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2076 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2077 totally empty range.
2078 (gomp_loop_ordered_static_next): Refine test for calling
2079 gomp_ordered_static_next.
2080 * testsuite/ordered-1.c: Add case for more threads than iterations.
2082 * iter.c (gomp_iter_runtime_next_locked): Remove.
2083 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2084 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2085 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2086 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2087 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2088 gomp_loop_ordered_guided_next): Downcase name, make static, add
2089 an external alias with the old name.
2090 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2091 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2092 switch and call one of the above static functions.
2093 * libgomp.h: Update.
2095 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2096 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2097 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2098 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2099 GOMP_loop_ordered_guided_start): Update to match.
2100 * sections.c (GOMP_sections_start): Likewise.
2101 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2103 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2104 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2105 Use bounds check instead of modulus.
2106 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2107 (gomp_ordered_last): Don't sync with ordered_owner here.
2108 (gomp_ordered_next): Likewise.
2109 (gomp_ordered_static_loop_next): Likewise.
2110 * loop.c, libgomp.h: Update to match.
2112 * libgomp.h (GOMP_barrier): Declare.
2114 * testsuite/barrier-1.c: New file.
2115 * testsuite/critical-1.c: New file.
2116 * testsuite/ordered-2.c: New file.
2117 * testsuite/ordered-1.c: New file.
2118 * testsuite/sections-1.c: New file.
2119 * testsuite/single-1.c: New file.
2120 * testsuite/Makefile (TESTS): Add them.
2122 2005-05-04 Richard Henderson <rth@redhat.com>
2124 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2125 * loop.c (GOMP_loop_static_start): If not the startup thread,
2126 acquire the mutex to wait for initialization complete.
2127 (GOMP_loop_ordered_static_start): Likewise.
2128 (GOMP_loop_ordered_runtime_start): Likewise.
2129 (GOMP_loop_ordered_static_first): Remove.
2130 (GOMP_loop_ordered_dynamic_first): Remove.
2131 (GOMP_loop_ordered_guided_first): Remove.
2132 (GOMP_loop_ordered_runtime_first): Remove.
2133 * ordered.c (gomp_ordered_loop_first): Post to own release when
2134 we're the first thread.
2135 (gomp_ordered_loop_last): Wait on release if not owner.
2136 (gomp_ordered_loop_next): Likewise.
2137 (gomp_ordered_static_loop_init): New.
2138 (gomp_ordered_static_loop_next): Use ordered_owner.
2139 (GOMP_ordered_start): Likewise.
2140 * work.c (gomp_new_work_share): Initialize ordered_owner.
2142 2005-05-03 Richard Henderson <rth@redhat.com>
2144 * Makefile (OPT): New.
2147 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2148 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2149 * libgomp.h, libgomp.map, NOTES: Update to match.
2151 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2152 Add initialized and thr members.
2153 (gomp_thread_start): Pause when initially spawned to wait for
2154 the whole team to be created.
2155 (gomp_team_start): Release team members at the end.
2157 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2158 (f_foo_1): Use GOMP_loop_end.
2159 (f_foo_2): Use GOMP_loop_end_nowait.
2161 * testsuite/loop-2.c: New file.
2162 * testsuite/Makefile (TESTS): Add it.
2164 2005-05-03 Richard Henderson <rth@redhat.com>
2166 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2167 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2168 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2171 * testsuite/Makefile: New file.
2172 * testsuite/loop-1.c: New file.
2174 2005-05-03 Richard Henderson <rth@redhat.com>
2176 Initial implementation and checkin.