]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/ChangeLog
sysv4.opt (mregnames): Change Var to rs6000_regnames.
[thirdparty/gcc.git] / libgomp / ChangeLog
CommitLineData
2b32c27d
JJ
12009-11-13 Jakub Jelinek <jakub@redhat.com>
2
3 PR middle-end/42029
4 * libgomp.c/pr42029.c: New test.
5
89c74f4a
JJ
62009-10-26 Jakub Jelinek <jakub@redhat.com>
7
8 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
9 *s. Accept ld version without text in ()s.
10 * configure: Regenerated.
11
7e06c3d6
EB
122009-10-22 Razya Ladelsky <razya@il.ibm.com>
13
14 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
15
0046b1a7
RW
162009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17
18 PR libgomp/41418
19 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
20 or a hyphen (happens with fortran language disabled).
21 * configure: Regenerate.
22
c82852f7
RW
232009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24
25 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
26 use sed script portable to Solaris /bin/sed for extracting ld
27 version.
28 * configure: Regenerate.
29
98f3eb1f
AM
302009-09-17 Alexander Monakov <amonakov@ispras.ru>
31
32 * testsuite/libgomp.graphite/bounds.c: New test.
33
878f62e5
RW
342009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35
36 * Makefile.am (libgomp_la_LINK): New.
37 * Makefile.in: Regenerate.
38
df58e648
RW
392009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40
41 * configure.ac (AC_PREREQ): Bump to 2.64.
42
5213506e
RW
432009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44
70fa0efa
RW
45 * Makefile.am (install-html, install-pdf): Remove.
46 * Makefile.in: Regenerate.
47
5213506e
RW
48 * Makefile.in: Regenerate.
49 * aclocal.m4: Regenerate.
50 * config.h.in: Regenerate.
51 * configure: Regenerate.
52 * testsuite/Makefile.in: Regenerate.
53
84fec8a5
RW
542009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55
56 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
57 * Makefile.in: Regenerate.
58
197c68cc
DK
592009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
60
61 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
62 * Makefile.in: Regenerate.
63
693d54f2
TB
642009-08-19 Tobias Burnus <burnus@net-b.de>
65
66 PR fortran/41102
67 omp_lib.h.in: Fix -std=f95 errors.
68
69
8cac884c
DE
702009-08-14 David Edelsohn <edelsohn@gnu.org>
71
72 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
73 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
74 * testsuite/libgomp.graphite/graphite.exp: New.
75
78729ee2
AT
762009-08-05 Andreas Tobler <a.tobler@schweiz.org>
77
78 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
79 only build.
80
b13b7f39
DD
812009-08-04 David Daney <ddaney@caviumnetworks.com>
82
83 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
84 needed memory barrier semantics.
85 * config/linux/mips/mutex.h: New file.
86
1b3b24c2
RW
872009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
88
89 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
90
396b7fa4
JM
912009-07-16 Joseph Myers <joseph@codesourcery.com>
92
93 * configure: Regenerate.
94
33cde516
RS
952009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
96
97 PR testsuite/40699
98 PR testsuite/40707
99 PR testsuite/40709
100 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
101 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
102 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
103
bc21bfa5
RS
1042009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
105
106 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
107 options when choosing a multilib.
108
b30bfd40
RS
1092009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
110
111 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
112 ld_library_path. Use add_path. Add just find_libgcc_s to
113 ld_library_path, not every libgcc multilib directory.
114 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
115 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
116 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
117 Use add_path.
118 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
119
479c15c2
NF
1202009-06-09 Nathan Froyd <froydnj@codesourcery.com>
121
122 * Makefile.am (LTLDFLAGS): Define.
123 (LINK): Define.
124 * Makefile.in: Regenerate.
125
667e6f89
JB
1262009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
127
128 PR fortran/39718
129 * testsuite/libgomp.fortran/fortran.exp: Don't link with
130 libgfortranbegin, check existence of libgfortran.a instead of
131 libgfortranbegin.a.
132
6dea8e99
JJ
1332009-05-20 Jakub Jelinek <jakub@redhat.com>
134
135 PR libgomp/40174
136 * team.c (gomp_thread_start): Destroy thr->release semaphore.
137 (gomp_free_pool_helper): Likewise.
138
34d01e1d
VL
1392009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
140 Jakub Jelinek <jakub@redhat.com>
141
142 PR fortran/35423
143 * testsuite/libgomp.fortran/workshare2.f90: New test.
144
748086b7
JJ
1452009-04-09 Nick Clifton <nickc@redhat.com>
146
147 * iter.c: Change copyright header to refer to version 3 of the
148 GNU General Public License with version 3.1 of the GCC Runtime
149 Library Exception and to point readers at the COPYING3 and
150 COPYING3.RUNTIME files and the FSF's license web page.
151 * alloc.c: Likewise.
152 * barrier.c: Likewise.
153 * config/bsd/proc.c: Likewise.
154 * config/linux/affinity.c: Likewise.
155 * config/linux/alpha/futex.h: Likewise.
156 * config/linux/bar.c: Likewise.
157 * config/linux/bar.h: Likewise.
158 * config/linux/ia64/futex.h: Likewise.
159 * config/linux/ia64/mutex.h: Likewise.
160 * config/linux/lock.c: Likewise.
161 * config/linux/mips/futex.h: Likewise.
162 * config/linux/mutex.c: Likewise.
163 * config/linux/mutex.h: Likewise.
164 * config/linux/powerpc/futex.h: Likewise.
165 * config/linux/proc.c: Likewise.
166 * config/linux/ptrlock.c: Likewise.
167 * config/linux/ptrlock.h: Likewise.
168 * config/linux/s390/futex.h: Likewise.
169 * config/linux/sem.c: Likewise.
170 * config/linux/sem.h: Likewise.
171 * config/linux/sparc/futex.h: Likewise.
172 * config/linux/wait.h: Likewise.
173 * config/linux/x86/futex.h: Likewise.
174 * config/mingw32/proc.c: Likewise.
175 * config/mingw32/time.c: Likewise.
176 * config/posix/affinity.c: Likewise.
177 * config/posix/bar.c: Likewise.
178 * config/posix/bar.h: Likewise.
179 * config/posix/lock.c: Likewise.
180 * config/posix/mutex.h: Likewise.
181 * config/posix/proc.c: Likewise.
182 * config/posix/ptrlock.h: Likewise.
183 * config/posix/sem.c: Likewise.
184 * config/posix/sem.h: Likewise.
185 * config/posix/time.c: Likewise.
186 * config/posix95/lock.c: Likewise.
187 * critical.c: Likewise.
188 * env.c: Likewise.
189 * error.c: Likewise.
190 * fortran.c: Likewise.
191 * iter_ull.c: Likewise.
192 * libgomp.h: Likewise.
193 * libgomp_f.h.in: Likewise.
194 * libgomp_g.h: Likewise.
195 * loop.c: Likewise.
196 * loop_ull.c: Likewise.
197 * omp.h.in: Likewise.
198 * omp_lib.f90.in: Likewise.
199 * omp_lib.h.in: Likewise.
200 * ordered.c: Likewise.
201 * parallel.c: Likewise.
202 * sections.c: Likewise.
203 * single.c: Likewise.
204 * task.c: Likewise.
205 * team.c: Likewise.
206 * work.c: Likewise.
207
2082009-04-09 Jakub Jelinek <jakub@redhat.com>
209
210 * testsuite/config/default.exp: Change copyright header to refer to
211 version 3 of the GNU General Public License and to point readers
212 at the COPYING3 file and the FSF's license web page.
213
4f0ae266
JJ
2142009-04-08 Jakub Jelinek <jakub@redhat.com>
215
216 PR middle-end/39573
217 * libgomp.c++/pr39573.C: New test.
218
03742a9b
JJ
2192009-04-01 Jakub Jelinek <jakub@redhat.com>
220
221 PR other/39591
222 * testsuite/libgomp.c/pr39591-1.c: New test.
223 * testsuite/libgomp.c/pr39591-2.c: New test.
224 * testsuite/libgomp.c/pr39591-3.c: New test.
225
e50ea10b
UB
2262009-03-25 Uros Bizjak <ubizjak@gmail.com>
227
228 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
229 * testsuite/libgomp.c/atomic-6.c: Ditto.
230
c5cdb03f
JJ
2312009-03-23 Jakub Jelinek <jakub@redhat.com>
232
233 PR c/39495
234 * testsuite/libgomp.c/loop-12.c: New test.
235 * testsuite/libgomp.c/loop-11.c: New test.
236 * testsuite/libgomp.c++/loop-11.C: New test.
237 * testsuite/libgomp.c++/loop-12.C: New test.
238 * testsuite/libgomp.c++/for-8.C: New test.
239
7a9d3fe8
RW
2402009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
241
242 * configure: Regenerate.
243
3ad6b266
JJ
2442009-02-11 Jakub Jelinek <jakub@redhat.com>
245
246 PR middle-end/39154
247 * testsuite/libgomp.c/pr39154.c: New test.
248
b39dea08
ILT
2492009-01-30 Ian Lance Taylor <iant@google.com>
250
251 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
252 libgomp_ld_is_gold. Get gold version number.
253 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
254 * configure: Rebuild.
255
72c66596
IS
2562009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
257
e50ea10b 258 * testsuite/lib/libgomp.exp: Add -B option for targets that
72c66596
IS
259 use libgfortran.a%s in their specs.
260
876080ff
JJ
2612009-01-07 Jakub Jelinek <jakub@redhat.com>
262
263 PR libgomp/38086
264 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
265 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
266 HAVE_AS_SYMVER_DIRECTIVE is not defined.
267 * configure: Regenerated.
268 * config.h.in: Likewise.
269
e4ebaef3
JJ
2702008-12-28 Jakub Jelinek <jakub@redhat.com>
271
272 PR c++/38650
273 * testsuite/libgomp.c/pr38650.c: New test.
274 * testsuite/libgomp.c++/pr38650.C: New test.
275
382017a6
JJ
2762008-12-27 Jakub Jelinek <jakub@redhat.com>
277
278 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
279
79644b27
UB
2802008-12-26 Uros Bizjak <ubizjak@gmail.com>
281
282 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
283
baafc534
RW
2842008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
285
286 * configure: Regenerate.
287
d9c194cb
JJ
2882008-12-08 Jakub Jelinek <jakub@redhat.com>
289
290 PR middle-end/36802
291 * testsuite/libgomp.c/pr36802-1.c: New test.
292 * testsuite/libgomp.c/pr36802-2.c: New test.
293 * testsuite/libgomp.c/pr36802-3.c: New test.
294
86a182bf
JJ
2952008-12-01 Janis Johnson <janis187@us.ibm.com>
296
297 PR libgomp/38270
298 * config/linux/powerpc/mutex.h: New.
299
956adfaf
JJ
3002008-12-01 Jakub Jelinek <jakub@redhat.com>
301
a2d4cdc9
JJ
302 PR c++/38257
303 * testsuite/libgomp.c++/for-7.C: New test.
304
956adfaf
JJ
305 PR c++/38348
306 * testsuite/libgomp.c++/for-6.C: New test.
307
d4038ca2
JJ
3082008-11-26 Janis Johnson <janis187@us.ibm.com>
309
310 PR testsuite/28870
311 * testsuite/lib/libgomp.exp: Include new timeout library files.
312 (libgomp_target_compile): Set timeout value from new proc.
313
8b159eea
SE
3142008-11-13 Steve Ellcey <sje@cup.hp.com>
315
316 PR libgomp/37938
317 * config/linux/ia64/mutex.h: New.
318
5c6ed53a
TB
3192008-11-04 Tobias Burnus <burnus@net-b.de>
320
321 PR libgomp/37935
322 * libgomp.texi (Runtime library routines, environment variables):
323 Update for OpenMP version 3.0.
324
6b4a97ed
PG
3252008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
326 Steve Ellcey <sje@cup.hp.com>
327
328 * configure: Regenerate for new libtool.
329 * Makefile.in: Ditto.
330 * testsuite/Makefile.in: Ditto.
331
e2b34106
JJ
3322008-09-19 Jakub Jelinek <jakub@redhat.com>
333 Andreas Tobler <a.tobler@schweiz.org>
334
335 * config/bsd/proc.c: New file.
8c3b3600 336 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
e2b34106
JJ
337 * configure.ac: Check for header <sys/sysctl.h>
338 * configure: Regenerate.
339 * config.h.in: Likewise.
340
3606b8bf
JJ
3412008-09-05 Janis Johnson <janis187@us.ibm.com>
342
343 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
344
6528b88d
AL
3452008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
346
347 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
348 * Makefile.in: Regenerated.
349 * testsuite/Makefile.in: Regenerated.
350
d9b14b12 3512008-08-21 Nathan Froyd <froydnj@codesourcery.com>
8c9570df 352
a16b68bb 353 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8c9570df
NF
354 depend on blddir if blddir exists.
355 (libgomp_target_compile): Likewise.
356 * testsuite/libgomp.c++/c++.exp: Likewise.
357 * testsuite/libgomp.fortran/fortran.exp: Likewise.
358
70b1e376
RW
3592008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
360
361 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
362 Do not list GPL as Invariant Section.
363
318e8c3f
IG
3642008-07-28 Ilie Garbacea <ilie@mips.com>
365 Chao-ying Fu <fu@mips.com>
366
367 * configure.tgt: Enable futex for MIPS.
368 * config/linux/mips/futex.h: New file.
369
4db72361
JJ
3702008-07-16 Jakub Jelinek <jakub@redhat.com>
371
372 * team.c (gomp_team_end): Free team immediately if it has
373 just one thread.
374
87bd23b8
DE
3752008-07-08 David Edelsohn <edelsohn@gnu.org>
376
377 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
378 * testsuite/libgomp.fortran/fortran.exp: Same.
379 * testsuite/libgomp.c/c.exp: Same.
380 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
381 directory to library path first.
382
323ff903
KW
3832008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
384
385 * env.c (parse_stacksize): Add cast to avoid warning.
386 (parse_spincount): Likewise.
387
b357f682
JJ
3882008-06-27 Jakub Jelinek <jakub@redhat.com>
389
ca2b1311
JJ
390 * testsuite/libgomp.c/loop-10.c: New test.
391 * libgomp.c/loop-3.c (main): Add lastprivate clause.
392 * libgomp.c++/loop-6.C (main): Likewise.
393
b357f682
JJ
394 PR debug/36617
395 * testsuite/libgomp.c/debug-1.c: New test.
396
09a46078
JJ
3972008-06-19 Jakub Jelinek <jakub@redhat.com>
398
399 * testsuite/libgomp.c/nqueens-1.c: New test.
400
2368a460
JJ
401 PR c++/36523
402 * testsuite/libgomp.c++/task-7.C: New function.
403
18c04407
RW
4042008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
405
406 * configure: Regenerate.
407
9c4e59e0
JDA
4082008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
409
410 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
411 mutex when HAVE_SYNC_BUILTINS isn't defined.
412
6ccde948
RW
4132008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
414
415 * libgomp.texi (omp_test_lock): Fix typo.
416
b896f9fd
TB
4172008-06-12 Tobias Burnus <burnus@net-b.de>
418
419 * omp_lib.f90.in: Add "implicit none".
420
c34938a8
JJ
4212008-06-12 Jakub Jelinek <jakub@redhat.com>
422
423 PR middle-end/36506
424 * testsuite/libgomp.c/reduction-5.c: New test.
425
976e44e3
JJ
4262008-06-11 Jakub Jelinek <jakub@redhat.com>
427
5f836cbb
JJ
428 * libgomp.h (struct gomp_task): Add in_tied_task field.
429 * task.c (gomp_init_task): Initialize it.
430 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
431 unconditionally. Don't call gomp_team_barrier_wake if
432 current task is implicit or if(0) from implicit and number of
433 running tasks is equal to nthreads - 1.
434
01501fc8
JJ
435 PR libgomp/36471
436 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
437 omp_get_team_size_8): Fix pastos.
438
976e44e3
JJ
439 PR libgomp/36469
440 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
441 * configure: Regenerated.
442 * config.h.in: Regenerated.
443 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
444 defined.
445
e919209b
AT
4462008-06-06 Andreas Tobler <a.tobler@schweiz.org>
447
448 PR bootstrap/36452
449 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
450 (GOMP_loop_ull_dynamic_start): Likewise.
451 (GOMP_loop_ull_guided_start): Likewise.
452 (GOMP_loop_ull_ordered_static_start): Likewise.
453 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
454 (GOMP_loop_ull_ordered_guided_start): Likewise.
455
a68ab351
JJ
4562008-06-06 Jakub Jelinek <jakub@redhat.com>
457 Richard Henderson <rth@redhat.com>
458 Ulrich Drepper <drepper@redhat.com>
459 Jakob Blomer <jakob.blomer@ira.uka.de>
460
461 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
462 Substitute also OMP_*LOCK_25*.
463 * configure: Regenerated.
464 * config.h.in: Regenerated.
465 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
466 ptrlock.c and task.c.
467 * Makefile.in: Regenerated.
468 * testsuite/Makefile.in: Regenerated.
469 * task.c: New file.
470 * loop_ull.c: New file.
471 * iter_ull.c: New file.
472 * libgomp.h: Include ptrlock.h.
473 (enum gomp_task_kind): New type.
474 (struct gomp_team): Add task_lock, task_queue, task_count,
475 task_running_count, single_count fields. Add
476 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
477 Remove work_share_lock, generation_mask,
478 oldest_live_gen, num_live_gen and init_work_shares fields, add
479 work work_share_list_alloc, work_share_list_free and work_share_chunk
480 fields. Change work_shares from pointer to pointers into an array.
481 Change ordered_release field into gomp_sem_t ** from flexible array
482 member. Add implicit_task and initial_work_shares fields.
483 Move close to the end of the struct.
484 (struct gomp_team_state): Add single_count, last_work_share,
485 active_level and level fields, remove work_share_generation.
486 (gomp_barrier_handle_tasks): New prototype.
487 (gomp_finish_task): New inline function.
488 (struct gomp_work_share): Move chunk_size, end, incr into
489 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
490 next_ll fields. Reshuffle fields. Add next_alloc,
491 next_ws, next_free and inline_ordered_team_ids fields, change
492 ordered_team_ids into pointer from flexible array member.
493 Add mode field. Put lock and next into a different cache line
494 from most of the write-once fields.
495 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
496 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
497 gomp_iter_ull_guided_next): New prototypes.
498 (gomp_new_icv): New prototype.
499 (struct gomp_thread): Add thread_pool and task fields.
500 (struct gomp_thread_pool): New type.
501 (gomp_new_team): New prototype.
502 (gomp_team_start): Change type of last argument.
503 (gomp_new_work_share): Removed.
504 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
505 (gomp_work_share_init_done): New static inline.
506 (gomp_throttled_spin_count_var, gomp_available_cpus,
507 gomp_managed_threads): New extern decls.
508 (gomp_init_task): New prototype.
509 (gomp_spin_count_var): New extern var decl.
510 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
511 or no alias support, or if not PIC.
512 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
513 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
514 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
515 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
516 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
517 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
518 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
519 gomp_test_nest_lock_25): New prototypes.
520 (omp_lock_symver, strong_alias): Define.
521 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
522 decls.
523 (gomp_end_task): New.
524 (struct gomp_task_icv, gomp_global_icv): New.
525 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
526 (struct gomp_task): New.
527 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
528 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
529 (gomp_icv): New.
530 (gomp_schedule_type): Reorder enum to match
531 omp_sched_t.
532 * team.c (struct gomp_thread_start_data): Add thread_pool and task
533 fields.
534 (gomp_thread_start): Add gomp_team_barrier_wait call.
535 For non-nested case remove clearing of docked thread thr fields.
536 Use pool fields instead of global gomp_* variables. Use
537 gomp_barrier_wait_last when needed. Initialize ts.active_level.
538 Create tasks for each member thread.
539 (free_team): Only destroy team barrier, task_lock here and free it.
540 (gomp_free_thread): Free last_team if non-NULL.
541 (gomp_team_end): Call gomp_team_barrier_wait instead of
542 gomp_barrier_wait. For nested case call one extra
543 gomp_barrier_wait. Move here some destruction from free_team.
544 Call free_team on pool->last_team if any, rather than freeing
545 current team. Destroy work_share_list_free_lock ifndef
546 HAVE_SYNC_BUILTINS.
547 (gomp_new_icv): New function.
548 (gomp_threads, gomp_threads_size, gomp_threads_used,
549 gomp_threads_dock): Removed.
550 (gomp_thread_destructor): New variable.
551 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
552 functions.
553 (gomp_team_start): Create new pool if current thread doesn't have
554 one. Use pool fields instead of global gomp_* variables.
555 Initialize thread_pool field for new threads. Clear single_count.
556 Change last argument from ws to team, don't create
557 new team, set ts.work_share to &team->work_shares[0] and clear
558 ts.last_work_share. Don't clear ts.work_share_generation.
559 If number of threads changed, adjust atomically gomp_managed_threads.
560 Use gomp_init_task instead of gomp_new_task,
561 set thr->task to the corresponding implicit_task array entry.
562 Create tasks for each member thread. Initialize ts.level.
563 (initialize_team): Call pthread_key_create on
564 gomp_thread_destructor.
565 (team_destructor): New function.
566 (new_team): Removed.
567 (gomp_new_team): New function.
568 (free_team): Free gomp_work_share blocks chained through next_alloc,
569 instead of freeing work_shares and destroying work_share_lock.
570 (gomp_team_end): Call gomp_fini_work_share. If number of threads
571 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
572 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
573 of gomp_barrier_wait.
574 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
575 instead of gomp_barrier_wait. Call gomp_work_share_init_done
576 if gomp_work_share_start returned true. Don't unlock ws->lock.
577 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
578 of gomp_barrier_wait.
579 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
580 gomp_work_share_init_done if gomp_work_share_start returned true.
581 Don't unlock ws->lock.
582 * work.c: Include stddef.h.
583 (free_work_share): Use work_share_list_free_lock instead
584 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
585 Call gomp_fini_work_share and then either free ws if orphaned, or
586 put it into work_share_list_free list of the current team.
587 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
588 functions.
589 (gomp_work_share_start, gomp_work_share_end,
590 gomp_work_share_end_nowait): Rewritten.
591 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
592 (openmp_version): Set to 200805.
593 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
594 omp_sched_guided, omp_sched_auto): New parameters.
595 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
596 omp_set_max_active_levels, omp_get_max_active_levels,
597 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
598 omp_get_active_level): New interfaces.
599 * omp_lib.h.in (openmp_version): Set to 200805.
600 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
601 omp_sched_guided, omp_sched_auto): New parameters.
602 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
603 omp_set_max_active_levels, omp_get_max_active_levels,
604 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
605 omp_get_active_level): New externals.
606 * loop.c: Include limits.h.
607 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
608 GFS_AUTO.
609 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
610 Likewise. Use gomp_icv.
611 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
612 ts.static_trip here.
613 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
614 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
615 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
616 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
617 don't unlock ws->lock, otherwise lock it.
618 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
619 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
620 (gomp_parallel_loop_start): Call gomp_new_team instead of
621 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
622 Adjust gomp_team_start caller. Pass 0 as second argument to
623 gomp_resolve_num_threads.
624 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
625 If adding ws->chunk_size nthreads + 1 times after end won't
626 overflow, set ws->mode to 1.
627 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
628 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
629 GOMP_loop_ull_ordered_static_start,
630 GOMP_loop_ull_ordered_dynamic_start,
631 GOMP_loop_ull_ordered_guided_start,
632 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
633 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
634 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
635 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
636 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
637 prototypes.
638 * libgomp.map: Export lock routines also @@OMP_2.0.
639 (GOMP_loop_ordered_dynamic_first,
640 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
641 GOMP_loop_ordered_static_first): Remove.
642 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
643 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
644 GOMP_loop_ull_ordered_dynamic_next,
645 GOMP_loop_ull_ordered_dynamic_start,
646 GOMP_loop_ull_ordered_guided_next,
647 GOMP_loop_ull_ordered_guided_start,
648 GOMP_loop_ull_ordered_runtime_next,
649 GOMP_loop_ull_ordered_runtime_start,
650 GOMP_loop_ull_ordered_static_next,
651 GOMP_loop_ull_ordered_static_start,
652 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
653 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
654 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
655 (omp_set_schedule, omp_get_schedule,
656 omp_get_thread_limit, omp_set_max_active_levels,
657 omp_get_max_active_levels, omp_get_level,
658 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
659 omp_set_schedule_, omp_set_schedule_8_,
660 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
661 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
662 omp_get_max_active_levels_, omp_get_level_,
663 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
664 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
665 New exports @@OMP_3.0.
666 * omp.h.in (omp_sched_t): New type.
667 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
668 omp_set_max_active_levels, omp_get_max_active_levels,
669 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
670 omp_get_active_level): New prototypes.
671 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
672 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
673 gomp_thread_limit_var, gomp_remaining_threads_count,
674 gomp_remaining_threads_lock): New variables.
675 (parse_spincount): New function.
676 (initialize_env): Call gomp_init_num_threads unconditionally.
677 Initialize gomp_available_cpus. Call parse_spincount,
678 initialize gomp_{,throttled_}spin_count_var
679 depending on presence and value of OMP_WAIT_POLICY and
680 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
681 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
682 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
683 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
684 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
685 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
686 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
687 (gomp_global_icv): New.
688 (parse_schedule): Use it. Parse "auto".
689 (omp_set_num_threads): Use gomp_icv.
690 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
691 Likewise.
692 (omp_get_max_threads): Move from parallel.c.
693 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
694 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
695 add ialias.
696 (parse_stacksize, parse_wait_policy): New functions.
697 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
698 both wrappers for compatibility and new locks.
699 (omp_set_schedule, omp_get_schedule,
700 omp_get_thread_limit, omp_set_max_active_levels,
701 omp_get_max_active_levels, omp_get_level,
702 omp_get_ancestor_thread_num, omp_get_team_size,
703 omp_get_active_level): New ialias_redirect.
704 (omp_set_schedule_, omp_set_schedule_8_,
705 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
706 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
707 omp_get_max_active_levels_, omp_get_level_,
708 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
709 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
710 New functions.
711 * parallel.c: Include limits.h.
712 (gomp_resolve_num_threads): Add count argument. Rewritten.
713 (GOMP_parallel_start): Call gomp_new_team and pass that as last
714 argument to gomp_team_start. Pass 0 as second argument to
715 gomp_resolve_num_threads.
716 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
717 if gomp_thread_limit_var != ULONG_MAX.
718 (omp_in_parallel): Implement using ts.active_level.
719 (omp_get_max_threads): Move to env.c.
720 (omp_get_level, omp_get_ancestor_thread_num,
721 omp_get_team_size, omp_get_active_level): New functions,
722 add ialias.
723 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
724 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
725 gomp_iter_dynamic_next instead of the _locked variant and don't take
726 lock around it, otherwise acquire it before calling
727 gomp_iter_dynamic_next_locked.
728 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
729 gomp_iter_dynamic_next instead of the _locked variant and don't take
730 lock around it.
731 (GOMP_parallel_sections_start): Call gomp_new_team instead of
732 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
733 Adjust gomp_team_start caller. Pass count as second argument to
734 gomp_resolve_num_threads, don't adjust num_threads after the call.
735 Use gomp_icv.
736 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
737 ws->chunk_size by incr.
738 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
739 code.
740 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
741 types.
742 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
743 (omp_check_defines): Check even the compat defines.
744 * config/linux/ptrlock.c: New file.
745 * config/linux/ptrlock.h: New file.
746 * config/linux/wait.h: New file.
747 * config/posix/ptrlock.c: New file.
748 * config/posix/ptrlock.h: New file.
749 * config/linux/bar.h (gomp_team_barrier_wait,
750 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
751 (gomp_team_barrier_set_task_pending,
752 gomp_team_barrier_clear_task_pending,
753 gomp_team_barrier_set_waiting_for_tasks,
754 gomp_team_barrier_waiting_for_tasks,
755 gomp_team_barrier_done): New inlines.
756 (gomp_barrier_t): Rewritten.
757 (gomp_barrier_state_t): New typedef.
758 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
759 gomp_barrier_wait_start): Rewritten.
760 (gomp_barrier_wait_end): Change second argument to
761 gomp_barrier_state_t.
762 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
763 inlines.
764 * config/linux/bar.c: Include wait.h instead of libgomp.h and
765 futex.h.
766 (gomp_barrier_wait_end): Rewritten.
767 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
768 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
769 * config/posix/bar.h (gomp_barrier_t): Add generation field.
770 (gomp_barrier_state_t): New typedef.
771 (gomp_team_barrier_wait,
772 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
773 (gomp_barrier_wait_start): Or all but low 2 bits from generation
774 into the return value. Return gomp_barrier_state_t.
775 (gomp_team_barrier_set_task_pending,
776 gomp_team_barrier_clear_task_pending,
777 gomp_team_barrier_set_waiting_for_tasks,
778 gomp_team_barrier_waiting_for_tasks,
779 gomp_team_barrier_done): New inlines.
780 (gomp_barrier_wait_end): Change second argument to
781 gomp_barrier_state_t.
782 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
783 inlines.
784 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
785 (gomp_barrier_wait_end): Change second argument to
786 gomp_barrier_state_t.
787 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
788 gomp_team_barrier_wake): New functions.
789 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
790 futex.h.
791 (gomp_futex_wake, gomp_futex_wait): New variables.
792 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
793 * config/linux/lock.c: Rewrite to make locks task owned,
794 for backwards compatibility provide the old entrypoints
795 if symbol versioning. Include wait.h instead of libgomp.h and
796 futex.h.
797 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
798 * config/posix95/lock.c: Rewrite to make locks task owned,
799 for backwards compatibility provide the old entrypoints
800 if symbol versioning.
801 * config/posix/lock.c: Rewrite to make locks task owned,
802 for backwards compatibility provide the old entrypoints
803 if symbol versioning.
804 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
805 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
806 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
807 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
808 (sys_futex0): Return error code.
809 (futex_wake, futex_wait): If ENOSYS was returned, clear
810 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
811 (cpu_relax, atomic_write_barrier): New static inlines.
812 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
813 (futex_wake, futex_wait): If ENOSYS was returned, clear
814 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
815 (cpu_relax, atomic_write_barrier): New static inlines.
816 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
817 (sys_futex0): Return error code.
818 (futex_wake, futex_wait): If ENOSYS was returned, clear
819 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
820 (cpu_relax, atomic_write_barrier): New static inlines.
821 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
822 (sys_futex0): Return error code.
823 (futex_wake, futex_wait): If ENOSYS was returned, clear
824 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
825 (cpu_relax, atomic_write_barrier): New static inlines.
826 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
827 (sys_futex0): Return error code.
828 (futex_wake, futex_wait): If ENOSYS was returned, clear
829 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
830 (cpu_relax, atomic_write_barrier): New static inlines.
831 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
832 (sys_futex0): Return error code.
833 (futex_wake, futex_wait): If ENOSYS was returned, clear
834 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
835 (cpu_relax, atomic_write_barrier): New static inlines.
836 * config/linux/sem.c: Include wait.h instead of libgomp.h and
837 futex.h.
838 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
839 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
840 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
841 types.
842 (omp_nest_lock_t): Change owner into void *, add lock field.
843 * config/posix95/omp-lock.h: Include semaphore.h.
844 (omp_lock_25_t, omp_nest_lock_25_t): New types.
845 (omp_lock_t): Use sem_t instead of mutex if semaphores
846 aren't broken.
847 (omp_nest_lock_t): Likewise. Change owner to void *.
848 * config/posix/omp-lock.h: Include semaphore.h.
849 (omp_lock_25_t, omp_nest_lock_25_t): New types.
850 (omp_lock_t): Use sem_t instead of mutex if semaphores
851 aren't broken.
852 (omp_nest_lock_t): Likewise. Add owner field.
853
8542008-06-06 Jakub Jelinek <jakub@redhat.com>
855
856 * testsuite/libgomp.c/collapse-1.c: New test.
857 * testsuite/libgomp.c/collapse-2.c: New test.
858 * testsuite/libgomp.c/collapse-3.c: New test.
859 * testsuite/libgomp.c/icv-1.c: New test.
860 * testsuite/libgomp.c/icv-2.c: New test.
861 * testsuite/libgomp.c/lib-2.c: New test.
862 * testsuite/libgomp.c/lock-1.c: New test.
863 * testsuite/libgomp.c/lock-2.c: New test.
864 * testsuite/libgomp.c/lock-3.c: New test.
865 * testsuite/libgomp.c/loop-4.c: New test.
866 * testsuite/libgomp.c/loop-5.c: New test.
867 * testsuite/libgomp.c/loop-6.c: New test.
868 * testsuite/libgomp.c/loop-7.c: New test.
869 * testsuite/libgomp.c/loop-8.c: New test.
870 * testsuite/libgomp.c/loop-9.c: New test.
871 * testsuite/libgomp.c/nested-3.c: New test.
872 * testsuite/libgomp.c/nestedfn-6.c: New test.
873 * testsuite/libgomp.c/sort-1.c: New test.
874 * testsuite/libgomp.c/task-1.c: New test.
875 * testsuite/libgomp.c/task-2.c: New test.
876 * testsuite/libgomp.c/task-3.c: New test.
877 * testsuite/libgomp.c/task-4.c: New test.
878 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
879 to C++ testsuite default compiler options.
880 * testsuite/libgomp.c++/collapse-1.C: New test.
881 * testsuite/libgomp.c++/collapse-2.C: New test.
882 * testsuite/libgomp.c++/ctor-10.C: New test.
883 * testsuite/libgomp.c++/for-1.C: New test.
884 * testsuite/libgomp.c++/for-2.C: New test.
885 * testsuite/libgomp.c++/for-3.C: New test.
886 * testsuite/libgomp.c++/for-4.C: New test.
887 * testsuite/libgomp.c++/for-5.C: New test.
888 * testsuite/libgomp.c++/loop-8.C: New test.
889 * testsuite/libgomp.c++/loop-9.C: New test.
890 * testsuite/libgomp.c++/loop-10.C: New test.
891 * testsuite/libgomp.c++/task-1.C: New test.
892 * testsuite/libgomp.c++/task-2.C: New test.
893 * testsuite/libgomp.c++/task-3.C: New test.
894 * testsuite/libgomp.c++/task-4.C: New test.
895 * testsuite/libgomp.c++/task-5.C: New test.
896 * testsuite/libgomp.c++/task-6.C: New test.
897 * testsuite/libgomp.fortran/allocatable1.f90: New test.
898 * testsuite/libgomp.fortran/allocatable2.f90: New test.
899 * testsuite/libgomp.fortran/allocatable3.f90: New test.
900 * testsuite/libgomp.fortran/allocatable4.f90: New test.
901 * testsuite/libgomp.fortran/collapse1.f90: New test.
902 * testsuite/libgomp.fortran/collapse2.f90: New test.
903 * testsuite/libgomp.fortran/collapse3.f90: New test.
904 * testsuite/libgomp.fortran/collapse4.f90: New test.
905 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
906 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
907 * testsuite/libgomp.fortran/lib4.f90: New test.
908 * testsuite/libgomp.fortran/lock-1.f90: New test.
909 * testsuite/libgomp.fortran/lock-2.f90: New test.
910 * testsuite/libgomp.fortran/nested1.f90: New test.
911 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
912 * testsuite/libgomp.fortran/strassen.f90: New test.
913 * testsuite/libgomp.fortran/tabs1.f90: New test.
914 * testsuite/libgomp.fortran/tabs2.f: New test.
915 * testsuite/libgomp.fortran/task1.f90: New test.
916 * testsuite/libgomp.fortran/task2.f90: New test.
917 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
918 * testsuite/libgomp.fortran/vla5.f90: Likewise.
919 * testsuite/libgomp.c/pr26943-2.c: Likewise.
920 * testsuite/libgomp.c/pr26943-3.c: Likewise.
921 * testsuite/libgomp.c/pr26943-4.c: Likewise.
922
7a0112e7
JJ
9232008-05-23 Jakub Jelinek <jakub@redhat.com>
924
925 PR c++/36308
926 * testsuite/libgomp.c++/ctor-11.C: New test.
927 * testsuite/libgomp.c++/ctor-12.C: New test.
928
91a5b394
JJ
9292008-05-15 Janis Johnson <janis187@us.ibm.com>
930
931 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
932
c18c98c0
JJ
9332008-05-07 Jakub Jelinek <jakub@redhat.com>
934
935 PR middle-end/36106
936 * testsuite/libgomp.c/atomic-5.c: New test.
937 * testsuite/libgomp.c/atomic-6.c: New test.
938 * testsuite/libgomp.c/autopar-1.c: New test.
939
6d26724a
RW
9402008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
941
942 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
943 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
944 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
945 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
946 * configure: Regenerate.
947 * Makefile.in, testsuite/Makefile.in: Likewise.
948
deb984e6
PB
9492008-04-18 Paolo Bonzini <bonzini@gnu.org>
950
951 PR bootstrap/35457
952 * aclocal.m4: Regenerate.
953 * configure: Regenerate.
954
9e775963
JJ
9552008-03-18 Jakub Jelinek <jakub@redhat.com>
956
8119fc93
JJ
957 PR middle-end/35611
958 * testsuite/libgomp.c/atomic-4.c: New test.
959
9e775963
JJ
960 PR libgomp/35625
961 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
962 (gomp_iter_guided_next): Likewise.
963 * testsuite/libgomp.c/pr35625.c: New test.
964
38d24731
RW
9652008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
966
967 * aclocal.m4: Regenerate.
968 * configure: Likewise.
969 * Makefile.in: Likewise.
970 * testsuite/Makefile.in: Likewise.
971
d0fb20be
JJ
9722008-03-13 Jakub Jelinek <jakub@redhat.com>
973
974 PR middle-end/35185
975 * testsuite/libgomp.c++/pr35185.C: New test.
976
7c8f7639
JJ
9772008-03-12 Jakub Jelinek <jakub@redhat.com>
978
979 PR middle-end/35549
980 * testsuite/libgomp.c/pr35549.c: New test.
981
251923f5
JJ
9822008-03-06 Jakub Jelinek <jakub@redhat.com>
983
984 * testsuite/libgomp.c/atomic-3.c: New test.
985
f489fba1
FXC
9862008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
987
988 PR fortran/33197
251923f5 989 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
f489fba1
FXC
990 .F08 file suffixes.
991
a1b25e49
PG
9922008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
993
994 PR libgomp/33131
995 * configure.ac: Add ACX_HEADER_STRING.
996 * env.c: Include strings.h.
997 * aclocal.m4: Regenerate.
998 * config.h.in: Regenerate.
999 * configure: Regenerate.
1000 * Makefile.in: Regenerate.
1001 * testsuite/Makefile.in: Regenerate.
1002
6837b3b8
JJ
10032008-02-15 Jakub Jelinek <jakub@redhat.com>
1004
ac84c062
JJ
1005 PR middle-end/35196
1006 * testsuite/libgomp.c/pr35196.c: New test.
1007
6837b3b8
JJ
1008 PR middle-end/35130
1009 * testsuite/libgomp.fortran/pr35130.f90: New test.
1010 * testsuite/libgomp.c/pr35130.c: New test.
1011
c256730c
JJ
10122008-01-25 Jakub Jelinek <jakub@redhat.com>
1013
1014 PR middle-end/33880
1015 * testsuite/libgomp.c/pr33880.c: New test.
1016 * testsuite/libgomp.fortran/pr33880.f90: New test.
1017
c8e95542 10182008-01-24 David Edelsohn <edelsohn@gnu.org>
d653fdfb
DE
1019
1020 * configure: Regenerate.
1021
0f3e711e
JJ
10222008-01-08 Jakub Jelinek <jakub@redhat.com>
1023
1024 * configure.ac: Move futex checking into ../config/futex.m4.
1025 * configure: Rebuilt.
1026 * aclocal.m4: Rebuilt.
1027 * Makefile.in: Rebuilt.
1028
1029 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1030 2007-10-15 ../config/tls.m4 change.
1031
5259c813
JJ
10322007-12-19 Jakub Jelinek <jakub@redhat.com>
1033
1034 PR c++/34513
1035 * testsuite/libgomp.c/pr34513.c: New test.
1036 * testsuite/libgomp.c++/pr34513.C: New test.
1037
ae8d8879
JH
10382007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1039
1040 PR target/32765
1041 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1042
2b4cf991
JJ
10432007-12-04 Jakub Jelinek <jakub@redhat.com>
1044
1045 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1046
d2dda7fe
JJ
10472007-12-03 Jakub Jelinek <jakub@redhat.com>
1048
1049 * testsuite/libgomp.c/private-1.c: New test.
1050
d683ec81
PB
10512007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1052 Paolo Bonzini <bonzini@gnu.org>
1053
1054 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1055 instead of 'VPATH ='.
1056 * Makefile.in: Regenerate.
1057
a7415017
MK
10582007-11-23 Matthias Klose <doko@ubuntu.com>
1059
1060 * configure.ac: Adjust makeinfo version check.
1061 * configure: Regenerate.
1062
78e47463
JJ
10632007-11-10 Jakub Jelinek <jakub@redhat.com>
1064
1065 PR fortran/34020
1066 * testsuite/libgomp.fortran/pr34020.f90: New test.
1067
239371f9
JJ
10682007-11-06 Jakub Jelinek <jakub@redhat.com>
1069
1070 PR c++/33894
1071 * testsuite/libgomp.c++/atomic-1.C: New test.
1072
98a5fa94
JJ
10732007-10-25 Jakub Jelinek <jakub@redhat.com>
1074
1075 PR libgomp/33275
1076 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1077 Make x and y integers rather than (implicit) reals. Add private (j)
1078 clause to the last omp parallel.
1079
3afcaaf4
MR
10802007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1081
1082 * configure: Regenerate following changes to ../config/tls.m4.
1083
bd69daef
JJ
10842007-09-28 Jakub Jelinek <jakub@redhat.com>
1085
1086 * testsuite/libgomp.fortran/stack.f90: New test.
1087
1d0bd356
DS
10882007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1089
1090 * config/mingw32/proc.c: New file.
1091
b3172cab
UB
10922007-09-05 Uros Bizjak <ubizjak@gmail.com>
1093
1094 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1095 (main): Use __get_cpuid to get i386 target fetaures.
1096 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1097 (main): Use __get_cpuid to get x86_64 target fetaures.
1098
6da17392
JH
10992007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1100
1101 PR target/32765
1102 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1103 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1104
e1c82219
JJ
11052007-07-12 Jakub Jelinek <jakub@redhat.com>
1106
1107 PR fortran/32550
1108 * testsuite/libgomp.fortran/pr32550.f90: New test.
1109 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1110
12a27363
L
11112007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1112
1113 * aclocal.m4: Regenerated.
1114
5349080d
TB
11152007-07-05 Tobias Burnus <burnus@net-b.de>
1116
1117 PR fortran/32359
1118 * testsuite/libgomp.fortran/pr32359.f90: New.
1119
4f9c450c
JJ
11202007-07-02 Jakub Jelinek <jakub@redhat.com>
1121
1122 PR libgomp/32468
1123 * sections.c (GOMP_parallel_sections_start): Only decrease
1124 number of threads to COUNT if dyn_var is true.
1125 * testsuite/libgomp.c/pr32468.c: New test.
1126
28c67ed7
RO
11272007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1128
1129 PR libgomp/26308
1130 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1131
64964499
JJ
11322007-06-21 Jakub Jelinek <jakub@redhat.com>
1133
1134 PR middle-end/32362
1135 * testsuite/libgomp.c/pr32362-1.c: New test.
1136 * testsuite/libgomp.c/pr32362-2.c: New test.
1137 * testsuite/libgomp.c/pr32362-3.c: New test.
1138
46d8fbd1
JJ
11392007-06-07 Jakub Jelinek <jakub@redhat.com>
1140
1141 * team.c (gomp_team_start): Fix setting up thread_attr
1142 stack size.
1143
82a6cadf
PB
11442007-06-02 Paolo Bonzini <bonzini@gnu.org>
1145
1146 * configure: Regenerate.
1147
1cf3d07d
SE
11482007-05-23 Steve Ellcey <sje@cup.hp.com>
1149
1150 * Makefile.in: Regenerate.
1151 * configure: Regenerate.
1152 * aclocal.m4: Regenerate.
1153 * testsuite/Makefile.in: Regenerate.
1154
12aac30b
JJ
11552007-05-04 Jakub Jelinek <jakub@redhat.com>
1156
1157 * config/linux/proc.c: New file.
1158
f1028b02
JJ
1159 PR libgomp/28482
1160 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1161
06785a48
DF
11622007-04-19 Daniel Franke <franke.daniel@gmail.com>
1163
1164 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1165
b3b08ba0
MK
11662007-04-16 Matthias Klose <doko@debian.org>
1167
1168 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1169 flags if not building with -m64.
1170 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1171 flag for i?86-*-* targets, if current target matches -m64.
1172
6b2c5ce0
SE
11732007-04-14 Steve Ellcey <sje@cup.hp.com>
1174
1175 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1176 * Makefile.in: Regenerate.
1177
dd56fe7c
JDA
11782007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1179
1180 PR testsuite/31369
1181 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1182 ld_library_path.
1183 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1184
a0884cf0
JJ
11852007-04-04 Jakub Jelinek <jakub@redhat.com>
1186
1187 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1188 decls.
1189 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1190 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1191 (parse_affinity): New function.
1192 (initialize_env): Call it and gomp_init_affinity.
1193 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1194 create new pthread_attr_t and call gomp_init_thread_affinity
1195 on it for each thread before passing the attribute to pthread_create.
1196 * config/linux/affinity.c: New file.
1197 * config/posix/affinity.c: New file.
1198 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1199 * configure: Rebuilt.
1200 * config.h.in: Rebuilt.
1201 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1202 * Makefile.in: Rebuilt.
1203
1850744b
AT
12042007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1205
1206 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1207 *-*-darwin*.
1208 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1209 and use it if found.
1210
516f1ed8
UB
12112007-03-18 Uros Bizjak <ubizjak@gmail.com>
1212
1213 * testsuite/config/default.exp: New file.
1214 * testsuite/lib/libgomp.exp: New file.
1215 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1216 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1217 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1218 (libgomp_load): Remove.
1219 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1220 always_ld_library_path, not ld_library_path. Set additional_flags
1221 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1222 (target_compile): Do not call libgomp_init. Append lang_library_path
1223 and lang_link_flags to options.
1224 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1225 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1226 here.
1227 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1228 always_ld_library_path. Set LD_LIBRARY_PATH here.
1229 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1230 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1231 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1232 CX8 flag.
1233 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1234 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1235 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1236 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1237 * testsuite/libgomp.c/atomic-10.c: Ditto.
1238
2ada56f5
JJ
12392007-03-21 Jakub Jelinek <jakub@redhat.com>
1240
1241 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1242 dg-final cleanup-modules line.
1243 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1244 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1245 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1246 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1247 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1248 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1249 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1250
f210f1cd
AS
12512007-03-18 Andreas Schwab <schwab@suse.de>
1252
1253 * acinclude.m4: Adjust regular expression for ld version
1254 extraction.
1255 * configure: Regenerate.
1256
c4dc950d
BM
12572007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
1258
1259 * Makefile.am: Add install-pdf target as copied from
1260 automake v1.10 rules.
1261 * Makefile.in: Regenerate
1262
e02a048f
JJ
12632007-02-07 Jakub Jelinek <jakub@redhat.com>
1264
78e075d4
JJ
1265 PR libgomp/28486
1266 * configure: Regenerate.
1267
e02a048f
JJ
1268 PR c++/30703
1269 * testsuite/libgomp.c++/pr30703.C: New test.
1270
60def7ed
JJ
12712007-02-02 Jakub Jelinek <jakub@redhat.com>
1272
1273 Revert:
1274 2006-07-05 Eric Christopher <echristo@apple.com>
1275 * configure.ac: Depend addition of -pthread on host OS.
1276 * configure: Regenerate.
1277
f1b0882e
RW
12782007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1279
1280 * libgomp.texi: Fix spacing after abbreviations.
1281
748b9d7c
DF
12822007-01-31 Daniel Franke <franke.daniel@gmail.com>
1283
1284 PR libgomp/30546
1285 * configure.ac: Add check for makeinfo
1286 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1287 if an appropiate version of makeinfo is found.
1288 * aclocal.m4: Regenerated.
1289 * configure: Regenerated.
1290 * Makefile.in: Regenerated.
1291 * testsuite/Makefile.in: Regenerated.
1292
14734fc7
DF
12932007-01-29 Daniel Franke <franke.daniel@gmail.com>
1294
1295 PR libgomp/30540
1296 * libgomp.texi: More about implementation-dependent settings.
1297
7befd5d2
TB
12982007-01-26 Tobias Burnus <burnus@net-b.de>
1299
1300 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1301
4288fea2
JJ
13022007-01-24 Jakub Jelinek <jakub@redhat.com>
1303
1304 PR middle-end/30494
1305 * testsuite/libgomp.c/pr30494.c: New test.
1306
627ab4b8
TT
13072007-01-15 Tom Tromey <tromey@redhat.com>
1308
1309 * configure: Rebuilt.
1310 * configure.ac: Fixed comment.
1311
7c2b7f45
DF
13122007-01-14 Daniel Franke <franke.daniel@gmail.com>
1313
1314 * libgomp.texi: Document implementation specific default values of
1315 environment variables.
1316
3721b9e1
DF
13172006-12-21 Daniel Franke <franke.daniel@gmail.com>
1318
1319 PR libgomp/28209
1320 * libgomp.texi: New file.
1321 * configure.ac: Add --enable-generated-files-in-srcdir option.
1322 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1323 files to srcdir.
1324 * Makefile.in: Regenerated.
1325 * config.h.in: Regenerated.
1326 * testsuite/Makefile.in: Regenerated.
1327 * NOTES: Removed.
1328
62bd6216
DF
13292006-12-04 Daniel Franke <franke.daniel@gmail.com>
1330
1331 PR libgomp/29949
1332 * env.c (omp_set_num_threads): Set illegal thread count to 1.
1333
aad741f4
EB
13342006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1335
1336 * configure: Regenerate.
1337
22568cc6
JJ
13382006-12-04 Jakub Jelinek <jakub@redhat.com>
1339
1340 PR libgomp/29947
1341 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
1342 start if there shouldn't be any loop iterations.
1343 (gomp_loop_ordered_static_start): Remove start == end test.
1344 * testsuite/libgomp.c/pr29947-1.c: New test.
1345 * testsuite/libgomp.c/pr29947-2.c: New test.
1346
a9690009
EB
13472006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1348
1349 * configure.tgt: Force initial-exec TLS model on Linux only.
1350
597c25e6
DJ
13512006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
1352
1353 * configure: Regenerated.
1354
6acf0b38
UB
13552006-11-09 Uros Bizjak <ubizjak@gmail.com>
1356
1357 * env.c (parse_schedule): Reject out of range values.
1358 (parse_unsigned_long): Reject out of range, negative or zero values.
1359
a7a53ca5
JJ
13602006-10-29 Jakub Jelinek <jakub@redhat.com>
1361
1362 PR fortran/29629
1363 * testsuite/libgomp.fortran/pr29629.f90: New test.
1364
6d4d216a
EB
13652006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1366
1367 PR libgomp/29494
1368 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1369 * config/posix95: New directory.
1370 * config/posix95/omp-lock.h: New file.
1371 * config/posix95/lock.c: Likewise.
1372
5b043f08
GK
13732006-10-14 Geoffrey Keating <geoffk@apple.com>
1374
1375 * aclocal.m4: Regenerate.
1376 * configure: Regenerate.
1377
b50019f0
DS
13782006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1379
1380 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1381 '<' to '<='.
1382
8887708e
DS
13832006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
1384
1385 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1386 test.
1387 * configure: Regenerate.
1388 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1389
9b9e4cd6
JJ
13902006-09-26 Jakub Jelinek <jakub@redhat.com>
1391
a70ad3bb
JJ
1392 PR middle-end/25261
1393 PR middle-end/28790
1394 * testsuite/libgomp.c/nestedfn-4.c: New test.
1395 * testsuite/libgomp.c/nestedfn-5.c: New test.
1396 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1397
9b9e4cd6
JJ
1398 PR fortran/29097
1399 * testsuite/libgomp.fortran/condinc1.f: New test.
1400 * testsuite/libgomp.fortran/condinc2.f: New test.
1401 * testsuite/libgomp.fortran/condinc3.f90: New test.
1402 * testsuite/libgomp.fortran/condinc4.f90: New test.
1403 * testsuite/libgomp.fortran/condinc1.inc: New file.
1404
2fb31455
TT
14052006-09-18 Tom Tromey <tromey@redhat.com>
1406
1407 * configure: Rebuilt.
1408
c663e301
JM
14092006-09-13 Joseph S. Myers <joseph@codesourcery.com>
1410
1411 PR c/28768
1412 PR preprocessor/14634
1413 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
1414 to AC_DEFINE.
1415 * configure: Regenerate.
1416
38371be9
SK
14172006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
1418
1419 * testsuite/libgomp.fortran/reduction3.f90: Change
1420 -2147483648 to -huge(i)-1 to avoid overflow.
1421 * testsuite/libgomp.fortran/reduction4.f90: Change
1422 Z'ffffffff' to not(0) to avoid overflow.
1423
571d5ac5
JM
14242006-08-26 Joseph S. Myers <joseph@codesourcery.com>
1425
1426 PR libgomp/25938
1427 * Makefile.am (libsubincludedir): New.
1428 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
1429 * Makefile.in: Regenerate.
1430
89b3e3cd
JJ
14312006-08-17 Jakub Jelinek <jakub@redhat.com>
1432
1433 PR libgomp/28725
1434 * env.c: Include ctype.h.
1435 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
1436 leading and/or trailing whitespace and compare strings case
1437 insensitively.
1438
742fae05
JJ
14392006-07-16 Jakub Jelinek <jakub@redhat.com>
1440
1441 PR fortran/28390
1442 * testsuite/libgomp.fortran/pr28390.f: New test.
1443
a1daed2d
EC
14442006-07-05 Eric Christopher <echristo@apple.com>
1445
1446 * configure.ac: Depend addition of -pthread on host OS.
1447 * configure: Regenerate.
1448
5d7b5199
JJ
14492006-06-21 Jakub Jelinek <jakub@redhat.com>
1450
1451 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
1452 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
1453 defined.
1454
fe5568e9
JJ
14552006-06-20 Jakub Jelinek <jakub@redhat.com>
1456
1457 PR libgomp/26175
1458 PR libgomp/26477
1459 * configure.ac: If neither --enable-linux-futex nor
1460 --disable-linux-futex is passed, determine the default by checking
1461 for compiling and/or running against NPTL. With --enable-linux-futex,
1462 check if SYS_gettid and SYS_futex are defined.
1463 * configure: Rebuilt.
1464
c3b11a40
RH
14652006-06-14 Richard Henderson <rth@redhat.com>
1466
1467 PR libgomp/28008
1468 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
1469 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
1470
d0d1b24d
RH
14712006-06-09 Richard Henderson <rth@redhat.com>
1472
1473 * env.c (gomp_nthreads_var): Change to unsigned long.
1474 (gomp_run_sched_chunk): Likewise.
1475 (parse_unsigned_long): Rename from parse_num_threads and generalize.
1476 (initialize_env): Initialize gomp_thread_attr.
1477 * libgomp.h (gomp_nthreads_var): Update decl.
1478 (gomp_run_sched_chunk): Likewise.
1479 (gomp_thread_attr): Declare.
1480 * team.c (gomp_thread_attr): Export.
1481 (initialize_team): Don't initialize it.
1482
cd75853e
JJ
14832006-06-09 Jakub Jelinek <jakub@redhat.com>
1484
1485 PR fortran/27916
1486 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
1487 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
1488
33815e0c
FXC
14892006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1490
1491 * config/mingw32/time.c: New file.
1492 * configure.tgt: Use it.
1493
6667de0d
CD
14942006-05-23 Carlos O'Donell <carlos@codesourcery.com>
1495
1496 * Makefile.am: Add install-html target. Add install-html to .PHONY
1497 * Makefile.in: Regenerate.
1498
e962c46b
JDA
14992006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1500
1501 PR libgomp/27612
1502 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
1503 * testsuite/libgomp.c/critical-1.c: Likewise.
1504 * testsuite/libgomp.c/loop-1.c: Likewise.
1505 * testsuite/libgomp.c/loop-2.c: Likewise.
1506 * testsuite/libgomp.c/single-1.c: Likewise.
1507 * testsuite/libgomp.c/ordered-1.c: Likewise.
1508 * testsuite/libgomp.c/ordered-2.c: Likewise.
1509
eeb1d9e0
JJ
15102006-05-15 Jakub Jelinek <jakub@redhat.com>
1511
1512 PR middle-end/27416
1513 * libgomp.fortran/pr27416-1.f90: New test.
1514
693d710f
JJ
15152006-05-03 Jakub Jelinek <jakub@redhat.com>
1516
1517 PR fortran/27395
1518 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
1519 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
1520
8ca5b2a2
JJ
15212006-05-02 Jakub Jelinek <jakub@redhat.com>
1522
1523 PR c++/26943
1524 * testsuite/libgomp.c/pr26943-1.c: New test.
1525 * testsuite/libgomp.c/pr26943-2.c: New test.
1526 * testsuite/libgomp.c/pr26943-3.c: New test.
1527 * testsuite/libgomp.c/pr26943-4.c: New test.
1528 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
1529 * testsuite/libgomp.c++/pr26943.C: New test.
1530
077b0dfb
JJ
15312006-05-02 Jakub Jelinek <jakub@redhat.com>
1532
1533 PR middle-end/27337
1534 * testsuite/libgomp.c++/pr27337.C: New test.
1535
91b6c26d
JJ
15362006-04-26 Jakub Jelinek <jakub@redhat.com>
1537
1538 PR c/26171
1539 * testsuite/libgomp.c/pr26171.c: New test.
1540
60e1758f
RH
15412006-04-25 Richard Henderson <rth@redhat.com>
1542
1543 PR libgomp/25865
1544 * configure.ac: Use GCC_CHECK_TLS.
1545 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
1546 * Makefile.in, aclocal.m4, configure: Regenerate.
1547
615baed7
MK
15482006-04-10 Matthias Klose <doko@debian.org>
1549
1550 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
1551 directory names containing underscores.
1552
fae2b46b
JJ
15532006-03-21 Jakub Jelinek <jakub@redhat.com>
1554
1555 PR c++/26691
1556 * testsuite/libgomp.c++/pr26691.C: New test.
1557
11a5f608
JJ
15582006-03-13 Jakub Jelinek <jakub@redhat.com>
1559
1560 * testsuite/libgomp.fortran/retval2.f90: New test.
1561
1799e5d5
RH
15622006-03-09 Diego Novillo <dnovillo@redhat.com>
1563
1564 * testsuite/libgomp.c++: New directory.
1565
d349482e
AT
15662006-02-25 Shantonu Sen <ssen@opendarwin.org>
1567
1568 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
1569 * config/posix/sem.c: Implement the above.
1570
15712006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
1572
1573 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
1574 define HAVE_BROKEN_POSIX_SEMAPHORES.
1575 * configure: Rebuilt.
1576 * config.h.in: Rebuilt.
1577
124452c9
FXC
15782006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1579
1580 PR bootstrap/26161
1581 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
1582 for the other pthread check.
1583 * configure: Regenerate.
1584 * config.h.in: Regenerate.
1585
dd8d6dfe
JJ
15862006-02-15 Jakub Jelinek <jakub@redhat.com>
1587
1588 PR libgomp/25938
1589 PR libgomp/25984
1590 * Makefile.am (fincludedir): New variable.
1591 (nodist_include_HEADERS): Remove Fortran files.
1592 (nodist_finclude_HEADERS): New variable.
1593 * Makefile.in: Regenerated.
1594
6c7a4dfd
JJ
15952006-02-13 Jakub Jelinek <jakub@redhat.com>
1596
1597 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
1598 Remove tests for returning assumed character length arrays.
1599
5142e08b
RS
16002006-02-12 Roger Sayle <roger@eyesopen.com>
1601 John David Anglin <dave@hiauly1.hia.nrc.ca>
1602
1603 PR libgomp/25936
1604 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
a1daed2d 1605
5821fba8
UW
16062006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1607
1608 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
1609
cb2bbc67
EB
16102006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1611
1612 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
1613 part of LD_LIBRARY_PATH manually.
1614
f05ee80c
L
16152006-02-03 H.J. Lu <hongjiu.lu@intel.com>
1616
1617 PR libgomp/25852
1618 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
1619 libgomp_init.
1620
03b8fe49
PB
16212005-01-25 Paolo Bonzini <bonzini@gnu.org>
1622
1623 PR libgomp/25884
f05ee80c
L
1624 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
1625 * configure.ac (PERL): Don't set.
1626 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
1627 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
1628 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
1629 * omp.h.in: Wrap the new configure substitutions with @ characters.
1630 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
1631 * aclocal.m4, configure, Makefile.in: Regenerate.
1632 * mkomp_h.pl: Delete.
03b8fe49 1633
18cbfd85
PB
16342005-01-24 Paolo Bonzini <bonzini@gnu.org>
1635
1636 PR libgomp/25259
1637 * configure.ac: Use GCC_HEADER_STDINT.
1638 * libgomp.h: Include gstdint.h.
1639 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
1640 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
1641
c41303c6
RH
16422006-01-24 Richard Henderson <rth@redhat.com>
1643
1644 PR libgomp/25942
1645 * configure.ac: Add AM_MAINTAINER_MODE.
1646 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
1647
149b9553
DN
16482006-01-24 Diego Novillo <dnovillo@redhat.com>
1649
1650 * Makefile.in: Regenerate.
1651 * testsuite/Makefile.in: Regenerate.
1652 * aclocal.m4: Regenerate.
1653
192a50ad
AT
16542006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
1655
1656 * config/posix/proc.c: Conditional include of sys/loadavg.h for
1657 Solaris.
1658 * configure.ac: Add check for loadavg.h.
1659 (link_gomp): Adjust comment.
1660 * configure: Regenerate.
1661 * config.h.in: Regenerate.
1662
a55b8e18
SE
16632006-01-21 Steve Ellcey <sje@cup.hp.com>
1664
1665 PR libgomp/25877
1666 * configure.ac: Remove check for alloca.h.
1667 * configure: Regenerate.
1668 * config.h.in: Regenerate.
1669 * libgomp.h: define gomp_alloca to be __builtin_alloca.
1670 * team.c: Remove use of alloca.h.
1671 Call gomp_alloca instead of alloca.
1672
692eeb34
SE
16732006-01-20 Steve Ellcey <sje@cup.hp.com>
1674
1675 PR libgomp/25877
1676 * team.c: Add include of alloca.h.
1677 * configure.ac: Add check for alloca.h.
1678 * configure: Regenerate.
1679 * config.h.in: Regenerate.
1680
953ff289
DN
16812006-01-17 Jakub Jelinek <jakub@redhat.com>
1682
1683 PR fortran/25219
1684 * testsuite/libgomp.fortran/pr25219.f90: New test.
1685
16862005-12-05 Uros Bizjak <uros@kss-loka.si>
1687
1688 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
1689 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
1690 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1691 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1692 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
1693 testsuite/libgomp.fortran/threadprivate1.f90,
1694 testsuite/libgomp.fortran/threadprivate2.f90,
1695 testsuite/libgomp.fortran/threadprivate3.f90,
1696 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1697 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1698 testsuite/libgomp.fortran/omp_parse3.f90: Change required
1699 effective-target to TLS runtime.
1700
1701 * testsuite/libgomp.fortran/pr25162.f: Require
1702 effective-target TLS runtime.
1703
17042005-12-01 Jakub Jelinek <jakub@redhat.com>
1705
1706 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
1707 * testsuite/libgomp.c/nestedfn-3.c: New test.
1708
17092005-11-30 Jakub Jelinek <jakub@redhat.com>
1710
1711 PR fortran/25162
1712 * testsuite/libgomp.fortran/pr25162.f: New test.
1713
17142005-11-28 Jakub Jelinek <jakub@redhat.com>
1715
1716 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
1717 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
1718
17192005-11-25 Jakub Jelinek <jakub@redhat.com>
1720
1721 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
1722 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
1723 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
1724 single.c, team.c, work.c, config/linux/alpha/futex.h,
1725 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
1726 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
1727 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
1728 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
1729 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
1730 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
1731 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
1732 FSF address.
1733
17342005-11-18 Jakub Jelinek <jakub@redhat.com>
1735
1736 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
1737 to nodist_noinst_HEADERS.
1738 * Makefile.in: Rebuilt.
1739
1740 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
1741 add integer count field.
1742 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
1743 omp_nest_lock_t type change.
1744 (omp_init_nest_lock): Likewise. Initialize count to 0.
1745 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
1746 Increment count.
1747 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
1748 Decrement count.
1749 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
1750 Increment count if successful and return the new nesting level.
1751 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
1752 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
1753 * testsuite/libgomp.c/lib-1.c: New test.
1754 * testsuite/libgomp.fortran/lib1.f90: New test.
1755 * testsuite/libgomp.fortran/lib2.f: New test.
1756 * testsuite/libgomp.fortran/lib3.f: New test.
1757
17582005-11-17 Richard Henderson <rth@redhat.com>
1759
1760 PR 24845
1761 * Makefile.am (nodist_toolexeclib_HEADERS): New.
1762 * configure.ac (link_gomp): New. Substitute it.
1763 (AC_CONFIG_FILES): Add libgomp.spec.
1764 * libgomp.spec.in: New file.
1765 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
1766 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
1767
17682005-11-18 Jakub Jelinek <jakub@redhat.com>
1769
1770 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
1771 reduction(-:var) behaving the same as reduction(+:var).
1772 * testsuite/libgomp.c/reduction-4.c: New test.
1773
17742005-11-15 Uros Bizjak <uros@kss-loka.si>
1775
1776 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
1777 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
1778 testsuite/libgomp.c/copyin-3.c,
1779 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
1780 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
1781 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
1782 testsuite/libgomp.c++/pr24455.C,
1783 testsuite/libgomp.fortran/threadprivate1.f90,
1784 testsuite/libgomp.fortran/threadprivate2.f90,
1785 testsuite/libgomp.fortran/threadprivate3.f90,
1786 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
1787 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
1788 testsuite/libgomp.fortran/omp_parse3.f90: Require
1789 effective-target TLS.
1790
17912005-11-14 Diego Novillo <dnovillo@redhat.com>
1792
1793 * HEADER: Remove.
1794
17952005-11-13 Jakub Jelinek <jakub@redhat.com>
1796
1797 PR libgomp/24797
1798 * team.c (initialize_team): Pass NULL rather than free as
1799 pthread_key_create destructor. Initialize thread specific data
1800 pointer in initial thread to a static local variable rather than
1801 malloced memory.
1802
18032005-11-11 Uros Bizjak <uros@kss-loka.si>
1804
1805 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
1806 its location to ld_library_path.
1807
18082005-11-10 Diego Novillo <dnovillo@redhat.com>
1809
1810 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
1811
18122005-11-10 Diego Novillo <dnovillo@redhat.com>
1813
1814 * testsuite/libgomp.c: Rename from libgomp.dg.
1815
18162005-11-09 Diego Novillo <dnovillo@redhat.com>
1817
1818 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
1819 threadprivate variable 'i'.
1820
18212005-11-09 Jakub Jelinek <jakub@redhat.com>
1822
1823 * config/linux/s390/futex.h: New file.
1824 * configure.tgt: Use it.
1825
1826 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
1827 before the parallel.
1828
18292005-11-08 Jakub Jelinek <jakub@redhat.com>
1830
1831 PR c++/24734
1832 * testsuite/libgomp.c++/master-1.C: New test.
1833
18342005-11-07 Jakub Jelinek <jakub@redhat.com>
1835
1836 * testsuite/libgomp.dg/copyin-3.c: New test.
1837
18382005-11-07 Jakub Jelinek <jakub@redhat.com>
1839
1840 * testsuite/libgomp.fortran/retval1.f90: New test.
1841 * testsuite/libgomp.fortran/vla7.f90: New test.
1842
18432005-11-06 Jakub Jelinek <jakub@redhat.com>
1844
1845 * testsuite/libgomp.fortran/vla2.f90: New test.
1846 * testsuite/libgomp.fortran/vla3.f90: New test.
1847 * testsuite/libgomp.fortran/vla4.f90: New test.
1848 * testsuite/libgomp.fortran/vla5.f90: New test.
1849 * testsuite/libgomp.fortran/vla6.f90: New test.
1850
18512005-11-01 Jakub Jelinek <jakub@redhat.com>
1852
1853 * config/linux/sparc/futex.h: New file.
1854 * configure.tgt: Use it.
1855 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
1856
1857 * critical.c: Include stdlib.h.
1858 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
1859 ignoring return value.
1860 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
1861 LIBGOMP_CHECK_SYNC_BUILTINS check.
1862 * configure: Rebuilt.
1863
18642005-10-31 Jakub Jelinek <jakub@redhat.com>
1865
1866 * testsuite/libgomp.fortran/vla1.f90: New test.
1867
18682005-10-31 Richard Henderson <rth@redhat.com>
1869
1870 * testsuite/libgomp.fortran/character2.f90: Fix race condition
1871 setting 's' in different threads.
1872
18732005-10-31 Jakub Jelinek <jakub@redhat.com>
1874
1875 * libgomp.h (attribute_hidden, ialias): Define.
1876 * config/posix/proc.c (omp_get_num_procs): Add ialias.
1877 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
1878 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
1879 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1880 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1881 omp_test_lock, omp_test_nest_lock): Likewise.
1882 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
1883 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
1884 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
1885 omp_test_lock, omp_test_nest_lock): Likewise.
1886 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
1887 omp_get_dynamic, omp_get_nested): Likewise.
1888 * parallel.c (omp_get_num_threads, omp_get_max_threads,
1889 omp_get_thread_num, omp_in_parallel): Likewise.
1890 * fortran.c (ialias_redirect): Define.
1891 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
1892 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
1893 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
1894 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
1895 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
1896 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
1897 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
1898 omp_get_wtime): Add ialias_redirect.
1899
19002005-10-30 Jakub Jelinek <jakub@redhat.com>
1901
1902 * fortran.c: Include stdlib.h.
1903
19042005-10-29 Jakub Jelinek <jakub@redhat.com>
1905
1906 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
1907 * Makefile.in: Regenerated.
1908
19092005-10-28 Jakub Jelinek <jakub@redhat.com>
1910
1911 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
1912 * libgomp_f.h.in (omp_check_defines): New function.
1913 * env.c: Include libgomp_f.h.
1914 (initialize_env): Call omp_check_defines.
1915
1916 * testsuite/libgomp.dg/copyin-2.c: New test.
1917 * testsuite/libgomp.c++/copyin-2.C: New test.
1918 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
1919
1920 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
1921 * testsuite/libgomp.fortran/sharing2.f90: New test.
1922
1923 * testsuite/libgomp.dg/copyin-1.c: New test.
1924 * testsuite/libgomp.c++/copyin-1.C: New test.
1925
19262005-10-26 Jakub Jelinek <jakub@redhat.com>
1927
1928 * testsuite/libgomp.fortran/crayptr1.f90: New test.
1929
1930 * testsuite/libgomp.fortran/workshare1.f90: New test.
1931
1932 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
1933 only test.
1934 * libgomp.fortran/sharing1.f90: New test.
1935
19362005-10-24 Jakub Jelinek <jakub@redhat.com>
1937
1938 PR c++/24502
1939 * testsuite/libgomp.c++/loop-7.C: New test.
1940
1941 * testsuite/libgomp.dg/nestedfn-2.c: New test.
1942
1943 * testsuite/libgomp.dg/nestedfn-1.c: New test.
1944 * testsuite/libgomp.fortran/reduction6.f90: New test.
1945 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
1946
19472005-10-23 Richard Henderson <rth@redhat.com>
1948
1949 * testsuite/libgomp.c++/ctor-1.C: New.
1950 * testsuite/libgomp.c++/ctor-2.C: New.
1951 * testsuite/libgomp.c++/ctor-3.C: New.
1952 * testsuite/libgomp.c++/ctor-4.C: New.
1953 * testsuite/libgomp.c++/ctor-5.C: New.
1954 * testsuite/libgomp.c++/ctor-6.C: New.
1955 * testsuite/libgomp.c++/ctor-7.C: New.
1956 * testsuite/libgomp.c++/ctor-8.C: New.
1957 * testsuite/libgomp.c++/ctor-9.C: New.
1958
19592005-10-21 Diego Novillo <dnovillo@redhat.com>
1960
1961 PR 24455
1962 * testsuite/libgomp.c++/pr24455-1.C: New test.
1963 * testsuite/libgomp.c++/pr24455.C: New test.
1964 * testsuite/libgomp.dg/pr24455-1.c: New test.
1965 * testsuite/libgomp.dg/pr24455.c: New test.
1966
19672005-10-20 Richard Henderson <rth@redhat.com>
1968
1969 * testsuite/libgomp.c++/loop-6.C: New.
1970 * testsuite/libgomp.dg/loop-3.c: New.
1971
19722005-10-20 Jakub Jelinek <jakub@redhat.com>
1973
1974 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
1975 explicitly private.
1976 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
1977 explicitly shared.
1978
19792005-10-19 Diego Novillo <dnovillo@redhat.com>
1980
1981 * testsuite/libgomp.fortran/jacobi.f: New test.
1982
19832005-10-19 Richard Henderson <rth@redhat.com>
1984
1985 * configure.tgt (i?86-linux): Default to with_arch instead of
1986 CFLAGS. Add -mtune to match target_cpu.
1987 (x86_64-linux): Tune to i686.
1988
1989 * fortran.c (omp_test_nest_lock_): Fix typo.
1990
19912005-10-19 Jakub Jelinek <jakub@redhat.com>
1992
1993 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
1994 gomp_ordered_sync): Do nothing if team->nthreads == 1.
1995 * testsuite/libgomp.dg/ordered-3.c: New test.
1996
1997 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
1998 Remove volatile keyword.
1999
2000 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2001 in COMMON block to avoid warnings on 64-bit targets.
2002
20032005-10-18 Diego Novillo <dnovillo@redhat.com>
2004
2005 * testsuite/libgomp.dg/shared-3.c: New test.
2006
20072005-10-18 Jakub Jelinek <jakub@redhat.com>
2008
2009 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2010 * testsuite/libgomp.fortran/reduction5.f90: New test.
2011
20122005-10-18 Jakub Jelinek <jakub@redhat.com>
2013
2014 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2015 dg-options.
2016 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2017 flush loop now that __sync_synchronize has proper memory barrier.
2018 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2019 Add -ffixed-form to dg-options.
2020
20212005-10-17 Diego Novillo <dnovillo@redhat.com>
2022
2023 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2024 from subdirectories.
2025 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2026 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2027 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2028 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2029 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2030 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2031 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2032 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2033 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2034 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2035 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2036 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2037 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2038 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2039 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2040 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2041 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2042 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2043 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2044 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2045 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2046 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2047 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2048 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2049 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2050
20512005-10-17 Jakub Jelinek <jakub@redhat.com>
2052
2053 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2054 lang_library_path exists. Use find instead of glob to gather tests.
2055 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2056
20572005-10-17 Diego Novillo <dnovillo@redhat.com>
2058
2059 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2060 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2061 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2062 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2063 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2064 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2065 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2066 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2067 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2068 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2069 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2070 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2071 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2072
20732005-10-15 Jakub Jelinek <jakub@redhat.com>
2074
2075 * testsuite/libgomp.dg/vla-1.c: New test.
2076
2077 * testsuite/libgomp.fortran/reference2.f90: New test.
2078
2079 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2080 declaration of omp_get_thread_num.
2081 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2082 use omp_lib.
2083
2084 * testsuite/libgomp.fortran/reduction1.f90: New test.
2085 * testsuite/libgomp.fortran/reduction2.f90: New test.
2086 * testsuite/libgomp.fortran/reduction3.f90: New test.
2087 * testsuite/libgomp.fortran/reduction4.f90: New test.
2088
20892005-10-13 Richard Henderson <rth@redhat.com>
2090
2091 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2092 * Makefile.in: Regenerate.
2093 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2094 * libgomp.h: Include bar.h.
2095 (struct gomp_barrier): Remove.
2096 (struct gomp_team): Add barrier. Replace master_barrier with
2097 master_release. Replace threads with ordered_release.
2098 (struct gomp_thread): Replace barrier with release.
2099 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2100 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2101 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2102 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2103 (GOMP_single_copy_end): Likewise.
2104 * team.c (gomp_threads_dock): New.
2105 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2106 (gomp_thread_start): Use gomp_barrier_wait.
2107 (new_team, free_team): Update for gomp_team changes.
2108 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2109 (gomp_team_end): Use gomp_barrier_wait.
2110 (initialize_team): Update for gomp_thread changes.
2111 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2112 (gomp_work_share_end_nowait): Use atomic ops when available.
2113 * config/linux/bar.c, config/linux/bar.h: New files.
2114 * config/posix/bar.c, config/posix/bar.h: New files.
2115
21162005-10-13 Jakub Jelinek <jakub@redhat.com>
2117
2118 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2119 * testsuite/libgomp.dg/single-2.c: New test.
2120
2121 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2122 lang_link_flags): Unset, so that they aren't inherited from previously
2123 sourced *.exp.
2124
2125 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2126
21272005-10-12 Richard Henderson <rth@redhat.com>
2128
2129 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2130 (libgomp_init): Use lang_test_file, lang_library_path, and
2131 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2132
2133 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2134 (lang_test_file, lang_link_flags): New.
2135 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2136
2137 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2138 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2139 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2140 testsuite/libgomp.c++/parallel-1.C,
2141 testsuite/libgomp.c++/reduction-1.C,
2142 testsuite/libgomp.c++/reduction-2.C,
2143 testsuite/libgomp.c++/reduction-3.C,
2144 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2145 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2146 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2147 New files, largely cribbed from the C testsuite.
2148
21492005-10-12 Jakub Jelinek <jakub@redhat.com>
2150
2151 * testsuite/libgomp.fortran/character1.f90: New test.
2152 * testsuite/libgomp.fortran/character2.f90: New test.
2153
2154 * testsuite/libgomp.dg/nested-1.c: New test.
2155 * testsuite/libgomp.dg/nested-2.c: New test.
2156 * testsuite/libgomp.fortran/do1.f90: New test.
2157 * testsuite/libgomp.fortran/do2.f90: New test.
2158
2159 * testsuite/libgomp.fortran/reference1.f90: New test.
2160
21612005-10-11 Jakub Jelinek <jakub@redhat.com>
2162
2163 * testsuite/libgomp.dg/reduction-1.c: New test.
2164 * testsuite/libgomp.dg/reduction-2.c: New test.
2165 * testsuite/libgomp.dg/reduction-3.c: New test.
2166
21672005-10-10 Jakub Jelinek <jakub@redhat.com>
2168
2169 * testsuite/libgomp.dg/atomic-1.c: New test.
2170 * testsuite/libgomp.dg/atomic-2.c: New test.
2171
21722005-10-09 Richard Henderson <rth@redhat.com>
2173
2174 * critical.c (atomic_lock): New.
2175 (initialize_critical): Initialize it.
2176 (GOMP_atomic_start, GOMP_atomic_end): New.
2177 * libgomp.map: Export them.
2178 * libgomp_g.h: Declare them.
2179
2180 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2181
21822005-10-02 Richard Henderson <rth@redhat.com>
2183
2184 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2185 to XCFLAGS instead of CFLAGS.
2186
21872005-09-30 Richard Henderson <rth@redhat.com>
2188
2189 * configure.ac: Determine whether -pthread or -lpthread is needed.
2190 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2191 * Makefine.in, configure: Rebuild.
2192
21932005-09-28 Richard Henderson <rth@redhat.com>
2194
2195 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2196 * testsuite/libgomp.dg/omp-single-3.c: New test.
2197
21982005-09-28 Diego Novillo <dnovillo@redhat.com>
2199
2200 * testsuite/libgomp.dg/omp-single-2.c: New test.
2201 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2202
22032005-09-27 Richard Henderson <rth@redhat.com>
2204
2205 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2206 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2207
22082005-09-27 Jakub Jelinek <jakub@redhat.com>
2209
2210 * testsuite/libgomp.dg/omp-loop03.c: New test.
2211
22122005-09-27 Diego Novillo <dnovillo@redhat.com>
2213
2214 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2215
22162005-09-27 Diego Novillo <dnovillo@redhat.com>
2217
2218 * testsuite/libgomp.dg/omp-single-1.c: New test.
2219 * testsuite/libgomp.dg/shared-1.c: Return 0.
2220 Add prototype for abort.
2221 * testsuite/libgomp.dg/shared-2.c: Likewise.
2222
22232005-09-26 Jakub Jelinek <jakub@redhat.com>
2224
2225 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2226 constructs.
2227
22282005-09-26 Diego Novillo <dnovillo@redhat.com>
2229
2230 * testsuite/libgomp.dg/shared-1.c: New test.
2231 * testsuite/libgomp.dg/shared-2.c: New test.
2232
22332005-09-24 Richard Henderson <rth@redhat.com>
2234
2235 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2236
22372005-09-24 Richard Henderson <rth@redhat.com>
2238
2239 * iter.c (gomp_iter_static_next): Round up when computing number
2240 of iterations. Don't bother distributing a remainder equally.
2241
2242 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2243 Don't call srand. Zero b before testing.
2244 (main): New.
2245
22462005-09-24 Jakub Jelinek <jakub@redhat.com>
2247
2248 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2249 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2250
22512005-09-23 Jakub Jelinek <jakub@redhat.com>
2252
2253 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2254 without !$omp end do, followed immediately by subroutine end.
2255
22562005-09-23 Diego Novillo <dnovillo@redhat.com>
2257
2258 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2259
22602005-09-22 Richard Henderson <rth@redhat.com>
2261
2262 * critical.c (GOMP_critical_name_start): Change argument to void**.
2263 Reuse the pointer space if the mutex fits.
2264 (GOMP_critical_name_end): Likewise.
2265 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2266 * libgomp_g.h (GOMP_critical_name_start): Update decl.
2267 (GOMP_critical_name_end): Likewise.
2268 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2269 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2270
22712005-09-20 Richard Henderson <rth@redhat.com>
2272
2273 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2274 (create_lock_lock): New.
2275 (initialize_critical): Initialize it.
2276 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2277 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2278
22792005-09-20 Diego Novillo <dnovillo@redhat.com>
2280
2281 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2282
22832005-09-20 Diego Novillo <dnovillo@redhat.com>
2284
2285 * testsuite/libgomp.dg/omp-loop01.c: New test.
2286 * testsuite/libgomp.dg/omp-loop02.c: New test.
2287
22882005-09-20 Jakub Jelinek <jakub@redhat.com>
2289
2290 * configure.ac (AC_PROG_FC): Add.
2291 (USE_FORTRAN): New automake conditional.
2292 * configure: Rebuilt.
2293 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2294 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2295 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2296 Add rules to build them.
2297 * Makefile.in: Rebuilt.
2298 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2299 OMP_NEST_LOCK_KIND.
2300 * libgomp.map: Add Fortran wrappers.
2301 * libgomp_f.h.in: New file.
2302 * omp_lib.h.in: New file.
2303 * omp_lib.f90.in: New file.
2304 * fortran.c: New file.
2305 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2306 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2307 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2308 libgfortran has been built.
2309 * testsuite/libgomp.fortran/fortran.exp: New file.
2310 * testsuite/libgomp.fortran/omp_cond1.f: New test.
2311 * testsuite/libgomp.fortran/omp_cond2.f: New test.
2312 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2313 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2314 * testsuite/libgomp.fortran/omp_hello.f: New test.
2315 * testsuite/libgomp.fortran/omp_orphan.f: New test.
2316 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2317 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2318 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2319 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2320 * testsuite/libgomp.fortran/omp_reduction.f: New test.
2321 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2322 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2323
23242005-08-30 Richard Henderson <rth@redhat.com>
2325
2326 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2327 function for when aliases are not usable.
2328 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2329 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2330 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2331 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2332 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2333 GOMP_loop_ordered_guided_next): Likewise.
2334 * ordered.c (GOMP_ordered_start): Likewise.
2335
23362005-08-01 Diego Novillo <dnovillo@redhat.com>
2337
2338 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2339 * testsuite/libgomp.dg/omp_hello.c: Fix return code
2340 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2341 * testsuite/libgomp.dg/omp_orphan.c: Likewise
2342 * testsuite/libgomp.dg/omp_reduction.c: Likewise
2343 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2344 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2345 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2346 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2347
23482005-07-07 Eric Christopher <echristo@redhat.com>
2349 Diego Novillo <dnovillo@redhat.com>
2350
2351 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2352 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2353 up code.
2354 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2355 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2356 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2357 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2358 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2359 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2360 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2361
23622005-06-13 Diego Novillo <dnovillo@redhat.com>
2363
2364 * TOPLEVEL.patch: Remove.
2365
23662005-05-16 Richard Henderson <rth@redhat.com>
2367
2368 * configure.ac: Test for clock_gettime.
2369 * config.h.in, configure: Rebuild.
2370 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2371 (omp_get_wtime): Use clock_gettime if available.
2372 (omp_get_wtick): Use clock_getres if available.
2373
23742005-05-11 Richard Henderson <rth@redhat.com>
2375
2376 * config/linux/ia64/futex.h: New file.
2377 * configure.tgt: Use it.
2378
2379 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2380
23812005-05-07 Richard Henderson <rth@redhat.com>
2382
2383 * config/linux/powerpc/futex.h: New file.
2384 * configure.tgt: Use it.
2385
2386 * config/linux/i486/futex.h: Merge ...
2387 * config/linux/x86_64/futex.h: ... into ...
2388 * config/linux/x86/futex.h: ... here.
2389 * configure.tgt: Update to match.
2390
23912005-05-06 Richard Henderson <rth@redhat.com>
2392
2393 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2394 * config/linux/i486/futex.h: Likewise.
2395 * config/linux/x86_64/futex.h: Likewise.
2396
2397 * config/linux/lock.c: New file.
2398 * config/linux/omp-lock.h: New file.
2399
2400 * critical.c, env.h: Don't include omp.h
2401 * config/posix/lock.c: Include libgomp.h instead of omp.h.
2402 * config/posix/time.c: Likewise.
2403 * config/posix/omp-lock.h: New file.
2404 * libgomp.h: Include omp-lock.h and omp.h.
2405 * Makefile.am (nodist_include_HEADERS): New.
2406 (omp.h): New rule.
2407 * configure.ac (PERL): New.
2408 * mkomp_h.pl: New file.
2409 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
2410 with templates.
2411 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
2412
2413 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
2414 build directory. Re-add -march=i486 hack.
2415
2416 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
2417 (libgomp_link_flags): Remove.
2418 (libgomp_initialized): Remove.
2419 (libgomp_init): Don't protect from reinitialization. Copy code
2420 from libstdc++ for getting the multilib set correctly.
2421
24222005-05-05 Richard Henderson <rth@redhat.com>
2423
2424 * config/linux/alpha/futex.h: New file.
2425 * configure.tgt (alpha*-*-linux*): Use it.
2426
2427 * config/posix/mutex.c: New file.
2428 * config/posix/sem.c: Use libgomp.h.
2429
2430 * configure.tgt (x86_64-linux): Also test CC for -m32.
2431 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
2432
a1daed2d 2433 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
953ff289
DN
2434 after $gccpath.
2435
2436 * Makefile.am (SUBDIRS): New.
2437 (libgomp_la_LDFLAGS): Add -lpthread.
2438 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
2439 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
2440
2441 * libgomp_g.h: New file.
2442 * libgomp.h: Split out all public declarations to libgomp_g.h.
2443 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
2444 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
2445 * config/linux/sem.h: Likewise.
2446 * config/posix/sem.h: Likewise.
2447
2448 * Makefile.am (AM_LDFLAGS): New.
2449 (libgomp_version_script): Split out from ...
2450 (libgomp_la_LDFLAGS): ... here.
2451 (libgomp_version_info): New.
2452 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
2453 (LIBGOMP_ENABLE): New.
2454 (LIBGOMP_CHECK_LINKER_FEATURES): New.
2455 (LIBGOMP_ENABLE_SYMVERS): New.
2456 * configure.ac (AC_INIT): Version 1.0.
2457 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
2458 (enable-linux-futex): Likewise. Rename from enable-futex.
2459 (libtool_VERSION): New.
2460 (LIBGOMP_ENABLE_SYMVERS): Use it.
2461 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
2462 * Makefile.in, aclocal.m4, configure: Rebuild.
2463
2464 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
2465 (gomp_mutex_unlock_slow): Fix typo.
2466 * config/linux/sem.c: Similarly.
2467 (gomp_sem_post_slow): Fix typo.
2468 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
2469 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
2470 [__PIC__] (sys_futex0): Don't use tmp output in asm.
2471
2472 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
2473 (libgomp_la_LDFLAGS): Add top_srcdir to path.
2474 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
2475 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
2476 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
2477 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
2478 LDFLAGS. Pull enable_futex check to top-level.
2479 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
2480 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
2481
2482 First attempt at real configury.
2483 * Makefile, config.h: Remove file.
2484 * Makefile.am, Makefile.in: New file.
2485 * acinclude.m4 aclocal.m4: New file.
2486 * configure.ac, configure.tgt, configure: New file.
2487
2488 * config/posix/lock.c: Rename from sys-lock.c.
2489 * config/posix/mutex.h: Rename from sys-mutex.h.
2490 * config/posix/sem.c: Rename from sys-sem.c.
2491 * config/posix/sem.h: Rename from sys-sem.h.
2492 * config/posix/proc.c: Rename from sys-proc.c.
2493 * config/posix/time.c: Rename from sys-proc.c.
2494
2495 * config/linux/mutex.c: New file.
2496 * config/linux/mutex.h: New file.
2497 * config/linux/sem.c: New file.
2498 * config/linux/sem.h: New file.
2499 * config/linux/i486/futex.h: New file.
2500 * config/linux/x86_64/futex.h: New file.
2501
25022005-05-04 Richard Henderson <rth@redhat.com>
2503
2504 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
2505 * libgomp.h: Declare them.
2506 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
2507 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
2508
25092005-05-04 Richard Henderson <rth@redhat.com>
2510
2511 * libgomp-1 code drop
2512
25132005-05-04 Richard Henderson <rth@redhat.com>
2514
2515 * iter.c (gomp_iter_static_next): Return tri-state on 0.
2516 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
2517 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
2518 (gomp_iter_static_next): Update.
2519 (gomp_ordered_static_next): Update.
2520 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
2521 (gomp_loop_ordered_static_start): Likewise. Exit early for a
2522 totally empty range.
2523 (gomp_loop_ordered_static_next): Refine test for calling
2524 gomp_ordered_static_next.
2525 * testsuite/ordered-1.c: Add case for more threads than iterations.
2526
2527 * iter.c (gomp_iter_runtime_next_locked): Remove.
2528 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
a1daed2d 2529 gomp_loop_guided_start, gomp_loop_ordered_static_start,
953ff289
DN
2530 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2531 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
2532 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
2533 gomp_loop_ordered_guided_next): Downcase name, make static, add
2534 an external alias with the old name.
2535 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2536 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
2537 switch and call one of the above static functions.
2538 * libgomp.h: Update.
2539
2540 * work.c (gomp_work_share_start): Lock the mutex for !first too.
2541 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
2542 GOMP_loop_guided_start, GOMP_loop_runtime_start,
2543 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2544 GOMP_loop_ordered_guided_start): Update to match.
2545 * sections.c (GOMP_sections_start): Likewise.
2546 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
2547
2548 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2549 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
2550 Use bounds check instead of modulus.
2551 (gomp_ordered_sync): Split out of GOMP_ordered_start.
2552 (gomp_ordered_last): Don't sync with ordered_owner here.
2553 (gomp_ordered_next): Likewise.
2554 (gomp_ordered_static_loop_next): Likewise.
2555 * loop.c, libgomp.h: Update to match.
2556
2557 * libgomp.h (GOMP_barrier): Declare.
2558
2559 * testsuite/barrier-1.c: New file.
2560 * testsuite/critical-1.c: New file.
2561 * testsuite/ordered-2.c: New file.
2562 * testsuite/ordered-1.c: New file.
2563 * testsuite/sections-1.c: New file.
2564 * testsuite/single-1.c: New file.
2565 * testsuite/Makefile (TESTS): Add them.
2566
25672005-05-04 Richard Henderson <rth@redhat.com>
2568
2569 * libgomp.h (struct gomp_work_share): Add ordered_owner.
2570 * loop.c (GOMP_loop_static_start): If not the startup thread,
2571 acquire the mutex to wait for initialization complete.
2572 (GOMP_loop_ordered_static_start): Likewise.
2573 (GOMP_loop_ordered_runtime_start): Likewise.
2574 (GOMP_loop_ordered_static_first): Remove.
2575 (GOMP_loop_ordered_dynamic_first): Remove.
2576 (GOMP_loop_ordered_guided_first): Remove.
2577 (GOMP_loop_ordered_runtime_first): Remove.
2578 * ordered.c (gomp_ordered_loop_first): Post to own release when
2579 we're the first thread.
2580 (gomp_ordered_loop_last): Wait on release if not owner.
2581 (gomp_ordered_loop_next): Likewise.
2582 (gomp_ordered_static_loop_init): New.
2583 (gomp_ordered_static_loop_next): Use ordered_owner.
2584 (GOMP_ordered_start): Likewise.
2585 * work.c (gomp_new_work_share): Initialize ordered_owner.
2586
25872005-05-03 Richard Henderson <rth@redhat.com>
2588
2589 * Makefile (OPT): New.
2590 (CFLAGS): Use it.
2591
2592 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
2593 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
2594 * libgomp.h, libgomp.map, NOTES: Update to match.
2595
2596 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
2597 Add initialized and thr members.
2598 (gomp_thread_start): Pause when initially spawned to wait for
2599 the whole team to be created.
2600 (gomp_team_start): Release team members at the end.
2601
2602 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
2603 (f_foo_1): Use GOMP_loop_end.
2604 (f_foo_2): Use GOMP_loop_end_nowait.
2605
2606 * testsuite/loop-2.c: New file.
2607 * testsuite/Makefile (TESTS): Add it.
2608
26092005-05-03 Richard Henderson <rth@redhat.com>
2610
2611 * iter.c (gomp_iter_static_next): Fix overflow check typo.
2612 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
2613 * team.c (new_team): Initialize oldest_live_gen to 1 if no
2614 initial work_share.
2615
2616 * testsuite/Makefile: New file.
2617 * testsuite/loop-1.c: New file.
2618
26192005-05-03 Richard Henderson <rth@redhat.com>
2620
2621 Initial implementation and checkin.