OSDN Git Service

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