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