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