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