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