1 2007-01-24 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/pr30494.c: New test.
6 2007-01-15 Tom Tromey <tromey@redhat.com>
9 * configure.ac: Fixed comment.
11 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
13 * libgomp.texi: Document implementation specific default values of
14 environment variables.
16 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19 * libgomp.texi: New file.
20 * configure.ac: Add --enable-generated-files-in-srcdir option.
21 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
23 * Makefile.in: Regenerated.
24 * config.h.in: Regenerated.
25 * testsuite/Makefile.in: Regenerated.
28 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
31 * env.c (omp_set_num_threads): Set illegal thread count to 1.
33 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
35 * configure: Regenerate.
37 2006-12-04 Jakub Jelinek <jakub@redhat.com>
40 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
41 start if there shouldn't be any loop iterations.
42 (gomp_loop_ordered_static_start): Remove start == end test.
43 * testsuite/libgomp.c/pr29947-1.c: New test.
44 * testsuite/libgomp.c/pr29947-2.c: New test.
46 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
48 * configure.tgt: Force initial-exec TLS model on Linux only.
50 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
52 * configure: Regenerated.
54 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
56 * env.c (parse_schedule): Reject out of range values.
57 (parse_unsigned_long): Reject out of range, negative or zero values.
59 2006-10-29 Jakub Jelinek <jakub@redhat.com>
62 * testsuite/libgomp.fortran/pr29629.f90: New test.
64 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
67 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
68 * config/posix95: New directory.
69 * config/posix95/omp-lock.h: New file.
70 * config/posix95/lock.c: Likewise.
72 2006-10-14 Geoffrey Keating <geoffk@apple.com>
74 * aclocal.m4: Regenerate.
75 * configure: Regenerate.
77 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
79 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
82 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
84 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
86 * configure: Regenerate.
87 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
89 2006-09-26 Jakub Jelinek <jakub@redhat.com>
93 * testsuite/libgomp.c/nestedfn-4.c: New test.
94 * testsuite/libgomp.c/nestedfn-5.c: New test.
95 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
98 * testsuite/libgomp.fortran/condinc1.f: New test.
99 * testsuite/libgomp.fortran/condinc2.f: New test.
100 * testsuite/libgomp.fortran/condinc3.f90: New test.
101 * testsuite/libgomp.fortran/condinc4.f90: New test.
102 * testsuite/libgomp.fortran/condinc1.inc: New file.
104 2006-09-18 Tom Tromey <tromey@redhat.com>
106 * configure: Rebuilt.
108 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
111 PR preprocessor/14634
112 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
114 * configure: Regenerate.
116 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
118 * testsuite/libgomp.fortran/reduction3.f90: Change
119 -2147483648 to -huge(i)-1 to avoid overflow.
120 * testsuite/libgomp.fortran/reduction4.f90: Change
121 Z'ffffffff' to not(0) to avoid overflow.
123 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
126 * Makefile.am (libsubincludedir): New.
127 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
128 * Makefile.in: Regenerate.
130 2006-08-17 Jakub Jelinek <jakub@redhat.com>
133 * env.c: Include ctype.h.
134 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
135 leading and/or trailing whitespace and compare strings case
138 2006-07-16 Jakub Jelinek <jakub@redhat.com>
141 * testsuite/libgomp.fortran/pr28390.f: New test.
143 2006-07-05 Eric Christopher <echristo@apple.com>
145 * configure.ac: Depend addition of -pthread on host OS.
146 * configure: Regenerate.
148 2006-06-21 Jakub Jelinek <jakub@redhat.com>
150 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
151 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
154 2006-06-20 Jakub Jelinek <jakub@redhat.com>
158 * configure.ac: If neither --enable-linux-futex nor
159 --disable-linux-futex is passed, determine the default by checking
160 for compiling and/or running against NPTL. With --enable-linux-futex,
161 check if SYS_gettid and SYS_futex are defined.
162 * configure: Rebuilt.
164 2006-06-14 Richard Henderson <rth@redhat.com>
167 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
168 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
170 2006-06-09 Richard Henderson <rth@redhat.com>
172 * env.c (gomp_nthreads_var): Change to unsigned long.
173 (gomp_run_sched_chunk): Likewise.
174 (parse_unsigned_long): Rename from parse_num_threads and generalize.
175 (initialize_env): Initialize gomp_thread_attr.
176 * libgomp.h (gomp_nthreads_var): Update decl.
177 (gomp_run_sched_chunk): Likewise.
178 (gomp_thread_attr): Declare.
179 * team.c (gomp_thread_attr): Export.
180 (initialize_team): Don't initialize it.
182 2006-06-09 Jakub Jelinek <jakub@redhat.com>
185 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
186 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
188 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
190 * config/mingw32/time.c: New file.
191 * configure.tgt: Use it.
193 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
195 * Makefile.am: Add install-html target. Add install-html to .PHONY
196 * Makefile.in: Regenerate.
198 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
201 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
202 * testsuite/libgomp.c/critical-1.c: Likewise.
203 * testsuite/libgomp.c/loop-1.c: Likewise.
204 * testsuite/libgomp.c/loop-2.c: Likewise.
205 * testsuite/libgomp.c/single-1.c: Likewise.
206 * testsuite/libgomp.c/ordered-1.c: Likewise.
207 * testsuite/libgomp.c/ordered-2.c: Likewise.
209 2006-05-15 Jakub Jelinek <jakub@redhat.com>
212 * libgomp.fortran/pr27416-1.f90: New test.
214 2006-05-03 Jakub Jelinek <jakub@redhat.com>
217 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
218 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
220 2006-05-02 Jakub Jelinek <jakub@redhat.com>
223 * testsuite/libgomp.c/pr26943-1.c: New test.
224 * testsuite/libgomp.c/pr26943-2.c: New test.
225 * testsuite/libgomp.c/pr26943-3.c: New test.
226 * testsuite/libgomp.c/pr26943-4.c: New test.
227 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
228 * testsuite/libgomp.c++/pr26943.C: New test.
230 2006-05-02 Jakub Jelinek <jakub@redhat.com>
233 * testsuite/libgomp.c++/pr27337.C: New test.
235 2006-04-26 Jakub Jelinek <jakub@redhat.com>
238 * testsuite/libgomp.c/pr26171.c: New test.
240 2006-04-25 Richard Henderson <rth@redhat.com>
243 * configure.ac: Use GCC_CHECK_TLS.
244 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
245 * Makefile.in, aclocal.m4, configure: Regenerate.
247 2006-04-10 Matthias Klose <doko@debian.org>
249 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
250 directory names containing underscores.
252 2006-03-21 Jakub Jelinek <jakub@redhat.com>
255 * testsuite/libgomp.c++/pr26691.C: New test.
257 2006-03-13 Jakub Jelinek <jakub@redhat.com>
259 * testsuite/libgomp.fortran/retval2.f90: New test.
261 2006-03-09 Diego Novillo <dnovillo@redhat.com>
263 * testsuite/libgomp.c++: New directory.
265 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
267 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
268 * config/posix/sem.c: Implement the above.
270 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
272 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
273 define HAVE_BROKEN_POSIX_SEMAPHORES.
274 * configure: Rebuilt.
275 * config.h.in: Rebuilt.
277 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
280 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
281 for the other pthread check.
282 * configure: Regenerate.
283 * config.h.in: Regenerate.
285 2006-02-15 Jakub Jelinek <jakub@redhat.com>
289 * Makefile.am (fincludedir): New variable.
290 (nodist_include_HEADERS): Remove Fortran files.
291 (nodist_finclude_HEADERS): New variable.
292 * Makefile.in: Regenerated.
294 2006-02-13 Jakub Jelinek <jakub@redhat.com>
296 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
297 Remove tests for returning assumed character length arrays.
299 2006-02-12 Roger Sayle <roger@eyesopen.com>
300 John David Anglin <dave@hiauly1.hia.nrc.ca>
303 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
305 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
307 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
309 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
311 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
312 part of LD_LIBRARY_PATH manually.
314 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
317 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
320 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
323 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
324 * configure.ac (PERL): Don't set.
325 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
326 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
327 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
328 * omp.h.in: Wrap the new configure substitutions with @ characters.
329 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
330 * aclocal.m4, configure, Makefile.in: Regenerate.
331 * mkomp_h.pl: Delete.
333 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
336 * configure.ac: Use GCC_HEADER_STDINT.
337 * libgomp.h: Include gstdint.h.
338 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
339 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
341 2006-01-24 Richard Henderson <rth@redhat.com>
344 * configure.ac: Add AM_MAINTAINER_MODE.
345 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
347 2006-01-24 Diego Novillo <dnovillo@redhat.com>
349 * Makefile.in: Regenerate.
350 * testsuite/Makefile.in: Regenerate.
351 * aclocal.m4: Regenerate.
353 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
355 * config/posix/proc.c: Conditional include of sys/loadavg.h for
357 * configure.ac: Add check for loadavg.h.
358 (link_gomp): Adjust comment.
359 * configure: Regenerate.
360 * config.h.in: Regenerate.
362 2006-01-21 Steve Ellcey <sje@cup.hp.com>
365 * configure.ac: Remove check for alloca.h.
366 * configure: Regenerate.
367 * config.h.in: Regenerate.
368 * libgomp.h: define gomp_alloca to be __builtin_alloca.
369 * team.c: Remove use of alloca.h.
370 Call gomp_alloca instead of alloca.
372 2006-01-20 Steve Ellcey <sje@cup.hp.com>
375 * team.c: Add include of alloca.h.
376 * configure.ac: Add check for alloca.h.
377 * configure: Regenerate.
378 * config.h.in: Regenerate.
380 2006-01-17 Jakub Jelinek <jakub@redhat.com>
383 * testsuite/libgomp.fortran/pr25219.f90: New test.
385 2005-12-05 Uros Bizjak <uros@kss-loka.si>
387 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
388 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
389 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
390 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
391 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
392 testsuite/libgomp.fortran/threadprivate1.f90,
393 testsuite/libgomp.fortran/threadprivate2.f90,
394 testsuite/libgomp.fortran/threadprivate3.f90,
395 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
396 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
397 testsuite/libgomp.fortran/omp_parse3.f90: Change required
398 effective-target to TLS runtime.
400 * testsuite/libgomp.fortran/pr25162.f: Require
401 effective-target TLS runtime.
403 2005-12-01 Jakub Jelinek <jakub@redhat.com>
405 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
406 * testsuite/libgomp.c/nestedfn-3.c: New test.
408 2005-11-30 Jakub Jelinek <jakub@redhat.com>
411 * testsuite/libgomp.fortran/pr25162.f: New test.
413 2005-11-28 Jakub Jelinek <jakub@redhat.com>
415 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
416 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
418 2005-11-25 Jakub Jelinek <jakub@redhat.com>
420 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
421 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
422 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
423 single.c, team.c, work.c, config/linux/alpha/futex.h,
424 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
425 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
426 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
427 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
428 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
429 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
430 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
433 2005-11-18 Jakub Jelinek <jakub@redhat.com>
435 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
436 to nodist_noinst_HEADERS.
437 * Makefile.in: Rebuilt.
439 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
440 add integer count field.
441 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
442 omp_nest_lock_t type change.
443 (omp_init_nest_lock): Likewise. Initialize count to 0.
444 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
446 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
448 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
449 Increment count if successful and return the new nesting level.
450 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
451 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
452 * testsuite/libgomp.c/lib-1.c: New test.
453 * testsuite/libgomp.fortran/lib1.f90: New test.
454 * testsuite/libgomp.fortran/lib2.f: New test.
455 * testsuite/libgomp.fortran/lib3.f: New test.
457 2005-11-17 Richard Henderson <rth@redhat.com>
460 * Makefile.am (nodist_toolexeclib_HEADERS): New.
461 * configure.ac (link_gomp): New. Substitute it.
462 (AC_CONFIG_FILES): Add libgomp.spec.
463 * libgomp.spec.in: New file.
464 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
465 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
467 2005-11-18 Jakub Jelinek <jakub@redhat.com>
469 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
470 reduction(-:var) behaving the same as reduction(+:var).
471 * testsuite/libgomp.c/reduction-4.c: New test.
473 2005-11-15 Uros Bizjak <uros@kss-loka.si>
475 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
476 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
477 testsuite/libgomp.c/copyin-3.c,
478 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
479 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
480 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
481 testsuite/libgomp.c++/pr24455.C,
482 testsuite/libgomp.fortran/threadprivate1.f90,
483 testsuite/libgomp.fortran/threadprivate2.f90,
484 testsuite/libgomp.fortran/threadprivate3.f90,
485 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
486 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
487 testsuite/libgomp.fortran/omp_parse3.f90: Require
488 effective-target TLS.
490 2005-11-14 Diego Novillo <dnovillo@redhat.com>
494 2005-11-13 Jakub Jelinek <jakub@redhat.com>
497 * team.c (initialize_team): Pass NULL rather than free as
498 pthread_key_create destructor. Initialize thread specific data
499 pointer in initial thread to a static local variable rather than
502 2005-11-11 Uros Bizjak <uros@kss-loka.si>
504 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
505 its location to ld_library_path.
507 2005-11-10 Diego Novillo <dnovillo@redhat.com>
509 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
511 2005-11-10 Diego Novillo <dnovillo@redhat.com>
513 * testsuite/libgomp.c: Rename from libgomp.dg.
515 2005-11-09 Diego Novillo <dnovillo@redhat.com>
517 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
518 threadprivate variable 'i'.
520 2005-11-09 Jakub Jelinek <jakub@redhat.com>
522 * config/linux/s390/futex.h: New file.
523 * configure.tgt: Use it.
525 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
528 2005-11-08 Jakub Jelinek <jakub@redhat.com>
531 * testsuite/libgomp.c++/master-1.C: New test.
533 2005-11-07 Jakub Jelinek <jakub@redhat.com>
535 * testsuite/libgomp.dg/copyin-3.c: New test.
537 2005-11-07 Jakub Jelinek <jakub@redhat.com>
539 * testsuite/libgomp.fortran/retval1.f90: New test.
540 * testsuite/libgomp.fortran/vla7.f90: New test.
542 2005-11-06 Jakub Jelinek <jakub@redhat.com>
544 * testsuite/libgomp.fortran/vla2.f90: New test.
545 * testsuite/libgomp.fortran/vla3.f90: New test.
546 * testsuite/libgomp.fortran/vla4.f90: New test.
547 * testsuite/libgomp.fortran/vla5.f90: New test.
548 * testsuite/libgomp.fortran/vla6.f90: New test.
550 2005-11-01 Jakub Jelinek <jakub@redhat.com>
552 * config/linux/sparc/futex.h: New file.
553 * configure.tgt: Use it.
554 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
556 * critical.c: Include stdlib.h.
557 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
558 ignoring return value.
559 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
560 LIBGOMP_CHECK_SYNC_BUILTINS check.
561 * configure: Rebuilt.
563 2005-10-31 Jakub Jelinek <jakub@redhat.com>
565 * testsuite/libgomp.fortran/vla1.f90: New test.
567 2005-10-31 Richard Henderson <rth@redhat.com>
569 * testsuite/libgomp.fortran/character2.f90: Fix race condition
570 setting 's' in different threads.
572 2005-10-31 Jakub Jelinek <jakub@redhat.com>
574 * libgomp.h (attribute_hidden, ialias): Define.
575 * config/posix/proc.c (omp_get_num_procs): Add ialias.
576 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
577 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
578 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
579 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
580 omp_test_lock, omp_test_nest_lock): Likewise.
581 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
582 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
583 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
584 omp_test_lock, omp_test_nest_lock): Likewise.
585 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
586 omp_get_dynamic, omp_get_nested): Likewise.
587 * parallel.c (omp_get_num_threads, omp_get_max_threads,
588 omp_get_thread_num, omp_in_parallel): Likewise.
589 * fortran.c (ialias_redirect): Define.
590 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
591 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
592 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
593 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
594 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
595 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
596 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
597 omp_get_wtime): Add ialias_redirect.
599 2005-10-30 Jakub Jelinek <jakub@redhat.com>
601 * fortran.c: Include stdlib.h.
603 2005-10-29 Jakub Jelinek <jakub@redhat.com>
605 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
606 * Makefile.in: Regenerated.
608 2005-10-28 Jakub Jelinek <jakub@redhat.com>
610 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
611 * libgomp_f.h.in (omp_check_defines): New function.
612 * env.c: Include libgomp_f.h.
613 (initialize_env): Call omp_check_defines.
615 * testsuite/libgomp.dg/copyin-2.c: New test.
616 * testsuite/libgomp.c++/copyin-2.C: New test.
617 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
619 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
620 * testsuite/libgomp.fortran/sharing2.f90: New test.
622 * testsuite/libgomp.dg/copyin-1.c: New test.
623 * testsuite/libgomp.c++/copyin-1.C: New test.
625 2005-10-26 Jakub Jelinek <jakub@redhat.com>
627 * testsuite/libgomp.fortran/crayptr1.f90: New test.
629 * testsuite/libgomp.fortran/workshare1.f90: New test.
631 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
633 * libgomp.fortran/sharing1.f90: New test.
635 2005-10-24 Jakub Jelinek <jakub@redhat.com>
638 * testsuite/libgomp.c++/loop-7.C: New test.
640 * testsuite/libgomp.dg/nestedfn-2.c: New test.
642 * testsuite/libgomp.dg/nestedfn-1.c: New test.
643 * testsuite/libgomp.fortran/reduction6.f90: New test.
644 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
646 2005-10-23 Richard Henderson <rth@redhat.com>
648 * testsuite/libgomp.c++/ctor-1.C: New.
649 * testsuite/libgomp.c++/ctor-2.C: New.
650 * testsuite/libgomp.c++/ctor-3.C: New.
651 * testsuite/libgomp.c++/ctor-4.C: New.
652 * testsuite/libgomp.c++/ctor-5.C: New.
653 * testsuite/libgomp.c++/ctor-6.C: New.
654 * testsuite/libgomp.c++/ctor-7.C: New.
655 * testsuite/libgomp.c++/ctor-8.C: New.
656 * testsuite/libgomp.c++/ctor-9.C: New.
658 2005-10-21 Diego Novillo <dnovillo@redhat.com>
661 * testsuite/libgomp.c++/pr24455-1.C: New test.
662 * testsuite/libgomp.c++/pr24455.C: New test.
663 * testsuite/libgomp.dg/pr24455-1.c: New test.
664 * testsuite/libgomp.dg/pr24455.c: New test.
666 2005-10-20 Richard Henderson <rth@redhat.com>
668 * testsuite/libgomp.c++/loop-6.C: New.
669 * testsuite/libgomp.dg/loop-3.c: New.
671 2005-10-20 Jakub Jelinek <jakub@redhat.com>
673 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
675 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
678 2005-10-19 Diego Novillo <dnovillo@redhat.com>
680 * testsuite/libgomp.fortran/jacobi.f: New test.
682 2005-10-19 Richard Henderson <rth@redhat.com>
684 * configure.tgt (i?86-linux): Default to with_arch instead of
685 CFLAGS. Add -mtune to match target_cpu.
686 (x86_64-linux): Tune to i686.
688 * fortran.c (omp_test_nest_lock_): Fix typo.
690 2005-10-19 Jakub Jelinek <jakub@redhat.com>
692 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
693 gomp_ordered_sync): Do nothing if team->nthreads == 1.
694 * testsuite/libgomp.dg/ordered-3.c: New test.
696 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
697 Remove volatile keyword.
699 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
700 in COMMON block to avoid warnings on 64-bit targets.
702 2005-10-18 Diego Novillo <dnovillo@redhat.com>
704 * testsuite/libgomp.dg/shared-3.c: New test.
706 2005-10-18 Jakub Jelinek <jakub@redhat.com>
708 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
709 * testsuite/libgomp.fortran/reduction5.f90: New test.
711 2005-10-18 Jakub Jelinek <jakub@redhat.com>
713 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
715 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
716 flush loop now that __sync_synchronize has proper memory barrier.
717 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
718 Add -ffixed-form to dg-options.
720 2005-10-17 Diego Novillo <dnovillo@redhat.com>
722 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
724 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
725 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
726 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
727 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
728 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
729 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
730 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
731 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
732 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
733 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
734 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
735 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
736 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
737 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
738 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
739 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
740 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
741 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
742 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
743 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
744 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
745 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
746 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
747 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
748 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
750 2005-10-17 Jakub Jelinek <jakub@redhat.com>
752 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
753 lang_library_path exists. Use find instead of glob to gather tests.
754 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
756 2005-10-17 Diego Novillo <dnovillo@redhat.com>
758 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
759 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
760 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
761 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
762 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
763 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
764 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
765 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
766 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
767 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
768 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
769 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
770 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
772 2005-10-15 Jakub Jelinek <jakub@redhat.com>
774 * testsuite/libgomp.dg/vla-1.c: New test.
776 * testsuite/libgomp.fortran/reference2.f90: New test.
778 * testsuite/libgomp.fortran/character2.f90: Remove explicit
779 declaration of omp_get_thread_num.
780 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
783 * testsuite/libgomp.fortran/reduction1.f90: New test.
784 * testsuite/libgomp.fortran/reduction2.f90: New test.
785 * testsuite/libgomp.fortran/reduction3.f90: New test.
786 * testsuite/libgomp.fortran/reduction4.f90: New test.
788 2005-10-13 Richard Henderson <rth@redhat.com>
790 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
791 * Makefile.in: Regenerate.
792 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
793 * libgomp.h: Include bar.h.
794 (struct gomp_barrier): Remove.
795 (struct gomp_team): Add barrier. Replace master_barrier with
796 master_release. Replace threads with ordered_release.
797 (struct gomp_thread): Replace barrier with release.
798 * ordered.c (gomp_ordered_first): Update for ordered_release change.
799 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
800 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
801 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
802 (GOMP_single_copy_end): Likewise.
803 * team.c (gomp_threads_dock): New.
804 (gomp_barrier_init, gomp_barrier_destroy): Remove.
805 (gomp_thread_start): Use gomp_barrier_wait.
806 (new_team, free_team): Update for gomp_team changes.
807 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
808 (gomp_team_end): Use gomp_barrier_wait.
809 (initialize_team): Update for gomp_thread changes.
810 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
811 (gomp_work_share_end_nowait): Use atomic ops when available.
812 * config/linux/bar.c, config/linux/bar.h: New files.
813 * config/posix/bar.c, config/posix/bar.h: New files.
815 2005-10-13 Jakub Jelinek <jakub@redhat.com>
817 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
818 * testsuite/libgomp.dg/single-2.c: New test.
820 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
821 lang_link_flags): Unset, so that they aren't inherited from previously
824 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
826 2005-10-12 Richard Henderson <rth@redhat.com>
828 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
829 (libgomp_init): Use lang_test_file, lang_library_path, and
830 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
832 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
833 (lang_test_file, lang_link_flags): New.
834 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
836 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
837 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
838 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
839 testsuite/libgomp.c++/parallel-1.C,
840 testsuite/libgomp.c++/reduction-1.C,
841 testsuite/libgomp.c++/reduction-2.C,
842 testsuite/libgomp.c++/reduction-3.C,
843 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
844 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
845 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
846 New files, largely cribbed from the C testsuite.
848 2005-10-12 Jakub Jelinek <jakub@redhat.com>
850 * testsuite/libgomp.fortran/character1.f90: New test.
851 * testsuite/libgomp.fortran/character2.f90: New test.
853 * testsuite/libgomp.dg/nested-1.c: New test.
854 * testsuite/libgomp.dg/nested-2.c: New test.
855 * testsuite/libgomp.fortran/do1.f90: New test.
856 * testsuite/libgomp.fortran/do2.f90: New test.
858 * testsuite/libgomp.fortran/reference1.f90: New test.
860 2005-10-11 Jakub Jelinek <jakub@redhat.com>
862 * testsuite/libgomp.dg/reduction-1.c: New test.
863 * testsuite/libgomp.dg/reduction-2.c: New test.
864 * testsuite/libgomp.dg/reduction-3.c: New test.
866 2005-10-10 Jakub Jelinek <jakub@redhat.com>
868 * testsuite/libgomp.dg/atomic-1.c: New test.
869 * testsuite/libgomp.dg/atomic-2.c: New test.
871 2005-10-09 Richard Henderson <rth@redhat.com>
873 * critical.c (atomic_lock): New.
874 (initialize_critical): Initialize it.
875 (GOMP_atomic_start, GOMP_atomic_end): New.
876 * libgomp.map: Export them.
877 * libgomp_g.h: Declare them.
879 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
881 2005-10-02 Richard Henderson <rth@redhat.com>
883 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
884 to XCFLAGS instead of CFLAGS.
886 2005-09-30 Richard Henderson <rth@redhat.com>
888 * configure.ac: Determine whether -pthread or -lpthread is needed.
889 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
890 * Makefine.in, configure: Rebuild.
892 2005-09-28 Richard Henderson <rth@redhat.com>
894 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
895 * testsuite/libgomp.dg/omp-single-3.c: New test.
897 2005-09-28 Diego Novillo <dnovillo@redhat.com>
899 * testsuite/libgomp.dg/omp-single-2.c: New test.
900 * testsuite/libgomp.dg/shared-2.c: Fix return code.
902 2005-09-27 Richard Henderson <rth@redhat.com>
904 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
905 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
907 2005-09-27 Jakub Jelinek <jakub@redhat.com>
909 * testsuite/libgomp.dg/omp-loop03.c: New test.
911 2005-09-27 Diego Novillo <dnovillo@redhat.com>
913 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
915 2005-09-27 Diego Novillo <dnovillo@redhat.com>
917 * testsuite/libgomp.dg/omp-single-1.c: New test.
918 * testsuite/libgomp.dg/shared-1.c: Return 0.
919 Add prototype for abort.
920 * testsuite/libgomp.dg/shared-2.c: Likewise.
922 2005-09-26 Jakub Jelinek <jakub@redhat.com>
924 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
927 2005-09-26 Diego Novillo <dnovillo@redhat.com>
929 * testsuite/libgomp.dg/shared-1.c: New test.
930 * testsuite/libgomp.dg/shared-2.c: New test.
932 2005-09-24 Richard Henderson <rth@redhat.com>
934 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
936 2005-09-24 Richard Henderson <rth@redhat.com>
938 * iter.c (gomp_iter_static_next): Round up when computing number
939 of iterations. Don't bother distributing a remainder equally.
941 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
942 Don't call srand. Zero b before testing.
945 2005-09-24 Jakub Jelinek <jakub@redhat.com>
947 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
948 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
950 2005-09-23 Jakub Jelinek <jakub@redhat.com>
952 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
953 without !$omp end do, followed immediately by subroutine end.
955 2005-09-23 Diego Novillo <dnovillo@redhat.com>
957 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
959 2005-09-22 Richard Henderson <rth@redhat.com>
961 * critical.c (GOMP_critical_name_start): Change argument to void**.
962 Reuse the pointer space if the mutex fits.
963 (GOMP_critical_name_end): Likewise.
964 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
965 * libgomp_g.h (GOMP_critical_name_start): Update decl.
966 (GOMP_critical_name_end): Likewise.
967 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
968 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
970 2005-09-20 Richard Henderson <rth@redhat.com>
972 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
973 (create_lock_lock): New.
974 (initialize_critical): Initialize it.
975 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
976 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
978 2005-09-20 Diego Novillo <dnovillo@redhat.com>
980 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
982 2005-09-20 Diego Novillo <dnovillo@redhat.com>
984 * testsuite/libgomp.dg/omp-loop01.c: New test.
985 * testsuite/libgomp.dg/omp-loop02.c: New test.
987 2005-09-20 Jakub Jelinek <jakub@redhat.com>
989 * configure.ac (AC_PROG_FC): Add.
990 (USE_FORTRAN): New automake conditional.
991 * configure: Rebuilt.
992 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
993 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
994 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
995 Add rules to build them.
996 * Makefile.in: Rebuilt.
997 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
999 * libgomp.map: Add Fortran wrappers.
1000 * libgomp_f.h.in: New file.
1001 * omp_lib.h.in: New file.
1002 * omp_lib.f90.in: New file.
1003 * fortran.c: New file.
1004 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1005 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1006 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1007 libgfortran has been built.
1008 * testsuite/libgomp.fortran/fortran.exp: New file.
1009 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1010 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1011 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1012 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1013 * testsuite/libgomp.fortran/omp_hello.f: New test.
1014 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1015 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1016 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1017 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1018 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1019 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1020 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1021 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1023 2005-08-30 Richard Henderson <rth@redhat.com>
1025 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1026 function for when aliases are not usable.
1027 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1028 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1029 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1030 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1031 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1032 GOMP_loop_ordered_guided_next): Likewise.
1033 * ordered.c (GOMP_ordered_start): Likewise.
1035 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1037 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1038 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1039 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1040 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1041 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1042 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1043 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1044 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1045 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1047 2005-07-07 Eric Christopher <echristo@redhat.com>
1048 Diego Novillo <dnovillo@redhat.com>
1050 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1051 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1053 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1054 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1055 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1056 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1057 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1058 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1059 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1061 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1063 * TOPLEVEL.patch: Remove.
1065 2005-05-16 Richard Henderson <rth@redhat.com>
1067 * configure.ac: Test for clock_gettime.
1068 * config.h.in, configure: Rebuild.
1069 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1070 (omp_get_wtime): Use clock_gettime if available.
1071 (omp_get_wtick): Use clock_getres if available.
1073 2005-05-11 Richard Henderson <rth@redhat.com>
1075 * config/linux/ia64/futex.h: New file.
1076 * configure.tgt: Use it.
1078 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1080 2005-05-07 Richard Henderson <rth@redhat.com>
1082 * config/linux/powerpc/futex.h: New file.
1083 * configure.tgt: Use it.
1085 * config/linux/i486/futex.h: Merge ...
1086 * config/linux/x86_64/futex.h: ... into ...
1087 * config/linux/x86/futex.h: ... here.
1088 * configure.tgt: Update to match.
1090 2005-05-06 Richard Henderson <rth@redhat.com>
1092 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1093 * config/linux/i486/futex.h: Likewise.
1094 * config/linux/x86_64/futex.h: Likewise.
1096 * config/linux/lock.c: New file.
1097 * config/linux/omp-lock.h: New file.
1099 * critical.c, env.h: Don't include omp.h
1100 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1101 * config/posix/time.c: Likewise.
1102 * config/posix/omp-lock.h: New file.
1103 * libgomp.h: Include omp-lock.h and omp.h.
1104 * Makefile.am (nodist_include_HEADERS): New.
1106 * configure.ac (PERL): New.
1107 * mkomp_h.pl: New file.
1108 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1110 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1112 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1113 build directory. Re-add -march=i486 hack.
1115 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1116 (libgomp_link_flags): Remove.
1117 (libgomp_initialized): Remove.
1118 (libgomp_init): Don't protect from reinitialization. Copy code
1119 from libstdc++ for getting the multilib set correctly.
1121 2005-05-05 Richard Henderson <rth@redhat.com>
1123 * config/linux/alpha/futex.h: New file.
1124 * configure.tgt (alpha*-*-linux*): Use it.
1126 * config/posix/mutex.c: New file.
1127 * config/posix/sem.c: Use libgomp.h.
1129 * configure.tgt (x86_64-linux): Also test CC for -m32.
1130 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1132 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1135 * Makefile.am (SUBDIRS): New.
1136 (libgomp_la_LDFLAGS): Add -lpthread.
1137 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1138 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1140 * libgomp_g.h: New file.
1141 * libgomp.h: Split out all public declarations to libgomp_g.h.
1142 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1143 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1144 * config/linux/sem.h: Likewise.
1145 * config/posix/sem.h: Likewise.
1147 * Makefile.am (AM_LDFLAGS): New.
1148 (libgomp_version_script): Split out from ...
1149 (libgomp_la_LDFLAGS): ... here.
1150 (libgomp_version_info): New.
1151 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1152 (LIBGOMP_ENABLE): New.
1153 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1154 (LIBGOMP_ENABLE_SYMVERS): New.
1155 * configure.ac (AC_INIT): Version 1.0.
1156 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1157 (enable-linux-futex): Likewise. Rename from enable-futex.
1158 (libtool_VERSION): New.
1159 (LIBGOMP_ENABLE_SYMVERS): Use it.
1160 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1161 * Makefile.in, aclocal.m4, configure: Rebuild.
1163 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1164 (gomp_mutex_unlock_slow): Fix typo.
1165 * config/linux/sem.c: Similarly.
1166 (gomp_sem_post_slow): Fix typo.
1167 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1168 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1169 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1171 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1172 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1173 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1174 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1175 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1176 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1177 LDFLAGS. Pull enable_futex check to top-level.
1178 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1179 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1181 First attempt at real configury.
1182 * Makefile, config.h: Remove file.
1183 * Makefile.am, Makefile.in: New file.
1184 * acinclude.m4 aclocal.m4: New file.
1185 * configure.ac, configure.tgt, configure: New file.
1187 * config/posix/lock.c: Rename from sys-lock.c.
1188 * config/posix/mutex.h: Rename from sys-mutex.h.
1189 * config/posix/sem.c: Rename from sys-sem.c.
1190 * config/posix/sem.h: Rename from sys-sem.h.
1191 * config/posix/proc.c: Rename from sys-proc.c.
1192 * config/posix/time.c: Rename from sys-proc.c.
1194 * config/linux/mutex.c: New file.
1195 * config/linux/mutex.h: New file.
1196 * config/linux/sem.c: New file.
1197 * config/linux/sem.h: New file.
1198 * config/linux/i486/futex.h: New file.
1199 * config/linux/x86_64/futex.h: New file.
1201 2005-05-04 Richard Henderson <rth@redhat.com>
1203 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1204 * libgomp.h: Declare them.
1205 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1206 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1208 2005-05-04 Richard Henderson <rth@redhat.com>
1210 * libgomp-1 code drop
1212 2005-05-04 Richard Henderson <rth@redhat.com>
1214 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1215 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1216 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1217 (gomp_iter_static_next): Update.
1218 (gomp_ordered_static_next): Update.
1219 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1220 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1221 totally empty range.
1222 (gomp_loop_ordered_static_next): Refine test for calling
1223 gomp_ordered_static_next.
1224 * testsuite/ordered-1.c: Add case for more threads than iterations.
1226 * iter.c (gomp_iter_runtime_next_locked): Remove.
1227 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1228 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1229 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1230 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1231 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1232 gomp_loop_ordered_guided_next): Downcase name, make static, add
1233 an external alias with the old name.
1234 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1235 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1236 switch and call one of the above static functions.
1237 * libgomp.h: Update.
1239 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1240 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1241 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1242 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1243 GOMP_loop_ordered_guided_start): Update to match.
1244 * sections.c (GOMP_sections_start): Likewise.
1245 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1247 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1248 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1249 Use bounds check instead of modulus.
1250 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1251 (gomp_ordered_last): Don't sync with ordered_owner here.
1252 (gomp_ordered_next): Likewise.
1253 (gomp_ordered_static_loop_next): Likewise.
1254 * loop.c, libgomp.h: Update to match.
1256 * libgomp.h (GOMP_barrier): Declare.
1258 * testsuite/barrier-1.c: New file.
1259 * testsuite/critical-1.c: New file.
1260 * testsuite/ordered-2.c: New file.
1261 * testsuite/ordered-1.c: New file.
1262 * testsuite/sections-1.c: New file.
1263 * testsuite/single-1.c: New file.
1264 * testsuite/Makefile (TESTS): Add them.
1266 2005-05-04 Richard Henderson <rth@redhat.com>
1268 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1269 * loop.c (GOMP_loop_static_start): If not the startup thread,
1270 acquire the mutex to wait for initialization complete.
1271 (GOMP_loop_ordered_static_start): Likewise.
1272 (GOMP_loop_ordered_runtime_start): Likewise.
1273 (GOMP_loop_ordered_static_first): Remove.
1274 (GOMP_loop_ordered_dynamic_first): Remove.
1275 (GOMP_loop_ordered_guided_first): Remove.
1276 (GOMP_loop_ordered_runtime_first): Remove.
1277 * ordered.c (gomp_ordered_loop_first): Post to own release when
1278 we're the first thread.
1279 (gomp_ordered_loop_last): Wait on release if not owner.
1280 (gomp_ordered_loop_next): Likewise.
1281 (gomp_ordered_static_loop_init): New.
1282 (gomp_ordered_static_loop_next): Use ordered_owner.
1283 (GOMP_ordered_start): Likewise.
1284 * work.c (gomp_new_work_share): Initialize ordered_owner.
1286 2005-05-03 Richard Henderson <rth@redhat.com>
1288 * Makefile (OPT): New.
1291 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1292 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1293 * libgomp.h, libgomp.map, NOTES: Update to match.
1295 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1296 Add initialized and thr members.
1297 (gomp_thread_start): Pause when initially spawned to wait for
1298 the whole team to be created.
1299 (gomp_team_start): Release team members at the end.
1301 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1302 (f_foo_1): Use GOMP_loop_end.
1303 (f_foo_2): Use GOMP_loop_end_nowait.
1305 * testsuite/loop-2.c: New file.
1306 * testsuite/Makefile (TESTS): Add it.
1308 2005-05-03 Richard Henderson <rth@redhat.com>
1310 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1311 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1312 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1315 * testsuite/Makefile: New file.
1316 * testsuite/loop-1.c: New file.
1318 2005-05-03 Richard Henderson <rth@redhat.com>
1320 Initial implementation and checkin.