1 2006-09-18 Tom Tromey <tromey@redhat.com>
5 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
9 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11 * configure: Regenerate.
13 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
15 * testsuite/libgomp.fortran/reduction3.f90: Change
16 -2147483648 to -huge(i)-1 to avoid overflow.
17 * testsuite/libgomp.fortran/reduction4.f90: Change
18 Z'ffffffff' to not(0) to avoid overflow.
20 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
23 * Makefile.am (libsubincludedir): New.
24 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
25 * Makefile.in: Regenerate.
27 2006-08-17 Jakub Jelinek <jakub@redhat.com>
30 * env.c: Include ctype.h.
31 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
32 leading and/or trailing whitespace and compare strings case
35 2006-07-16 Jakub Jelinek <jakub@redhat.com>
38 * testsuite/libgomp.fortran/pr28390.f: New test.
40 2006-07-05 Eric Christopher <echristo@apple.com>
42 * configure.ac: Depend addition of -pthread on host OS.
43 * configure: Regenerate.
45 2006-06-21 Jakub Jelinek <jakub@redhat.com>
47 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
48 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
51 2006-06-20 Jakub Jelinek <jakub@redhat.com>
55 * configure.ac: If neither --enable-linux-futex nor
56 --disable-linux-futex is passed, determine the default by checking
57 for compiling and/or running against NPTL. With --enable-linux-futex,
58 check if SYS_gettid and SYS_futex are defined.
61 2006-06-14 Richard Henderson <rth@redhat.com>
64 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
65 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
67 2006-06-09 Richard Henderson <rth@redhat.com>
69 * env.c (gomp_nthreads_var): Change to unsigned long.
70 (gomp_run_sched_chunk): Likewise.
71 (parse_unsigned_long): Rename from parse_num_threads and generalize.
72 (initialize_env): Initialize gomp_thread_attr.
73 * libgomp.h (gomp_nthreads_var): Update decl.
74 (gomp_run_sched_chunk): Likewise.
75 (gomp_thread_attr): Declare.
76 * team.c (gomp_thread_attr): Export.
77 (initialize_team): Don't initialize it.
79 2006-06-09 Jakub Jelinek <jakub@redhat.com>
82 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
83 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
85 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
87 * config/mingw32/time.c: New file.
88 * configure.tgt: Use it.
90 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
92 * Makefile.am: Add install-html target. Add install-html to .PHONY
93 * Makefile.in: Regenerate.
95 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
98 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
99 * testsuite/libgomp.c/critical-1.c: Likewise.
100 * testsuite/libgomp.c/loop-1.c: Likewise.
101 * testsuite/libgomp.c/loop-2.c: Likewise.
102 * testsuite/libgomp.c/single-1.c: Likewise.
103 * testsuite/libgomp.c/ordered-1.c: Likewise.
104 * testsuite/libgomp.c/ordered-2.c: Likewise.
106 2006-05-15 Jakub Jelinek <jakub@redhat.com>
109 * libgomp.fortran/pr27416-1.f90: New test.
111 2006-05-03 Jakub Jelinek <jakub@redhat.com>
114 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
115 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
117 2006-05-02 Jakub Jelinek <jakub@redhat.com>
120 * testsuite/libgomp.c/pr26943-1.c: New test.
121 * testsuite/libgomp.c/pr26943-2.c: New test.
122 * testsuite/libgomp.c/pr26943-3.c: New test.
123 * testsuite/libgomp.c/pr26943-4.c: New test.
124 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
125 * testsuite/libgomp.c++/pr26943.C: New test.
127 2006-05-02 Jakub Jelinek <jakub@redhat.com>
130 * testsuite/libgomp.c++/pr27337.C: New test.
132 2006-04-26 Jakub Jelinek <jakub@redhat.com>
135 * testsuite/libgomp.c/pr26171.c: New test.
137 2006-04-25 Richard Henderson <rth@redhat.com>
140 * configure.ac: Use GCC_CHECK_TLS.
141 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
142 * Makefile.in, aclocal.m4, configure: Regenerate.
144 2006-04-10 Matthias Klose <doko@debian.org>
146 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
147 directory names containing underscores.
149 2006-03-21 Jakub Jelinek <jakub@redhat.com>
152 * testsuite/libgomp.c++/pr26691.C: New test.
154 2006-03-13 Jakub Jelinek <jakub@redhat.com>
156 * testsuite/libgomp.fortran/retval2.f90: New test.
158 2006-03-09 Diego Novillo <dnovillo@redhat.com>
160 * testsuite/libgomp.c++: New directory.
162 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
164 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
165 * config/posix/sem.c: Implement the above.
167 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
169 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
170 define HAVE_BROKEN_POSIX_SEMAPHORES.
171 * configure: Rebuilt.
172 * config.h.in: Rebuilt.
174 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
177 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
178 for the other pthread check.
179 * configure: Regenerate.
180 * config.h.in: Regenerate.
182 2006-02-15 Jakub Jelinek <jakub@redhat.com>
186 * Makefile.am (fincludedir): New variable.
187 (nodist_include_HEADERS): Remove Fortran files.
188 (nodist_finclude_HEADERS): New variable.
189 * Makefile.in: Regenerated.
191 2006-02-13 Jakub Jelinek <jakub@redhat.com>
193 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
194 Remove tests for returning assumed character length arrays.
196 2006-02-12 Roger Sayle <roger@eyesopen.com>
197 John David Anglin <dave@hiauly1.hia.nrc.ca>
200 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
202 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
204 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
206 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
208 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
209 part of LD_LIBRARY_PATH manually.
211 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
214 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
217 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
220 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
221 * configure.ac (PERL): Don't set.
222 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
223 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
224 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
225 * omp.h.in: Wrap the new configure substitutions with @ characters.
226 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
227 * aclocal.m4, configure, Makefile.in: Regenerate.
228 * mkomp_h.pl: Delete.
230 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
233 * configure.ac: Use GCC_HEADER_STDINT.
234 * libgomp.h: Include gstdint.h.
235 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
236 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
238 2006-01-24 Richard Henderson <rth@redhat.com>
241 * configure.ac: Add AM_MAINTAINER_MODE.
242 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
244 2006-01-24 Diego Novillo <dnovillo@redhat.com>
246 * Makefile.in: Regenerate.
247 * testsuite/Makefile.in: Regenerate.
248 * aclocal.m4: Regenerate.
250 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
252 * config/posix/proc.c: Conditional include of sys/loadavg.h for
254 * configure.ac: Add check for loadavg.h.
255 (link_gomp): Adjust comment.
256 * configure: Regenerate.
257 * config.h.in: Regenerate.
259 2006-01-21 Steve Ellcey <sje@cup.hp.com>
262 * configure.ac: Remove check for alloca.h.
263 * configure: Regenerate.
264 * config.h.in: Regenerate.
265 * libgomp.h: define gomp_alloca to be __builtin_alloca.
266 * team.c: Remove use of alloca.h.
267 Call gomp_alloca instead of alloca.
269 2006-01-20 Steve Ellcey <sje@cup.hp.com>
272 * team.c: Add include of alloca.h.
273 * configure.ac: Add check for alloca.h.
274 * configure: Regenerate.
275 * config.h.in: Regenerate.
277 2006-01-17 Jakub Jelinek <jakub@redhat.com>
280 * testsuite/libgomp.fortran/pr25219.f90: New test.
282 2005-12-05 Uros Bizjak <uros@kss-loka.si>
284 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
285 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
286 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
287 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
288 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
289 testsuite/libgomp.fortran/threadprivate1.f90,
290 testsuite/libgomp.fortran/threadprivate2.f90,
291 testsuite/libgomp.fortran/threadprivate3.f90,
292 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
293 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
294 testsuite/libgomp.fortran/omp_parse3.f90: Change required
295 effective-target to TLS runtime.
297 * testsuite/libgomp.fortran/pr25162.f: Require
298 effective-target TLS runtime.
300 2005-12-01 Jakub Jelinek <jakub@redhat.com>
302 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
303 * testsuite/libgomp.c/nestedfn-3.c: New test.
305 2005-11-30 Jakub Jelinek <jakub@redhat.com>
308 * testsuite/libgomp.fortran/pr25162.f: New test.
310 2005-11-28 Jakub Jelinek <jakub@redhat.com>
312 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
313 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
315 2005-11-25 Jakub Jelinek <jakub@redhat.com>
317 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
318 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
319 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
320 single.c, team.c, work.c, config/linux/alpha/futex.h,
321 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
322 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
323 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
324 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
325 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
326 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
327 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
330 2005-11-18 Jakub Jelinek <jakub@redhat.com>
332 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
333 to nodist_noinst_HEADERS.
334 * Makefile.in: Rebuilt.
336 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
337 add integer count field.
338 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
339 omp_nest_lock_t type change.
340 (omp_init_nest_lock): Likewise. Initialize count to 0.
341 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
343 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
345 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
346 Increment count if successful and return the new nesting level.
347 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
348 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
349 * testsuite/libgomp.c/lib-1.c: New test.
350 * testsuite/libgomp.fortran/lib1.f90: New test.
351 * testsuite/libgomp.fortran/lib2.f: New test.
352 * testsuite/libgomp.fortran/lib3.f: New test.
354 2005-11-17 Richard Henderson <rth@redhat.com>
357 * Makefile.am (nodist_toolexeclib_HEADERS): New.
358 * configure.ac (link_gomp): New. Substitute it.
359 (AC_CONFIG_FILES): Add libgomp.spec.
360 * libgomp.spec.in: New file.
361 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
362 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
364 2005-11-18 Jakub Jelinek <jakub@redhat.com>
366 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
367 reduction(-:var) behaving the same as reduction(+:var).
368 * testsuite/libgomp.c/reduction-4.c: New test.
370 2005-11-15 Uros Bizjak <uros@kss-loka.si>
372 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
373 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
374 testsuite/libgomp.c/copyin-3.c,
375 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
376 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
377 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
378 testsuite/libgomp.c++/pr24455.C,
379 testsuite/libgomp.fortran/threadprivate1.f90,
380 testsuite/libgomp.fortran/threadprivate2.f90,
381 testsuite/libgomp.fortran/threadprivate3.f90,
382 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
383 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
384 testsuite/libgomp.fortran/omp_parse3.f90: Require
385 effective-target TLS.
387 2005-11-14 Diego Novillo <dnovillo@redhat.com>
391 2005-11-13 Jakub Jelinek <jakub@redhat.com>
394 * team.c (initialize_team): Pass NULL rather than free as
395 pthread_key_create destructor. Initialize thread specific data
396 pointer in initial thread to a static local variable rather than
399 2005-11-11 Uros Bizjak <uros@kss-loka.si>
401 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
402 its location to ld_library_path.
404 2005-11-10 Diego Novillo <dnovillo@redhat.com>
406 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
408 2005-11-10 Diego Novillo <dnovillo@redhat.com>
410 * testsuite/libgomp.c: Rename from libgomp.dg.
412 2005-11-09 Diego Novillo <dnovillo@redhat.com>
414 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
415 threadprivate variable 'i'.
417 2005-11-09 Jakub Jelinek <jakub@redhat.com>
419 * config/linux/s390/futex.h: New file.
420 * configure.tgt: Use it.
422 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
425 2005-11-08 Jakub Jelinek <jakub@redhat.com>
428 * testsuite/libgomp.c++/master-1.C: New test.
430 2005-11-07 Jakub Jelinek <jakub@redhat.com>
432 * testsuite/libgomp.dg/copyin-3.c: New test.
434 2005-11-07 Jakub Jelinek <jakub@redhat.com>
436 * testsuite/libgomp.fortran/retval1.f90: New test.
437 * testsuite/libgomp.fortran/vla7.f90: New test.
439 2005-11-06 Jakub Jelinek <jakub@redhat.com>
441 * testsuite/libgomp.fortran/vla2.f90: New test.
442 * testsuite/libgomp.fortran/vla3.f90: New test.
443 * testsuite/libgomp.fortran/vla4.f90: New test.
444 * testsuite/libgomp.fortran/vla5.f90: New test.
445 * testsuite/libgomp.fortran/vla6.f90: New test.
447 2005-11-01 Jakub Jelinek <jakub@redhat.com>
449 * config/linux/sparc/futex.h: New file.
450 * configure.tgt: Use it.
451 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
453 * critical.c: Include stdlib.h.
454 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
455 ignoring return value.
456 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
457 LIBGOMP_CHECK_SYNC_BUILTINS check.
458 * configure: Rebuilt.
460 2005-10-31 Jakub Jelinek <jakub@redhat.com>
462 * testsuite/libgomp.fortran/vla1.f90: New test.
464 2005-10-31 Richard Henderson <rth@redhat.com>
466 * testsuite/libgomp.fortran/character2.f90: Fix race condition
467 setting 's' in different threads.
469 2005-10-31 Jakub Jelinek <jakub@redhat.com>
471 * libgomp.h (attribute_hidden, ialias): Define.
472 * config/posix/proc.c (omp_get_num_procs): Add ialias.
473 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
474 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
475 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
476 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
477 omp_test_lock, omp_test_nest_lock): Likewise.
478 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
479 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
480 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
481 omp_test_lock, omp_test_nest_lock): Likewise.
482 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
483 omp_get_dynamic, omp_get_nested): Likewise.
484 * parallel.c (omp_get_num_threads, omp_get_max_threads,
485 omp_get_thread_num, omp_in_parallel): Likewise.
486 * fortran.c (ialias_redirect): Define.
487 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
488 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
489 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
490 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
491 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
492 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
493 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
494 omp_get_wtime): Add ialias_redirect.
496 2005-10-30 Jakub Jelinek <jakub@redhat.com>
498 * fortran.c: Include stdlib.h.
500 2005-10-29 Jakub Jelinek <jakub@redhat.com>
502 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
503 * Makefile.in: Regenerated.
505 2005-10-28 Jakub Jelinek <jakub@redhat.com>
507 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
508 * libgomp_f.h.in (omp_check_defines): New function.
509 * env.c: Include libgomp_f.h.
510 (initialize_env): Call omp_check_defines.
512 * testsuite/libgomp.dg/copyin-2.c: New test.
513 * testsuite/libgomp.c++/copyin-2.C: New test.
514 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
516 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
517 * testsuite/libgomp.fortran/sharing2.f90: New test.
519 * testsuite/libgomp.dg/copyin-1.c: New test.
520 * testsuite/libgomp.c++/copyin-1.C: New test.
522 2005-10-26 Jakub Jelinek <jakub@redhat.com>
524 * testsuite/libgomp.fortran/crayptr1.f90: New test.
526 * testsuite/libgomp.fortran/workshare1.f90: New test.
528 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
530 * libgomp.fortran/sharing1.f90: New test.
532 2005-10-24 Jakub Jelinek <jakub@redhat.com>
535 * testsuite/libgomp.c++/loop-7.C: New test.
537 * testsuite/libgomp.dg/nestedfn-2.c: New test.
539 * testsuite/libgomp.dg/nestedfn-1.c: New test.
540 * testsuite/libgomp.fortran/reduction6.f90: New test.
541 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
543 2005-10-23 Richard Henderson <rth@redhat.com>
545 * testsuite/libgomp.c++/ctor-1.C: New.
546 * testsuite/libgomp.c++/ctor-2.C: New.
547 * testsuite/libgomp.c++/ctor-3.C: New.
548 * testsuite/libgomp.c++/ctor-4.C: New.
549 * testsuite/libgomp.c++/ctor-5.C: New.
550 * testsuite/libgomp.c++/ctor-6.C: New.
551 * testsuite/libgomp.c++/ctor-7.C: New.
552 * testsuite/libgomp.c++/ctor-8.C: New.
553 * testsuite/libgomp.c++/ctor-9.C: New.
555 2005-10-21 Diego Novillo <dnovillo@redhat.com>
558 * testsuite/libgomp.c++/pr24455-1.C: New test.
559 * testsuite/libgomp.c++/pr24455.C: New test.
560 * testsuite/libgomp.dg/pr24455-1.c: New test.
561 * testsuite/libgomp.dg/pr24455.c: New test.
563 2005-10-20 Richard Henderson <rth@redhat.com>
565 * testsuite/libgomp.c++/loop-6.C: New.
566 * testsuite/libgomp.dg/loop-3.c: New.
568 2005-10-20 Jakub Jelinek <jakub@redhat.com>
570 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
572 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
575 2005-10-19 Diego Novillo <dnovillo@redhat.com>
577 * testsuite/libgomp.fortran/jacobi.f: New test.
579 2005-10-19 Richard Henderson <rth@redhat.com>
581 * configure.tgt (i?86-linux): Default to with_arch instead of
582 CFLAGS. Add -mtune to match target_cpu.
583 (x86_64-linux): Tune to i686.
585 * fortran.c (omp_test_nest_lock_): Fix typo.
587 2005-10-19 Jakub Jelinek <jakub@redhat.com>
589 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
590 gomp_ordered_sync): Do nothing if team->nthreads == 1.
591 * testsuite/libgomp.dg/ordered-3.c: New test.
593 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
594 Remove volatile keyword.
596 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
597 in COMMON block to avoid warnings on 64-bit targets.
599 2005-10-18 Diego Novillo <dnovillo@redhat.com>
601 * testsuite/libgomp.dg/shared-3.c: New test.
603 2005-10-18 Jakub Jelinek <jakub@redhat.com>
605 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
606 * testsuite/libgomp.fortran/reduction5.f90: New test.
608 2005-10-18 Jakub Jelinek <jakub@redhat.com>
610 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
612 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
613 flush loop now that __sync_synchronize has proper memory barrier.
614 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
615 Add -ffixed-form to dg-options.
617 2005-10-17 Diego Novillo <dnovillo@redhat.com>
619 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
621 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
622 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
623 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
624 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
625 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
626 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
627 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
628 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
629 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
630 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
631 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
632 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
633 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
634 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
635 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
636 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
637 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
638 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
639 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
640 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
641 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
642 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
643 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
644 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
645 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
647 2005-10-17 Jakub Jelinek <jakub@redhat.com>
649 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
650 lang_library_path exists. Use find instead of glob to gather tests.
651 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
653 2005-10-17 Diego Novillo <dnovillo@redhat.com>
655 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
656 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
657 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
658 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
659 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
660 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
661 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
662 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
663 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
664 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
665 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
666 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
667 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
669 2005-10-15 Jakub Jelinek <jakub@redhat.com>
671 * testsuite/libgomp.dg/vla-1.c: New test.
673 * testsuite/libgomp.fortran/reference2.f90: New test.
675 * testsuite/libgomp.fortran/character2.f90: Remove explicit
676 declaration of omp_get_thread_num.
677 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
680 * testsuite/libgomp.fortran/reduction1.f90: New test.
681 * testsuite/libgomp.fortran/reduction2.f90: New test.
682 * testsuite/libgomp.fortran/reduction3.f90: New test.
683 * testsuite/libgomp.fortran/reduction4.f90: New test.
685 2005-10-13 Richard Henderson <rth@redhat.com>
687 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
688 * Makefile.in: Regenerate.
689 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
690 * libgomp.h: Include bar.h.
691 (struct gomp_barrier): Remove.
692 (struct gomp_team): Add barrier. Replace master_barrier with
693 master_release. Replace threads with ordered_release.
694 (struct gomp_thread): Replace barrier with release.
695 * ordered.c (gomp_ordered_first): Update for ordered_release change.
696 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
697 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
698 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
699 (GOMP_single_copy_end): Likewise.
700 * team.c (gomp_threads_dock): New.
701 (gomp_barrier_init, gomp_barrier_destroy): Remove.
702 (gomp_thread_start): Use gomp_barrier_wait.
703 (new_team, free_team): Update for gomp_team changes.
704 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
705 (gomp_team_end): Use gomp_barrier_wait.
706 (initialize_team): Update for gomp_thread changes.
707 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
708 (gomp_work_share_end_nowait): Use atomic ops when available.
709 * config/linux/bar.c, config/linux/bar.h: New files.
710 * config/posix/bar.c, config/posix/bar.h: New files.
712 2005-10-13 Jakub Jelinek <jakub@redhat.com>
714 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
715 * testsuite/libgomp.dg/single-2.c: New test.
717 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
718 lang_link_flags): Unset, so that they aren't inherited from previously
721 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
723 2005-10-12 Richard Henderson <rth@redhat.com>
725 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
726 (libgomp_init): Use lang_test_file, lang_library_path, and
727 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
729 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
730 (lang_test_file, lang_link_flags): New.
731 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
733 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
734 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
735 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
736 testsuite/libgomp.c++/parallel-1.C,
737 testsuite/libgomp.c++/reduction-1.C,
738 testsuite/libgomp.c++/reduction-2.C,
739 testsuite/libgomp.c++/reduction-3.C,
740 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
741 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
742 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
743 New files, largely cribbed from the C testsuite.
745 2005-10-12 Jakub Jelinek <jakub@redhat.com>
747 * testsuite/libgomp.fortran/character1.f90: New test.
748 * testsuite/libgomp.fortran/character2.f90: New test.
750 * testsuite/libgomp.dg/nested-1.c: New test.
751 * testsuite/libgomp.dg/nested-2.c: New test.
752 * testsuite/libgomp.fortran/do1.f90: New test.
753 * testsuite/libgomp.fortran/do2.f90: New test.
755 * testsuite/libgomp.fortran/reference1.f90: New test.
757 2005-10-11 Jakub Jelinek <jakub@redhat.com>
759 * testsuite/libgomp.dg/reduction-1.c: New test.
760 * testsuite/libgomp.dg/reduction-2.c: New test.
761 * testsuite/libgomp.dg/reduction-3.c: New test.
763 2005-10-10 Jakub Jelinek <jakub@redhat.com>
765 * testsuite/libgomp.dg/atomic-1.c: New test.
766 * testsuite/libgomp.dg/atomic-2.c: New test.
768 2005-10-09 Richard Henderson <rth@redhat.com>
770 * critical.c (atomic_lock): New.
771 (initialize_critical): Initialize it.
772 (GOMP_atomic_start, GOMP_atomic_end): New.
773 * libgomp.map: Export them.
774 * libgomp_g.h: Declare them.
776 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
778 2005-10-02 Richard Henderson <rth@redhat.com>
780 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
781 to XCFLAGS instead of CFLAGS.
783 2005-09-30 Richard Henderson <rth@redhat.com>
785 * configure.ac: Determine whether -pthread or -lpthread is needed.
786 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
787 * Makefine.in, configure: Rebuild.
789 2005-09-28 Richard Henderson <rth@redhat.com>
791 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
792 * testsuite/libgomp.dg/omp-single-3.c: New test.
794 2005-09-28 Diego Novillo <dnovillo@redhat.com>
796 * testsuite/libgomp.dg/omp-single-2.c: New test.
797 * testsuite/libgomp.dg/shared-2.c: Fix return code.
799 2005-09-27 Richard Henderson <rth@redhat.com>
801 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
802 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
804 2005-09-27 Jakub Jelinek <jakub@redhat.com>
806 * testsuite/libgomp.dg/omp-loop03.c: New test.
808 2005-09-27 Diego Novillo <dnovillo@redhat.com>
810 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
812 2005-09-27 Diego Novillo <dnovillo@redhat.com>
814 * testsuite/libgomp.dg/omp-single-1.c: New test.
815 * testsuite/libgomp.dg/shared-1.c: Return 0.
816 Add prototype for abort.
817 * testsuite/libgomp.dg/shared-2.c: Likewise.
819 2005-09-26 Jakub Jelinek <jakub@redhat.com>
821 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
824 2005-09-26 Diego Novillo <dnovillo@redhat.com>
826 * testsuite/libgomp.dg/shared-1.c: New test.
827 * testsuite/libgomp.dg/shared-2.c: New test.
829 2005-09-24 Richard Henderson <rth@redhat.com>
831 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
833 2005-09-24 Richard Henderson <rth@redhat.com>
835 * iter.c (gomp_iter_static_next): Round up when computing number
836 of iterations. Don't bother distributing a remainder equally.
838 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
839 Don't call srand. Zero b before testing.
842 2005-09-24 Jakub Jelinek <jakub@redhat.com>
844 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
845 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
847 2005-09-23 Jakub Jelinek <jakub@redhat.com>
849 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
850 without !$omp end do, followed immediately by subroutine end.
852 2005-09-23 Diego Novillo <dnovillo@redhat.com>
854 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
856 2005-09-22 Richard Henderson <rth@redhat.com>
858 * critical.c (GOMP_critical_name_start): Change argument to void**.
859 Reuse the pointer space if the mutex fits.
860 (GOMP_critical_name_end): Likewise.
861 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
862 * libgomp_g.h (GOMP_critical_name_start): Update decl.
863 (GOMP_critical_name_end): Likewise.
864 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
865 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
867 2005-09-20 Richard Henderson <rth@redhat.com>
869 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
870 (create_lock_lock): New.
871 (initialize_critical): Initialize it.
872 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
873 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
875 2005-09-20 Diego Novillo <dnovillo@redhat.com>
877 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
879 2005-09-20 Diego Novillo <dnovillo@redhat.com>
881 * testsuite/libgomp.dg/omp-loop01.c: New test.
882 * testsuite/libgomp.dg/omp-loop02.c: New test.
884 2005-09-20 Jakub Jelinek <jakub@redhat.com>
886 * configure.ac (AC_PROG_FC): Add.
887 (USE_FORTRAN): New automake conditional.
888 * configure: Rebuilt.
889 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
890 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
891 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
892 Add rules to build them.
893 * Makefile.in: Rebuilt.
894 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
896 * libgomp.map: Add Fortran wrappers.
897 * libgomp_f.h.in: New file.
898 * omp_lib.h.in: New file.
899 * omp_lib.f90.in: New file.
900 * fortran.c: New file.
901 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
902 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
903 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
904 libgfortran has been built.
905 * testsuite/libgomp.fortran/fortran.exp: New file.
906 * testsuite/libgomp.fortran/omp_cond1.f: New test.
907 * testsuite/libgomp.fortran/omp_cond2.f: New test.
908 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
909 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
910 * testsuite/libgomp.fortran/omp_hello.f: New test.
911 * testsuite/libgomp.fortran/omp_orphan.f: New test.
912 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
913 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
914 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
915 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
916 * testsuite/libgomp.fortran/omp_reduction.f: New test.
917 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
918 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
920 2005-08-30 Richard Henderson <rth@redhat.com>
922 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
923 function for when aliases are not usable.
924 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
925 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
926 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
927 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
928 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
929 GOMP_loop_ordered_guided_next): Likewise.
930 * ordered.c (GOMP_ordered_start): Likewise.
932 2005-08-01 Diego Novillo <dnovillo@redhat.com>
934 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
935 * testsuite/libgomp.dg/omp_hello.c: Fix return code
936 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
937 * testsuite/libgomp.dg/omp_orphan.c: Likewise
938 * testsuite/libgomp.dg/omp_reduction.c: Likewise
939 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
940 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
941 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
942 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
944 2005-07-07 Eric Christopher <echristo@redhat.com>
945 Diego Novillo <dnovillo@redhat.com>
947 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
948 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
950 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
951 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
952 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
953 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
954 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
955 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
956 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
958 2005-06-13 Diego Novillo <dnovillo@redhat.com>
960 * TOPLEVEL.patch: Remove.
962 2005-05-16 Richard Henderson <rth@redhat.com>
964 * configure.ac: Test for clock_gettime.
965 * config.h.in, configure: Rebuild.
966 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
967 (omp_get_wtime): Use clock_gettime if available.
968 (omp_get_wtick): Use clock_getres if available.
970 2005-05-11 Richard Henderson <rth@redhat.com>
972 * config/linux/ia64/futex.h: New file.
973 * configure.tgt: Use it.
975 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
977 2005-05-07 Richard Henderson <rth@redhat.com>
979 * config/linux/powerpc/futex.h: New file.
980 * configure.tgt: Use it.
982 * config/linux/i486/futex.h: Merge ...
983 * config/linux/x86_64/futex.h: ... into ...
984 * config/linux/x86/futex.h: ... here.
985 * configure.tgt: Update to match.
987 2005-05-06 Richard Henderson <rth@redhat.com>
989 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
990 * config/linux/i486/futex.h: Likewise.
991 * config/linux/x86_64/futex.h: Likewise.
993 * config/linux/lock.c: New file.
994 * config/linux/omp-lock.h: New file.
996 * critical.c, env.h: Don't include omp.h
997 * config/posix/lock.c: Include libgomp.h instead of omp.h.
998 * config/posix/time.c: Likewise.
999 * config/posix/omp-lock.h: New file.
1000 * libgomp.h: Include omp-lock.h and omp.h.
1001 * Makefile.am (nodist_include_HEADERS): New.
1003 * configure.ac (PERL): New.
1004 * mkomp_h.pl: New file.
1005 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1007 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1009 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1010 build directory. Re-add -march=i486 hack.
1012 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1013 (libgomp_link_flags): Remove.
1014 (libgomp_initialized): Remove.
1015 (libgomp_init): Don't protect from reinitialization. Copy code
1016 from libstdc++ for getting the multilib set correctly.
1018 2005-05-05 Richard Henderson <rth@redhat.com>
1020 * config/linux/alpha/futex.h: New file.
1021 * configure.tgt (alpha*-*-linux*): Use it.
1023 * config/posix/mutex.c: New file.
1024 * config/posix/sem.c: Use libgomp.h.
1026 * configure.tgt (x86_64-linux): Also test CC for -m32.
1027 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1029 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1032 * Makefile.am (SUBDIRS): New.
1033 (libgomp_la_LDFLAGS): Add -lpthread.
1034 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1035 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1037 * libgomp_g.h: New file.
1038 * libgomp.h: Split out all public declarations to libgomp_g.h.
1039 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1040 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1041 * config/linux/sem.h: Likewise.
1042 * config/posix/sem.h: Likewise.
1044 * Makefile.am (AM_LDFLAGS): New.
1045 (libgomp_version_script): Split out from ...
1046 (libgomp_la_LDFLAGS): ... here.
1047 (libgomp_version_info): New.
1048 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1049 (LIBGOMP_ENABLE): New.
1050 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1051 (LIBGOMP_ENABLE_SYMVERS): New.
1052 * configure.ac (AC_INIT): Version 1.0.
1053 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1054 (enable-linux-futex): Likewise. Rename from enable-futex.
1055 (libtool_VERSION): New.
1056 (LIBGOMP_ENABLE_SYMVERS): Use it.
1057 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1058 * Makefile.in, aclocal.m4, configure: Rebuild.
1060 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1061 (gomp_mutex_unlock_slow): Fix typo.
1062 * config/linux/sem.c: Similarly.
1063 (gomp_sem_post_slow): Fix typo.
1064 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1065 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1066 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1068 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1069 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1070 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1071 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1072 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1073 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1074 LDFLAGS. Pull enable_futex check to top-level.
1075 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1076 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1078 First attempt at real configury.
1079 * Makefile, config.h: Remove file.
1080 * Makefile.am, Makefile.in: New file.
1081 * acinclude.m4 aclocal.m4: New file.
1082 * configure.ac, configure.tgt, configure: New file.
1084 * config/posix/lock.c: Rename from sys-lock.c.
1085 * config/posix/mutex.h: Rename from sys-mutex.h.
1086 * config/posix/sem.c: Rename from sys-sem.c.
1087 * config/posix/sem.h: Rename from sys-sem.h.
1088 * config/posix/proc.c: Rename from sys-proc.c.
1089 * config/posix/time.c: Rename from sys-proc.c.
1091 * config/linux/mutex.c: New file.
1092 * config/linux/mutex.h: New file.
1093 * config/linux/sem.c: New file.
1094 * config/linux/sem.h: New file.
1095 * config/linux/i486/futex.h: New file.
1096 * config/linux/x86_64/futex.h: New file.
1098 2005-05-04 Richard Henderson <rth@redhat.com>
1100 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1101 * libgomp.h: Declare them.
1102 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1103 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1105 2005-05-04 Richard Henderson <rth@redhat.com>
1107 * libgomp-1 code drop
1109 2005-05-04 Richard Henderson <rth@redhat.com>
1111 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1112 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1113 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1114 (gomp_iter_static_next): Update.
1115 (gomp_ordered_static_next): Update.
1116 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1117 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1118 totally empty range.
1119 (gomp_loop_ordered_static_next): Refine test for calling
1120 gomp_ordered_static_next.
1121 * testsuite/ordered-1.c: Add case for more threads than iterations.
1123 * iter.c (gomp_iter_runtime_next_locked): Remove.
1124 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1125 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1126 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1127 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1128 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1129 gomp_loop_ordered_guided_next): Downcase name, make static, add
1130 an external alias with the old name.
1131 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1132 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1133 switch and call one of the above static functions.
1134 * libgomp.h: Update.
1136 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1137 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1138 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1139 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1140 GOMP_loop_ordered_guided_start): Update to match.
1141 * sections.c (GOMP_sections_start): Likewise.
1142 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1144 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1145 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1146 Use bounds check instead of modulus.
1147 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1148 (gomp_ordered_last): Don't sync with ordered_owner here.
1149 (gomp_ordered_next): Likewise.
1150 (gomp_ordered_static_loop_next): Likewise.
1151 * loop.c, libgomp.h: Update to match.
1153 * libgomp.h (GOMP_barrier): Declare.
1155 * testsuite/barrier-1.c: New file.
1156 * testsuite/critical-1.c: New file.
1157 * testsuite/ordered-2.c: New file.
1158 * testsuite/ordered-1.c: New file.
1159 * testsuite/sections-1.c: New file.
1160 * testsuite/single-1.c: New file.
1161 * testsuite/Makefile (TESTS): Add them.
1163 2005-05-04 Richard Henderson <rth@redhat.com>
1165 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1166 * loop.c (GOMP_loop_static_start): If not the startup thread,
1167 acquire the mutex to wait for initialization complete.
1168 (GOMP_loop_ordered_static_start): Likewise.
1169 (GOMP_loop_ordered_runtime_start): Likewise.
1170 (GOMP_loop_ordered_static_first): Remove.
1171 (GOMP_loop_ordered_dynamic_first): Remove.
1172 (GOMP_loop_ordered_guided_first): Remove.
1173 (GOMP_loop_ordered_runtime_first): Remove.
1174 * ordered.c (gomp_ordered_loop_first): Post to own release when
1175 we're the first thread.
1176 (gomp_ordered_loop_last): Wait on release if not owner.
1177 (gomp_ordered_loop_next): Likewise.
1178 (gomp_ordered_static_loop_init): New.
1179 (gomp_ordered_static_loop_next): Use ordered_owner.
1180 (GOMP_ordered_start): Likewise.
1181 * work.c (gomp_new_work_share): Initialize ordered_owner.
1183 2005-05-03 Richard Henderson <rth@redhat.com>
1185 * Makefile (OPT): New.
1188 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1189 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1190 * libgomp.h, libgomp.map, NOTES: Update to match.
1192 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1193 Add initialized and thr members.
1194 (gomp_thread_start): Pause when initially spawned to wait for
1195 the whole team to be created.
1196 (gomp_team_start): Release team members at the end.
1198 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1199 (f_foo_1): Use GOMP_loop_end.
1200 (f_foo_2): Use GOMP_loop_end_nowait.
1202 * testsuite/loop-2.c: New file.
1203 * testsuite/Makefile (TESTS): Add it.
1205 2005-05-03 Richard Henderson <rth@redhat.com>
1207 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1208 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1209 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1212 * testsuite/Makefile: New file.
1213 * testsuite/loop-1.c: New file.
1215 2005-05-03 Richard Henderson <rth@redhat.com>
1217 Initial implementation and checkin.