1 2006-01-24 Richard Henderson <rth@redhat.com>
4 * configure.ac: Add AM_MAINTAINER_MODE.
5 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
7 2006-01-24 Diego Novillo <dnovillo@redhat.com>
9 * Makefile.in: Regenerate.
10 * testsuite/Makefile.in: Regenerate.
11 * aclocal.m4: Regenerate.
13 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
15 * config/posix/proc.c: Conditional include of sys/loadavg.h for
17 * configure.ac: Add check for loadavg.h.
18 (link_gomp): Adjust comment.
19 * configure: Regenerate.
20 * config.h.in: Regenerate.
22 2006-01-21 Steve Ellcey <sje@cup.hp.com>
25 * configure.ac: Remove check for alloca.h.
26 * configure: Regenerate.
27 * config.h.in: Regenerate.
28 * libgomp.h: define gomp_alloca to be __builtin_alloca.
29 * team.c: Remove use of alloca.h.
30 Call gomp_alloca instead of alloca.
32 2006-01-20 Steve Ellcey <sje@cup.hp.com>
35 * team.c: Add include of alloca.h.
36 * configure.ac: Add check for alloca.h.
37 * configure: Regenerate.
38 * config.h.in: Regenerate.
40 2006-01-17 Jakub Jelinek <jakub@redhat.com>
43 * testsuite/libgomp.fortran/pr25219.f90: New test.
45 2005-12-05 Uros Bizjak <uros@kss-loka.si>
47 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
48 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
49 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
50 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
51 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
52 testsuite/libgomp.fortran/threadprivate1.f90,
53 testsuite/libgomp.fortran/threadprivate2.f90,
54 testsuite/libgomp.fortran/threadprivate3.f90,
55 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
56 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
57 testsuite/libgomp.fortran/omp_parse3.f90: Change required
58 effective-target to TLS runtime.
60 * testsuite/libgomp.fortran/pr25162.f: Require
61 effective-target TLS runtime.
63 2005-12-01 Jakub Jelinek <jakub@redhat.com>
65 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
66 * testsuite/libgomp.c/nestedfn-3.c: New test.
68 2005-11-30 Jakub Jelinek <jakub@redhat.com>
71 * testsuite/libgomp.fortran/pr25162.f: New test.
73 2005-11-28 Jakub Jelinek <jakub@redhat.com>
75 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
76 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
78 2005-11-25 Jakub Jelinek <jakub@redhat.com>
80 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
81 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
82 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
83 single.c, team.c, work.c, config/linux/alpha/futex.h,
84 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
85 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
86 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
87 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
88 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
89 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
90 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
93 2005-11-18 Jakub Jelinek <jakub@redhat.com>
95 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
96 to nodist_noinst_HEADERS.
97 * Makefile.in: Rebuilt.
99 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
100 add integer count field.
101 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
102 omp_nest_lock_t type change.
103 (omp_init_nest_lock): Likewise. Initialize count to 0.
104 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
106 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
108 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
109 Increment count if successful and return the new nesting level.
110 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
111 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
112 * testsuite/libgomp.c/lib-1.c: New test.
113 * testsuite/libgomp.fortran/lib1.f90: New test.
114 * testsuite/libgomp.fortran/lib2.f: New test.
115 * testsuite/libgomp.fortran/lib3.f: New test.
117 2005-11-17 Richard Henderson <rth@redhat.com>
120 * Makefile.am (nodist_toolexeclib_HEADERS): New.
121 * configure.ac (link_gomp): New. Substitute it.
122 (AC_CONFIG_FILES): Add libgomp.spec.
123 * libgomp.spec.in: New file.
124 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
125 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
127 2005-11-18 Jakub Jelinek <jakub@redhat.com>
129 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
130 reduction(-:var) behaving the same as reduction(+:var).
131 * testsuite/libgomp.c/reduction-4.c: New test.
133 2005-11-15 Uros Bizjak <uros@kss-loka.si>
135 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
136 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
137 testsuite/libgomp.c/copyin-3.c,
138 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
139 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
140 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
141 testsuite/libgomp.c++/pr24455.C,
142 testsuite/libgomp.fortran/threadprivate1.f90,
143 testsuite/libgomp.fortran/threadprivate2.f90,
144 testsuite/libgomp.fortran/threadprivate3.f90,
145 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
146 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
147 testsuite/libgomp.fortran/omp_parse3.f90: Require
148 effective-target TLS.
150 2005-11-14 Diego Novillo <dnovillo@redhat.com>
154 2005-11-13 Jakub Jelinek <jakub@redhat.com>
157 * team.c (initialize_team): Pass NULL rather than free as
158 pthread_key_create destructor. Initialize thread specific data
159 pointer in initial thread to a static local variable rather than
162 2005-11-11 Uros Bizjak <uros@kss-loka.si>
164 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
165 its location to ld_library_path.
167 2005-11-10 Diego Novillo <dnovillo@redhat.com>
169 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
171 2005-11-10 Diego Novillo <dnovillo@redhat.com>
173 * testsuite/libgomp.c: Rename from libgomp.dg.
175 2005-11-09 Diego Novillo <dnovillo@redhat.com>
177 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
178 threadprivate variable 'i'.
180 2005-11-09 Jakub Jelinek <jakub@redhat.com>
182 * config/linux/s390/futex.h: New file.
183 * configure.tgt: Use it.
185 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
188 2005-11-08 Jakub Jelinek <jakub@redhat.com>
191 * testsuite/libgomp.c++/master-1.C: New test.
193 2005-11-07 Jakub Jelinek <jakub@redhat.com>
195 * testsuite/libgomp.dg/copyin-3.c: New test.
197 2005-11-07 Jakub Jelinek <jakub@redhat.com>
199 * testsuite/libgomp.fortran/retval1.f90: New test.
200 * testsuite/libgomp.fortran/vla7.f90: New test.
202 2005-11-06 Jakub Jelinek <jakub@redhat.com>
204 * testsuite/libgomp.fortran/vla2.f90: New test.
205 * testsuite/libgomp.fortran/vla3.f90: New test.
206 * testsuite/libgomp.fortran/vla4.f90: New test.
207 * testsuite/libgomp.fortran/vla5.f90: New test.
208 * testsuite/libgomp.fortran/vla6.f90: New test.
210 2005-11-01 Jakub Jelinek <jakub@redhat.com>
212 * config/linux/sparc/futex.h: New file.
213 * configure.tgt: Use it.
214 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
216 * critical.c: Include stdlib.h.
217 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
218 ignoring return value.
219 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
220 LIBGOMP_CHECK_SYNC_BUILTINS check.
221 * configure: Rebuilt.
223 2005-10-31 Jakub Jelinek <jakub@redhat.com>
225 * testsuite/libgomp.fortran/vla1.f90: New test.
227 2005-10-31 Richard Henderson <rth@redhat.com>
229 * testsuite/libgomp.fortran/character2.f90: Fix race condition
230 setting 's' in different threads.
232 2005-10-31 Jakub Jelinek <jakub@redhat.com>
234 * libgomp.h (attribute_hidden, ialias): Define.
235 * config/posix/proc.c (omp_get_num_procs): Add ialias.
236 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
237 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
238 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
239 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
240 omp_test_lock, omp_test_nest_lock): Likewise.
241 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
242 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
243 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
244 omp_test_lock, omp_test_nest_lock): Likewise.
245 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
246 omp_get_dynamic, omp_get_nested): Likewise.
247 * parallel.c (omp_get_num_threads, omp_get_max_threads,
248 omp_get_thread_num, omp_in_parallel): Likewise.
249 * fortran.c (ialias_redirect): Define.
250 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
251 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
252 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
253 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
254 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
255 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
256 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
257 omp_get_wtime): Add ialias_redirect.
259 2005-10-30 Jakub Jelinek <jakub@redhat.com>
261 * fortran.c: Include stdlib.h.
263 2005-10-29 Jakub Jelinek <jakub@redhat.com>
265 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
266 * Makefile.in: Regenerated.
268 2005-10-28 Jakub Jelinek <jakub@redhat.com>
270 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
271 * libgomp_f.h.in (omp_check_defines): New function.
272 * env.c: Include libgomp_f.h.
273 (initialize_env): Call omp_check_defines.
275 * testsuite/libgomp.dg/copyin-2.c: New test.
276 * testsuite/libgomp.c++/copyin-2.C: New test.
277 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
279 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
280 * testsuite/libgomp.fortran/sharing2.f90: New test.
282 * testsuite/libgomp.dg/copyin-1.c: New test.
283 * testsuite/libgomp.c++/copyin-1.C: New test.
285 2005-10-26 Jakub Jelinek <jakub@redhat.com>
287 * testsuite/libgomp.fortran/crayptr1.f90: New test.
289 * testsuite/libgomp.fortran/workshare1.f90: New test.
291 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
293 * libgomp.fortran/sharing1.f90: New test.
295 2005-10-24 Jakub Jelinek <jakub@redhat.com>
298 * testsuite/libgomp.c++/loop-7.C: New test.
300 * testsuite/libgomp.dg/nestedfn-2.c: New test.
302 * testsuite/libgomp.dg/nestedfn-1.c: New test.
303 * testsuite/libgomp.fortran/reduction6.f90: New test.
304 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
306 2005-10-23 Richard Henderson <rth@redhat.com>
308 * testsuite/libgomp.c++/ctor-1.C: New.
309 * testsuite/libgomp.c++/ctor-2.C: New.
310 * testsuite/libgomp.c++/ctor-3.C: New.
311 * testsuite/libgomp.c++/ctor-4.C: New.
312 * testsuite/libgomp.c++/ctor-5.C: New.
313 * testsuite/libgomp.c++/ctor-6.C: New.
314 * testsuite/libgomp.c++/ctor-7.C: New.
315 * testsuite/libgomp.c++/ctor-8.C: New.
316 * testsuite/libgomp.c++/ctor-9.C: New.
318 2005-10-21 Diego Novillo <dnovillo@redhat.com>
321 * testsuite/libgomp.c++/pr24455-1.C: New test.
322 * testsuite/libgomp.c++/pr24455.C: New test.
323 * testsuite/libgomp.dg/pr24455-1.c: New test.
324 * testsuite/libgomp.dg/pr24455.c: New test.
326 2005-10-20 Richard Henderson <rth@redhat.com>
328 * testsuite/libgomp.c++/loop-6.C: New.
329 * testsuite/libgomp.dg/loop-3.c: New.
331 2005-10-20 Jakub Jelinek <jakub@redhat.com>
333 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
335 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
338 2005-10-19 Diego Novillo <dnovillo@redhat.com>
340 * testsuite/libgomp.fortran/jacobi.f: New test.
342 2005-10-19 Richard Henderson <rth@redhat.com>
344 * configure.tgt (i?86-linux): Default to with_arch instead of
345 CFLAGS. Add -mtune to match target_cpu.
346 (x86_64-linux): Tune to i686.
348 * fortran.c (omp_test_nest_lock_): Fix typo.
350 2005-10-19 Jakub Jelinek <jakub@redhat.com>
352 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
353 gomp_ordered_sync): Do nothing if team->nthreads == 1.
354 * testsuite/libgomp.dg/ordered-3.c: New test.
356 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
357 Remove volatile keyword.
359 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
360 in COMMON block to avoid warnings on 64-bit targets.
362 2005-10-18 Diego Novillo <dnovillo@redhat.com>
364 * testsuite/libgomp.dg/shared-3.c: New test.
366 2005-10-18 Jakub Jelinek <jakub@redhat.com>
368 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
369 * testsuite/libgomp.fortran/reduction5.f90: New test.
371 2005-10-18 Jakub Jelinek <jakub@redhat.com>
373 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
375 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
376 flush loop now that __sync_synchronize has proper memory barrier.
377 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
378 Add -ffixed-form to dg-options.
380 2005-10-17 Diego Novillo <dnovillo@redhat.com>
382 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
384 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
385 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
386 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
387 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
388 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
389 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
390 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
391 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
392 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
393 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
394 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
395 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
396 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
397 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
398 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
399 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
400 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
401 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
402 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
403 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
404 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
405 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
406 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
407 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
408 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
410 2005-10-17 Jakub Jelinek <jakub@redhat.com>
412 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
413 lang_library_path exists. Use find instead of glob to gather tests.
414 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
416 2005-10-17 Diego Novillo <dnovillo@redhat.com>
418 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
419 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
420 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
421 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
422 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
423 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
424 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
425 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
426 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
427 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
428 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
429 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
430 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
432 2005-10-15 Jakub Jelinek <jakub@redhat.com>
434 * testsuite/libgomp.dg/vla-1.c: New test.
436 * testsuite/libgomp.fortran/reference2.f90: New test.
438 * testsuite/libgomp.fortran/character2.f90: Remove explicit
439 declaration of omp_get_thread_num.
440 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
443 * testsuite/libgomp.fortran/reduction1.f90: New test.
444 * testsuite/libgomp.fortran/reduction2.f90: New test.
445 * testsuite/libgomp.fortran/reduction3.f90: New test.
446 * testsuite/libgomp.fortran/reduction4.f90: New test.
448 2005-10-13 Richard Henderson <rth@redhat.com>
450 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
451 * Makefile.in: Regenerate.
452 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
453 * libgomp.h: Include bar.h.
454 (struct gomp_barrier): Remove.
455 (struct gomp_team): Add barrier. Replace master_barrier with
456 master_release. Replace threads with ordered_release.
457 (struct gomp_thread): Replace barrier with release.
458 * ordered.c (gomp_ordered_first): Update for ordered_release change.
459 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
460 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
461 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
462 (GOMP_single_copy_end): Likewise.
463 * team.c (gomp_threads_dock): New.
464 (gomp_barrier_init, gomp_barrier_destroy): Remove.
465 (gomp_thread_start): Use gomp_barrier_wait.
466 (new_team, free_team): Update for gomp_team changes.
467 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
468 (gomp_team_end): Use gomp_barrier_wait.
469 (initialize_team): Update for gomp_thread changes.
470 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
471 (gomp_work_share_end_nowait): Use atomic ops when available.
472 * config/linux/bar.c, config/linux/bar.h: New files.
473 * config/posix/bar.c, config/posix/bar.h: New files.
475 2005-10-13 Jakub Jelinek <jakub@redhat.com>
477 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
478 * testsuite/libgomp.dg/single-2.c: New test.
480 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
481 lang_link_flags): Unset, so that they aren't inherited from previously
484 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
486 2005-10-12 Richard Henderson <rth@redhat.com>
488 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
489 (libgomp_init): Use lang_test_file, lang_library_path, and
490 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
492 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
493 (lang_test_file, lang_link_flags): New.
494 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
496 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
497 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
498 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
499 testsuite/libgomp.c++/parallel-1.C,
500 testsuite/libgomp.c++/reduction-1.C,
501 testsuite/libgomp.c++/reduction-2.C,
502 testsuite/libgomp.c++/reduction-3.C,
503 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
504 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
505 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
506 New files, largely cribbed from the C testsuite.
508 2005-10-12 Jakub Jelinek <jakub@redhat.com>
510 * testsuite/libgomp.fortran/character1.f90: New test.
511 * testsuite/libgomp.fortran/character2.f90: New test.
513 * testsuite/libgomp.dg/nested-1.c: New test.
514 * testsuite/libgomp.dg/nested-2.c: New test.
515 * testsuite/libgomp.fortran/do1.f90: New test.
516 * testsuite/libgomp.fortran/do2.f90: New test.
518 * testsuite/libgomp.fortran/reference1.f90: New test.
520 2005-10-11 Jakub Jelinek <jakub@redhat.com>
522 * testsuite/libgomp.dg/reduction-1.c: New test.
523 * testsuite/libgomp.dg/reduction-2.c: New test.
524 * testsuite/libgomp.dg/reduction-3.c: New test.
526 2005-10-10 Jakub Jelinek <jakub@redhat.com>
528 * testsuite/libgomp.dg/atomic-1.c: New test.
529 * testsuite/libgomp.dg/atomic-2.c: New test.
531 2005-10-09 Richard Henderson <rth@redhat.com>
533 * critical.c (atomic_lock): New.
534 (initialize_critical): Initialize it.
535 (GOMP_atomic_start, GOMP_atomic_end): New.
536 * libgomp.map: Export them.
537 * libgomp_g.h: Declare them.
539 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
541 2005-10-02 Richard Henderson <rth@redhat.com>
543 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
544 to XCFLAGS instead of CFLAGS.
546 2005-09-30 Richard Henderson <rth@redhat.com>
548 * configure.ac: Determine whether -pthread or -lpthread is needed.
549 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
550 * Makefine.in, configure: Rebuild.
552 2005-09-28 Richard Henderson <rth@redhat.com>
554 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
555 * testsuite/libgomp.dg/omp-single-3.c: New test.
557 2005-09-28 Diego Novillo <dnovillo@redhat.com>
559 * testsuite/libgomp.dg/omp-single-2.c: New test.
560 * testsuite/libgomp.dg/shared-2.c: Fix return code.
562 2005-09-27 Richard Henderson <rth@redhat.com>
564 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
565 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
567 2005-09-27 Jakub Jelinek <jakub@redhat.com>
569 * testsuite/libgomp.dg/omp-loop03.c: New test.
571 2005-09-27 Diego Novillo <dnovillo@redhat.com>
573 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
575 2005-09-27 Diego Novillo <dnovillo@redhat.com>
577 * testsuite/libgomp.dg/omp-single-1.c: New test.
578 * testsuite/libgomp.dg/shared-1.c: Return 0.
579 Add prototype for abort.
580 * testsuite/libgomp.dg/shared-2.c: Likewise.
582 2005-09-26 Jakub Jelinek <jakub@redhat.com>
584 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
587 2005-09-26 Diego Novillo <dnovillo@redhat.com>
589 * testsuite/libgomp.dg/shared-1.c: New test.
590 * testsuite/libgomp.dg/shared-2.c: New test.
592 2005-09-24 Richard Henderson <rth@redhat.com>
594 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
596 2005-09-24 Richard Henderson <rth@redhat.com>
598 * iter.c (gomp_iter_static_next): Round up when computing number
599 of iterations. Don't bother distributing a remainder equally.
601 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
602 Don't call srand. Zero b before testing.
605 2005-09-24 Jakub Jelinek <jakub@redhat.com>
607 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
608 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
610 2005-09-23 Jakub Jelinek <jakub@redhat.com>
612 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
613 without !$omp end do, followed immediately by subroutine end.
615 2005-09-23 Diego Novillo <dnovillo@redhat.com>
617 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
619 2005-09-22 Richard Henderson <rth@redhat.com>
621 * critical.c (GOMP_critical_name_start): Change argument to void**.
622 Reuse the pointer space if the mutex fits.
623 (GOMP_critical_name_end): Likewise.
624 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
625 * libgomp_g.h (GOMP_critical_name_start): Update decl.
626 (GOMP_critical_name_end): Likewise.
627 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
628 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
630 2005-09-20 Richard Henderson <rth@redhat.com>
632 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
633 (create_lock_lock): New.
634 (initialize_critical): Initialize it.
635 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
636 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
638 2005-09-20 Diego Novillo <dnovillo@redhat.com>
640 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
642 2005-09-20 Diego Novillo <dnovillo@redhat.com>
644 * testsuite/libgomp.dg/omp-loop01.c: New test.
645 * testsuite/libgomp.dg/omp-loop02.c: New test.
647 2005-09-20 Jakub Jelinek <jakub@redhat.com>
649 * configure.ac (AC_PROG_FC): Add.
650 (USE_FORTRAN): New automake conditional.
651 * configure: Rebuilt.
652 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
653 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
654 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
655 Add rules to build them.
656 * Makefile.in: Rebuilt.
657 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
659 * libgomp.map: Add Fortran wrappers.
660 * libgomp_f.h.in: New file.
661 * omp_lib.h.in: New file.
662 * omp_lib.f90.in: New file.
663 * fortran.c: New file.
664 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
665 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
666 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
667 libgfortran has been built.
668 * testsuite/libgomp.fortran/fortran.exp: New file.
669 * testsuite/libgomp.fortran/omp_cond1.f: New test.
670 * testsuite/libgomp.fortran/omp_cond2.f: New test.
671 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
672 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
673 * testsuite/libgomp.fortran/omp_hello.f: New test.
674 * testsuite/libgomp.fortran/omp_orphan.f: New test.
675 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
676 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
677 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
678 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
679 * testsuite/libgomp.fortran/omp_reduction.f: New test.
680 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
681 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
683 2005-08-30 Richard Henderson <rth@redhat.com>
685 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
686 function for when aliases are not usable.
687 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
688 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
689 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
690 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
691 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
692 GOMP_loop_ordered_guided_next): Likewise.
693 * ordered.c (GOMP_ordered_start): Likewise.
695 2005-08-01 Diego Novillo <dnovillo@redhat.com>
697 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
698 * testsuite/libgomp.dg/omp_hello.c: Fix return code
699 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
700 * testsuite/libgomp.dg/omp_orphan.c: Likewise
701 * testsuite/libgomp.dg/omp_reduction.c: Likewise
702 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
703 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
704 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
705 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
707 2005-07-07 Eric Christopher <echristo@redhat.com>
708 Diego Novillo <dnovillo@redhat.com>
710 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
711 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
713 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
714 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
715 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
716 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
717 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
718 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
719 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
721 2005-06-13 Diego Novillo <dnovillo@redhat.com>
723 * TOPLEVEL.patch: Remove.
725 2005-05-16 Richard Henderson <rth@redhat.com>
727 * configure.ac: Test for clock_gettime.
728 * config.h.in, configure: Rebuild.
729 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
730 (omp_get_wtime): Use clock_gettime if available.
731 (omp_get_wtick): Use clock_getres if available.
733 2005-05-11 Richard Henderson <rth@redhat.com>
735 * config/linux/ia64/futex.h: New file.
736 * configure.tgt: Use it.
738 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
740 2005-05-07 Richard Henderson <rth@redhat.com>
742 * config/linux/powerpc/futex.h: New file.
743 * configure.tgt: Use it.
745 * config/linux/i486/futex.h: Merge ...
746 * config/linux/x86_64/futex.h: ... into ...
747 * config/linux/x86/futex.h: ... here.
748 * configure.tgt: Update to match.
750 2005-05-06 Richard Henderson <rth@redhat.com>
752 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
753 * config/linux/i486/futex.h: Likewise.
754 * config/linux/x86_64/futex.h: Likewise.
756 * config/linux/lock.c: New file.
757 * config/linux/omp-lock.h: New file.
759 * critical.c, env.h: Don't include omp.h
760 * config/posix/lock.c: Include libgomp.h instead of omp.h.
761 * config/posix/time.c: Likewise.
762 * config/posix/omp-lock.h: New file.
763 * libgomp.h: Include omp-lock.h and omp.h.
764 * Makefile.am (nodist_include_HEADERS): New.
766 * configure.ac (PERL): New.
767 * mkomp_h.pl: New file.
768 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
770 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
772 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
773 build directory. Re-add -march=i486 hack.
775 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
776 (libgomp_link_flags): Remove.
777 (libgomp_initialized): Remove.
778 (libgomp_init): Don't protect from reinitialization. Copy code
779 from libstdc++ for getting the multilib set correctly.
781 2005-05-05 Richard Henderson <rth@redhat.com>
783 * config/linux/alpha/futex.h: New file.
784 * configure.tgt (alpha*-*-linux*): Use it.
786 * config/posix/mutex.c: New file.
787 * config/posix/sem.c: Use libgomp.h.
789 * configure.tgt (x86_64-linux): Also test CC for -m32.
790 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
792 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
795 * Makefile.am (SUBDIRS): New.
796 (libgomp_la_LDFLAGS): Add -lpthread.
797 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
798 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
800 * libgomp_g.h: New file.
801 * libgomp.h: Split out all public declarations to libgomp_g.h.
802 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
803 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
804 * config/linux/sem.h: Likewise.
805 * config/posix/sem.h: Likewise.
807 * Makefile.am (AM_LDFLAGS): New.
808 (libgomp_version_script): Split out from ...
809 (libgomp_la_LDFLAGS): ... here.
810 (libgomp_version_info): New.
811 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
812 (LIBGOMP_ENABLE): New.
813 (LIBGOMP_CHECK_LINKER_FEATURES): New.
814 (LIBGOMP_ENABLE_SYMVERS): New.
815 * configure.ac (AC_INIT): Version 1.0.
816 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
817 (enable-linux-futex): Likewise. Rename from enable-futex.
818 (libtool_VERSION): New.
819 (LIBGOMP_ENABLE_SYMVERS): Use it.
820 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
821 * Makefile.in, aclocal.m4, configure: Rebuild.
823 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
824 (gomp_mutex_unlock_slow): Fix typo.
825 * config/linux/sem.c: Similarly.
826 (gomp_sem_post_slow): Fix typo.
827 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
828 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
829 [__PIC__] (sys_futex0): Don't use tmp output in asm.
831 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
832 (libgomp_la_LDFLAGS): Add top_srcdir to path.
833 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
834 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
835 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
836 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
837 LDFLAGS. Pull enable_futex check to top-level.
838 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
839 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
841 First attempt at real configury.
842 * Makefile, config.h: Remove file.
843 * Makefile.am, Makefile.in: New file.
844 * acinclude.m4 aclocal.m4: New file.
845 * configure.ac, configure.tgt, configure: New file.
847 * config/posix/lock.c: Rename from sys-lock.c.
848 * config/posix/mutex.h: Rename from sys-mutex.h.
849 * config/posix/sem.c: Rename from sys-sem.c.
850 * config/posix/sem.h: Rename from sys-sem.h.
851 * config/posix/proc.c: Rename from sys-proc.c.
852 * config/posix/time.c: Rename from sys-proc.c.
854 * config/linux/mutex.c: New file.
855 * config/linux/mutex.h: New file.
856 * config/linux/sem.c: New file.
857 * config/linux/sem.h: New file.
858 * config/linux/i486/futex.h: New file.
859 * config/linux/x86_64/futex.h: New file.
861 2005-05-04 Richard Henderson <rth@redhat.com>
863 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
864 * libgomp.h: Declare them.
865 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
866 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
868 2005-05-04 Richard Henderson <rth@redhat.com>
870 * libgomp-1 code drop
872 2005-05-04 Richard Henderson <rth@redhat.com>
874 * iter.c (gomp_iter_static_next): Return tri-state on 0.
875 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
876 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
877 (gomp_iter_static_next): Update.
878 (gomp_ordered_static_next): Update.
879 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
880 (gomp_loop_ordered_static_start): Likewise. Exit early for a
882 (gomp_loop_ordered_static_next): Refine test for calling
883 gomp_ordered_static_next.
884 * testsuite/ordered-1.c: Add case for more threads than iterations.
886 * iter.c (gomp_iter_runtime_next_locked): Remove.
887 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
888 gomp_loop_guided_start, gomp_loop_ordered_static_start,
889 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
890 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
891 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
892 gomp_loop_ordered_guided_next): Downcase name, make static, add
893 an external alias with the old name.
894 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
895 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
896 switch and call one of the above static functions.
899 * work.c (gomp_work_share_start): Lock the mutex for !first too.
900 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
901 GOMP_loop_guided_start, GOMP_loop_runtime_start,
902 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
903 GOMP_loop_ordered_guided_start): Update to match.
904 * sections.c (GOMP_sections_start): Likewise.
905 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
907 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
908 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
909 Use bounds check instead of modulus.
910 (gomp_ordered_sync): Split out of GOMP_ordered_start.
911 (gomp_ordered_last): Don't sync with ordered_owner here.
912 (gomp_ordered_next): Likewise.
913 (gomp_ordered_static_loop_next): Likewise.
914 * loop.c, libgomp.h: Update to match.
916 * libgomp.h (GOMP_barrier): Declare.
918 * testsuite/barrier-1.c: New file.
919 * testsuite/critical-1.c: New file.
920 * testsuite/ordered-2.c: New file.
921 * testsuite/ordered-1.c: New file.
922 * testsuite/sections-1.c: New file.
923 * testsuite/single-1.c: New file.
924 * testsuite/Makefile (TESTS): Add them.
926 2005-05-04 Richard Henderson <rth@redhat.com>
928 * libgomp.h (struct gomp_work_share): Add ordered_owner.
929 * loop.c (GOMP_loop_static_start): If not the startup thread,
930 acquire the mutex to wait for initialization complete.
931 (GOMP_loop_ordered_static_start): Likewise.
932 (GOMP_loop_ordered_runtime_start): Likewise.
933 (GOMP_loop_ordered_static_first): Remove.
934 (GOMP_loop_ordered_dynamic_first): Remove.
935 (GOMP_loop_ordered_guided_first): Remove.
936 (GOMP_loop_ordered_runtime_first): Remove.
937 * ordered.c (gomp_ordered_loop_first): Post to own release when
938 we're the first thread.
939 (gomp_ordered_loop_last): Wait on release if not owner.
940 (gomp_ordered_loop_next): Likewise.
941 (gomp_ordered_static_loop_init): New.
942 (gomp_ordered_static_loop_next): Use ordered_owner.
943 (GOMP_ordered_start): Likewise.
944 * work.c (gomp_new_work_share): Initialize ordered_owner.
946 2005-05-03 Richard Henderson <rth@redhat.com>
948 * Makefile (OPT): New.
951 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
952 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
953 * libgomp.h, libgomp.map, NOTES: Update to match.
955 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
956 Add initialized and thr members.
957 (gomp_thread_start): Pause when initially spawned to wait for
958 the whole team to be created.
959 (gomp_team_start): Release team members at the end.
961 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
962 (f_foo_1): Use GOMP_loop_end.
963 (f_foo_2): Use GOMP_loop_end_nowait.
965 * testsuite/loop-2.c: New file.
966 * testsuite/Makefile (TESTS): Add it.
968 2005-05-03 Richard Henderson <rth@redhat.com>
970 * iter.c (gomp_iter_static_next): Fix overflow check typo.
971 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
972 * team.c (new_team): Initialize oldest_live_gen to 1 if no
975 * testsuite/Makefile: New file.
976 * testsuite/loop-1.c: New file.
978 2005-05-03 Richard Henderson <rth@redhat.com>
980 Initial implementation and checkin.