1 2006-01-21 Steve Ellcey <sje@cup.hp.com>
4 * configure.ac: Remove check for alloca.h.
5 * configure: Regenerate.
6 * config.h.in: Regenerate.
7 * libgomp.h: define gomp_alloca to be __builtin_alloca.
8 * team.c: Remove use of alloca.h.
9 Call gomp_alloca instead of alloca.
11 2006-01-20 Steve Ellcey <sje@cup.hp.com>
14 * team.c: Add include of alloca.h.
15 * configure.ac: Add check for alloca.h.
16 * configure: Regenerate.
17 * config.h.in: Regenerate.
19 2006-01-17 Jakub Jelinek <jakub@redhat.com>
22 * testsuite/libgomp.fortran/pr25219.f90: New test.
24 2005-12-05 Uros Bizjak <uros@kss-loka.si>
26 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
27 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
28 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
29 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
30 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
31 testsuite/libgomp.fortran/threadprivate1.f90,
32 testsuite/libgomp.fortran/threadprivate2.f90,
33 testsuite/libgomp.fortran/threadprivate3.f90,
34 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
35 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
36 testsuite/libgomp.fortran/omp_parse3.f90: Change required
37 effective-target to TLS runtime.
39 * testsuite/libgomp.fortran/pr25162.f: Require
40 effective-target TLS runtime.
42 2005-12-01 Jakub Jelinek <jakub@redhat.com>
44 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
45 * testsuite/libgomp.c/nestedfn-3.c: New test.
47 2005-11-30 Jakub Jelinek <jakub@redhat.com>
50 * testsuite/libgomp.fortran/pr25162.f: New test.
52 2005-11-28 Jakub Jelinek <jakub@redhat.com>
54 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
55 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
57 2005-11-25 Jakub Jelinek <jakub@redhat.com>
59 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
60 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
61 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
62 single.c, team.c, work.c, config/linux/alpha/futex.h,
63 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
64 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
65 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
66 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
67 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
68 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
69 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
72 2005-11-18 Jakub Jelinek <jakub@redhat.com>
74 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
75 to nodist_noinst_HEADERS.
76 * Makefile.in: Rebuilt.
78 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
79 add integer count field.
80 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
81 omp_nest_lock_t type change.
82 (omp_init_nest_lock): Likewise. Initialize count to 0.
83 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
85 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
87 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
88 Increment count if successful and return the new nesting level.
89 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
90 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
91 * testsuite/libgomp.c/lib-1.c: New test.
92 * testsuite/libgomp.fortran/lib1.f90: New test.
93 * testsuite/libgomp.fortran/lib2.f: New test.
94 * testsuite/libgomp.fortran/lib3.f: New test.
96 2005-11-17 Richard Henderson <rth@redhat.com>
99 * Makefile.am (nodist_toolexeclib_HEADERS): New.
100 * configure.ac (link_gomp): New. Substitute it.
101 (AC_CONFIG_FILES): Add libgomp.spec.
102 * libgomp.spec.in: New file.
103 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
104 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
106 2005-11-18 Jakub Jelinek <jakub@redhat.com>
108 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
109 reduction(-:var) behaving the same as reduction(+:var).
110 * testsuite/libgomp.c/reduction-4.c: New test.
112 2005-11-15 Uros Bizjak <uros@kss-loka.si>
114 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
115 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
116 testsuite/libgomp.c/copyin-3.c,
117 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
118 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
119 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
120 testsuite/libgomp.c++/pr24455.C,
121 testsuite/libgomp.fortran/threadprivate1.f90,
122 testsuite/libgomp.fortran/threadprivate2.f90,
123 testsuite/libgomp.fortran/threadprivate3.f90,
124 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
125 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
126 testsuite/libgomp.fortran/omp_parse3.f90: Require
127 effective-target TLS.
129 2005-11-14 Diego Novillo <dnovillo@redhat.com>
133 2005-11-13 Jakub Jelinek <jakub@redhat.com>
136 * team.c (initialize_team): Pass NULL rather than free as
137 pthread_key_create destructor. Initialize thread specific data
138 pointer in initial thread to a static local variable rather than
141 2005-11-11 Uros Bizjak <uros@kss-loka.si>
143 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
144 its location to ld_library_path.
146 2005-11-10 Diego Novillo <dnovillo@redhat.com>
148 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
150 2005-11-10 Diego Novillo <dnovillo@redhat.com>
152 * testsuite/libgomp.c: Rename from libgomp.dg.
154 2005-11-09 Diego Novillo <dnovillo@redhat.com>
156 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
157 threadprivate variable 'i'.
159 2005-11-09 Jakub Jelinek <jakub@redhat.com>
161 * config/linux/s390/futex.h: New file.
162 * configure.tgt: Use it.
164 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
167 2005-11-08 Jakub Jelinek <jakub@redhat.com>
170 * testsuite/libgomp.c++/master-1.C: New test.
172 2005-11-07 Jakub Jelinek <jakub@redhat.com>
174 * testsuite/libgomp.dg/copyin-3.c: New test.
176 2005-11-07 Jakub Jelinek <jakub@redhat.com>
178 * testsuite/libgomp.fortran/retval1.f90: New test.
179 * testsuite/libgomp.fortran/vla7.f90: New test.
181 2005-11-06 Jakub Jelinek <jakub@redhat.com>
183 * testsuite/libgomp.fortran/vla2.f90: New test.
184 * testsuite/libgomp.fortran/vla3.f90: New test.
185 * testsuite/libgomp.fortran/vla4.f90: New test.
186 * testsuite/libgomp.fortran/vla5.f90: New test.
187 * testsuite/libgomp.fortran/vla6.f90: New test.
189 2005-11-01 Jakub Jelinek <jakub@redhat.com>
191 * config/linux/sparc/futex.h: New file.
192 * configure.tgt: Use it.
193 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
195 * critical.c: Include stdlib.h.
196 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
197 ignoring return value.
198 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
199 LIBGOMP_CHECK_SYNC_BUILTINS check.
200 * configure: Rebuilt.
202 2005-10-31 Jakub Jelinek <jakub@redhat.com>
204 * testsuite/libgomp.fortran/vla1.f90: New test.
206 2005-10-31 Richard Henderson <rth@redhat.com>
208 * testsuite/libgomp.fortran/character2.f90: Fix race condition
209 setting 's' in different threads.
211 2005-10-31 Jakub Jelinek <jakub@redhat.com>
213 * libgomp.h (attribute_hidden, ialias): Define.
214 * config/posix/proc.c (omp_get_num_procs): Add ialias.
215 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
216 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
217 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
218 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
219 omp_test_lock, omp_test_nest_lock): Likewise.
220 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
221 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
222 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
223 omp_test_lock, omp_test_nest_lock): Likewise.
224 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
225 omp_get_dynamic, omp_get_nested): Likewise.
226 * parallel.c (omp_get_num_threads, omp_get_max_threads,
227 omp_get_thread_num, omp_in_parallel): Likewise.
228 * fortran.c (ialias_redirect): Define.
229 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
230 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
231 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
232 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
233 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
234 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
235 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
236 omp_get_wtime): Add ialias_redirect.
238 2005-10-30 Jakub Jelinek <jakub@redhat.com>
240 * fortran.c: Include stdlib.h.
242 2005-10-29 Jakub Jelinek <jakub@redhat.com>
244 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
245 * Makefile.in: Regenerated.
247 2005-10-28 Jakub Jelinek <jakub@redhat.com>
249 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
250 * libgomp_f.h.in (omp_check_defines): New function.
251 * env.c: Include libgomp_f.h.
252 (initialize_env): Call omp_check_defines.
254 * testsuite/libgomp.dg/copyin-2.c: New test.
255 * testsuite/libgomp.c++/copyin-2.C: New test.
256 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
258 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
259 * testsuite/libgomp.fortran/sharing2.f90: New test.
261 * testsuite/libgomp.dg/copyin-1.c: New test.
262 * testsuite/libgomp.c++/copyin-1.C: New test.
264 2005-10-26 Jakub Jelinek <jakub@redhat.com>
266 * testsuite/libgomp.fortran/crayptr1.f90: New test.
268 * testsuite/libgomp.fortran/workshare1.f90: New test.
270 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
272 * libgomp.fortran/sharing1.f90: New test.
274 2005-10-24 Jakub Jelinek <jakub@redhat.com>
277 * testsuite/libgomp.c++/loop-7.C: New test.
279 * testsuite/libgomp.dg/nestedfn-2.c: New test.
281 * testsuite/libgomp.dg/nestedfn-1.c: New test.
282 * testsuite/libgomp.fortran/reduction6.f90: New test.
283 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
285 2005-10-23 Richard Henderson <rth@redhat.com>
287 * testsuite/libgomp.c++/ctor-1.C: New.
288 * testsuite/libgomp.c++/ctor-2.C: New.
289 * testsuite/libgomp.c++/ctor-3.C: New.
290 * testsuite/libgomp.c++/ctor-4.C: New.
291 * testsuite/libgomp.c++/ctor-5.C: New.
292 * testsuite/libgomp.c++/ctor-6.C: New.
293 * testsuite/libgomp.c++/ctor-7.C: New.
294 * testsuite/libgomp.c++/ctor-8.C: New.
295 * testsuite/libgomp.c++/ctor-9.C: New.
297 2005-10-21 Diego Novillo <dnovillo@redhat.com>
300 * testsuite/libgomp.c++/pr24455-1.C: New test.
301 * testsuite/libgomp.c++/pr24455.C: New test.
302 * testsuite/libgomp.dg/pr24455-1.c: New test.
303 * testsuite/libgomp.dg/pr24455.c: New test.
305 2005-10-20 Richard Henderson <rth@redhat.com>
307 * testsuite/libgomp.c++/loop-6.C: New.
308 * testsuite/libgomp.dg/loop-3.c: New.
310 2005-10-20 Jakub Jelinek <jakub@redhat.com>
312 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
314 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
317 2005-10-19 Diego Novillo <dnovillo@redhat.com>
319 * testsuite/libgomp.fortran/jacobi.f: New test.
321 2005-10-19 Richard Henderson <rth@redhat.com>
323 * configure.tgt (i?86-linux): Default to with_arch instead of
324 CFLAGS. Add -mtune to match target_cpu.
325 (x86_64-linux): Tune to i686.
327 * fortran.c (omp_test_nest_lock_): Fix typo.
329 2005-10-19 Jakub Jelinek <jakub@redhat.com>
331 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
332 gomp_ordered_sync): Do nothing if team->nthreads == 1.
333 * testsuite/libgomp.dg/ordered-3.c: New test.
335 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
336 Remove volatile keyword.
338 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
339 in COMMON block to avoid warnings on 64-bit targets.
341 2005-10-18 Diego Novillo <dnovillo@redhat.com>
343 * testsuite/libgomp.dg/shared-3.c: New test.
345 2005-10-18 Jakub Jelinek <jakub@redhat.com>
347 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
348 * testsuite/libgomp.fortran/reduction5.f90: New test.
350 2005-10-18 Jakub Jelinek <jakub@redhat.com>
352 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
354 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
355 flush loop now that __sync_synchronize has proper memory barrier.
356 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
357 Add -ffixed-form to dg-options.
359 2005-10-17 Diego Novillo <dnovillo@redhat.com>
361 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
363 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
364 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
365 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
366 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
367 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
368 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
369 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
370 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
371 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
372 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
373 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
374 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
375 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
376 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
377 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
378 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
379 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
380 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
381 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
382 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
383 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
384 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
385 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
386 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
387 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
389 2005-10-17 Jakub Jelinek <jakub@redhat.com>
391 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
392 lang_library_path exists. Use find instead of glob to gather tests.
393 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
395 2005-10-17 Diego Novillo <dnovillo@redhat.com>
397 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
398 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
399 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
400 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
401 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
402 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
403 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
404 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
405 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
406 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
407 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
408 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
409 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
411 2005-10-15 Jakub Jelinek <jakub@redhat.com>
413 * testsuite/libgomp.dg/vla-1.c: New test.
415 * testsuite/libgomp.fortran/reference2.f90: New test.
417 * testsuite/libgomp.fortran/character2.f90: Remove explicit
418 declaration of omp_get_thread_num.
419 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
422 * testsuite/libgomp.fortran/reduction1.f90: New test.
423 * testsuite/libgomp.fortran/reduction2.f90: New test.
424 * testsuite/libgomp.fortran/reduction3.f90: New test.
425 * testsuite/libgomp.fortran/reduction4.f90: New test.
427 2005-10-13 Richard Henderson <rth@redhat.com>
429 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
430 * Makefile.in: Regenerate.
431 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
432 * libgomp.h: Include bar.h.
433 (struct gomp_barrier): Remove.
434 (struct gomp_team): Add barrier. Replace master_barrier with
435 master_release. Replace threads with ordered_release.
436 (struct gomp_thread): Replace barrier with release.
437 * ordered.c (gomp_ordered_first): Update for ordered_release change.
438 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
439 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
440 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
441 (GOMP_single_copy_end): Likewise.
442 * team.c (gomp_threads_dock): New.
443 (gomp_barrier_init, gomp_barrier_destroy): Remove.
444 (gomp_thread_start): Use gomp_barrier_wait.
445 (new_team, free_team): Update for gomp_team changes.
446 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
447 (gomp_team_end): Use gomp_barrier_wait.
448 (initialize_team): Update for gomp_thread changes.
449 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
450 (gomp_work_share_end_nowait): Use atomic ops when available.
451 * config/linux/bar.c, config/linux/bar.h: New files.
452 * config/posix/bar.c, config/posix/bar.h: New files.
454 2005-10-13 Jakub Jelinek <jakub@redhat.com>
456 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
457 * testsuite/libgomp.dg/single-2.c: New test.
459 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
460 lang_link_flags): Unset, so that they aren't inherited from previously
463 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
465 2005-10-12 Richard Henderson <rth@redhat.com>
467 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
468 (libgomp_init): Use lang_test_file, lang_library_path, and
469 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
471 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
472 (lang_test_file, lang_link_flags): New.
473 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
475 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
476 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
477 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
478 testsuite/libgomp.c++/parallel-1.C,
479 testsuite/libgomp.c++/reduction-1.C,
480 testsuite/libgomp.c++/reduction-2.C,
481 testsuite/libgomp.c++/reduction-3.C,
482 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
483 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
484 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
485 New files, largely cribbed from the C testsuite.
487 2005-10-12 Jakub Jelinek <jakub@redhat.com>
489 * testsuite/libgomp.fortran/character1.f90: New test.
490 * testsuite/libgomp.fortran/character2.f90: New test.
492 * testsuite/libgomp.dg/nested-1.c: New test.
493 * testsuite/libgomp.dg/nested-2.c: New test.
494 * testsuite/libgomp.fortran/do1.f90: New test.
495 * testsuite/libgomp.fortran/do2.f90: New test.
497 * testsuite/libgomp.fortran/reference1.f90: New test.
499 2005-10-11 Jakub Jelinek <jakub@redhat.com>
501 * testsuite/libgomp.dg/reduction-1.c: New test.
502 * testsuite/libgomp.dg/reduction-2.c: New test.
503 * testsuite/libgomp.dg/reduction-3.c: New test.
505 2005-10-10 Jakub Jelinek <jakub@redhat.com>
507 * testsuite/libgomp.dg/atomic-1.c: New test.
508 * testsuite/libgomp.dg/atomic-2.c: New test.
510 2005-10-09 Richard Henderson <rth@redhat.com>
512 * critical.c (atomic_lock): New.
513 (initialize_critical): Initialize it.
514 (GOMP_atomic_start, GOMP_atomic_end): New.
515 * libgomp.map: Export them.
516 * libgomp_g.h: Declare them.
518 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
520 2005-10-02 Richard Henderson <rth@redhat.com>
522 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
523 to XCFLAGS instead of CFLAGS.
525 2005-09-30 Richard Henderson <rth@redhat.com>
527 * configure.ac: Determine whether -pthread or -lpthread is needed.
528 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
529 * Makefine.in, configure: Rebuild.
531 2005-09-28 Richard Henderson <rth@redhat.com>
533 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
534 * testsuite/libgomp.dg/omp-single-3.c: New test.
536 2005-09-28 Diego Novillo <dnovillo@redhat.com>
538 * testsuite/libgomp.dg/omp-single-2.c: New test.
539 * testsuite/libgomp.dg/shared-2.c: Fix return code.
541 2005-09-27 Richard Henderson <rth@redhat.com>
543 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
544 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
546 2005-09-27 Jakub Jelinek <jakub@redhat.com>
548 * testsuite/libgomp.dg/omp-loop03.c: New test.
550 2005-09-27 Diego Novillo <dnovillo@redhat.com>
552 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
554 2005-09-27 Diego Novillo <dnovillo@redhat.com>
556 * testsuite/libgomp.dg/omp-single-1.c: New test.
557 * testsuite/libgomp.dg/shared-1.c: Return 0.
558 Add prototype for abort.
559 * testsuite/libgomp.dg/shared-2.c: Likewise.
561 2005-09-26 Jakub Jelinek <jakub@redhat.com>
563 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
566 2005-09-26 Diego Novillo <dnovillo@redhat.com>
568 * testsuite/libgomp.dg/shared-1.c: New test.
569 * testsuite/libgomp.dg/shared-2.c: New test.
571 2005-09-24 Richard Henderson <rth@redhat.com>
573 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
575 2005-09-24 Richard Henderson <rth@redhat.com>
577 * iter.c (gomp_iter_static_next): Round up when computing number
578 of iterations. Don't bother distributing a remainder equally.
580 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
581 Don't call srand. Zero b before testing.
584 2005-09-24 Jakub Jelinek <jakub@redhat.com>
586 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
587 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
589 2005-09-23 Jakub Jelinek <jakub@redhat.com>
591 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
592 without !$omp end do, followed immediately by subroutine end.
594 2005-09-23 Diego Novillo <dnovillo@redhat.com>
596 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
598 2005-09-22 Richard Henderson <rth@redhat.com>
600 * critical.c (GOMP_critical_name_start): Change argument to void**.
601 Reuse the pointer space if the mutex fits.
602 (GOMP_critical_name_end): Likewise.
603 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
604 * libgomp_g.h (GOMP_critical_name_start): Update decl.
605 (GOMP_critical_name_end): Likewise.
606 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
607 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
609 2005-09-20 Richard Henderson <rth@redhat.com>
611 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
612 (create_lock_lock): New.
613 (initialize_critical): Initialize it.
614 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
615 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
617 2005-09-20 Diego Novillo <dnovillo@redhat.com>
619 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
621 2005-09-20 Diego Novillo <dnovillo@redhat.com>
623 * testsuite/libgomp.dg/omp-loop01.c: New test.
624 * testsuite/libgomp.dg/omp-loop02.c: New test.
626 2005-09-20 Jakub Jelinek <jakub@redhat.com>
628 * configure.ac (AC_PROG_FC): Add.
629 (USE_FORTRAN): New automake conditional.
630 * configure: Rebuilt.
631 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
632 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
633 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
634 Add rules to build them.
635 * Makefile.in: Rebuilt.
636 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
638 * libgomp.map: Add Fortran wrappers.
639 * libgomp_f.h.in: New file.
640 * omp_lib.h.in: New file.
641 * omp_lib.f90.in: New file.
642 * fortran.c: New file.
643 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
644 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
645 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
646 libgfortran has been built.
647 * testsuite/libgomp.fortran/fortran.exp: New file.
648 * testsuite/libgomp.fortran/omp_cond1.f: New test.
649 * testsuite/libgomp.fortran/omp_cond2.f: New test.
650 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
651 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
652 * testsuite/libgomp.fortran/omp_hello.f: New test.
653 * testsuite/libgomp.fortran/omp_orphan.f: New test.
654 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
655 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
656 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
657 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
658 * testsuite/libgomp.fortran/omp_reduction.f: New test.
659 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
660 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
662 2005-08-30 Richard Henderson <rth@redhat.com>
664 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
665 function for when aliases are not usable.
666 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
667 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
668 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
669 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
670 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
671 GOMP_loop_ordered_guided_next): Likewise.
672 * ordered.c (GOMP_ordered_start): Likewise.
674 2005-08-01 Diego Novillo <dnovillo@redhat.com>
676 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
677 * testsuite/libgomp.dg/omp_hello.c: Fix return code
678 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
679 * testsuite/libgomp.dg/omp_orphan.c: Likewise
680 * testsuite/libgomp.dg/omp_reduction.c: Likewise
681 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
682 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
683 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
684 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
686 2005-07-07 Eric Christopher <echristo@redhat.com>
687 Diego Novillo <dnovillo@redhat.com>
689 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
690 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
692 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
693 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
694 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
695 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
696 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
697 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
698 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
700 2005-06-13 Diego Novillo <dnovillo@redhat.com>
702 * TOPLEVEL.patch: Remove.
704 2005-05-16 Richard Henderson <rth@redhat.com>
706 * configure.ac: Test for clock_gettime.
707 * config.h.in, configure: Rebuild.
708 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
709 (omp_get_wtime): Use clock_gettime if available.
710 (omp_get_wtick): Use clock_getres if available.
712 2005-05-11 Richard Henderson <rth@redhat.com>
714 * config/linux/ia64/futex.h: New file.
715 * configure.tgt: Use it.
717 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
719 2005-05-07 Richard Henderson <rth@redhat.com>
721 * config/linux/powerpc/futex.h: New file.
722 * configure.tgt: Use it.
724 * config/linux/i486/futex.h: Merge ...
725 * config/linux/x86_64/futex.h: ... into ...
726 * config/linux/x86/futex.h: ... here.
727 * configure.tgt: Update to match.
729 2005-05-06 Richard Henderson <rth@redhat.com>
731 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
732 * config/linux/i486/futex.h: Likewise.
733 * config/linux/x86_64/futex.h: Likewise.
735 * config/linux/lock.c: New file.
736 * config/linux/omp-lock.h: New file.
738 * critical.c, env.h: Don't include omp.h
739 * config/posix/lock.c: Include libgomp.h instead of omp.h.
740 * config/posix/time.c: Likewise.
741 * config/posix/omp-lock.h: New file.
742 * libgomp.h: Include omp-lock.h and omp.h.
743 * Makefile.am (nodist_include_HEADERS): New.
745 * configure.ac (PERL): New.
746 * mkomp_h.pl: New file.
747 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
749 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
751 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
752 build directory. Re-add -march=i486 hack.
754 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
755 (libgomp_link_flags): Remove.
756 (libgomp_initialized): Remove.
757 (libgomp_init): Don't protect from reinitialization. Copy code
758 from libstdc++ for getting the multilib set correctly.
760 2005-05-05 Richard Henderson <rth@redhat.com>
762 * config/linux/alpha/futex.h: New file.
763 * configure.tgt (alpha*-*-linux*): Use it.
765 * config/posix/mutex.c: New file.
766 * config/posix/sem.c: Use libgomp.h.
768 * configure.tgt (x86_64-linux): Also test CC for -m32.
769 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
771 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
774 * Makefile.am (SUBDIRS): New.
775 (libgomp_la_LDFLAGS): Add -lpthread.
776 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
777 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
779 * libgomp_g.h: New file.
780 * libgomp.h: Split out all public declarations to libgomp_g.h.
781 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
782 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
783 * config/linux/sem.h: Likewise.
784 * config/posix/sem.h: Likewise.
786 * Makefile.am (AM_LDFLAGS): New.
787 (libgomp_version_script): Split out from ...
788 (libgomp_la_LDFLAGS): ... here.
789 (libgomp_version_info): New.
790 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
791 (LIBGOMP_ENABLE): New.
792 (LIBGOMP_CHECK_LINKER_FEATURES): New.
793 (LIBGOMP_ENABLE_SYMVERS): New.
794 * configure.ac (AC_INIT): Version 1.0.
795 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
796 (enable-linux-futex): Likewise. Rename from enable-futex.
797 (libtool_VERSION): New.
798 (LIBGOMP_ENABLE_SYMVERS): Use it.
799 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
800 * Makefile.in, aclocal.m4, configure: Rebuild.
802 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
803 (gomp_mutex_unlock_slow): Fix typo.
804 * config/linux/sem.c: Similarly.
805 (gomp_sem_post_slow): Fix typo.
806 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
807 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
808 [__PIC__] (sys_futex0): Don't use tmp output in asm.
810 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
811 (libgomp_la_LDFLAGS): Add top_srcdir to path.
812 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
813 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
814 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
815 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
816 LDFLAGS. Pull enable_futex check to top-level.
817 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
818 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
820 First attempt at real configury.
821 * Makefile, config.h: Remove file.
822 * Makefile.am, Makefile.in: New file.
823 * acinclude.m4 aclocal.m4: New file.
824 * configure.ac, configure.tgt, configure: New file.
826 * config/posix/lock.c: Rename from sys-lock.c.
827 * config/posix/mutex.h: Rename from sys-mutex.h.
828 * config/posix/sem.c: Rename from sys-sem.c.
829 * config/posix/sem.h: Rename from sys-sem.h.
830 * config/posix/proc.c: Rename from sys-proc.c.
831 * config/posix/time.c: Rename from sys-proc.c.
833 * config/linux/mutex.c: New file.
834 * config/linux/mutex.h: New file.
835 * config/linux/sem.c: New file.
836 * config/linux/sem.h: New file.
837 * config/linux/i486/futex.h: New file.
838 * config/linux/x86_64/futex.h: New file.
840 2005-05-04 Richard Henderson <rth@redhat.com>
842 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
843 * libgomp.h: Declare them.
844 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
845 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
847 2005-05-04 Richard Henderson <rth@redhat.com>
849 * libgomp-1 code drop
851 2005-05-04 Richard Henderson <rth@redhat.com>
853 * iter.c (gomp_iter_static_next): Return tri-state on 0.
854 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
855 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
856 (gomp_iter_static_next): Update.
857 (gomp_ordered_static_next): Update.
858 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
859 (gomp_loop_ordered_static_start): Likewise. Exit early for a
861 (gomp_loop_ordered_static_next): Refine test for calling
862 gomp_ordered_static_next.
863 * testsuite/ordered-1.c: Add case for more threads than iterations.
865 * iter.c (gomp_iter_runtime_next_locked): Remove.
866 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
867 gomp_loop_guided_start, gomp_loop_ordered_static_start,
868 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
869 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
870 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
871 gomp_loop_ordered_guided_next): Downcase name, make static, add
872 an external alias with the old name.
873 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
874 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
875 switch and call one of the above static functions.
878 * work.c (gomp_work_share_start): Lock the mutex for !first too.
879 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
880 GOMP_loop_guided_start, GOMP_loop_runtime_start,
881 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
882 GOMP_loop_ordered_guided_start): Update to match.
883 * sections.c (GOMP_sections_start): Likewise.
884 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
886 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
887 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
888 Use bounds check instead of modulus.
889 (gomp_ordered_sync): Split out of GOMP_ordered_start.
890 (gomp_ordered_last): Don't sync with ordered_owner here.
891 (gomp_ordered_next): Likewise.
892 (gomp_ordered_static_loop_next): Likewise.
893 * loop.c, libgomp.h: Update to match.
895 * libgomp.h (GOMP_barrier): Declare.
897 * testsuite/barrier-1.c: New file.
898 * testsuite/critical-1.c: New file.
899 * testsuite/ordered-2.c: New file.
900 * testsuite/ordered-1.c: New file.
901 * testsuite/sections-1.c: New file.
902 * testsuite/single-1.c: New file.
903 * testsuite/Makefile (TESTS): Add them.
905 2005-05-04 Richard Henderson <rth@redhat.com>
907 * libgomp.h (struct gomp_work_share): Add ordered_owner.
908 * loop.c (GOMP_loop_static_start): If not the startup thread,
909 acquire the mutex to wait for initialization complete.
910 (GOMP_loop_ordered_static_start): Likewise.
911 (GOMP_loop_ordered_runtime_start): Likewise.
912 (GOMP_loop_ordered_static_first): Remove.
913 (GOMP_loop_ordered_dynamic_first): Remove.
914 (GOMP_loop_ordered_guided_first): Remove.
915 (GOMP_loop_ordered_runtime_first): Remove.
916 * ordered.c (gomp_ordered_loop_first): Post to own release when
917 we're the first thread.
918 (gomp_ordered_loop_last): Wait on release if not owner.
919 (gomp_ordered_loop_next): Likewise.
920 (gomp_ordered_static_loop_init): New.
921 (gomp_ordered_static_loop_next): Use ordered_owner.
922 (GOMP_ordered_start): Likewise.
923 * work.c (gomp_new_work_share): Initialize ordered_owner.
925 2005-05-03 Richard Henderson <rth@redhat.com>
927 * Makefile (OPT): New.
930 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
931 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
932 * libgomp.h, libgomp.map, NOTES: Update to match.
934 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
935 Add initialized and thr members.
936 (gomp_thread_start): Pause when initially spawned to wait for
937 the whole team to be created.
938 (gomp_team_start): Release team members at the end.
940 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
941 (f_foo_1): Use GOMP_loop_end.
942 (f_foo_2): Use GOMP_loop_end_nowait.
944 * testsuite/loop-2.c: New file.
945 * testsuite/Makefile (TESTS): Add it.
947 2005-05-03 Richard Henderson <rth@redhat.com>
949 * iter.c (gomp_iter_static_next): Fix overflow check typo.
950 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
951 * team.c (new_team): Initialize oldest_live_gen to 1 if no
954 * testsuite/Makefile: New file.
955 * testsuite/loop-1.c: New file.
957 2005-05-03 Richard Henderson <rth@redhat.com>
959 Initial implementation and checkin.