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