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