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