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