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