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