1 2007-02-07 Jakub Jelinek <jakub@redhat.com>
4 * configure: Regenerate.
7 * testsuite/libgomp.c++/pr30703.C: New test.
9 2007-02-02 Jakub Jelinek <jakub@redhat.com>
12 2006-07-05 Eric Christopher <echristo@apple.com>
13 * configure.ac: Depend addition of -pthread on host OS.
14 * configure: Regenerate.
16 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18 * libgomp.texi: Fix spacing after abbreviations.
20 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
23 * configure.ac: Add check for makeinfo
24 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
25 if an appropiate version of makeinfo is found.
26 * aclocal.m4: Regenerated.
27 * configure: Regenerated.
28 * Makefile.in: Regenerated.
29 * testsuite/Makefile.in: Regenerated.
31 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
34 * libgomp.texi: More about implementation-dependent settings.
36 2007-01-26 Tobias Burnus <burnus@net-b.de>
38 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
40 2007-01-24 Jakub Jelinek <jakub@redhat.com>
43 * testsuite/libgomp.c/pr30494.c: New test.
45 2007-01-15 Tom Tromey <tromey@redhat.com>
48 * configure.ac: Fixed comment.
50 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
52 * libgomp.texi: Document implementation specific default values of
53 environment variables.
55 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
58 * libgomp.texi: New file.
59 * configure.ac: Add --enable-generated-files-in-srcdir option.
60 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
62 * Makefile.in: Regenerated.
63 * config.h.in: Regenerated.
64 * testsuite/Makefile.in: Regenerated.
67 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
70 * env.c (omp_set_num_threads): Set illegal thread count to 1.
72 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
74 * configure: Regenerate.
76 2006-12-04 Jakub Jelinek <jakub@redhat.com>
79 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
80 start if there shouldn't be any loop iterations.
81 (gomp_loop_ordered_static_start): Remove start == end test.
82 * testsuite/libgomp.c/pr29947-1.c: New test.
83 * testsuite/libgomp.c/pr29947-2.c: New test.
85 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
87 * configure.tgt: Force initial-exec TLS model on Linux only.
89 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
91 * configure: Regenerated.
93 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
95 * env.c (parse_schedule): Reject out of range values.
96 (parse_unsigned_long): Reject out of range, negative or zero values.
98 2006-10-29 Jakub Jelinek <jakub@redhat.com>
101 * testsuite/libgomp.fortran/pr29629.f90: New test.
103 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
106 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
107 * config/posix95: New directory.
108 * config/posix95/omp-lock.h: New file.
109 * config/posix95/lock.c: Likewise.
111 2006-10-14 Geoffrey Keating <geoffk@apple.com>
113 * aclocal.m4: Regenerate.
114 * configure: Regenerate.
116 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
118 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
121 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
123 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
125 * configure: Regenerate.
126 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
128 2006-09-26 Jakub Jelinek <jakub@redhat.com>
132 * testsuite/libgomp.c/nestedfn-4.c: New test.
133 * testsuite/libgomp.c/nestedfn-5.c: New test.
134 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
137 * testsuite/libgomp.fortran/condinc1.f: New test.
138 * testsuite/libgomp.fortran/condinc2.f: New test.
139 * testsuite/libgomp.fortran/condinc3.f90: New test.
140 * testsuite/libgomp.fortran/condinc4.f90: New test.
141 * testsuite/libgomp.fortran/condinc1.inc: New file.
143 2006-09-18 Tom Tromey <tromey@redhat.com>
145 * configure: Rebuilt.
147 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
150 PR preprocessor/14634
151 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
153 * configure: Regenerate.
155 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
157 * testsuite/libgomp.fortran/reduction3.f90: Change
158 -2147483648 to -huge(i)-1 to avoid overflow.
159 * testsuite/libgomp.fortran/reduction4.f90: Change
160 Z'ffffffff' to not(0) to avoid overflow.
162 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
165 * Makefile.am (libsubincludedir): New.
166 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
167 * Makefile.in: Regenerate.
169 2006-08-17 Jakub Jelinek <jakub@redhat.com>
172 * env.c: Include ctype.h.
173 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
174 leading and/or trailing whitespace and compare strings case
177 2006-07-16 Jakub Jelinek <jakub@redhat.com>
180 * testsuite/libgomp.fortran/pr28390.f: New test.
182 2006-07-05 Eric Christopher <echristo@apple.com>
184 * configure.ac: Depend addition of -pthread on host OS.
185 * configure: Regenerate.
187 2006-06-21 Jakub Jelinek <jakub@redhat.com>
189 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
190 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
193 2006-06-20 Jakub Jelinek <jakub@redhat.com>
197 * configure.ac: If neither --enable-linux-futex nor
198 --disable-linux-futex is passed, determine the default by checking
199 for compiling and/or running against NPTL. With --enable-linux-futex,
200 check if SYS_gettid and SYS_futex are defined.
201 * configure: Rebuilt.
203 2006-06-14 Richard Henderson <rth@redhat.com>
206 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
207 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
209 2006-06-09 Richard Henderson <rth@redhat.com>
211 * env.c (gomp_nthreads_var): Change to unsigned long.
212 (gomp_run_sched_chunk): Likewise.
213 (parse_unsigned_long): Rename from parse_num_threads and generalize.
214 (initialize_env): Initialize gomp_thread_attr.
215 * libgomp.h (gomp_nthreads_var): Update decl.
216 (gomp_run_sched_chunk): Likewise.
217 (gomp_thread_attr): Declare.
218 * team.c (gomp_thread_attr): Export.
219 (initialize_team): Don't initialize it.
221 2006-06-09 Jakub Jelinek <jakub@redhat.com>
224 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
225 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
227 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
229 * config/mingw32/time.c: New file.
230 * configure.tgt: Use it.
232 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
234 * Makefile.am: Add install-html target. Add install-html to .PHONY
235 * Makefile.in: Regenerate.
237 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
240 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
241 * testsuite/libgomp.c/critical-1.c: Likewise.
242 * testsuite/libgomp.c/loop-1.c: Likewise.
243 * testsuite/libgomp.c/loop-2.c: Likewise.
244 * testsuite/libgomp.c/single-1.c: Likewise.
245 * testsuite/libgomp.c/ordered-1.c: Likewise.
246 * testsuite/libgomp.c/ordered-2.c: Likewise.
248 2006-05-15 Jakub Jelinek <jakub@redhat.com>
251 * libgomp.fortran/pr27416-1.f90: New test.
253 2006-05-03 Jakub Jelinek <jakub@redhat.com>
256 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
257 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
259 2006-05-02 Jakub Jelinek <jakub@redhat.com>
262 * testsuite/libgomp.c/pr26943-1.c: New test.
263 * testsuite/libgomp.c/pr26943-2.c: New test.
264 * testsuite/libgomp.c/pr26943-3.c: New test.
265 * testsuite/libgomp.c/pr26943-4.c: New test.
266 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
267 * testsuite/libgomp.c++/pr26943.C: New test.
269 2006-05-02 Jakub Jelinek <jakub@redhat.com>
272 * testsuite/libgomp.c++/pr27337.C: New test.
274 2006-04-26 Jakub Jelinek <jakub@redhat.com>
277 * testsuite/libgomp.c/pr26171.c: New test.
279 2006-04-25 Richard Henderson <rth@redhat.com>
282 * configure.ac: Use GCC_CHECK_TLS.
283 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
284 * Makefile.in, aclocal.m4, configure: Regenerate.
286 2006-04-10 Matthias Klose <doko@debian.org>
288 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
289 directory names containing underscores.
291 2006-03-21 Jakub Jelinek <jakub@redhat.com>
294 * testsuite/libgomp.c++/pr26691.C: New test.
296 2006-03-13 Jakub Jelinek <jakub@redhat.com>
298 * testsuite/libgomp.fortran/retval2.f90: New test.
300 2006-03-09 Diego Novillo <dnovillo@redhat.com>
302 * testsuite/libgomp.c++: New directory.
304 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
306 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
307 * config/posix/sem.c: Implement the above.
309 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
311 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
312 define HAVE_BROKEN_POSIX_SEMAPHORES.
313 * configure: Rebuilt.
314 * config.h.in: Rebuilt.
316 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
319 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
320 for the other pthread check.
321 * configure: Regenerate.
322 * config.h.in: Regenerate.
324 2006-02-15 Jakub Jelinek <jakub@redhat.com>
328 * Makefile.am (fincludedir): New variable.
329 (nodist_include_HEADERS): Remove Fortran files.
330 (nodist_finclude_HEADERS): New variable.
331 * Makefile.in: Regenerated.
333 2006-02-13 Jakub Jelinek <jakub@redhat.com>
335 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
336 Remove tests for returning assumed character length arrays.
338 2006-02-12 Roger Sayle <roger@eyesopen.com>
339 John David Anglin <dave@hiauly1.hia.nrc.ca>
342 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
344 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
346 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
348 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
350 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
351 part of LD_LIBRARY_PATH manually.
353 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
356 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
359 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
362 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
363 * configure.ac (PERL): Don't set.
364 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
365 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
366 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
367 * omp.h.in: Wrap the new configure substitutions with @ characters.
368 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
369 * aclocal.m4, configure, Makefile.in: Regenerate.
370 * mkomp_h.pl: Delete.
372 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
375 * configure.ac: Use GCC_HEADER_STDINT.
376 * libgomp.h: Include gstdint.h.
377 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
378 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
380 2006-01-24 Richard Henderson <rth@redhat.com>
383 * configure.ac: Add AM_MAINTAINER_MODE.
384 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
386 2006-01-24 Diego Novillo <dnovillo@redhat.com>
388 * Makefile.in: Regenerate.
389 * testsuite/Makefile.in: Regenerate.
390 * aclocal.m4: Regenerate.
392 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
394 * config/posix/proc.c: Conditional include of sys/loadavg.h for
396 * configure.ac: Add check for loadavg.h.
397 (link_gomp): Adjust comment.
398 * configure: Regenerate.
399 * config.h.in: Regenerate.
401 2006-01-21 Steve Ellcey <sje@cup.hp.com>
404 * configure.ac: Remove check for alloca.h.
405 * configure: Regenerate.
406 * config.h.in: Regenerate.
407 * libgomp.h: define gomp_alloca to be __builtin_alloca.
408 * team.c: Remove use of alloca.h.
409 Call gomp_alloca instead of alloca.
411 2006-01-20 Steve Ellcey <sje@cup.hp.com>
414 * team.c: Add include of alloca.h.
415 * configure.ac: Add check for alloca.h.
416 * configure: Regenerate.
417 * config.h.in: Regenerate.
419 2006-01-17 Jakub Jelinek <jakub@redhat.com>
422 * testsuite/libgomp.fortran/pr25219.f90: New test.
424 2005-12-05 Uros Bizjak <uros@kss-loka.si>
426 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
427 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
428 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
429 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
430 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
431 testsuite/libgomp.fortran/threadprivate1.f90,
432 testsuite/libgomp.fortran/threadprivate2.f90,
433 testsuite/libgomp.fortran/threadprivate3.f90,
434 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
435 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
436 testsuite/libgomp.fortran/omp_parse3.f90: Change required
437 effective-target to TLS runtime.
439 * testsuite/libgomp.fortran/pr25162.f: Require
440 effective-target TLS runtime.
442 2005-12-01 Jakub Jelinek <jakub@redhat.com>
444 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
445 * testsuite/libgomp.c/nestedfn-3.c: New test.
447 2005-11-30 Jakub Jelinek <jakub@redhat.com>
450 * testsuite/libgomp.fortran/pr25162.f: New test.
452 2005-11-28 Jakub Jelinek <jakub@redhat.com>
454 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
455 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
457 2005-11-25 Jakub Jelinek <jakub@redhat.com>
459 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
460 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
461 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
462 single.c, team.c, work.c, config/linux/alpha/futex.h,
463 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
464 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
465 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
466 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
467 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
468 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
469 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
472 2005-11-18 Jakub Jelinek <jakub@redhat.com>
474 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
475 to nodist_noinst_HEADERS.
476 * Makefile.in: Rebuilt.
478 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
479 add integer count field.
480 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
481 omp_nest_lock_t type change.
482 (omp_init_nest_lock): Likewise. Initialize count to 0.
483 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
485 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
487 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
488 Increment count if successful and return the new nesting level.
489 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
490 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
491 * testsuite/libgomp.c/lib-1.c: New test.
492 * testsuite/libgomp.fortran/lib1.f90: New test.
493 * testsuite/libgomp.fortran/lib2.f: New test.
494 * testsuite/libgomp.fortran/lib3.f: New test.
496 2005-11-17 Richard Henderson <rth@redhat.com>
499 * Makefile.am (nodist_toolexeclib_HEADERS): New.
500 * configure.ac (link_gomp): New. Substitute it.
501 (AC_CONFIG_FILES): Add libgomp.spec.
502 * libgomp.spec.in: New file.
503 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
504 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
506 2005-11-18 Jakub Jelinek <jakub@redhat.com>
508 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
509 reduction(-:var) behaving the same as reduction(+:var).
510 * testsuite/libgomp.c/reduction-4.c: New test.
512 2005-11-15 Uros Bizjak <uros@kss-loka.si>
514 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
515 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
516 testsuite/libgomp.c/copyin-3.c,
517 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
518 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
519 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
520 testsuite/libgomp.c++/pr24455.C,
521 testsuite/libgomp.fortran/threadprivate1.f90,
522 testsuite/libgomp.fortran/threadprivate2.f90,
523 testsuite/libgomp.fortran/threadprivate3.f90,
524 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
525 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
526 testsuite/libgomp.fortran/omp_parse3.f90: Require
527 effective-target TLS.
529 2005-11-14 Diego Novillo <dnovillo@redhat.com>
533 2005-11-13 Jakub Jelinek <jakub@redhat.com>
536 * team.c (initialize_team): Pass NULL rather than free as
537 pthread_key_create destructor. Initialize thread specific data
538 pointer in initial thread to a static local variable rather than
541 2005-11-11 Uros Bizjak <uros@kss-loka.si>
543 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
544 its location to ld_library_path.
546 2005-11-10 Diego Novillo <dnovillo@redhat.com>
548 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
550 2005-11-10 Diego Novillo <dnovillo@redhat.com>
552 * testsuite/libgomp.c: Rename from libgomp.dg.
554 2005-11-09 Diego Novillo <dnovillo@redhat.com>
556 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
557 threadprivate variable 'i'.
559 2005-11-09 Jakub Jelinek <jakub@redhat.com>
561 * config/linux/s390/futex.h: New file.
562 * configure.tgt: Use it.
564 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
567 2005-11-08 Jakub Jelinek <jakub@redhat.com>
570 * testsuite/libgomp.c++/master-1.C: New test.
572 2005-11-07 Jakub Jelinek <jakub@redhat.com>
574 * testsuite/libgomp.dg/copyin-3.c: New test.
576 2005-11-07 Jakub Jelinek <jakub@redhat.com>
578 * testsuite/libgomp.fortran/retval1.f90: New test.
579 * testsuite/libgomp.fortran/vla7.f90: New test.
581 2005-11-06 Jakub Jelinek <jakub@redhat.com>
583 * testsuite/libgomp.fortran/vla2.f90: New test.
584 * testsuite/libgomp.fortran/vla3.f90: New test.
585 * testsuite/libgomp.fortran/vla4.f90: New test.
586 * testsuite/libgomp.fortran/vla5.f90: New test.
587 * testsuite/libgomp.fortran/vla6.f90: New test.
589 2005-11-01 Jakub Jelinek <jakub@redhat.com>
591 * config/linux/sparc/futex.h: New file.
592 * configure.tgt: Use it.
593 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
595 * critical.c: Include stdlib.h.
596 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
597 ignoring return value.
598 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
599 LIBGOMP_CHECK_SYNC_BUILTINS check.
600 * configure: Rebuilt.
602 2005-10-31 Jakub Jelinek <jakub@redhat.com>
604 * testsuite/libgomp.fortran/vla1.f90: New test.
606 2005-10-31 Richard Henderson <rth@redhat.com>
608 * testsuite/libgomp.fortran/character2.f90: Fix race condition
609 setting 's' in different threads.
611 2005-10-31 Jakub Jelinek <jakub@redhat.com>
613 * libgomp.h (attribute_hidden, ialias): Define.
614 * config/posix/proc.c (omp_get_num_procs): Add ialias.
615 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
616 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
617 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
618 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
619 omp_test_lock, omp_test_nest_lock): Likewise.
620 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
621 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
622 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
623 omp_test_lock, omp_test_nest_lock): Likewise.
624 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
625 omp_get_dynamic, omp_get_nested): Likewise.
626 * parallel.c (omp_get_num_threads, omp_get_max_threads,
627 omp_get_thread_num, omp_in_parallel): Likewise.
628 * fortran.c (ialias_redirect): Define.
629 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
630 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
631 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
632 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
633 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
634 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
635 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
636 omp_get_wtime): Add ialias_redirect.
638 2005-10-30 Jakub Jelinek <jakub@redhat.com>
640 * fortran.c: Include stdlib.h.
642 2005-10-29 Jakub Jelinek <jakub@redhat.com>
644 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
645 * Makefile.in: Regenerated.
647 2005-10-28 Jakub Jelinek <jakub@redhat.com>
649 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
650 * libgomp_f.h.in (omp_check_defines): New function.
651 * env.c: Include libgomp_f.h.
652 (initialize_env): Call omp_check_defines.
654 * testsuite/libgomp.dg/copyin-2.c: New test.
655 * testsuite/libgomp.c++/copyin-2.C: New test.
656 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
658 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
659 * testsuite/libgomp.fortran/sharing2.f90: New test.
661 * testsuite/libgomp.dg/copyin-1.c: New test.
662 * testsuite/libgomp.c++/copyin-1.C: New test.
664 2005-10-26 Jakub Jelinek <jakub@redhat.com>
666 * testsuite/libgomp.fortran/crayptr1.f90: New test.
668 * testsuite/libgomp.fortran/workshare1.f90: New test.
670 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
672 * libgomp.fortran/sharing1.f90: New test.
674 2005-10-24 Jakub Jelinek <jakub@redhat.com>
677 * testsuite/libgomp.c++/loop-7.C: New test.
679 * testsuite/libgomp.dg/nestedfn-2.c: New test.
681 * testsuite/libgomp.dg/nestedfn-1.c: New test.
682 * testsuite/libgomp.fortran/reduction6.f90: New test.
683 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
685 2005-10-23 Richard Henderson <rth@redhat.com>
687 * testsuite/libgomp.c++/ctor-1.C: New.
688 * testsuite/libgomp.c++/ctor-2.C: New.
689 * testsuite/libgomp.c++/ctor-3.C: New.
690 * testsuite/libgomp.c++/ctor-4.C: New.
691 * testsuite/libgomp.c++/ctor-5.C: New.
692 * testsuite/libgomp.c++/ctor-6.C: New.
693 * testsuite/libgomp.c++/ctor-7.C: New.
694 * testsuite/libgomp.c++/ctor-8.C: New.
695 * testsuite/libgomp.c++/ctor-9.C: New.
697 2005-10-21 Diego Novillo <dnovillo@redhat.com>
700 * testsuite/libgomp.c++/pr24455-1.C: New test.
701 * testsuite/libgomp.c++/pr24455.C: New test.
702 * testsuite/libgomp.dg/pr24455-1.c: New test.
703 * testsuite/libgomp.dg/pr24455.c: New test.
705 2005-10-20 Richard Henderson <rth@redhat.com>
707 * testsuite/libgomp.c++/loop-6.C: New.
708 * testsuite/libgomp.dg/loop-3.c: New.
710 2005-10-20 Jakub Jelinek <jakub@redhat.com>
712 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
714 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
717 2005-10-19 Diego Novillo <dnovillo@redhat.com>
719 * testsuite/libgomp.fortran/jacobi.f: New test.
721 2005-10-19 Richard Henderson <rth@redhat.com>
723 * configure.tgt (i?86-linux): Default to with_arch instead of
724 CFLAGS. Add -mtune to match target_cpu.
725 (x86_64-linux): Tune to i686.
727 * fortran.c (omp_test_nest_lock_): Fix typo.
729 2005-10-19 Jakub Jelinek <jakub@redhat.com>
731 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
732 gomp_ordered_sync): Do nothing if team->nthreads == 1.
733 * testsuite/libgomp.dg/ordered-3.c: New test.
735 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
736 Remove volatile keyword.
738 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
739 in COMMON block to avoid warnings on 64-bit targets.
741 2005-10-18 Diego Novillo <dnovillo@redhat.com>
743 * testsuite/libgomp.dg/shared-3.c: New test.
745 2005-10-18 Jakub Jelinek <jakub@redhat.com>
747 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
748 * testsuite/libgomp.fortran/reduction5.f90: New test.
750 2005-10-18 Jakub Jelinek <jakub@redhat.com>
752 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
754 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
755 flush loop now that __sync_synchronize has proper memory barrier.
756 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
757 Add -ffixed-form to dg-options.
759 2005-10-17 Diego Novillo <dnovillo@redhat.com>
761 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
763 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
764 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
765 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
766 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
767 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
768 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
769 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
770 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
771 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
772 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
773 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
774 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
775 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
776 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
777 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
778 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
779 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
780 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
781 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
782 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
783 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
784 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
785 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
786 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
787 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
789 2005-10-17 Jakub Jelinek <jakub@redhat.com>
791 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
792 lang_library_path exists. Use find instead of glob to gather tests.
793 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
795 2005-10-17 Diego Novillo <dnovillo@redhat.com>
797 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
798 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
799 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
800 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
801 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
802 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
803 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
804 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
805 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
806 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
807 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
808 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
809 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
811 2005-10-15 Jakub Jelinek <jakub@redhat.com>
813 * testsuite/libgomp.dg/vla-1.c: New test.
815 * testsuite/libgomp.fortran/reference2.f90: New test.
817 * testsuite/libgomp.fortran/character2.f90: Remove explicit
818 declaration of omp_get_thread_num.
819 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
822 * testsuite/libgomp.fortran/reduction1.f90: New test.
823 * testsuite/libgomp.fortran/reduction2.f90: New test.
824 * testsuite/libgomp.fortran/reduction3.f90: New test.
825 * testsuite/libgomp.fortran/reduction4.f90: New test.
827 2005-10-13 Richard Henderson <rth@redhat.com>
829 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
830 * Makefile.in: Regenerate.
831 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
832 * libgomp.h: Include bar.h.
833 (struct gomp_barrier): Remove.
834 (struct gomp_team): Add barrier. Replace master_barrier with
835 master_release. Replace threads with ordered_release.
836 (struct gomp_thread): Replace barrier with release.
837 * ordered.c (gomp_ordered_first): Update for ordered_release change.
838 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
839 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
840 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
841 (GOMP_single_copy_end): Likewise.
842 * team.c (gomp_threads_dock): New.
843 (gomp_barrier_init, gomp_barrier_destroy): Remove.
844 (gomp_thread_start): Use gomp_barrier_wait.
845 (new_team, free_team): Update for gomp_team changes.
846 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
847 (gomp_team_end): Use gomp_barrier_wait.
848 (initialize_team): Update for gomp_thread changes.
849 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
850 (gomp_work_share_end_nowait): Use atomic ops when available.
851 * config/linux/bar.c, config/linux/bar.h: New files.
852 * config/posix/bar.c, config/posix/bar.h: New files.
854 2005-10-13 Jakub Jelinek <jakub@redhat.com>
856 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
857 * testsuite/libgomp.dg/single-2.c: New test.
859 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
860 lang_link_flags): Unset, so that they aren't inherited from previously
863 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
865 2005-10-12 Richard Henderson <rth@redhat.com>
867 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
868 (libgomp_init): Use lang_test_file, lang_library_path, and
869 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
871 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
872 (lang_test_file, lang_link_flags): New.
873 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
875 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
876 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
877 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
878 testsuite/libgomp.c++/parallel-1.C,
879 testsuite/libgomp.c++/reduction-1.C,
880 testsuite/libgomp.c++/reduction-2.C,
881 testsuite/libgomp.c++/reduction-3.C,
882 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
883 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
884 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
885 New files, largely cribbed from the C testsuite.
887 2005-10-12 Jakub Jelinek <jakub@redhat.com>
889 * testsuite/libgomp.fortran/character1.f90: New test.
890 * testsuite/libgomp.fortran/character2.f90: New test.
892 * testsuite/libgomp.dg/nested-1.c: New test.
893 * testsuite/libgomp.dg/nested-2.c: New test.
894 * testsuite/libgomp.fortran/do1.f90: New test.
895 * testsuite/libgomp.fortran/do2.f90: New test.
897 * testsuite/libgomp.fortran/reference1.f90: New test.
899 2005-10-11 Jakub Jelinek <jakub@redhat.com>
901 * testsuite/libgomp.dg/reduction-1.c: New test.
902 * testsuite/libgomp.dg/reduction-2.c: New test.
903 * testsuite/libgomp.dg/reduction-3.c: New test.
905 2005-10-10 Jakub Jelinek <jakub@redhat.com>
907 * testsuite/libgomp.dg/atomic-1.c: New test.
908 * testsuite/libgomp.dg/atomic-2.c: New test.
910 2005-10-09 Richard Henderson <rth@redhat.com>
912 * critical.c (atomic_lock): New.
913 (initialize_critical): Initialize it.
914 (GOMP_atomic_start, GOMP_atomic_end): New.
915 * libgomp.map: Export them.
916 * libgomp_g.h: Declare them.
918 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
920 2005-10-02 Richard Henderson <rth@redhat.com>
922 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
923 to XCFLAGS instead of CFLAGS.
925 2005-09-30 Richard Henderson <rth@redhat.com>
927 * configure.ac: Determine whether -pthread or -lpthread is needed.
928 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
929 * Makefine.in, configure: Rebuild.
931 2005-09-28 Richard Henderson <rth@redhat.com>
933 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
934 * testsuite/libgomp.dg/omp-single-3.c: New test.
936 2005-09-28 Diego Novillo <dnovillo@redhat.com>
938 * testsuite/libgomp.dg/omp-single-2.c: New test.
939 * testsuite/libgomp.dg/shared-2.c: Fix return code.
941 2005-09-27 Richard Henderson <rth@redhat.com>
943 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
944 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
946 2005-09-27 Jakub Jelinek <jakub@redhat.com>
948 * testsuite/libgomp.dg/omp-loop03.c: New test.
950 2005-09-27 Diego Novillo <dnovillo@redhat.com>
952 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
954 2005-09-27 Diego Novillo <dnovillo@redhat.com>
956 * testsuite/libgomp.dg/omp-single-1.c: New test.
957 * testsuite/libgomp.dg/shared-1.c: Return 0.
958 Add prototype for abort.
959 * testsuite/libgomp.dg/shared-2.c: Likewise.
961 2005-09-26 Jakub Jelinek <jakub@redhat.com>
963 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
966 2005-09-26 Diego Novillo <dnovillo@redhat.com>
968 * testsuite/libgomp.dg/shared-1.c: New test.
969 * testsuite/libgomp.dg/shared-2.c: New test.
971 2005-09-24 Richard Henderson <rth@redhat.com>
973 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
975 2005-09-24 Richard Henderson <rth@redhat.com>
977 * iter.c (gomp_iter_static_next): Round up when computing number
978 of iterations. Don't bother distributing a remainder equally.
980 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
981 Don't call srand. Zero b before testing.
984 2005-09-24 Jakub Jelinek <jakub@redhat.com>
986 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
987 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
989 2005-09-23 Jakub Jelinek <jakub@redhat.com>
991 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
992 without !$omp end do, followed immediately by subroutine end.
994 2005-09-23 Diego Novillo <dnovillo@redhat.com>
996 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
998 2005-09-22 Richard Henderson <rth@redhat.com>
1000 * critical.c (GOMP_critical_name_start): Change argument to void**.
1001 Reuse the pointer space if the mutex fits.
1002 (GOMP_critical_name_end): Likewise.
1003 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1004 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1005 (GOMP_critical_name_end): Likewise.
1006 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1007 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1009 2005-09-20 Richard Henderson <rth@redhat.com>
1011 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1012 (create_lock_lock): New.
1013 (initialize_critical): Initialize it.
1014 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1015 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1017 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1019 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1021 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1023 * testsuite/libgomp.dg/omp-loop01.c: New test.
1024 * testsuite/libgomp.dg/omp-loop02.c: New test.
1026 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1028 * configure.ac (AC_PROG_FC): Add.
1029 (USE_FORTRAN): New automake conditional.
1030 * configure: Rebuilt.
1031 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1032 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1033 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1034 Add rules to build them.
1035 * Makefile.in: Rebuilt.
1036 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1038 * libgomp.map: Add Fortran wrappers.
1039 * libgomp_f.h.in: New file.
1040 * omp_lib.h.in: New file.
1041 * omp_lib.f90.in: New file.
1042 * fortran.c: New file.
1043 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1044 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1045 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1046 libgfortran has been built.
1047 * testsuite/libgomp.fortran/fortran.exp: New file.
1048 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1049 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1050 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1051 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1052 * testsuite/libgomp.fortran/omp_hello.f: New test.
1053 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1054 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1055 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1056 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1057 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1058 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1059 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1060 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1062 2005-08-30 Richard Henderson <rth@redhat.com>
1064 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1065 function for when aliases are not usable.
1066 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1067 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1068 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1069 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1070 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1071 GOMP_loop_ordered_guided_next): Likewise.
1072 * ordered.c (GOMP_ordered_start): Likewise.
1074 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1076 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1077 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1078 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1079 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1080 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1081 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1082 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1083 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1084 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1086 2005-07-07 Eric Christopher <echristo@redhat.com>
1087 Diego Novillo <dnovillo@redhat.com>
1089 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1090 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1092 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1093 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1094 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1095 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1096 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1097 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1098 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1100 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1102 * TOPLEVEL.patch: Remove.
1104 2005-05-16 Richard Henderson <rth@redhat.com>
1106 * configure.ac: Test for clock_gettime.
1107 * config.h.in, configure: Rebuild.
1108 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1109 (omp_get_wtime): Use clock_gettime if available.
1110 (omp_get_wtick): Use clock_getres if available.
1112 2005-05-11 Richard Henderson <rth@redhat.com>
1114 * config/linux/ia64/futex.h: New file.
1115 * configure.tgt: Use it.
1117 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1119 2005-05-07 Richard Henderson <rth@redhat.com>
1121 * config/linux/powerpc/futex.h: New file.
1122 * configure.tgt: Use it.
1124 * config/linux/i486/futex.h: Merge ...
1125 * config/linux/x86_64/futex.h: ... into ...
1126 * config/linux/x86/futex.h: ... here.
1127 * configure.tgt: Update to match.
1129 2005-05-06 Richard Henderson <rth@redhat.com>
1131 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1132 * config/linux/i486/futex.h: Likewise.
1133 * config/linux/x86_64/futex.h: Likewise.
1135 * config/linux/lock.c: New file.
1136 * config/linux/omp-lock.h: New file.
1138 * critical.c, env.h: Don't include omp.h
1139 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1140 * config/posix/time.c: Likewise.
1141 * config/posix/omp-lock.h: New file.
1142 * libgomp.h: Include omp-lock.h and omp.h.
1143 * Makefile.am (nodist_include_HEADERS): New.
1145 * configure.ac (PERL): New.
1146 * mkomp_h.pl: New file.
1147 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1149 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1151 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1152 build directory. Re-add -march=i486 hack.
1154 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1155 (libgomp_link_flags): Remove.
1156 (libgomp_initialized): Remove.
1157 (libgomp_init): Don't protect from reinitialization. Copy code
1158 from libstdc++ for getting the multilib set correctly.
1160 2005-05-05 Richard Henderson <rth@redhat.com>
1162 * config/linux/alpha/futex.h: New file.
1163 * configure.tgt (alpha*-*-linux*): Use it.
1165 * config/posix/mutex.c: New file.
1166 * config/posix/sem.c: Use libgomp.h.
1168 * configure.tgt (x86_64-linux): Also test CC for -m32.
1169 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1171 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1174 * Makefile.am (SUBDIRS): New.
1175 (libgomp_la_LDFLAGS): Add -lpthread.
1176 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1177 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1179 * libgomp_g.h: New file.
1180 * libgomp.h: Split out all public declarations to libgomp_g.h.
1181 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1182 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1183 * config/linux/sem.h: Likewise.
1184 * config/posix/sem.h: Likewise.
1186 * Makefile.am (AM_LDFLAGS): New.
1187 (libgomp_version_script): Split out from ...
1188 (libgomp_la_LDFLAGS): ... here.
1189 (libgomp_version_info): New.
1190 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1191 (LIBGOMP_ENABLE): New.
1192 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1193 (LIBGOMP_ENABLE_SYMVERS): New.
1194 * configure.ac (AC_INIT): Version 1.0.
1195 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1196 (enable-linux-futex): Likewise. Rename from enable-futex.
1197 (libtool_VERSION): New.
1198 (LIBGOMP_ENABLE_SYMVERS): Use it.
1199 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1200 * Makefile.in, aclocal.m4, configure: Rebuild.
1202 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1203 (gomp_mutex_unlock_slow): Fix typo.
1204 * config/linux/sem.c: Similarly.
1205 (gomp_sem_post_slow): Fix typo.
1206 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1207 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1208 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1210 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1211 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1212 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1213 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1214 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1215 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1216 LDFLAGS. Pull enable_futex check to top-level.
1217 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1218 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1220 First attempt at real configury.
1221 * Makefile, config.h: Remove file.
1222 * Makefile.am, Makefile.in: New file.
1223 * acinclude.m4 aclocal.m4: New file.
1224 * configure.ac, configure.tgt, configure: New file.
1226 * config/posix/lock.c: Rename from sys-lock.c.
1227 * config/posix/mutex.h: Rename from sys-mutex.h.
1228 * config/posix/sem.c: Rename from sys-sem.c.
1229 * config/posix/sem.h: Rename from sys-sem.h.
1230 * config/posix/proc.c: Rename from sys-proc.c.
1231 * config/posix/time.c: Rename from sys-proc.c.
1233 * config/linux/mutex.c: New file.
1234 * config/linux/mutex.h: New file.
1235 * config/linux/sem.c: New file.
1236 * config/linux/sem.h: New file.
1237 * config/linux/i486/futex.h: New file.
1238 * config/linux/x86_64/futex.h: New file.
1240 2005-05-04 Richard Henderson <rth@redhat.com>
1242 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1243 * libgomp.h: Declare them.
1244 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1245 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1247 2005-05-04 Richard Henderson <rth@redhat.com>
1249 * libgomp-1 code drop
1251 2005-05-04 Richard Henderson <rth@redhat.com>
1253 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1254 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1255 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1256 (gomp_iter_static_next): Update.
1257 (gomp_ordered_static_next): Update.
1258 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1259 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1260 totally empty range.
1261 (gomp_loop_ordered_static_next): Refine test for calling
1262 gomp_ordered_static_next.
1263 * testsuite/ordered-1.c: Add case for more threads than iterations.
1265 * iter.c (gomp_iter_runtime_next_locked): Remove.
1266 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1267 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1268 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1269 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1270 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1271 gomp_loop_ordered_guided_next): Downcase name, make static, add
1272 an external alias with the old name.
1273 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1274 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1275 switch and call one of the above static functions.
1276 * libgomp.h: Update.
1278 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1279 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1280 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1281 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1282 GOMP_loop_ordered_guided_start): Update to match.
1283 * sections.c (GOMP_sections_start): Likewise.
1284 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1286 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1287 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1288 Use bounds check instead of modulus.
1289 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1290 (gomp_ordered_last): Don't sync with ordered_owner here.
1291 (gomp_ordered_next): Likewise.
1292 (gomp_ordered_static_loop_next): Likewise.
1293 * loop.c, libgomp.h: Update to match.
1295 * libgomp.h (GOMP_barrier): Declare.
1297 * testsuite/barrier-1.c: New file.
1298 * testsuite/critical-1.c: New file.
1299 * testsuite/ordered-2.c: New file.
1300 * testsuite/ordered-1.c: New file.
1301 * testsuite/sections-1.c: New file.
1302 * testsuite/single-1.c: New file.
1303 * testsuite/Makefile (TESTS): Add them.
1305 2005-05-04 Richard Henderson <rth@redhat.com>
1307 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1308 * loop.c (GOMP_loop_static_start): If not the startup thread,
1309 acquire the mutex to wait for initialization complete.
1310 (GOMP_loop_ordered_static_start): Likewise.
1311 (GOMP_loop_ordered_runtime_start): Likewise.
1312 (GOMP_loop_ordered_static_first): Remove.
1313 (GOMP_loop_ordered_dynamic_first): Remove.
1314 (GOMP_loop_ordered_guided_first): Remove.
1315 (GOMP_loop_ordered_runtime_first): Remove.
1316 * ordered.c (gomp_ordered_loop_first): Post to own release when
1317 we're the first thread.
1318 (gomp_ordered_loop_last): Wait on release if not owner.
1319 (gomp_ordered_loop_next): Likewise.
1320 (gomp_ordered_static_loop_init): New.
1321 (gomp_ordered_static_loop_next): Use ordered_owner.
1322 (GOMP_ordered_start): Likewise.
1323 * work.c (gomp_new_work_share): Initialize ordered_owner.
1325 2005-05-03 Richard Henderson <rth@redhat.com>
1327 * Makefile (OPT): New.
1330 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1331 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1332 * libgomp.h, libgomp.map, NOTES: Update to match.
1334 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1335 Add initialized and thr members.
1336 (gomp_thread_start): Pause when initially spawned to wait for
1337 the whole team to be created.
1338 (gomp_team_start): Release team members at the end.
1340 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1341 (f_foo_1): Use GOMP_loop_end.
1342 (f_foo_2): Use GOMP_loop_end_nowait.
1344 * testsuite/loop-2.c: New file.
1345 * testsuite/Makefile (TESTS): Add it.
1347 2005-05-03 Richard Henderson <rth@redhat.com>
1349 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1350 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1351 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1354 * testsuite/Makefile: New file.
1355 * testsuite/loop-1.c: New file.
1357 2005-05-03 Richard Henderson <rth@redhat.com>
1359 Initial implementation and checkin.