1 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
3 * testsuite/libgomp.exp (libgomp_init): Only set things that
4 depend on blddir if blddir exists.
5 (libgomp_target_compile): Likewise.
6 * testsuite/libgomp.c++/c++.exp: Likewise.
7 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
12 Do not list GPL as Invariant Section.
14 2008-07-28 Ilie Garbacea <ilie@mips.com>
15 Chao-ying Fu <fu@mips.com>
17 * configure.tgt: Enable futex for MIPS.
18 * config/linux/mips/futex.h: New file.
20 2008-07-16 Jakub Jelinek <jakub@redhat.com>
22 * team.c (gomp_team_end): Free team immediately if it has
25 2008-07-08 David Edelsohn <edelsohn@gnu.org>
27 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
28 * testsuite/libgomp.fortran/fortran.exp: Same.
29 * testsuite/libgomp.c/c.exp: Same.
30 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
31 directory to library path first.
33 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
35 * env.c (parse_stacksize): Add cast to avoid warning.
36 (parse_spincount): Likewise.
38 2008-06-27 Jakub Jelinek <jakub@redhat.com>
40 * testsuite/libgomp.c/loop-10.c: New test.
41 * libgomp.c/loop-3.c (main): Add lastprivate clause.
42 * libgomp.c++/loop-6.C (main): Likewise.
45 * testsuite/libgomp.c/debug-1.c: New test.
47 2008-06-19 Jakub Jelinek <jakub@redhat.com>
49 * testsuite/libgomp.c/nqueens-1.c: New test.
52 * testsuite/libgomp.c++/task-7.C: New function.
54 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56 * configure: Regenerate.
58 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
60 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
61 mutex when HAVE_SYNC_BUILTINS isn't defined.
63 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65 * libgomp.texi (omp_test_lock): Fix typo.
67 2008-06-12 Tobias Burnus <burnus@net-b.de>
69 * omp_lib.f90.in: Add "implicit none".
71 2008-06-12 Jakub Jelinek <jakub@redhat.com>
74 * testsuite/libgomp.c/reduction-5.c: New test.
76 2008-06-11 Jakub Jelinek <jakub@redhat.com>
78 * libgomp.h (struct gomp_task): Add in_tied_task field.
79 * task.c (gomp_init_task): Initialize it.
80 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
81 unconditionally. Don't call gomp_team_barrier_wake if
82 current task is implicit or if(0) from implicit and number of
83 running tasks is equal to nthreads - 1.
86 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
87 omp_get_team_size_8): Fix pastos.
90 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
91 * configure: Regenerated.
92 * config.h.in: Regenerated.
93 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
96 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
99 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
100 (GOMP_loop_ull_dynamic_start): Likewise.
101 (GOMP_loop_ull_guided_start): Likewise.
102 (GOMP_loop_ull_ordered_static_start): Likewise.
103 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
104 (GOMP_loop_ull_ordered_guided_start): Likewise.
106 2008-06-06 Jakub Jelinek <jakub@redhat.com>
107 Richard Henderson <rth@redhat.com>
108 Ulrich Drepper <drepper@redhat.com>
109 Jakob Blomer <jakob.blomer@ira.uka.de>
111 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
112 Substitute also OMP_*LOCK_25*.
113 * configure: Regenerated.
114 * config.h.in: Regenerated.
115 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
116 ptrlock.c and task.c.
117 * Makefile.in: Regenerated.
118 * testsuite/Makefile.in: Regenerated.
120 * loop_ull.c: New file.
121 * iter_ull.c: New file.
122 * libgomp.h: Include ptrlock.h.
123 (enum gomp_task_kind): New type.
124 (struct gomp_team): Add task_lock, task_queue, task_count,
125 task_running_count, single_count fields. Add
126 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
127 Remove work_share_lock, generation_mask,
128 oldest_live_gen, num_live_gen and init_work_shares fields, add
129 work work_share_list_alloc, work_share_list_free and work_share_chunk
130 fields. Change work_shares from pointer to pointers into an array.
131 Change ordered_release field into gomp_sem_t ** from flexible array
132 member. Add implicit_task and initial_work_shares fields.
133 Move close to the end of the struct.
134 (struct gomp_team_state): Add single_count, last_work_share,
135 active_level and level fields, remove work_share_generation.
136 (gomp_barrier_handle_tasks): New prototype.
137 (gomp_finish_task): New inline function.
138 (struct gomp_work_share): Move chunk_size, end, incr into
139 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
140 next_ll fields. Reshuffle fields. Add next_alloc,
141 next_ws, next_free and inline_ordered_team_ids fields, change
142 ordered_team_ids into pointer from flexible array member.
143 Add mode field. Put lock and next into a different cache line
144 from most of the write-once fields.
145 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
146 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
147 gomp_iter_ull_guided_next): New prototypes.
148 (gomp_new_icv): New prototype.
149 (struct gomp_thread): Add thread_pool and task fields.
150 (struct gomp_thread_pool): New type.
151 (gomp_new_team): New prototype.
152 (gomp_team_start): Change type of last argument.
153 (gomp_new_work_share): Removed.
154 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
155 (gomp_work_share_init_done): New static inline.
156 (gomp_throttled_spin_count_var, gomp_available_cpus,
157 gomp_managed_threads): New extern decls.
158 (gomp_init_task): New prototype.
159 (gomp_spin_count_var): New extern var decl.
160 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
161 or no alias support, or if not PIC.
162 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
163 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
164 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
165 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
166 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
167 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
168 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
169 gomp_test_nest_lock_25): New prototypes.
170 (omp_lock_symver, strong_alias): Define.
171 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
173 (gomp_end_task): New.
174 (struct gomp_task_icv, gomp_global_icv): New.
175 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
176 (struct gomp_task): New.
177 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
178 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
180 (gomp_schedule_type): Reorder enum to match
182 * team.c (struct gomp_thread_start_data): Add thread_pool and task
184 (gomp_thread_start): Add gomp_team_barrier_wait call.
185 For non-nested case remove clearing of docked thread thr fields.
186 Use pool fields instead of global gomp_* variables. Use
187 gomp_barrier_wait_last when needed. Initialize ts.active_level.
188 Create tasks for each member thread.
189 (free_team): Only destroy team barrier, task_lock here and free it.
190 (gomp_free_thread): Free last_team if non-NULL.
191 (gomp_team_end): Call gomp_team_barrier_wait instead of
192 gomp_barrier_wait. For nested case call one extra
193 gomp_barrier_wait. Move here some destruction from free_team.
194 Call free_team on pool->last_team if any, rather than freeing
195 current team. Destroy work_share_list_free_lock ifndef
197 (gomp_new_icv): New function.
198 (gomp_threads, gomp_threads_size, gomp_threads_used,
199 gomp_threads_dock): Removed.
200 (gomp_thread_destructor): New variable.
201 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
203 (gomp_team_start): Create new pool if current thread doesn't have
204 one. Use pool fields instead of global gomp_* variables.
205 Initialize thread_pool field for new threads. Clear single_count.
206 Change last argument from ws to team, don't create
207 new team, set ts.work_share to &team->work_shares[0] and clear
208 ts.last_work_share. Don't clear ts.work_share_generation.
209 If number of threads changed, adjust atomically gomp_managed_threads.
210 Use gomp_init_task instead of gomp_new_task,
211 set thr->task to the corresponding implicit_task array entry.
212 Create tasks for each member thread. Initialize ts.level.
213 (initialize_team): Call pthread_key_create on
214 gomp_thread_destructor.
215 (team_destructor): New function.
217 (gomp_new_team): New function.
218 (free_team): Free gomp_work_share blocks chained through next_alloc,
219 instead of freeing work_shares and destroying work_share_lock.
220 (gomp_team_end): Call gomp_fini_work_share. If number of threads
221 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
222 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
223 of gomp_barrier_wait.
224 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
225 instead of gomp_barrier_wait. Call gomp_work_share_init_done
226 if gomp_work_share_start returned true. Don't unlock ws->lock.
227 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
228 of gomp_barrier_wait.
229 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
230 gomp_work_share_init_done if gomp_work_share_start returned true.
231 Don't unlock ws->lock.
232 * work.c: Include stddef.h.
233 (free_work_share): Use work_share_list_free_lock instead
234 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
235 Call gomp_fini_work_share and then either free ws if orphaned, or
236 put it into work_share_list_free list of the current team.
237 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
239 (gomp_work_share_start, gomp_work_share_end,
240 gomp_work_share_end_nowait): Rewritten.
241 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
242 (openmp_version): Set to 200805.
243 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
244 omp_sched_guided, omp_sched_auto): New parameters.
245 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
246 omp_set_max_active_levels, omp_get_max_active_levels,
247 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
248 omp_get_active_level): New interfaces.
249 * omp_lib.h.in (openmp_version): Set to 200805.
250 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
251 omp_sched_guided, omp_sched_auto): New parameters.
252 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
253 omp_set_max_active_levels, omp_get_max_active_levels,
254 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
255 omp_get_active_level): New externals.
256 * loop.c: Include limits.h.
257 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
259 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
260 Likewise. Use gomp_icv.
261 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
263 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
264 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
265 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
266 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
267 don't unlock ws->lock, otherwise lock it.
268 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
269 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
270 (gomp_parallel_loop_start): Call gomp_new_team instead of
271 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
272 Adjust gomp_team_start caller. Pass 0 as second argument to
273 gomp_resolve_num_threads.
274 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
275 If adding ws->chunk_size nthreads + 1 times after end won't
276 overflow, set ws->mode to 1.
277 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
278 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
279 GOMP_loop_ull_ordered_static_start,
280 GOMP_loop_ull_ordered_dynamic_start,
281 GOMP_loop_ull_ordered_guided_start,
282 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
283 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
284 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
285 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
286 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
288 * libgomp.map: Export lock routines also @@OMP_2.0.
289 (GOMP_loop_ordered_dynamic_first,
290 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
291 GOMP_loop_ordered_static_first): Remove.
292 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
293 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
294 GOMP_loop_ull_ordered_dynamic_next,
295 GOMP_loop_ull_ordered_dynamic_start,
296 GOMP_loop_ull_ordered_guided_next,
297 GOMP_loop_ull_ordered_guided_start,
298 GOMP_loop_ull_ordered_runtime_next,
299 GOMP_loop_ull_ordered_runtime_start,
300 GOMP_loop_ull_ordered_static_next,
301 GOMP_loop_ull_ordered_static_start,
302 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
303 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
304 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
305 (omp_set_schedule, omp_get_schedule,
306 omp_get_thread_limit, omp_set_max_active_levels,
307 omp_get_max_active_levels, omp_get_level,
308 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
309 omp_set_schedule_, omp_set_schedule_8_,
310 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
311 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
312 omp_get_max_active_levels_, omp_get_level_,
313 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
314 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
315 New exports @@OMP_3.0.
316 * omp.h.in (omp_sched_t): New type.
317 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
318 omp_set_max_active_levels, omp_get_max_active_levels,
319 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
320 omp_get_active_level): New prototypes.
321 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
322 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
323 gomp_thread_limit_var, gomp_remaining_threads_count,
324 gomp_remaining_threads_lock): New variables.
325 (parse_spincount): New function.
326 (initialize_env): Call gomp_init_num_threads unconditionally.
327 Initialize gomp_available_cpus. Call parse_spincount,
328 initialize gomp_{,throttled_}spin_count_var
329 depending on presence and value of OMP_WAIT_POLICY and
330 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
331 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
332 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
333 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
334 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
335 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
336 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
337 (gomp_global_icv): New.
338 (parse_schedule): Use it. Parse "auto".
339 (omp_set_num_threads): Use gomp_icv.
340 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
342 (omp_get_max_threads): Move from parallel.c.
343 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
344 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
346 (parse_stacksize, parse_wait_policy): New functions.
347 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
348 both wrappers for compatibility and new locks.
349 (omp_set_schedule, omp_get_schedule,
350 omp_get_thread_limit, omp_set_max_active_levels,
351 omp_get_max_active_levels, omp_get_level,
352 omp_get_ancestor_thread_num, omp_get_team_size,
353 omp_get_active_level): New ialias_redirect.
354 (omp_set_schedule_, omp_set_schedule_8_,
355 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
356 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
357 omp_get_max_active_levels_, omp_get_level_,
358 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
359 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
361 * parallel.c: Include limits.h.
362 (gomp_resolve_num_threads): Add count argument. Rewritten.
363 (GOMP_parallel_start): Call gomp_new_team and pass that as last
364 argument to gomp_team_start. Pass 0 as second argument to
365 gomp_resolve_num_threads.
366 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
367 if gomp_thread_limit_var != ULONG_MAX.
368 (omp_in_parallel): Implement using ts.active_level.
369 (omp_get_max_threads): Move to env.c.
370 (omp_get_level, omp_get_ancestor_thread_num,
371 omp_get_team_size, omp_get_active_level): New functions,
373 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
374 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
375 gomp_iter_dynamic_next instead of the _locked variant and don't take
376 lock around it, otherwise acquire it before calling
377 gomp_iter_dynamic_next_locked.
378 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
379 gomp_iter_dynamic_next instead of the _locked variant and don't take
381 (GOMP_parallel_sections_start): Call gomp_new_team instead of
382 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
383 Adjust gomp_team_start caller. Pass count as second argument to
384 gomp_resolve_num_threads, don't adjust num_threads after the call.
386 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
387 ws->chunk_size by incr.
388 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
390 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
392 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
393 (omp_check_defines): Check even the compat defines.
394 * config/linux/ptrlock.c: New file.
395 * config/linux/ptrlock.h: New file.
396 * config/linux/wait.h: New file.
397 * config/posix/ptrlock.c: New file.
398 * config/posix/ptrlock.h: New file.
399 * config/linux/bar.h (gomp_team_barrier_wait,
400 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
401 (gomp_team_barrier_set_task_pending,
402 gomp_team_barrier_clear_task_pending,
403 gomp_team_barrier_set_waiting_for_tasks,
404 gomp_team_barrier_waiting_for_tasks,
405 gomp_team_barrier_done): New inlines.
406 (gomp_barrier_t): Rewritten.
407 (gomp_barrier_state_t): New typedef.
408 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
409 gomp_barrier_wait_start): Rewritten.
410 (gomp_barrier_wait_end): Change second argument to
411 gomp_barrier_state_t.
412 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
414 * config/linux/bar.c: Include wait.h instead of libgomp.h and
416 (gomp_barrier_wait_end): Rewritten.
417 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
418 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
419 * config/posix/bar.h (gomp_barrier_t): Add generation field.
420 (gomp_barrier_state_t): New typedef.
421 (gomp_team_barrier_wait,
422 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
423 (gomp_barrier_wait_start): Or all but low 2 bits from generation
424 into the return value. Return gomp_barrier_state_t.
425 (gomp_team_barrier_set_task_pending,
426 gomp_team_barrier_clear_task_pending,
427 gomp_team_barrier_set_waiting_for_tasks,
428 gomp_team_barrier_waiting_for_tasks,
429 gomp_team_barrier_done): New inlines.
430 (gomp_barrier_wait_end): Change second argument to
431 gomp_barrier_state_t.
432 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
434 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
435 (gomp_barrier_wait_end): Change second argument to
436 gomp_barrier_state_t.
437 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
438 gomp_team_barrier_wake): New functions.
439 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
441 (gomp_futex_wake, gomp_futex_wait): New variables.
442 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
443 * config/linux/lock.c: Rewrite to make locks task owned,
444 for backwards compatibility provide the old entrypoints
445 if symbol versioning. Include wait.h instead of libgomp.h and
447 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
448 * config/posix95/lock.c: Rewrite to make locks task owned,
449 for backwards compatibility provide the old entrypoints
450 if symbol versioning.
451 * config/posix/lock.c: Rewrite to make locks task owned,
452 for backwards compatibility provide the old entrypoints
453 if symbol versioning.
454 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
455 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
456 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
457 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
458 (sys_futex0): Return error code.
459 (futex_wake, futex_wait): If ENOSYS was returned, clear
460 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
461 (cpu_relax, atomic_write_barrier): New static inlines.
462 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
463 (futex_wake, futex_wait): If ENOSYS was returned, clear
464 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
465 (cpu_relax, atomic_write_barrier): New static inlines.
466 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
467 (sys_futex0): Return error code.
468 (futex_wake, futex_wait): If ENOSYS was returned, clear
469 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
470 (cpu_relax, atomic_write_barrier): New static inlines.
471 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
472 (sys_futex0): Return error code.
473 (futex_wake, futex_wait): If ENOSYS was returned, clear
474 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
475 (cpu_relax, atomic_write_barrier): New static inlines.
476 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
477 (sys_futex0): Return error code.
478 (futex_wake, futex_wait): If ENOSYS was returned, clear
479 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
480 (cpu_relax, atomic_write_barrier): New static inlines.
481 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
482 (sys_futex0): Return error code.
483 (futex_wake, futex_wait): If ENOSYS was returned, clear
484 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
485 (cpu_relax, atomic_write_barrier): New static inlines.
486 * config/linux/sem.c: Include wait.h instead of libgomp.h and
488 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
489 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
490 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
492 (omp_nest_lock_t): Change owner into void *, add lock field.
493 * config/posix95/omp-lock.h: Include semaphore.h.
494 (omp_lock_25_t, omp_nest_lock_25_t): New types.
495 (omp_lock_t): Use sem_t instead of mutex if semaphores
497 (omp_nest_lock_t): Likewise. Change owner to void *.
498 * config/posix/omp-lock.h: Include semaphore.h.
499 (omp_lock_25_t, omp_nest_lock_25_t): New types.
500 (omp_lock_t): Use sem_t instead of mutex if semaphores
502 (omp_nest_lock_t): Likewise. Add owner field.
504 2008-06-06 Jakub Jelinek <jakub@redhat.com>
506 * testsuite/libgomp.c/collapse-1.c: New test.
507 * testsuite/libgomp.c/collapse-2.c: New test.
508 * testsuite/libgomp.c/collapse-3.c: New test.
509 * testsuite/libgomp.c/icv-1.c: New test.
510 * testsuite/libgomp.c/icv-2.c: New test.
511 * testsuite/libgomp.c/lib-2.c: New test.
512 * testsuite/libgomp.c/lock-1.c: New test.
513 * testsuite/libgomp.c/lock-2.c: New test.
514 * testsuite/libgomp.c/lock-3.c: New test.
515 * testsuite/libgomp.c/loop-4.c: New test.
516 * testsuite/libgomp.c/loop-5.c: New test.
517 * testsuite/libgomp.c/loop-6.c: New test.
518 * testsuite/libgomp.c/loop-7.c: New test.
519 * testsuite/libgomp.c/loop-8.c: New test.
520 * testsuite/libgomp.c/loop-9.c: New test.
521 * testsuite/libgomp.c/nested-3.c: New test.
522 * testsuite/libgomp.c/nestedfn-6.c: New test.
523 * testsuite/libgomp.c/sort-1.c: New test.
524 * testsuite/libgomp.c/task-1.c: New test.
525 * testsuite/libgomp.c/task-2.c: New test.
526 * testsuite/libgomp.c/task-3.c: New test.
527 * testsuite/libgomp.c/task-4.c: New test.
528 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
529 to C++ testsuite default compiler options.
530 * testsuite/libgomp.c++/collapse-1.C: New test.
531 * testsuite/libgomp.c++/collapse-2.C: New test.
532 * testsuite/libgomp.c++/ctor-10.C: New test.
533 * testsuite/libgomp.c++/for-1.C: New test.
534 * testsuite/libgomp.c++/for-2.C: New test.
535 * testsuite/libgomp.c++/for-3.C: New test.
536 * testsuite/libgomp.c++/for-4.C: New test.
537 * testsuite/libgomp.c++/for-5.C: New test.
538 * testsuite/libgomp.c++/loop-8.C: New test.
539 * testsuite/libgomp.c++/loop-9.C: New test.
540 * testsuite/libgomp.c++/loop-10.C: New test.
541 * testsuite/libgomp.c++/task-1.C: New test.
542 * testsuite/libgomp.c++/task-2.C: New test.
543 * testsuite/libgomp.c++/task-3.C: New test.
544 * testsuite/libgomp.c++/task-4.C: New test.
545 * testsuite/libgomp.c++/task-5.C: New test.
546 * testsuite/libgomp.c++/task-6.C: New test.
547 * testsuite/libgomp.fortran/allocatable1.f90: New test.
548 * testsuite/libgomp.fortran/allocatable2.f90: New test.
549 * testsuite/libgomp.fortran/allocatable3.f90: New test.
550 * testsuite/libgomp.fortran/allocatable4.f90: New test.
551 * testsuite/libgomp.fortran/collapse1.f90: New test.
552 * testsuite/libgomp.fortran/collapse2.f90: New test.
553 * testsuite/libgomp.fortran/collapse3.f90: New test.
554 * testsuite/libgomp.fortran/collapse4.f90: New test.
555 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
556 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
557 * testsuite/libgomp.fortran/lib4.f90: New test.
558 * testsuite/libgomp.fortran/lock-1.f90: New test.
559 * testsuite/libgomp.fortran/lock-2.f90: New test.
560 * testsuite/libgomp.fortran/nested1.f90: New test.
561 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
562 * testsuite/libgomp.fortran/strassen.f90: New test.
563 * testsuite/libgomp.fortran/tabs1.f90: New test.
564 * testsuite/libgomp.fortran/tabs2.f: New test.
565 * testsuite/libgomp.fortran/task1.f90: New test.
566 * testsuite/libgomp.fortran/task2.f90: New test.
567 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
568 * testsuite/libgomp.fortran/vla5.f90: Likewise.
569 * testsuite/libgomp.c/pr26943-2.c: Likewise.
570 * testsuite/libgomp.c/pr26943-3.c: Likewise.
571 * testsuite/libgomp.c/pr26943-4.c: Likewise.
573 2008-05-23 Jakub Jelinek <jakub@redhat.com>
576 * testsuite/libgomp.c++/ctor-11.C: New test.
577 * testsuite/libgomp.c++/ctor-12.C: New test.
579 2008-05-15 Janis Johnson <janis187@us.ibm.com>
581 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
583 2008-05-07 Jakub Jelinek <jakub@redhat.com>
586 * testsuite/libgomp.c/atomic-5.c: New test.
587 * testsuite/libgomp.c/atomic-6.c: New test.
588 * testsuite/libgomp.c/autopar-1.c: New test.
590 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
592 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
593 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
594 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
595 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
596 * configure: Regenerate.
597 * Makefile.in, testsuite/Makefile.in: Likewise.
599 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
602 * aclocal.m4: Regenerate.
603 * configure: Regenerate.
605 2008-03-18 Jakub Jelinek <jakub@redhat.com>
608 * testsuite/libgomp.c/atomic-4.c: New test.
611 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
612 (gomp_iter_guided_next): Likewise.
613 * testsuite/libgomp.c/pr35625.c: New test.
615 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
617 * aclocal.m4: Regenerate.
618 * configure: Likewise.
619 * Makefile.in: Likewise.
620 * testsuite/Makefile.in: Likewise.
622 2008-03-13 Jakub Jelinek <jakub@redhat.com>
625 * testsuite/libgomp.c++/pr35185.C: New test.
627 2008-03-12 Jakub Jelinek <jakub@redhat.com>
630 * testsuite/libgomp.c/pr35549.c: New test.
632 2008-03-06 Jakub Jelinek <jakub@redhat.com>
634 * testsuite/libgomp.c/atomic-3.c: New test.
636 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
639 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
642 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
645 * configure.ac: Add ACX_HEADER_STRING.
646 * env.c: Include strings.h.
647 * aclocal.m4: Regenerate.
648 * config.h.in: Regenerate.
649 * configure: Regenerate.
650 * Makefile.in: Regenerate.
651 * testsuite/Makefile.in: Regenerate.
653 2008-02-15 Jakub Jelinek <jakub@redhat.com>
656 * testsuite/libgomp.c/pr35196.c: New test.
659 * testsuite/libgomp.fortran/pr35130.f90: New test.
660 * testsuite/libgomp.c/pr35130.c: New test.
662 2008-01-25 Jakub Jelinek <jakub@redhat.com>
665 * testsuite/libgomp.c/pr33880.c: New test.
666 * testsuite/libgomp.fortran/pr33880.f90: New test.
668 2008-01-24 David Edelsohn <edelsohn@gnu.org>
670 * configure: Regenerate.
672 2008-01-08 Jakub Jelinek <jakub@redhat.com>
674 * configure.ac: Move futex checking into ../config/futex.m4.
675 * configure: Rebuilt.
676 * aclocal.m4: Rebuilt.
677 * Makefile.in: Rebuilt.
679 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
680 2007-10-15 ../config/tls.m4 change.
682 2007-12-19 Jakub Jelinek <jakub@redhat.com>
685 * testsuite/libgomp.c/pr34513.c: New test.
686 * testsuite/libgomp.c++/pr34513.C: New test.
688 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
691 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
693 2007-12-04 Jakub Jelinek <jakub@redhat.com>
695 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
697 2007-12-03 Jakub Jelinek <jakub@redhat.com>
699 * testsuite/libgomp.c/private-1.c: New test.
701 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
702 Paolo Bonzini <bonzini@gnu.org>
704 * Makefile.am: Use space as vpath separator. Use 'vpath %'
705 instead of 'VPATH ='.
706 * Makefile.in: Regenerate.
708 2007-11-23 Matthias Klose <doko@ubuntu.com>
710 * configure.ac: Adjust makeinfo version check.
711 * configure: Regenerate.
713 2007-11-10 Jakub Jelinek <jakub@redhat.com>
716 * testsuite/libgomp.fortran/pr34020.f90: New test.
718 2007-11-06 Jakub Jelinek <jakub@redhat.com>
721 * testsuite/libgomp.c++/atomic-1.C: New test.
723 2007-10-25 Jakub Jelinek <jakub@redhat.com>
726 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
727 Make x and y integers rather than (implicit) reals. Add private (j)
728 clause to the last omp parallel.
730 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
732 * configure: Regenerate following changes to ../config/tls.m4.
734 2007-09-28 Jakub Jelinek <jakub@redhat.com>
736 * testsuite/libgomp.fortran/stack.f90: New test.
738 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
740 * config/mingw32/proc.c: New file.
742 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
744 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
745 (main): Use __get_cpuid to get i386 target fetaures.
746 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
747 (main): Use __get_cpuid to get x86_64 target fetaures.
749 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
752 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
753 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
755 2007-07-12 Jakub Jelinek <jakub@redhat.com>
758 * testsuite/libgomp.fortran/pr32550.f90: New test.
759 * testsuite/libgomp.fortran/crayptr2.f90: New test.
761 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
763 * aclocal.m4: Regenerated.
765 2007-07-05 Tobias Burnus <burnus@net-b.de>
768 * testsuite/libgomp.fortran/pr32359.f90: New.
770 2007-07-02 Jakub Jelinek <jakub@redhat.com>
773 * sections.c (GOMP_parallel_sections_start): Only decrease
774 number of threads to COUNT if dyn_var is true.
775 * testsuite/libgomp.c/pr32468.c: New test.
777 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
780 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
782 2007-06-21 Jakub Jelinek <jakub@redhat.com>
785 * testsuite/libgomp.c/pr32362-1.c: New test.
786 * testsuite/libgomp.c/pr32362-2.c: New test.
787 * testsuite/libgomp.c/pr32362-3.c: New test.
789 2007-06-07 Jakub Jelinek <jakub@redhat.com>
791 * team.c (gomp_team_start): Fix setting up thread_attr
794 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
796 * configure: Regenerate.
798 2007-05-23 Steve Ellcey <sje@cup.hp.com>
800 * Makefile.in: Regenerate.
801 * configure: Regenerate.
802 * aclocal.m4: Regenerate.
803 * testsuite/Makefile.in: Regenerate.
805 2007-05-04 Jakub Jelinek <jakub@redhat.com>
807 * config/linux/proc.c: New file.
810 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
812 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
814 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
816 2007-04-16 Matthias Klose <doko@debian.org>
818 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
819 flags if not building with -m64.
820 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
821 flag for i?86-*-* targets, if current target matches -m64.
823 2007-04-14 Steve Ellcey <sje@cup.hp.com>
825 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
826 * Makefile.in: Regenerate.
828 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
831 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
833 * testsuite/libgomp.fortran/fortran.exp: Likewise.
835 2007-04-04 Jakub Jelinek <jakub@redhat.com>
837 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
839 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
840 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
841 (parse_affinity): New function.
842 (initialize_env): Call it and gomp_init_affinity.
843 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
844 create new pthread_attr_t and call gomp_init_thread_affinity
845 on it for each thread before passing the attribute to pthread_create.
846 * config/linux/affinity.c: New file.
847 * config/posix/affinity.c: New file.
848 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
849 * configure: Rebuilt.
850 * config.h.in: Rebuilt.
851 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
852 * Makefile.in: Rebuilt.
854 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
856 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
858 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
861 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
863 * testsuite/config/default.exp: New file.
864 * testsuite/lib/libgomp.exp: New file.
865 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
866 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
867 load_lib *, load_gcc_lib *): Move to libgomp.exp.
868 (libgomp_load): Remove.
869 * testsuite/lib/libgomp.exp (libgomp_init): Compute
870 always_ld_library_path, not ld_library_path. Set additional_flags
871 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
872 (target_compile): Do not call libgomp_init. Append lang_library_path
873 and lang_link_flags to options.
874 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
875 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
877 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
878 always_ld_library_path. Set LD_LIBRARY_PATH here.
879 * testsuite/libgomp.fortran/fortran.exp: Ditto.
880 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
881 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
883 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
884 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
885 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
886 * testsuite/libgomp.c/pr29947-1.c: Ditto.
887 * testsuite/libgomp.c/atomic-10.c: Ditto.
889 2007-03-21 Jakub Jelinek <jakub@redhat.com>
891 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
892 dg-final cleanup-modules line.
893 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
894 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
895 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
896 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
897 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
898 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
899 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
901 2007-03-18 Andreas Schwab <schwab@suse.de>
903 * acinclude.m4: Adjust regular expression for ld version
905 * configure: Regenerate.
907 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
909 * Makefile.am: Add install-pdf target as copied from
910 automake v1.10 rules.
911 * Makefile.in: Regenerate
913 2007-02-07 Jakub Jelinek <jakub@redhat.com>
916 * configure: Regenerate.
919 * testsuite/libgomp.c++/pr30703.C: New test.
921 2007-02-02 Jakub Jelinek <jakub@redhat.com>
924 2006-07-05 Eric Christopher <echristo@apple.com>
925 * configure.ac: Depend addition of -pthread on host OS.
926 * configure: Regenerate.
928 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
930 * libgomp.texi: Fix spacing after abbreviations.
932 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
935 * configure.ac: Add check for makeinfo
936 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
937 if an appropiate version of makeinfo is found.
938 * aclocal.m4: Regenerated.
939 * configure: Regenerated.
940 * Makefile.in: Regenerated.
941 * testsuite/Makefile.in: Regenerated.
943 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
946 * libgomp.texi: More about implementation-dependent settings.
948 2007-01-26 Tobias Burnus <burnus@net-b.de>
950 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
952 2007-01-24 Jakub Jelinek <jakub@redhat.com>
955 * testsuite/libgomp.c/pr30494.c: New test.
957 2007-01-15 Tom Tromey <tromey@redhat.com>
959 * configure: Rebuilt.
960 * configure.ac: Fixed comment.
962 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
964 * libgomp.texi: Document implementation specific default values of
965 environment variables.
967 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
970 * libgomp.texi: New file.
971 * configure.ac: Add --enable-generated-files-in-srcdir option.
972 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
974 * Makefile.in: Regenerated.
975 * config.h.in: Regenerated.
976 * testsuite/Makefile.in: Regenerated.
979 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
982 * env.c (omp_set_num_threads): Set illegal thread count to 1.
984 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
986 * configure: Regenerate.
988 2006-12-04 Jakub Jelinek <jakub@redhat.com>
991 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
992 start if there shouldn't be any loop iterations.
993 (gomp_loop_ordered_static_start): Remove start == end test.
994 * testsuite/libgomp.c/pr29947-1.c: New test.
995 * testsuite/libgomp.c/pr29947-2.c: New test.
997 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
999 * configure.tgt: Force initial-exec TLS model on Linux only.
1001 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1003 * configure: Regenerated.
1005 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
1007 * env.c (parse_schedule): Reject out of range values.
1008 (parse_unsigned_long): Reject out of range, negative or zero values.
1010 2006-10-29 Jakub Jelinek <jakub@redhat.com>
1013 * testsuite/libgomp.fortran/pr29629.f90: New test.
1015 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1018 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1019 * config/posix95: New directory.
1020 * config/posix95/omp-lock.h: New file.
1021 * config/posix95/lock.c: Likewise.
1023 2006-10-14 Geoffrey Keating <geoffk@apple.com>
1025 * aclocal.m4: Regenerate.
1026 * configure: Regenerate.
1028 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1030 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1033 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1035 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1037 * configure: Regenerate.
1038 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1040 2006-09-26 Jakub Jelinek <jakub@redhat.com>
1044 * testsuite/libgomp.c/nestedfn-4.c: New test.
1045 * testsuite/libgomp.c/nestedfn-5.c: New test.
1046 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1049 * testsuite/libgomp.fortran/condinc1.f: New test.
1050 * testsuite/libgomp.fortran/condinc2.f: New test.
1051 * testsuite/libgomp.fortran/condinc3.f90: New test.
1052 * testsuite/libgomp.fortran/condinc4.f90: New test.
1053 * testsuite/libgomp.fortran/condinc1.inc: New file.
1055 2006-09-18 Tom Tromey <tromey@redhat.com>
1057 * configure: Rebuilt.
1059 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1062 PR preprocessor/14634
1063 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1065 * configure: Regenerate.
1067 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1069 * testsuite/libgomp.fortran/reduction3.f90: Change
1070 -2147483648 to -huge(i)-1 to avoid overflow.
1071 * testsuite/libgomp.fortran/reduction4.f90: Change
1072 Z'ffffffff' to not(0) to avoid overflow.
1074 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1077 * Makefile.am (libsubincludedir): New.
1078 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1079 * Makefile.in: Regenerate.
1081 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1084 * env.c: Include ctype.h.
1085 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1086 leading and/or trailing whitespace and compare strings case
1089 2006-07-16 Jakub Jelinek <jakub@redhat.com>
1092 * testsuite/libgomp.fortran/pr28390.f: New test.
1094 2006-07-05 Eric Christopher <echristo@apple.com>
1096 * configure.ac: Depend addition of -pthread on host OS.
1097 * configure: Regenerate.
1099 2006-06-21 Jakub Jelinek <jakub@redhat.com>
1101 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1102 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1105 2006-06-20 Jakub Jelinek <jakub@redhat.com>
1109 * configure.ac: If neither --enable-linux-futex nor
1110 --disable-linux-futex is passed, determine the default by checking
1111 for compiling and/or running against NPTL. With --enable-linux-futex,
1112 check if SYS_gettid and SYS_futex are defined.
1113 * configure: Rebuilt.
1115 2006-06-14 Richard Henderson <rth@redhat.com>
1118 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1119 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1121 2006-06-09 Richard Henderson <rth@redhat.com>
1123 * env.c (gomp_nthreads_var): Change to unsigned long.
1124 (gomp_run_sched_chunk): Likewise.
1125 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1126 (initialize_env): Initialize gomp_thread_attr.
1127 * libgomp.h (gomp_nthreads_var): Update decl.
1128 (gomp_run_sched_chunk): Likewise.
1129 (gomp_thread_attr): Declare.
1130 * team.c (gomp_thread_attr): Export.
1131 (initialize_team): Don't initialize it.
1133 2006-06-09 Jakub Jelinek <jakub@redhat.com>
1136 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1137 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1139 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1141 * config/mingw32/time.c: New file.
1142 * configure.tgt: Use it.
1144 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1146 * Makefile.am: Add install-html target. Add install-html to .PHONY
1147 * Makefile.in: Regenerate.
1149 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1152 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1153 * testsuite/libgomp.c/critical-1.c: Likewise.
1154 * testsuite/libgomp.c/loop-1.c: Likewise.
1155 * testsuite/libgomp.c/loop-2.c: Likewise.
1156 * testsuite/libgomp.c/single-1.c: Likewise.
1157 * testsuite/libgomp.c/ordered-1.c: Likewise.
1158 * testsuite/libgomp.c/ordered-2.c: Likewise.
1160 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1163 * libgomp.fortran/pr27416-1.f90: New test.
1165 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1168 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1169 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1171 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1174 * testsuite/libgomp.c/pr26943-1.c: New test.
1175 * testsuite/libgomp.c/pr26943-2.c: New test.
1176 * testsuite/libgomp.c/pr26943-3.c: New test.
1177 * testsuite/libgomp.c/pr26943-4.c: New test.
1178 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1179 * testsuite/libgomp.c++/pr26943.C: New test.
1181 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1184 * testsuite/libgomp.c++/pr27337.C: New test.
1186 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1189 * testsuite/libgomp.c/pr26171.c: New test.
1191 2006-04-25 Richard Henderson <rth@redhat.com>
1194 * configure.ac: Use GCC_CHECK_TLS.
1195 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1196 * Makefile.in, aclocal.m4, configure: Regenerate.
1198 2006-04-10 Matthias Klose <doko@debian.org>
1200 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1201 directory names containing underscores.
1203 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1206 * testsuite/libgomp.c++/pr26691.C: New test.
1208 2006-03-13 Jakub Jelinek <jakub@redhat.com>
1210 * testsuite/libgomp.fortran/retval2.f90: New test.
1212 2006-03-09 Diego Novillo <dnovillo@redhat.com>
1214 * testsuite/libgomp.c++: New directory.
1216 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
1218 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1219 * config/posix/sem.c: Implement the above.
1221 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1223 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1224 define HAVE_BROKEN_POSIX_SEMAPHORES.
1225 * configure: Rebuilt.
1226 * config.h.in: Rebuilt.
1228 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1231 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1232 for the other pthread check.
1233 * configure: Regenerate.
1234 * config.h.in: Regenerate.
1236 2006-02-15 Jakub Jelinek <jakub@redhat.com>
1240 * Makefile.am (fincludedir): New variable.
1241 (nodist_include_HEADERS): Remove Fortran files.
1242 (nodist_finclude_HEADERS): New variable.
1243 * Makefile.in: Regenerated.
1245 2006-02-13 Jakub Jelinek <jakub@redhat.com>
1247 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1248 Remove tests for returning assumed character length arrays.
1250 2006-02-12 Roger Sayle <roger@eyesopen.com>
1251 John David Anglin <dave@hiauly1.hia.nrc.ca>
1254 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
1256 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1258 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1260 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1262 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1263 part of LD_LIBRARY_PATH manually.
1265 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1268 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1271 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
1274 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1275 * configure.ac (PERL): Don't set.
1276 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1277 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1278 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1279 * omp.h.in: Wrap the new configure substitutions with @ characters.
1280 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1281 * aclocal.m4, configure, Makefile.in: Regenerate.
1282 * mkomp_h.pl: Delete.
1284 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
1287 * configure.ac: Use GCC_HEADER_STDINT.
1288 * libgomp.h: Include gstdint.h.
1289 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1290 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1292 2006-01-24 Richard Henderson <rth@redhat.com>
1295 * configure.ac: Add AM_MAINTAINER_MODE.
1296 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1298 2006-01-24 Diego Novillo <dnovillo@redhat.com>
1300 * Makefile.in: Regenerate.
1301 * testsuite/Makefile.in: Regenerate.
1302 * aclocal.m4: Regenerate.
1304 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1306 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1308 * configure.ac: Add check for loadavg.h.
1309 (link_gomp): Adjust comment.
1310 * configure: Regenerate.
1311 * config.h.in: Regenerate.
1313 2006-01-21 Steve Ellcey <sje@cup.hp.com>
1316 * configure.ac: Remove check for alloca.h.
1317 * configure: Regenerate.
1318 * config.h.in: Regenerate.
1319 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1320 * team.c: Remove use of alloca.h.
1321 Call gomp_alloca instead of alloca.
1323 2006-01-20 Steve Ellcey <sje@cup.hp.com>
1326 * team.c: Add include of alloca.h.
1327 * configure.ac: Add check for alloca.h.
1328 * configure: Regenerate.
1329 * config.h.in: Regenerate.
1331 2006-01-17 Jakub Jelinek <jakub@redhat.com>
1334 * testsuite/libgomp.fortran/pr25219.f90: New test.
1336 2005-12-05 Uros Bizjak <uros@kss-loka.si>
1338 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1339 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1340 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1341 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1342 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1343 testsuite/libgomp.fortran/threadprivate1.f90,
1344 testsuite/libgomp.fortran/threadprivate2.f90,
1345 testsuite/libgomp.fortran/threadprivate3.f90,
1346 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1347 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1348 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1349 effective-target to TLS runtime.
1351 * testsuite/libgomp.fortran/pr25162.f: Require
1352 effective-target TLS runtime.
1354 2005-12-01 Jakub Jelinek <jakub@redhat.com>
1356 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1357 * testsuite/libgomp.c/nestedfn-3.c: New test.
1359 2005-11-30 Jakub Jelinek <jakub@redhat.com>
1362 * testsuite/libgomp.fortran/pr25162.f: New test.
1364 2005-11-28 Jakub Jelinek <jakub@redhat.com>
1366 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1367 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1369 2005-11-25 Jakub Jelinek <jakub@redhat.com>
1371 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1372 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1373 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1374 single.c, team.c, work.c, config/linux/alpha/futex.h,
1375 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1376 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1377 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1378 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1379 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1380 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1381 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1384 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1386 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1387 to nodist_noinst_HEADERS.
1388 * Makefile.in: Rebuilt.
1390 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1391 add integer count field.
1392 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1393 omp_nest_lock_t type change.
1394 (omp_init_nest_lock): Likewise. Initialize count to 0.
1395 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1397 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1399 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1400 Increment count if successful and return the new nesting level.
1401 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1402 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1403 * testsuite/libgomp.c/lib-1.c: New test.
1404 * testsuite/libgomp.fortran/lib1.f90: New test.
1405 * testsuite/libgomp.fortran/lib2.f: New test.
1406 * testsuite/libgomp.fortran/lib3.f: New test.
1408 2005-11-17 Richard Henderson <rth@redhat.com>
1411 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1412 * configure.ac (link_gomp): New. Substitute it.
1413 (AC_CONFIG_FILES): Add libgomp.spec.
1414 * libgomp.spec.in: New file.
1415 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1416 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1418 2005-11-18 Jakub Jelinek <jakub@redhat.com>
1420 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1421 reduction(-:var) behaving the same as reduction(+:var).
1422 * testsuite/libgomp.c/reduction-4.c: New test.
1424 2005-11-15 Uros Bizjak <uros@kss-loka.si>
1426 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1427 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1428 testsuite/libgomp.c/copyin-3.c,
1429 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1430 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1431 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1432 testsuite/libgomp.c++/pr24455.C,
1433 testsuite/libgomp.fortran/threadprivate1.f90,
1434 testsuite/libgomp.fortran/threadprivate2.f90,
1435 testsuite/libgomp.fortran/threadprivate3.f90,
1436 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1437 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1438 testsuite/libgomp.fortran/omp_parse3.f90: Require
1439 effective-target TLS.
1441 2005-11-14 Diego Novillo <dnovillo@redhat.com>
1445 2005-11-13 Jakub Jelinek <jakub@redhat.com>
1448 * team.c (initialize_team): Pass NULL rather than free as
1449 pthread_key_create destructor. Initialize thread specific data
1450 pointer in initial thread to a static local variable rather than
1453 2005-11-11 Uros Bizjak <uros@kss-loka.si>
1455 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1456 its location to ld_library_path.
1458 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1460 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1462 2005-11-10 Diego Novillo <dnovillo@redhat.com>
1464 * testsuite/libgomp.c: Rename from libgomp.dg.
1466 2005-11-09 Diego Novillo <dnovillo@redhat.com>
1468 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1469 threadprivate variable 'i'.
1471 2005-11-09 Jakub Jelinek <jakub@redhat.com>
1473 * config/linux/s390/futex.h: New file.
1474 * configure.tgt: Use it.
1476 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1477 before the parallel.
1479 2005-11-08 Jakub Jelinek <jakub@redhat.com>
1482 * testsuite/libgomp.c++/master-1.C: New test.
1484 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1486 * testsuite/libgomp.dg/copyin-3.c: New test.
1488 2005-11-07 Jakub Jelinek <jakub@redhat.com>
1490 * testsuite/libgomp.fortran/retval1.f90: New test.
1491 * testsuite/libgomp.fortran/vla7.f90: New test.
1493 2005-11-06 Jakub Jelinek <jakub@redhat.com>
1495 * testsuite/libgomp.fortran/vla2.f90: New test.
1496 * testsuite/libgomp.fortran/vla3.f90: New test.
1497 * testsuite/libgomp.fortran/vla4.f90: New test.
1498 * testsuite/libgomp.fortran/vla5.f90: New test.
1499 * testsuite/libgomp.fortran/vla6.f90: New test.
1501 2005-11-01 Jakub Jelinek <jakub@redhat.com>
1503 * config/linux/sparc/futex.h: New file.
1504 * configure.tgt: Use it.
1505 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1507 * critical.c: Include stdlib.h.
1508 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1509 ignoring return value.
1510 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1511 LIBGOMP_CHECK_SYNC_BUILTINS check.
1512 * configure: Rebuilt.
1514 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1516 * testsuite/libgomp.fortran/vla1.f90: New test.
1518 2005-10-31 Richard Henderson <rth@redhat.com>
1520 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1521 setting 's' in different threads.
1523 2005-10-31 Jakub Jelinek <jakub@redhat.com>
1525 * libgomp.h (attribute_hidden, ialias): Define.
1526 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1527 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1528 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1529 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1530 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1531 omp_test_lock, omp_test_nest_lock): Likewise.
1532 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1533 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1534 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1535 omp_test_lock, omp_test_nest_lock): Likewise.
1536 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1537 omp_get_dynamic, omp_get_nested): Likewise.
1538 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1539 omp_get_thread_num, omp_in_parallel): Likewise.
1540 * fortran.c (ialias_redirect): Define.
1541 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1542 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1543 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1544 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1545 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1546 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1547 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1548 omp_get_wtime): Add ialias_redirect.
1550 2005-10-30 Jakub Jelinek <jakub@redhat.com>
1552 * fortran.c: Include stdlib.h.
1554 2005-10-29 Jakub Jelinek <jakub@redhat.com>
1556 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1557 * Makefile.in: Regenerated.
1559 2005-10-28 Jakub Jelinek <jakub@redhat.com>
1561 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1562 * libgomp_f.h.in (omp_check_defines): New function.
1563 * env.c: Include libgomp_f.h.
1564 (initialize_env): Call omp_check_defines.
1566 * testsuite/libgomp.dg/copyin-2.c: New test.
1567 * testsuite/libgomp.c++/copyin-2.C: New test.
1568 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1570 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1571 * testsuite/libgomp.fortran/sharing2.f90: New test.
1573 * testsuite/libgomp.dg/copyin-1.c: New test.
1574 * testsuite/libgomp.c++/copyin-1.C: New test.
1576 2005-10-26 Jakub Jelinek <jakub@redhat.com>
1578 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1580 * testsuite/libgomp.fortran/workshare1.f90: New test.
1582 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1584 * libgomp.fortran/sharing1.f90: New test.
1586 2005-10-24 Jakub Jelinek <jakub@redhat.com>
1589 * testsuite/libgomp.c++/loop-7.C: New test.
1591 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1593 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1594 * testsuite/libgomp.fortran/reduction6.f90: New test.
1595 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1597 2005-10-23 Richard Henderson <rth@redhat.com>
1599 * testsuite/libgomp.c++/ctor-1.C: New.
1600 * testsuite/libgomp.c++/ctor-2.C: New.
1601 * testsuite/libgomp.c++/ctor-3.C: New.
1602 * testsuite/libgomp.c++/ctor-4.C: New.
1603 * testsuite/libgomp.c++/ctor-5.C: New.
1604 * testsuite/libgomp.c++/ctor-6.C: New.
1605 * testsuite/libgomp.c++/ctor-7.C: New.
1606 * testsuite/libgomp.c++/ctor-8.C: New.
1607 * testsuite/libgomp.c++/ctor-9.C: New.
1609 2005-10-21 Diego Novillo <dnovillo@redhat.com>
1612 * testsuite/libgomp.c++/pr24455-1.C: New test.
1613 * testsuite/libgomp.c++/pr24455.C: New test.
1614 * testsuite/libgomp.dg/pr24455-1.c: New test.
1615 * testsuite/libgomp.dg/pr24455.c: New test.
1617 2005-10-20 Richard Henderson <rth@redhat.com>
1619 * testsuite/libgomp.c++/loop-6.C: New.
1620 * testsuite/libgomp.dg/loop-3.c: New.
1622 2005-10-20 Jakub Jelinek <jakub@redhat.com>
1624 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1626 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1629 2005-10-19 Diego Novillo <dnovillo@redhat.com>
1631 * testsuite/libgomp.fortran/jacobi.f: New test.
1633 2005-10-19 Richard Henderson <rth@redhat.com>
1635 * configure.tgt (i?86-linux): Default to with_arch instead of
1636 CFLAGS. Add -mtune to match target_cpu.
1637 (x86_64-linux): Tune to i686.
1639 * fortran.c (omp_test_nest_lock_): Fix typo.
1641 2005-10-19 Jakub Jelinek <jakub@redhat.com>
1643 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1644 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1645 * testsuite/libgomp.dg/ordered-3.c: New test.
1647 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1648 Remove volatile keyword.
1650 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
1651 in COMMON block to avoid warnings on 64-bit targets.
1653 2005-10-18 Diego Novillo <dnovillo@redhat.com>
1655 * testsuite/libgomp.dg/shared-3.c: New test.
1657 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1659 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
1660 * testsuite/libgomp.fortran/reduction5.f90: New test.
1662 2005-10-18 Jakub Jelinek <jakub@redhat.com>
1664 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
1666 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
1667 flush loop now that __sync_synchronize has proper memory barrier.
1668 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
1669 Add -ffixed-form to dg-options.
1671 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1673 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
1674 from subdirectories.
1675 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
1676 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
1677 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
1678 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
1679 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
1680 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
1681 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
1682 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
1683 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
1684 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
1685 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
1686 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
1687 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
1688 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
1689 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
1690 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
1691 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
1692 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
1693 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
1694 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
1695 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
1696 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
1697 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
1698 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
1699 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
1701 2005-10-17 Jakub Jelinek <jakub@redhat.com>
1703 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
1704 lang_library_path exists. Use find instead of glob to gather tests.
1705 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
1707 2005-10-17 Diego Novillo <dnovillo@redhat.com>
1709 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
1710 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
1711 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
1712 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
1713 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
1714 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
1715 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
1716 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
1717 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
1718 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
1719 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
1720 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
1721 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1723 2005-10-15 Jakub Jelinek <jakub@redhat.com>
1725 * testsuite/libgomp.dg/vla-1.c: New test.
1727 * testsuite/libgomp.fortran/reference2.f90: New test.
1729 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1730 declaration of omp_get_thread_num.
1731 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1734 * testsuite/libgomp.fortran/reduction1.f90: New test.
1735 * testsuite/libgomp.fortran/reduction2.f90: New test.
1736 * testsuite/libgomp.fortran/reduction3.f90: New test.
1737 * testsuite/libgomp.fortran/reduction4.f90: New test.
1739 2005-10-13 Richard Henderson <rth@redhat.com>
1741 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1742 * Makefile.in: Regenerate.
1743 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1744 * libgomp.h: Include bar.h.
1745 (struct gomp_barrier): Remove.
1746 (struct gomp_team): Add barrier. Replace master_barrier with
1747 master_release. Replace threads with ordered_release.
1748 (struct gomp_thread): Replace barrier with release.
1749 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1750 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1751 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1752 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1753 (GOMP_single_copy_end): Likewise.
1754 * team.c (gomp_threads_dock): New.
1755 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1756 (gomp_thread_start): Use gomp_barrier_wait.
1757 (new_team, free_team): Update for gomp_team changes.
1758 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1759 (gomp_team_end): Use gomp_barrier_wait.
1760 (initialize_team): Update for gomp_thread changes.
1761 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1762 (gomp_work_share_end_nowait): Use atomic ops when available.
1763 * config/linux/bar.c, config/linux/bar.h: New files.
1764 * config/posix/bar.c, config/posix/bar.h: New files.
1766 2005-10-13 Jakub Jelinek <jakub@redhat.com>
1768 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1769 * testsuite/libgomp.dg/single-2.c: New test.
1771 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1772 lang_link_flags): Unset, so that they aren't inherited from previously
1775 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1777 2005-10-12 Richard Henderson <rth@redhat.com>
1779 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1780 (libgomp_init): Use lang_test_file, lang_library_path, and
1781 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1783 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1784 (lang_test_file, lang_link_flags): New.
1785 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1787 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1788 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1789 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1790 testsuite/libgomp.c++/parallel-1.C,
1791 testsuite/libgomp.c++/reduction-1.C,
1792 testsuite/libgomp.c++/reduction-2.C,
1793 testsuite/libgomp.c++/reduction-3.C,
1794 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1795 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1796 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1797 New files, largely cribbed from the C testsuite.
1799 2005-10-12 Jakub Jelinek <jakub@redhat.com>
1801 * testsuite/libgomp.fortran/character1.f90: New test.
1802 * testsuite/libgomp.fortran/character2.f90: New test.
1804 * testsuite/libgomp.dg/nested-1.c: New test.
1805 * testsuite/libgomp.dg/nested-2.c: New test.
1806 * testsuite/libgomp.fortran/do1.f90: New test.
1807 * testsuite/libgomp.fortran/do2.f90: New test.
1809 * testsuite/libgomp.fortran/reference1.f90: New test.
1811 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1813 * testsuite/libgomp.dg/reduction-1.c: New test.
1814 * testsuite/libgomp.dg/reduction-2.c: New test.
1815 * testsuite/libgomp.dg/reduction-3.c: New test.
1817 2005-10-10 Jakub Jelinek <jakub@redhat.com>
1819 * testsuite/libgomp.dg/atomic-1.c: New test.
1820 * testsuite/libgomp.dg/atomic-2.c: New test.
1822 2005-10-09 Richard Henderson <rth@redhat.com>
1824 * critical.c (atomic_lock): New.
1825 (initialize_critical): Initialize it.
1826 (GOMP_atomic_start, GOMP_atomic_end): New.
1827 * libgomp.map: Export them.
1828 * libgomp_g.h: Declare them.
1830 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1832 2005-10-02 Richard Henderson <rth@redhat.com>
1834 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1835 to XCFLAGS instead of CFLAGS.
1837 2005-09-30 Richard Henderson <rth@redhat.com>
1839 * configure.ac: Determine whether -pthread or -lpthread is needed.
1840 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1841 * Makefine.in, configure: Rebuild.
1843 2005-09-28 Richard Henderson <rth@redhat.com>
1845 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1846 * testsuite/libgomp.dg/omp-single-3.c: New test.
1848 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1850 * testsuite/libgomp.dg/omp-single-2.c: New test.
1851 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1853 2005-09-27 Richard Henderson <rth@redhat.com>
1855 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1856 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1858 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1860 * testsuite/libgomp.dg/omp-loop03.c: New test.
1862 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1864 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1866 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1868 * testsuite/libgomp.dg/omp-single-1.c: New test.
1869 * testsuite/libgomp.dg/shared-1.c: Return 0.
1870 Add prototype for abort.
1871 * testsuite/libgomp.dg/shared-2.c: Likewise.
1873 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1875 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1878 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1880 * testsuite/libgomp.dg/shared-1.c: New test.
1881 * testsuite/libgomp.dg/shared-2.c: New test.
1883 2005-09-24 Richard Henderson <rth@redhat.com>
1885 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1887 2005-09-24 Richard Henderson <rth@redhat.com>
1889 * iter.c (gomp_iter_static_next): Round up when computing number
1890 of iterations. Don't bother distributing a remainder equally.
1892 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1893 Don't call srand. Zero b before testing.
1896 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1898 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1899 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1901 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1903 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1904 without !$omp end do, followed immediately by subroutine end.
1906 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1908 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1910 2005-09-22 Richard Henderson <rth@redhat.com>
1912 * critical.c (GOMP_critical_name_start): Change argument to void**.
1913 Reuse the pointer space if the mutex fits.
1914 (GOMP_critical_name_end): Likewise.
1915 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1916 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1917 (GOMP_critical_name_end): Likewise.
1918 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1919 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1921 2005-09-20 Richard Henderson <rth@redhat.com>
1923 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1924 (create_lock_lock): New.
1925 (initialize_critical): Initialize it.
1926 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1927 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1929 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1931 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1933 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1935 * testsuite/libgomp.dg/omp-loop01.c: New test.
1936 * testsuite/libgomp.dg/omp-loop02.c: New test.
1938 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1940 * configure.ac (AC_PROG_FC): Add.
1941 (USE_FORTRAN): New automake conditional.
1942 * configure: Rebuilt.
1943 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1944 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1945 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1946 Add rules to build them.
1947 * Makefile.in: Rebuilt.
1948 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1950 * libgomp.map: Add Fortran wrappers.
1951 * libgomp_f.h.in: New file.
1952 * omp_lib.h.in: New file.
1953 * omp_lib.f90.in: New file.
1954 * fortran.c: New file.
1955 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1956 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1957 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1958 libgfortran has been built.
1959 * testsuite/libgomp.fortran/fortran.exp: New file.
1960 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1961 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1962 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1963 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1964 * testsuite/libgomp.fortran/omp_hello.f: New test.
1965 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1966 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1967 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1968 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1969 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1970 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1971 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1972 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1974 2005-08-30 Richard Henderson <rth@redhat.com>
1976 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1977 function for when aliases are not usable.
1978 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1979 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1980 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1981 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1982 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1983 GOMP_loop_ordered_guided_next): Likewise.
1984 * ordered.c (GOMP_ordered_start): Likewise.
1986 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1988 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1989 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1990 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1991 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1992 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1993 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1994 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1995 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1996 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1998 2005-07-07 Eric Christopher <echristo@redhat.com>
1999 Diego Novillo <dnovillo@redhat.com>
2001 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2002 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2004 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2005 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2006 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2007 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2008 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2009 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2010 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2012 2005-06-13 Diego Novillo <dnovillo@redhat.com>
2014 * TOPLEVEL.patch: Remove.
2016 2005-05-16 Richard Henderson <rth@redhat.com>
2018 * configure.ac: Test for clock_gettime.
2019 * config.h.in, configure: Rebuild.
2020 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2021 (omp_get_wtime): Use clock_gettime if available.
2022 (omp_get_wtick): Use clock_getres if available.
2024 2005-05-11 Richard Henderson <rth@redhat.com>
2026 * config/linux/ia64/futex.h: New file.
2027 * configure.tgt: Use it.
2029 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2031 2005-05-07 Richard Henderson <rth@redhat.com>
2033 * config/linux/powerpc/futex.h: New file.
2034 * configure.tgt: Use it.
2036 * config/linux/i486/futex.h: Merge ...
2037 * config/linux/x86_64/futex.h: ... into ...
2038 * config/linux/x86/futex.h: ... here.
2039 * configure.tgt: Update to match.
2041 2005-05-06 Richard Henderson <rth@redhat.com>
2043 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2044 * config/linux/i486/futex.h: Likewise.
2045 * config/linux/x86_64/futex.h: Likewise.
2047 * config/linux/lock.c: New file.
2048 * config/linux/omp-lock.h: New file.
2050 * critical.c, env.h: Don't include omp.h
2051 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2052 * config/posix/time.c: Likewise.
2053 * config/posix/omp-lock.h: New file.
2054 * libgomp.h: Include omp-lock.h and omp.h.
2055 * Makefile.am (nodist_include_HEADERS): New.
2057 * configure.ac (PERL): New.
2058 * mkomp_h.pl: New file.
2059 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2061 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2063 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2064 build directory. Re-add -march=i486 hack.
2066 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2067 (libgomp_link_flags): Remove.
2068 (libgomp_initialized): Remove.
2069 (libgomp_init): Don't protect from reinitialization. Copy code
2070 from libstdc++ for getting the multilib set correctly.
2072 2005-05-05 Richard Henderson <rth@redhat.com>
2074 * config/linux/alpha/futex.h: New file.
2075 * configure.tgt (alpha*-*-linux*): Use it.
2077 * config/posix/mutex.c: New file.
2078 * config/posix/sem.c: Use libgomp.h.
2080 * configure.tgt (x86_64-linux): Also test CC for -m32.
2081 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2083 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
2086 * Makefile.am (SUBDIRS): New.
2087 (libgomp_la_LDFLAGS): Add -lpthread.
2088 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2089 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2091 * libgomp_g.h: New file.
2092 * libgomp.h: Split out all public declarations to libgomp_g.h.
2093 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2094 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2095 * config/linux/sem.h: Likewise.
2096 * config/posix/sem.h: Likewise.
2098 * Makefile.am (AM_LDFLAGS): New.
2099 (libgomp_version_script): Split out from ...
2100 (libgomp_la_LDFLAGS): ... here.
2101 (libgomp_version_info): New.
2102 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2103 (LIBGOMP_ENABLE): New.
2104 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2105 (LIBGOMP_ENABLE_SYMVERS): New.
2106 * configure.ac (AC_INIT): Version 1.0.
2107 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2108 (enable-linux-futex): Likewise. Rename from enable-futex.
2109 (libtool_VERSION): New.
2110 (LIBGOMP_ENABLE_SYMVERS): Use it.
2111 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2112 * Makefile.in, aclocal.m4, configure: Rebuild.
2114 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2115 (gomp_mutex_unlock_slow): Fix typo.
2116 * config/linux/sem.c: Similarly.
2117 (gomp_sem_post_slow): Fix typo.
2118 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2119 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2120 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2122 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2123 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2124 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2125 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2126 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2127 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2128 LDFLAGS. Pull enable_futex check to top-level.
2129 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2130 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2132 First attempt at real configury.
2133 * Makefile, config.h: Remove file.
2134 * Makefile.am, Makefile.in: New file.
2135 * acinclude.m4 aclocal.m4: New file.
2136 * configure.ac, configure.tgt, configure: New file.
2138 * config/posix/lock.c: Rename from sys-lock.c.
2139 * config/posix/mutex.h: Rename from sys-mutex.h.
2140 * config/posix/sem.c: Rename from sys-sem.c.
2141 * config/posix/sem.h: Rename from sys-sem.h.
2142 * config/posix/proc.c: Rename from sys-proc.c.
2143 * config/posix/time.c: Rename from sys-proc.c.
2145 * config/linux/mutex.c: New file.
2146 * config/linux/mutex.h: New file.
2147 * config/linux/sem.c: New file.
2148 * config/linux/sem.h: New file.
2149 * config/linux/i486/futex.h: New file.
2150 * config/linux/x86_64/futex.h: New file.
2152 2005-05-04 Richard Henderson <rth@redhat.com>
2154 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2155 * libgomp.h: Declare them.
2156 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2157 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2159 2005-05-04 Richard Henderson <rth@redhat.com>
2161 * libgomp-1 code drop
2163 2005-05-04 Richard Henderson <rth@redhat.com>
2165 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2166 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2167 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2168 (gomp_iter_static_next): Update.
2169 (gomp_ordered_static_next): Update.
2170 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2171 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2172 totally empty range.
2173 (gomp_loop_ordered_static_next): Refine test for calling
2174 gomp_ordered_static_next.
2175 * testsuite/ordered-1.c: Add case for more threads than iterations.
2177 * iter.c (gomp_iter_runtime_next_locked): Remove.
2178 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
2179 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2180 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2181 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2182 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2183 gomp_loop_ordered_guided_next): Downcase name, make static, add
2184 an external alias with the old name.
2185 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2186 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2187 switch and call one of the above static functions.
2188 * libgomp.h: Update.
2190 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2191 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2192 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2193 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2194 GOMP_loop_ordered_guided_start): Update to match.
2195 * sections.c (GOMP_sections_start): Likewise.
2196 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2198 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2199 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2200 Use bounds check instead of modulus.
2201 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2202 (gomp_ordered_last): Don't sync with ordered_owner here.
2203 (gomp_ordered_next): Likewise.
2204 (gomp_ordered_static_loop_next): Likewise.
2205 * loop.c, libgomp.h: Update to match.
2207 * libgomp.h (GOMP_barrier): Declare.
2209 * testsuite/barrier-1.c: New file.
2210 * testsuite/critical-1.c: New file.
2211 * testsuite/ordered-2.c: New file.
2212 * testsuite/ordered-1.c: New file.
2213 * testsuite/sections-1.c: New file.
2214 * testsuite/single-1.c: New file.
2215 * testsuite/Makefile (TESTS): Add them.
2217 2005-05-04 Richard Henderson <rth@redhat.com>
2219 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2220 * loop.c (GOMP_loop_static_start): If not the startup thread,
2221 acquire the mutex to wait for initialization complete.
2222 (GOMP_loop_ordered_static_start): Likewise.
2223 (GOMP_loop_ordered_runtime_start): Likewise.
2224 (GOMP_loop_ordered_static_first): Remove.
2225 (GOMP_loop_ordered_dynamic_first): Remove.
2226 (GOMP_loop_ordered_guided_first): Remove.
2227 (GOMP_loop_ordered_runtime_first): Remove.
2228 * ordered.c (gomp_ordered_loop_first): Post to own release when
2229 we're the first thread.
2230 (gomp_ordered_loop_last): Wait on release if not owner.
2231 (gomp_ordered_loop_next): Likewise.
2232 (gomp_ordered_static_loop_init): New.
2233 (gomp_ordered_static_loop_next): Use ordered_owner.
2234 (GOMP_ordered_start): Likewise.
2235 * work.c (gomp_new_work_share): Initialize ordered_owner.
2237 2005-05-03 Richard Henderson <rth@redhat.com>
2239 * Makefile (OPT): New.
2242 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2243 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2244 * libgomp.h, libgomp.map, NOTES: Update to match.
2246 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2247 Add initialized and thr members.
2248 (gomp_thread_start): Pause when initially spawned to wait for
2249 the whole team to be created.
2250 (gomp_team_start): Release team members at the end.
2252 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2253 (f_foo_1): Use GOMP_loop_end.
2254 (f_foo_2): Use GOMP_loop_end_nowait.
2256 * testsuite/loop-2.c: New file.
2257 * testsuite/Makefile (TESTS): Add it.
2259 2005-05-03 Richard Henderson <rth@redhat.com>
2261 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2262 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2263 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2266 * testsuite/Makefile: New file.
2267 * testsuite/loop-1.c: New file.
2269 2005-05-03 Richard Henderson <rth@redhat.com>
2271 Initial implementation and checkin.