comparison libgomp/ChangeLog @ 0:a06113de4d67

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