1 2007-04-04 Jakub Jelinek <jakub@redhat.com>
3 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
5 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
6 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
7 (parse_affinity): New function.
8 (initialize_env): Call it and gomp_init_affinity.
9 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
10 create new pthread_attr_t and call gomp_init_thread_affinity
11 on it for each thread before passing the attribute to pthread_create.
12 * config/linux/affinity.c: New file.
13 * config/posix/affinity.c: New file.
14 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
16 * config.h.in: Rebuilt.
17 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18 * Makefile.in: Rebuilt.
20 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
22 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
24 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
27 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
29 * testsuite/config/default.exp: New file.
30 * testsuite/lib/libgomp.exp: New file.
31 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
32 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
33 load_lib *, load_gcc_lib *): Move to libgomp.exp.
34 (libgomp_load): Remove.
35 * testsuite/lib/libgomp.exp (libgomp_init): Compute
36 always_ld_library_path, not ld_library_path. Set additional_flags
37 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
38 (target_compile): Do not call libgomp_init. Append lang_library_path
39 and lang_link_flags to options.
40 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
41 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
43 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
44 always_ld_library_path. Set LD_LIBRARY_PATH here.
45 * testsuite/libgomp.fortran/fortran.exp: Ditto.
46 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
47 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
49 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
50 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
51 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
52 * testsuite/libgomp.c/pr29947-1.c: Ditto.
53 * testsuite/libgomp.c/atomic-10.c: Ditto.
55 2007-03-21 Jakub Jelinek <jakub@redhat.com>
57 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
58 dg-final cleanup-modules line.
59 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
60 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
61 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
62 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
63 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
64 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
65 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
67 2007-03-18 Andreas Schwab <schwab@suse.de>
69 * acinclude.m4: Adjust regular expression for ld version
71 * configure: Regenerate.
73 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
75 * Makefile.am: Add install-pdf target as copied from
77 * Makefile.in: Regenerate
79 2007-02-07 Jakub Jelinek <jakub@redhat.com>
82 * configure: Regenerate.
85 * testsuite/libgomp.c++/pr30703.C: New test.
87 2007-02-02 Jakub Jelinek <jakub@redhat.com>
90 2006-07-05 Eric Christopher <echristo@apple.com>
91 * configure.ac: Depend addition of -pthread on host OS.
92 * configure: Regenerate.
94 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96 * libgomp.texi: Fix spacing after abbreviations.
98 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
101 * configure.ac: Add check for makeinfo
102 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
103 if an appropiate version of makeinfo is found.
104 * aclocal.m4: Regenerated.
105 * configure: Regenerated.
106 * Makefile.in: Regenerated.
107 * testsuite/Makefile.in: Regenerated.
109 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
112 * libgomp.texi: More about implementation-dependent settings.
114 2007-01-26 Tobias Burnus <burnus@net-b.de>
116 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
118 2007-01-24 Jakub Jelinek <jakub@redhat.com>
121 * testsuite/libgomp.c/pr30494.c: New test.
123 2007-01-15 Tom Tromey <tromey@redhat.com>
125 * configure: Rebuilt.
126 * configure.ac: Fixed comment.
128 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
130 * libgomp.texi: Document implementation specific default values of
131 environment variables.
133 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
136 * libgomp.texi: New file.
137 * configure.ac: Add --enable-generated-files-in-srcdir option.
138 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
140 * Makefile.in: Regenerated.
141 * config.h.in: Regenerated.
142 * testsuite/Makefile.in: Regenerated.
145 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
148 * env.c (omp_set_num_threads): Set illegal thread count to 1.
150 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
152 * configure: Regenerate.
154 2006-12-04 Jakub Jelinek <jakub@redhat.com>
157 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
158 start if there shouldn't be any loop iterations.
159 (gomp_loop_ordered_static_start): Remove start == end test.
160 * testsuite/libgomp.c/pr29947-1.c: New test.
161 * testsuite/libgomp.c/pr29947-2.c: New test.
163 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
165 * configure.tgt: Force initial-exec TLS model on Linux only.
167 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
169 * configure: Regenerated.
171 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
173 * env.c (parse_schedule): Reject out of range values.
174 (parse_unsigned_long): Reject out of range, negative or zero values.
176 2006-10-29 Jakub Jelinek <jakub@redhat.com>
179 * testsuite/libgomp.fortran/pr29629.f90: New test.
181 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
184 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
185 * config/posix95: New directory.
186 * config/posix95/omp-lock.h: New file.
187 * config/posix95/lock.c: Likewise.
189 2006-10-14 Geoffrey Keating <geoffk@apple.com>
191 * aclocal.m4: Regenerate.
192 * configure: Regenerate.
194 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
196 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
199 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
201 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
203 * configure: Regenerate.
204 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
206 2006-09-26 Jakub Jelinek <jakub@redhat.com>
210 * testsuite/libgomp.c/nestedfn-4.c: New test.
211 * testsuite/libgomp.c/nestedfn-5.c: New test.
212 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
215 * testsuite/libgomp.fortran/condinc1.f: New test.
216 * testsuite/libgomp.fortran/condinc2.f: New test.
217 * testsuite/libgomp.fortran/condinc3.f90: New test.
218 * testsuite/libgomp.fortran/condinc4.f90: New test.
219 * testsuite/libgomp.fortran/condinc1.inc: New file.
221 2006-09-18 Tom Tromey <tromey@redhat.com>
223 * configure: Rebuilt.
225 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
228 PR preprocessor/14634
229 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
231 * configure: Regenerate.
233 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
235 * testsuite/libgomp.fortran/reduction3.f90: Change
236 -2147483648 to -huge(i)-1 to avoid overflow.
237 * testsuite/libgomp.fortran/reduction4.f90: Change
238 Z'ffffffff' to not(0) to avoid overflow.
240 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
243 * Makefile.am (libsubincludedir): New.
244 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
245 * Makefile.in: Regenerate.
247 2006-08-17 Jakub Jelinek <jakub@redhat.com>
250 * env.c: Include ctype.h.
251 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
252 leading and/or trailing whitespace and compare strings case
255 2006-07-16 Jakub Jelinek <jakub@redhat.com>
258 * testsuite/libgomp.fortran/pr28390.f: New test.
260 2006-07-05 Eric Christopher <echristo@apple.com>
262 * configure.ac: Depend addition of -pthread on host OS.
263 * configure: Regenerate.
265 2006-06-21 Jakub Jelinek <jakub@redhat.com>
267 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
268 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
271 2006-06-20 Jakub Jelinek <jakub@redhat.com>
275 * configure.ac: If neither --enable-linux-futex nor
276 --disable-linux-futex is passed, determine the default by checking
277 for compiling and/or running against NPTL. With --enable-linux-futex,
278 check if SYS_gettid and SYS_futex are defined.
279 * configure: Rebuilt.
281 2006-06-14 Richard Henderson <rth@redhat.com>
284 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
285 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
287 2006-06-09 Richard Henderson <rth@redhat.com>
289 * env.c (gomp_nthreads_var): Change to unsigned long.
290 (gomp_run_sched_chunk): Likewise.
291 (parse_unsigned_long): Rename from parse_num_threads and generalize.
292 (initialize_env): Initialize gomp_thread_attr.
293 * libgomp.h (gomp_nthreads_var): Update decl.
294 (gomp_run_sched_chunk): Likewise.
295 (gomp_thread_attr): Declare.
296 * team.c (gomp_thread_attr): Export.
297 (initialize_team): Don't initialize it.
299 2006-06-09 Jakub Jelinek <jakub@redhat.com>
302 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
303 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
305 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
307 * config/mingw32/time.c: New file.
308 * configure.tgt: Use it.
310 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
312 * Makefile.am: Add install-html target. Add install-html to .PHONY
313 * Makefile.in: Regenerate.
315 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
318 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
319 * testsuite/libgomp.c/critical-1.c: Likewise.
320 * testsuite/libgomp.c/loop-1.c: Likewise.
321 * testsuite/libgomp.c/loop-2.c: Likewise.
322 * testsuite/libgomp.c/single-1.c: Likewise.
323 * testsuite/libgomp.c/ordered-1.c: Likewise.
324 * testsuite/libgomp.c/ordered-2.c: Likewise.
326 2006-05-15 Jakub Jelinek <jakub@redhat.com>
329 * libgomp.fortran/pr27416-1.f90: New test.
331 2006-05-03 Jakub Jelinek <jakub@redhat.com>
334 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
335 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
337 2006-05-02 Jakub Jelinek <jakub@redhat.com>
340 * testsuite/libgomp.c/pr26943-1.c: New test.
341 * testsuite/libgomp.c/pr26943-2.c: New test.
342 * testsuite/libgomp.c/pr26943-3.c: New test.
343 * testsuite/libgomp.c/pr26943-4.c: New test.
344 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
345 * testsuite/libgomp.c++/pr26943.C: New test.
347 2006-05-02 Jakub Jelinek <jakub@redhat.com>
350 * testsuite/libgomp.c++/pr27337.C: New test.
352 2006-04-26 Jakub Jelinek <jakub@redhat.com>
355 * testsuite/libgomp.c/pr26171.c: New test.
357 2006-04-25 Richard Henderson <rth@redhat.com>
360 * configure.ac: Use GCC_CHECK_TLS.
361 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
362 * Makefile.in, aclocal.m4, configure: Regenerate.
364 2006-04-10 Matthias Klose <doko@debian.org>
366 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
367 directory names containing underscores.
369 2006-03-21 Jakub Jelinek <jakub@redhat.com>
372 * testsuite/libgomp.c++/pr26691.C: New test.
374 2006-03-13 Jakub Jelinek <jakub@redhat.com>
376 * testsuite/libgomp.fortran/retval2.f90: New test.
378 2006-03-09 Diego Novillo <dnovillo@redhat.com>
380 * testsuite/libgomp.c++: New directory.
382 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
384 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
385 * config/posix/sem.c: Implement the above.
387 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
389 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
390 define HAVE_BROKEN_POSIX_SEMAPHORES.
391 * configure: Rebuilt.
392 * config.h.in: Rebuilt.
394 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
397 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
398 for the other pthread check.
399 * configure: Regenerate.
400 * config.h.in: Regenerate.
402 2006-02-15 Jakub Jelinek <jakub@redhat.com>
406 * Makefile.am (fincludedir): New variable.
407 (nodist_include_HEADERS): Remove Fortran files.
408 (nodist_finclude_HEADERS): New variable.
409 * Makefile.in: Regenerated.
411 2006-02-13 Jakub Jelinek <jakub@redhat.com>
413 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
414 Remove tests for returning assumed character length arrays.
416 2006-02-12 Roger Sayle <roger@eyesopen.com>
417 John David Anglin <dave@hiauly1.hia.nrc.ca>
420 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
422 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
424 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
426 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
428 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
429 part of LD_LIBRARY_PATH manually.
431 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
434 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
437 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
440 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
441 * configure.ac (PERL): Don't set.
442 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
443 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
444 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
445 * omp.h.in: Wrap the new configure substitutions with @ characters.
446 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
447 * aclocal.m4, configure, Makefile.in: Regenerate.
448 * mkomp_h.pl: Delete.
450 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
453 * configure.ac: Use GCC_HEADER_STDINT.
454 * libgomp.h: Include gstdint.h.
455 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
456 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
458 2006-01-24 Richard Henderson <rth@redhat.com>
461 * configure.ac: Add AM_MAINTAINER_MODE.
462 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
464 2006-01-24 Diego Novillo <dnovillo@redhat.com>
466 * Makefile.in: Regenerate.
467 * testsuite/Makefile.in: Regenerate.
468 * aclocal.m4: Regenerate.
470 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
472 * config/posix/proc.c: Conditional include of sys/loadavg.h for
474 * configure.ac: Add check for loadavg.h.
475 (link_gomp): Adjust comment.
476 * configure: Regenerate.
477 * config.h.in: Regenerate.
479 2006-01-21 Steve Ellcey <sje@cup.hp.com>
482 * configure.ac: Remove check for alloca.h.
483 * configure: Regenerate.
484 * config.h.in: Regenerate.
485 * libgomp.h: define gomp_alloca to be __builtin_alloca.
486 * team.c: Remove use of alloca.h.
487 Call gomp_alloca instead of alloca.
489 2006-01-20 Steve Ellcey <sje@cup.hp.com>
492 * team.c: Add include of alloca.h.
493 * configure.ac: Add check for alloca.h.
494 * configure: Regenerate.
495 * config.h.in: Regenerate.
497 2006-01-17 Jakub Jelinek <jakub@redhat.com>
500 * testsuite/libgomp.fortran/pr25219.f90: New test.
502 2005-12-05 Uros Bizjak <uros@kss-loka.si>
504 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
505 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
506 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
507 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
508 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
509 testsuite/libgomp.fortran/threadprivate1.f90,
510 testsuite/libgomp.fortran/threadprivate2.f90,
511 testsuite/libgomp.fortran/threadprivate3.f90,
512 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
513 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
514 testsuite/libgomp.fortran/omp_parse3.f90: Change required
515 effective-target to TLS runtime.
517 * testsuite/libgomp.fortran/pr25162.f: Require
518 effective-target TLS runtime.
520 2005-12-01 Jakub Jelinek <jakub@redhat.com>
522 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
523 * testsuite/libgomp.c/nestedfn-3.c: New test.
525 2005-11-30 Jakub Jelinek <jakub@redhat.com>
528 * testsuite/libgomp.fortran/pr25162.f: New test.
530 2005-11-28 Jakub Jelinek <jakub@redhat.com>
532 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
533 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
535 2005-11-25 Jakub Jelinek <jakub@redhat.com>
537 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
538 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
539 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
540 single.c, team.c, work.c, config/linux/alpha/futex.h,
541 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
542 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
543 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
544 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
545 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
546 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
547 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
550 2005-11-18 Jakub Jelinek <jakub@redhat.com>
552 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
553 to nodist_noinst_HEADERS.
554 * Makefile.in: Rebuilt.
556 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
557 add integer count field.
558 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
559 omp_nest_lock_t type change.
560 (omp_init_nest_lock): Likewise. Initialize count to 0.
561 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
563 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
565 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
566 Increment count if successful and return the new nesting level.
567 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
568 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
569 * testsuite/libgomp.c/lib-1.c: New test.
570 * testsuite/libgomp.fortran/lib1.f90: New test.
571 * testsuite/libgomp.fortran/lib2.f: New test.
572 * testsuite/libgomp.fortran/lib3.f: New test.
574 2005-11-17 Richard Henderson <rth@redhat.com>
577 * Makefile.am (nodist_toolexeclib_HEADERS): New.
578 * configure.ac (link_gomp): New. Substitute it.
579 (AC_CONFIG_FILES): Add libgomp.spec.
580 * libgomp.spec.in: New file.
581 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
582 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
584 2005-11-18 Jakub Jelinek <jakub@redhat.com>
586 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
587 reduction(-:var) behaving the same as reduction(+:var).
588 * testsuite/libgomp.c/reduction-4.c: New test.
590 2005-11-15 Uros Bizjak <uros@kss-loka.si>
592 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
593 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
594 testsuite/libgomp.c/copyin-3.c,
595 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
596 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
597 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
598 testsuite/libgomp.c++/pr24455.C,
599 testsuite/libgomp.fortran/threadprivate1.f90,
600 testsuite/libgomp.fortran/threadprivate2.f90,
601 testsuite/libgomp.fortran/threadprivate3.f90,
602 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
603 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
604 testsuite/libgomp.fortran/omp_parse3.f90: Require
605 effective-target TLS.
607 2005-11-14 Diego Novillo <dnovillo@redhat.com>
611 2005-11-13 Jakub Jelinek <jakub@redhat.com>
614 * team.c (initialize_team): Pass NULL rather than free as
615 pthread_key_create destructor. Initialize thread specific data
616 pointer in initial thread to a static local variable rather than
619 2005-11-11 Uros Bizjak <uros@kss-loka.si>
621 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
622 its location to ld_library_path.
624 2005-11-10 Diego Novillo <dnovillo@redhat.com>
626 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
628 2005-11-10 Diego Novillo <dnovillo@redhat.com>
630 * testsuite/libgomp.c: Rename from libgomp.dg.
632 2005-11-09 Diego Novillo <dnovillo@redhat.com>
634 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
635 threadprivate variable 'i'.
637 2005-11-09 Jakub Jelinek <jakub@redhat.com>
639 * config/linux/s390/futex.h: New file.
640 * configure.tgt: Use it.
642 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
645 2005-11-08 Jakub Jelinek <jakub@redhat.com>
648 * testsuite/libgomp.c++/master-1.C: New test.
650 2005-11-07 Jakub Jelinek <jakub@redhat.com>
652 * testsuite/libgomp.dg/copyin-3.c: New test.
654 2005-11-07 Jakub Jelinek <jakub@redhat.com>
656 * testsuite/libgomp.fortran/retval1.f90: New test.
657 * testsuite/libgomp.fortran/vla7.f90: New test.
659 2005-11-06 Jakub Jelinek <jakub@redhat.com>
661 * testsuite/libgomp.fortran/vla2.f90: New test.
662 * testsuite/libgomp.fortran/vla3.f90: New test.
663 * testsuite/libgomp.fortran/vla4.f90: New test.
664 * testsuite/libgomp.fortran/vla5.f90: New test.
665 * testsuite/libgomp.fortran/vla6.f90: New test.
667 2005-11-01 Jakub Jelinek <jakub@redhat.com>
669 * config/linux/sparc/futex.h: New file.
670 * configure.tgt: Use it.
671 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
673 * critical.c: Include stdlib.h.
674 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
675 ignoring return value.
676 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
677 LIBGOMP_CHECK_SYNC_BUILTINS check.
678 * configure: Rebuilt.
680 2005-10-31 Jakub Jelinek <jakub@redhat.com>
682 * testsuite/libgomp.fortran/vla1.f90: New test.
684 2005-10-31 Richard Henderson <rth@redhat.com>
686 * testsuite/libgomp.fortran/character2.f90: Fix race condition
687 setting 's' in different threads.
689 2005-10-31 Jakub Jelinek <jakub@redhat.com>
691 * libgomp.h (attribute_hidden, ialias): Define.
692 * config/posix/proc.c (omp_get_num_procs): Add ialias.
693 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
694 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
695 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
696 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
697 omp_test_lock, omp_test_nest_lock): Likewise.
698 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
699 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
700 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
701 omp_test_lock, omp_test_nest_lock): Likewise.
702 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
703 omp_get_dynamic, omp_get_nested): Likewise.
704 * parallel.c (omp_get_num_threads, omp_get_max_threads,
705 omp_get_thread_num, omp_in_parallel): Likewise.
706 * fortran.c (ialias_redirect): Define.
707 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
708 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
709 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
710 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
711 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
712 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
713 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
714 omp_get_wtime): Add ialias_redirect.
716 2005-10-30 Jakub Jelinek <jakub@redhat.com>
718 * fortran.c: Include stdlib.h.
720 2005-10-29 Jakub Jelinek <jakub@redhat.com>
722 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
723 * Makefile.in: Regenerated.
725 2005-10-28 Jakub Jelinek <jakub@redhat.com>
727 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
728 * libgomp_f.h.in (omp_check_defines): New function.
729 * env.c: Include libgomp_f.h.
730 (initialize_env): Call omp_check_defines.
732 * testsuite/libgomp.dg/copyin-2.c: New test.
733 * testsuite/libgomp.c++/copyin-2.C: New test.
734 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
736 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
737 * testsuite/libgomp.fortran/sharing2.f90: New test.
739 * testsuite/libgomp.dg/copyin-1.c: New test.
740 * testsuite/libgomp.c++/copyin-1.C: New test.
742 2005-10-26 Jakub Jelinek <jakub@redhat.com>
744 * testsuite/libgomp.fortran/crayptr1.f90: New test.
746 * testsuite/libgomp.fortran/workshare1.f90: New test.
748 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
750 * libgomp.fortran/sharing1.f90: New test.
752 2005-10-24 Jakub Jelinek <jakub@redhat.com>
755 * testsuite/libgomp.c++/loop-7.C: New test.
757 * testsuite/libgomp.dg/nestedfn-2.c: New test.
759 * testsuite/libgomp.dg/nestedfn-1.c: New test.
760 * testsuite/libgomp.fortran/reduction6.f90: New test.
761 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
763 2005-10-23 Richard Henderson <rth@redhat.com>
765 * testsuite/libgomp.c++/ctor-1.C: New.
766 * testsuite/libgomp.c++/ctor-2.C: New.
767 * testsuite/libgomp.c++/ctor-3.C: New.
768 * testsuite/libgomp.c++/ctor-4.C: New.
769 * testsuite/libgomp.c++/ctor-5.C: New.
770 * testsuite/libgomp.c++/ctor-6.C: New.
771 * testsuite/libgomp.c++/ctor-7.C: New.
772 * testsuite/libgomp.c++/ctor-8.C: New.
773 * testsuite/libgomp.c++/ctor-9.C: New.
775 2005-10-21 Diego Novillo <dnovillo@redhat.com>
778 * testsuite/libgomp.c++/pr24455-1.C: New test.
779 * testsuite/libgomp.c++/pr24455.C: New test.
780 * testsuite/libgomp.dg/pr24455-1.c: New test.
781 * testsuite/libgomp.dg/pr24455.c: New test.
783 2005-10-20 Richard Henderson <rth@redhat.com>
785 * testsuite/libgomp.c++/loop-6.C: New.
786 * testsuite/libgomp.dg/loop-3.c: New.
788 2005-10-20 Jakub Jelinek <jakub@redhat.com>
790 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
792 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
795 2005-10-19 Diego Novillo <dnovillo@redhat.com>
797 * testsuite/libgomp.fortran/jacobi.f: New test.
799 2005-10-19 Richard Henderson <rth@redhat.com>
801 * configure.tgt (i?86-linux): Default to with_arch instead of
802 CFLAGS. Add -mtune to match target_cpu.
803 (x86_64-linux): Tune to i686.
805 * fortran.c (omp_test_nest_lock_): Fix typo.
807 2005-10-19 Jakub Jelinek <jakub@redhat.com>
809 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
810 gomp_ordered_sync): Do nothing if team->nthreads == 1.
811 * testsuite/libgomp.dg/ordered-3.c: New test.
813 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
814 Remove volatile keyword.
816 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
817 in COMMON block to avoid warnings on 64-bit targets.
819 2005-10-18 Diego Novillo <dnovillo@redhat.com>
821 * testsuite/libgomp.dg/shared-3.c: New test.
823 2005-10-18 Jakub Jelinek <jakub@redhat.com>
825 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
826 * testsuite/libgomp.fortran/reduction5.f90: New test.
828 2005-10-18 Jakub Jelinek <jakub@redhat.com>
830 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
832 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
833 flush loop now that __sync_synchronize has proper memory barrier.
834 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
835 Add -ffixed-form to dg-options.
837 2005-10-17 Diego Novillo <dnovillo@redhat.com>
839 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
841 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
842 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
843 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
844 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
845 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
846 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
847 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
848 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
849 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
850 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
851 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
852 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
853 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
854 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
855 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
856 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
857 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
858 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
859 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
860 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
861 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
862 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
863 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
864 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
865 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
867 2005-10-17 Jakub Jelinek <jakub@redhat.com>
869 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
870 lang_library_path exists. Use find instead of glob to gather tests.
871 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
873 2005-10-17 Diego Novillo <dnovillo@redhat.com>
875 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
876 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
877 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
878 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
879 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
880 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
881 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
882 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
883 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
884 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
885 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
886 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
887 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
889 2005-10-15 Jakub Jelinek <jakub@redhat.com>
891 * testsuite/libgomp.dg/vla-1.c: New test.
893 * testsuite/libgomp.fortran/reference2.f90: New test.
895 * testsuite/libgomp.fortran/character2.f90: Remove explicit
896 declaration of omp_get_thread_num.
897 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
900 * testsuite/libgomp.fortran/reduction1.f90: New test.
901 * testsuite/libgomp.fortran/reduction2.f90: New test.
902 * testsuite/libgomp.fortran/reduction3.f90: New test.
903 * testsuite/libgomp.fortran/reduction4.f90: New test.
905 2005-10-13 Richard Henderson <rth@redhat.com>
907 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
908 * Makefile.in: Regenerate.
909 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
910 * libgomp.h: Include bar.h.
911 (struct gomp_barrier): Remove.
912 (struct gomp_team): Add barrier. Replace master_barrier with
913 master_release. Replace threads with ordered_release.
914 (struct gomp_thread): Replace barrier with release.
915 * ordered.c (gomp_ordered_first): Update for ordered_release change.
916 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
917 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
918 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
919 (GOMP_single_copy_end): Likewise.
920 * team.c (gomp_threads_dock): New.
921 (gomp_barrier_init, gomp_barrier_destroy): Remove.
922 (gomp_thread_start): Use gomp_barrier_wait.
923 (new_team, free_team): Update for gomp_team changes.
924 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
925 (gomp_team_end): Use gomp_barrier_wait.
926 (initialize_team): Update for gomp_thread changes.
927 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
928 (gomp_work_share_end_nowait): Use atomic ops when available.
929 * config/linux/bar.c, config/linux/bar.h: New files.
930 * config/posix/bar.c, config/posix/bar.h: New files.
932 2005-10-13 Jakub Jelinek <jakub@redhat.com>
934 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
935 * testsuite/libgomp.dg/single-2.c: New test.
937 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
938 lang_link_flags): Unset, so that they aren't inherited from previously
941 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
943 2005-10-12 Richard Henderson <rth@redhat.com>
945 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
946 (libgomp_init): Use lang_test_file, lang_library_path, and
947 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
949 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
950 (lang_test_file, lang_link_flags): New.
951 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
953 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
954 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
955 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
956 testsuite/libgomp.c++/parallel-1.C,
957 testsuite/libgomp.c++/reduction-1.C,
958 testsuite/libgomp.c++/reduction-2.C,
959 testsuite/libgomp.c++/reduction-3.C,
960 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
961 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
962 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
963 New files, largely cribbed from the C testsuite.
965 2005-10-12 Jakub Jelinek <jakub@redhat.com>
967 * testsuite/libgomp.fortran/character1.f90: New test.
968 * testsuite/libgomp.fortran/character2.f90: New test.
970 * testsuite/libgomp.dg/nested-1.c: New test.
971 * testsuite/libgomp.dg/nested-2.c: New test.
972 * testsuite/libgomp.fortran/do1.f90: New test.
973 * testsuite/libgomp.fortran/do2.f90: New test.
975 * testsuite/libgomp.fortran/reference1.f90: New test.
977 2005-10-11 Jakub Jelinek <jakub@redhat.com>
979 * testsuite/libgomp.dg/reduction-1.c: New test.
980 * testsuite/libgomp.dg/reduction-2.c: New test.
981 * testsuite/libgomp.dg/reduction-3.c: New test.
983 2005-10-10 Jakub Jelinek <jakub@redhat.com>
985 * testsuite/libgomp.dg/atomic-1.c: New test.
986 * testsuite/libgomp.dg/atomic-2.c: New test.
988 2005-10-09 Richard Henderson <rth@redhat.com>
990 * critical.c (atomic_lock): New.
991 (initialize_critical): Initialize it.
992 (GOMP_atomic_start, GOMP_atomic_end): New.
993 * libgomp.map: Export them.
994 * libgomp_g.h: Declare them.
996 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
998 2005-10-02 Richard Henderson <rth@redhat.com>
1000 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1001 to XCFLAGS instead of CFLAGS.
1003 2005-09-30 Richard Henderson <rth@redhat.com>
1005 * configure.ac: Determine whether -pthread or -lpthread is needed.
1006 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1007 * Makefine.in, configure: Rebuild.
1009 2005-09-28 Richard Henderson <rth@redhat.com>
1011 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1012 * testsuite/libgomp.dg/omp-single-3.c: New test.
1014 2005-09-28 Diego Novillo <dnovillo@redhat.com>
1016 * testsuite/libgomp.dg/omp-single-2.c: New test.
1017 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1019 2005-09-27 Richard Henderson <rth@redhat.com>
1021 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1022 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1024 2005-09-27 Jakub Jelinek <jakub@redhat.com>
1026 * testsuite/libgomp.dg/omp-loop03.c: New test.
1028 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1030 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1032 2005-09-27 Diego Novillo <dnovillo@redhat.com>
1034 * testsuite/libgomp.dg/omp-single-1.c: New test.
1035 * testsuite/libgomp.dg/shared-1.c: Return 0.
1036 Add prototype for abort.
1037 * testsuite/libgomp.dg/shared-2.c: Likewise.
1039 2005-09-26 Jakub Jelinek <jakub@redhat.com>
1041 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1044 2005-09-26 Diego Novillo <dnovillo@redhat.com>
1046 * testsuite/libgomp.dg/shared-1.c: New test.
1047 * testsuite/libgomp.dg/shared-2.c: New test.
1049 2005-09-24 Richard Henderson <rth@redhat.com>
1051 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1053 2005-09-24 Richard Henderson <rth@redhat.com>
1055 * iter.c (gomp_iter_static_next): Round up when computing number
1056 of iterations. Don't bother distributing a remainder equally.
1058 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1059 Don't call srand. Zero b before testing.
1062 2005-09-24 Jakub Jelinek <jakub@redhat.com>
1064 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1065 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1067 2005-09-23 Jakub Jelinek <jakub@redhat.com>
1069 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1070 without !$omp end do, followed immediately by subroutine end.
1072 2005-09-23 Diego Novillo <dnovillo@redhat.com>
1074 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1076 2005-09-22 Richard Henderson <rth@redhat.com>
1078 * critical.c (GOMP_critical_name_start): Change argument to void**.
1079 Reuse the pointer space if the mutex fits.
1080 (GOMP_critical_name_end): Likewise.
1081 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1082 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1083 (GOMP_critical_name_end): Likewise.
1084 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1085 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1087 2005-09-20 Richard Henderson <rth@redhat.com>
1089 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1090 (create_lock_lock): New.
1091 (initialize_critical): Initialize it.
1092 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1093 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1095 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1097 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1099 2005-09-20 Diego Novillo <dnovillo@redhat.com>
1101 * testsuite/libgomp.dg/omp-loop01.c: New test.
1102 * testsuite/libgomp.dg/omp-loop02.c: New test.
1104 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1106 * configure.ac (AC_PROG_FC): Add.
1107 (USE_FORTRAN): New automake conditional.
1108 * configure: Rebuilt.
1109 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1110 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1111 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1112 Add rules to build them.
1113 * Makefile.in: Rebuilt.
1114 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1116 * libgomp.map: Add Fortran wrappers.
1117 * libgomp_f.h.in: New file.
1118 * omp_lib.h.in: New file.
1119 * omp_lib.f90.in: New file.
1120 * fortran.c: New file.
1121 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1122 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1123 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1124 libgfortran has been built.
1125 * testsuite/libgomp.fortran/fortran.exp: New file.
1126 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1127 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1128 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1129 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1130 * testsuite/libgomp.fortran/omp_hello.f: New test.
1131 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1132 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1133 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1134 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1135 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1136 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1137 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1138 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1140 2005-08-30 Richard Henderson <rth@redhat.com>
1142 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1143 function for when aliases are not usable.
1144 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1145 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1146 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1147 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1148 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1149 GOMP_loop_ordered_guided_next): Likewise.
1150 * ordered.c (GOMP_ordered_start): Likewise.
1152 2005-08-01 Diego Novillo <dnovillo@redhat.com>
1154 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1155 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1156 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1157 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1158 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1159 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1160 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1161 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1162 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1164 2005-07-07 Eric Christopher <echristo@redhat.com>
1165 Diego Novillo <dnovillo@redhat.com>
1167 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1168 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1170 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1171 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1172 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1173 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1174 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1175 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1176 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1178 2005-06-13 Diego Novillo <dnovillo@redhat.com>
1180 * TOPLEVEL.patch: Remove.
1182 2005-05-16 Richard Henderson <rth@redhat.com>
1184 * configure.ac: Test for clock_gettime.
1185 * config.h.in, configure: Rebuild.
1186 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1187 (omp_get_wtime): Use clock_gettime if available.
1188 (omp_get_wtick): Use clock_getres if available.
1190 2005-05-11 Richard Henderson <rth@redhat.com>
1192 * config/linux/ia64/futex.h: New file.
1193 * configure.tgt: Use it.
1195 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1197 2005-05-07 Richard Henderson <rth@redhat.com>
1199 * config/linux/powerpc/futex.h: New file.
1200 * configure.tgt: Use it.
1202 * config/linux/i486/futex.h: Merge ...
1203 * config/linux/x86_64/futex.h: ... into ...
1204 * config/linux/x86/futex.h: ... here.
1205 * configure.tgt: Update to match.
1207 2005-05-06 Richard Henderson <rth@redhat.com>
1209 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1210 * config/linux/i486/futex.h: Likewise.
1211 * config/linux/x86_64/futex.h: Likewise.
1213 * config/linux/lock.c: New file.
1214 * config/linux/omp-lock.h: New file.
1216 * critical.c, env.h: Don't include omp.h
1217 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1218 * config/posix/time.c: Likewise.
1219 * config/posix/omp-lock.h: New file.
1220 * libgomp.h: Include omp-lock.h and omp.h.
1221 * Makefile.am (nodist_include_HEADERS): New.
1223 * configure.ac (PERL): New.
1224 * mkomp_h.pl: New file.
1225 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1227 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1229 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1230 build directory. Re-add -march=i486 hack.
1232 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1233 (libgomp_link_flags): Remove.
1234 (libgomp_initialized): Remove.
1235 (libgomp_init): Don't protect from reinitialization. Copy code
1236 from libstdc++ for getting the multilib set correctly.
1238 2005-05-05 Richard Henderson <rth@redhat.com>
1240 * config/linux/alpha/futex.h: New file.
1241 * configure.tgt (alpha*-*-linux*): Use it.
1243 * config/posix/mutex.c: New file.
1244 * config/posix/sem.c: Use libgomp.h.
1246 * configure.tgt (x86_64-linux): Also test CC for -m32.
1247 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1249 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
1252 * Makefile.am (SUBDIRS): New.
1253 (libgomp_la_LDFLAGS): Add -lpthread.
1254 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1255 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1257 * libgomp_g.h: New file.
1258 * libgomp.h: Split out all public declarations to libgomp_g.h.
1259 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1260 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1261 * config/linux/sem.h: Likewise.
1262 * config/posix/sem.h: Likewise.
1264 * Makefile.am (AM_LDFLAGS): New.
1265 (libgomp_version_script): Split out from ...
1266 (libgomp_la_LDFLAGS): ... here.
1267 (libgomp_version_info): New.
1268 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1269 (LIBGOMP_ENABLE): New.
1270 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1271 (LIBGOMP_ENABLE_SYMVERS): New.
1272 * configure.ac (AC_INIT): Version 1.0.
1273 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1274 (enable-linux-futex): Likewise. Rename from enable-futex.
1275 (libtool_VERSION): New.
1276 (LIBGOMP_ENABLE_SYMVERS): Use it.
1277 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1278 * Makefile.in, aclocal.m4, configure: Rebuild.
1280 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1281 (gomp_mutex_unlock_slow): Fix typo.
1282 * config/linux/sem.c: Similarly.
1283 (gomp_sem_post_slow): Fix typo.
1284 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1285 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1286 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1288 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1289 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1290 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1291 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1292 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1293 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1294 LDFLAGS. Pull enable_futex check to top-level.
1295 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1296 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1298 First attempt at real configury.
1299 * Makefile, config.h: Remove file.
1300 * Makefile.am, Makefile.in: New file.
1301 * acinclude.m4 aclocal.m4: New file.
1302 * configure.ac, configure.tgt, configure: New file.
1304 * config/posix/lock.c: Rename from sys-lock.c.
1305 * config/posix/mutex.h: Rename from sys-mutex.h.
1306 * config/posix/sem.c: Rename from sys-sem.c.
1307 * config/posix/sem.h: Rename from sys-sem.h.
1308 * config/posix/proc.c: Rename from sys-proc.c.
1309 * config/posix/time.c: Rename from sys-proc.c.
1311 * config/linux/mutex.c: New file.
1312 * config/linux/mutex.h: New file.
1313 * config/linux/sem.c: New file.
1314 * config/linux/sem.h: New file.
1315 * config/linux/i486/futex.h: New file.
1316 * config/linux/x86_64/futex.h: New file.
1318 2005-05-04 Richard Henderson <rth@redhat.com>
1320 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1321 * libgomp.h: Declare them.
1322 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1323 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1325 2005-05-04 Richard Henderson <rth@redhat.com>
1327 * libgomp-1 code drop
1329 2005-05-04 Richard Henderson <rth@redhat.com>
1331 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1332 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1333 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1334 (gomp_iter_static_next): Update.
1335 (gomp_ordered_static_next): Update.
1336 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1337 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1338 totally empty range.
1339 (gomp_loop_ordered_static_next): Refine test for calling
1340 gomp_ordered_static_next.
1341 * testsuite/ordered-1.c: Add case for more threads than iterations.
1343 * iter.c (gomp_iter_runtime_next_locked): Remove.
1344 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
1345 gomp_loop_guided_start, gomp_loop_ordered_static_start,
1346 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1347 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1348 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1349 gomp_loop_ordered_guided_next): Downcase name, make static, add
1350 an external alias with the old name.
1351 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1352 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1353 switch and call one of the above static functions.
1354 * libgomp.h: Update.
1356 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1357 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1358 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1359 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1360 GOMP_loop_ordered_guided_start): Update to match.
1361 * sections.c (GOMP_sections_start): Likewise.
1362 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1364 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1365 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1366 Use bounds check instead of modulus.
1367 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1368 (gomp_ordered_last): Don't sync with ordered_owner here.
1369 (gomp_ordered_next): Likewise.
1370 (gomp_ordered_static_loop_next): Likewise.
1371 * loop.c, libgomp.h: Update to match.
1373 * libgomp.h (GOMP_barrier): Declare.
1375 * testsuite/barrier-1.c: New file.
1376 * testsuite/critical-1.c: New file.
1377 * testsuite/ordered-2.c: New file.
1378 * testsuite/ordered-1.c: New file.
1379 * testsuite/sections-1.c: New file.
1380 * testsuite/single-1.c: New file.
1381 * testsuite/Makefile (TESTS): Add them.
1383 2005-05-04 Richard Henderson <rth@redhat.com>
1385 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1386 * loop.c (GOMP_loop_static_start): If not the startup thread,
1387 acquire the mutex to wait for initialization complete.
1388 (GOMP_loop_ordered_static_start): Likewise.
1389 (GOMP_loop_ordered_runtime_start): Likewise.
1390 (GOMP_loop_ordered_static_first): Remove.
1391 (GOMP_loop_ordered_dynamic_first): Remove.
1392 (GOMP_loop_ordered_guided_first): Remove.
1393 (GOMP_loop_ordered_runtime_first): Remove.
1394 * ordered.c (gomp_ordered_loop_first): Post to own release when
1395 we're the first thread.
1396 (gomp_ordered_loop_last): Wait on release if not owner.
1397 (gomp_ordered_loop_next): Likewise.
1398 (gomp_ordered_static_loop_init): New.
1399 (gomp_ordered_static_loop_next): Use ordered_owner.
1400 (GOMP_ordered_start): Likewise.
1401 * work.c (gomp_new_work_share): Initialize ordered_owner.
1403 2005-05-03 Richard Henderson <rth@redhat.com>
1405 * Makefile (OPT): New.
1408 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1409 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1410 * libgomp.h, libgomp.map, NOTES: Update to match.
1412 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1413 Add initialized and thr members.
1414 (gomp_thread_start): Pause when initially spawned to wait for
1415 the whole team to be created.
1416 (gomp_team_start): Release team members at the end.
1418 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1419 (f_foo_1): Use GOMP_loop_end.
1420 (f_foo_2): Use GOMP_loop_end_nowait.
1422 * testsuite/loop-2.c: New file.
1423 * testsuite/Makefile (TESTS): Add it.
1425 2005-05-03 Richard Henderson <rth@redhat.com>
1427 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1428 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1429 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1432 * testsuite/Makefile: New file.
1433 * testsuite/loop-1.c: New file.
1435 2005-05-03 Richard Henderson <rth@redhat.com>
1437 Initial implementation and checkin.