Testsuite: add dg-{begin|end}-multiline-output commands
[gcc.git] / libgomp / ChangeLog
1 2015-10-09 David Malcolm <dmalcolm@redhat.com>
2
3 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
4 using load_gcc_lib.
5
6 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7
8 * oacc-ptx.h: Remove file, moving its content into...
9 * config/nvptx/fortran.c: ... here...
10 * config/nvptx/oacc-init.c: ..., here...
11 * config/nvptx/oacc-parallel.c: ..., and here.
12 * config/nvptx/openacc.f90: New file.
13 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14 (link_ptx): Don't link in predefined bits of PTX code.
15
16 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
17 Bernd Schmidt <bernds@codesourcery.com>
18
19 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
20 (struct targ_ptx_obj): New.
21 (nvptx_tdata): Move earlier, change data format.
22 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
23 objects.
24 (GOMP_OFFLOAD_load_image): Adjust.
25
26 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
27
28 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
29 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
30 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
31 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
32 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
33 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
34 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
35 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
36 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
37 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
38 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
39 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
40 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
41 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
42 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
43 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
44 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
45 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
46 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
47 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
48 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
49 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
50 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
51 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
52 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
53 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
54 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
55 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
56 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
57 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
58 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
59 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
60 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
61 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
62 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
63 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
64 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
65 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
66 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
67 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
68 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
69 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
70 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
71 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
72 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
73 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
74 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
75 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
76 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
77 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
78 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
79 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
80 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
81 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
82 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
83 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
84 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
85 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
86 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
87 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
88 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
89 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
90 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
91
92 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
93
94 * oacc-init.c (acc_on_device): Force optimization level.
95
96 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
97
98 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
99 (cuda_errlist): Delete.
100 (cuda_error): Reimplement.
101
102 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
103
104 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
105 array.
106 * libgomp.map (GOACC_parallel_keyed): New.
107 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
108 all callers.
109 (GOACC_parallel_keyed): New interface. Lose geometry arguments
110 and take keyed varargs list. Adjust call to exec_func.
111 (GOACC_parallel): Force host fallback.
112 * libgomp_g.h (GOACC_parallel): Remove.
113 (GOACC_parallel_keyed): Declare.
114 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
115 (stuct targ_gn_descriptor): Replace name field with launch field.
116 (nvptx_exec): Lose separate geometry args, take array. Process
117 dynamic dimensions and adjust.
118 (struct nvptx_tdata): Replace fn_names field with fn_descs.
119 (GOMP_OFFLOAD_load_image): Adjust for change in function table
120 data.
121 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
122 passing.
123 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
124 passing.
125
126 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
127
128 PR libgomp/67141
129 * oacc-int.h (goacc_host_init): Add declaration.
130 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
131 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
132
133 2015-09-08 Aditya Kumar <hiraditya@msn.com>
134 Sebastian Pop <s.pop@samsung.com>
135
136 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
137 match o/p.
138 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
139 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
140 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
141 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
142 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
143
144 2015-09-03 Jakub Jelinek <jakub@redhat.com>
145
146 * configure.tgt: Add missing ;; in between nvptx and rtems
147 snippets.
148
149 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
150
151 * config/posix/pool.h (gomp_adjust_thread_attr): New.
152 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
153 (gomp_thread_pool_reservoir): Add priority member.
154 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
155 priority.
156 (parse_thread_pools): Likewise.
157 * team.c (gomp_team_start): Call configuration provided
158 gomp_adjust_thread_attr(). Destroy thread attributes if
159 necessary.
160 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
161
162 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
163
164 * config/posix/pool.h: New.
165 * config/rtems/pool.h: Likewise.
166 * config/rtems/proc.c: Likewise.
167 * libgomp.h (gomp_thread_destructor): Declare.
168 * team.c: Include configuration provided "pool.h".
169 (gomp_get_thread_pool): Define in configuration.
170 (gomp_team_end): Call configuration defined
171 gomp_release_thread_pool().
172
173 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
174
175 * config/rtems/bar.c: New.
176 * config/rtems/bar.h: Likewise.
177 * config/rtems/mutex.c: Likewise.
178 * config/rtems/mutex.h: Likewise.
179 * config/rtems/sem.c: Likewise.
180 * config/rtems/sem.h: Likewise.
181 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
182 <sys/lock.h> header file.
183 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
184 supported by Newlib.
185 * configure: Regenerate.
186
187 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
188
189 * team.c (gomp_new_thread_pool): Delete and move content to ...
190 (gomp_get_thread_pool): ... new function. Allocate and
191 initialize thread pool on demand.
192 (get_last_team): Use gomp_get_thread_pool().
193 (gomp_team_start): Delete thread pool initialization.
194
195 2015-09-03 Tom de Vries <tom@codesourcery.com>
196
197 PR tree-optimization/65637
198 * testsuite/libgomp.c/autopar-2.c: New test.
199
200 2015-08-29 Tom de Vries <tom@codesourcery.com>
201
202 PR tree-optimization/46193
203 * testsuite/libgomp.c/pr46193.c: New test.
204
205 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
206
207 libgomp/
208 * libgomp.map: Add 4.0.2 version.
209 * target.c (offload_image_descr): Add version field.
210 (gomp_load_image_to_device): Add version argument. Adjust plugin
211 call. Improve load mismatch diagnostic.
212 (gomp_unload_image_from_device): Add version argument. Adjust plugin
213 call.
214 (GOMP_offload_regster): Make stub function, move bulk to ...
215 (GOMP_offload_register_ver): ... here. Process version argument.
216 (GOMP_offload_unregister): Make stub function, move bulk to ...
217 (GOMP_offload_unregister_ver): ... here. Process version argument.
218 (gomp_init_device): Process version field.
219 (gomp_unload_device): Process version field.
220 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
221 macros. Check plugin version.
222 * libgomp.h (gomp_device_descr): Add version function field. Adjust
223 loader and unloader types.
224 * oacc-host.c: Include gomp-constants.h.
225 (host_version): New.
226 (host_load_image, host_unload_image): Adjust.
227 (host_dispatch): Add host_version.
228 * plugin/plugin-nvptx.c: Include gomp-constants.h.
229 (GOMP_OFFLOAD_version): New.
230 (GOMP_OFFLOAD_load_image): Add version arg and check it.
231 (GOMP_OFFLOAD_unload_image): Likewise.
232 * plugin/plugin-host.c: Include gomp-constants.h.
233 (GOMP_OFFLOAD_version): New.
234 (GOMP_OFFLOAD_load_image): Add version arg.
235 (GOMP_OFFLOAD_unload_image): Likewise.
236
237 2015-08-24 Tom de Vries <tom@codesourcery.com>
238
239 PR tree-optimization/65468
240 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
241
242 2015-08-24 Tom de Vries <tom@codesourcery.com>
243
244 PR tree-optimization/65468
245 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
246
247 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
248
249 PR libgomp/66761
250 PR libgomp/67303
251 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
252 (gomp_iter_guided_next): Idem.
253 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
254 (gomp_iter_ull_guided_next): Idem.
255 * config/linux/wait.h (do_spin): Idem.
256
257 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
258
259 * libgomp-plugin.h (enum offload_target_type): Remove
260 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
261 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
262 * openacc.h (enum acc_device_t): Likewise.
263 * openacc_lib.h: Likewise.
264 * oacc-init.c (name_of_acc_device_t): Don't handle it.
265 (acc_on_device): Just use __builtin_acc_on_device.
266 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
267 of acc_on_device builtin.
268 * plugin/plugin-host.h: Remove file.
269 * plugin/plugin-host.c: Likewise, but salvage some content into...
270 * oacc-host.c: ... this file.
271 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
272 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
273 * Makefile.in: Regenerate.
274 * configure: Likewise.
275 * testsuite/lib/libgomp.exp
276 (check_effective_target_openacc_host_nonshm_selected): Remove.
277 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
278 ACC_DEVICE_TYPE=host_nonshm.
279 * testsuite/libgomp.oacc-c/c.exp: Likewise.
280 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
281 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
282 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
283 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
284 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
285
286 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
287 Jakub Jelinek <jakub@redhat.com>
288
289 * config/nvptx/affinity.c: New file.
290 * config/nvptx/alloc.c: Likewise.
291 * config/nvptx/bar.c: Likewise.
292 * config/nvptx/barrier.c: Likewise.
293 * config/nvptx/critical.c: Likewise.
294 * config/nvptx/env.c: Likewise.
295 * config/nvptx/error.c: Likewise.
296 * config/nvptx/fortran.c: Likewise.
297 * config/nvptx/iter.c: Likewise.
298 * config/nvptx/iter_ull.c: Likewise.
299 * config/nvptx/libgomp-plugin.c: Likewise.
300 * config/nvptx/lock.c: Likewise.
301 * config/nvptx/loop.c: Likewise.
302 * config/nvptx/loop_ull.c: Likewise.
303 * config/nvptx/mutex.c: Likewise.
304 * config/nvptx/oacc-async.c: Likewise.
305 * config/nvptx/oacc-cuda.c: Likewise.
306 * config/nvptx/oacc-host.c: Likewise.
307 * config/nvptx/oacc-init.c: Likewise.
308 * config/nvptx/oacc-mem.c: Likewise.
309 * config/nvptx/oacc-parallel.c: Likewise.
310 * config/nvptx/oacc-plugin.c: Likewise.
311 * config/nvptx/omp-lock.h: Likewise.
312 * config/nvptx/ordered.c: Likewise.
313 * config/nvptx/parallel.c: Likewise.
314 * config/nvptx/proc.c: Likewise.
315 * config/nvptx/ptrlock.c: Likewise.
316 * config/nvptx/sections.c: Likewise.
317 * config/nvptx/sem.c: Likewise.
318 * config/nvptx/single.c: Likewise.
319 * config/nvptx/splay-tree.c: Likewise.
320 * config/nvptx/target.c: Likewise.
321 * config/nvptx/task.c: Likewise.
322 * config/nvptx/team.c: Likewise.
323 * config/nvptx/time.c: Likewise.
324 * config/nvptx/work.c: Likewise.
325 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
326 * configure: Regenerate.
327 * configure.tgt (config_path): Set to "nvptx" for target
328 nvptx*-*-*.
329
330 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
331
332 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
333
334 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
335
336 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
337 (cuda_errlist): Constify.
338 (errmsg): Move into ...
339 (cuda_error): ... here. Make smaller.
340 (_XSTR, _STR): Delete.
341 (cuda_synames): Delete.
342 (verify_device_library): Delete.
343 (nvptx_init): Don't call it.
344
345 2015-07-28 Tom de Vries <tom@codesourcery.com>
346
347 * testsuite/libgomp.c/uns-outer-4.c: New test.
348
349 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
350
351 * testsuite/libgomp.c/pr66714.c: New test.
352
353 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
354
355 PR libgomp/66950
356 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
357 (fib_ref): New function.
358 (fib): Correct corner cases in the recursion.
359 (main): Replace the non-simd loop with fib_ref call.
360 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
361 subroutine.
362 (fibonacci): Lower the parameter N to 30. Correct accordingly check
363 for the last array element value. Replace the non-simd loop with
364 fib_ref call. Remove redundant b_ref array. Remove the comparison
365 of the last array element with according Fibonacci sequence element.
366 (fib): Correct corner cases in the recursion.
367
368 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
369
370 * target.c (gomp_offload_image_to_device): Rename to ...
371 (gomp_load_image_to_device): ... here.
372 (GOMP_offload_register): Adjust call.
373 (gomp_init_device): Likewise.
374 (gomp_unload_image_from_device): New. Broken out of ...
375 (GOMP_offload_unregister): ... here. Call it.
376 (gomp_unload_device): New.
377 * libgomp.h (gomp_unload_device): Declare.
378 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
379 mem maps.
380
381 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
382
383 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
384 wait=-specific if.
385 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
386 !=0 condition.
387 (goacc_waits): Move !num_waits handling to ...
388 (GOACC_wait): ... here, the only caller that might have zero waits.
389
390 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
391 (struct ptx_image_data): Move earlier, add fns field.
392 (struct ptx_device): Add images and image_lock fields.
393 (ptx_images, ptx_image_lock): Delete.
394 (nvptx_open_device): Initialize images and image_lock fields.
395 (nvptx_close_device): Destroy image_lock.
396 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
397 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
398 fields.
399
400 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
401
402 * target.c (GOMP_offload_register): Use int for device type arg.
403 (GOMP_offload_unregister): Likewise.
404
405 * target.c (struct_offload_image_descr): Constify host_table.
406 (gomp_offload_image_to_device): Likewise.
407 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
408
409 * libgomp.h (gomp_device_descr): Constify target data arguments.
410 * target.c (struct offload_image_descr): Constify target_data.
411 (gomp_offload_image_to_device): Likewise.
412 (GOMP_offload_register): Likewise.
413 (GOMP_offload_unrefister): Likewise.
414 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
415 GOMP_OFFLOAD_unload_image): Constify target data.
416 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
417 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
418
419 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
420
421 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
422 Workaround driver library const error.
423 (struct nvptx_tdata, nvptx_tdata_t): New.
424 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
425 type.
426
427 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
428
429 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
430 of EPS parameter from integer to real.
431 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
432 type of EPS parameter from integer to real.
433
434 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
435
436 * team.c (get_last_team): New.
437 (gomp_new_team): Recycle last non-nested team if possible.
438 (gomp_team_end): Move team work share list free lock destruction
439 to ...
440 (free_team): ... here.
441
442 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
443
444 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
445 and ref from int to double. Replaced their comparison with
446 an inequality of their difference and EPS.
447 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
448 comparison of pri and a reference number with an inequality of their
449 difference and EPS.
450 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
451 the comparison of sum and sum_ref with an inequality of their
452 difference and EPS.
453 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
454 the comparison of pri and a reference number with an inequality of
455 their difference and EPS.
456
457 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
458
459 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
460 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
461 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
462 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
463 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
464 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
465 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
466 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
467 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
468 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
469 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
470 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
471 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
472 variables.
473 (vec_mult): Likewise. Add #pragma omp taskwait.
474 (main): Adjust caller.
475 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
476 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
477 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
478 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
479 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
480 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
481 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
482 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
483 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
484 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
485 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
486 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
487 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
488 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
489 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
490 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
491 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
492 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
493 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
494 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
495 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
496 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
497 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
498 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
499 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
500 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
501 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
502 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
503 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
504 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
505 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
506 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
507 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
508 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
509 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
510 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
511 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
512 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
513 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
514 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
515 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
516 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
517 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
518 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
519 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
520 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
521 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
522 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
523 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
524 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
525 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
526 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
527 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
528 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
529 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
530 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
531 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
532 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
533 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
534 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
535 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
536 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
537 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
538 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
539 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
540 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
541 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
542 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
543 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
544 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
545 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
546 (vec_mult): Add !$omp taskwait.
547 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
548 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
549 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
550 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
551 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
552 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
553 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
554 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
555 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
556 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
557 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
558 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
559 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
560 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
561 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
562 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
563 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
564 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
565 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
566 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
567 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
568 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
569 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
570 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
571 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
572 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
573 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
574 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
575 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
576 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
577 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
578 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
579 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
580 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
581 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
582 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
583 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
584 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
585 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
586 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
587 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
588 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
589 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
590 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
591 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
592 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
593 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
594 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
595 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
596 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
597 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
598 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
599 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
600 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
601 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
602 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
603 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
604 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
605 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
606 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
607 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
608 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
609 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
610 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
611 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
612 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
613 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
614
615 2015-07-10 Tom de Vries <tom@codesourcery.com>
616
617 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
618 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
619
620 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
621
622 PR libgomp/65099
623 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
624 in a 64-bit configuration.
625 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
626 offloading testing if no such device is available.
627 * testsuite/libgomp.oacc-c/c.exp: Likewise.
628 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
629
630 2015-07-08 Tom de Vries <tom@codesourcery.com>
631
632 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
633 second call to f.
634 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
635
636 2015-07-07 Tom de Vries <tom@codesourcery.com>
637
638 PR tree-optimization/66642
639 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
640 iteration count case.
641 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
642 function, factor out of ...
643 (main): ... here. Test low iteration count case.
644
645 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
646
647 * libgomp.h (gomp_thread_pool): Comment last_team field.
648
649 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
650
651 * testsuite/libgomp.c++/pr66702-1.C: Require
652 vect_simd_clones effective target.
653 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
654
655 2015-06-30 Tom de Vries <tom@codesourcery.com>
656
657 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
658 already set. Use DEFAULT_CFLAGS in dg-runtest.
659 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
660 "-O2".
661
662 2015-06-30 Tom de Vries <tom@codesourcery.com>
663
664 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
665 already set. Use DEFAULT_CFLAGS in dg-runtest.
666 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
667 * testsuite/libgomp.c++/pr64824.C: Same.
668 * testsuite/libgomp.c++/pr64868.C: Same.
669 * testsuite/libgomp.c++/pr66199-1.C: Same.
670 * testsuite/libgomp.c++/pr66199-2.C: Same.
671 * testsuite/libgomp.c++/target-2.C: Same.
672 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
673 -std=<standard> option.
674 * testsuite/libgomp.c++/udr-11.C: Same.
675 * testsuite/libgomp.c++/udr-12.C: Same.
676 * testsuite/libgomp.c++/udr-13.C: Same.
677 * testsuite/libgomp.c++/udr-14.C: Same.
678 * testsuite/libgomp.c++/udr-15.C: Same.
679 * testsuite/libgomp.c++/udr-16.C: Same.
680 * testsuite/libgomp.c++/udr-17.C: Same.
681 * testsuite/libgomp.c++/udr-18.C: Same.
682 * testsuite/libgomp.c++/udr-19.C: Same.
683 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
684 * testsuite/libgomp.c++/simd-1.C: Same.
685 * testsuite/libgomp.c++/simd-2.C: Same.
686 * testsuite/libgomp.c++/simd-3.C: Same.
687 * testsuite/libgomp.c++/simd-4.C: Same.
688 * testsuite/libgomp.c++/simd-5.C: Same.
689 * testsuite/libgomp.c++/simd-6.C: Same.
690 * testsuite/libgomp.c++/simd-7.C: Same.
691 * testsuite/libgomp.c++/simd-8.C: Same.
692 * testsuite/libgomp.c++/simd-9.C: Same.
693 * testsuite/libgomp.c++/simd10.C: Same.
694 * testsuite/libgomp.c++/simd11.C: Same.
695 * testsuite/libgomp.c++/simd12.C: Same.
696 * testsuite/libgomp.c++/simd13.C: Same.
697
698 2015-06-30 Jakub Jelinek <jakub@redhat.com>
699
700 PR middle-end/66702
701 * testsuite/libgomp.c++/pr66702-1.C: New test.
702 * testsuite/libgomp.c++/pr66702-2.C: New test.
703
704 2015-06-30 Tom de Vries <tom@codesourcery.com>
705
706 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
707 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
708 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
709 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
710
711 2015-06-30 Tom de Vries <tom@codesourcery.com>
712
713 PR tree-optimization/66652
714 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
715 using restrict pointers.
716 (main): Add arguments to calls to f.
717 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
718
719 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
720
721 * configure.ac: Fix check for header <sys/sysctl.h>.
722 * configure: Regenerate.
723 * config.h.in: Likewise.
724
725 2015-06-23 Tom de Vries <tom@codesourcery.com>
726
727 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
728 abort.
729 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
730
731 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
732
733 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
734 acc_device_nvidia.
735
736 PR libgomp/66518
737 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
738 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
739
740 2015-06-15 Tom de Vries <tom@codesourcery.com>
741
742 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
743 dg-additional-options for any remaining options.
744 * testsuite/libgomp.c/atomic-2.c: Same.
745 * testsuite/libgomp.c/atomic-4.c: Same.
746 * testsuite/libgomp.c/atomic-5.c: Same.
747 * testsuite/libgomp.c/atomic-6.c: Same.
748 * testsuite/libgomp.c/autopar-1.c: Same.
749 * testsuite/libgomp.c/copyin-1.c: Same.
750 * testsuite/libgomp.c/copyin-2.c: Same.
751 * testsuite/libgomp.c/copyin-3.c: Same.
752 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
753 * testsuite/libgomp.c/nestedfn-5.c: Same.
754 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
755 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
756 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
757 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
758 * testsuite/libgomp.c/pr32362-1.c: Same.
759 * testsuite/libgomp.c/pr32362-2.c: Same.
760 * testsuite/libgomp.c/pr32362-3.c: Same.
761 * testsuite/libgomp.c/pr39591-1.c: Same.
762 * testsuite/libgomp.c/pr39591-2.c: Same.
763 * testsuite/libgomp.c/pr39591-3.c: Same.
764 * testsuite/libgomp.c/pr58392.c: Same.
765 * testsuite/libgomp.c/pr58756.c: Same.
766 * testsuite/libgomp.c/simd-1.c: Same.
767 * testsuite/libgomp.c/simd-10.c: Same.
768 * testsuite/libgomp.c/simd-11.c: Same.
769 * testsuite/libgomp.c/simd-12.c: Same.
770 * testsuite/libgomp.c/simd-13.c: Same.
771 * testsuite/libgomp.c/simd-14.c: Same.
772 * testsuite/libgomp.c/simd-15.c: Same.
773 * testsuite/libgomp.c/simd-2.c: Same.
774 * testsuite/libgomp.c/simd-3.c: Same.
775 * testsuite/libgomp.c/simd-4.c: Same.
776 * testsuite/libgomp.c/simd-5.c: Same.
777 * testsuite/libgomp.c/simd-6.c: Same.
778 * testsuite/libgomp.c/simd-7.c: Same.
779 * testsuite/libgomp.c/simd-8.c: Same.
780 * testsuite/libgomp.c/simd-9.c: Same.
781
782 2015-06-15 Tom de Vries <tom@codesourcery.com>
783
784 * testsuite/libgomp.c/pr35625.c: Fix typo.
785
786 2015-06-15 Tom de Vries <tom@codesourcery.com>
787
788 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
789 in dg-options.
790 * testsuite/libgomp.c/atomic-3.c: Same.
791 * testsuite/libgomp.c/debug-1.c: Same.
792 * testsuite/libgomp.c/nqueens-1.c: Same.
793 * testsuite/libgomp.c/pr26171.c: Same.
794 * testsuite/libgomp.c/pr48591.c: Same.
795 * testsuite/libgomp.c/pr64824.c: Same.
796 * testsuite/libgomp.c/pr64868.c: Same.
797 * testsuite/libgomp.c/pr66133.c: Same.
798 * testsuite/libgomp.c/pr66199-1.c: Same.
799 * testsuite/libgomp.c/pr66199-2.c: Same.
800 * testsuite/libgomp.c/target-8.c: Same.
801
802 2015-06-15 Tom de Vries <tom@codesourcery.com>
803
804 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
805 -std={gnu99,c99}.
806 * testsuite/libgomp.c/for-1.c: Same.
807 * testsuite/libgomp.c/for-2.c: Same.
808 * testsuite/libgomp.c/for-3.c: Same.
809 * testsuite/libgomp.c/pr35625.c: Same.
810 * testsuite/libgomp.c/pr39154.c: Same.
811 * testsuite/libgomp.c/simd-16.c: Same.
812 * testsuite/libgomp.c/simd-17.c: Same.
813
814 2015-06-13 Tom de Vries <tom@codesourcery.com>
815
816 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
817
818 2015-06-13 Tom de Vries <tom@codesourcery.com>
819
820 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
821 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
822 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
823 (N): Define.
824 (main): Use N instead of hardcoded constants.
825
826 2015-06-05 Tom de Vries <tom@codesourcery.com>
827
828 merge from gomp4 branch:
829 2015-05-28 Tom de Vries <tom@codesourcery.com>
830
831 PR tree-optimization/65443
832 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
833 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
834 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
835
836 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
837
838 * testsuite/libgomp.graphite/bounds.c: Adjust for
839 cleanup-tree-dump removal.
840 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
841 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
842 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
843 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
844 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
845 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
846 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
847 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
848 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
849 * testsuite/libgomp.graphite/pr41118.c: Likewise.
850
851 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
852
853 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
854 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
855 (futex_wake) [!__x86_64__]: Ditto.
856
857 2015-05-28 Julian Brown <julian@codesourcery.com>
858
859 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
860 function comment. Only call gomp_fatal if new argument is true.
861 (acc_dev_num_out_of_range): New function.
862 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
863 acc_dev_num_out_of_range as appropriate.
864 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
865 (acc_get_device_num, acc_set_device_num): Update calls to
866 resolve_device.
867 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
868 output.
869
870 2015-05-28 Julian Brown <julian@codesourcery.com>
871
872 PR libgomp/65742
873 * oacc-init.c (plugin/plugin-host.h): Include.
874 (acc_on_device): Check whether we're in an offloaded region for
875 host_nonshm
876 plugin. Don't use __builtin_acc_on_device.
877 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
878 nonshm_exec flag in thread-local data.
879 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
880 data for host_nonshm plugin.
881 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
882 for host_nonshm plugin.
883 * plugin/plugin-host.h: New.
884
885 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
886
887 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
888
889 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
890
891 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
892 Declare as int.
893 (FUTEX_PRIVATE_FLAG): Remove L suffix.
894 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
895 Declare as int.
896
897 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
898
899 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
900
901 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
902
903 * target.c (gomp_map_pointer): New function abstracting out
904 GOMP_MAP_POINTER handling.
905 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
906 gomp_map_pointer().
907
908 2015-05-19 Jakub Jelinek <jakub@redhat.com>
909
910 PR middle-end/66199
911 * testsuite/libgomp.c/pr66199-1.c: New test.
912 * testsuite/libgomp.c/pr66199-2.c: New test.
913 * testsuite/libgomp.c++/pr66199-1.C: New test.
914 * testsuite/libgomp.c++/pr66199-2.C: New test.
915 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
916 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
917
918 2015-05-19 Julian Brown <julian@codesourcery.com>
919
920 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
921 on cuInit failure.
922
923 2015-05-13 Jakub Jelinek <jakub@redhat.com>
924
925 PR middle-end/66133
926 * testsuite/libgomp.c/pr66133.c: New test.
927
928 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
929
930 * Makefile.in: Regenerated with automake-1.11.6.
931 * aclocal.m4: Likewise.
932 * config.h.in: Likewise.
933 * configure: Likewise.
934 * testsuite/Makefile.in: Likewise.
935
936 2015-05-08 Jason Merrill <jason@redhat.com>
937
938 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
939 _Complex.
940
941 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
942
943 2015-05-06 Julian Brown <julian@codesourcery.com>
944
945 * oacc-init.c (acc_device_lock): Add explanatory comment.
946 (resolve_device): Add comment about locking requirement.
947 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
948 gomp_init_device and gomp_fini_device calls.
949 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
950 (acc_get_device_num, acc_set_device_num): Add locking around
951 resolve_device and gomp_init_device calls.
952
953 2015-05-06 Julian Brown <julian@codesourcery.com>
954
955 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
956 goacc_thread_lock on error paths.
957 * oacc-mem.c (lookup_host): Remove locking from function. Note
958 locking requirement for caller in function comment.
959 (lookup_dev): Likewise.
960 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
961 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
962 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
963 Add locking.
964
965 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
966
967 PR testsuite/65205
968 PR libgomp/65993
969 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
970 don't expect "0x" prefix for "%p" format specifier, don't expect
971 "(nil)" for NULL pointer.
972 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
973 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
974 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
975 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
976 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
977 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
978 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
979 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
980 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
981 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
982 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
983 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
984 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
985 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
986 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
987 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
988 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
989 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
990 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
991 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
992 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
993 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
994 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
995 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
996 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
997 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
998 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
999 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1000 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
1001 accurately specify what we're looking for.
1002 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1003 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1004 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1005 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1006 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1007
1008 2015-04-30 James Norris <jnorris@codesourcery.com>
1009
1010 PR testsuite/65205
1011 * testsuite/lib/libgomp.exp
1012 (check_effective_target_openacc_host_selected)
1013 (check_effective_target_openacc_host_nonshm_selected): New
1014 procedures.
1015 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
1016 dg-shouldfail.
1017 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1018 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1019 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1020 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1021 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1022 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1023 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1024 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1025 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1026 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1027 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1028 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1029 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1030 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1031 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1032 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1033 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1034 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1035 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1036 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1037 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1038 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1039 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1040 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1041 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1042 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1043 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1044 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1045 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1046 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1047 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1048 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1049 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1050 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1051 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1052 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1053 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1054 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1055 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1056 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1057 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1058 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1059 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1060
1061 2015-04-08 Julian Brown <julian@codesourcery.com>
1062
1063 * libgomp.h (target_mem_desc: Remove mem_map field.
1064 (acc_dispatch_t): Remove open_device_func, close_device_func,
1065 get_device_num_func, set_device_num_func, target_data members.
1066 Change create_thread_data_func argument to device number instead of
1067 generic pointer.
1068 * oacc-async.c (assert.h): Include.
1069 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
1070 (acc_wait_all, acc_wait_all_async): Use current host thread's
1071 active device, not base_dev.
1072 * oacc-cuda.c (acc_get_current_cuda_device)
1073 (acc_get_current_cuda_context, acc_get_cuda_stream)
1074 (acc_set_cuda_stream): Likewise.
1075 * oacc-host.c (host_dispatch): Don't set open_device_func,
1076 close_device_func, get_device_num_func or set_device_num_func.
1077 * oacc-init.c (base_dev, init_key): Remove.
1078 (cached_base_dev): New.
1079 (name_of_acc_device_t): New.
1080 (acc_init_1): Initialise default-numbered device, not zeroth.
1081 (acc_shutdown_1): Close all devices of a given type.
1082 (goacc_destroy_thread): Don't use base_dev.
1083 (lazy_open, lazy_init, lazy_init_and_open): Remove.
1084 (goacc_attach_host_thread_to_device): New.
1085 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
1086 (acc_get_num_devices): Don't use base_dev.
1087 (acc_set_device_type): Reimplement.
1088 (acc_get_device_type): Don't use base_dev.
1089 (acc_get_device_num): Tweak logic.
1090 (acc_set_device_num): Likewise.
1091 (acc_on_device): Use acc_get_device_type.
1092 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
1093 (goacc_lazy_initialize): Reimplement with acc_init and
1094 goacc_attach_host_thread_to_device.
1095 * oacc-int.h (goacc_thread): Add base_dev field.
1096 (base_dev): Remove extern declaration.
1097 (goacc_attach_host_thread_to_device): Add prototype.
1098 * oacc-mem.c (acc_malloc): Use current thread's device instead of
1099 base_dev.
1100 (acc_free): Likewise.
1101 (acc_memcpy_to_device): Likewise.
1102 (acc_memcpy_from_device): Likewise.
1103 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
1104 goacc_lazy_initialize (throughout).
1105 (GOACC_parallel): Use tgt_offset to locate target functions.
1106 * target.c (gomp_map_vars): Don't set tgt->mem_map.
1107 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
1108 (gomp_load_plugin_for_device): Remove open_device, close_device,
1109 get_device_num, set_device_num openacc hook initialisation. Don't set
1110 openacc.target_data.
1111 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
1112 (GOMP_OFFLOAD_openacc_close_device)
1113 (GOMP_OFFLOAD_openacc_get_device_num)
1114 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
1115 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
1116 to int.
1117 * plugin/plugin-nvptx.c (ptx_inited): Remove.
1118 (instantiated_devices, ptx_dev_lock): New.
1119 (struct ptx_image_data): New.
1120 (ptx_devices, ptx_images, ptx_image_lock): New.
1121 (fini_streams_for_device): Reorder cuStreamDestroy call.
1122 (nvptx_get_num_devices): Remove forward declaration.
1123 (nvptx_init): Change return type to bool.
1124 (nvptx_fini): Remove.
1125 (nvptx_attach_host_thread_to_device): New.
1126 (nvptx_open_device): Return struct ptx_device* instead of void*.
1127 (nvptx_close_device): Change argument type to struct ptx_device*,
1128 return type to void.
1129 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
1130 (kernel_target_data, kernel_host_table): Remove static globals.
1131 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
1132 (GOMP_OFFLOAD_init_device): Reimplement.
1133 (GOMP_OFFLOAD_fini_device): Likewise.
1134 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
1135 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
1136 (GOMP_OFFLOAD_host2dev): Use ORD argument.
1137 (GOMP_OFFLOAD_openacc_open_device)
1138 (GOMP_OFFLOAD_openacc_close_device)
1139 (GOMP_OFFLOAD_openacc_set_device_num)
1140 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
1141 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
1142 (device number).
1143
1144 testsuite/
1145 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
1146
1147 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
1148
1149 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
1150 * libgomp.h (struct gomp_memory_mapping): Remove.
1151 (struct target_mem_desc): Change type of mem_map from
1152 gomp_memory_mapping * to splay_tree_s *.
1153 (struct gomp_device_descr): Remove register_image_func, get_table_func.
1154 Add load_image_func, unload_image_func.
1155 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
1156 Remove offload_regions_registered.
1157 (gomp_init_tables): Remove.
1158 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
1159 to splay_tree_s *.
1160 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
1161 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
1162 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
1163 offload_regions_registered.
1164 Initialize load_image_func, unload_image_func, mem_map.root.
1165 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
1166 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
1167 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
1168 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
1169 gomp_memory_mapping *. Use dev's lock and splay_tree.
1170 (lookup_dev): Use dev's lock.
1171 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
1172 (acc_is_present): Likewise.
1173 (acc_map_data): Likewise.
1174 (acc_unmap_data): Likewise. Use dev's lock.
1175 (present_create_copy): Likewise.
1176 (delete_copyout): Pass dev to lookup_host instead of mem_map.
1177 (update_dev_host): Likewise.
1178 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
1179 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
1180 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
1181 (GOMP_OFFLOAD_get_table): Remove
1182 (GOMP_OFFLOAD_load_image): New function.
1183 (GOMP_OFFLOAD_unload_image): New function.
1184 * target.c (register_lock): New mutex for offload image registration.
1185 (num_devices): Do not guard with PLUGIN_SUPPORT.
1186 (gomp_realloc_unlock): New static function.
1187 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
1188 before gomp_fatal.
1189 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
1190 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
1191 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
1192 mem_map's.
1193 (gomp_unmap_vars): Likewise.
1194 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
1195 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
1196 (gomp_offload_image_to_device): New static function.
1197 (GOMP_offload_register): Add mutex lock.
1198 Call gomp_offload_image_to_device for all initialized devices.
1199 Replace gomp_realloc with gomp_realloc_unlock.
1200 (GOMP_offload_unregister): New function.
1201 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
1202 get_table_func from the plugin with calls to init_device_func and
1203 gomp_offload_image_to_device.
1204 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
1205 to splay_tree_s *.
1206 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
1207 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
1208 (GOMP_target_data): Do not call gomp_init_tables.
1209 (GOMP_target_update): Likewise. Remove argument from gomp_update.
1210 (gomp_load_plugin_for_device): Replace register_image and get_table
1211 with load_image and unload_image in DLSYM ().
1212 (gomp_register_images_for_device): Remove function.
1213 (gomp_target_init): Do not initialize current_device.mem_map.*,
1214 current_device.offload_regions_registered.
1215 Remove call to gomp_register_images_for_device.
1216 Do not free offload_images and num_offload_images.
1217
1218 2015-03-30 Jakub Jelinek <jakub@redhat.com>
1219
1220 PR fortran/65597
1221 * testsuite/libgomp.fortran/pr65597.f90: New test.
1222
1223 2015-03-27 Tom de Vries <tom@codesourcery.com>
1224
1225 PR testsuite/65594
1226 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
1227 (init, check): New function.
1228 (foo): Change return type to void.
1229 (main): Call init and check.
1230
1231 2015-03-27 Tom de Vries <tom@codesourcery.com>
1232
1233 PR testsuite/65594
1234 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
1235 (foo): Use M for non-inner loops to scale down test-case.
1236
1237 2015-03-25 Kai Tietz <ktietz@redhat.com>
1238
1239 PR libgomp/64972
1240 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
1241 (GOACC_data_start): Likewise.
1242 * target.c (gomp_map_vars): Likewise.
1243
1244 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
1245
1246 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
1247 hppa*-*-hpux*.
1248
1249 2015-03-19 Jakub Jelinek <jakub@redhat.com>
1250
1251 * testsuite/libgomp.c/target-10.c: New test.
1252 * testsuite/libgomp.c++/target-4.C: New test.
1253
1254 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
1255
1256 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
1257 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
1258
1259 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
1260
1261 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
1262 * configure.ac (*-*-rtems*): Assume Pthread is supported.
1263 (pthread.h): Check for this header file.
1264 * configure: Regenerate.
1265
1266 2015-02-25 Tom de Vries <tom@codesourcery.com>
1267
1268 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
1269 (check_reduction_op, check_reduction_macro, max, min):
1270 Declare.
1271 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
1272 function.
1273 (main): Use new functions.
1274
1275 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
1276
1277 * target.c (gomp_load_plugin_for_device): Use const char * instead of
1278 char * for variables holding dlerror return values.
1279 (DLSYM_OPT): Ditto.
1280
1281 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1282
1283 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
1284
1285 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1286 Cesar Philippidis <cesar@codesourcery.com>
1287
1288 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
1289 GOACC_ctaid, and GOACC_nctaid routines.
1290
1291 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1292
1293 PR c/64824
1294 * testsuite/libgomp.c/atomic-18.c: New test.
1295 * testsuite/libgomp.c++/atomic-16.C: New test.
1296
1297 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1298
1299 PR c/64824
1300 PR c/64868
1301 * testsuite/libgomp.c/pr64824.c: New test.
1302 * testsuite/libgomp.c/pr64868.c: New test.
1303 * testsuite/libgomp.c++/pr64824.C: New test.
1304 * testsuite/libgomp.c++/pr64868.C: New test.
1305
1306 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
1307
1308 PR libgomp/64635
1309 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
1310 Link with -lpthread.
1311 * config/aix/plugin-suffix.h: Delete.
1312
1313 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
1314
1315 PR libgomp/64635
1316 * configure.tgt (*-*-aix*): Use config_path "aix posix".
1317 (*-*-darwin*): Use config_path "bsd darwin posix".
1318 (*-*-hpux*): Use config_path "hpux posix".
1319 * target.c: Add include of plugin-suffix.h and use
1320 SONAME_SUFFIX macro.
1321 * config/aix/plugin-suffix.h: New file.
1322 * config/darwin/plugin-suffix.h: New file.
1323 * config/hpux/plugin-suffix.h: New file.
1324 * config/posix/plugin-suffix.h: New file.
1325
1326 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1327
1328 PR middle-end/64734
1329 * libgomp.c/pr64734.c: New test.
1330
1331 2015-01-23 Tom de Vries <tom@codesourcery.com>
1332
1333 PR libgomp/64672
1334 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
1335
1336 2015-01-23 Tom de Vries <tom@codesourcery.com>
1337
1338 PR libgomp/64707
1339 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
1340 dg-options.
1341
1342 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1343
1344 PR libgomp/64625
1345 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
1346 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
1347 formal parameter. Update all users.
1348 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
1349 Document unused formal parameter.
1350
1351 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
1352
1353 * oacc-parallel.c: Don't include <alloca.h>.
1354 (GOACC_parallel): Use gomp_alloca instead of alloca.
1355
1356 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
1357
1358 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
1359
1360 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1361 James Norris <jnorris@codesourcery.com>
1362 Tom de Vries <tom@codesourcery.com>
1363 Julian Brown <julian@codesourcery.com>
1364 Cesar Philippidis <cesar@codesourcery.com>
1365 Nathan Sidwell <nathan@codesourcery.com>
1366 Tobias Burnus <burnus@net-b.de>
1367
1368 * Makefile.am (search_path): Add $(top_srcdir)/../include.
1369 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
1370 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
1371 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
1372 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
1373 Include $(top_srcdir)/plugin/Makefrag.am.
1374 (nodist_libsubinclude_HEADERS): Add openacc.h.
1375 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
1376 openacc.f90, openacc.mod, openacc_kinds.mod.
1377 (omp_lib.mod): Generalize into...
1378 (%.mod): ... this new rule.
1379 (openacc_kinds.mod, openacc.mod): New rules.
1380 * plugin/configfrag.ac: New file.
1381 * configure.ac: Move plugin/offloading support into it. Include
1382 it. Instantiate testsuite/libgomp-test-support.pt.exp.
1383 * plugin/Makefrag.am: New file.
1384 * testsuite/Makefile.am (OFFLOAD_TARGETS)
1385 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
1386 export.
1387 (libgomp-test-support.exp): New rule.
1388 (all-local): Depend on it.
1389 * Makefile.in: Regenerate.
1390 * testsuite/Makefile.in: Regenerate.
1391 * config.h.in: Likewise.
1392 * configure: Likewise.
1393 * configure.tgt: Harden shell syntax.
1394 * env.c: Include "oacc-int.h".
1395 (parse_acc_device_type): New function.
1396 (gomp_debug_var, goacc_device_type, goacc_device_num): New
1397 variables.
1398 (initialize_env): Initialize those. Call
1399 goacc_runtime_initialize.
1400 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
1401 (gomp_fatal): Call gomp_vfatal.
1402 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
1403 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
1404 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
1405 (splay_tree_node, splay_tree, splay_tree_key)
1406 (struct target_mem_desc, struct splay_tree_key_s)
1407 (struct gomp_memory_mapping, struct acc_dispatch_t)
1408 (struct gomp_device_descr, gomp_acc_insert_pointer)
1409 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
1410 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
1411 (gomp_free_memmap, gomp_fini_device): New declarations.
1412 (gomp_vdebug, gomp_debug): New macros.
1413 Include "splay-tree.h".
1414 * libgomp.map (OACC_2.0): New symbol version. Use for
1415 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
1416 acc_set_device_type_h_, acc_get_device_type,
1417 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
1418 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
1419 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
1420 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
1421 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
1422 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
1423 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
1424 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
1425 acc_copyin_array_h_, acc_present_or_copyin,
1426 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
1427 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
1428 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
1429 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
1430 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
1431 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
1432 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
1433 acc_update_device, acc_update_device_32_h_,
1434 acc_update_device_64_h_, acc_update_device_array_h_,
1435 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
1436 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
1437 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
1438 acc_is_present_64_h_, acc_is_present_array_h_,
1439 acc_memcpy_to_device, acc_memcpy_from_device,
1440 acc_get_current_cuda_device, acc_get_current_cuda_context,
1441 acc_get_cuda_stream, acc_set_cuda_stream.
1442 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
1443 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
1444 GOACC_update, GOACC_wait, GOACC_get_thread_num,
1445 GOACC_get_num_threads.
1446 (GOMP_PLUGIN_1.0): New symbol version. Use for
1447 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
1448 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
1449 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
1450 GOMP_PLUGIN_acc_thread.
1451 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
1452 environment variable.
1453 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
1454 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
1455 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
1456 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
1457 (splay_tree_remove): New declarations.
1458 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
1459 (splay_tree_remove, splay_tree_lookup): Move into...
1460 * splay-tree.c: ... this new file.
1461 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
1462 (splay_tree_node, splay_tree, splay_tree_key)
1463 (struct target_mem_desc, struct splay_tree_key_s)
1464 (struct gomp_device_descr): Don't declare.
1465 (num_devices_openmp): New variable.
1466 (gomp_get_num_devices ): Use it.
1467 (gomp_init_targets_once): New function.
1468 (gomp_get_num_devices ): Use it.
1469 (get_kind, gomp_copy_from_async, gomp_free_memmap)
1470 (gomp_fini_device, gomp_register_image_for_device): New functions.
1471 (gomp_map_vars): Add devaddrs parameter.
1472 (gomp_update): Add mm parameter.
1473 (gomp_init_device): Move most of it into...
1474 (gomp_init_tables): ... this new function.
1475 (gomp_register_images_for_device): Remove function.
1476 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
1477 Make them hidden instead of static.
1478 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
1479 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
1480 (GOMP_target_end_data, GOMP_target_update)
1481 (gomp_load_plugin_for_device, gomp_target_init): Update for
1482 OpenACC changes.
1483 * oacc-async.c: New file.
1484 * oacc-cuda.c: Likewise.
1485 * oacc-host.c: Likewise.
1486 * oacc-init.c: Likewise.
1487 * oacc-int.h: Likewise.
1488 * oacc-mem.c: Likewise.
1489 * oacc-parallel.c: Likewise.
1490 * oacc-plugin.c: Likewise.
1491 * oacc-plugin.h: Likewise.
1492 * oacc-ptx.h: Likewise.
1493 * openacc.f90: Likewise.
1494 * openacc.h: Likewise.
1495 * openacc_lib.h: Likewise.
1496 * plugin/plugin-host.c: Likewise.
1497 * plugin/plugin-nvptx.c: Likewise.
1498 * libgomp-plugin.c: Likewise.
1499 * libgomp-plugin.h: Likewise.
1500 * libgomp_target.h: Remove file after merging content into the
1501 former file. Update all users.
1502 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
1503 (offload_targets_s, offload_targets_s_openacc): New variables.
1504 (check_effective_target_openacc_nvidia_accel_present)
1505 (check_effective_target_openacc_nvidia_accel_selected): New
1506 procedures.
1507 (libgomp_init): Update for OpenACC changes.
1508 * testsuite/libgomp-test-support.exp.in: New file.
1509 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1510 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1511 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1512 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
1513 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
1514 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1515 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
1516 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1517 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
1518 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
1519 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
1520 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1521 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
1522 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1523 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1524 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
1525 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1526 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1527 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1528 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1529 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
1530 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1531 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1532 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1533 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1534 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1535 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1536 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1537 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1538 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1539 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1540 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
1541 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
1542 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
1543 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
1544 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1545 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1546 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1547 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
1548 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1549 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1550 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1551 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1552 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1553 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1554 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
1555 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1556 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1557 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1558 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1559 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1560 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1561 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1562 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1563 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1564 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1565 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1566 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1567 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1568 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
1569 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1570 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
1571 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1572 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1573 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1574 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
1575 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
1576 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1577 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1578 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1579 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
1580 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1581 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1582 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1583 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
1584 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
1585 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1586 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1587 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
1588 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
1589 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
1590 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
1591 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1592 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1593 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1594 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
1595 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
1596 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1597 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1598 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
1599 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1600 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
1601 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
1602 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1603 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1604 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1605 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1606 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
1607 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1608 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1609 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1610 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
1611 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1612 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1613 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1614 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1615 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1616 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1617 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1618 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1619 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1620 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1621 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1622 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1623 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1624 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1625 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1626 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1627 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1628 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1629 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1630 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1631 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
1632 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1633 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1634 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1635 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1636 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
1637 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
1638 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
1639 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
1640 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
1641 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1642 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
1643 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
1644 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1645 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1646 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1647 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1648 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
1649 Likewise.
1650 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
1651 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
1652 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
1653 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
1654 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
1655 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1656 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1657 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1658 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1659 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1660 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1661 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1662 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1663 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1664 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1665 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1666 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1667 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1668 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1669 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1670 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1671 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1672 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1673 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1674 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1675 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1676 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1677 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1678 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1679 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1680 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1681 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1682 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1683 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1684 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
1685 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1686 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
1687 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
1688 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
1689 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1690 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
1691 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1692 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1693 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
1694 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
1695 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1696 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
1697 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
1698 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1699 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1700 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1701 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1702 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1703 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1704 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
1705 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1706 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1707 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
1708 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
1709 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
1710
1711 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
1712 Julian Brown <julian@codesourcery.com>
1713 David Malcolm <dmalcolm@redhat.com>
1714
1715 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
1716 to "GNU Offloading and Multi Processing Runtime Library". Change
1717 all users.
1718 * configure: Regenerate.
1719 * libgomp.texi: Update.
1720
1721 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
1722
1723 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
1724 "$tgt_dir/lib32".
1725 * configure: Regenerate.
1726
1727 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
1728 "intelmic" in $offload_targets.
1729
1730 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1731
1732 Update copyright years.
1733
1734 * libgomp.texi: Bump @copying's copyright year.
1735
1736 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1737
1738 * testsuite/lib/libgomp.exp: Load target-utils.exp.
1739 Move load of target-supportes.exp earlier.
1740
1741 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
1742
1743 * testsuite/libgomp.c/target-9.c: New test.
1744
1745 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
1746
1747 * config.h.in: Regenerate.
1748 * configure: Regenerate.
1749 * configure.ac: Add GCC_CHECK_EMUTLS.
1750 * libgomp.h: Add check for USE_EMUTLS: this case
1751 is equal to HAVE_TLS.
1752 * team.c: Likewise.
1753
1754 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
1755
1756 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
1757
1758 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
1759 Ilya Verbin <ilya.verbin@intel.com>
1760
1761 * testsuite/libgomp.c/target-critical-1.c: New test.
1762
1763 2014-11-26 Jakub Jelinek <jakub@redhat.com>
1764
1765 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
1766 to dg-options unless expensive testing is on.
1767 (TESTITERS): Define to N if not defined.
1768 (main): Use TESTITERS instead of N.
1769 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
1770 dg-additional-options depending on whether expensive testing is on.
1771 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
1772 Decrease N to 100000 and CHUNKSZ to 10000.
1773
1774 2014-11-24 Jakub Jelinek <jakub@redhat.com>
1775
1776 PR fortran/63938
1777 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
1778 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
1779
1780 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
1781
1782 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
1783
1784 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1785
1786 PR bootstrap/63784
1787 * configure: Regenerated.
1788
1789 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
1790
1791 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
1792 vect_simd_clones effective target.
1793 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1794
1795 2014-11-14 Jakub Jelinek <jakub@redhat.com>
1796
1797 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
1798 of 32 as block_size.
1799 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
1800 instead of 32 as block_size.
1801
1802 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1803 Ilya Verbin <ilya.verbin@intel.com>
1804
1805 * Makefile.in: Regenerate.
1806 * configure: Regenerate.
1807 * configure.ac: Set up offload_additional_options,
1808 offload_additional_lib_paths and offload_targets.
1809 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
1810 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
1811 * testsuite/Makefile.in: Regenerate.
1812 * testsuite/lib/libgomp.exp (libgomp_init): Append
1813 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
1814 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
1815 build directory to LD_LIBRARY_PATH for intelmic offload targets.
1816
1817 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1818 Ilya Verbin <ilya.verbin@intel.com>
1819 Kirill Yukhin <kirill.yukhin@intel.com>
1820 Ilya Tocar <ilya.tocar@intel.com>
1821
1822 * testsuite/lib/libgomp.exp
1823 (check_effective_target_offload_device): New.
1824 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
1825 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
1826 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
1827 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
1828 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
1829 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
1830 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
1831 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
1832 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
1833 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
1834 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
1835 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
1836 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
1837 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
1838 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
1839 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
1840 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
1841 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
1842 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
1843 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
1844 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
1845 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
1846 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
1847 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
1848 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
1849 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
1850 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
1851 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
1852 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
1853 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
1854 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
1855 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
1856 * testsuite/libgomp.c/target-7.c: Fix test.
1857 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
1858 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
1859 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
1860 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
1861 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
1862 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
1863 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
1864 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
1865 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
1866 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
1867 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
1868 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
1869 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
1870 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
1871 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
1872 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
1873 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
1874 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
1875 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1876 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
1877 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
1878 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
1879 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
1880 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
1881 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
1882 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
1883 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
1884 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
1885 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
1886 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
1887 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
1888
1889 2014-11-13 Jakub Jelinek <jakub@redhat.com>
1890 Ilya Verbin <ilya.verbin@intel.com>
1891 Thomas Schwinge <thomas@codesourcery.com>
1892 Andrey Turetskiy <andrey.turetskiy@intel.com>
1893
1894 * libgomp.map (GOMP_4.0.1): New symbol version.
1895 Add GOMP_offload_register.
1896 * libgomp_target.h: New file.
1897 * splay-tree.h: New file.
1898 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
1899 (gomp_target_init): New forward declaration.
1900 (gomp_is_initialized): New static variable.
1901 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
1902 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
1903 New structures.
1904 (offload_images, num_offload_images, devices, num_devices): New static
1905 variables.
1906 (splay_compare): New static function.
1907 (struct gomp_device_descr): New structure.
1908 (gomp_get_num_devices): Call gomp_target_init.
1909 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
1910 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
1911 (GOMP_offload_register): New function.
1912 (GOMP_target): Arrange for host callback to be performed in a separate
1913 initial thread and contention group, inheriting ICVs from
1914 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
1915 Add device initialization and lookup for target function in splay tree.
1916 (GOMP_target_data): Add device initialization and call gomp_map_vars.
1917 (GOMP_target_end_data): Call gomp_unmap_vars.
1918 (GOMP_target_update): Add device initialization and call gomp_update.
1919 (gomp_load_plugin_for_device, gomp_register_images_for_device)
1920 (gomp_target_init): New static functions.
1921
1922 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
1923 Thomas Schwinge <thomas@codesourcery.com>
1924 Ilya Verbin <ilya.verbin@intel.com>
1925 Andrey Turetskiy <andrey.turetskiy@intel.com>
1926
1927 * config.h.in: Regenerate.
1928 * configure: Regenerate.
1929 * configure.ac: Check for libdl, required for plugin support.
1930 (PLUGIN_SUPPORT): Define if plugins are supported.
1931 (enable_offload_targets): Support Intel MIC targets.
1932 (OFFLOAD_TARGETS): List of target names suitable for offloading.
1933
1934 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1935
1936 PR target/63610
1937 * configure: Regenerate.
1938
1939 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1940
1941 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1942
1943 2014-10-06 Marek Polacek <polacek@redhat.com>
1944
1945 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1946 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1947 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1948 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1949
1950 2014-10-06 Marek Polacek <polacek@redhat.com>
1951
1952 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1953 * testsuite/libgomp.c/nqueens-1.c: Likewise.
1954 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1955 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1956 * testsuite/libgomp.c/pr36802-2.c: Likewise.
1957 * testsuite/libgomp.c/pr36802-3.c: Likewise.
1958 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1959 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1960 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1961 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1962 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1963 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1964 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1965 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1966 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1967 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1968 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1969 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1970 declarations.
1971
1972 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1973
1974 PR libgomp/61200
1975 * testsuite/libgomp.c/pr61200.c: New test.
1976
1977 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1978
1979 PR c++/63248
1980 * testsuite/libgomp.c++/pr63248.C: New test.
1981
1982 2014-08-04 Jakub Jelinek <jakub@redhat.com>
1983
1984 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1985 is not zero, but taskgroup->children is NULL and there are
1986 any task->children, schedule those instead of waiting.
1987 * testsuite/libgomp.c/depend-6.c: New test.
1988 * testsuite/libgomp.c/depend-7.c: New test.
1989 * testsuite/libgomp.c/depend-8.c: New test.
1990 * testsuite/libgomp.c/depend-9.c: New test.
1991 * testsuite/libgomp.c/depend-10.c: New test.
1992
1993 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1994
1995 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1996 (struct gomp_taskwait): New type.
1997 (struct gomp_task): Add taskwait and parent_depends_on, remove
1998 in_taskwait and taskwait_sem fields.
1999 (gomp_finish_task): Don't destroy taskwait_sem.
2000 * task.c (gomp_init_task): Don't init in_taskwait, instead init
2001 taskwait and parent_depends_on.
2002 (GOMP_task): For if (0) tasks with depend clause that depend on
2003 earlier tasks don't defer them, instead call
2004 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
2005 Initialize redundant_out field, for redundant out entries just
2006 move them at the end of linked list instead of removing them
2007 completely, and set redundant_out flag instead of redundant.
2008 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
2009 that task.
2010 (gomp_task_run_post_handle_dependers): If parent is in
2011 gomp_task_maybe_wait_for_dependencies and newly runnable task
2012 is not parent_depends_on, queue it in parent->children linked
2013 list after all runnable tasks with parent_depends_on set.
2014 Adjust for addition of taskwait indirection.
2015 (gomp_task_run_post_remove_parent): If parent is in
2016 gomp_task_maybe_wait_for_dependencies and task to be removed
2017 is parent_depends_on, decrement n_depend and if needed awake
2018 parent. Adjust for addition of taskwait indirection.
2019 (GOMP_taskwait): Adjust for addition of taskwait indirection.
2020 (gomp_task_maybe_wait_for_dependencies): New function.
2021 * testsuite/libgomp.c/depend-5.c: New test.
2022
2023 2014-07-13 Tobias Burnus <burnus@net-b.de>
2024
2025 * testsuite/libgomp.fortran/pr34020.f90: Make compile
2026 with TS 18508/Fortran 2015.
2027
2028 2014-07-06 Marek Polacek <polacek@redhat.com>
2029
2030 PR c/6940
2031 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
2032
2033 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2034
2035 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
2036 matches regex $lang_source_re, add $lang_include_flags to options.
2037 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
2038 * testsuite/libgomp.c++/c++.exp: Likewise.
2039 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
2040 and lang_include_flags instead of adding -fintrinsic-modules-path= to
2041 ALWAYS_CFLAGS.
2042 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
2043
2044 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
2045
2046 * testsuite/libgomp.fortran/fortran.exp: Explain
2047 gfortran-dg-runtest usage.
2048
2049 2014-06-25 Jakub Jelinek <jakub@redhat.com>
2050
2051 * testsuite/libgomp.fortran/simd5.f90: New test.
2052 * testsuite/libgomp.fortran/simd6.f90: New test.
2053 * testsuite/libgomp.fortran/simd7.f90: New test.
2054
2055 2014-06-24 Jakub Jelinek <jakub@redhat.com>
2056
2057 * testsuite/libgomp.c/for-2.c: Define SC to static for
2058 #pragma omp for simd testing.
2059 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
2060 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
2061 SC macro.
2062 * testsuite/libgomp.c/simd-14.c: New test.
2063 * testsuite/libgomp.c/simd-15.c: New test.
2064 * testsuite/libgomp.c/simd-16.c: New test.
2065 * testsuite/libgomp.c/simd-17.c: New test.
2066 * testsuite/libgomp.c++/for-10.C: Define SC to static for
2067 #pragma omp for simd testing.
2068 * testsuite/libgomp.c++/simd10.C: New test.
2069 * testsuite/libgomp.c++/simd11.C: New test.
2070 * testsuite/libgomp.c++/simd12.C: New test.
2071 * testsuite/libgomp.c++/simd13.C: New test.
2072
2073 * testsuite/libgomp.fortran/aligned1.f03: New test.
2074 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
2075 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
2076 tasks with !$omp parallel !$omp single.
2077 * testsuite/libgomp.fortran/target8.f90: New test.
2078 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
2079 not to use trim in the combiner, instead call elemental function.
2080 (fn): New elemental function.
2081 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
2082 Make elemental.
2083 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
2084 omp_in): Likewise.
2085 * testsuite/libgomp.fortran/udr12.f90: New test.
2086 * testsuite/libgomp.fortran/udr13.f90: New test.
2087 * testsuite/libgomp.fortran/udr14.f90: New test.
2088 * testsuite/libgomp.fortran/udr15.f90: New test.
2089
2090 2014-06-18 Jakub Jelinek <jakub@redhat.com>
2091
2092 * omp_lib.f90.in (openmp_version): Set to 201307.
2093 * omp_lib.h.in (openmp_version): Likewise.
2094 * testsuite/libgomp.c/target-8.c: New test.
2095 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
2096 and inbranch clauses.
2097 * testsuite/libgomp.fortran/depend-3.f90: New test.
2098 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
2099 openmp_version.
2100 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2101 * testsuite/libgomp.fortran/target1.f90: New test.
2102 * testsuite/libgomp.fortran/target2.f90: New test.
2103 * testsuite/libgomp.fortran/target3.f90: New test.
2104 * testsuite/libgomp.fortran/target4.f90: New test.
2105 * testsuite/libgomp.fortran/target5.f90: New test.
2106 * testsuite/libgomp.fortran/target6.f90: New test.
2107 * testsuite/libgomp.fortran/target7.f90: New test.
2108
2109 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2110
2111 PR fortran/60928
2112 * testsuite/libgomp.fortran/allocatable9.f90: New test.
2113 * testsuite/libgomp.fortran/allocatable10.f90: New test.
2114 * testsuite/libgomp.fortran/allocatable11.f90: New test.
2115 * testsuite/libgomp.fortran/allocatable12.f90: New test.
2116 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
2117 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
2118 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
2119 * testsuite/libgomp.fortran/associate1.f90: New test.
2120 * testsuite/libgomp.fortran/associate2.f90: New test.
2121 * testsuite/libgomp.fortran/procptr1.f90: New test.
2122
2123 2014-06-06 Jakub Jelinek <jakub@redhat.com>
2124
2125 * testsuite/libgomp.fortran/simd1.f90: New test.
2126 * testsuite/libgomp.fortran/udr1.f90: New test.
2127 * testsuite/libgomp.fortran/udr2.f90: New test.
2128 * testsuite/libgomp.fortran/udr3.f90: New test.
2129 * testsuite/libgomp.fortran/udr4.f90: New test.
2130 * testsuite/libgomp.fortran/udr5.f90: New test.
2131 * testsuite/libgomp.fortran/udr6.f90: New test.
2132 * testsuite/libgomp.fortran/udr7.f90: New test.
2133 * testsuite/libgomp.fortran/udr8.f90: New test.
2134 * testsuite/libgomp.fortran/udr9.f90: New test.
2135 * testsuite/libgomp.fortran/udr10.f90: New test.
2136 * testsuite/libgomp.fortran/udr11.f90: New test.
2137
2138 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
2139
2140 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
2141 vect_simd_clones effective target.
2142 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
2143
2144 2014-05-21 Jakub Jelinek <jakub@redhat.com>
2145
2146 PR middle-end/61252
2147 * testsuite/libgomp.c++/simd-9.C: New test.
2148
2149 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
2150
2151 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
2152 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
2153 texts according to their @menu entry positions.
2154
2155 2014-05-11 Jakub Jelinek <jakub@redhat.com>
2156
2157 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
2158 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
2159 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
2160 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
2161 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
2162 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
2163 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
2164 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
2165 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
2166 * testsuite/libgomp.fortran/depend-1.f90: New test.
2167 * testsuite/libgomp.fortran/depend-2.f90: New test.
2168 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
2169 * testsuite/libgomp.fortran/simd1.f90: New test.
2170 * testsuite/libgomp.fortran/simd2.f90: New test.
2171 * testsuite/libgomp.fortran/simd3.f90: New test.
2172 * testsuite/libgomp.fortran/simd4.f90: New test.
2173 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
2174
2175 2014-05-02 Jakub Jelinek <jakub@redhat.com>
2176
2177 * testsuite/libgomp.c/simd-10.c: New test.
2178 * testsuite/libgomp.c/simd-11.c: New test.
2179 * testsuite/libgomp.c/simd-12.c: New test.
2180 * testsuite/libgomp.c/simd-13.c: New test.
2181
2182 2014-04-24 Jakub Jelinek <jakub@redhat.com>
2183
2184 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
2185 atomic type clauses in any order and optional comma in between.
2186 * testsuite/libgomp.c++/atomic-15.C: Likewise.
2187 * testsuite/libgomp.c/atomic-17.c: Likewise.
2188
2189 * testsuite/libgomp.c/simd-7.c: New test.
2190 * testsuite/libgomp.c/simd-8.c: New test.
2191 * testsuite/libgomp.c/simd-9.c: New test.
2192 * testsuite/libgomp.c/loop-16.c: New test.
2193
2194 2014-04-02 Richard Henderson <rth@redhat.com>
2195
2196 * config/linux/futex.h (futex_wait): Get error value from errno.
2197 (futex_wake): Likewise.
2198
2199 2014-03-25 Jakub Jelinek <jakub@redhat.com>
2200
2201 PR c++/60331
2202 * testsuite/libgomp.c++/udr-11.C: New test.
2203 * testsuite/libgomp.c++/udr-12.C: New test.
2204 * testsuite/libgomp.c++/udr-13.C: New test.
2205 * testsuite/libgomp.c++/udr-14.C: New test.
2206 * testsuite/libgomp.c++/udr-15.C: New test.
2207 * testsuite/libgomp.c++/udr-16.C: New test.
2208 * testsuite/libgomp.c++/udr-17.C: New test.
2209 * testsuite/libgomp.c++/udr-18.C: New test.
2210 * testsuite/libgomp.c++/udr-19.C: New test.
2211
2212 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2213
2214 Update copyright years
2215
2216 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2217
2218 * hashtab.h: Use the standard form for the copyright notice.
2219
2220 2014-01-02 Tobias Burnus <burnus@net-b.de>
2221
2222 * libgomp.texi: Bump @copying's copyright year.
2223
2224 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
2225
2226 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
2227 alloca () with __builtin_alloca ().
2228 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
2229 * testsuite/libgomp.c/lock-3.c: Likewise.
2230 * testsuite/libgomp.c/pr48591.c: Likewise.
2231
2232 2013-12-17 Jakub Jelinek <jakub@redhat.com>
2233
2234 PR testsuite/59534
2235 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
2236 comparisons.
2237
2238 2013-12-16 Jakub Jelinek <jakub@redhat.com>
2239
2240 PR libgomp/58756
2241 * testsuite/libgomp.c/pr58756.c: New test.
2242
2243 2013-12-12 Jakub Jelinek <jakub@redhat.com>
2244
2245 PR libgomp/59467
2246 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
2247 !$omp parallel.
2248
2249 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
2250
2251 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
2252 ALWAYS_CFLAGS.
2253 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
2254 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
2255 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2256 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
2257 Likewise.
2258
2259 * libgomp_g.h: Include <stddef.h> for size_t.
2260
2261 * libgomp.spec.in: Update comment about libgomp's dependencies.
2262 * configure.ac: Likewise.
2263 * configure: Regenerate.
2264
2265 2013-10-16 Tobias Burnus <burnus@net-b.de>
2266
2267 * libgomp.texi: (Runtime Library Routines): Update references for
2268 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
2269 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
2270 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
2271 (Environment Variables): Update references for OpenMP 4.0. Add
2272 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
2273 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
2274 order.
2275
2276 2013-10-14 Jakub Jelinek <jakub@redhat.com>
2277
2278 * env.c (parse_bind_var): Initialize value to avoid
2279 (false positive) warning.
2280
2281 2013-10-12 Jakub Jelinek <jakub@redhat.com>
2282
2283 PR libgomp/58691
2284 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
2285 to check variable.
2286 (gomp_init_num_threads): Move i variable declaration into
2287 #ifdef CPU_ALLOC_SIZE block.
2288 * config/linux/affinity.c (gomp_affinity_init_level): Test
2289 gomp_places_list_len == 0 rather than gomp_places_list == 0
2290 when checking for topology reading error.
2291 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
2292 * env.c (parse_affinity): Add ignore argument, if true, don't populate
2293 gomp_places_list, only parse env var and always return false.
2294 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
2295 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
2296 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
2297 and either of these variables were parsed correctly into a places
2298 list.
2299
2300 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
2301 Jakub Jelinek <jakub@redhat.com>
2302
2303 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
2304 of 5 loopfn matches.
2305 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2306 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2307 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
2308 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2309 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2310 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2311 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2312 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2313
2314 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
2315
2316 * Makefile.am (omp_lib.mod): Streamline rule.
2317 * Makefile.in: Regenerate.
2318
2319 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
2320 exceptions.
2321
2322 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
2323 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2324 * testsuite/libgomp.fortran/lib2.f: Likewise.
2325 * testsuite/libgomp.fortran/lib3.f: Likewise.
2326
2327 * configure.ac: Typo fix.
2328 * configure: Regenerate.
2329
2330 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
2331 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2332
2333 * omp.h.in: Don't touch the user's namespace.
2334
2335 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2336 Tobias Burnus <burnus@net-b.de>
2337 Richard Henderson <rth@redhat.com>
2338
2339 * target.c: New file.
2340 * Makefile.am (libgomp_la_SOURCES): Add target.c.
2341 * Makefile.in: Regenerated.
2342 * libgomp_g.h (GOMP_task): Add depend argument.
2343 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
2344 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
2345 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
2346 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2347 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2348 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
2349 GOMP_taskgroup_start, GOMP_taskgroup_end,
2350 GOMP_parallel_sections): New prototypes.
2351 * fortran.c (omp_is_initial_device): Add ialias_redirect.
2352 (omp_is_initial_device_): New function.
2353 (ULP, STR1, STR2, ialias_redirect): Removed.
2354 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
2355 omp_set_default_device_8_, omp_get_default_device_,
2356 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
2357 functions.
2358 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
2359 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
2360 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
2361 @@GOMP_4.0.
2362 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
2363 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
2364 omp_set_default_device, omp_set_default_device_,
2365 omp_set_default_device_8_, omp_get_default_device,
2366 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
2367 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
2368 omp_get_team_num_): Export @@OMP_4.0.
2369 * team.c (struct gomp_thread_start_data): Add place field.
2370 (gomp_thread_start): Clear thr->thread_pool and
2371 thr->task before returning. Use gomp_team_barrier_wait_final
2372 instead of gomp_team_barrier_wait. Initialize thr->place.
2373 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
2374 team_cancelled and task_queued_count fields.
2375 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
2376 before calling pthread_exit.
2377 (gomp_free_thread): No longer static. Use
2378 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
2379 (gomp_team_start): Add flags argument. Set
2380 thr->thread_pool->threads_busy to nthreads immediately after creating
2381 new pool. Use gomp_managed_threads_lock instead of
2382 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
2383 (gomp_team_end): Use gomp_managed_threads_lock instead of
2384 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
2385 of gomp_team_barrier_wait. If team->team_cancelled, call
2386 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
2387 rather than thr->ts.work_share.
2388 (initialize_team): Don't call gomp_sem_init here.
2389 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
2390 caller.
2391 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
2392 * env.c (gomp_global_icv): Add default_device_var, target_data and
2393 bind_var initializers.
2394 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
2395 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
2396 gomp_places_list_len): New variables.
2397 (parse_bind_var, parse_one_place, parse_places_var): New functions.
2398 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
2399 sized places.
2400 (gomp_cancel_var): New global variable.
2401 (parse_int): New function.
2402 (handle_omp_display_env): New function.
2403 (initialize_env): Use it. Initialize default_device_var.
2404 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
2405 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
2406 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
2407 been successfully parsed (and call gomp_init_affinity in that case).
2408 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2409 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2410 omp_get_team_num, omp_is_initial_device): New functions.
2411 * libgomp.h: Include stdlib.h.
2412 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
2413 Define.
2414 (struct target_mem_desc): Forward declare.
2415 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
2416 and thread_limit_var fields.
2417 (gomp_get_num_devices): New prototype.
2418 (gomp_cancel_var): New extern decl.
2419 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
2420 team_cancelled and task_queued_count fields. Add comments about
2421 task_{,queued_,running_}count.
2422 (gomp_cancel_kind): New enum.
2423 (gomp_work_share_end_cancel): New prototype.
2424 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
2425 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
2426 and depend fields.
2427 (struct gomp_taskgroup): New type.
2428 (struct gomp_task_depend_entry,
2429 struct gomp_dependers_vec): New types.
2430 (gomp_finish_task): Free depend_hash if non-NULL.
2431 (struct gomp_team_state): Add place_partition_off
2432 and place_partition_len fields.
2433 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
2434 gomp_places_list_len): New extern decls.
2435 (struct gomp_thread): Add place field.
2436 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
2437 (gomp_init_thread_affinity): Add place argument.
2438 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2439 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2440 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2441 gomp_affinity_init_level, gomp_affinity_print_place): New
2442 prototypes.
2443 (gomp_team_start): Add flags argument.
2444 (gomp_thread_limit_var, gomp_remaining_threads_count,
2445 gomp_remaining_threads_lock): Remove.
2446 (gomp_managed_threads_lock): New variable.
2447 (struct gomp_thread_pool): Add threads_busy field.
2448 (gomp_free_thread): New prototype.
2449 * task.c: Include hashtab.h.
2450 (hash_entry_type): New typedef.
2451 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
2452 (gomp_init_task): Clear dependers, depend_hash, depend_count,
2453 copy_ctors_done and taskgroup fields.
2454 (GOMP_task): Add depend argument, handle depend clauses. If
2455 gomp_team_barrier_cancelled or if it's taskgroup has been
2456 cancelled, don't queue or start new tasks. Set copy_ctors_done
2457 field if needed. Initialize taskgroup field. If copy_ctors_done
2458 and already cancelled, don't discard the task. If taskgroup is
2459 non-NULL, enqueue the task into taskgroup queue. Increment
2460 num_children field in taskgroup. Increment task_queued_count.
2461 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
2462 gomp_task_run_post_remove_taskgroup): New inline functions.
2463 (gomp_task_run_post_handle_depend_hash,
2464 gomp_task_run_post_handle_dependers,
2465 gomp_task_run_post_handle_depend): New functions.
2466 (GOMP_taskwait): Use them. If more than one new tasks
2467 have been queued, wake other threads if needed.
2468 (gomp_barrier_handle_tasks): Likewise. If
2469 gomp_team_barrier_cancelled, don't start any new tasks, just free
2470 all tasks.
2471 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
2472 * omp_lib.f90.in
2473 (omp_proc_bind_kind, omp_proc_bind_false,
2474 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2475 omp_proc_bind_spread): New params.
2476 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2477 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2478 omp_get_team_num, omp_is_initial_device): New interfaces.
2479 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
2480 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
2481 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
2482 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
2483 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
2484 useless use omp_lib_kinds.
2485 * omp.h.in (omp_proc_bind_t): New typedef.
2486 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2487 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2488 omp_get_team_num, omp_is_initial_device): New prototypes.
2489 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
2490 through to gomp_team_start.
2491 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
2492 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
2493 Adjust gomp_parallel_loop_start callers.
2494 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2495 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2496 GOMP_loop_end_cancel): New functions.
2497 (GOMP_parallel_end): Add ialias_redirect.
2498 * hashtab.h: New file.
2499 * libgomp.texi (Environment Variables): Minor cleanup,
2500 update section refs to OpenMP 4.0rc2.
2501 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
2502 environment variables.
2503 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
2504 team->work_shares_to_free to thr->ts.work_share before calling
2505 free_work_share.
2506 (gomp_work_share_end_cancel): New function.
2507 * config/linux/proc.c: Include errno.h.
2508 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
2509 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
2510 sizeof (cpu_set_t) to determine number of iterations. Fix up check
2511 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
2512 gomp_cpuset_size is sizeof (cpu_set_t).
2513 (gomp_init_num_threads): Initialize gomp_cpuset_size,
2514 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
2515 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
2516 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
2517 contain any logical CPUs.
2518 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
2519 is NULL. Use gomp_cpusetp instead of &cpuset and pass
2520 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
2521 pthread_getaffinity_np. Check gomp_places_list instead of
2522 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
2523 * config/linux/bar.c (gomp_barrier_wait_end,
2524 gomp_barrier_wait_last): Use BAR_* defines.
2525 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
2526 from state where needed. Set work_share_cancelled to 0 on last
2527 thread.
2528 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
2529 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
2530 functions.
2531 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
2532 Add cpusetsize argument.
2533 (gomp_cpuset_size, gomp_cpusetp): Declare.
2534 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
2535 (affinity_counter): Remove.
2536 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
2537 if CPU_ALLOC_SIZE isn't defined.
2538 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
2539 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
2540 bind current thread to the first place.
2541 (gomp_init_thread_affinity): Rewritten. Add place argument, just
2542 pthread_setaffinity_np to gomp_places_list[place].
2543 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2544 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2545 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2546 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
2547 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2548 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2549 (gomp_barrier_t): Add awaited_final field.
2550 (gomp_barrier_init): Initialize awaited_final field.
2551 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
2552 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
2553 prototypes.
2554 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
2555 defines.
2556 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
2557 gomp_team_barrier_cancelled): New inline functions.
2558 (gomp_barrier_last_thread,
2559 gomp_team_barrier_set_task_pending,
2560 gomp_team_barrier_clear_task_pending,
2561 gomp_team_barrier_set_waiting_for_tasks,
2562 gomp_team_barrier_waiting_for_tasks,
2563 gomp_team_barrier_done): Use BAR_* defines.
2564 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
2565 (gomp_barrier_wait_end): Use BAR_* defines.
2566 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
2567 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
2568 Use BAR_* defines.
2569 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
2570 gomp_team_barrier_cancel): New functions.
2571 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
2572 argument.
2573 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2574 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2575 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2576 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
2577 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2578 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2579 (gomp_barrier_t): Add cancellable field.
2580 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
2581 gomp_team_barrier_cancel): New prototypes.
2582 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
2583 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
2584 gomp_team_barrier_cancelled): New inline functions.
2585 (gomp_barrier_wait_start, gomp_barrier_last_thread,
2586 gomp_team_barrier_set_task_pending,
2587 gomp_team_barrier_clear_task_pending,
2588 gomp_team_barrier_set_waiting_for_tasks,
2589 gomp_team_barrier_waiting_for_tasks,
2590 gomp_team_barrier_done): Use BAR_* defines.
2591 * barrier.c (GOMP_barrier_cancel): New function.
2592 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
2593 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2594 omp_proc_bind_spread): New params.
2595 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2596 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2597 omp_get_team_num, omp_is_initial_device): New externals.
2598 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
2599 New functions.
2600 (gomp_resolve_num_threads): Adjust for thread_limit now being in
2601 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2602 infinity. If not nested, just return minimum of max_num_threads
2603 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
2604 to the returned value. Otherwise, don't update atomically
2605 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
2606 (GOMP_parallel_end): Adjust for thread_limit now being in
2607 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2608 infinity. Adjust threads_busy in the pool rather than
2609 gomp_remaining_threads_count. Remember team->nthreads and call
2610 gomp_team_end before adjusting threads_busy, if not nested
2611 afterwards, just set it to 1 non-atomically. Add ialias.
2612 (GOMP_parallel_start): Adjust gomp_team_start caller.
2613 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
2614 * testsuite/libgomp.c/affinity-1.c: New test.
2615 * testsuite/libgomp.c/atomic-15.c: New test.
2616 * testsuite/libgomp.c/atomic-16.c: New test.
2617 * testsuite/libgomp.c/atomic-17.c: New test.
2618 * testsuite/libgomp.c/cancel-for-1.c: New test.
2619 * testsuite/libgomp.c/cancel-for-2.c: New test.
2620 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
2621 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
2622 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
2623 * testsuite/libgomp.c/cancel-sections-1.c: New test.
2624 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
2625 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
2626 * testsuite/libgomp.c/depend-1.c: New test.
2627 * testsuite/libgomp.c/depend-2.c: New test.
2628 * testsuite/libgomp.c/depend-3.c: New test.
2629 * testsuite/libgomp.c/depend-4.c: New test.
2630 * testsuite/libgomp.c/for-1.c: New test.
2631 * testsuite/libgomp.c/for-1.h: New file.
2632 * testsuite/libgomp.c/for-2.c: New test.
2633 * testsuite/libgomp.c/for-2.h: New file.
2634 * testsuite/libgomp.c/for-3.c: New test.
2635 * testsuite/libgomp.c/pr58392.c: New test.
2636 * testsuite/libgomp.c/simd-1.c: New test.
2637 * testsuite/libgomp.c/simd-2.c: New test.
2638 * testsuite/libgomp.c/simd-3.c: New test.
2639 * testsuite/libgomp.c/simd-4.c: New test.
2640 * testsuite/libgomp.c/simd-5.c: New test.
2641 * testsuite/libgomp.c/simd-6.c: New test.
2642 * testsuite/libgomp.c/target-1.c: New test.
2643 * testsuite/libgomp.c/target-2.c: New test.
2644 * testsuite/libgomp.c/target-3.c: New test.
2645 * testsuite/libgomp.c/target-4.c: New test.
2646 * testsuite/libgomp.c/target-5.c: New test.
2647 * testsuite/libgomp.c/target-6.c: New test.
2648 * testsuite/libgomp.c/target-7.c: New test.
2649 * testsuite/libgomp.c/taskgroup-1.c: New test.
2650 * testsuite/libgomp.c/thread-limit-1.c: New test.
2651 * testsuite/libgomp.c/thread-limit-2.c: New test.
2652 * testsuite/libgomp.c/thread-limit-3.c: New test.
2653 * testsuite/libgomp.c/udr-1.c: New test.
2654 * testsuite/libgomp.c/udr-2.c: New test.
2655 * testsuite/libgomp.c/udr-3.c: New test.
2656 * testsuite/libgomp.c++/affinity-1.C: New test.
2657 * testsuite/libgomp.c++/atomic-10.C: New test.
2658 * testsuite/libgomp.c++/atomic-11.C: New test.
2659 * testsuite/libgomp.c++/atomic-12.C: New test.
2660 * testsuite/libgomp.c++/atomic-13.C: New test.
2661 * testsuite/libgomp.c++/atomic-14.C: New test.
2662 * testsuite/libgomp.c++/atomic-15.C: New test.
2663 * testsuite/libgomp.c++/cancel-for-1.C: New test.
2664 * testsuite/libgomp.c++/cancel-for-2.C: New test.
2665 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
2666 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
2667 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
2668 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
2669 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
2670 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
2671 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
2672 * testsuite/libgomp.c++/cancel-test.h: New file.
2673 * testsuite/libgomp.c++/for-9.C: New test.
2674 * testsuite/libgomp.c++/for-10.C: New test.
2675 * testsuite/libgomp.c++/for-11.C: New test.
2676 * testsuite/libgomp.c++/simd-1.C: New test.
2677 * testsuite/libgomp.c++/simd-2.C: New test.
2678 * testsuite/libgomp.c++/simd-3.C: New test.
2679 * testsuite/libgomp.c++/simd-4.C: New test.
2680 * testsuite/libgomp.c++/simd-5.C: New test.
2681 * testsuite/libgomp.c++/simd-6.C: New test.
2682 * testsuite/libgomp.c++/simd-7.C: New test.
2683 * testsuite/libgomp.c++/simd-8.C: New test.
2684 * testsuite/libgomp.c++/target-1.C: New test.
2685 * testsuite/libgomp.c++/target-2.C: New test.
2686 * testsuite/libgomp.c++/target-2-aux.cc: New file.
2687 * testsuite/libgomp.c++/target-3.C: New test.
2688 * testsuite/libgomp.c++/taskgroup-1.C: New test.
2689 * testsuite/libgomp.c++/udr-1.C: New test.
2690 * testsuite/libgomp.c++/udr-2.C: New test.
2691 * testsuite/libgomp.c++/udr-3.C: New test.
2692 * testsuite/libgomp.c++/udr-4.C: New test.
2693 * testsuite/libgomp.c++/udr-5.C: New test.
2694 * testsuite/libgomp.c++/udr-6.C: New test.
2695 * testsuite/libgomp.c++/udr-7.C: New test.
2696 * testsuite/libgomp.c++/udr-8.C: New test.
2697 * testsuite/libgomp.c++/udr-9.C: New test.
2698
2699 2013-09-20 Jakub Jelinek <jakub@redhat.com>
2700
2701 PR testsuite/57605
2702 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
2703 ALWAYS_CFLAGS.
2704
2705 2013-09-20 Alan Modra <amodra@gmail.com>
2706
2707 * configure: Regenerate.
2708
2709 2013-09-19 Jakub Jelinek <jakub@redhat.com>
2710
2711 * testsuite/libgomp.c/sections-2.c: New test.
2712
2713 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
2714
2715 * testsuite/libgomp.fortran/strassen.f90:
2716 Add dg-skip-if aarch64_tiny.
2717
2718 2013-06-20 Iain Sandoe <iain@codesourcery.com>
2719 Cesar Philippidis <cesar@codesourcery.com>
2720
2721 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
2722 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
2723 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
2724 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2725 * testsuite/libgomp.graphite/graphite.exp: Likewise.
2726 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
2727 Use dg-runtest rather than gfortran-dg-runtest.
2728
2729 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
2730
2731 * testsuite/libgomp.c/icv-2.c: Extend current handling of
2732 Linux-based x86 systems to cover all GNU systems.
2733 * testsuite/libgomp.c/lock-3.c: Likewise.
2734 * testsuite/libgomp.c/pr48591.c: Likewise.
2735
2736 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
2737
2738 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
2739 GNU/Hurd, as done for Linux-based systems.
2740
2741 * config/posix/ptrlock.h: Fix comment.
2742
2743 2013-05-27 Tobias Burnus <burnus@net-b.de>
2744
2745 PR fortran/57423
2746 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
2747 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
2748 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
2749 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
2750 omp_destroy_nest_lock): Correct arguments to match the one in
2751 the OpenMP spec.
2752 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
2753 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
2754 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
2755 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
2756
2757 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2758
2759 * testsuite/libgomp.c/loop-13.c: New test.
2760 * testsuite/libgomp.c/loop-14.c: New test.
2761 * testsuite/libgomp.c/loop-15.c: New test.
2762 * testsuite/libgomp.c++/loop-13.C: New test.
2763 * testsuite/libgomp.c++/loop-14.C: New test.
2764 * testsuite/libgomp.c++/loop-15.C: New test.
2765
2766 2013-02-06 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR middle-end/56217
2769 * testsuite/libgomp.c++/pr56217.C: New test.
2770
2771 2013-02-01 Alan Modra <amodra@gmail.com>
2772
2773 * task.c (GOMP_task, GOMP_taskwait): Comment.
2774
2775 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
2776 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
2777
2778 PR libgomp/55561
2779 * config/linux/wait.h (do_spin): Use atomic load for addr.
2780 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
2781 for intptr and ptrlock.
2782 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
2783 for ptrlock.
2784
2785 2013-01-22 Alan Modra <amodra@gmail.com>
2786
2787 PR libgomp/51376
2788 PR libgomp/56073
2789 * task.c (GOMP_task): Revert 2011-12-09 change.
2790 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
2791 barrier to read task->children..
2792 (gomp_barrier_handle_tasks): ..and matching atomic store with
2793 release barrier here when setting parent->children to NULL.
2794
2795 2013-01-16 Jakub Jelinek <jakub@redhat.com>
2796 Tobias Burnus <burnus@net-b.de>
2797
2798 PR driver/55884
2799 * testsuite/libgomp.fortran/fortran.exp: Use
2800 -fintrinsic-modules-path= instead of
2801 -fintrinsic-modules-path.
2802
2803 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
2804
2805 Update copyright years.
2806
2807 2012-12-19 Tobias Burnus <burnus@net-b.de>
2808
2809 * testsuite/libgomp.fortran/fortran.exp: Set
2810 -fintrinsic-modules-path.
2811
2812 2012-12-19 Tobias Burnus <burnus@net-b.de>
2813
2814 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
2815 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
2816
2817 2012-11-21 Jakub Jelinek <jakub@redhat.com>
2818
2819 PR libgomp/55411
2820 * team.c (gomp_free_thread): Decrease gomp_managed_threads
2821 if pool had any threads_used.
2822
2823 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
2824
2825 * testsuite/libgomp.c++/pr24455.C: Use
2826 -Wl,-undefined,dynamic_lookup on darwin.
2827
2828 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
2829
2830 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
2831
2832 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
2833
2834 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
2835
2836 2012-10-23 Ian Bolton <ian.bolton@arm.com>
2837 Jim MacArthur <jim.macarthur@arm.com>
2838 Marcus Shawcroft <marcus.shawcroft@arm.com>
2839 Nigel Stephens <nigel.stephens@arm.com>
2840 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2841 Richard Earnshaw <rearnsha@arm.com>
2842 Sofiane Naci <sofiane.naci@arm.com>
2843 Stephen Thomas <stephen.thomas@arm.com>
2844 Tejas Belagod <tejas.belagod@arm.com>
2845 Yufeng Zhang <yufeng.zhang@arm.com>
2846
2847 * configure.tgt: Add AArch64.
2848
2849 2012-10-04 Jason Merrill <jason@redhat.com>
2850
2851 * testsuite/libgomp.c++/tls-init1.C: New.
2852
2853 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
2854
2855 * configure: Regenerated.
2856
2857 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
2858
2859 * config/linux/mips/futex.h (sys_futex0): Change to static
2860 function with noinline, nomips16 attributes under MIPS16. Adjust
2861 asm statement to place 'li v0,SYS_futex' immediately before
2862 syscall insn.
2863
2864 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
2865
2866 * libgomp.texi (Library Index): Renamed from "Index" to prevent
2867 conflict with index.html on case-insensitive file systems.
2868
2869 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2870
2871 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
2872 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
2873
2874 2012-07-02 Richard Guenther <rguenther@suse.de>
2875 Michael Matz <matz@suse.de>
2876 Tobias Grosser <tobias@grosser.es>
2877 Sebastian Pop <sebpop@gmail.com>
2878
2879 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2880 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2881 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2882 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2883
2884 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2885
2886 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
2887
2888 2012-06-22 Richard Guenther <rguenther@suse.de>
2889
2890 Merge from graphite branch
2891 2012-01-13 Tobias Grosser <tobias@grosser.es>
2892
2893 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2894 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2895
2896 2012-06-07 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR middle-end/53580
2899 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
2900 use GOMP_barrier () call instead.
2901 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2902 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2903 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
2904 call GOMP_barrier instead.
2905 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2906
2907 2012-06-06 Jakub Jelinek <jakub@redhat.com>
2908
2909 PR libgomp/52993
2910 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
2911 argument to memset call.
2912
2913 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2914
2915 * configure: Regenerated.
2916
2917 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2918
2919 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
2920
2921 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2922
2923 PR bootstrap/52812
2924 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2925
2926 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2927
2928 PR middle-end/52547
2929 * testsuite/libgomp.c/pr52547.c: New test.
2930
2931 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2932
2933 * testsuite/lib/libgomp.exp: load fortran-modules.exp
2934
2935 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2936
2937 * configure.tgt (mips-sgi-irix6*): Remove.
2938
2939 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2940
2941 * configure.tgt (alpha*-dec-osf*): Remove.
2942
2943 * config/osf/sem.h: Remove.
2944 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2945
2946 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
2947
2948 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2949
2950 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2951
2952 PR libstdc++/52188
2953 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2954 Remove ENABLE_SYMVERS_SOL2.
2955 * configure: Regenerate.
2956 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2957 (PREPROCESS): New variable.
2958 (libgomp.ver): New target.
2959 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2960 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2961 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2962 Use libgomp.ver.
2963 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2964 * Makefile.in: Regenerate.
2965
2966 2012-02-14 Walter Lee <walt@tilera.com>
2967
2968 * configure.tgt: Handle tilegx and tilepro.
2969 * config/linux/tile/futex.h: New file.
2970
2971 2012-02-08 Richard Guenther <rguenther@suse.de>
2972
2973 PR tree-optimization/46886
2974 * testsuite/libgomp.c/pr46886.c: New testcase.
2975
2976 2012-01-25 Matthias Klose <doko@ubuntu.com>
2977
2978 * config/linux/arm: Remove empty directory.
2979 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2980
2981 2011-12-09 Alan Modra <amodra@gmail.com>
2982
2983 PR libgomp/51376
2984 * task.c (GOMP_taskwait): Don't access task->children outside of
2985 task_lock mutex region.
2986 (GOMP_task): Likewise.
2987
2988 2011-12-06 Jakub Jelinek <jakub@redhat.com>
2989
2990 PR libgomp/51132
2991 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2992 to file scope.
2993 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2994 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2995 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2996 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2997 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2998
2999 2011-12-02 Alan Modra <amodra@gmail.com>
3000
3001 * config/linux/affinity.c: Use atomic rather than sync builtin.
3002 * config/linux/lock.c: Likewise.
3003 * config/linux/ptrlock.h: Likewise.
3004 * config/linux/ptrlock.c: Likewise.
3005 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
3006 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
3007 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
3008 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
3009 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
3010 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
3011 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
3012 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
3013 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
3014 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
3015
3016 2011-11-30 Alan Modra <amodra@gmail.com>
3017
3018 PR libgomp/51298
3019 * config/linux/bar.h: Use atomic rather than sync builtins.
3020 * config/linux/bar.c: Likewise. Add missing acquire
3021 synchronisation on generation field.
3022 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
3023 double unlock.
3024
3025 2011-11-30 Alan Modra <amodra@gmail.com>
3026
3027 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
3028 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
3029 * config/linux/mutex.h: Use atomic rather than sync builtins.
3030 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
3031 * config/linux/omp-lock.h: Comment fix.
3032 * config/linux/arm/mutex.h: Delete.
3033 * config/linux/powerpc/mutex.h: Delete.
3034 * config/linux/ia64/mutex.h: Delete.
3035 * config/linux/mips/mutex.h: Delete.
3036
3037 2011-11-30 Alan Modra <amodra@gmail.com>
3038
3039 PR libgomp/51249
3040 * config/linux/sem.h: Rewrite.
3041 * config/linux/sem.c: Rewrite.
3042
3043 2011-11-28 Richard Henderson <rth@redhat.com>
3044
3045 * libgomp.h (enum memmodel): New.
3046
3047 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
3048
3049 * configure: Regenerate.
3050
3051 2011-10-10 Matthias Klose <doko@ubuntu.com>
3052
3053 * config/posix95: Remove empty directory.
3054
3055 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3056
3057 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
3058
3059 2011-08-19 Jakub Jelinek <jakub@redhat.com>
3060
3061 PR fortran/49792
3062 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
3063 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
3064
3065 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3066
3067 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
3068
3069 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3070
3071 PR libgomp/49965
3072 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
3073
3074 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
3075
3076 * config/linux/proc.h: New.
3077 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
3078 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
3079 (gomp_init_num_threads): Update call to cpuset_popcount.
3080 (get_num_procs): Ditto.
3081 * config/linux/affinity.c (gomp_init_affinity): Call
3082 gomp_cpuset_popcount.
3083
3084 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3085
3086 PR fortran/42041
3087 PR fortran/46752
3088 * omp.h.in (omp_in_final): New prototype.
3089 * omp_lib.f90.in (omp_in_final): New interface.
3090 (omp_integer_kind, omp_logical_kind): Remove
3091 and replace all its uses in the module with 4.
3092 (openmp_version): Change to 201107.
3093 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
3094 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
3095 kind for the parameters.
3096 (omp_in_final): New external.
3097 (openmp_version): Change to 201107.
3098 * task.c (omp_in_final): New function.
3099 (gomp_init_task): Initialize final_task.
3100 (GOMP_task): Remove unused attribute from flags. Handle final
3101 tasks.
3102 (GOMP_taskyield): New function.
3103 (omp_in_final): Return true if if (false) or final (true) task
3104 or descendant of final (true).
3105 * fortran.c (omp_in_final_): New function.
3106 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
3107 (GOMP_3.0): Export GOMP_taskyield.
3108 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
3109 variables.
3110 (parse_unsigned_long_list): New function.
3111 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
3112 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
3113 even if parse_affinity returned false.
3114 * config/linux/affinity.c (gomp_init_affinity): Handle
3115 gomp_cpu_affinity_len == 0.
3116 * libgomp_g.h (GOMP_taskyield): New prototype.
3117 * libgomp.h (struct gomp_task): Add final_task field.
3118 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
3119 * team.c (gomp_team_start): Override new task's nthreads_var icv
3120 if list form OMP_NUM_THREADS has been used and it has value for
3121 the new nesting level.
3122
3123 * testsuite/libgomp.c/atomic-11.c: New test.
3124 * testsuite/libgomp.c/atomic-12.c: New test.
3125 * testsuite/libgomp.c/atomic-13.c: New test.
3126 * testsuite/libgomp.c/atomic-14.c: New test.
3127 * testsuite/libgomp.c/reduction-6.c: New test.
3128 * testsuite/libgomp.c/task-5.c: New test.
3129 * testsuite/libgomp.c++/atomic-2.C: New test.
3130 * testsuite/libgomp.c++/atomic-3.C: New test.
3131 * testsuite/libgomp.c++/atomic-4.C: New test.
3132 * testsuite/libgomp.c++/atomic-5.C: New test.
3133 * testsuite/libgomp.c++/atomic-6.C: New test.
3134 * testsuite/libgomp.c++/atomic-7.C: New test.
3135 * testsuite/libgomp.c++/atomic-8.C: New test.
3136 * testsuite/libgomp.c++/atomic-9.C: New test.
3137 * testsuite/libgomp.c++/task-8.C: New test.
3138 * testsuite/libgomp.c++/reduction-4.C: New test.
3139 * testsuite/libgomp.fortran/allocatable7.f90: New test.
3140 * testsuite/libgomp.fortran/allocatable8.f90: New test.
3141 * testsuite/libgomp.fortran/crayptr3.f90: New test.
3142 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
3143 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
3144 * testsuite/libgomp.fortran/pointer1.f90: New test.
3145 * testsuite/libgomp.fortran/pointer2.f90: New test.
3146 * testsuite/libgomp.fortran/task4.f90: New test.
3147
3148 2011-08-02 Tobias Burnus <burnus@net-b.de>
3149
3150 * libgomp.texi: Update OpenMP spec references to 3.1.
3151 (omp_in_final,OMP_PROC_BIND): New sections.
3152 (OMP_NUM_THREADS): Document that the value can be now a list.
3153 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
3154
3155 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
3156
3157 * config/linux/x86/futex.h: Check __x86_64__ instead of
3158 __LP64__.
3159
3160 2011-07-29 Jakub Jelinek <jakub@redhat.com>
3161
3162 PR middle-end/49897
3163 PR middle-end/49898
3164 * testsuite/libgomp.c/pr49897-1.c: New test.
3165 * testsuite/libgomp.c/pr49897-2.c: New test.
3166 * testsuite/libgomp.c/pr49898-1.c: New test.
3167 * testsuite/libgomp.c/pr49898-2.c: New test.
3168
3169 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
3170
3171 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
3172 for ia32 instead of ilp32.
3173
3174 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
3175 * testsuite/libgomp.c/atomic-6.c: Likewise.
3176
3177 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
3178
3179 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
3180 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
3181
3182 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3183
3184 PR libgomp/45351
3185 * config/osf/sem.h: New file.
3186 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
3187
3188 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3189
3190 PR target/49541
3191 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
3192 ldflags.
3193
3194 2011-07-15 Jakub Jelinek <jakub@redhat.com>
3195
3196 * config/linux/wait.h (do_spin): New inline, largely copied
3197 from do_wait, just don't do futex_wait here, instead return true if
3198 it should be done.
3199 (do_wait): Implement using do_spin.
3200 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
3201 to prototype.
3202 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
3203 __sync_bool_compare_and_swap, pass the oldval to
3204 gomp_mutex_lock_slow.
3205 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
3206 If all mutex contenders are just spinning and not sleeping, don't
3207 change state to 2 unnecessarily. Optimize the loop when state has
3208 already become 2 to use just one atomic operation per loop instead
3209 of two.
3210 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
3211 to prototype.
3212 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
3213 __sync_bool_compare_and_swap, pass the oldval to
3214 gomp_mutex_lock_slow.
3215
3216 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3217
3218 PR libgomp/49490
3219 * iter.c (gomp_iter_static_next): For chunk size 0
3220 only use n ceil/ nthreads size for the first
3221 n % nthreads threads in the team instead of
3222 all threads except for the last few ones which
3223 get less work or none at all.
3224 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
3225 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
3226 chunk argument, set run_sched_modifier to 0 for static
3227 resp. 1 for other kinds. If chunk argument is 0
3228 and not static, set value to 1.
3229
3230 2011-05-19 Jakub Jelinek <jakub@redhat.com>
3231
3232 PR c++/49043
3233 * testsuite/libgomp.c++/pr49043.C: New test.
3234
3235 PR c++/48869
3236 * testsuite/libgomp.c++/pr48869.C: New test.
3237
3238 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3239
3240 PR fortran/48894
3241 * fortran.c: Include limits.h.
3242 (TO_INT): Define.
3243 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
3244 *set.
3245 (omp_set_num_threads_8_, omp_set_schedule_8_,
3246 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
3247 omp_get_team_size_8_): Use TO_INT macro.
3248 * testsuite/libgomp.fortran/pr48894.f90: New test.
3249
3250 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3251
3252 PR middle-end/48591
3253 * testsuite/libgomp.c/pr48591.c: New test.
3254
3255 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3256
3257 PR bootstrap/48135
3258 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
3259 * configure: Regenerate.
3260
3261 2011-02-27 Jakub Jelinek <jakub@redhat.com>
3262
3263 PR fortran/47886
3264 * testsuite/libgomp.fortran/task3.f90: New test.
3265
3266 2011-02-24 Tobias Burnus <burnus@net-b.de>
3267
3268 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
3269
3270 2011-02-23 Jakub Jelinek <jakub@redhat.com>
3271
3272 PR libgomp/47854
3273 * libgomp.texi (omp_get_wtime): Don't say time in the past
3274 must be Unix Epoch.
3275
3276 2011-02-18 Jakub Jelinek <jakub@redhat.com>
3277
3278 PR libgomp/47804
3279 * testsuite/libgomp.fortran/fortran.exp: Check for both
3280 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
3281 but $blddir != "", still append ${blddir}/${lang_library_path}
3282 to ld_library_path.
3283
3284 2011-02-16 Tobias Burnus <burnus@net-b.de>
3285
3286 PR libgomp/47758
3287 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
3288 of libquadmath.a before adding its libpath to ldflags.
3289
3290 2011-02-14 Jakub Jelinek <jakub@redhat.com>
3291
3292 PR libgomp/47731
3293 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
3294 to FUTEX_WAIT futex syscall.
3295 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
3296
3297 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3298
3299 * configure: Regenerate.
3300
3301 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
3302
3303 PR libstdc++/36104
3304 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
3305
3306 2011-01-16 Gerald Pfeifer
3307
3308 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
3309
3310 2010-12-14 Jakub Jelinek <jakub@redhat.com>
3311
3312 PR fortran/46874
3313 * libgomp.fortran/allocatable6.f90: New test.
3314
3315 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3316
3317 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
3318 * configure: Regenerate.
3319
3320 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
3321
3322 PR target/40125
3323 PR lto/46695
3324 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
3325 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
3326 * aclocal.m4: Regenerate.
3327 * configure: Regenerate.
3328 * Makefile.in: Regenerate.
3329 * testsuite/Makefile.in: Regenerate.
3330
3331 2010-12-02 Jakub Jelinek <jakub@redhat.com>
3332
3333 PR fortran/46753
3334 * libgomp.fortran/pr46753.f90: New test.
3335
3336 PR libgomp/43706
3337 * env.c (initialize_env): Default to spin count 300000
3338 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
3339 is specified.
3340
3341 PR libgomp/45240
3342 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
3343 at the end if sync builtins aren't supported.
3344
3345 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3346
3347 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
3348
3349 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3350
3351 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
3352
3353 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
3354
3355 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
3356
3357 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3358 Tobias Burnus <burnus@net-b.de>
3359
3360 PR fortran/32049
3361 * configure.ac:
3362 * configure: Regenerate.
3363
3364 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
3365
3366 * config/linux/futex.h: New.
3367 * config/linux/arm/mutex.h: New.
3368 * configure.tgt (arm*-*-linux*): Add config path.
3369
3370 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3371
3372 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3373
3374 2010-09-23 Tobias Burnus <burnus@net-b.de>
3375
3376 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
3377 Change Fortran datatype to LOGICAL.
3378 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
3379 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
3380
3381 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3382
3383 * configure: Regenerate.
3384
3385 2010-07-26 Jakub Jelinek <jakub@redhat.com>
3386
3387 * libgomp.texi: Add function keyword to a couple of Fortran
3388 interfaces, use integer instead of int for Fortran.
3389
3390 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
3391
3392 * libgomp.texi: Fix spelling and pasto problems throughout.
3393 Adjust prototypes to match code.
3394
3395 2010-07-24 Tobias Burnus <burnus@net-b.de>
3396
3397 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
3398 silence -fwhole-file warning.
3399
3400 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3401
3402 * configure.tgt (*-*-solaris2.[56]*): Removed.
3403
3404 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3405
3406 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
3407 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
3408 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
3409 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
3410 targetting solaris2*.
3411 * configure: Regenerate.
3412 * config.h.in: Regenerate.
3413
3414 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
3415 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
3416 Add libgomp_version_dep.
3417 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
3418 versioning.
3419 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
3420 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
3421 * Makefile.in: Regenerate.
3422
3423 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
3424 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
3425 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
3426 to common block, protected by
3427 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
3428
3429 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
3430
3431 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
3432
3433 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
3434
3435 PR bootstrap/43170
3436 * configure: Regenerate.
3437
3438 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3439
3440 PR other/43620
3441 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
3442 * configure: Regenerate.
3443 * Makefile.in: Regenerate.
3444 * testsuite/Makefile.in: Regenerate.
3445
3446 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3447
3448 PR c/43893
3449 * testsuite/libgomp.c/pr43893.c: New test.
3450 * testsuite/libgomp.c++/pr43893.C: New test.
3451
3452 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3453
3454 PR middle-end/43570
3455 * testsuite/libgomp.fortran/vla8.f90: New test.
3456
3457 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3458
3459 PR libgomp/43706
3460 * config/linux/affinity.c (gomp_init_affinity): Decrease
3461 gomp_available_cpus if affinity mask confines the process to fewer
3462 CPUs.
3463 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
3464 non-NULL, just return gomp_available_cpus.
3465
3466 PR libgomp/43569
3467 * sections.c (gomp_sections_init): Initialize ws->mode.
3468
3469 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3470
3471 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
3472 not unused bar variable.
3473 * configure: Regenerate.
3474
3475 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3476
3477 * Makefile.in: Regenerate.
3478 * aclocal.m4: Regenerate.
3479 * testsuite/Makefile.in: Regenerate.
3480
3481 2010-03-22 Jakub Jelinek <jakub@redhat.com>
3482
3483 PR libgomp/42942
3484 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
3485 (initialize_env): Adjust callers.
3486 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
3487 when the argument is 0.
3488
3489 * testsuite/libgomp.c/pr42942.c: New test.
3490
3491 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
3492
3493 PR middle-end/42644
3494 PR middle-end/42130
3495 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3496 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
3497
3498 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3499
3500 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
3501 * testsuite/libgomp.c++/task-6.C: Likewise.
3502
3503 2010-01-28 Steve Ellcey <sje@cup.hp.com>
3504
3505 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
3506
3507 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
3508
3509 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
3510 * configure: Regenerate.
3511
3512 2010-01-26 Jakub Jelinek <jakub@redhat.com>
3513
3514 PR fortran/42866
3515 * testsuite/libgomp.fortran/allocatable5.f90: New test.
3516
3517 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
3518
3519 * configure.ac: Test for executability of GFORTRAN.
3520 * configure: Regenerate.
3521
3522 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3523
3524 * configure: Regenerate.
3525
3526 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
3527
3528 PR libgomp/42602
3529 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
3530
3531 2010-01-03 Richard Guenther <rguenther@suse.de>
3532
3533 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
3534
3535 2009-12-23 Sebastian Pop <sebpop@gmail.com>
3536
3537 * testsuite/libgomp.graphite/pr4118.c: New.
3538
3539 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3540
3541 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
3542 for darwin, protect the test with require-effective-target tls_runtime.
3543 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
3544
3545 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3546
3547 PR target/41605
3548 * testsuite/lib/libgomp.exp: Provide -B options to allow for
3549 link spec %s substitutions for static libraries.
3550
3551 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
3552
3553 PR testsuite/42135
3554 * libgomp.graphite/force-parallel-2.c: Reduce array size.
3555
3556 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3557
3558 * Makefile.in: Regenerate.
3559 * configure: Regenerate.
3560 * testsuite/Makefile.in: Regenerate.
3561
3562 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
3563
3564 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
3565 settings for LC_ALL and LANG.
3566
3567 2009-11-25 Jakub Jelinek <jakub@redhat.com>
3568
3569 PR fortran/42162
3570 * testsuite/libgomp.fortran/pr42162.f90: New test.
3571
3572 2009-11-13 Jakub Jelinek <jakub@redhat.com>
3573
3574 PR middle-end/42029
3575 * testsuite/libgomp.c/pr42029.c: New test.
3576
3577 2009-10-26 Jakub Jelinek <jakub@redhat.com>
3578
3579 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
3580 *s. Accept ld version without text in ()s.
3581 * configure: Regenerated.
3582
3583 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
3584
3585 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
3586
3587 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3588
3589 PR libgomp/41418
3590 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
3591 or a hyphen (happens with fortran language disabled).
3592 * configure: Regenerate.
3593
3594 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3595
3596 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
3597 use sed script portable to Solaris /bin/sed for extracting ld
3598 version.
3599 * configure: Regenerate.
3600
3601 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3602
3603 * testsuite/libgomp.graphite/bounds.c: New test.
3604
3605 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3606
3607 * Makefile.am (libgomp_la_LINK): New.
3608 * Makefile.in: Regenerate.
3609
3610 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3611
3612 * configure.ac (AC_PREREQ): Bump to 2.64.
3613
3614 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3615
3616 * Makefile.am (install-html, install-pdf): Remove.
3617 * Makefile.in: Regenerate.
3618
3619 * Makefile.in: Regenerate.
3620 * aclocal.m4: Regenerate.
3621 * config.h.in: Regenerate.
3622 * configure: Regenerate.
3623 * testsuite/Makefile.in: Regenerate.
3624
3625 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3626
3627 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
3628 * Makefile.in: Regenerate.
3629
3630 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
3631
3632 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
3633 * Makefile.in: Regenerate.
3634
3635 2009-08-19 Tobias Burnus <burnus@net-b.de>
3636
3637 PR fortran/41102
3638 omp_lib.h.in: Fix -std=f95 errors.
3639
3640
3641 2009-08-14 David Edelsohn <edelsohn@gnu.org>
3642
3643 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
3644 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
3645 * testsuite/libgomp.graphite/graphite.exp: New.
3646
3647 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
3648
3649 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
3650 only build.
3651
3652 2009-08-04 David Daney <ddaney@caviumnetworks.com>
3653
3654 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
3655 needed memory barrier semantics.
3656 * config/linux/mips/mutex.h: New file.
3657
3658 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3659
3660 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
3661
3662 2009-07-16 Joseph Myers <joseph@codesourcery.com>
3663
3664 * configure: Regenerate.
3665
3666 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
3667
3668 PR testsuite/40699
3669 PR testsuite/40707
3670 PR testsuite/40709
3671 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
3672 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
3673 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
3674
3675 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3676
3677 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
3678 options when choosing a multilib.
3679
3680 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
3681
3682 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
3683 ld_library_path. Use add_path. Add just find_libgcc_s to
3684 ld_library_path, not every libgcc multilib directory.
3685 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
3686 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
3687 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
3688 Use add_path.
3689 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
3690
3691 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
3692
3693 * Makefile.am (LTLDFLAGS): Define.
3694 (LINK): Define.
3695 * Makefile.in: Regenerate.
3696
3697 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
3698
3699 PR fortran/39718
3700 * testsuite/libgomp.fortran/fortran.exp: Don't link with
3701 libgfortranbegin, check existence of libgfortran.a instead of
3702 libgfortranbegin.a.
3703
3704 2009-05-20 Jakub Jelinek <jakub@redhat.com>
3705
3706 PR libgomp/40174
3707 * team.c (gomp_thread_start): Destroy thr->release semaphore.
3708 (gomp_free_pool_helper): Likewise.
3709
3710 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
3711 Jakub Jelinek <jakub@redhat.com>
3712
3713 PR fortran/35423
3714 * testsuite/libgomp.fortran/workshare2.f90: New test.
3715
3716 2009-04-09 Nick Clifton <nickc@redhat.com>
3717
3718 * iter.c: Change copyright header to refer to version 3 of the
3719 GNU General Public License with version 3.1 of the GCC Runtime
3720 Library Exception and to point readers at the COPYING3 and
3721 COPYING3.RUNTIME files and the FSF's license web page.
3722 * alloc.c: Likewise.
3723 * barrier.c: Likewise.
3724 * config/bsd/proc.c: Likewise.
3725 * config/linux/affinity.c: Likewise.
3726 * config/linux/alpha/futex.h: Likewise.
3727 * config/linux/bar.c: Likewise.
3728 * config/linux/bar.h: Likewise.
3729 * config/linux/ia64/futex.h: Likewise.
3730 * config/linux/ia64/mutex.h: Likewise.
3731 * config/linux/lock.c: Likewise.
3732 * config/linux/mips/futex.h: Likewise.
3733 * config/linux/mutex.c: Likewise.
3734 * config/linux/mutex.h: Likewise.
3735 * config/linux/powerpc/futex.h: Likewise.
3736 * config/linux/proc.c: Likewise.
3737 * config/linux/ptrlock.c: Likewise.
3738 * config/linux/ptrlock.h: Likewise.
3739 * config/linux/s390/futex.h: Likewise.
3740 * config/linux/sem.c: Likewise.
3741 * config/linux/sem.h: Likewise.
3742 * config/linux/sparc/futex.h: Likewise.
3743 * config/linux/wait.h: Likewise.
3744 * config/linux/x86/futex.h: Likewise.
3745 * config/mingw32/proc.c: Likewise.
3746 * config/mingw32/time.c: Likewise.
3747 * config/posix/affinity.c: Likewise.
3748 * config/posix/bar.c: Likewise.
3749 * config/posix/bar.h: Likewise.
3750 * config/posix/lock.c: Likewise.
3751 * config/posix/mutex.h: Likewise.
3752 * config/posix/proc.c: Likewise.
3753 * config/posix/ptrlock.h: Likewise.
3754 * config/posix/sem.c: Likewise.
3755 * config/posix/sem.h: Likewise.
3756 * config/posix/time.c: Likewise.
3757 * config/posix95/lock.c: Likewise.
3758 * critical.c: Likewise.
3759 * env.c: Likewise.
3760 * error.c: Likewise.
3761 * fortran.c: Likewise.
3762 * iter_ull.c: Likewise.
3763 * libgomp.h: Likewise.
3764 * libgomp_f.h.in: Likewise.
3765 * libgomp_g.h: Likewise.
3766 * loop.c: Likewise.
3767 * loop_ull.c: Likewise.
3768 * omp.h.in: Likewise.
3769 * omp_lib.f90.in: Likewise.
3770 * omp_lib.h.in: Likewise.
3771 * ordered.c: Likewise.
3772 * parallel.c: Likewise.
3773 * sections.c: Likewise.
3774 * single.c: Likewise.
3775 * task.c: Likewise.
3776 * team.c: Likewise.
3777 * work.c: Likewise.
3778
3779 2009-04-09 Jakub Jelinek <jakub@redhat.com>
3780
3781 * testsuite/config/default.exp: Change copyright header to refer to
3782 version 3 of the GNU General Public License and to point readers
3783 at the COPYING3 file and the FSF's license web page.
3784
3785 2009-04-08 Jakub Jelinek <jakub@redhat.com>
3786
3787 PR middle-end/39573
3788 * libgomp.c++/pr39573.C: New test.
3789
3790 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3791
3792 PR other/39591
3793 * testsuite/libgomp.c/pr39591-1.c: New test.
3794 * testsuite/libgomp.c/pr39591-2.c: New test.
3795 * testsuite/libgomp.c/pr39591-3.c: New test.
3796
3797 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
3798
3799 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
3800 * testsuite/libgomp.c/atomic-6.c: Ditto.
3801
3802 2009-03-23 Jakub Jelinek <jakub@redhat.com>
3803
3804 PR c/39495
3805 * testsuite/libgomp.c/loop-12.c: New test.
3806 * testsuite/libgomp.c/loop-11.c: New test.
3807 * testsuite/libgomp.c++/loop-11.C: New test.
3808 * testsuite/libgomp.c++/loop-12.C: New test.
3809 * testsuite/libgomp.c++/for-8.C: New test.
3810
3811 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3812
3813 * configure: Regenerate.
3814
3815 2009-02-11 Jakub Jelinek <jakub@redhat.com>
3816
3817 PR middle-end/39154
3818 * testsuite/libgomp.c/pr39154.c: New test.
3819
3820 2009-01-30 Ian Lance Taylor <iant@google.com>
3821
3822 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
3823 libgomp_ld_is_gold. Get gold version number.
3824 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
3825 * configure: Rebuild.
3826
3827 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3828
3829 * testsuite/lib/libgomp.exp: Add -B option for targets that
3830 use libgfortran.a%s in their specs.
3831
3832 2009-01-07 Jakub Jelinek <jakub@redhat.com>
3833
3834 PR libgomp/38086
3835 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
3836 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
3837 HAVE_AS_SYMVER_DIRECTIVE is not defined.
3838 * configure: Regenerated.
3839 * config.h.in: Likewise.
3840
3841 2008-12-28 Jakub Jelinek <jakub@redhat.com>
3842
3843 PR c++/38650
3844 * testsuite/libgomp.c/pr38650.c: New test.
3845 * testsuite/libgomp.c++/pr38650.C: New test.
3846
3847 2008-12-27 Jakub Jelinek <jakub@redhat.com>
3848
3849 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
3850
3851 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
3852
3853 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
3854
3855 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3856
3857 * configure: Regenerate.
3858
3859 2008-12-08 Jakub Jelinek <jakub@redhat.com>
3860
3861 PR middle-end/36802
3862 * testsuite/libgomp.c/pr36802-1.c: New test.
3863 * testsuite/libgomp.c/pr36802-2.c: New test.
3864 * testsuite/libgomp.c/pr36802-3.c: New test.
3865
3866 2008-12-01 Janis Johnson <janis187@us.ibm.com>
3867
3868 PR libgomp/38270
3869 * config/linux/powerpc/mutex.h: New.
3870
3871 2008-12-01 Jakub Jelinek <jakub@redhat.com>
3872
3873 PR c++/38257
3874 * testsuite/libgomp.c++/for-7.C: New test.
3875
3876 PR c++/38348
3877 * testsuite/libgomp.c++/for-6.C: New test.
3878
3879 2008-11-26 Janis Johnson <janis187@us.ibm.com>
3880
3881 PR testsuite/28870
3882 * testsuite/lib/libgomp.exp: Include new timeout library files.
3883 (libgomp_target_compile): Set timeout value from new proc.
3884
3885 2008-11-13 Steve Ellcey <sje@cup.hp.com>
3886
3887 PR libgomp/37938
3888 * config/linux/ia64/mutex.h: New.
3889
3890 2008-11-04 Tobias Burnus <burnus@net-b.de>
3891
3892 PR libgomp/37935
3893 * libgomp.texi (Runtime library routines, environment variables):
3894 Update for OpenMP version 3.0.
3895
3896 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3897 Steve Ellcey <sje@cup.hp.com>
3898
3899 * configure: Regenerate for new libtool.
3900 * Makefile.in: Ditto.
3901 * testsuite/Makefile.in: Ditto.
3902
3903 2008-09-19 Jakub Jelinek <jakub@redhat.com>
3904 Andreas Tobler <a.tobler@schweiz.org>
3905
3906 * config/bsd/proc.c: New file.
3907 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
3908 * configure.ac: Check for header <sys/sysctl.h>
3909 * configure: Regenerate.
3910 * config.h.in: Likewise.
3911
3912 2008-09-05 Janis Johnson <janis187@us.ibm.com>
3913
3914 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
3915
3916 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3917
3918 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
3919 * Makefile.in: Regenerated.
3920 * testsuite/Makefile.in: Regenerated.
3921
3922 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
3923
3924 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
3925 depend on blddir if blddir exists.
3926 (libgomp_target_compile): Likewise.
3927 * testsuite/libgomp.c++/c++.exp: Likewise.
3928 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3929
3930 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3931
3932 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
3933 Do not list GPL as Invariant Section.
3934
3935 2008-07-28 Ilie Garbacea <ilie@mips.com>
3936 Chao-ying Fu <fu@mips.com>
3937
3938 * configure.tgt: Enable futex for MIPS.
3939 * config/linux/mips/futex.h: New file.
3940
3941 2008-07-16 Jakub Jelinek <jakub@redhat.com>
3942
3943 * team.c (gomp_team_end): Free team immediately if it has
3944 just one thread.
3945
3946 2008-07-08 David Edelsohn <edelsohn@gnu.org>
3947
3948 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3949 * testsuite/libgomp.fortran/fortran.exp: Same.
3950 * testsuite/libgomp.c/c.exp: Same.
3951 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3952 directory to library path first.
3953
3954 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3955
3956 * env.c (parse_stacksize): Add cast to avoid warning.
3957 (parse_spincount): Likewise.
3958
3959 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3960
3961 * testsuite/libgomp.c/loop-10.c: New test.
3962 * libgomp.c/loop-3.c (main): Add lastprivate clause.
3963 * libgomp.c++/loop-6.C (main): Likewise.
3964
3965 PR debug/36617
3966 * testsuite/libgomp.c/debug-1.c: New test.
3967
3968 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3969
3970 * testsuite/libgomp.c/nqueens-1.c: New test.
3971
3972 PR c++/36523
3973 * testsuite/libgomp.c++/task-7.C: New function.
3974
3975 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3976
3977 * configure: Regenerate.
3978
3979 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3980
3981 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3982 mutex when HAVE_SYNC_BUILTINS isn't defined.
3983
3984 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3985
3986 * libgomp.texi (omp_test_lock): Fix typo.
3987
3988 2008-06-12 Tobias Burnus <burnus@net-b.de>
3989
3990 * omp_lib.f90.in: Add "implicit none".
3991
3992 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3993
3994 PR middle-end/36506
3995 * testsuite/libgomp.c/reduction-5.c: New test.
3996
3997 2008-06-11 Jakub Jelinek <jakub@redhat.com>
3998
3999 * libgomp.h (struct gomp_task): Add in_tied_task field.
4000 * task.c (gomp_init_task): Initialize it.
4001 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
4002 unconditionally. Don't call gomp_team_barrier_wake if
4003 current task is implicit or if(0) from implicit and number of
4004 running tasks is equal to nthreads - 1.
4005
4006 PR libgomp/36471
4007 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
4008 omp_get_team_size_8): Fix pastos.
4009
4010 PR libgomp/36469
4011 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
4012 * configure: Regenerated.
4013 * config.h.in: Regenerated.
4014 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
4015 defined.
4016
4017 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
4018
4019 PR bootstrap/36452
4020 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
4021 (GOMP_loop_ull_dynamic_start): Likewise.
4022 (GOMP_loop_ull_guided_start): Likewise.
4023 (GOMP_loop_ull_ordered_static_start): Likewise.
4024 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
4025 (GOMP_loop_ull_ordered_guided_start): Likewise.
4026
4027 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4028 Richard Henderson <rth@redhat.com>
4029 Ulrich Drepper <drepper@redhat.com>
4030 Jakob Blomer <jakob.blomer@ira.uka.de>
4031
4032 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
4033 Substitute also OMP_*LOCK_25*.
4034 * configure: Regenerated.
4035 * config.h.in: Regenerated.
4036 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
4037 ptrlock.c and task.c.
4038 * Makefile.in: Regenerated.
4039 * testsuite/Makefile.in: Regenerated.
4040 * task.c: New file.
4041 * loop_ull.c: New file.
4042 * iter_ull.c: New file.
4043 * libgomp.h: Include ptrlock.h.
4044 (enum gomp_task_kind): New type.
4045 (struct gomp_team): Add task_lock, task_queue, task_count,
4046 task_running_count, single_count fields. Add
4047 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
4048 Remove work_share_lock, generation_mask,
4049 oldest_live_gen, num_live_gen and init_work_shares fields, add
4050 work work_share_list_alloc, work_share_list_free and work_share_chunk
4051 fields. Change work_shares from pointer to pointers into an array.
4052 Change ordered_release field into gomp_sem_t ** from flexible array
4053 member. Add implicit_task and initial_work_shares fields.
4054 Move close to the end of the struct.
4055 (struct gomp_team_state): Add single_count, last_work_share,
4056 active_level and level fields, remove work_share_generation.
4057 (gomp_barrier_handle_tasks): New prototype.
4058 (gomp_finish_task): New inline function.
4059 (struct gomp_work_share): Move chunk_size, end, incr into
4060 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
4061 next_ll fields. Reshuffle fields. Add next_alloc,
4062 next_ws, next_free and inline_ordered_team_ids fields, change
4063 ordered_team_ids into pointer from flexible array member.
4064 Add mode field. Put lock and next into a different cache line
4065 from most of the write-once fields.
4066 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
4067 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
4068 gomp_iter_ull_guided_next): New prototypes.
4069 (gomp_new_icv): New prototype.
4070 (struct gomp_thread): Add thread_pool and task fields.
4071 (struct gomp_thread_pool): New type.
4072 (gomp_new_team): New prototype.
4073 (gomp_team_start): Change type of last argument.
4074 (gomp_new_work_share): Removed.
4075 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
4076 (gomp_work_share_init_done): New static inline.
4077 (gomp_throttled_spin_count_var, gomp_available_cpus,
4078 gomp_managed_threads): New extern decls.
4079 (gomp_init_task): New prototype.
4080 (gomp_spin_count_var): New extern var decl.
4081 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
4082 or no alias support, or if not PIC.
4083 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
4084 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
4085 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
4086 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
4087 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
4088 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
4089 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
4090 gomp_test_nest_lock_25): New prototypes.
4091 (omp_lock_symver, strong_alias): Define.
4092 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
4093 decls.
4094 (gomp_end_task): New.
4095 (struct gomp_task_icv, gomp_global_icv): New.
4096 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
4097 (struct gomp_task): New.
4098 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
4099 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
4100 (gomp_icv): New.
4101 (gomp_schedule_type): Reorder enum to match
4102 omp_sched_t.
4103 * team.c (struct gomp_thread_start_data): Add thread_pool and task
4104 fields.
4105 (gomp_thread_start): Add gomp_team_barrier_wait call.
4106 For non-nested case remove clearing of docked thread thr fields.
4107 Use pool fields instead of global gomp_* variables. Use
4108 gomp_barrier_wait_last when needed. Initialize ts.active_level.
4109 Create tasks for each member thread.
4110 (free_team): Only destroy team barrier, task_lock here and free it.
4111 (gomp_free_thread): Free last_team if non-NULL.
4112 (gomp_team_end): Call gomp_team_barrier_wait instead of
4113 gomp_barrier_wait. For nested case call one extra
4114 gomp_barrier_wait. Move here some destruction from free_team.
4115 Call free_team on pool->last_team if any, rather than freeing
4116 current team. Destroy work_share_list_free_lock ifndef
4117 HAVE_SYNC_BUILTINS.
4118 (gomp_new_icv): New function.
4119 (gomp_threads, gomp_threads_size, gomp_threads_used,
4120 gomp_threads_dock): Removed.
4121 (gomp_thread_destructor): New variable.
4122 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
4123 functions.
4124 (gomp_team_start): Create new pool if current thread doesn't have
4125 one. Use pool fields instead of global gomp_* variables.
4126 Initialize thread_pool field for new threads. Clear single_count.
4127 Change last argument from ws to team, don't create
4128 new team, set ts.work_share to &team->work_shares[0] and clear
4129 ts.last_work_share. Don't clear ts.work_share_generation.
4130 If number of threads changed, adjust atomically gomp_managed_threads.
4131 Use gomp_init_task instead of gomp_new_task,
4132 set thr->task to the corresponding implicit_task array entry.
4133 Create tasks for each member thread. Initialize ts.level.
4134 (initialize_team): Call pthread_key_create on
4135 gomp_thread_destructor.
4136 (team_destructor): New function.
4137 (new_team): Removed.
4138 (gomp_new_team): New function.
4139 (free_team): Free gomp_work_share blocks chained through next_alloc,
4140 instead of freeing work_shares and destroying work_share_lock.
4141 (gomp_team_end): Call gomp_fini_work_share. If number of threads
4142 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
4143 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
4144 of gomp_barrier_wait.
4145 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
4146 instead of gomp_barrier_wait. Call gomp_work_share_init_done
4147 if gomp_work_share_start returned true. Don't unlock ws->lock.
4148 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
4149 of gomp_barrier_wait.
4150 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
4151 gomp_work_share_init_done if gomp_work_share_start returned true.
4152 Don't unlock ws->lock.
4153 * work.c: Include stddef.h.
4154 (free_work_share): Use work_share_list_free_lock instead
4155 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
4156 Call gomp_fini_work_share and then either free ws if orphaned, or
4157 put it into work_share_list_free list of the current team.
4158 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
4159 functions.
4160 (gomp_work_share_start, gomp_work_share_end,
4161 gomp_work_share_end_nowait): Rewritten.
4162 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
4163 (openmp_version): Set to 200805.
4164 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
4165 omp_sched_guided, omp_sched_auto): New parameters.
4166 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4167 omp_set_max_active_levels, omp_get_max_active_levels,
4168 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4169 omp_get_active_level): New interfaces.
4170 * omp_lib.h.in (openmp_version): Set to 200805.
4171 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
4172 omp_sched_guided, omp_sched_auto): New parameters.
4173 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4174 omp_set_max_active_levels, omp_get_max_active_levels,
4175 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4176 omp_get_active_level): New externals.
4177 * loop.c: Include limits.h.
4178 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
4179 GFS_AUTO.
4180 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
4181 Likewise. Use gomp_icv.
4182 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
4183 ts.static_trip here.
4184 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
4185 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
4186 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
4187 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
4188 don't unlock ws->lock, otherwise lock it.
4189 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
4190 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
4191 (gomp_parallel_loop_start): Call gomp_new_team instead of
4192 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
4193 Adjust gomp_team_start caller. Pass 0 as second argument to
4194 gomp_resolve_num_threads.
4195 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
4196 If adding ws->chunk_size nthreads + 1 times after end won't
4197 overflow, set ws->mode to 1.
4198 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
4199 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
4200 GOMP_loop_ull_ordered_static_start,
4201 GOMP_loop_ull_ordered_dynamic_start,
4202 GOMP_loop_ull_ordered_guided_start,
4203 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
4204 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
4205 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
4206 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
4207 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
4208 prototypes.
4209 * libgomp.map: Export lock routines also @@OMP_2.0.
4210 (GOMP_loop_ordered_dynamic_first,
4211 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
4212 GOMP_loop_ordered_static_first): Remove.
4213 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
4214 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
4215 GOMP_loop_ull_ordered_dynamic_next,
4216 GOMP_loop_ull_ordered_dynamic_start,
4217 GOMP_loop_ull_ordered_guided_next,
4218 GOMP_loop_ull_ordered_guided_start,
4219 GOMP_loop_ull_ordered_runtime_next,
4220 GOMP_loop_ull_ordered_runtime_start,
4221 GOMP_loop_ull_ordered_static_next,
4222 GOMP_loop_ull_ordered_static_start,
4223 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
4224 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
4225 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
4226 (omp_set_schedule, omp_get_schedule,
4227 omp_get_thread_limit, omp_set_max_active_levels,
4228 omp_get_max_active_levels, omp_get_level,
4229 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
4230 omp_set_schedule_, omp_set_schedule_8_,
4231 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
4232 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
4233 omp_get_max_active_levels_, omp_get_level_,
4234 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
4235 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
4236 New exports @@OMP_3.0.
4237 * omp.h.in (omp_sched_t): New type.
4238 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4239 omp_set_max_active_levels, omp_get_max_active_levels,
4240 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4241 omp_get_active_level): New prototypes.
4242 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
4243 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
4244 gomp_thread_limit_var, gomp_remaining_threads_count,
4245 gomp_remaining_threads_lock): New variables.
4246 (parse_spincount): New function.
4247 (initialize_env): Call gomp_init_num_threads unconditionally.
4248 Initialize gomp_available_cpus. Call parse_spincount,
4249 initialize gomp_{,throttled_}spin_count_var
4250 depending on presence and value of OMP_WAIT_POLICY and
4251 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
4252 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
4253 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
4254 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
4255 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
4256 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
4257 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
4258 (gomp_global_icv): New.
4259 (parse_schedule): Use it. Parse "auto".
4260 (omp_set_num_threads): Use gomp_icv.
4261 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
4262 Likewise.
4263 (omp_get_max_threads): Move from parallel.c.
4264 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4265 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
4266 add ialias.
4267 (parse_stacksize, parse_wait_policy): New functions.
4268 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
4269 both wrappers for compatibility and new locks.
4270 (omp_set_schedule, omp_get_schedule,
4271 omp_get_thread_limit, omp_set_max_active_levels,
4272 omp_get_max_active_levels, omp_get_level,
4273 omp_get_ancestor_thread_num, omp_get_team_size,
4274 omp_get_active_level): New ialias_redirect.
4275 (omp_set_schedule_, omp_set_schedule_8_,
4276 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
4277 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
4278 omp_get_max_active_levels_, omp_get_level_,
4279 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
4280 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
4281 New functions.
4282 * parallel.c: Include limits.h.
4283 (gomp_resolve_num_threads): Add count argument. Rewritten.
4284 (GOMP_parallel_start): Call gomp_new_team and pass that as last
4285 argument to gomp_team_start. Pass 0 as second argument to
4286 gomp_resolve_num_threads.
4287 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
4288 if gomp_thread_limit_var != ULONG_MAX.
4289 (omp_in_parallel): Implement using ts.active_level.
4290 (omp_get_max_threads): Move to env.c.
4291 (omp_get_level, omp_get_ancestor_thread_num,
4292 omp_get_team_size, omp_get_active_level): New functions,
4293 add ialias.
4294 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
4295 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
4296 gomp_iter_dynamic_next instead of the _locked variant and don't take
4297 lock around it, otherwise acquire it before calling
4298 gomp_iter_dynamic_next_locked.
4299 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
4300 gomp_iter_dynamic_next instead of the _locked variant and don't take
4301 lock around it.
4302 (GOMP_parallel_sections_start): Call gomp_new_team instead of
4303 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
4304 Adjust gomp_team_start caller. Pass count as second argument to
4305 gomp_resolve_num_threads, don't adjust num_threads after the call.
4306 Use gomp_icv.
4307 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
4308 ws->chunk_size by incr.
4309 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
4310 code.
4311 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
4312 types.
4313 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
4314 (omp_check_defines): Check even the compat defines.
4315 * config/linux/ptrlock.c: New file.
4316 * config/linux/ptrlock.h: New file.
4317 * config/linux/wait.h: New file.
4318 * config/posix/ptrlock.c: New file.
4319 * config/posix/ptrlock.h: New file.
4320 * config/linux/bar.h (gomp_team_barrier_wait,
4321 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
4322 (gomp_team_barrier_set_task_pending,
4323 gomp_team_barrier_clear_task_pending,
4324 gomp_team_barrier_set_waiting_for_tasks,
4325 gomp_team_barrier_waiting_for_tasks,
4326 gomp_team_barrier_done): New inlines.
4327 (gomp_barrier_t): Rewritten.
4328 (gomp_barrier_state_t): New typedef.
4329 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
4330 gomp_barrier_wait_start): Rewritten.
4331 (gomp_barrier_wait_end): Change second argument to
4332 gomp_barrier_state_t.
4333 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
4334 inlines.
4335 * config/linux/bar.c: Include wait.h instead of libgomp.h and
4336 futex.h.
4337 (gomp_barrier_wait_end): Rewritten.
4338 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
4339 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
4340 * config/posix/bar.h (gomp_barrier_t): Add generation field.
4341 (gomp_barrier_state_t): New typedef.
4342 (gomp_team_barrier_wait,
4343 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
4344 (gomp_barrier_wait_start): Or all but low 2 bits from generation
4345 into the return value. Return gomp_barrier_state_t.
4346 (gomp_team_barrier_set_task_pending,
4347 gomp_team_barrier_clear_task_pending,
4348 gomp_team_barrier_set_waiting_for_tasks,
4349 gomp_team_barrier_waiting_for_tasks,
4350 gomp_team_barrier_done): New inlines.
4351 (gomp_barrier_wait_end): Change second argument to
4352 gomp_barrier_state_t.
4353 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
4354 inlines.
4355 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
4356 (gomp_barrier_wait_end): Change second argument to
4357 gomp_barrier_state_t.
4358 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
4359 gomp_team_barrier_wake): New functions.
4360 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
4361 futex.h.
4362 (gomp_futex_wake, gomp_futex_wait): New variables.
4363 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
4364 * config/linux/lock.c: Rewrite to make locks task owned,
4365 for backwards compatibility provide the old entrypoints
4366 if symbol versioning. Include wait.h instead of libgomp.h and
4367 futex.h.
4368 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
4369 * config/posix95/lock.c: Rewrite to make locks task owned,
4370 for backwards compatibility provide the old entrypoints
4371 if symbol versioning.
4372 * config/posix/lock.c: Rewrite to make locks task owned,
4373 for backwards compatibility provide the old entrypoints
4374 if symbol versioning.
4375 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
4376 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
4377 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
4378 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4379 (sys_futex0): Return error code.
4380 (futex_wake, futex_wait): If ENOSYS was returned, clear
4381 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4382 (cpu_relax, atomic_write_barrier): New static inlines.
4383 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4384 (futex_wake, futex_wait): If ENOSYS was returned, clear
4385 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4386 (cpu_relax, atomic_write_barrier): New static inlines.
4387 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4388 (sys_futex0): Return error code.
4389 (futex_wake, futex_wait): If ENOSYS was returned, clear
4390 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4391 (cpu_relax, atomic_write_barrier): New static inlines.
4392 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4393 (sys_futex0): Return error code.
4394 (futex_wake, futex_wait): If ENOSYS was returned, clear
4395 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4396 (cpu_relax, atomic_write_barrier): New static inlines.
4397 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4398 (sys_futex0): Return error code.
4399 (futex_wake, futex_wait): If ENOSYS was returned, clear
4400 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4401 (cpu_relax, atomic_write_barrier): New static inlines.
4402 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4403 (sys_futex0): Return error code.
4404 (futex_wake, futex_wait): If ENOSYS was returned, clear
4405 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4406 (cpu_relax, atomic_write_barrier): New static inlines.
4407 * config/linux/sem.c: Include wait.h instead of libgomp.h and
4408 futex.h.
4409 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
4410 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
4411 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
4412 types.
4413 (omp_nest_lock_t): Change owner into void *, add lock field.
4414 * config/posix95/omp-lock.h: Include semaphore.h.
4415 (omp_lock_25_t, omp_nest_lock_25_t): New types.
4416 (omp_lock_t): Use sem_t instead of mutex if semaphores
4417 aren't broken.
4418 (omp_nest_lock_t): Likewise. Change owner to void *.
4419 * config/posix/omp-lock.h: Include semaphore.h.
4420 (omp_lock_25_t, omp_nest_lock_25_t): New types.
4421 (omp_lock_t): Use sem_t instead of mutex if semaphores
4422 aren't broken.
4423 (omp_nest_lock_t): Likewise. Add owner field.
4424
4425 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4426
4427 * testsuite/libgomp.c/collapse-1.c: New test.
4428 * testsuite/libgomp.c/collapse-2.c: New test.
4429 * testsuite/libgomp.c/collapse-3.c: New test.
4430 * testsuite/libgomp.c/icv-1.c: New test.
4431 * testsuite/libgomp.c/icv-2.c: New test.
4432 * testsuite/libgomp.c/lib-2.c: New test.
4433 * testsuite/libgomp.c/lock-1.c: New test.
4434 * testsuite/libgomp.c/lock-2.c: New test.
4435 * testsuite/libgomp.c/lock-3.c: New test.
4436 * testsuite/libgomp.c/loop-4.c: New test.
4437 * testsuite/libgomp.c/loop-5.c: New test.
4438 * testsuite/libgomp.c/loop-6.c: New test.
4439 * testsuite/libgomp.c/loop-7.c: New test.
4440 * testsuite/libgomp.c/loop-8.c: New test.
4441 * testsuite/libgomp.c/loop-9.c: New test.
4442 * testsuite/libgomp.c/nested-3.c: New test.
4443 * testsuite/libgomp.c/nestedfn-6.c: New test.
4444 * testsuite/libgomp.c/sort-1.c: New test.
4445 * testsuite/libgomp.c/task-1.c: New test.
4446 * testsuite/libgomp.c/task-2.c: New test.
4447 * testsuite/libgomp.c/task-3.c: New test.
4448 * testsuite/libgomp.c/task-4.c: New test.
4449 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
4450 to C++ testsuite default compiler options.
4451 * testsuite/libgomp.c++/collapse-1.C: New test.
4452 * testsuite/libgomp.c++/collapse-2.C: New test.
4453 * testsuite/libgomp.c++/ctor-10.C: New test.
4454 * testsuite/libgomp.c++/for-1.C: New test.
4455 * testsuite/libgomp.c++/for-2.C: New test.
4456 * testsuite/libgomp.c++/for-3.C: New test.
4457 * testsuite/libgomp.c++/for-4.C: New test.
4458 * testsuite/libgomp.c++/for-5.C: New test.
4459 * testsuite/libgomp.c++/loop-8.C: New test.
4460 * testsuite/libgomp.c++/loop-9.C: New test.
4461 * testsuite/libgomp.c++/loop-10.C: New test.
4462 * testsuite/libgomp.c++/task-1.C: New test.
4463 * testsuite/libgomp.c++/task-2.C: New test.
4464 * testsuite/libgomp.c++/task-3.C: New test.
4465 * testsuite/libgomp.c++/task-4.C: New test.
4466 * testsuite/libgomp.c++/task-5.C: New test.
4467 * testsuite/libgomp.c++/task-6.C: New test.
4468 * testsuite/libgomp.fortran/allocatable1.f90: New test.
4469 * testsuite/libgomp.fortran/allocatable2.f90: New test.
4470 * testsuite/libgomp.fortran/allocatable3.f90: New test.
4471 * testsuite/libgomp.fortran/allocatable4.f90: New test.
4472 * testsuite/libgomp.fortran/collapse1.f90: New test.
4473 * testsuite/libgomp.fortran/collapse2.f90: New test.
4474 * testsuite/libgomp.fortran/collapse3.f90: New test.
4475 * testsuite/libgomp.fortran/collapse4.f90: New test.
4476 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
4477 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
4478 * testsuite/libgomp.fortran/lib4.f90: New test.
4479 * testsuite/libgomp.fortran/lock-1.f90: New test.
4480 * testsuite/libgomp.fortran/lock-2.f90: New test.
4481 * testsuite/libgomp.fortran/nested1.f90: New test.
4482 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
4483 * testsuite/libgomp.fortran/strassen.f90: New test.
4484 * testsuite/libgomp.fortran/tabs1.f90: New test.
4485 * testsuite/libgomp.fortran/tabs2.f: New test.
4486 * testsuite/libgomp.fortran/task1.f90: New test.
4487 * testsuite/libgomp.fortran/task2.f90: New test.
4488 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
4489 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4490 * testsuite/libgomp.c/pr26943-2.c: Likewise.
4491 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4492 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4493
4494 2008-05-23 Jakub Jelinek <jakub@redhat.com>
4495
4496 PR c++/36308
4497 * testsuite/libgomp.c++/ctor-11.C: New test.
4498 * testsuite/libgomp.c++/ctor-12.C: New test.
4499
4500 2008-05-15 Janis Johnson <janis187@us.ibm.com>
4501
4502 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
4503
4504 2008-05-07 Jakub Jelinek <jakub@redhat.com>
4505
4506 PR middle-end/36106
4507 * testsuite/libgomp.c/atomic-5.c: New test.
4508 * testsuite/libgomp.c/atomic-6.c: New test.
4509 * testsuite/libgomp.c/autopar-1.c: New test.
4510
4511 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4512
4513 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
4514 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
4515 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
4516 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
4517 * configure: Regenerate.
4518 * Makefile.in, testsuite/Makefile.in: Likewise.
4519
4520 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
4521
4522 PR bootstrap/35457
4523 * aclocal.m4: Regenerate.
4524 * configure: Regenerate.
4525
4526 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4527
4528 PR middle-end/35611
4529 * testsuite/libgomp.c/atomic-4.c: New test.
4530
4531 PR libgomp/35625
4532 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
4533 (gomp_iter_guided_next): Likewise.
4534 * testsuite/libgomp.c/pr35625.c: New test.
4535
4536 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4537
4538 * aclocal.m4: Regenerate.
4539 * configure: Likewise.
4540 * Makefile.in: Likewise.
4541 * testsuite/Makefile.in: Likewise.
4542
4543 2008-03-13 Jakub Jelinek <jakub@redhat.com>
4544
4545 PR middle-end/35185
4546 * testsuite/libgomp.c++/pr35185.C: New test.
4547
4548 2008-03-12 Jakub Jelinek <jakub@redhat.com>
4549
4550 PR middle-end/35549
4551 * testsuite/libgomp.c/pr35549.c: New test.
4552
4553 2008-03-06 Jakub Jelinek <jakub@redhat.com>
4554
4555 * testsuite/libgomp.c/atomic-3.c: New test.
4556
4557 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4558
4559 PR fortran/33197
4560 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
4561 .F08 file suffixes.
4562
4563 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
4564
4565 PR libgomp/33131
4566 * configure.ac: Add ACX_HEADER_STRING.
4567 * env.c: Include strings.h.
4568 * aclocal.m4: Regenerate.
4569 * config.h.in: Regenerate.
4570 * configure: Regenerate.
4571 * Makefile.in: Regenerate.
4572 * testsuite/Makefile.in: Regenerate.
4573
4574 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4575
4576 PR middle-end/35196
4577 * testsuite/libgomp.c/pr35196.c: New test.
4578
4579 PR middle-end/35130
4580 * testsuite/libgomp.fortran/pr35130.f90: New test.
4581 * testsuite/libgomp.c/pr35130.c: New test.
4582
4583 2008-01-25 Jakub Jelinek <jakub@redhat.com>
4584
4585 PR middle-end/33880
4586 * testsuite/libgomp.c/pr33880.c: New test.
4587 * testsuite/libgomp.fortran/pr33880.f90: New test.
4588
4589 2008-01-24 David Edelsohn <edelsohn@gnu.org>
4590
4591 * configure: Regenerate.
4592
4593 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4594
4595 * configure.ac: Move futex checking into ../config/futex.m4.
4596 * configure: Rebuilt.
4597 * aclocal.m4: Rebuilt.
4598 * Makefile.in: Rebuilt.
4599
4600 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
4601 2007-10-15 ../config/tls.m4 change.
4602
4603 2007-12-19 Jakub Jelinek <jakub@redhat.com>
4604
4605 PR c++/34513
4606 * testsuite/libgomp.c/pr34513.c: New test.
4607 * testsuite/libgomp.c++/pr34513.C: New test.
4608
4609 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
4610
4611 PR target/32765
4612 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
4613
4614 2007-12-04 Jakub Jelinek <jakub@redhat.com>
4615
4616 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
4617
4618 2007-12-03 Jakub Jelinek <jakub@redhat.com>
4619
4620 * testsuite/libgomp.c/private-1.c: New test.
4621
4622 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
4623 Paolo Bonzini <bonzini@gnu.org>
4624
4625 * Makefile.am: Use space as vpath separator. Use 'vpath %'
4626 instead of 'VPATH ='.
4627 * Makefile.in: Regenerate.
4628
4629 2007-11-23 Matthias Klose <doko@ubuntu.com>
4630
4631 * configure.ac: Adjust makeinfo version check.
4632 * configure: Regenerate.
4633
4634 2007-11-10 Jakub Jelinek <jakub@redhat.com>
4635
4636 PR fortran/34020
4637 * testsuite/libgomp.fortran/pr34020.f90: New test.
4638
4639 2007-11-06 Jakub Jelinek <jakub@redhat.com>
4640
4641 PR c++/33894
4642 * testsuite/libgomp.c++/atomic-1.C: New test.
4643
4644 2007-10-25 Jakub Jelinek <jakub@redhat.com>
4645
4646 PR libgomp/33275
4647 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
4648 Make x and y integers rather than (implicit) reals. Add private (j)
4649 clause to the last omp parallel.
4650
4651 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
4652
4653 * configure: Regenerate following changes to ../config/tls.m4.
4654
4655 2007-09-28 Jakub Jelinek <jakub@redhat.com>
4656
4657 * testsuite/libgomp.fortran/stack.f90: New test.
4658
4659 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4660
4661 * config/mingw32/proc.c: New file.
4662
4663 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
4664
4665 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
4666 (main): Use __get_cpuid to get i386 target fetaures.
4667 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
4668 (main): Use __get_cpuid to get x86_64 target fetaures.
4669
4670 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
4671
4672 PR target/32765
4673 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
4674 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
4675
4676 2007-07-12 Jakub Jelinek <jakub@redhat.com>
4677
4678 PR fortran/32550
4679 * testsuite/libgomp.fortran/pr32550.f90: New test.
4680 * testsuite/libgomp.fortran/crayptr2.f90: New test.
4681
4682 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
4683
4684 * aclocal.m4: Regenerated.
4685
4686 2007-07-05 Tobias Burnus <burnus@net-b.de>
4687
4688 PR fortran/32359
4689 * testsuite/libgomp.fortran/pr32359.f90: New.
4690
4691 2007-07-02 Jakub Jelinek <jakub@redhat.com>
4692
4693 PR libgomp/32468
4694 * sections.c (GOMP_parallel_sections_start): Only decrease
4695 number of threads to COUNT if dyn_var is true.
4696 * testsuite/libgomp.c/pr32468.c: New test.
4697
4698 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4699
4700 PR libgomp/26308
4701 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
4702
4703 2007-06-21 Jakub Jelinek <jakub@redhat.com>
4704
4705 PR middle-end/32362
4706 * testsuite/libgomp.c/pr32362-1.c: New test.
4707 * testsuite/libgomp.c/pr32362-2.c: New test.
4708 * testsuite/libgomp.c/pr32362-3.c: New test.
4709
4710 2007-06-07 Jakub Jelinek <jakub@redhat.com>
4711
4712 * team.c (gomp_team_start): Fix setting up thread_attr
4713 stack size.
4714
4715 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
4716
4717 * configure: Regenerate.
4718
4719 2007-05-23 Steve Ellcey <sje@cup.hp.com>
4720
4721 * Makefile.in: Regenerate.
4722 * configure: Regenerate.
4723 * aclocal.m4: Regenerate.
4724 * testsuite/Makefile.in: Regenerate.
4725
4726 2007-05-04 Jakub Jelinek <jakub@redhat.com>
4727
4728 * config/linux/proc.c: New file.
4729
4730 PR libgomp/28482
4731 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
4732
4733 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
4734
4735 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
4736
4737 2007-04-16 Matthias Klose <doko@debian.org>
4738
4739 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
4740 flags if not building with -m64.
4741 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
4742 flag for i?86-*-* targets, if current target matches -m64.
4743
4744 2007-04-14 Steve Ellcey <sje@cup.hp.com>
4745
4746 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
4747 * Makefile.in: Regenerate.
4748
4749 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4750
4751 PR testsuite/31369
4752 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
4753 ld_library_path.
4754 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4755
4756 2007-04-04 Jakub Jelinek <jakub@redhat.com>
4757
4758 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
4759 decls.
4760 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
4761 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
4762 (parse_affinity): New function.
4763 (initialize_env): Call it and gomp_init_affinity.
4764 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
4765 create new pthread_attr_t and call gomp_init_thread_affinity
4766 on it for each thread before passing the attribute to pthread_create.
4767 * config/linux/affinity.c: New file.
4768 * config/posix/affinity.c: New file.
4769 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
4770 * configure: Rebuilt.
4771 * config.h.in: Rebuilt.
4772 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
4773 * Makefile.in: Rebuilt.
4774
4775 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
4776
4777 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
4778 *-*-darwin*.
4779 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
4780 and use it if found.
4781
4782 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
4783
4784 * testsuite/config/default.exp: New file.
4785 * testsuite/lib/libgomp.exp: New file.
4786 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
4787 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
4788 load_lib *, load_gcc_lib *): Move to libgomp.exp.
4789 (libgomp_load): Remove.
4790 * testsuite/lib/libgomp.exp (libgomp_init): Compute
4791 always_ld_library_path, not ld_library_path. Set additional_flags
4792 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
4793 (target_compile): Do not call libgomp_init. Append lang_library_path
4794 and lang_link_flags to options.
4795 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
4796 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
4797 here.
4798 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
4799 always_ld_library_path. Set LD_LIBRARY_PATH here.
4800 * testsuite/libgomp.fortran/fortran.exp: Ditto.
4801 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
4802 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
4803 CX8 flag.
4804 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
4805 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
4806 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
4807 * testsuite/libgomp.c/pr29947-1.c: Ditto.
4808 * testsuite/libgomp.c/atomic-10.c: Ditto.
4809
4810 2007-03-21 Jakub Jelinek <jakub@redhat.com>
4811
4812 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
4813 dg-final cleanup-modules line.
4814 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
4815 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
4816 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
4817 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4818 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4819 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4820 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4821
4822 2007-03-18 Andreas Schwab <schwab@suse.de>
4823
4824 * acinclude.m4: Adjust regular expression for ld version
4825 extraction.
4826 * configure: Regenerate.
4827
4828 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4829
4830 * Makefile.am: Add install-pdf target as copied from
4831 automake v1.10 rules.
4832 * Makefile.in: Regenerate
4833
4834 2007-02-07 Jakub Jelinek <jakub@redhat.com>
4835
4836 PR libgomp/28486
4837 * configure: Regenerate.
4838
4839 PR c++/30703
4840 * testsuite/libgomp.c++/pr30703.C: New test.
4841
4842 2007-02-02 Jakub Jelinek <jakub@redhat.com>
4843
4844 Revert:
4845 2006-07-05 Eric Christopher <echristo@apple.com>
4846 * configure.ac: Depend addition of -pthread on host OS.
4847 * configure: Regenerate.
4848
4849 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4850
4851 * libgomp.texi: Fix spacing after abbreviations.
4852
4853 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
4854
4855 PR libgomp/30546
4856 * configure.ac: Add check for makeinfo
4857 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
4858 if an appropiate version of makeinfo is found.
4859 * aclocal.m4: Regenerated.
4860 * configure: Regenerated.
4861 * Makefile.in: Regenerated.
4862 * testsuite/Makefile.in: Regenerated.
4863
4864 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
4865
4866 PR libgomp/30540
4867 * libgomp.texi: More about implementation-dependent settings.
4868
4869 2007-01-26 Tobias Burnus <burnus@net-b.de>
4870
4871 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
4872
4873 2007-01-24 Jakub Jelinek <jakub@redhat.com>
4874
4875 PR middle-end/30494
4876 * testsuite/libgomp.c/pr30494.c: New test.
4877
4878 2007-01-15 Tom Tromey <tromey@redhat.com>
4879
4880 * configure: Rebuilt.
4881 * configure.ac: Fixed comment.
4882
4883 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
4884
4885 * libgomp.texi: Document implementation specific default values of
4886 environment variables.
4887
4888 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
4889
4890 PR libgomp/28209
4891 * libgomp.texi: New file.
4892 * configure.ac: Add --enable-generated-files-in-srcdir option.
4893 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
4894 files to srcdir.
4895 * Makefile.in: Regenerated.
4896 * config.h.in: Regenerated.
4897 * testsuite/Makefile.in: Regenerated.
4898 * NOTES: Removed.
4899
4900 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
4901
4902 PR libgomp/29949
4903 * env.c (omp_set_num_threads): Set illegal thread count to 1.
4904
4905 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4906
4907 * configure: Regenerate.
4908
4909 2006-12-04 Jakub Jelinek <jakub@redhat.com>
4910
4911 PR libgomp/29947
4912 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
4913 start if there shouldn't be any loop iterations.
4914 (gomp_loop_ordered_static_start): Remove start == end test.
4915 * testsuite/libgomp.c/pr29947-1.c: New test.
4916 * testsuite/libgomp.c/pr29947-2.c: New test.
4917
4918 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4919
4920 * configure.tgt: Force initial-exec TLS model on Linux only.
4921
4922 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
4923
4924 * configure: Regenerated.
4925
4926 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
4927
4928 * env.c (parse_schedule): Reject out of range values.
4929 (parse_unsigned_long): Reject out of range, negative or zero values.
4930
4931 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4932
4933 PR fortran/29629
4934 * testsuite/libgomp.fortran/pr29629.f90: New test.
4935
4936 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
4937
4938 PR libgomp/29494
4939 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4940 * config/posix95: New directory.
4941 * config/posix95/omp-lock.h: New file.
4942 * config/posix95/lock.c: Likewise.
4943
4944 2006-10-14 Geoffrey Keating <geoffk@apple.com>
4945
4946 * aclocal.m4: Regenerate.
4947 * configure: Regenerate.
4948
4949 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4950
4951 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4952 '<' to '<='.
4953
4954 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4955
4956 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4957 test.
4958 * configure: Regenerate.
4959 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4960
4961 2006-09-26 Jakub Jelinek <jakub@redhat.com>
4962
4963 PR middle-end/25261
4964 PR middle-end/28790
4965 * testsuite/libgomp.c/nestedfn-4.c: New test.
4966 * testsuite/libgomp.c/nestedfn-5.c: New test.
4967 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4968
4969 PR fortran/29097
4970 * testsuite/libgomp.fortran/condinc1.f: New test.
4971 * testsuite/libgomp.fortran/condinc2.f: New test.
4972 * testsuite/libgomp.fortran/condinc3.f90: New test.
4973 * testsuite/libgomp.fortran/condinc4.f90: New test.
4974 * testsuite/libgomp.fortran/condinc1.inc: New file.
4975
4976 2006-09-18 Tom Tromey <tromey@redhat.com>
4977
4978 * configure: Rebuilt.
4979
4980 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4981
4982 PR c/28768
4983 PR preprocessor/14634
4984 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4985 to AC_DEFINE.
4986 * configure: Regenerate.
4987
4988 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4989
4990 * testsuite/libgomp.fortran/reduction3.f90: Change
4991 -2147483648 to -huge(i)-1 to avoid overflow.
4992 * testsuite/libgomp.fortran/reduction4.f90: Change
4993 Z'ffffffff' to not(0) to avoid overflow.
4994
4995 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4996
4997 PR libgomp/25938
4998 * Makefile.am (libsubincludedir): New.
4999 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
5000 * Makefile.in: Regenerate.
5001
5002 2006-08-17 Jakub Jelinek <jakub@redhat.com>
5003
5004 PR libgomp/28725
5005 * env.c: Include ctype.h.
5006 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
5007 leading and/or trailing whitespace and compare strings case
5008 insensitively.
5009
5010 2006-07-16 Jakub Jelinek <jakub@redhat.com>
5011
5012 PR fortran/28390
5013 * testsuite/libgomp.fortran/pr28390.f: New test.
5014
5015 2006-07-05 Eric Christopher <echristo@apple.com>
5016
5017 * configure.ac: Depend addition of -pthread on host OS.
5018 * configure: Regenerate.
5019
5020 2006-06-21 Jakub Jelinek <jakub@redhat.com>
5021
5022 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
5023 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
5024 defined.
5025
5026 2006-06-20 Jakub Jelinek <jakub@redhat.com>
5027
5028 PR libgomp/26175
5029 PR libgomp/26477
5030 * configure.ac: If neither --enable-linux-futex nor
5031 --disable-linux-futex is passed, determine the default by checking
5032 for compiling and/or running against NPTL. With --enable-linux-futex,
5033 check if SYS_gettid and SYS_futex are defined.
5034 * configure: Rebuilt.
5035
5036 2006-06-14 Richard Henderson <rth@redhat.com>
5037
5038 PR libgomp/28008
5039 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
5040 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
5041
5042 2006-06-09 Richard Henderson <rth@redhat.com>
5043
5044 * env.c (gomp_nthreads_var): Change to unsigned long.
5045 (gomp_run_sched_chunk): Likewise.
5046 (parse_unsigned_long): Rename from parse_num_threads and generalize.
5047 (initialize_env): Initialize gomp_thread_attr.
5048 * libgomp.h (gomp_nthreads_var): Update decl.
5049 (gomp_run_sched_chunk): Likewise.
5050 (gomp_thread_attr): Declare.
5051 * team.c (gomp_thread_attr): Export.
5052 (initialize_team): Don't initialize it.
5053
5054 2006-06-09 Jakub Jelinek <jakub@redhat.com>
5055
5056 PR fortran/27916
5057 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
5058 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
5059
5060 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5061
5062 * config/mingw32/time.c: New file.
5063 * configure.tgt: Use it.
5064
5065 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
5066
5067 * Makefile.am: Add install-html target. Add install-html to .PHONY
5068 * Makefile.in: Regenerate.
5069
5070 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5071
5072 PR libgomp/27612
5073 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
5074 * testsuite/libgomp.c/critical-1.c: Likewise.
5075 * testsuite/libgomp.c/loop-1.c: Likewise.
5076 * testsuite/libgomp.c/loop-2.c: Likewise.
5077 * testsuite/libgomp.c/single-1.c: Likewise.
5078 * testsuite/libgomp.c/ordered-1.c: Likewise.
5079 * testsuite/libgomp.c/ordered-2.c: Likewise.
5080
5081 2006-05-15 Jakub Jelinek <jakub@redhat.com>
5082
5083 PR middle-end/27416
5084 * libgomp.fortran/pr27416-1.f90: New test.
5085
5086 2006-05-03 Jakub Jelinek <jakub@redhat.com>
5087
5088 PR fortran/27395
5089 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
5090 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
5091
5092 2006-05-02 Jakub Jelinek <jakub@redhat.com>
5093
5094 PR c++/26943
5095 * testsuite/libgomp.c/pr26943-1.c: New test.
5096 * testsuite/libgomp.c/pr26943-2.c: New test.
5097 * testsuite/libgomp.c/pr26943-3.c: New test.
5098 * testsuite/libgomp.c/pr26943-4.c: New test.
5099 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
5100 * testsuite/libgomp.c++/pr26943.C: New test.
5101
5102 2006-05-02 Jakub Jelinek <jakub@redhat.com>
5103
5104 PR middle-end/27337
5105 * testsuite/libgomp.c++/pr27337.C: New test.
5106
5107 2006-04-26 Jakub Jelinek <jakub@redhat.com>
5108
5109 PR c/26171
5110 * testsuite/libgomp.c/pr26171.c: New test.
5111
5112 2006-04-25 Richard Henderson <rth@redhat.com>
5113
5114 PR libgomp/25865
5115 * configure.ac: Use GCC_CHECK_TLS.
5116 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
5117 * Makefile.in, aclocal.m4, configure: Regenerate.
5118
5119 2006-04-10 Matthias Klose <doko@debian.org>
5120
5121 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
5122 directory names containing underscores.
5123
5124 2006-03-21 Jakub Jelinek <jakub@redhat.com>
5125
5126 PR c++/26691
5127 * testsuite/libgomp.c++/pr26691.C: New test.
5128
5129 2006-03-13 Jakub Jelinek <jakub@redhat.com>
5130
5131 * testsuite/libgomp.fortran/retval2.f90: New test.
5132
5133 2006-03-09 Diego Novillo <dnovillo@redhat.com>
5134
5135 * testsuite/libgomp.c++: New directory.
5136
5137 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
5138
5139 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
5140 * config/posix/sem.c: Implement the above.
5141
5142 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
5143
5144 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
5145 define HAVE_BROKEN_POSIX_SEMAPHORES.
5146 * configure: Rebuilt.
5147 * config.h.in: Rebuilt.
5148
5149 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5150
5151 PR bootstrap/26161
5152 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
5153 for the other pthread check.
5154 * configure: Regenerate.
5155 * config.h.in: Regenerate.
5156
5157 2006-02-15 Jakub Jelinek <jakub@redhat.com>
5158
5159 PR libgomp/25938
5160 PR libgomp/25984
5161 * Makefile.am (fincludedir): New variable.
5162 (nodist_include_HEADERS): Remove Fortran files.
5163 (nodist_finclude_HEADERS): New variable.
5164 * Makefile.in: Regenerated.
5165
5166 2006-02-13 Jakub Jelinek <jakub@redhat.com>
5167
5168 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
5169 Remove tests for returning assumed character length arrays.
5170
5171 2006-02-12 Roger Sayle <roger@eyesopen.com>
5172 John David Anglin <dave@hiauly1.hia.nrc.ca>
5173
5174 PR libgomp/25936
5175 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
5176
5177 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5178
5179 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
5180
5181 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5182
5183 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
5184 part of LD_LIBRARY_PATH manually.
5185
5186 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
5187
5188 PR libgomp/25852
5189 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
5190 libgomp_init.
5191
5192 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
5193
5194 PR libgomp/25884
5195 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
5196 * configure.ac (PERL): Don't set.
5197 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
5198 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
5199 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
5200 * omp.h.in: Wrap the new configure substitutions with @ characters.
5201 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
5202 * aclocal.m4, configure, Makefile.in: Regenerate.
5203 * mkomp_h.pl: Delete.
5204
5205 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
5206
5207 PR libgomp/25259
5208 * configure.ac: Use GCC_HEADER_STDINT.
5209 * libgomp.h: Include gstdint.h.
5210 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
5211 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
5212
5213 2006-01-24 Richard Henderson <rth@redhat.com>
5214
5215 PR libgomp/25942
5216 * configure.ac: Add AM_MAINTAINER_MODE.
5217 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
5218
5219 2006-01-24 Diego Novillo <dnovillo@redhat.com>
5220
5221 * Makefile.in: Regenerate.
5222 * testsuite/Makefile.in: Regenerate.
5223 * aclocal.m4: Regenerate.
5224
5225 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
5226
5227 * config/posix/proc.c: Conditional include of sys/loadavg.h for
5228 Solaris.
5229 * configure.ac: Add check for loadavg.h.
5230 (link_gomp): Adjust comment.
5231 * configure: Regenerate.
5232 * config.h.in: Regenerate.
5233
5234 2006-01-21 Steve Ellcey <sje@cup.hp.com>
5235
5236 PR libgomp/25877
5237 * configure.ac: Remove check for alloca.h.
5238 * configure: Regenerate.
5239 * config.h.in: Regenerate.
5240 * libgomp.h: define gomp_alloca to be __builtin_alloca.
5241 * team.c: Remove use of alloca.h.
5242 Call gomp_alloca instead of alloca.
5243
5244 2006-01-20 Steve Ellcey <sje@cup.hp.com>
5245
5246 PR libgomp/25877
5247 * team.c: Add include of alloca.h.
5248 * configure.ac: Add check for alloca.h.
5249 * configure: Regenerate.
5250 * config.h.in: Regenerate.
5251
5252 2006-01-17 Jakub Jelinek <jakub@redhat.com>
5253
5254 PR fortran/25219
5255 * testsuite/libgomp.fortran/pr25219.f90: New test.
5256
5257 2005-12-05 Uros Bizjak <uros@kss-loka.si>
5258
5259 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
5260 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
5261 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
5262 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
5263 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
5264 testsuite/libgomp.fortran/threadprivate1.f90,
5265 testsuite/libgomp.fortran/threadprivate2.f90,
5266 testsuite/libgomp.fortran/threadprivate3.f90,
5267 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
5268 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
5269 testsuite/libgomp.fortran/omp_parse3.f90: Change required
5270 effective-target to TLS runtime.
5271
5272 * testsuite/libgomp.fortran/pr25162.f: Require
5273 effective-target TLS runtime.
5274
5275 2005-12-01 Jakub Jelinek <jakub@redhat.com>
5276
5277 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
5278 * testsuite/libgomp.c/nestedfn-3.c: New test.
5279
5280 2005-11-30 Jakub Jelinek <jakub@redhat.com>
5281
5282 PR fortran/25162
5283 * testsuite/libgomp.fortran/pr25162.f: New test.
5284
5285 2005-11-28 Jakub Jelinek <jakub@redhat.com>
5286
5287 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
5288 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
5289
5290 2005-11-25 Jakub Jelinek <jakub@redhat.com>
5291
5292 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
5293 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
5294 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
5295 single.c, team.c, work.c, config/linux/alpha/futex.h,
5296 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
5297 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
5298 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
5299 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
5300 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
5301 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
5302 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
5303 FSF address.
5304
5305 2005-11-18 Jakub Jelinek <jakub@redhat.com>
5306
5307 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
5308 to nodist_noinst_HEADERS.
5309 * Makefile.in: Rebuilt.
5310
5311 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
5312 add integer count field.
5313 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
5314 omp_nest_lock_t type change.
5315 (omp_init_nest_lock): Likewise. Initialize count to 0.
5316 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
5317 Increment count.
5318 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
5319 Decrement count.
5320 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
5321 Increment count if successful and return the new nesting level.
5322 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
5323 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
5324 * testsuite/libgomp.c/lib-1.c: New test.
5325 * testsuite/libgomp.fortran/lib1.f90: New test.
5326 * testsuite/libgomp.fortran/lib2.f: New test.
5327 * testsuite/libgomp.fortran/lib3.f: New test.
5328
5329 2005-11-17 Richard Henderson <rth@redhat.com>
5330
5331 PR 24845
5332 * Makefile.am (nodist_toolexeclib_HEADERS): New.
5333 * configure.ac (link_gomp): New. Substitute it.
5334 (AC_CONFIG_FILES): Add libgomp.spec.
5335 * libgomp.spec.in: New file.
5336 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
5337 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
5338
5339 2005-11-18 Jakub Jelinek <jakub@redhat.com>
5340
5341 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
5342 reduction(-:var) behaving the same as reduction(+:var).
5343 * testsuite/libgomp.c/reduction-4.c: New test.
5344
5345 2005-11-15 Uros Bizjak <uros@kss-loka.si>
5346
5347 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
5348 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
5349 testsuite/libgomp.c/copyin-3.c,
5350 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
5351 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
5352 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
5353 testsuite/libgomp.c++/pr24455.C,
5354 testsuite/libgomp.fortran/threadprivate1.f90,
5355 testsuite/libgomp.fortran/threadprivate2.f90,
5356 testsuite/libgomp.fortran/threadprivate3.f90,
5357 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
5358 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
5359 testsuite/libgomp.fortran/omp_parse3.f90: Require
5360 effective-target TLS.
5361
5362 2005-11-14 Diego Novillo <dnovillo@redhat.com>
5363
5364 * HEADER: Remove.
5365
5366 2005-11-13 Jakub Jelinek <jakub@redhat.com>
5367
5368 PR libgomp/24797
5369 * team.c (initialize_team): Pass NULL rather than free as
5370 pthread_key_create destructor. Initialize thread specific data
5371 pointer in initial thread to a static local variable rather than
5372 malloced memory.
5373
5374 2005-11-11 Uros Bizjak <uros@kss-loka.si>
5375
5376 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
5377 its location to ld_library_path.
5378
5379 2005-11-10 Diego Novillo <dnovillo@redhat.com>
5380
5381 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
5382
5383 2005-11-10 Diego Novillo <dnovillo@redhat.com>
5384
5385 * testsuite/libgomp.c: Rename from libgomp.dg.
5386
5387 2005-11-09 Diego Novillo <dnovillo@redhat.com>
5388
5389 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
5390 threadprivate variable 'i'.
5391
5392 2005-11-09 Jakub Jelinek <jakub@redhat.com>
5393
5394 * config/linux/s390/futex.h: New file.
5395 * configure.tgt: Use it.
5396
5397 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
5398 before the parallel.
5399
5400 2005-11-08 Jakub Jelinek <jakub@redhat.com>
5401
5402 PR c++/24734
5403 * testsuite/libgomp.c++/master-1.C: New test.
5404
5405 2005-11-07 Jakub Jelinek <jakub@redhat.com>
5406
5407 * testsuite/libgomp.dg/copyin-3.c: New test.
5408
5409 2005-11-07 Jakub Jelinek <jakub@redhat.com>
5410
5411 * testsuite/libgomp.fortran/retval1.f90: New test.
5412 * testsuite/libgomp.fortran/vla7.f90: New test.
5413
5414 2005-11-06 Jakub Jelinek <jakub@redhat.com>
5415
5416 * testsuite/libgomp.fortran/vla2.f90: New test.
5417 * testsuite/libgomp.fortran/vla3.f90: New test.
5418 * testsuite/libgomp.fortran/vla4.f90: New test.
5419 * testsuite/libgomp.fortran/vla5.f90: New test.
5420 * testsuite/libgomp.fortran/vla6.f90: New test.
5421
5422 2005-11-01 Jakub Jelinek <jakub@redhat.com>
5423
5424 * config/linux/sparc/futex.h: New file.
5425 * configure.tgt: Use it.
5426 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
5427
5428 * critical.c: Include stdlib.h.
5429 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
5430 ignoring return value.
5431 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
5432 LIBGOMP_CHECK_SYNC_BUILTINS check.
5433 * configure: Rebuilt.
5434
5435 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5436
5437 * testsuite/libgomp.fortran/vla1.f90: New test.
5438
5439 2005-10-31 Richard Henderson <rth@redhat.com>
5440
5441 * testsuite/libgomp.fortran/character2.f90: Fix race condition
5442 setting 's' in different threads.
5443
5444 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5445
5446 * libgomp.h (attribute_hidden, ialias): Define.
5447 * config/posix/proc.c (omp_get_num_procs): Add ialias.
5448 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
5449 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
5450 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5451 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5452 omp_test_lock, omp_test_nest_lock): Likewise.
5453 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
5454 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5455 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5456 omp_test_lock, omp_test_nest_lock): Likewise.
5457 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
5458 omp_get_dynamic, omp_get_nested): Likewise.
5459 * parallel.c (omp_get_num_threads, omp_get_max_threads,
5460 omp_get_thread_num, omp_in_parallel): Likewise.
5461 * fortran.c (ialias_redirect): Define.
5462 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
5463 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
5464 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
5465 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
5466 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
5467 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
5468 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
5469 omp_get_wtime): Add ialias_redirect.
5470
5471 2005-10-30 Jakub Jelinek <jakub@redhat.com>
5472
5473 * fortran.c: Include stdlib.h.
5474
5475 2005-10-29 Jakub Jelinek <jakub@redhat.com>
5476
5477 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
5478 * Makefile.in: Regenerated.
5479
5480 2005-10-28 Jakub Jelinek <jakub@redhat.com>
5481
5482 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
5483 * libgomp_f.h.in (omp_check_defines): New function.
5484 * env.c: Include libgomp_f.h.
5485 (initialize_env): Call omp_check_defines.
5486
5487 * testsuite/libgomp.dg/copyin-2.c: New test.
5488 * testsuite/libgomp.c++/copyin-2.C: New test.
5489 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
5490
5491 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
5492 * testsuite/libgomp.fortran/sharing2.f90: New test.
5493
5494 * testsuite/libgomp.dg/copyin-1.c: New test.
5495 * testsuite/libgomp.c++/copyin-1.C: New test.
5496
5497 2005-10-26 Jakub Jelinek <jakub@redhat.com>
5498
5499 * testsuite/libgomp.fortran/crayptr1.f90: New test.
5500
5501 * testsuite/libgomp.fortran/workshare1.f90: New test.
5502
5503 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
5504 only test.
5505 * libgomp.fortran/sharing1.f90: New test.
5506
5507 2005-10-24 Jakub Jelinek <jakub@redhat.com>
5508
5509 PR c++/24502
5510 * testsuite/libgomp.c++/loop-7.C: New test.
5511
5512 * testsuite/libgomp.dg/nestedfn-2.c: New test.
5513
5514 * testsuite/libgomp.dg/nestedfn-1.c: New test.
5515 * testsuite/libgomp.fortran/reduction6.f90: New test.
5516 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
5517
5518 2005-10-23 Richard Henderson <rth@redhat.com>
5519
5520 * testsuite/libgomp.c++/ctor-1.C: New.
5521 * testsuite/libgomp.c++/ctor-2.C: New.
5522 * testsuite/libgomp.c++/ctor-3.C: New.
5523 * testsuite/libgomp.c++/ctor-4.C: New.
5524 * testsuite/libgomp.c++/ctor-5.C: New.
5525 * testsuite/libgomp.c++/ctor-6.C: New.
5526 * testsuite/libgomp.c++/ctor-7.C: New.
5527 * testsuite/libgomp.c++/ctor-8.C: New.
5528 * testsuite/libgomp.c++/ctor-9.C: New.
5529
5530 2005-10-21 Diego Novillo <dnovillo@redhat.com>
5531
5532 PR 24455
5533 * testsuite/libgomp.c++/pr24455-1.C: New test.
5534 * testsuite/libgomp.c++/pr24455.C: New test.
5535 * testsuite/libgomp.dg/pr24455-1.c: New test.
5536 * testsuite/libgomp.dg/pr24455.c: New test.
5537
5538 2005-10-20 Richard Henderson <rth@redhat.com>
5539
5540 * testsuite/libgomp.c++/loop-6.C: New.
5541 * testsuite/libgomp.dg/loop-3.c: New.
5542
5543 2005-10-20 Jakub Jelinek <jakub@redhat.com>
5544
5545 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
5546 explicitly private.
5547 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
5548 explicitly shared.
5549
5550 2005-10-19 Diego Novillo <dnovillo@redhat.com>
5551
5552 * testsuite/libgomp.fortran/jacobi.f: New test.
5553
5554 2005-10-19 Richard Henderson <rth@redhat.com>
5555
5556 * configure.tgt (i?86-linux): Default to with_arch instead of
5557 CFLAGS. Add -mtune to match target_cpu.
5558 (x86_64-linux): Tune to i686.
5559
5560 * fortran.c (omp_test_nest_lock_): Fix typo.
5561
5562 2005-10-19 Jakub Jelinek <jakub@redhat.com>
5563
5564 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5565 gomp_ordered_sync): Do nothing if team->nthreads == 1.
5566 * testsuite/libgomp.dg/ordered-3.c: New test.
5567
5568 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
5569 Remove volatile keyword.
5570
5571 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
5572 in COMMON block to avoid warnings on 64-bit targets.
5573
5574 2005-10-18 Diego Novillo <dnovillo@redhat.com>
5575
5576 * testsuite/libgomp.dg/shared-3.c: New test.
5577
5578 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5579
5580 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
5581 * testsuite/libgomp.fortran/reduction5.f90: New test.
5582
5583 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5584
5585 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
5586 dg-options.
5587 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
5588 flush loop now that __sync_synchronize has proper memory barrier.
5589 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
5590 Add -ffixed-form to dg-options.
5591
5592 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5593
5594 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
5595 from subdirectories.
5596 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
5597 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
5598 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
5599 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
5600 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
5601 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
5602 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
5603 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
5604 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
5605 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
5606 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
5607 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
5608 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
5609 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
5610 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
5611 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
5612 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
5613 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
5614 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
5615 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
5616 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
5617 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
5618 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
5619 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
5620 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
5621
5622 2005-10-17 Jakub Jelinek <jakub@redhat.com>
5623
5624 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
5625 lang_library_path exists. Use find instead of glob to gather tests.
5626 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
5627
5628 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5629
5630 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
5631 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
5632 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
5633 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
5634 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
5635 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
5636 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
5637 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
5638 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
5639 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
5640 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
5641 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
5642 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
5643
5644 2005-10-15 Jakub Jelinek <jakub@redhat.com>
5645
5646 * testsuite/libgomp.dg/vla-1.c: New test.
5647
5648 * testsuite/libgomp.fortran/reference2.f90: New test.
5649
5650 * testsuite/libgomp.fortran/character2.f90: Remove explicit
5651 declaration of omp_get_thread_num.
5652 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
5653 use omp_lib.
5654
5655 * testsuite/libgomp.fortran/reduction1.f90: New test.
5656 * testsuite/libgomp.fortran/reduction2.f90: New test.
5657 * testsuite/libgomp.fortran/reduction3.f90: New test.
5658 * testsuite/libgomp.fortran/reduction4.f90: New test.
5659
5660 2005-10-13 Richard Henderson <rth@redhat.com>
5661
5662 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
5663 * Makefile.in: Regenerate.
5664 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
5665 * libgomp.h: Include bar.h.
5666 (struct gomp_barrier): Remove.
5667 (struct gomp_team): Add barrier. Replace master_barrier with
5668 master_release. Replace threads with ordered_release.
5669 (struct gomp_thread): Replace barrier with release.
5670 * ordered.c (gomp_ordered_first): Update for ordered_release change.
5671 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
5672 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
5673 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
5674 (GOMP_single_copy_end): Likewise.
5675 * team.c (gomp_threads_dock): New.
5676 (gomp_barrier_init, gomp_barrier_destroy): Remove.
5677 (gomp_thread_start): Use gomp_barrier_wait.
5678 (new_team, free_team): Update for gomp_team changes.
5679 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
5680 (gomp_team_end): Use gomp_barrier_wait.
5681 (initialize_team): Update for gomp_thread changes.
5682 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
5683 (gomp_work_share_end_nowait): Use atomic ops when available.
5684 * config/linux/bar.c, config/linux/bar.h: New files.
5685 * config/posix/bar.c, config/posix/bar.h: New files.
5686
5687 2005-10-13 Jakub Jelinek <jakub@redhat.com>
5688
5689 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
5690 * testsuite/libgomp.dg/single-2.c: New test.
5691
5692 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
5693 lang_link_flags): Unset, so that they aren't inherited from previously
5694 sourced *.exp.
5695
5696 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
5697
5698 2005-10-12 Richard Henderson <rth@redhat.com>
5699
5700 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
5701 (libgomp_init): Use lang_test_file, lang_library_path, and
5702 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
5703
5704 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
5705 (lang_test_file, lang_link_flags): New.
5706 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
5707
5708 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
5709 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
5710 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
5711 testsuite/libgomp.c++/parallel-1.C,
5712 testsuite/libgomp.c++/reduction-1.C,
5713 testsuite/libgomp.c++/reduction-2.C,
5714 testsuite/libgomp.c++/reduction-3.C,
5715 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
5716 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
5717 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
5718 New files, largely cribbed from the C testsuite.
5719
5720 2005-10-12 Jakub Jelinek <jakub@redhat.com>
5721
5722 * testsuite/libgomp.fortran/character1.f90: New test.
5723 * testsuite/libgomp.fortran/character2.f90: New test.
5724
5725 * testsuite/libgomp.dg/nested-1.c: New test.
5726 * testsuite/libgomp.dg/nested-2.c: New test.
5727 * testsuite/libgomp.fortran/do1.f90: New test.
5728 * testsuite/libgomp.fortran/do2.f90: New test.
5729
5730 * testsuite/libgomp.fortran/reference1.f90: New test.
5731
5732 2005-10-11 Jakub Jelinek <jakub@redhat.com>
5733
5734 * testsuite/libgomp.dg/reduction-1.c: New test.
5735 * testsuite/libgomp.dg/reduction-2.c: New test.
5736 * testsuite/libgomp.dg/reduction-3.c: New test.
5737
5738 2005-10-10 Jakub Jelinek <jakub@redhat.com>
5739
5740 * testsuite/libgomp.dg/atomic-1.c: New test.
5741 * testsuite/libgomp.dg/atomic-2.c: New test.
5742
5743 2005-10-09 Richard Henderson <rth@redhat.com>
5744
5745 * critical.c (atomic_lock): New.
5746 (initialize_critical): Initialize it.
5747 (GOMP_atomic_start, GOMP_atomic_end): New.
5748 * libgomp.map: Export them.
5749 * libgomp_g.h: Declare them.
5750
5751 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
5752
5753 2005-10-02 Richard Henderson <rth@redhat.com>
5754
5755 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
5756 to XCFLAGS instead of CFLAGS.
5757
5758 2005-09-30 Richard Henderson <rth@redhat.com>
5759
5760 * configure.ac: Determine whether -pthread or -lpthread is needed.
5761 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
5762 * Makefine.in, configure: Rebuild.
5763
5764 2005-09-28 Richard Henderson <rth@redhat.com>
5765
5766 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
5767 * testsuite/libgomp.dg/omp-single-3.c: New test.
5768
5769 2005-09-28 Diego Novillo <dnovillo@redhat.com>
5770
5771 * testsuite/libgomp.dg/omp-single-2.c: New test.
5772 * testsuite/libgomp.dg/shared-2.c: Fix return code.
5773
5774 2005-09-27 Richard Henderson <rth@redhat.com>
5775
5776 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
5777 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
5778
5779 2005-09-27 Jakub Jelinek <jakub@redhat.com>
5780
5781 * testsuite/libgomp.dg/omp-loop03.c: New test.
5782
5783 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5784
5785 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
5786
5787 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5788
5789 * testsuite/libgomp.dg/omp-single-1.c: New test.
5790 * testsuite/libgomp.dg/shared-1.c: Return 0.
5791 Add prototype for abort.
5792 * testsuite/libgomp.dg/shared-2.c: Likewise.
5793
5794 2005-09-26 Jakub Jelinek <jakub@redhat.com>
5795
5796 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
5797 constructs.
5798
5799 2005-09-26 Diego Novillo <dnovillo@redhat.com>
5800
5801 * testsuite/libgomp.dg/shared-1.c: New test.
5802 * testsuite/libgomp.dg/shared-2.c: New test.
5803
5804 2005-09-24 Richard Henderson <rth@redhat.com>
5805
5806 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
5807
5808 2005-09-24 Richard Henderson <rth@redhat.com>
5809
5810 * iter.c (gomp_iter_static_next): Round up when computing number
5811 of iterations. Don't bother distributing a remainder equally.
5812
5813 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
5814 Don't call srand. Zero b before testing.
5815 (main): New.
5816
5817 2005-09-24 Jakub Jelinek <jakub@redhat.com>
5818
5819 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
5820 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
5821
5822 2005-09-23 Jakub Jelinek <jakub@redhat.com>
5823
5824 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
5825 without !$omp end do, followed immediately by subroutine end.
5826
5827 2005-09-23 Diego Novillo <dnovillo@redhat.com>
5828
5829 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
5830
5831 2005-09-22 Richard Henderson <rth@redhat.com>
5832
5833 * critical.c (GOMP_critical_name_start): Change argument to void**.
5834 Reuse the pointer space if the mutex fits.
5835 (GOMP_critical_name_end): Likewise.
5836 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
5837 * libgomp_g.h (GOMP_critical_name_start): Update decl.
5838 (GOMP_critical_name_end): Likewise.
5839 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
5840 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
5841
5842 2005-09-20 Richard Henderson <rth@redhat.com>
5843
5844 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
5845 (create_lock_lock): New.
5846 (initialize_critical): Initialize it.
5847 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
5848 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
5849
5850 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5851
5852 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
5853
5854 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5855
5856 * testsuite/libgomp.dg/omp-loop01.c: New test.
5857 * testsuite/libgomp.dg/omp-loop02.c: New test.
5858
5859 2005-09-20 Jakub Jelinek <jakub@redhat.com>
5860
5861 * configure.ac (AC_PROG_FC): Add.
5862 (USE_FORTRAN): New automake conditional.
5863 * configure: Rebuilt.
5864 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
5865 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
5866 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
5867 Add rules to build them.
5868 * Makefile.in: Rebuilt.
5869 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
5870 OMP_NEST_LOCK_KIND.
5871 * libgomp.map: Add Fortran wrappers.
5872 * libgomp_f.h.in: New file.
5873 * omp_lib.h.in: New file.
5874 * omp_lib.f90.in: New file.
5875 * fortran.c: New file.
5876 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
5877 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
5878 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
5879 libgfortran has been built.
5880 * testsuite/libgomp.fortran/fortran.exp: New file.
5881 * testsuite/libgomp.fortran/omp_cond1.f: New test.
5882 * testsuite/libgomp.fortran/omp_cond2.f: New test.
5883 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
5884 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
5885 * testsuite/libgomp.fortran/omp_hello.f: New test.
5886 * testsuite/libgomp.fortran/omp_orphan.f: New test.
5887 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
5888 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
5889 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
5890 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
5891 * testsuite/libgomp.fortran/omp_reduction.f: New test.
5892 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
5893 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
5894
5895 2005-08-30 Richard Henderson <rth@redhat.com>
5896
5897 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
5898 function for when aliases are not usable.
5899 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
5900 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5901 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
5902 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
5903 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
5904 GOMP_loop_ordered_guided_next): Likewise.
5905 * ordered.c (GOMP_ordered_start): Likewise.
5906
5907 2005-08-01 Diego Novillo <dnovillo@redhat.com>
5908
5909 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
5910 * testsuite/libgomp.dg/omp_hello.c: Fix return code
5911 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
5912 * testsuite/libgomp.dg/omp_orphan.c: Likewise
5913 * testsuite/libgomp.dg/omp_reduction.c: Likewise
5914 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
5915 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
5916 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
5917 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
5918
5919 2005-07-07 Eric Christopher <echristo@redhat.com>
5920 Diego Novillo <dnovillo@redhat.com>
5921
5922 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5923 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5924 up code.
5925 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5926 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5927 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5928 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5929 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5930 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5931 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5932
5933 2005-06-13 Diego Novillo <dnovillo@redhat.com>
5934
5935 * TOPLEVEL.patch: Remove.
5936
5937 2005-05-16 Richard Henderson <rth@redhat.com>
5938
5939 * configure.ac: Test for clock_gettime.
5940 * config.h.in, configure: Rebuild.
5941 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5942 (omp_get_wtime): Use clock_gettime if available.
5943 (omp_get_wtick): Use clock_getres if available.
5944
5945 2005-05-11 Richard Henderson <rth@redhat.com>
5946
5947 * config/linux/ia64/futex.h: New file.
5948 * configure.tgt: Use it.
5949
5950 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5951
5952 2005-05-07 Richard Henderson <rth@redhat.com>
5953
5954 * config/linux/powerpc/futex.h: New file.
5955 * configure.tgt: Use it.
5956
5957 * config/linux/i486/futex.h: Merge ...
5958 * config/linux/x86_64/futex.h: ... into ...
5959 * config/linux/x86/futex.h: ... here.
5960 * configure.tgt: Update to match.
5961
5962 2005-05-06 Richard Henderson <rth@redhat.com>
5963
5964 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5965 * config/linux/i486/futex.h: Likewise.
5966 * config/linux/x86_64/futex.h: Likewise.
5967
5968 * config/linux/lock.c: New file.
5969 * config/linux/omp-lock.h: New file.
5970
5971 * critical.c, env.h: Don't include omp.h
5972 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5973 * config/posix/time.c: Likewise.
5974 * config/posix/omp-lock.h: New file.
5975 * libgomp.h: Include omp-lock.h and omp.h.
5976 * Makefile.am (nodist_include_HEADERS): New.
5977 (omp.h): New rule.
5978 * configure.ac (PERL): New.
5979 * mkomp_h.pl: New file.
5980 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5981 with templates.
5982 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5983
5984 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5985 build directory. Re-add -march=i486 hack.
5986
5987 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5988 (libgomp_link_flags): Remove.
5989 (libgomp_initialized): Remove.
5990 (libgomp_init): Don't protect from reinitialization. Copy code
5991 from libstdc++ for getting the multilib set correctly.
5992
5993 2005-05-05 Richard Henderson <rth@redhat.com>
5994
5995 * config/linux/alpha/futex.h: New file.
5996 * configure.tgt (alpha*-*-linux*): Use it.
5997
5998 * config/posix/mutex.c: New file.
5999 * config/posix/sem.c: Use libgomp.h.
6000
6001 * configure.tgt (x86_64-linux): Also test CC for -m32.
6002 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
6003
6004 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
6005 after $gccpath.
6006
6007 * Makefile.am (SUBDIRS): New.
6008 (libgomp_la_LDFLAGS): Add -lpthread.
6009 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
6010 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
6011
6012 * libgomp_g.h: New file.
6013 * libgomp.h: Split out all public declarations to libgomp_g.h.
6014 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
6015 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
6016 * config/linux/sem.h: Likewise.
6017 * config/posix/sem.h: Likewise.
6018
6019 * Makefile.am (AM_LDFLAGS): New.
6020 (libgomp_version_script): Split out from ...
6021 (libgomp_la_LDFLAGS): ... here.
6022 (libgomp_version_info): New.
6023 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
6024 (LIBGOMP_ENABLE): New.
6025 (LIBGOMP_CHECK_LINKER_FEATURES): New.
6026 (LIBGOMP_ENABLE_SYMVERS): New.
6027 * configure.ac (AC_INIT): Version 1.0.
6028 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
6029 (enable-linux-futex): Likewise. Rename from enable-futex.
6030 (libtool_VERSION): New.
6031 (LIBGOMP_ENABLE_SYMVERS): Use it.
6032 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
6033 * Makefile.in, aclocal.m4, configure: Rebuild.
6034
6035 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
6036 (gomp_mutex_unlock_slow): Fix typo.
6037 * config/linux/sem.c: Similarly.
6038 (gomp_sem_post_slow): Fix typo.
6039 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
6040 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
6041 [__PIC__] (sys_futex0): Don't use tmp output in asm.
6042
6043 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
6044 (libgomp_la_LDFLAGS): Add top_srcdir to path.
6045 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
6046 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
6047 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
6048 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
6049 LDFLAGS. Pull enable_futex check to top-level.
6050 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
6051 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
6052
6053 First attempt at real configury.
6054 * Makefile, config.h: Remove file.
6055 * Makefile.am, Makefile.in: New file.
6056 * acinclude.m4 aclocal.m4: New file.
6057 * configure.ac, configure.tgt, configure: New file.
6058
6059 * config/posix/lock.c: Rename from sys-lock.c.
6060 * config/posix/mutex.h: Rename from sys-mutex.h.
6061 * config/posix/sem.c: Rename from sys-sem.c.
6062 * config/posix/sem.h: Rename from sys-sem.h.
6063 * config/posix/proc.c: Rename from sys-proc.c.
6064 * config/posix/time.c: Rename from sys-proc.c.
6065
6066 * config/linux/mutex.c: New file.
6067 * config/linux/mutex.h: New file.
6068 * config/linux/sem.c: New file.
6069 * config/linux/sem.h: New file.
6070 * config/linux/i486/futex.h: New file.
6071 * config/linux/x86_64/futex.h: New file.
6072
6073 2005-05-04 Richard Henderson <rth@redhat.com>
6074
6075 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
6076 * libgomp.h: Declare them.
6077 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
6078 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
6079
6080 2005-05-04 Richard Henderson <rth@redhat.com>
6081
6082 * libgomp-1 code drop
6083
6084 2005-05-04 Richard Henderson <rth@redhat.com>
6085
6086 * iter.c (gomp_iter_static_next): Return tri-state on 0.
6087 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
6088 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
6089 (gomp_iter_static_next): Update.
6090 (gomp_ordered_static_next): Update.
6091 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
6092 (gomp_loop_ordered_static_start): Likewise. Exit early for a
6093 totally empty range.
6094 (gomp_loop_ordered_static_next): Refine test for calling
6095 gomp_ordered_static_next.
6096 * testsuite/ordered-1.c: Add case for more threads than iterations.
6097
6098 * iter.c (gomp_iter_runtime_next_locked): Remove.
6099 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
6100 gomp_loop_guided_start, gomp_loop_ordered_static_start,
6101 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
6102 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
6103 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
6104 gomp_loop_ordered_guided_next): Downcase name, make static, add
6105 an external alias with the old name.
6106 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
6107 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
6108 switch and call one of the above static functions.
6109 * libgomp.h: Update.
6110
6111 * work.c (gomp_work_share_start): Lock the mutex for !first too.
6112 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
6113 GOMP_loop_guided_start, GOMP_loop_runtime_start,
6114 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
6115 GOMP_loop_ordered_guided_start): Update to match.
6116 * sections.c (GOMP_sections_start): Likewise.
6117 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
6118
6119 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
6120 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
6121 Use bounds check instead of modulus.
6122 (gomp_ordered_sync): Split out of GOMP_ordered_start.
6123 (gomp_ordered_last): Don't sync with ordered_owner here.
6124 (gomp_ordered_next): Likewise.
6125 (gomp_ordered_static_loop_next): Likewise.
6126 * loop.c, libgomp.h: Update to match.
6127
6128 * libgomp.h (GOMP_barrier): Declare.
6129
6130 * testsuite/barrier-1.c: New file.
6131 * testsuite/critical-1.c: New file.
6132 * testsuite/ordered-2.c: New file.
6133 * testsuite/ordered-1.c: New file.
6134 * testsuite/sections-1.c: New file.
6135 * testsuite/single-1.c: New file.
6136 * testsuite/Makefile (TESTS): Add them.
6137
6138 2005-05-04 Richard Henderson <rth@redhat.com>
6139
6140 * libgomp.h (struct gomp_work_share): Add ordered_owner.
6141 * loop.c (GOMP_loop_static_start): If not the startup thread,
6142 acquire the mutex to wait for initialization complete.
6143 (GOMP_loop_ordered_static_start): Likewise.
6144 (GOMP_loop_ordered_runtime_start): Likewise.
6145 (GOMP_loop_ordered_static_first): Remove.
6146 (GOMP_loop_ordered_dynamic_first): Remove.
6147 (GOMP_loop_ordered_guided_first): Remove.
6148 (GOMP_loop_ordered_runtime_first): Remove.
6149 * ordered.c (gomp_ordered_loop_first): Post to own release when
6150 we're the first thread.
6151 (gomp_ordered_loop_last): Wait on release if not owner.
6152 (gomp_ordered_loop_next): Likewise.
6153 (gomp_ordered_static_loop_init): New.
6154 (gomp_ordered_static_loop_next): Use ordered_owner.
6155 (GOMP_ordered_start): Likewise.
6156 * work.c (gomp_new_work_share): Initialize ordered_owner.
6157
6158 2005-05-03 Richard Henderson <rth@redhat.com>
6159
6160 * Makefile (OPT): New.
6161 (CFLAGS): Use it.
6162
6163 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
6164 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
6165 * libgomp.h, libgomp.map, NOTES: Update to match.
6166
6167 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
6168 Add initialized and thr members.
6169 (gomp_thread_start): Pause when initially spawned to wait for
6170 the whole team to be created.
6171 (gomp_team_start): Release team members at the end.
6172
6173 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
6174 (f_foo_1): Use GOMP_loop_end.
6175 (f_foo_2): Use GOMP_loop_end_nowait.
6176
6177 * testsuite/loop-2.c: New file.
6178 * testsuite/Makefile (TESTS): Add it.
6179
6180 2005-05-03 Richard Henderson <rth@redhat.com>
6181
6182 * iter.c (gomp_iter_static_next): Fix overflow check typo.
6183 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
6184 * team.c (new_team): Initialize oldest_live_gen to 1 if no
6185 initial work_share.
6186
6187 * testsuite/Makefile: New file.
6188 * testsuite/loop-1.c: New file.
6189
6190 2005-05-03 Richard Henderson <rth@redhat.com>
6191
6192 Initial implementation and checkin.