1 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
3 * configure: Regenerated.
5 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
7 * env.c (parse_schedule): Reject out of range values.
8 (parse_unsigned_long): Reject out of range, negative or zero values.
10 2006-10-29 Jakub Jelinek <jakub@redhat.com>
13 * testsuite/libgomp.fortran/pr29629.f90: New test.
15 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
18 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19 * config/posix95: New directory.
20 * config/posix95/omp-lock.h: New file.
21 * config/posix95/lock.c: Likewise.
23 2006-10-14 Geoffrey Keating <geoffk@apple.com>
25 * aclocal.m4: Regenerate.
26 * configure: Regenerate.
28 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
30 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
33 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
35 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
37 * configure: Regenerate.
38 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
40 2006-09-26 Jakub Jelinek <jakub@redhat.com>
44 * testsuite/libgomp.c/nestedfn-4.c: New test.
45 * testsuite/libgomp.c/nestedfn-5.c: New test.
46 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
49 * testsuite/libgomp.fortran/condinc1.f: New test.
50 * testsuite/libgomp.fortran/condinc2.f: New test.
51 * testsuite/libgomp.fortran/condinc3.f90: New test.
52 * testsuite/libgomp.fortran/condinc4.f90: New test.
53 * testsuite/libgomp.fortran/condinc1.inc: New file.
55 2006-09-18 Tom Tromey <tromey@redhat.com>
59 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
63 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
65 * configure: Regenerate.
67 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
69 * testsuite/libgomp.fortran/reduction3.f90: Change
70 -2147483648 to -huge(i)-1 to avoid overflow.
71 * testsuite/libgomp.fortran/reduction4.f90: Change
72 Z'ffffffff' to not(0) to avoid overflow.
74 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
77 * Makefile.am (libsubincludedir): New.
78 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
79 * Makefile.in: Regenerate.
81 2006-08-17 Jakub Jelinek <jakub@redhat.com>
84 * env.c: Include ctype.h.
85 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
86 leading and/or trailing whitespace and compare strings case
89 2006-07-16 Jakub Jelinek <jakub@redhat.com>
92 * testsuite/libgomp.fortran/pr28390.f: New test.
94 2006-07-05 Eric Christopher <echristo@apple.com>
96 * configure.ac: Depend addition of -pthread on host OS.
97 * configure: Regenerate.
99 2006-06-21 Jakub Jelinek <jakub@redhat.com>
101 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
102 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
105 2006-06-20 Jakub Jelinek <jakub@redhat.com>
109 * configure.ac: If neither --enable-linux-futex nor
110 --disable-linux-futex is passed, determine the default by checking
111 for compiling and/or running against NPTL. With --enable-linux-futex,
112 check if SYS_gettid and SYS_futex are defined.
113 * configure: Rebuilt.
115 2006-06-14 Richard Henderson <rth@redhat.com>
118 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
119 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
121 2006-06-09 Richard Henderson <rth@redhat.com>
123 * env.c (gomp_nthreads_var): Change to unsigned long.
124 (gomp_run_sched_chunk): Likewise.
125 (parse_unsigned_long): Rename from parse_num_threads and generalize.
126 (initialize_env): Initialize gomp_thread_attr.
127 * libgomp.h (gomp_nthreads_var): Update decl.
128 (gomp_run_sched_chunk): Likewise.
129 (gomp_thread_attr): Declare.
130 * team.c (gomp_thread_attr): Export.
131 (initialize_team): Don't initialize it.
133 2006-06-09 Jakub Jelinek <jakub@redhat.com>
136 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
137 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
139 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
141 * config/mingw32/time.c: New file.
142 * configure.tgt: Use it.
144 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
146 * Makefile.am: Add install-html target. Add install-html to .PHONY
147 * Makefile.in: Regenerate.
149 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
152 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
153 * testsuite/libgomp.c/critical-1.c: Likewise.
154 * testsuite/libgomp.c/loop-1.c: Likewise.
155 * testsuite/libgomp.c/loop-2.c: Likewise.
156 * testsuite/libgomp.c/single-1.c: Likewise.
157 * testsuite/libgomp.c/ordered-1.c: Likewise.
158 * testsuite/libgomp.c/ordered-2.c: Likewise.
160 2006-05-15 Jakub Jelinek <jakub@redhat.com>
163 * libgomp.fortran/pr27416-1.f90: New test.
165 2006-05-03 Jakub Jelinek <jakub@redhat.com>
168 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
169 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
171 2006-05-02 Jakub Jelinek <jakub@redhat.com>
174 * testsuite/libgomp.c/pr26943-1.c: New test.
175 * testsuite/libgomp.c/pr26943-2.c: New test.
176 * testsuite/libgomp.c/pr26943-3.c: New test.
177 * testsuite/libgomp.c/pr26943-4.c: New test.
178 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
179 * testsuite/libgomp.c++/pr26943.C: New test.
181 2006-05-02 Jakub Jelinek <jakub@redhat.com>
184 * testsuite/libgomp.c++/pr27337.C: New test.
186 2006-04-26 Jakub Jelinek <jakub@redhat.com>
189 * testsuite/libgomp.c/pr26171.c: New test.
191 2006-04-25 Richard Henderson <rth@redhat.com>
194 * configure.ac: Use GCC_CHECK_TLS.
195 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
196 * Makefile.in, aclocal.m4, configure: Regenerate.
198 2006-04-10 Matthias Klose <doko@debian.org>
200 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
201 directory names containing underscores.
203 2006-03-21 Jakub Jelinek <jakub@redhat.com>
206 * testsuite/libgomp.c++/pr26691.C: New test.
208 2006-03-13 Jakub Jelinek <jakub@redhat.com>
210 * testsuite/libgomp.fortran/retval2.f90: New test.
212 2006-03-09 Diego Novillo <dnovillo@redhat.com>
214 * testsuite/libgomp.c++: New directory.
216 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
218 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
219 * config/posix/sem.c: Implement the above.
221 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
223 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
224 define HAVE_BROKEN_POSIX_SEMAPHORES.
225 * configure: Rebuilt.
226 * config.h.in: Rebuilt.
228 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
231 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
232 for the other pthread check.
233 * configure: Regenerate.
234 * config.h.in: Regenerate.
236 2006-02-15 Jakub Jelinek <jakub@redhat.com>
240 * Makefile.am (fincludedir): New variable.
241 (nodist_include_HEADERS): Remove Fortran files.
242 (nodist_finclude_HEADERS): New variable.
243 * Makefile.in: Regenerated.
245 2006-02-13 Jakub Jelinek <jakub@redhat.com>
247 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
248 Remove tests for returning assumed character length arrays.
250 2006-02-12 Roger Sayle <roger@eyesopen.com>
251 John David Anglin <dave@hiauly1.hia.nrc.ca>
254 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
256 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
258 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
260 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
262 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
263 part of LD_LIBRARY_PATH manually.
265 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
268 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
271 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
274 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
275 * configure.ac (PERL): Don't set.
276 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
277 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
278 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
279 * omp.h.in: Wrap the new configure substitutions with @ characters.
280 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
281 * aclocal.m4, configure, Makefile.in: Regenerate.
282 * mkomp_h.pl: Delete.
284 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
287 * configure.ac: Use GCC_HEADER_STDINT.
288 * libgomp.h: Include gstdint.h.
289 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
290 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
292 2006-01-24 Richard Henderson <rth@redhat.com>
295 * configure.ac: Add AM_MAINTAINER_MODE.
296 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
298 2006-01-24 Diego Novillo <dnovillo@redhat.com>
300 * Makefile.in: Regenerate.
301 * testsuite/Makefile.in: Regenerate.
302 * aclocal.m4: Regenerate.
304 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
306 * config/posix/proc.c: Conditional include of sys/loadavg.h for
308 * configure.ac: Add check for loadavg.h.
309 (link_gomp): Adjust comment.
310 * configure: Regenerate.
311 * config.h.in: Regenerate.
313 2006-01-21 Steve Ellcey <sje@cup.hp.com>
316 * configure.ac: Remove check for alloca.h.
317 * configure: Regenerate.
318 * config.h.in: Regenerate.
319 * libgomp.h: define gomp_alloca to be __builtin_alloca.
320 * team.c: Remove use of alloca.h.
321 Call gomp_alloca instead of alloca.
323 2006-01-20 Steve Ellcey <sje@cup.hp.com>
326 * team.c: Add include of alloca.h.
327 * configure.ac: Add check for alloca.h.
328 * configure: Regenerate.
329 * config.h.in: Regenerate.
331 2006-01-17 Jakub Jelinek <jakub@redhat.com>
334 * testsuite/libgomp.fortran/pr25219.f90: New test.
336 2005-12-05 Uros Bizjak <uros@kss-loka.si>
338 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
339 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
340 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
341 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
342 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
343 testsuite/libgomp.fortran/threadprivate1.f90,
344 testsuite/libgomp.fortran/threadprivate2.f90,
345 testsuite/libgomp.fortran/threadprivate3.f90,
346 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
347 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
348 testsuite/libgomp.fortran/omp_parse3.f90: Change required
349 effective-target to TLS runtime.
351 * testsuite/libgomp.fortran/pr25162.f: Require
352 effective-target TLS runtime.
354 2005-12-01 Jakub Jelinek <jakub@redhat.com>
356 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
357 * testsuite/libgomp.c/nestedfn-3.c: New test.
359 2005-11-30 Jakub Jelinek <jakub@redhat.com>
362 * testsuite/libgomp.fortran/pr25162.f: New test.
364 2005-11-28 Jakub Jelinek <jakub@redhat.com>
366 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
367 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
369 2005-11-25 Jakub Jelinek <jakub@redhat.com>
371 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
372 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
373 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
374 single.c, team.c, work.c, config/linux/alpha/futex.h,
375 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
376 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
377 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
378 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
379 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
380 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
381 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
384 2005-11-18 Jakub Jelinek <jakub@redhat.com>
386 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
387 to nodist_noinst_HEADERS.
388 * Makefile.in: Rebuilt.
390 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
391 add integer count field.
392 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
393 omp_nest_lock_t type change.
394 (omp_init_nest_lock): Likewise. Initialize count to 0.
395 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
397 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
399 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
400 Increment count if successful and return the new nesting level.
401 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
402 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
403 * testsuite/libgomp.c/lib-1.c: New test.
404 * testsuite/libgomp.fortran/lib1.f90: New test.
405 * testsuite/libgomp.fortran/lib2.f: New test.
406 * testsuite/libgomp.fortran/lib3.f: New test.
408 2005-11-17 Richard Henderson <rth@redhat.com>
411 * Makefile.am (nodist_toolexeclib_HEADERS): New.
412 * configure.ac (link_gomp): New. Substitute it.
413 (AC_CONFIG_FILES): Add libgomp.spec.
414 * libgomp.spec.in: New file.
415 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
416 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
418 2005-11-18 Jakub Jelinek <jakub@redhat.com>
420 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
421 reduction(-:var) behaving the same as reduction(+:var).
422 * testsuite/libgomp.c/reduction-4.c: New test.
424 2005-11-15 Uros Bizjak <uros@kss-loka.si>
426 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
427 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
428 testsuite/libgomp.c/copyin-3.c,
429 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
430 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
431 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
432 testsuite/libgomp.c++/pr24455.C,
433 testsuite/libgomp.fortran/threadprivate1.f90,
434 testsuite/libgomp.fortran/threadprivate2.f90,
435 testsuite/libgomp.fortran/threadprivate3.f90,
436 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
437 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
438 testsuite/libgomp.fortran/omp_parse3.f90: Require
439 effective-target TLS.
441 2005-11-14 Diego Novillo <dnovillo@redhat.com>
445 2005-11-13 Jakub Jelinek <jakub@redhat.com>
448 * team.c (initialize_team): Pass NULL rather than free as
449 pthread_key_create destructor. Initialize thread specific data
450 pointer in initial thread to a static local variable rather than
453 2005-11-11 Uros Bizjak <uros@kss-loka.si>
455 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
456 its location to ld_library_path.
458 2005-11-10 Diego Novillo <dnovillo@redhat.com>
460 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
462 2005-11-10 Diego Novillo <dnovillo@redhat.com>
464 * testsuite/libgomp.c: Rename from libgomp.dg.
466 2005-11-09 Diego Novillo <dnovillo@redhat.com>
468 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
469 threadprivate variable 'i'.
471 2005-11-09 Jakub Jelinek <jakub@redhat.com>
473 * config/linux/s390/futex.h: New file.
474 * configure.tgt: Use it.
476 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
479 2005-11-08 Jakub Jelinek <jakub@redhat.com>
482 * testsuite/libgomp.c++/master-1.C: New test.
484 2005-11-07 Jakub Jelinek <jakub@redhat.com>
486 * testsuite/libgomp.dg/copyin-3.c: New test.
488 2005-11-07 Jakub Jelinek <jakub@redhat.com>
490 * testsuite/libgomp.fortran/retval1.f90: New test.
491 * testsuite/libgomp.fortran/vla7.f90: New test.
493 2005-11-06 Jakub Jelinek <jakub@redhat.com>
495 * testsuite/libgomp.fortran/vla2.f90: New test.
496 * testsuite/libgomp.fortran/vla3.f90: New test.
497 * testsuite/libgomp.fortran/vla4.f90: New test.
498 * testsuite/libgomp.fortran/vla5.f90: New test.
499 * testsuite/libgomp.fortran/vla6.f90: New test.
501 2005-11-01 Jakub Jelinek <jakub@redhat.com>
503 * config/linux/sparc/futex.h: New file.
504 * configure.tgt: Use it.
505 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
507 * critical.c: Include stdlib.h.
508 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
509 ignoring return value.
510 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
511 LIBGOMP_CHECK_SYNC_BUILTINS check.
512 * configure: Rebuilt.
514 2005-10-31 Jakub Jelinek <jakub@redhat.com>
516 * testsuite/libgomp.fortran/vla1.f90: New test.
518 2005-10-31 Richard Henderson <rth@redhat.com>
520 * testsuite/libgomp.fortran/character2.f90: Fix race condition
521 setting 's' in different threads.
523 2005-10-31 Jakub Jelinek <jakub@redhat.com>
525 * libgomp.h (attribute_hidden, ialias): Define.
526 * config/posix/proc.c (omp_get_num_procs): Add ialias.
527 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
528 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
529 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
530 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
531 omp_test_lock, omp_test_nest_lock): Likewise.
532 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
533 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
534 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
535 omp_test_lock, omp_test_nest_lock): Likewise.
536 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
537 omp_get_dynamic, omp_get_nested): Likewise.
538 * parallel.c (omp_get_num_threads, omp_get_max_threads,
539 omp_get_thread_num, omp_in_parallel): Likewise.
540 * fortran.c (ialias_redirect): Define.
541 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
542 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
543 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
544 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
545 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
546 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
547 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
548 omp_get_wtime): Add ialias_redirect.
550 2005-10-30 Jakub Jelinek <jakub@redhat.com>
552 * fortran.c: Include stdlib.h.
554 2005-10-29 Jakub Jelinek <jakub@redhat.com>
556 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
557 * Makefile.in: Regenerated.
559 2005-10-28 Jakub Jelinek <jakub@redhat.com>
561 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
562 * libgomp_f.h.in (omp_check_defines): New function.
563 * env.c: Include libgomp_f.h.
564 (initialize_env): Call omp_check_defines.
566 * testsuite/libgomp.dg/copyin-2.c: New test.
567 * testsuite/libgomp.c++/copyin-2.C: New test.
568 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
570 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
571 * testsuite/libgomp.fortran/sharing2.f90: New test.
573 * testsuite/libgomp.dg/copyin-1.c: New test.
574 * testsuite/libgomp.c++/copyin-1.C: New test.
576 2005-10-26 Jakub Jelinek <jakub@redhat.com>
578 * testsuite/libgomp.fortran/crayptr1.f90: New test.
580 * testsuite/libgomp.fortran/workshare1.f90: New test.
582 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
584 * libgomp.fortran/sharing1.f90: New test.
586 2005-10-24 Jakub Jelinek <jakub@redhat.com>
589 * testsuite/libgomp.c++/loop-7.C: New test.
591 * testsuite/libgomp.dg/nestedfn-2.c: New test.
593 * testsuite/libgomp.dg/nestedfn-1.c: New test.
594 * testsuite/libgomp.fortran/reduction6.f90: New test.
595 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
597 2005-10-23 Richard Henderson <rth@redhat.com>
599 * testsuite/libgomp.c++/ctor-1.C: New.
600 * testsuite/libgomp.c++/ctor-2.C: New.
601 * testsuite/libgomp.c++/ctor-3.C: New.
602 * testsuite/libgomp.c++/ctor-4.C: New.
603 * testsuite/libgomp.c++/ctor-5.C: New.
604 * testsuite/libgomp.c++/ctor-6.C: New.
605 * testsuite/libgomp.c++/ctor-7.C: New.
606 * testsuite/libgomp.c++/ctor-8.C: New.
607 * testsuite/libgomp.c++/ctor-9.C: New.
609 2005-10-21 Diego Novillo <dnovillo@redhat.com>
612 * testsuite/libgomp.c++/pr24455-1.C: New test.
613 * testsuite/libgomp.c++/pr24455.C: New test.
614 * testsuite/libgomp.dg/pr24455-1.c: New test.
615 * testsuite/libgomp.dg/pr24455.c: New test.
617 2005-10-20 Richard Henderson <rth@redhat.com>
619 * testsuite/libgomp.c++/loop-6.C: New.
620 * testsuite/libgomp.dg/loop-3.c: New.
622 2005-10-20 Jakub Jelinek <jakub@redhat.com>
624 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
626 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
629 2005-10-19 Diego Novillo <dnovillo@redhat.com>
631 * testsuite/libgomp.fortran/jacobi.f: New test.
633 2005-10-19 Richard Henderson <rth@redhat.com>
635 * configure.tgt (i?86-linux): Default to with_arch instead of
636 CFLAGS. Add -mtune to match target_cpu.
637 (x86_64-linux): Tune to i686.
639 * fortran.c (omp_test_nest_lock_): Fix typo.
641 2005-10-19 Jakub Jelinek <jakub@redhat.com>
643 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
644 gomp_ordered_sync): Do nothing if team->nthreads == 1.
645 * testsuite/libgomp.dg/ordered-3.c: New test.
647 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
648 Remove volatile keyword.
650 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
651 in COMMON block to avoid warnings on 64-bit targets.
653 2005-10-18 Diego Novillo <dnovillo@redhat.com>
655 * testsuite/libgomp.dg/shared-3.c: New test.
657 2005-10-18 Jakub Jelinek <jakub@redhat.com>
659 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
660 * testsuite/libgomp.fortran/reduction5.f90: New test.
662 2005-10-18 Jakub Jelinek <jakub@redhat.com>
664 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
666 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
667 flush loop now that __sync_synchronize has proper memory barrier.
668 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
669 Add -ffixed-form to dg-options.
671 2005-10-17 Diego Novillo <dnovillo@redhat.com>
673 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
675 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
676 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
677 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
678 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
679 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
680 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
681 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
682 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
683 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
684 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
685 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
686 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
687 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
688 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
689 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
690 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
691 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
692 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
693 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
694 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
695 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
696 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
697 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
698 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
699 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
701 2005-10-17 Jakub Jelinek <jakub@redhat.com>
703 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
704 lang_library_path exists. Use find instead of glob to gather tests.
705 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
707 2005-10-17 Diego Novillo <dnovillo@redhat.com>
709 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
710 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
711 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
712 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
713 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
714 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
715 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
716 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
717 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
718 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
719 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
720 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
721 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
723 2005-10-15 Jakub Jelinek <jakub@redhat.com>
725 * testsuite/libgomp.dg/vla-1.c: New test.
727 * testsuite/libgomp.fortran/reference2.f90: New test.
729 * testsuite/libgomp.fortran/character2.f90: Remove explicit
730 declaration of omp_get_thread_num.
731 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
734 * testsuite/libgomp.fortran/reduction1.f90: New test.
735 * testsuite/libgomp.fortran/reduction2.f90: New test.
736 * testsuite/libgomp.fortran/reduction3.f90: New test.
737 * testsuite/libgomp.fortran/reduction4.f90: New test.
739 2005-10-13 Richard Henderson <rth@redhat.com>
741 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
742 * Makefile.in: Regenerate.
743 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
744 * libgomp.h: Include bar.h.
745 (struct gomp_barrier): Remove.
746 (struct gomp_team): Add barrier. Replace master_barrier with
747 master_release. Replace threads with ordered_release.
748 (struct gomp_thread): Replace barrier with release.
749 * ordered.c (gomp_ordered_first): Update for ordered_release change.
750 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
751 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
752 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
753 (GOMP_single_copy_end): Likewise.
754 * team.c (gomp_threads_dock): New.
755 (gomp_barrier_init, gomp_barrier_destroy): Remove.
756 (gomp_thread_start): Use gomp_barrier_wait.
757 (new_team, free_team): Update for gomp_team changes.
758 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
759 (gomp_team_end): Use gomp_barrier_wait.
760 (initialize_team): Update for gomp_thread changes.
761 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
762 (gomp_work_share_end_nowait): Use atomic ops when available.
763 * config/linux/bar.c, config/linux/bar.h: New files.
764 * config/posix/bar.c, config/posix/bar.h: New files.
766 2005-10-13 Jakub Jelinek <jakub@redhat.com>
768 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
769 * testsuite/libgomp.dg/single-2.c: New test.
771 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
772 lang_link_flags): Unset, so that they aren't inherited from previously
775 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
777 2005-10-12 Richard Henderson <rth@redhat.com>
779 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
780 (libgomp_init): Use lang_test_file, lang_library_path, and
781 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
783 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
784 (lang_test_file, lang_link_flags): New.
785 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
787 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
788 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
789 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
790 testsuite/libgomp.c++/parallel-1.C,
791 testsuite/libgomp.c++/reduction-1.C,
792 testsuite/libgomp.c++/reduction-2.C,
793 testsuite/libgomp.c++/reduction-3.C,
794 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
795 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
796 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
797 New files, largely cribbed from the C testsuite.
799 2005-10-12 Jakub Jelinek <jakub@redhat.com>
801 * testsuite/libgomp.fortran/character1.f90: New test.
802 * testsuite/libgomp.fortran/character2.f90: New test.
804 * testsuite/libgomp.dg/nested-1.c: New test.
805 * testsuite/libgomp.dg/nested-2.c: New test.
806 * testsuite/libgomp.fortran/do1.f90: New test.
807 * testsuite/libgomp.fortran/do2.f90: New test.
809 * testsuite/libgomp.fortran/reference1.f90: New test.
811 2005-10-11 Jakub Jelinek <jakub@redhat.com>
813 * testsuite/libgomp.dg/reduction-1.c: New test.
814 * testsuite/libgomp.dg/reduction-2.c: New test.
815 * testsuite/libgomp.dg/reduction-3.c: New test.
817 2005-10-10 Jakub Jelinek <jakub@redhat.com>
819 * testsuite/libgomp.dg/atomic-1.c: New test.
820 * testsuite/libgomp.dg/atomic-2.c: New test.
822 2005-10-09 Richard Henderson <rth@redhat.com>
824 * critical.c (atomic_lock): New.
825 (initialize_critical): Initialize it.
826 (GOMP_atomic_start, GOMP_atomic_end): New.
827 * libgomp.map: Export them.
828 * libgomp_g.h: Declare them.
830 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
832 2005-10-02 Richard Henderson <rth@redhat.com>
834 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
835 to XCFLAGS instead of CFLAGS.
837 2005-09-30 Richard Henderson <rth@redhat.com>
839 * configure.ac: Determine whether -pthread or -lpthread is needed.
840 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
841 * Makefine.in, configure: Rebuild.
843 2005-09-28 Richard Henderson <rth@redhat.com>
845 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
846 * testsuite/libgomp.dg/omp-single-3.c: New test.
848 2005-09-28 Diego Novillo <dnovillo@redhat.com>
850 * testsuite/libgomp.dg/omp-single-2.c: New test.
851 * testsuite/libgomp.dg/shared-2.c: Fix return code.
853 2005-09-27 Richard Henderson <rth@redhat.com>
855 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
856 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
858 2005-09-27 Jakub Jelinek <jakub@redhat.com>
860 * testsuite/libgomp.dg/omp-loop03.c: New test.
862 2005-09-27 Diego Novillo <dnovillo@redhat.com>
864 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
866 2005-09-27 Diego Novillo <dnovillo@redhat.com>
868 * testsuite/libgomp.dg/omp-single-1.c: New test.
869 * testsuite/libgomp.dg/shared-1.c: Return 0.
870 Add prototype for abort.
871 * testsuite/libgomp.dg/shared-2.c: Likewise.
873 2005-09-26 Jakub Jelinek <jakub@redhat.com>
875 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
878 2005-09-26 Diego Novillo <dnovillo@redhat.com>
880 * testsuite/libgomp.dg/shared-1.c: New test.
881 * testsuite/libgomp.dg/shared-2.c: New test.
883 2005-09-24 Richard Henderson <rth@redhat.com>
885 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
887 2005-09-24 Richard Henderson <rth@redhat.com>
889 * iter.c (gomp_iter_static_next): Round up when computing number
890 of iterations. Don't bother distributing a remainder equally.
892 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
893 Don't call srand. Zero b before testing.
896 2005-09-24 Jakub Jelinek <jakub@redhat.com>
898 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
899 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
901 2005-09-23 Jakub Jelinek <jakub@redhat.com>
903 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
904 without !$omp end do, followed immediately by subroutine end.
906 2005-09-23 Diego Novillo <dnovillo@redhat.com>
908 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
910 2005-09-22 Richard Henderson <rth@redhat.com>
912 * critical.c (GOMP_critical_name_start): Change argument to void**.
913 Reuse the pointer space if the mutex fits.
914 (GOMP_critical_name_end): Likewise.
915 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
916 * libgomp_g.h (GOMP_critical_name_start): Update decl.
917 (GOMP_critical_name_end): Likewise.
918 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
919 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
921 2005-09-20 Richard Henderson <rth@redhat.com>
923 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
924 (create_lock_lock): New.
925 (initialize_critical): Initialize it.
926 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
927 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
929 2005-09-20 Diego Novillo <dnovillo@redhat.com>
931 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
933 2005-09-20 Diego Novillo <dnovillo@redhat.com>
935 * testsuite/libgomp.dg/omp-loop01.c: New test.
936 * testsuite/libgomp.dg/omp-loop02.c: New test.
938 2005-09-20 Jakub Jelinek <jakub@redhat.com>
940 * configure.ac (AC_PROG_FC): Add.
941 (USE_FORTRAN): New automake conditional.
942 * configure: Rebuilt.
943 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
944 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
945 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
946 Add rules to build them.
947 * Makefile.in: Rebuilt.
948 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
950 * libgomp.map: Add Fortran wrappers.
951 * libgomp_f.h.in: New file.
952 * omp_lib.h.in: New file.
953 * omp_lib.f90.in: New file.
954 * fortran.c: New file.
955 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
956 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
957 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
958 libgfortran has been built.
959 * testsuite/libgomp.fortran/fortran.exp: New file.
960 * testsuite/libgomp.fortran/omp_cond1.f: New test.
961 * testsuite/libgomp.fortran/omp_cond2.f: New test.
962 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
963 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
964 * testsuite/libgomp.fortran/omp_hello.f: New test.
965 * testsuite/libgomp.fortran/omp_orphan.f: New test.
966 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
967 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
968 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
969 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
970 * testsuite/libgomp.fortran/omp_reduction.f: New test.
971 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
972 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
974 2005-08-30 Richard Henderson <rth@redhat.com>
976 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
977 function for when aliases are not usable.
978 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
979 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
980 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
981 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
982 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
983 GOMP_loop_ordered_guided_next): Likewise.
984 * ordered.c (GOMP_ordered_start): Likewise.
986 2005-08-01 Diego Novillo <dnovillo@redhat.com>
988 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
989 * testsuite/libgomp.dg/omp_hello.c: Fix return code
990 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
991 * testsuite/libgomp.dg/omp_orphan.c: Likewise
992 * testsuite/libgomp.dg/omp_reduction.c: Likewise
993 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
994 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
995 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
996 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
998 2005-07-07 Eric Christopher <echristo@redhat.com>
999 Diego Novillo <dnovillo@redhat.com>
1001 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1002 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1004 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1005 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1006 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1007 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1008 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1009 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1010 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1012 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1014 * TOPLEVEL.patch: Remove.
1016 2005-05-16 Richard Henderson <rth@redhat.com>
1018 * configure.ac: Test for clock_gettime.
1019 * config.h.in, configure: Rebuild.
1020 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1021 (omp_get_wtime): Use clock_gettime if available.
1022 (omp_get_wtick): Use clock_getres if available.
1024 2005-05-11 Richard Henderson <rth@redhat.com>
1026 * config/linux/ia64/futex.h: New file.
1027 * configure.tgt: Use it.
1029 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1031 2005-05-07 Richard Henderson <rth@redhat.com>
1033 * config/linux/powerpc/futex.h: New file.
1034 * configure.tgt: Use it.
1036 * config/linux/i486/futex.h: Merge ...
1037 * config/linux/x86_64/futex.h: ... into ...
1038 * config/linux/x86/futex.h: ... here.
1039 * configure.tgt: Update to match.
1041 2005-05-06 Richard Henderson <rth@redhat.com>
1043 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1044 * config/linux/i486/futex.h: Likewise.
1045 * config/linux/x86_64/futex.h: Likewise.
1047 * config/linux/lock.c: New file.
1048 * config/linux/omp-lock.h: New file.
1050 * critical.c, env.h: Don't include omp.h
1051 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1052 * config/posix/time.c: Likewise.
1053 * config/posix/omp-lock.h: New file.
1054 * libgomp.h: Include omp-lock.h and omp.h.
1055 * Makefile.am (nodist_include_HEADERS): New.
1057 * configure.ac (PERL): New.
1058 * mkomp_h.pl: New file.
1059 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1061 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1063 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1064 build directory. Re-add -march=i486 hack.
1066 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1067 (libgomp_link_flags): Remove.
1068 (libgomp_initialized): Remove.
1069 (libgomp_init): Don't protect from reinitialization. Copy code
1070 from libstdc++ for getting the multilib set correctly.
1072 2005-05-05 Richard Henderson <rth@redhat.com>
1074 * config/linux/alpha/futex.h: New file.
1075 * configure.tgt (alpha*-*-linux*): Use it.
1077 * config/posix/mutex.c: New file.
1078 * config/posix/sem.c: Use libgomp.h.
1080 * configure.tgt (x86_64-linux): Also test CC for -m32.
1081 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1083 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1086 * Makefile.am (SUBDIRS): New.
1087 (libgomp_la_LDFLAGS): Add -lpthread.
1088 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1089 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1091 * libgomp_g.h: New file.
1092 * libgomp.h: Split out all public declarations to libgomp_g.h.
1093 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1094 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1095 * config/linux/sem.h: Likewise.
1096 * config/posix/sem.h: Likewise.
1098 * Makefile.am (AM_LDFLAGS): New.
1099 (libgomp_version_script): Split out from ...
1100 (libgomp_la_LDFLAGS): ... here.
1101 (libgomp_version_info): New.
1102 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1103 (LIBGOMP_ENABLE): New.
1104 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1105 (LIBGOMP_ENABLE_SYMVERS): New.
1106 * configure.ac (AC_INIT): Version 1.0.
1107 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1108 (enable-linux-futex): Likewise. Rename from enable-futex.
1109 (libtool_VERSION): New.
1110 (LIBGOMP_ENABLE_SYMVERS): Use it.
1111 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1112 * Makefile.in, aclocal.m4, configure: Rebuild.
1114 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1115 (gomp_mutex_unlock_slow): Fix typo.
1116 * config/linux/sem.c: Similarly.
1117 (gomp_sem_post_slow): Fix typo.
1118 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1119 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1120 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1122 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1123 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1124 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1125 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1126 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1127 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1128 LDFLAGS. Pull enable_futex check to top-level.
1129 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1130 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1132 First attempt at real configury.
1133 * Makefile, config.h: Remove file.
1134 * Makefile.am, Makefile.in: New file.
1135 * acinclude.m4 aclocal.m4: New file.
1136 * configure.ac, configure.tgt, configure: New file.
1138 * config/posix/lock.c: Rename from sys-lock.c.
1139 * config/posix/mutex.h: Rename from sys-mutex.h.
1140 * config/posix/sem.c: Rename from sys-sem.c.
1141 * config/posix/sem.h: Rename from sys-sem.h.
1142 * config/posix/proc.c: Rename from sys-proc.c.
1143 * config/posix/time.c: Rename from sys-proc.c.
1145 * config/linux/mutex.c: New file.
1146 * config/linux/mutex.h: New file.
1147 * config/linux/sem.c: New file.
1148 * config/linux/sem.h: New file.
1149 * config/linux/i486/futex.h: New file.
1150 * config/linux/x86_64/futex.h: New file.
1152 2005-05-04 Richard Henderson <rth@redhat.com>
1154 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1155 * libgomp.h: Declare them.
1156 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1157 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1159 2005-05-04 Richard Henderson <rth@redhat.com>
1161 * libgomp-1 code drop
1163 2005-05-04 Richard Henderson <rth@redhat.com>
1165 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1166 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1167 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1168 (gomp_iter_static_next): Update.
1169 (gomp_ordered_static_next): Update.
1170 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1171 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1172 totally empty range.
1173 (gomp_loop_ordered_static_next): Refine test for calling
1174 gomp_ordered_static_next.
1175 * testsuite/ordered-1.c: Add case for more threads than iterations.
1177 * iter.c (gomp_iter_runtime_next_locked): Remove.
1178 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1179 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1180 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1181 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1182 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1183 gomp_loop_ordered_guided_next): Downcase name, make static, add
1184 an external alias with the old name.
1185 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1186 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1187 switch and call one of the above static functions.
1188 * libgomp.h: Update.
1190 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1191 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1192 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1193 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1194 GOMP_loop_ordered_guided_start): Update to match.
1195 * sections.c (GOMP_sections_start): Likewise.
1196 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1198 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1199 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1200 Use bounds check instead of modulus.
1201 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1202 (gomp_ordered_last): Don't sync with ordered_owner here.
1203 (gomp_ordered_next): Likewise.
1204 (gomp_ordered_static_loop_next): Likewise.
1205 * loop.c, libgomp.h: Update to match.
1207 * libgomp.h (GOMP_barrier): Declare.
1209 * testsuite/barrier-1.c: New file.
1210 * testsuite/critical-1.c: New file.
1211 * testsuite/ordered-2.c: New file.
1212 * testsuite/ordered-1.c: New file.
1213 * testsuite/sections-1.c: New file.
1214 * testsuite/single-1.c: New file.
1215 * testsuite/Makefile (TESTS): Add them.
1217 2005-05-04 Richard Henderson <rth@redhat.com>
1219 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1220 * loop.c (GOMP_loop_static_start): If not the startup thread,
1221 acquire the mutex to wait for initialization complete.
1222 (GOMP_loop_ordered_static_start): Likewise.
1223 (GOMP_loop_ordered_runtime_start): Likewise.
1224 (GOMP_loop_ordered_static_first): Remove.
1225 (GOMP_loop_ordered_dynamic_first): Remove.
1226 (GOMP_loop_ordered_guided_first): Remove.
1227 (GOMP_loop_ordered_runtime_first): Remove.
1228 * ordered.c (gomp_ordered_loop_first): Post to own release when
1229 we're the first thread.
1230 (gomp_ordered_loop_last): Wait on release if not owner.
1231 (gomp_ordered_loop_next): Likewise.
1232 (gomp_ordered_static_loop_init): New.
1233 (gomp_ordered_static_loop_next): Use ordered_owner.
1234 (GOMP_ordered_start): Likewise.
1235 * work.c (gomp_new_work_share): Initialize ordered_owner.
1237 2005-05-03 Richard Henderson <rth@redhat.com>
1239 * Makefile (OPT): New.
1242 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1243 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1244 * libgomp.h, libgomp.map, NOTES: Update to match.
1246 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1247 Add initialized and thr members.
1248 (gomp_thread_start): Pause when initially spawned to wait for
1249 the whole team to be created.
1250 (gomp_team_start): Release team members at the end.
1252 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1253 (f_foo_1): Use GOMP_loop_end.
1254 (f_foo_2): Use GOMP_loop_end_nowait.
1256 * testsuite/loop-2.c: New file.
1257 * testsuite/Makefile (TESTS): Add it.
1259 2005-05-03 Richard Henderson <rth@redhat.com>
1261 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1262 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1263 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1266 * testsuite/Makefile: New file.
1267 * testsuite/loop-1.c: New file.
1269 2005-05-03 Richard Henderson <rth@redhat.com>
1271 Initial implementation and checkin.