1 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3 * libgomp.texi (omp_test_lock): Fix typo.
5 2008-06-12 Tobias Burnus <burnus@net-b.de>
7 * omp_lib.f90.in: Add "implicit none".
9 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12 * testsuite/libgomp.c/reduction-5.c: New test.
14 2008-06-11 Jakub Jelinek <jakub@redhat.com>
16 * libgomp.h (struct gomp_task): Add in_tied_task field.
17 * task.c (gomp_init_task): Initialize it.
18 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
19 unconditionally. Don't call gomp_team_barrier_wake if
20 current task is implicit or if(0) from implicit and number of
21 running tasks is equal to nthreads - 1.
24 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
25 omp_get_team_size_8): Fix pastos.
28 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
29 * configure: Regenerated.
30 * config.h.in: Regenerated.
31 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
34 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
37 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
38 (GOMP_loop_ull_dynamic_start): Likewise.
39 (GOMP_loop_ull_guided_start): Likewise.
40 (GOMP_loop_ull_ordered_static_start): Likewise.
41 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
42 (GOMP_loop_ull_ordered_guided_start): Likewise.
44 2008-06-06 Jakub Jelinek <jakub@redhat.com>
45 Richard Henderson <rth@redhat.com>
46 Ulrich Drepper <drepper@redhat.com>
47 Jakob Blomer <jakob.blomer@ira.uka.de>
49 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
50 Substitute also OMP_*LOCK_25*.
51 * configure: Regenerated.
52 * config.h.in: Regenerated.
53 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
55 * Makefile.in: Regenerated.
56 * testsuite/Makefile.in: Regenerated.
58 * loop_ull.c: New file.
59 * iter_ull.c: New file.
60 * libgomp.h: Include ptrlock.h.
61 (enum gomp_task_kind): New type.
62 (struct gomp_team): Add task_lock, task_queue, task_count,
63 task_running_count, single_count fields. Add
64 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
65 Remove work_share_lock, generation_mask,
66 oldest_live_gen, num_live_gen and init_work_shares fields, add
67 work work_share_list_alloc, work_share_list_free and work_share_chunk
68 fields. Change work_shares from pointer to pointers into an array.
69 Change ordered_release field into gomp_sem_t ** from flexible array
70 member. Add implicit_task and initial_work_shares fields.
71 Move close to the end of the struct.
72 (struct gomp_team_state): Add single_count, last_work_share,
73 active_level and level fields, remove work_share_generation.
74 (gomp_barrier_handle_tasks): New prototype.
75 (gomp_finish_task): New inline function.
76 (struct gomp_work_share): Move chunk_size, end, incr into
77 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
78 next_ll fields. Reshuffle fields. Add next_alloc,
79 next_ws, next_free and inline_ordered_team_ids fields, change
80 ordered_team_ids into pointer from flexible array member.
81 Add mode field. Put lock and next into a different cache line
82 from most of the write-once fields.
83 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
84 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
85 gomp_iter_ull_guided_next): New prototypes.
86 (gomp_new_icv): New prototype.
87 (struct gomp_thread): Add thread_pool and task fields.
88 (struct gomp_thread_pool): New type.
89 (gomp_new_team): New prototype.
90 (gomp_team_start): Change type of last argument.
91 (gomp_new_work_share): Removed.
92 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
93 (gomp_work_share_init_done): New static inline.
94 (gomp_throttled_spin_count_var, gomp_available_cpus,
95 gomp_managed_threads): New extern decls.
96 (gomp_init_task): New prototype.
97 (gomp_spin_count_var): New extern var decl.
98 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
99 or no alias support, or if not PIC.
100 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
101 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
102 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
103 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
104 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
105 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
106 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
107 gomp_test_nest_lock_25): New prototypes.
108 (omp_lock_symver, strong_alias): Define.
109 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
111 (gomp_end_task): New.
112 (struct gomp_task_icv, gomp_global_icv): New.
113 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
114 (struct gomp_task): New.
115 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
116 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
118 (gomp_schedule_type): Reorder enum to match
120 * team.c (struct gomp_thread_start_data): Add thread_pool and task
122 (gomp_thread_start): Add gomp_team_barrier_wait call.
123 For non-nested case remove clearing of docked thread thr fields.
124 Use pool fields instead of global gomp_* variables. Use
125 gomp_barrier_wait_last when needed. Initialize ts.active_level.
126 Create tasks for each member thread.
127 (free_team): Only destroy team barrier, task_lock here and free it.
128 (gomp_free_thread): Free last_team if non-NULL.
129 (gomp_team_end): Call gomp_team_barrier_wait instead of
130 gomp_barrier_wait. For nested case call one extra
131 gomp_barrier_wait. Move here some destruction from free_team.
132 Call free_team on pool->last_team if any, rather than freeing
133 current team. Destroy work_share_list_free_lock ifndef
135 (gomp_new_icv): New function.
136 (gomp_threads, gomp_threads_size, gomp_threads_used,
137 gomp_threads_dock): Removed.
138 (gomp_thread_destructor): New variable.
139 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
141 (gomp_team_start): Create new pool if current thread doesn't have
142 one. Use pool fields instead of global gomp_* variables.
143 Initialize thread_pool field for new threads. Clear single_count.
144 Change last argument from ws to team, don't create
145 new team, set ts.work_share to &team->work_shares[0] and clear
146 ts.last_work_share. Don't clear ts.work_share_generation.
147 If number of threads changed, adjust atomically gomp_managed_threads.
148 Use gomp_init_task instead of gomp_new_task,
149 set thr->task to the corresponding implicit_task array entry.
150 Create tasks for each member thread. Initialize ts.level.
151 (initialize_team): Call pthread_key_create on
152 gomp_thread_destructor.
153 (team_destructor): New function.
155 (gomp_new_team): New function.
156 (free_team): Free gomp_work_share blocks chained through next_alloc,
157 instead of freeing work_shares and destroying work_share_lock.
158 (gomp_team_end): Call gomp_fini_work_share. If number of threads
159 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
160 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
161 of gomp_barrier_wait.
162 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
163 instead of gomp_barrier_wait. Call gomp_work_share_init_done
164 if gomp_work_share_start returned true. Don't unlock ws->lock.
165 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
166 of gomp_barrier_wait.
167 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
168 gomp_work_share_init_done if gomp_work_share_start returned true.
169 Don't unlock ws->lock.
170 * work.c: Include stddef.h.
171 (free_work_share): Use work_share_list_free_lock instead
172 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
173 Call gomp_fini_work_share and then either free ws if orphaned, or
174 put it into work_share_list_free list of the current team.
175 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
177 (gomp_work_share_start, gomp_work_share_end,
178 gomp_work_share_end_nowait): Rewritten.
179 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
180 (openmp_version): Set to 200805.
181 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
182 omp_sched_guided, omp_sched_auto): New parameters.
183 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
184 omp_set_max_active_levels, omp_get_max_active_levels,
185 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
186 omp_get_active_level): New interfaces.
187 * omp_lib.h.in (openmp_version): Set to 200805.
188 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
189 omp_sched_guided, omp_sched_auto): New parameters.
190 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
191 omp_set_max_active_levels, omp_get_max_active_levels,
192 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
193 omp_get_active_level): New externals.
194 * loop.c: Include limits.h.
195 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
197 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
198 Likewise. Use gomp_icv.
199 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
201 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
202 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
203 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
204 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
205 don't unlock ws->lock, otherwise lock it.
206 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
207 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
208 (gomp_parallel_loop_start): Call gomp_new_team instead of
209 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
210 Adjust gomp_team_start caller. Pass 0 as second argument to
211 gomp_resolve_num_threads.
212 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
213 If adding ws->chunk_size nthreads + 1 times after end won't
214 overflow, set ws->mode to 1.
215 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
216 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
217 GOMP_loop_ull_ordered_static_start,
218 GOMP_loop_ull_ordered_dynamic_start,
219 GOMP_loop_ull_ordered_guided_start,
220 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
221 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
222 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
223 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
224 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
226 * libgomp.map: Export lock routines also @@OMP_2.0.
227 (GOMP_loop_ordered_dynamic_first,
228 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
229 GOMP_loop_ordered_static_first): Remove.
230 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
231 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
232 GOMP_loop_ull_ordered_dynamic_next,
233 GOMP_loop_ull_ordered_dynamic_start,
234 GOMP_loop_ull_ordered_guided_next,
235 GOMP_loop_ull_ordered_guided_start,
236 GOMP_loop_ull_ordered_runtime_next,
237 GOMP_loop_ull_ordered_runtime_start,
238 GOMP_loop_ull_ordered_static_next,
239 GOMP_loop_ull_ordered_static_start,
240 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
241 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
242 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
243 (omp_set_schedule, omp_get_schedule,
244 omp_get_thread_limit, omp_set_max_active_levels,
245 omp_get_max_active_levels, omp_get_level,
246 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
247 omp_set_schedule_, omp_set_schedule_8_,
248 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
249 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
250 omp_get_max_active_levels_, omp_get_level_,
251 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
252 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
253 New exports @@OMP_3.0.
254 * omp.h.in (omp_sched_t): New type.
255 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
256 omp_set_max_active_levels, omp_get_max_active_levels,
257 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
258 omp_get_active_level): New prototypes.
259 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
260 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
261 gomp_thread_limit_var, gomp_remaining_threads_count,
262 gomp_remaining_threads_lock): New variables.
263 (parse_spincount): New function.
264 (initialize_env): Call gomp_init_num_threads unconditionally.
265 Initialize gomp_available_cpus. Call parse_spincount,
266 initialize gomp_{,throttled_}spin_count_var
267 depending on presence and value of OMP_WAIT_POLICY and
268 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
269 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
270 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
271 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
272 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
273 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
274 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
275 (gomp_global_icv): New.
276 (parse_schedule): Use it. Parse "auto".
277 (omp_set_num_threads): Use gomp_icv.
278 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
280 (omp_get_max_threads): Move from parallel.c.
281 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
282 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
284 (parse_stacksize, parse_wait_policy): New functions.
285 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
286 both wrappers for compatibility and new locks.
287 (omp_set_schedule, omp_get_schedule,
288 omp_get_thread_limit, omp_set_max_active_levels,
289 omp_get_max_active_levels, omp_get_level,
290 omp_get_ancestor_thread_num, omp_get_team_size,
291 omp_get_active_level): New ialias_redirect.
292 (omp_set_schedule_, omp_set_schedule_8_,
293 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
294 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
295 omp_get_max_active_levels_, omp_get_level_,
296 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
297 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
299 * parallel.c: Include limits.h.
300 (gomp_resolve_num_threads): Add count argument. Rewritten.
301 (GOMP_parallel_start): Call gomp_new_team and pass that as last
302 argument to gomp_team_start. Pass 0 as second argument to
303 gomp_resolve_num_threads.
304 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
305 if gomp_thread_limit_var != ULONG_MAX.
306 (omp_in_parallel): Implement using ts.active_level.
307 (omp_get_max_threads): Move to env.c.
308 (omp_get_level, omp_get_ancestor_thread_num,
309 omp_get_team_size, omp_get_active_level): New functions,
311 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
312 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
313 gomp_iter_dynamic_next instead of the _locked variant and don't take
314 lock around it, otherwise acquire it before calling
315 gomp_iter_dynamic_next_locked.
316 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
317 gomp_iter_dynamic_next instead of the _locked variant and don't take
319 (GOMP_parallel_sections_start): Call gomp_new_team instead of
320 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
321 Adjust gomp_team_start caller. Pass count as second argument to
322 gomp_resolve_num_threads, don't adjust num_threads after the call.
324 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
325 ws->chunk_size by incr.
326 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
328 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
330 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
331 (omp_check_defines): Check even the compat defines.
332 * config/linux/ptrlock.c: New file.
333 * config/linux/ptrlock.h: New file.
334 * config/linux/wait.h: New file.
335 * config/posix/ptrlock.c: New file.
336 * config/posix/ptrlock.h: New file.
337 * config/linux/bar.h (gomp_team_barrier_wait,
338 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
339 (gomp_team_barrier_set_task_pending,
340 gomp_team_barrier_clear_task_pending,
341 gomp_team_barrier_set_waiting_for_tasks,
342 gomp_team_barrier_waiting_for_tasks,
343 gomp_team_barrier_done): New inlines.
344 (gomp_barrier_t): Rewritten.
345 (gomp_barrier_state_t): New typedef.
346 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
347 gomp_barrier_wait_start): Rewritten.
348 (gomp_barrier_wait_end): Change second argument to
349 gomp_barrier_state_t.
350 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
352 * config/linux/bar.c: Include wait.h instead of libgomp.h and
354 (gomp_barrier_wait_end): Rewritten.
355 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
356 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
357 * config/posix/bar.h (gomp_barrier_t): Add generation field.
358 (gomp_barrier_state_t): New typedef.
359 (gomp_team_barrier_wait,
360 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
361 (gomp_barrier_wait_start): Or all but low 2 bits from generation
362 into the return value. Return gomp_barrier_state_t.
363 (gomp_team_barrier_set_task_pending,
364 gomp_team_barrier_clear_task_pending,
365 gomp_team_barrier_set_waiting_for_tasks,
366 gomp_team_barrier_waiting_for_tasks,
367 gomp_team_barrier_done): New inlines.
368 (gomp_barrier_wait_end): Change second argument to
369 gomp_barrier_state_t.
370 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
372 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
373 (gomp_barrier_wait_end): Change second argument to
374 gomp_barrier_state_t.
375 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
376 gomp_team_barrier_wake): New functions.
377 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
379 (gomp_futex_wake, gomp_futex_wait): New variables.
380 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
381 * config/linux/lock.c: Rewrite to make locks task owned,
382 for backwards compatibility provide the old entrypoints
383 if symbol versioning. Include wait.h instead of libgomp.h and
385 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
386 * config/posix95/lock.c: Rewrite to make locks task owned,
387 for backwards compatibility provide the old entrypoints
388 if symbol versioning.
389 * config/posix/lock.c: Rewrite to make locks task owned,
390 for backwards compatibility provide the old entrypoints
391 if symbol versioning.
392 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
393 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
394 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
395 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
396 (sys_futex0): Return error code.
397 (futex_wake, futex_wait): If ENOSYS was returned, clear
398 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
399 (cpu_relax, atomic_write_barrier): New static inlines.
400 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
401 (futex_wake, futex_wait): If ENOSYS was returned, clear
402 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
403 (cpu_relax, atomic_write_barrier): New static inlines.
404 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
405 (sys_futex0): Return error code.
406 (futex_wake, futex_wait): If ENOSYS was returned, clear
407 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
408 (cpu_relax, atomic_write_barrier): New static inlines.
409 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
410 (sys_futex0): Return error code.
411 (futex_wake, futex_wait): If ENOSYS was returned, clear
412 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
413 (cpu_relax, atomic_write_barrier): New static inlines.
414 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
415 (sys_futex0): Return error code.
416 (futex_wake, futex_wait): If ENOSYS was returned, clear
417 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
418 (cpu_relax, atomic_write_barrier): New static inlines.
419 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
420 (sys_futex0): Return error code.
421 (futex_wake, futex_wait): If ENOSYS was returned, clear
422 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
423 (cpu_relax, atomic_write_barrier): New static inlines.
424 * config/linux/sem.c: Include wait.h instead of libgomp.h and
426 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
427 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
428 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
430 (omp_nest_lock_t): Change owner into void *, add lock field.
431 * config/posix95/omp-lock.h: Include semaphore.h.
432 (omp_lock_25_t, omp_nest_lock_25_t): New types.
433 (omp_lock_t): Use sem_t instead of mutex if semaphores
435 (omp_nest_lock_t): Likewise. Change owner to void *.
436 * config/posix/omp-lock.h: Include semaphore.h.
437 (omp_lock_25_t, omp_nest_lock_25_t): New types.
438 (omp_lock_t): Use sem_t instead of mutex if semaphores
440 (omp_nest_lock_t): Likewise. Add owner field.
442 2008-06-06 Jakub Jelinek <jakub@redhat.com>
444 * testsuite/libgomp.c/collapse-1.c: New test.
445 * testsuite/libgomp.c/collapse-2.c: New test.
446 * testsuite/libgomp.c/collapse-3.c: New test.
447 * testsuite/libgomp.c/icv-1.c: New test.
448 * testsuite/libgomp.c/icv-2.c: New test.
449 * testsuite/libgomp.c/lib-2.c: New test.
450 * testsuite/libgomp.c/lock-1.c: New test.
451 * testsuite/libgomp.c/lock-2.c: New test.
452 * testsuite/libgomp.c/lock-3.c: New test.
453 * testsuite/libgomp.c/loop-4.c: New test.
454 * testsuite/libgomp.c/loop-5.c: New test.
455 * testsuite/libgomp.c/loop-6.c: New test.
456 * testsuite/libgomp.c/loop-7.c: New test.
457 * testsuite/libgomp.c/loop-8.c: New test.
458 * testsuite/libgomp.c/loop-9.c: New test.
459 * testsuite/libgomp.c/nested-3.c: New test.
460 * testsuite/libgomp.c/nestedfn-6.c: New test.
461 * testsuite/libgomp.c/sort-1.c: New test.
462 * testsuite/libgomp.c/task-1.c: New test.
463 * testsuite/libgomp.c/task-2.c: New test.
464 * testsuite/libgomp.c/task-3.c: New test.
465 * testsuite/libgomp.c/task-4.c: New test.
466 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
467 to C++ testsuite default compiler options.
468 * testsuite/libgomp.c++/collapse-1.C: New test.
469 * testsuite/libgomp.c++/collapse-2.C: New test.
470 * testsuite/libgomp.c++/ctor-10.C: New test.
471 * testsuite/libgomp.c++/for-1.C: New test.
472 * testsuite/libgomp.c++/for-2.C: New test.
473 * testsuite/libgomp.c++/for-3.C: New test.
474 * testsuite/libgomp.c++/for-4.C: New test.
475 * testsuite/libgomp.c++/for-5.C: New test.
476 * testsuite/libgomp.c++/loop-8.C: New test.
477 * testsuite/libgomp.c++/loop-9.C: New test.
478 * testsuite/libgomp.c++/loop-10.C: New test.
479 * testsuite/libgomp.c++/task-1.C: New test.
480 * testsuite/libgomp.c++/task-2.C: New test.
481 * testsuite/libgomp.c++/task-3.C: New test.
482 * testsuite/libgomp.c++/task-4.C: New test.
483 * testsuite/libgomp.c++/task-5.C: New test.
484 * testsuite/libgomp.c++/task-6.C: New test.
485 * testsuite/libgomp.fortran/allocatable1.f90: New test.
486 * testsuite/libgomp.fortran/allocatable2.f90: New test.
487 * testsuite/libgomp.fortran/allocatable3.f90: New test.
488 * testsuite/libgomp.fortran/allocatable4.f90: New test.
489 * testsuite/libgomp.fortran/collapse1.f90: New test.
490 * testsuite/libgomp.fortran/collapse2.f90: New test.
491 * testsuite/libgomp.fortran/collapse3.f90: New test.
492 * testsuite/libgomp.fortran/collapse4.f90: New test.
493 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
494 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
495 * testsuite/libgomp.fortran/lib4.f90: New test.
496 * testsuite/libgomp.fortran/lock-1.f90: New test.
497 * testsuite/libgomp.fortran/lock-2.f90: New test.
498 * testsuite/libgomp.fortran/nested1.f90: New test.
499 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
500 * testsuite/libgomp.fortran/strassen.f90: New test.
501 * testsuite/libgomp.fortran/tabs1.f90: New test.
502 * testsuite/libgomp.fortran/tabs2.f: New test.
503 * testsuite/libgomp.fortran/task1.f90: New test.
504 * testsuite/libgomp.fortran/task2.f90: New test.
505 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
506 * testsuite/libgomp.fortran/vla5.f90: Likewise.
507 * testsuite/libgomp.c/pr26943-2.c: Likewise.
508 * testsuite/libgomp.c/pr26943-3.c: Likewise.
509 * testsuite/libgomp.c/pr26943-4.c: Likewise.
511 2008-05-23 Jakub Jelinek <jakub@redhat.com>
514 * testsuite/libgomp.c++/ctor-11.C: New test.
515 * testsuite/libgomp.c++/ctor-12.C: New test.
517 2008-05-15 Janis Johnson <janis187@us.ibm.com>
519 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
521 2008-05-07 Jakub Jelinek <jakub@redhat.com>
524 * testsuite/libgomp.c/atomic-5.c: New test.
525 * testsuite/libgomp.c/atomic-6.c: New test.
526 * testsuite/libgomp.c/autopar-1.c: New test.
528 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
530 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
531 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
532 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
533 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
534 * configure: Regenerate.
535 * Makefile.in, testsuite/Makefile.in: Likewise.
537 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
540 * aclocal.m4: Regenerate.
541 * configure: Regenerate.
543 2008-03-18 Jakub Jelinek <jakub@redhat.com>
546 * testsuite/libgomp.c/atomic-4.c: New test.
549 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
550 (gomp_iter_guided_next): Likewise.
551 * testsuite/libgomp.c/pr35625.c: New test.
553 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
555 * aclocal.m4: Regenerate.
556 * configure: Likewise.
557 * Makefile.in: Likewise.
558 * testsuite/Makefile.in: Likewise.
560 2008-03-13 Jakub Jelinek <jakub@redhat.com>
563 * testsuite/libgomp.c++/pr35185.C: New test.
565 2008-03-12 Jakub Jelinek <jakub@redhat.com>
568 * testsuite/libgomp.c/pr35549.c: New test.
570 2008-03-06 Jakub Jelinek <jakub@redhat.com>
572 * testsuite/libgomp.c/atomic-3.c: New test.
574 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
577 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
580 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
583 * configure.ac: Add ACX_HEADER_STRING.
584 * env.c: Include strings.h.
585 * aclocal.m4: Regenerate.
586 * config.h.in: Regenerate.
587 * configure: Regenerate.
588 * Makefile.in: Regenerate.
589 * testsuite/Makefile.in: Regenerate.
591 2008-02-15 Jakub Jelinek <jakub@redhat.com>
594 * testsuite/libgomp.c/pr35196.c: New test.
597 * testsuite/libgomp.fortran/pr35130.f90: New test.
598 * testsuite/libgomp.c/pr35130.c: New test.
600 2008-01-25 Jakub Jelinek <jakub@redhat.com>
603 * testsuite/libgomp.c/pr33880.c: New test.
604 * testsuite/libgomp.fortran/pr33880.f90: New test.
606 2008-01-24 David Edelsohn <edelsohn@gnu.org>
608 * configure: Regenerate.
610 2008-01-08 Jakub Jelinek <jakub@redhat.com>
612 * configure.ac: Move futex checking into ../config/futex.m4.
613 * configure: Rebuilt.
614 * aclocal.m4: Rebuilt.
615 * Makefile.in: Rebuilt.
617 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
618 2007-10-15 ../config/tls.m4 change.
620 2007-12-19 Jakub Jelinek <jakub@redhat.com>
623 * testsuite/libgomp.c/pr34513.c: New test.
624 * testsuite/libgomp.c++/pr34513.C: New test.
626 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
629 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
631 2007-12-04 Jakub Jelinek <jakub@redhat.com>
633 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
635 2007-12-03 Jakub Jelinek <jakub@redhat.com>
637 * testsuite/libgomp.c/private-1.c: New test.
639 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
640 Paolo Bonzini <bonzini@gnu.org>
642 * Makefile.am: Use space as vpath separator. Use 'vpath %'
643 instead of 'VPATH ='.
644 * Makefile.in: Regenerate.
646 2007-11-23 Matthias Klose <doko@ubuntu.com>
648 * configure.ac: Adjust makeinfo version check.
649 * configure: Regenerate.
651 2007-11-10 Jakub Jelinek <jakub@redhat.com>
654 * testsuite/libgomp.fortran/pr34020.f90: New test.
656 2007-11-06 Jakub Jelinek <jakub@redhat.com>
659 * testsuite/libgomp.c++/atomic-1.C: New test.
661 2007-10-25 Jakub Jelinek <jakub@redhat.com>
664 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
665 Make x and y integers rather than (implicit) reals. Add private (j)
666 clause to the last omp parallel.
668 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
670 * configure: Regenerate following changes to ../config/tls.m4.
672 2007-09-28 Jakub Jelinek <jakub@redhat.com>
674 * testsuite/libgomp.fortran/stack.f90: New test.
676 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
678 * config/mingw32/proc.c: New file.
680 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
682 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
683 (main): Use __get_cpuid to get i386 target fetaures.
684 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
685 (main): Use __get_cpuid to get x86_64 target fetaures.
687 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
690 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
691 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
693 2007-07-12 Jakub Jelinek <jakub@redhat.com>
696 * testsuite/libgomp.fortran/pr32550.f90: New test.
697 * testsuite/libgomp.fortran/crayptr2.f90: New test.
699 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
701 * aclocal.m4: Regenerated.
703 2007-07-05 Tobias Burnus <burnus@net-b.de>
706 * testsuite/libgomp.fortran/pr32359.f90: New.
708 2007-07-02 Jakub Jelinek <jakub@redhat.com>
711 * sections.c (GOMP_parallel_sections_start): Only decrease
712 number of threads to COUNT if dyn_var is true.
713 * testsuite/libgomp.c/pr32468.c: New test.
715 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
718 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
720 2007-06-21 Jakub Jelinek <jakub@redhat.com>
723 * testsuite/libgomp.c/pr32362-1.c: New test.
724 * testsuite/libgomp.c/pr32362-2.c: New test.
725 * testsuite/libgomp.c/pr32362-3.c: New test.
727 2007-06-07 Jakub Jelinek <jakub@redhat.com>
729 * team.c (gomp_team_start): Fix setting up thread_attr
732 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
734 * configure: Regenerate.
736 2007-05-23 Steve Ellcey <sje@cup.hp.com>
738 * Makefile.in: Regenerate.
739 * configure: Regenerate.
740 * aclocal.m4: Regenerate.
741 * testsuite/Makefile.in: Regenerate.
743 2007-05-04 Jakub Jelinek <jakub@redhat.com>
745 * config/linux/proc.c: New file.
748 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
750 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
752 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
754 2007-04-16 Matthias Klose <doko@debian.org>
756 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
757 flags if not building with -m64.
758 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
759 flag for i?86-*-* targets, if current target matches -m64.
761 2007-04-14 Steve Ellcey <sje@cup.hp.com>
763 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
764 * Makefile.in: Regenerate.
766 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
769 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
771 * testsuite/libgomp.fortran/fortran.exp: Likewise.
773 2007-04-04 Jakub Jelinek <jakub@redhat.com>
775 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
777 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
778 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
779 (parse_affinity): New function.
780 (initialize_env): Call it and gomp_init_affinity.
781 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
782 create new pthread_attr_t and call gomp_init_thread_affinity
783 on it for each thread before passing the attribute to pthread_create.
784 * config/linux/affinity.c: New file.
785 * config/posix/affinity.c: New file.
786 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
787 * configure: Rebuilt.
788 * config.h.in: Rebuilt.
789 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
790 * Makefile.in: Rebuilt.
792 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
794 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
796 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
799 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
801 * testsuite/config/default.exp: New file.
802 * testsuite/lib/libgomp.exp: New file.
803 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
804 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
805 load_lib *, load_gcc_lib *): Move to libgomp.exp.
806 (libgomp_load): Remove.
807 * testsuite/lib/libgomp.exp (libgomp_init): Compute
808 always_ld_library_path, not ld_library_path. Set additional_flags
809 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
810 (target_compile): Do not call libgomp_init. Append lang_library_path
811 and lang_link_flags to options.
812 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
813 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
815 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
816 always_ld_library_path. Set LD_LIBRARY_PATH here.
817 * testsuite/libgomp.fortran/fortran.exp: Ditto.
818 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
819 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
821 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
822 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
823 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
824 * testsuite/libgomp.c/pr29947-1.c: Ditto.
825 * testsuite/libgomp.c/atomic-10.c: Ditto.
827 2007-03-21 Jakub Jelinek <jakub@redhat.com>
829 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
830 dg-final cleanup-modules line.
831 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
832 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
833 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
834 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
835 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
836 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
837 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
839 2007-03-18 Andreas Schwab <schwab@suse.de>
841 * acinclude.m4: Adjust regular expression for ld version
843 * configure: Regenerate.
845 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
847 * Makefile.am: Add install-pdf target as copied from
848 automake v1.10 rules.
849 * Makefile.in: Regenerate
851 2007-02-07 Jakub Jelinek <jakub@redhat.com>
854 * configure: Regenerate.
857 * testsuite/libgomp.c++/pr30703.C: New test.
859 2007-02-02 Jakub Jelinek <jakub@redhat.com>
862 2006-07-05 Eric Christopher <echristo@apple.com>
863 * configure.ac: Depend addition of -pthread on host OS.
864 * configure: Regenerate.
866 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
868 * libgomp.texi: Fix spacing after abbreviations.
870 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
873 * configure.ac: Add check for makeinfo
874 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
875 if an appropiate version of makeinfo is found.
876 * aclocal.m4: Regenerated.
877 * configure: Regenerated.
878 * Makefile.in: Regenerated.
879 * testsuite/Makefile.in: Regenerated.
881 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
884 * libgomp.texi: More about implementation-dependent settings.
886 2007-01-26 Tobias Burnus <burnus@net-b.de>
888 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
890 2007-01-24 Jakub Jelinek <jakub@redhat.com>
893 * testsuite/libgomp.c/pr30494.c: New test.
895 2007-01-15 Tom Tromey <tromey@redhat.com>
897 * configure: Rebuilt.
898 * configure.ac: Fixed comment.
900 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
902 * libgomp.texi: Document implementation specific default values of
903 environment variables.
905 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
908 * libgomp.texi: New file.
909 * configure.ac: Add --enable-generated-files-in-srcdir option.
910 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
912 * Makefile.in: Regenerated.
913 * config.h.in: Regenerated.
914 * testsuite/Makefile.in: Regenerated.
917 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
920 * env.c (omp_set_num_threads): Set illegal thread count to 1.
922 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
924 * configure: Regenerate.
926 2006-12-04 Jakub Jelinek <jakub@redhat.com>
929 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
930 start if there shouldn't be any loop iterations.
931 (gomp_loop_ordered_static_start): Remove start == end test.
932 * testsuite/libgomp.c/pr29947-1.c: New test.
933 * testsuite/libgomp.c/pr29947-2.c: New test.
935 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
937 * configure.tgt: Force initial-exec TLS model on Linux only.
939 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
941 * configure: Regenerated.
943 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
945 * env.c (parse_schedule): Reject out of range values.
946 (parse_unsigned_long): Reject out of range, negative or zero values.
948 2006-10-29 Jakub Jelinek <jakub@redhat.com>
951 * testsuite/libgomp.fortran/pr29629.f90: New test.
953 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
956 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
957 * config/posix95: New directory.
958 * config/posix95/omp-lock.h: New file.
959 * config/posix95/lock.c: Likewise.
961 2006-10-14 Geoffrey Keating <geoffk@apple.com>
963 * aclocal.m4: Regenerate.
964 * configure: Regenerate.
966 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
968 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
971 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
973 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
975 * configure: Regenerate.
976 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
978 2006-09-26 Jakub Jelinek <jakub@redhat.com>
982 * testsuite/libgomp.c/nestedfn-4.c: New test.
983 * testsuite/libgomp.c/nestedfn-5.c: New test.
984 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
987 * testsuite/libgomp.fortran/condinc1.f: New test.
988 * testsuite/libgomp.fortran/condinc2.f: New test.
989 * testsuite/libgomp.fortran/condinc3.f90: New test.
990 * testsuite/libgomp.fortran/condinc4.f90: New test.
991 * testsuite/libgomp.fortran/condinc1.inc: New file.
993 2006-09-18 Tom Tromey <tromey@redhat.com>
995 * configure: Rebuilt.
997 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1000 PR preprocessor/14634
1001 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1003 * configure: Regenerate.
1005 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1007 * testsuite/libgomp.fortran/reduction3.f90: Change
1008 -2147483648 to -huge(i)-1 to avoid overflow.
1009 * testsuite/libgomp.fortran/reduction4.f90: Change
1010 Z'ffffffff' to not(0) to avoid overflow.
1012 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1015 * Makefile.am (libsubincludedir): New.
1016 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1017 * Makefile.in: Regenerate.
1019 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1022 * env.c: Include ctype.h.
1023 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1024 leading and/or trailing whitespace and compare strings case
1027 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1030 * testsuite/libgomp.fortran/pr28390.f: New test.
1032 2006-07-05 Eric Christopher <echristo@apple.com>
1034 * configure.ac: Depend addition of -pthread on host OS.
1035 * configure: Regenerate.
1037 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1039 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1040 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1043 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1047 * configure.ac: If neither --enable-linux-futex nor
1048 --disable-linux-futex is passed, determine the default by checking
1049 for compiling and/or running against NPTL. With --enable-linux-futex,
1050 check if SYS_gettid and SYS_futex are defined.
1051 * configure: Rebuilt.
1053 2006-06-14 Richard Henderson <rth@redhat.com>
1056 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1057 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1059 2006-06-09 Richard Henderson <rth@redhat.com>
1061 * env.c (gomp_nthreads_var): Change to unsigned long.
1062 (gomp_run_sched_chunk): Likewise.
1063 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1064 (initialize_env): Initialize gomp_thread_attr.
1065 * libgomp.h (gomp_nthreads_var): Update decl.
1066 (gomp_run_sched_chunk): Likewise.
1067 (gomp_thread_attr): Declare.
1068 * team.c (gomp_thread_attr): Export.
1069 (initialize_team): Don't initialize it.
1071 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1074 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1075 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1077 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1079 * config/mingw32/time.c: New file.
1080 * configure.tgt: Use it.
1082 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1084 * Makefile.am: Add install-html target. Add install-html to .PHONY
1085 * Makefile.in: Regenerate.
1087 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1090 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1091 * testsuite/libgomp.c/critical-1.c: Likewise.
1092 * testsuite/libgomp.c/loop-1.c: Likewise.
1093 * testsuite/libgomp.c/loop-2.c: Likewise.
1094 * testsuite/libgomp.c/single-1.c: Likewise.
1095 * testsuite/libgomp.c/ordered-1.c: Likewise.
1096 * testsuite/libgomp.c/ordered-2.c: Likewise.
1098 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1101 * libgomp.fortran/pr27416-1.f90: New test.
1103 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1106 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1107 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1109 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1112 * testsuite/libgomp.c/pr26943-1.c: New test.
1113 * testsuite/libgomp.c/pr26943-2.c: New test.
1114 * testsuite/libgomp.c/pr26943-3.c: New test.
1115 * testsuite/libgomp.c/pr26943-4.c: New test.
1116 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1117 * testsuite/libgomp.c++/pr26943.C: New test.
1119 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1122 * testsuite/libgomp.c++/pr27337.C: New test.
1124 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1127 * testsuite/libgomp.c/pr26171.c: New test.
1129 2006-04-25 Richard Henderson <rth@redhat.com>
1132 * configure.ac: Use GCC_CHECK_TLS.
1133 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1134 * Makefile.in, aclocal.m4, configure: Regenerate.
1136 2006-04-10 Matthias Klose <doko@debian.org>
1138 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1139 directory names containing underscores.
1141 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1144 * testsuite/libgomp.c++/pr26691.C: New test.
1146 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1148 * testsuite/libgomp.fortran/retval2.f90: New test.
1150 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1152 * testsuite/libgomp.c++: New directory.
1154 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1156 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1157 * config/posix/sem.c: Implement the above.
1159 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1161 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1162 define HAVE_BROKEN_POSIX_SEMAPHORES.
1163 * configure: Rebuilt.
1164 * config.h.in: Rebuilt.
1166 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1169 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1170 for the other pthread check.
1171 * configure: Regenerate.
1172 * config.h.in: Regenerate.
1174 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1178 * Makefile.am (fincludedir): New variable.
1179 (nodist_include_HEADERS): Remove Fortran files.
1180 (nodist_finclude_HEADERS): New variable.
1181 * Makefile.in: Regenerated.
1183 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1185 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1186 Remove tests for returning assumed character length arrays.
1188 2006-02-12 Roger Sayle <roger@eyesopen.com>
1189 John David Anglin <dave@hiauly1.hia.nrc.ca>
1192 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1194 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1196 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1198 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1200 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1201 part of LD_LIBRARY_PATH manually.
1203 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1206 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1209 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1212 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1213 * configure.ac (PERL): Don't set.
1214 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1215 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1216 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1217 * omp.h.in: Wrap the new configure substitutions with @ characters.
1218 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1219 * aclocal.m4, configure, Makefile.in: Regenerate.
1220 * mkomp_h.pl: Delete.
1222 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1225 * configure.ac: Use GCC_HEADER_STDINT.
1226 * libgomp.h: Include gstdint.h.
1227 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1228 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1230 2006-01-24 Richard Henderson <rth@redhat.com>
1233 * configure.ac: Add AM_MAINTAINER_MODE.
1234 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1236 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1238 * Makefile.in: Regenerate.
1239 * testsuite/Makefile.in: Regenerate.
1240 * aclocal.m4: Regenerate.
1242 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1244 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1246 * configure.ac: Add check for loadavg.h.
1247 (link_gomp): Adjust comment.
1248 * configure: Regenerate.
1249 * config.h.in: Regenerate.
1251 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1254 * configure.ac: Remove check for alloca.h.
1255 * configure: Regenerate.
1256 * config.h.in: Regenerate.
1257 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1258 * team.c: Remove use of alloca.h.
1259 Call gomp_alloca instead of alloca.
1261 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1264 * team.c: Add include of alloca.h.
1265 * configure.ac: Add check for alloca.h.
1266 * configure: Regenerate.
1267 * config.h.in: Regenerate.
1269 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1272 * testsuite/libgomp.fortran/pr25219.f90: New test.
1274 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1276 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1277 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1278 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1279 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1280 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1281 testsuite/libgomp.fortran/threadprivate1.f90,
1282 testsuite/libgomp.fortran/threadprivate2.f90,
1283 testsuite/libgomp.fortran/threadprivate3.f90,
1284 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1285 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1286 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1287 effective-target to TLS runtime.
1289 * testsuite/libgomp.fortran/pr25162.f: Require
1290 effective-target TLS runtime.
1292 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1294 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1295 * testsuite/libgomp.c/nestedfn-3.c: New test.
1297 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1300 * testsuite/libgomp.fortran/pr25162.f: New test.
1302 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1304 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1305 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1307 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1309 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1310 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1311 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1312 single.c, team.c, work.c, config/linux/alpha/futex.h,
1313 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1314 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1315 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1316 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1317 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1318 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1319 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1322 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1324 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1325 to nodist_noinst_HEADERS.
1326 * Makefile.in: Rebuilt.
1328 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1329 add integer count field.
1330 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1331 omp_nest_lock_t type change.
1332 (omp_init_nest_lock): Likewise. Initialize count to 0.
1333 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1335 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1337 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1338 Increment count if successful and return the new nesting level.
1339 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1340 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1341 * testsuite/libgomp.c/lib-1.c: New test.
1342 * testsuite/libgomp.fortran/lib1.f90: New test.
1343 * testsuite/libgomp.fortran/lib2.f: New test.
1344 * testsuite/libgomp.fortran/lib3.f: New test.
1346 2005-11-17 Richard Henderson <rth@redhat.com>
1349 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1350 * configure.ac (link_gomp): New. Substitute it.
1351 (AC_CONFIG_FILES): Add libgomp.spec.
1352 * libgomp.spec.in: New file.
1353 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1354 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1356 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1358 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1359 reduction(-:var) behaving the same as reduction(+:var).
1360 * testsuite/libgomp.c/reduction-4.c: New test.
1362 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1364 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1365 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1366 testsuite/libgomp.c/copyin-3.c,
1367 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1368 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1369 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1370 testsuite/libgomp.c++/pr24455.C,
1371 testsuite/libgomp.fortran/threadprivate1.f90,
1372 testsuite/libgomp.fortran/threadprivate2.f90,
1373 testsuite/libgomp.fortran/threadprivate3.f90,
1374 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1375 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1376 testsuite/libgomp.fortran/omp_parse3.f90: Require
1377 effective-target TLS.
1379 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1383 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1386 * team.c (initialize_team): Pass NULL rather than free as
1387 pthread_key_create destructor. Initialize thread specific data
1388 pointer in initial thread to a static local variable rather than
1391 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1393 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1394 its location to ld_library_path.
1396 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1398 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1400 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1402 * testsuite/libgomp.c: Rename from libgomp.dg.
1404 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1406 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1407 threadprivate variable 'i'.
1409 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1411 * config/linux/s390/futex.h: New file.
1412 * configure.tgt: Use it.
1414 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1415 before the parallel.
1417 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1420 * testsuite/libgomp.c++/master-1.C: New test.
1422 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1424 * testsuite/libgomp.dg/copyin-3.c: New test.
1426 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1428 * testsuite/libgomp.fortran/retval1.f90: New test.
1429 * testsuite/libgomp.fortran/vla7.f90: New test.
1431 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1433 * testsuite/libgomp.fortran/vla2.f90: New test.
1434 * testsuite/libgomp.fortran/vla3.f90: New test.
1435 * testsuite/libgomp.fortran/vla4.f90: New test.
1436 * testsuite/libgomp.fortran/vla5.f90: New test.
1437 * testsuite/libgomp.fortran/vla6.f90: New test.
1439 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1441 * config/linux/sparc/futex.h: New file.
1442 * configure.tgt: Use it.
1443 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1445 * critical.c: Include stdlib.h.
1446 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1447 ignoring return value.
1448 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1449 LIBGOMP_CHECK_SYNC_BUILTINS check.
1450 * configure: Rebuilt.
1452 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1454 * testsuite/libgomp.fortran/vla1.f90: New test.
1456 2005-10-31 Richard Henderson <rth@redhat.com>
1458 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1459 setting 's' in different threads.
1461 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1463 * libgomp.h (attribute_hidden, ialias): Define.
1464 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1465 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1466 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1467 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1468 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1469 omp_test_lock, omp_test_nest_lock): Likewise.
1470 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1471 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1472 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1473 omp_test_lock, omp_test_nest_lock): Likewise.
1474 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1475 omp_get_dynamic, omp_get_nested): Likewise.
1476 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1477 omp_get_thread_num, omp_in_parallel): Likewise.
1478 * fortran.c (ialias_redirect): Define.
1479 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1480 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1481 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1482 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1483 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1484 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1485 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1486 omp_get_wtime): Add ialias_redirect.
1488 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1490 * fortran.c: Include stdlib.h.
1492 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1494 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1495 * Makefile.in: Regenerated.
1497 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1499 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1500 * libgomp_f.h.in (omp_check_defines): New function.
1501 * env.c: Include libgomp_f.h.
1502 (initialize_env): Call omp_check_defines.
1504 * testsuite/libgomp.dg/copyin-2.c: New test.
1505 * testsuite/libgomp.c++/copyin-2.C: New test.
1506 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1508 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1509 * testsuite/libgomp.fortran/sharing2.f90: New test.
1511 * testsuite/libgomp.dg/copyin-1.c: New test.
1512 * testsuite/libgomp.c++/copyin-1.C: New test.
1514 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1516 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1518 * testsuite/libgomp.fortran/workshare1.f90: New test.
1520 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1522 * libgomp.fortran/sharing1.f90: New test.
1524 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1527 * testsuite/libgomp.c++/loop-7.C: New test.
1529 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1531 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1532 * testsuite/libgomp.fortran/reduction6.f90: New test.
1533 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1535 2005-10-23 Richard Henderson <rth@redhat.com>
1537 * testsuite/libgomp.c++/ctor-1.C: New.
1538 * testsuite/libgomp.c++/ctor-2.C: New.
1539 * testsuite/libgomp.c++/ctor-3.C: New.
1540 * testsuite/libgomp.c++/ctor-4.C: New.
1541 * testsuite/libgomp.c++/ctor-5.C: New.
1542 * testsuite/libgomp.c++/ctor-6.C: New.
1543 * testsuite/libgomp.c++/ctor-7.C: New.
1544 * testsuite/libgomp.c++/ctor-8.C: New.
1545 * testsuite/libgomp.c++/ctor-9.C: New.
1547 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1550 * testsuite/libgomp.c++/pr24455-1.C: New test.
1551 * testsuite/libgomp.c++/pr24455.C: New test.
1552 * testsuite/libgomp.dg/pr24455-1.c: New test.
1553 * testsuite/libgomp.dg/pr24455.c: New test.
1555 2005-10-20 Richard Henderson <rth@redhat.com>
1557 * testsuite/libgomp.c++/loop-6.C: New.
1558 * testsuite/libgomp.dg/loop-3.c: New.
1560 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1562 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1564 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1567 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1569 * testsuite/libgomp.fortran/jacobi.f: New test.
1571 2005-10-19 Richard Henderson <rth@redhat.com>
1573 * configure.tgt (i?86-linux): Default to with_arch instead of
1574 CFLAGS. Add -mtune to match target_cpu.
1575 (x86_64-linux): Tune to i686.
1577 * fortran.c (omp_test_nest_lock_): Fix typo.
1579 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1581 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1582 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1583 * testsuite/libgomp.dg/ordered-3.c: New test.
1585 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1586 Remove volatile keyword.
1588 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1589 in COMMON block to avoid warnings on 64-bit targets.
1591 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1593 * testsuite/libgomp.dg/shared-3.c: New test.
1595 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1597 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1598 * testsuite/libgomp.fortran/reduction5.f90: New test.
1600 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1602 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1604 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1605 flush loop now that __sync_synchronize has proper memory barrier.
1606 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1607 Add -ffixed-form to dg-options.
1609 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1611 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1612 from subdirectories.
1613 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1614 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1615 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1616 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1617 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1618 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1619 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1620 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1621 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1622 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1623 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1624 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1625 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1626 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1627 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1628 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1629 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1630 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1631 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1632 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1633 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1634 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1635 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1636 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1637 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1639 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1641 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1642 lang_library_path exists. Use find instead of glob to gather tests.
1643 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1645 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1647 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1648 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1649 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1650 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1651 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1652 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1653 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1654 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1655 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1656 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1657 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1658 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1659 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1661 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1663 * testsuite/libgomp.dg/vla-1.c: New test.
1665 * testsuite/libgomp.fortran/reference2.f90: New test.
1667 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1668 declaration of omp_get_thread_num.
1669 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1672 * testsuite/libgomp.fortran/reduction1.f90: New test.
1673 * testsuite/libgomp.fortran/reduction2.f90: New test.
1674 * testsuite/libgomp.fortran/reduction3.f90: New test.
1675 * testsuite/libgomp.fortran/reduction4.f90: New test.
1677 2005-10-13 Richard Henderson <rth@redhat.com>
1679 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1680 * Makefile.in: Regenerate.
1681 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1682 * libgomp.h: Include bar.h.
1683 (struct gomp_barrier): Remove.
1684 (struct gomp_team): Add barrier. Replace master_barrier with
1685 master_release. Replace threads with ordered_release.
1686 (struct gomp_thread): Replace barrier with release.
1687 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1688 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1689 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1690 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1691 (GOMP_single_copy_end): Likewise.
1692 * team.c (gomp_threads_dock): New.
1693 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1694 (gomp_thread_start): Use gomp_barrier_wait.
1695 (new_team, free_team): Update for gomp_team changes.
1696 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1697 (gomp_team_end): Use gomp_barrier_wait.
1698 (initialize_team): Update for gomp_thread changes.
1699 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1700 (gomp_work_share_end_nowait): Use atomic ops when available.
1701 * config/linux/bar.c, config/linux/bar.h: New files.
1702 * config/posix/bar.c, config/posix/bar.h: New files.
1704 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1706 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1707 * testsuite/libgomp.dg/single-2.c: New test.
1709 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1710 lang_link_flags): Unset, so that they aren't inherited from previously
1713 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1715 2005-10-12 Richard Henderson <rth@redhat.com>
1717 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1718 (libgomp_init): Use lang_test_file, lang_library_path, and
1719 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1721 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1722 (lang_test_file, lang_link_flags): New.
1723 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1725 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1726 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1727 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1728 testsuite/libgomp.c++/parallel-1.C,
1729 testsuite/libgomp.c++/reduction-1.C,
1730 testsuite/libgomp.c++/reduction-2.C,
1731 testsuite/libgomp.c++/reduction-3.C,
1732 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1733 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1734 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1735 New files, largely cribbed from the C testsuite.
1737 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1739 * testsuite/libgomp.fortran/character1.f90: New test.
1740 * testsuite/libgomp.fortran/character2.f90: New test.
1742 * testsuite/libgomp.dg/nested-1.c: New test.
1743 * testsuite/libgomp.dg/nested-2.c: New test.
1744 * testsuite/libgomp.fortran/do1.f90: New test.
1745 * testsuite/libgomp.fortran/do2.f90: New test.
1747 * testsuite/libgomp.fortran/reference1.f90: New test.
1749 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1751 * testsuite/libgomp.dg/reduction-1.c: New test.
1752 * testsuite/libgomp.dg/reduction-2.c: New test.
1753 * testsuite/libgomp.dg/reduction-3.c: New test.
1755 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1757 * testsuite/libgomp.dg/atomic-1.c: New test.
1758 * testsuite/libgomp.dg/atomic-2.c: New test.
1760 2005-10-09 Richard Henderson <rth@redhat.com>
1762 * critical.c (atomic_lock): New.
1763 (initialize_critical): Initialize it.
1764 (GOMP_atomic_start, GOMP_atomic_end): New.
1765 * libgomp.map: Export them.
1766 * libgomp_g.h: Declare them.
1768 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1770 2005-10-02 Richard Henderson <rth@redhat.com>
1772 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1773 to XCFLAGS instead of CFLAGS.
1775 2005-09-30 Richard Henderson <rth@redhat.com>
1777 * configure.ac: Determine whether -pthread or -lpthread is needed.
1778 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1779 * Makefine.in, configure: Rebuild.
1781 2005-09-28 Richard Henderson <rth@redhat.com>
1783 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1784 * testsuite/libgomp.dg/omp-single-3.c: New test.
1786 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1788 * testsuite/libgomp.dg/omp-single-2.c: New test.
1789 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1791 2005-09-27 Richard Henderson <rth@redhat.com>
1793 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1794 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1796 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1798 * testsuite/libgomp.dg/omp-loop03.c: New test.
1800 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1802 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1804 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1806 * testsuite/libgomp.dg/omp-single-1.c: New test.
1807 * testsuite/libgomp.dg/shared-1.c: Return 0.
1808 Add prototype for abort.
1809 * testsuite/libgomp.dg/shared-2.c: Likewise.
1811 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1813 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1816 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1818 * testsuite/libgomp.dg/shared-1.c: New test.
1819 * testsuite/libgomp.dg/shared-2.c: New test.
1821 2005-09-24 Richard Henderson <rth@redhat.com>
1823 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1825 2005-09-24 Richard Henderson <rth@redhat.com>
1827 * iter.c (gomp_iter_static_next): Round up when computing number
1828 of iterations. Don't bother distributing a remainder equally.
1830 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1831 Don't call srand. Zero b before testing.
1834 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1836 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1837 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1839 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1841 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1842 without !$omp end do, followed immediately by subroutine end.
1844 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1846 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1848 2005-09-22 Richard Henderson <rth@redhat.com>
1850 * critical.c (GOMP_critical_name_start): Change argument to void**.
1851 Reuse the pointer space if the mutex fits.
1852 (GOMP_critical_name_end): Likewise.
1853 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1854 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1855 (GOMP_critical_name_end): Likewise.
1856 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1857 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1859 2005-09-20 Richard Henderson <rth@redhat.com>
1861 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1862 (create_lock_lock): New.
1863 (initialize_critical): Initialize it.
1864 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1865 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1867 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1869 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1871 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1873 * testsuite/libgomp.dg/omp-loop01.c: New test.
1874 * testsuite/libgomp.dg/omp-loop02.c: New test.
1876 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1878 * configure.ac (AC_PROG_FC): Add.
1879 (USE_FORTRAN): New automake conditional.
1880 * configure: Rebuilt.
1881 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1882 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1883 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1884 Add rules to build them.
1885 * Makefile.in: Rebuilt.
1886 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1888 * libgomp.map: Add Fortran wrappers.
1889 * libgomp_f.h.in: New file.
1890 * omp_lib.h.in: New file.
1891 * omp_lib.f90.in: New file.
1892 * fortran.c: New file.
1893 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1894 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1895 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1896 libgfortran has been built.
1897 * testsuite/libgomp.fortran/fortran.exp: New file.
1898 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1899 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1900 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1901 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1902 * testsuite/libgomp.fortran/omp_hello.f: New test.
1903 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1904 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1905 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1906 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1907 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1908 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1909 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1910 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1912 2005-08-30 Richard Henderson <rth@redhat.com>
1914 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1915 function for when aliases are not usable.
1916 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1917 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1918 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1919 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1920 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1921 GOMP_loop_ordered_guided_next): Likewise.
1922 * ordered.c (GOMP_ordered_start): Likewise.
1924 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1926 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1927 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1928 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1929 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1930 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1931 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1932 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1933 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1934 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1936 2005-07-07 Eric Christopher <echristo@redhat.com>
1937 Diego Novillo <dnovillo@redhat.com>
1939 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1940 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1942 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1943 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1944 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1945 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1946 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1947 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1948 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1950 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1952 * TOPLEVEL.patch: Remove.
1954 2005-05-16 Richard Henderson <rth@redhat.com>
1956 * configure.ac: Test for clock_gettime.
1957 * config.h.in, configure: Rebuild.
1958 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1959 (omp_get_wtime): Use clock_gettime if available.
1960 (omp_get_wtick): Use clock_getres if available.
1962 2005-05-11 Richard Henderson <rth@redhat.com>
1964 * config/linux/ia64/futex.h: New file.
1965 * configure.tgt: Use it.
1967 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1969 2005-05-07 Richard Henderson <rth@redhat.com>
1971 * config/linux/powerpc/futex.h: New file.
1972 * configure.tgt: Use it.
1974 * config/linux/i486/futex.h: Merge ...
1975 * config/linux/x86_64/futex.h: ... into ...
1976 * config/linux/x86/futex.h: ... here.
1977 * configure.tgt: Update to match.
1979 2005-05-06 Richard Henderson <rth@redhat.com>
1981 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1982 * config/linux/i486/futex.h: Likewise.
1983 * config/linux/x86_64/futex.h: Likewise.
1985 * config/linux/lock.c: New file.
1986 * config/linux/omp-lock.h: New file.
1988 * critical.c, env.h: Don't include omp.h
1989 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1990 * config/posix/time.c: Likewise.
1991 * config/posix/omp-lock.h: New file.
1992 * libgomp.h: Include omp-lock.h and omp.h.
1993 * Makefile.am (nodist_include_HEADERS): New.
1995 * configure.ac (PERL): New.
1996 * mkomp_h.pl: New file.
1997 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1999 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2001 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2002 build directory. Re-add -march=i486 hack.
2004 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2005 (libgomp_link_flags): Remove.
2006 (libgomp_initialized): Remove.
2007 (libgomp_init): Don't protect from reinitialization. Copy code
2008 from libstdc++ for getting the multilib set correctly.
2010 2005-05-05 Richard Henderson <rth@redhat.com>
2012 * config/linux/alpha/futex.h: New file.
2013 * configure.tgt (alpha*-*-linux*): Use it.
2015 * config/posix/mutex.c: New file.
2016 * config/posix/sem.c: Use libgomp.h.
2018 * configure.tgt (x86_64-linux): Also test CC for -m32.
2019 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2021 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2024 * Makefile.am (SUBDIRS): New.
2025 (libgomp_la_LDFLAGS): Add -lpthread.
2026 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2027 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2029 * libgomp_g.h: New file.
2030 * libgomp.h: Split out all public declarations to libgomp_g.h.
2031 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2032 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2033 * config/linux/sem.h: Likewise.
2034 * config/posix/sem.h: Likewise.
2036 * Makefile.am (AM_LDFLAGS): New.
2037 (libgomp_version_script): Split out from ...
2038 (libgomp_la_LDFLAGS): ... here.
2039 (libgomp_version_info): New.
2040 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2041 (LIBGOMP_ENABLE): New.
2042 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2043 (LIBGOMP_ENABLE_SYMVERS): New.
2044 * configure.ac (AC_INIT): Version 1.0.
2045 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2046 (enable-linux-futex): Likewise. Rename from enable-futex.
2047 (libtool_VERSION): New.
2048 (LIBGOMP_ENABLE_SYMVERS): Use it.
2049 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2050 * Makefile.in, aclocal.m4, configure: Rebuild.
2052 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2053 (gomp_mutex_unlock_slow): Fix typo.
2054 * config/linux/sem.c: Similarly.
2055 (gomp_sem_post_slow): Fix typo.
2056 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2057 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2058 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2060 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2061 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2062 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2063 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2064 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2065 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2066 LDFLAGS. Pull enable_futex check to top-level.
2067 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2068 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2070 First attempt at real configury.
2071 * Makefile, config.h: Remove file.
2072 * Makefile.am, Makefile.in: New file.
2073 * acinclude.m4 aclocal.m4: New file.
2074 * configure.ac, configure.tgt, configure: New file.
2076 * config/posix/lock.c: Rename from sys-lock.c.
2077 * config/posix/mutex.h: Rename from sys-mutex.h.
2078 * config/posix/sem.c: Rename from sys-sem.c.
2079 * config/posix/sem.h: Rename from sys-sem.h.
2080 * config/posix/proc.c: Rename from sys-proc.c.
2081 * config/posix/time.c: Rename from sys-proc.c.
2083 * config/linux/mutex.c: New file.
2084 * config/linux/mutex.h: New file.
2085 * config/linux/sem.c: New file.
2086 * config/linux/sem.h: New file.
2087 * config/linux/i486/futex.h: New file.
2088 * config/linux/x86_64/futex.h: New file.
2090 2005-05-04 Richard Henderson <rth@redhat.com>
2092 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2093 * libgomp.h: Declare them.
2094 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2095 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2097 2005-05-04 Richard Henderson <rth@redhat.com>
2099 * libgomp-1 code drop
2101 2005-05-04 Richard Henderson <rth@redhat.com>
2103 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2104 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2105 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2106 (gomp_iter_static_next): Update.
2107 (gomp_ordered_static_next): Update.
2108 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2109 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2110 totally empty range.
2111 (gomp_loop_ordered_static_next): Refine test for calling
2112 gomp_ordered_static_next.
2113 * testsuite/ordered-1.c: Add case for more threads than iterations.
2115 * iter.c (gomp_iter_runtime_next_locked): Remove.
2116 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2117 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2118 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2119 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2120 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2121 gomp_loop_ordered_guided_next): Downcase name, make static, add
2122 an external alias with the old name.
2123 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2124 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2125 switch and call one of the above static functions.
2126 * libgomp.h: Update.
2128 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2129 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2130 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2131 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2132 GOMP_loop_ordered_guided_start): Update to match.
2133 * sections.c (GOMP_sections_start): Likewise.
2134 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2136 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2137 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2138 Use bounds check instead of modulus.
2139 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2140 (gomp_ordered_last): Don't sync with ordered_owner here.
2141 (gomp_ordered_next): Likewise.
2142 (gomp_ordered_static_loop_next): Likewise.
2143 * loop.c, libgomp.h: Update to match.
2145 * libgomp.h (GOMP_barrier): Declare.
2147 * testsuite/barrier-1.c: New file.
2148 * testsuite/critical-1.c: New file.
2149 * testsuite/ordered-2.c: New file.
2150 * testsuite/ordered-1.c: New file.
2151 * testsuite/sections-1.c: New file.
2152 * testsuite/single-1.c: New file.
2153 * testsuite/Makefile (TESTS): Add them.
2155 2005-05-04 Richard Henderson <rth@redhat.com>
2157 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2158 * loop.c (GOMP_loop_static_start): If not the startup thread,
2159 acquire the mutex to wait for initialization complete.
2160 (GOMP_loop_ordered_static_start): Likewise.
2161 (GOMP_loop_ordered_runtime_start): Likewise.
2162 (GOMP_loop_ordered_static_first): Remove.
2163 (GOMP_loop_ordered_dynamic_first): Remove.
2164 (GOMP_loop_ordered_guided_first): Remove.
2165 (GOMP_loop_ordered_runtime_first): Remove.
2166 * ordered.c (gomp_ordered_loop_first): Post to own release when
2167 we're the first thread.
2168 (gomp_ordered_loop_last): Wait on release if not owner.
2169 (gomp_ordered_loop_next): Likewise.
2170 (gomp_ordered_static_loop_init): New.
2171 (gomp_ordered_static_loop_next): Use ordered_owner.
2172 (GOMP_ordered_start): Likewise.
2173 * work.c (gomp_new_work_share): Initialize ordered_owner.
2175 2005-05-03 Richard Henderson <rth@redhat.com>
2177 * Makefile (OPT): New.
2180 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2181 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2182 * libgomp.h, libgomp.map, NOTES: Update to match.
2184 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2185 Add initialized and thr members.
2186 (gomp_thread_start): Pause when initially spawned to wait for
2187 the whole team to be created.
2188 (gomp_team_start): Release team members at the end.
2190 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2191 (f_foo_1): Use GOMP_loop_end.
2192 (f_foo_2): Use GOMP_loop_end_nowait.
2194 * testsuite/loop-2.c: New file.
2195 * testsuite/Makefile (TESTS): Add it.
2197 2005-05-03 Richard Henderson <rth@redhat.com>
2199 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2200 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2201 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2204 * testsuite/Makefile: New file.
2205 * testsuite/loop-1.c: New file.
2207 2005-05-03 Richard Henderson <rth@redhat.com>
2209 Initial implementation and checkin.