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