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