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