1 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
3 * config/posix/proc.c: Conditional include of sys/loadavg.h for
5 * configure.ac: Add check for loadavg.h.
6 (link_gomp): Adjust comment.
7 * configure: Regenerate.
8 * config.h.in: Regenerate.
10 2006-01-21 Steve Ellcey <sje@cup.hp.com>
13 * configure.ac: Remove check for alloca.h.
14 * configure: Regenerate.
15 * config.h.in: Regenerate.
16 * libgomp.h: define gomp_alloca to be __builtin_alloca.
17 * team.c: Remove use of alloca.h.
18 Call gomp_alloca instead of alloca.
20 2006-01-20 Steve Ellcey <sje@cup.hp.com>
23 * team.c: Add include of alloca.h.
24 * configure.ac: Add check for alloca.h.
25 * configure: Regenerate.
26 * config.h.in: Regenerate.
28 2006-01-17 Jakub Jelinek <jakub@redhat.com>
31 * testsuite/libgomp.fortran/pr25219.f90: New test.
33 2005-12-05 Uros Bizjak <uros@kss-loka.si>
35 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
36 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
37 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
38 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
39 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
40 testsuite/libgomp.fortran/threadprivate1.f90,
41 testsuite/libgomp.fortran/threadprivate2.f90,
42 testsuite/libgomp.fortran/threadprivate3.f90,
43 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
44 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
45 testsuite/libgomp.fortran/omp_parse3.f90: Change required
46 effective-target to TLS runtime.
48 * testsuite/libgomp.fortran/pr25162.f: Require
49 effective-target TLS runtime.
51 2005-12-01 Jakub Jelinek <jakub@redhat.com>
53 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
54 * testsuite/libgomp.c/nestedfn-3.c: New test.
56 2005-11-30 Jakub Jelinek <jakub@redhat.com>
59 * testsuite/libgomp.fortran/pr25162.f: New test.
61 2005-11-28 Jakub Jelinek <jakub@redhat.com>
63 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
64 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
66 2005-11-25 Jakub Jelinek <jakub@redhat.com>
68 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
69 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
70 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
71 single.c, team.c, work.c, config/linux/alpha/futex.h,
72 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
73 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
74 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
75 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
76 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
77 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
78 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
81 2005-11-18 Jakub Jelinek <jakub@redhat.com>
83 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
84 to nodist_noinst_HEADERS.
85 * Makefile.in: Rebuilt.
87 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
88 add integer count field.
89 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
90 omp_nest_lock_t type change.
91 (omp_init_nest_lock): Likewise. Initialize count to 0.
92 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
94 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
96 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
97 Increment count if successful and return the new nesting level.
98 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
99 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
100 * testsuite/libgomp.c/lib-1.c: New test.
101 * testsuite/libgomp.fortran/lib1.f90: New test.
102 * testsuite/libgomp.fortran/lib2.f: New test.
103 * testsuite/libgomp.fortran/lib3.f: New test.
105 2005-11-17 Richard Henderson <rth@redhat.com>
108 * Makefile.am (nodist_toolexeclib_HEADERS): New.
109 * configure.ac (link_gomp): New. Substitute it.
110 (AC_CONFIG_FILES): Add libgomp.spec.
111 * libgomp.spec.in: New file.
112 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
113 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
115 2005-11-18 Jakub Jelinek <jakub@redhat.com>
117 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
118 reduction(-:var) behaving the same as reduction(+:var).
119 * testsuite/libgomp.c/reduction-4.c: New test.
121 2005-11-15 Uros Bizjak <uros@kss-loka.si>
123 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
124 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
125 testsuite/libgomp.c/copyin-3.c,
126 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
127 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
128 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
129 testsuite/libgomp.c++/pr24455.C,
130 testsuite/libgomp.fortran/threadprivate1.f90,
131 testsuite/libgomp.fortran/threadprivate2.f90,
132 testsuite/libgomp.fortran/threadprivate3.f90,
133 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
134 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
135 testsuite/libgomp.fortran/omp_parse3.f90: Require
136 effective-target TLS.
138 2005-11-14 Diego Novillo <dnovillo@redhat.com>
142 2005-11-13 Jakub Jelinek <jakub@redhat.com>
145 * team.c (initialize_team): Pass NULL rather than free as
146 pthread_key_create destructor. Initialize thread specific data
147 pointer in initial thread to a static local variable rather than
150 2005-11-11 Uros Bizjak <uros@kss-loka.si>
152 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
153 its location to ld_library_path.
155 2005-11-10 Diego Novillo <dnovillo@redhat.com>
157 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
159 2005-11-10 Diego Novillo <dnovillo@redhat.com>
161 * testsuite/libgomp.c: Rename from libgomp.dg.
163 2005-11-09 Diego Novillo <dnovillo@redhat.com>
165 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
166 threadprivate variable 'i'.
168 2005-11-09 Jakub Jelinek <jakub@redhat.com>
170 * config/linux/s390/futex.h: New file.
171 * configure.tgt: Use it.
173 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
176 2005-11-08 Jakub Jelinek <jakub@redhat.com>
179 * testsuite/libgomp.c++/master-1.C: New test.
181 2005-11-07 Jakub Jelinek <jakub@redhat.com>
183 * testsuite/libgomp.dg/copyin-3.c: New test.
185 2005-11-07 Jakub Jelinek <jakub@redhat.com>
187 * testsuite/libgomp.fortran/retval1.f90: New test.
188 * testsuite/libgomp.fortran/vla7.f90: New test.
190 2005-11-06 Jakub Jelinek <jakub@redhat.com>
192 * testsuite/libgomp.fortran/vla2.f90: New test.
193 * testsuite/libgomp.fortran/vla3.f90: New test.
194 * testsuite/libgomp.fortran/vla4.f90: New test.
195 * testsuite/libgomp.fortran/vla5.f90: New test.
196 * testsuite/libgomp.fortran/vla6.f90: New test.
198 2005-11-01 Jakub Jelinek <jakub@redhat.com>
200 * config/linux/sparc/futex.h: New file.
201 * configure.tgt: Use it.
202 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
204 * critical.c: Include stdlib.h.
205 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
206 ignoring return value.
207 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
208 LIBGOMP_CHECK_SYNC_BUILTINS check.
209 * configure: Rebuilt.
211 2005-10-31 Jakub Jelinek <jakub@redhat.com>
213 * testsuite/libgomp.fortran/vla1.f90: New test.
215 2005-10-31 Richard Henderson <rth@redhat.com>
217 * testsuite/libgomp.fortran/character2.f90: Fix race condition
218 setting 's' in different threads.
220 2005-10-31 Jakub Jelinek <jakub@redhat.com>
222 * libgomp.h (attribute_hidden, ialias): Define.
223 * config/posix/proc.c (omp_get_num_procs): Add ialias.
224 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
225 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
226 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
227 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
228 omp_test_lock, omp_test_nest_lock): Likewise.
229 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
230 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
231 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
232 omp_test_lock, omp_test_nest_lock): Likewise.
233 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
234 omp_get_dynamic, omp_get_nested): Likewise.
235 * parallel.c (omp_get_num_threads, omp_get_max_threads,
236 omp_get_thread_num, omp_in_parallel): Likewise.
237 * fortran.c (ialias_redirect): Define.
238 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
239 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
240 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
241 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
242 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
243 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
244 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
245 omp_get_wtime): Add ialias_redirect.
247 2005-10-30 Jakub Jelinek <jakub@redhat.com>
249 * fortran.c: Include stdlib.h.
251 2005-10-29 Jakub Jelinek <jakub@redhat.com>
253 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
254 * Makefile.in: Regenerated.
256 2005-10-28 Jakub Jelinek <jakub@redhat.com>
258 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
259 * libgomp_f.h.in (omp_check_defines): New function.
260 * env.c: Include libgomp_f.h.
261 (initialize_env): Call omp_check_defines.
263 * testsuite/libgomp.dg/copyin-2.c: New test.
264 * testsuite/libgomp.c++/copyin-2.C: New test.
265 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
267 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
268 * testsuite/libgomp.fortran/sharing2.f90: New test.
270 * testsuite/libgomp.dg/copyin-1.c: New test.
271 * testsuite/libgomp.c++/copyin-1.C: New test.
273 2005-10-26 Jakub Jelinek <jakub@redhat.com>
275 * testsuite/libgomp.fortran/crayptr1.f90: New test.
277 * testsuite/libgomp.fortran/workshare1.f90: New test.
279 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
281 * libgomp.fortran/sharing1.f90: New test.
283 2005-10-24 Jakub Jelinek <jakub@redhat.com>
286 * testsuite/libgomp.c++/loop-7.C: New test.
288 * testsuite/libgomp.dg/nestedfn-2.c: New test.
290 * testsuite/libgomp.dg/nestedfn-1.c: New test.
291 * testsuite/libgomp.fortran/reduction6.f90: New test.
292 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
294 2005-10-23 Richard Henderson <rth@redhat.com>
296 * testsuite/libgomp.c++/ctor-1.C: New.
297 * testsuite/libgomp.c++/ctor-2.C: New.
298 * testsuite/libgomp.c++/ctor-3.C: New.
299 * testsuite/libgomp.c++/ctor-4.C: New.
300 * testsuite/libgomp.c++/ctor-5.C: New.
301 * testsuite/libgomp.c++/ctor-6.C: New.
302 * testsuite/libgomp.c++/ctor-7.C: New.
303 * testsuite/libgomp.c++/ctor-8.C: New.
304 * testsuite/libgomp.c++/ctor-9.C: New.
306 2005-10-21 Diego Novillo <dnovillo@redhat.com>
309 * testsuite/libgomp.c++/pr24455-1.C: New test.
310 * testsuite/libgomp.c++/pr24455.C: New test.
311 * testsuite/libgomp.dg/pr24455-1.c: New test.
312 * testsuite/libgomp.dg/pr24455.c: New test.
314 2005-10-20 Richard Henderson <rth@redhat.com>
316 * testsuite/libgomp.c++/loop-6.C: New.
317 * testsuite/libgomp.dg/loop-3.c: New.
319 2005-10-20 Jakub Jelinek <jakub@redhat.com>
321 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
323 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
326 2005-10-19 Diego Novillo <dnovillo@redhat.com>
328 * testsuite/libgomp.fortran/jacobi.f: New test.
330 2005-10-19 Richard Henderson <rth@redhat.com>
332 * configure.tgt (i?86-linux): Default to with_arch instead of
333 CFLAGS. Add -mtune to match target_cpu.
334 (x86_64-linux): Tune to i686.
336 * fortran.c (omp_test_nest_lock_): Fix typo.
338 2005-10-19 Jakub Jelinek <jakub@redhat.com>
340 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
341 gomp_ordered_sync): Do nothing if team->nthreads == 1.
342 * testsuite/libgomp.dg/ordered-3.c: New test.
344 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
345 Remove volatile keyword.
347 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
348 in COMMON block to avoid warnings on 64-bit targets.
350 2005-10-18 Diego Novillo <dnovillo@redhat.com>
352 * testsuite/libgomp.dg/shared-3.c: New test.
354 2005-10-18 Jakub Jelinek <jakub@redhat.com>
356 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
357 * testsuite/libgomp.fortran/reduction5.f90: New test.
359 2005-10-18 Jakub Jelinek <jakub@redhat.com>
361 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
363 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
364 flush loop now that __sync_synchronize has proper memory barrier.
365 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
366 Add -ffixed-form to dg-options.
368 2005-10-17 Diego Novillo <dnovillo@redhat.com>
370 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
372 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
373 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
374 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
375 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
376 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
377 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
378 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
379 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
380 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
381 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
382 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
383 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
384 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
385 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
386 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
387 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
388 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
389 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
390 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
391 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
392 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
393 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
394 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
395 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
396 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
398 2005-10-17 Jakub Jelinek <jakub@redhat.com>
400 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
401 lang_library_path exists. Use find instead of glob to gather tests.
402 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
404 2005-10-17 Diego Novillo <dnovillo@redhat.com>
406 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
407 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
408 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
409 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
410 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
411 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
412 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
413 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
414 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
415 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
416 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
417 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
418 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
420 2005-10-15 Jakub Jelinek <jakub@redhat.com>
422 * testsuite/libgomp.dg/vla-1.c: New test.
424 * testsuite/libgomp.fortran/reference2.f90: New test.
426 * testsuite/libgomp.fortran/character2.f90: Remove explicit
427 declaration of omp_get_thread_num.
428 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
431 * testsuite/libgomp.fortran/reduction1.f90: New test.
432 * testsuite/libgomp.fortran/reduction2.f90: New test.
433 * testsuite/libgomp.fortran/reduction3.f90: New test.
434 * testsuite/libgomp.fortran/reduction4.f90: New test.
436 2005-10-13 Richard Henderson <rth@redhat.com>
438 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
439 * Makefile.in: Regenerate.
440 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
441 * libgomp.h: Include bar.h.
442 (struct gomp_barrier): Remove.
443 (struct gomp_team): Add barrier. Replace master_barrier with
444 master_release. Replace threads with ordered_release.
445 (struct gomp_thread): Replace barrier with release.
446 * ordered.c (gomp_ordered_first): Update for ordered_release change.
447 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
448 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
449 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
450 (GOMP_single_copy_end): Likewise.
451 * team.c (gomp_threads_dock): New.
452 (gomp_barrier_init, gomp_barrier_destroy): Remove.
453 (gomp_thread_start): Use gomp_barrier_wait.
454 (new_team, free_team): Update for gomp_team changes.
455 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
456 (gomp_team_end): Use gomp_barrier_wait.
457 (initialize_team): Update for gomp_thread changes.
458 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
459 (gomp_work_share_end_nowait): Use atomic ops when available.
460 * config/linux/bar.c, config/linux/bar.h: New files.
461 * config/posix/bar.c, config/posix/bar.h: New files.
463 2005-10-13 Jakub Jelinek <jakub@redhat.com>
465 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
466 * testsuite/libgomp.dg/single-2.c: New test.
468 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
469 lang_link_flags): Unset, so that they aren't inherited from previously
472 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
474 2005-10-12 Richard Henderson <rth@redhat.com>
476 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
477 (libgomp_init): Use lang_test_file, lang_library_path, and
478 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
480 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
481 (lang_test_file, lang_link_flags): New.
482 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
484 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
485 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
486 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
487 testsuite/libgomp.c++/parallel-1.C,
488 testsuite/libgomp.c++/reduction-1.C,
489 testsuite/libgomp.c++/reduction-2.C,
490 testsuite/libgomp.c++/reduction-3.C,
491 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
492 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
493 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
494 New files, largely cribbed from the C testsuite.
496 2005-10-12 Jakub Jelinek <jakub@redhat.com>
498 * testsuite/libgomp.fortran/character1.f90: New test.
499 * testsuite/libgomp.fortran/character2.f90: New test.
501 * testsuite/libgomp.dg/nested-1.c: New test.
502 * testsuite/libgomp.dg/nested-2.c: New test.
503 * testsuite/libgomp.fortran/do1.f90: New test.
504 * testsuite/libgomp.fortran/do2.f90: New test.
506 * testsuite/libgomp.fortran/reference1.f90: New test.
508 2005-10-11 Jakub Jelinek <jakub@redhat.com>
510 * testsuite/libgomp.dg/reduction-1.c: New test.
511 * testsuite/libgomp.dg/reduction-2.c: New test.
512 * testsuite/libgomp.dg/reduction-3.c: New test.
514 2005-10-10 Jakub Jelinek <jakub@redhat.com>
516 * testsuite/libgomp.dg/atomic-1.c: New test.
517 * testsuite/libgomp.dg/atomic-2.c: New test.
519 2005-10-09 Richard Henderson <rth@redhat.com>
521 * critical.c (atomic_lock): New.
522 (initialize_critical): Initialize it.
523 (GOMP_atomic_start, GOMP_atomic_end): New.
524 * libgomp.map: Export them.
525 * libgomp_g.h: Declare them.
527 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
529 2005-10-02 Richard Henderson <rth@redhat.com>
531 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
532 to XCFLAGS instead of CFLAGS.
534 2005-09-30 Richard Henderson <rth@redhat.com>
536 * configure.ac: Determine whether -pthread or -lpthread is needed.
537 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
538 * Makefine.in, configure: Rebuild.
540 2005-09-28 Richard Henderson <rth@redhat.com>
542 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
543 * testsuite/libgomp.dg/omp-single-3.c: New test.
545 2005-09-28 Diego Novillo <dnovillo@redhat.com>
547 * testsuite/libgomp.dg/omp-single-2.c: New test.
548 * testsuite/libgomp.dg/shared-2.c: Fix return code.
550 2005-09-27 Richard Henderson <rth@redhat.com>
552 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
553 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
555 2005-09-27 Jakub Jelinek <jakub@redhat.com>
557 * testsuite/libgomp.dg/omp-loop03.c: New test.
559 2005-09-27 Diego Novillo <dnovillo@redhat.com>
561 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
563 2005-09-27 Diego Novillo <dnovillo@redhat.com>
565 * testsuite/libgomp.dg/omp-single-1.c: New test.
566 * testsuite/libgomp.dg/shared-1.c: Return 0.
567 Add prototype for abort.
568 * testsuite/libgomp.dg/shared-2.c: Likewise.
570 2005-09-26 Jakub Jelinek <jakub@redhat.com>
572 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
575 2005-09-26 Diego Novillo <dnovillo@redhat.com>
577 * testsuite/libgomp.dg/shared-1.c: New test.
578 * testsuite/libgomp.dg/shared-2.c: New test.
580 2005-09-24 Richard Henderson <rth@redhat.com>
582 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
584 2005-09-24 Richard Henderson <rth@redhat.com>
586 * iter.c (gomp_iter_static_next): Round up when computing number
587 of iterations. Don't bother distributing a remainder equally.
589 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
590 Don't call srand. Zero b before testing.
593 2005-09-24 Jakub Jelinek <jakub@redhat.com>
595 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
596 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
598 2005-09-23 Jakub Jelinek <jakub@redhat.com>
600 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
601 without !$omp end do, followed immediately by subroutine end.
603 2005-09-23 Diego Novillo <dnovillo@redhat.com>
605 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
607 2005-09-22 Richard Henderson <rth@redhat.com>
609 * critical.c (GOMP_critical_name_start): Change argument to void**.
610 Reuse the pointer space if the mutex fits.
611 (GOMP_critical_name_end): Likewise.
612 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
613 * libgomp_g.h (GOMP_critical_name_start): Update decl.
614 (GOMP_critical_name_end): Likewise.
615 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
616 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
618 2005-09-20 Richard Henderson <rth@redhat.com>
620 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
621 (create_lock_lock): New.
622 (initialize_critical): Initialize it.
623 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
624 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
626 2005-09-20 Diego Novillo <dnovillo@redhat.com>
628 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
630 2005-09-20 Diego Novillo <dnovillo@redhat.com>
632 * testsuite/libgomp.dg/omp-loop01.c: New test.
633 * testsuite/libgomp.dg/omp-loop02.c: New test.
635 2005-09-20 Jakub Jelinek <jakub@redhat.com>
637 * configure.ac (AC_PROG_FC): Add.
638 (USE_FORTRAN): New automake conditional.
639 * configure: Rebuilt.
640 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
641 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
642 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
643 Add rules to build them.
644 * Makefile.in: Rebuilt.
645 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
647 * libgomp.map: Add Fortran wrappers.
648 * libgomp_f.h.in: New file.
649 * omp_lib.h.in: New file.
650 * omp_lib.f90.in: New file.
651 * fortran.c: New file.
652 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
653 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
654 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
655 libgfortran has been built.
656 * testsuite/libgomp.fortran/fortran.exp: New file.
657 * testsuite/libgomp.fortran/omp_cond1.f: New test.
658 * testsuite/libgomp.fortran/omp_cond2.f: New test.
659 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
660 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
661 * testsuite/libgomp.fortran/omp_hello.f: New test.
662 * testsuite/libgomp.fortran/omp_orphan.f: New test.
663 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
664 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
665 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
666 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
667 * testsuite/libgomp.fortran/omp_reduction.f: New test.
668 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
669 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
671 2005-08-30 Richard Henderson <rth@redhat.com>
673 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
674 function for when aliases are not usable.
675 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
676 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
677 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
678 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
679 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
680 GOMP_loop_ordered_guided_next): Likewise.
681 * ordered.c (GOMP_ordered_start): Likewise.
683 2005-08-01 Diego Novillo <dnovillo@redhat.com>
685 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
686 * testsuite/libgomp.dg/omp_hello.c: Fix return code
687 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
688 * testsuite/libgomp.dg/omp_orphan.c: Likewise
689 * testsuite/libgomp.dg/omp_reduction.c: Likewise
690 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
691 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
692 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
693 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
695 2005-07-07 Eric Christopher <echristo@redhat.com>
696 Diego Novillo <dnovillo@redhat.com>
698 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
699 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
701 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
702 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
703 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
704 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
705 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
706 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
707 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
709 2005-06-13 Diego Novillo <dnovillo@redhat.com>
711 * TOPLEVEL.patch: Remove.
713 2005-05-16 Richard Henderson <rth@redhat.com>
715 * configure.ac: Test for clock_gettime.
716 * config.h.in, configure: Rebuild.
717 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
718 (omp_get_wtime): Use clock_gettime if available.
719 (omp_get_wtick): Use clock_getres if available.
721 2005-05-11 Richard Henderson <rth@redhat.com>
723 * config/linux/ia64/futex.h: New file.
724 * configure.tgt: Use it.
726 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
728 2005-05-07 Richard Henderson <rth@redhat.com>
730 * config/linux/powerpc/futex.h: New file.
731 * configure.tgt: Use it.
733 * config/linux/i486/futex.h: Merge ...
734 * config/linux/x86_64/futex.h: ... into ...
735 * config/linux/x86/futex.h: ... here.
736 * configure.tgt: Update to match.
738 2005-05-06 Richard Henderson <rth@redhat.com>
740 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
741 * config/linux/i486/futex.h: Likewise.
742 * config/linux/x86_64/futex.h: Likewise.
744 * config/linux/lock.c: New file.
745 * config/linux/omp-lock.h: New file.
747 * critical.c, env.h: Don't include omp.h
748 * config/posix/lock.c: Include libgomp.h instead of omp.h.
749 * config/posix/time.c: Likewise.
750 * config/posix/omp-lock.h: New file.
751 * libgomp.h: Include omp-lock.h and omp.h.
752 * Makefile.am (nodist_include_HEADERS): New.
754 * configure.ac (PERL): New.
755 * mkomp_h.pl: New file.
756 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
758 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
760 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
761 build directory. Re-add -march=i486 hack.
763 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
764 (libgomp_link_flags): Remove.
765 (libgomp_initialized): Remove.
766 (libgomp_init): Don't protect from reinitialization. Copy code
767 from libstdc++ for getting the multilib set correctly.
769 2005-05-05 Richard Henderson <rth@redhat.com>
771 * config/linux/alpha/futex.h: New file.
772 * configure.tgt (alpha*-*-linux*): Use it.
774 * config/posix/mutex.c: New file.
775 * config/posix/sem.c: Use libgomp.h.
777 * configure.tgt (x86_64-linux): Also test CC for -m32.
778 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
780 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
783 * Makefile.am (SUBDIRS): New.
784 (libgomp_la_LDFLAGS): Add -lpthread.
785 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
786 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
788 * libgomp_g.h: New file.
789 * libgomp.h: Split out all public declarations to libgomp_g.h.
790 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
791 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
792 * config/linux/sem.h: Likewise.
793 * config/posix/sem.h: Likewise.
795 * Makefile.am (AM_LDFLAGS): New.
796 (libgomp_version_script): Split out from ...
797 (libgomp_la_LDFLAGS): ... here.
798 (libgomp_version_info): New.
799 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
800 (LIBGOMP_ENABLE): New.
801 (LIBGOMP_CHECK_LINKER_FEATURES): New.
802 (LIBGOMP_ENABLE_SYMVERS): New.
803 * configure.ac (AC_INIT): Version 1.0.
804 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
805 (enable-linux-futex): Likewise. Rename from enable-futex.
806 (libtool_VERSION): New.
807 (LIBGOMP_ENABLE_SYMVERS): Use it.
808 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
809 * Makefile.in, aclocal.m4, configure: Rebuild.
811 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
812 (gomp_mutex_unlock_slow): Fix typo.
813 * config/linux/sem.c: Similarly.
814 (gomp_sem_post_slow): Fix typo.
815 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
816 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
817 [__PIC__] (sys_futex0): Don't use tmp output in asm.
819 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
820 (libgomp_la_LDFLAGS): Add top_srcdir to path.
821 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
822 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
823 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
824 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
825 LDFLAGS. Pull enable_futex check to top-level.
826 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
827 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
829 First attempt at real configury.
830 * Makefile, config.h: Remove file.
831 * Makefile.am, Makefile.in: New file.
832 * acinclude.m4 aclocal.m4: New file.
833 * configure.ac, configure.tgt, configure: New file.
835 * config/posix/lock.c: Rename from sys-lock.c.
836 * config/posix/mutex.h: Rename from sys-mutex.h.
837 * config/posix/sem.c: Rename from sys-sem.c.
838 * config/posix/sem.h: Rename from sys-sem.h.
839 * config/posix/proc.c: Rename from sys-proc.c.
840 * config/posix/time.c: Rename from sys-proc.c.
842 * config/linux/mutex.c: New file.
843 * config/linux/mutex.h: New file.
844 * config/linux/sem.c: New file.
845 * config/linux/sem.h: New file.
846 * config/linux/i486/futex.h: New file.
847 * config/linux/x86_64/futex.h: New file.
849 2005-05-04 Richard Henderson <rth@redhat.com>
851 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
852 * libgomp.h: Declare them.
853 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
854 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
856 2005-05-04 Richard Henderson <rth@redhat.com>
858 * libgomp-1 code drop
860 2005-05-04 Richard Henderson <rth@redhat.com>
862 * iter.c (gomp_iter_static_next): Return tri-state on 0.
863 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
864 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
865 (gomp_iter_static_next): Update.
866 (gomp_ordered_static_next): Update.
867 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
868 (gomp_loop_ordered_static_start): Likewise. Exit early for a
870 (gomp_loop_ordered_static_next): Refine test for calling
871 gomp_ordered_static_next.
872 * testsuite/ordered-1.c: Add case for more threads than iterations.
874 * iter.c (gomp_iter_runtime_next_locked): Remove.
875 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
876 gomp_loop_guided_start, gomp_loop_ordered_static_start,
877 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
878 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
879 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
880 gomp_loop_ordered_guided_next): Downcase name, make static, add
881 an external alias with the old name.
882 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
883 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
884 switch and call one of the above static functions.
887 * work.c (gomp_work_share_start): Lock the mutex for !first too.
888 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
889 GOMP_loop_guided_start, GOMP_loop_runtime_start,
890 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
891 GOMP_loop_ordered_guided_start): Update to match.
892 * sections.c (GOMP_sections_start): Likewise.
893 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
895 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
896 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
897 Use bounds check instead of modulus.
898 (gomp_ordered_sync): Split out of GOMP_ordered_start.
899 (gomp_ordered_last): Don't sync with ordered_owner here.
900 (gomp_ordered_next): Likewise.
901 (gomp_ordered_static_loop_next): Likewise.
902 * loop.c, libgomp.h: Update to match.
904 * libgomp.h (GOMP_barrier): Declare.
906 * testsuite/barrier-1.c: New file.
907 * testsuite/critical-1.c: New file.
908 * testsuite/ordered-2.c: New file.
909 * testsuite/ordered-1.c: New file.
910 * testsuite/sections-1.c: New file.
911 * testsuite/single-1.c: New file.
912 * testsuite/Makefile (TESTS): Add them.
914 2005-05-04 Richard Henderson <rth@redhat.com>
916 * libgomp.h (struct gomp_work_share): Add ordered_owner.
917 * loop.c (GOMP_loop_static_start): If not the startup thread,
918 acquire the mutex to wait for initialization complete.
919 (GOMP_loop_ordered_static_start): Likewise.
920 (GOMP_loop_ordered_runtime_start): Likewise.
921 (GOMP_loop_ordered_static_first): Remove.
922 (GOMP_loop_ordered_dynamic_first): Remove.
923 (GOMP_loop_ordered_guided_first): Remove.
924 (GOMP_loop_ordered_runtime_first): Remove.
925 * ordered.c (gomp_ordered_loop_first): Post to own release when
926 we're the first thread.
927 (gomp_ordered_loop_last): Wait on release if not owner.
928 (gomp_ordered_loop_next): Likewise.
929 (gomp_ordered_static_loop_init): New.
930 (gomp_ordered_static_loop_next): Use ordered_owner.
931 (GOMP_ordered_start): Likewise.
932 * work.c (gomp_new_work_share): Initialize ordered_owner.
934 2005-05-03 Richard Henderson <rth@redhat.com>
936 * Makefile (OPT): New.
939 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
940 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
941 * libgomp.h, libgomp.map, NOTES: Update to match.
943 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
944 Add initialized and thr members.
945 (gomp_thread_start): Pause when initially spawned to wait for
946 the whole team to be created.
947 (gomp_team_start): Release team members at the end.
949 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
950 (f_foo_1): Use GOMP_loop_end.
951 (f_foo_2): Use GOMP_loop_end_nowait.
953 * testsuite/loop-2.c: New file.
954 * testsuite/Makefile (TESTS): Add it.
956 2005-05-03 Richard Henderson <rth@redhat.com>
958 * iter.c (gomp_iter_static_next): Fix overflow check typo.
959 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
960 * team.c (new_team): Initialize oldest_live_gen to 1 if no
963 * testsuite/Makefile: New file.
964 * testsuite/loop-1.c: New file.
966 2005-05-03 Richard Henderson <rth@redhat.com>
968 Initial implementation and checkin.