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