OSDN Git Service

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