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