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