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