1 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
4 * libgomp.map: Add 4.0.2 version.
5 * target.c (offload_image_descr): Add version field.
6 (gomp_load_image_to_device): Add version argument. Adjust plugin
7 call. Improve load mismatch diagnostic.
8 (gomp_unload_image_from_device): Add version argument. Adjust plugin
10 (GOMP_offload_regster): Make stub function, move bulk to ...
11 (GOMP_offload_register_ver): ... here. Process version argument.
12 (GOMP_offload_unregister): Make stub function, move bulk to ...
13 (GOMP_offload_unregister_ver): ... here. Process version argument.
14 (gomp_init_device): Process version field.
15 (gomp_unload_device): Process version field.
16 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
17 macros. Check plugin version.
18 * libgomp.h (gomp_device_descr): Add version function field. Adjust
19 loader and unloader types.
20 * oacc-host.c: Include gomp-constants.h.
22 (host_load_image, host_unload_image): Adjust.
23 (host_dispatch): Add host_version.
24 * plugin/plugin-nvptx.c: Include gomp-constants.h.
25 (GOMP_OFFLOAD_version): New.
26 (GOMP_OFFLOAD_load_image): Add version arg and check it.
27 (GOMP_OFFLOAD_unload_image): Likewise.
28 * plugin/plugin-host.c: Include gomp-constants.h.
29 (GOMP_OFFLOAD_version): New.
30 (GOMP_OFFLOAD_load_image): Add version arg.
31 (GOMP_OFFLOAD_unload_image): Likewise.
33 2015-08-24 Tom de Vries <tom@codesourcery.com>
35 PR tree-optimization/65468
36 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
38 2015-08-24 Tom de Vries <tom@codesourcery.com>
40 PR tree-optimization/65468
41 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
43 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
47 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
48 (gomp_iter_guided_next): Idem.
49 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
50 (gomp_iter_ull_guided_next): Idem.
51 * config/linux/wait.h (do_spin): Idem.
53 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
55 * libgomp-plugin.h (enum offload_target_type): Remove
56 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
57 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
58 * openacc.h (enum acc_device_t): Likewise.
59 * openacc_lib.h: Likewise.
60 * oacc-init.c (name_of_acc_device_t): Don't handle it.
61 (acc_on_device): Just use __builtin_acc_on_device.
62 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
63 of acc_on_device builtin.
64 * plugin/plugin-host.h: Remove file.
65 * plugin/plugin-host.c: Likewise, but salvage some content into...
66 * oacc-host.c: ... this file.
67 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
68 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
69 * Makefile.in: Regenerate.
70 * configure: Likewise.
71 * testsuite/lib/libgomp.exp
72 (check_effective_target_openacc_host_nonshm_selected): Remove.
73 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
74 ACC_DEVICE_TYPE=host_nonshm.
75 * testsuite/libgomp.oacc-c/c.exp: Likewise.
76 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
77 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
78 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
79 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
80 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
82 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
83 Jakub Jelinek <jakub@redhat.com>
85 * config/nvptx/affinity.c: New file.
86 * config/nvptx/alloc.c: Likewise.
87 * config/nvptx/bar.c: Likewise.
88 * config/nvptx/barrier.c: Likewise.
89 * config/nvptx/critical.c: Likewise.
90 * config/nvptx/env.c: Likewise.
91 * config/nvptx/error.c: Likewise.
92 * config/nvptx/fortran.c: Likewise.
93 * config/nvptx/iter.c: Likewise.
94 * config/nvptx/iter_ull.c: Likewise.
95 * config/nvptx/libgomp-plugin.c: Likewise.
96 * config/nvptx/lock.c: Likewise.
97 * config/nvptx/loop.c: Likewise.
98 * config/nvptx/loop_ull.c: Likewise.
99 * config/nvptx/mutex.c: Likewise.
100 * config/nvptx/oacc-async.c: Likewise.
101 * config/nvptx/oacc-cuda.c: Likewise.
102 * config/nvptx/oacc-host.c: Likewise.
103 * config/nvptx/oacc-init.c: Likewise.
104 * config/nvptx/oacc-mem.c: Likewise.
105 * config/nvptx/oacc-parallel.c: Likewise.
106 * config/nvptx/oacc-plugin.c: Likewise.
107 * config/nvptx/omp-lock.h: Likewise.
108 * config/nvptx/ordered.c: Likewise.
109 * config/nvptx/parallel.c: Likewise.
110 * config/nvptx/proc.c: Likewise.
111 * config/nvptx/ptrlock.c: Likewise.
112 * config/nvptx/sections.c: Likewise.
113 * config/nvptx/sem.c: Likewise.
114 * config/nvptx/single.c: Likewise.
115 * config/nvptx/splay-tree.c: Likewise.
116 * config/nvptx/target.c: Likewise.
117 * config/nvptx/task.c: Likewise.
118 * config/nvptx/team.c: Likewise.
119 * config/nvptx/time.c: Likewise.
120 * config/nvptx/work.c: Likewise.
121 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
122 * configure: Regenerate.
123 * configure.tgt (config_path): Set to "nvptx" for target
126 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
128 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
130 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
132 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
133 (cuda_errlist): Constify.
134 (errmsg): Move into ...
135 (cuda_error): ... here. Make smaller.
136 (_XSTR, _STR): Delete.
137 (cuda_synames): Delete.
138 (verify_device_library): Delete.
139 (nvptx_init): Don't call it.
141 2015-07-28 Tom de Vries <tom@codesourcery.com>
143 * testsuite/libgomp.c/uns-outer-4.c: New test.
145 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
147 * testsuite/libgomp.c/pr66714.c: New test.
149 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
152 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
153 (fib_ref): New function.
154 (fib): Correct corner cases in the recursion.
155 (main): Replace the non-simd loop with fib_ref call.
156 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
158 (fibonacci): Lower the parameter N to 30. Correct accordingly check
159 for the last array element value. Replace the non-simd loop with
160 fib_ref call. Remove redundant b_ref array. Remove the comparison
161 of the last array element with according Fibonacci sequence element.
162 (fib): Correct corner cases in the recursion.
164 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
166 * target.c (gomp_offload_image_to_device): Rename to ...
167 (gomp_load_image_to_device): ... here.
168 (GOMP_offload_register): Adjust call.
169 (gomp_init_device): Likewise.
170 (gomp_unload_image_from_device): New. Broken out of ...
171 (GOMP_offload_unregister): ... here. Call it.
172 (gomp_unload_device): New.
173 * libgomp.h (gomp_unload_device): Declare.
174 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
177 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
179 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
181 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
183 (goacc_waits): Move !num_waits handling to ...
184 (GOACC_wait): ... here, the only caller that might have zero waits.
186 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
187 (struct ptx_image_data): Move earlier, add fns field.
188 (struct ptx_device): Add images and image_lock fields.
189 (ptx_images, ptx_image_lock): Delete.
190 (nvptx_open_device): Initialize images and image_lock fields.
191 (nvptx_close_device): Destroy image_lock.
192 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
193 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
196 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
198 * target.c (GOMP_offload_register): Use int for device type arg.
199 (GOMP_offload_unregister): Likewise.
201 * target.c (struct_offload_image_descr): Constify host_table.
202 (gomp_offload_image_to_device): Likewise.
203 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
205 * libgomp.h (gomp_device_descr): Constify target data arguments.
206 * target.c (struct offload_image_descr): Constify target_data.
207 (gomp_offload_image_to_device): Likewise.
208 (GOMP_offload_register): Likewise.
209 (GOMP_offload_unrefister): Likewise.
210 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
211 GOMP_OFFLOAD_unload_image): Constify target data.
212 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
213 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
215 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
217 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
218 Workaround driver library const error.
219 (struct nvptx_tdata, nvptx_tdata_t): New.
220 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
223 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
225 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
226 of EPS parameter from integer to real.
227 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
228 type of EPS parameter from integer to real.
230 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
232 * team.c (get_last_team): New.
233 (gomp_new_team): Recycle last non-nested team if possible.
234 (gomp_team_end): Move team work share list free lock destruction
236 (free_team): ... here.
238 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
240 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
241 and ref from int to double. Replaced their comparison with
242 an inequality of their difference and EPS.
243 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
244 comparison of pri and a reference number with an inequality of their
246 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
247 the comparison of sum and sum_ref with an inequality of their
249 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
250 the comparison of pri and a reference number with an inequality of
251 their difference and EPS.
253 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
255 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
256 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
257 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
258 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
259 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
260 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
261 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
262 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
263 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
264 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
265 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
266 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
267 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
269 (vec_mult): Likewise. Add #pragma omp taskwait.
270 (main): Adjust caller.
271 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
272 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
273 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
274 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
275 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
276 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
277 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
278 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
279 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
280 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
281 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
282 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
283 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
284 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
285 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
286 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
287 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
288 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
289 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
290 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
291 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
292 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
293 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
294 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
295 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
296 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
297 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
298 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
299 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
300 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
301 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
302 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
303 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
304 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
305 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
306 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
307 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
308 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
309 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
310 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
311 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
312 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
313 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
314 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
315 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
316 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
317 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
318 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
319 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
320 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
321 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
322 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
323 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
324 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
325 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
326 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
327 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
328 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
329 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
330 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
331 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
332 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
333 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
334 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
335 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
336 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
337 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
338 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
339 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
340 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
341 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
342 (vec_mult): Add !$omp taskwait.
343 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
344 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
345 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
346 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
347 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
348 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
349 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
350 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
351 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
352 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
353 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
354 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
355 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
356 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
357 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
358 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
359 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
360 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
361 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
362 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
363 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
364 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
365 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
366 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
367 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
368 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
369 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
370 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
371 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
372 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
373 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
374 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
375 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
376 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
377 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
378 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
379 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
380 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
381 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
382 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
383 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
384 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
385 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
386 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
387 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
388 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
389 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
390 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
391 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
392 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
393 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
394 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
395 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
396 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
397 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
398 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
399 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
400 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
401 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
402 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
403 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
404 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
405 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
406 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
407 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
408 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
409 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
411 2015-07-10 Tom de Vries <tom@codesourcery.com>
413 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
414 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
416 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
419 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
420 in a 64-bit configuration.
421 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
422 offloading testing if no such device is available.
423 * testsuite/libgomp.oacc-c/c.exp: Likewise.
424 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
426 2015-07-08 Tom de Vries <tom@codesourcery.com>
428 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
430 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
432 2015-07-07 Tom de Vries <tom@codesourcery.com>
434 PR tree-optimization/66642
435 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
436 iteration count case.
437 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
438 function, factor out of ...
439 (main): ... here. Test low iteration count case.
441 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
443 * libgomp.h (gomp_thread_pool): Comment last_team field.
445 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
447 * testsuite/libgomp.c++/pr66702-1.C: Require
448 vect_simd_clones effective target.
449 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
451 2015-06-30 Tom de Vries <tom@codesourcery.com>
453 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
454 already set. Use DEFAULT_CFLAGS in dg-runtest.
455 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
458 2015-06-30 Tom de Vries <tom@codesourcery.com>
460 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
461 already set. Use DEFAULT_CFLAGS in dg-runtest.
462 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
463 * testsuite/libgomp.c++/pr64824.C: Same.
464 * testsuite/libgomp.c++/pr64868.C: Same.
465 * testsuite/libgomp.c++/pr66199-1.C: Same.
466 * testsuite/libgomp.c++/pr66199-2.C: Same.
467 * testsuite/libgomp.c++/target-2.C: Same.
468 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
469 -std=<standard> option.
470 * testsuite/libgomp.c++/udr-11.C: Same.
471 * testsuite/libgomp.c++/udr-12.C: Same.
472 * testsuite/libgomp.c++/udr-13.C: Same.
473 * testsuite/libgomp.c++/udr-14.C: Same.
474 * testsuite/libgomp.c++/udr-15.C: Same.
475 * testsuite/libgomp.c++/udr-16.C: Same.
476 * testsuite/libgomp.c++/udr-17.C: Same.
477 * testsuite/libgomp.c++/udr-18.C: Same.
478 * testsuite/libgomp.c++/udr-19.C: Same.
479 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
480 * testsuite/libgomp.c++/simd-1.C: Same.
481 * testsuite/libgomp.c++/simd-2.C: Same.
482 * testsuite/libgomp.c++/simd-3.C: Same.
483 * testsuite/libgomp.c++/simd-4.C: Same.
484 * testsuite/libgomp.c++/simd-5.C: Same.
485 * testsuite/libgomp.c++/simd-6.C: Same.
486 * testsuite/libgomp.c++/simd-7.C: Same.
487 * testsuite/libgomp.c++/simd-8.C: Same.
488 * testsuite/libgomp.c++/simd-9.C: Same.
489 * testsuite/libgomp.c++/simd10.C: Same.
490 * testsuite/libgomp.c++/simd11.C: Same.
491 * testsuite/libgomp.c++/simd12.C: Same.
492 * testsuite/libgomp.c++/simd13.C: Same.
494 2015-06-30 Jakub Jelinek <jakub@redhat.com>
497 * testsuite/libgomp.c++/pr66702-1.C: New test.
498 * testsuite/libgomp.c++/pr66702-2.C: New test.
500 2015-06-30 Tom de Vries <tom@codesourcery.com>
502 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
503 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
504 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
505 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
507 2015-06-30 Tom de Vries <tom@codesourcery.com>
509 PR tree-optimization/66652
510 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
511 using restrict pointers.
512 (main): Add arguments to calls to f.
513 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
515 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
517 * configure.ac: Fix check for header <sys/sysctl.h>.
518 * configure: Regenerate.
519 * config.h.in: Likewise.
521 2015-06-23 Tom de Vries <tom@codesourcery.com>
523 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
525 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
527 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
529 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
533 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
534 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
536 2015-06-15 Tom de Vries <tom@codesourcery.com>
538 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
539 dg-additional-options for any remaining options.
540 * testsuite/libgomp.c/atomic-2.c: Same.
541 * testsuite/libgomp.c/atomic-4.c: Same.
542 * testsuite/libgomp.c/atomic-5.c: Same.
543 * testsuite/libgomp.c/atomic-6.c: Same.
544 * testsuite/libgomp.c/autopar-1.c: Same.
545 * testsuite/libgomp.c/copyin-1.c: Same.
546 * testsuite/libgomp.c/copyin-2.c: Same.
547 * testsuite/libgomp.c/copyin-3.c: Same.
548 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
549 * testsuite/libgomp.c/nestedfn-5.c: Same.
550 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
551 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
552 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
553 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
554 * testsuite/libgomp.c/pr32362-1.c: Same.
555 * testsuite/libgomp.c/pr32362-2.c: Same.
556 * testsuite/libgomp.c/pr32362-3.c: Same.
557 * testsuite/libgomp.c/pr39591-1.c: Same.
558 * testsuite/libgomp.c/pr39591-2.c: Same.
559 * testsuite/libgomp.c/pr39591-3.c: Same.
560 * testsuite/libgomp.c/pr58392.c: Same.
561 * testsuite/libgomp.c/pr58756.c: Same.
562 * testsuite/libgomp.c/simd-1.c: Same.
563 * testsuite/libgomp.c/simd-10.c: Same.
564 * testsuite/libgomp.c/simd-11.c: Same.
565 * testsuite/libgomp.c/simd-12.c: Same.
566 * testsuite/libgomp.c/simd-13.c: Same.
567 * testsuite/libgomp.c/simd-14.c: Same.
568 * testsuite/libgomp.c/simd-15.c: Same.
569 * testsuite/libgomp.c/simd-2.c: Same.
570 * testsuite/libgomp.c/simd-3.c: Same.
571 * testsuite/libgomp.c/simd-4.c: Same.
572 * testsuite/libgomp.c/simd-5.c: Same.
573 * testsuite/libgomp.c/simd-6.c: Same.
574 * testsuite/libgomp.c/simd-7.c: Same.
575 * testsuite/libgomp.c/simd-8.c: Same.
576 * testsuite/libgomp.c/simd-9.c: Same.
578 2015-06-15 Tom de Vries <tom@codesourcery.com>
580 * testsuite/libgomp.c/pr35625.c: Fix typo.
582 2015-06-15 Tom de Vries <tom@codesourcery.com>
584 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
586 * testsuite/libgomp.c/atomic-3.c: Same.
587 * testsuite/libgomp.c/debug-1.c: Same.
588 * testsuite/libgomp.c/nqueens-1.c: Same.
589 * testsuite/libgomp.c/pr26171.c: Same.
590 * testsuite/libgomp.c/pr48591.c: Same.
591 * testsuite/libgomp.c/pr64824.c: Same.
592 * testsuite/libgomp.c/pr64868.c: Same.
593 * testsuite/libgomp.c/pr66133.c: Same.
594 * testsuite/libgomp.c/pr66199-1.c: Same.
595 * testsuite/libgomp.c/pr66199-2.c: Same.
596 * testsuite/libgomp.c/target-8.c: Same.
598 2015-06-15 Tom de Vries <tom@codesourcery.com>
600 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
602 * testsuite/libgomp.c/for-1.c: Same.
603 * testsuite/libgomp.c/for-2.c: Same.
604 * testsuite/libgomp.c/for-3.c: Same.
605 * testsuite/libgomp.c/pr35625.c: Same.
606 * testsuite/libgomp.c/pr39154.c: Same.
607 * testsuite/libgomp.c/simd-16.c: Same.
608 * testsuite/libgomp.c/simd-17.c: Same.
610 2015-06-13 Tom de Vries <tom@codesourcery.com>
612 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
614 2015-06-13 Tom de Vries <tom@codesourcery.com>
616 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
617 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
618 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
620 (main): Use N instead of hardcoded constants.
622 2015-06-05 Tom de Vries <tom@codesourcery.com>
624 merge from gomp4 branch:
625 2015-05-28 Tom de Vries <tom@codesourcery.com>
627 PR tree-optimization/65443
628 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
629 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
630 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
632 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
634 * testsuite/libgomp.graphite/bounds.c: Adjust for
635 cleanup-tree-dump removal.
636 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
637 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
638 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
639 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
640 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
641 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
642 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
643 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
644 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
645 * testsuite/libgomp.graphite/pr41118.c: Likewise.
647 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
649 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
650 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
651 (futex_wake) [!__x86_64__]: Ditto.
653 2015-05-28 Julian Brown <julian@codesourcery.com>
655 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
656 function comment. Only call gomp_fatal if new argument is true.
657 (acc_dev_num_out_of_range): New function.
658 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
659 acc_dev_num_out_of_range as appropriate.
660 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
661 (acc_get_device_num, acc_set_device_num): Update calls to
663 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
666 2015-05-28 Julian Brown <julian@codesourcery.com>
669 * oacc-init.c (plugin/plugin-host.h): Include.
670 (acc_on_device): Check whether we're in an offloaded region for
672 plugin. Don't use __builtin_acc_on_device.
673 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
674 nonshm_exec flag in thread-local data.
675 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
676 data for host_nonshm plugin.
677 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
678 for host_nonshm plugin.
679 * plugin/plugin-host.h: New.
681 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
683 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
685 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
687 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
689 (FUTEX_PRIVATE_FLAG): Remove L suffix.
690 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
693 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
695 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
697 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
699 * target.c (gomp_map_pointer): New function abstracting out
700 GOMP_MAP_POINTER handling.
701 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
704 2015-05-19 Jakub Jelinek <jakub@redhat.com>
707 * testsuite/libgomp.c/pr66199-1.c: New test.
708 * testsuite/libgomp.c/pr66199-2.c: New test.
709 * testsuite/libgomp.c++/pr66199-1.C: New test.
710 * testsuite/libgomp.c++/pr66199-2.C: New test.
711 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
712 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
714 2015-05-19 Julian Brown <julian@codesourcery.com>
716 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
719 2015-05-13 Jakub Jelinek <jakub@redhat.com>
722 * testsuite/libgomp.c/pr66133.c: New test.
724 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
726 * Makefile.in: Regenerated with automake-1.11.6.
727 * aclocal.m4: Likewise.
728 * config.h.in: Likewise.
729 * configure: Likewise.
730 * testsuite/Makefile.in: Likewise.
732 2015-05-08 Jason Merrill <jason@redhat.com>
734 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
737 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
739 2015-05-06 Julian Brown <julian@codesourcery.com>
741 * oacc-init.c (acc_device_lock): Add explanatory comment.
742 (resolve_device): Add comment about locking requirement.
743 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
744 gomp_init_device and gomp_fini_device calls.
745 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
746 (acc_get_device_num, acc_set_device_num): Add locking around
747 resolve_device and gomp_init_device calls.
749 2015-05-06 Julian Brown <julian@codesourcery.com>
751 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
752 goacc_thread_lock on error paths.
753 * oacc-mem.c (lookup_host): Remove locking from function. Note
754 locking requirement for caller in function comment.
755 (lookup_dev): Likewise.
756 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
757 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
758 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
761 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
765 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
766 don't expect "0x" prefix for "%p" format specifier, don't expect
767 "(nil)" for NULL pointer.
768 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
769 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
770 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
771 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
772 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
773 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
774 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
775 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
776 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
777 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
778 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
779 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
780 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
781 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
782 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
783 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
784 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
785 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
786 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
787 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
788 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
789 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
790 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
791 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
792 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
793 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
794 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
795 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
796 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
797 accurately specify what we're looking for.
798 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
799 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
800 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
801 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
802 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
804 2015-04-30 James Norris <jnorris@codesourcery.com>
807 * testsuite/lib/libgomp.exp
808 (check_effective_target_openacc_host_selected)
809 (check_effective_target_openacc_host_nonshm_selected): New
811 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
813 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
814 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
815 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
816 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
817 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
818 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
819 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
820 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
821 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
822 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
823 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
824 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
825 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
826 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
827 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
828 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
829 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
830 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
831 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
832 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
833 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
834 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
835 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
836 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
837 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
838 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
839 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
840 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
841 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
842 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
843 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
844 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
845 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
846 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
847 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
848 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
849 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
850 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
851 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
852 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
853 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
854 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
855 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
857 2015-04-08 Julian Brown <julian@codesourcery.com>
859 * libgomp.h (target_mem_desc: Remove mem_map field.
860 (acc_dispatch_t): Remove open_device_func, close_device_func,
861 get_device_num_func, set_device_num_func, target_data members.
862 Change create_thread_data_func argument to device number instead of
864 * oacc-async.c (assert.h): Include.
865 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
866 (acc_wait_all, acc_wait_all_async): Use current host thread's
867 active device, not base_dev.
868 * oacc-cuda.c (acc_get_current_cuda_device)
869 (acc_get_current_cuda_context, acc_get_cuda_stream)
870 (acc_set_cuda_stream): Likewise.
871 * oacc-host.c (host_dispatch): Don't set open_device_func,
872 close_device_func, get_device_num_func or set_device_num_func.
873 * oacc-init.c (base_dev, init_key): Remove.
874 (cached_base_dev): New.
875 (name_of_acc_device_t): New.
876 (acc_init_1): Initialise default-numbered device, not zeroth.
877 (acc_shutdown_1): Close all devices of a given type.
878 (goacc_destroy_thread): Don't use base_dev.
879 (lazy_open, lazy_init, lazy_init_and_open): Remove.
880 (goacc_attach_host_thread_to_device): New.
881 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
882 (acc_get_num_devices): Don't use base_dev.
883 (acc_set_device_type): Reimplement.
884 (acc_get_device_type): Don't use base_dev.
885 (acc_get_device_num): Tweak logic.
886 (acc_set_device_num): Likewise.
887 (acc_on_device): Use acc_get_device_type.
888 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
889 (goacc_lazy_initialize): Reimplement with acc_init and
890 goacc_attach_host_thread_to_device.
891 * oacc-int.h (goacc_thread): Add base_dev field.
892 (base_dev): Remove extern declaration.
893 (goacc_attach_host_thread_to_device): Add prototype.
894 * oacc-mem.c (acc_malloc): Use current thread's device instead of
896 (acc_free): Likewise.
897 (acc_memcpy_to_device): Likewise.
898 (acc_memcpy_from_device): Likewise.
899 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
900 goacc_lazy_initialize (throughout).
901 (GOACC_parallel): Use tgt_offset to locate target functions.
902 * target.c (gomp_map_vars): Don't set tgt->mem_map.
903 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
904 (gomp_load_plugin_for_device): Remove open_device, close_device,
905 get_device_num, set_device_num openacc hook initialisation. Don't set
907 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
908 (GOMP_OFFLOAD_openacc_close_device)
909 (GOMP_OFFLOAD_openacc_get_device_num)
910 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
911 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
913 * plugin/plugin-nvptx.c (ptx_inited): Remove.
914 (instantiated_devices, ptx_dev_lock): New.
915 (struct ptx_image_data): New.
916 (ptx_devices, ptx_images, ptx_image_lock): New.
917 (fini_streams_for_device): Reorder cuStreamDestroy call.
918 (nvptx_get_num_devices): Remove forward declaration.
919 (nvptx_init): Change return type to bool.
920 (nvptx_fini): Remove.
921 (nvptx_attach_host_thread_to_device): New.
922 (nvptx_open_device): Return struct ptx_device* instead of void*.
923 (nvptx_close_device): Change argument type to struct ptx_device*,
925 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
926 (kernel_target_data, kernel_host_table): Remove static globals.
927 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
928 (GOMP_OFFLOAD_init_device): Reimplement.
929 (GOMP_OFFLOAD_fini_device): Likewise.
930 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
931 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
932 (GOMP_OFFLOAD_host2dev): Use ORD argument.
933 (GOMP_OFFLOAD_openacc_open_device)
934 (GOMP_OFFLOAD_openacc_close_device)
935 (GOMP_OFFLOAD_openacc_set_device_num)
936 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
937 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
941 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
943 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
945 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
946 * libgomp.h (struct gomp_memory_mapping): Remove.
947 (struct target_mem_desc): Change type of mem_map from
948 gomp_memory_mapping * to splay_tree_s *.
949 (struct gomp_device_descr): Remove register_image_func, get_table_func.
950 Add load_image_func, unload_image_func.
951 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
952 Remove offload_regions_registered.
953 (gomp_init_tables): Remove.
954 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
956 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
957 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
958 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
959 offload_regions_registered.
960 Initialize load_image_func, unload_image_func, mem_map.root.
961 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
962 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
963 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
964 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
965 gomp_memory_mapping *. Use dev's lock and splay_tree.
966 (lookup_dev): Use dev's lock.
967 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
968 (acc_is_present): Likewise.
969 (acc_map_data): Likewise.
970 (acc_unmap_data): Likewise. Use dev's lock.
971 (present_create_copy): Likewise.
972 (delete_copyout): Pass dev to lookup_host instead of mem_map.
973 (update_dev_host): Likewise.
974 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
975 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
976 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
977 (GOMP_OFFLOAD_get_table): Remove
978 (GOMP_OFFLOAD_load_image): New function.
979 (GOMP_OFFLOAD_unload_image): New function.
980 * target.c (register_lock): New mutex for offload image registration.
981 (num_devices): Do not guard with PLUGIN_SUPPORT.
982 (gomp_realloc_unlock): New static function.
983 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
985 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
986 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
987 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
989 (gomp_unmap_vars): Likewise.
990 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
991 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
992 (gomp_offload_image_to_device): New static function.
993 (GOMP_offload_register): Add mutex lock.
994 Call gomp_offload_image_to_device for all initialized devices.
995 Replace gomp_realloc with gomp_realloc_unlock.
996 (GOMP_offload_unregister): New function.
997 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
998 get_table_func from the plugin with calls to init_device_func and
999 gomp_offload_image_to_device.
1000 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
1002 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
1003 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
1004 (GOMP_target_data): Do not call gomp_init_tables.
1005 (GOMP_target_update): Likewise. Remove argument from gomp_update.
1006 (gomp_load_plugin_for_device): Replace register_image and get_table
1007 with load_image and unload_image in DLSYM ().
1008 (gomp_register_images_for_device): Remove function.
1009 (gomp_target_init): Do not initialize current_device.mem_map.*,
1010 current_device.offload_regions_registered.
1011 Remove call to gomp_register_images_for_device.
1012 Do not free offload_images and num_offload_images.
1014 2015-03-30 Jakub Jelinek <jakub@redhat.com>
1017 * testsuite/libgomp.fortran/pr65597.f90: New test.
1019 2015-03-27 Tom de Vries <tom@codesourcery.com>
1022 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
1023 (init, check): New function.
1024 (foo): Change return type to void.
1025 (main): Call init and check.
1027 2015-03-27 Tom de Vries <tom@codesourcery.com>
1030 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
1031 (foo): Use M for non-inner loops to scale down test-case.
1033 2015-03-25 Kai Tietz <ktietz@redhat.com>
1036 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
1037 (GOACC_data_start): Likewise.
1038 * target.c (gomp_map_vars): Likewise.
1040 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
1042 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
1045 2015-03-19 Jakub Jelinek <jakub@redhat.com>
1047 * testsuite/libgomp.c/target-10.c: New test.
1048 * testsuite/libgomp.c++/target-4.C: New test.
1050 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
1052 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
1053 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
1055 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
1057 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
1058 * configure.ac (*-*-rtems*): Assume Pthread is supported.
1059 (pthread.h): Check for this header file.
1060 * configure: Regenerate.
1062 2015-02-25 Tom de Vries <tom@codesourcery.com>
1064 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
1065 (check_reduction_op, check_reduction_macro, max, min):
1067 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
1069 (main): Use new functions.
1071 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
1073 * target.c (gomp_load_plugin_for_device): Use const char * instead of
1074 char * for variables holding dlerror return values.
1077 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1079 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
1081 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1082 Cesar Philippidis <cesar@codesourcery.com>
1084 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
1085 GOACC_ctaid, and GOACC_nctaid routines.
1087 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1090 * testsuite/libgomp.c/atomic-18.c: New test.
1091 * testsuite/libgomp.c++/atomic-16.C: New test.
1093 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1097 * testsuite/libgomp.c/pr64824.c: New test.
1098 * testsuite/libgomp.c/pr64868.c: New test.
1099 * testsuite/libgomp.c++/pr64824.C: New test.
1100 * testsuite/libgomp.c++/pr64868.C: New test.
1102 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
1105 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
1106 Link with -lpthread.
1107 * config/aix/plugin-suffix.h: Delete.
1109 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
1112 * configure.tgt (*-*-aix*): Use config_path "aix posix".
1113 (*-*-darwin*): Use config_path "bsd darwin posix".
1114 (*-*-hpux*): Use config_path "hpux posix".
1115 * target.c: Add include of plugin-suffix.h and use
1116 SONAME_SUFFIX macro.
1117 * config/aix/plugin-suffix.h: New file.
1118 * config/darwin/plugin-suffix.h: New file.
1119 * config/hpux/plugin-suffix.h: New file.
1120 * config/posix/plugin-suffix.h: New file.
1122 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1125 * libgomp.c/pr64734.c: New test.
1127 2015-01-23 Tom de Vries <tom@codesourcery.com>
1130 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
1132 2015-01-23 Tom de Vries <tom@codesourcery.com>
1135 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
1138 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1141 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
1142 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
1143 formal parameter. Update all users.
1144 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
1145 Document unused formal parameter.
1147 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
1149 * oacc-parallel.c: Don't include <alloca.h>.
1150 (GOACC_parallel): Use gomp_alloca instead of alloca.
1152 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
1154 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
1156 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1157 James Norris <jnorris@codesourcery.com>
1158 Tom de Vries <tom@codesourcery.com>
1159 Julian Brown <julian@codesourcery.com>
1160 Cesar Philippidis <cesar@codesourcery.com>
1161 Nathan Sidwell <nathan@codesourcery.com>
1162 Tobias Burnus <burnus@net-b.de>
1164 * Makefile.am (search_path): Add $(top_srcdir)/../include.
1165 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
1166 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
1167 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
1168 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
1169 Include $(top_srcdir)/plugin/Makefrag.am.
1170 (nodist_libsubinclude_HEADERS): Add openacc.h.
1171 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
1172 openacc.f90, openacc.mod, openacc_kinds.mod.
1173 (omp_lib.mod): Generalize into...
1174 (%.mod): ... this new rule.
1175 (openacc_kinds.mod, openacc.mod): New rules.
1176 * plugin/configfrag.ac: New file.
1177 * configure.ac: Move plugin/offloading support into it. Include
1178 it. Instantiate testsuite/libgomp-test-support.pt.exp.
1179 * plugin/Makefrag.am: New file.
1180 * testsuite/Makefile.am (OFFLOAD_TARGETS)
1181 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
1183 (libgomp-test-support.exp): New rule.
1184 (all-local): Depend on it.
1185 * Makefile.in: Regenerate.
1186 * testsuite/Makefile.in: Regenerate.
1187 * config.h.in: Likewise.
1188 * configure: Likewise.
1189 * configure.tgt: Harden shell syntax.
1190 * env.c: Include "oacc-int.h".
1191 (parse_acc_device_type): New function.
1192 (gomp_debug_var, goacc_device_type, goacc_device_num): New
1194 (initialize_env): Initialize those. Call
1195 goacc_runtime_initialize.
1196 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
1197 (gomp_fatal): Call gomp_vfatal.
1198 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
1199 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
1200 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
1201 (splay_tree_node, splay_tree, splay_tree_key)
1202 (struct target_mem_desc, struct splay_tree_key_s)
1203 (struct gomp_memory_mapping, struct acc_dispatch_t)
1204 (struct gomp_device_descr, gomp_acc_insert_pointer)
1205 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
1206 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
1207 (gomp_free_memmap, gomp_fini_device): New declarations.
1208 (gomp_vdebug, gomp_debug): New macros.
1209 Include "splay-tree.h".
1210 * libgomp.map (OACC_2.0): New symbol version. Use for
1211 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
1212 acc_set_device_type_h_, acc_get_device_type,
1213 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
1214 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
1215 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
1216 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
1217 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
1218 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
1219 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
1220 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
1221 acc_copyin_array_h_, acc_present_or_copyin,
1222 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
1223 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
1224 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
1225 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
1226 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
1227 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
1228 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
1229 acc_update_device, acc_update_device_32_h_,
1230 acc_update_device_64_h_, acc_update_device_array_h_,
1231 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
1232 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
1233 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
1234 acc_is_present_64_h_, acc_is_present_array_h_,
1235 acc_memcpy_to_device, acc_memcpy_from_device,
1236 acc_get_current_cuda_device, acc_get_current_cuda_context,
1237 acc_get_cuda_stream, acc_set_cuda_stream.
1238 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
1239 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
1240 GOACC_update, GOACC_wait, GOACC_get_thread_num,
1241 GOACC_get_num_threads.
1242 (GOMP_PLUGIN_1.0): New symbol version. Use for
1243 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
1244 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
1245 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
1246 GOMP_PLUGIN_acc_thread.
1247 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
1248 environment variable.
1249 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
1250 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
1251 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
1252 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
1253 (splay_tree_remove): New declarations.
1254 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
1255 (splay_tree_remove, splay_tree_lookup): Move into...
1256 * splay-tree.c: ... this new file.
1257 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
1258 (splay_tree_node, splay_tree, splay_tree_key)
1259 (struct target_mem_desc, struct splay_tree_key_s)
1260 (struct gomp_device_descr): Don't declare.
1261 (num_devices_openmp): New variable.
1262 (gomp_get_num_devices ): Use it.
1263 (gomp_init_targets_once): New function.
1264 (gomp_get_num_devices ): Use it.
1265 (get_kind, gomp_copy_from_async, gomp_free_memmap)
1266 (gomp_fini_device, gomp_register_image_for_device): New functions.
1267 (gomp_map_vars): Add devaddrs parameter.
1268 (gomp_update): Add mm parameter.
1269 (gomp_init_device): Move most of it into...
1270 (gomp_init_tables): ... this new function.
1271 (gomp_register_images_for_device): Remove function.
1272 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
1273 Make them hidden instead of static.
1274 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
1275 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
1276 (GOMP_target_end_data, GOMP_target_update)
1277 (gomp_load_plugin_for_device, gomp_target_init): Update for
1279 * oacc-async.c: New file.
1280 * oacc-cuda.c: Likewise.
1281 * oacc-host.c: Likewise.
1282 * oacc-init.c: Likewise.
1283 * oacc-int.h: Likewise.
1284 * oacc-mem.c: Likewise.
1285 * oacc-parallel.c: Likewise.
1286 * oacc-plugin.c: Likewise.
1287 * oacc-plugin.h: Likewise.
1288 * oacc-ptx.h: Likewise.
1289 * openacc.f90: Likewise.
1290 * openacc.h: Likewise.
1291 * openacc_lib.h: Likewise.
1292 * plugin/plugin-host.c: Likewise.
1293 * plugin/plugin-nvptx.c: Likewise.
1294 * libgomp-plugin.c: Likewise.
1295 * libgomp-plugin.h: Likewise.
1296 * libgomp_target.h: Remove file after merging content into the
1297 former file. Update all users.
1298 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
1299 (offload_targets_s, offload_targets_s_openacc): New variables.
1300 (check_effective_target_openacc_nvidia_accel_present)
1301 (check_effective_target_openacc_nvidia_accel_selected): New
1303 (libgomp_init): Update for OpenACC changes.
1304 * testsuite/libgomp-test-support.exp.in: New file.
1305 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1306 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1307 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1308 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
1309 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
1310 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
1311 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
1312 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
1313 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
1314 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
1315 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
1316 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
1317 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
1318 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
1319 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1320 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
1321 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1322 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1323 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1324 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1325 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
1326 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1327 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1328 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
1329 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1330 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1331 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1332 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1333 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1334 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1335 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1336 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
1337 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
1338 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
1339 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
1340 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
1341 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
1342 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
1343 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
1344 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1345 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1346 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1347 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1348 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1349 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1350 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
1351 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
1352 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1353 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1354 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1355 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1356 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1357 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1358 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
1359 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
1360 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1361 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1362 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
1363 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1364 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
1365 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1366 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
1367 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1368 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
1369 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
1370 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
1371 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
1372 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
1373 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
1374 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
1375 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
1376 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1377 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1378 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1379 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
1380 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
1381 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1382 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1383 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
1384 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
1385 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
1386 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
1387 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1388 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1389 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1390 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
1391 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
1392 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
1393 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1394 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
1395 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1396 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
1397 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
1398 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
1399 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1400 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1401 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1402 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
1403 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1404 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1405 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1406 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
1407 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1408 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
1409 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1410 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1411 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1412 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1413 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1414 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
1415 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1416 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1417 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
1418 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1419 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1420 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1421 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1422 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1423 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1424 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1425 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1426 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1427 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
1428 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1429 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
1430 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1431 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
1432 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
1433 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
1434 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
1435 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
1436 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
1437 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1438 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
1439 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
1440 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1441 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1442 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1443 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1444 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
1446 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
1447 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
1448 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
1449 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
1450 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
1451 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1452 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1453 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1454 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1455 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1456 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1457 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1458 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1459 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1460 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1461 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1462 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1463 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1464 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1465 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1466 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1467 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1468 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1469 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1470 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1471 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1472 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1473 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1474 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1475 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1476 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1477 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1478 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1479 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1480 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
1481 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1482 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
1483 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
1484 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
1485 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1486 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
1487 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1488 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1489 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
1490 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
1491 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1492 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
1493 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
1494 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1495 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1496 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1497 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1498 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1499 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1500 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
1501 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1502 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1503 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
1504 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
1505 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
1507 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
1508 Julian Brown <julian@codesourcery.com>
1509 David Malcolm <dmalcolm@redhat.com>
1511 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
1512 to "GNU Offloading and Multi Processing Runtime Library". Change
1514 * configure: Regenerate.
1515 * libgomp.texi: Update.
1517 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
1519 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
1521 * configure: Regenerate.
1523 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
1524 "intelmic" in $offload_targets.
1526 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1528 Update copyright years.
1530 * libgomp.texi: Bump @copying's copyright year.
1532 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1534 * testsuite/lib/libgomp.exp: Load target-utils.exp.
1535 Move load of target-supportes.exp earlier.
1537 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
1539 * testsuite/libgomp.c/target-9.c: New test.
1541 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
1543 * config.h.in: Regenerate.
1544 * configure: Regenerate.
1545 * configure.ac: Add GCC_CHECK_EMUTLS.
1546 * libgomp.h: Add check for USE_EMUTLS: this case
1547 is equal to HAVE_TLS.
1550 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
1552 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
1554 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
1555 Ilya Verbin <ilya.verbin@intel.com>
1557 * testsuite/libgomp.c/target-critical-1.c: New test.
1559 2014-11-26 Jakub Jelinek <jakub@redhat.com>
1561 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
1562 to dg-options unless expensive testing is on.
1563 (TESTITERS): Define to N if not defined.
1564 (main): Use TESTITERS instead of N.
1565 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
1566 dg-additional-options depending on whether expensive testing is on.
1567 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
1568 Decrease N to 100000 and CHUNKSZ to 10000.
1570 2014-11-24 Jakub Jelinek <jakub@redhat.com>
1573 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
1574 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
1576 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
1578 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
1580 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1583 * configure: Regenerated.
1585 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
1587 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
1588 vect_simd_clones effective target.
1589 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1591 2014-11-14 Jakub Jelinek <jakub@redhat.com>
1593 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
1594 of 32 as block_size.
1595 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
1596 instead of 32 as block_size.
1598 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1599 Ilya Verbin <ilya.verbin@intel.com>
1601 * Makefile.in: Regenerate.
1602 * configure: Regenerate.
1603 * configure.ac: Set up offload_additional_options,
1604 offload_additional_lib_paths and offload_targets.
1605 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
1606 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
1607 * testsuite/Makefile.in: Regenerate.
1608 * testsuite/lib/libgomp.exp (libgomp_init): Append
1609 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
1610 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
1611 build directory to LD_LIBRARY_PATH for intelmic offload targets.
1613 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1614 Ilya Verbin <ilya.verbin@intel.com>
1615 Kirill Yukhin <kirill.yukhin@intel.com>
1616 Ilya Tocar <ilya.tocar@intel.com>
1618 * testsuite/lib/libgomp.exp
1619 (check_effective_target_offload_device): New.
1620 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
1621 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
1622 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
1623 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
1624 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
1625 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
1626 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
1627 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
1628 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
1629 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
1630 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
1631 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
1632 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
1633 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
1634 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
1635 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
1636 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
1637 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
1638 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
1639 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
1640 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
1641 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
1642 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
1643 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
1644 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
1645 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
1646 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
1647 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
1648 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
1649 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
1650 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
1651 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
1652 * testsuite/libgomp.c/target-7.c: Fix test.
1653 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
1654 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
1655 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
1656 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
1657 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
1658 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
1659 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
1660 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
1661 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
1662 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
1663 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
1664 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
1665 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
1666 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
1667 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
1668 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
1669 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
1670 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
1671 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1672 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
1673 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
1674 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
1675 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
1676 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
1677 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
1678 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
1679 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
1680 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
1681 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
1682 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
1683 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
1685 2014-11-13 Jakub Jelinek <jakub@redhat.com>
1686 Ilya Verbin <ilya.verbin@intel.com>
1687 Thomas Schwinge <thomas@codesourcery.com>
1688 Andrey Turetskiy <andrey.turetskiy@intel.com>
1690 * libgomp.map (GOMP_4.0.1): New symbol version.
1691 Add GOMP_offload_register.
1692 * libgomp_target.h: New file.
1693 * splay-tree.h: New file.
1694 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
1695 (gomp_target_init): New forward declaration.
1696 (gomp_is_initialized): New static variable.
1697 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
1698 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
1700 (offload_images, num_offload_images, devices, num_devices): New static
1702 (splay_compare): New static function.
1703 (struct gomp_device_descr): New structure.
1704 (gomp_get_num_devices): Call gomp_target_init.
1705 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
1706 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
1707 (GOMP_offload_register): New function.
1708 (GOMP_target): Arrange for host callback to be performed in a separate
1709 initial thread and contention group, inheriting ICVs from
1710 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
1711 Add device initialization and lookup for target function in splay tree.
1712 (GOMP_target_data): Add device initialization and call gomp_map_vars.
1713 (GOMP_target_end_data): Call gomp_unmap_vars.
1714 (GOMP_target_update): Add device initialization and call gomp_update.
1715 (gomp_load_plugin_for_device, gomp_register_images_for_device)
1716 (gomp_target_init): New static functions.
1718 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
1719 Thomas Schwinge <thomas@codesourcery.com>
1720 Ilya Verbin <ilya.verbin@intel.com>
1721 Andrey Turetskiy <andrey.turetskiy@intel.com>
1723 * config.h.in: Regenerate.
1724 * configure: Regenerate.
1725 * configure.ac: Check for libdl, required for plugin support.
1726 (PLUGIN_SUPPORT): Define if plugins are supported.
1727 (enable_offload_targets): Support Intel MIC targets.
1728 (OFFLOAD_TARGETS): List of target names suitable for offloading.
1730 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1733 * configure: Regenerate.
1735 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1737 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1739 2014-10-06 Marek Polacek <polacek@redhat.com>
1741 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1742 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1743 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1744 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1746 2014-10-06 Marek Polacek <polacek@redhat.com>
1748 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1749 * testsuite/libgomp.c/nqueens-1.c: Likewise.
1750 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1751 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1752 * testsuite/libgomp.c/pr36802-2.c: Likewise.
1753 * testsuite/libgomp.c/pr36802-3.c: Likewise.
1754 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1755 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1756 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1757 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1758 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1759 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1760 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1761 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1762 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1763 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1764 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1765 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1768 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1771 * testsuite/libgomp.c/pr61200.c: New test.
1773 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1776 * testsuite/libgomp.c++/pr63248.C: New test.
1778 2014-08-04 Jakub Jelinek <jakub@redhat.com>
1780 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1781 is not zero, but taskgroup->children is NULL and there are
1782 any task->children, schedule those instead of waiting.
1783 * testsuite/libgomp.c/depend-6.c: New test.
1784 * testsuite/libgomp.c/depend-7.c: New test.
1785 * testsuite/libgomp.c/depend-8.c: New test.
1786 * testsuite/libgomp.c/depend-9.c: New test.
1787 * testsuite/libgomp.c/depend-10.c: New test.
1789 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1791 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1792 (struct gomp_taskwait): New type.
1793 (struct gomp_task): Add taskwait and parent_depends_on, remove
1794 in_taskwait and taskwait_sem fields.
1795 (gomp_finish_task): Don't destroy taskwait_sem.
1796 * task.c (gomp_init_task): Don't init in_taskwait, instead init
1797 taskwait and parent_depends_on.
1798 (GOMP_task): For if (0) tasks with depend clause that depend on
1799 earlier tasks don't defer them, instead call
1800 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1801 Initialize redundant_out field, for redundant out entries just
1802 move them at the end of linked list instead of removing them
1803 completely, and set redundant_out flag instead of redundant.
1804 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1806 (gomp_task_run_post_handle_dependers): If parent is in
1807 gomp_task_maybe_wait_for_dependencies and newly runnable task
1808 is not parent_depends_on, queue it in parent->children linked
1809 list after all runnable tasks with parent_depends_on set.
1810 Adjust for addition of taskwait indirection.
1811 (gomp_task_run_post_remove_parent): If parent is in
1812 gomp_task_maybe_wait_for_dependencies and task to be removed
1813 is parent_depends_on, decrement n_depend and if needed awake
1814 parent. Adjust for addition of taskwait indirection.
1815 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1816 (gomp_task_maybe_wait_for_dependencies): New function.
1817 * testsuite/libgomp.c/depend-5.c: New test.
1819 2014-07-13 Tobias Burnus <burnus@net-b.de>
1821 * testsuite/libgomp.fortran/pr34020.f90: Make compile
1822 with TS 18508/Fortran 2015.
1824 2014-07-06 Marek Polacek <polacek@redhat.com>
1827 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1829 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1831 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1832 matches regex $lang_source_re, add $lang_include_flags to options.
1833 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1834 * testsuite/libgomp.c++/c++.exp: Likewise.
1835 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1836 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1838 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1840 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1842 * testsuite/libgomp.fortran/fortran.exp: Explain
1843 gfortran-dg-runtest usage.
1845 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1847 * testsuite/libgomp.fortran/simd5.f90: New test.
1848 * testsuite/libgomp.fortran/simd6.f90: New test.
1849 * testsuite/libgomp.fortran/simd7.f90: New test.
1851 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1853 * testsuite/libgomp.c/for-2.c: Define SC to static for
1854 #pragma omp for simd testing.
1855 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1856 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1858 * testsuite/libgomp.c/simd-14.c: New test.
1859 * testsuite/libgomp.c/simd-15.c: New test.
1860 * testsuite/libgomp.c/simd-16.c: New test.
1861 * testsuite/libgomp.c/simd-17.c: New test.
1862 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1863 #pragma omp for simd testing.
1864 * testsuite/libgomp.c++/simd10.C: New test.
1865 * testsuite/libgomp.c++/simd11.C: New test.
1866 * testsuite/libgomp.c++/simd12.C: New test.
1867 * testsuite/libgomp.c++/simd13.C: New test.
1869 * testsuite/libgomp.fortran/aligned1.f03: New test.
1870 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1871 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1872 tasks with !$omp parallel !$omp single.
1873 * testsuite/libgomp.fortran/target8.f90: New test.
1874 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1875 not to use trim in the combiner, instead call elemental function.
1876 (fn): New elemental function.
1877 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1879 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1881 * testsuite/libgomp.fortran/udr12.f90: New test.
1882 * testsuite/libgomp.fortran/udr13.f90: New test.
1883 * testsuite/libgomp.fortran/udr14.f90: New test.
1884 * testsuite/libgomp.fortran/udr15.f90: New test.
1886 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1888 * omp_lib.f90.in (openmp_version): Set to 201307.
1889 * omp_lib.h.in (openmp_version): Likewise.
1890 * testsuite/libgomp.c/target-8.c: New test.
1891 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1892 and inbranch clauses.
1893 * testsuite/libgomp.fortran/depend-3.f90: New test.
1894 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1896 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1897 * testsuite/libgomp.fortran/target1.f90: New test.
1898 * testsuite/libgomp.fortran/target2.f90: New test.
1899 * testsuite/libgomp.fortran/target3.f90: New test.
1900 * testsuite/libgomp.fortran/target4.f90: New test.
1901 * testsuite/libgomp.fortran/target5.f90: New test.
1902 * testsuite/libgomp.fortran/target6.f90: New test.
1903 * testsuite/libgomp.fortran/target7.f90: New test.
1905 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1908 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1909 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1910 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1911 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1912 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1913 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1914 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1915 * testsuite/libgomp.fortran/associate1.f90: New test.
1916 * testsuite/libgomp.fortran/associate2.f90: New test.
1917 * testsuite/libgomp.fortran/procptr1.f90: New test.
1919 2014-06-06 Jakub Jelinek <jakub@redhat.com>
1921 * testsuite/libgomp.fortran/simd1.f90: New test.
1922 * testsuite/libgomp.fortran/udr1.f90: New test.
1923 * testsuite/libgomp.fortran/udr2.f90: New test.
1924 * testsuite/libgomp.fortran/udr3.f90: New test.
1925 * testsuite/libgomp.fortran/udr4.f90: New test.
1926 * testsuite/libgomp.fortran/udr5.f90: New test.
1927 * testsuite/libgomp.fortran/udr6.f90: New test.
1928 * testsuite/libgomp.fortran/udr7.f90: New test.
1929 * testsuite/libgomp.fortran/udr8.f90: New test.
1930 * testsuite/libgomp.fortran/udr9.f90: New test.
1931 * testsuite/libgomp.fortran/udr10.f90: New test.
1932 * testsuite/libgomp.fortran/udr11.f90: New test.
1934 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
1936 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1937 vect_simd_clones effective target.
1938 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1940 2014-05-21 Jakub Jelinek <jakub@redhat.com>
1943 * testsuite/libgomp.c++/simd-9.C: New test.
1945 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
1947 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1948 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1949 texts according to their @menu entry positions.
1951 2014-05-11 Jakub Jelinek <jakub@redhat.com>
1953 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1954 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1955 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1956 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1957 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1958 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1959 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1960 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1961 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1962 * testsuite/libgomp.fortran/depend-1.f90: New test.
1963 * testsuite/libgomp.fortran/depend-2.f90: New test.
1964 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1965 * testsuite/libgomp.fortran/simd1.f90: New test.
1966 * testsuite/libgomp.fortran/simd2.f90: New test.
1967 * testsuite/libgomp.fortran/simd3.f90: New test.
1968 * testsuite/libgomp.fortran/simd4.f90: New test.
1969 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1971 2014-05-02 Jakub Jelinek <jakub@redhat.com>
1973 * testsuite/libgomp.c/simd-10.c: New test.
1974 * testsuite/libgomp.c/simd-11.c: New test.
1975 * testsuite/libgomp.c/simd-12.c: New test.
1976 * testsuite/libgomp.c/simd-13.c: New test.
1978 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1980 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1981 atomic type clauses in any order and optional comma in between.
1982 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1983 * testsuite/libgomp.c/atomic-17.c: Likewise.
1985 * testsuite/libgomp.c/simd-7.c: New test.
1986 * testsuite/libgomp.c/simd-8.c: New test.
1987 * testsuite/libgomp.c/simd-9.c: New test.
1988 * testsuite/libgomp.c/loop-16.c: New test.
1990 2014-04-02 Richard Henderson <rth@redhat.com>
1992 * config/linux/futex.h (futex_wait): Get error value from errno.
1993 (futex_wake): Likewise.
1995 2014-03-25 Jakub Jelinek <jakub@redhat.com>
1998 * testsuite/libgomp.c++/udr-11.C: New test.
1999 * testsuite/libgomp.c++/udr-12.C: New test.
2000 * testsuite/libgomp.c++/udr-13.C: New test.
2001 * testsuite/libgomp.c++/udr-14.C: New test.
2002 * testsuite/libgomp.c++/udr-15.C: New test.
2003 * testsuite/libgomp.c++/udr-16.C: New test.
2004 * testsuite/libgomp.c++/udr-17.C: New test.
2005 * testsuite/libgomp.c++/udr-18.C: New test.
2006 * testsuite/libgomp.c++/udr-19.C: New test.
2008 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2010 Update copyright years
2012 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2014 * hashtab.h: Use the standard form for the copyright notice.
2016 2014-01-02 Tobias Burnus <burnus@net-b.de>
2018 * libgomp.texi: Bump @copying's copyright year.
2020 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
2022 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
2023 alloca () with __builtin_alloca ().
2024 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
2025 * testsuite/libgomp.c/lock-3.c: Likewise.
2026 * testsuite/libgomp.c/pr48591.c: Likewise.
2028 2013-12-17 Jakub Jelinek <jakub@redhat.com>
2031 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
2034 2013-12-16 Jakub Jelinek <jakub@redhat.com>
2037 * testsuite/libgomp.c/pr58756.c: New test.
2039 2013-12-12 Jakub Jelinek <jakub@redhat.com>
2042 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
2045 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
2047 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
2049 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
2050 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
2051 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
2052 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
2055 * libgomp_g.h: Include <stddef.h> for size_t.
2057 * libgomp.spec.in: Update comment about libgomp's dependencies.
2058 * configure.ac: Likewise.
2059 * configure: Regenerate.
2061 2013-10-16 Tobias Burnus <burnus@net-b.de>
2063 * libgomp.texi: (Runtime Library Routines): Update references for
2064 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
2065 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
2066 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
2067 (Environment Variables): Update references for OpenMP 4.0. Add
2068 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
2069 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
2072 2013-10-14 Jakub Jelinek <jakub@redhat.com>
2074 * env.c (parse_bind_var): Initialize value to avoid
2075 (false positive) warning.
2077 2013-10-12 Jakub Jelinek <jakub@redhat.com>
2080 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
2082 (gomp_init_num_threads): Move i variable declaration into
2083 #ifdef CPU_ALLOC_SIZE block.
2084 * config/linux/affinity.c (gomp_affinity_init_level): Test
2085 gomp_places_list_len == 0 rather than gomp_places_list == 0
2086 when checking for topology reading error.
2087 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
2088 * env.c (parse_affinity): Add ignore argument, if true, don't populate
2089 gomp_places_list, only parse env var and always return false.
2090 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
2091 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
2092 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
2093 and either of these variables were parsed correctly into a places
2096 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
2097 Jakub Jelinek <jakub@redhat.com>
2099 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
2100 of 5 loopfn matches.
2101 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2102 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2103 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
2104 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2105 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2106 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2107 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2108 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2110 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
2112 * Makefile.am (omp_lib.mod): Streamline rule.
2113 * Makefile.in: Regenerate.
2115 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
2118 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
2119 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2120 * testsuite/libgomp.fortran/lib2.f: Likewise.
2121 * testsuite/libgomp.fortran/lib3.f: Likewise.
2123 * configure.ac: Typo fix.
2124 * configure: Regenerate.
2126 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
2127 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2129 * omp.h.in: Don't touch the user's namespace.
2131 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2132 Tobias Burnus <burnus@net-b.de>
2133 Richard Henderson <rth@redhat.com>
2135 * target.c: New file.
2136 * Makefile.am (libgomp_la_SOURCES): Add target.c.
2137 * Makefile.in: Regenerated.
2138 * libgomp_g.h (GOMP_task): Add depend argument.
2139 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
2140 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
2141 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
2142 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2143 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2144 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
2145 GOMP_taskgroup_start, GOMP_taskgroup_end,
2146 GOMP_parallel_sections): New prototypes.
2147 * fortran.c (omp_is_initial_device): Add ialias_redirect.
2148 (omp_is_initial_device_): New function.
2149 (ULP, STR1, STR2, ialias_redirect): Removed.
2150 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
2151 omp_set_default_device_8_, omp_get_default_device_,
2152 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
2154 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
2155 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
2156 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
2158 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
2159 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
2160 omp_set_default_device, omp_set_default_device_,
2161 omp_set_default_device_8_, omp_get_default_device,
2162 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
2163 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
2164 omp_get_team_num_): Export @@OMP_4.0.
2165 * team.c (struct gomp_thread_start_data): Add place field.
2166 (gomp_thread_start): Clear thr->thread_pool and
2167 thr->task before returning. Use gomp_team_barrier_wait_final
2168 instead of gomp_team_barrier_wait. Initialize thr->place.
2169 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
2170 team_cancelled and task_queued_count fields.
2171 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
2172 before calling pthread_exit.
2173 (gomp_free_thread): No longer static. Use
2174 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
2175 (gomp_team_start): Add flags argument. Set
2176 thr->thread_pool->threads_busy to nthreads immediately after creating
2177 new pool. Use gomp_managed_threads_lock instead of
2178 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
2179 (gomp_team_end): Use gomp_managed_threads_lock instead of
2180 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
2181 of gomp_team_barrier_wait. If team->team_cancelled, call
2182 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
2183 rather than thr->ts.work_share.
2184 (initialize_team): Don't call gomp_sem_init here.
2185 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
2187 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
2188 * env.c (gomp_global_icv): Add default_device_var, target_data and
2189 bind_var initializers.
2190 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
2191 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
2192 gomp_places_list_len): New variables.
2193 (parse_bind_var, parse_one_place, parse_places_var): New functions.
2194 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
2196 (gomp_cancel_var): New global variable.
2197 (parse_int): New function.
2198 (handle_omp_display_env): New function.
2199 (initialize_env): Use it. Initialize default_device_var.
2200 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
2201 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
2202 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
2203 been successfully parsed (and call gomp_init_affinity in that case).
2204 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2205 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2206 omp_get_team_num, omp_is_initial_device): New functions.
2207 * libgomp.h: Include stdlib.h.
2208 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
2210 (struct target_mem_desc): Forward declare.
2211 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
2212 and thread_limit_var fields.
2213 (gomp_get_num_devices): New prototype.
2214 (gomp_cancel_var): New extern decl.
2215 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
2216 team_cancelled and task_queued_count fields. Add comments about
2217 task_{,queued_,running_}count.
2218 (gomp_cancel_kind): New enum.
2219 (gomp_work_share_end_cancel): New prototype.
2220 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
2221 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
2223 (struct gomp_taskgroup): New type.
2224 (struct gomp_task_depend_entry,
2225 struct gomp_dependers_vec): New types.
2226 (gomp_finish_task): Free depend_hash if non-NULL.
2227 (struct gomp_team_state): Add place_partition_off
2228 and place_partition_len fields.
2229 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
2230 gomp_places_list_len): New extern decls.
2231 (struct gomp_thread): Add place field.
2232 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
2233 (gomp_init_thread_affinity): Add place argument.
2234 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2235 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2236 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2237 gomp_affinity_init_level, gomp_affinity_print_place): New
2239 (gomp_team_start): Add flags argument.
2240 (gomp_thread_limit_var, gomp_remaining_threads_count,
2241 gomp_remaining_threads_lock): Remove.
2242 (gomp_managed_threads_lock): New variable.
2243 (struct gomp_thread_pool): Add threads_busy field.
2244 (gomp_free_thread): New prototype.
2245 * task.c: Include hashtab.h.
2246 (hash_entry_type): New typedef.
2247 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
2248 (gomp_init_task): Clear dependers, depend_hash, depend_count,
2249 copy_ctors_done and taskgroup fields.
2250 (GOMP_task): Add depend argument, handle depend clauses. If
2251 gomp_team_barrier_cancelled or if it's taskgroup has been
2252 cancelled, don't queue or start new tasks. Set copy_ctors_done
2253 field if needed. Initialize taskgroup field. If copy_ctors_done
2254 and already cancelled, don't discard the task. If taskgroup is
2255 non-NULL, enqueue the task into taskgroup queue. Increment
2256 num_children field in taskgroup. Increment task_queued_count.
2257 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
2258 gomp_task_run_post_remove_taskgroup): New inline functions.
2259 (gomp_task_run_post_handle_depend_hash,
2260 gomp_task_run_post_handle_dependers,
2261 gomp_task_run_post_handle_depend): New functions.
2262 (GOMP_taskwait): Use them. If more than one new tasks
2263 have been queued, wake other threads if needed.
2264 (gomp_barrier_handle_tasks): Likewise. If
2265 gomp_team_barrier_cancelled, don't start any new tasks, just free
2267 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
2269 (omp_proc_bind_kind, omp_proc_bind_false,
2270 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2271 omp_proc_bind_spread): New params.
2272 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2273 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2274 omp_get_team_num, omp_is_initial_device): New interfaces.
2275 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
2276 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
2277 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
2278 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
2279 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
2280 useless use omp_lib_kinds.
2281 * omp.h.in (omp_proc_bind_t): New typedef.
2282 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2283 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2284 omp_get_team_num, omp_is_initial_device): New prototypes.
2285 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
2286 through to gomp_team_start.
2287 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
2288 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
2289 Adjust gomp_parallel_loop_start callers.
2290 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
2291 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
2292 GOMP_loop_end_cancel): New functions.
2293 (GOMP_parallel_end): Add ialias_redirect.
2294 * hashtab.h: New file.
2295 * libgomp.texi (Environment Variables): Minor cleanup,
2296 update section refs to OpenMP 4.0rc2.
2297 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
2298 environment variables.
2299 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
2300 team->work_shares_to_free to thr->ts.work_share before calling
2302 (gomp_work_share_end_cancel): New function.
2303 * config/linux/proc.c: Include errno.h.
2304 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
2305 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
2306 sizeof (cpu_set_t) to determine number of iterations. Fix up check
2307 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
2308 gomp_cpuset_size is sizeof (cpu_set_t).
2309 (gomp_init_num_threads): Initialize gomp_cpuset_size,
2310 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
2311 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
2312 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
2313 contain any logical CPUs.
2314 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
2315 is NULL. Use gomp_cpusetp instead of &cpuset and pass
2316 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
2317 pthread_getaffinity_np. Check gomp_places_list instead of
2318 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
2319 * config/linux/bar.c (gomp_barrier_wait_end,
2320 gomp_barrier_wait_last): Use BAR_* defines.
2321 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
2322 from state where needed. Set work_share_cancelled to 0 on last
2324 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
2325 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
2327 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
2328 Add cpusetsize argument.
2329 (gomp_cpuset_size, gomp_cpusetp): Declare.
2330 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
2331 (affinity_counter): Remove.
2332 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
2333 if CPU_ALLOC_SIZE isn't defined.
2334 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
2335 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
2336 bind current thread to the first place.
2337 (gomp_init_thread_affinity): Rewritten. Add place argument, just
2338 pthread_setaffinity_np to gomp_places_list[place].
2339 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2340 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2341 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2342 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
2343 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2344 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2345 (gomp_barrier_t): Add awaited_final field.
2346 (gomp_barrier_init): Initialize awaited_final field.
2347 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
2348 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
2350 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
2352 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
2353 gomp_team_barrier_cancelled): New inline functions.
2354 (gomp_barrier_last_thread,
2355 gomp_team_barrier_set_task_pending,
2356 gomp_team_barrier_clear_task_pending,
2357 gomp_team_barrier_set_waiting_for_tasks,
2358 gomp_team_barrier_waiting_for_tasks,
2359 gomp_team_barrier_done): Use BAR_* defines.
2360 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
2361 (gomp_barrier_wait_end): Use BAR_* defines.
2362 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
2363 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
2365 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
2366 gomp_team_barrier_cancel): New functions.
2367 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
2369 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
2370 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
2371 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
2372 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
2373 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
2374 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
2375 (gomp_barrier_t): Add cancellable field.
2376 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
2377 gomp_team_barrier_cancel): New prototypes.
2378 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
2379 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
2380 gomp_team_barrier_cancelled): New inline functions.
2381 (gomp_barrier_wait_start, gomp_barrier_last_thread,
2382 gomp_team_barrier_set_task_pending,
2383 gomp_team_barrier_clear_task_pending,
2384 gomp_team_barrier_set_waiting_for_tasks,
2385 gomp_team_barrier_waiting_for_tasks,
2386 gomp_team_barrier_done): Use BAR_* defines.
2387 * barrier.c (GOMP_barrier_cancel): New function.
2388 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
2389 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
2390 omp_proc_bind_spread): New params.
2391 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
2392 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
2393 omp_get_team_num, omp_is_initial_device): New externals.
2394 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
2396 (gomp_resolve_num_threads): Adjust for thread_limit now being in
2397 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2398 infinity. If not nested, just return minimum of max_num_threads
2399 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
2400 to the returned value. Otherwise, don't update atomically
2401 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
2402 (GOMP_parallel_end): Adjust for thread_limit now being in
2403 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
2404 infinity. Adjust threads_busy in the pool rather than
2405 gomp_remaining_threads_count. Remember team->nthreads and call
2406 gomp_team_end before adjusting threads_busy, if not nested
2407 afterwards, just set it to 1 non-atomically. Add ialias.
2408 (GOMP_parallel_start): Adjust gomp_team_start caller.
2409 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
2410 * testsuite/libgomp.c/affinity-1.c: New test.
2411 * testsuite/libgomp.c/atomic-15.c: New test.
2412 * testsuite/libgomp.c/atomic-16.c: New test.
2413 * testsuite/libgomp.c/atomic-17.c: New test.
2414 * testsuite/libgomp.c/cancel-for-1.c: New test.
2415 * testsuite/libgomp.c/cancel-for-2.c: New test.
2416 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
2417 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
2418 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
2419 * testsuite/libgomp.c/cancel-sections-1.c: New test.
2420 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
2421 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
2422 * testsuite/libgomp.c/depend-1.c: New test.
2423 * testsuite/libgomp.c/depend-2.c: New test.
2424 * testsuite/libgomp.c/depend-3.c: New test.
2425 * testsuite/libgomp.c/depend-4.c: New test.
2426 * testsuite/libgomp.c/for-1.c: New test.
2427 * testsuite/libgomp.c/for-1.h: New file.
2428 * testsuite/libgomp.c/for-2.c: New test.
2429 * testsuite/libgomp.c/for-2.h: New file.
2430 * testsuite/libgomp.c/for-3.c: New test.
2431 * testsuite/libgomp.c/pr58392.c: New test.
2432 * testsuite/libgomp.c/simd-1.c: New test.
2433 * testsuite/libgomp.c/simd-2.c: New test.
2434 * testsuite/libgomp.c/simd-3.c: New test.
2435 * testsuite/libgomp.c/simd-4.c: New test.
2436 * testsuite/libgomp.c/simd-5.c: New test.
2437 * testsuite/libgomp.c/simd-6.c: New test.
2438 * testsuite/libgomp.c/target-1.c: New test.
2439 * testsuite/libgomp.c/target-2.c: New test.
2440 * testsuite/libgomp.c/target-3.c: New test.
2441 * testsuite/libgomp.c/target-4.c: New test.
2442 * testsuite/libgomp.c/target-5.c: New test.
2443 * testsuite/libgomp.c/target-6.c: New test.
2444 * testsuite/libgomp.c/target-7.c: New test.
2445 * testsuite/libgomp.c/taskgroup-1.c: New test.
2446 * testsuite/libgomp.c/thread-limit-1.c: New test.
2447 * testsuite/libgomp.c/thread-limit-2.c: New test.
2448 * testsuite/libgomp.c/thread-limit-3.c: New test.
2449 * testsuite/libgomp.c/udr-1.c: New test.
2450 * testsuite/libgomp.c/udr-2.c: New test.
2451 * testsuite/libgomp.c/udr-3.c: New test.
2452 * testsuite/libgomp.c++/affinity-1.C: New test.
2453 * testsuite/libgomp.c++/atomic-10.C: New test.
2454 * testsuite/libgomp.c++/atomic-11.C: New test.
2455 * testsuite/libgomp.c++/atomic-12.C: New test.
2456 * testsuite/libgomp.c++/atomic-13.C: New test.
2457 * testsuite/libgomp.c++/atomic-14.C: New test.
2458 * testsuite/libgomp.c++/atomic-15.C: New test.
2459 * testsuite/libgomp.c++/cancel-for-1.C: New test.
2460 * testsuite/libgomp.c++/cancel-for-2.C: New test.
2461 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
2462 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
2463 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
2464 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
2465 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
2466 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
2467 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
2468 * testsuite/libgomp.c++/cancel-test.h: New file.
2469 * testsuite/libgomp.c++/for-9.C: New test.
2470 * testsuite/libgomp.c++/for-10.C: New test.
2471 * testsuite/libgomp.c++/for-11.C: New test.
2472 * testsuite/libgomp.c++/simd-1.C: New test.
2473 * testsuite/libgomp.c++/simd-2.C: New test.
2474 * testsuite/libgomp.c++/simd-3.C: New test.
2475 * testsuite/libgomp.c++/simd-4.C: New test.
2476 * testsuite/libgomp.c++/simd-5.C: New test.
2477 * testsuite/libgomp.c++/simd-6.C: New test.
2478 * testsuite/libgomp.c++/simd-7.C: New test.
2479 * testsuite/libgomp.c++/simd-8.C: New test.
2480 * testsuite/libgomp.c++/target-1.C: New test.
2481 * testsuite/libgomp.c++/target-2.C: New test.
2482 * testsuite/libgomp.c++/target-2-aux.cc: New file.
2483 * testsuite/libgomp.c++/target-3.C: New test.
2484 * testsuite/libgomp.c++/taskgroup-1.C: New test.
2485 * testsuite/libgomp.c++/udr-1.C: New test.
2486 * testsuite/libgomp.c++/udr-2.C: New test.
2487 * testsuite/libgomp.c++/udr-3.C: New test.
2488 * testsuite/libgomp.c++/udr-4.C: New test.
2489 * testsuite/libgomp.c++/udr-5.C: New test.
2490 * testsuite/libgomp.c++/udr-6.C: New test.
2491 * testsuite/libgomp.c++/udr-7.C: New test.
2492 * testsuite/libgomp.c++/udr-8.C: New test.
2493 * testsuite/libgomp.c++/udr-9.C: New test.
2495 2013-09-20 Jakub Jelinek <jakub@redhat.com>
2498 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
2501 2013-09-20 Alan Modra <amodra@gmail.com>
2503 * configure: Regenerate.
2505 2013-09-19 Jakub Jelinek <jakub@redhat.com>
2507 * testsuite/libgomp.c/sections-2.c: New test.
2509 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
2511 * testsuite/libgomp.fortran/strassen.f90:
2512 Add dg-skip-if aarch64_tiny.
2514 2013-06-20 Iain Sandoe <iain@codesourcery.com>
2515 Cesar Philippidis <cesar@codesourcery.com>
2517 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
2518 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
2519 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
2520 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2521 * testsuite/libgomp.graphite/graphite.exp: Likewise.
2522 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
2523 Use dg-runtest rather than gfortran-dg-runtest.
2525 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
2527 * testsuite/libgomp.c/icv-2.c: Extend current handling of
2528 Linux-based x86 systems to cover all GNU systems.
2529 * testsuite/libgomp.c/lock-3.c: Likewise.
2530 * testsuite/libgomp.c/pr48591.c: Likewise.
2532 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
2534 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
2535 GNU/Hurd, as done for Linux-based systems.
2537 * config/posix/ptrlock.h: Fix comment.
2539 2013-05-27 Tobias Burnus <burnus@net-b.de>
2542 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
2543 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
2544 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
2545 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
2546 omp_destroy_nest_lock): Correct arguments to match the one in
2548 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
2549 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
2550 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
2551 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
2553 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2555 * testsuite/libgomp.c/loop-13.c: New test.
2556 * testsuite/libgomp.c/loop-14.c: New test.
2557 * testsuite/libgomp.c/loop-15.c: New test.
2558 * testsuite/libgomp.c++/loop-13.C: New test.
2559 * testsuite/libgomp.c++/loop-14.C: New test.
2560 * testsuite/libgomp.c++/loop-15.C: New test.
2562 2013-02-06 Jakub Jelinek <jakub@redhat.com>
2565 * testsuite/libgomp.c++/pr56217.C: New test.
2567 2013-02-01 Alan Modra <amodra@gmail.com>
2569 * task.c (GOMP_task, GOMP_taskwait): Comment.
2571 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
2572 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
2575 * config/linux/wait.h (do_spin): Use atomic load for addr.
2576 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
2577 for intptr and ptrlock.
2578 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
2581 2013-01-22 Alan Modra <amodra@gmail.com>
2585 * task.c (GOMP_task): Revert 2011-12-09 change.
2586 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
2587 barrier to read task->children..
2588 (gomp_barrier_handle_tasks): ..and matching atomic store with
2589 release barrier here when setting parent->children to NULL.
2591 2013-01-16 Jakub Jelinek <jakub@redhat.com>
2592 Tobias Burnus <burnus@net-b.de>
2595 * testsuite/libgomp.fortran/fortran.exp: Use
2596 -fintrinsic-modules-path= instead of
2597 -fintrinsic-modules-path.
2599 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
2601 Update copyright years.
2603 2012-12-19 Tobias Burnus <burnus@net-b.de>
2605 * testsuite/libgomp.fortran/fortran.exp: Set
2606 -fintrinsic-modules-path.
2608 2012-12-19 Tobias Burnus <burnus@net-b.de>
2610 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
2611 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
2613 2012-11-21 Jakub Jelinek <jakub@redhat.com>
2616 * team.c (gomp_free_thread): Decrease gomp_managed_threads
2617 if pool had any threads_used.
2619 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
2621 * testsuite/libgomp.c++/pr24455.C: Use
2622 -Wl,-undefined,dynamic_lookup on darwin.
2624 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
2626 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
2628 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
2630 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
2632 2012-10-23 Ian Bolton <ian.bolton@arm.com>
2633 Jim MacArthur <jim.macarthur@arm.com>
2634 Marcus Shawcroft <marcus.shawcroft@arm.com>
2635 Nigel Stephens <nigel.stephens@arm.com>
2636 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2637 Richard Earnshaw <rearnsha@arm.com>
2638 Sofiane Naci <sofiane.naci@arm.com>
2639 Stephen Thomas <stephen.thomas@arm.com>
2640 Tejas Belagod <tejas.belagod@arm.com>
2641 Yufeng Zhang <yufeng.zhang@arm.com>
2643 * configure.tgt: Add AArch64.
2645 2012-10-04 Jason Merrill <jason@redhat.com>
2647 * testsuite/libgomp.c++/tls-init1.C: New.
2649 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
2651 * configure: Regenerated.
2653 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
2655 * config/linux/mips/futex.h (sys_futex0): Change to static
2656 function with noinline, nomips16 attributes under MIPS16. Adjust
2657 asm statement to place 'li v0,SYS_futex' immediately before
2660 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
2662 * libgomp.texi (Library Index): Renamed from "Index" to prevent
2663 conflict with index.html on case-insensitive file systems.
2665 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2667 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
2668 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
2670 2012-07-02 Richard Guenther <rguenther@suse.de>
2671 Michael Matz <matz@suse.de>
2672 Tobias Grosser <tobias@grosser.es>
2673 Sebastian Pop <sebpop@gmail.com>
2675 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2676 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2677 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2678 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2680 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2682 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
2684 2012-06-22 Richard Guenther <rguenther@suse.de>
2686 Merge from graphite branch
2687 2012-01-13 Tobias Grosser <tobias@grosser.es>
2689 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2690 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2692 2012-06-07 Jakub Jelinek <jakub@redhat.com>
2695 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
2696 use GOMP_barrier () call instead.
2697 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2698 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2699 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
2700 call GOMP_barrier instead.
2701 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2703 2012-06-06 Jakub Jelinek <jakub@redhat.com>
2706 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
2707 argument to memset call.
2709 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2711 * configure: Regenerated.
2713 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2715 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
2717 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2720 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2722 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2725 * testsuite/libgomp.c/pr52547.c: New test.
2727 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2729 * testsuite/lib/libgomp.exp: load fortran-modules.exp
2731 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2733 * configure.tgt (mips-sgi-irix6*): Remove.
2735 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2737 * configure.tgt (alpha*-dec-osf*): Remove.
2739 * config/osf/sem.h: Remove.
2740 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2742 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
2744 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2746 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2749 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2750 Remove ENABLE_SYMVERS_SOL2.
2751 * configure: Regenerate.
2752 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2753 (PREPROCESS): New variable.
2754 (libgomp.ver): New target.
2755 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2756 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2757 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2759 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2760 * Makefile.in: Regenerate.
2762 2012-02-14 Walter Lee <walt@tilera.com>
2764 * configure.tgt: Handle tilegx and tilepro.
2765 * config/linux/tile/futex.h: New file.
2767 2012-02-08 Richard Guenther <rguenther@suse.de>
2769 PR tree-optimization/46886
2770 * testsuite/libgomp.c/pr46886.c: New testcase.
2772 2012-01-25 Matthias Klose <doko@ubuntu.com>
2774 * config/linux/arm: Remove empty directory.
2775 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2777 2011-12-09 Alan Modra <amodra@gmail.com>
2780 * task.c (GOMP_taskwait): Don't access task->children outside of
2781 task_lock mutex region.
2782 (GOMP_task): Likewise.
2784 2011-12-06 Jakub Jelinek <jakub@redhat.com>
2787 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2789 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2790 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2791 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2792 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2793 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2795 2011-12-02 Alan Modra <amodra@gmail.com>
2797 * config/linux/affinity.c: Use atomic rather than sync builtin.
2798 * config/linux/lock.c: Likewise.
2799 * config/linux/ptrlock.h: Likewise.
2800 * config/linux/ptrlock.c: Likewise.
2801 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2802 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2803 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2804 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2805 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2806 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2807 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2808 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2809 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2810 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2812 2011-11-30 Alan Modra <amodra@gmail.com>
2815 * config/linux/bar.h: Use atomic rather than sync builtins.
2816 * config/linux/bar.c: Likewise. Add missing acquire
2817 synchronisation on generation field.
2818 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2821 2011-11-30 Alan Modra <amodra@gmail.com>
2823 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2824 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2825 * config/linux/mutex.h: Use atomic rather than sync builtins.
2826 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2827 * config/linux/omp-lock.h: Comment fix.
2828 * config/linux/arm/mutex.h: Delete.
2829 * config/linux/powerpc/mutex.h: Delete.
2830 * config/linux/ia64/mutex.h: Delete.
2831 * config/linux/mips/mutex.h: Delete.
2833 2011-11-30 Alan Modra <amodra@gmail.com>
2836 * config/linux/sem.h: Rewrite.
2837 * config/linux/sem.c: Rewrite.
2839 2011-11-28 Richard Henderson <rth@redhat.com>
2841 * libgomp.h (enum memmodel): New.
2843 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2845 * configure: Regenerate.
2847 2011-10-10 Matthias Klose <doko@ubuntu.com>
2849 * config/posix95: Remove empty directory.
2851 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2853 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2855 2011-08-19 Jakub Jelinek <jakub@redhat.com>
2858 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2859 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2861 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2863 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2865 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2868 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2870 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
2872 * config/linux/proc.h: New.
2873 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2874 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2875 (gomp_init_num_threads): Update call to cpuset_popcount.
2876 (get_num_procs): Ditto.
2877 * config/linux/affinity.c (gomp_init_affinity): Call
2878 gomp_cpuset_popcount.
2880 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2884 * omp.h.in (omp_in_final): New prototype.
2885 * omp_lib.f90.in (omp_in_final): New interface.
2886 (omp_integer_kind, omp_logical_kind): Remove
2887 and replace all its uses in the module with 4.
2888 (openmp_version): Change to 201107.
2889 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2890 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2891 kind for the parameters.
2892 (omp_in_final): New external.
2893 (openmp_version): Change to 201107.
2894 * task.c (omp_in_final): New function.
2895 (gomp_init_task): Initialize final_task.
2896 (GOMP_task): Remove unused attribute from flags. Handle final
2898 (GOMP_taskyield): New function.
2899 (omp_in_final): Return true if if (false) or final (true) task
2900 or descendant of final (true).
2901 * fortran.c (omp_in_final_): New function.
2902 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2903 (GOMP_3.0): Export GOMP_taskyield.
2904 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2906 (parse_unsigned_long_list): New function.
2907 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2908 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2909 even if parse_affinity returned false.
2910 * config/linux/affinity.c (gomp_init_affinity): Handle
2911 gomp_cpu_affinity_len == 0.
2912 * libgomp_g.h (GOMP_taskyield): New prototype.
2913 * libgomp.h (struct gomp_task): Add final_task field.
2914 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2915 * team.c (gomp_team_start): Override new task's nthreads_var icv
2916 if list form OMP_NUM_THREADS has been used and it has value for
2917 the new nesting level.
2919 * testsuite/libgomp.c/atomic-11.c: New test.
2920 * testsuite/libgomp.c/atomic-12.c: New test.
2921 * testsuite/libgomp.c/atomic-13.c: New test.
2922 * testsuite/libgomp.c/atomic-14.c: New test.
2923 * testsuite/libgomp.c/reduction-6.c: New test.
2924 * testsuite/libgomp.c/task-5.c: New test.
2925 * testsuite/libgomp.c++/atomic-2.C: New test.
2926 * testsuite/libgomp.c++/atomic-3.C: New test.
2927 * testsuite/libgomp.c++/atomic-4.C: New test.
2928 * testsuite/libgomp.c++/atomic-5.C: New test.
2929 * testsuite/libgomp.c++/atomic-6.C: New test.
2930 * testsuite/libgomp.c++/atomic-7.C: New test.
2931 * testsuite/libgomp.c++/atomic-8.C: New test.
2932 * testsuite/libgomp.c++/atomic-9.C: New test.
2933 * testsuite/libgomp.c++/task-8.C: New test.
2934 * testsuite/libgomp.c++/reduction-4.C: New test.
2935 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2936 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2937 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2938 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2939 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2940 * testsuite/libgomp.fortran/pointer1.f90: New test.
2941 * testsuite/libgomp.fortran/pointer2.f90: New test.
2942 * testsuite/libgomp.fortran/task4.f90: New test.
2944 2011-08-02 Tobias Burnus <burnus@net-b.de>
2946 * libgomp.texi: Update OpenMP spec references to 3.1.
2947 (omp_in_final,OMP_PROC_BIND): New sections.
2948 (OMP_NUM_THREADS): Document that the value can be now a list.
2949 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2951 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2953 * config/linux/x86/futex.h: Check __x86_64__ instead of
2956 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2960 * testsuite/libgomp.c/pr49897-1.c: New test.
2961 * testsuite/libgomp.c/pr49897-2.c: New test.
2962 * testsuite/libgomp.c/pr49898-1.c: New test.
2963 * testsuite/libgomp.c/pr49898-2.c: New test.
2965 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2967 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2968 for ia32 instead of ilp32.
2970 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2971 * testsuite/libgomp.c/atomic-6.c: Likewise.
2973 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2975 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2976 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2978 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2981 * config/osf/sem.h: New file.
2982 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2984 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2987 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2990 2011-07-15 Jakub Jelinek <jakub@redhat.com>
2992 * config/linux/wait.h (do_spin): New inline, largely copied
2993 from do_wait, just don't do futex_wait here, instead return true if
2995 (do_wait): Implement using do_spin.
2996 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2998 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2999 __sync_bool_compare_and_swap, pass the oldval to
3000 gomp_mutex_lock_slow.
3001 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
3002 If all mutex contenders are just spinning and not sleeping, don't
3003 change state to 2 unnecessarily. Optimize the loop when state has
3004 already become 2 to use just one atomic operation per loop instead
3006 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
3008 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
3009 __sync_bool_compare_and_swap, pass the oldval to
3010 gomp_mutex_lock_slow.
3012 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3015 * iter.c (gomp_iter_static_next): For chunk size 0
3016 only use n ceil/ nthreads size for the first
3017 n % nthreads threads in the team instead of
3018 all threads except for the last few ones which
3019 get less work or none at all.
3020 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
3021 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
3022 chunk argument, set run_sched_modifier to 0 for static
3023 resp. 1 for other kinds. If chunk argument is 0
3024 and not static, set value to 1.
3026 2011-05-19 Jakub Jelinek <jakub@redhat.com>
3029 * testsuite/libgomp.c++/pr49043.C: New test.
3032 * testsuite/libgomp.c++/pr48869.C: New test.
3034 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3037 * fortran.c: Include limits.h.
3039 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
3041 (omp_set_num_threads_8_, omp_set_schedule_8_,
3042 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
3043 omp_get_team_size_8_): Use TO_INT macro.
3044 * testsuite/libgomp.fortran/pr48894.f90: New test.
3046 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3049 * testsuite/libgomp.c/pr48591.c: New test.
3051 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3054 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
3055 * configure: Regenerate.
3057 2011-02-27 Jakub Jelinek <jakub@redhat.com>
3060 * testsuite/libgomp.fortran/task3.f90: New test.
3062 2011-02-24 Tobias Burnus <burnus@net-b.de>
3064 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
3066 2011-02-23 Jakub Jelinek <jakub@redhat.com>
3069 * libgomp.texi (omp_get_wtime): Don't say time in the past
3072 2011-02-18 Jakub Jelinek <jakub@redhat.com>
3075 * testsuite/libgomp.fortran/fortran.exp: Check for both
3076 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
3077 but $blddir != "", still append ${blddir}/${lang_library_path}
3080 2011-02-16 Tobias Burnus <burnus@net-b.de>
3083 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
3084 of libquadmath.a before adding its libpath to ldflags.
3086 2011-02-14 Jakub Jelinek <jakub@redhat.com>
3089 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
3090 to FUTEX_WAIT futex syscall.
3091 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
3093 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3095 * configure: Regenerate.
3097 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
3100 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
3102 2011-01-16 Gerald Pfeifer
3104 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
3106 2010-12-14 Jakub Jelinek <jakub@redhat.com>
3109 * libgomp.fortran/allocatable6.f90: New test.
3111 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3113 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
3114 * configure: Regenerate.
3116 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
3120 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
3121 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
3122 * aclocal.m4: Regenerate.
3123 * configure: Regenerate.
3124 * Makefile.in: Regenerate.
3125 * testsuite/Makefile.in: Regenerate.
3127 2010-12-02 Jakub Jelinek <jakub@redhat.com>
3130 * libgomp.fortran/pr46753.f90: New test.
3133 * env.c (initialize_env): Default to spin count 300000
3134 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
3138 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
3139 at the end if sync builtins aren't supported.
3141 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3143 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
3145 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3147 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
3149 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
3151 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
3153 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3154 Tobias Burnus <burnus@net-b.de>
3158 * configure: Regenerate.
3160 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
3162 * config/linux/futex.h: New.
3163 * config/linux/arm/mutex.h: New.
3164 * configure.tgt (arm*-*-linux*): Add config path.
3166 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3168 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3170 2010-09-23 Tobias Burnus <burnus@net-b.de>
3172 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
3173 Change Fortran datatype to LOGICAL.
3174 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
3175 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
3177 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3179 * configure: Regenerate.
3181 2010-07-26 Jakub Jelinek <jakub@redhat.com>
3183 * libgomp.texi: Add function keyword to a couple of Fortran
3184 interfaces, use integer instead of int for Fortran.
3186 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
3188 * libgomp.texi: Fix spelling and pasto problems throughout.
3189 Adjust prototypes to match code.
3191 2010-07-24 Tobias Burnus <burnus@net-b.de>
3193 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
3194 silence -fwhole-file warning.
3196 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3198 * configure.tgt (*-*-solaris2.[56]*): Removed.
3200 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3202 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
3203 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
3204 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
3205 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
3206 targetting solaris2*.
3207 * configure: Regenerate.
3208 * config.h.in: Regenerate.
3210 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
3211 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
3212 Add libgomp_version_dep.
3213 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
3215 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
3216 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
3217 * Makefile.in: Regenerate.
3219 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
3220 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
3221 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
3222 to common block, protected by
3223 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
3225 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
3227 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
3229 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
3232 * configure: Regenerate.
3234 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3237 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
3238 * configure: Regenerate.
3239 * Makefile.in: Regenerate.
3240 * testsuite/Makefile.in: Regenerate.
3242 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3245 * testsuite/libgomp.c/pr43893.c: New test.
3246 * testsuite/libgomp.c++/pr43893.C: New test.
3248 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3251 * testsuite/libgomp.fortran/vla8.f90: New test.
3253 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3256 * config/linux/affinity.c (gomp_init_affinity): Decrease
3257 gomp_available_cpus if affinity mask confines the process to fewer
3259 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
3260 non-NULL, just return gomp_available_cpus.
3263 * sections.c (gomp_sections_init): Initialize ws->mode.
3265 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3267 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
3268 not unused bar variable.
3269 * configure: Regenerate.
3271 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3273 * Makefile.in: Regenerate.
3274 * aclocal.m4: Regenerate.
3275 * testsuite/Makefile.in: Regenerate.
3277 2010-03-22 Jakub Jelinek <jakub@redhat.com>
3280 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
3281 (initialize_env): Adjust callers.
3282 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
3283 when the argument is 0.
3285 * testsuite/libgomp.c/pr42942.c: New test.
3287 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
3291 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
3292 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
3294 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3296 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
3297 * testsuite/libgomp.c++/task-6.C: Likewise.
3299 2010-01-28 Steve Ellcey <sje@cup.hp.com>
3301 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
3303 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
3305 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
3306 * configure: Regenerate.
3308 2010-01-26 Jakub Jelinek <jakub@redhat.com>
3311 * testsuite/libgomp.fortran/allocatable5.f90: New test.
3313 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
3315 * configure.ac: Test for executability of GFORTRAN.
3316 * configure: Regenerate.
3318 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3320 * configure: Regenerate.
3322 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
3325 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
3327 2010-01-03 Richard Guenther <rguenther@suse.de>
3329 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
3331 2009-12-23 Sebastian Pop <sebpop@gmail.com>
3333 * testsuite/libgomp.graphite/pr4118.c: New.
3335 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3337 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
3338 for darwin, protect the test with require-effective-target tls_runtime.
3339 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
3341 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3344 * testsuite/lib/libgomp.exp: Provide -B options to allow for
3345 link spec %s substitutions for static libraries.
3347 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
3350 * libgomp.graphite/force-parallel-2.c: Reduce array size.
3352 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3354 * Makefile.in: Regenerate.
3355 * configure: Regenerate.
3356 * testsuite/Makefile.in: Regenerate.
3358 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
3360 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
3361 settings for LC_ALL and LANG.
3363 2009-11-25 Jakub Jelinek <jakub@redhat.com>
3366 * testsuite/libgomp.fortran/pr42162.f90: New test.
3368 2009-11-13 Jakub Jelinek <jakub@redhat.com>
3371 * testsuite/libgomp.c/pr42029.c: New test.
3373 2009-10-26 Jakub Jelinek <jakub@redhat.com>
3375 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
3376 *s. Accept ld version without text in ()s.
3377 * configure: Regenerated.
3379 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
3381 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
3383 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3386 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
3387 or a hyphen (happens with fortran language disabled).
3388 * configure: Regenerate.
3390 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3392 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
3393 use sed script portable to Solaris /bin/sed for extracting ld
3395 * configure: Regenerate.
3397 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3399 * testsuite/libgomp.graphite/bounds.c: New test.
3401 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3403 * Makefile.am (libgomp_la_LINK): New.
3404 * Makefile.in: Regenerate.
3406 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3408 * configure.ac (AC_PREREQ): Bump to 2.64.
3410 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3412 * Makefile.am (install-html, install-pdf): Remove.
3413 * Makefile.in: Regenerate.
3415 * Makefile.in: Regenerate.
3416 * aclocal.m4: Regenerate.
3417 * config.h.in: Regenerate.
3418 * configure: Regenerate.
3419 * testsuite/Makefile.in: Regenerate.
3421 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3423 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
3424 * Makefile.in: Regenerate.
3426 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
3428 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
3429 * Makefile.in: Regenerate.
3431 2009-08-19 Tobias Burnus <burnus@net-b.de>
3434 omp_lib.h.in: Fix -std=f95 errors.
3437 2009-08-14 David Edelsohn <edelsohn@gnu.org>
3439 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
3440 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
3441 * testsuite/libgomp.graphite/graphite.exp: New.
3443 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
3445 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
3448 2009-08-04 David Daney <ddaney@caviumnetworks.com>
3450 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
3451 needed memory barrier semantics.
3452 * config/linux/mips/mutex.h: New file.
3454 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3456 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
3458 2009-07-16 Joseph Myers <joseph@codesourcery.com>
3460 * configure: Regenerate.
3462 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
3467 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
3468 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
3469 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
3471 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3473 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
3474 options when choosing a multilib.
3476 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
3478 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
3479 ld_library_path. Use add_path. Add just find_libgcc_s to
3480 ld_library_path, not every libgcc multilib directory.
3481 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
3482 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
3483 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
3485 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
3487 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
3489 * Makefile.am (LTLDFLAGS): Define.
3491 * Makefile.in: Regenerate.
3493 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
3496 * testsuite/libgomp.fortran/fortran.exp: Don't link with
3497 libgfortranbegin, check existence of libgfortran.a instead of
3500 2009-05-20 Jakub Jelinek <jakub@redhat.com>
3503 * team.c (gomp_thread_start): Destroy thr->release semaphore.
3504 (gomp_free_pool_helper): Likewise.
3506 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
3507 Jakub Jelinek <jakub@redhat.com>
3510 * testsuite/libgomp.fortran/workshare2.f90: New test.
3512 2009-04-09 Nick Clifton <nickc@redhat.com>
3514 * iter.c: Change copyright header to refer to version 3 of the
3515 GNU General Public License with version 3.1 of the GCC Runtime
3516 Library Exception and to point readers at the COPYING3 and
3517 COPYING3.RUNTIME files and the FSF's license web page.
3518 * alloc.c: Likewise.
3519 * barrier.c: Likewise.
3520 * config/bsd/proc.c: Likewise.
3521 * config/linux/affinity.c: Likewise.
3522 * config/linux/alpha/futex.h: Likewise.
3523 * config/linux/bar.c: Likewise.
3524 * config/linux/bar.h: Likewise.
3525 * config/linux/ia64/futex.h: Likewise.
3526 * config/linux/ia64/mutex.h: Likewise.
3527 * config/linux/lock.c: Likewise.
3528 * config/linux/mips/futex.h: Likewise.
3529 * config/linux/mutex.c: Likewise.
3530 * config/linux/mutex.h: Likewise.
3531 * config/linux/powerpc/futex.h: Likewise.
3532 * config/linux/proc.c: Likewise.
3533 * config/linux/ptrlock.c: Likewise.
3534 * config/linux/ptrlock.h: Likewise.
3535 * config/linux/s390/futex.h: Likewise.
3536 * config/linux/sem.c: Likewise.
3537 * config/linux/sem.h: Likewise.
3538 * config/linux/sparc/futex.h: Likewise.
3539 * config/linux/wait.h: Likewise.
3540 * config/linux/x86/futex.h: Likewise.
3541 * config/mingw32/proc.c: Likewise.
3542 * config/mingw32/time.c: Likewise.
3543 * config/posix/affinity.c: Likewise.
3544 * config/posix/bar.c: Likewise.
3545 * config/posix/bar.h: Likewise.
3546 * config/posix/lock.c: Likewise.
3547 * config/posix/mutex.h: Likewise.
3548 * config/posix/proc.c: Likewise.
3549 * config/posix/ptrlock.h: Likewise.
3550 * config/posix/sem.c: Likewise.
3551 * config/posix/sem.h: Likewise.
3552 * config/posix/time.c: Likewise.
3553 * config/posix95/lock.c: Likewise.
3554 * critical.c: Likewise.
3556 * error.c: Likewise.
3557 * fortran.c: Likewise.
3558 * iter_ull.c: Likewise.
3559 * libgomp.h: Likewise.
3560 * libgomp_f.h.in: Likewise.
3561 * libgomp_g.h: Likewise.
3563 * loop_ull.c: Likewise.
3564 * omp.h.in: Likewise.
3565 * omp_lib.f90.in: Likewise.
3566 * omp_lib.h.in: Likewise.
3567 * ordered.c: Likewise.
3568 * parallel.c: Likewise.
3569 * sections.c: Likewise.
3570 * single.c: Likewise.
3575 2009-04-09 Jakub Jelinek <jakub@redhat.com>
3577 * testsuite/config/default.exp: Change copyright header to refer to
3578 version 3 of the GNU General Public License and to point readers
3579 at the COPYING3 file and the FSF's license web page.
3581 2009-04-08 Jakub Jelinek <jakub@redhat.com>
3584 * libgomp.c++/pr39573.C: New test.
3586 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3589 * testsuite/libgomp.c/pr39591-1.c: New test.
3590 * testsuite/libgomp.c/pr39591-2.c: New test.
3591 * testsuite/libgomp.c/pr39591-3.c: New test.
3593 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
3595 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
3596 * testsuite/libgomp.c/atomic-6.c: Ditto.
3598 2009-03-23 Jakub Jelinek <jakub@redhat.com>
3601 * testsuite/libgomp.c/loop-12.c: New test.
3602 * testsuite/libgomp.c/loop-11.c: New test.
3603 * testsuite/libgomp.c++/loop-11.C: New test.
3604 * testsuite/libgomp.c++/loop-12.C: New test.
3605 * testsuite/libgomp.c++/for-8.C: New test.
3607 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3609 * configure: Regenerate.
3611 2009-02-11 Jakub Jelinek <jakub@redhat.com>
3614 * testsuite/libgomp.c/pr39154.c: New test.
3616 2009-01-30 Ian Lance Taylor <iant@google.com>
3618 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
3619 libgomp_ld_is_gold. Get gold version number.
3620 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
3621 * configure: Rebuild.
3623 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3625 * testsuite/lib/libgomp.exp: Add -B option for targets that
3626 use libgfortran.a%s in their specs.
3628 2009-01-07 Jakub Jelinek <jakub@redhat.com>
3631 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
3632 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
3633 HAVE_AS_SYMVER_DIRECTIVE is not defined.
3634 * configure: Regenerated.
3635 * config.h.in: Likewise.
3637 2008-12-28 Jakub Jelinek <jakub@redhat.com>
3640 * testsuite/libgomp.c/pr38650.c: New test.
3641 * testsuite/libgomp.c++/pr38650.C: New test.
3643 2008-12-27 Jakub Jelinek <jakub@redhat.com>
3645 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
3647 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
3649 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
3651 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3653 * configure: Regenerate.
3655 2008-12-08 Jakub Jelinek <jakub@redhat.com>
3658 * testsuite/libgomp.c/pr36802-1.c: New test.
3659 * testsuite/libgomp.c/pr36802-2.c: New test.
3660 * testsuite/libgomp.c/pr36802-3.c: New test.
3662 2008-12-01 Janis Johnson <janis187@us.ibm.com>
3665 * config/linux/powerpc/mutex.h: New.
3667 2008-12-01 Jakub Jelinek <jakub@redhat.com>
3670 * testsuite/libgomp.c++/for-7.C: New test.
3673 * testsuite/libgomp.c++/for-6.C: New test.
3675 2008-11-26 Janis Johnson <janis187@us.ibm.com>
3678 * testsuite/lib/libgomp.exp: Include new timeout library files.
3679 (libgomp_target_compile): Set timeout value from new proc.
3681 2008-11-13 Steve Ellcey <sje@cup.hp.com>
3684 * config/linux/ia64/mutex.h: New.
3686 2008-11-04 Tobias Burnus <burnus@net-b.de>
3689 * libgomp.texi (Runtime library routines, environment variables):
3690 Update for OpenMP version 3.0.
3692 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3693 Steve Ellcey <sje@cup.hp.com>
3695 * configure: Regenerate for new libtool.
3696 * Makefile.in: Ditto.
3697 * testsuite/Makefile.in: Ditto.
3699 2008-09-19 Jakub Jelinek <jakub@redhat.com>
3700 Andreas Tobler <a.tobler@schweiz.org>
3702 * config/bsd/proc.c: New file.
3703 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
3704 * configure.ac: Check for header <sys/sysctl.h>
3705 * configure: Regenerate.
3706 * config.h.in: Likewise.
3708 2008-09-05 Janis Johnson <janis187@us.ibm.com>
3710 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
3712 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3714 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
3715 * Makefile.in: Regenerated.
3716 * testsuite/Makefile.in: Regenerated.
3718 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
3720 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
3721 depend on blddir if blddir exists.
3722 (libgomp_target_compile): Likewise.
3723 * testsuite/libgomp.c++/c++.exp: Likewise.
3724 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3726 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3728 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
3729 Do not list GPL as Invariant Section.
3731 2008-07-28 Ilie Garbacea <ilie@mips.com>
3732 Chao-ying Fu <fu@mips.com>
3734 * configure.tgt: Enable futex for MIPS.
3735 * config/linux/mips/futex.h: New file.
3737 2008-07-16 Jakub Jelinek <jakub@redhat.com>
3739 * team.c (gomp_team_end): Free team immediately if it has
3742 2008-07-08 David Edelsohn <edelsohn@gnu.org>
3744 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3745 * testsuite/libgomp.fortran/fortran.exp: Same.
3746 * testsuite/libgomp.c/c.exp: Same.
3747 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3748 directory to library path first.
3750 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3752 * env.c (parse_stacksize): Add cast to avoid warning.
3753 (parse_spincount): Likewise.
3755 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3757 * testsuite/libgomp.c/loop-10.c: New test.
3758 * libgomp.c/loop-3.c (main): Add lastprivate clause.
3759 * libgomp.c++/loop-6.C (main): Likewise.
3762 * testsuite/libgomp.c/debug-1.c: New test.
3764 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3766 * testsuite/libgomp.c/nqueens-1.c: New test.
3769 * testsuite/libgomp.c++/task-7.C: New function.
3771 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3773 * configure: Regenerate.
3775 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3777 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3778 mutex when HAVE_SYNC_BUILTINS isn't defined.
3780 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3782 * libgomp.texi (omp_test_lock): Fix typo.
3784 2008-06-12 Tobias Burnus <burnus@net-b.de>
3786 * omp_lib.f90.in: Add "implicit none".
3788 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3791 * testsuite/libgomp.c/reduction-5.c: New test.
3793 2008-06-11 Jakub Jelinek <jakub@redhat.com>
3795 * libgomp.h (struct gomp_task): Add in_tied_task field.
3796 * task.c (gomp_init_task): Initialize it.
3797 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
3798 unconditionally. Don't call gomp_team_barrier_wake if
3799 current task is implicit or if(0) from implicit and number of
3800 running tasks is equal to nthreads - 1.
3803 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3804 omp_get_team_size_8): Fix pastos.
3807 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3808 * configure: Regenerated.
3809 * config.h.in: Regenerated.
3810 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3813 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3816 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3817 (GOMP_loop_ull_dynamic_start): Likewise.
3818 (GOMP_loop_ull_guided_start): Likewise.
3819 (GOMP_loop_ull_ordered_static_start): Likewise.
3820 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3821 (GOMP_loop_ull_ordered_guided_start): Likewise.
3823 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3824 Richard Henderson <rth@redhat.com>
3825 Ulrich Drepper <drepper@redhat.com>
3826 Jakob Blomer <jakob.blomer@ira.uka.de>
3828 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3829 Substitute also OMP_*LOCK_25*.
3830 * configure: Regenerated.
3831 * config.h.in: Regenerated.
3832 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3833 ptrlock.c and task.c.
3834 * Makefile.in: Regenerated.
3835 * testsuite/Makefile.in: Regenerated.
3837 * loop_ull.c: New file.
3838 * iter_ull.c: New file.
3839 * libgomp.h: Include ptrlock.h.
3840 (enum gomp_task_kind): New type.
3841 (struct gomp_team): Add task_lock, task_queue, task_count,
3842 task_running_count, single_count fields. Add
3843 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3844 Remove work_share_lock, generation_mask,
3845 oldest_live_gen, num_live_gen and init_work_shares fields, add
3846 work work_share_list_alloc, work_share_list_free and work_share_chunk
3847 fields. Change work_shares from pointer to pointers into an array.
3848 Change ordered_release field into gomp_sem_t ** from flexible array
3849 member. Add implicit_task and initial_work_shares fields.
3850 Move close to the end of the struct.
3851 (struct gomp_team_state): Add single_count, last_work_share,
3852 active_level and level fields, remove work_share_generation.
3853 (gomp_barrier_handle_tasks): New prototype.
3854 (gomp_finish_task): New inline function.
3855 (struct gomp_work_share): Move chunk_size, end, incr into
3856 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3857 next_ll fields. Reshuffle fields. Add next_alloc,
3858 next_ws, next_free and inline_ordered_team_ids fields, change
3859 ordered_team_ids into pointer from flexible array member.
3860 Add mode field. Put lock and next into a different cache line
3861 from most of the write-once fields.
3862 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3863 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3864 gomp_iter_ull_guided_next): New prototypes.
3865 (gomp_new_icv): New prototype.
3866 (struct gomp_thread): Add thread_pool and task fields.
3867 (struct gomp_thread_pool): New type.
3868 (gomp_new_team): New prototype.
3869 (gomp_team_start): Change type of last argument.
3870 (gomp_new_work_share): Removed.
3871 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3872 (gomp_work_share_init_done): New static inline.
3873 (gomp_throttled_spin_count_var, gomp_available_cpus,
3874 gomp_managed_threads): New extern decls.
3875 (gomp_init_task): New prototype.
3876 (gomp_spin_count_var): New extern var decl.
3877 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3878 or no alias support, or if not PIC.
3879 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3880 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3881 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3882 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3883 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3884 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3885 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3886 gomp_test_nest_lock_25): New prototypes.
3887 (omp_lock_symver, strong_alias): Define.
3888 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3890 (gomp_end_task): New.
3891 (struct gomp_task_icv, gomp_global_icv): New.
3892 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3893 (struct gomp_task): New.
3894 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3895 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3897 (gomp_schedule_type): Reorder enum to match
3899 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3901 (gomp_thread_start): Add gomp_team_barrier_wait call.
3902 For non-nested case remove clearing of docked thread thr fields.
3903 Use pool fields instead of global gomp_* variables. Use
3904 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3905 Create tasks for each member thread.
3906 (free_team): Only destroy team barrier, task_lock here and free it.
3907 (gomp_free_thread): Free last_team if non-NULL.
3908 (gomp_team_end): Call gomp_team_barrier_wait instead of
3909 gomp_barrier_wait. For nested case call one extra
3910 gomp_barrier_wait. Move here some destruction from free_team.
3911 Call free_team on pool->last_team if any, rather than freeing
3912 current team. Destroy work_share_list_free_lock ifndef
3914 (gomp_new_icv): New function.
3915 (gomp_threads, gomp_threads_size, gomp_threads_used,
3916 gomp_threads_dock): Removed.
3917 (gomp_thread_destructor): New variable.
3918 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3920 (gomp_team_start): Create new pool if current thread doesn't have
3921 one. Use pool fields instead of global gomp_* variables.
3922 Initialize thread_pool field for new threads. Clear single_count.
3923 Change last argument from ws to team, don't create
3924 new team, set ts.work_share to &team->work_shares[0] and clear
3925 ts.last_work_share. Don't clear ts.work_share_generation.
3926 If number of threads changed, adjust atomically gomp_managed_threads.
3927 Use gomp_init_task instead of gomp_new_task,
3928 set thr->task to the corresponding implicit_task array entry.
3929 Create tasks for each member thread. Initialize ts.level.
3930 (initialize_team): Call pthread_key_create on
3931 gomp_thread_destructor.
3932 (team_destructor): New function.
3933 (new_team): Removed.
3934 (gomp_new_team): New function.
3935 (free_team): Free gomp_work_share blocks chained through next_alloc,
3936 instead of freeing work_shares and destroying work_share_lock.
3937 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3938 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3939 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3940 of gomp_barrier_wait.
3941 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3942 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3943 if gomp_work_share_start returned true. Don't unlock ws->lock.
3944 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3945 of gomp_barrier_wait.
3946 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3947 gomp_work_share_init_done if gomp_work_share_start returned true.
3948 Don't unlock ws->lock.
3949 * work.c: Include stddef.h.
3950 (free_work_share): Use work_share_list_free_lock instead
3951 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3952 Call gomp_fini_work_share and then either free ws if orphaned, or
3953 put it into work_share_list_free list of the current team.
3954 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3956 (gomp_work_share_start, gomp_work_share_end,
3957 gomp_work_share_end_nowait): Rewritten.
3958 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3959 (openmp_version): Set to 200805.
3960 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3961 omp_sched_guided, omp_sched_auto): New parameters.
3962 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3963 omp_set_max_active_levels, omp_get_max_active_levels,
3964 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3965 omp_get_active_level): New interfaces.
3966 * omp_lib.h.in (openmp_version): Set to 200805.
3967 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3968 omp_sched_guided, omp_sched_auto): New parameters.
3969 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3970 omp_set_max_active_levels, omp_get_max_active_levels,
3971 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3972 omp_get_active_level): New externals.
3973 * loop.c: Include limits.h.
3974 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3976 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3977 Likewise. Use gomp_icv.
3978 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3979 ts.static_trip here.
3980 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3981 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3982 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3983 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3984 don't unlock ws->lock, otherwise lock it.
3985 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3986 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3987 (gomp_parallel_loop_start): Call gomp_new_team instead of
3988 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3989 Adjust gomp_team_start caller. Pass 0 as second argument to
3990 gomp_resolve_num_threads.
3991 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3992 If adding ws->chunk_size nthreads + 1 times after end won't
3993 overflow, set ws->mode to 1.
3994 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3995 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3996 GOMP_loop_ull_ordered_static_start,
3997 GOMP_loop_ull_ordered_dynamic_start,
3998 GOMP_loop_ull_ordered_guided_start,
3999 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
4000 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
4001 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
4002 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
4003 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
4005 * libgomp.map: Export lock routines also @@OMP_2.0.
4006 (GOMP_loop_ordered_dynamic_first,
4007 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
4008 GOMP_loop_ordered_static_first): Remove.
4009 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
4010 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
4011 GOMP_loop_ull_ordered_dynamic_next,
4012 GOMP_loop_ull_ordered_dynamic_start,
4013 GOMP_loop_ull_ordered_guided_next,
4014 GOMP_loop_ull_ordered_guided_start,
4015 GOMP_loop_ull_ordered_runtime_next,
4016 GOMP_loop_ull_ordered_runtime_start,
4017 GOMP_loop_ull_ordered_static_next,
4018 GOMP_loop_ull_ordered_static_start,
4019 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
4020 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
4021 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
4022 (omp_set_schedule, omp_get_schedule,
4023 omp_get_thread_limit, omp_set_max_active_levels,
4024 omp_get_max_active_levels, omp_get_level,
4025 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
4026 omp_set_schedule_, omp_set_schedule_8_,
4027 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
4028 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
4029 omp_get_max_active_levels_, omp_get_level_,
4030 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
4031 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
4032 New exports @@OMP_3.0.
4033 * omp.h.in (omp_sched_t): New type.
4034 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4035 omp_set_max_active_levels, omp_get_max_active_levels,
4036 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
4037 omp_get_active_level): New prototypes.
4038 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
4039 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
4040 gomp_thread_limit_var, gomp_remaining_threads_count,
4041 gomp_remaining_threads_lock): New variables.
4042 (parse_spincount): New function.
4043 (initialize_env): Call gomp_init_num_threads unconditionally.
4044 Initialize gomp_available_cpus. Call parse_spincount,
4045 initialize gomp_{,throttled_}spin_count_var
4046 depending on presence and value of OMP_WAIT_POLICY and
4047 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
4048 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
4049 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
4050 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
4051 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
4052 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
4053 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
4054 (gomp_global_icv): New.
4055 (parse_schedule): Use it. Parse "auto".
4056 (omp_set_num_threads): Use gomp_icv.
4057 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
4059 (omp_get_max_threads): Move from parallel.c.
4060 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
4061 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
4063 (parse_stacksize, parse_wait_policy): New functions.
4064 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
4065 both wrappers for compatibility and new locks.
4066 (omp_set_schedule, omp_get_schedule,
4067 omp_get_thread_limit, omp_set_max_active_levels,
4068 omp_get_max_active_levels, omp_get_level,
4069 omp_get_ancestor_thread_num, omp_get_team_size,
4070 omp_get_active_level): New ialias_redirect.
4071 (omp_set_schedule_, omp_set_schedule_8_,
4072 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
4073 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
4074 omp_get_max_active_levels_, omp_get_level_,
4075 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
4076 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
4078 * parallel.c: Include limits.h.
4079 (gomp_resolve_num_threads): Add count argument. Rewritten.
4080 (GOMP_parallel_start): Call gomp_new_team and pass that as last
4081 argument to gomp_team_start. Pass 0 as second argument to
4082 gomp_resolve_num_threads.
4083 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
4084 if gomp_thread_limit_var != ULONG_MAX.
4085 (omp_in_parallel): Implement using ts.active_level.
4086 (omp_get_max_threads): Move to env.c.
4087 (omp_get_level, omp_get_ancestor_thread_num,
4088 omp_get_team_size, omp_get_active_level): New functions,
4090 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
4091 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
4092 gomp_iter_dynamic_next instead of the _locked variant and don't take
4093 lock around it, otherwise acquire it before calling
4094 gomp_iter_dynamic_next_locked.
4095 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
4096 gomp_iter_dynamic_next instead of the _locked variant and don't take
4098 (GOMP_parallel_sections_start): Call gomp_new_team instead of
4099 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
4100 Adjust gomp_team_start caller. Pass count as second argument to
4101 gomp_resolve_num_threads, don't adjust num_threads after the call.
4103 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
4104 ws->chunk_size by incr.
4105 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
4107 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
4109 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
4110 (omp_check_defines): Check even the compat defines.
4111 * config/linux/ptrlock.c: New file.
4112 * config/linux/ptrlock.h: New file.
4113 * config/linux/wait.h: New file.
4114 * config/posix/ptrlock.c: New file.
4115 * config/posix/ptrlock.h: New file.
4116 * config/linux/bar.h (gomp_team_barrier_wait,
4117 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
4118 (gomp_team_barrier_set_task_pending,
4119 gomp_team_barrier_clear_task_pending,
4120 gomp_team_barrier_set_waiting_for_tasks,
4121 gomp_team_barrier_waiting_for_tasks,
4122 gomp_team_barrier_done): New inlines.
4123 (gomp_barrier_t): Rewritten.
4124 (gomp_barrier_state_t): New typedef.
4125 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
4126 gomp_barrier_wait_start): Rewritten.
4127 (gomp_barrier_wait_end): Change second argument to
4128 gomp_barrier_state_t.
4129 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
4131 * config/linux/bar.c: Include wait.h instead of libgomp.h and
4133 (gomp_barrier_wait_end): Rewritten.
4134 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
4135 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
4136 * config/posix/bar.h (gomp_barrier_t): Add generation field.
4137 (gomp_barrier_state_t): New typedef.
4138 (gomp_team_barrier_wait,
4139 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
4140 (gomp_barrier_wait_start): Or all but low 2 bits from generation
4141 into the return value. Return gomp_barrier_state_t.
4142 (gomp_team_barrier_set_task_pending,
4143 gomp_team_barrier_clear_task_pending,
4144 gomp_team_barrier_set_waiting_for_tasks,
4145 gomp_team_barrier_waiting_for_tasks,
4146 gomp_team_barrier_done): New inlines.
4147 (gomp_barrier_wait_end): Change second argument to
4148 gomp_barrier_state_t.
4149 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
4151 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
4152 (gomp_barrier_wait_end): Change second argument to
4153 gomp_barrier_state_t.
4154 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
4155 gomp_team_barrier_wake): New functions.
4156 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
4158 (gomp_futex_wake, gomp_futex_wait): New variables.
4159 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
4160 * config/linux/lock.c: Rewrite to make locks task owned,
4161 for backwards compatibility provide the old entrypoints
4162 if symbol versioning. Include wait.h instead of libgomp.h and
4164 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
4165 * config/posix95/lock.c: Rewrite to make locks task owned,
4166 for backwards compatibility provide the old entrypoints
4167 if symbol versioning.
4168 * config/posix/lock.c: Rewrite to make locks task owned,
4169 for backwards compatibility provide the old entrypoints
4170 if symbol versioning.
4171 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
4172 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
4173 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
4174 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4175 (sys_futex0): Return error code.
4176 (futex_wake, futex_wait): If ENOSYS was returned, clear
4177 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4178 (cpu_relax, atomic_write_barrier): New static inlines.
4179 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4180 (futex_wake, futex_wait): If ENOSYS was returned, clear
4181 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4182 (cpu_relax, atomic_write_barrier): New static inlines.
4183 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4184 (sys_futex0): Return error code.
4185 (futex_wake, futex_wait): If ENOSYS was returned, clear
4186 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4187 (cpu_relax, atomic_write_barrier): New static inlines.
4188 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4189 (sys_futex0): Return error code.
4190 (futex_wake, futex_wait): If ENOSYS was returned, clear
4191 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4192 (cpu_relax, atomic_write_barrier): New static inlines.
4193 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4194 (sys_futex0): Return error code.
4195 (futex_wake, futex_wait): If ENOSYS was returned, clear
4196 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4197 (cpu_relax, atomic_write_barrier): New static inlines.
4198 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
4199 (sys_futex0): Return error code.
4200 (futex_wake, futex_wait): If ENOSYS was returned, clear
4201 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
4202 (cpu_relax, atomic_write_barrier): New static inlines.
4203 * config/linux/sem.c: Include wait.h instead of libgomp.h and
4205 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
4206 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
4207 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
4209 (omp_nest_lock_t): Change owner into void *, add lock field.
4210 * config/posix95/omp-lock.h: Include semaphore.h.
4211 (omp_lock_25_t, omp_nest_lock_25_t): New types.
4212 (omp_lock_t): Use sem_t instead of mutex if semaphores
4214 (omp_nest_lock_t): Likewise. Change owner to void *.
4215 * config/posix/omp-lock.h: Include semaphore.h.
4216 (omp_lock_25_t, omp_nest_lock_25_t): New types.
4217 (omp_lock_t): Use sem_t instead of mutex if semaphores
4219 (omp_nest_lock_t): Likewise. Add owner field.
4221 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4223 * testsuite/libgomp.c/collapse-1.c: New test.
4224 * testsuite/libgomp.c/collapse-2.c: New test.
4225 * testsuite/libgomp.c/collapse-3.c: New test.
4226 * testsuite/libgomp.c/icv-1.c: New test.
4227 * testsuite/libgomp.c/icv-2.c: New test.
4228 * testsuite/libgomp.c/lib-2.c: New test.
4229 * testsuite/libgomp.c/lock-1.c: New test.
4230 * testsuite/libgomp.c/lock-2.c: New test.
4231 * testsuite/libgomp.c/lock-3.c: New test.
4232 * testsuite/libgomp.c/loop-4.c: New test.
4233 * testsuite/libgomp.c/loop-5.c: New test.
4234 * testsuite/libgomp.c/loop-6.c: New test.
4235 * testsuite/libgomp.c/loop-7.c: New test.
4236 * testsuite/libgomp.c/loop-8.c: New test.
4237 * testsuite/libgomp.c/loop-9.c: New test.
4238 * testsuite/libgomp.c/nested-3.c: New test.
4239 * testsuite/libgomp.c/nestedfn-6.c: New test.
4240 * testsuite/libgomp.c/sort-1.c: New test.
4241 * testsuite/libgomp.c/task-1.c: New test.
4242 * testsuite/libgomp.c/task-2.c: New test.
4243 * testsuite/libgomp.c/task-3.c: New test.
4244 * testsuite/libgomp.c/task-4.c: New test.
4245 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
4246 to C++ testsuite default compiler options.
4247 * testsuite/libgomp.c++/collapse-1.C: New test.
4248 * testsuite/libgomp.c++/collapse-2.C: New test.
4249 * testsuite/libgomp.c++/ctor-10.C: New test.
4250 * testsuite/libgomp.c++/for-1.C: New test.
4251 * testsuite/libgomp.c++/for-2.C: New test.
4252 * testsuite/libgomp.c++/for-3.C: New test.
4253 * testsuite/libgomp.c++/for-4.C: New test.
4254 * testsuite/libgomp.c++/for-5.C: New test.
4255 * testsuite/libgomp.c++/loop-8.C: New test.
4256 * testsuite/libgomp.c++/loop-9.C: New test.
4257 * testsuite/libgomp.c++/loop-10.C: New test.
4258 * testsuite/libgomp.c++/task-1.C: New test.
4259 * testsuite/libgomp.c++/task-2.C: New test.
4260 * testsuite/libgomp.c++/task-3.C: New test.
4261 * testsuite/libgomp.c++/task-4.C: New test.
4262 * testsuite/libgomp.c++/task-5.C: New test.
4263 * testsuite/libgomp.c++/task-6.C: New test.
4264 * testsuite/libgomp.fortran/allocatable1.f90: New test.
4265 * testsuite/libgomp.fortran/allocatable2.f90: New test.
4266 * testsuite/libgomp.fortran/allocatable3.f90: New test.
4267 * testsuite/libgomp.fortran/allocatable4.f90: New test.
4268 * testsuite/libgomp.fortran/collapse1.f90: New test.
4269 * testsuite/libgomp.fortran/collapse2.f90: New test.
4270 * testsuite/libgomp.fortran/collapse3.f90: New test.
4271 * testsuite/libgomp.fortran/collapse4.f90: New test.
4272 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
4273 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
4274 * testsuite/libgomp.fortran/lib4.f90: New test.
4275 * testsuite/libgomp.fortran/lock-1.f90: New test.
4276 * testsuite/libgomp.fortran/lock-2.f90: New test.
4277 * testsuite/libgomp.fortran/nested1.f90: New test.
4278 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
4279 * testsuite/libgomp.fortran/strassen.f90: New test.
4280 * testsuite/libgomp.fortran/tabs1.f90: New test.
4281 * testsuite/libgomp.fortran/tabs2.f: New test.
4282 * testsuite/libgomp.fortran/task1.f90: New test.
4283 * testsuite/libgomp.fortran/task2.f90: New test.
4284 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
4285 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4286 * testsuite/libgomp.c/pr26943-2.c: Likewise.
4287 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4288 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4290 2008-05-23 Jakub Jelinek <jakub@redhat.com>
4293 * testsuite/libgomp.c++/ctor-11.C: New test.
4294 * testsuite/libgomp.c++/ctor-12.C: New test.
4296 2008-05-15 Janis Johnson <janis187@us.ibm.com>
4298 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
4300 2008-05-07 Jakub Jelinek <jakub@redhat.com>
4303 * testsuite/libgomp.c/atomic-5.c: New test.
4304 * testsuite/libgomp.c/atomic-6.c: New test.
4305 * testsuite/libgomp.c/autopar-1.c: New test.
4307 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4309 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
4310 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
4311 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
4312 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
4313 * configure: Regenerate.
4314 * Makefile.in, testsuite/Makefile.in: Likewise.
4316 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
4319 * aclocal.m4: Regenerate.
4320 * configure: Regenerate.
4322 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4325 * testsuite/libgomp.c/atomic-4.c: New test.
4328 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
4329 (gomp_iter_guided_next): Likewise.
4330 * testsuite/libgomp.c/pr35625.c: New test.
4332 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4334 * aclocal.m4: Regenerate.
4335 * configure: Likewise.
4336 * Makefile.in: Likewise.
4337 * testsuite/Makefile.in: Likewise.
4339 2008-03-13 Jakub Jelinek <jakub@redhat.com>
4342 * testsuite/libgomp.c++/pr35185.C: New test.
4344 2008-03-12 Jakub Jelinek <jakub@redhat.com>
4347 * testsuite/libgomp.c/pr35549.c: New test.
4349 2008-03-06 Jakub Jelinek <jakub@redhat.com>
4351 * testsuite/libgomp.c/atomic-3.c: New test.
4353 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4356 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
4359 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
4362 * configure.ac: Add ACX_HEADER_STRING.
4363 * env.c: Include strings.h.
4364 * aclocal.m4: Regenerate.
4365 * config.h.in: Regenerate.
4366 * configure: Regenerate.
4367 * Makefile.in: Regenerate.
4368 * testsuite/Makefile.in: Regenerate.
4370 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4373 * testsuite/libgomp.c/pr35196.c: New test.
4376 * testsuite/libgomp.fortran/pr35130.f90: New test.
4377 * testsuite/libgomp.c/pr35130.c: New test.
4379 2008-01-25 Jakub Jelinek <jakub@redhat.com>
4382 * testsuite/libgomp.c/pr33880.c: New test.
4383 * testsuite/libgomp.fortran/pr33880.f90: New test.
4385 2008-01-24 David Edelsohn <edelsohn@gnu.org>
4387 * configure: Regenerate.
4389 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4391 * configure.ac: Move futex checking into ../config/futex.m4.
4392 * configure: Rebuilt.
4393 * aclocal.m4: Rebuilt.
4394 * Makefile.in: Rebuilt.
4396 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
4397 2007-10-15 ../config/tls.m4 change.
4399 2007-12-19 Jakub Jelinek <jakub@redhat.com>
4402 * testsuite/libgomp.c/pr34513.c: New test.
4403 * testsuite/libgomp.c++/pr34513.C: New test.
4405 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
4408 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
4410 2007-12-04 Jakub Jelinek <jakub@redhat.com>
4412 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
4414 2007-12-03 Jakub Jelinek <jakub@redhat.com>
4416 * testsuite/libgomp.c/private-1.c: New test.
4418 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
4419 Paolo Bonzini <bonzini@gnu.org>
4421 * Makefile.am: Use space as vpath separator. Use 'vpath %'
4422 instead of 'VPATH ='.
4423 * Makefile.in: Regenerate.
4425 2007-11-23 Matthias Klose <doko@ubuntu.com>
4427 * configure.ac: Adjust makeinfo version check.
4428 * configure: Regenerate.
4430 2007-11-10 Jakub Jelinek <jakub@redhat.com>
4433 * testsuite/libgomp.fortran/pr34020.f90: New test.
4435 2007-11-06 Jakub Jelinek <jakub@redhat.com>
4438 * testsuite/libgomp.c++/atomic-1.C: New test.
4440 2007-10-25 Jakub Jelinek <jakub@redhat.com>
4443 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
4444 Make x and y integers rather than (implicit) reals. Add private (j)
4445 clause to the last omp parallel.
4447 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
4449 * configure: Regenerate following changes to ../config/tls.m4.
4451 2007-09-28 Jakub Jelinek <jakub@redhat.com>
4453 * testsuite/libgomp.fortran/stack.f90: New test.
4455 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4457 * config/mingw32/proc.c: New file.
4459 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
4461 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
4462 (main): Use __get_cpuid to get i386 target fetaures.
4463 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
4464 (main): Use __get_cpuid to get x86_64 target fetaures.
4466 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
4469 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
4470 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
4472 2007-07-12 Jakub Jelinek <jakub@redhat.com>
4475 * testsuite/libgomp.fortran/pr32550.f90: New test.
4476 * testsuite/libgomp.fortran/crayptr2.f90: New test.
4478 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
4480 * aclocal.m4: Regenerated.
4482 2007-07-05 Tobias Burnus <burnus@net-b.de>
4485 * testsuite/libgomp.fortran/pr32359.f90: New.
4487 2007-07-02 Jakub Jelinek <jakub@redhat.com>
4490 * sections.c (GOMP_parallel_sections_start): Only decrease
4491 number of threads to COUNT if dyn_var is true.
4492 * testsuite/libgomp.c/pr32468.c: New test.
4494 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4497 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
4499 2007-06-21 Jakub Jelinek <jakub@redhat.com>
4502 * testsuite/libgomp.c/pr32362-1.c: New test.
4503 * testsuite/libgomp.c/pr32362-2.c: New test.
4504 * testsuite/libgomp.c/pr32362-3.c: New test.
4506 2007-06-07 Jakub Jelinek <jakub@redhat.com>
4508 * team.c (gomp_team_start): Fix setting up thread_attr
4511 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
4513 * configure: Regenerate.
4515 2007-05-23 Steve Ellcey <sje@cup.hp.com>
4517 * Makefile.in: Regenerate.
4518 * configure: Regenerate.
4519 * aclocal.m4: Regenerate.
4520 * testsuite/Makefile.in: Regenerate.
4522 2007-05-04 Jakub Jelinek <jakub@redhat.com>
4524 * config/linux/proc.c: New file.
4527 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
4529 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
4531 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
4533 2007-04-16 Matthias Klose <doko@debian.org>
4535 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
4536 flags if not building with -m64.
4537 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
4538 flag for i?86-*-* targets, if current target matches -m64.
4540 2007-04-14 Steve Ellcey <sje@cup.hp.com>
4542 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
4543 * Makefile.in: Regenerate.
4545 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4548 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
4550 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4552 2007-04-04 Jakub Jelinek <jakub@redhat.com>
4554 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
4556 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
4557 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
4558 (parse_affinity): New function.
4559 (initialize_env): Call it and gomp_init_affinity.
4560 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
4561 create new pthread_attr_t and call gomp_init_thread_affinity
4562 on it for each thread before passing the attribute to pthread_create.
4563 * config/linux/affinity.c: New file.
4564 * config/posix/affinity.c: New file.
4565 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
4566 * configure: Rebuilt.
4567 * config.h.in: Rebuilt.
4568 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
4569 * Makefile.in: Rebuilt.
4571 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
4573 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
4575 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
4576 and use it if found.
4578 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
4580 * testsuite/config/default.exp: New file.
4581 * testsuite/lib/libgomp.exp: New file.
4582 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
4583 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
4584 load_lib *, load_gcc_lib *): Move to libgomp.exp.
4585 (libgomp_load): Remove.
4586 * testsuite/lib/libgomp.exp (libgomp_init): Compute
4587 always_ld_library_path, not ld_library_path. Set additional_flags
4588 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
4589 (target_compile): Do not call libgomp_init. Append lang_library_path
4590 and lang_link_flags to options.
4591 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
4592 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
4594 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
4595 always_ld_library_path. Set LD_LIBRARY_PATH here.
4596 * testsuite/libgomp.fortran/fortran.exp: Ditto.
4597 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
4598 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
4600 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
4601 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
4602 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
4603 * testsuite/libgomp.c/pr29947-1.c: Ditto.
4604 * testsuite/libgomp.c/atomic-10.c: Ditto.
4606 2007-03-21 Jakub Jelinek <jakub@redhat.com>
4608 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
4609 dg-final cleanup-modules line.
4610 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
4611 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
4612 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
4613 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4614 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4615 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4616 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4618 2007-03-18 Andreas Schwab <schwab@suse.de>
4620 * acinclude.m4: Adjust regular expression for ld version
4622 * configure: Regenerate.
4624 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4626 * Makefile.am: Add install-pdf target as copied from
4627 automake v1.10 rules.
4628 * Makefile.in: Regenerate
4630 2007-02-07 Jakub Jelinek <jakub@redhat.com>
4633 * configure: Regenerate.
4636 * testsuite/libgomp.c++/pr30703.C: New test.
4638 2007-02-02 Jakub Jelinek <jakub@redhat.com>
4641 2006-07-05 Eric Christopher <echristo@apple.com>
4642 * configure.ac: Depend addition of -pthread on host OS.
4643 * configure: Regenerate.
4645 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4647 * libgomp.texi: Fix spacing after abbreviations.
4649 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
4652 * configure.ac: Add check for makeinfo
4653 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
4654 if an appropiate version of makeinfo is found.
4655 * aclocal.m4: Regenerated.
4656 * configure: Regenerated.
4657 * Makefile.in: Regenerated.
4658 * testsuite/Makefile.in: Regenerated.
4660 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
4663 * libgomp.texi: More about implementation-dependent settings.
4665 2007-01-26 Tobias Burnus <burnus@net-b.de>
4667 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
4669 2007-01-24 Jakub Jelinek <jakub@redhat.com>
4672 * testsuite/libgomp.c/pr30494.c: New test.
4674 2007-01-15 Tom Tromey <tromey@redhat.com>
4676 * configure: Rebuilt.
4677 * configure.ac: Fixed comment.
4679 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
4681 * libgomp.texi: Document implementation specific default values of
4682 environment variables.
4684 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
4687 * libgomp.texi: New file.
4688 * configure.ac: Add --enable-generated-files-in-srcdir option.
4689 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
4691 * Makefile.in: Regenerated.
4692 * config.h.in: Regenerated.
4693 * testsuite/Makefile.in: Regenerated.
4696 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
4699 * env.c (omp_set_num_threads): Set illegal thread count to 1.
4701 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4703 * configure: Regenerate.
4705 2006-12-04 Jakub Jelinek <jakub@redhat.com>
4708 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
4709 start if there shouldn't be any loop iterations.
4710 (gomp_loop_ordered_static_start): Remove start == end test.
4711 * testsuite/libgomp.c/pr29947-1.c: New test.
4712 * testsuite/libgomp.c/pr29947-2.c: New test.
4714 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4716 * configure.tgt: Force initial-exec TLS model on Linux only.
4718 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
4720 * configure: Regenerated.
4722 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
4724 * env.c (parse_schedule): Reject out of range values.
4725 (parse_unsigned_long): Reject out of range, negative or zero values.
4727 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4730 * testsuite/libgomp.fortran/pr29629.f90: New test.
4732 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
4735 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4736 * config/posix95: New directory.
4737 * config/posix95/omp-lock.h: New file.
4738 * config/posix95/lock.c: Likewise.
4740 2006-10-14 Geoffrey Keating <geoffk@apple.com>
4742 * aclocal.m4: Regenerate.
4743 * configure: Regenerate.
4745 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4747 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4750 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4752 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4754 * configure: Regenerate.
4755 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4757 2006-09-26 Jakub Jelinek <jakub@redhat.com>
4761 * testsuite/libgomp.c/nestedfn-4.c: New test.
4762 * testsuite/libgomp.c/nestedfn-5.c: New test.
4763 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4766 * testsuite/libgomp.fortran/condinc1.f: New test.
4767 * testsuite/libgomp.fortran/condinc2.f: New test.
4768 * testsuite/libgomp.fortran/condinc3.f90: New test.
4769 * testsuite/libgomp.fortran/condinc4.f90: New test.
4770 * testsuite/libgomp.fortran/condinc1.inc: New file.
4772 2006-09-18 Tom Tromey <tromey@redhat.com>
4774 * configure: Rebuilt.
4776 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4779 PR preprocessor/14634
4780 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4782 * configure: Regenerate.
4784 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4786 * testsuite/libgomp.fortran/reduction3.f90: Change
4787 -2147483648 to -huge(i)-1 to avoid overflow.
4788 * testsuite/libgomp.fortran/reduction4.f90: Change
4789 Z'ffffffff' to not(0) to avoid overflow.
4791 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4794 * Makefile.am (libsubincludedir): New.
4795 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4796 * Makefile.in: Regenerate.
4798 2006-08-17 Jakub Jelinek <jakub@redhat.com>
4801 * env.c: Include ctype.h.
4802 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4803 leading and/or trailing whitespace and compare strings case
4806 2006-07-16 Jakub Jelinek <jakub@redhat.com>
4809 * testsuite/libgomp.fortran/pr28390.f: New test.
4811 2006-07-05 Eric Christopher <echristo@apple.com>
4813 * configure.ac: Depend addition of -pthread on host OS.
4814 * configure: Regenerate.
4816 2006-06-21 Jakub Jelinek <jakub@redhat.com>
4818 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4819 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4822 2006-06-20 Jakub Jelinek <jakub@redhat.com>
4826 * configure.ac: If neither --enable-linux-futex nor
4827 --disable-linux-futex is passed, determine the default by checking
4828 for compiling and/or running against NPTL. With --enable-linux-futex,
4829 check if SYS_gettid and SYS_futex are defined.
4830 * configure: Rebuilt.
4832 2006-06-14 Richard Henderson <rth@redhat.com>
4835 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4836 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4838 2006-06-09 Richard Henderson <rth@redhat.com>
4840 * env.c (gomp_nthreads_var): Change to unsigned long.
4841 (gomp_run_sched_chunk): Likewise.
4842 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4843 (initialize_env): Initialize gomp_thread_attr.
4844 * libgomp.h (gomp_nthreads_var): Update decl.
4845 (gomp_run_sched_chunk): Likewise.
4846 (gomp_thread_attr): Declare.
4847 * team.c (gomp_thread_attr): Export.
4848 (initialize_team): Don't initialize it.
4850 2006-06-09 Jakub Jelinek <jakub@redhat.com>
4853 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4854 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4856 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4858 * config/mingw32/time.c: New file.
4859 * configure.tgt: Use it.
4861 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4863 * Makefile.am: Add install-html target. Add install-html to .PHONY
4864 * Makefile.in: Regenerate.
4866 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4869 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4870 * testsuite/libgomp.c/critical-1.c: Likewise.
4871 * testsuite/libgomp.c/loop-1.c: Likewise.
4872 * testsuite/libgomp.c/loop-2.c: Likewise.
4873 * testsuite/libgomp.c/single-1.c: Likewise.
4874 * testsuite/libgomp.c/ordered-1.c: Likewise.
4875 * testsuite/libgomp.c/ordered-2.c: Likewise.
4877 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4880 * libgomp.fortran/pr27416-1.f90: New test.
4882 2006-05-03 Jakub Jelinek <jakub@redhat.com>
4885 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4886 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4888 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4891 * testsuite/libgomp.c/pr26943-1.c: New test.
4892 * testsuite/libgomp.c/pr26943-2.c: New test.
4893 * testsuite/libgomp.c/pr26943-3.c: New test.
4894 * testsuite/libgomp.c/pr26943-4.c: New test.
4895 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4896 * testsuite/libgomp.c++/pr26943.C: New test.
4898 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4901 * testsuite/libgomp.c++/pr27337.C: New test.
4903 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4906 * testsuite/libgomp.c/pr26171.c: New test.
4908 2006-04-25 Richard Henderson <rth@redhat.com>
4911 * configure.ac: Use GCC_CHECK_TLS.
4912 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4913 * Makefile.in, aclocal.m4, configure: Regenerate.
4915 2006-04-10 Matthias Klose <doko@debian.org>
4917 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4918 directory names containing underscores.
4920 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4923 * testsuite/libgomp.c++/pr26691.C: New test.
4925 2006-03-13 Jakub Jelinek <jakub@redhat.com>
4927 * testsuite/libgomp.fortran/retval2.f90: New test.
4929 2006-03-09 Diego Novillo <dnovillo@redhat.com>
4931 * testsuite/libgomp.c++: New directory.
4933 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
4935 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4936 * config/posix/sem.c: Implement the above.
4938 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4940 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4941 define HAVE_BROKEN_POSIX_SEMAPHORES.
4942 * configure: Rebuilt.
4943 * config.h.in: Rebuilt.
4945 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4948 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4949 for the other pthread check.
4950 * configure: Regenerate.
4951 * config.h.in: Regenerate.
4953 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4957 * Makefile.am (fincludedir): New variable.
4958 (nodist_include_HEADERS): Remove Fortran files.
4959 (nodist_finclude_HEADERS): New variable.
4960 * Makefile.in: Regenerated.
4962 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4964 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4965 Remove tests for returning assumed character length arrays.
4967 2006-02-12 Roger Sayle <roger@eyesopen.com>
4968 John David Anglin <dave@hiauly1.hia.nrc.ca>
4971 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4973 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4975 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4977 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4979 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4980 part of LD_LIBRARY_PATH manually.
4982 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4985 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4988 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
4991 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4992 * configure.ac (PERL): Don't set.
4993 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4994 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4995 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4996 * omp.h.in: Wrap the new configure substitutions with @ characters.
4997 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4998 * aclocal.m4, configure, Makefile.in: Regenerate.
4999 * mkomp_h.pl: Delete.
5001 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
5004 * configure.ac: Use GCC_HEADER_STDINT.
5005 * libgomp.h: Include gstdint.h.
5006 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
5007 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
5009 2006-01-24 Richard Henderson <rth@redhat.com>
5012 * configure.ac: Add AM_MAINTAINER_MODE.
5013 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
5015 2006-01-24 Diego Novillo <dnovillo@redhat.com>
5017 * Makefile.in: Regenerate.
5018 * testsuite/Makefile.in: Regenerate.
5019 * aclocal.m4: Regenerate.
5021 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
5023 * config/posix/proc.c: Conditional include of sys/loadavg.h for
5025 * configure.ac: Add check for loadavg.h.
5026 (link_gomp): Adjust comment.
5027 * configure: Regenerate.
5028 * config.h.in: Regenerate.
5030 2006-01-21 Steve Ellcey <sje@cup.hp.com>
5033 * configure.ac: Remove check for alloca.h.
5034 * configure: Regenerate.
5035 * config.h.in: Regenerate.
5036 * libgomp.h: define gomp_alloca to be __builtin_alloca.
5037 * team.c: Remove use of alloca.h.
5038 Call gomp_alloca instead of alloca.
5040 2006-01-20 Steve Ellcey <sje@cup.hp.com>
5043 * team.c: Add include of alloca.h.
5044 * configure.ac: Add check for alloca.h.
5045 * configure: Regenerate.
5046 * config.h.in: Regenerate.
5048 2006-01-17 Jakub Jelinek <jakub@redhat.com>
5051 * testsuite/libgomp.fortran/pr25219.f90: New test.
5053 2005-12-05 Uros Bizjak <uros@kss-loka.si>
5055 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
5056 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
5057 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
5058 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
5059 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
5060 testsuite/libgomp.fortran/threadprivate1.f90,
5061 testsuite/libgomp.fortran/threadprivate2.f90,
5062 testsuite/libgomp.fortran/threadprivate3.f90,
5063 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
5064 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
5065 testsuite/libgomp.fortran/omp_parse3.f90: Change required
5066 effective-target to TLS runtime.
5068 * testsuite/libgomp.fortran/pr25162.f: Require
5069 effective-target TLS runtime.
5071 2005-12-01 Jakub Jelinek <jakub@redhat.com>
5073 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
5074 * testsuite/libgomp.c/nestedfn-3.c: New test.
5076 2005-11-30 Jakub Jelinek <jakub@redhat.com>
5079 * testsuite/libgomp.fortran/pr25162.f: New test.
5081 2005-11-28 Jakub Jelinek <jakub@redhat.com>
5083 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
5084 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
5086 2005-11-25 Jakub Jelinek <jakub@redhat.com>
5088 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
5089 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
5090 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
5091 single.c, team.c, work.c, config/linux/alpha/futex.h,
5092 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
5093 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
5094 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
5095 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
5096 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
5097 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
5098 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
5101 2005-11-18 Jakub Jelinek <jakub@redhat.com>
5103 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
5104 to nodist_noinst_HEADERS.
5105 * Makefile.in: Rebuilt.
5107 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
5108 add integer count field.
5109 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
5110 omp_nest_lock_t type change.
5111 (omp_init_nest_lock): Likewise. Initialize count to 0.
5112 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
5114 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
5116 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
5117 Increment count if successful and return the new nesting level.
5118 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
5119 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
5120 * testsuite/libgomp.c/lib-1.c: New test.
5121 * testsuite/libgomp.fortran/lib1.f90: New test.
5122 * testsuite/libgomp.fortran/lib2.f: New test.
5123 * testsuite/libgomp.fortran/lib3.f: New test.
5125 2005-11-17 Richard Henderson <rth@redhat.com>
5128 * Makefile.am (nodist_toolexeclib_HEADERS): New.
5129 * configure.ac (link_gomp): New. Substitute it.
5130 (AC_CONFIG_FILES): Add libgomp.spec.
5131 * libgomp.spec.in: New file.
5132 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
5133 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
5135 2005-11-18 Jakub Jelinek <jakub@redhat.com>
5137 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
5138 reduction(-:var) behaving the same as reduction(+:var).
5139 * testsuite/libgomp.c/reduction-4.c: New test.
5141 2005-11-15 Uros Bizjak <uros@kss-loka.si>
5143 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
5144 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
5145 testsuite/libgomp.c/copyin-3.c,
5146 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
5147 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
5148 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
5149 testsuite/libgomp.c++/pr24455.C,
5150 testsuite/libgomp.fortran/threadprivate1.f90,
5151 testsuite/libgomp.fortran/threadprivate2.f90,
5152 testsuite/libgomp.fortran/threadprivate3.f90,
5153 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
5154 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
5155 testsuite/libgomp.fortran/omp_parse3.f90: Require
5156 effective-target TLS.
5158 2005-11-14 Diego Novillo <dnovillo@redhat.com>
5162 2005-11-13 Jakub Jelinek <jakub@redhat.com>
5165 * team.c (initialize_team): Pass NULL rather than free as
5166 pthread_key_create destructor. Initialize thread specific data
5167 pointer in initial thread to a static local variable rather than
5170 2005-11-11 Uros Bizjak <uros@kss-loka.si>
5172 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
5173 its location to ld_library_path.
5175 2005-11-10 Diego Novillo <dnovillo@redhat.com>
5177 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
5179 2005-11-10 Diego Novillo <dnovillo@redhat.com>
5181 * testsuite/libgomp.c: Rename from libgomp.dg.
5183 2005-11-09 Diego Novillo <dnovillo@redhat.com>
5185 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
5186 threadprivate variable 'i'.
5188 2005-11-09 Jakub Jelinek <jakub@redhat.com>
5190 * config/linux/s390/futex.h: New file.
5191 * configure.tgt: Use it.
5193 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
5194 before the parallel.
5196 2005-11-08 Jakub Jelinek <jakub@redhat.com>
5199 * testsuite/libgomp.c++/master-1.C: New test.
5201 2005-11-07 Jakub Jelinek <jakub@redhat.com>
5203 * testsuite/libgomp.dg/copyin-3.c: New test.
5205 2005-11-07 Jakub Jelinek <jakub@redhat.com>
5207 * testsuite/libgomp.fortran/retval1.f90: New test.
5208 * testsuite/libgomp.fortran/vla7.f90: New test.
5210 2005-11-06 Jakub Jelinek <jakub@redhat.com>
5212 * testsuite/libgomp.fortran/vla2.f90: New test.
5213 * testsuite/libgomp.fortran/vla3.f90: New test.
5214 * testsuite/libgomp.fortran/vla4.f90: New test.
5215 * testsuite/libgomp.fortran/vla5.f90: New test.
5216 * testsuite/libgomp.fortran/vla6.f90: New test.
5218 2005-11-01 Jakub Jelinek <jakub@redhat.com>
5220 * config/linux/sparc/futex.h: New file.
5221 * configure.tgt: Use it.
5222 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
5224 * critical.c: Include stdlib.h.
5225 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
5226 ignoring return value.
5227 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
5228 LIBGOMP_CHECK_SYNC_BUILTINS check.
5229 * configure: Rebuilt.
5231 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5233 * testsuite/libgomp.fortran/vla1.f90: New test.
5235 2005-10-31 Richard Henderson <rth@redhat.com>
5237 * testsuite/libgomp.fortran/character2.f90: Fix race condition
5238 setting 's' in different threads.
5240 2005-10-31 Jakub Jelinek <jakub@redhat.com>
5242 * libgomp.h (attribute_hidden, ialias): Define.
5243 * config/posix/proc.c (omp_get_num_procs): Add ialias.
5244 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
5245 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
5246 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5247 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5248 omp_test_lock, omp_test_nest_lock): Likewise.
5249 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
5250 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
5251 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
5252 omp_test_lock, omp_test_nest_lock): Likewise.
5253 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
5254 omp_get_dynamic, omp_get_nested): Likewise.
5255 * parallel.c (omp_get_num_threads, omp_get_max_threads,
5256 omp_get_thread_num, omp_in_parallel): Likewise.
5257 * fortran.c (ialias_redirect): Define.
5258 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
5259 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
5260 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
5261 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
5262 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
5263 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
5264 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
5265 omp_get_wtime): Add ialias_redirect.
5267 2005-10-30 Jakub Jelinek <jakub@redhat.com>
5269 * fortran.c: Include stdlib.h.
5271 2005-10-29 Jakub Jelinek <jakub@redhat.com>
5273 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
5274 * Makefile.in: Regenerated.
5276 2005-10-28 Jakub Jelinek <jakub@redhat.com>
5278 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
5279 * libgomp_f.h.in (omp_check_defines): New function.
5280 * env.c: Include libgomp_f.h.
5281 (initialize_env): Call omp_check_defines.
5283 * testsuite/libgomp.dg/copyin-2.c: New test.
5284 * testsuite/libgomp.c++/copyin-2.C: New test.
5285 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
5287 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
5288 * testsuite/libgomp.fortran/sharing2.f90: New test.
5290 * testsuite/libgomp.dg/copyin-1.c: New test.
5291 * testsuite/libgomp.c++/copyin-1.C: New test.
5293 2005-10-26 Jakub Jelinek <jakub@redhat.com>
5295 * testsuite/libgomp.fortran/crayptr1.f90: New test.
5297 * testsuite/libgomp.fortran/workshare1.f90: New test.
5299 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
5301 * libgomp.fortran/sharing1.f90: New test.
5303 2005-10-24 Jakub Jelinek <jakub@redhat.com>
5306 * testsuite/libgomp.c++/loop-7.C: New test.
5308 * testsuite/libgomp.dg/nestedfn-2.c: New test.
5310 * testsuite/libgomp.dg/nestedfn-1.c: New test.
5311 * testsuite/libgomp.fortran/reduction6.f90: New test.
5312 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
5314 2005-10-23 Richard Henderson <rth@redhat.com>
5316 * testsuite/libgomp.c++/ctor-1.C: New.
5317 * testsuite/libgomp.c++/ctor-2.C: New.
5318 * testsuite/libgomp.c++/ctor-3.C: New.
5319 * testsuite/libgomp.c++/ctor-4.C: New.
5320 * testsuite/libgomp.c++/ctor-5.C: New.
5321 * testsuite/libgomp.c++/ctor-6.C: New.
5322 * testsuite/libgomp.c++/ctor-7.C: New.
5323 * testsuite/libgomp.c++/ctor-8.C: New.
5324 * testsuite/libgomp.c++/ctor-9.C: New.
5326 2005-10-21 Diego Novillo <dnovillo@redhat.com>
5329 * testsuite/libgomp.c++/pr24455-1.C: New test.
5330 * testsuite/libgomp.c++/pr24455.C: New test.
5331 * testsuite/libgomp.dg/pr24455-1.c: New test.
5332 * testsuite/libgomp.dg/pr24455.c: New test.
5334 2005-10-20 Richard Henderson <rth@redhat.com>
5336 * testsuite/libgomp.c++/loop-6.C: New.
5337 * testsuite/libgomp.dg/loop-3.c: New.
5339 2005-10-20 Jakub Jelinek <jakub@redhat.com>
5341 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
5343 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
5346 2005-10-19 Diego Novillo <dnovillo@redhat.com>
5348 * testsuite/libgomp.fortran/jacobi.f: New test.
5350 2005-10-19 Richard Henderson <rth@redhat.com>
5352 * configure.tgt (i?86-linux): Default to with_arch instead of
5353 CFLAGS. Add -mtune to match target_cpu.
5354 (x86_64-linux): Tune to i686.
5356 * fortran.c (omp_test_nest_lock_): Fix typo.
5358 2005-10-19 Jakub Jelinek <jakub@redhat.com>
5360 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5361 gomp_ordered_sync): Do nothing if team->nthreads == 1.
5362 * testsuite/libgomp.dg/ordered-3.c: New test.
5364 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
5365 Remove volatile keyword.
5367 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
5368 in COMMON block to avoid warnings on 64-bit targets.
5370 2005-10-18 Diego Novillo <dnovillo@redhat.com>
5372 * testsuite/libgomp.dg/shared-3.c: New test.
5374 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5376 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
5377 * testsuite/libgomp.fortran/reduction5.f90: New test.
5379 2005-10-18 Jakub Jelinek <jakub@redhat.com>
5381 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
5383 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
5384 flush loop now that __sync_synchronize has proper memory barrier.
5385 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
5386 Add -ffixed-form to dg-options.
5388 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5390 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
5391 from subdirectories.
5392 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
5393 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
5394 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
5395 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
5396 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
5397 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
5398 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
5399 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
5400 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
5401 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
5402 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
5403 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
5404 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
5405 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
5406 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
5407 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
5408 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
5409 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
5410 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
5411 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
5412 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
5413 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
5414 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
5415 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
5416 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
5418 2005-10-17 Jakub Jelinek <jakub@redhat.com>
5420 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
5421 lang_library_path exists. Use find instead of glob to gather tests.
5422 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
5424 2005-10-17 Diego Novillo <dnovillo@redhat.com>
5426 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
5427 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
5428 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
5429 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
5430 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
5431 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
5432 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
5433 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
5434 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
5435 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
5436 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
5437 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
5438 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
5440 2005-10-15 Jakub Jelinek <jakub@redhat.com>
5442 * testsuite/libgomp.dg/vla-1.c: New test.
5444 * testsuite/libgomp.fortran/reference2.f90: New test.
5446 * testsuite/libgomp.fortran/character2.f90: Remove explicit
5447 declaration of omp_get_thread_num.
5448 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
5451 * testsuite/libgomp.fortran/reduction1.f90: New test.
5452 * testsuite/libgomp.fortran/reduction2.f90: New test.
5453 * testsuite/libgomp.fortran/reduction3.f90: New test.
5454 * testsuite/libgomp.fortran/reduction4.f90: New test.
5456 2005-10-13 Richard Henderson <rth@redhat.com>
5458 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
5459 * Makefile.in: Regenerate.
5460 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
5461 * libgomp.h: Include bar.h.
5462 (struct gomp_barrier): Remove.
5463 (struct gomp_team): Add barrier. Replace master_barrier with
5464 master_release. Replace threads with ordered_release.
5465 (struct gomp_thread): Replace barrier with release.
5466 * ordered.c (gomp_ordered_first): Update for ordered_release change.
5467 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
5468 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
5469 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
5470 (GOMP_single_copy_end): Likewise.
5471 * team.c (gomp_threads_dock): New.
5472 (gomp_barrier_init, gomp_barrier_destroy): Remove.
5473 (gomp_thread_start): Use gomp_barrier_wait.
5474 (new_team, free_team): Update for gomp_team changes.
5475 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
5476 (gomp_team_end): Use gomp_barrier_wait.
5477 (initialize_team): Update for gomp_thread changes.
5478 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
5479 (gomp_work_share_end_nowait): Use atomic ops when available.
5480 * config/linux/bar.c, config/linux/bar.h: New files.
5481 * config/posix/bar.c, config/posix/bar.h: New files.
5483 2005-10-13 Jakub Jelinek <jakub@redhat.com>
5485 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
5486 * testsuite/libgomp.dg/single-2.c: New test.
5488 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
5489 lang_link_flags): Unset, so that they aren't inherited from previously
5492 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
5494 2005-10-12 Richard Henderson <rth@redhat.com>
5496 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
5497 (libgomp_init): Use lang_test_file, lang_library_path, and
5498 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
5500 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
5501 (lang_test_file, lang_link_flags): New.
5502 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
5504 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
5505 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
5506 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
5507 testsuite/libgomp.c++/parallel-1.C,
5508 testsuite/libgomp.c++/reduction-1.C,
5509 testsuite/libgomp.c++/reduction-2.C,
5510 testsuite/libgomp.c++/reduction-3.C,
5511 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
5512 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
5513 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
5514 New files, largely cribbed from the C testsuite.
5516 2005-10-12 Jakub Jelinek <jakub@redhat.com>
5518 * testsuite/libgomp.fortran/character1.f90: New test.
5519 * testsuite/libgomp.fortran/character2.f90: New test.
5521 * testsuite/libgomp.dg/nested-1.c: New test.
5522 * testsuite/libgomp.dg/nested-2.c: New test.
5523 * testsuite/libgomp.fortran/do1.f90: New test.
5524 * testsuite/libgomp.fortran/do2.f90: New test.
5526 * testsuite/libgomp.fortran/reference1.f90: New test.
5528 2005-10-11 Jakub Jelinek <jakub@redhat.com>
5530 * testsuite/libgomp.dg/reduction-1.c: New test.
5531 * testsuite/libgomp.dg/reduction-2.c: New test.
5532 * testsuite/libgomp.dg/reduction-3.c: New test.
5534 2005-10-10 Jakub Jelinek <jakub@redhat.com>
5536 * testsuite/libgomp.dg/atomic-1.c: New test.
5537 * testsuite/libgomp.dg/atomic-2.c: New test.
5539 2005-10-09 Richard Henderson <rth@redhat.com>
5541 * critical.c (atomic_lock): New.
5542 (initialize_critical): Initialize it.
5543 (GOMP_atomic_start, GOMP_atomic_end): New.
5544 * libgomp.map: Export them.
5545 * libgomp_g.h: Declare them.
5547 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
5549 2005-10-02 Richard Henderson <rth@redhat.com>
5551 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
5552 to XCFLAGS instead of CFLAGS.
5554 2005-09-30 Richard Henderson <rth@redhat.com>
5556 * configure.ac: Determine whether -pthread or -lpthread is needed.
5557 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
5558 * Makefine.in, configure: Rebuild.
5560 2005-09-28 Richard Henderson <rth@redhat.com>
5562 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
5563 * testsuite/libgomp.dg/omp-single-3.c: New test.
5565 2005-09-28 Diego Novillo <dnovillo@redhat.com>
5567 * testsuite/libgomp.dg/omp-single-2.c: New test.
5568 * testsuite/libgomp.dg/shared-2.c: Fix return code.
5570 2005-09-27 Richard Henderson <rth@redhat.com>
5572 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
5573 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
5575 2005-09-27 Jakub Jelinek <jakub@redhat.com>
5577 * testsuite/libgomp.dg/omp-loop03.c: New test.
5579 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5581 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
5583 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5585 * testsuite/libgomp.dg/omp-single-1.c: New test.
5586 * testsuite/libgomp.dg/shared-1.c: Return 0.
5587 Add prototype for abort.
5588 * testsuite/libgomp.dg/shared-2.c: Likewise.
5590 2005-09-26 Jakub Jelinek <jakub@redhat.com>
5592 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
5595 2005-09-26 Diego Novillo <dnovillo@redhat.com>
5597 * testsuite/libgomp.dg/shared-1.c: New test.
5598 * testsuite/libgomp.dg/shared-2.c: New test.
5600 2005-09-24 Richard Henderson <rth@redhat.com>
5602 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
5604 2005-09-24 Richard Henderson <rth@redhat.com>
5606 * iter.c (gomp_iter_static_next): Round up when computing number
5607 of iterations. Don't bother distributing a remainder equally.
5609 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
5610 Don't call srand. Zero b before testing.
5613 2005-09-24 Jakub Jelinek <jakub@redhat.com>
5615 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
5616 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
5618 2005-09-23 Jakub Jelinek <jakub@redhat.com>
5620 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
5621 without !$omp end do, followed immediately by subroutine end.
5623 2005-09-23 Diego Novillo <dnovillo@redhat.com>
5625 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
5627 2005-09-22 Richard Henderson <rth@redhat.com>
5629 * critical.c (GOMP_critical_name_start): Change argument to void**.
5630 Reuse the pointer space if the mutex fits.
5631 (GOMP_critical_name_end): Likewise.
5632 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
5633 * libgomp_g.h (GOMP_critical_name_start): Update decl.
5634 (GOMP_critical_name_end): Likewise.
5635 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
5636 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
5638 2005-09-20 Richard Henderson <rth@redhat.com>
5640 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
5641 (create_lock_lock): New.
5642 (initialize_critical): Initialize it.
5643 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
5644 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
5646 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5648 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
5650 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5652 * testsuite/libgomp.dg/omp-loop01.c: New test.
5653 * testsuite/libgomp.dg/omp-loop02.c: New test.
5655 2005-09-20 Jakub Jelinek <jakub@redhat.com>
5657 * configure.ac (AC_PROG_FC): Add.
5658 (USE_FORTRAN): New automake conditional.
5659 * configure: Rebuilt.
5660 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
5661 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
5662 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
5663 Add rules to build them.
5664 * Makefile.in: Rebuilt.
5665 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
5667 * libgomp.map: Add Fortran wrappers.
5668 * libgomp_f.h.in: New file.
5669 * omp_lib.h.in: New file.
5670 * omp_lib.f90.in: New file.
5671 * fortran.c: New file.
5672 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
5673 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
5674 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
5675 libgfortran has been built.
5676 * testsuite/libgomp.fortran/fortran.exp: New file.
5677 * testsuite/libgomp.fortran/omp_cond1.f: New test.
5678 * testsuite/libgomp.fortran/omp_cond2.f: New test.
5679 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
5680 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
5681 * testsuite/libgomp.fortran/omp_hello.f: New test.
5682 * testsuite/libgomp.fortran/omp_orphan.f: New test.
5683 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
5684 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
5685 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
5686 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
5687 * testsuite/libgomp.fortran/omp_reduction.f: New test.
5688 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
5689 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
5691 2005-08-30 Richard Henderson <rth@redhat.com>
5693 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
5694 function for when aliases are not usable.
5695 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
5696 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5697 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
5698 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
5699 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
5700 GOMP_loop_ordered_guided_next): Likewise.
5701 * ordered.c (GOMP_ordered_start): Likewise.
5703 2005-08-01 Diego Novillo <dnovillo@redhat.com>
5705 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
5706 * testsuite/libgomp.dg/omp_hello.c: Fix return code
5707 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
5708 * testsuite/libgomp.dg/omp_orphan.c: Likewise
5709 * testsuite/libgomp.dg/omp_reduction.c: Likewise
5710 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
5711 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
5712 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
5713 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
5715 2005-07-07 Eric Christopher <echristo@redhat.com>
5716 Diego Novillo <dnovillo@redhat.com>
5718 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5719 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5721 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5722 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5723 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5724 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5725 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5726 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5727 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5729 2005-06-13 Diego Novillo <dnovillo@redhat.com>
5731 * TOPLEVEL.patch: Remove.
5733 2005-05-16 Richard Henderson <rth@redhat.com>
5735 * configure.ac: Test for clock_gettime.
5736 * config.h.in, configure: Rebuild.
5737 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5738 (omp_get_wtime): Use clock_gettime if available.
5739 (omp_get_wtick): Use clock_getres if available.
5741 2005-05-11 Richard Henderson <rth@redhat.com>
5743 * config/linux/ia64/futex.h: New file.
5744 * configure.tgt: Use it.
5746 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5748 2005-05-07 Richard Henderson <rth@redhat.com>
5750 * config/linux/powerpc/futex.h: New file.
5751 * configure.tgt: Use it.
5753 * config/linux/i486/futex.h: Merge ...
5754 * config/linux/x86_64/futex.h: ... into ...
5755 * config/linux/x86/futex.h: ... here.
5756 * configure.tgt: Update to match.
5758 2005-05-06 Richard Henderson <rth@redhat.com>
5760 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5761 * config/linux/i486/futex.h: Likewise.
5762 * config/linux/x86_64/futex.h: Likewise.
5764 * config/linux/lock.c: New file.
5765 * config/linux/omp-lock.h: New file.
5767 * critical.c, env.h: Don't include omp.h
5768 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5769 * config/posix/time.c: Likewise.
5770 * config/posix/omp-lock.h: New file.
5771 * libgomp.h: Include omp-lock.h and omp.h.
5772 * Makefile.am (nodist_include_HEADERS): New.
5774 * configure.ac (PERL): New.
5775 * mkomp_h.pl: New file.
5776 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5778 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5780 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5781 build directory. Re-add -march=i486 hack.
5783 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5784 (libgomp_link_flags): Remove.
5785 (libgomp_initialized): Remove.
5786 (libgomp_init): Don't protect from reinitialization. Copy code
5787 from libstdc++ for getting the multilib set correctly.
5789 2005-05-05 Richard Henderson <rth@redhat.com>
5791 * config/linux/alpha/futex.h: New file.
5792 * configure.tgt (alpha*-*-linux*): Use it.
5794 * config/posix/mutex.c: New file.
5795 * config/posix/sem.c: Use libgomp.h.
5797 * configure.tgt (x86_64-linux): Also test CC for -m32.
5798 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5800 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5803 * Makefile.am (SUBDIRS): New.
5804 (libgomp_la_LDFLAGS): Add -lpthread.
5805 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5806 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5808 * libgomp_g.h: New file.
5809 * libgomp.h: Split out all public declarations to libgomp_g.h.
5810 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5811 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5812 * config/linux/sem.h: Likewise.
5813 * config/posix/sem.h: Likewise.
5815 * Makefile.am (AM_LDFLAGS): New.
5816 (libgomp_version_script): Split out from ...
5817 (libgomp_la_LDFLAGS): ... here.
5818 (libgomp_version_info): New.
5819 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5820 (LIBGOMP_ENABLE): New.
5821 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5822 (LIBGOMP_ENABLE_SYMVERS): New.
5823 * configure.ac (AC_INIT): Version 1.0.
5824 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5825 (enable-linux-futex): Likewise. Rename from enable-futex.
5826 (libtool_VERSION): New.
5827 (LIBGOMP_ENABLE_SYMVERS): Use it.
5828 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5829 * Makefile.in, aclocal.m4, configure: Rebuild.
5831 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5832 (gomp_mutex_unlock_slow): Fix typo.
5833 * config/linux/sem.c: Similarly.
5834 (gomp_sem_post_slow): Fix typo.
5835 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5836 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5837 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5839 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5840 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5841 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5842 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5843 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5844 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5845 LDFLAGS. Pull enable_futex check to top-level.
5846 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5847 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5849 First attempt at real configury.
5850 * Makefile, config.h: Remove file.
5851 * Makefile.am, Makefile.in: New file.
5852 * acinclude.m4 aclocal.m4: New file.
5853 * configure.ac, configure.tgt, configure: New file.
5855 * config/posix/lock.c: Rename from sys-lock.c.
5856 * config/posix/mutex.h: Rename from sys-mutex.h.
5857 * config/posix/sem.c: Rename from sys-sem.c.
5858 * config/posix/sem.h: Rename from sys-sem.h.
5859 * config/posix/proc.c: Rename from sys-proc.c.
5860 * config/posix/time.c: Rename from sys-proc.c.
5862 * config/linux/mutex.c: New file.
5863 * config/linux/mutex.h: New file.
5864 * config/linux/sem.c: New file.
5865 * config/linux/sem.h: New file.
5866 * config/linux/i486/futex.h: New file.
5867 * config/linux/x86_64/futex.h: New file.
5869 2005-05-04 Richard Henderson <rth@redhat.com>
5871 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5872 * libgomp.h: Declare them.
5873 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5874 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5876 2005-05-04 Richard Henderson <rth@redhat.com>
5878 * libgomp-1 code drop
5880 2005-05-04 Richard Henderson <rth@redhat.com>
5882 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5883 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5884 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5885 (gomp_iter_static_next): Update.
5886 (gomp_ordered_static_next): Update.
5887 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5888 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5889 totally empty range.
5890 (gomp_loop_ordered_static_next): Refine test for calling
5891 gomp_ordered_static_next.
5892 * testsuite/ordered-1.c: Add case for more threads than iterations.
5894 * iter.c (gomp_iter_runtime_next_locked): Remove.
5895 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5896 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5897 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5898 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5899 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5900 gomp_loop_ordered_guided_next): Downcase name, make static, add
5901 an external alias with the old name.
5902 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5903 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5904 switch and call one of the above static functions.
5905 * libgomp.h: Update.
5907 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5908 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5909 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5910 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5911 GOMP_loop_ordered_guided_start): Update to match.
5912 * sections.c (GOMP_sections_start): Likewise.
5913 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5915 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5916 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5917 Use bounds check instead of modulus.
5918 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5919 (gomp_ordered_last): Don't sync with ordered_owner here.
5920 (gomp_ordered_next): Likewise.
5921 (gomp_ordered_static_loop_next): Likewise.
5922 * loop.c, libgomp.h: Update to match.
5924 * libgomp.h (GOMP_barrier): Declare.
5926 * testsuite/barrier-1.c: New file.
5927 * testsuite/critical-1.c: New file.
5928 * testsuite/ordered-2.c: New file.
5929 * testsuite/ordered-1.c: New file.
5930 * testsuite/sections-1.c: New file.
5931 * testsuite/single-1.c: New file.
5932 * testsuite/Makefile (TESTS): Add them.
5934 2005-05-04 Richard Henderson <rth@redhat.com>
5936 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5937 * loop.c (GOMP_loop_static_start): If not the startup thread,
5938 acquire the mutex to wait for initialization complete.
5939 (GOMP_loop_ordered_static_start): Likewise.
5940 (GOMP_loop_ordered_runtime_start): Likewise.
5941 (GOMP_loop_ordered_static_first): Remove.
5942 (GOMP_loop_ordered_dynamic_first): Remove.
5943 (GOMP_loop_ordered_guided_first): Remove.
5944 (GOMP_loop_ordered_runtime_first): Remove.
5945 * ordered.c (gomp_ordered_loop_first): Post to own release when
5946 we're the first thread.
5947 (gomp_ordered_loop_last): Wait on release if not owner.
5948 (gomp_ordered_loop_next): Likewise.
5949 (gomp_ordered_static_loop_init): New.
5950 (gomp_ordered_static_loop_next): Use ordered_owner.
5951 (GOMP_ordered_start): Likewise.
5952 * work.c (gomp_new_work_share): Initialize ordered_owner.
5954 2005-05-03 Richard Henderson <rth@redhat.com>
5956 * Makefile (OPT): New.
5959 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5960 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5961 * libgomp.h, libgomp.map, NOTES: Update to match.
5963 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5964 Add initialized and thr members.
5965 (gomp_thread_start): Pause when initially spawned to wait for
5966 the whole team to be created.
5967 (gomp_team_start): Release team members at the end.
5969 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5970 (f_foo_1): Use GOMP_loop_end.
5971 (f_foo_2): Use GOMP_loop_end_nowait.
5973 * testsuite/loop-2.c: New file.
5974 * testsuite/Makefile (TESTS): Add it.
5976 2005-05-03 Richard Henderson <rth@redhat.com>
5978 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5979 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5980 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5983 * testsuite/Makefile: New file.
5984 * testsuite/loop-1.c: New file.
5986 2005-05-03 Richard Henderson <rth@redhat.com>
5988 Initial implementation and checkin.