]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
re PR target/33579 (INIT_PRIORITY is broken)
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
98a5fa94
JJ
12007-10-25 Jakub Jelinek <jakub@redhat.com>
2
3 PR libgomp/33275
4 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
5 Make x and y integers rather than (implicit) reals. Add private (j)
6 clause to the last omp parallel.
7
3afcaaf4
MR
82007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
9
10 * configure: Regenerate following changes to ../config/tls.m4.
11
bd69daef
JJ
122007-09-28 Jakub Jelinek <jakub@redhat.com>
13
14 * testsuite/libgomp.fortran/stack.f90: New test.
15
1d0bd356
DS
162007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
17
18 * config/mingw32/proc.c: New file.
19
b3172cab
UB
202007-09-05 Uros Bizjak <ubizjak@gmail.com>
21
22 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
23 (main): Use __get_cpuid to get i386 target fetaures.
24 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
25 (main): Use __get_cpuid to get x86_64 target fetaures.
26
6da17392
JH
272007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
28
29 PR target/32765
30 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
31 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
32
e1c82219
JJ
332007-07-12 Jakub Jelinek <jakub@redhat.com>
34
35 PR fortran/32550
36 * testsuite/libgomp.fortran/pr32550.f90: New test.
37 * testsuite/libgomp.fortran/crayptr2.f90: New test.
38
12a27363
L
392007-07-05 H.J. Lu <hongjiu.lu@intel.com>
40
41 * aclocal.m4: Regenerated.
42
5349080d
TB
432007-07-05 Tobias Burnus <burnus@net-b.de>
44
45 PR fortran/32359
46 * testsuite/libgomp.fortran/pr32359.f90: New.
47
4f9c450c
JJ
482007-07-02 Jakub Jelinek <jakub@redhat.com>
49
50 PR libgomp/32468
51 * sections.c (GOMP_parallel_sections_start): Only decrease
52 number of threads to COUNT if dyn_var is true.
53 * testsuite/libgomp.c/pr32468.c: New test.
54
28c67ed7
RO
552007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
56
57 PR libgomp/26308
58 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
59
64964499
JJ
602007-06-21 Jakub Jelinek <jakub@redhat.com>
61
62 PR middle-end/32362
63 * testsuite/libgomp.c/pr32362-1.c: New test.
64 * testsuite/libgomp.c/pr32362-2.c: New test.
65 * testsuite/libgomp.c/pr32362-3.c: New test.
66
46d8fbd1
JJ
672007-06-07 Jakub Jelinek <jakub@redhat.com>
68
69 * team.c (gomp_team_start): Fix setting up thread_attr
70 stack size.
71
82a6cadf
PB
722007-06-02 Paolo Bonzini <bonzini@gnu.org>
73
74 * configure: Regenerate.
75
1cf3d07d
SE
762007-05-23 Steve Ellcey <sje@cup.hp.com>
77
78 * Makefile.in: Regenerate.
79 * configure: Regenerate.
80 * aclocal.m4: Regenerate.
81 * testsuite/Makefile.in: Regenerate.
82
12aac30b
JJ
832007-05-04 Jakub Jelinek <jakub@redhat.com>
84
85 * config/linux/proc.c: New file.
86
f1028b02
JJ
87 PR libgomp/28482
88 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
89
06785a48
DF
902007-04-19 Daniel Franke <franke.daniel@gmail.com>
91
92 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
93
b3b08ba0
MK
942007-04-16 Matthias Klose <doko@debian.org>
95
96 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
97 flags if not building with -m64.
98 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
99 flag for i?86-*-* targets, if current target matches -m64.
100
6b2c5ce0
SE
1012007-04-14 Steve Ellcey <sje@cup.hp.com>
102
103 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
104 * Makefile.in: Regenerate.
105
dd56fe7c
JDA
1062007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
107
108 PR testsuite/31369
109 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
110 ld_library_path.
111 * testsuite/libgomp.fortran/fortran.exp: Likewise.
112
a0884cf0
JJ
1132007-04-04 Jakub Jelinek <jakub@redhat.com>
114
115 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
116 decls.
117 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
118 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
119 (parse_affinity): New function.
120 (initialize_env): Call it and gomp_init_affinity.
121 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
122 create new pthread_attr_t and call gomp_init_thread_affinity
123 on it for each thread before passing the attribute to pthread_create.
124 * config/linux/affinity.c: New file.
125 * config/posix/affinity.c: New file.
126 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
127 * configure: Rebuilt.
128 * config.h.in: Rebuilt.
129 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
130 * Makefile.in: Rebuilt.
131
1850744b
AT
1322007-03-23 Andreas Tobler <a.tobler@schweiz.org>
133
134 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
135 *-*-darwin*.
136 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
137 and use it if found.
138
516f1ed8
UB
1392007-03-18 Uros Bizjak <ubizjak@gmail.com>
140
141 * testsuite/config/default.exp: New file.
142 * testsuite/lib/libgomp.exp: New file.
143 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
144 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
145 load_lib *, load_gcc_lib *): Move to libgomp.exp.
146 (libgomp_load): Remove.
147 * testsuite/lib/libgomp.exp (libgomp_init): Compute
148 always_ld_library_path, not ld_library_path. Set additional_flags
149 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
150 (target_compile): Do not call libgomp_init. Append lang_library_path
151 and lang_link_flags to options.
152 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
153 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
154 here.
155 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
156 always_ld_library_path. Set LD_LIBRARY_PATH here.
157 * testsuite/libgomp.fortran/fortran.exp: Ditto.
158 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
159 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
160 CX8 flag.
161 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
162 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
163 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
164 * testsuite/libgomp.c/pr29947-1.c: Ditto.
165 * testsuite/libgomp.c/atomic-10.c: Ditto.
166
2ada56f5
JJ
1672007-03-21 Jakub Jelinek <jakub@redhat.com>
168
169 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
170 dg-final cleanup-modules line.
171 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
172 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
173 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
174 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
175 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
176 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
177 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
178
f210f1cd
AS
1792007-03-18 Andreas Schwab <schwab@suse.de>
180
181 * acinclude.m4: Adjust regular expression for ld version
182 extraction.
183 * configure: Regenerate.
184
c4dc950d
BM
1852007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
186
187 * Makefile.am: Add install-pdf target as copied from
188 automake v1.10 rules.
189 * Makefile.in: Regenerate
190
e02a048f
JJ
1912007-02-07 Jakub Jelinek <jakub@redhat.com>
192
78e075d4
JJ
193 PR libgomp/28486
194 * configure: Regenerate.
195
e02a048f
JJ
196 PR c++/30703
197 * testsuite/libgomp.c++/pr30703.C: New test.
198
60def7ed
JJ
1992007-02-02 Jakub Jelinek <jakub@redhat.com>
200
201 Revert:
202 2006-07-05 Eric Christopher <echristo@apple.com>
203 * configure.ac: Depend addition of -pthread on host OS.
204 * configure: Regenerate.
205
f1b0882e
RW
2062007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
207
208 * libgomp.texi: Fix spacing after abbreviations.
209
748b9d7c
DF
2102007-01-31 Daniel Franke <franke.daniel@gmail.com>
211
212 PR libgomp/30546
213 * configure.ac: Add check for makeinfo
214 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
215 if an appropiate version of makeinfo is found.
216 * aclocal.m4: Regenerated.
217 * configure: Regenerated.
218 * Makefile.in: Regenerated.
219 * testsuite/Makefile.in: Regenerated.
220
14734fc7
DF
2212007-01-29 Daniel Franke <franke.daniel@gmail.com>
222
223 PR libgomp/30540
224 * libgomp.texi: More about implementation-dependent settings.
225
7befd5d2
TB
2262007-01-26 Tobias Burnus <burnus@net-b.de>
227
228 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
229
4288fea2
JJ
2302007-01-24 Jakub Jelinek <jakub@redhat.com>
231
232 PR middle-end/30494
233 * testsuite/libgomp.c/pr30494.c: New test.
234
627ab4b8
TT
2352007-01-15 Tom Tromey <tromey@redhat.com>
236
237 * configure: Rebuilt.
238 * configure.ac: Fixed comment.
239
7c2b7f45
DF
2402007-01-14 Daniel Franke <franke.daniel@gmail.com>
241
242 * libgomp.texi: Document implementation specific default values of
243 environment variables.
244
3721b9e1
DF
2452006-12-21 Daniel Franke <franke.daniel@gmail.com>
246
247 PR libgomp/28209
248 * libgomp.texi: New file.
249 * configure.ac: Add --enable-generated-files-in-srcdir option.
250 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
251 files to srcdir.
252 * Makefile.in: Regenerated.
253 * config.h.in: Regenerated.
254 * testsuite/Makefile.in: Regenerated.
255 * NOTES: Removed.
256
62bd6216
DF
2572006-12-04 Daniel Franke <franke.daniel@gmail.com>
258
259 PR libgomp/29949
260 * env.c (omp_set_num_threads): Set illegal thread count to 1.
261
aad741f4
EB
2622006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
263
264 * configure: Regenerate.
265
22568cc6
JJ
2662006-12-04 Jakub Jelinek <jakub@redhat.com>
267
268 PR libgomp/29947
269 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
270 start if there shouldn't be any loop iterations.
271 (gomp_loop_ordered_static_start): Remove start == end test.
272 * testsuite/libgomp.c/pr29947-1.c: New test.
273 * testsuite/libgomp.c/pr29947-2.c: New test.
274
a9690009
EB
2752006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
276
277 * configure.tgt: Force initial-exec TLS model on Linux only.
278
597c25e6
DJ
2792006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
280
281 * configure: Regenerated.
282
6acf0b38
UB
2832006-11-09 Uros Bizjak <ubizjak@gmail.com>
284
285 * env.c (parse_schedule): Reject out of range values.
286 (parse_unsigned_long): Reject out of range, negative or zero values.
287
a7a53ca5
JJ
2882006-10-29 Jakub Jelinek <jakub@redhat.com>
289
290 PR fortran/29629
291 * testsuite/libgomp.fortran/pr29629.f90: New test.
292
6d4d216a
EB
2932006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
294
295 PR libgomp/29494
296 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
297 * config/posix95: New directory.
298 * config/posix95/omp-lock.h: New file.
299 * config/posix95/lock.c: Likewise.
300
5b043f08
GK
3012006-10-14 Geoffrey Keating <geoffk@apple.com>
302
303 * aclocal.m4: Regenerate.
304 * configure: Regenerate.
305
b50019f0
DS
3062006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
307
308 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
309 '<' to '<='.
310
8887708e
DS
3112006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
312
313 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
314 test.
315 * configure: Regenerate.
316 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
317
9b9e4cd6
JJ
3182006-09-26 Jakub Jelinek <jakub@redhat.com>
319
a70ad3bb
JJ
320 PR middle-end/25261
321 PR middle-end/28790
322 * testsuite/libgomp.c/nestedfn-4.c: New test.
323 * testsuite/libgomp.c/nestedfn-5.c: New test.
324 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
325
9b9e4cd6
JJ
326 PR fortran/29097
327 * testsuite/libgomp.fortran/condinc1.f: New test.
328 * testsuite/libgomp.fortran/condinc2.f: New test.
329 * testsuite/libgomp.fortran/condinc3.f90: New test.
330 * testsuite/libgomp.fortran/condinc4.f90: New test.
331 * testsuite/libgomp.fortran/condinc1.inc: New file.
332
2fb31455
TT
3332006-09-18 Tom Tromey <tromey@redhat.com>
334
335 * configure: Rebuilt.
336
c663e301
JM
3372006-09-13 Joseph S. Myers <joseph@codesourcery.com>
338
339 PR c/28768
340 PR preprocessor/14634
341 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
342 to AC_DEFINE.
343 * configure: Regenerate.
344
38371be9
SK
3452006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
346
347 * testsuite/libgomp.fortran/reduction3.f90: Change
348 -2147483648 to -huge(i)-1 to avoid overflow.
349 * testsuite/libgomp.fortran/reduction4.f90: Change
350 Z'ffffffff' to not(0) to avoid overflow.
351
571d5ac5
JM
3522006-08-26 Joseph S. Myers <joseph@codesourcery.com>
353
354 PR libgomp/25938
355 * Makefile.am (libsubincludedir): New.
356 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
357 * Makefile.in: Regenerate.
358
89b3e3cd
JJ
3592006-08-17 Jakub Jelinek <jakub@redhat.com>
360
361 PR libgomp/28725
362 * env.c: Include ctype.h.
363 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
364 leading and/or trailing whitespace and compare strings case
365 insensitively.
366
742fae05
JJ
3672006-07-16 Jakub Jelinek <jakub@redhat.com>
368
369 PR fortran/28390
370 * testsuite/libgomp.fortran/pr28390.f: New test.
371
a1daed2d
EC
3722006-07-05 Eric Christopher <echristo@apple.com>
373
374 * configure.ac: Depend addition of -pthread on host OS.
375 * configure: Regenerate.
376
5d7b5199
JJ
3772006-06-21 Jakub Jelinek <jakub@redhat.com>
378
379 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
380 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
381 defined.
382
fe5568e9
JJ
3832006-06-20 Jakub Jelinek <jakub@redhat.com>
384
385 PR libgomp/26175
386 PR libgomp/26477
387 * configure.ac: If neither --enable-linux-futex nor
388 --disable-linux-futex is passed, determine the default by checking
389 for compiling and/or running against NPTL. With --enable-linux-futex,
390 check if SYS_gettid and SYS_futex are defined.
391 * configure: Rebuilt.
392
c3b11a40
RH
3932006-06-14 Richard Henderson <rth@redhat.com>
394
395 PR libgomp/28008
396 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
397 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
398
d0d1b24d
RH
3992006-06-09 Richard Henderson <rth@redhat.com>
400
401 * env.c (gomp_nthreads_var): Change to unsigned long.
402 (gomp_run_sched_chunk): Likewise.
403 (parse_unsigned_long): Rename from parse_num_threads and generalize.
404 (initialize_env): Initialize gomp_thread_attr.
405 * libgomp.h (gomp_nthreads_var): Update decl.
406 (gomp_run_sched_chunk): Likewise.
407 (gomp_thread_attr): Declare.
408 * team.c (gomp_thread_attr): Export.
409 (initialize_team): Don't initialize it.
410
cd75853e
JJ
4112006-06-09 Jakub Jelinek <jakub@redhat.com>
412
413 PR fortran/27916
414 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
415 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
416
33815e0c
FXC
4172006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
418
419 * config/mingw32/time.c: New file.
420 * configure.tgt: Use it.
421
6667de0d
CD
4222006-05-23 Carlos O'Donell <carlos@codesourcery.com>
423
424 * Makefile.am: Add install-html target. Add install-html to .PHONY
425 * Makefile.in: Regenerate.
426
e962c46b
JDA
4272006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
428
429 PR libgomp/27612
430 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
431 * testsuite/libgomp.c/critical-1.c: Likewise.
432 * testsuite/libgomp.c/loop-1.c: Likewise.
433 * testsuite/libgomp.c/loop-2.c: Likewise.
434 * testsuite/libgomp.c/single-1.c: Likewise.
435 * testsuite/libgomp.c/ordered-1.c: Likewise.
436 * testsuite/libgomp.c/ordered-2.c: Likewise.
437
eeb1d9e0
JJ
4382006-05-15 Jakub Jelinek <jakub@redhat.com>
439
440 PR middle-end/27416
441 * libgomp.fortran/pr27416-1.f90: New test.
442
693d710f
JJ
4432006-05-03 Jakub Jelinek <jakub@redhat.com>
444
445 PR fortran/27395
446 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
447 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
448
8ca5b2a2
JJ
4492006-05-02 Jakub Jelinek <jakub@redhat.com>
450
451 PR c++/26943
452 * testsuite/libgomp.c/pr26943-1.c: New test.
453 * testsuite/libgomp.c/pr26943-2.c: New test.
454 * testsuite/libgomp.c/pr26943-3.c: New test.
455 * testsuite/libgomp.c/pr26943-4.c: New test.
456 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
457 * testsuite/libgomp.c++/pr26943.C: New test.
458
077b0dfb
JJ
4592006-05-02 Jakub Jelinek <jakub@redhat.com>
460
461 PR middle-end/27337
462 * testsuite/libgomp.c++/pr27337.C: New test.
463
91b6c26d
JJ
4642006-04-26 Jakub Jelinek <jakub@redhat.com>
465
466 PR c/26171
467 * testsuite/libgomp.c/pr26171.c: New test.
468
60e1758f
RH
4692006-04-25 Richard Henderson <rth@redhat.com>
470
471 PR libgomp/25865
472 * configure.ac: Use GCC_CHECK_TLS.
473 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
474 * Makefile.in, aclocal.m4, configure: Regenerate.
475
615baed7
MK
4762006-04-10 Matthias Klose <doko@debian.org>
477
478 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
479 directory names containing underscores.
480
fae2b46b
JJ
4812006-03-21 Jakub Jelinek <jakub@redhat.com>
482
483 PR c++/26691
484 * testsuite/libgomp.c++/pr26691.C: New test.
485
11a5f608
JJ
4862006-03-13 Jakub Jelinek <jakub@redhat.com>
487
488 * testsuite/libgomp.fortran/retval2.f90: New test.
489
1799e5d5
RH
4902006-03-09 Diego Novillo <dnovillo@redhat.com>
491
492 * testsuite/libgomp.c++: New directory.
493
d349482e
AT
4942006-02-25 Shantonu Sen <ssen@opendarwin.org>
495
496 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
497 * config/posix/sem.c: Implement the above.
498
4992006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
500
501 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
502 define HAVE_BROKEN_POSIX_SEMAPHORES.
503 * configure: Rebuilt.
504 * config.h.in: Rebuilt.
505
124452c9
FXC
5062006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
507
508 PR bootstrap/26161
509 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
510 for the other pthread check.
511 * configure: Regenerate.
512 * config.h.in: Regenerate.
513
dd8d6dfe
JJ
5142006-02-15 Jakub Jelinek <jakub@redhat.com>
515
516 PR libgomp/25938
517 PR libgomp/25984
518 * Makefile.am (fincludedir): New variable.
519 (nodist_include_HEADERS): Remove Fortran files.
520 (nodist_finclude_HEADERS): New variable.
521 * Makefile.in: Regenerated.
522
6c7a4dfd
JJ
5232006-02-13 Jakub Jelinek <jakub@redhat.com>
524
525 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
526 Remove tests for returning assumed character length arrays.
527
5142e08b
RS
5282006-02-12 Roger Sayle <roger@eyesopen.com>
529 John David Anglin <dave@hiauly1.hia.nrc.ca>
530
531 PR libgomp/25936
532 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 533
5821fba8
UW
5342006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
535
536 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
537
cb2bbc67
EB
5382006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
539
540 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
541 part of LD_LIBRARY_PATH manually.
542
f05ee80c
L
5432006-02-03 H.J. Lu <hongjiu.lu@intel.com>
544
545 PR libgomp/25852
546 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
547 libgomp_init.
548
03b8fe49
PB
5492005-01-25 Paolo Bonzini <bonzini@gnu.org>
550
551 PR libgomp/25884
f05ee80c
L
552 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
553 * configure.ac (PERL): Don't set.
554 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
555 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
556 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
557 * omp.h.in: Wrap the new configure substitutions with @ characters.
558 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
559 * aclocal.m4, configure, Makefile.in: Regenerate.
560 * mkomp_h.pl: Delete.
03b8fe49 561
18cbfd85
PB
5622005-01-24 Paolo Bonzini <bonzini@gnu.org>
563
564 PR libgomp/25259
565 * configure.ac: Use GCC_HEADER_STDINT.
566 * libgomp.h: Include gstdint.h.
567 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
568 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
569
c41303c6
RH
5702006-01-24 Richard Henderson <rth@redhat.com>
571
572 PR libgomp/25942
573 * configure.ac: Add AM_MAINTAINER_MODE.
574 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
575
149b9553
DN
5762006-01-24 Diego Novillo <dnovillo@redhat.com>
577
578 * Makefile.in: Regenerate.
579 * testsuite/Makefile.in: Regenerate.
580 * aclocal.m4: Regenerate.
581
192a50ad
AT
5822006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
583
584 * config/posix/proc.c: Conditional include of sys/loadavg.h for
585 Solaris.
586 * configure.ac: Add check for loadavg.h.
587 (link_gomp): Adjust comment.
588 * configure: Regenerate.
589 * config.h.in: Regenerate.
590
a55b8e18
SE
5912006-01-21 Steve Ellcey <sje@cup.hp.com>
592
593 PR libgomp/25877
594 * configure.ac: Remove check for alloca.h.
595 * configure: Regenerate.
596 * config.h.in: Regenerate.
597 * libgomp.h: define gomp_alloca to be __builtin_alloca.
598 * team.c: Remove use of alloca.h.
599 Call gomp_alloca instead of alloca.
600
692eeb34
SE
6012006-01-20 Steve Ellcey <sje@cup.hp.com>
602
603 PR libgomp/25877
604 * team.c: Add include of alloca.h.
605 * configure.ac: Add check for alloca.h.
606 * configure: Regenerate.
607 * config.h.in: Regenerate.
608
953ff289
DN
6092006-01-17 Jakub Jelinek <jakub@redhat.com>
610
611 PR fortran/25219
612 * testsuite/libgomp.fortran/pr25219.f90: New test.
613
6142005-12-05 Uros Bizjak <uros@kss-loka.si>
615
616 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
617 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
618 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
619 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
620 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
621 testsuite/libgomp.fortran/threadprivate1.f90,
622 testsuite/libgomp.fortran/threadprivate2.f90,
623 testsuite/libgomp.fortran/threadprivate3.f90,
624 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
625 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
626 testsuite/libgomp.fortran/omp_parse3.f90: Change required
627 effective-target to TLS runtime.
628
629 * testsuite/libgomp.fortran/pr25162.f: Require
630 effective-target TLS runtime.
631
6322005-12-01 Jakub Jelinek <jakub@redhat.com>
633
634 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
635 * testsuite/libgomp.c/nestedfn-3.c: New test.
636
6372005-11-30 Jakub Jelinek <jakub@redhat.com>
638
639 PR fortran/25162
640 * testsuite/libgomp.fortran/pr25162.f: New test.
641
6422005-11-28 Jakub Jelinek <jakub@redhat.com>
643
644 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
645 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
646
6472005-11-25 Jakub Jelinek <jakub@redhat.com>
648
649 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
650 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
651 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
652 single.c, team.c, work.c, config/linux/alpha/futex.h,
653 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
654 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
655 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
656 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
657 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
658 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
659 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
660 FSF address.
661
6622005-11-18 Jakub Jelinek <jakub@redhat.com>
663
664 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
665 to nodist_noinst_HEADERS.
666 * Makefile.in: Rebuilt.
667
668 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
669 add integer count field.
670 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
671 omp_nest_lock_t type change.
672 (omp_init_nest_lock): Likewise. Initialize count to 0.
673 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
674 Increment count.
675 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
676 Decrement count.
677 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
678 Increment count if successful and return the new nesting level.
679 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
680 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
681 * testsuite/libgomp.c/lib-1.c: New test.
682 * testsuite/libgomp.fortran/lib1.f90: New test.
683 * testsuite/libgomp.fortran/lib2.f: New test.
684 * testsuite/libgomp.fortran/lib3.f: New test.
685
6862005-11-17 Richard Henderson <rth@redhat.com>
687
688 PR 24845
689 * Makefile.am (nodist_toolexeclib_HEADERS): New.
690 * configure.ac (link_gomp): New. Substitute it.
691 (AC_CONFIG_FILES): Add libgomp.spec.
692 * libgomp.spec.in: New file.
693 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
694 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
695
6962005-11-18 Jakub Jelinek <jakub@redhat.com>
697
698 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
699 reduction(-:var) behaving the same as reduction(+:var).
700 * testsuite/libgomp.c/reduction-4.c: New test.
701
7022005-11-15 Uros Bizjak <uros@kss-loka.si>
703
704 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
705 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
706 testsuite/libgomp.c/copyin-3.c,
707 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
708 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
709 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
710 testsuite/libgomp.c++/pr24455.C,
711 testsuite/libgomp.fortran/threadprivate1.f90,
712 testsuite/libgomp.fortran/threadprivate2.f90,
713 testsuite/libgomp.fortran/threadprivate3.f90,
714 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
715 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
716 testsuite/libgomp.fortran/omp_parse3.f90: Require
717 effective-target TLS.
718
7192005-11-14 Diego Novillo <dnovillo@redhat.com>
720
721 * HEADER: Remove.
722
7232005-11-13 Jakub Jelinek <jakub@redhat.com>
724
725 PR libgomp/24797
726 * team.c (initialize_team): Pass NULL rather than free as
727 pthread_key_create destructor. Initialize thread specific data
728 pointer in initial thread to a static local variable rather than
729 malloced memory.
730
7312005-11-11 Uros Bizjak <uros@kss-loka.si>
732
733 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
734 its location to ld_library_path.
735
7362005-11-10 Diego Novillo <dnovillo@redhat.com>
737
738 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
739
7402005-11-10 Diego Novillo <dnovillo@redhat.com>
741
742 * testsuite/libgomp.c: Rename from libgomp.dg.
743
7442005-11-09 Diego Novillo <dnovillo@redhat.com>
745
746 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
747 threadprivate variable 'i'.
748
7492005-11-09 Jakub Jelinek <jakub@redhat.com>
750
751 * config/linux/s390/futex.h: New file.
752 * configure.tgt: Use it.
753
754 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
755 before the parallel.
756
7572005-11-08 Jakub Jelinek <jakub@redhat.com>
758
759 PR c++/24734
760 * testsuite/libgomp.c++/master-1.C: New test.
761
7622005-11-07 Jakub Jelinek <jakub@redhat.com>
763
764 * testsuite/libgomp.dg/copyin-3.c: New test.
765
7662005-11-07 Jakub Jelinek <jakub@redhat.com>
767
768 * testsuite/libgomp.fortran/retval1.f90: New test.
769 * testsuite/libgomp.fortran/vla7.f90: New test.
770
7712005-11-06 Jakub Jelinek <jakub@redhat.com>
772
773 * testsuite/libgomp.fortran/vla2.f90: New test.
774 * testsuite/libgomp.fortran/vla3.f90: New test.
775 * testsuite/libgomp.fortran/vla4.f90: New test.
776 * testsuite/libgomp.fortran/vla5.f90: New test.
777 * testsuite/libgomp.fortran/vla6.f90: New test.
778
7792005-11-01 Jakub Jelinek <jakub@redhat.com>
780
781 * config/linux/sparc/futex.h: New file.
782 * configure.tgt: Use it.
783 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
784
785 * critical.c: Include stdlib.h.
786 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
787 ignoring return value.
788 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
789 LIBGOMP_CHECK_SYNC_BUILTINS check.
790 * configure: Rebuilt.
791
7922005-10-31 Jakub Jelinek <jakub@redhat.com>
793
794 * testsuite/libgomp.fortran/vla1.f90: New test.
795
7962005-10-31 Richard Henderson <rth@redhat.com>
797
798 * testsuite/libgomp.fortran/character2.f90: Fix race condition
799 setting 's' in different threads.
800
8012005-10-31 Jakub Jelinek <jakub@redhat.com>
802
803 * libgomp.h (attribute_hidden, ialias): Define.
804 * config/posix/proc.c (omp_get_num_procs): Add ialias.
805 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
806 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
807 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
808 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
809 omp_test_lock, omp_test_nest_lock): Likewise.
810 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
811 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
812 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
813 omp_test_lock, omp_test_nest_lock): Likewise.
814 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
815 omp_get_dynamic, omp_get_nested): Likewise.
816 * parallel.c (omp_get_num_threads, omp_get_max_threads,
817 omp_get_thread_num, omp_in_parallel): Likewise.
818 * fortran.c (ialias_redirect): Define.
819 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
820 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
821 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
822 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
823 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
824 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
825 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
826 omp_get_wtime): Add ialias_redirect.
827
8282005-10-30 Jakub Jelinek <jakub@redhat.com>
829
830 * fortran.c: Include stdlib.h.
831
8322005-10-29 Jakub Jelinek <jakub@redhat.com>
833
834 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
835 * Makefile.in: Regenerated.
836
8372005-10-28 Jakub Jelinek <jakub@redhat.com>
838
839 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
840 * libgomp_f.h.in (omp_check_defines): New function.
841 * env.c: Include libgomp_f.h.
842 (initialize_env): Call omp_check_defines.
843
844 * testsuite/libgomp.dg/copyin-2.c: New test.
845 * testsuite/libgomp.c++/copyin-2.C: New test.
846 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
847
848 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
849 * testsuite/libgomp.fortran/sharing2.f90: New test.
850
851 * testsuite/libgomp.dg/copyin-1.c: New test.
852 * testsuite/libgomp.c++/copyin-1.C: New test.
853
8542005-10-26 Jakub Jelinek <jakub@redhat.com>
855
856 * testsuite/libgomp.fortran/crayptr1.f90: New test.
857
858 * testsuite/libgomp.fortran/workshare1.f90: New test.
859
860 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
861 only test.
862 * libgomp.fortran/sharing1.f90: New test.
863
8642005-10-24 Jakub Jelinek <jakub@redhat.com>
865
866 PR c++/24502
867 * testsuite/libgomp.c++/loop-7.C: New test.
868
869 * testsuite/libgomp.dg/nestedfn-2.c: New test.
870
871 * testsuite/libgomp.dg/nestedfn-1.c: New test.
872 * testsuite/libgomp.fortran/reduction6.f90: New test.
873 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
874
8752005-10-23 Richard Henderson <rth@redhat.com>
876
877 * testsuite/libgomp.c++/ctor-1.C: New.
878 * testsuite/libgomp.c++/ctor-2.C: New.
879 * testsuite/libgomp.c++/ctor-3.C: New.
880 * testsuite/libgomp.c++/ctor-4.C: New.
881 * testsuite/libgomp.c++/ctor-5.C: New.
882 * testsuite/libgomp.c++/ctor-6.C: New.
883 * testsuite/libgomp.c++/ctor-7.C: New.
884 * testsuite/libgomp.c++/ctor-8.C: New.
885 * testsuite/libgomp.c++/ctor-9.C: New.
886
8872005-10-21 Diego Novillo <dnovillo@redhat.com>
888
889 PR 24455
890 * testsuite/libgomp.c++/pr24455-1.C: New test.
891 * testsuite/libgomp.c++/pr24455.C: New test.
892 * testsuite/libgomp.dg/pr24455-1.c: New test.
893 * testsuite/libgomp.dg/pr24455.c: New test.
894
8952005-10-20 Richard Henderson <rth@redhat.com>
896
897 * testsuite/libgomp.c++/loop-6.C: New.
898 * testsuite/libgomp.dg/loop-3.c: New.
899
9002005-10-20 Jakub Jelinek <jakub@redhat.com>
901
902 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
903 explicitly private.
904 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
905 explicitly shared.
906
9072005-10-19 Diego Novillo <dnovillo@redhat.com>
908
909 * testsuite/libgomp.fortran/jacobi.f: New test.
910
9112005-10-19 Richard Henderson <rth@redhat.com>
912
913 * configure.tgt (i?86-linux): Default to with_arch instead of
914 CFLAGS. Add -mtune to match target_cpu.
915 (x86_64-linux): Tune to i686.
916
917 * fortran.c (omp_test_nest_lock_): Fix typo.
918
9192005-10-19 Jakub Jelinek <jakub@redhat.com>
920
921 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
922 gomp_ordered_sync): Do nothing if team->nthreads == 1.
923 * testsuite/libgomp.dg/ordered-3.c: New test.
924
925 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
926 Remove volatile keyword.
927
928 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
929 in COMMON block to avoid warnings on 64-bit targets.
930
9312005-10-18 Diego Novillo <dnovillo@redhat.com>
932
933 * testsuite/libgomp.dg/shared-3.c: New test.
934
9352005-10-18 Jakub Jelinek <jakub@redhat.com>
936
937 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
938 * testsuite/libgomp.fortran/reduction5.f90: New test.
939
9402005-10-18 Jakub Jelinek <jakub@redhat.com>
941
942 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
943 dg-options.
944 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
945 flush loop now that __sync_synchronize has proper memory barrier.
946 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
947 Add -ffixed-form to dg-options.
948
9492005-10-17 Diego Novillo <dnovillo@redhat.com>
950
951 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
952 from subdirectories.
953 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
954 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
955 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
956 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
957 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
958 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
959 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
960 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
961 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
962 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
963 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
964 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
965 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
966 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
967 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
968 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
969 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
970 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
971 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
972 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
973 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
974 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
975 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
976 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
977 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
978
9792005-10-17 Jakub Jelinek <jakub@redhat.com>
980
981 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
982 lang_library_path exists. Use find instead of glob to gather tests.
983 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
984
9852005-10-17 Diego Novillo <dnovillo@redhat.com>
986
987 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
988 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
989 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
990 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
991 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
992 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
993 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
994 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
995 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
996 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
997 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
998 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
999 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
1000
10012005-10-15 Jakub Jelinek <jakub@redhat.com>
1002
1003 * testsuite/libgomp.dg/vla-1.c: New test.
1004
1005 * testsuite/libgomp.fortran/reference2.f90: New test.
1006
1007 * testsuite/libgomp.fortran/character2.f90: Remove explicit
1008 declaration of omp_get_thread_num.
1009 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
1010 use omp_lib.
1011
1012 * testsuite/libgomp.fortran/reduction1.f90: New test.
1013 * testsuite/libgomp.fortran/reduction2.f90: New test.
1014 * testsuite/libgomp.fortran/reduction3.f90: New test.
1015 * testsuite/libgomp.fortran/reduction4.f90: New test.
1016
10172005-10-13 Richard Henderson <rth@redhat.com>
1018
1019 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
1020 * Makefile.in: Regenerate.
1021 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
1022 * libgomp.h: Include bar.h.
1023 (struct gomp_barrier): Remove.
1024 (struct gomp_team): Add barrier. Replace master_barrier with
1025 master_release. Replace threads with ordered_release.
1026 (struct gomp_thread): Replace barrier with release.
1027 * ordered.c (gomp_ordered_first): Update for ordered_release change.
1028 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
1029 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
1030 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
1031 (GOMP_single_copy_end): Likewise.
1032 * team.c (gomp_threads_dock): New.
1033 (gomp_barrier_init, gomp_barrier_destroy): Remove.
1034 (gomp_thread_start): Use gomp_barrier_wait.
1035 (new_team, free_team): Update for gomp_team changes.
1036 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
1037 (gomp_team_end): Use gomp_barrier_wait.
1038 (initialize_team): Update for gomp_thread changes.
1039 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
1040 (gomp_work_share_end_nowait): Use atomic ops when available.
1041 * config/linux/bar.c, config/linux/bar.h: New files.
1042 * config/posix/bar.c, config/posix/bar.h: New files.
1043
10442005-10-13 Jakub Jelinek <jakub@redhat.com>
1045
1046 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
1047 * testsuite/libgomp.dg/single-2.c: New test.
1048
1049 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
1050 lang_link_flags): Unset, so that they aren't inherited from previously
1051 sourced *.exp.
1052
1053 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
1054
10552005-10-12 Richard Henderson <rth@redhat.com>
1056
1057 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
1058 (libgomp_init): Use lang_test_file, lang_library_path, and
1059 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
1060
1061 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
1062 (lang_test_file, lang_link_flags): New.
1063 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
1064
1065 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
1066 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
1067 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
1068 testsuite/libgomp.c++/parallel-1.C,
1069 testsuite/libgomp.c++/reduction-1.C,
1070 testsuite/libgomp.c++/reduction-2.C,
1071 testsuite/libgomp.c++/reduction-3.C,
1072 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
1073 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
1074 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
1075 New files, largely cribbed from the C testsuite.
1076
10772005-10-12 Jakub Jelinek <jakub@redhat.com>
1078
1079 * testsuite/libgomp.fortran/character1.f90: New test.
1080 * testsuite/libgomp.fortran/character2.f90: New test.
1081
1082 * testsuite/libgomp.dg/nested-1.c: New test.
1083 * testsuite/libgomp.dg/nested-2.c: New test.
1084 * testsuite/libgomp.fortran/do1.f90: New test.
1085 * testsuite/libgomp.fortran/do2.f90: New test.
1086
1087 * testsuite/libgomp.fortran/reference1.f90: New test.
1088
10892005-10-11 Jakub Jelinek <jakub@redhat.com>
1090
1091 * testsuite/libgomp.dg/reduction-1.c: New test.
1092 * testsuite/libgomp.dg/reduction-2.c: New test.
1093 * testsuite/libgomp.dg/reduction-3.c: New test.
1094
10952005-10-10 Jakub Jelinek <jakub@redhat.com>
1096
1097 * testsuite/libgomp.dg/atomic-1.c: New test.
1098 * testsuite/libgomp.dg/atomic-2.c: New test.
1099
11002005-10-09 Richard Henderson <rth@redhat.com>
1101
1102 * critical.c (atomic_lock): New.
1103 (initialize_critical): Initialize it.
1104 (GOMP_atomic_start, GOMP_atomic_end): New.
1105 * libgomp.map: Export them.
1106 * libgomp_g.h: Declare them.
1107
1108 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
1109
11102005-10-02 Richard Henderson <rth@redhat.com>
1111
1112 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
1113 to XCFLAGS instead of CFLAGS.
1114
11152005-09-30 Richard Henderson <rth@redhat.com>
1116
1117 * configure.ac: Determine whether -pthread or -lpthread is needed.
1118 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
1119 * Makefine.in, configure: Rebuild.
1120
11212005-09-28 Richard Henderson <rth@redhat.com>
1122
1123 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
1124 * testsuite/libgomp.dg/omp-single-3.c: New test.
1125
11262005-09-28 Diego Novillo <dnovillo@redhat.com>
1127
1128 * testsuite/libgomp.dg/omp-single-2.c: New test.
1129 * testsuite/libgomp.dg/shared-2.c: Fix return code.
1130
11312005-09-27 Richard Henderson <rth@redhat.com>
1132
1133 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
1134 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
1135
11362005-09-27 Jakub Jelinek <jakub@redhat.com>
1137
1138 * testsuite/libgomp.dg/omp-loop03.c: New test.
1139
11402005-09-27 Diego Novillo <dnovillo@redhat.com>
1141
1142 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
1143
11442005-09-27 Diego Novillo <dnovillo@redhat.com>
1145
1146 * testsuite/libgomp.dg/omp-single-1.c: New test.
1147 * testsuite/libgomp.dg/shared-1.c: Return 0.
1148 Add prototype for abort.
1149 * testsuite/libgomp.dg/shared-2.c: Likewise.
1150
11512005-09-26 Jakub Jelinek <jakub@redhat.com>
1152
1153 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
1154 constructs.
1155
11562005-09-26 Diego Novillo <dnovillo@redhat.com>
1157
1158 * testsuite/libgomp.dg/shared-1.c: New test.
1159 * testsuite/libgomp.dg/shared-2.c: New test.
1160
11612005-09-24 Richard Henderson <rth@redhat.com>
1162
1163 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
1164
11652005-09-24 Richard Henderson <rth@redhat.com>
1166
1167 * iter.c (gomp_iter_static_next): Round up when computing number
1168 of iterations. Don't bother distributing a remainder equally.
1169
1170 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
1171 Don't call srand. Zero b before testing.
1172 (main): New.
1173
11742005-09-24 Jakub Jelinek <jakub@redhat.com>
1175
1176 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
1177 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
1178
11792005-09-23 Jakub Jelinek <jakub@redhat.com>
1180
1181 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
1182 without !$omp end do, followed immediately by subroutine end.
1183
11842005-09-23 Diego Novillo <dnovillo@redhat.com>
1185
1186 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
1187
11882005-09-22 Richard Henderson <rth@redhat.com>
1189
1190 * critical.c (GOMP_critical_name_start): Change argument to void**.
1191 Reuse the pointer space if the mutex fits.
1192 (GOMP_critical_name_end): Likewise.
1193 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
1194 * libgomp_g.h (GOMP_critical_name_start): Update decl.
1195 (GOMP_critical_name_end): Likewise.
1196 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
1197 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
1198
11992005-09-20 Richard Henderson <rth@redhat.com>
1200
1201 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
1202 (create_lock_lock): New.
1203 (initialize_critical): Initialize it.
1204 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
1205 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
1206
12072005-09-20 Diego Novillo <dnovillo@redhat.com>
1208
1209 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
1210
12112005-09-20 Diego Novillo <dnovillo@redhat.com>
1212
1213 * testsuite/libgomp.dg/omp-loop01.c: New test.
1214 * testsuite/libgomp.dg/omp-loop02.c: New test.
1215
12162005-09-20 Jakub Jelinek <jakub@redhat.com>
1217
1218 * configure.ac (AC_PROG_FC): Add.
1219 (USE_FORTRAN): New automake conditional.
1220 * configure: Rebuilt.
1221 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
1222 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
1223 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
1224 Add rules to build them.
1225 * Makefile.in: Rebuilt.
1226 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
1227 OMP_NEST_LOCK_KIND.
1228 * libgomp.map: Add Fortran wrappers.
1229 * libgomp_f.h.in: New file.
1230 * omp_lib.h.in: New file.
1231 * omp_lib.f90.in: New file.
1232 * fortran.c: New file.
1233 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
1234 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
1235 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
1236 libgfortran has been built.
1237 * testsuite/libgomp.fortran/fortran.exp: New file.
1238 * testsuite/libgomp.fortran/omp_cond1.f: New test.
1239 * testsuite/libgomp.fortran/omp_cond2.f: New test.
1240 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
1241 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
1242 * testsuite/libgomp.fortran/omp_hello.f: New test.
1243 * testsuite/libgomp.fortran/omp_orphan.f: New test.
1244 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
1245 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
1246 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
1247 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
1248 * testsuite/libgomp.fortran/omp_reduction.f: New test.
1249 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
1250 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
1251
12522005-08-30 Richard Henderson <rth@redhat.com>
1253
1254 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
1255 function for when aliases are not usable.
1256 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
1257 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1258 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
1259 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
1260 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
1261 GOMP_loop_ordered_guided_next): Likewise.
1262 * ordered.c (GOMP_ordered_start): Likewise.
1263
12642005-08-01 Diego Novillo <dnovillo@redhat.com>
1265
1266 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
1267 * testsuite/libgomp.dg/omp_hello.c: Fix return code
1268 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
1269 * testsuite/libgomp.dg/omp_orphan.c: Likewise
1270 * testsuite/libgomp.dg/omp_reduction.c: Likewise
1271 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
1272 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
1273 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
1274 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
1275
12762005-07-07 Eric Christopher <echristo@redhat.com>
1277 Diego Novillo <dnovillo@redhat.com>
1278
1279 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
1280 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
1281 up code.
1282 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
1283 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
1284 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
1285 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
1286 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
1287 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
1288 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
1289
12902005-06-13 Diego Novillo <dnovillo@redhat.com>
1291
1292 * TOPLEVEL.patch: Remove.
1293
12942005-05-16 Richard Henderson <rth@redhat.com>
1295
1296 * configure.ac: Test for clock_gettime.
1297 * config.h.in, configure: Rebuild.
1298 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
1299 (omp_get_wtime): Use clock_gettime if available.
1300 (omp_get_wtick): Use clock_getres if available.
1301
13022005-05-11 Richard Henderson <rth@redhat.com>
1303
1304 * config/linux/ia64/futex.h: New file.
1305 * configure.tgt: Use it.
1306
1307 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
1308
13092005-05-07 Richard Henderson <rth@redhat.com>
1310
1311 * config/linux/powerpc/futex.h: New file.
1312 * configure.tgt: Use it.
1313
1314 * config/linux/i486/futex.h: Merge ...
1315 * config/linux/x86_64/futex.h: ... into ...
1316 * config/linux/x86/futex.h: ... here.
1317 * configure.tgt: Update to match.
1318
13192005-05-06 Richard Henderson <rth@redhat.com>
1320
1321 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
1322 * config/linux/i486/futex.h: Likewise.
1323 * config/linux/x86_64/futex.h: Likewise.
1324
1325 * config/linux/lock.c: New file.
1326 * config/linux/omp-lock.h: New file.
1327
1328 * critical.c, env.h: Don't include omp.h
1329 * config/posix/lock.c: Include libgomp.h instead of omp.h.
1330 * config/posix/time.c: Likewise.
1331 * config/posix/omp-lock.h: New file.
1332 * libgomp.h: Include omp-lock.h and omp.h.
1333 * Makefile.am (nodist_include_HEADERS): New.
1334 (omp.h): New rule.
1335 * configure.ac (PERL): New.
1336 * mkomp_h.pl: New file.
1337 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
1338 with templates.
1339 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
1340
1341 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
1342 build directory. Re-add -march=i486 hack.
1343
1344 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
1345 (libgomp_link_flags): Remove.
1346 (libgomp_initialized): Remove.
1347 (libgomp_init): Don't protect from reinitialization. Copy code
1348 from libstdc++ for getting the multilib set correctly.
1349
13502005-05-05 Richard Henderson <rth@redhat.com>
1351
1352 * config/linux/alpha/futex.h: New file.
1353 * configure.tgt (alpha*-*-linux*): Use it.
1354
1355 * config/posix/mutex.c: New file.
1356 * config/posix/sem.c: Use libgomp.h.
1357
1358 * configure.tgt (x86_64-linux): Also test CC for -m32.
1359 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
1360
a1daed2d 1361 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
1362 after $gccpath.
1363
1364 * Makefile.am (SUBDIRS): New.
1365 (libgomp_la_LDFLAGS): Add -lpthread.
1366 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
1367 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
1368
1369 * libgomp_g.h: New file.
1370 * libgomp.h: Split out all public declarations to libgomp_g.h.
1371 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
1372 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
1373 * config/linux/sem.h: Likewise.
1374 * config/posix/sem.h: Likewise.
1375
1376 * Makefile.am (AM_LDFLAGS): New.
1377 (libgomp_version_script): Split out from ...
1378 (libgomp_la_LDFLAGS): ... here.
1379 (libgomp_version_info): New.
1380 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
1381 (LIBGOMP_ENABLE): New.
1382 (LIBGOMP_CHECK_LINKER_FEATURES): New.
1383 (LIBGOMP_ENABLE_SYMVERS): New.
1384 * configure.ac (AC_INIT): Version 1.0.
1385 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
1386 (enable-linux-futex): Likewise. Rename from enable-futex.
1387 (libtool_VERSION): New.
1388 (LIBGOMP_ENABLE_SYMVERS): Use it.
1389 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
1390 * Makefile.in, aclocal.m4, configure: Rebuild.
1391
1392 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
1393 (gomp_mutex_unlock_slow): Fix typo.
1394 * config/linux/sem.c: Similarly.
1395 (gomp_sem_post_slow): Fix typo.
1396 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
1397 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
1398 [__PIC__] (sys_futex0): Don't use tmp output in asm.
1399
1400 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
1401 (libgomp_la_LDFLAGS): Add top_srcdir to path.
1402 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
1403 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
1404 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
1405 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
1406 LDFLAGS. Pull enable_futex check to top-level.
1407 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
1408 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
1409
1410 First attempt at real configury.
1411 * Makefile, config.h: Remove file.
1412 * Makefile.am, Makefile.in: New file.
1413 * acinclude.m4 aclocal.m4: New file.
1414 * configure.ac, configure.tgt, configure: New file.
1415
1416 * config/posix/lock.c: Rename from sys-lock.c.
1417 * config/posix/mutex.h: Rename from sys-mutex.h.
1418 * config/posix/sem.c: Rename from sys-sem.c.
1419 * config/posix/sem.h: Rename from sys-sem.h.
1420 * config/posix/proc.c: Rename from sys-proc.c.
1421 * config/posix/time.c: Rename from sys-proc.c.
1422
1423 * config/linux/mutex.c: New file.
1424 * config/linux/mutex.h: New file.
1425 * config/linux/sem.c: New file.
1426 * config/linux/sem.h: New file.
1427 * config/linux/i486/futex.h: New file.
1428 * config/linux/x86_64/futex.h: New file.
1429
14302005-05-04 Richard Henderson <rth@redhat.com>
1431
1432 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
1433 * libgomp.h: Declare them.
1434 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
1435 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
1436
14372005-05-04 Richard Henderson <rth@redhat.com>
1438
1439 * libgomp-1 code drop
1440
14412005-05-04 Richard Henderson <rth@redhat.com>
1442
1443 * iter.c (gomp_iter_static_next): Return tri-state on 0.
1444 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
1445 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
1446 (gomp_iter_static_next): Update.
1447 (gomp_ordered_static_next): Update.
1448 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
1449 (gomp_loop_ordered_static_start): Likewise. Exit early for a
1450 totally empty range.
1451 (gomp_loop_ordered_static_next): Refine test for calling
1452 gomp_ordered_static_next.
1453 * testsuite/ordered-1.c: Add case for more threads than iterations.
1454
1455 * iter.c (gomp_iter_runtime_next_locked): Remove.
1456 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 1457 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
1458 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
1459 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
1460 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
1461 gomp_loop_ordered_guided_next): Downcase name, make static, add
1462 an external alias with the old name.
1463 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
1464 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
1465 switch and call one of the above static functions.
1466 * libgomp.h: Update.
1467
1468 * work.c (gomp_work_share_start): Lock the mutex for !first too.
1469 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
1470 GOMP_loop_guided_start, GOMP_loop_runtime_start,
1471 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
1472 GOMP_loop_ordered_guided_start): Update to match.
1473 * sections.c (GOMP_sections_start): Likewise.
1474 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
1475
1476 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1477 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
1478 Use bounds check instead of modulus.
1479 (gomp_ordered_sync): Split out of GOMP_ordered_start.
1480 (gomp_ordered_last): Don't sync with ordered_owner here.
1481 (gomp_ordered_next): Likewise.
1482 (gomp_ordered_static_loop_next): Likewise.
1483 * loop.c, libgomp.h: Update to match.
1484
1485 * libgomp.h (GOMP_barrier): Declare.
1486
1487 * testsuite/barrier-1.c: New file.
1488 * testsuite/critical-1.c: New file.
1489 * testsuite/ordered-2.c: New file.
1490 * testsuite/ordered-1.c: New file.
1491 * testsuite/sections-1.c: New file.
1492 * testsuite/single-1.c: New file.
1493 * testsuite/Makefile (TESTS): Add them.
1494
14952005-05-04 Richard Henderson <rth@redhat.com>
1496
1497 * libgomp.h (struct gomp_work_share): Add ordered_owner.
1498 * loop.c (GOMP_loop_static_start): If not the startup thread,
1499 acquire the mutex to wait for initialization complete.
1500 (GOMP_loop_ordered_static_start): Likewise.
1501 (GOMP_loop_ordered_runtime_start): Likewise.
1502 (GOMP_loop_ordered_static_first): Remove.
1503 (GOMP_loop_ordered_dynamic_first): Remove.
1504 (GOMP_loop_ordered_guided_first): Remove.
1505 (GOMP_loop_ordered_runtime_first): Remove.
1506 * ordered.c (gomp_ordered_loop_first): Post to own release when
1507 we're the first thread.
1508 (gomp_ordered_loop_last): Wait on release if not owner.
1509 (gomp_ordered_loop_next): Likewise.
1510 (gomp_ordered_static_loop_init): New.
1511 (gomp_ordered_static_loop_next): Use ordered_owner.
1512 (GOMP_ordered_start): Likewise.
1513 * work.c (gomp_new_work_share): Initialize ordered_owner.
1514
15152005-05-03 Richard Henderson <rth@redhat.com>
1516
1517 * Makefile (OPT): New.
1518 (CFLAGS): Use it.
1519
1520 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
1521 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
1522 * libgomp.h, libgomp.map, NOTES: Update to match.
1523
1524 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
1525 Add initialized and thr members.
1526 (gomp_thread_start): Pause when initially spawned to wait for
1527 the whole team to be created.
1528 (gomp_team_start): Release team members at the end.
1529
1530 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
1531 (f_foo_1): Use GOMP_loop_end.
1532 (f_foo_2): Use GOMP_loop_end_nowait.
1533
1534 * testsuite/loop-2.c: New file.
1535 * testsuite/Makefile (TESTS): Add it.
1536
15372005-05-03 Richard Henderson <rth@redhat.com>
1538
1539 * iter.c (gomp_iter_static_next): Fix overflow check typo.
1540 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
1541 * team.c (new_team): Initialize oldest_live_gen to 1 if no
1542 initial work_share.
1543
1544 * testsuite/Makefile: New file.
1545 * testsuite/loop-1.c: New file.
1546
15472005-05-03 Richard Henderson <rth@redhat.com>
1548
1549 Initial implementation and checkin.