1 2006-01-20 Steve Ellcey <sje@cup.hp.com>
4 * team.c: Add include of alloca.h.
5 * configure.ac: Add check for alloca.h.
6 * configure: Regenerate.
7 * config.h.in: Regenerate.
9 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12 * testsuite/libgomp.fortran/pr25219.f90: New test.
14 2005-12-05 Uros Bizjak <uros@kss-loka.si>
16 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
17 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
18 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
21 testsuite/libgomp.fortran/threadprivate1.f90,
22 testsuite/libgomp.fortran/threadprivate2.f90,
23 testsuite/libgomp.fortran/threadprivate3.f90,
24 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
25 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
26 testsuite/libgomp.fortran/omp_parse3.f90: Change required
27 effective-target to TLS runtime.
29 * testsuite/libgomp.fortran/pr25162.f: Require
30 effective-target TLS runtime.
32 2005-12-01 Jakub Jelinek <jakub@redhat.com>
34 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
35 * testsuite/libgomp.c/nestedfn-3.c: New test.
37 2005-11-30 Jakub Jelinek <jakub@redhat.com>
40 * testsuite/libgomp.fortran/pr25162.f: New test.
42 2005-11-28 Jakub Jelinek <jakub@redhat.com>
44 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
45 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
47 2005-11-25 Jakub Jelinek <jakub@redhat.com>
49 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
50 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
51 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
52 single.c, team.c, work.c, config/linux/alpha/futex.h,
53 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
54 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
55 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
56 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
57 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
58 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
59 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
62 2005-11-18 Jakub Jelinek <jakub@redhat.com>
64 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
65 to nodist_noinst_HEADERS.
66 * Makefile.in: Rebuilt.
68 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
69 add integer count field.
70 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
71 omp_nest_lock_t type change.
72 (omp_init_nest_lock): Likewise. Initialize count to 0.
73 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
75 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
77 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
78 Increment count if successful and return the new nesting level.
79 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
80 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
81 * testsuite/libgomp.c/lib-1.c: New test.
82 * testsuite/libgomp.fortran/lib1.f90: New test.
83 * testsuite/libgomp.fortran/lib2.f: New test.
84 * testsuite/libgomp.fortran/lib3.f: New test.
86 2005-11-17 Richard Henderson <rth@redhat.com>
89 * Makefile.am (nodist_toolexeclib_HEADERS): New.
90 * configure.ac (link_gomp): New. Substitute it.
91 (AC_CONFIG_FILES): Add libgomp.spec.
92 * libgomp.spec.in: New file.
93 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
94 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
96 2005-11-18 Jakub Jelinek <jakub@redhat.com>
98 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
99 reduction(-:var) behaving the same as reduction(+:var).
100 * testsuite/libgomp.c/reduction-4.c: New test.
102 2005-11-15 Uros Bizjak <uros@kss-loka.si>
104 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
105 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
106 testsuite/libgomp.c/copyin-3.c,
107 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
108 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
109 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
110 testsuite/libgomp.c++/pr24455.C,
111 testsuite/libgomp.fortran/threadprivate1.f90,
112 testsuite/libgomp.fortran/threadprivate2.f90,
113 testsuite/libgomp.fortran/threadprivate3.f90,
114 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
115 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
116 testsuite/libgomp.fortran/omp_parse3.f90: Require
117 effective-target TLS.
119 2005-11-14 Diego Novillo <dnovillo@redhat.com>
123 2005-11-13 Jakub Jelinek <jakub@redhat.com>
126 * team.c (initialize_team): Pass NULL rather than free as
127 pthread_key_create destructor. Initialize thread specific data
128 pointer in initial thread to a static local variable rather than
131 2005-11-11 Uros Bizjak <uros@kss-loka.si>
133 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
134 its location to ld_library_path.
136 2005-11-10 Diego Novillo <dnovillo@redhat.com>
138 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
140 2005-11-10 Diego Novillo <dnovillo@redhat.com>
142 * testsuite/libgomp.c: Rename from libgomp.dg.
144 2005-11-09 Diego Novillo <dnovillo@redhat.com>
146 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
147 threadprivate variable 'i'.
149 2005-11-09 Jakub Jelinek <jakub@redhat.com>
151 * config/linux/s390/futex.h: New file.
152 * configure.tgt: Use it.
154 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
157 2005-11-08 Jakub Jelinek <jakub@redhat.com>
160 * testsuite/libgomp.c++/master-1.C: New test.
162 2005-11-07 Jakub Jelinek <jakub@redhat.com>
164 * testsuite/libgomp.dg/copyin-3.c: New test.
166 2005-11-07 Jakub Jelinek <jakub@redhat.com>
168 * testsuite/libgomp.fortran/retval1.f90: New test.
169 * testsuite/libgomp.fortran/vla7.f90: New test.
171 2005-11-06 Jakub Jelinek <jakub@redhat.com>
173 * testsuite/libgomp.fortran/vla2.f90: New test.
174 * testsuite/libgomp.fortran/vla3.f90: New test.
175 * testsuite/libgomp.fortran/vla4.f90: New test.
176 * testsuite/libgomp.fortran/vla5.f90: New test.
177 * testsuite/libgomp.fortran/vla6.f90: New test.
179 2005-11-01 Jakub Jelinek <jakub@redhat.com>
181 * config/linux/sparc/futex.h: New file.
182 * configure.tgt: Use it.
183 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
185 * critical.c: Include stdlib.h.
186 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
187 ignoring return value.
188 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
189 LIBGOMP_CHECK_SYNC_BUILTINS check.
190 * configure: Rebuilt.
192 2005-10-31 Jakub Jelinek <jakub@redhat.com>
194 * testsuite/libgomp.fortran/vla1.f90: New test.
196 2005-10-31 Richard Henderson <rth@redhat.com>
198 * testsuite/libgomp.fortran/character2.f90: Fix race condition
199 setting 's' in different threads.
201 2005-10-31 Jakub Jelinek <jakub@redhat.com>
203 * libgomp.h (attribute_hidden, ialias): Define.
204 * config/posix/proc.c (omp_get_num_procs): Add ialias.
205 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
206 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
207 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
208 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
209 omp_test_lock, omp_test_nest_lock): Likewise.
210 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
211 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
212 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
213 omp_test_lock, omp_test_nest_lock): Likewise.
214 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
215 omp_get_dynamic, omp_get_nested): Likewise.
216 * parallel.c (omp_get_num_threads, omp_get_max_threads,
217 omp_get_thread_num, omp_in_parallel): Likewise.
218 * fortran.c (ialias_redirect): Define.
219 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
220 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
221 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
222 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
223 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
224 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
225 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
226 omp_get_wtime): Add ialias_redirect.
228 2005-10-30 Jakub Jelinek <jakub@redhat.com>
230 * fortran.c: Include stdlib.h.
232 2005-10-29 Jakub Jelinek <jakub@redhat.com>
234 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
235 * Makefile.in: Regenerated.
237 2005-10-28 Jakub Jelinek <jakub@redhat.com>
239 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
240 * libgomp_f.h.in (omp_check_defines): New function.
241 * env.c: Include libgomp_f.h.
242 (initialize_env): Call omp_check_defines.
244 * testsuite/libgomp.dg/copyin-2.c: New test.
245 * testsuite/libgomp.c++/copyin-2.C: New test.
246 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
248 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
249 * testsuite/libgomp.fortran/sharing2.f90: New test.
251 * testsuite/libgomp.dg/copyin-1.c: New test.
252 * testsuite/libgomp.c++/copyin-1.C: New test.
254 2005-10-26 Jakub Jelinek <jakub@redhat.com>
256 * testsuite/libgomp.fortran/crayptr1.f90: New test.
258 * testsuite/libgomp.fortran/workshare1.f90: New test.
260 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
262 * libgomp.fortran/sharing1.f90: New test.
264 2005-10-24 Jakub Jelinek <jakub@redhat.com>
267 * testsuite/libgomp.c++/loop-7.C: New test.
269 * testsuite/libgomp.dg/nestedfn-2.c: New test.
271 * testsuite/libgomp.dg/nestedfn-1.c: New test.
272 * testsuite/libgomp.fortran/reduction6.f90: New test.
273 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
275 2005-10-23 Richard Henderson <rth@redhat.com>
277 * testsuite/libgomp.c++/ctor-1.C: New.
278 * testsuite/libgomp.c++/ctor-2.C: New.
279 * testsuite/libgomp.c++/ctor-3.C: New.
280 * testsuite/libgomp.c++/ctor-4.C: New.
281 * testsuite/libgomp.c++/ctor-5.C: New.
282 * testsuite/libgomp.c++/ctor-6.C: New.
283 * testsuite/libgomp.c++/ctor-7.C: New.
284 * testsuite/libgomp.c++/ctor-8.C: New.
285 * testsuite/libgomp.c++/ctor-9.C: New.
287 2005-10-21 Diego Novillo <dnovillo@redhat.com>
290 * testsuite/libgomp.c++/pr24455-1.C: New test.
291 * testsuite/libgomp.c++/pr24455.C: New test.
292 * testsuite/libgomp.dg/pr24455-1.c: New test.
293 * testsuite/libgomp.dg/pr24455.c: New test.
295 2005-10-20 Richard Henderson <rth@redhat.com>
297 * testsuite/libgomp.c++/loop-6.C: New.
298 * testsuite/libgomp.dg/loop-3.c: New.
300 2005-10-20 Jakub Jelinek <jakub@redhat.com>
302 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
304 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
307 2005-10-19 Diego Novillo <dnovillo@redhat.com>
309 * testsuite/libgomp.fortran/jacobi.f: New test.
311 2005-10-19 Richard Henderson <rth@redhat.com>
313 * configure.tgt (i?86-linux): Default to with_arch instead of
314 CFLAGS. Add -mtune to match target_cpu.
315 (x86_64-linux): Tune to i686.
317 * fortran.c (omp_test_nest_lock_): Fix typo.
319 2005-10-19 Jakub Jelinek <jakub@redhat.com>
321 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
322 gomp_ordered_sync): Do nothing if team->nthreads == 1.
323 * testsuite/libgomp.dg/ordered-3.c: New test.
325 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
326 Remove volatile keyword.
328 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
329 in COMMON block to avoid warnings on 64-bit targets.
331 2005-10-18 Diego Novillo <dnovillo@redhat.com>
333 * testsuite/libgomp.dg/shared-3.c: New test.
335 2005-10-18 Jakub Jelinek <jakub@redhat.com>
337 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
338 * testsuite/libgomp.fortran/reduction5.f90: New test.
340 2005-10-18 Jakub Jelinek <jakub@redhat.com>
342 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
344 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
345 flush loop now that __sync_synchronize has proper memory barrier.
346 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
347 Add -ffixed-form to dg-options.
349 2005-10-17 Diego Novillo <dnovillo@redhat.com>
351 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
353 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
354 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
355 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
356 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
357 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
358 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
359 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
360 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
361 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
362 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
363 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
364 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
365 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
366 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
367 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
368 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
369 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
370 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
371 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
372 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
373 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
374 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
375 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
376 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
377 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
379 2005-10-17 Jakub Jelinek <jakub@redhat.com>
381 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
382 lang_library_path exists. Use find instead of glob to gather tests.
383 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
385 2005-10-17 Diego Novillo <dnovillo@redhat.com>
387 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
388 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
389 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
390 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
391 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
392 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
393 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
394 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
395 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
396 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
397 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
398 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
399 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
401 2005-10-15 Jakub Jelinek <jakub@redhat.com>
403 * testsuite/libgomp.dg/vla-1.c: New test.
405 * testsuite/libgomp.fortran/reference2.f90: New test.
407 * testsuite/libgomp.fortran/character2.f90: Remove explicit
408 declaration of omp_get_thread_num.
409 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
412 * testsuite/libgomp.fortran/reduction1.f90: New test.
413 * testsuite/libgomp.fortran/reduction2.f90: New test.
414 * testsuite/libgomp.fortran/reduction3.f90: New test.
415 * testsuite/libgomp.fortran/reduction4.f90: New test.
417 2005-10-13 Richard Henderson <rth@redhat.com>
419 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
420 * Makefile.in: Regenerate.
421 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
422 * libgomp.h: Include bar.h.
423 (struct gomp_barrier): Remove.
424 (struct gomp_team): Add barrier. Replace master_barrier with
425 master_release. Replace threads with ordered_release.
426 (struct gomp_thread): Replace barrier with release.
427 * ordered.c (gomp_ordered_first): Update for ordered_release change.
428 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
429 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
430 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
431 (GOMP_single_copy_end): Likewise.
432 * team.c (gomp_threads_dock): New.
433 (gomp_barrier_init, gomp_barrier_destroy): Remove.
434 (gomp_thread_start): Use gomp_barrier_wait.
435 (new_team, free_team): Update for gomp_team changes.
436 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
437 (gomp_team_end): Use gomp_barrier_wait.
438 (initialize_team): Update for gomp_thread changes.
439 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
440 (gomp_work_share_end_nowait): Use atomic ops when available.
441 * config/linux/bar.c, config/linux/bar.h: New files.
442 * config/posix/bar.c, config/posix/bar.h: New files.
444 2005-10-13 Jakub Jelinek <jakub@redhat.com>
446 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
447 * testsuite/libgomp.dg/single-2.c: New test.
449 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
450 lang_link_flags): Unset, so that they aren't inherited from previously
453 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
455 2005-10-12 Richard Henderson <rth@redhat.com>
457 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
458 (libgomp_init): Use lang_test_file, lang_library_path, and
459 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
461 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
462 (lang_test_file, lang_link_flags): New.
463 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
465 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
466 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
467 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
468 testsuite/libgomp.c++/parallel-1.C,
469 testsuite/libgomp.c++/reduction-1.C,
470 testsuite/libgomp.c++/reduction-2.C,
471 testsuite/libgomp.c++/reduction-3.C,
472 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
473 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
474 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
475 New files, largely cribbed from the C testsuite.
477 2005-10-12 Jakub Jelinek <jakub@redhat.com>
479 * testsuite/libgomp.fortran/character1.f90: New test.
480 * testsuite/libgomp.fortran/character2.f90: New test.
482 * testsuite/libgomp.dg/nested-1.c: New test.
483 * testsuite/libgomp.dg/nested-2.c: New test.
484 * testsuite/libgomp.fortran/do1.f90: New test.
485 * testsuite/libgomp.fortran/do2.f90: New test.
487 * testsuite/libgomp.fortran/reference1.f90: New test.
489 2005-10-11 Jakub Jelinek <jakub@redhat.com>
491 * testsuite/libgomp.dg/reduction-1.c: New test.
492 * testsuite/libgomp.dg/reduction-2.c: New test.
493 * testsuite/libgomp.dg/reduction-3.c: New test.
495 2005-10-10 Jakub Jelinek <jakub@redhat.com>
497 * testsuite/libgomp.dg/atomic-1.c: New test.
498 * testsuite/libgomp.dg/atomic-2.c: New test.
500 2005-10-09 Richard Henderson <rth@redhat.com>
502 * critical.c (atomic_lock): New.
503 (initialize_critical): Initialize it.
504 (GOMP_atomic_start, GOMP_atomic_end): New.
505 * libgomp.map: Export them.
506 * libgomp_g.h: Declare them.
508 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
510 2005-10-02 Richard Henderson <rth@redhat.com>
512 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
513 to XCFLAGS instead of CFLAGS.
515 2005-09-30 Richard Henderson <rth@redhat.com>
517 * configure.ac: Determine whether -pthread or -lpthread is needed.
518 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
519 * Makefine.in, configure: Rebuild.
521 2005-09-28 Richard Henderson <rth@redhat.com>
523 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
524 * testsuite/libgomp.dg/omp-single-3.c: New test.
526 2005-09-28 Diego Novillo <dnovillo@redhat.com>
528 * testsuite/libgomp.dg/omp-single-2.c: New test.
529 * testsuite/libgomp.dg/shared-2.c: Fix return code.
531 2005-09-27 Richard Henderson <rth@redhat.com>
533 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
534 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
536 2005-09-27 Jakub Jelinek <jakub@redhat.com>
538 * testsuite/libgomp.dg/omp-loop03.c: New test.
540 2005-09-27 Diego Novillo <dnovillo@redhat.com>
542 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
544 2005-09-27 Diego Novillo <dnovillo@redhat.com>
546 * testsuite/libgomp.dg/omp-single-1.c: New test.
547 * testsuite/libgomp.dg/shared-1.c: Return 0.
548 Add prototype for abort.
549 * testsuite/libgomp.dg/shared-2.c: Likewise.
551 2005-09-26 Jakub Jelinek <jakub@redhat.com>
553 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
556 2005-09-26 Diego Novillo <dnovillo@redhat.com>
558 * testsuite/libgomp.dg/shared-1.c: New test.
559 * testsuite/libgomp.dg/shared-2.c: New test.
561 2005-09-24 Richard Henderson <rth@redhat.com>
563 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
565 2005-09-24 Richard Henderson <rth@redhat.com>
567 * iter.c (gomp_iter_static_next): Round up when computing number
568 of iterations. Don't bother distributing a remainder equally.
570 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
571 Don't call srand. Zero b before testing.
574 2005-09-24 Jakub Jelinek <jakub@redhat.com>
576 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
577 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
579 2005-09-23 Jakub Jelinek <jakub@redhat.com>
581 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
582 without !$omp end do, followed immediately by subroutine end.
584 2005-09-23 Diego Novillo <dnovillo@redhat.com>
586 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
588 2005-09-22 Richard Henderson <rth@redhat.com>
590 * critical.c (GOMP_critical_name_start): Change argument to void**.
591 Reuse the pointer space if the mutex fits.
592 (GOMP_critical_name_end): Likewise.
593 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
594 * libgomp_g.h (GOMP_critical_name_start): Update decl.
595 (GOMP_critical_name_end): Likewise.
596 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
597 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
599 2005-09-20 Richard Henderson <rth@redhat.com>
601 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
602 (create_lock_lock): New.
603 (initialize_critical): Initialize it.
604 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
605 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
607 2005-09-20 Diego Novillo <dnovillo@redhat.com>
609 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
611 2005-09-20 Diego Novillo <dnovillo@redhat.com>
613 * testsuite/libgomp.dg/omp-loop01.c: New test.
614 * testsuite/libgomp.dg/omp-loop02.c: New test.
616 2005-09-20 Jakub Jelinek <jakub@redhat.com>
618 * configure.ac (AC_PROG_FC): Add.
619 (USE_FORTRAN): New automake conditional.
620 * configure: Rebuilt.
621 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
622 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
623 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
624 Add rules to build them.
625 * Makefile.in: Rebuilt.
626 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
628 * libgomp.map: Add Fortran wrappers.
629 * libgomp_f.h.in: New file.
630 * omp_lib.h.in: New file.
631 * omp_lib.f90.in: New file.
632 * fortran.c: New file.
633 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
634 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
635 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
636 libgfortran has been built.
637 * testsuite/libgomp.fortran/fortran.exp: New file.
638 * testsuite/libgomp.fortran/omp_cond1.f: New test.
639 * testsuite/libgomp.fortran/omp_cond2.f: New test.
640 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
641 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
642 * testsuite/libgomp.fortran/omp_hello.f: New test.
643 * testsuite/libgomp.fortran/omp_orphan.f: New test.
644 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
645 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
646 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
647 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
648 * testsuite/libgomp.fortran/omp_reduction.f: New test.
649 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
650 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
652 2005-08-30 Richard Henderson <rth@redhat.com>
654 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
655 function for when aliases are not usable.
656 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
657 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
658 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
659 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
660 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
661 GOMP_loop_ordered_guided_next): Likewise.
662 * ordered.c (GOMP_ordered_start): Likewise.
664 2005-08-01 Diego Novillo <dnovillo@redhat.com>
666 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
667 * testsuite/libgomp.dg/omp_hello.c: Fix return code
668 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
669 * testsuite/libgomp.dg/omp_orphan.c: Likewise
670 * testsuite/libgomp.dg/omp_reduction.c: Likewise
671 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
672 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
673 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
674 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
676 2005-07-07 Eric Christopher <echristo@redhat.com>
677 Diego Novillo <dnovillo@redhat.com>
679 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
680 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
682 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
683 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
684 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
685 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
686 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
687 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
688 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
690 2005-06-13 Diego Novillo <dnovillo@redhat.com>
692 * TOPLEVEL.patch: Remove.
694 2005-05-16 Richard Henderson <rth@redhat.com>
696 * configure.ac: Test for clock_gettime.
697 * config.h.in, configure: Rebuild.
698 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
699 (omp_get_wtime): Use clock_gettime if available.
700 (omp_get_wtick): Use clock_getres if available.
702 2005-05-11 Richard Henderson <rth@redhat.com>
704 * config/linux/ia64/futex.h: New file.
705 * configure.tgt: Use it.
707 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
709 2005-05-07 Richard Henderson <rth@redhat.com>
711 * config/linux/powerpc/futex.h: New file.
712 * configure.tgt: Use it.
714 * config/linux/i486/futex.h: Merge ...
715 * config/linux/x86_64/futex.h: ... into ...
716 * config/linux/x86/futex.h: ... here.
717 * configure.tgt: Update to match.
719 2005-05-06 Richard Henderson <rth@redhat.com>
721 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
722 * config/linux/i486/futex.h: Likewise.
723 * config/linux/x86_64/futex.h: Likewise.
725 * config/linux/lock.c: New file.
726 * config/linux/omp-lock.h: New file.
728 * critical.c, env.h: Don't include omp.h
729 * config/posix/lock.c: Include libgomp.h instead of omp.h.
730 * config/posix/time.c: Likewise.
731 * config/posix/omp-lock.h: New file.
732 * libgomp.h: Include omp-lock.h and omp.h.
733 * Makefile.am (nodist_include_HEADERS): New.
735 * configure.ac (PERL): New.
736 * mkomp_h.pl: New file.
737 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
739 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
741 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
742 build directory. Re-add -march=i486 hack.
744 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
745 (libgomp_link_flags): Remove.
746 (libgomp_initialized): Remove.
747 (libgomp_init): Don't protect from reinitialization. Copy code
748 from libstdc++ for getting the multilib set correctly.
750 2005-05-05 Richard Henderson <rth@redhat.com>
752 * config/linux/alpha/futex.h: New file.
753 * configure.tgt (alpha*-*-linux*): Use it.
755 * config/posix/mutex.c: New file.
756 * config/posix/sem.c: Use libgomp.h.
758 * configure.tgt (x86_64-linux): Also test CC for -m32.
759 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
761 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
764 * Makefile.am (SUBDIRS): New.
765 (libgomp_la_LDFLAGS): Add -lpthread.
766 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
767 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
769 * libgomp_g.h: New file.
770 * libgomp.h: Split out all public declarations to libgomp_g.h.
771 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
772 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
773 * config/linux/sem.h: Likewise.
774 * config/posix/sem.h: Likewise.
776 * Makefile.am (AM_LDFLAGS): New.
777 (libgomp_version_script): Split out from ...
778 (libgomp_la_LDFLAGS): ... here.
779 (libgomp_version_info): New.
780 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
781 (LIBGOMP_ENABLE): New.
782 (LIBGOMP_CHECK_LINKER_FEATURES): New.
783 (LIBGOMP_ENABLE_SYMVERS): New.
784 * configure.ac (AC_INIT): Version 1.0.
785 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
786 (enable-linux-futex): Likewise. Rename from enable-futex.
787 (libtool_VERSION): New.
788 (LIBGOMP_ENABLE_SYMVERS): Use it.
789 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
790 * Makefile.in, aclocal.m4, configure: Rebuild.
792 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
793 (gomp_mutex_unlock_slow): Fix typo.
794 * config/linux/sem.c: Similarly.
795 (gomp_sem_post_slow): Fix typo.
796 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
797 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
798 [__PIC__] (sys_futex0): Don't use tmp output in asm.
800 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
801 (libgomp_la_LDFLAGS): Add top_srcdir to path.
802 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
803 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
804 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
805 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
806 LDFLAGS. Pull enable_futex check to top-level.
807 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
808 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
810 First attempt at real configury.
811 * Makefile, config.h: Remove file.
812 * Makefile.am, Makefile.in: New file.
813 * acinclude.m4 aclocal.m4: New file.
814 * configure.ac, configure.tgt, configure: New file.
816 * config/posix/lock.c: Rename from sys-lock.c.
817 * config/posix/mutex.h: Rename from sys-mutex.h.
818 * config/posix/sem.c: Rename from sys-sem.c.
819 * config/posix/sem.h: Rename from sys-sem.h.
820 * config/posix/proc.c: Rename from sys-proc.c.
821 * config/posix/time.c: Rename from sys-proc.c.
823 * config/linux/mutex.c: New file.
824 * config/linux/mutex.h: New file.
825 * config/linux/sem.c: New file.
826 * config/linux/sem.h: New file.
827 * config/linux/i486/futex.h: New file.
828 * config/linux/x86_64/futex.h: New file.
830 2005-05-04 Richard Henderson <rth@redhat.com>
832 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
833 * libgomp.h: Declare them.
834 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
835 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
837 2005-05-04 Richard Henderson <rth@redhat.com>
839 * libgomp-1 code drop
841 2005-05-04 Richard Henderson <rth@redhat.com>
843 * iter.c (gomp_iter_static_next): Return tri-state on 0.
844 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
845 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
846 (gomp_iter_static_next): Update.
847 (gomp_ordered_static_next): Update.
848 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
849 (gomp_loop_ordered_static_start): Likewise. Exit early for a
851 (gomp_loop_ordered_static_next): Refine test for calling
852 gomp_ordered_static_next.
853 * testsuite/ordered-1.c: Add case for more threads than iterations.
855 * iter.c (gomp_iter_runtime_next_locked): Remove.
856 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
857 gomp_loop_guided_start, gomp_loop_ordered_static_start,
858 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
859 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
860 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
861 gomp_loop_ordered_guided_next): Downcase name, make static, add
862 an external alias with the old name.
863 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
864 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
865 switch and call one of the above static functions.
868 * work.c (gomp_work_share_start): Lock the mutex for !first too.
869 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
870 GOMP_loop_guided_start, GOMP_loop_runtime_start,
871 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
872 GOMP_loop_ordered_guided_start): Update to match.
873 * sections.c (GOMP_sections_start): Likewise.
874 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
876 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
877 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
878 Use bounds check instead of modulus.
879 (gomp_ordered_sync): Split out of GOMP_ordered_start.
880 (gomp_ordered_last): Don't sync with ordered_owner here.
881 (gomp_ordered_next): Likewise.
882 (gomp_ordered_static_loop_next): Likewise.
883 * loop.c, libgomp.h: Update to match.
885 * libgomp.h (GOMP_barrier): Declare.
887 * testsuite/barrier-1.c: New file.
888 * testsuite/critical-1.c: New file.
889 * testsuite/ordered-2.c: New file.
890 * testsuite/ordered-1.c: New file.
891 * testsuite/sections-1.c: New file.
892 * testsuite/single-1.c: New file.
893 * testsuite/Makefile (TESTS): Add them.
895 2005-05-04 Richard Henderson <rth@redhat.com>
897 * libgomp.h (struct gomp_work_share): Add ordered_owner.
898 * loop.c (GOMP_loop_static_start): If not the startup thread,
899 acquire the mutex to wait for initialization complete.
900 (GOMP_loop_ordered_static_start): Likewise.
901 (GOMP_loop_ordered_runtime_start): Likewise.
902 (GOMP_loop_ordered_static_first): Remove.
903 (GOMP_loop_ordered_dynamic_first): Remove.
904 (GOMP_loop_ordered_guided_first): Remove.
905 (GOMP_loop_ordered_runtime_first): Remove.
906 * ordered.c (gomp_ordered_loop_first): Post to own release when
907 we're the first thread.
908 (gomp_ordered_loop_last): Wait on release if not owner.
909 (gomp_ordered_loop_next): Likewise.
910 (gomp_ordered_static_loop_init): New.
911 (gomp_ordered_static_loop_next): Use ordered_owner.
912 (GOMP_ordered_start): Likewise.
913 * work.c (gomp_new_work_share): Initialize ordered_owner.
915 2005-05-03 Richard Henderson <rth@redhat.com>
917 * Makefile (OPT): New.
920 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
921 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
922 * libgomp.h, libgomp.map, NOTES: Update to match.
924 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
925 Add initialized and thr members.
926 (gomp_thread_start): Pause when initially spawned to wait for
927 the whole team to be created.
928 (gomp_team_start): Release team members at the end.
930 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
931 (f_foo_1): Use GOMP_loop_end.
932 (f_foo_2): Use GOMP_loop_end_nowait.
934 * testsuite/loop-2.c: New file.
935 * testsuite/Makefile (TESTS): Add it.
937 2005-05-03 Richard Henderson <rth@redhat.com>
939 * iter.c (gomp_iter_static_next): Fix overflow check typo.
940 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
941 * team.c (new_team): Initialize oldest_live_gen to 1 if no
944 * testsuite/Makefile: New file.
945 * testsuite/loop-1.c: New file.
947 2005-05-03 Richard Henderson <rth@redhat.com>
949 Initial implementation and checkin.