tree.c (set_call_expr_flags): New function.
[gcc.git] / libgomp / ChangeLog
1 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
2
3 * testsuite/libgomp.c++/pr24455.C: Use
4 -Wl,-undefined,dynamic_lookup on darwin.
5
6 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
7
8 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9
10 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
11
12 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
13
14 2012-10-23 Ian Bolton <ian.bolton@arm.com>
15 Jim MacArthur <jim.macarthur@arm.com>
16 Marcus Shawcroft <marcus.shawcroft@arm.com>
17 Nigel Stephens <nigel.stephens@arm.com>
18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19 Richard Earnshaw <rearnsha@arm.com>
20 Sofiane Naci <sofiane.naci@arm.com>
21 Stephen Thomas <stephen.thomas@arm.com>
22 Tejas Belagod <tejas.belagod@arm.com>
23 Yufeng Zhang <yufeng.zhang@arm.com>
24
25 * configure.tgt: Add AArch64.
26
27 2012-10-04 Jason Merrill <jason@redhat.com>
28
29 * testsuite/libgomp.c++/tls-init1.C: New.
30
31 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
32
33 * configure: Regenerated.
34
35 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
36
37 * config/linux/mips/futex.h (sys_futex0): Change to static
38 function with noinline, nomips16 attributes under MIPS16. Adjust
39 asm statement to place 'li v0,SYS_futex' immediately before
40 syscall insn.
41
42 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
43
44 * libgomp.texi (Library Index): Renamed from "Index" to prevent
45 conflict with index.html on case-insensitive file systems.
46
47 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
48
49 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
50 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
51
52 2012-07-02 Richard Guenther <rguenther@suse.de>
53 Michael Matz <matz@suse.de>
54 Tobias Grosser <tobias@grosser.es>
55 Sebastian Pop <sebpop@gmail.com>
56
57 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
58 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
59 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
60 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
61
62 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
63
64 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
65
66 2012-06-22 Richard Guenther <rguenther@suse.de>
67
68 Merge from graphite branch
69 2012-01-13 Tobias Grosser <tobias@grosser.es>
70
71 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
72 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
73
74 2012-06-07 Jakub Jelinek <jakub@redhat.com>
75
76 PR middle-end/53580
77 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
78 use GOMP_barrier () call instead.
79 * testsuite/libgomp.c/pr26943-3.c: Likewise.
80 * testsuite/libgomp.c/pr26943-4.c: Likewise.
81 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
82 call GOMP_barrier instead.
83 * testsuite/libgomp.fortran/vla5.f90: Likewise.
84
85 2012-06-06 Jakub Jelinek <jakub@redhat.com>
86
87 PR libgomp/52993
88 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
89 argument to memset call.
90
91 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
92
93 * configure: Regenerated.
94
95 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
96
97 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
98
99 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
100
101 PR bootstrap/52812
102 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
103
104 2012-03-22 Jakub Jelinek <jakub@redhat.com>
105
106 PR middle-end/52547
107 * testsuite/libgomp.c/pr52547.c: New test.
108
109 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
110
111 * testsuite/lib/libgomp.exp: load fortran-modules.exp
112
113 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
114
115 * configure.tgt (mips-sgi-irix6*): Remove.
116
117 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
118
119 * configure.tgt (alpha*-dec-osf*): Remove.
120
121 * config/osf/sem.h: Remove.
122 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
123
124 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
125
126 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
127
128 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
129
130 PR libstdc++/52188
131 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
132 Remove ENABLE_SYMVERS_SOL2.
133 * configure: Regenerate.
134 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
135 (PREPROCESS): New variable.
136 (libgomp.ver): New target.
137 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
138 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
139 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
140 Use libgomp.ver.
141 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
142 * Makefile.in: Regenerate.
143
144 2012-02-14 Walter Lee <walt@tilera.com>
145
146 * configure.tgt: Handle tilegx and tilepro.
147 * config/linux/tile/futex.h: New file.
148
149 2012-02-08 Richard Guenther <rguenther@suse.de>
150
151 PR tree-optimization/46886
152 * testsuite/libgomp.c/pr46886.c: New testcase.
153
154 2012-01-25 Matthias Klose <doko@ubuntu.com>
155
156 * config/linux/arm: Remove empty directory.
157 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
158
159 2011-12-09 Alan Modra <amodra@gmail.com>
160
161 PR libgomp/51376
162 * task.c (GOMP_taskwait): Don't access task->children outside of
163 task_lock mutex region.
164 (GOMP_task): Likewise.
165
166 2011-12-06 Jakub Jelinek <jakub@redhat.com>
167
168 PR libgomp/51132
169 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
170 to file scope.
171 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
172 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
173 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
174 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
175 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
176
177 2011-12-02 Alan Modra <amodra@gmail.com>
178
179 * config/linux/affinity.c: Use atomic rather than sync builtin.
180 * config/linux/lock.c: Likewise.
181 * config/linux/ptrlock.h: Likewise.
182 * config/linux/ptrlock.c: Likewise.
183 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
184 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
185 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
186 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
187 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
188 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
189 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
190 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
191 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
192 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
193
194 2011-11-30 Alan Modra <amodra@gmail.com>
195
196 PR libgomp/51298
197 * config/linux/bar.h: Use atomic rather than sync builtins.
198 * config/linux/bar.c: Likewise. Add missing acquire
199 synchronisation on generation field.
200 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
201 double unlock.
202
203 2011-11-30 Alan Modra <amodra@gmail.com>
204
205 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
206 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
207 * config/linux/mutex.h: Use atomic rather than sync builtins.
208 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
209 * config/linux/omp-lock.h: Comment fix.
210 * config/linux/arm/mutex.h: Delete.
211 * config/linux/powerpc/mutex.h: Delete.
212 * config/linux/ia64/mutex.h: Delete.
213 * config/linux/mips/mutex.h: Delete.
214
215 2011-11-30 Alan Modra <amodra@gmail.com>
216
217 PR libgomp/51249
218 * config/linux/sem.h: Rewrite.
219 * config/linux/sem.c: Rewrite.
220
221 2011-11-28 Richard Henderson <rth@redhat.com>
222
223 * libgomp.h (enum memmodel): New.
224
225 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
226
227 * configure: Regenerate.
228
229 2011-10-10 Matthias Klose <doko@ubuntu.com>
230
231 * config/posix95: Remove empty directory.
232
233 2011-08-26 Jakub Jelinek <jakub@redhat.com>
234
235 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
236
237 2011-08-19 Jakub Jelinek <jakub@redhat.com>
238
239 PR fortran/49792
240 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
241 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
242
243 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
244
245 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
246
247 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
248
249 PR libgomp/49965
250 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
251
252 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
253
254 * config/linux/proc.h: New.
255 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
256 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
257 (gomp_init_num_threads): Update call to cpuset_popcount.
258 (get_num_procs): Ditto.
259 * config/linux/affinity.c (gomp_init_affinity): Call
260 gomp_cpuset_popcount.
261
262 2011-08-02 Jakub Jelinek <jakub@redhat.com>
263
264 PR fortran/42041
265 PR fortran/46752
266 * omp.h.in (omp_in_final): New prototype.
267 * omp_lib.f90.in (omp_in_final): New interface.
268 (omp_integer_kind, omp_logical_kind): Remove
269 and replace all its uses in the module with 4.
270 (openmp_version): Change to 201107.
271 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
272 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
273 kind for the parameters.
274 (omp_in_final): New external.
275 (openmp_version): Change to 201107.
276 * task.c (omp_in_final): New function.
277 (gomp_init_task): Initialize final_task.
278 (GOMP_task): Remove unused attribute from flags. Handle final
279 tasks.
280 (GOMP_taskyield): New function.
281 (omp_in_final): Return true if if (false) or final (true) task
282 or descendant of final (true).
283 * fortran.c (omp_in_final_): New function.
284 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
285 (GOMP_3.0): Export GOMP_taskyield.
286 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
287 variables.
288 (parse_unsigned_long_list): New function.
289 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
290 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
291 even if parse_affinity returned false.
292 * config/linux/affinity.c (gomp_init_affinity): Handle
293 gomp_cpu_affinity_len == 0.
294 * libgomp_g.h (GOMP_taskyield): New prototype.
295 * libgomp.h (struct gomp_task): Add final_task field.
296 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
297 * team.c (gomp_team_start): Override new task's nthreads_var icv
298 if list form OMP_NUM_THREADS has been used and it has value for
299 the new nesting level.
300
301 * testsuite/libgomp.c/atomic-11.c: New test.
302 * testsuite/libgomp.c/atomic-12.c: New test.
303 * testsuite/libgomp.c/atomic-13.c: New test.
304 * testsuite/libgomp.c/atomic-14.c: New test.
305 * testsuite/libgomp.c/reduction-6.c: New test.
306 * testsuite/libgomp.c/task-5.c: New test.
307 * testsuite/libgomp.c++/atomic-2.C: New test.
308 * testsuite/libgomp.c++/atomic-3.C: New test.
309 * testsuite/libgomp.c++/atomic-4.C: New test.
310 * testsuite/libgomp.c++/atomic-5.C: New test.
311 * testsuite/libgomp.c++/atomic-6.C: New test.
312 * testsuite/libgomp.c++/atomic-7.C: New test.
313 * testsuite/libgomp.c++/atomic-8.C: New test.
314 * testsuite/libgomp.c++/atomic-9.C: New test.
315 * testsuite/libgomp.c++/task-8.C: New test.
316 * testsuite/libgomp.c++/reduction-4.C: New test.
317 * testsuite/libgomp.fortran/allocatable7.f90: New test.
318 * testsuite/libgomp.fortran/allocatable8.f90: New test.
319 * testsuite/libgomp.fortran/crayptr3.f90: New test.
320 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
321 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
322 * testsuite/libgomp.fortran/pointer1.f90: New test.
323 * testsuite/libgomp.fortran/pointer2.f90: New test.
324 * testsuite/libgomp.fortran/task4.f90: New test.
325
326 2011-08-02 Tobias Burnus <burnus@net-b.de>
327
328 * libgomp.texi: Update OpenMP spec references to 3.1.
329 (omp_in_final,OMP_PROC_BIND): New sections.
330 (OMP_NUM_THREADS): Document that the value can be now a list.
331 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
332
333 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
334
335 * config/linux/x86/futex.h: Check __x86_64__ instead of
336 __LP64__.
337
338 2011-07-29 Jakub Jelinek <jakub@redhat.com>
339
340 PR middle-end/49897
341 PR middle-end/49898
342 * testsuite/libgomp.c/pr49897-1.c: New test.
343 * testsuite/libgomp.c/pr49897-2.c: New test.
344 * testsuite/libgomp.c/pr49898-1.c: New test.
345 * testsuite/libgomp.c/pr49898-2.c: New test.
346
347 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
348
349 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
350 for ia32 instead of ilp32.
351
352 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
353 * testsuite/libgomp.c/atomic-6.c: Likewise.
354
355 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
356
357 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
358 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
359
360 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
361
362 PR libgomp/45351
363 * config/osf/sem.h: New file.
364 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
365
366 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
367
368 PR target/49541
369 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
370 ldflags.
371
372 2011-07-15 Jakub Jelinek <jakub@redhat.com>
373
374 * config/linux/wait.h (do_spin): New inline, largely copied
375 from do_wait, just don't do futex_wait here, instead return true if
376 it should be done.
377 (do_wait): Implement using do_spin.
378 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
379 to prototype.
380 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
381 __sync_bool_compare_and_swap, pass the oldval to
382 gomp_mutex_lock_slow.
383 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
384 If all mutex contenders are just spinning and not sleeping, don't
385 change state to 2 unnecessarily. Optimize the loop when state has
386 already become 2 to use just one atomic operation per loop instead
387 of two.
388 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
389 to prototype.
390 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
391 __sync_bool_compare_and_swap, pass the oldval to
392 gomp_mutex_lock_slow.
393
394 2011-06-22 Jakub Jelinek <jakub@redhat.com>
395
396 PR libgomp/49490
397 * iter.c (gomp_iter_static_next): For chunk size 0
398 only use n ceil/ nthreads size for the first
399 n % nthreads threads in the team instead of
400 all threads except for the last few ones which
401 get less work or none at all.
402 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
403 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
404 chunk argument, set run_sched_modifier to 0 for static
405 resp. 1 for other kinds. If chunk argument is 0
406 and not static, set value to 1.
407
408 2011-05-19 Jakub Jelinek <jakub@redhat.com>
409
410 PR c++/49043
411 * testsuite/libgomp.c++/pr49043.C: New test.
412
413 PR c++/48869
414 * testsuite/libgomp.c++/pr48869.C: New test.
415
416 2011-05-06 Jakub Jelinek <jakub@redhat.com>
417
418 PR fortran/48894
419 * fortran.c: Include limits.h.
420 (TO_INT): Define.
421 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
422 *set.
423 (omp_set_num_threads_8_, omp_set_schedule_8_,
424 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
425 omp_get_team_size_8_): Use TO_INT macro.
426 * testsuite/libgomp.fortran/pr48894.f90: New test.
427
428 2011-04-13 Jakub Jelinek <jakub@redhat.com>
429
430 PR middle-end/48591
431 * testsuite/libgomp.c/pr48591.c: New test.
432
433 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
434
435 PR bootstrap/48135
436 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
437 * configure: Regenerate.
438
439 2011-02-27 Jakub Jelinek <jakub@redhat.com>
440
441 PR fortran/47886
442 * testsuite/libgomp.fortran/task3.f90: New test.
443
444 2011-02-24 Tobias Burnus <burnus@net-b.de>
445
446 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
447
448 2011-02-23 Jakub Jelinek <jakub@redhat.com>
449
450 PR libgomp/47854
451 * libgomp.texi (omp_get_wtime): Don't say time in the past
452 must be Unix Epoch.
453
454 2011-02-18 Jakub Jelinek <jakub@redhat.com>
455
456 PR libgomp/47804
457 * testsuite/libgomp.fortran/fortran.exp: Check for both
458 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
459 but $blddir != "", still append ${blddir}/${lang_library_path}
460 to ld_library_path.
461
462 2011-02-16 Tobias Burnus <burnus@net-b.de>
463
464 PR libgomp/47758
465 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
466 of libquadmath.a before adding its libpath to ldflags.
467
468 2011-02-14 Jakub Jelinek <jakub@redhat.com>
469
470 PR libgomp/47731
471 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
472 to FUTEX_WAIT futex syscall.
473 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
474
475 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
476
477 * configure: Regenerate.
478
479 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
480
481 PR libstdc++/36104
482 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
483
484 2011-01-16 Gerald Pfeifer
485
486 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
487
488 2010-12-14 Jakub Jelinek <jakub@redhat.com>
489
490 PR fortran/46874
491 * libgomp.fortran/allocatable6.f90: New test.
492
493 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
494
495 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
496 * configure: Regenerate.
497
498 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
499
500 PR target/40125
501 PR lto/46695
502 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
503 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
504 * aclocal.m4: Regenerate.
505 * configure: Regenerate.
506 * Makefile.in: Regenerate.
507 * testsuite/Makefile.in: Regenerate.
508
509 2010-12-02 Jakub Jelinek <jakub@redhat.com>
510
511 PR fortran/46753
512 * libgomp.fortran/pr46753.f90: New test.
513
514 PR libgomp/43706
515 * env.c (initialize_env): Default to spin count 300000
516 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
517 is specified.
518
519 PR libgomp/45240
520 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
521 at the end if sync builtins aren't supported.
522
523 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
524
525 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
526
527 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
528
529 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
530
531 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
532
533 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
534
535 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
536 Tobias Burnus <burnus@net-b.de>
537
538 PR fortran/32049
539 * configure.ac:
540 * configure: Regenerate.
541
542 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
543
544 * config/linux/futex.h: New.
545 * config/linux/arm/mutex.h: New.
546 * configure.tgt (arm*-*-linux*): Add config path.
547
548 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
549
550 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
551
552 2010-09-23 Tobias Burnus <burnus@net-b.de>
553
554 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
555 Change Fortran datatype to LOGICAL.
556 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
557 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
558
559 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
560
561 * configure: Regenerate.
562
563 2010-07-26 Jakub Jelinek <jakub@redhat.com>
564
565 * libgomp.texi: Add function keyword to a couple of Fortran
566 interfaces, use integer instead of int for Fortran.
567
568 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
569
570 * libgomp.texi: Fix spelling and pasto problems throughout.
571 Adjust prototypes to match code.
572
573 2010-07-24 Tobias Burnus <burnus@net-b.de>
574
575 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
576 silence -fwhole-file warning.
577
578 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
579
580 * configure.tgt (*-*-solaris2.[56]*): Removed.
581
582 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
583
584 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
585 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
586 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
587 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
588 targetting solaris2*.
589 * configure: Regenerate.
590 * config.h.in: Regenerate.
591
592 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
593 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
594 Add libgomp_version_dep.
595 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
596 versioning.
597 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
598 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
599 * Makefile.in: Regenerate.
600
601 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
602 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
603 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
604 to common block, protected by
605 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
606
607 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
608
609 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
610
611 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
612
613 PR bootstrap/43170
614 * configure: Regenerate.
615
616 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
617
618 PR other/43620
619 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
620 * configure: Regenerate.
621 * Makefile.in: Regenerate.
622 * testsuite/Makefile.in: Regenerate.
623
624 2010-04-26 Jakub Jelinek <jakub@redhat.com>
625
626 PR c/43893
627 * testsuite/libgomp.c/pr43893.c: New test.
628 * testsuite/libgomp.c++/pr43893.C: New test.
629
630 2010-04-21 Jakub Jelinek <jakub@redhat.com>
631
632 PR middle-end/43570
633 * testsuite/libgomp.fortran/vla8.f90: New test.
634
635 2010-04-20 Jakub Jelinek <jakub@redhat.com>
636
637 PR libgomp/43706
638 * config/linux/affinity.c (gomp_init_affinity): Decrease
639 gomp_available_cpus if affinity mask confines the process to fewer
640 CPUs.
641 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
642 non-NULL, just return gomp_available_cpus.
643
644 PR libgomp/43569
645 * sections.c (gomp_sections_init): Initialize ws->mode.
646
647 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
648
649 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
650 not unused bar variable.
651 * configure: Regenerate.
652
653 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
654
655 * Makefile.in: Regenerate.
656 * aclocal.m4: Regenerate.
657 * testsuite/Makefile.in: Regenerate.
658
659 2010-03-22 Jakub Jelinek <jakub@redhat.com>
660
661 PR libgomp/42942
662 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
663 (initialize_env): Adjust callers.
664 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
665 when the argument is 0.
666
667 * testsuite/libgomp.c/pr42942.c: New test.
668
669 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
670
671 PR middle-end/42644
672 PR middle-end/42130
673 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
674 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
675
676 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
677
678 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
679 * testsuite/libgomp.c++/task-6.C: Likewise.
680
681 2010-01-28 Steve Ellcey <sje@cup.hp.com>
682
683 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
684
685 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
686
687 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
688 * configure: Regenerate.
689
690 2010-01-26 Jakub Jelinek <jakub@redhat.com>
691
692 PR fortran/42866
693 * testsuite/libgomp.fortran/allocatable5.f90: New test.
694
695 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
696
697 * configure.ac: Test for executability of GFORTRAN.
698 * configure: Regenerate.
699
700 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
701
702 * configure: Regenerate.
703
704 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
705
706 PR libgomp/42602
707 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
708
709 2010-01-03 Richard Guenther <rguenther@suse.de>
710
711 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
712
713 2009-12-23 Sebastian Pop <sebpop@gmail.com>
714
715 * testsuite/libgomp.graphite/pr4118.c: New.
716
717 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
718
719 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
720 for darwin, protect the test with require-effective-target tls_runtime.
721 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
722
723 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
724
725 PR target/41605
726 * testsuite/lib/libgomp.exp: Provide -B options to allow for
727 link spec %s substitutions for static libraries.
728
729 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
730
731 PR testsuite/42135
732 * libgomp.graphite/force-parallel-2.c: Reduce array size.
733
734 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
735
736 * Makefile.in: Regenerate.
737 * configure: Regenerate.
738 * testsuite/Makefile.in: Regenerate.
739
740 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
741
742 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
743 settings for LC_ALL and LANG.
744
745 2009-11-25 Jakub Jelinek <jakub@redhat.com>
746
747 PR fortran/42162
748 * testsuite/libgomp.fortran/pr42162.f90: New test.
749
750 2009-11-13 Jakub Jelinek <jakub@redhat.com>
751
752 PR middle-end/42029
753 * testsuite/libgomp.c/pr42029.c: New test.
754
755 2009-10-26 Jakub Jelinek <jakub@redhat.com>
756
757 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
758 *s. Accept ld version without text in ()s.
759 * configure: Regenerated.
760
761 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
762
763 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
764
765 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
766
767 PR libgomp/41418
768 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
769 or a hyphen (happens with fortran language disabled).
770 * configure: Regenerate.
771
772 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
773
774 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
775 use sed script portable to Solaris /bin/sed for extracting ld
776 version.
777 * configure: Regenerate.
778
779 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
780
781 * testsuite/libgomp.graphite/bounds.c: New test.
782
783 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
784
785 * Makefile.am (libgomp_la_LINK): New.
786 * Makefile.in: Regenerate.
787
788 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
789
790 * configure.ac (AC_PREREQ): Bump to 2.64.
791
792 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
793
794 * Makefile.am (install-html, install-pdf): Remove.
795 * Makefile.in: Regenerate.
796
797 * Makefile.in: Regenerate.
798 * aclocal.m4: Regenerate.
799 * config.h.in: Regenerate.
800 * configure: Regenerate.
801 * testsuite/Makefile.in: Regenerate.
802
803 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
804
805 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
806 * Makefile.in: Regenerate.
807
808 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
809
810 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
811 * Makefile.in: Regenerate.
812
813 2009-08-19 Tobias Burnus <burnus@net-b.de>
814
815 PR fortran/41102
816 omp_lib.h.in: Fix -std=f95 errors.
817
818
819 2009-08-14 David Edelsohn <edelsohn@gnu.org>
820
821 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
822 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
823 * testsuite/libgomp.graphite/graphite.exp: New.
824
825 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
826
827 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
828 only build.
829
830 2009-08-04 David Daney <ddaney@caviumnetworks.com>
831
832 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
833 needed memory barrier semantics.
834 * config/linux/mips/mutex.h: New file.
835
836 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
837
838 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
839
840 2009-07-16 Joseph Myers <joseph@codesourcery.com>
841
842 * configure: Regenerate.
843
844 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
845
846 PR testsuite/40699
847 PR testsuite/40707
848 PR testsuite/40709
849 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
850 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
851 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
852
853 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
854
855 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
856 options when choosing a multilib.
857
858 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
859
860 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
861 ld_library_path. Use add_path. Add just find_libgcc_s to
862 ld_library_path, not every libgcc multilib directory.
863 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
864 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
865 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
866 Use add_path.
867 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
868
869 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
870
871 * Makefile.am (LTLDFLAGS): Define.
872 (LINK): Define.
873 * Makefile.in: Regenerate.
874
875 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
876
877 PR fortran/39718
878 * testsuite/libgomp.fortran/fortran.exp: Don't link with
879 libgfortranbegin, check existence of libgfortran.a instead of
880 libgfortranbegin.a.
881
882 2009-05-20 Jakub Jelinek <jakub@redhat.com>
883
884 PR libgomp/40174
885 * team.c (gomp_thread_start): Destroy thr->release semaphore.
886 (gomp_free_pool_helper): Likewise.
887
888 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
889 Jakub Jelinek <jakub@redhat.com>
890
891 PR fortran/35423
892 * testsuite/libgomp.fortran/workshare2.f90: New test.
893
894 2009-04-09 Nick Clifton <nickc@redhat.com>
895
896 * iter.c: Change copyright header to refer to version 3 of the
897 GNU General Public License with version 3.1 of the GCC Runtime
898 Library Exception and to point readers at the COPYING3 and
899 COPYING3.RUNTIME files and the FSF's license web page.
900 * alloc.c: Likewise.
901 * barrier.c: Likewise.
902 * config/bsd/proc.c: Likewise.
903 * config/linux/affinity.c: Likewise.
904 * config/linux/alpha/futex.h: Likewise.
905 * config/linux/bar.c: Likewise.
906 * config/linux/bar.h: Likewise.
907 * config/linux/ia64/futex.h: Likewise.
908 * config/linux/ia64/mutex.h: Likewise.
909 * config/linux/lock.c: Likewise.
910 * config/linux/mips/futex.h: Likewise.
911 * config/linux/mutex.c: Likewise.
912 * config/linux/mutex.h: Likewise.
913 * config/linux/powerpc/futex.h: Likewise.
914 * config/linux/proc.c: Likewise.
915 * config/linux/ptrlock.c: Likewise.
916 * config/linux/ptrlock.h: Likewise.
917 * config/linux/s390/futex.h: Likewise.
918 * config/linux/sem.c: Likewise.
919 * config/linux/sem.h: Likewise.
920 * config/linux/sparc/futex.h: Likewise.
921 * config/linux/wait.h: Likewise.
922 * config/linux/x86/futex.h: Likewise.
923 * config/mingw32/proc.c: Likewise.
924 * config/mingw32/time.c: Likewise.
925 * config/posix/affinity.c: Likewise.
926 * config/posix/bar.c: Likewise.
927 * config/posix/bar.h: Likewise.
928 * config/posix/lock.c: Likewise.
929 * config/posix/mutex.h: Likewise.
930 * config/posix/proc.c: Likewise.
931 * config/posix/ptrlock.h: Likewise.
932 * config/posix/sem.c: Likewise.
933 * config/posix/sem.h: Likewise.
934 * config/posix/time.c: Likewise.
935 * config/posix95/lock.c: Likewise.
936 * critical.c: Likewise.
937 * env.c: Likewise.
938 * error.c: Likewise.
939 * fortran.c: Likewise.
940 * iter_ull.c: Likewise.
941 * libgomp.h: Likewise.
942 * libgomp_f.h.in: Likewise.
943 * libgomp_g.h: Likewise.
944 * loop.c: Likewise.
945 * loop_ull.c: Likewise.
946 * omp.h.in: Likewise.
947 * omp_lib.f90.in: Likewise.
948 * omp_lib.h.in: Likewise.
949 * ordered.c: Likewise.
950 * parallel.c: Likewise.
951 * sections.c: Likewise.
952 * single.c: Likewise.
953 * task.c: Likewise.
954 * team.c: Likewise.
955 * work.c: Likewise.
956
957 2009-04-09 Jakub Jelinek <jakub@redhat.com>
958
959 * testsuite/config/default.exp: Change copyright header to refer to
960 version 3 of the GNU General Public License and to point readers
961 at the COPYING3 file and the FSF's license web page.
962
963 2009-04-08 Jakub Jelinek <jakub@redhat.com>
964
965 PR middle-end/39573
966 * libgomp.c++/pr39573.C: New test.
967
968 2009-04-01 Jakub Jelinek <jakub@redhat.com>
969
970 PR other/39591
971 * testsuite/libgomp.c/pr39591-1.c: New test.
972 * testsuite/libgomp.c/pr39591-2.c: New test.
973 * testsuite/libgomp.c/pr39591-3.c: New test.
974
975 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
976
977 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
978 * testsuite/libgomp.c/atomic-6.c: Ditto.
979
980 2009-03-23 Jakub Jelinek <jakub@redhat.com>
981
982 PR c/39495
983 * testsuite/libgomp.c/loop-12.c: New test.
984 * testsuite/libgomp.c/loop-11.c: New test.
985 * testsuite/libgomp.c++/loop-11.C: New test.
986 * testsuite/libgomp.c++/loop-12.C: New test.
987 * testsuite/libgomp.c++/for-8.C: New test.
988
989 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
990
991 * configure: Regenerate.
992
993 2009-02-11 Jakub Jelinek <jakub@redhat.com>
994
995 PR middle-end/39154
996 * testsuite/libgomp.c/pr39154.c: New test.
997
998 2009-01-30 Ian Lance Taylor <iant@google.com>
999
1000 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
1001 libgomp_ld_is_gold. Get gold version number.
1002 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
1003 * configure: Rebuild.
1004
1005 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
1006
1007 * testsuite/lib/libgomp.exp: Add -B option for targets that
1008 use libgfortran.a%s in their specs.
1009
1010 2009-01-07 Jakub Jelinek <jakub@redhat.com>
1011
1012 PR libgomp/38086
1013 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
1014 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
1015 HAVE_AS_SYMVER_DIRECTIVE is not defined.
1016 * configure: Regenerated.
1017 * config.h.in: Likewise.
1018
1019 2008-12-28 Jakub Jelinek <jakub@redhat.com>
1020
1021 PR c++/38650
1022 * testsuite/libgomp.c/pr38650.c: New test.
1023 * testsuite/libgomp.c++/pr38650.C: New test.
1024
1025 2008-12-27 Jakub Jelinek <jakub@redhat.com>
1026
1027 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
1028
1029 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
1030
1031 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
1032
1033 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1034
1035 * configure: Regenerate.
1036
1037 2008-12-08 Jakub Jelinek <jakub@redhat.com>
1038
1039 PR middle-end/36802
1040 * testsuite/libgomp.c/pr36802-1.c: New test.
1041 * testsuite/libgomp.c/pr36802-2.c: New test.
1042 * testsuite/libgomp.c/pr36802-3.c: New test.
1043
1044 2008-12-01 Janis Johnson <janis187@us.ibm.com>
1045
1046 PR libgomp/38270
1047 * config/linux/powerpc/mutex.h: New.
1048
1049 2008-12-01 Jakub Jelinek <jakub@redhat.com>
1050
1051 PR c++/38257
1052 * testsuite/libgomp.c++/for-7.C: New test.
1053
1054 PR c++/38348
1055 * testsuite/libgomp.c++/for-6.C: New test.
1056
1057 2008-11-26 Janis Johnson <janis187@us.ibm.com>
1058
1059 PR testsuite/28870
1060 * testsuite/lib/libgomp.exp: Include new timeout library files.
1061 (libgomp_target_compile): Set timeout value from new proc.
1062
1063 2008-11-13 Steve Ellcey <sje@cup.hp.com>
1064
1065 PR libgomp/37938
1066 * config/linux/ia64/mutex.h: New.
1067
1068 2008-11-04 Tobias Burnus <burnus@net-b.de>
1069
1070 PR libgomp/37935
1071 * libgomp.texi (Runtime library routines, environment variables):
1072 Update for OpenMP version 3.0.
1073
1074 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
1075 Steve Ellcey <sje@cup.hp.com>
1076
1077 * configure: Regenerate for new libtool.
1078 * Makefile.in: Ditto.
1079 * testsuite/Makefile.in: Ditto.
1080
1081 2008-09-19 Jakub Jelinek <jakub@redhat.com>
1082 Andreas Tobler <a.tobler@schweiz.org>
1083
1084 * config/bsd/proc.c: New file.
1085 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
1086 * configure.ac: Check for header <sys/sysctl.h>
1087 * configure: Regenerate.
1088 * config.h.in: Likewise.
1089
1090 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1091
1092 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
1093
1094 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1095
1096 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
1097 * Makefile.in: Regenerated.
1098 * testsuite/Makefile.in: Regenerated.
1099
1100 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
1101
1102 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
1103 depend on blddir if blddir exists.
1104 (libgomp_target_compile): Likewise.
1105 * testsuite/libgomp.c++/c++.exp: Likewise.
1106 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1107
1108 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1109
1110 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
1111 Do not list GPL as Invariant Section.
1112
1113 2008-07-28 Ilie Garbacea <ilie@mips.com>
1114 Chao-ying Fu <fu@mips.com>
1115
1116 * configure.tgt: Enable futex for MIPS.
1117 * config/linux/mips/futex.h: New file.
1118
1119 2008-07-16 Jakub Jelinek <jakub@redhat.com>
1120
1121 * team.c (gomp_team_end): Free team immediately if it has
1122 just one thread.
1123
1124 2008-07-08 David Edelsohn <edelsohn@gnu.org>
1125
1126 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
1127 * testsuite/libgomp.fortran/fortran.exp: Same.
1128 * testsuite/libgomp.c/c.exp: Same.
1129 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
1130 directory to library path first.
1131
1132 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
1133
1134 * env.c (parse_stacksize): Add cast to avoid warning.
1135 (parse_spincount): Likewise.
1136
1137 2008-06-27 Jakub Jelinek <jakub@redhat.com>
1138
1139 * testsuite/libgomp.c/loop-10.c: New test.
1140 * libgomp.c/loop-3.c (main): Add lastprivate clause.
1141 * libgomp.c++/loop-6.C (main): Likewise.
1142
1143 PR debug/36617
1144 * testsuite/libgomp.c/debug-1.c: New test.
1145
1146 2008-06-19 Jakub Jelinek <jakub@redhat.com>
1147
1148 * testsuite/libgomp.c/nqueens-1.c: New test.
1149
1150 PR c++/36523
1151 * testsuite/libgomp.c++/task-7.C: New function.
1152
1153 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1154
1155 * configure: Regenerate.
1156
1157 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1158
1159 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1160 mutex when HAVE_SYNC_BUILTINS isn't defined.
1161
1162 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1163
1164 * libgomp.texi (omp_test_lock): Fix typo.
1165
1166 2008-06-12 Tobias Burnus <burnus@net-b.de>
1167
1168 * omp_lib.f90.in: Add "implicit none".
1169
1170 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1171
1172 PR middle-end/36506
1173 * testsuite/libgomp.c/reduction-5.c: New test.
1174
1175 2008-06-11 Jakub Jelinek <jakub@redhat.com>
1176
1177 * libgomp.h (struct gomp_task): Add in_tied_task field.
1178 * task.c (gomp_init_task): Initialize it.
1179 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
1180 unconditionally. Don't call gomp_team_barrier_wake if
1181 current task is implicit or if(0) from implicit and number of
1182 running tasks is equal to nthreads - 1.
1183
1184 PR libgomp/36471
1185 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1186 omp_get_team_size_8): Fix pastos.
1187
1188 PR libgomp/36469
1189 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1190 * configure: Regenerated.
1191 * config.h.in: Regenerated.
1192 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1193 defined.
1194
1195 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
1196
1197 PR bootstrap/36452
1198 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1199 (GOMP_loop_ull_dynamic_start): Likewise.
1200 (GOMP_loop_ull_guided_start): Likewise.
1201 (GOMP_loop_ull_ordered_static_start): Likewise.
1202 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1203 (GOMP_loop_ull_ordered_guided_start): Likewise.
1204
1205 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1206 Richard Henderson <rth@redhat.com>
1207 Ulrich Drepper <drepper@redhat.com>
1208 Jakob Blomer <jakob.blomer@ira.uka.de>
1209
1210 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1211 Substitute also OMP_*LOCK_25*.
1212 * configure: Regenerated.
1213 * config.h.in: Regenerated.
1214 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1215 ptrlock.c and task.c.
1216 * Makefile.in: Regenerated.
1217 * testsuite/Makefile.in: Regenerated.
1218 * task.c: New file.
1219 * loop_ull.c: New file.
1220 * iter_ull.c: New file.
1221 * libgomp.h: Include ptrlock.h.
1222 (enum gomp_task_kind): New type.
1223 (struct gomp_team): Add task_lock, task_queue, task_count,
1224 task_running_count, single_count fields. Add
1225 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1226 Remove work_share_lock, generation_mask,
1227 oldest_live_gen, num_live_gen and init_work_shares fields, add
1228 work work_share_list_alloc, work_share_list_free and work_share_chunk
1229 fields. Change work_shares from pointer to pointers into an array.
1230 Change ordered_release field into gomp_sem_t ** from flexible array
1231 member. Add implicit_task and initial_work_shares fields.
1232 Move close to the end of the struct.
1233 (struct gomp_team_state): Add single_count, last_work_share,
1234 active_level and level fields, remove work_share_generation.
1235 (gomp_barrier_handle_tasks): New prototype.
1236 (gomp_finish_task): New inline function.
1237 (struct gomp_work_share): Move chunk_size, end, incr into
1238 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1239 next_ll fields. Reshuffle fields. Add next_alloc,
1240 next_ws, next_free and inline_ordered_team_ids fields, change
1241 ordered_team_ids into pointer from flexible array member.
1242 Add mode field. Put lock and next into a different cache line
1243 from most of the write-once fields.
1244 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1245 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1246 gomp_iter_ull_guided_next): New prototypes.
1247 (gomp_new_icv): New prototype.
1248 (struct gomp_thread): Add thread_pool and task fields.
1249 (struct gomp_thread_pool): New type.
1250 (gomp_new_team): New prototype.
1251 (gomp_team_start): Change type of last argument.
1252 (gomp_new_work_share): Removed.
1253 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1254 (gomp_work_share_init_done): New static inline.
1255 (gomp_throttled_spin_count_var, gomp_available_cpus,
1256 gomp_managed_threads): New extern decls.
1257 (gomp_init_task): New prototype.
1258 (gomp_spin_count_var): New extern var decl.
1259 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1260 or no alias support, or if not PIC.
1261 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1262 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1263 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1264 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1265 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1266 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1267 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1268 gomp_test_nest_lock_25): New prototypes.
1269 (omp_lock_symver, strong_alias): Define.
1270 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1271 decls.
1272 (gomp_end_task): New.
1273 (struct gomp_task_icv, gomp_global_icv): New.
1274 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1275 (struct gomp_task): New.
1276 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1277 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1278 (gomp_icv): New.
1279 (gomp_schedule_type): Reorder enum to match
1280 omp_sched_t.
1281 * team.c (struct gomp_thread_start_data): Add thread_pool and task
1282 fields.
1283 (gomp_thread_start): Add gomp_team_barrier_wait call.
1284 For non-nested case remove clearing of docked thread thr fields.
1285 Use pool fields instead of global gomp_* variables. Use
1286 gomp_barrier_wait_last when needed. Initialize ts.active_level.
1287 Create tasks for each member thread.
1288 (free_team): Only destroy team barrier, task_lock here and free it.
1289 (gomp_free_thread): Free last_team if non-NULL.
1290 (gomp_team_end): Call gomp_team_barrier_wait instead of
1291 gomp_barrier_wait. For nested case call one extra
1292 gomp_barrier_wait. Move here some destruction from free_team.
1293 Call free_team on pool->last_team if any, rather than freeing
1294 current team. Destroy work_share_list_free_lock ifndef
1295 HAVE_SYNC_BUILTINS.
1296 (gomp_new_icv): New function.
1297 (gomp_threads, gomp_threads_size, gomp_threads_used,
1298 gomp_threads_dock): Removed.
1299 (gomp_thread_destructor): New variable.
1300 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1301 functions.
1302 (gomp_team_start): Create new pool if current thread doesn't have
1303 one. Use pool fields instead of global gomp_* variables.
1304 Initialize thread_pool field for new threads. Clear single_count.
1305 Change last argument from ws to team, don't create
1306 new team, set ts.work_share to &team->work_shares[0] and clear
1307 ts.last_work_share. Don't clear ts.work_share_generation.
1308 If number of threads changed, adjust atomically gomp_managed_threads.
1309 Use gomp_init_task instead of gomp_new_task,
1310 set thr->task to the corresponding implicit_task array entry.
1311 Create tasks for each member thread. Initialize ts.level.
1312 (initialize_team): Call pthread_key_create on
1313 gomp_thread_destructor.
1314 (team_destructor): New function.
1315 (new_team): Removed.
1316 (gomp_new_team): New function.
1317 (free_team): Free gomp_work_share blocks chained through next_alloc,
1318 instead of freeing work_shares and destroying work_share_lock.
1319 (gomp_team_end): Call gomp_fini_work_share. If number of threads
1320 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
1321 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1322 of gomp_barrier_wait.
1323 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1324 instead of gomp_barrier_wait. Call gomp_work_share_init_done
1325 if gomp_work_share_start returned true. Don't unlock ws->lock.
1326 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1327 of gomp_barrier_wait.
1328 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
1329 gomp_work_share_init_done if gomp_work_share_start returned true.
1330 Don't unlock ws->lock.
1331 * work.c: Include stddef.h.
1332 (free_work_share): Use work_share_list_free_lock instead
1333 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
1334 Call gomp_fini_work_share and then either free ws if orphaned, or
1335 put it into work_share_list_free list of the current team.
1336 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1337 functions.
1338 (gomp_work_share_start, gomp_work_share_end,
1339 gomp_work_share_end_nowait): Rewritten.
1340 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1341 (openmp_version): Set to 200805.
1342 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1343 omp_sched_guided, omp_sched_auto): New parameters.
1344 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1345 omp_set_max_active_levels, omp_get_max_active_levels,
1346 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1347 omp_get_active_level): New interfaces.
1348 * omp_lib.h.in (openmp_version): Set to 200805.
1349 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1350 omp_sched_guided, omp_sched_auto): New parameters.
1351 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1352 omp_set_max_active_levels, omp_get_max_active_levels,
1353 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1354 omp_get_active_level): New externals.
1355 * loop.c: Include limits.h.
1356 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1357 GFS_AUTO.
1358 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1359 Likewise. Use gomp_icv.
1360 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1361 ts.static_trip here.
1362 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1363 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
1364 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1365 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
1366 don't unlock ws->lock, otherwise lock it.
1367 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1368 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
1369 (gomp_parallel_loop_start): Call gomp_new_team instead of
1370 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
1371 Adjust gomp_team_start caller. Pass 0 as second argument to
1372 gomp_resolve_num_threads.
1373 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1374 If adding ws->chunk_size nthreads + 1 times after end won't
1375 overflow, set ws->mode to 1.
1376 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1377 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1378 GOMP_loop_ull_ordered_static_start,
1379 GOMP_loop_ull_ordered_dynamic_start,
1380 GOMP_loop_ull_ordered_guided_start,
1381 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1382 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1383 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1384 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1385 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1386 prototypes.
1387 * libgomp.map: Export lock routines also @@OMP_2.0.
1388 (GOMP_loop_ordered_dynamic_first,
1389 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1390 GOMP_loop_ordered_static_first): Remove.
1391 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1392 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1393 GOMP_loop_ull_ordered_dynamic_next,
1394 GOMP_loop_ull_ordered_dynamic_start,
1395 GOMP_loop_ull_ordered_guided_next,
1396 GOMP_loop_ull_ordered_guided_start,
1397 GOMP_loop_ull_ordered_runtime_next,
1398 GOMP_loop_ull_ordered_runtime_start,
1399 GOMP_loop_ull_ordered_static_next,
1400 GOMP_loop_ull_ordered_static_start,
1401 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1402 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1403 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1404 (omp_set_schedule, omp_get_schedule,
1405 omp_get_thread_limit, omp_set_max_active_levels,
1406 omp_get_max_active_levels, omp_get_level,
1407 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1408 omp_set_schedule_, omp_set_schedule_8_,
1409 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1410 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1411 omp_get_max_active_levels_, omp_get_level_,
1412 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1413 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1414 New exports @@OMP_3.0.
1415 * omp.h.in (omp_sched_t): New type.
1416 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1417 omp_set_max_active_levels, omp_get_max_active_levels,
1418 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1419 omp_get_active_level): New prototypes.
1420 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1421 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1422 gomp_thread_limit_var, gomp_remaining_threads_count,
1423 gomp_remaining_threads_lock): New variables.
1424 (parse_spincount): New function.
1425 (initialize_env): Call gomp_init_num_threads unconditionally.
1426 Initialize gomp_available_cpus. Call parse_spincount,
1427 initialize gomp_{,throttled_}spin_count_var
1428 depending on presence and value of OMP_WAIT_POLICY and
1429 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
1430 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1431 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
1432 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
1433 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
1434 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1435 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1436 (gomp_global_icv): New.
1437 (parse_schedule): Use it. Parse "auto".
1438 (omp_set_num_threads): Use gomp_icv.
1439 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1440 Likewise.
1441 (omp_get_max_threads): Move from parallel.c.
1442 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1443 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1444 add ialias.
1445 (parse_stacksize, parse_wait_policy): New functions.
1446 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1447 both wrappers for compatibility and new locks.
1448 (omp_set_schedule, omp_get_schedule,
1449 omp_get_thread_limit, omp_set_max_active_levels,
1450 omp_get_max_active_levels, omp_get_level,
1451 omp_get_ancestor_thread_num, omp_get_team_size,
1452 omp_get_active_level): New ialias_redirect.
1453 (omp_set_schedule_, omp_set_schedule_8_,
1454 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1455 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1456 omp_get_max_active_levels_, omp_get_level_,
1457 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1458 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1459 New functions.
1460 * parallel.c: Include limits.h.
1461 (gomp_resolve_num_threads): Add count argument. Rewritten.
1462 (GOMP_parallel_start): Call gomp_new_team and pass that as last
1463 argument to gomp_team_start. Pass 0 as second argument to
1464 gomp_resolve_num_threads.
1465 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1466 if gomp_thread_limit_var != ULONG_MAX.
1467 (omp_in_parallel): Implement using ts.active_level.
1468 (omp_get_max_threads): Move to env.c.
1469 (omp_get_level, omp_get_ancestor_thread_num,
1470 omp_get_team_size, omp_get_active_level): New functions,
1471 add ialias.
1472 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1473 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
1474 gomp_iter_dynamic_next instead of the _locked variant and don't take
1475 lock around it, otherwise acquire it before calling
1476 gomp_iter_dynamic_next_locked.
1477 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1478 gomp_iter_dynamic_next instead of the _locked variant and don't take
1479 lock around it.
1480 (GOMP_parallel_sections_start): Call gomp_new_team instead of
1481 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
1482 Adjust gomp_team_start caller. Pass count as second argument to
1483 gomp_resolve_num_threads, don't adjust num_threads after the call.
1484 Use gomp_icv.
1485 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1486 ws->chunk_size by incr.
1487 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
1488 code.
1489 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1490 types.
1491 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1492 (omp_check_defines): Check even the compat defines.
1493 * config/linux/ptrlock.c: New file.
1494 * config/linux/ptrlock.h: New file.
1495 * config/linux/wait.h: New file.
1496 * config/posix/ptrlock.c: New file.
1497 * config/posix/ptrlock.h: New file.
1498 * config/linux/bar.h (gomp_team_barrier_wait,
1499 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1500 (gomp_team_barrier_set_task_pending,
1501 gomp_team_barrier_clear_task_pending,
1502 gomp_team_barrier_set_waiting_for_tasks,
1503 gomp_team_barrier_waiting_for_tasks,
1504 gomp_team_barrier_done): New inlines.
1505 (gomp_barrier_t): Rewritten.
1506 (gomp_barrier_state_t): New typedef.
1507 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1508 gomp_barrier_wait_start): Rewritten.
1509 (gomp_barrier_wait_end): Change second argument to
1510 gomp_barrier_state_t.
1511 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1512 inlines.
1513 * config/linux/bar.c: Include wait.h instead of libgomp.h and
1514 futex.h.
1515 (gomp_barrier_wait_end): Rewritten.
1516 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1517 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1518 * config/posix/bar.h (gomp_barrier_t): Add generation field.
1519 (gomp_barrier_state_t): New typedef.
1520 (gomp_team_barrier_wait,
1521 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1522 (gomp_barrier_wait_start): Or all but low 2 bits from generation
1523 into the return value. Return gomp_barrier_state_t.
1524 (gomp_team_barrier_set_task_pending,
1525 gomp_team_barrier_clear_task_pending,
1526 gomp_team_barrier_set_waiting_for_tasks,
1527 gomp_team_barrier_waiting_for_tasks,
1528 gomp_team_barrier_done): New inlines.
1529 (gomp_barrier_wait_end): Change second argument to
1530 gomp_barrier_state_t.
1531 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1532 inlines.
1533 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1534 (gomp_barrier_wait_end): Change second argument to
1535 gomp_barrier_state_t.
1536 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1537 gomp_team_barrier_wake): New functions.
1538 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1539 futex.h.
1540 (gomp_futex_wake, gomp_futex_wait): New variables.
1541 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1542 * config/linux/lock.c: Rewrite to make locks task owned,
1543 for backwards compatibility provide the old entrypoints
1544 if symbol versioning. Include wait.h instead of libgomp.h and
1545 futex.h.
1546 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1547 * config/posix95/lock.c: Rewrite to make locks task owned,
1548 for backwards compatibility provide the old entrypoints
1549 if symbol versioning.
1550 * config/posix/lock.c: Rewrite to make locks task owned,
1551 for backwards compatibility provide the old entrypoints
1552 if symbol versioning.
1553 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1554 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1555 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1556 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1557 (sys_futex0): Return error code.
1558 (futex_wake, futex_wait): If ENOSYS was returned, clear
1559 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1560 (cpu_relax, atomic_write_barrier): New static inlines.
1561 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1562 (futex_wake, futex_wait): If ENOSYS was returned, clear
1563 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1564 (cpu_relax, atomic_write_barrier): New static inlines.
1565 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1566 (sys_futex0): Return error code.
1567 (futex_wake, futex_wait): If ENOSYS was returned, clear
1568 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1569 (cpu_relax, atomic_write_barrier): New static inlines.
1570 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1571 (sys_futex0): Return error code.
1572 (futex_wake, futex_wait): If ENOSYS was returned, clear
1573 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1574 (cpu_relax, atomic_write_barrier): New static inlines.
1575 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1576 (sys_futex0): Return error code.
1577 (futex_wake, futex_wait): If ENOSYS was returned, clear
1578 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1579 (cpu_relax, atomic_write_barrier): New static inlines.
1580 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1581 (sys_futex0): Return error code.
1582 (futex_wake, futex_wait): If ENOSYS was returned, clear
1583 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1584 (cpu_relax, atomic_write_barrier): New static inlines.
1585 * config/linux/sem.c: Include wait.h instead of libgomp.h and
1586 futex.h.
1587 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1588 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1589 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1590 types.
1591 (omp_nest_lock_t): Change owner into void *, add lock field.
1592 * config/posix95/omp-lock.h: Include semaphore.h.
1593 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1594 (omp_lock_t): Use sem_t instead of mutex if semaphores
1595 aren't broken.
1596 (omp_nest_lock_t): Likewise. Change owner to void *.
1597 * config/posix/omp-lock.h: Include semaphore.h.
1598 (omp_lock_25_t, omp_nest_lock_25_t): New types.
1599 (omp_lock_t): Use sem_t instead of mutex if semaphores
1600 aren't broken.
1601 (omp_nest_lock_t): Likewise. Add owner field.
1602
1603 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1604
1605 * testsuite/libgomp.c/collapse-1.c: New test.
1606 * testsuite/libgomp.c/collapse-2.c: New test.
1607 * testsuite/libgomp.c/collapse-3.c: New test.
1608 * testsuite/libgomp.c/icv-1.c: New test.
1609 * testsuite/libgomp.c/icv-2.c: New test.
1610 * testsuite/libgomp.c/lib-2.c: New test.
1611 * testsuite/libgomp.c/lock-1.c: New test.
1612 * testsuite/libgomp.c/lock-2.c: New test.
1613 * testsuite/libgomp.c/lock-3.c: New test.
1614 * testsuite/libgomp.c/loop-4.c: New test.
1615 * testsuite/libgomp.c/loop-5.c: New test.
1616 * testsuite/libgomp.c/loop-6.c: New test.
1617 * testsuite/libgomp.c/loop-7.c: New test.
1618 * testsuite/libgomp.c/loop-8.c: New test.
1619 * testsuite/libgomp.c/loop-9.c: New test.
1620 * testsuite/libgomp.c/nested-3.c: New test.
1621 * testsuite/libgomp.c/nestedfn-6.c: New test.
1622 * testsuite/libgomp.c/sort-1.c: New test.
1623 * testsuite/libgomp.c/task-1.c: New test.
1624 * testsuite/libgomp.c/task-2.c: New test.
1625 * testsuite/libgomp.c/task-3.c: New test.
1626 * testsuite/libgomp.c/task-4.c: New test.
1627 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1628 to C++ testsuite default compiler options.
1629 * testsuite/libgomp.c++/collapse-1.C: New test.
1630 * testsuite/libgomp.c++/collapse-2.C: New test.
1631 * testsuite/libgomp.c++/ctor-10.C: New test.
1632 * testsuite/libgomp.c++/for-1.C: New test.
1633 * testsuite/libgomp.c++/for-2.C: New test.
1634 * testsuite/libgomp.c++/for-3.C: New test.
1635 * testsuite/libgomp.c++/for-4.C: New test.
1636 * testsuite/libgomp.c++/for-5.C: New test.
1637 * testsuite/libgomp.c++/loop-8.C: New test.
1638 * testsuite/libgomp.c++/loop-9.C: New test.
1639 * testsuite/libgomp.c++/loop-10.C: New test.
1640 * testsuite/libgomp.c++/task-1.C: New test.
1641 * testsuite/libgomp.c++/task-2.C: New test.
1642 * testsuite/libgomp.c++/task-3.C: New test.
1643 * testsuite/libgomp.c++/task-4.C: New test.
1644 * testsuite/libgomp.c++/task-5.C: New test.
1645 * testsuite/libgomp.c++/task-6.C: New test.
1646 * testsuite/libgomp.fortran/allocatable1.f90: New test.
1647 * testsuite/libgomp.fortran/allocatable2.f90: New test.
1648 * testsuite/libgomp.fortran/allocatable3.f90: New test.
1649 * testsuite/libgomp.fortran/allocatable4.f90: New test.
1650 * testsuite/libgomp.fortran/collapse1.f90: New test.
1651 * testsuite/libgomp.fortran/collapse2.f90: New test.
1652 * testsuite/libgomp.fortran/collapse3.f90: New test.
1653 * testsuite/libgomp.fortran/collapse4.f90: New test.
1654 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1655 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1656 * testsuite/libgomp.fortran/lib4.f90: New test.
1657 * testsuite/libgomp.fortran/lock-1.f90: New test.
1658 * testsuite/libgomp.fortran/lock-2.f90: New test.
1659 * testsuite/libgomp.fortran/nested1.f90: New test.
1660 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1661 * testsuite/libgomp.fortran/strassen.f90: New test.
1662 * testsuite/libgomp.fortran/tabs1.f90: New test.
1663 * testsuite/libgomp.fortran/tabs2.f: New test.
1664 * testsuite/libgomp.fortran/task1.f90: New test.
1665 * testsuite/libgomp.fortran/task2.f90: New test.
1666 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1667 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1668 * testsuite/libgomp.c/pr26943-2.c: Likewise.
1669 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1670 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1671
1672 2008-05-23 Jakub Jelinek <jakub@redhat.com>
1673
1674 PR c++/36308
1675 * testsuite/libgomp.c++/ctor-11.C: New test.
1676 * testsuite/libgomp.c++/ctor-12.C: New test.
1677
1678 2008-05-15 Janis Johnson <janis187@us.ibm.com>
1679
1680 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1681
1682 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1683
1684 PR middle-end/36106
1685 * testsuite/libgomp.c/atomic-5.c: New test.
1686 * testsuite/libgomp.c/atomic-6.c: New test.
1687 * testsuite/libgomp.c/autopar-1.c: New test.
1688
1689 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1690
1691 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1692 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1693 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1694 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1695 * configure: Regenerate.
1696 * Makefile.in, testsuite/Makefile.in: Likewise.
1697
1698 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
1699
1700 PR bootstrap/35457
1701 * aclocal.m4: Regenerate.
1702 * configure: Regenerate.
1703
1704 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1705
1706 PR middle-end/35611
1707 * testsuite/libgomp.c/atomic-4.c: New test.
1708
1709 PR libgomp/35625
1710 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1711 (gomp_iter_guided_next): Likewise.
1712 * testsuite/libgomp.c/pr35625.c: New test.
1713
1714 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1715
1716 * aclocal.m4: Regenerate.
1717 * configure: Likewise.
1718 * Makefile.in: Likewise.
1719 * testsuite/Makefile.in: Likewise.
1720
1721 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1722
1723 PR middle-end/35185
1724 * testsuite/libgomp.c++/pr35185.C: New test.
1725
1726 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1727
1728 PR middle-end/35549
1729 * testsuite/libgomp.c/pr35549.c: New test.
1730
1731 2008-03-06 Jakub Jelinek <jakub@redhat.com>
1732
1733 * testsuite/libgomp.c/atomic-3.c: New test.
1734
1735 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1736
1737 PR fortran/33197
1738 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1739 .F08 file suffixes.
1740
1741 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
1742
1743 PR libgomp/33131
1744 * configure.ac: Add ACX_HEADER_STRING.
1745 * env.c: Include strings.h.
1746 * aclocal.m4: Regenerate.
1747 * config.h.in: Regenerate.
1748 * configure: Regenerate.
1749 * Makefile.in: Regenerate.
1750 * testsuite/Makefile.in: Regenerate.
1751
1752 2008-02-15 Jakub Jelinek <jakub@redhat.com>
1753
1754 PR middle-end/35196
1755 * testsuite/libgomp.c/pr35196.c: New test.
1756
1757 PR middle-end/35130
1758 * testsuite/libgomp.fortran/pr35130.f90: New test.
1759 * testsuite/libgomp.c/pr35130.c: New test.
1760
1761 2008-01-25 Jakub Jelinek <jakub@redhat.com>
1762
1763 PR middle-end/33880
1764 * testsuite/libgomp.c/pr33880.c: New test.
1765 * testsuite/libgomp.fortran/pr33880.f90: New test.
1766
1767 2008-01-24 David Edelsohn <edelsohn@gnu.org>
1768
1769 * configure: Regenerate.
1770
1771 2008-01-08 Jakub Jelinek <jakub@redhat.com>
1772
1773 * configure.ac: Move futex checking into ../config/futex.m4.
1774 * configure: Rebuilt.
1775 * aclocal.m4: Rebuilt.
1776 * Makefile.in: Rebuilt.
1777
1778 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1779 2007-10-15 ../config/tls.m4 change.
1780
1781 2007-12-19 Jakub Jelinek <jakub@redhat.com>
1782
1783 PR c++/34513
1784 * testsuite/libgomp.c/pr34513.c: New test.
1785 * testsuite/libgomp.c++/pr34513.C: New test.
1786
1787 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
1788
1789 PR target/32765
1790 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1791
1792 2007-12-04 Jakub Jelinek <jakub@redhat.com>
1793
1794 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
1795
1796 2007-12-03 Jakub Jelinek <jakub@redhat.com>
1797
1798 * testsuite/libgomp.c/private-1.c: New test.
1799
1800 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
1801 Paolo Bonzini <bonzini@gnu.org>
1802
1803 * Makefile.am: Use space as vpath separator. Use 'vpath %'
1804 instead of 'VPATH ='.
1805 * Makefile.in: Regenerate.
1806
1807 2007-11-23 Matthias Klose <doko@ubuntu.com>
1808
1809 * configure.ac: Adjust makeinfo version check.
1810 * configure: Regenerate.
1811
1812 2007-11-10 Jakub Jelinek <jakub@redhat.com>
1813
1814 PR fortran/34020
1815 * testsuite/libgomp.fortran/pr34020.f90: New test.
1816
1817 2007-11-06 Jakub Jelinek <jakub@redhat.com>
1818
1819 PR c++/33894
1820 * testsuite/libgomp.c++/atomic-1.C: New test.
1821
1822 2007-10-25 Jakub Jelinek <jakub@redhat.com>
1823
1824 PR libgomp/33275
1825 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1826 Make x and y integers rather than (implicit) reals. Add private (j)
1827 clause to the last omp parallel.
1828
1829 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
1830
1831 * configure: Regenerate following changes to ../config/tls.m4.
1832
1833 2007-09-28 Jakub Jelinek <jakub@redhat.com>
1834
1835 * testsuite/libgomp.fortran/stack.f90: New test.
1836
1837 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
1838
1839 * config/mingw32/proc.c: New file.
1840
1841 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1842
1843 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1844 (main): Use __get_cpuid to get i386 target fetaures.
1845 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1846 (main): Use __get_cpuid to get x86_64 target fetaures.
1847
1848 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
1849
1850 PR target/32765
1851 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1852 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1853
1854 2007-07-12 Jakub Jelinek <jakub@redhat.com>
1855
1856 PR fortran/32550
1857 * testsuite/libgomp.fortran/pr32550.f90: New test.
1858 * testsuite/libgomp.fortran/crayptr2.f90: New test.
1859
1860 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
1861
1862 * aclocal.m4: Regenerated.
1863
1864 2007-07-05 Tobias Burnus <burnus@net-b.de>
1865
1866 PR fortran/32359
1867 * testsuite/libgomp.fortran/pr32359.f90: New.
1868
1869 2007-07-02 Jakub Jelinek <jakub@redhat.com>
1870
1871 PR libgomp/32468
1872 * sections.c (GOMP_parallel_sections_start): Only decrease
1873 number of threads to COUNT if dyn_var is true.
1874 * testsuite/libgomp.c/pr32468.c: New test.
1875
1876 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1877
1878 PR libgomp/26308
1879 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1880
1881 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1882
1883 PR middle-end/32362
1884 * testsuite/libgomp.c/pr32362-1.c: New test.
1885 * testsuite/libgomp.c/pr32362-2.c: New test.
1886 * testsuite/libgomp.c/pr32362-3.c: New test.
1887
1888 2007-06-07 Jakub Jelinek <jakub@redhat.com>
1889
1890 * team.c (gomp_team_start): Fix setting up thread_attr
1891 stack size.
1892
1893 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
1894
1895 * configure: Regenerate.
1896
1897 2007-05-23 Steve Ellcey <sje@cup.hp.com>
1898
1899 * Makefile.in: Regenerate.
1900 * configure: Regenerate.
1901 * aclocal.m4: Regenerate.
1902 * testsuite/Makefile.in: Regenerate.
1903
1904 2007-05-04 Jakub Jelinek <jakub@redhat.com>
1905
1906 * config/linux/proc.c: New file.
1907
1908 PR libgomp/28482
1909 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1910
1911 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
1912
1913 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1914
1915 2007-04-16 Matthias Klose <doko@debian.org>
1916
1917 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1918 flags if not building with -m64.
1919 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1920 flag for i?86-*-* targets, if current target matches -m64.
1921
1922 2007-04-14 Steve Ellcey <sje@cup.hp.com>
1923
1924 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1925 * Makefile.in: Regenerate.
1926
1927 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1928
1929 PR testsuite/31369
1930 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1931 ld_library_path.
1932 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1933
1934 2007-04-04 Jakub Jelinek <jakub@redhat.com>
1935
1936 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1937 decls.
1938 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1939 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1940 (parse_affinity): New function.
1941 (initialize_env): Call it and gomp_init_affinity.
1942 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1943 create new pthread_attr_t and call gomp_init_thread_affinity
1944 on it for each thread before passing the attribute to pthread_create.
1945 * config/linux/affinity.c: New file.
1946 * config/posix/affinity.c: New file.
1947 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1948 * configure: Rebuilt.
1949 * config.h.in: Rebuilt.
1950 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1951 * Makefile.in: Rebuilt.
1952
1953 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
1954
1955 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1956 *-*-darwin*.
1957 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1958 and use it if found.
1959
1960 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
1961
1962 * testsuite/config/default.exp: New file.
1963 * testsuite/lib/libgomp.exp: New file.
1964 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1965 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1966 load_lib *, load_gcc_lib *): Move to libgomp.exp.
1967 (libgomp_load): Remove.
1968 * testsuite/lib/libgomp.exp (libgomp_init): Compute
1969 always_ld_library_path, not ld_library_path. Set additional_flags
1970 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1971 (target_compile): Do not call libgomp_init. Append lang_library_path
1972 and lang_link_flags to options.
1973 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
1974 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
1975 here.
1976 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1977 always_ld_library_path. Set LD_LIBRARY_PATH here.
1978 * testsuite/libgomp.fortran/fortran.exp: Ditto.
1979 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1980 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1981 CX8 flag.
1982 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1983 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1984 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1985 * testsuite/libgomp.c/pr29947-1.c: Ditto.
1986 * testsuite/libgomp.c/atomic-10.c: Ditto.
1987
1988 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1989
1990 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1991 dg-final cleanup-modules line.
1992 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1993 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1994 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1995 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1996 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1997 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1998 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1999
2000 2007-03-18 Andreas Schwab <schwab@suse.de>
2001
2002 * acinclude.m4: Adjust regular expression for ld version
2003 extraction.
2004 * configure: Regenerate.
2005
2006 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2007
2008 * Makefile.am: Add install-pdf target as copied from
2009 automake v1.10 rules.
2010 * Makefile.in: Regenerate
2011
2012 2007-02-07 Jakub Jelinek <jakub@redhat.com>
2013
2014 PR libgomp/28486
2015 * configure: Regenerate.
2016
2017 PR c++/30703
2018 * testsuite/libgomp.c++/pr30703.C: New test.
2019
2020 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2021
2022 Revert:
2023 2006-07-05 Eric Christopher <echristo@apple.com>
2024 * configure.ac: Depend addition of -pthread on host OS.
2025 * configure: Regenerate.
2026
2027 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2028
2029 * libgomp.texi: Fix spacing after abbreviations.
2030
2031 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
2032
2033 PR libgomp/30546
2034 * configure.ac: Add check for makeinfo
2035 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
2036 if an appropiate version of makeinfo is found.
2037 * aclocal.m4: Regenerated.
2038 * configure: Regenerated.
2039 * Makefile.in: Regenerated.
2040 * testsuite/Makefile.in: Regenerated.
2041
2042 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
2043
2044 PR libgomp/30540
2045 * libgomp.texi: More about implementation-dependent settings.
2046
2047 2007-01-26 Tobias Burnus <burnus@net-b.de>
2048
2049 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
2050
2051 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2052
2053 PR middle-end/30494
2054 * testsuite/libgomp.c/pr30494.c: New test.
2055
2056 2007-01-15 Tom Tromey <tromey@redhat.com>
2057
2058 * configure: Rebuilt.
2059 * configure.ac: Fixed comment.
2060
2061 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
2062
2063 * libgomp.texi: Document implementation specific default values of
2064 environment variables.
2065
2066 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
2067
2068 PR libgomp/28209
2069 * libgomp.texi: New file.
2070 * configure.ac: Add --enable-generated-files-in-srcdir option.
2071 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
2072 files to srcdir.
2073 * Makefile.in: Regenerated.
2074 * config.h.in: Regenerated.
2075 * testsuite/Makefile.in: Regenerated.
2076 * NOTES: Removed.
2077
2078 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
2079
2080 PR libgomp/29949
2081 * env.c (omp_set_num_threads): Set illegal thread count to 1.
2082
2083 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2084
2085 * configure: Regenerate.
2086
2087 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2088
2089 PR libgomp/29947
2090 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
2091 start if there shouldn't be any loop iterations.
2092 (gomp_loop_ordered_static_start): Remove start == end test.
2093 * testsuite/libgomp.c/pr29947-1.c: New test.
2094 * testsuite/libgomp.c/pr29947-2.c: New test.
2095
2096 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2097
2098 * configure.tgt: Force initial-exec TLS model on Linux only.
2099
2100 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
2101
2102 * configure: Regenerated.
2103
2104 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
2105
2106 * env.c (parse_schedule): Reject out of range values.
2107 (parse_unsigned_long): Reject out of range, negative or zero values.
2108
2109 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2110
2111 PR fortran/29629
2112 * testsuite/libgomp.fortran/pr29629.f90: New test.
2113
2114 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2115
2116 PR libgomp/29494
2117 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
2118 * config/posix95: New directory.
2119 * config/posix95/omp-lock.h: New file.
2120 * config/posix95/lock.c: Likewise.
2121
2122 2006-10-14 Geoffrey Keating <geoffk@apple.com>
2123
2124 * aclocal.m4: Regenerate.
2125 * configure: Regenerate.
2126
2127 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2128
2129 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
2130 '<' to '<='.
2131
2132 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
2133
2134 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
2135 test.
2136 * configure: Regenerate.
2137 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
2138
2139 2006-09-26 Jakub Jelinek <jakub@redhat.com>
2140
2141 PR middle-end/25261
2142 PR middle-end/28790
2143 * testsuite/libgomp.c/nestedfn-4.c: New test.
2144 * testsuite/libgomp.c/nestedfn-5.c: New test.
2145 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
2146
2147 PR fortran/29097
2148 * testsuite/libgomp.fortran/condinc1.f: New test.
2149 * testsuite/libgomp.fortran/condinc2.f: New test.
2150 * testsuite/libgomp.fortran/condinc3.f90: New test.
2151 * testsuite/libgomp.fortran/condinc4.f90: New test.
2152 * testsuite/libgomp.fortran/condinc1.inc: New file.
2153
2154 2006-09-18 Tom Tromey <tromey@redhat.com>
2155
2156 * configure: Rebuilt.
2157
2158 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
2159
2160 PR c/28768
2161 PR preprocessor/14634
2162 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2163 to AC_DEFINE.
2164 * configure: Regenerate.
2165
2166 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
2167
2168 * testsuite/libgomp.fortran/reduction3.f90: Change
2169 -2147483648 to -huge(i)-1 to avoid overflow.
2170 * testsuite/libgomp.fortran/reduction4.f90: Change
2171 Z'ffffffff' to not(0) to avoid overflow.
2172
2173 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
2174
2175 PR libgomp/25938
2176 * Makefile.am (libsubincludedir): New.
2177 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2178 * Makefile.in: Regenerate.
2179
2180 2006-08-17 Jakub Jelinek <jakub@redhat.com>
2181
2182 PR libgomp/28725
2183 * env.c: Include ctype.h.
2184 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2185 leading and/or trailing whitespace and compare strings case
2186 insensitively.
2187
2188 2006-07-16 Jakub Jelinek <jakub@redhat.com>
2189
2190 PR fortran/28390
2191 * testsuite/libgomp.fortran/pr28390.f: New test.
2192
2193 2006-07-05 Eric Christopher <echristo@apple.com>
2194
2195 * configure.ac: Depend addition of -pthread on host OS.
2196 * configure: Regenerate.
2197
2198 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2199
2200 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2201 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2202 defined.
2203
2204 2006-06-20 Jakub Jelinek <jakub@redhat.com>
2205
2206 PR libgomp/26175
2207 PR libgomp/26477
2208 * configure.ac: If neither --enable-linux-futex nor
2209 --disable-linux-futex is passed, determine the default by checking
2210 for compiling and/or running against NPTL. With --enable-linux-futex,
2211 check if SYS_gettid and SYS_futex are defined.
2212 * configure: Rebuilt.
2213
2214 2006-06-14 Richard Henderson <rth@redhat.com>
2215
2216 PR libgomp/28008
2217 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2218 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2219
2220 2006-06-09 Richard Henderson <rth@redhat.com>
2221
2222 * env.c (gomp_nthreads_var): Change to unsigned long.
2223 (gomp_run_sched_chunk): Likewise.
2224 (parse_unsigned_long): Rename from parse_num_threads and generalize.
2225 (initialize_env): Initialize gomp_thread_attr.
2226 * libgomp.h (gomp_nthreads_var): Update decl.
2227 (gomp_run_sched_chunk): Likewise.
2228 (gomp_thread_attr): Declare.
2229 * team.c (gomp_thread_attr): Export.
2230 (initialize_team): Don't initialize it.
2231
2232 2006-06-09 Jakub Jelinek <jakub@redhat.com>
2233
2234 PR fortran/27916
2235 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2236 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2237
2238 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2239
2240 * config/mingw32/time.c: New file.
2241 * configure.tgt: Use it.
2242
2243 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
2244
2245 * Makefile.am: Add install-html target. Add install-html to .PHONY
2246 * Makefile.in: Regenerate.
2247
2248 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2249
2250 PR libgomp/27612
2251 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2252 * testsuite/libgomp.c/critical-1.c: Likewise.
2253 * testsuite/libgomp.c/loop-1.c: Likewise.
2254 * testsuite/libgomp.c/loop-2.c: Likewise.
2255 * testsuite/libgomp.c/single-1.c: Likewise.
2256 * testsuite/libgomp.c/ordered-1.c: Likewise.
2257 * testsuite/libgomp.c/ordered-2.c: Likewise.
2258
2259 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2260
2261 PR middle-end/27416
2262 * libgomp.fortran/pr27416-1.f90: New test.
2263
2264 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2265
2266 PR fortran/27395
2267 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2268 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2269
2270 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2271
2272 PR c++/26943
2273 * testsuite/libgomp.c/pr26943-1.c: New test.
2274 * testsuite/libgomp.c/pr26943-2.c: New test.
2275 * testsuite/libgomp.c/pr26943-3.c: New test.
2276 * testsuite/libgomp.c/pr26943-4.c: New test.
2277 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2278 * testsuite/libgomp.c++/pr26943.C: New test.
2279
2280 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2281
2282 PR middle-end/27337
2283 * testsuite/libgomp.c++/pr27337.C: New test.
2284
2285 2006-04-26 Jakub Jelinek <jakub@redhat.com>
2286
2287 PR c/26171
2288 * testsuite/libgomp.c/pr26171.c: New test.
2289
2290 2006-04-25 Richard Henderson <rth@redhat.com>
2291
2292 PR libgomp/25865
2293 * configure.ac: Use GCC_CHECK_TLS.
2294 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2295 * Makefile.in, aclocal.m4, configure: Regenerate.
2296
2297 2006-04-10 Matthias Klose <doko@debian.org>
2298
2299 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2300 directory names containing underscores.
2301
2302 2006-03-21 Jakub Jelinek <jakub@redhat.com>
2303
2304 PR c++/26691
2305 * testsuite/libgomp.c++/pr26691.C: New test.
2306
2307 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2308
2309 * testsuite/libgomp.fortran/retval2.f90: New test.
2310
2311 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2312
2313 * testsuite/libgomp.c++: New directory.
2314
2315 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
2316
2317 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2318 * config/posix/sem.c: Implement the above.
2319
2320 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
2321
2322 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2323 define HAVE_BROKEN_POSIX_SEMAPHORES.
2324 * configure: Rebuilt.
2325 * config.h.in: Rebuilt.
2326
2327 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2328
2329 PR bootstrap/26161
2330 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2331 for the other pthread check.
2332 * configure: Regenerate.
2333 * config.h.in: Regenerate.
2334
2335 2006-02-15 Jakub Jelinek <jakub@redhat.com>
2336
2337 PR libgomp/25938
2338 PR libgomp/25984
2339 * Makefile.am (fincludedir): New variable.
2340 (nodist_include_HEADERS): Remove Fortran files.
2341 (nodist_finclude_HEADERS): New variable.
2342 * Makefile.in: Regenerated.
2343
2344 2006-02-13 Jakub Jelinek <jakub@redhat.com>
2345
2346 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2347 Remove tests for returning assumed character length arrays.
2348
2349 2006-02-12 Roger Sayle <roger@eyesopen.com>
2350 John David Anglin <dave@hiauly1.hia.nrc.ca>
2351
2352 PR libgomp/25936
2353 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2354
2355 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2356
2357 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2358
2359 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2360
2361 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2362 part of LD_LIBRARY_PATH manually.
2363
2364 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
2365
2366 PR libgomp/25852
2367 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2368 libgomp_init.
2369
2370 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
2371
2372 PR libgomp/25884
2373 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2374 * configure.ac (PERL): Don't set.
2375 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2376 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2377 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2378 * omp.h.in: Wrap the new configure substitutions with @ characters.
2379 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2380 * aclocal.m4, configure, Makefile.in: Regenerate.
2381 * mkomp_h.pl: Delete.
2382
2383 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
2384
2385 PR libgomp/25259
2386 * configure.ac: Use GCC_HEADER_STDINT.
2387 * libgomp.h: Include gstdint.h.
2388 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2389 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2390
2391 2006-01-24 Richard Henderson <rth@redhat.com>
2392
2393 PR libgomp/25942
2394 * configure.ac: Add AM_MAINTAINER_MODE.
2395 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2396
2397 2006-01-24 Diego Novillo <dnovillo@redhat.com>
2398
2399 * Makefile.in: Regenerate.
2400 * testsuite/Makefile.in: Regenerate.
2401 * aclocal.m4: Regenerate.
2402
2403 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
2404
2405 * config/posix/proc.c: Conditional include of sys/loadavg.h for
2406 Solaris.
2407 * configure.ac: Add check for loadavg.h.
2408 (link_gomp): Adjust comment.
2409 * configure: Regenerate.
2410 * config.h.in: Regenerate.
2411
2412 2006-01-21 Steve Ellcey <sje@cup.hp.com>
2413
2414 PR libgomp/25877
2415 * configure.ac: Remove check for alloca.h.
2416 * configure: Regenerate.
2417 * config.h.in: Regenerate.
2418 * libgomp.h: define gomp_alloca to be __builtin_alloca.
2419 * team.c: Remove use of alloca.h.
2420 Call gomp_alloca instead of alloca.
2421
2422 2006-01-20 Steve Ellcey <sje@cup.hp.com>
2423
2424 PR libgomp/25877
2425 * team.c: Add include of alloca.h.
2426 * configure.ac: Add check for alloca.h.
2427 * configure: Regenerate.
2428 * config.h.in: Regenerate.
2429
2430 2006-01-17 Jakub Jelinek <jakub@redhat.com>
2431
2432 PR fortran/25219
2433 * testsuite/libgomp.fortran/pr25219.f90: New test.
2434
2435 2005-12-05 Uros Bizjak <uros@kss-loka.si>
2436
2437 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2438 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2439 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2440 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2441 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2442 testsuite/libgomp.fortran/threadprivate1.f90,
2443 testsuite/libgomp.fortran/threadprivate2.f90,
2444 testsuite/libgomp.fortran/threadprivate3.f90,
2445 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2446 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2447 testsuite/libgomp.fortran/omp_parse3.f90: Change required
2448 effective-target to TLS runtime.
2449
2450 * testsuite/libgomp.fortran/pr25162.f: Require
2451 effective-target TLS runtime.
2452
2453 2005-12-01 Jakub Jelinek <jakub@redhat.com>
2454
2455 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2456 * testsuite/libgomp.c/nestedfn-3.c: New test.
2457
2458 2005-11-30 Jakub Jelinek <jakub@redhat.com>
2459
2460 PR fortran/25162
2461 * testsuite/libgomp.fortran/pr25162.f: New test.
2462
2463 2005-11-28 Jakub Jelinek <jakub@redhat.com>
2464
2465 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2466 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2467
2468 2005-11-25 Jakub Jelinek <jakub@redhat.com>
2469
2470 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2471 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2472 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2473 single.c, team.c, work.c, config/linux/alpha/futex.h,
2474 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2475 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2476 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2477 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2478 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2479 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2480 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2481 FSF address.
2482
2483 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2484
2485 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2486 to nodist_noinst_HEADERS.
2487 * Makefile.in: Rebuilt.
2488
2489 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2490 add integer count field.
2491 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2492 omp_nest_lock_t type change.
2493 (omp_init_nest_lock): Likewise. Initialize count to 0.
2494 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2495 Increment count.
2496 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2497 Decrement count.
2498 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2499 Increment count if successful and return the new nesting level.
2500 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2501 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2502 * testsuite/libgomp.c/lib-1.c: New test.
2503 * testsuite/libgomp.fortran/lib1.f90: New test.
2504 * testsuite/libgomp.fortran/lib2.f: New test.
2505 * testsuite/libgomp.fortran/lib3.f: New test.
2506
2507 2005-11-17 Richard Henderson <rth@redhat.com>
2508
2509 PR 24845
2510 * Makefile.am (nodist_toolexeclib_HEADERS): New.
2511 * configure.ac (link_gomp): New. Substitute it.
2512 (AC_CONFIG_FILES): Add libgomp.spec.
2513 * libgomp.spec.in: New file.
2514 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2515 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2516
2517 2005-11-18 Jakub Jelinek <jakub@redhat.com>
2518
2519 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2520 reduction(-:var) behaving the same as reduction(+:var).
2521 * testsuite/libgomp.c/reduction-4.c: New test.
2522
2523 2005-11-15 Uros Bizjak <uros@kss-loka.si>
2524
2525 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2526 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2527 testsuite/libgomp.c/copyin-3.c,
2528 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2529 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2530 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2531 testsuite/libgomp.c++/pr24455.C,
2532 testsuite/libgomp.fortran/threadprivate1.f90,
2533 testsuite/libgomp.fortran/threadprivate2.f90,
2534 testsuite/libgomp.fortran/threadprivate3.f90,
2535 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2536 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2537 testsuite/libgomp.fortran/omp_parse3.f90: Require
2538 effective-target TLS.
2539
2540 2005-11-14 Diego Novillo <dnovillo@redhat.com>
2541
2542 * HEADER: Remove.
2543
2544 2005-11-13 Jakub Jelinek <jakub@redhat.com>
2545
2546 PR libgomp/24797
2547 * team.c (initialize_team): Pass NULL rather than free as
2548 pthread_key_create destructor. Initialize thread specific data
2549 pointer in initial thread to a static local variable rather than
2550 malloced memory.
2551
2552 2005-11-11 Uros Bizjak <uros@kss-loka.si>
2553
2554 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2555 its location to ld_library_path.
2556
2557 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2558
2559 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2560
2561 2005-11-10 Diego Novillo <dnovillo@redhat.com>
2562
2563 * testsuite/libgomp.c: Rename from libgomp.dg.
2564
2565 2005-11-09 Diego Novillo <dnovillo@redhat.com>
2566
2567 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2568 threadprivate variable 'i'.
2569
2570 2005-11-09 Jakub Jelinek <jakub@redhat.com>
2571
2572 * config/linux/s390/futex.h: New file.
2573 * configure.tgt: Use it.
2574
2575 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2576 before the parallel.
2577
2578 2005-11-08 Jakub Jelinek <jakub@redhat.com>
2579
2580 PR c++/24734
2581 * testsuite/libgomp.c++/master-1.C: New test.
2582
2583 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2584
2585 * testsuite/libgomp.dg/copyin-3.c: New test.
2586
2587 2005-11-07 Jakub Jelinek <jakub@redhat.com>
2588
2589 * testsuite/libgomp.fortran/retval1.f90: New test.
2590 * testsuite/libgomp.fortran/vla7.f90: New test.
2591
2592 2005-11-06 Jakub Jelinek <jakub@redhat.com>
2593
2594 * testsuite/libgomp.fortran/vla2.f90: New test.
2595 * testsuite/libgomp.fortran/vla3.f90: New test.
2596 * testsuite/libgomp.fortran/vla4.f90: New test.
2597 * testsuite/libgomp.fortran/vla5.f90: New test.
2598 * testsuite/libgomp.fortran/vla6.f90: New test.
2599
2600 2005-11-01 Jakub Jelinek <jakub@redhat.com>
2601
2602 * config/linux/sparc/futex.h: New file.
2603 * configure.tgt: Use it.
2604 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2605
2606 * critical.c: Include stdlib.h.
2607 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2608 ignoring return value.
2609 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2610 LIBGOMP_CHECK_SYNC_BUILTINS check.
2611 * configure: Rebuilt.
2612
2613 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2614
2615 * testsuite/libgomp.fortran/vla1.f90: New test.
2616
2617 2005-10-31 Richard Henderson <rth@redhat.com>
2618
2619 * testsuite/libgomp.fortran/character2.f90: Fix race condition
2620 setting 's' in different threads.
2621
2622 2005-10-31 Jakub Jelinek <jakub@redhat.com>
2623
2624 * libgomp.h (attribute_hidden, ialias): Define.
2625 * config/posix/proc.c (omp_get_num_procs): Add ialias.
2626 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2627 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2628 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2629 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2630 omp_test_lock, omp_test_nest_lock): Likewise.
2631 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2632 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2633 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2634 omp_test_lock, omp_test_nest_lock): Likewise.
2635 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2636 omp_get_dynamic, omp_get_nested): Likewise.
2637 * parallel.c (omp_get_num_threads, omp_get_max_threads,
2638 omp_get_thread_num, omp_in_parallel): Likewise.
2639 * fortran.c (ialias_redirect): Define.
2640 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2641 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2642 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2643 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2644 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2645 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2646 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2647 omp_get_wtime): Add ialias_redirect.
2648
2649 2005-10-30 Jakub Jelinek <jakub@redhat.com>
2650
2651 * fortran.c: Include stdlib.h.
2652
2653 2005-10-29 Jakub Jelinek <jakub@redhat.com>
2654
2655 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2656 * Makefile.in: Regenerated.
2657
2658 2005-10-28 Jakub Jelinek <jakub@redhat.com>
2659
2660 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2661 * libgomp_f.h.in (omp_check_defines): New function.
2662 * env.c: Include libgomp_f.h.
2663 (initialize_env): Call omp_check_defines.
2664
2665 * testsuite/libgomp.dg/copyin-2.c: New test.
2666 * testsuite/libgomp.c++/copyin-2.C: New test.
2667 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2668
2669 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2670 * testsuite/libgomp.fortran/sharing2.f90: New test.
2671
2672 * testsuite/libgomp.dg/copyin-1.c: New test.
2673 * testsuite/libgomp.c++/copyin-1.C: New test.
2674
2675 2005-10-26 Jakub Jelinek <jakub@redhat.com>
2676
2677 * testsuite/libgomp.fortran/crayptr1.f90: New test.
2678
2679 * testsuite/libgomp.fortran/workshare1.f90: New test.
2680
2681 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2682 only test.
2683 * libgomp.fortran/sharing1.f90: New test.
2684
2685 2005-10-24 Jakub Jelinek <jakub@redhat.com>
2686
2687 PR c++/24502
2688 * testsuite/libgomp.c++/loop-7.C: New test.
2689
2690 * testsuite/libgomp.dg/nestedfn-2.c: New test.
2691
2692 * testsuite/libgomp.dg/nestedfn-1.c: New test.
2693 * testsuite/libgomp.fortran/reduction6.f90: New test.
2694 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2695
2696 2005-10-23 Richard Henderson <rth@redhat.com>
2697
2698 * testsuite/libgomp.c++/ctor-1.C: New.
2699 * testsuite/libgomp.c++/ctor-2.C: New.
2700 * testsuite/libgomp.c++/ctor-3.C: New.
2701 * testsuite/libgomp.c++/ctor-4.C: New.
2702 * testsuite/libgomp.c++/ctor-5.C: New.
2703 * testsuite/libgomp.c++/ctor-6.C: New.
2704 * testsuite/libgomp.c++/ctor-7.C: New.
2705 * testsuite/libgomp.c++/ctor-8.C: New.
2706 * testsuite/libgomp.c++/ctor-9.C: New.
2707
2708 2005-10-21 Diego Novillo <dnovillo@redhat.com>
2709
2710 PR 24455
2711 * testsuite/libgomp.c++/pr24455-1.C: New test.
2712 * testsuite/libgomp.c++/pr24455.C: New test.
2713 * testsuite/libgomp.dg/pr24455-1.c: New test.
2714 * testsuite/libgomp.dg/pr24455.c: New test.
2715
2716 2005-10-20 Richard Henderson <rth@redhat.com>
2717
2718 * testsuite/libgomp.c++/loop-6.C: New.
2719 * testsuite/libgomp.dg/loop-3.c: New.
2720
2721 2005-10-20 Jakub Jelinek <jakub@redhat.com>
2722
2723 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2724 explicitly private.
2725 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2726 explicitly shared.
2727
2728 2005-10-19 Diego Novillo <dnovillo@redhat.com>
2729
2730 * testsuite/libgomp.fortran/jacobi.f: New test.
2731
2732 2005-10-19 Richard Henderson <rth@redhat.com>
2733
2734 * configure.tgt (i?86-linux): Default to with_arch instead of
2735 CFLAGS. Add -mtune to match target_cpu.
2736 (x86_64-linux): Tune to i686.
2737
2738 * fortran.c (omp_test_nest_lock_): Fix typo.
2739
2740 2005-10-19 Jakub Jelinek <jakub@redhat.com>
2741
2742 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2743 gomp_ordered_sync): Do nothing if team->nthreads == 1.
2744 * testsuite/libgomp.dg/ordered-3.c: New test.
2745
2746 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2747 Remove volatile keyword.
2748
2749 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2750 in COMMON block to avoid warnings on 64-bit targets.
2751
2752 2005-10-18 Diego Novillo <dnovillo@redhat.com>
2753
2754 * testsuite/libgomp.dg/shared-3.c: New test.
2755
2756 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2757
2758 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2759 * testsuite/libgomp.fortran/reduction5.f90: New test.
2760
2761 2005-10-18 Jakub Jelinek <jakub@redhat.com>
2762
2763 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2764 dg-options.
2765 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
2766 flush loop now that __sync_synchronize has proper memory barrier.
2767 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2768 Add -ffixed-form to dg-options.
2769
2770 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2771
2772 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2773 from subdirectories.
2774 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2775 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2776 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2777 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2778 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2779 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2780 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2781 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2782 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2783 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2784 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2785 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2786 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2787 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2788 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2789 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2790 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2791 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2792 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2793 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2794 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2795 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2796 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2797 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2798 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2799
2800 2005-10-17 Jakub Jelinek <jakub@redhat.com>
2801
2802 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2803 lang_library_path exists. Use find instead of glob to gather tests.
2804 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2805
2806 2005-10-17 Diego Novillo <dnovillo@redhat.com>
2807
2808 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2809 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2810 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2811 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2812 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2813 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2814 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2815 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2816 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2817 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2818 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2819 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2820 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2821
2822 2005-10-15 Jakub Jelinek <jakub@redhat.com>
2823
2824 * testsuite/libgomp.dg/vla-1.c: New test.
2825
2826 * testsuite/libgomp.fortran/reference2.f90: New test.
2827
2828 * testsuite/libgomp.fortran/character2.f90: Remove explicit
2829 declaration of omp_get_thread_num.
2830 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
2831 use omp_lib.
2832
2833 * testsuite/libgomp.fortran/reduction1.f90: New test.
2834 * testsuite/libgomp.fortran/reduction2.f90: New test.
2835 * testsuite/libgomp.fortran/reduction3.f90: New test.
2836 * testsuite/libgomp.fortran/reduction4.f90: New test.
2837
2838 2005-10-13 Richard Henderson <rth@redhat.com>
2839
2840 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2841 * Makefile.in: Regenerate.
2842 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2843 * libgomp.h: Include bar.h.
2844 (struct gomp_barrier): Remove.
2845 (struct gomp_team): Add barrier. Replace master_barrier with
2846 master_release. Replace threads with ordered_release.
2847 (struct gomp_thread): Replace barrier with release.
2848 * ordered.c (gomp_ordered_first): Update for ordered_release change.
2849 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2850 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2851 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2852 (GOMP_single_copy_end): Likewise.
2853 * team.c (gomp_threads_dock): New.
2854 (gomp_barrier_init, gomp_barrier_destroy): Remove.
2855 (gomp_thread_start): Use gomp_barrier_wait.
2856 (new_team, free_team): Update for gomp_team changes.
2857 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2858 (gomp_team_end): Use gomp_barrier_wait.
2859 (initialize_team): Update for gomp_thread changes.
2860 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2861 (gomp_work_share_end_nowait): Use atomic ops when available.
2862 * config/linux/bar.c, config/linux/bar.h: New files.
2863 * config/posix/bar.c, config/posix/bar.h: New files.
2864
2865 2005-10-13 Jakub Jelinek <jakub@redhat.com>
2866
2867 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2868 * testsuite/libgomp.dg/single-2.c: New test.
2869
2870 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2871 lang_link_flags): Unset, so that they aren't inherited from previously
2872 sourced *.exp.
2873
2874 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2875
2876 2005-10-12 Richard Henderson <rth@redhat.com>
2877
2878 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2879 (libgomp_init): Use lang_test_file, lang_library_path, and
2880 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
2881
2882 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2883 (lang_test_file, lang_link_flags): New.
2884 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2885
2886 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2887 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2888 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2889 testsuite/libgomp.c++/parallel-1.C,
2890 testsuite/libgomp.c++/reduction-1.C,
2891 testsuite/libgomp.c++/reduction-2.C,
2892 testsuite/libgomp.c++/reduction-3.C,
2893 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2894 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2895 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2896 New files, largely cribbed from the C testsuite.
2897
2898 2005-10-12 Jakub Jelinek <jakub@redhat.com>
2899
2900 * testsuite/libgomp.fortran/character1.f90: New test.
2901 * testsuite/libgomp.fortran/character2.f90: New test.
2902
2903 * testsuite/libgomp.dg/nested-1.c: New test.
2904 * testsuite/libgomp.dg/nested-2.c: New test.
2905 * testsuite/libgomp.fortran/do1.f90: New test.
2906 * testsuite/libgomp.fortran/do2.f90: New test.
2907
2908 * testsuite/libgomp.fortran/reference1.f90: New test.
2909
2910 2005-10-11 Jakub Jelinek <jakub@redhat.com>
2911
2912 * testsuite/libgomp.dg/reduction-1.c: New test.
2913 * testsuite/libgomp.dg/reduction-2.c: New test.
2914 * testsuite/libgomp.dg/reduction-3.c: New test.
2915
2916 2005-10-10 Jakub Jelinek <jakub@redhat.com>
2917
2918 * testsuite/libgomp.dg/atomic-1.c: New test.
2919 * testsuite/libgomp.dg/atomic-2.c: New test.
2920
2921 2005-10-09 Richard Henderson <rth@redhat.com>
2922
2923 * critical.c (atomic_lock): New.
2924 (initialize_critical): Initialize it.
2925 (GOMP_atomic_start, GOMP_atomic_end): New.
2926 * libgomp.map: Export them.
2927 * libgomp_g.h: Declare them.
2928
2929 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2930
2931 2005-10-02 Richard Henderson <rth@redhat.com>
2932
2933 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
2934 to XCFLAGS instead of CFLAGS.
2935
2936 2005-09-30 Richard Henderson <rth@redhat.com>
2937
2938 * configure.ac: Determine whether -pthread or -lpthread is needed.
2939 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2940 * Makefine.in, configure: Rebuild.
2941
2942 2005-09-28 Richard Henderson <rth@redhat.com>
2943
2944 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2945 * testsuite/libgomp.dg/omp-single-3.c: New test.
2946
2947 2005-09-28 Diego Novillo <dnovillo@redhat.com>
2948
2949 * testsuite/libgomp.dg/omp-single-2.c: New test.
2950 * testsuite/libgomp.dg/shared-2.c: Fix return code.
2951
2952 2005-09-27 Richard Henderson <rth@redhat.com>
2953
2954 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2955 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2956
2957 2005-09-27 Jakub Jelinek <jakub@redhat.com>
2958
2959 * testsuite/libgomp.dg/omp-loop03.c: New test.
2960
2961 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2962
2963 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2964
2965 2005-09-27 Diego Novillo <dnovillo@redhat.com>
2966
2967 * testsuite/libgomp.dg/omp-single-1.c: New test.
2968 * testsuite/libgomp.dg/shared-1.c: Return 0.
2969 Add prototype for abort.
2970 * testsuite/libgomp.dg/shared-2.c: Likewise.
2971
2972 2005-09-26 Jakub Jelinek <jakub@redhat.com>
2973
2974 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2975 constructs.
2976
2977 2005-09-26 Diego Novillo <dnovillo@redhat.com>
2978
2979 * testsuite/libgomp.dg/shared-1.c: New test.
2980 * testsuite/libgomp.dg/shared-2.c: New test.
2981
2982 2005-09-24 Richard Henderson <rth@redhat.com>
2983
2984 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2985
2986 2005-09-24 Richard Henderson <rth@redhat.com>
2987
2988 * iter.c (gomp_iter_static_next): Round up when computing number
2989 of iterations. Don't bother distributing a remainder equally.
2990
2991 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2992 Don't call srand. Zero b before testing.
2993 (main): New.
2994
2995 2005-09-24 Jakub Jelinek <jakub@redhat.com>
2996
2997 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2998 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2999
3000 2005-09-23 Jakub Jelinek <jakub@redhat.com>
3001
3002 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
3003 without !$omp end do, followed immediately by subroutine end.
3004
3005 2005-09-23 Diego Novillo <dnovillo@redhat.com>
3006
3007 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
3008
3009 2005-09-22 Richard Henderson <rth@redhat.com>
3010
3011 * critical.c (GOMP_critical_name_start): Change argument to void**.
3012 Reuse the pointer space if the mutex fits.
3013 (GOMP_critical_name_end): Likewise.
3014 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
3015 * libgomp_g.h (GOMP_critical_name_start): Update decl.
3016 (GOMP_critical_name_end): Likewise.
3017 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
3018 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
3019
3020 2005-09-20 Richard Henderson <rth@redhat.com>
3021
3022 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
3023 (create_lock_lock): New.
3024 (initialize_critical): Initialize it.
3025 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
3026 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
3027
3028 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3029
3030 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
3031
3032 2005-09-20 Diego Novillo <dnovillo@redhat.com>
3033
3034 * testsuite/libgomp.dg/omp-loop01.c: New test.
3035 * testsuite/libgomp.dg/omp-loop02.c: New test.
3036
3037 2005-09-20 Jakub Jelinek <jakub@redhat.com>
3038
3039 * configure.ac (AC_PROG_FC): Add.
3040 (USE_FORTRAN): New automake conditional.
3041 * configure: Rebuilt.
3042 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
3043 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
3044 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
3045 Add rules to build them.
3046 * Makefile.in: Rebuilt.
3047 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
3048 OMP_NEST_LOCK_KIND.
3049 * libgomp.map: Add Fortran wrappers.
3050 * libgomp_f.h.in: New file.
3051 * omp_lib.h.in: New file.
3052 * omp_lib.f90.in: New file.
3053 * fortran.c: New file.
3054 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
3055 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
3056 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
3057 libgfortran has been built.
3058 * testsuite/libgomp.fortran/fortran.exp: New file.
3059 * testsuite/libgomp.fortran/omp_cond1.f: New test.
3060 * testsuite/libgomp.fortran/omp_cond2.f: New test.
3061 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
3062 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
3063 * testsuite/libgomp.fortran/omp_hello.f: New test.
3064 * testsuite/libgomp.fortran/omp_orphan.f: New test.
3065 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
3066 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
3067 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
3068 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
3069 * testsuite/libgomp.fortran/omp_reduction.f: New test.
3070 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
3071 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
3072
3073 2005-08-30 Richard Henderson <rth@redhat.com>
3074
3075 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
3076 function for when aliases are not usable.
3077 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
3078 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3079 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
3080 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
3081 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
3082 GOMP_loop_ordered_guided_next): Likewise.
3083 * ordered.c (GOMP_ordered_start): Likewise.
3084
3085 2005-08-01 Diego Novillo <dnovillo@redhat.com>
3086
3087 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
3088 * testsuite/libgomp.dg/omp_hello.c: Fix return code
3089 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
3090 * testsuite/libgomp.dg/omp_orphan.c: Likewise
3091 * testsuite/libgomp.dg/omp_reduction.c: Likewise
3092 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
3093 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
3094 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
3095 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
3096
3097 2005-07-07 Eric Christopher <echristo@redhat.com>
3098 Diego Novillo <dnovillo@redhat.com>
3099
3100 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
3101 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
3102 up code.
3103 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
3104 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
3105 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
3106 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
3107 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
3108 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
3109 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
3110
3111 2005-06-13 Diego Novillo <dnovillo@redhat.com>
3112
3113 * TOPLEVEL.patch: Remove.
3114
3115 2005-05-16 Richard Henderson <rth@redhat.com>
3116
3117 * configure.ac: Test for clock_gettime.
3118 * config.h.in, configure: Rebuild.
3119 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
3120 (omp_get_wtime): Use clock_gettime if available.
3121 (omp_get_wtick): Use clock_getres if available.
3122
3123 2005-05-11 Richard Henderson <rth@redhat.com>
3124
3125 * config/linux/ia64/futex.h: New file.
3126 * configure.tgt: Use it.
3127
3128 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
3129
3130 2005-05-07 Richard Henderson <rth@redhat.com>
3131
3132 * config/linux/powerpc/futex.h: New file.
3133 * configure.tgt: Use it.
3134
3135 * config/linux/i486/futex.h: Merge ...
3136 * config/linux/x86_64/futex.h: ... into ...
3137 * config/linux/x86/futex.h: ... here.
3138 * configure.tgt: Update to match.
3139
3140 2005-05-06 Richard Henderson <rth@redhat.com>
3141
3142 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
3143 * config/linux/i486/futex.h: Likewise.
3144 * config/linux/x86_64/futex.h: Likewise.
3145
3146 * config/linux/lock.c: New file.
3147 * config/linux/omp-lock.h: New file.
3148
3149 * critical.c, env.h: Don't include omp.h
3150 * config/posix/lock.c: Include libgomp.h instead of omp.h.
3151 * config/posix/time.c: Likewise.
3152 * config/posix/omp-lock.h: New file.
3153 * libgomp.h: Include omp-lock.h and omp.h.
3154 * Makefile.am (nodist_include_HEADERS): New.
3155 (omp.h): New rule.
3156 * configure.ac (PERL): New.
3157 * mkomp_h.pl: New file.
3158 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3159 with templates.
3160 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3161
3162 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3163 build directory. Re-add -march=i486 hack.
3164
3165 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3166 (libgomp_link_flags): Remove.
3167 (libgomp_initialized): Remove.
3168 (libgomp_init): Don't protect from reinitialization. Copy code
3169 from libstdc++ for getting the multilib set correctly.
3170
3171 2005-05-05 Richard Henderson <rth@redhat.com>
3172
3173 * config/linux/alpha/futex.h: New file.
3174 * configure.tgt (alpha*-*-linux*): Use it.
3175
3176 * config/posix/mutex.c: New file.
3177 * config/posix/sem.c: Use libgomp.h.
3178
3179 * configure.tgt (x86_64-linux): Also test CC for -m32.
3180 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3181
3182 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3183 after $gccpath.
3184
3185 * Makefile.am (SUBDIRS): New.
3186 (libgomp_la_LDFLAGS): Add -lpthread.
3187 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3188 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3189
3190 * libgomp_g.h: New file.
3191 * libgomp.h: Split out all public declarations to libgomp_g.h.
3192 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3193 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3194 * config/linux/sem.h: Likewise.
3195 * config/posix/sem.h: Likewise.
3196
3197 * Makefile.am (AM_LDFLAGS): New.
3198 (libgomp_version_script): Split out from ...
3199 (libgomp_la_LDFLAGS): ... here.
3200 (libgomp_version_info): New.
3201 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3202 (LIBGOMP_ENABLE): New.
3203 (LIBGOMP_CHECK_LINKER_FEATURES): New.
3204 (LIBGOMP_ENABLE_SYMVERS): New.
3205 * configure.ac (AC_INIT): Version 1.0.
3206 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3207 (enable-linux-futex): Likewise. Rename from enable-futex.
3208 (libtool_VERSION): New.
3209 (LIBGOMP_ENABLE_SYMVERS): Use it.
3210 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3211 * Makefile.in, aclocal.m4, configure: Rebuild.
3212
3213 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3214 (gomp_mutex_unlock_slow): Fix typo.
3215 * config/linux/sem.c: Similarly.
3216 (gomp_sem_post_slow): Fix typo.
3217 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3218 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3219 [__PIC__] (sys_futex0): Don't use tmp output in asm.
3220
3221 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3222 (libgomp_la_LDFLAGS): Add top_srcdir to path.
3223 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3224 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
3225 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3226 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3227 LDFLAGS. Pull enable_futex check to top-level.
3228 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
3229 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3230
3231 First attempt at real configury.
3232 * Makefile, config.h: Remove file.
3233 * Makefile.am, Makefile.in: New file.
3234 * acinclude.m4 aclocal.m4: New file.
3235 * configure.ac, configure.tgt, configure: New file.
3236
3237 * config/posix/lock.c: Rename from sys-lock.c.
3238 * config/posix/mutex.h: Rename from sys-mutex.h.
3239 * config/posix/sem.c: Rename from sys-sem.c.
3240 * config/posix/sem.h: Rename from sys-sem.h.
3241 * config/posix/proc.c: Rename from sys-proc.c.
3242 * config/posix/time.c: Rename from sys-proc.c.
3243
3244 * config/linux/mutex.c: New file.
3245 * config/linux/mutex.h: New file.
3246 * config/linux/sem.c: New file.
3247 * config/linux/sem.h: New file.
3248 * config/linux/i486/futex.h: New file.
3249 * config/linux/x86_64/futex.h: New file.
3250
3251 2005-05-04 Richard Henderson <rth@redhat.com>
3252
3253 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3254 * libgomp.h: Declare them.
3255 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3256 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3257
3258 2005-05-04 Richard Henderson <rth@redhat.com>
3259
3260 * libgomp-1 code drop
3261
3262 2005-05-04 Richard Henderson <rth@redhat.com>
3263
3264 * iter.c (gomp_iter_static_next): Return tri-state on 0.
3265 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3266 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3267 (gomp_iter_static_next): Update.
3268 (gomp_ordered_static_next): Update.
3269 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3270 (gomp_loop_ordered_static_start): Likewise. Exit early for a
3271 totally empty range.
3272 (gomp_loop_ordered_static_next): Refine test for calling
3273 gomp_ordered_static_next.
3274 * testsuite/ordered-1.c: Add case for more threads than iterations.
3275
3276 * iter.c (gomp_iter_runtime_next_locked): Remove.
3277 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3278 gomp_loop_guided_start, gomp_loop_ordered_static_start,
3279 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3280 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3281 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3282 gomp_loop_ordered_guided_next): Downcase name, make static, add
3283 an external alias with the old name.
3284 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3285 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3286 switch and call one of the above static functions.
3287 * libgomp.h: Update.
3288
3289 * work.c (gomp_work_share_start): Lock the mutex for !first too.
3290 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3291 GOMP_loop_guided_start, GOMP_loop_runtime_start,
3292 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3293 GOMP_loop_ordered_guided_start): Update to match.
3294 * sections.c (GOMP_sections_start): Likewise.
3295 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3296
3297 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3298 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3299 Use bounds check instead of modulus.
3300 (gomp_ordered_sync): Split out of GOMP_ordered_start.
3301 (gomp_ordered_last): Don't sync with ordered_owner here.
3302 (gomp_ordered_next): Likewise.
3303 (gomp_ordered_static_loop_next): Likewise.
3304 * loop.c, libgomp.h: Update to match.
3305
3306 * libgomp.h (GOMP_barrier): Declare.
3307
3308 * testsuite/barrier-1.c: New file.
3309 * testsuite/critical-1.c: New file.
3310 * testsuite/ordered-2.c: New file.
3311 * testsuite/ordered-1.c: New file.
3312 * testsuite/sections-1.c: New file.
3313 * testsuite/single-1.c: New file.
3314 * testsuite/Makefile (TESTS): Add them.
3315
3316 2005-05-04 Richard Henderson <rth@redhat.com>
3317
3318 * libgomp.h (struct gomp_work_share): Add ordered_owner.
3319 * loop.c (GOMP_loop_static_start): If not the startup thread,
3320 acquire the mutex to wait for initialization complete.
3321 (GOMP_loop_ordered_static_start): Likewise.
3322 (GOMP_loop_ordered_runtime_start): Likewise.
3323 (GOMP_loop_ordered_static_first): Remove.
3324 (GOMP_loop_ordered_dynamic_first): Remove.
3325 (GOMP_loop_ordered_guided_first): Remove.
3326 (GOMP_loop_ordered_runtime_first): Remove.
3327 * ordered.c (gomp_ordered_loop_first): Post to own release when
3328 we're the first thread.
3329 (gomp_ordered_loop_last): Wait on release if not owner.
3330 (gomp_ordered_loop_next): Likewise.
3331 (gomp_ordered_static_loop_init): New.
3332 (gomp_ordered_static_loop_next): Use ordered_owner.
3333 (GOMP_ordered_start): Likewise.
3334 * work.c (gomp_new_work_share): Initialize ordered_owner.
3335
3336 2005-05-03 Richard Henderson <rth@redhat.com>
3337
3338 * Makefile (OPT): New.
3339 (CFLAGS): Use it.
3340
3341 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3342 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3343 * libgomp.h, libgomp.map, NOTES: Update to match.
3344
3345 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3346 Add initialized and thr members.
3347 (gomp_thread_start): Pause when initially spawned to wait for
3348 the whole team to be created.
3349 (gomp_team_start): Release team members at the end.
3350
3351 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
3352 (f_foo_1): Use GOMP_loop_end.
3353 (f_foo_2): Use GOMP_loop_end_nowait.
3354
3355 * testsuite/loop-2.c: New file.
3356 * testsuite/Makefile (TESTS): Add it.
3357
3358 2005-05-03 Richard Henderson <rth@redhat.com>
3359
3360 * iter.c (gomp_iter_static_next): Fix overflow check typo.
3361 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3362 * team.c (new_team): Initialize oldest_live_gen to 1 if no
3363 initial work_share.
3364
3365 * testsuite/Makefile: New file.
3366 * testsuite/loop-1.c: New file.
3367
3368 2005-05-03 Richard Henderson <rth@redhat.com>
3369
3370 Initial implementation and checkin.