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