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