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